{"version":3,"file":"portal-0b94403948f274d1b504ff0d58c011fa.js","names":["define","_exports","_rest","_environment","_emberInflector","_service","_string","_class","_descriptor","_descriptor2","_initializerDefineProperty","e","i","r","l","Object","defineProperty","enumerable","configurable","writable","value","initializer","call","_defineProperty","t","Symbol","toPrimitive","TypeError","String","Number","_toPrimitive","_toPropertyKey","_applyDecoratedDescriptor","n","a","keys","forEach","slice","reverse","reduce","default","pathForType","type","pluralize","dasherize","constructor","args","super","this","host","urls","api","apiV2Path","access_token","session","data","authenticated","headers","Authorization","createRecord","store","snapshot","serialize","includeId","key","undefined","record","url","buildURL","modelName","ajax","updateRecord","id","saveBulk","records","serializedRecords","map","JSON","stringify","contentType","then","response","res","index","modelClass","modelFor","pendingRecord","mergedData","assign","serializerFor","normalize","_id","isNew","set","push","_internalModel","_recordData","_attributes","send","deleteBulk","peekRecord","deleteRecord","pendingRecordId","isDeleted","unloadRecord","prototype","inject","_jsonApi","_errors","_string2","irregular","concurrencyHandler","maxConcurrency","runningCount","queue","enqueue","asyncTask","Promise","resolve","reject","async","result","error","dequeue","length","shift","nextTask","isAuthenticated","_withRequiredMeta","query","required","requiredMetaFields","fields","split","trim","filter","Boolean","Set","join","buildQuery","options","shouldReloadAll","shouldBackgroundReloadRecord","handleResponse","status","ConnectionError","invalidate","catch","arguments","chunkArray","array","size","Array","from","Math","ceil","_","findMany","ids","snapshots","chunkSize","chunkCallbackSize","requests","chunk","and","field","op","all","acc","concat","included","simple","operatorMapping","$eq","$ne","$in","$nin","$lt","$gt","$lte","$gte","$like","$ilike","_filter","entries","isArray","operator","operand","mappedOperator","Error","findRecord","adapterOptions","URL","meta","searchParams","toString","_apiV2Adapter","EntityProductAdapter","name","ProjectProductAdapter","TaskProductAdapter","_application","_emberPowerCalendarMoment","_emberResolver","_emberLoadInitializers","_emberPowerCalendar","registerDateLibrary","App","modulePrefix","podModulePrefix","dependencies","services","hostRouter","_base","_jquery","restore","authenticate","accessToken","userId","transition","user","method","dataType","attemptedTransition","authenticator","expires_in","token_type","attributes","_rsvp","_oauth","extend","_utils","_runloop","_object","_array","_oauth2PasswordGrant","router","serverTokenEndpoint","apiV1Path","serverTokenRevocationEndpoint","refreshAccessTokens","identification","password","scope","grant_type","get","scopesString","makeArray","isEmpty","makeRequest","run","xhr","transitionTo","success","cancel","_refreshTokenTimeout","apply","A","tokenType","token","token_type_hint","succeed","_oidcConfig","waitForRedirect","startRedirect","_resolve","timer","setTimeout","clearTimeout","_bindOidcEvents","userManager","events","addUserLoaded","existingBpUser","trigger","bypassRedirect","addUserUnloaded","_isInvalidating","addAccessTokenExpiring","navigator","locks","request","ifAvailable","lock","currentUser","getUser","signinSilent","_buildSessionData","oidcUser","bpUser","buildaPrice","getMeFromIdentityId","profile","sub","window","location","search","includes","signinRedirectCallback","signinRedirect","expired","_data","logoutComplete","signoutRedirect","_forgetUser","removeUser","BREAKPOINTS","mobileMax","tablet","desktop","jumbo","ultrawide","minWidth","px","maxWidth","mobile","_component","_activeTable","_templateFactory","__COLOCATED_TEMPLATE__","createTemplateFactory","block","moduleName","isStrictMode","setComponentTemplate","layout","tagName","classNames","classNameBindings","columns","sortable","computed","sortedBy","sortDir","columnCount","totalUnits","flexibleProportion","column","width","header","create","actions","sortBy","columnToSort","toSortBy","newDir","_component2","AllocationHierarchyComponent","maxPaths","allocations","primaryAllocation","isMultiple","needsTitle","firstPart","middleParts","paths","lastPart","at","formattedPath","parts","separator","popupText","path","_tracking","_treeItem","_descriptor3","_descriptor4","_descriptor5","_descriptor6","items","constructItemTreeFromProjectAndTasks","tasks","projects","item","belongsTo","selectedItem","find","values","next","findItemInTree","numberOfInvoices","mapBy","uniqBy","toggleIsOverridingXeroAccount","isOverridingXeroAccount","xeroAccountOverride","toggleIsOverridingQuickbooksAccount","isOverridingQuickbooksAccount","quickbooksAccountOverride","tracked","action","getOwnPropertyDescriptor","buttonText","attachment","attachments","intl","onAttachmentsUploadComplete","validationErrors","onUploadComplete","isAttachmentModalVisible","numberOfAttachments","_onDelete","isDeleting","onDelete","_debug","_attachment","_descriptor7","_descriptor8","_class2","_descriptor9","_descriptor0","_descriptor1","_descriptor10","_descriptor11","_descriptor12","_descriptor13","_descriptor14","FileContainer","init","isSaving","fileContainers","some","fc","existingAttachmentHashes","att","hash","existingFileContainerHashes","onDropZoneDragOver","event","preventDefault","onDropZoneDrop","filesArray","dataTransfer","files","file","isValidType","forUpload","getFileHash","fileAlreadyStaged","stageFiles","onManualFileUpload","target","onManualUploadClick","fakeEvent","input","document","createElement","accept","acceptedMimeTypes","multiple","onchange","click","unstageFile","dfc","removeObject","fileIsTooLarge","isInvalid","invalidMessage","filePreviouslyAttached","pushObject","completeUpload","invalidFiles","containersToSave","saved","createAttachmentRecord","numberInvalid","numberOfFailures","savedRecords","close","notifications","message","toggleVisible","attachmentRecord","fromFileInput","sessionData","entity","save","hasErrored","errorMessage","acceptedMime","isMimeSame","buffer","arrayBuffer","crypto","subtle","digest","environment","hashBuffer","Uint8Array","b","padStart","fileHashes","AttachmentPreviewComponent","fileType","isPdf","isImage","startsWith","_asyncArrowRuntime","_emberChangeset","_lodash","newValue","oldValue","validateName","buildTask","context","generator","canManageUsers","getUserPermissionSet","perform","getAttachmentPermissionSet","initPermissionChangeset","attachmentChangeSet","Changeset","taskValidator","validationMap","simpleQuery","userAttachmentPermission","toArray","attachmentProjectPermission","getExistUserPermissions","users","last","getExistCanViewFilePermission","permissionChangeSet","clientsCanViewFileStorage","include","attribute","validate","saveUserAttachmentPermission","saveClientCanViewAttachmentPermission","onCloseAction","execute","existCanViewFilePermission","originalState","currentState","project","attr","destroyRecord","confirm","linkRecord","parent","hasMany","originalAttributes","originalSelectedUsers","selectedUsers","removeUsers","difference","attrToRemove","oa","addUsers","attrToAdd","u","canViewFileStorage","initChangeset","showClientVisibleButton","isEditable","newFeatureFlags","includesFeatureFlags","setAttachmentToUpdate","attachmentToUpdate","_templateOnly","AttachmentsPopoverComponent","direction","media","isDesktop","forceVisible","isOpen","isDraggingFiles","open","setupListeners","element","dragHandler","types","dragEndHandler","clickHandler","contains","addEventListener","teardownListeners","removeEventListener","projectOptions","selectedProject","safeBelongsToValue","passedInProjects","accountOptions","unused","currentCode","switchProject","projectId","j","_basicDropdownContent","_basicDropdownTrigger","_basicDropdownWormhole","_basicDropdown","_computed","parser","hasSelectedFile","notEmpty","hasNotSelectedFile","not","hasImported","import","importData","csvParsingErrors","rejectBy","oldError","clear","report","reportParsingErrors","errors","parsingError","msg","_emberConcurrency","_emberChangesetValidations","_bill","_billItem","_searchFilter","_searchTermEscape","_descriptor15","_descriptor16","_descriptor17","_descriptor18","_descriptor19","_descriptor20","_descriptor21","_descriptor22","_descriptor23","_descriptor24","_descriptor25","deleteKey","BillEditorComponent","condensedMode","columnSpans","hasPurchaseOrder","billForm","spans","select","canManageBills","code","description","allocation","purchaseOrderItem","glAccount","quantity","unitPrice","total","icon","totalSpan","sum","span","loadedBillItems","bill","safeHasManyToValue","hasNextPurchaseOrderPage","purchaseOrdersPage","currentPage","totalPages","isActionsRunning","billActions","secondaryActions","isRunning","primaryAction","activeAttachment","allAttachments","attachmentIndex","myAttachments","sortBillItems","billItems","sort","sortIndexDiff","Date","getTime","filteredBillItemForms","billItemForms","form","allBillItemsSelected","selectedBillItemForms","someBillItemsSelected","totalPrice","bif","hasUnsavedChanges","isDirty","isBillFormValid","isValid","isTotalPriceValid","every","isBillFormPristine","isPristine","isHandlingTransition","billValidations","sortedItems","billItemValidations","hasAttachments","attachmentsVisible","validateBillForm","timeout","restartable","searchTerm","effectiveSearchTerm","contactsSearchTerm","contactsPage","contacts","contactFilter","nextPageNumber","nextPage","page","number","clearPurchaseOrderIfReferenceChanged","loadPurchaseOrders","purchaseOrderSearchTerm","purchaseOrder","resetPurchaseOrderItems","purchaseOrderItemSearchTerm","purchaseOrderItemsPage","purchaseOrderItems","purchaseOrderItemFilter","contact","issuer","aliases","setContactAliasModalVisible","billsData","reloadBills","syncToAccountingPackage","wasNew","originalIssuerContactId","confirmBillTypeMatchesTotal","showWarning","selectedIssuerContactId","issuerContactAdded","issuerContact","rollbackProperty","content","sortIndex","itemPromises","billItem","formsToDelete","f","removeObjects","addBill","accountingPlatform","sendBill","handleAccountingPackageResponse","allocating","targetStatus","removeBillAndNavigateToNext","invoicedCosts","requestDelete","isInvoiced","title","deleteCb","nextBill","querySelector","nextElementSibling","removeBill","showBillDeleteConfirmModal","on","preventInternalNavigation","preventBrowserClose","resetChangeset","willDestroy","off","viewDuplicateBills","billNumber","urlFor","URLSearchParams","triggerClose","triggerSave","triggerNextBill","current","triggerPreviousBill","previousBill","previousElementSibling","billOutsideFilter","billStatus","validateBothDescriptionAndProductCode","changeset","rollbackAttributes","abort","returnValue","nextAttachment","attachmentCount","previousAttachment","viewAttachment","findIndex","href","attachmentsUploadComplete","newAttachments","filename","extension","fileSize","uploadError","deleteAttachment","linkAttachmentsToBill","attachmentInfo","attachmentsCount","addNewBillItem","row","scrollIntoView","behavior","focus","preventScroll","toggleSelectAll","toggleSelected","stopPropagation","indexOf","toSpliced","deleteSelectedBillItemForms","purchaseOrders","purchaseOrderFilter","setIssuerContact","hadContact","savedBillHasIssuerString","contactNameMatches","results","or","searchTermEscape","pageSize","defaultBillAllocationType","setDefaultAllocationType","currentAllocationType","hasDifferentAllocationType","setPurchaseOrder","existingPurchaseOrder","purchaseOrderNumber","clearBillItemPurchaseOrderItems","reference","setBillItemPurchaseOrderItem","createIssuerContact","contactName","itemsInvalid","warning","suggestedBillType","currentBillType","billTypeChangeConfirmation","billType","sign","existingBillTypePural","existingSign","xeroLinked","handleBillTypeChange","confirmed","confirmation","changeStatusWithoutValidations","fullyMapped","changeStatus","allocate","activePlatform","label","quickbooksLinked","hasRejection","resp","rejected","billResponses","billTypeResponseHandlerVisible","filterResponses","onBillTypeResponseHandlerCancel","onBillItemAllocatorClose","wasCancelled","BillItemAllocatorComponent","onOverrideGlAccount","overriddenGlAccount","selectedItems","stagedChanges","allItemsSelected","someItemsSelected","fullyAllocatedBills","bills","stagedState","task","allocationActions","billCount","billCountLabel","isActive","acceptAllocateSend","acceptAllocate","isLoading","load","actionsDisabled","primaryActionDisabled","searchString","glAccountsPage","glAccounts","hasNextPage","loadActivePlatformGlAccounts","projectIds","p","projectTree","billIds","unallocatedItems","computeMap","itemsJson","toJSON","updateInvoiceItems","itemIds","add","_saveAllocations","onClose","_acceptBills","errorCount","oldStatus","selectedMap","mapSetFromComputeMap","targetProject","targetTask","has","onMapChange","getPath","effectivePurchasesGlAccount","clearSelectedAllocations","Map","escapeHtml","replace","BillItemSummaryComponent","allocationPaths","isAllocated","isMapped","rows","summaryText","statusLabel","replaceAll","statusIcon","statusClass","responseErrors","responses","flat","attachmentErrors","BillsTableComponent","loadMoreBills","hasOneBill","selectedBills","info","currentRoute","params","bill_id","showBillsDeleteConfirmModal","allSettled","failedUpdates","failed","hasStatusFilter","someBillsSelected","selectedBillItems","deleteConfirmText","count","scrollActiveBill","active","inline","deleteMessages","showStatusColumn","condensed","filterString","showCondensedStatusStripe","fromColumnSpan","numberColumnSpan","allocationColumnSpan","billStatusBackgroundClasses","resetSelectionOnFilterChange","currentFilter","originalFilter","billStatusStripeClasses","navigateToBill","closeAllocator","getPurchaseOrderMatchingStatus","purchaseOrderDetails","BillsTableThComponent","state","endsWith","toggleOrderBy","onOrderBy","_stringSimilarity","_esm","_moment","_parseCurrencyString","_placemakersBillCsvNormalizer","_bunningsBillCsvNormalizer","normalizeColumnValue","toLowerCase","ParserError","getValidationMessages","flatMap","validation","TrimValue","BillsFile","sampleRows","csv","columnsLength","columnTypeOptions","matches","columnTypes","_findLikelyColumnTypes","columnTypeForm","_generateColumnTypeForm","validator","_key","changes","rv","v","validatorMap","bestMatch","option","rating","normalizedMatches","findBestMatch","base64","parse","bom","skip_empty_lines","relax_column_count","read","csvText","atob","write","end","parseCsvFromBase64","_e","skipNoneDescriptionRows","billFile","contactChangeSet","validationMessages","billsMap","noDescriptionIndexes","rowIndex","getColumn","colIndex","colType","invoiceNumber","productCode","parseFloat","abs","rawIssueDate","parsedIssueDate","ISO_8601","issueDate","toDate","rawDueDate","parsedDueDate","dueDate","getBillDueDate","allocationType","source","invalidProductRowIndexes","importedBills","findExistingBills","existing","saveBills","failedBills","billAttrs","billData","subtotal","onUploadBillsCSV","clearDuration","setContact","onClear","billFileItems","skipNoneDescriptionRowsAndUpload","uploadBills","onUpload","parseCsvFromAttachment","isPlaceMakersBillCsv","isBunningsBillCsv","entityId","uniqueBillNumbers","existingBills","peekAll","grouped","existingBill","new","importNewBillsOnly","importAllBills","contactValidator","bind","_c3Chart","steps","calc","inputs","chars","PLUS","MINUS","MULTIPLY","DIV","step","char","_formatNumber","metrics","date","endOf","periodType","table","metric","format","series","period","objectAt","toISOString","formatNumber","reverseColors","min","max","height","gauge","_ratio","places","dashZero","show","units","color","colors","pattern","threshold","unit","legend","position","dates","seriesMeta","start","currentPeriod","seriesIndex","periods","s","group","periodIndex","unshift","x","axis","reduction","yAxisPlaces","longest","longestLength","floor","setsOfThree","reductionText","pow","tick","y","text","grid","tooltip","sigfigs","numberLength","markEmptySeries","markNegativeSeries","markEmpty","markNegative","validateTitle","questionId","question","deleteQuestion","showEditQuestion","addNewQuestion","newQuestionTitle","checklist","hasDirtyAttributes","editQuestion","questionValidator","saveChecklist","setFocus","onChangeNewQuestionInput","hidingChildren","attributeBindings","tmpId","deleteAccount","account","createChildAccount","toggleHidingChildren","toggleProperty","toggleIsEditingDescription","saveDescription","didInsertElement","_super","hover","addClass","removeClass","nestedSortable","handle","helper","excludeRoot","toleranceElement","placeholder","update","updateList","accounts","nestingData","beginPropertyChanges","line","findBy","item_id","parent_id","left","children","filterBy","endPropertyChanges","_comboBox","tlc","string","finderVisible","selectedRow","is","activeValue","willDestroyElement","willRender","finderNotVisible","filteredOptions","activeDisplayName","setFinderVisible","visible","isDestroyed","isDestroying","keyDown","keyCode","newSelectedRow","keyUp","keepSelectedRowVisible","selectedRowIndex","$row","$container","top","scrollTop","outerHeight","unSetHighlight","setItem","_comboButton","showDropdown","focusOut","onButtonClick","holdFocus","confirmText","onCancel","allowDelete","getElement","clearTarget","longPressed","targetPosition","setTarget","withScroll","disabled","menuVisible","bindEvents","container","containerId","button","buttonId","setAttribute","containerContextMenuListener","onContainerContextMenu","containerClickListener","onContainerClick","containerMouseDownListener","onContainerMouseDown","containerMouseUpListener","onContainerMouseUp","containerFocusOutListener","onContainerFocusOut","buttonClickListener","removeEvents","random","clientX","clientY","longPressTimeout","onContainerLongPress","buttonRect","getBoundingClientRect","bottomRightX","right","scrollX","bottomRightY","bottom","scrollY","relatedTarget","parsePx","pxValue","parseInt","isVisible","innerHeight","innerWidth","onScroll","menuElement","parentElement","initialPosition","rect","parentRect","style","scrollLeft","scrollParent","scrollParentScrollListener","positionMenuFixed","removeProperty","originalDirection","checkedAllDirections","menuRect","menuStyle","getComputedStyle","menuOuterWidth","borderLeftWidth","paddingLeft","borderRightWidth","paddingRight","menuOuterHeight","borderTopWidth","paddingTop","borderBottomWidth","paddingBottom","overflowY","getPropertyValue","findFirstScrollableParent","passive","_dashboardItem","mouseEnter","mouseLeave","_evented","_account","_kpi","_entity","_entityGroup","groups","selectedKpis","selectedAccounts","selectedEntityGroups","selectedEntities","isMac","platform","canAccessEntities","canAccessEntityGroups","parentEntity","parenEntityFilter","canAccessMultipleEntities","role","readableForCurrentOrganisation","treeExpansion","kpis","profitAndLoss","balanceSheet","otherData","entities","entityGroups","isFirstStep","equal","isLastStep","singleMetric","multipleSeries","correctMetricCount","observer","module","getProperties","setProperties","correctSeriesCount","setSelectedKpis","kpiIds","allKpisInStore","setSelectedAccounts","accountIds","allAccountsInStore","setSelectedEntityGroups","entityGroupIds","allEntityGroupsInStore","setSelectedEntities","entityIds","allEntitiesInStore","setAccounts","depth","selectedMetric","kpi","dashboardModule","selectedSeries","includeCurrentEntity","entityGroup","advance","back","prev","withoutSaving","savePromises","model","updateEntityGroups","_newSelection","operation","updateEntities","updateKpis","updateAccounts","toggleIsDeleting","delete","toggleTree","cache","isEditing","updateMetrics","visualiser","subtract","linkDashboardModuleToAccounts","linkDashboardModuleToKpis","linkDashboardModuleToEntities","linkDashboardModulesToEntityGroups","includeCurrent","loadBalances","getMetrics","loadKpiValues","setMetrics","err","responseJSON","attemptToCorrectPermissionsError","periodTypes","hasData","payload","periodStart","periodEnd","cacheKey","merge","cached","lookup","loadGroups","disallowedGroups","detail","match","startingLength","toggleIsEditing","_makeTempId","modules","tree","spare","saveModulePositions","resizeEvent","createEvent","initEvent","dispatchEvent","$dashboardModules","later","each","section","dataset","moduleId","positionX","positionY","checkRowCount","$section","put","makeNewRowsSortable","component","nativeSortable","animation","pull","onSort","onAdd","onRemove","createModule","getEntity","includeCurrentBranch","isNewModule","finally","deleteModule","col","saveModsToRight","m","_dateInput","elementId","isTarget","hasTarget","focusDateInput","selectAndDeactivate","handleDateInput","toggle","today","didReceiveAttrs","setupAttrs","startDate","endDate","daysFromCenter","round","diff","center","dateString","isPicking","isThisYear","isSame","isSameYear","applyFilter","closeDropdown","onApply","thisWeek","calendar","startOf","calendarSelect","lastWeek","thisFortnight","lastFortnight","thisMonth","lastMonth","didOpen","willClose","range","changeCenter","currentFile","isDragAndDropVisible","emptyContent","isDelete","tableData","removeAttachment","filteredFiles","shortcutsToMime","image","archive","validationError","fileName","fileContainersForUpload","onDragLeave","isDropHover","onDragOver","processAttachments","DragSortListComponent","eachKey","containers","DSLContainer","buildContainers","list","setDraggedContainer","draggedContainer","sourceId","targetId","sortAction","onUpdate","newContainerList","unwrap","coordinates","containerList","clone","sourceCoordinates","c","targetCoordinates","sourceContainer","targetContainer","sourceList","sourceIndex","splice","targetList","targetIndex","newContainer","_buildContainers","prefix","dslId","DragSortListChildrenComponent","DragSortListDragHandleComponent","cursorClass","disableDragging","isDragging","DragSortListDraggableComponent","isDraggingOntoSelf","isDraggingInsideSelf","onDragStart","setData","onDragEnter","cursorYPos","originalEvent","pageY","elementTop","currentTarget","documentElement","elementHeight","offsetHeight","heightOffset","third","inTopThird","inBottomThird","inMiddleThird","isDroppingAbove","isDroppingInto","isDroppingBelow","onDrop","getData","onDragEnd","_durationInput","formatDuration","duration","handleFocus","selectOnFocus","requestAnimationFrame","handleBlur","rawValue","parseDuration","onDurationChange","couponCode","calEducationCouponCode","_positionedContainer","_basicDialog","_inPlaceDialog","_liquidDialog","_liquidTetherDialog","_tetherDialog","_overlay","_emberWormhole","parentNames","allowedEntities","aString","bString","localeCompare","hasParentColumn","filteredEntities","changeEntity","setProjectedRemaining","hours","manHoursProjectedTotal","manHoursActual","setProjectedRemainingTotal","costCenter","_faIcon","change","_basicImporter","baseParser","baseParserComponent","importObserver","importing","_ember","_fileField","reader","FileReader","sanitizedText","Papa","skipEmptyLines","newline","complete","readAsText","testing","onload","_dec","testMimes","tm","mime","doc","docx","pdf","ppt","pptx","rtf","xls","xlsx","extensionToMime","audio","video","defaultSize","hasBackgroundImports","canMap","setHasImported","selectedSystemDidChange","hasClass","optionsTemplate","system","unmapped","resetImport","remap","invertMap","setSelectedSystemValue","matchedSystem","systems","sys","selectSystem","manualUpdate","balance","revertToAuto","toggleConfigPane","colsPerGroup","totals","plBs","drCr","month","ytd","continuous","toggleShowChildren","toggleShowBreakdown","toggleFilter","valueWithUnit","suffix","emptyPlaceholder","currencyValue","formatterOptions","isUpdating","formatter","val","parseNumber","editRawValue","formatClassName","isZero","doWarnForZero","warnOnZero","displayFormattedValue","handleInput","handleFocusIn","handleFocusOut","isNaN","parsed","parserOptions","defaultValue","wasUpdated","_fromElsewhere","_banklink","_empower","_frameworks","_gjGardner","_itmManual","_maxim","_myobAo","_myob","_prostix","_rees","$fileInput","$fileInputClone","replaceWith","xeroIntegration","getXeroBalances","financialPortalPeriodSelector","_xeroCsv","GoogleMapComponent","registerControl","pendingControls","attachControls","pending","wrapper","controls","google","maps","ControlPosition","MutationObserver","classList","remove","disconnect","observe","childList","controlObservers","disconnectControlObservers","setupMap","lat","lng","radius","minRadius","maxRadius","hasLocation","zoom","clickableIcons","mapTypeId","MapTypeId","HYBRID","mapId","googleMaps","mapTypeControl","mapTypeControlOptions","TOP_RIGHT","clickListener","addListener","handleMapClick","mapListeners","marker","AdvancedMarkerElement","circle","Circle","strokeColor","strokeOpacity","strokeWeight","fillColor","fillOpacity","clickable","editable","radiusListener","isProgrammaticUpdate","newRadius","getRadius","isClamped","setRadius","onRadiusChange","centerListener","newCenter","getCenter","onClick","newLat","latLng","newLng","updateMap","panTo","currentCenter","latDiff","lngDiff","setCenter","currentMapRadius","setMap","fitMapToCircle","setZoom","getMap","bounds","getBounds","fitBounds","listener","removeListener","getAxes","GroupingSelectorComponent","gs","axes","onChange","noneOption","level","updatedValue","getOptions","remainingGroups","opt","isSelected","g","IconButtonComponent","sizeClass","onChangeIndeterminate","indeterminate","onScrollEventListener","scrollableParent","el","clientHeight","scrollHeight","isNearScrollBottom","currentPosition","lastTriggerPosition","onLoadMore","didInsert","maybeLoadOnInsert","prevHeight","newHeight","synced","exported","imported","_roundNumber","PAGE_SIZE","GenericTreeItem","addChildren","effectiveValueType","classKind","activeItem","resource","loadChildren","child","_isPristine","hasChildren","allChildrenLoaded","_indeterminate","hasChecked","hasUnchecked","checked","_checked","clearedUnloadedChildren","clearedChildrenTypes","costType","totalValue","directValue","link","_meta","invoiced","invoiceable","direct","effectiveValue","totalValueContractType","contractType","timesheets","quote","currencyFormatter","drop","projectsSortString","projectsSortKeys","tasksSortString","tasksSortKeys","timesheetsSortString","timesheetsSortKeys","billItemsSortString","billItemsSortKeys","loadProjectsFromEntity","formatCurrency","timesheet","glAccountFilter","projectLinks","allocationDate","allocationDateIso","originalAllocationValue","linkValue","linkedProjectIds","tries","loadMoreTask","loadMore","invoiceItemChangeset","allocatorWarning","invoiceItem","firstItem","onSave","getSelectedItems","clearedChildren","invoiceItemTotalsContractType","projectsFilter","loadProjects","tasksFilter","loadTasks","notLinked","hasBills","numberOfResources","hasBillItemsValue","fullyLinked","partiallyLinked","billsCategory","loadBillsFromProject","hasTimesheets","hasTimesheetsValue","hasBillsValue","timesheetsChecked","timesheetsIndeterminate","timesheetsCategory","loadTimesheetsFromTask","billItemsChecked","billItemsIndeterminate","loadBillsFromTask","timesheetsFilter","loadTimesheets","billsFilter","loadBills","fetchAllocation","totalsByProjectIdRequest","projectLinksByProjectIdRequest","getInvoiceItemTotals","taskId","timesheetId","billItemId","totalsByProjectId","projectLinksByProjectId","loadParentTasksFromProject","taskIds","totalsByTaskIdRequest","taskLinksByTaskIdRequest","totalsByTaskId","taskLinksByTaskId","loadChildTasksOrCostsIndexFromTasks","timesheetIds","totalsByTimesheetIdRequest","timesheetLinksByTimesheetIdRequest","totalsByTimesheetId","timesheetLinksByTimesheetId","firstName","lastName","billItemIds","totalsByBillItemIdRequest","billItemLinksByBillItemIdRequest","totalsByBillItemId","billItemLinksByBillItemId","invoiceItemValidator","projectsCategory","hasStagePayment","firstLoad","toUpperCase","setHours","allocationValue","checkedProjectCount","formatted","getVal","effectiveSalesGlAccount","findSalesGlAccount","projectSalesGlAccount","taskSalesGlAccount","selected","itemHasValue","shouldCheckAllocationValueMismatch","isSyncingAllocationValue","selectedAllocationValue","isUnitPriceChanged","hasAllocationValueMismatch","itemSubtotal","useOriginalAllocationValue","isAllocationValueChanged","allocationMisMatchValue","warningText","onUnitPriceChange","editDisabled","saveItem","allocationDisabled","numberFormat","minutes","displayMinutes","str","getItems","onChangeSalesGlAccount","taxRate","taxRateIsPristine","onSelectContainer","existingIndex","onCheckboxClick","useAllocationValue","onChangeAllocationDate","onChangeContractType","onChangeAllocationType","round2dp","addItem","InvoiceFile","arr","winner","score","projectsSearchTerm","projectsPage","projectFilter","invoiceFile","projectChangeSet","invoicesMap","tax","to","invoices","nonUniqueInvoices","failedInvoices","contactNames","toContact","invoice","savedInvoice","gst","onUploadInvoices","setProject","invoiceFileItems","projectValidator","IpsUploader","upload","uploadResult","ips","uploadPdf","IpsUsage","chargebee","openIpsAddonCheckout","usage","latestUsage","alertOnly","used","limit","remaining","notches","isMetered","hasActiveTerm","allowanceRemains","isBlocked","isNearLimit","alertKind","showAlert","ready","dismissedAlert","dismissAlert","showMeter","caption","addonAvailable","canUpgrade","showAdminPrompt","rebuildScopeFromContainer","onSelectedItemChange","selectedScope","clearScope","first2Scopes","last2Scopes","currentContainers","searchContainers","matchedContainers","findContainer","nameKey","unshiftContainerToScope","checkAllItemsForParent","goIntoContainer","goToContainer","focusInput","LabelPopupComponent","ensurePortalTargetExists","getElementById","portalDiv","body","appendChild","destinationElement","showPopup","isShowing","hidePopup","registerContainer","containerElement","registerPopup","popupElement","setupPositioning","updatePosition","capture","containerRect","popupRect","rightEdge","maxRight","teardown","className","defaultSelector","elementIdentifier","automatic","increment","itemDisplayName","windowSelector","numberOfItemsVisible","scrollHandler","initialNumberOfItemsVisible","checkVisible","findLastElement","allItemsAreDisplayed","nextIncrement","itemsRemaining","lazyLoadedItems","renderMore","shouldWarn","querySelectorAll","pop","screenHeight","bottomOfElement","offsetTop","_linkToExternal","_loadingButton","isDisabled","isDisabledComputed","minHeight","exitLoginAs","empty","appendTo","draggable","cursor","revert","opacity","_sortByAccountCode","canInvertValues","shouldShowInvert","hasSelectedSystem","mapList","droppable","hoverClass","tolerance","ui","_mapList","ok","wasClicked","makeAuto","_markdownToHtml","accountType","selectedGroup","formattedStyle","PERCENTAGE","NUMBER","CURRENCY","periodTypeOptions","members","memberEntities","member","includesSomeClaimsAboutEntity","tableColumns","sortedValues","maintainSortOrder","loadData","reportType","metricId","loadReport","prepareReport","extractFigures","periodValue","average","standardDeviation","sqrt","maximumSignificantDigits","maximumFractionDigits","regions","class","Infinity","deviation","padding","point","chartData","entityName","Difference","Actual","modalToggle","operationsSection","operationsTab","tabs","ot","sections","routes","route","sup","reportsSection","reportsTab","adminConsoleIsActive","currentRouteName","goBack","backRoute","logout","_modalDialog","defaultModalDialogClass","ModalDialog","_initEscListener","scheduleOnce","_captureModalPosition","_boundCloseOnEscapeKey","modalElements","getElementsByClassName","modalIndex","modalElement","closeOnEscapeKey","blur","canUsePositionReports","canUseLabourHourReports","canUseClientReports","showSummaryTitle","canUseQuoteReports","canUseCostReports","canUseBudgetReports","canUseForecastReports","canUseProfitMarginReports","canUseChargeupReports","canUseInvoicingReports","canUseAccessReports","showBreakdownTitle","canViewIntegrationsTab","peopleSection","excludesFeatureFlags","includesSomeFeatureFlags","companySection","estimateSection","selectedMonth","substr","selectedYear","year","yearList","isBefore","changePeriod","updated","prevYear","prevMonth","nextMonth","nextYear","firstScopes","lastScopes","onSearchInputKeyUp","onSearch","_multiSelectableTreeItem","constructItemTreeFromTasks","selectedTasks","newIsEnabled","_isChecked","setIsTaskSchedulingOnChildren","isChecked","clearItems","checkAllChildSelected","_multipleFromElsewhere","_multiselectCheckboxes","newStatus","timesheetStatus","taskChildren","getAllActiveChildren","updateTaskList","readOnly","onIsDroppingInto","dsl","hasTimeout","isCollapsed","expanded","showProductIcon","allActiveChildren","toggleExpanded","focusTaskNameInput","onNameButtonClick","saveNewTask","toggleTaskActive","disableActions","_toggleTaskActive","hasInactiveParents","onTaskNameInputKeypress","validateAndProcess","noop","initComboBox","inputElement","debounce","thisSearchTerm","showDropDown","lastLoadedSearchTerm","setDropdownVisible","rowTop","rowHeight","containerHeight","containerScrollTop","keyup","onSelect","destroySearch","onChangeSearch","showDataList","optionKeys","newSupplierIsBeingUpdated","_template","typeClassVariant","notification","notificationClearDuration","htmlSafe","registerElement","crumbStack","lastCrumb","onClickRow","rowData","onClickCol","onInputChange","pageSizes","tableDataLength","totalRecords","showPagination","hidePagination","pageIndex","toRow","setSkeletonTable","tableHeader","skeletonColumnNumber","skeletonRowNumber","lastPageIndex","fromRow","scrollToTop","scrollTo","onChangePageSize","goFirstPage","onChangePageIndex","goLastPage","goBackPage","goNextPage","PdfExportTimesheetRow","indentStyle","onCopyAuthCode","copiedItemId","columnCountArray","getPeriodicTotals","getContinuousTotals","sumDrCrValues","multiplier","extractAccountValues","debitCredit","periodic","numPeriods","periodData","pmIntegrationEnabledOptions","autoSync","_autoSync","pmIntegration","updateOption","integrationOptions","discoverSettings","accountvalue","branchvalue","_accountvalue","_branchvalue","placemakers","baseURL","syncPriceBookNow","products","wasAuthenticationError","initialize","initiatePMConnection","onItemClick","activeElement","fixed","calculatePositionFixed","contentClass","contentRect","contentStyle","contentOuterWidth","contentOuterHeight","borderTopHeight","borderBottomHeight","calculatePositionAbsolute","containerStyle","containerWidth","containerLeftPadding","containerRightPadding","containerTopPadding","containerBottomPadding","closest","initPosition","disableBlur","handleOffsetChange","$element","$parent","$scrollDiv","scrollDivClass","shouldRenderAboveParent","scrollOffset","marginTop","css","onDidInsert","onClickListener","offsetListener","resizeObserver","ResizeObserver","onWillDestroy","isFocusedWithin","composedPath","_powerCalendarMultiple","_days","_powerCalendarRange","_powerCalendar","_nav","_powerSelectMultiple","_input","_trigger","_powerSelect","_beforeOptions","_label","_noMatchesMessage","_options","_placeholder","_powerSelectGroup","_searchMessage","BUILDAPRICE_URL","buildaprice","sessionId","encodeURIComponent","fileFormats","onFileUpload","owner","debounceTimeMs","validateLength","productId","product","productTable","isSelectingFromExistingProducts","getProductPrices","priceList","unitData","portalApiV2","authGet","pagination","unitList","productChangeSet","productValidator","productList","productFilter","recordPageSize","productsCurrentPage","hasNextProductPage","skuList","skuFilter","skuCurrentPage","hasNextSkuPage","supplierList","supplierFilter","suppliersCurrentPage","orderBy","orderByDirection","hasNextSupplierPage","onSaveProduct","getSku","getSuppliers","suppliers","fromInit","supplierName","sku","prices","supplier","price","initComponent","setProduct","setSupplier","setUnit","setPrice","supplierChangeSet","getProducts","orFilters","andFilters","filters","sortDirection","suppliersSearchTerm","suppliersPage","productHeader","iconName","sortColumn","colClass","onAddProduct","isAddingProduct","productTableData","rowClass","_row","TakeoffFile","takeoff","noDescriptionProductIndex","columnsIndex","saveTarget","gtin","manufacturer","authPut","onUploadProducts","takeoffItems","uploadProducts","supplierValidator","labourPercentage","profitMargin","additionalLabourMargin","materialsPercentage","subcontractorsPercentage","sumsPercentage","labourIsOverridden","additionalLabourIsOverridden","materialsIsOverridden","subcontractorIsOverridden","sumsIsOverridden","togglePercentageOverride","profitMarginModel","fieldName","duplicateProjectChangeset","duplicateProject","validateBool","openDuplicateProjectModal","projectName","copyBudget","copyQuote","copySchedule","copyProducts","copyPeople","routeName","node","paramNames","showSelector","routeWillChangeHandler","formattedDate","_formattedDate","formattedDateTime","_formattedDateTime","er","validationHidden","forceValidationVisible","hasBlurred","updateSelector","validateDependantValues","dependantValidationKeys","onFormattedInputUpdate","safeValue","onRadioInputChange","onDateInputChange","onDurationInputChange","onCheckBoxChange","onPowerSelectorChange","_onRichTextChange","html","validateProduct","productsSearchTerm","productsPage","selectedSupplier","searchProducts","onCreateProduct","onProjectChange","selectedTask","groupedProjects","output","groupBy","OPEN","groupName","HELD","taskErrors","onTaskSelect","openTaskSelector","_chunkCallback","changeSet","selectedTaskIds","isCreatingProduct","taskProductIds","activeTasks","orderQty","remainingQty","orderedQuantity","breadcrumbs","taskProduct","pristineProducts","textClass","onChangeOrderQty","extraData","onClickButton","addOrderQty","canAddProducts","canUseTasks","canManageProducts","removeProjectFilter","removeAllTaskFilters","removeSelectedTask","showTaskPopUp","filteredSelectTasks","setSelectedTasks","hasOrderQuantity","orderQuantityIndex","_radioButton","_internals","guidFor","_emberLocalStorage","storageFor","referralPromotionIsDismissed","persistedSettings","userEmail","email","encodeURI","openPromotion","openDismissModal","dismissModalVisible","confirmReferralPromotionDismiss","_dec2","_dec3","_dec4","_dec5","_dec6","tableIsHeightConstrained","heightClass","widthClass","borderClass","borderStyle","classes","filterData","filteredData","tableIndex","cell","filterValue","hasValue","badge","initField","badgeIndex","titleIndex","subtitle","subtitleIndex","bodyIndex","attachmentsIndex","linkOne","linkOneIndex","am5","_radar","_xy","_am5BpTheme","axesData","_aLabel","aValue","_bLabel","bValue","valueData","axisMax","valueTitle","valueValue","valueMax","includeOverrun","includeLabels","overrunPercent","offsetWidth","maxLabelWidth","root","Root","setThemes","currency","percentageNumber","region","numberFormatter","minimumFractionDigits","chart","RadarChart","panX","panY","startAngle","endAngle","verticalLayout","axisRenderer","AxisRendererCircular","innerRadius","percent","labels","template","xAxes","ValueAxis","maxDeviation","strictMinMax","extraMax","renderer","lastValue","axisRange","createAxisRange","makeDataItem","endValue","setAll","tooltipText","fill","oversizedBehavior","fontSize","overrunRange","interfaceColors","radarContainer","Label","centerX","textAlign","centerY","clockHandDataItem","clockHand","ClockHand","pinRadius","bottomWidth","AxisBullet","sprite","groupValue","_percent","showLegend","d","PieChart","PieSeries","valueField","categoryField","states","category","slices","Legend","marginBottom","dataItems","onChangeSort","currentSort","currentRowIndex","sortedProjectsData","sortOrder","valueA","valueB","rowLength","thead","tfoot","hovered","firstVisibleRowIndex","noDisplayClasses","linkTo","linkToModels","models","upperLimit","lowerLimit","showPositiveNegativeIndicator","formattedPgDuration","days","seconds","stringParagraphs","openImgUrl","_worker","_task","MAX_FILE_SIZE","ALLOWED_MIME_TYPES","TimesheetGroup","groupingAttr","groupingValue","rate","labelKey","getSortIndex","createGrouping","attrs","sortTimesheetGroup","createNonRootGrouping","remainingAttrs","timesheetsKeyedByAttr","ts","console","warn","existingForKey","tsGroup","sortedChildren","ReportExporterComponent","alias","useProRata","marginType","proRataCoefMaterials","computedTotals","markupPercent","proRataCoefLabour","proRataCoefSubcontractors","subcontractor","entityDefaultOptions","isEntityDefault","optionsRecord","companyLogoUrl","introduction","footnotes","materialsDetail","projectTimesheetsDetail","labourInvoicesDetail","subcontractorInvoicesDetail","formatBytes","maxSize","logoUrl","uploadLogo","keepLatest","loadOptions","formData","FormData","append","fetch","json","normalisedTimesheets","workers","useChargeOutRates","worker","timesheetsForWorker","selectedTimesheets","day","valueOf","currentChargeOutRate","chargeOutRate","costRate","existingEntry","groupedTimesheets","labourInvoicesTotal","labourInvoices","inv","selectedTotalPrice","clearLogoSelection","setOption","resourceType","resourceId","eventData","getEvents","hasNextEventPage","onClickUserName","workerId","onArgsChange","sortDateCreatedColumn","historyEventsTableHeader","historyEventsTableContent","formatDate","dateCreated","personName","RichTextEditorComponent","editorHeight","injectQuillAssets","Quill","script","src","rootURL","onerror","head","setupEditor","quill","theme","scrollingContainer","toolbar","align","innerHTML","textChangeListener","blurListener","onBlur","_searchSelect","updateKeys","k","getDisplayName","didRender","clearInputOnFocus","_keys","setSelectedRow","sendAction","clearValue","_item","displayName","onLoad","lastSuccessful","valueString","modelKeyValue","noDataQueryValue","initialSearchTerm","showNoDataRouteAction","showNoDataRouteWithResults","noDataRoute","showNoDataAction","showNoDataActionWithResults","noDataAction","initList","toggleShowPopUp","hadSearchTerm","showPopUp","lastElement","runNoDataAction","removeSelectedItem","selectedValue","toggleCollapsed","mobileMenu","closeMenu","closeMobileMenu","orgSelectorOpen","displayWords","words","columnLength","_sortableList","property","sortedContent","li","isLinkedInOtherStages","allStageLinkedTasks","currentStagePayment","onProgressTaskUpdate","percentage","completionPercentage","existingCompletionPercentage","defaultCompletionPercentage","directTask","finishedTask","isDirect","isCompleted","progress","reset","selectTaskOnChildren","completionPercentageHasChanged","selectTask","newIsSelected","TaskContainer","isEveryChildSelected","checkChildren","isSomeSelected","stagePayment","latestStagePaymentTasks","largestLinkTaskToStagePayment","spt","activeChildren","currentStageLink","progressVersionValues","getProgressVersionValues","groupStageLinkedTasks","obj1","currentStageLinkedTasks","obj2","progressValue","pv","taskContainers","saveStagePaymentTasks","getStagePaymentTasks","initTaskContainers","addBreakdownLine","monthValue","ytdValue","targetPercentage","personResponsible","targetDate","removeBreakdownLine","toggleBreakdownVisibility","purgeEmptyBreakdownLines","notMapped","computedName","editInvoice","expandedByDefault","setExpanded","pageTitle","activePage","uploadPage","assignPage","mapItems","onLoadTakeoff","assignCrumbStack","mapCrumbStack","onMappingComplete","onFileClear","onAssignCancel","takeoffFile","onAssignComplete","mapPage","_mathjs","_dec7","_dec8","_dec9","_dec0","_dec1","_dec10","_dec11","_dec12","_dec13","_dec14","_dec15","_dec16","_dec17","_dec18","_dec19","_dec20","_dec21","_dec22","_dec23","_dec24","_dec25","_dec26","_dec27","_dec28","_dec29","_dec30","_dec31","_dec32","_dec33","_dec34","_dec35","_dec36","_dec37","_dec38","_dec39","_dec40","_dec41","_dec42","_descriptor26","_descriptor27","_descriptor28","num","sig","evaluate","eq","parsePercentage","original","calculateQuoteValue","profitType","TakeoffItem","computedItemTotal","labourHoursRatio","labourHoursTotal","labourRatio","labourTotal","materialsRatio","materialsTotal","subcontractorsRatio","subcontractorsTotal","sumsRatio","sumsTotal","valueTypes","translations","isLabourHours","valueType","computedTotal","computedTotalRemaining","computedTotalUsed","computedTotalUsedRemaining","fileHasProfitMargin","isFinite","valueTypeExplainerMessage","canBeAssigned","contingency","valueInputKeys","generalInfoMessages","formattedTotal","generalErrorMessages","effectiveProfitMargin","margins","labour","budget","materials","subcontractors","sums","effectiveLabourMargin","effectiveMaterialsMargin","effectiveSubcontractorsMargin","effectiveSumsMargin","manHoursBudget","labourBudget","materialsBudget","subcontractorsBudget","sumsBudget","totalBudget","manHoursQuote","labourQuote","materialsQuote","subcontractorsQuote","sumsQuote","totalQuote","scrollToNextItem","collapsed","_initTakeoffItem","_extractAllocationTypeFromColumn","_column","scores","convertTaskTypeToEnum","taskType","enumMap","plant","milestone","internal","general","hasLabourHoursQuantity","contingencyPercentage","contingencyCurrency","stage","finalLabourHoursTotal","finalLabourTotal","finalMaterialsTotal","finalSubcontractorsTotal","finalSumsTotal","currentSumsRatio","onAllFigureTypeClick","invalidRowMessage","invalidRowIndexes","totalManHoursBudget","totalLabourBudget","totalMaterialsBudget","totalSubcontractorsBudget","totalSumsBudget","totalManHoursQuote","totalLabourQuote","totalMaterialsQuote","totalSubcontractorsQuote","totalSumsQuote","taskOptions","groupedTasks","takeoffItem","emptyTaskOptionsKey","loadProfitMargins","removeItem","rowNumber","onAllValueTypeClick","onAllAcceptItem","onAcceptItem","canEdit","onNameInputClick","internalId","itemValidator","onNameInputKeypress","MapItem","financials","taskMapItems","groupedTakeoffItems","parentTask","taskGroup","topMapItems","childTasks","childTaskTypes","childMapItem","uniqueMapItemTaskTypes","parentMapItem","newItem","taskTemplate","templateMapItem","addingTaskFromTemplate","loadItems","mapItem","childItem","_tasks","_getTasks","_initTakeoffItems","continue","getColumnsFrom2dArray","ignoreRegex","winners","bestRating","bestMatches","isCurrency","bestTypeMatched","breadcrumbString","generateBreadcrumb","taskNameTree","addTask","showProject","maxStringLength","maxLength","localTaskNameTree","layers","lastElementLength","frontElementsLength","estimiateAverageStringLength","shortestString","displayFunction","layerMapper","bool","display","layer","childrenDepth","depthArray","canManageTaskProgress","setItemProgress","setForecastValue","latestVersionProgress","onProgressRangeInputChange","onProgressInputUpdate","hideInactiveTimesheetTasks","excludedTasks","saveNewTaskTemplateItem","_taskTemplates","TaskTemplateItemContainer","_isDeleted","childItems","templates","taskTemplates","initItems","itemTemplates","parentItem","itemTemplate","newParentItem","defaultTaskTemplates","defaultTemplate","newTaskTemplateItems","taskTemplateItems","selectedTaskTemplate","addTaskTemplateItemToList","taskTemplateId","updateTaskTemplate","unloadAll","fetchOptions","onSelectTaskTemplate","initTaskTemplates","deleteSelectedTemplate","saveSelectedTaskTemplate","isDefaultTemplate","canDelete","createNewTemplate","newItemContainer","onCopyExistingTasks","createTaskTemplateItems","taskList","parentItemContainer","parentTasks","isTaskSelectorOpen","closeTaskSelector","onSelectTask","onAddItem","setIsTaskScheduling","isSchedulingEnabled","saveNewItem","isEveryChildSchedulingEnabled","isSomeChildSchedulingEnabled","_isSchedulingEnabled","newTasks","responseText","initProject","firstProject","templateOptions","fetchTemplateOptions","toTree","selectProject","saveAndImportTasks","selectTaskTemplate","addTasksFromTemplate","addItems","showNote","initShowNote","note","onTimesheetDelete","deleteTimesheet","newTask","setTask","toggleShowNote","dropdown","closeTimer","closeLater","isUsingAdminMode","settingsRouteIsActive","canSeeDashboardButton","allowedModules","canSeeModuleButton","_toElsewhere","UsageBar","notch","isAtLimit","barBgClass","segments","ValueChangeIndicatorComponent","useColor","increaseIsGood","positiveIcon","negativeIcon","_labourCostCalculatorFixtures","WorkerCostCalculator","selectedCalculator","defaultLabourCostCalculator","_labourCostCalculators","selectOrCreateDefault","workerCost","calculatedCost","payRate","extraCostPercentage","_workerCost","entityDefault","extrasRate","labourCostCalculators","newCalculator","createNewLabourCostCalculatorForRegion","labourCostCalculator","labourCostCalculatorItems","nzlLabourCostCalculator","nzlLabourCostCalculatorItems","ausLabourCostCalculator","ausLabourCostCalculatorItems","defaultLabourCostCalculatorItems","calculator","cancelEditing","toggleCalculatorProp","prop","deleteItem","addCalculator","clonedCalculator","workingHoursPerDay","workingDaysPerWeek","clonedItems","enabled","isSystem","setWorkerCost","costCalculatorUsed","calculatorVisible","onSetWorkerCost","_profitMargin","WorkerContainer","hasActiveAllocation","calculatePercentage","w","workerContainers","validateContent","wc","backdateChangeSet","chargeOutRates","portalApi","authPost","canApplyChargeOutRate","initWorkerProjectAllocations","saveAndApply","clearAllocation","setDefaultEffectiveMargin","calculatedValue","calculateValue","createAllocation","initBackdateChangeset","backdateMap","_controller","_default","entityAttributes","userAttributes","announcement","entityAttributeIds","userAttributeIds","requiredChargebeePlanIds","requiredChargebeePlans","excludedChargebeePlanIds","excludedChargebeePlans","validFrom","validUntil","chargebeePlanOptions","announcementChangeset","sortedChargebeePlans","basePath","_entityAttributes","_userAttributes","_requiredChargebeePlans","_excludedChargebeePlans","handleMessageChange","hasBuildaPriceFeatures","BUILDA_PRICE_PRESETS","hasFinancialPortalFeatures","FINANCIAL_PORTAL_PRESETS","hasEntityManagerFeatures","ENTITY_MANAGER_PRESETS","hasEntityUserFeatures","ENTITY_USER_PRESETS","setBuildaPriceFeatures","attributesToAdd","setFinancialPortalFeatures","setEntityManagerFeatures","setEntityUserFeatures","pageNumber","announcements","announcementsTableHeader","announcementsTableData","todaysDate","isCurrentlyVisible","onClickAnnouncement","hour","minute","hour12","locale","onChangePage","createNewAnnouncement","generateAdminBillingReport","siteId","site","isSameOrBefore","isSameOrAfter","_emailValidator","_platform","userValidationMap","phoneNumber","userChangeSet","newUserId","inviteUser","featuresChangeset","canUseBuildaPrice","canUseFinancialReporting","manageAttribute","openInviteUserModal","updateCompanyFeatures","brands","brand","BRANDING","entityBrandEnum","entityChangeset","buildaPricePermissionsCount","generalFeaturesCount","schedulingFeaturesCount","allocationsFeaturesCount","projectsFeaturesCount","reportsFeaturesCount","FinancialPortalPermissionsCount","showBuildaPriceFeatures","_showBuildaPriceFeatures","showFinancialPortalFeatures","_showFinancialPortalFeatures","noFeatures","clearAllFeatures","changeSetData","setAllFeatures","allFeatures","hasAllFeatures","canUseDashboards","canUseFileStorage","canUseHealthAndSafety","canUseClientPortal","canUseIPS","canUsePlaceMakers","canUseCarters","canUseSupport","canUseGeofencing","showGeneralFeatures","_showGeneralFeatures","canUseProjectFinancials","canUseProjectProgress","canUseCsvTaskFileUploader","canUseProducts","canUseEstimates","canUseStagePayments","showProjectFeatures","_showProjectFeatures","canUseWIPReport","canUseForecastReport","canUseProfitMarginsReport","canUseLabourHoursReport","canUseBudgetReport","canUseQuoteReport","canUseCostReport","canUseChargeupReport","canUsePositionReport","canUseInvoicingReport","canUseClientReport","showReportFeatures","_showReportFeatures","canUseTimesheets","canUseCrystalPayroll","canUseSmartPayroll","canUseKeypay","canUseNotes","canUseBills","canUseStatements","canUsePurchaseOrders","canUseInvoicing","showAllocationFeatures","_showAllocationsFeatures","canUseScheduling","showSchedulingFeatures","_showSchedulingFeatures","parentEntityOptions","goNewEntity","entityTableHeader","entityTableData","paginationData","onClickEntityName","cbPlanId","allEntities","searchExp","RegExp","offset","licenseeValidationMap","licenseeName","licenseeChangeset","customers","userList","usersCurrentPage","hasNextUsersPage","parentId","partnerName","customerIds","callback","app","appURL","partnerId","registerPartnerAjax","showCreateLicenseeModal","isFirstPageFetch","userFilter","fetchUsers","unclaimedEntities","entityIsPartner","licensees","customerNamesByLicensee","pid","licensee","customersList","onClickLicenseeName","setUser","includesClaims","newCustomersToAdd","partner","showAddNewCustomerModal","activeUser","selectedUser","sendPartnerInviteAjax","showAddNewLicenseeModal","removeCustomerFromLicensee","usersTableHeader","usersTableData","removeLicenseeUser","entityIsClaimed","parterEntityAttribute","handleWindowMessage","APP_ADDRESS","SERVER_REGISTRATION_ENDPOINT","SERVER_RESEND_EMAIL","SERVER_CHANGE_EMAIL","appAddress","newEmailIsValid","showNewEmailValidation","newEmail","registrationData","showChangeEmailModal","anyInvalid","showValidation","confirmEmailCode","cbHostedPageId","accepts","registrationComplete","customData","registrationError","passwordInvalid","passwordCheckInvalid","passwordCheck","userExists","openEmailChangeModal","closeEmailChangeModal","canUseLegacyBills","canUsePayroll","canUseReportBuilder","canUseInvoices","canUseDocuments","documentsSection","incomingSection","outgoingSection","topSeparator","canUseReportProjectPage","projectReportsSections","companyReportsSections","_download","_documents","makePaths","getTaskIds","matchedAttachments","matchedTasks","DocumentData","downloadAttachments","downloadUrl","documents","findHrefs","contents","zipBlob","getZipBlob","download","addAttachments","uploadModalVisible","archiveDescription","XMLHttpRequest","responseType","dashboardReport","matchedProjects","documentPath","attachmentResults","_csv","_placemakers","_xero","_carters","_mitre","_bunnings","_autoMap","quickbooks","queryParams","unallocatedOnly","filterByDate","searchText","filterByStatus","filterBySearch","startMoment","endMoment","isAfter","fieldValue","jsFilterByDate","jsEndDate","savedDate","jsStartDate","invoiceResponses","invoiceTypeResponseHandlerVisible","doNotWarnForUnmappedInvoice","allInvoicesSelected","showBadgesColumn","selectedInvoices","groupedInvoices","groupsMap","condensedView","setCondensedOnInit","isXeroLoading","isQuickbooksLoading","isAllocating","isAllocatingAndAccepting","isAllocatingAcceptingAndSendingToXero","invoiceDeleteConfirmModalVisible","unmappedInvoiceWarningModalVisible","unmappedInvoicesToConfirm","parsers","xero","carters","mitre","bunnings","importedInvoices","hasWriteLevel","selectedInvoiceItems","isSecondaryAllocating","_commitSearch","transitionToBill","onSearchInput","setDateRange","autoMapSelected","invoiceItems","successes","promises","autoMap","sendSelectedInvoicesToXero","unmappedPolicy","draftCount","be","sortedInvoices","sortXeroInvoicesForSending","unmappedInvoices","unsent","validResponses","sendBills","makeSendInvoicesToXeroOutcomeMessage","sendSelectedInvoicesToQuickbooks","sortQuickbooksInvoicesForSending","onInvoiceTypeResponseHandlerCancel","acceptSelectedInvoices","invoicesNotValidMessage","checkInvoiceIsValid","hasUnmapped","confirmInvoiceWarnings","acceptAndSaveInvoice","_postFilterBillsOnClient","archiveSelectedInvoices","archiveAndSaveInvoice","deleteSelectedInvoices","handleImportInvoices","existingInvoices","existingInvoice","importInvoices","newInvoices","it","allocateSelected","allocateAndSaveInvoiceItems","allocateAndAcceptSelected","allocateAcceptAndSendToXeroSelected","xeroMessage","updateXeroAccounts","getAccounts","created","removed","handleNewAccounts","handleUpdatedAccounts","handleRemovedAccounts","updateQuickbooksAccounts","handleNewQuickbooksAccounts","handleUpdatedQuickbooksAccounts","handleRemovedQuickbooksAccounts","toggleInvoicesSelected","changedInvoices","statusFilter","toRemove","_clearInvoiceItemsAllocation","_allocateInvoiceItemsToProject","_allocateInvoiceItemsToTask","sent","previouslySent","previouslyUnsent","prevSentCount","prevUnsentCount","makeSendInvoicesToQuickbooksOutcomeMessage","allDirectives","directive","originalStatus","uncheckInvoices","newAccounts","pushObjects","existingAccounts","existingRecord","reload","isAccepting","dirtyRels","deletedItems","isDueDateInvalid","isIssueDateInvalid","entityXeroCompanyId","references","issuerGroupedInvoiceItems","thisInvoiceId","obj","existingInvoiceItems","names","uniqueItems","nextInvoice","previous","issuers","allSelected","itemsCount","selectedCount","invoiceIsValid","setInvoiceIssuer","paymentTermSupplier","attachmentToBeDeleted","downloadAttachment","viewInvoiceInXero","xeroDeeplinkPath","viewBillInQuickbooks","quickbooksDeeplinkPath","setItemXeroAccount","setItemQuickbooksAccount","sendToXero","acceptedCreditNoteMessage","sendToQuickBooks","acceptInvoiceAndSendToXero","confirmUnmappedItems","acceptInvoice","acceptInvoiceAndSendToQuickbooks","nextStep","toggleSelectItem","invoiceWasNew","unmappedItems","invalidInvoiceMessage","saveInvoice","addObject","numberOfSaves","checkForNewSupplier","newSupplier","updateNewSupplier","_handleError","saves","updateSearchTerm","onFromDateChange","onToDateChange","humanReadableStatusPill","humanReadableBillTypePill","humanReadableAllocationTypePill","STATEMENTS_URL","statementReconciliationUrl","refreshIframeSrc","iframeSrc","buildIframeUrl","origin","handleEmbedAuthExpired","expires_at","canSubmitDocuments","TimesheetProjectMeta","TimesheetDayMeta","acceptingTimesheets","allGroupsSelected","selectedTimesheetStatus","filteredTimesheets","searchStrings","_timesheetNotes","_timesheetStatuses","selectedStatus","timesheetNotes","notes","buildKeyFromValues","timesheetStatuses","statuses","projectMetas","metas","sheet","existingMeta","dayMetas","projectMeta","existingDayMeta","timesheetNote","dayMeta","existingDay","Day","buildMetas","anySelected","nSelected","showForemanControls","toggleGroupSelected","wasSelected","jm","toggleGroupExpanded","wasExpanded","isExpanded","toggleGroupsSelected","wasAllSelected","acceptSelectedTimesheets","selectedDayMetas","_acceptTimesheets","_lockDay","acceptAndLockTimesheet","undoAcceptAndLockTimesheet","acceptTimesheet","undoAcceptSelectedTimesheets","undoAcceptTimesheet","dayLocked","totalTime","canBeForeman","isSelf","allTimesheetsAreDeleted","hasTasksToSelect","timesheetsAreAltered","isAccepted","allAccepted","orderedDayMetas","_timesheets","_selectedTasks","selectedWorker","selectedDate","timesheetsByProject","filteredProjectMetas","workerIsSelf","foremanFor","allProjects","canCurrentlyBeForeman","remainingProjects","usedIds","canAlwaysLogForWorker","setWorker","setNextProject","projectPromise","didGiveReason","_save","triggerAccept","didEdit","saveNote","allTimesheets","saveTimesheetStatuses","saveTimesheets","timesheetWasDeleted","newTimesheets","newTimesheetStatuses","_csvBuilder","_paginationCallback","invoiceType","completedInvoicesSearchTerm","completedInvoicesPage","completedInvoices","invoiceFilter","referencedInvoice","creditNote","createCreditNoteFromInvoice","creditNoteNumber","validateInvoiceNumber","validateInvoiceType","validateToContact","fromDate","invoicesInDateRange","buyerDetails","address","exportedItemsData","downloadCSV","showDownloadCsvModal","contactFilterModel","setFilterContact","clearFilterContact","invoiceOptions","nextInvoiceNumber","invoicePrefix","invoiceNumberIconName","toContactIconName","issueDateIconName","dateCreatedIconName","statusIconName","jsExportFromDate","jsExportToDate","columnName","setReferencedInvoice","invoiceChangeSet","setToContact","onChangeInvoiceType","typeOrEvent","selectedType","creditNotePrefix","nextCreditNoteNumber","currentInvoiceNumber","openNewInvoiceForm","invoiceValidator","invoiceValidationMap","isUnique","_validateInvoiceNumber","didCancel","setExportDateRange","clearDateRange","onUploadInvoiceCSV","_entityInvoiceOption","links","toContactId","invoiceItemIds","relatedInvoiceItems","relatedInvoiceItemIds","overlappingLinks","currentInvoiceItems","validateInvoiceItemsSafeToDelete","isEditingInvoice","invoiceEditButtonId","rollback","_invoiceItems","isDeletingInvoice","selectedItemIndexes","closeInvoiceItemEditor","itemsToDelete","getInvoiceBillAttachmentsZip","exportedData","fromDetails","contactDetails","taxValue","totalWithTax","lineType","invoiceOption","footerNotes","downloadExcel","downloadInvoicePDF","downloadInvoiceBreakdownPDF","invoiceBreakdownFileName","isRevertCompletedToDraftInvoice","setDownloadInvoice","viewInvoice","isCreatingCreditNote","invoiceId","invoiceInvoiceOptions","entityInvoiceOptions","firstGroupBy","labourDetail","subcontractorsDetail","timesheetDetails","includeLabourBillsProfitMargins","firstObject","includeMaterialBillsProfitMargins","includeSubcontractorBillsProfitMargins","includeTimesheetsProfitMargins","includeTimesheetsCostMargins","includeBillable","includeInvoiced","invoiceBreakdownOptions","getInvoiceBreakdownHtml","getInvoiceBreakdownHTML","breakdownNotes","showConfigureBreakdownOptionsModal","companyOptions","companyInvoiceOptions","defaultOptionsRecord","invoiceItemEditorHeader","currentInvoiceItem","canManageInvoices","invoicePermissions","canApproveInvoices","canManageFileStorage","invoiceActions","isInvoiceTotalInvalid","showConfigureBreakdownOptionsModalDialog","initInvoiceBreakdown","lastSortIndex","highestSortOrderItem","invoiceTotalError","relatedInvoices","relatedDocuments","viewRelatedDocument","totalFooter","itemTax","itemTableData","itemData","editInvoiceItem","selectItem","itemTableHeader","itemHeader","selectableInvoiceItemLength","ii","isPartiallySelected","onSelectCurrentPageItems","canManageOrApproveInvoice","canAllocate","canAddItems","currentDate","getFullYear","getMonth","getDate","subtotalWithTax","taxAmount","closeInvoiceEditModal","saveInvoiceItem","itemIndex","addInvoiceItem","goToSupplier","downloadAsCsv","downloadAsExcel","downloadAsPdf","exportOptions","downloadInvoice","sendInvoice","downloadBreakdownAsPdf","isDownloadingInvoice","propertyName","onChangeBreakdownOptionCheckbox","onToggleTimesheetMargin","thisKey","otherKey","onChangeFirstGroupBy","timesheetGroupingOptions","hasCompanyBreakdownOptionChanges","isEqual","_crystalCsvGenerator","_smartPayrollCsvGenerator","portalApiToken","isSyncingToXero","isSyncingToQuickbooks","skipDayLocking","activeWorkers","reportDays","workerTimesheets","workerStatuses","st","workerProjectStatuses","workersStatuses","workersTimesheets","existingProjectStatuses","unacceptedStatusesMessage","unacceptedDates","selectedWorkerId","filteredStatus","dateKey","unix","existingWorkerStatuses","existingWorkerDateStatuses","tasksByProject","projectsForWorker","workerQuery","workerReportRow","buildReportRow","projectQuery","projectReportRow","taskQuery","taskReportRow","payRateClashNote","reports","clashes","shiftDays","newStartDate","newEndDate","exportAsCSV","skipValidation","userName","canSeePayRate","headings","rowArray","acceptAndLockDays","exportAsCrystalCSV","workersWithComputedHours","fullName","getHoursByDay","crystalCSV","generateCrystalCSV","downloadCSVCrystal","exportAsSmartPayrollCSV","workerReportData","smartPayrollEmployeeCode","smartPayrollEmployeeDepartmentCode","dayTotals","totalHours","workerReportDataWithCodes","generateSmartPayrollCSV","includeBOM","quoteValues","exportForXero","selectedProjectId","responseData","createXeroTimesheets","completed","failures","failuresByWorker","successByWorker","workerSummaries","exportForQuickbooks","createTimesheets","exportAsExcel","payRollData","downloadXlsx","exportAsKeypay","filteredWorkers","keypayEmployeeCode","pay","calculateWorkForProject","startDateTime","endDateTime","workerIds","projectStatuses","taskBreadcrumbs","totalPay","dayInfo","projectStatus","addressList","validatePurchaseOrderNumber","purchaseOrderNumberValidator","supplierNameValidator","purchaseOrderOptions","purchaseOrderChangeSet","filteredPurchaseOrders","purchaseOrderNumberIconName","supplierIconName","dateOrderPlacedIconName","deliveryStatusIconName","nextPurchaseOrderNumber","openNewPOForm","purchaseOrderValidator","purchaseOrderValidateMap","setAddress","nextPoNumber","_validatePurchaseOrderNumber","supplierValue","taxFreightCharges","freightCharges","taxTotal","deletedPurchaseOrderItems","_purchaseOrderItems","isDeletingPurchaseOrder","newPurchaseOrderItems","isAddingProducts","latestUnitPrice","deliveredQuantity","buyer","seller","orderSubmittedDate","orderNote","requestedDeliveryDate","deliveryNote","deliveryAddress","purchaseOrderOption","downloadPurchaseOrderPDF","onSavePurchaseOrder","sendPurchaseOrder","includeAllAttachments","includeAllAttachmentsInSubmissionEmail","dateOrderPlaced","isApproveAndSendEmail","isSendEmail","canManagePurchaseOrders","purchaseOrderPermissions","canApprovePurchaseOrders","poActions","openApproveAndSendModal","openSendModal","showUpdatePriceButton","totalPriceFooter","supplierContactDetailsExists","contactEmail","onChangeUnitPrice","remainingQuantity","toFixNumber","toFixed","onChangeDeliveredQty","taskProductQuantity","onSelectProduct","productTableHeader","onSelectCurrentPageProducts","_p","canUseProjects","canManagePurchaseOrderProjects","sellerDetails","_items","groupPurchaseOrderItems","freightChargesWithTax","_reportBuilderAttachmentsBundle","_reportBuilderMarkAsReported","_reportBuilder","_reportBuilder2","markReportedOnExport","confirmMarkAsReported","markSelectedItemsAsReported","generateAndDownloadCsv","groupReportByCostCenter","includeAttachmentsOnExport","downloaded","reportData","materialInvoices","subcontractorInvoices","manualMaterials","manualTimesheets","manualSubcontractors","materialsMarkup","labourMarkup","subcontractorMarkup","groupedMaterialInvoices","groupInvoiceGroupsByTask","groupedSubcontractorInvoices","groupedLabourInvoices","groupedWorkers","newTimesheet","WorkerGroup","arg","getTasks","materialInvoiceGroups","subcontractorInvoiceGroups","labourInvoiceGroups","workerGroups","generateInvoiceTypeRows","getTimesheetTotal","marginTotal","generateLabourTypeRows","invoiceGroups","subcontractorGroups","timesheetGroups","invoiceSubtotal","sumBy","invoiceMargin","invoiceTotal","subcontractorSubtotal","subcontractorMargin","subcontractorTotal","labourInvoiceSubtotal","timesheetsSubtotal","timesheetsManHoursTotal","labourSubtotal","labourMargin","taskSubtotal","taskMargin","taskTotal","taskManHoursTotal","generateTaskTotalRows","generateManualTypeRows","manHoursTotal","margin","generateTotalRows","groupedItems","InvoiceGroup","manual","workerWrapper","totalWorkerHours","totalWorkerCost","workerCurrentChargeOutRate","timesheetTotal","generateAndDownloadXlsx","_portalApiToken","materialsSectionExpanded","labourSectionExpanded","subcontractorsSectionExpanded","CLOSED","manualLabour","invoiceProfit","invoiceProfitType","invoiceDollarProfit","generateDollarProfit","generateMargin","invoiceMarkup","generateMarkup","timesheetProfit","timesheetProfitType","timesheetDollarProfit","timesheetMargin","timesheetMarkup","subcontractorProfit","subcontractorProfitType","subcontractorDollarProfit","subtotals","manualInvoiceTotalPrice","invoiceTotalPrice","manualTimesheetTotalPrice","timesheetTotalPrice","labourInvoicePrice","timesheetTotalManHours","manualSubcontractorTotalPrice","subcontractorTotalPrice","allMaterialsSelected","invoiceWrapper","partMaterialsSelected","allTimesheetsSelected","partTimesheetsSelected","allSubcontractorsSelected","subcontractorWrapper","partSubcontractorsSelected","allLabourSelected","labourWrapper","partLabourSelected","setProfitType","groupKey","toggleItemsVisible","toggleTimesheetsSelected","toggleWorkersTimesheetsSelected","toggleTimesheetSelected","toggleMaterialsSelected","toggleSubcontractorsSelected","toggleLabourSelected","toggleTimesheetsReportedSelected","toggleMaterialsReportedSelected","toggleSubcontractorsReportedSelected","toggleResourceItemsSelected","toggleInvoiceItemSelected","addManualItem","newManualItem","deleteManualItem","downloadReport","setItemReportedFalse","setItemsReportedFalse","resetPageOverrides","profitKey","profitTypeKey","subtotalKey","profit","HTML_TO_PDF_SERVICE_URL","htmlToPdfService","isDownloading","htmlContent","outerHTML","includeMargins","Accept","blob","updateProductList","isEditingProduct","adapterFor","selectProductIds","isDeletingProducts","suppliersFilter","suppliersPageSize","deleteProducts","onClickProductName","selectedProductId","selectedProductIds","showFilters","productData","addressSuggestions","projectList","updateProjectList","projectChangeset","newProjectData","projectReference","openAndSave","closeNewProjectForm","openNewProjectForm","canManageProjects","projectModel","suggestion","latitude","longitude","filteredProjects","_pricing","merchant","newEstimateData","merchantList","pricing","getMerchantList","cdeptname","estimateChangeset","pricingMerchantId","pricingMerchantName","createPrice","newEstimate","estimates","onEstimateRowClick","PortalPricingError","editPrice","editingEstimateData","pricingJobId","estimateId","duplicatePrice","duplicateEstimateData","attachToProject","duplicatedEstimate","unlinkedEstimates","deletePrice","deletingEstimateData","estimate","importTemplateData","getImportStatus","canImport","getTemplates","merchantId","selectedUnlinkedEstimates","destroyImportUnlinkedEstimatesData","selectedTemplates","selectedTemplatesString","addTemplates","selectedTemplateIds","importMaterialsData","getPreloadedQuotes","quotes","selectedQuote","base64File","fileToBase64","importMaterialsFromFile","jobFile","jobFileName","jobFileType","importMaterialsFromQuote","quoteId","destroyImportMaterialsModal","createTasksFromEstimate","estimateForGenerateTasks","groupLabourAndMaterialBySubheading","groupSubcontractorsBySubheading","groupMiscByHeading","groupMiscBySubheading","groupOverheadBySubheading","groupOverheadByHeading","closeGenerateTasks","filteredEstimates","supportedFileFormats","openEditEstimateForm","closeDeleteModal","openDeleteModal","quoteNumber","readAsDataURL","showUnlinkedEstimatesDialog","groupMiscByItems","groupOverheadByItems","commit","commitBudget","commitQuote","commitProgress","commitScheduling","loadBudget","creatingBudgetVersion","loadQuote","creatingQuoteVersion","isLoadingBudget","createBudgetVersion","isLoadingQuote","createQuoteVersion","canManageBudgetVersions","canManageQuoteVersions","canManageProject","tabsArray","_client","canViewQuotesAttributes","canViewProgressAttributes","canViewFileStorageAttributes","canViewBudgetsAttributes","projectAttributes","taskAttributes","client","utas","uta","pa","ta","attributesToRemove","canViewBudgetFinancialReports","canViewBudgetReportsAttributes","canViewBudgetLabourHourReports","canViewBudgetLabourHourReportsAttributes","canViewChargeupReports","canViewChargeupReportsAttributes","canViewCostFinancialReports","canViewCostReportsAttributes","canViewCostLabourHourReports","canViewCostLabourHourReportsAttributes","canViewProgressReports","canViewProgressReportsAttributes","canViewQuoteReports","canViewQuoteReportsAttributes","canViewSchedulingReports","canViewSchedulingReportsAttributes","canViewTasks","canViewTasksAttributes","canViewInvoicingReports","canViewInvoicingReportsAttributes","canViewClientReports","canViewClientReportsAttributes","originalIds","_content","newIds","toAdd","handleAttributesForClients","permissionsChangeset","taskVisibilityOptions","canViewReports","allowedReports","projectPermissionsCount","projectPermissionsVisible","_projectPermissionsVisible","canSeeTaskVisibilityChecks","schedulingPermissionsCount","schedulingPermissionsVisible","_schedulingPermissionsVisible","reportsPermissionsCount","reportsPermissionsVisible","_reportsPermissionsVisible","_attributesToRemove","ar","existingAttributes","findAll","matchingExistingAttributes","ea","addToProjectAttributes","clientToAddToProject","clients","isAddingClientToProject","filteredClients","projectClients","unassignedClients","handleAttributesForSubcontractor","subcontractorToAddToProject","isAddingSubcontractorToProject","filteredSubcontractors","projectSubcontractors","unassignedSubcontractors","userIsYou","_user","_subcontractor","_subcontractor2","canManageBudgets","canManageBudgetsAttributes","canManageEstimates","canManageEstimatesAttributes","canManageProductsAttributes","canManageFileStorageAttributes","canManageProjectsAttributes","canManageQuotes","canManageQuotesAttributes","canManageSchedulingReports","canManageSchedulingReportsAttributes","canManageTasks","canManageTasksAttributes","canManageTimesheets","canManageTimesheetsAttributes","canViewBudgets","canViewProgress","canManageProgress","canManageProgressAttributes","canViewProducts","canViewProductsAttributes","canViewQuotes","canCreateHealthAndSafety","canCreateHealthAndSafetyAttributes","canManageHealthAndSafety","canManageHealthAndSafetyAttributes","entityCanViewBudgetReports","entityCanViewCostReports","entityCanViewChargeupReports","entityCanViewProgressReports","entityCanViewQuoteReports","entityCanViewBills","entityCanManageBills","entityCanManageTimesheets","entityCanViewTimesheets","entityCanViewBudgetLabourHourReports","entityCanViewCostLabourHourReports","entityCanViewInvoicingReports","allocationsPermissionsCount","allocationsPermissionsVisible","_allocationsPermissionsVisible","healthAndSafetyPermissionsCount","healthAndSafetyPermissionsVisible","_healthAndSafetyPermissionsVisible","userIsEntityAdmin","includesClaimsAboutEntity","canViewTimesheetsAttributes","canViewBillsAttributes","canManageBillsAttributes","entityCanManageProjects","entityCanViewTasks","entityCanManageTasks","entityCanViewBudgets","entityCanViewProgress","entityCanManageProgress","entityCanManageBudgets","entityCanViewQuotes","entityCanManageQuotes","entityCanViewProducts","entityCanManageProducts","entityCanViewFileStorage","entityCanManageFileStorage","entityCanViewSchedulingReports","entityCanManageSchedulingReports","entityCanManageEstimates","entityCanCreateHealthAndSafety","entityCanManageHealthAndSafety","handleAttributesForUser","userToAddToProject","isAddingUserToProject","filteredUsers","projectUsers","unassignedUsers","_user2","canViewAccessReports","canViewAccessReportsAttributes","canViewInvoices","canViewInvoicesAttributes","canManageInvoicesAttributes","canApproveInvoicesAttributes","canViewStagePayments","canViewStagePaymentsAttributes","canManageStagePayments","canManageStagePaymentsAttributes","canViewPurchaseOrders","canViewPurchaseOrdersAttributes","canManagePurchaseOrdersAttributes","canApprovePurchaseOrdersAttributes","handleAttributes","Access","entityCanViewAccessReports","entityCanViewInvoices","entityCanViewStagePayments","entityCanManageInvoices","entityCanManageStagePayments","entityCanApproveInvoices","entityCanViewPurchaseOrders","entityCanManagePurchaseOrders","entityCanApprovePurchaseOrders","_workers","handleWorkerProjectAttributes","workerToAddToProject","workerAttributes","isAddingWorkerToProject","projectWorkers","unassignedWorkers","workersToAddToProject","_workersToAddToProject","workersToRemoveFromProject","canManageWorkers","projectAttributesToAdd","_projectAttributesToRemove","projectAttributesToRemove","existingProjectAttributes","_worker2","canViewTaskAttributes","includesClaimsAboutProject","workerHealthAndSafetyAttributes","manageableProjectList","progressList","updateDraftProgressPosition","canCompleteTasks","makeTasks","isComplete","commitProject","showCommitProgressModal","saveDraftProgress","commitProgressVersion","numberOfChanges","countChanges","isDifferentFromLastVersion","canSeeCreateVersionButton","canSeeSaveDraftButton","findCanManageTaskProgress","pl","showTaskControls","latestVersion","currentProgressVersion","isDraft","tc","getTrackingCategoryOptions","storeTrackingOptions","xeroTrackingOptions","isDeletingProject","isArchivingProject","profitMarginChangeset","canManageProfitMargin","saveProfitMargin","clearAddressSuggestions","googleMapAddressFinder","loadProjectProfitMargin","projectClientsString","purchasesGlAccountIsOverridden","purchasesGlAccount","salesGlAccountIsOverridden","salesGlAccount","togglePurchasesGlAccountOverride","currentValue","defaultPurchasesGlAccount","toggleSalesGlAccountOverride","defaultSalesGlAccount","rad","setGoogleMapAddress","onClickMap","_descriptor29","_descriptor30","_descriptor31","_descriptor32","_descriptor33","stageNumber","isInteger","retention","newQuestion","currentChecklist","remainingQuoteValue","useValueFromTasks","allStages","quoteVersionValues","allStagesLinkedTasks","loadDataForEffectivePercentage","usedQuote","totalQuoteValue","linksByTask","effectivePercentage","calculateEffectivePercentage","currentTaskQuote","qvv","stagesCount","stagePayments","sortByDirection","stagePaymentsValues","numberOfStages","showCreateStagesModal","showNameEditor","showValueEditor","showDateEditor","invoiceLinks","selectedStages","joinedLinks","showBulkDeleteStagesModal","fixedValue","bulkActionsStageValue","showBulkActionsModal","_computedRemainingQuoteValue","stagePaymentOption","showProjectLevelContractTermsModal","downloadStagePaymentsPDF","includeTasks","includeCheckListItems","closeDownloadOptions","pageIsLoading","stagePaymentOptions","tableIsLoading","openNameEditor","openDateEditor","openValueEditor","selectedStagesValue","stagePaymentTask","showTaskSelectorModal","openChecklist","currentStageLinkedQuestions","showChecklistModal","onSelectAllStages","getSortIcon","payment","stageStatus","currentStageInvoices","completedTaskIds","pvv","completedQuestions","hasDueDate","hasTasks","hasQuestions","dueDateCondition","tasksCondition","questionsCondition","allConditionsMet","isReadyToBeClaimed","taskTooltip","checklistTooltip","badgeValue","badgeClass","popOverActions","primary","secondary","toggleStageStatus","claimAndInvoiceStage","constraintItems","deleteIndividualStage","sectionName","_col","onSelectStage","_bulkActionsStageValue","remainingQuote","remainingQuoteValueInContextWithStages","distributeRemainingQuoteAcrossStages","stagePaymentValidationMap","saveCurrentStage","preventNegative","showDownloadOptions","stagesFilter","quoteVersionValueFilter","linkTaskToStagePaymentsFilter","linkedTasks","stageLinks","allocationPercentage","tasksParents","currentTask","currentHierarchy","commonParent","stageId","_index","taskName","childrenLength","addTaskToList","firstTaskName","reloadTasks","newTaskList","getTasksFromItems","addTasksFromFile","_project","loadTaskChanges","newTaskContainers","_taskList","newTaskContainer","parentTaskId","parentTc","findParentTc","refresh","generatePathsFromTask","currentPercentages","newVal","oldVal","_changes","_oldVal","manHours","budgetChangeset","updateBudgetData","quoteChangeset","quoteData","draftBudget","updateQuoteData","hasDraftBudgetChanges","draftBudgetChange","hasDraftQuoteChanges","draftQuoteChange","hasBothDraftBudgetAndQuoteChanges","hasBudget","totalDraftBudgetManHours","totalDraftBudgetLabour","totalDraftBudgetMaterials","totalDraftBudgetSubcontractors","totalDraftBudgetSums","canManageProjectBudgetAndQuote","canManageProjectBudget","canManageProjectQuote","canManageBudget","canManageQuote","canViewBudget","canViewQuote","totalDraftBudgetCurrency","draftBudgetLabour","draftBudgetMaterials","draftBudgetSubcontractors","draftBudgetSums","totalDraftChildrenBudgetCurrency","childrenDraftBudgetLabour","childrenDraftBudgetMaterials","childrenDraftBudgetSubcontractors","childrenDraftBudgetSums","totalTotalDraftBudgetCurrency","totalDraftQuoteCurrency","draftQuoteLabour","draftQuoteMaterials","draftQuoteSubcontractors","draftQuoteSums","totalDraftChildrenQuoteCurrency","childrenDraftQuoteLabour","childrenDraftQuoteMaterials","childrenDraftQuoteSubcontractors","childrenDraftQuoteSums","totalTotalDraftQuoteCurrency","totalDraftQuoteLabour","totalDraftQuoteMaterials","totalDraftQuoteSubcontractors","totalDraftQuoteSums","totalProductCurrency","totalAmount","totalProducts","setMaterialBudgetFromProducts","budgetModel","openUpdateBudgetForm","budgetValueChanged","lineTotal","childrenDraftBudget","hasQuote","totalDraftQuoteManHours","openUpdateQuoteForm","calculateInitialQuoteValues","calculateInitialProfitPercentages","quoteValidationMap","validatePercentages","profitMarginChanged","quoteModel","expectedProfitType","childrenDraftQuote","quoteValueChanged","draftQuote","defaultProfitMargin","defaultPercentageValues","canManageTask","_client2","projectCanViewBudgetReports","projectCanViewCostReports","projectCanViewChargeupReports","projectCanViewProgressReports","projectCanViewQuoteReports","projectCanViewBudgetLabourHourReports","projectCanViewCostLabourHourReports","projectCanViewInvoicingReports","projectCanViewClientReports","taskPermissionsCount","taskPermissionsVisible","_taskPermissionsVisible","_parentTaskIds","getTaskId","projectCanViewTasks","includesClaimsAboutTask","projectCanViewBudgets","projectCanViewQuotes","projectCanViewProgress","projectCanViewFileStorage","projectCanViewSchedulingReports","addToTaskAttributes","handleAttributesForClient","clientToAddToTask","isAddingClientToTask","taskClients","subcontractorToAddToTask","isAddingSubcontractorToTask","taskSubcontractors","_subcontractor3","projectCanManageTimesheets","projectCanManageTasks","projectCanManageBudgets","projectCanManageProgress","projectCanManageQuotes","projectCanViewProducts","projectCanManageProducts","projectCanManageFileStorage","projectCanManageSchedulingReports","userToAddToTask","isAddingUserToTask","taskUsers","_user3","handleWorkerTaskAttributes","workerToAddToTask","workerTaskAttributes","workerProjectAttributes","isAddingWorkerToTask","taskWorkers","_workerToAddToTask","workerToRemoveFromTask","taskAttributesToAdd","_taskAttributesToRemove","taskAttributesToRemove","onChangeProductQuantity","dependencyTransferDestinationTask","taskToDelete","isDeletingTask","isDependencyTransferModalOpen","taskChangeset","loadTaskProfitMargin","contractTypeIsOverridden","taskHasDependencies","messages","subtaskNumber","availableDependencyTransferDestinationTasks","taskProject","selectDependencyTransferDestination","destinationTask","closeDependencyTransferModal","humanReadableContractType","effectiveContractType","toggleContractTypeOverride","taskModel","reportsDownload","pdfExportTargetId","pdfExportHideClass","landscape","scale","downloadAndSavePdf","saveResource","forecastTable","elements","_selectedDate","excludedProjectIds","_excludedProjectIds","_status","controllerDate","_controllerDate","excludedProjects","_excludedProjects","controllerStatus","_controllerStatus","hasFilters","removeFilter","filterStatus","onDateChange","csvOptions","reportElements","invoiceTable","tableName","csvExportOptions","updateSelectedDate","_csvOptions","elementType","isExportDisabled","toggleCsvOption","optionIndex","closeCSVExport","entityLevelReport","showDownloadButton","tbody","noteReport","selectedWorkers","getWorkers","selectedProjects","getProjects","setFilterByDate","dateRangeSelectorEndDate","dateRangeSelectorStartDate","removeAllProjectFilters","removeAllWorkerFilters","profitMarginsTable","wipReportTable","hasValueProjects","balanceDate","projectsData","attentionSafetyLogoSrc","ATTENTION_SAFETY","logo","budgetTable","projectPath","chargeupReport","quoteTable","projectLevelReport","taskLevelReport","o","costTable","showAllocationTypeFilter","allocationTypeLabel","setCostType","_filterByDate","labourHoursTable","updateStartDateInput","refreshReport","currentSelectedTaskIds","_gantt","_ganttLocaleZhCn","ganttChart","sync","stm","resetQueue","disable","enable","doAutoLoad","subjectEntityId","_this","canManageUsersAndWorkers","canViewUsersAndWorkers","canUseProgress","hidden","showAvatars","editor","picker","showCircle","taskMenu","cut","copy","paste","indent","outdent","onItem","taskRecord","language","LocaleManager","applyLocale","DateHelper","ProjectLines","Gantt","smoothZoom","visibleDate","scrollTaskIntoViewOnCellClick","animate","highlight","autoLoad","trackProjectSettings","listeners","loadStart","ganttIsLoading","loadFail","loadCanceled","autoRecord","recordingstop","redoCount","undoCount","restoringstop","queueReset","resetUndoRedoQueuesAfterLoad","silenceInitialCommit","autoCalculatePercentDoneForParentTasks","transport","mode","credentials","referrerPolicy","fillTicks","ganttFillTicksEnabled","subGridConfigs","locked","ganttTableCollapsed","ganttSubGridConfigsEnabled","normal","subGridCollapse","syncSubGridSetting","subGridExpand","showTaskColorPickers","features","cellEdit","addNewAtEnd","dependencyEdit","ganttDependenciesEnabled","ganttLabelsEnabled","criticalPaths","ganttCriticalPathsEnabled","nonWorkingTime","ganttNonWorkingTimeEnabled","columnLines","ganttColumnLinesEnabled","rollups","ganttRollupsEnabled","progressLine","ganttProgressLineEnabled","parentArea","ganttParentAreaEnabled","timeRanges","showCurrentTimeLine","cls","projectLines","percentBar","allowResize","rowReorder","pdfExport","exportDialog","orientationField","rowsRangeField","scheduleRangeField","exportServer","ganttExportServer","clientURL","translateURLsToAbsolute","sendAsBinary","taskEdit","generalTab","percentDone","effort","resourcesTab","advancedTab","constraintDateField","projectsById","selected_projects","projectIsSetting","onSetProjects","onSyncGantt","ganttChartIsVisible","manageableProjects","canUseImportAndManage","_ganttFillTicksEnabled","_ganttSubGridConfigsEnabled","subGrids","_ganttTableCollapsed","_ganttDependenciesEnabled","_ganttLabelsEnabled","_ganttCriticalPathsEnabled","_ganttNonWorkingTimeEnabled","_ganttColumnLinesEnabled","_ganttRollupsEnabled","_ganttProgressLineEnabled","_ganttParentAreaEnabled","toggleSetting","subGrid","onZoomInClick","zoomIn","onZoomOutClick","zoomOut","onCollapseAllClick","expandAll","onUndo","canUndo","undo","onRedo","canRedo","redo","onExpandAllClick","collapseAll","onShiftPreviousClick","shiftPrevious","onShiftNextClick","shiftNext","onZoomToFitClick","zoomToFit","leftMargin","rightMargin","onGoToTodayClick","onSearchChange","searchFilterRegex","searchValue","nbrDecimals","downloadPDF","showExportDialog","onTaskImportModalClose","reloadProject","initializeGanttChart","taskImportModalVisible","hasChargebeeSubscription","openChargebee","buildaPriceLogoSrc","BUILDA_PRICE","_nest","nestedAccounts","debitCreditMatchesParent","childAccounts","addLine","lastAccount","highestIndex","newAccount","isHeading","createAccount","cancelDelete","doDelete","parentAccount","remainingChildren","profitAndLossData","balanceSheetData","otherDataData","setAccountProperties","queuedSave","toggleDebitCredit","_dashboard","_editRecord","firstClosedPeriodLabel","firstClosedPeriodExplanation","openAllPeriods","setFirstClosedPeriod","firstClosedPeriod","firstClosedMonth","firstClosedYear","years","currentYear","months","_membership","propertyToToggle","noEditGroups","tableContent","branch","branchId","isInGroup","groupMembers","existingMember","canAccessGroup","accessItems","existingAccess","access","addNewGroup","deleteGroup","cancelDeleteGroup","confirmDeleteGroup","reason","saveGroups","saveLinks","saveAll","hasOtherData","otherDataAccounts","balanceCalculator","calcBalances","addValue","application","importController","editedMaps","stepName","multipleFiles","visibleSystems","selectedSystem","importSystem","entitySystem","switchSystem","getBranch","isConfiguring","unusedMaps","extBals","extBal","accountList","imp","balances","colspan","_getAccountDepth","importMaps","newMaps","externalId","mapRecord","importBalances","systemKey","previousSystemKey","newBalances","oldBalances","combineBalances","oldBals","newBals","newBalExtIds","oldBal","onEditMap","toggleEditing","toggleClass","currentId","oldMaps","oldMap","allMaps","mapsToSave","uniq","manBals","saveImport","saveMaps","currentStep","transitionToOnSave","transitionToOnDelete","_sortAccounts","monthVisible","ytdVisible","focusToggle","targets","breakdown","sourceValues","targetValue","actualValue","isBalanceTarget","isKpiTarget","showYtd","hasBreakdown","showBreakdown","monthTarget","computedValue","monthActual","monthDifference","computedDifference","monthArrowClasses","computedArrow","ytdTarget","ytdActual","ytdDifference","ytdArrowClasses","accountTargets","balanceTargets","untargetedAccounts","untargeted","kpiTargets","untargetedKPIs","checkingEmpty","arrayOfResults","addTarget","savedTarget","removeTarget","targetRecord","emptyLines","field1","field2","value1","value2","metricsKey","targetedKey","targeted","_generic","dataKeyPrefix","accountSettings","hideChildrenKey","canSeeBreakdown","colSpan","orderedEntities","initOrderedEntities","accountsSortedByEntity","applySetting","setting","hide","cloneDeep","sortByEntity","pageAsCSV","downloadSheet","existingSetting","togglePrintableTrue","groupNumber","shiftFarLeft","scopedEntity","otherEntities","hideChildren","csvBuilder","generateMetaDataRows","lastYearVisible","percentageVisible","profitAndLossTableVisible","selectedGroupIds","selectedGroups","selectedEntityIds","newUserData","financialsTableColspan","createNewUser","isItmPLInvite","createUserAjax","selectEntity","selectGroup","setProfitAndLossTableVisible","boolean","toggleYtdVisible","toggleMonthVisible","createRows","recurse","percentSales","percentParent","percentages","totalTitle","getPercentValue","repeat","monthPrev","ytdPrev","getSelectedItemName","entityNames","percentSalesHeadings","pAndLHeadingRow","pAndLContent","expensesHeadingRow","expensesContent","generateDataRows","interval","dateRange","age","durationOptions","intervalOptions","applyAccountSettings","intervalCount","linkToDetail","kpisSortedByEntity","groupId","currentStats","stats","chartPeriod","selectedPeriodData","periodDate","noData","watchchecked","goToModule","mod","outsideLink","slug","selectedDisplayOption","displayOptions","readyToDelete","deleting","showInvalid","referenceDirectives","openReferenceDirectives","closedReferenceDirectives","accountDirectives","openAccountDirectives","closedAccountDirectives","unusedAccounts","usedCodes","duplicates","duplicatesFound","isDuplicate","diplicatesPresent","directives","addDirective","kind","newDirective","unshiftObject","deleteDirective","showSyncIcon","isLinkedToActiveAccountingPlatform","disableForm","canEditGlAccounts","handleAccountsUpdated","handleAccountsRemoved","selectedAccountIds","isDeletingAccounts","onSelectAllAccounts","onClickGlAccountName","onSelectAccount","addNewGlAccount","loadedAccounts","validateEntityContent","businessNumber","companyLogo","lastLogo","updatedEntity","businessNumberLabel","taxNumberLabel","autoClear","toggleAdditionalLabourMargin","updateLogo","entityModel","previewImage","clearLogo","updateContacts","isContactLinkedToAccountingPlatform","onChangeSyncWithAccountingPlatform","createContact","aliasName","aliasNameInput","supplierChangeset","currentAliases","showAddAliasModal","isDeletingSupplier","aliasesTableData","removeAlias","aliasesTableHeader","canEditSupplier","saveSupplier","deleteSupplier","deleteSupplierDisabledTitle","isLinkedToResources","filteredAliases","closeAddAliasModal","duplicateSuppliers","getDuplicateSuppliers","mergeOptions","needDeleteSuppliers","selectedSupplierIds","isDeletingSuppliers","needDeleteXeroSuppliers","updateSupplierList","mergeDuplicateSuppliers","actionData","optionsIndex","mergeIndex","updateIds","selectableSuppliers","supplierTableHeader","supplierHeader","onSelectAllSuppliers","supplierTableData","isLinkedToAccountingPlatform","selectionDisabledTitle","supplierData","onClickSupplierName","viewContactLabel","onClickViewAccountingPlatform","contactPerson","contactNumber","onSelectSupplier","onDeletingSuppliers","xeroContactId","viewContactUrl","openMergeDuplicateSuppliersDialog","onMergeDuplicateSuppliers","onCheckingDuplicateSuppliers","closeDuplicateSupplierModal","hasDuplicateSuppliers","goNewSupplier","_ipsConnection","setEntityFeatures","getUsage","connect","stores","selectedItmStores","requestIntegrationAjax","itmSuppliers","statusText","xeroCompanyId","companyId","xeroCompanyName","companyName","shortCode","allowedXeroIntegration","quickbooksUrl","xeroConnection","connection","ipsConnectionValidator","eaccountsInvoiceIntegration","allowed","requestableItmStores","requestedItmStores","addItmStoreRequest","contactSupport","helpCenter","helpCenterActive","openHelpCenter","cancelItmStoreRequest","reconnectITmStoreRequest","inviteUserAjax","destroyAttribute","userChangeset","canManageUser","loginAs","entityAttributesToAdd","entityAttributesToRemove","workersToAdd","isCompanyAdministrator","administratorAttributes","canManageEverything","managerAttributes","canViewBills","canViewTimesheets","canViewProjects","canViewProjectsAttributes","canManageWorkersAttributes","canViewWorkers","canViewWorkersAttributes","canViewPayrollReports","canViewPayrollReportsAttributes","canEstimate","canManageEstimateSettings","canManageEstimateSettingsAttributes","canUseReportBuilderReport","canUseReportBuilderReportAttributes","canManageIntegrations","canManageIntegrationsAttributes","handleEntityAttributes","handleWorkers","workerCount","includesClaimsAboutWorker","canManageNotes","canViewNotes","settingsPermissionsCount","settingsPermissionsVisible","_settingsPermissionsVisible","canEditUser","canManageUserPermissions","_entityAttributesToRemove","existingEntityAttributes","existingWorkerAttributes","canViewUsers","canViewUsersAttributes","canManageUsersAttributes","canViewFinancialReporting","canViewFinancialReportingAttributes","canManageFinancialReporting","canManageFinancialReportingAttributes","permissionsDescription","financialReportingPermissionsCount","financialReportingPermissionsVisible","_financialReportingPermissionsVisible","authCode","clipboard","writeText","_getDefaultLanguage","languages","workerChangeset","permissionChangeset","confirmMessage","canDeleteWorker","backdateChargeOutRateChangeSet","backdateCostRateChangeSet","validateChargeOutRateContent","validateCostRateContent","numberOfTimesheetsUpdated","costRates","getEmployees","accountingPlatformEmployees","getEarningRates","xeroEarningsRates","canUseWorkerType","canUsePayRate","canUseCostRate","canUseWorkerCostCalculator","canUseChargeOutRate","canUseBackdateChargeOutRate","canUseBackdateCostRate","workerTypes","setDefaultChargeOutRate","initBackdateChargeOutRateChangeset","backdateChargeOutRateMap","initBackdateCostRateChangeset","backdateCostRateMap","copyAuthCode","copiedAuthCode","validateUserContent","addOrRemoveHAndSPerm","userCanManageHealthAndSafety","setLocale","currentPassword","oldPassword","newPassword","confirmPassword","changePassword","closePasswordModal","passwordModalVisible","terms","initUserCanManageHealthAndSafety","hasManage","hasCreate","resetPassword","signOut","tokenExpired","resetPasswordForm","passwordConfirmation","clearAll","handleRequestPasswordReset","_dataAdapter","time","hhmmss","second","compact","notation","EUR","USD","NZD","CNY","AUD","GBP","_and","_helper","_regexp","appVersion","version","APP","versionOnly","hideSha","shaOnly","hideVersion","showExtended","versionExtendedRegExp","versionRegExp","shaRegExp","_assign","param","camelCaseWords","word","_camelize","camelize","_cancelAll","_capitalize","capitalize","_changesetGet","_changesetSet","changesetSet","_changeset","_collectionToArray","chunks","_classify","classify","convertToTitleCase","txt","charAt","_dasherize","dateAgo","thatMoment","fromNow","_element","ellipsisTextCharacters","maxCharacters","truncatedText","ellipsisTextWords","maxWords","truncatedWords","truncatedString","_emberPowerCalendarDayClasses","_emberPowerSelectIsEqual","_emberPowerSelectIsGroup","_emberPowerSelectIsSelectedPresent","_util","EnsureSafeComponentHelper","_eq","compute","excludesSomeFeatureFlags","fileSizeToString","bytes","si","dp","thresh","_formatDate","_formatMessage","NaN","DASH","isPercentage","MINUS_SIGN","MIN_SAFE_INTEGER","MAX_SAFE_INTEGER","formatAs","rawNumber","standardizeInput","finalize","calcPlaces","rounded","factor","padded","pointIndex","pad","formatNegativeSign","len","addCommas","currencySymbol","symbol","addCurrencySymbol","applyDecoration","flags","raw","parsedInput","roundsToZero","isNegative","_formatRelative","actionName","os","hasKeyboard","mainModifier","_formatTime","getFileIcon","gz","rar","zip","_gt","_gte","_humanize","humanize","_ifKey","_ignoreChildren","_inc","inc","_isActive","_isAfter","_isArray","_isBefore","_isBetween","_isEmpty","_isEqual","isHash","_isSameOrAfter","_isSameOrBefore","_isSame","_lowercase","lowercase","_lt","_lte","math","operand1","operand2","parseOperand","_media","_momentAdd","_momentCalendar","_momentDiff","_momentDuration","_momentFormat","_momentFromNow","_momentFrom","_momentSubtract","_momentToDate","_momentToNow","_momentTo","_notEq","_not","_now","fromCharCode","charCodeAt","_onKey","_or","ordinalFor","lastDigit","_pageTitle","fetchPages","accumulatedResults","updatedResults","_perform","_pipe","pipe","_pluralize","_powerCalendarFormatDate","_preventDefault","effective","_range","_replaceWith","_rootUrl","EPSILON","round6dp","_routeParams","_singularize","sortKey","categoryKey","other","_stopPropagation","_t","_titleize","titleize","_toggleAction","_toggle","_transitionTo","_trim","_truncate","truncate","_underscore","underscore","_unix","_uppercase","uppercase","_urlFor","_utc","_w","_xor","addLicense","am5LicenseKey","_initializerFactory","_deprecationFilter","installDeprecationFilter","_deprecationSupport","registerOptionsForType","singleton","_responsive","_emberSimpleAuth","_engines","_faviconTitle","favicon","apiUrl","authenticationUrl","getDefaultPlatform","changeTitle","changeFavicon","oidc","authenticationURL","_mobileDragDrop","_scrollBehaviour","polyfill","dragImageTranslateOverride","scrollBehaviourDragImageTranslateOverride","NativeArray","Worker","myWorker","onmessage","insertAdjacentHTML","terminate","_pathResolver","_addModalsContainer","_googleAnalyticsFour","_mixin","mediaEvents","defaultRoute","defaultRouteModel","transitionArgs","redirect","registerViewportModeChangeListener","handleViewportModeChange","deregisterViewModeChangeListener","didTransition","willTransition","_model","_calcMapBalance","inverse","sourceBalance","_sanitizeFilename","_baseModel","mimeToHumanType","humanTypes","aac","abw","avi","gif","jpeg","jpg","mp3","mpeg","odp","ods","odt","png","tif","tiff","weba","webm","webp","xml","presentation","spreadsheet","testMime","checkMime","test","toBase64","humanType","BaseAttachmentsModel","_filename","_extension","_fileType","_size","previewHref","_BaseModel","relationName","serialized","relationships","relationship","_baseAttachmentModel","glAccountLabel","canSeeProject","canSeeTask","assignment","assignments","handleTask","allocationPath","purchaseOrderMatchingStatus","hasError","hasWarning","billedQuantity","quantityInOtherBills","quantityOrdered","quantityDelivered","unitPriceMatches","typeLabel","activeItems","xeroInvoiceId","xeroCreditNoteId","quickbooksBillId","quickbooksCreditNoteId","xeroDeeplinkUrl","accountingPackageUrl","newIsValid","VALID_STATUSES","VALID_ALLOCATION_TYPES","isCreditNote","hasDuplicate","isAcceptedButNotSyncedToAccountingPlatform","valuesArray","labourDiff","manHoursDiff","materialsDiff","subcontractorsDiff","sumsDiff","findChangeForTask","createChangeForTask","deleteChangeForTask","hasValidPurchasePaymentTerm","paymentTermType","paymentTermDay","getPurchaseDisplayPaymentTermType","purchaseDisplayPaymentTerm","hasValidSalesPaymentTerm","salesPaymentTermType","salesPaymentTermDay","getSalesDisplayPaymentTermType","salesDisplayPaymentTerm","quickbooksContactId","quickbooksVendorId","profitMarginRef","loadStagePaymentOptions","loadCompanyLogo","activeProjectTasks","activeProjects","attachmentIds","allProjectAttachments","budgetTotal","quoteTotal","gstValue","entityLinkedAttributes","includesSomeClaims","checks","excludesSomeClaims","excludesClaims","xeroAccountId","quickbooksAccountId","viewGlAccountUrl","searchField","lowerValue","xeroDeepLinkPath","displayAge","displayStatus","annualWorkingDays","systemItems","otherItems","isConnected","changeType","_descriptor34","_descriptor35","_descriptor36","loads","loadAttachments","activeChildrenAttachments","activeTimesheetTasks","activeParentTasks","currentBudgetVersion","currentQuoteVersion","draftBudgetChangeSet","draftQuoteChangeSet","effectiveXerSalesGlAccount","draftTaskChangeSet","draftProgressChangeSet","draftSchedulingChangeSet","createAndSaveDraftTaskChangeSet","createAndSaveDraftBudgetChangeSet","createAndSaveDraftQuoteChangeSet","_Class","pathArray","deliveryStatus","deliveryStatusLabel","loadTask","loadCurrentProfitMargin","loadProducts","parentRef","parentProfitMarginRef","projectRef","taskProducts","allActiveChildrenArray","draftProgressChange","currentProgressChange","currentBudgetValue","currentQuoteValue","budgetManHours","budgetLabour","budgetMaterials","budgetSubcontractors","budgetSums","hasDirectBudget","hasTaskChildrenBudget","hasDirectProducts","hasProducts","hasTaskChildrenProducts","hasDirectAttachments","hasTaskChildrenAttachments","hasDirectQuote","hasTaskChildrenQuote","allChildrenAttachments","activeTaskChildrenProducts","quoteManHours","quoteLabour","quoteMaterials","quoteSubcontractors","quoteSums","_parents","parents","getParents","draftBudgetManHours","childrenDraftBudgetManHours","totalDraftBudget","draftQuoteManHours","totalDraftQuote","getDefaultValues","getDefaultPurchasesGlAccount","getDefaultSalesGlAccount","effectiveXeroSalesGlAccount","getDefaultContractType","_updateTask","diffs","hasRetried","isMissingTaskChangeSet","isMissingBudgetChangeSet","isMissingQuoteChangeSet","_updateBudget","_updateQuote","rejectedResult","moveDependenciesToTaskId","descendantTasksToUnload","deleteTaskMetadata","unloadTasks","tasksToUnload","taskToUnload","childTasksToUnload","nextDiffs","_destroy","taskChangeSet","budgetChangeSet","quoteChangeSet","schedulingChangeSet","parentTaskMargin","parentTaskGlAccount","parentTaskContractType","valueInHours","payTotal","costTotal","chargeOutTotal","currentChargeOutRateTotal","getDefaultUserOrWorkerLanguage","pricingRole","adminRole","activeRole","_getEntityAttributes","_getProjectAttributes","_getTaskAttributes","_getWorkerAttributes","excludesSomeClaimsAboutEntity","excludesClaimsAboutEntity","includesSomeClaimsAboutProject","excludesSomeClaimsAboutProject","excludesClaimsAboutProject","includesSomeClaimsAboutTask","excludesSomeClaimsAboutTask","excludesClaimsAboutTask","includesSomeClaimsAboutWorker","excludesSomeClaimsAboutWorker","excludesClaimsAboutWorker","taskActiveChildren","tasksIds","defaultChargeOutRate","chargeOut","cost","_emberModifier","_bootstrap","BootstrapTooltipModifier","modify","setContent","Tooltip","willRemove","dispose","_didInsert","_didUpdate","_style","_willDestroy","_router","routerMap","Router","locationType","mount","resetNamespace","_route","beforeModel","usersRole","stripHtml","announcementValidationMap","announcement_id","announcementId","getAnnouncement","getEntityAttributes","getUserAttributes","getAnnouncementChangeset","currentModel","refreshModel","getSystemAnnouncements","regenerateDemoEntity","entityValidationMap","featuresValidator","_newValue","_oldValue","featuresValidationMap","entity_id","getEntityChangeset","getEntities","getFeaturesChangeset","setupController","controller","_menuRoute","storeEntities","needsAttributes","licenseeId","userIds","licensee_id","getLicensee","getUsers","_qs","page_location","page_title","trackPage","setup","substring","oauth_token","oauth_verifier","xeroAuthRedirect","finishAuthenticate","newUrl","history","replaceState","isConnectionError","adapterOperationAborted","isUnauthorizedError","stack","serverError","rootElement","requireAuthentication","errorParam","b64","redirectURI","submitAuthCodeAjax","_confirmEmailCode","refreshRegistrationData","getRegistrationData","paramsFor","targetName","fullRouteName","_projectFile","_taskFile","_labourHours","_notes","_position","_profitMargins","controllerName","templateName","_timesheet","_loadingRouteFrom","reloadApp","rollbackUnsavedChanges","localName","sectionRoute","parentRoute","isLeavingSection","_modelFactoryCache","updateHelpCenter","setLabels","onRouteWillChange","isAborted","activate","_onRouteWillChange","deactivate","showHelpCenter","doNotThrowErrorOnNoData","subjects","valueOverride","groupType","metricsSubject","resourceName","subject","setDate","searchEnabled","modelKeys","humanEnums","loadedReport","pmConnection","getAdHocReport","getPmConnection","_class3","_initFromData","_createFile","projectLinkModel","taskLinkModel","_name","ua","activeProject","ap","entityLoaded","getAttachments","getOpenProjects","getActiveTasks","loadModel","openProjects","post","controllerFor","getEntityFile","project_id","projectAttachments","documentIndexPath","getFile","getProject","taskAttachments","currentLevelTasks","task_id","getTask","maxNumberOfBills","billQuery","invoicesQuery","_invoices","xeroAccounts","quickbooksAccounts","invoiceAdded","parentModel","getOwner","billsController","getKey","existingInvoiceKeys","suppliersWithPaymentTermsHash","lastParams","resetController","isExiting","invoice_id","addTimesheetNote","addTimesheets","addTimesheetStatuses","removeTimesheet","_scrollRoute","dateIsValid","workerExists","dateQuery","newNote","afterModel","workerEntity","invoicePage","getInvoices","getInvoiceOptions","newlyCreatedInvoice","_proxy","currentInvoice","validateTotalPrice","hasExistedValue","hasNewValue","getInvoice","getInvoiceItems","createInvoiceChangeSet","getInvoicePermissions","getRelatedInvoices","isPOChangeSetDirty","itemsWithDirtyAttributes","payrollPath","isContractor","timesheetProjectIds","timesheetTaskIds","_purchaseOrderOption","purchaseOrderQuery","getPurchaseOrders","getPurchaseOrderOptions","newlyCreatedPurchaseOrder","purchaseOrderId","currentPurchaseOrder","validTasks","purchase_order_id","getPurchaseOrder","getPurchaseOrderItems","createPurchaseOrderChangeSet","getPurchaseOrderPermissions","csv_data","excel_data","_computed2","itemsVisible","partSelected","nReported","allReported","timesheetTotals","timesheetsQuery","_projectTasks","invoiceItemQuery","isToReportBuilder","isFromExportRoute","createWorkerGroups","workerProjectAllocations","workerProjectAllocation","createInvoiceGroups","clearExportedSelectedResources","pdfController","csvController","excelController","clearSelectedResources","fetchProjects","fetchTasks","fetchWorkerJobAllocations","fetchTimesheets","fetchInvoicesAndItems","invoiceGroupTypes","pdf_data","getEstimate","estimate_id","hideHelpCenter","engineData","getSessionId","jobId","getUnlinkedEstimates","projectRoute","getEstimates","loadProject","ossEngineData","setProjectId","setAccessToken","permissionsValidator","permissionsValidationMap","TaskTypeContainer","currentProjectAttributeIds","selectedTaskAttributes","tva","canViewTaskTasks","canViewSumsTasks","canViewSubcontractorTasks","canViewPlantTasks","canViewMilestoneTasks","canViewInternalTasks","canViewBuildersWorkTasks","client_id","getClient","getAttributes","getTaskVisibilityOptions","getPermissionsChangeset","userProjectAttributes","userClientEntityAttributes","projectClientPermissions","uca","upa","getClients","userSubcontractorEntityAttributes","projectSubcontractorPermissions","usa","getSubcontractors","subcontractor_id","getSubcontractor","userEntityAttributes","allUsers","uea","clientIds","subcontractorIds","user_id","worker_id","getWorker","_isComplete","isPartiallyComplete","progressDirect","actualManHours","latestVersionForecastManHours","forecastManHours","currentDraftForecastManHours","currentDraftProgress","_progress","childrenForecastManHours","childrenForecastedProgress","totalProgress","hasMissingCosts","invoiceLabour","timesheetLabour","calculateVariance","calculateRemainingBudget","labourCost","labourVariance","remainingLabourBudget","materialsVariance","remainingMaterialsBudget","subcontractorsVariance","remainingSubcontractorsBudget","remainingSumsBudget","varianceMargin","hasChildrenMissingCosts","hasProgressWithBudgetAndNoActual","hasProgress","hasManHours","hasChildrenProgressWithBudgetAndNoActual","hasVersionDiff","hasDiff","versionProgress","lastProgress","latestProgress","sentences","hasChildVersionDiff","hasNoManHours","hasNoChildManHours","hasChildDiff","costTotals","progressDirects","draftProgressChangeSetId","progressVersionValueId","taskCostTotals","taskProgressDirects","getProgressList","projectRecord","profitMarginValidator","completionDate","createProjectChangeset","createProfitMarginChangeset","loadGlAccounts","loadXeroTrackingOptions","_sortBy","sortMap","normalizedKey","stages","getStagePayments","getStagePaymentsValues","loadProjectStagePaymentOptions","getStageRelatedInvoices","removeDeletedTasks","lastProjectId","previousTaskList","getTaskList","controllerTasks","previousContainers","addPreviousContainers","applyPreviousState","previousContainer","mergeTreeState","userTaskAttributes","userSubcontractorAttributes","wpa","ws","createTaskChangeset","linkToProject","setMinutes","setSeconds","setMilliseconds","getForecastReport","summaryMetricSubject","getInvoiceReport","_startDate","_endDate","_projectIds","_workerIds","linkToTimesheet","$and","linkedInvoiceIds","dayEndDate","dayStartDate","getNoteReport","financialBreakDown","getProfitMarginsReport","getWipReport","case","getProjectsData","entryTime","occupancyFilter","getReport","getProjectTasks","canUseProjectBudgetReport","linkToStartDate","linkToEndDate","recursiveKey","getBudgetReport","getParentTasks","getChargeupReport","footerFilter","canUseProjectClientReport","entityCanUseInvoicing","entityCanUseInvoicingReport","summaryTable","fixedPriceTable","costPlusTable","taskTable","taskFilter","computedSelectedTaskIds","taskIdsGroupedByParentId","parentsTasksIds","getChildren","childIds","positionReportTaskIds","$or","showTimesheetsTable","showBillsTable","canUseProjectInvoicingReport","costReport","billReport","getSelectedTaskIds","getCostReport","getForecastTableReport","reportRoute","featureFlag","getLabourHoursReport","getQuoteReport","loadUser","triggerRefresh","dashboardQuery","kpiQueryOptions","accountQueryOptions","entitiesQueryOptions","entityGroupsQueryOptions","entityFilter","configData","financialOption","financialOptions","branches","notifyPropertyChange","periodString","imports","organisation","firstId","targetRecords","accountRecords","kpiRecords","includeGroupData","accountsQuery","groupQuery","userGroups","userLinkedEntityGroupsIds","groupRecords","groupIds","groupsRedacted","entityValues","extractAndFormat","groupValues","includedEntities","balData","getAccountDepth","print","topLevelAccounts","isBranch","ownFirstClosedPeriod","ownDataWithheld","itmReportKpis","systemMargin","achievedMargin","grossMargin","netProfit","ebitda","itmImportantAccounts","sales","costOfSales","stockVariation","loyaltiesAndFreight","otherIncomeAndDepreciation","expenses","previousYearPeriod","allEntitiesAndGroups","accountQuery","kpiQuery","entityReports","reportsHash","salesNumbers","salesReport","SalesReportPrevious","parseReport","indexCurrent","indexPrevious","parsedReport","accountMeta","monthPercentSales","monthPrevPercentSales","ytdPercentSales","ytdPrevPercentSales","monthPercentParent","monthPrevPercentParent","ytdPercentParent","ytdPrevPercentParent","accountReports","parentReport","rebates","allowedGroups","accountsList","accountsArray","metricsPromises","collectByMetric","allBalances","matchingAccount","dataSets","blankObject","formattedValues","dataItem","earliest","latest","periodsForEntity","entityPeriod","parentEntityId","getGroups","getKpis","formatReport","extractedGroupValues","kpiData","introLine","periodOptions","loadEntityGroups","loadKpiMeta","loadKPIs","_getKPIs","loadStats","_getStats","kpiMeta","resolvedEntity","_getCached","_cache","_getDirectives","merchantAccounts","refreshDirectives","chart_of_account_id","glAccountId","getGlAccount","getGlAccounts","loadEntityProfitMargin","loadPurchaseOrderOptions","loadInvoiceOptions","loadEntityStagePaymentOptions","validateEmail","supplierValidationMap","contact_id","supplierId","getSupplier","getSupplierChangeset","getFirstDuplicateSuppliers","jobList","ownTakeoff","materialProduct","materialRate","dataDictionary","flatRateResource","subcontractorRate","crTools","miscTemplate","sumsSettings","labourFactor","pendingList","overheadTemplates","workgangPositions","workgangs","subcontractorList","organization","staff","menu","trade","messaging","reminders","subheader","quoteUploader","PAGES","isUnknown","requestedSupplierIds","ipsConnection","defaultEntityFeatures","getFeaturePermissionsChangeset","entityAttributesChangeSet","getItmSuppliers","getIpsConnection","featurePermissionsChangeset","validateFirstName","validateLastName","userValidator","getUserChangeset","userEntityAttributesFilter","validateIsCompanyAdministrator","validateCanManageEverything","validateWorkers","usersWorkers","validatePhoneNumber","validatePayRate","validateChargeOutRate","validateCostRate","validateIsContractor","validateSmartPayrollEmployeeCode","validateSmartPayrollEmployeeDepartmentCode","xeroEmployee","validateXeroEmployee","xeroEarningsRate","validateXeroEarningsRate","emergencyContactNameOne","validateEmergencyContactNameOne","emergencyContactRelationshipOne","validateEmergencyContactRelationshipOne","emergencyContactPhoneNumberOne","validateEmergencyContactPhoneNumberOne","emergencyContactNameTwo","validateEmergencyContactNameTwo","emergencyContactRelationshipTwo","validateEmergencyContactRelationshipTwo","emergencyContactPhoneNumberTwo","validateEmergencyContactPhoneNumberTwo","workerValidator","workerValidationMap","canSeeProjectsAndTasks","loadAccountingPlatformEmployees","getWorkerChangeset","getWorkerPermissionsChangeset","getWorkersTimesheets","getLabourCostCalculators","getXeroEarningsRates","getProfitMargin","getAccountingPlatformEmployees","workerPermissionsChangeset","loadTerms","initApp","prohibitAuthentication","ApiV2Serializer","resourceHash","extractRelationships","eachRelationship","relationshipMeta","normalizeResponse","primaryModelClass","requestType","documentHash","ApiV2JSONAPISerializer","keyForAttribute","keyForRelationship","_payload","normalizedResponse","resourceMeta","includedMeta","_apiV2Serializer","EntityProductSerializer","ProjectProductSerializer","TaskProductSerializer","_ensureRegistered","AccountingPlatforms","updateXeroSuppliers","createXeroContact","req","glAccountVisibleFields","invoiceItemTaxVisibleFields","glAccountsSearchField","quickbooksInvoiceId","updateHasNextPage","lastLoadArgs","firstPage","_loadBills","migrateToBuildaPrice","identityUserId","authPatch","authGetExcel","authGetBlob","authPostHtml","projectQuoteTotals","projectBudgetTotals","projectProgressTotals","projectCostTotals","updateSystemAnnouncements","submitFilesToIPS","authPostForm","cacheName","cachePath","cbCustomerId","currentEntityAttributes","subscriptionChanging","portalSession","getChargebeePortalSession","instance","Chargebee","setPortalSession","createChargebeePortal","handleClose","subscriptionChanged","handleSubscriptionChange","hostedPage","openCheckout","subscriptionIsChanging","subscriptionChangedMoment","waitTime","attempts","latestEntityAttributes","xor","_cookies","_htmlJsConfirm","_notifications","_emberElsewhere","_period","helpCenterInitialized","activateHelpCenter","initializeHelpCenter","zEmbed","zE","frameElement","cssText","getElementsByTagName","parentNode","insertBefore","contentWindow","domain","_l","zendeskHost","zEQueue","identify","setHelpCenterSuggestions","_intl","deleteTitle","deleteMessage","confirmingDelete","_resolveConfirmation","confirmDelete","dismissDelete","attachmentToFile","binary","File","submitError","refusedUsage","ipsUsage","getIpsContactInfo","updateIpsContactEmail","_keyboard","mediaMatchesDidChange","consumeMediaService","_metrics","toggleMenu","_configUtils","computedFromConfig","hasEmberTether","hasLiquidWormhole","hasLiquidTether","destinationElementId","getDestinationElementIdFromConfig","onRouteDidChange","_onRouteDidChange","pre","moduleRoutes","bannedRoutes","usableRoutes","thisRoute","routeBreadcrumbs","currentModule","FINANCIALS","STEP","BUILDA_PRICE_PROMO","APB","TPB","STEP_UP","ITM","check","entityCanUseCrystalPayroll","entityCanUseKeypay","entityCanUsePartner","entityCanUseOldPricing","entityIsParent","entityCanUseStrategies","entityIsItm","entityIsItmParent","entityCanUseFinancialReporting","entityCanUseBuildaPrice","entityCanUseCarters","entityCanUseIPS","entityCanUseBills","entityCanUseStatements","entityCanUsePlaceMakers","entityCanUseSmartPayroll","entityCanUseItmInvoiceIntegration","entityCanUsePurchaseOrders","entityCanUseInvoices","entityCanUseStagePayments","entityCanUseDashboards","entityCanUseEstimates","entityCanUseNotes","entityCanUseClientReports","entityCanUseProjectFinancials","entityCanUseForecastReport","entityCanUseProfitMarginsReport","entityCanUseLabourHoursReport","entityCanUseBudgetReport","entityCanUseQuoteReport","entityCanUsePositionReport","entityCanUseCostReport","entityCanUseChargeupReport","entityCanUseWipReport","entityCanUseScheduling","entityCanUseTimesheets","entityCanUseFileStorage","entityCanUseProducts","entityCanUseProjectProgress","entityCanUseCsvTaskFileUploader","entityCanUseHealthAndSafety","entityCanUseClientPortal","entityCanUseGeofencing","entityHasSubcontractorPackage","entityIsCalStudent","entityHasSupport","isAPBCustomer","workerPseudoUser","userIsWorker","userIsAdmin","userIsPartner","userIsEntityMember","userCanViewEntity","userHasPricingRole","userIsClient","canUsePartner","canUseOldPricing","canUseStrategies","hasAccessToPortal","modelId","canUseWorkerJobAllocation","_canUseEntityProgressReports","_canUseEntityChargeupReports","canManageTaskBudgets","canManageTaskQuotes","canUseTaskBudgets","canUseTaskQuotes","canUseQuoteVersions","canUseBudgetVersions","canManageProgressVersions","canSeeProjects","hasWorker","wa","reportBuilderDeprecationDate","entityCreatedDate","canUseProjectProgressReports","_canUseProjectProgressReports","canUseProjectQuoteReports","_canUseEntityQuoteReports","_canUseProjectQuoteReports","canUseProjectBudgetReports","_canUseEntityBudgetReports","_canUseProjectBudgetReports","canUseProjectCostReports","_canUseEntityCostReports","_canUseProjectCostReports","canUseProjectTasks","_canUseEntityTasks","_canUseProjectTasks","_canUseEntityProjects","_canUseEntityBudgetLabourHourReports","_canUseEntityCostLabourHourReports","_canUseEntityInvoicingReports","_canUseEntityClientReports","_canUseProjectBudgetLabourHourReports","_canUseProjectCostLabourHourReports","_canUseProjectChargeupReports","_canUseProjectInvoicingReports","canUseEntityWIPReport","canUseEntityBudgetReports","canUseEntityQuoteReports","canUseEntityProgressReports","canUseEntityCostReports","canUseEntityInvoicingReports","canUseProjectWIPReport","canUseProjectQuoteReport","canUseEntityChargeupReports","canUseEntityTasks","canUseProjectChargeupReports","canUseTaskQuoteReports","canUseTaskChargeupReports","canUseProjectCostReport","canUseEntityTimesheets","canUseEntityBills","canUseProjectTimesheets","canUseProjectBills","canUseTaskCostReports","canUseTaskTimesheets","canUseTaskBills","canUseTaskTasks","canUseTaskBudgetReports","canUseEntityClientReports","canUseProjectInvoicingReports","canUseProjectClientReports","projectTaskIds","attributeIdsByTask","attributeIds","taskHasClientReports","taskHasQuoteReports","taskHasProgressReports","taskHasChargeupReports","taskHasInvoicingReports","canUseTaskProgressReports","canUseTaskInvoicingReports","canUseTaskClientReports","canUseEntityForecastReport","canUseProjectForecastReport","canUseEntityProfitMarginReport","canUseEntityLabourHourReport","canUseProjectProfitMarginReport","canUseProfitMarginReport","_canUSeEntityTasks","canUseProjectChargeupReport","canUseEntityPositionReport","canUseDashboardReport","useProjectProgressReports","canUseProjectPositionReport","canUseProjectLabourHourReport","canUseProjectCostLabourHourReports","canUseProjectBudgetLabourHourReports","canUseEntityInvoicingReport","canUseEntityProjects","canUseLabourHourReport","canManagePayroll","legacyBillsDeprecationDate","canManageEstimatesSettings","canUseUsers","canManageSubcontractors","canUseSubcontractors","canUseWorkers","canManageSuppliers","canUseSuppliers","canUseXeroIntegration","canUseQuickbooksIntegration","canSeeNewBuildaPriceMigrationButton","canUseItmInvoiceIntegration","canUseDocumentsPage","groupedProjectAttributes","groupedTaskAttributes","attachmentAttributes","canUseAttachments","aa","canUseProgressPage","tasksCanViewProjectProgress","canViewProjectProgress","taskCanViewTasks","taskCanViewProjectProgress","canUseProject","canUseIntegrations","_resource","canUseFPDashboard","canUseFPKpis","canUseFPItmCustomerPAndL","canUseFPProfitAndLoss","canUseFPBalanceSheet","canUseFPOtherData","canUseFPPersonalData","canUseFPDataAvailability","canUseFPImportManager","canUseFPStrategies","canUseFPReportingPeriod","canUseFPChartOfAccounts","canUseFPKpisConfig","canUseFPGroups","userCanNotEditFPGroups","userCanSeeFPBreakdown","canUseProjectCopy","showProxy","defaultClearDuration","setupAutoClear","isBpNotification","NZL","AUS","USA","GBR","OSService","matchMedia","newProject","DEFAULT_PDF_OPTIONS","generatePdf","hideClass","originalElement","cloneNode","transverseParents","transverseChildren","nodeName","imageData","toDataURL","img","replaceChild","cssRules","styleSheet","styleSheets","cssRule","CSSStyleRule","hasClassName","selectorText","titleElement","innerText","whiteSpace","firstChild","cssHtml","compressedReadableStream","Blob","stream","pipeThrough","CompressionStream","compressedResponse","Response","bodyBlob","generateAndDownloadPdf","_entityId","isInitialized","syncPriceBookNowAjax","disconnectAjax","clientId","authPath","pmAuthAddress","response_type","redirect_uri","encodeState","nonce","handlePmError","btoa","platforms","getPlatforms","processData","authDelete","xhrFields","portalApiPostHandler","_cachedSession","timestamp","URLS","updateQuickBooksContacts","syncBill","syncInvoice","quickbooksRealmId","quickbooksCompanyName","_canUse","redirectUrl","initQuickbooksResponse","connectAjax","consentUrl","contactId","updateQuickBooksContactsAjax","createContactInQuickbooksAjax","getQuickBooksAccountsAjax","getQuickBooksEmployeesAjax","sendBillToQuickbooks","sendInvoiceToQuickbooks","combinedMessage","createTimesheetsAjax","handleQuickbooksFetchRequest","getQuickBooksAccounts","getQuickBooksEmployeesFromQuickbooks","sendCreditNoteToQuickbooks","createTimesheetsInQuickbooks","createContactInQuickbooks","fetchRequestWithToken","billId","syncCreditNote","config","_fileName","generateReportDataForCSV","formatValue","dataRows","processRows","csvRow","dataRow","footRows","generateCSVBlob","isDestroyingOrDestroyed","bpLicenseeParentEntityId","_initEntity","_initEntities","_initUser","isWorkerPseudoUser","loadedWorker","momentLocal","loadedUser","entitiesPromise","isUsingLoginAs","originalUserData","toggleAdminMode","authResponse","authenticatedData","_session","handleAuthentication","routeAfterAuthentication","hasAcceptedTerms","_store","ApplicationStore","simpleQueryRecord","queryRecord","pollService","checkForData","announcementData","unreadAnnouncements","archived","dismissAnnouncementModal","systemAnnouncementId","closeAnnouncementModal","XeroAppsEnum","oauthCallback","authorizeRedirect","getPayRunCalendars","getEarningsRates","getBalances","xeroApp","initXeroResponse","redirectTo","connections","xeroCreditNoteAccountError","sendBillToXero","sendCreditNoteToXero","sendInvoiceToXero","updateXeroSuppliersAjax","createXeroContactAjax","createXeroTimesheetsAjax","getXeroAccountsAjax","getXeroEmployeesAjax","getXeroTrackingCategoryOptionsAjax","getXeroPayRunCalendarsAjax","getXeroEarningsRatesAjax","getXeroBalancesAjax","handleXeroFetchRequest","handleV2XeroFetchRequest","_adaptive","localStorageKey","useMirage","_noSite","_site","_details","_hazards","_board","_selection","_ppe","_report","_setup","_notifiable","_summary","_signin","_reports","_helpers","_transform","deserialize","deserialized","BooleanTransform","DateTransform","NumberTransform","StringTransform","setDefault","easing","fromRoute","toRoute","newRoute","oldRoute","newParts","oldParts","use","BpTheme","Theme","setupDefaultRules","rule","positive","negative","sanitizeString","invoiceReference","matchingReferenceDirective","invoiceAccount","matchingAccountDirective","manBal","isManual","manualBalance","lastBill","customerNumber","issuedTo","orderNumber","jobNumber","specialInstructions","extractHead","discount","net","extractItem","_subTotal","subTotal","itemsTotal","checkTotal","REQUIRED_HEADERS","_findDate","_extractNumber","indices","allKeys","totalNet","documentDate","customerOrderNumber","deliveryDate","productDescription","unitPriceExcludingGST","_cartersType","_cartersType2","_cartersType3","_cartersType4","isType1","isType2","isType3","isType4","parseInvoice","rowIsEmpty","headerRow","COLUMN_NAMES","hasFooterLabel","FOOTER_ROW_NAMES","hasNoContent","headerLine","newFormatHeaderColumns","isNewFormat","ITEM_HEADERS","HEADERS","ITEM_HEADERS_OLD","linesWithErrors","matchInvoice","invoiceExists","createInvoice","createInvoiceFromOldFormat","createItem","createItemFromOldFormat","extractNumber","parsedNumber","yearLength","dateFormat","createdDateStr","dueDateStr","INVOICE_HEADERS","h","placemakersParser","parsedInvoices","referenceLineIndex","referenceLine","lineNumber","lineKey","updateLine","createInvoiceFromHeaderLine","createItemFromLine","missingHeader","columnKeys","InvoiceNumber","createIdentifier","ContactName","lineInvoice","getUnitPriceWithDiscount","UnitAmount","Discount","unitPriceWithDiscount","Description","InventoryItemCode","Quantity","Reference","InvoiceDate","DueDate","NORMALIZED_BUNNINGS_HEADERS","normalizedRows","currentBill","rowTypes","drCrCorrection","invertCorrection","periodDebit","periodCredit","ytdDebit","ytdCredit","collectionToArray","collection","iterator","_sums","dividedBy","numeratorKey","denominatorKey","_sum","arrayStr","keyStr","_sumBy","sumByProducts","_sumByProducts","formattedDays","totalObj","toCSV","joiner","textWithoutNewLines","generateHeaderRows","nestedReport","lineData","extractReportValues","reportLine","metricsSortedByEntity","parsedCsv","msSaveOrOpenBlob","msSaveBlob","createObjectURL","removeChild","csvAsString","deprecationTally","SEEN","installed","registerDeprecationHandler","untilMajor","until","DEDUPE","strFileName","strMimeType","ReactNativeWebView","onloadend","base64data","postMessage","mimeType","self","defaultMime","anchor","MyBlob","MozBlob","WebKitBlob","dataUrlToBlob","saver","tempUiArr","mx","strUrl","binData","decodeURIComponent","uiArr","winMode","callee","revokeObjectURL","userAgent","rel","localPart","extra","part","oldLink","findParam","routeDescription","paramName","fileError","contentError","noun","ordinal","lineNo","buildAccountName","expected","validateHeaders","accountNumber","accountName","accountLevel","actual","currentHeader","extractValue","linesRemoved","rest","debit","credit","extractAccountCode","extractAccountName","isDebit","lastIndexOf","pages","lines","cells","_oldXeroParser","_newXeroParser","isOldXeroFormat","locales","Route","MultiSelectableTreeItem","isSomeChildChecked","isEveryChildChecked","taskData","topTasks","childrenArray","nest","idKey","_oidcClientTs","oidcConfig","UserManager","authority","applicationName","requestedScopes","automaticSilentRenew","silent_redirect_uri","popup_redirect_uri","post_logout_redirect_uri","userStore","WebStorageStateStore","localStorage","stateStore","NORMALIZED_PLACEMAKERS_HEADERS","PLACEMAKERS_BILL_HEADER","PLACEMAKERS_ITEM_HEADER","rowStartsWith","expectedHeaders","MIRAGE","OTBS","fullLogo","defaultPlatforms","outputPlatforms","details","Numerator","Denominator","getAttachmentHrefs","hrefs","materialHrefs","subcontractorHrefs","getReportedResourcesSummary","resourcesToTrack","previouslyReportedResources","sortReportedResources","resources","reported","reportedResourcesSummary","replacement","illegal","control","reserved","windowsReserved","nonAsciiChars","term","opKey","buildRow","periodLength","compare","aSystem","bSystem","categoryComparison","compareTwoStrings","first","firstBigrams","bigram","intersectionSize","mainString","targetStrings","areArgsValid","ratings","bestMatchIndex","currentTargetString","currentRating","object","prod","TreeItem","itemToFind","findItem","nodes","targetBranch","resultPath","traverse","currentPath","newPath","projectData","projectGroupedTopLevelTasks","projectItems","excludedTaskIds","childKey","excludedItemIds","_validators","eitherDescriptionOrProductCode","validatePresence","validateNumber","allowString","gte","validateDueDate","presence","validateInclusion","validateFormat","metaName","rawConfig","getAttribute","exports","runningTests","require"],"sources":["vendor/ember-cli/app-prefix.js","portal/adapters/api-v2-adapter.js","portal/adapters/application.js","portal/adapters/entity-product.js","portal/adapters/errors.js","portal/adapters/project-product.js","portal/adapters/task-product.js","portal/app.js","portal/authenticators/embed.js","portal/authenticators/login-as.js","portal/authenticators/oauth2.js","portal/authenticators/oidc.js","portal/authenticators/push-session.js","portal/breakpoints.js","portal/components/active-table.js","portal/components/admin-mode.js","portal/components/allocation-hierarchy.js","portal/components/allocation-selector.js","portal/components/allocation-selector/bread-crumb.js","portal/components/attachment-dropdown-list.js","portal/components/attachment-dropdown.js","portal/components/attachment-dropdown/item.js","portal/components/attachment-manager.js","portal/components/attachment-preview.js","portal/components/attachment-settings-modal.js","portal/components/attachment-table.js","portal/components/attachment-upload-modal.js","portal/components/attachments-popover.js","portal/components/auto-mapping/directive-pm.js","portal/components/basic-dropdown-content.js","portal/components/basic-dropdown-trigger.js","portal/components/basic-dropdown-wormhole.js","portal/components/basic-dropdown.js","portal/components/basic-importer.js","portal/components/bill-editor.js","portal/components/bill-item-allocator.js","portal/components/bill-item-summary.js","portal/components/bill-type-response-handler.js","portal/components/bills-table.js","portal/components/bills-table/th.js","portal/components/bills-uploader.js","portal/components/c3-chart.js","portal/components/calculation-breakdown.js","portal/components/charts/data-table.js","portal/components/charts/gauge-chart.js","portal/components/charts/line-chart.js","portal/components/charts/pie-chart.js","portal/components/checklist.js","portal/components/coa-editor-line.js","portal/components/coa-editor.js","portal/components/combo-box.js","portal/components/combo-button.js","portal/components/confirm-delete.js","portal/components/content-tabs.js","portal/components/content-tabs/tab.js","portal/components/context-menu.js","portal/components/context-menu/menu.js","portal/components/dashboard-item.js","portal/components/dashboard-item/card.js","portal/components/dashboard-item/icon.js","portal/components/dashboard-item/module.js","portal/components/dashboard/config-modal.js","portal/components/dashboard/draggable-module.js","portal/components/dashboard/module-rows.js","portal/components/data-withheld-notice.js","portal/components/date-input.js","portal/components/date-range-selector.js","portal/components/documents-table.js","portal/components/drag-and-drop-container.js","portal/components/drag-sort-list.js","portal/components/drag-sort-list/children.js","portal/components/drag-sort-list/drag-handle.js","portal/components/drag-sort-list/draggable.js","portal/components/drag-sort-list/separator.js","portal/components/draggable-task.js","portal/components/dropdown-button.js","portal/components/duration-input.js","portal/components/education-promotion-button.js","portal/components/ember-modal-dialog-positioned-container.js","portal/components/ember-modal-dialog/-basic-dialog.js","portal/components/ember-modal-dialog/-in-place-dialog.js","portal/components/ember-modal-dialog/-liquid-dialog.js","portal/components/ember-modal-dialog/-liquid-tether-dialog.js","portal/components/ember-modal-dialog/-tether-dialog.js","portal/components/ember-modal-dialog/overlay.js","portal/components/ember-wormhole.js","portal/components/entity-selector.js","portal/components/entity-table-contents.js","portal/components/estimate/item.js","portal/components/fa-icon.js","portal/components/file-field.js","portal/components/file-importer.js","portal/components/file-inputs/csv.js","portal/components/file-inputs/general.js","portal/components/file-inputs/text.js","portal/components/file-type-icon.js","portal/components/filter-pill.js","portal/components/financial-data-importer.js","portal/components/financial-data-table.js","portal/components/financials-table-section.js","portal/components/format-duration-with-unit.js","portal/components/formatted-input.js","portal/components/from-elsewhere.js","portal/components/gl-importers/api.js","portal/components/gl-importers/banklink.js","portal/components/gl-importers/eaccounts.js","portal/components/gl-importers/empower.js","portal/components/gl-importers/frameworks.js","portal/components/gl-importers/gj-gardner.js","portal/components/gl-importers/itm-manual.js","portal/components/gl-importers/maxim.js","portal/components/gl-importers/myob-ao.js","portal/components/gl-importers/myob.js","portal/components/gl-importers/prostix.js","portal/components/gl-importers/rees.js","portal/components/gl-importers/xero-api.js","portal/components/gl-importers/xero-csv.js","portal/components/google-map.js","portal/components/grouping-selector.js","portal/components/groups-redacted-notice.js","portal/components/icon-button.js","portal/components/indeterminate-checkbox.js","portal/components/infinity-scroll.js","portal/components/info-popup.js","portal/components/info-wrapper.js","portal/components/integration-icon.js","portal/components/invoice-item-editor-modal.js","portal/components/invoice-item-table-pm.js","portal/components/invoice-type-response-handler.js","portal/components/invoices-uploader.js","portal/components/ips-uploader.js","portal/components/ips-usage.js","portal/components/ips-usage/alert.js","portal/components/ips-usage/upgrade.js","portal/components/item-selector.js","portal/components/item-selector/bread-crumb.js","portal/components/itm-financial-table-section.js","portal/components/label-indicator.js","portal/components/label-popup.js","portal/components/lazy-each.js","portal/components/link-to-external.js","portal/components/loading-button.js","portal/components/loading-icon.js","portal/components/logged-in-as.js","portal/components/mapping/draggable-map.js","portal/components/mapping/map-list.js","portal/components/mapping/map-status.js","portal/components/markdown-to-html.js","portal/components/metric-breakdown.js","portal/components/mobile-side-bar.js","portal/components/mobile-side-menu.js","portal/components/mobile-title-bar.js","portal/components/mobile-title-bar/avatar.js","portal/components/mobile-title-bar/avatar/avatar-link.js","portal/components/mobile-title-bar/back-button.js","portal/components/mobile-title-bar/burger-button.js","portal/components/mobile-title-bar/page-title.js","portal/components/modal-dialog.js","portal/components/module-navigation/admin.js","portal/components/module-navigation/dashboard.js","portal/components/module-navigation/financials.js","portal/components/module-navigation/module-dashboard.js","portal/components/module-navigation/operations/incoming.js","portal/components/module-navigation/operations/outgoing.js","portal/components/module-navigation/pricing.js","portal/components/module-navigation/project.js","portal/components/module-navigation/projects.js","portal/components/module-navigation/reports.js","portal/components/module-navigation/reports/company-reports.js","portal/components/module-navigation/reports/project.js","portal/components/module-navigation/scheduling.js","portal/components/module-navigation/settings.js","portal/components/month-picker.js","portal/components/multi-item-selector-paginated.js","portal/components/multi-item-selector.js","portal/components/multi-task-selector-input.js","portal/components/multi-task-selector.js","portal/components/multiple-from-elsewhere.js","portal/components/multiselect-checkboxes.js","portal/components/nested-task-card.js","portal/components/nested-task-card/add-task.js","portal/components/new-combo-box.js","portal/components/new-supplier-prompt.js","portal/components/notification-container.js","portal/components/notification-message.js","portal/components/overlaid-dropdown.js","portal/components/page-filters.js","portal/components/page-filters/item.js","portal/components/page-filters/pill.js","portal/components/page-header.js","portal/components/page-title-breadcrumbs.js","portal/components/pagination-table.js","portal/components/pdf-export-timesheet-row.js","portal/components/people-table.js","portal/components/personal-financial-table-section.js","portal/components/pm-integration-settings.js","portal/components/pop-hover-over.js","portal/components/pop-hover-over/content.js","portal/components/pop-over.js","portal/components/pop-over/content.js","portal/components/pop-up.js","portal/components/pop-up/content.js","portal/components/power-calendar-multiple.js","portal/components/power-calendar-multiple/days.js","portal/components/power-calendar-range.js","portal/components/power-calendar-range/days.js","portal/components/power-calendar.js","portal/components/power-calendar/days.js","portal/components/power-calendar/nav.js","portal/components/power-select-after-options-button.js","portal/components/power-select-multiple.js","portal/components/power-select-multiple/input.js","portal/components/power-select-multiple/trigger.js","portal/components/power-select.js","portal/components/power-select/before-options.js","portal/components/power-select/input.js","portal/components/power-select/label.js","portal/components/power-select/no-matches-message.js","portal/components/power-select/options.js","portal/components/power-select/placeholder.js","portal/components/power-select/power-select-group.js","portal/components/power-select/search-message.js","portal/components/power-select/trigger.js","portal/components/pricing-page.js","portal/components/pricing-quote-uploader.js","portal/components/product-editor.js","portal/components/product-selector.js","portal/components/products-uploader.js","portal/components/profit-margin-form.js","portal/components/project-card.js","portal/components/project-change-set-description.js","portal/components/project-selector.js","portal/components/ptl-form.js","portal/components/ptl-input.js","portal/components/purchase-order-item-creator.js","portal/components/purchase-order-item-selector.js","portal/components/radio-button.js","portal/components/radio-slider.js","portal/components/referral-promotion-button.js","portal/components/report-builder-pm/invoice-type-table.js","portal/components/report-builder-pm/manual-type-table.js","portal/components/report-builder-pm/timesheet-type-table.js","portal/components/report-engine-element-container.js","portal/components/report-engine-element.js","portal/components/report-engine-element/big-text.js","portal/components/report-engine-element/card.js","portal/components/report-engine-element/gauge.js","portal/components/report-engine-element/note-timeline.js","portal/components/report-engine-element/pie.js","portal/components/report-engine-element/projects-table.js","portal/components/report-engine-element/table.js","portal/components/report-engine-element/table/row.js","portal/components/report-engine-element/value.js","portal/components/report-engine-element/value/value.js","portal/components/report-exporter-pm.js","portal/components/resource-history.js","portal/components/rich-text-editor.js","portal/components/search-select.js","portal/components/search-select/item.js","portal/components/search-selector.js","portal/components/select-input.js","portal/components/select-input/option.js","portal/components/sidebar.js","portal/components/sidebar/back-button.js","portal/components/sidebar/entity-selector.js","portal/components/sidebar/item.js","portal/components/sidebar/section.js","portal/components/sidebar/title.js","portal/components/skeleton-screens/table.js","portal/components/sortable-list.js","portal/components/stage-payment-task-selector-row.js","portal/components/stage-payment-task-selector.js","portal/components/sticky-top.js","portal/components/strategies-table.js","portal/components/supplier-invoices-pm/invoice-item.js","portal/components/supplier-invoices-pm/invoice-row.js","portal/components/supplier-invoices-pm/invoice.js","portal/components/takeoff-uploader-modal.js","portal/components/takeoff-uploader-modal/assign.js","portal/components/takeoff-uploader-modal/item-row.js","portal/components/takeoff-uploader-modal/item-row/add-item.js","portal/components/takeoff-uploader-modal/map.js","portal/components/takeoff-uploader-modal/upload.js","portal/components/task-breadcrumbs.js","portal/components/task-detail-badge.js","portal/components/task-progress-position-row.js","portal/components/task-selector.js","portal/components/task-selector/bread-crumb.js","portal/components/task-template-item-row.js","portal/components/task-template-item-row/add-item.js","portal/components/task-template-modal.js","portal/components/task-transfer-selector.js","portal/components/task-type-badge.js","portal/components/timeline-task-import-item-row.js","portal/components/timeline-task-import-item-row/add-item.js","portal/components/timeline-task-import-modal.js","portal/components/timesheet-line-pm.js","portal/components/timesheets-table-pm.js","portal/components/title-bar-tabs.js","portal/components/title-bar-tabs/tab.js","portal/components/title-bar.js","portal/components/to-elsewhere.js","portal/components/usage-bar.js","portal/components/value-change-indicator.js","portal/components/worker-cost-calculator.js","portal/components/worker-project-allocation-modal.js","portal/controllers/admin.js","portal/controllers/admin/announcements.js","portal/controllers/admin/announcements/announcement.js","portal/controllers/admin/announcements/index.js","portal/controllers/admin/billing-report.js","portal/controllers/admin/entities.js","portal/controllers/admin/entities/entity.js","portal/controllers/admin/entities/index.js","portal/controllers/admin/licensees/index.js","portal/controllers/admin/licensees/licensee.js","portal/controllers/application.js","portal/controllers/complete-registration-cb.js","portal/controllers/entity-loading.js","portal/controllers/entity.js","portal/controllers/entity/builda-price.js","portal/controllers/entity/builda-price/company/documents/project-file/task-file.js","portal/controllers/entity/builda-price/dashboard.js","portal/controllers/entity/builda-price/dashboard/index.js","portal/controllers/entity/builda-price/operations/documents/index.js","portal/controllers/entity/builda-price/operations/documents/project-file/index.js","portal/controllers/entity/builda-price/operations/documents/project-file/task-file.js","portal/controllers/entity/builda-price/operations/incoming/bills-legacy.js","portal/controllers/entity/builda-price/operations/incoming/bills-legacy/bill.js","portal/controllers/entity/builda-price/operations/incoming/bills.js","portal/controllers/entity/builda-price/operations/incoming/statements.js","portal/controllers/entity/builda-price/operations/incoming/timesheets.js","portal/controllers/entity/builda-price/operations/incoming/timesheets/timesheet.js","portal/controllers/entity/builda-price/operations/outgoing/invoices/index.js","portal/controllers/entity/builda-price/operations/outgoing/invoices/invoice.js","portal/controllers/entity/builda-price/operations/outgoing/payroll.js","portal/controllers/entity/builda-price/operations/outgoing/purchase-orders/index.js","portal/controllers/entity/builda-price/operations/outgoing/purchase-orders/purchase-order.js","portal/controllers/entity/builda-price/operations/outgoing/report-builder/csv.js","portal/controllers/entity/builda-price/operations/outgoing/report-builder/excel.js","portal/controllers/entity/builda-price/operations/outgoing/report-builder/index.js","portal/controllers/entity/builda-price/operations/outgoing/report-builder/pdf.js","portal/controllers/entity/builda-price/operations/products.js","portal/controllers/entity/builda-price/projects.js","portal/controllers/entity/builda-price/projects/index.js","portal/controllers/entity/builda-price/projects/project/documents.js","portal/controllers/entity/builda-price/projects/project/estimates.js","portal/controllers/entity/builda-price/projects/project/estimates/index.js","portal/controllers/entity/builda-price/projects/project/financials.js","portal/controllers/entity/builda-price/projects/project/health-and-safety.js","portal/controllers/entity/builda-price/projects/project/people.js","portal/controllers/entity/builda-price/projects/project/people/clients/client.js","portal/controllers/entity/builda-price/projects/project/people/clients/index.js","portal/controllers/entity/builda-price/projects/project/people/subcontractors/index.js","portal/controllers/entity/builda-price/projects/project/people/subcontractors/subcontractor.js","portal/controllers/entity/builda-price/projects/project/people/users/index.js","portal/controllers/entity/builda-price/projects/project/people/users/user.js","portal/controllers/entity/builda-price/projects/project/people/workers/index.js","portal/controllers/entity/builda-price/projects/project/people/workers/worker.js","portal/controllers/entity/builda-price/projects/project/products.js","portal/controllers/entity/builda-price/projects/project/progress.js","portal/controllers/entity/builda-price/projects/project/settings.js","portal/controllers/entity/builda-price/projects/project/stage-payments.js","portal/controllers/entity/builda-price/projects/project/tasks.js","portal/controllers/entity/builda-price/projects/project/tasks/index.js","portal/controllers/entity/builda-price/projects/project/tasks/task.js","portal/controllers/entity/builda-price/projects/project/tasks/task/documents.js","portal/controllers/entity/builda-price/projects/project/tasks/task/financials.js","portal/controllers/entity/builda-price/projects/project/tasks/task/people.js","portal/controllers/entity/builda-price/projects/project/tasks/task/people/clients/client.js","portal/controllers/entity/builda-price/projects/project/tasks/task/people/clients/index.js","portal/controllers/entity/builda-price/projects/project/tasks/task/people/subcontractors/index.js","portal/controllers/entity/builda-price/projects/project/tasks/task/people/subcontractors/subcontractor.js","portal/controllers/entity/builda-price/projects/project/tasks/task/people/users/index.js","portal/controllers/entity/builda-price/projects/project/tasks/task/people/users/user.js","portal/controllers/entity/builda-price/projects/project/tasks/task/people/workers/index.js","portal/controllers/entity/builda-price/projects/project/tasks/task/people/workers/worker.js","portal/controllers/entity/builda-price/projects/project/tasks/task/products.js","portal/controllers/entity/builda-price/projects/project/tasks/task/settings.js","portal/controllers/entity/builda-price/reports/company/forecast-breakdown.js","portal/controllers/entity/builda-price/reports/company/invoicing.js","portal/controllers/entity/builda-price/reports/company/labour-hours.js","portal/controllers/entity/builda-price/reports/company/notes.js","portal/controllers/entity/builda-price/reports/company/position.js","portal/controllers/entity/builda-price/reports/company/profit-margins.js","portal/controllers/entity/builda-price/reports/company/wip.js","portal/controllers/entity/builda-price/reports/projects/index.js","portal/controllers/entity/builda-price/reports/projects/project.js","portal/controllers/entity/builda-price/reports/projects/project/access.js","portal/controllers/entity/builda-price/reports/projects/project/budget/index.js","portal/controllers/entity/builda-price/reports/projects/project/budget/task/index.js","portal/controllers/entity/builda-price/reports/projects/project/chargeup/index.js","portal/controllers/entity/builda-price/reports/projects/project/chargeup/task/index.js","portal/controllers/entity/builda-price/reports/projects/project/cost-to-complete/index.js","portal/controllers/entity/builda-price/reports/projects/project/cost-to-complete/task/index.js","portal/controllers/entity/builda-price/reports/projects/project/cost.js","portal/controllers/entity/builda-price/reports/projects/project/forecast-breakdown/index.js","portal/controllers/entity/builda-price/reports/projects/project/forecast-breakdown/task/index.js","portal/controllers/entity/builda-price/reports/projects/project/invoicing/index.js","portal/controllers/entity/builda-price/reports/projects/project/invoicing/task/index.js","portal/controllers/entity/builda-price/reports/projects/project/labour-hours/index.js","portal/controllers/entity/builda-price/reports/projects/project/labour-hours/task/index.js","portal/controllers/entity/builda-price/reports/projects/project/notes.js","portal/controllers/entity/builda-price/reports/projects/project/position/index.js","portal/controllers/entity/builda-price/reports/projects/project/position/task/index.js","portal/controllers/entity/builda-price/reports/projects/project/profit-margins/index.js","portal/controllers/entity/builda-price/reports/projects/project/profit-margins/task/index.js","portal/controllers/entity/builda-price/reports/projects/project/quote/index.js","portal/controllers/entity/builda-price/reports/projects/project/quote/task/index.js","portal/controllers/entity/builda-price/scheduling.js","portal/controllers/entity/builda-price/scheduling/timeline.js","portal/controllers/entity/disabled.js","portal/controllers/entity/financials.js","portal/controllers/entity/financials/chart-of-accounts.js","portal/controllers/entity/financials/dashboard-loading.js","portal/controllers/entity/financials/dashboard.js","portal/controllers/entity/financials/general.js","portal/controllers/entity/financials/groups/access.js","portal/controllers/entity/financials/groups/membership.js","portal/controllers/entity/financials/groups/order.js","portal/controllers/entity/financials/import.js","portal/controllers/entity/financials/import/data.js","portal/controllers/entity/financials/import/start.js","portal/controllers/entity/financials/kpis.js","portal/controllers/entity/financials/kpis/kpi.js","portal/controllers/entity/financials/planning/strategies.js","portal/controllers/entity/financials/reports/general-ledger/balance-sheet.js","portal/controllers/entity/financials/reports/general-ledger/generic.js","portal/controllers/entity/financials/reports/general-ledger/itm-profit-and-loss.js","portal/controllers/entity/financials/reports/general-ledger/other-data.js","portal/controllers/entity/financials/reports/general-ledger/personal-data.js","portal/controllers/entity/financials/reports/general-ledger/profit-and-loss.js","portal/controllers/entity/financials/reports/kpis/index.js","portal/controllers/entity/financials/reports/kpis/kpi.js","portal/controllers/entity/index.js","portal/controllers/entity/module-dashboard.js","portal/controllers/entity/settings/auto-mapping.js","portal/controllers/entity/settings/chart-of-accounts/chart-of-account.js","portal/controllers/entity/settings/chart-of-accounts/index.js","portal/controllers/entity/settings/company.js","portal/controllers/entity/settings/contacts/contact.js","portal/controllers/entity/settings/contacts/index.js","portal/controllers/entity/settings/gl-accounts.js","portal/controllers/entity/settings/integrations.js","portal/controllers/entity/settings/people.js","portal/controllers/entity/settings/people/clients/client.js","portal/controllers/entity/settings/people/clients/index.js","portal/controllers/entity/settings/people/subcontractors/index.js","portal/controllers/entity/settings/people/subcontractors/subcontractor.js","portal/controllers/entity/settings/people/users/index.js","portal/controllers/entity/settings/people/users/user.js","portal/controllers/entity/settings/people/workers/index.js","portal/controllers/entity/settings/people/workers/worker.js","portal/controllers/entity/settings/profile.js","portal/controllers/entity/settings/suppliers.js","portal/controllers/initiate-password-reset.js","portal/controllers/no-access.js","portal/controllers/reset-password.js","portal/controllers/terms-of-service.js","portal/data-adapter.js","portal/formats.js","portal/helpers/-base.js","portal/helpers/and.js","portal/helpers/app-version.js","portal/helpers/assign.js","portal/helpers/bool.js","portal/helpers/camel-case-words.js","portal/helpers/camelize.js","portal/helpers/cancel-all.js","portal/helpers/capitalize.js","portal/helpers/changeset-get.js","portal/helpers/changeset-set.js","portal/helpers/changeset.js","portal/helpers/chunk-callback.js","portal/helpers/classify.js","portal/helpers/convert-to-title-case.js","portal/helpers/dasherize.js","portal/helpers/date-ago.js","portal/helpers/element.js","portal/helpers/ellipsis-characters.js","portal/helpers/ellipsis-words.js","portal/helpers/ember-power-calendar-day-classes.js","portal/helpers/ember-power-select-is-equal.js","portal/helpers/ember-power-select-is-group.js","portal/helpers/ember-power-select-is-selected-present.js","portal/helpers/ensure-safe-component.js","portal/helpers/eq.js","portal/helpers/excludes-feature-flags.js","portal/helpers/excludes-some-feature-flags.js","portal/helpers/file-size-to-string.js","portal/helpers/format-date.js","portal/helpers/format-duration.js","portal/helpers/format-message.js","portal/helpers/format-number.js","portal/helpers/format-relative.js","portal/helpers/format-shortcut.js","portal/helpers/format-time.js","portal/helpers/get-file-icon.js","portal/helpers/gt.js","portal/helpers/gte.js","portal/helpers/html-safe.js","portal/helpers/humanize.js","portal/helpers/if-key.js","portal/helpers/ignore-children.js","portal/helpers/inc.js","portal/helpers/includes-feature-flags.js","portal/helpers/includes-some-feature-flags.js","portal/helpers/includes.js","portal/helpers/is-active.js","portal/helpers/is-after.js","portal/helpers/is-array.js","portal/helpers/is-before.js","portal/helpers/is-between.js","portal/helpers/is-empty.js","portal/helpers/is-equal.js","portal/helpers/is-hash.js","portal/helpers/is-same-or-after.js","portal/helpers/is-same-or-before.js","portal/helpers/is-same.js","portal/helpers/lowercase.js","portal/helpers/lt.js","portal/helpers/lte.js","portal/helpers/map-get.js","portal/helpers/math.js","portal/helpers/media.js","portal/helpers/moment-add.js","portal/helpers/moment-calendar.js","portal/helpers/moment-diff.js","portal/helpers/moment-duration.js","portal/helpers/moment-format.js","portal/helpers/moment-from-now.js","portal/helpers/moment-from.js","portal/helpers/moment-subtract.js","portal/helpers/moment-to-date.js","portal/helpers/moment-to-now.js","portal/helpers/moment-to.js","portal/helpers/moment.js","portal/helpers/not-eq.js","portal/helpers/not.js","portal/helpers/now.js","portal/helpers/number-format.js","portal/helpers/number-to-char.js","portal/helpers/object-at.js","portal/helpers/on-key.js","portal/helpers/or.js","portal/helpers/ordinal-for.js","portal/helpers/page-title.js","portal/helpers/pagination-callback.js","portal/helpers/perform.js","portal/helpers/pipe.js","portal/helpers/pluralize.js","portal/helpers/power-calendar-format-date.js","portal/helpers/prevent-default.js","portal/helpers/profit-type-label.js","portal/helpers/project-status-label.js","portal/helpers/range.js","portal/helpers/replace-with.js","portal/helpers/root-url.js","portal/helpers/round-number.js","portal/helpers/route-params.js","portal/helpers/singularize.js","portal/helpers/sort-accounts.js","portal/helpers/stop-propagation.js","portal/helpers/t.js","portal/helpers/task.js","portal/helpers/timesheet-status-label.js","portal/helpers/titleize.js","portal/helpers/toggle-action.js","portal/helpers/toggle.js","portal/helpers/transition-to.js","portal/helpers/trim.js","portal/helpers/truncate.js","portal/helpers/underscore.js","portal/helpers/unix.js","portal/helpers/uppercase.js","portal/helpers/url-for.js","portal/helpers/utc.js","portal/helpers/w.js","portal/helpers/xor.js","portal/initializers/am5.js","portal/initializers/app-version.js","portal/initializers/deprecation-handler.js","portal/initializers/ember-cli-mirage.js","portal/initializers/ember-data-data-adapter.js","portal/initializers/ember-data.js","portal/initializers/ember-responsive-breakpoints.js","portal/initializers/ember-simple-auth.js","portal/initializers/engines.js","portal/initializers/init-domain.js","portal/initializers/mobile-drag-drop.js","portal/initializers/new-relic.js","portal/initializers/responsive.js","portal/initializers/restore-array-extensions.js","portal/initializers/update-check-842bcfc2e55bff3468d9b7cc2cb618ef.js","portal/initializers/urls.js","portal/instance-initializers/add-modals-container.js","portal/metrics-adapters/base.js","portal/metrics-adapters/google-analytics-four.js","portal/mixins/edit-record.js","portal/mixins/menu-route.js","portal/mixins/scroll-route.js","portal/models/account-map.js","portal/models/account.js","portal/models/attachment-attribute.js","portal/models/attachment-project-attribute.js","portal/models/attachment.js","portal/models/base-attachment-model.js","portal/models/base-model.js","portal/models/bill-attachment.js","portal/models/bill-item.js","portal/models/bill.js","portal/models/budget-change-set.js","portal/models/budget-change.js","portal/models/budget-version-value.js","portal/models/budget-version.js","portal/models/contact.js","portal/models/dashboard-module.js","portal/models/eaccounts-invoice-integration.js","portal/models/entity-attribute.js","portal/models/entity-group.js","portal/models/entity-invoice-option.js","portal/models/entity-product.js","portal/models/entity.js","portal/models/estimate.js","portal/models/financial-option.js","portal/models/gl-account.js","portal/models/import.js","portal/models/index.js","portal/models/invoice-attachment.js","portal/models/invoice-auto-map-directive.js","portal/models/invoice-invoice-option.js","portal/models/invoice-item.js","portal/models/invoice.js","portal/models/ips-connection.js","portal/models/ips-document.js","portal/models/itm-supplier.js","portal/models/kpi.js","portal/models/labour-cost-calculator-item.js","portal/models/labour-cost-calculator.js","portal/models/link-attachment-to-entity.js","portal/models/link-attachment-to-project.js","portal/models/link-attachment-to-purchase-order.js","portal/models/link-attachment-to-task.js","portal/models/link-dashboard-module-account.js","portal/models/link-dashboard-module-entity-group.js","portal/models/link-dashboard-module-entity.js","portal/models/link-dashboard-module-kpi.js","portal/models/link-entity-group-can-be-accessed-by.js","portal/models/link-entity-group-member.js","portal/models/link-entity-to-entity-attribute.js","portal/models/link-invoice-item-to-bill-item.js","portal/models/link-invoice-item-to-project.js","portal/models/link-invoice-item-to-task.js","portal/models/link-invoice-item-to-timesheet.js","portal/models/link-task-to-stage-payment.js","portal/models/link-user-to-entity-group.js","portal/models/link-user-to-pricing-role.js","portal/models/pm-connection.js","portal/models/pricing-connection.js","portal/models/pricing-role.js","portal/models/profit-margin.js","portal/models/progress-change-set.js","portal/models/progress-change.js","portal/models/progress-version-value.js","portal/models/progress-version.js","portal/models/project-commit.js","portal/models/project-product.js","portal/models/project.js","portal/models/purchase-order-item.js","portal/models/purchase-order-option.js","portal/models/purchase-order.js","portal/models/quickbooks-employee.js","portal/models/quickbooks-oauth2-connection.js","portal/models/quote-change-set.js","portal/models/quote-change.js","portal/models/quote-version-value.js","portal/models/quote-version.js","portal/models/report-export-option.js","portal/models/resource-event.js","portal/models/scheduling-change-set.js","portal/models/scheduling-change.js","portal/models/scheduling-version-value.js","portal/models/scheduling-version.js","portal/models/stage-payment-option.js","portal/models/stage-payment-question.js","portal/models/stage-payment.js","portal/models/supplier-debtor-account.js","portal/models/system-announcement.js","portal/models/target.js","portal/models/task-change-set.js","portal/models/task-change.js","portal/models/task-product.js","portal/models/task-template-item.js","portal/models/task-template.js","portal/models/task.js","portal/models/timesheet-note.js","portal/models/timesheet-status.js","portal/models/timesheet.js","portal/models/user-attachment-attribute.js","portal/models/user-attribute.js","portal/models/user-entity-attribute.js","portal/models/user-project-attribute.js","portal/models/user-task-attribute.js","portal/models/user-worker-attribute.js","portal/models/user.js","portal/models/worker-attribute.js","portal/models/worker-entity-attribute.js","portal/models/worker-job-allocation.js","portal/models/worker-project-attribute.js","portal/models/worker-task-attribute.js","portal/models/worker.js","portal/models/xero-connection.js","portal/models/xero-earnings-rate.js","portal/models/xero-employee.js","portal/models/xero-tracking-option.js","portal/modifiers/basic-dropdown-trigger.js","portal/modifiers/bootstrap-tooltip.js","portal/modifiers/did-insert.js","portal/modifiers/did-update.js","portal/modifiers/on-key.js","portal/modifiers/style.js","portal/modifiers/will-destroy.js","portal/resolver.js","portal/router.js","portal/routes/admin.js","portal/routes/admin/announcements/announcement.js","portal/routes/admin/announcements/index.js","portal/routes/admin/billing-report.js","portal/routes/admin/demo-entity.js","portal/routes/admin/entities/entity.js","portal/routes/admin/entities/index.js","portal/routes/admin/index.js","portal/routes/admin/licensees/index.js","portal/routes/admin/licensees/licensee.js","portal/routes/application.js","portal/routes/basic.js","portal/routes/complete-pm-auth.js","portal/routes/complete-registration-cb.js","portal/routes/embed.js","portal/routes/embed/documents.js","portal/routes/embed/documents/index.js","portal/routes/embed/documents/project-file.js","portal/routes/embed/documents/project-file/index.js","portal/routes/embed/documents/project-file/task-file.js","portal/routes/embed/error.js","portal/routes/embed/labour-hours.js","portal/routes/embed/notes.js","portal/routes/embed/position.js","portal/routes/embed/profit-margins.js","portal/routes/embed/timesheets.js","portal/routes/embed/timesheets/timesheet.js","portal/routes/entity-loading.js","portal/routes/entity.js","portal/routes/entity/builda-price.js","portal/routes/entity/builda-price/dashboard/index.js","portal/routes/entity/builda-price/index.js","portal/routes/entity/builda-price/operations/documents.js","portal/routes/entity/builda-price/operations/documents/index.js","portal/routes/entity/builda-price/operations/documents/project-file.js","portal/routes/entity/builda-price/operations/documents/project-file/index.js","portal/routes/entity/builda-price/operations/documents/project-file/task-file.js","portal/routes/entity/builda-price/operations/incoming/bills-legacy.js","portal/routes/entity/builda-price/operations/incoming/bills-legacy/bill.js","portal/routes/entity/builda-price/operations/incoming/bills.js","portal/routes/entity/builda-price/operations/incoming/bills/bill.js","portal/routes/entity/builda-price/operations/incoming/index.js","portal/routes/entity/builda-price/operations/incoming/invoices/index.js","portal/routes/entity/builda-price/operations/incoming/invoices/invoice.js","portal/routes/entity/builda-price/operations/incoming/statements.js","portal/routes/entity/builda-price/operations/incoming/timesheets.js","portal/routes/entity/builda-price/operations/incoming/timesheets/index.js","portal/routes/entity/builda-price/operations/incoming/timesheets/timesheet-loading.js","portal/routes/entity/builda-price/operations/incoming/timesheets/timesheet.js","portal/routes/entity/builda-price/operations/index.js","portal/routes/entity/builda-price/operations/outgoing/index.js","portal/routes/entity/builda-price/operations/outgoing/invoices/index.js","portal/routes/entity/builda-price/operations/outgoing/invoices/invoice.js","portal/routes/entity/builda-price/operations/outgoing/payroll.js","portal/routes/entity/builda-price/operations/outgoing/purchase-orders.js","portal/routes/entity/builda-price/operations/outgoing/purchase-orders/index.js","portal/routes/entity/builda-price/operations/outgoing/purchase-orders/purchase-order.js","portal/routes/entity/builda-price/operations/outgoing/report-builder/csv.js","portal/routes/entity/builda-price/operations/outgoing/report-builder/excel.js","portal/routes/entity/builda-price/operations/outgoing/report-builder/index.js","portal/routes/entity/builda-price/operations/outgoing/report-builder/pdf.js","portal/routes/entity/builda-price/operations/products.js","portal/routes/entity/builda-price/projects.js","portal/routes/entity/builda-price/projects/index.js","portal/routes/entity/builda-price/projects/project.js","portal/routes/entity/builda-price/projects/project/documents.js","portal/routes/entity/builda-price/projects/project/estimates/estimate.js","portal/routes/entity/builda-price/projects/project/estimates/index.js","portal/routes/entity/builda-price/projects/project/financials.js","portal/routes/entity/builda-price/projects/project/health-and-safety.js","portal/routes/entity/builda-price/projects/project/index.js","portal/routes/entity/builda-price/projects/project/people.js","portal/routes/entity/builda-price/projects/project/people/clients/client.js","portal/routes/entity/builda-price/projects/project/people/clients/index.js","portal/routes/entity/builda-price/projects/project/people/index.js","portal/routes/entity/builda-price/projects/project/people/subcontractors/index.js","portal/routes/entity/builda-price/projects/project/people/subcontractors/subcontractor.js","portal/routes/entity/builda-price/projects/project/people/users/index.js","portal/routes/entity/builda-price/projects/project/people/users/user.js","portal/routes/entity/builda-price/projects/project/people/workers/index.js","portal/routes/entity/builda-price/projects/project/people/workers/worker.js","portal/routes/entity/builda-price/projects/project/prices.js","portal/routes/entity/builda-price/projects/project/products.js","portal/routes/entity/builda-price/projects/project/progress.js","portal/routes/entity/builda-price/projects/project/settings.js","portal/routes/entity/builda-price/projects/project/stage-payments.js","portal/routes/entity/builda-price/projects/project/tasks/index.js","portal/routes/entity/builda-price/projects/project/tasks/task.js","portal/routes/entity/builda-price/projects/project/tasks/task/documents.js","portal/routes/entity/builda-price/projects/project/tasks/task/financials.js","portal/routes/entity/builda-price/projects/project/tasks/task/index.js","portal/routes/entity/builda-price/projects/project/tasks/task/people.js","portal/routes/entity/builda-price/projects/project/tasks/task/people/clients/client.js","portal/routes/entity/builda-price/projects/project/tasks/task/people/clients/index.js","portal/routes/entity/builda-price/projects/project/tasks/task/people/index.js","portal/routes/entity/builda-price/projects/project/tasks/task/people/subcontractors/index.js","portal/routes/entity/builda-price/projects/project/tasks/task/people/subcontractors/subcontractor.js","portal/routes/entity/builda-price/projects/project/tasks/task/people/users/index.js","portal/routes/entity/builda-price/projects/project/tasks/task/people/users/user.js","portal/routes/entity/builda-price/projects/project/tasks/task/people/workers/index.js","portal/routes/entity/builda-price/projects/project/tasks/task/people/workers/worker.js","portal/routes/entity/builda-price/projects/project/tasks/task/products.js","portal/routes/entity/builda-price/projects/project/tasks/task/settings.js","portal/routes/entity/builda-price/reports/company/forecast-breakdown.js","portal/routes/entity/builda-price/reports/company/invoicing.js","portal/routes/entity/builda-price/reports/company/labour-hours.js","portal/routes/entity/builda-price/reports/company/notes.js","portal/routes/entity/builda-price/reports/company/position.js","portal/routes/entity/builda-price/reports/company/profit-margins.js","portal/routes/entity/builda-price/reports/company/wip.js","portal/routes/entity/builda-price/reports/index.js","portal/routes/entity/builda-price/reports/projects/index.js","portal/routes/entity/builda-price/reports/projects/project.js","portal/routes/entity/builda-price/reports/projects/project/access.js","portal/routes/entity/builda-price/reports/projects/project/budget/index.js","portal/routes/entity/builda-price/reports/projects/project/budget/task.js","portal/routes/entity/builda-price/reports/projects/project/budget/task/index.js","portal/routes/entity/builda-price/reports/projects/project/chargeup/index.js","portal/routes/entity/builda-price/reports/projects/project/chargeup/task.js","portal/routes/entity/builda-price/reports/projects/project/chargeup/task/index.js","portal/routes/entity/builda-price/reports/projects/project/cost-to-complete/index.js","portal/routes/entity/builda-price/reports/projects/project/cost-to-complete/task.js","portal/routes/entity/builda-price/reports/projects/project/cost-to-complete/task/index.js","portal/routes/entity/builda-price/reports/projects/project/cost.js","portal/routes/entity/builda-price/reports/projects/project/forecast-breakdown/index.js","portal/routes/entity/builda-price/reports/projects/project/forecast-breakdown/task.js","portal/routes/entity/builda-price/reports/projects/project/forecast-breakdown/task/index.js","portal/routes/entity/builda-price/reports/projects/project/index.js","portal/routes/entity/builda-price/reports/projects/project/invoicing/index.js","portal/routes/entity/builda-price/reports/projects/project/invoicing/task.js","portal/routes/entity/builda-price/reports/projects/project/invoicing/task/index.js","portal/routes/entity/builda-price/reports/projects/project/labour-hours/index.js","portal/routes/entity/builda-price/reports/projects/project/labour-hours/task.js","portal/routes/entity/builda-price/reports/projects/project/labour-hours/task/index.js","portal/routes/entity/builda-price/reports/projects/project/notes.js","portal/routes/entity/builda-price/reports/projects/project/position/index.js","portal/routes/entity/builda-price/reports/projects/project/position/task.js","portal/routes/entity/builda-price/reports/projects/project/position/task/index.js","portal/routes/entity/builda-price/reports/projects/project/profit-margins/index.js","portal/routes/entity/builda-price/reports/projects/project/profit-margins/task.js","portal/routes/entity/builda-price/reports/projects/project/profit-margins/task/index.js","portal/routes/entity/builda-price/reports/projects/project/quote/index.js","portal/routes/entity/builda-price/reports/projects/project/quote/task.js","portal/routes/entity/builda-price/reports/projects/project/quote/task/index.js","portal/routes/entity/builda-price/scheduling.js","portal/routes/entity/builda-price/scheduling/index.js","portal/routes/entity/builda-price/scheduling/timeline.js","portal/routes/entity/disabled.js","portal/routes/entity/financials.js","portal/routes/entity/financials/chart-of-accounts.js","portal/routes/entity/financials/dashboard-loading.js","portal/routes/entity/financials/dashboard.js","portal/routes/entity/financials/general.js","portal/routes/entity/financials/groups.js","portal/routes/entity/financials/groups/access.js","portal/routes/entity/financials/groups/index.js","portal/routes/entity/financials/groups/membership.js","portal/routes/entity/financials/groups/order.js","portal/routes/entity/financials/import.js","portal/routes/entity/financials/import/data.js","portal/routes/entity/financials/import/done.js","portal/routes/entity/financials/import/index.js","portal/routes/entity/financials/import/start.js","portal/routes/entity/financials/index.js","portal/routes/entity/financials/kpis.js","portal/routes/entity/financials/kpis/index.js","portal/routes/entity/financials/kpis/kpi.js","portal/routes/entity/financials/planning/strategies.js","portal/routes/entity/financials/reports/general-ledger/balance-sheet.js","portal/routes/entity/financials/reports/general-ledger/base.js","portal/routes/entity/financials/reports/general-ledger/itm-profit-and-loss.js","portal/routes/entity/financials/reports/general-ledger/other-data.js","portal/routes/entity/financials/reports/general-ledger/personal-data.js","portal/routes/entity/financials/reports/general-ledger/profit-and-loss.js","portal/routes/entity/financials/reports/imports.js","portal/routes/entity/financials/reports/index.js","portal/routes/entity/financials/reports/kpis/index.js","portal/routes/entity/financials/reports/kpis/kpi.js","portal/routes/entity/index.js","portal/routes/entity/module-dashboard.js","portal/routes/entity/settings/auto-mapping.js","portal/routes/entity/settings/chart-of-accounts/chart-of-account.js","portal/routes/entity/settings/chart-of-accounts/index.js","portal/routes/entity/settings/company.js","portal/routes/entity/settings/contacts/contact.js","portal/routes/entity/settings/contacts/index.js","portal/routes/entity/settings/estimates/embedded-page.js","portal/routes/entity/settings/index.js","portal/routes/entity/settings/integrations.js","portal/routes/entity/settings/people/clients/client.js","portal/routes/entity/settings/people/clients/index.js","portal/routes/entity/settings/people/index.js","portal/routes/entity/settings/people/subcontractors/index.js","portal/routes/entity/settings/people/subcontractors/subcontractor.js","portal/routes/entity/settings/people/users/index.js","portal/routes/entity/settings/people/users/user.js","portal/routes/entity/settings/people/workers/index.js","portal/routes/entity/settings/people/workers/worker.js","portal/routes/entity/settings/profile.js","portal/routes/error.js","portal/routes/index.js","portal/routes/initiate-password-reset.js","portal/routes/loading.js","portal/routes/login-redirect.js","portal/routes/login.js","portal/routes/logout-redirect.js","portal/routes/no-access.js","portal/routes/reset-password.js","portal/routes/terms-of-service.js","portal/serializers/api-v2-serializer.js","portal/serializers/application.js","portal/serializers/entity-product.js","portal/serializers/project-product.js","portal/serializers/task-product.js","portal/services/-ensure-registered.js","portal/services/accounting-platform.js","portal/services/bills-data.js","portal/services/builda-price.js","portal/services/cache.js","portal/services/chargebee.js","portal/services/cookies.js","portal/services/dialog.js","portal/services/ember-elsewhere.js","portal/services/engine-data.js","portal/services/financial-portal-period-selector.js","portal/services/help-center.js","portal/services/intl.js","portal/services/invoiced-costs.js","portal/services/ips.js","portal/services/keyboard.js","portal/services/media-events.js","portal/services/media.js","portal/services/metrics.js","portal/services/mobile-menu.js","portal/services/modal-dialog.js","portal/services/modules.js","portal/services/moment.js","portal/services/new-feature-flags.js","portal/services/notifications.js","portal/services/number-format.js","portal/services/os.js","portal/services/oss-engine-data.js","portal/services/page-title.js","portal/services/pdf-export.js","portal/services/placemakers.js","portal/services/platform.js","portal/services/portal-api-v2.js","portal/services/portal-api.js","portal/services/power-calendar.js","portal/services/pricing.js","portal/services/quickbooks.js","portal/services/reports-download.js","portal/services/session-data.js","portal/services/session.js","portal/services/store.js","portal/services/system-announcements.js","portal/services/xero-integration.js","portal/session-stores/application.js","portal/storages/settings.js","portal/templates/admin-loading.js","portal/templates/admin.js","portal/templates/admin/announcements.js","portal/templates/admin/announcements/announcement.js","portal/templates/admin/announcements/index.js","portal/templates/admin/billing-report.js","portal/templates/admin/demo-entity.js","portal/templates/admin/entities.js","portal/templates/admin/entities/entity.js","portal/templates/admin/entities/index.js","portal/templates/admin/licensees.js","portal/templates/admin/licensees/index.js","portal/templates/admin/licensees/licensee.js","portal/templates/application.js","portal/templates/complete-pm-auth.js","portal/templates/complete-registration-cb.js","portal/templates/embed.js","portal/templates/embed/error.js","portal/templates/entity-access-denied.js","portal/templates/entity.js","portal/templates/entity/builda-price.js","portal/templates/entity/builda-price/dashboard.js","portal/templates/entity/builda-price/dashboard/index.js","portal/templates/entity/builda-price/operations.js","portal/templates/entity/builda-price/operations/communications.js","portal/templates/entity/builda-price/operations/documents.js","portal/templates/entity/builda-price/operations/documents/index.js","portal/templates/entity/builda-price/operations/documents/project-file.js","portal/templates/entity/builda-price/operations/documents/project-file/index.js","portal/templates/entity/builda-price/operations/documents/project-file/task-file.js","portal/templates/entity/builda-price/operations/incoming.js","portal/templates/entity/builda-price/operations/incoming/bills-legacy-loading.js","portal/templates/entity/builda-price/operations/incoming/bills-legacy.js","portal/templates/entity/builda-price/operations/incoming/bills-legacy/bill.js","portal/templates/entity/builda-price/operations/incoming/bills.js","portal/templates/entity/builda-price/operations/incoming/bills/bill.js","portal/templates/entity/builda-price/operations/incoming/statements.js","portal/templates/entity/builda-price/operations/incoming/timesheets-loading.js","portal/templates/entity/builda-price/operations/incoming/timesheets.js","portal/templates/entity/builda-price/operations/incoming/timesheets/timesheet.js","portal/templates/entity/builda-price/operations/outgoing.js","portal/templates/entity/builda-price/operations/outgoing/invoices/index.js","portal/templates/entity/builda-price/operations/outgoing/invoices/invoice.js","portal/templates/entity/builda-price/operations/outgoing/payroll-loading.js","portal/templates/entity/builda-price/operations/outgoing/payroll.js","portal/templates/entity/builda-price/operations/outgoing/purchase-orders/index.js","portal/templates/entity/builda-price/operations/outgoing/purchase-orders/purchase-order.js","portal/templates/entity/builda-price/operations/outgoing/report-builder/csv.js","portal/templates/entity/builda-price/operations/outgoing/report-builder/excel.js","portal/templates/entity/builda-price/operations/outgoing/report-builder/index-loading.js","portal/templates/entity/builda-price/operations/outgoing/report-builder/index.js","portal/templates/entity/builda-price/operations/outgoing/report-builder/pdf.js","portal/templates/entity/builda-price/operations/products.js","portal/templates/entity/builda-price/projects.js","portal/templates/entity/builda-price/projects/index.js","portal/templates/entity/builda-price/projects/project.js","portal/templates/entity/builda-price/projects/project/documents.js","portal/templates/entity/builda-price/projects/project/estimate.js","portal/templates/entity/builda-price/projects/project/estimates/estimate-loading.js","portal/templates/entity/builda-price/projects/project/estimates/estimate.js","portal/templates/entity/builda-price/projects/project/estimates/index.js","portal/templates/entity/builda-price/projects/project/financials.js","portal/templates/entity/builda-price/projects/project/health-and-safety.js","portal/templates/entity/builda-price/projects/project/health-and-safety/index-loading.js","portal/templates/entity/builda-price/projects/project/health-and-safety/index.js","portal/templates/entity/builda-price/projects/project/people.js","portal/templates/entity/builda-price/projects/project/people/clients.js","portal/templates/entity/builda-price/projects/project/people/clients/client.js","portal/templates/entity/builda-price/projects/project/people/clients/index.js","portal/templates/entity/builda-price/projects/project/people/subcontractors.js","portal/templates/entity/builda-price/projects/project/people/subcontractors/index.js","portal/templates/entity/builda-price/projects/project/people/subcontractors/subcontractor.js","portal/templates/entity/builda-price/projects/project/people/users.js","portal/templates/entity/builda-price/projects/project/people/users/index.js","portal/templates/entity/builda-price/projects/project/people/users/user.js","portal/templates/entity/builda-price/projects/project/people/workers.js","portal/templates/entity/builda-price/projects/project/people/workers/index.js","portal/templates/entity/builda-price/projects/project/people/workers/worker.js","portal/templates/entity/builda-price/projects/project/products.js","portal/templates/entity/builda-price/projects/project/progress.js","portal/templates/entity/builda-price/projects/project/settings.js","portal/templates/entity/builda-price/projects/project/stage-payments.js","portal/templates/entity/builda-price/projects/project/tasks.js","portal/templates/entity/builda-price/projects/project/tasks/index.js","portal/templates/entity/builda-price/projects/project/tasks/task.js","portal/templates/entity/builda-price/projects/project/tasks/task/documents.js","portal/templates/entity/builda-price/projects/project/tasks/task/financials.js","portal/templates/entity/builda-price/projects/project/tasks/task/people.js","portal/templates/entity/builda-price/projects/project/tasks/task/people/clients.js","portal/templates/entity/builda-price/projects/project/tasks/task/people/clients/client.js","portal/templates/entity/builda-price/projects/project/tasks/task/people/clients/index.js","portal/templates/entity/builda-price/projects/project/tasks/task/people/subcontractors.js","portal/templates/entity/builda-price/projects/project/tasks/task/people/subcontractors/index.js","portal/templates/entity/builda-price/projects/project/tasks/task/people/subcontractors/subcontractor.js","portal/templates/entity/builda-price/projects/project/tasks/task/people/users.js","portal/templates/entity/builda-price/projects/project/tasks/task/people/users/index.js","portal/templates/entity/builda-price/projects/project/tasks/task/people/users/user.js","portal/templates/entity/builda-price/projects/project/tasks/task/people/workers.js","portal/templates/entity/builda-price/projects/project/tasks/task/people/workers/index.js","portal/templates/entity/builda-price/projects/project/tasks/task/people/workers/worker.js","portal/templates/entity/builda-price/projects/project/tasks/task/products.js","portal/templates/entity/builda-price/projects/project/tasks/task/settings.js","portal/templates/entity/builda-price/reports.js","portal/templates/entity/builda-price/reports/company.js","portal/templates/entity/builda-price/reports/company/forecast-breakdown.js","portal/templates/entity/builda-price/reports/company/invoicing.js","portal/templates/entity/builda-price/reports/company/labour-hours.js","portal/templates/entity/builda-price/reports/company/notes.js","portal/templates/entity/builda-price/reports/company/position.js","portal/templates/entity/builda-price/reports/company/profit-margins.js","portal/templates/entity/builda-price/reports/company/wip.js","portal/templates/entity/builda-price/reports/projects.js","portal/templates/entity/builda-price/reports/projects/index.js","portal/templates/entity/builda-price/reports/projects/project.js","portal/templates/entity/builda-price/reports/projects/project/access.js","portal/templates/entity/builda-price/reports/projects/project/budget/index.js","portal/templates/entity/builda-price/reports/projects/project/budget/task/index.js","portal/templates/entity/builda-price/reports/projects/project/chargeup/index.js","portal/templates/entity/builda-price/reports/projects/project/chargeup/task/index.js","portal/templates/entity/builda-price/reports/projects/project/cost-to-complete/index.js","portal/templates/entity/builda-price/reports/projects/project/cost-to-complete/task/index.js","portal/templates/entity/builda-price/reports/projects/project/cost.js","portal/templates/entity/builda-price/reports/projects/project/forecast-breakdown/index.js","portal/templates/entity/builda-price/reports/projects/project/forecast-breakdown/task/index.js","portal/templates/entity/builda-price/reports/projects/project/invoicing/index.js","portal/templates/entity/builda-price/reports/projects/project/invoicing/task/index.js","portal/templates/entity/builda-price/reports/projects/project/labour-hours/index.js","portal/templates/entity/builda-price/reports/projects/project/labour-hours/task/index.js","portal/templates/entity/builda-price/reports/projects/project/notes.js","portal/templates/entity/builda-price/reports/projects/project/position/index.js","portal/templates/entity/builda-price/reports/projects/project/position/task/index.js","portal/templates/entity/builda-price/reports/projects/project/profit-margins/index.js","portal/templates/entity/builda-price/reports/projects/project/profit-margins/task/index.js","portal/templates/entity/builda-price/reports/projects/project/quote/index.js","portal/templates/entity/builda-price/reports/projects/project/quote/task/index.js","portal/templates/entity/builda-price/scheduling.js","portal/templates/entity/builda-price/scheduling/timeline.js","portal/templates/entity/disabled.js","portal/templates/entity/financials-loading.js","portal/templates/entity/financials.js","portal/templates/entity/financials/chart-of-accounts-loading.js","portal/templates/entity/financials/chart-of-accounts.js","portal/templates/entity/financials/dashboard.js","portal/templates/entity/financials/general-loading.js","portal/templates/entity/financials/general.js","portal/templates/entity/financials/groups-loading.js","portal/templates/entity/financials/groups.js","portal/templates/entity/financials/groups/membership-and-access.js","portal/templates/entity/financials/groups/order.js","portal/templates/entity/financials/import.js","portal/templates/entity/financials/import/data.js","portal/templates/entity/financials/import/done.js","portal/templates/entity/financials/import/index.js","portal/templates/entity/financials/import/start.js","portal/templates/entity/financials/kpis-loading.js","portal/templates/entity/financials/kpis.js","portal/templates/entity/financials/kpis/kpi.js","portal/templates/entity/financials/planning/strategies.js","portal/templates/entity/financials/reports.js","portal/templates/entity/financials/reports/general-ledger/balance-sheet-loading.js","portal/templates/entity/financials/reports/general-ledger/balance-sheet.js","portal/templates/entity/financials/reports/general-ledger/itm-profit-and-loss-loading.js","portal/templates/entity/financials/reports/general-ledger/itm-profit-and-loss.js","portal/templates/entity/financials/reports/general-ledger/other-data-loading.js","portal/templates/entity/financials/reports/general-ledger/other-data.js","portal/templates/entity/financials/reports/general-ledger/personal-data-loading.js","portal/templates/entity/financials/reports/general-ledger/personal-data.js","portal/templates/entity/financials/reports/general-ledger/profit-and-loss-loading.js","portal/templates/entity/financials/reports/general-ledger/profit-and-loss.js","portal/templates/entity/financials/reports/imports-loading.js","portal/templates/entity/financials/reports/imports.js","portal/templates/entity/financials/reports/kpis-loading.js","portal/templates/entity/financials/reports/kpis.js","portal/templates/entity/financials/reports/kpis/index.js","portal/templates/entity/financials/reports/kpis/kpi.js","portal/templates/entity/module-dashboard.js","portal/templates/entity/settings.js","portal/templates/entity/settings/auto-mapping-loading.js","portal/templates/entity/settings/auto-mapping.js","portal/templates/entity/settings/chart-of-accounts.js","portal/templates/entity/settings/chart-of-accounts/chart-of-account.js","portal/templates/entity/settings/chart-of-accounts/index.js","portal/templates/entity/settings/company-loading.js","portal/templates/entity/settings/company.js","portal/templates/entity/settings/contacts.js","portal/templates/entity/settings/contacts/contact.js","portal/templates/entity/settings/contacts/index.js","portal/templates/entity/settings/estimates/embedded-page.js","portal/templates/entity/settings/integrations.js","portal/templates/entity/settings/people.js","portal/templates/entity/settings/people/clients.js","portal/templates/entity/settings/people/clients/client.js","portal/templates/entity/settings/people/clients/index.js","portal/templates/entity/settings/people/subcontractors.js","portal/templates/entity/settings/people/subcontractors/index.js","portal/templates/entity/settings/people/subcontractors/subcontractor.js","portal/templates/entity/settings/people/users.js","portal/templates/entity/settings/people/users/index.js","portal/templates/entity/settings/people/users/user.js","portal/templates/entity/settings/people/workers.js","portal/templates/entity/settings/people/workers/index.js","portal/templates/entity/settings/people/workers/worker.js","portal/templates/entity/settings/profile.js","portal/templates/error.js","portal/templates/initiate-password-reset.js","portal/templates/loading.js","portal/templates/login.js","portal/templates/logout-redirect.js","portal/templates/no-access.js","portal/templates/not-found.js","portal/templates/project.js","portal/templates/project/no-site.js","portal/templates/project/site.js","portal/templates/project/site/dashboard.js","portal/templates/project/site/details.js","portal/templates/project/site/hazards.js","portal/templates/project/site/hazards/board.js","portal/templates/project/site/hazards/selection.js","portal/templates/project/site/index.js","portal/templates/project/site/ppe.js","portal/templates/project/site/reports/index.js","portal/templates/project/site/reports/report.js","portal/templates/project/site/setup.js","portal/templates/project/site/setup/notifiable.js","portal/templates/project/site/setup/summary.js","portal/templates/project/site/signin.js","portal/templates/reports.js","portal/templates/reset-password.js","portal/templates/site.js","portal/templates/terms-of-service.js","portal/test-support/helpers.js","portal/transforms/array.js","portal/transforms/boolean.js","portal/transforms/date.js","portal/transforms/number.js","portal/transforms/string.js","portal/transitions.js","portal/utils/am5-bp-theme.js","portal/utils/auto-map.js","portal/utils/balance-calculator.js","portal/utils/bill-parsers/bunnings.js","portal/utils/bill-parsers/carters-type-1.js","portal/utils/bill-parsers/carters-type-2.js","portal/utils/bill-parsers/carters-type-3.js","portal/utils/bill-parsers/carters-type-4.js","portal/utils/bill-parsers/carters.js","portal/utils/bill-parsers/csv.js","portal/utils/bill-parsers/itm.js","portal/utils/bill-parsers/mitre.js","portal/utils/bill-parsers/placemakers.js","portal/utils/bill-parsers/xero.js","portal/utils/bunnings-bill-csv-normalizer.js","portal/utils/calc-map-balance.js","portal/utils/collection-to-array.js","portal/utils/computed.js","portal/utils/crystal-csv-generator.js","portal/utils/csv-builder.js","portal/utils/deprecation-filter.js","portal/utils/download.js","portal/utils/duration-input.js","portal/utils/email-validator.js","portal/utils/extract-number.js","portal/utils/favicon-title.js","portal/utils/find-date.js","portal/utils/find-param.js","portal/utils/get-default-language.js","portal/utils/gl-import-parsers/banklink.js","portal/utils/gl-import-parsers/empower.js","portal/utils/gl-import-parsers/frameworks.js","portal/utils/gl-import-parsers/gj-gardner.js","portal/utils/gl-import-parsers/itm-manual.js","portal/utils/gl-import-parsers/maxim.js","portal/utils/gl-import-parsers/myob-ao.js","portal/utils/gl-import-parsers/myob.js","portal/utils/gl-import-parsers/new-xero-parser.js","portal/utils/gl-import-parsers/old-xero-parser.js","portal/utils/gl-import-parsers/prostix.js","portal/utils/gl-import-parsers/rees.js","portal/utils/gl-import-parsers/xero-csv.js","portal/utils/intl/missing-message.js","portal/utils/labour-cost-calculator-fixtures.js","portal/utils/loading-route-from.js","portal/utils/make-temp-id.js","portal/utils/multi-selectable-tree-item.js","portal/utils/nest.js","portal/utils/network-errors.js","portal/utils/oidc-config.js","portal/utils/parse-currency-string.js","portal/utils/path-resolver.js","portal/utils/placemakers-bill-csv-normalizer.js","portal/utils/platform.js","portal/utils/profit-margin.js","portal/utils/report-builder-attachments-bundle.js","portal/utils/report-builder-mark-as-reported.js","portal/utils/report-builder.js","portal/utils/sanitize-filename.js","portal/utils/search-filter.js","portal/utils/search-term-escape.js","portal/utils/smart-payroll-csv-generator.js","portal/utils/sort-accounts.js","portal/utils/sort-by-account-code.js","portal/utils/string-similarity.js","portal/utils/sums.js","portal/utils/task-templates.js","portal/utils/titleize.js","portal/utils/tree-item.js","portal/validators/bill-item.js","portal/validators/bill.js","portal/validators/ips-connection.js","vendor/ember-cli/app-config.js","vendor/ember-cli/app-boot.js"],"sourcesContent":["'use strict';\n\n\n","define(\"portal/adapters/api-v2-adapter\", [\"exports\", \"@ember-data/adapter/rest\", \"portal/config/environment\", \"ember-inflector\", \"@ember/service\", \"@ember/string\"], function (_exports, _rest, _environment, _emberInflector, _service, _string) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/adapter/rest\",0,\"portal/config/environment\",0,\"ember-inflector\",0,\"@ember/service\",0,\"@ember/string\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let ApiV2Adapter = _exports.default = (_class = class ApiV2Adapter extends _rest.default {\n    pathForType(type) {\n      // eslint-disable-next-line ember/no-string-prototype-extensions\n      return (0, _emberInflector.pluralize)((0, _string.dasherize)(type));\n    }\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"session\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _defineProperty(this, \"host\", void 0);\n      _defineProperty(this, \"headers\", void 0);\n      this.host = _environment.default.urls.api + _environment.default.urls.apiV2Path + '/resources';\n      const access_token = this.session.data.authenticated.access_token;\n      this.headers = {\n        Authorization: `Bearer ${access_token}`\n      };\n    }\n    createRecord(store, type, snapshot) {\n      const data = this.serialize(snapshot, {\n        includeId: true\n      });\n      for (const key of Object.keys(data)) {\n        if (snapshot.record[key] === undefined) delete data[key];\n      }\n      let url = this.buildURL(type.modelName, null, snapshot, 'createRecord');\n      return this.ajax(url, 'POST', {\n        data\n      });\n    }\n    updateRecord(store, type, snapshot) {\n      const data = this.serialize(snapshot, {\n        includeId: true\n      });\n      for (const key of Object.keys(data)) {\n        if (snapshot.record[key] === undefined) delete data[key];\n      }\n      let id = snapshot.id;\n      let url = this.buildURL(type.modelName, id, snapshot, 'updateRecord');\n      return this.ajax(url, 'PUT', {\n        data\n      });\n    }\n    async saveBulk(type, records) {\n      const url = this.buildURL(type, null, records, 'saveBulk');\n      const serializedRecords = records.map(record => this.serialize(record, {\n        includeId: true\n      }));\n      return this.ajax(url, 'PUT', {\n        data: JSON.stringify(serializedRecords),\n        contentType: 'application/json; charset=utf-8'\n      }).then(response => {\n        response.forEach((res, index) => {\n          const modelClass = this.store.modelFor(type);\n          const pendingRecord = records[index];\n          const mergedData = Object.assign({}, this.serialize(pendingRecord, {\n            includeId: true\n          }), res);\n          const data = this.store.serializerFor(type).normalize(modelClass, {\n            id: res._id,\n            ...mergedData\n          });\n          if (pendingRecord.isNew) {\n            pendingRecord.set('id', res._id);\n          }\n          this.store.push(data);\n          pendingRecord._internalModel._recordData._attributes = {};\n          pendingRecord.send('pushedData');\n        });\n      });\n    }\n    async deleteBulk(type, records) {\n      const url = this.buildURL(type, null, records, 'deleteBulk');\n\n      // mark records as deleted in store before sending to backend\n      records.forEach(record => this.store.peekRecord(type, record).deleteRecord());\n      return this.ajax(url, 'DELETE', {\n        data: JSON.stringify(records),\n        contentType: 'application/json; charset=utf-8'\n      }).then(response => {\n        response.forEach((res, index) => {\n          const pendingRecordId = records[index];\n          const pendingRecord = this.store.peekRecord(type, pendingRecordId);\n          if (pendingRecord.isDeleted && pendingRecord.id === res.id) pendingRecord.unloadRecord();\n        });\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"portal/adapters/application\", [\"exports\", \"@ember-data/adapter/json-api\", \"portal/config/environment\", \"@ember/service\", \"portal/adapters/errors\", \"@ember/string\", \"@ember-data/request-utils/string\"], function (_exports, _jsonApi, _environment, _service, _errors, _string, _string2) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/adapter/json-api\",0,\"portal/config/environment\",0,\"@ember/service\",0,\"portal/adapters/errors\",0,\"@ember/string\",0,\"@ember-data/request-utils/string\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  (0, _string2.irregular)('link-entity-group-can-be-accessed-by', 'link-entity-group-can-be-accessed-bys');\n  class ConcurrencyHandler {\n    constructor(maxConcurrency) {\n      this.maxConcurrency = maxConcurrency;\n      this.runningCount = 0;\n      this.queue = [];\n    }\n    enqueue(asyncTask) {\n      return new Promise((resolve, reject) => {\n        const taskWrapper = async () => {\n          this.runningCount++;\n          try {\n            const result = await asyncTask();\n            resolve(result);\n          } catch (error) {\n            reject(error);\n          } finally {\n            this.runningCount--;\n            this.dequeue();\n          }\n        };\n        this.queue.push(taskWrapper);\n        if (this.runningCount < this.maxConcurrency) {\n          this.dequeue();\n        }\n      });\n    }\n    dequeue() {\n      if (this.queue.length > 0 && this.runningCount < this.maxConcurrency) {\n        const nextTask = this.queue.shift();\n        nextTask();\n      }\n    }\n  }\n  const concurrencyHandler = new ConcurrencyHandler(10);\n  let ApiV2JSONAdapter = _exports.default = (_class = class ApiV2JSONAdapter extends _jsonApi.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"session\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _defineProperty(this, \"coalesceFindRequests\", true);\n      this.host = _environment.default.urls.api + _environment.default.urls.apiV2Path + '/json-api';\n    }\n    get headers() {\n      let headers = {\n        'Content-Type': 'application/json'\n      };\n      if (this.session.isAuthenticated) {\n        headers.Authorization = `Bearer ${this.session.data.authenticated.access_token}`;\n      }\n      return headers;\n    }\n    pathForType(type) {\n      return (0, _string2.pluralize)((0, _string.dasherize)(type));\n    }\n\n    // _meta fields the model declares as `static requiredMetaFields`\n    _withRequiredMeta(modelName, query = {}) {\n      const required = this.store.modelFor(modelName)?.requiredMetaFields;\n      if (!required?.length) return query;\n      const type = this.pathForType(modelName);\n\n      // union, so a call site asking for extra meta keeps both\n      const keys = [...(query.fields?.[type]?.split(',') ?? []), ...required.map(key => `_meta.${key}`)].map(key => key.trim()).filter(Boolean);\n      return {\n        ...query,\n        fields: {\n          ...query.fields,\n          [type]: [...new Set(keys)].join(',')\n        }\n      };\n    }\n\n    // findRecord and findAll both build their params here\n    buildQuery(snapshot) {\n      return this._withRequiredMeta(snapshot.modelName, super.buildQuery(snapshot) ?? {});\n    }\n\n    // Limit the max number of concurrent requests to prevent dos\n    async ajax(url, type, options) {\n      return concurrencyHandler.enqueue(() => super.ajax(url, type, options));\n    }\n    shouldReloadAll() {\n      return true;\n    }\n    shouldBackgroundReloadRecord() {\n      return true;\n    }\n    handleResponse(status) {\n      if (status === 0) {\n        return new _errors.ConnectionError();\n      } else if (status === 401) {\n        this.session.invalidate().catch(() => {});\n      }\n      return super.handleResponse(...arguments);\n    }\n    chunkArray(array, size) {\n      return Array.from({\n        length: Math.ceil(array.length / size)\n      }, (_, i) => array.slice(i * size, i * size + size));\n    }\n\n    // when we \"coalesceFindRequests = true\", it groups all get by id of similar resource requests into find many request\n    // for new json api v2, filter has to be below format\n    async findMany(store, type, ids, snapshots) {\n      const chunkSize = _environment.default.chunkCallbackSize;\n      const chunks = this.chunkArray(ids, chunkSize);\n      const requests = chunks.map(chunk => {\n        const url = this.buildURL(type.modelName, chunk, snapshots, 'findMany');\n        return this.ajax(url, 'GET', {\n          data: this._withRequiredMeta(type.modelName, {\n            filter: {\n              and: [{\n                field: '_id',\n                // TODO change this to id\n                op: 'IN',\n                value: chunk\n              }]\n            }\n          })\n        });\n      });\n\n      // TODO this can be done better\n      const responses = await Promise.all(requests);\n      const merged = responses.reduce((acc, response) => {\n        if (response.data) {\n          acc.data = acc.data.concat(response.data);\n        }\n        if (response.included) {\n          acc.included = (acc.included || []).concat(response.included || []);\n        }\n        return acc;\n      }, {\n        data: []\n      });\n      return merged;\n    }\n    query(store, type, query) {\n      if (query.filter?.simple) {\n        const operatorMapping = {\n          $eq: 'EQ',\n          $ne: 'NE',\n          $in: 'IN',\n          $nin: 'NIN',\n          $lt: 'LT',\n          $gt: 'GT',\n          $lte: 'LE',\n          $gte: 'GE',\n          $like: 'LIKE',\n          $ilike: 'ILIKE'\n        };\n        const _filter = {\n          and: []\n        };\n        for (const [key, value] of Object.entries(query.filter.simple)) {\n          if (value && typeof value === 'object' && !Array.isArray(value)) {\n            for (const [operator, operand] of Object.entries(value)) {\n              const mappedOperator = operatorMapping[operator];\n              if (!mappedOperator) {\n                throw new Error(`Invalid operator: ${operator}`);\n              }\n              if ((operator === '$in' || operator === '$nin') && !Array.isArray(operand)) {\n                throw new Error(`Operand for ${operator} must be an array.`);\n              }\n              _filter.and.push({\n                field: key,\n                op: mappedOperator,\n                value: operand\n              });\n            }\n          } else {\n            _filter.and.push({\n              field: key,\n              op: 'EQ',\n              value: value\n            });\n          }\n        }\n        query.filter = _filter;\n      }\n      return super.query(store, type, this._withRequiredMeta(type.modelName, query));\n    }\n    findRecord(store, type, id, snapshot) {\n      let url = this.buildURL(type.modelName, id, snapshot, 'findRecord');\n\n      // usage example\n      //  adapterOptions: {\n      //      fields: {\n      //        meta: 'canDelete',\n      //      }\n      //    }\n\n      let query = this.buildQuery(snapshot) || {};\n      const {\n        fields\n      } = snapshot.adapterOptions || {};\n\n      // http://jsonapi.org/format/#fetching-sparse-fieldsets\n      if (fields && !Array.isArray(fields) && typeof fields === 'object') {\n        for (const [key, value] of Object.entries(fields)) {\n          query[`fields[${key}]`] = value;\n        }\n      }\n      return this.ajax(url, 'GET', {\n        data: query\n      });\n    }\n    deleteRecord(store, type, snapshot) {\n      const url = new URL(this.buildURL(type.modelName, snapshot.id, snapshot, 'deleteRecord'));\n      const {\n        meta\n      } = snapshot.adapterOptions || {};\n      for (const [key, value] of Object.entries(meta || {})) {\n        url.searchParams.set(`meta[${key}]`, value);\n      }\n      return this.ajax(url.toString(), 'DELETE');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"portal/adapters/entity-product\", [\"exports\", \"portal/adapters/api-v2-adapter\"], function (_exports, _apiV2Adapter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/adapters/api-v2-adapter\"eaimeta@70e063a35619d71f\n  class EntityProductAdapter extends _apiV2Adapter.default {}\n  _exports.default = EntityProductAdapter;\n});","define(\"portal/adapters/errors\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.ConnectionError = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  class ConnectionError extends Error {\n    constructor() {\n      super('The server could not be reached');\n      this.name = 'ConnectionError';\n    }\n  }\n  _exports.ConnectionError = ConnectionError;\n});","define(\"portal/adapters/project-product\", [\"exports\", \"portal/adapters/api-v2-adapter\"], function (_exports, _apiV2Adapter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/adapters/api-v2-adapter\"eaimeta@70e063a35619d71f\n  class ProjectProductAdapter extends _apiV2Adapter.default {}\n  _exports.default = ProjectProductAdapter;\n});","define(\"portal/adapters/task-product\", [\"exports\", \"portal/adapters/api-v2-adapter\"], function (_exports, _apiV2Adapter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/adapters/api-v2-adapter\"eaimeta@70e063a35619d71f\n  class TaskProductAdapter extends _apiV2Adapter.default {}\n  _exports.default = TaskProductAdapter;\n});","define(\"portal/app\", [\"exports\", \"@ember/application\", \"ember-power-calendar-moment\", \"ember-resolver\", \"ember-load-initializers\", \"ember-power-calendar\", \"portal/config/environment\"], function (_exports, _application, _emberPowerCalendarMoment, _emberResolver, _emberLoadInitializers, _emberPowerCalendar, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/application\",0,\"ember-power-calendar-moment\",0,\"ember-resolver\",0,\"ember-load-initializers\",0,\"ember-power-calendar\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  (0, _emberPowerCalendar.registerDateLibrary)(_emberPowerCalendarMoment.default);\n\n  //export default class App extends Application {\n  //  modulePrefix = config.modulePrefix;\n  //  podModulePrefix = config.podModulePrefix;\n  //  Resolver = Resolver;\n  //}\n  //\n  //loadInitializers(App, config.modulePrefix);\n\n  class App extends _application.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"modulePrefix\", _environment.default.modulePrefix);\n      _defineProperty(this, \"podModulePrefix\", _environment.default.podModulePrefix);\n      _defineProperty(this, \"Resolver\", _emberResolver.default);\n      _defineProperty(this, \"engines\", {\n        'builda-price-client-addon': {\n          dependencies: {\n            services: ['dialog', 'engineData', {\n              hostRouter: 'router'\n            }, 'session']\n          }\n        },\n        'oss-portal-addon': {\n          dependencies: {\n            services: ['ossEngineData', {\n              hostRouter: 'router'\n            }, 'dialog', 'notifications', 'session']\n          }\n        }\n      });\n    }\n  }\n  _exports.default = App;\n  (0, _emberLoadInitializers.default)(App, _environment.default.modulePrefix);\n});","define(\"portal/authenticators/embed\", [\"exports\", \"ember-simple-auth/authenticators/base\", \"portal/config/environment\", \"@ember/service\", \"jquery\"], function (_exports, _base, _environment, _service, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"ember-simple-auth/authenticators/base\",0,\"portal/config/environment\",0,\"@ember/service\",0,\"jquery\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let EmbedAuthenticator = _exports.default = (_class = class EmbedAuthenticator extends _base.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"session\", _descriptor, this);\n    }\n    restore(data) {\n      return data;\n    }\n    async authenticate(accessToken = '', userId = '', transition) {\n      const user = await new Promise((resolve, reject) => _jquery.default.ajax({\n        url: `${_environment.default.urls.api}${_environment.default.urls.apiV2Path}/json-api/users/${userId}`,\n        method: 'GET',\n        headers: {\n          Authorization: `Bearer ${accessToken}`\n        },\n        dataType: 'json',\n        contentType: 'application/json'\n      }).then(resolve, reject));\n\n      // https://ember-simple-auth.com/api/classes/ApplicationRouteMixin.html\n      // this causes ember simple auth to retry the transition after the authentication\n      // without this, it would hit the index route and route to the main application\n      this.session.attemptedTransition = transition;\n      return {\n        access_token: accessToken,\n        authenticator: 'authenticator:embed',\n        expires_in: 10800,\n        // not known\n        token_type: 'bearer',\n        user: {\n          id: user.data.id,\n          ...user.data.attributes\n        }\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"portal/authenticators/login-as\", [\"exports\", \"rsvp\", \"portal/authenticators/oauth2\"], function (_exports, _rsvp, _oauth) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"rsvp\",0,\"portal/authenticators/oauth2\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _oauth.default.extend({\n    authenticate(data) {\n      return _rsvp.default.resolve(data);\n    }\n  });\n});","define(\"portal/authenticators/oauth2\", [\"exports\", \"rsvp\", \"@ember/utils\", \"@ember/runloop\", \"@ember/object\", \"@ember/service\", \"jquery\", \"@ember/array\", \"ember-simple-auth/authenticators/oauth2-password-grant\", \"portal/config/environment\"], function (_exports, _rsvp, _utils, _runloop, _object, _service, _jquery, _array, _oauth2PasswordGrant, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"rsvp\",0,\"@ember/utils\",0,\"@ember/runloop\",0,\"@ember/object\",0,\"@ember/service\",0,\"jquery\",0,\"@ember/array\",0,\"ember-simple-auth/authenticators/oauth2-password-grant\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _oauth2PasswordGrant.default.extend({\n    router: (0, _service.inject)(),\n    serverTokenEndpoint: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/auth',\n    serverTokenRevocationEndpoint: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/auth/logout',\n    refreshAccessTokens: false,\n    authenticate(identification, password, scope = []) {\n      return new _rsvp.default.Promise((resolve, reject) => {\n        const data = {\n          grant_type: 'password',\n          identification,\n          password\n        };\n        const serverTokenEndpoint = (0, _object.get)(this, 'serverTokenEndpoint');\n        const scopesString = (0, _array.makeArray)(scope).join(' ');\n        if (!(0, _utils.isEmpty)(scopesString)) {\n          (0, _object.set)(data, 'scope', scopesString);\n        }\n        this.makeRequest(serverTokenEndpoint, data).then(response => (0, _runloop.run)(() => resolve(response)), xhr => (0, _runloop.run)(() => reject(xhr)));\n      });\n    },\n    // Overriden to prevent session timeouts\n    restore(data) {\n      if ((0, _utils.isEmpty)(data['access_token'])) {\n        return _rsvp.default.reject();\n      } else {\n        return _rsvp.default.resolve(data);\n      }\n    },\n    invalidate(data) {\n      // this is automatically called on a 401\n      // the first thing we do is go into the loading route\n      // nothing is waiting for this promise to resolve and the application\n      // keeps trying to load while invalidated\n      // doing this puts us in a safe place to wait for the invalidate to finish\n      this.router.transitionTo('loading');\n\n      // This is mostly taken from the oath2-password-grant source code, see:\n      // https://github.com/simplabs/ember-simple-auth/blob/1.2.0/addon/authenticators/oauth2-password-grant.js#L257\n      // Deviations from the original source are annotated.\n      const serverTokenRevocationEndpoint = this.get('serverTokenRevocationEndpoint');\n      function success(resolve) {\n        (0, _runloop.cancel)(this._refreshTokenTimeout);\n        delete this._refreshTokenTimeout;\n        resolve();\n      }\n      return new _rsvp.default.Promise(resolve => {\n        if ((0, _utils.isEmpty)(serverTokenRevocationEndpoint)) {\n          success.apply(this, [resolve]);\n        } else {\n          const requests = [];\n\n          // Added original user's token to the list of tokens to invalidate.\n          (0, _array.A)(['access_token', 'refresh_token', 'originalUserData.access_token']).forEach(tokenType => {\n            // Switched to get syntax in order to support a path as well as a key.\n            const token = (0, _object.get)(data, tokenType);\n            if (!(0, _utils.isEmpty)(token)) {\n              requests.push(this.makeRequest(serverTokenRevocationEndpoint, {\n                token_type_hint: tokenType,\n                token\n              }));\n            }\n          });\n          const succeed = () => {\n            success.apply(this, [resolve]);\n          };\n          _rsvp.default.all(requests).then(succeed, succeed);\n        }\n      });\n    },\n    makeRequest(url, data) {\n      return _jquery.default.ajax({\n        url,\n        type: 'POST',\n        data: JSON.stringify(data),\n        dataType: 'json',\n        contentType: 'application/json'\n      });\n    }\n  });\n});","define(\"portal/authenticators/oidc\", [\"exports\", \"ember-simple-auth/authenticators/base\", \"@ember/service\", \"portal/utils/oidc-config\"], function (_exports, _base, _service, _oidcConfig) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"ember-simple-auth/authenticators/base\",0,\"@ember/service\",0,\"portal/utils/oidc-config\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const REDIRECT_TIMEOUT = 15000;\n\n  // basically race the IDP to make sure we don't get stuck (it'll redirect us, so this will die)\n  function waitForRedirect(startRedirect) {\n    return new Promise((_resolve, reject) => {\n      const timer = setTimeout(() => reject(new Error('Timed out waiting for the identity server')), REDIRECT_TIMEOUT);\n      Promise.resolve().then(startRedirect).catch(error => {\n        clearTimeout(timer);\n        reject(error);\n      });\n    });\n  }\n  let OidcAuthenticator = _exports.default = (_class = class OidcAuthenticator extends _base.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"session\", _descriptor, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor2, this);\n      _defineProperty(this, \"_isInvalidating\", false);\n      this._bindOidcEvents();\n    }\n    _bindOidcEvents() {\n      _oidcConfig.userManager.events.addUserLoaded(async user => {\n        if (!this.session.isAuthenticated) {\n          // this is a fresh cross tab login so run the full auth method\n          await this.session.authenticate('authenticator:oidc', {\n            bypassRedirect: true,\n            user\n          });\n        } else {\n          // background token refresh - update the session data\n          const existingBpUser = this.session.data.authenticated.user;\n          this.trigger('sessionDataUpdated', {\n            ...user,\n            user: existingBpUser\n          });\n        }\n      });\n      _oidcConfig.userManager.events.addUserUnloaded(() => {\n        if (this.session.isAuthenticated && !this._isInvalidating) {\n          this.session.invalidate();\n        }\n      });\n      _oidcConfig.userManager.events.addAccessTokenExpiring(() => {\n        navigator.locks.request('oidc-client-refresh', {\n          ifAvailable: true\n        }, async lock => {\n          //  if we can't get the lock a faster tab is getting the token\n          if (!lock) return;\n          try {\n            // we got a lock but check if another tab has already refreshed\n            const currentUser = await _oidcConfig.userManager.getUser();\n            if (currentUser && currentUser.expires_in > 60) {\n              return;\n            }\n\n            // token is actually expiring - refresh it\n            await _oidcConfig.userManager.signinSilent();\n          } catch (error) {\n            await this.session.invalidate();\n          }\n        });\n      });\n    }\n    async _buildSessionData(oidcUser) {\n      if (!oidcUser) throw new Error('No OIDC user provided');\n      const bpUser = await this.buildaPrice.getMeFromIdentityId(oidcUser.access_token, oidcUser.profile.sub);\n      return {\n        ...oidcUser,\n        user: bpUser\n      };\n    }\n    async authenticate(options = {}) {\n      if (options.bypassRedirect) {\n        return this._buildSessionData(options.user);\n      }\n\n      // returning from the IDP login screen\n      if (window.location.search.includes('code=')) {\n        const oidcUser = await _oidcConfig.userManager.signinRedirectCallback();\n        return this._buildSessionData(oidcUser);\n      }\n      return waitForRedirect(() => _oidcConfig.userManager.signinRedirect());\n    }\n    async restore(data) {\n      const oidcUser = await _oidcConfig.userManager.getUser();\n      if (!oidcUser || oidcUser.expired) {\n        throw new Error('Session is missing or expired');\n      }\n\n      // if we already have the user, use it...\n      if (data && data.user) {\n        return {\n          ...oidcUser,\n          user: data.user\n        };\n      }\n\n      // ...otherwise we need to load it\n      return this._buildSessionData(oidcUser);\n    }\n\n    // make sure this never rejects otherwise users could get stuck with a broken sesssion\n    async invalidate(_data, options = {}) {\n      this._isInvalidating = true;\n      try {\n        // if returning from the IDP logout screen, just let ESA clear local state\n        if (options.logoutComplete) return;\n\n        // manual logout initiated by the user\n        const oidcUser = await _oidcConfig.userManager.getUser().catch(() => null);\n        if (oidcUser) {\n          try {\n            await waitForRedirect(() => _oidcConfig.userManager.signoutRedirect());\n          } catch (_) {\n            // the IDP never took us, so log out locally rather than hang\n            await this._forgetUser();\n          }\n          return;\n        }\n\n        // if we don't have a session, dump the user manager state\n        await this._forgetUser();\n      } finally {\n        this._isInvalidating = false;\n      }\n    }\n    async _forgetUser() {\n      try {\n        await _oidcConfig.userManager.removeUser();\n      } catch (_) {\n        // absorb the error so we can still clear the ESA session\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"portal/authenticators/push-session\", [\"exports\", \"rsvp\", \"portal/authenticators/oauth2\"], function (_exports, _rsvp, _oauth) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"rsvp\",0,\"portal/authenticators/oauth2\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _oauth.default.extend({\n    authenticate: _rsvp.default.resolve\n  });\n});","define(\"portal/breakpoints\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.BREAKPOINTS = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  /**\n   * the portal's breakpoint scale, declared for the ember-responsive `media`\n   * service. this is what backs `this.media.isDesktop` in js and\n   * `{{media 'isDesktop'}}` in templates.\n   *\n   * keep in sync with app/styles/_breakpoints.scss, which declares the same scale\n   * for scss and also configures bootstrap's $grid-breakpoints -- so `lg` and\n   * `isDesktop` switch at the same width. tests/unit/breakpoints-test.js fails if\n   * the two drift apart.\n   *\n   * only the numbers in BREAKPOINTS are hand-written; the media queries are derived\n   * from them. that matters for `tablet`, whose upper bound is `desktop - 1`: it was\n   * previously a hardcoded 991px, so moving `desktop` on its own would have opened a\n   * band of widths matching no breakpoint at all.\n   */\n\n  const BREAKPOINTS = _exports.BREAKPOINTS = {\n    mobileMax: 767,\n    tablet: 768,\n    desktop: 1200,\n    jumbo: 1550,\n    ultrawide: 1920\n  };\n  const minWidth = px => `(min-width: ${px}px)`;\n  const maxWidth = px => `(max-width: ${px}px)`;\n\n  // mobile / tablet / desktop are mutually exclusive and between them cover every\n  // width. jumbo and ultrawide are subsets of desktop, matching the `*-up` scss\n  // mixins; nothing consumes `isUltrawide` yet, but it is declared so this file and\n  // the scss scale stay a line-for-line match.\n  var _default = _exports.default = {\n    mobile: maxWidth(BREAKPOINTS.mobileMax),\n    tablet: `${minWidth(BREAKPOINTS.tablet)} and ${maxWidth(BREAKPOINTS.desktop - 1)}`,\n    desktop: minWidth(BREAKPOINTS.desktop),\n    jumbo: minWidth(BREAKPOINTS.jumbo),\n    ultrawide: minWidth(BREAKPOINTS.ultrawide)\n  };\n});","define(\"portal/components/active-table\", [\"exports\", \"@ember/component\", \"@ember/object\", \"portal/components/active-table\", \"@ember/template-factory\"], function (_exports, _component, _object, _activeTable, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"portal/components/active-table\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <thead>\n    <tr>\n      {{#each this.headers as |header|}}\n        <th\n          width={{header.width}}\n          class='{{if header.sorted \"data-table__sorted-column-header\"}}\n            {{if header.ascending \"data-table__sorted-column-header--ascending\"}}'\n        >\n          {{#if header.key}}\n            <a {{action 'sortBy' header}} class='link'>\n              <span>{{header.name}}</span>\n            </a>\n          {{else}}\n            {{header.name}}\n          {{/if}}\n        </th>\n      {{/each}}\n    </tr>\n  </thead>\n  \n  <tbody>\n    {{yield}}\n  </tbody>\n  */\n  {\n    \"id\": \"Kqok1v0p\",\n    \"block\": \"[[[10,\\\"thead\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,3],[[28,[37,3],[[30,0,[\\\"headers\\\"]]],null]],null],null,[[[1,\\\"      \\\"],[10,\\\"th\\\"],[15,\\\"width\\\",[30,1,[\\\"width\\\"]]],[15,0,[29,[[52,[30,1,[\\\"sorted\\\"]],\\\"data-table__sorted-column-header\\\"],\\\"\\\\n          \\\",[52,[30,1,[\\\"ascending\\\"]],\\\"data-table__sorted-column-header--ascending\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"key\\\"]],[[[1,\\\"          \\\"],[11,3],[24,0,\\\"link\\\"],[4,[38,7],[[30,0],\\\"sortBy\\\",[30,1]],null],[12],[1,\\\"\\\\n            \\\"],[10,1],[12],[1,[30,1,[\\\"name\\\"]]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n  \\\"],[18,2,null],[1,\\\"\\\\n\\\"],[13]],[\\\"header\\\",\\\"&default\\\"],false,[\\\"thead\\\",\\\"tr\\\",\\\"each\\\",\\\"-track-array\\\",\\\"th\\\",\\\"if\\\",\\\"a\\\",\\\"action\\\",\\\"span\\\",\\\"tbody\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"portal/components/active-table.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    layout: _activeTable.default,\n    tagName: 'table',\n    classNames: ['active-table', 'data-table'],\n    classNameBindings: ['sortable'],\n    data: [],\n    columns: [],\n    sortable: true,\n    headers: (0, _object.computed)('columns', 'sortedBy.0', function () {\n      const [sortedBy, sortDir] = (0, _object.get)(this, 'sortedBy.0').split(':');\n      const columns = (0, _object.get)(this, 'columns');\n      const columnCount = (0, _object.get)(columns, 'length');\n      const headers = [];\n      let totalUnits = 0;\n      let flexibleProportion = 1;\n      columns.forEach(column => {\n        if (column.width) {\n          totalUnits += column.width;\n        } else {\n          flexibleProportion -= 1 / columnCount;\n        }\n      });\n      columns.forEach(column => {\n        const header = _object.default.create({\n          name: column.name,\n          key: column.key\n        });\n        if (column.width && typeof column.width === 'number') {\n          (0, _object.set)(header, 'width', column.width / totalUnits * flexibleProportion * 100 + '%');\n        } else if (column.width && typeof column.width === 'string') {\n          (0, _object.set)(header, 'width', column.width);\n        } else {\n          (0, _object.set)(header, 'width', 1 / columnCount * 100 + '%');\n        }\n\n        // If the content is sorted by this column\n        if (sortedBy === (0, _object.get)(header, 'key')) {\n          (0, _object.set)(header, 'sorted', true);\n          (0, _object.set)(header, 'ascending', sortDir !== 'desc');\n        }\n        headers.push(header);\n      });\n      return headers;\n    }),\n    actions: {\n      sortBy: function (columnToSort) {\n        const toSortBy = (0, _object.get)(columnToSort, 'key');\n        const [sortedBy, sortDir] = (0, _object.get)(this, 'sortedBy.0').split(':');\n        if (sortedBy === toSortBy) {\n          // set sort order\n          const newDir = sortDir === 'desc' ? 'asc' : 'desc';\n          (0, _object.set)(this, 'sortedBy', [sortedBy + ':' + newDir]);\n\n          // nofity column\n          (0, _object.set)(columnToSort, 'sorted', true);\n          (0, _object.set)(columnToSort, 'ascending', newDir === 'asc');\n        } else {\n          // set sort order\n          (0, _object.set)(this, 'sortedBy', [toSortBy + ':asc']);\n\n          // set column meta\n          (0, _object.get)(this, 'headers').forEach(column => (0, _object.set)(column, 'sorted', false));\n          (0, _object.set)(columnToSort, 'sorted', true);\n          (0, _object.set)(columnToSort, 'ascending', true);\n        }\n      }\n    }\n  }));\n});","define(\"portal/components/admin-mode\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='logged-in-as'>\n    <div class='logged-in-as__marquee'>\n      <div class='marquee'>\n        <p>\n          You're in admin mode\n          <FaIcon @icon='exclamation-circle' style='margin-left: 5px' />\n        </p>\n      </div>\n    </div>\n    <button\n      class='logged-in-as__return text-button'\n      type='button'\n      {{on 'click' this.sessionData.toggleAdminMode}}\n    >\n      Return\n      <FaIcon @icon='sign-out-alt' style='margin-left: 5px' />\n    </button>\n  </div>\n  */\n  {\n    \"id\": \"t08KA0i8\",\n    \"block\": \"[[[10,0],[14,0,\\\"logged-in-as\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"logged-in-as__marquee\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"marquee\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"\\\\n        You're in admin mode\\\\n        \\\"],[8,[39,2],[[24,5,\\\"margin-left: 5px\\\"]],[[\\\"@icon\\\"],[\\\"exclamation-circle\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"logged-in-as__return text-button\\\"],[24,4,\\\"button\\\"],[4,[38,4],[\\\"click\\\",[30,0,[\\\"sessionData\\\",\\\"toggleAdminMode\\\"]]],null],[12],[1,\\\"\\\\n    Return\\\\n    \\\"],[8,[39,2],[[24,5,\\\"margin-left: 5px\\\"]],[[\\\"@icon\\\"],[\\\"sign-out-alt\\\"]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"div\\\",\\\"p\\\",\\\"fa-icon\\\",\\\"button\\\",\\\"on\\\"]]\",\n    \"moduleName\": \"portal/components/admin-mode.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class));\n});","define(\"portal/components/allocation-hierarchy\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.firstPart}}\n    {{#if this.popupText}}\n      <LabelPopup @text={{this.popupText}}>\n        {{this.formattedPath}}\n      </LabelPopup>\n    {{else}}\n      {{this.formattedPath}}\n    {{/if}}\n  {{else}}\n    &mdash;\n  {{/if}}\n  */\n  {\n    \"id\": \"qLj7ZztT\",\n    \"block\": \"[[[41,[30,0,[\\\"firstPart\\\"]],[[[41,[30,0,[\\\"popupText\\\"]],[[[1,\\\"    \\\"],[8,[39,1],null,[[\\\"@text\\\"],[[30,0,[\\\"popupText\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[1,[30,0,[\\\"formattedPath\\\"]]],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[1,[30,0,[\\\"formattedPath\\\"]]],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[1,\\\"  —\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"label-popup\\\"]]\",\n    \"moduleName\": \"portal/components/allocation-hierarchy.hbs\",\n    \"isStrictMode\": false\n  });\n  class AllocationHierarchyComponent extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"separator\", ' › ');\n    }\n    get maxPaths() {\n      return this.args.maxPaths ?? 3;\n    }\n    get allocations() {\n      return this.args.allocations ?? [];\n    }\n    get primaryAllocation() {\n      return this.allocations[0] ?? [];\n    }\n    get isMultiple() {\n      return this.allocations.length > 1;\n    }\n    get isEmpty() {\n      return this.allocations.length === 0;\n    }\n    get needsTitle() {\n      return this.isMultiple || this.primaryAllocation.length > this.maxPaths;\n    }\n    get firstPart() {\n      if (this.isEmpty) return undefined;\n      if (this.isMultiple) return `${this.allocations.length} projects`;\n      return this.primaryAllocation[0];\n    }\n    get middleParts() {\n      if (this.isMultiple || this.primaryAllocation.length <= 2) {\n        return undefined;\n      }\n      const paths = this.primaryAllocation.slice(1, -1);\n      if (paths.length > this.maxPaths - 2) {\n        return ['...'];\n      }\n      return paths;\n    }\n    get lastPart() {\n      if (this.isMultiple || this.primaryAllocation.length < 2) {\n        return undefined;\n      }\n      return this.primaryAllocation.at(-1);\n    }\n    get formattedPath() {\n      if (!this.firstPart) return undefined;\n      const parts = [this.firstPart];\n      if (this.middleParts) {\n        parts.push(...this.middleParts);\n      }\n      if (this.lastPart) {\n        parts.push(this.lastPart);\n      }\n      return parts.join(this.separator);\n    }\n    get popupText() {\n      if (this.isEmpty || !this.needsTitle) return undefined;\n      return this.allocations.map(path => path.join(this.separator)).join('\\n');\n    }\n  }\n  _exports.default = AllocationHierarchyComponent;\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AllocationHierarchyComponent);\n});","define(\"portal/components/allocation-selector\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@glimmer/tracking\", \"portal/utils/tree-item\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _tracking, _treeItem, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"portal/utils/tree-item\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <ModalDialog\n    @translucentOverlay={{true}}\n    @onClose={{@onCancel}}\n    @containerClass='bg-white border rounded'\n  >\n    <div class='d-flex bg-light border-bottom'>\n      <h2 class='h2 m-3'>\n        {{#if (gt this.numberOfInvoices 1)}}\n          {{t\n            'components.allocation-selector.allocatingItemsInXBills'\n            number=this.numberOfInvoices\n            item=(pluralize @items.length 'Item')\n          }}\n        {{else}}\n          {{t\n            'components.allocation-selector.allocatingItems'\n            item=(pluralize @items.length 'Item')\n          }}\n        {{/if}}\n      </h2>\n    </div>\n  \n    <div class='allocation-selector__list border-bottom'>\n      <ItemSelector\n        @items={{this.items}}\n        @selectedItem={{this.selectedItem}}\n        @onChange={{fn (mut this.selectedItem)}}\n        @nameKey='name'\n        @homeText={{t 'common.Projects'}}\n        @noItemsMessage={{t 'common.No tasks or projects'}}\n        @searchPlaceholder={{t 'common.Search for a task or project'}}\n        @noSearchItemsMessage={{t 'common.No tasks or projects found'}}\n      />\n    </div>\n  \n    {{#if @xeroIntegration.ready}}\n      <div\n        class='d-flex p-3 border-bottom'\n        data-test-overriding-account-content-div\n      >\n        <label class='p-2'>\n          <InfoPopup\n            @text={{if\n              this.isOverridingXeroAccount\n              (t\n                'components.allocation-selector.youAreNowTemporarilyOverridingTheXeroAccountTheAccountSelectedWillBeSetOnYourItemsRegardlessOfTheDefault'\n              )\n              (t\n                'components.allocation-selector.thisIsTheXeroAccountWhichWillBeAppliedToYourSelectedItemsTheAccountWillBeInheritedFromTheProjectOrTaskDefaultYouCanChooseToTemporarilyOverrideTheAccount'\n              )\n            }}\n          />\n          &nbsp;&nbsp;{{t 'common.Xero account'}}:\n        </label>\n        {{#unless this.isOverridingXeroAccount}}\n          <div class='p-2'>\n            {{#if this.selectedItem.item.effectivePurchasesGlAccount}}\n              {{this.selectedItem.item.effectivePurchasesGlAccount.code}}\n              -\n              {{this.selectedItem.item.effectivePurchasesGlAccount.name}}\n            {{else}}\n              {{t 'components.allocation-selector.No default account'}}\n            {{/if}}\n          </div>\n        {{else}}\n          <PowerSelect\n            style='width: 300px;'\n            @options={{@xeroAccounts}}\n            @selected={{this.xeroAccountOverride}}\n            @onChange={{fn (mut this.xeroAccountOverride)}}\n            @disabled={{@isXeroFetching}}\n            @searchEnabled={{true}}\n            @searchField='searchField'\n            @placeholder={{t 'shared.bill.000 - Account'}}\n            @allowClear={{true}}\n            @afterOptionsComponent={{component\n              'power-select-after-options-button'\n              onClick=@onUpdateXeroAccounts\n              icon='sync'\n              text=(t 'shared.bill.Click to update Xero accounts')\n              isLoading=@isXeroFetching\n              loadingText=(t 'shared.bill.Loading Xero accounts')\n            }}\n            as |option|\n          >\n            {{option.code}}\n            -\n            {{option.name}}\n          </PowerSelect>\n        {{/unless}}\n  \n        <button\n          class='btn btn-link'\n          type='button'\n          data-test-overriding-account-button\n          {{on 'click' this.toggleIsOverridingXeroAccount}}\n        >\n          {{#if this.isOverridingXeroAccount}}\n            {{t 'components.allocation-selector.Overriding account'}}\n            <FaIcon @icon='times' />\n          {{else}}\n            {{t 'components.allocation-selector.Override account'}}\n          {{/if}}\n        </button>\n      </div>\n    {{/if}}\n  \n    {{#if @quickbooksIntegration.ready}}\n      <div\n        class='d-flex p-3 border-bottom'\n        data-test-overriding-account-content-div\n      >\n        <label class='p-2'>\n          <InfoPopup\n            @text={{if\n              this.isOverridingQuickbooksAccount\n              (t\n                'components.allocation-selector.youAreNowTemporarilyOverridingTheXeroAccountTheAccountSelectedWillBeSetOnYourItemsRegardlessOfTheDefault'\n              )\n              (t\n                'components.allocation-selector.thisIsTheXeroAccountWhichWillBeAppliedToYourSelectedItemsTheAccountWillBeInheritedFromTheProjectOrTaskDefaultYouCanChooseToTemporarilyOverrideTheAccount'\n              )\n            }}\n          />\n          &nbsp;&nbsp;{{'QuickBooks Account'}}:\n        </label>\n        {{#unless this.isOverridingQuickbooksAccount}}\n          <div class='p-2'>\n            {{#if this.selectedItem.item.effectivePurchasesGlAccount}}\n              {{this.selectedItem.item.effectivePurchasesGlAccount.name}}\n            {{else}}\n              {{t 'components.allocation-selector.No default account'}}\n            {{/if}}\n          </div>\n        {{else}}\n          <PowerSelect\n            style='width: 300px;'\n            @options={{@quickbooksAccounts}}\n            @selected={{this.quickbooksAccountOverride}}\n            @onChange={{fn (mut this.quickbooksAccountOverride)}}\n            @disabled={{@isQuickbooksFetching}}\n            @keys='name'\n            @searchEnabled={{true}}\n            @placeholder={{t 'shared.bill.000 - Account'}}\n            @allowClear={{true}}\n            @afterOptionsComponent={{component\n              'power-select-after-options-button'\n              onClick=@onUpdateQuickbooksAccounts\n              icon='sync'\n              text='Click to update QuickBooks accounts'\n              isLoading=@isQuickbooksFetching\n              loadingText='Loading QuickBooks accounts'\n            }}\n            as |option|\n          >\n            {{option.name}}\n          </PowerSelect>\n        {{/unless}}\n  \n        <button\n          class='btn btn-link'\n          type='button'\n          data-test-overriding-account-button\n          {{on 'click' this.toggleIsOverridingQuickbooksAccount}}\n        >\n          {{#if this.isOverridingQuickbooksAccount}}\n            {{t 'components.allocation-selector.Overriding account'}}\n            <FaIcon @icon='times' />\n          {{else}}\n            {{t 'components.allocation-selector.Override account'}}\n          {{/if}}\n        </button>\n      </div>\n    {{/if}}\n  \n    <div class='d-flex p-3 bg-light'>\n      <div class='flex-grow-1'>\n        <button\n          class='btn btn-secondary text-white'\n          type='button'\n          disabled={{@isAllocating}}\n          {{on 'click' (fn (mut this.selectedItem) null)}}\n        >{{t 'components.allocation-selector.Clear allocation'}}</button>\n      </div>\n  \n      <button\n        class='btn btn-secondary text-white me-2'\n        type='button'\n        {{on 'click' @onCancel}}\n      >{{t 'common.Cancel'}}</button>\n  \n      <DropdownButton\n        @buttonText={{t\n          'components.allocation-selector.allocatingItems'\n          item=(pluralize @items.length 'item')\n        }}\n        @onPrimaryClick={{(fn\n          @onAllocateSelected\n          this.selectedItem.item\n          (or this.xeroAccountOverride this.quickbooksAccountOverride)\n        )}}\n        @disabled={{@isAllocating}}\n      >\n        {{#unless @isAllocating}}\n          <div\n            role='button'\n            class='dropdown-item'\n            {{on\n              'click'\n              (fn\n                @onAllocateAndAcceptSelected\n                this.selectedItem.item\n                this.xeroAccountOverride\n              )\n            }}\n            data-test-accept-allocation-and-accept-button\n          >{{t 'common.Allocate'}}\n            &amp;\n            {{t 'components.allocation-selector.accept'}}</div>\n          {{#if @xeroIntegration.ready}}\n            <div\n              role='button'\n              class='dropdown-item'\n              {{on\n                'click'\n                (fn\n                  @onAllocateAcceptAndSendToXeroSelected\n                  this.selectedItem.item\n                  this.xeroAccountOverride\n                )\n              }}\n              data-test-accept-allocation-send-xero-button\n            >{{t 'common.Allocate'}},\n              {{t 'components.allocation-selector.accept'}}\n              &amp;\n              {{t 'components.allocation-selector.send to Xero'}}</div>\n          {{/if}}\n        {{else}}\n          <div\n            class='dropdown-item text-center'\n            data-test-accept-allocation-loading-button\n          >\n            <LoadingIcon @type='spinner' />\n          </div>\n        {{/unless}}\n      </DropdownButton>\n    </div>\n  </ModalDialog>\n  */\n  {\n    \"id\": \"0aUvzoKO\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@translucentOverlay\\\",\\\"@onClose\\\",\\\"@containerClass\\\"],[true,[30,1],\\\"bg-white border rounded\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"d-flex bg-light border-bottom\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2 m-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[[30,0,[\\\"numberOfInvoices\\\"]],1],null],[[[1,\\\"        \\\"],[1,[28,[35,5],[\\\"components.allocation-selector.allocatingItemsInXBills\\\"],[[\\\"number\\\",\\\"item\\\"],[[30,0,[\\\"numberOfInvoices\\\"]],[28,[37,6],[[30,2,[\\\"length\\\"]],\\\"Item\\\"],null]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[1,[28,[35,5],[\\\"components.allocation-selector.allocatingItems\\\"],[[\\\"item\\\"],[[28,[37,6],[[30,2,[\\\"length\\\"]],\\\"Item\\\"],null]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"allocation-selector__list border-bottom\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,7],null,[[\\\"@items\\\",\\\"@selectedItem\\\",\\\"@onChange\\\",\\\"@nameKey\\\",\\\"@homeText\\\",\\\"@noItemsMessage\\\",\\\"@searchPlaceholder\\\",\\\"@noSearchItemsMessage\\\"],[[30,0,[\\\"items\\\"]],[30,0,[\\\"selectedItem\\\"]],[28,[37,8],[[28,[37,9],[[30,0,[\\\"selectedItem\\\"]]],null]],null],\\\"name\\\",[28,[37,5],[\\\"common.Projects\\\"],null],[28,[37,5],[\\\"common.No tasks or projects\\\"],null],[28,[37,5],[\\\"common.Search for a task or project\\\"],null],[28,[37,5],[\\\"common.No tasks or projects found\\\"],null]]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,3,[\\\"ready\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"d-flex p-3 border-bottom\\\"],[14,\\\"data-test-overriding-account-content-div\\\",\\\"\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"p-2\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,11],null,[[\\\"@text\\\"],[[52,[30,0,[\\\"isOverridingXeroAccount\\\"]],[28,[37,5],[\\\"components.allocation-selector.youAreNowTemporarilyOverridingTheXeroAccountTheAccountSelectedWillBeSetOnYourItemsRegardlessOfTheDefault\\\"],null],[28,[37,5],[\\\"components.allocation-selector.thisIsTheXeroAccountWhichWillBeAppliedToYourSelectedItemsTheAccountWillBeInheritedFromTheProjectOrTaskDefaultYouCanChooseToTemporarilyOverrideTheAccount\\\"],null]]]],null],[1,\\\"\\\\n          \\\"],[1,[28,[35,5],[\\\"common.Xero account\\\"],null]],[1,\\\":\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"isOverridingXeroAccount\\\"]]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"p-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"selectedItem\\\",\\\"item\\\",\\\"effectivePurchasesGlAccount\\\"]],[[[1,\\\"            \\\"],[1,[30,0,[\\\"selectedItem\\\",\\\"item\\\",\\\"effectivePurchasesGlAccount\\\",\\\"code\\\"]]],[1,\\\"\\\\n            -\\\\n            \\\"],[1,[30,0,[\\\"selectedItem\\\",\\\"item\\\",\\\"effectivePurchasesGlAccount\\\",\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,5],[\\\"components.allocation-selector.No default account\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[8,[39,13],[[24,5,\\\"width: 300px;\\\"]],[[\\\"@options\\\",\\\"@selected\\\",\\\"@onChange\\\",\\\"@disabled\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@allowClear\\\",\\\"@afterOptionsComponent\\\"],[[30,4],[30,0,[\\\"xeroAccountOverride\\\"]],[28,[37,8],[[28,[37,9],[[30,0,[\\\"xeroAccountOverride\\\"]]],null]],null],[30,5],true,\\\"searchField\\\",[28,[37,5],[\\\"shared.bill.000 - Account\\\"],null],true,[50,\\\"power-select-after-options-button\\\",0,null,[[\\\"onClick\\\",\\\"icon\\\",\\\"text\\\",\\\"isLoading\\\",\\\"loadingText\\\"],[[30,6],\\\"sync\\\",[28,[37,5],[\\\"shared.bill.Click to update Xero accounts\\\"],null],[30,5],[28,[37,5],[\\\"shared.bill.Loading Xero accounts\\\"],null]]]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[30,7,[\\\"code\\\"]]],[1,\\\"\\\\n          -\\\\n          \\\"],[1,[30,7,[\\\"name\\\"]]],[1,\\\"\\\\n        \\\"]],[7]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link\\\"],[24,\\\"data-test-overriding-account-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[30,0,[\\\"toggleIsOverridingXeroAccount\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isOverridingXeroAccount\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"components.allocation-selector.Overriding account\\\"],null]],[1,\\\"\\\\n          \\\"],[8,[39,17],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"components.allocation-selector.Override account\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,8,[\\\"ready\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"d-flex p-3 border-bottom\\\"],[14,\\\"data-test-overriding-account-content-div\\\",\\\"\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"p-2\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,11],null,[[\\\"@text\\\"],[[52,[30,0,[\\\"isOverridingQuickbooksAccount\\\"]],[28,[37,5],[\\\"components.allocation-selector.youAreNowTemporarilyOverridingTheXeroAccountTheAccountSelectedWillBeSetOnYourItemsRegardlessOfTheDefault\\\"],null],[28,[37,5],[\\\"components.allocation-selector.thisIsTheXeroAccountWhichWillBeAppliedToYourSelectedItemsTheAccountWillBeInheritedFromTheProjectOrTaskDefaultYouCanChooseToTemporarilyOverrideTheAccount\\\"],null]]]],null],[1,\\\"\\\\n          \\\"],[1,\\\"QuickBooks Account\\\"],[1,\\\":\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"isOverridingQuickbooksAccount\\\"]]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"p-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"selectedItem\\\",\\\"item\\\",\\\"effectivePurchasesGlAccount\\\"]],[[[1,\\\"            \\\"],[1,[30,0,[\\\"selectedItem\\\",\\\"item\\\",\\\"effectivePurchasesGlAccount\\\",\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,5],[\\\"components.allocation-selector.No default account\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[8,[39,13],[[24,5,\\\"width: 300px;\\\"]],[[\\\"@options\\\",\\\"@selected\\\",\\\"@onChange\\\",\\\"@disabled\\\",\\\"@keys\\\",\\\"@searchEnabled\\\",\\\"@placeholder\\\",\\\"@allowClear\\\",\\\"@afterOptionsComponent\\\"],[[30,9],[30,0,[\\\"quickbooksAccountOverride\\\"]],[28,[37,8],[[28,[37,9],[[30,0,[\\\"quickbooksAccountOverride\\\"]]],null]],null],[30,10],\\\"name\\\",true,[28,[37,5],[\\\"shared.bill.000 - Account\\\"],null],true,[50,\\\"power-select-after-options-button\\\",0,null,[[\\\"onClick\\\",\\\"icon\\\",\\\"text\\\",\\\"isLoading\\\",\\\"loadingText\\\"],[[30,11],\\\"sync\\\",\\\"Click to update QuickBooks accounts\\\",[30,10],\\\"Loading QuickBooks accounts\\\"]]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[30,12,[\\\"name\\\"]]],[1,\\\"\\\\n        \\\"]],[12]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link\\\"],[24,\\\"data-test-overriding-account-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[30,0,[\\\"toggleIsOverridingQuickbooksAccount\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isOverridingQuickbooksAccount\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"components.allocation-selector.Overriding account\\\"],null]],[1,\\\"\\\\n          \\\"],[8,[39,17],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"components.allocation-selector.Override account\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"d-flex p-3 bg-light\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white\\\"],[16,\\\"disabled\\\",[30,13]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,8],[[28,[37,9],[[30,0,[\\\"selectedItem\\\"]]],null],null],null]],null],[12],[1,[28,[35,5],[\\\"components.allocation-selector.Clear allocation\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white me-2\\\"],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[30,1]],null],[12],[1,[28,[35,5],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n\\\\n    \\\"],[8,[39,18],null,[[\\\"@buttonText\\\",\\\"@onPrimaryClick\\\",\\\"@disabled\\\"],[[28,[37,5],[\\\"components.allocation-selector.allocatingItems\\\"],[[\\\"item\\\"],[[28,[37,6],[[30,2,[\\\"length\\\"]],\\\"item\\\"],null]]]],[28,[37,8],[[30,14],[30,0,[\\\"selectedItem\\\",\\\"item\\\"]],[28,[37,19],[[30,0,[\\\"xeroAccountOverride\\\"]],[30,0,[\\\"quickbooksAccountOverride\\\"]]],null]],null],[30,13]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[51,[30,13]],[[[1,\\\"        \\\"],[11,0],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"dropdown-item\\\"],[24,\\\"data-test-accept-allocation-and-accept-button\\\",\\\"\\\"],[4,[38,16],[\\\"click\\\",[28,[37,8],[[30,15],[30,0,[\\\"selectedItem\\\",\\\"item\\\"]],[30,0,[\\\"xeroAccountOverride\\\"]]],null]],null],[12],[1,[28,[35,5],[\\\"common.Allocate\\\"],null]],[1,\\\"\\\\n          &\\\\n          \\\"],[1,[28,[35,5],[\\\"components.allocation-selector.accept\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[30,3,[\\\"ready\\\"]],[[[1,\\\"          \\\"],[11,0],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"dropdown-item\\\"],[24,\\\"data-test-accept-allocation-send-xero-button\\\",\\\"\\\"],[4,[38,16],[\\\"click\\\",[28,[37,8],[[30,16],[30,0,[\\\"selectedItem\\\",\\\"item\\\"]],[30,0,[\\\"xeroAccountOverride\\\"]]],null]],null],[12],[1,[28,[35,5],[\\\"common.Allocate\\\"],null]],[1,\\\",\\\\n            \\\"],[1,[28,[35,5],[\\\"components.allocation-selector.accept\\\"],null]],[1,\\\"\\\\n            &\\\\n            \\\"],[1,[28,[35,5],[\\\"components.allocation-selector.send to Xero\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"dropdown-item text-center\\\"],[14,\\\"data-test-accept-allocation-loading-button\\\",\\\"\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,20],null,[[\\\"@type\\\"],[\\\"spinner\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]]]],[\\\"@onCancel\\\",\\\"@items\\\",\\\"@xeroIntegration\\\",\\\"@xeroAccounts\\\",\\\"@isXeroFetching\\\",\\\"@onUpdateXeroAccounts\\\",\\\"option\\\",\\\"@quickbooksIntegration\\\",\\\"@quickbooksAccounts\\\",\\\"@isQuickbooksFetching\\\",\\\"@onUpdateQuickbooksAccounts\\\",\\\"option\\\",\\\"@isAllocating\\\",\\\"@onAllocateSelected\\\",\\\"@onAllocateAndAcceptSelected\\\",\\\"@onAllocateAcceptAndSendToXeroSelected\\\"],false,[\\\"modal-dialog\\\",\\\"div\\\",\\\"h2\\\",\\\"if\\\",\\\"gt\\\",\\\"t\\\",\\\"pluralize\\\",\\\"item-selector\\\",\\\"fn\\\",\\\"mut\\\",\\\"label\\\",\\\"info-popup\\\",\\\"unless\\\",\\\"power-select\\\",\\\"component\\\",\\\"button\\\",\\\"on\\\",\\\"fa-icon\\\",\\\"dropdown-button\\\",\\\"or\\\",\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/components/allocation-selector.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"isOverridingXeroAccount\", _descriptor, this);\n      _initializerDefineProperty(this, \"isOverridingQuickbooksAccount\", _descriptor2, this);\n      _initializerDefineProperty(this, \"xeroAccountOverride\", _descriptor3, this);\n      _initializerDefineProperty(this, \"quickbooksAccountOverride\", _descriptor4, this);\n      _initializerDefineProperty(this, \"items\", _descriptor5, this);\n      _initializerDefineProperty(this, \"selectedItem\", _descriptor6, this);\n      this.items = _treeItem.default.constructItemTreeFromProjectAndTasks(this.args.tasks, this.args.projects);\n\n      // if all the items have exactly the same map automatically set the selected item\n      const tasks = new Set(this.args.items.map(item => item.belongsTo('task').value()).filter(t => t));\n      const projects = new Set(this.args.items.map(item => item.belongsTo('project').value()).filter(t => t));\n      // if we have more than one unique map we can't do anything\n      if (projects.size + tasks.size > 1) return;\n      if (projects.size === 1) {\n        // projects are always top level\n        this.selectedItem = this.items.find(i => i.item === projects.values().next().value);\n      }\n      if (tasks.size === 1) {\n        this.selectedItem = _treeItem.default.findItemInTree(this.items, tasks.values().next().value);\n      }\n    }\n    get numberOfInvoices() {\n      return this.args.items.mapBy('bill').uniqBy('id').length;\n    }\n    toggleIsOverridingXeroAccount() {\n      this.isOverridingXeroAccount = !this.isOverridingXeroAccount;\n      // we set this to null so our callbacks can be called with the override\n      this.xeroAccountOverride = null;\n    }\n    toggleIsOverridingQuickbooksAccount() {\n      this.isOverridingQuickbooksAccount = !this.isOverridingQuickbooksAccount;\n      // we set this to null so our callbacks can be called with the override\n      this.quickbooksAccountOverride = null;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"isOverridingXeroAccount\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"isOverridingQuickbooksAccount\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"xeroAccountOverride\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"quickbooksAccountOverride\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"items\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"selectedItem\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"toggleIsOverridingXeroAccount\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleIsOverridingXeroAccount\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleIsOverridingQuickbooksAccount\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleIsOverridingQuickbooksAccount\"), _class.prototype), _class));\n});","define(\"portal/components/allocation-selector/bread-crumb\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if @isSelected}}\n    <span class='text-primary fw-bolder' data-test-allocation-selector-path>\n      {{yield}}\n    </span>\n  {{else}}\n    <span\n      role='button'\n      class='text-primary text-decoration-underline'\n      {{on 'click' @onClick}}\n      data-test-allocation-selector-path\n    >\n      {{yield}}\n    </span>\n    <FaIcon @icon={{or @icon 'chevron-right'}} class='mx-2' />\n  {{/if}}\n  */\n  {\n    \"id\": \"wT0nWY5w\",\n    \"block\": \"[[[41,[30,1],[[[1,\\\"  \\\"],[10,1],[14,0,\\\"text-primary fw-bolder\\\"],[14,\\\"data-test-allocation-selector-path\\\",\\\"\\\"],[12],[1,\\\"\\\\n    \\\"],[18,4,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[11,1],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"text-primary text-decoration-underline\\\"],[24,\\\"data-test-allocation-selector-path\\\",\\\"\\\"],[4,[38,3],[\\\"click\\\",[30,2]],null],[12],[1,\\\"\\\\n    \\\"],[18,4,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,4],[[24,0,\\\"mx-2\\\"]],[[\\\"@icon\\\"],[[28,[37,5],[[30,3],\\\"chevron-right\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]]]],[\\\"@isSelected\\\",\\\"@onClick\\\",\\\"@icon\\\",\\\"&default\\\"],false,[\\\"if\\\",\\\"span\\\",\\\"yield\\\",\\\"on\\\",\\\"fa-icon\\\",\\\"or\\\"]]\",\n    \"moduleName\": \"portal/components/allocation-selector/bread-crumb.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component2.default {});\n});","define(\"portal/components/attachment-dropdown-list\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _tracking, _object, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <PopOver @direction='bottom-left' as |po|>\n    <button\n      type='button'\n      class={{or @buttonClass 'btn btn-secondary text-white'}}\n    >\n      {{this.buttonText}}\n      &nbsp;&nbsp;<FaIcon @icon='paperclip' />\n    </button>\n    <po.Content>\n      {{#each @attachments as |attachment|}}\n        <div class='d-flex me-1'>\n          <button\n            type='button'\n            class='dropdown-item text-nowrap fs-6 m-1'\n            {{on 'click' (fn @onDownloadAttachment attachment)}}\n          >\n            <div class='d-flex align-items-center'>\n              <FileTypeIcon @mime={{attachment.fileType}} />\n              <span class='ms-2'>\n                {{ellipsis-characters attachment.filename 30}}\n              </span>\n            </div>\n          </button>\n          <button\n            type='button'\n            class='text-button'\n            {{on 'click' (fn @onDeleteAttachment attachment)}}\n          >\n            <FaIcon @icon='times' class='me-2' />\n          </button>\n        </div>\n      {{else}}\n        <div class='text-nowrap fs-6 text-center m-1'>\n          {{t 'shared.bill.No attachments'}}\n        </div>\n      {{/each}}\n  \n      {{#if @isDragAndDropVisible}}\n        <div class='d-flex justify-content-center'>\n          <button\n            type='button'\n            class='btn btn-success text-white text-nowrap m-1'\n            style='min-width: 180px;'\n            {{on 'click' (fn (mut this.isAttachmentModalVisible) true)}}\n          ><FaIcon @icon='plus' />&nbsp;&nbsp;{{t\n              'components.attachment-dropdown-list.Add attachments'\n            }}\n          </button>\n        </div>\n      {{/if}}\n    </po.Content>\n  </PopOver>\n  \n  <AttachmentUploadModal\n    @visible={{this.isAttachmentModalVisible}}\n    @parent={{@parent}}\n    @onUploadComplete={{this.onAttachmentsUploadComplete}}\n    @isDragAndDropVisible={{@isDragAndDropVisible}}\n  />\n  */\n  {\n    \"id\": \"dNIHDMkz\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@direction\\\"],[\\\"bottom-left\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[10,\\\"button\\\"],[15,0,[28,[37,2],[[30,2],\\\"btn btn-secondary text-white\\\"],null]],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n    \\\"],[1,[30,0,[\\\"buttonText\\\"]]],[1,\\\"\\\\n      \\\"],[8,[39,3],null,[[\\\"@icon\\\"],[\\\"paperclip\\\"]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,5],[[28,[37,5],[[30,3]],null]],null],null,[[[1,\\\"      \\\"],[10,0],[14,0,\\\"d-flex me-1\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-6 m-1\\\"],[24,4,\\\"button\\\"],[4,[38,7],[\\\"click\\\",[28,[37,8],[[30,5],[30,4]],null]],null],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],null,[[\\\"@mime\\\"],[[30,4,[\\\"fileType\\\"]]]],null],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"ms-2\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,11],[[30,4,[\\\"filename\\\"]],30],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,4,\\\"button\\\"],[4,[38,7],[\\\"click\\\",[28,[37,8],[[30,6],[30,4]],null]],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,3],[[24,0,\\\"me-2\\\"]],[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"text-nowrap fs-6 text-center m-1\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,12],[\\\"shared.bill.No attachments\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,7],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"d-flex justify-content-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[24,5,\\\"min-width: 180px;\\\"],[24,4,\\\"button\\\"],[4,[38,7],[\\\"click\\\",[28,[37,8],[[28,[37,14],[[30,0,[\\\"isAttachmentModalVisible\\\"]]],null],true],null]],null],[12],[8,[39,3],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,12],[\\\"components.attachment-dropdown-list.Add attachments\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]],[1,\\\"\\\\n\\\\n\\\"],[8,[39,15],null,[[\\\"@visible\\\",\\\"@parent\\\",\\\"@onUploadComplete\\\",\\\"@isDragAndDropVisible\\\"],[[30,0,[\\\"isAttachmentModalVisible\\\"]],[30,8],[30,0,[\\\"onAttachmentsUploadComplete\\\"]],[30,7]]],null]],[\\\"po\\\",\\\"@buttonClass\\\",\\\"@attachments\\\",\\\"attachment\\\",\\\"@onDownloadAttachment\\\",\\\"@onDeleteAttachment\\\",\\\"@isDragAndDropVisible\\\",\\\"@parent\\\"],false,[\\\"pop-over\\\",\\\"button\\\",\\\"or\\\",\\\"fa-icon\\\",\\\"each\\\",\\\"-track-array\\\",\\\"div\\\",\\\"on\\\",\\\"fn\\\",\\\"file-type-icon\\\",\\\"span\\\",\\\"ellipsis-characters\\\",\\\"t\\\",\\\"if\\\",\\\"mut\\\",\\\"attachment-upload-modal\\\"]]\",\n    \"moduleName\": \"portal/components/attachment-dropdown-list.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"isAttachmentModalVisible\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n    }\n    get buttonText() {\n      const attachment = this.args.attachments.length === 1 ? this.intl.t('shared.bill.attachment') : this.intl.t('shared.bill.attachments');\n      return this.args.attachments.length ? `${this.args.attachments.length} ${attachment}` : this.intl.t('shared.bill.No attachments');\n    }\n    onAttachmentsUploadComplete({\n      error,\n      validationErrors,\n      attachments\n    }) {\n      this.args.onUploadComplete({\n        error,\n        validationErrors,\n        attachments\n      });\n      this.isAttachmentModalVisible = false;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"isAttachmentModalVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"onAttachmentsUploadComplete\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onAttachmentsUploadComplete\"), _class.prototype), _class));\n});","define(\"portal/components/attachment-dropdown\", [\"exports\", \"@ember/component\", \"@glimmer/tracking\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _tracking, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <OverlaidDropdown\n    @buttonText={{this.buttonText}}\n    @buttonIcon={{or this.buttonIcon 'paperclip'}}\n    @align={{or this.align 'right'}}\n    @buttonClasses={{or this.buttonClasses 'button'}}\n  ><div\n      class='attachment-dropdown__item-container'\n    >{{yield}}</div></OverlaidDropdown>\n  */\n  {\n    \"id\": \"2tSjms9o\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@buttonText\\\",\\\"@buttonIcon\\\",\\\"@align\\\",\\\"@buttonClasses\\\"],[[30,0,[\\\"buttonText\\\"]],[28,[37,1],[[30,0,[\\\"buttonIcon\\\"]],\\\"paperclip\\\"],null],[28,[37,1],[[30,0,[\\\"align\\\"]],\\\"right\\\"],null],[28,[37,1],[[30,0,[\\\"buttonClasses\\\"]],\\\"button\\\"],null]]],[[\\\"default\\\"],[[[[10,0],[14,0,\\\"attachment-dropdown__item-container\\\"],[12],[18,1,null],[13]],[]]]]]],[\\\"&default\\\"],false,[\\\"overlaid-dropdown\\\",\\\"or\\\",\\\"div\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"portal/components/attachment-dropdown.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"numberOfAttachments\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n    }\n    get buttonText() {\n      const attachment = this.numberOfAttachments === 1 ? this.intl.t('shared.bill.attachment') : this.intl.t('shared.bill.attachments');\n      return this.numberOfAttachments ? `${this.numberOfAttachments} ${attachment}` : this.intl.t('shared.bill.No attachments');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"numberOfAttachments\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class));\n});","define(\"portal/components/attachment-dropdown/item\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/template-factory\"], function (_exports, _component, _object, _tracking, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    class='attachment-dropdown__item'\n    {{on 'mouseleave' (fn (mut this.deleteConfirm) false)}}\n  >\n    {{#if this.onDownload}}\n      <div\n        class='attachment-dropdown__item-download-container'\n        title={{this.filename}}\n        {{on 'click' this.onDownload}}\n      >\n        <div class='attachment-dropdown__item-file-icon'>\n          <FileTypeIcon @mime={{this.mime}} />\n        </div>\n        <div class='attachment-dropdown__item-file-name'>\n          {{this.filename}}\n        </div>\n      </div>\n    {{/if}}\n    {{#if this.onDelete}}\n      <div class='attachment-dropdown__item-file-delete-button'>\n        {{#if this.isDeleting}}\n          <LoadingIcon @type='spinner' />\n        {{else}}\n          {{#if this.deleteConfirm}}\n            <button\n              type='button'\n              class='text-button text-button--delete'\n              {{on 'click' this._onDelete}}\n            >{{t 'common.Confirm'}} <FaIcon @icon='trash' /></button>\n          {{else}}\n            <button\n              type='button'\n              class='text-button'\n              {{on 'click' (fn (mut this.deleteConfirm) true)}}\n            >{{t 'common.Delete'}} <FaIcon @icon='trash' /></button>\n          {{/if}}\n        {{/if}}\n      </div>\n    {{/if}}\n    {{yield}}\n  </div>\n  */\n  {\n    \"id\": \"/+fbXtaJ\",\n    \"block\": \"[[[11,0],[24,0,\\\"attachment-dropdown__item\\\"],[4,[38,1],[\\\"mouseleave\\\",[28,[37,2],[[28,[37,3],[[30,0,[\\\"deleteConfirm\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"onDownload\\\"]],[[[1,\\\"    \\\"],[11,0],[24,0,\\\"attachment-dropdown__item-download-container\\\"],[16,\\\"title\\\",[30,0,[\\\"filename\\\"]]],[4,[38,1],[\\\"click\\\",[30,0,[\\\"onDownload\\\"]]],null],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"attachment-dropdown__item-file-icon\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,5],null,[[\\\"@mime\\\"],[[30,0,[\\\"mime\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"attachment-dropdown__item-file-name\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,0,[\\\"filename\\\"]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"onDelete\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"attachment-dropdown__item-file-delete-button\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isDeleting\\\"]],[[[1,\\\"        \\\"],[8,[39,6],null,[[\\\"@type\\\"],[\\\"spinner\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"deleteConfirm\\\"]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--delete\\\"],[24,4,\\\"button\\\"],[4,[38,1],[\\\"click\\\",[30,0,[\\\"_onDelete\\\"]]],null],[12],[1,[28,[35,8],[\\\"common.Confirm\\\"],null]],[1,\\\" \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[\\\"trash\\\"]],null],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,4,\\\"button\\\"],[4,[38,1],[\\\"click\\\",[28,[37,2],[[28,[37,3],[[30,0,[\\\"deleteConfirm\\\"]]],null],true],null]],null],[12],[1,[28,[35,8],[\\\"common.Delete\\\"],null]],[1,\\\" \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[\\\"trash\\\"]],null],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[18,1,null],[1,\\\"\\\\n\\\"],[13]],[\\\"&default\\\"],false,[\\\"div\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"if\\\",\\\"file-type-icon\\\",\\\"loading-icon\\\",\\\"button\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"portal/components/attachment-dropdown/item.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"tagName\", '');\n      _initializerDefineProperty(this, \"isDeleting\", _descriptor, this);\n      _initializerDefineProperty(this, \"deleteConfirm\", _descriptor2, this);\n    }\n    async _onDelete() {\n      try {\n        this.isDeleting = true;\n        await this.onDelete();\n      } finally {\n        this.isDeleting = false;\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"isDeleting\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"deleteConfirm\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"_onDelete\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"_onDelete\"), _class.prototype), _class));\n});","define(\"portal/components/attachment-manager\", [\"exports\", \"@ember/component\", \"@ember/service\", \"@ember/array\", \"@ember/object\", \"@ember/debug\", \"@glimmer/tracking\", \"portal/models/attachment\", \"portal/config/environment\", \"@ember/template-factory\"], function (_exports, _component, _service, _array, _object, _debug, _tracking, _attachment, _environment, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _class2, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/service\",0,\"@ember/array\",0,\"@ember/object\",0,\"@ember/object\",0,\"@ember/debug\",0,\"@glimmer/tracking\",0,\"portal/models/attachment\",0,\"portal/config/environment\",0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.visible}}\n    <ModalDialog\n      @onClose={{fn (mut this.visible) false}}\n      @translucentOverlay={{true}}\n      @overlayClass='modal'\n      @containerClass='block-module'\n    >\n      <div\n        id='attachment-manager__drop-zone'\n        {{on 'drop' this.onDropZoneDrop}}\n        {{on 'dragover' this.onDropZoneDragOver}}\n      >\n        {{#if this.fileContainers.length}}\n          <div class='attachment-manager__file-table-container'>\n            <table class='attachment-manager__file-table'>\n              <tbody>\n                {{#each this.fileContainers as |fc|}}\n                  <tr data-test-attachment-manager-attachment-row={{fc.hash}}>\n                    <td\n                      class='attachment-manager__file-table-file-name-cell'\n                    ><FileTypeIcon\n                        @mime={{fc.file.type}}\n                      />&nbsp;&nbsp;{{fc.file.name}}</td>\n                    <td class='attachment-manager__file-table-icon-cell'>\n                      {{#if fc.saved}}\n                        <span\n                          class='attachment-manager__file-table-icon-cell--success'\n                          data-test-attachment-manager-saved-message={{fc.hash}}\n                        >\n                          <InfoPopup\n                            @text={{t\n                              'components.attachment-manager.Attachment has been saved'\n                            }}\n                            @iconName='check'\n                            @align='right'\n                          />\n                        </span>\n                      {{/if}}\n                      {{#if fc.isInvalid}}\n                        <span\n                          class='attachment-manager__file-table-icon-cell--info'\n                          data-test-attachment-manager-invalid-message={{fc.hash}}\n                        >\n                          <InfoPopup\n                            @text={{fc.invalidMessage}}\n                            @iconName='exclamation-circle'\n                            @align='right'\n                          />\n                        </span>\n                      {{/if}}\n                      {{#if fc.hasErrored}}\n                        <span\n                          class='attachment-manager__file-table-icon-cell--error'\n                          data-test-attachment-manager-error-message={{fc.hash}}\n                        >\n                          <InfoPopup\n                            @text={{fc.errorMessage}}\n                            @iconName='exclamation-triangle'\n                            @align='right'\n                          />\n                        </span>\n                      {{/if}}\n                    </td>\n                    <td class='attachment-manager__file-table-icon-cell'>\n                      {{#if fc.isSaving}}\n                        <LoadingIcon @type='spinner' />\n                      {{else}}\n                        <button\n                          class='text-button'\n                          type='button'\n                          {{on 'click' (fn this.unstageFile fc)}}\n                          disabled={{this.isSaving}}\n                          data-test-attachment-manager-delete-container={{fc.hash}}\n                        ><FaIcon @icon='times' /></button>\n                      {{/if}}\n                    </td>\n                  </tr>\n                {{/each}}\n              </tbody>\n            </table>\n          </div>\n        {{/if}}\n  \n        <div class='attachment-manager__drop-zone-button'>\n          {{t 'shared.bill.Drag files here or'}}&nbsp;\n          <button\n            class='button button--add'\n            data-test-attachment-manager-browse-button=''\n            type='button'\n            {{on 'click' this.onManualUploadClick}}\n          >{{t 'shared.bill.Browse files'}}</button>\n        </div>\n      </div>\n  \n      <footer class='block-module__footer'>\n        <LoadingButton\n          @class='float-end button'\n          @isLoading={{this.isSaving}}\n          @action={{this.completeUpload}}\n          @buttonText={{t 'common.Upload files'}}\n          data-test-attachment-manager-upload-files\n        />\n        <button\n          class='button button--plain'\n          disabled={{this.isSaving}}\n          type='button'\n          {{on 'click' this.close}}\n        >{{t 'common.Close'}}</button>\n      </footer>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"kkRFVoiu\",\n    \"block\": \"[[[41,[30,0,[\\\"visible\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@overlayClass\\\",\\\"@containerClass\\\"],[[28,[37,2],[[28,[37,3],[[30,0,[\\\"visible\\\"]]],null],false],null],true,\\\"modal\\\",\\\"block-module\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[11,0],[24,1,\\\"attachment-manager__drop-zone\\\"],[4,[38,5],[\\\"drop\\\",[30,0,[\\\"onDropZoneDrop\\\"]]],null],[4,[38,5],[\\\"dragover\\\",[30,0,[\\\"onDropZoneDragOver\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"fileContainers\\\",\\\"length\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"attachment-manager__file-table-container\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"table\\\"],[14,0,\\\"attachment-manager__file-table\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[30,0,[\\\"fileContainers\\\"]]],null]],null],null,[[[1,\\\"                \\\"],[10,\\\"tr\\\"],[15,\\\"data-test-attachment-manager-attachment-row\\\",[30,1,[\\\"hash\\\"]]],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"td\\\"],[14,0,\\\"attachment-manager__file-table-file-name-cell\\\"],[12],[8,[39,12],null,[[\\\"@mime\\\"],[[30,1,[\\\"file\\\",\\\"type\\\"]]]],null],[1,\\\"  \\\"],[1,[30,1,[\\\"file\\\",\\\"name\\\"]]],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"td\\\"],[14,0,\\\"attachment-manager__file-table-icon-cell\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"saved\\\"]],[[[1,\\\"                      \\\"],[10,1],[14,0,\\\"attachment-manager__file-table-icon-cell--success\\\"],[15,\\\"data-test-attachment-manager-saved-message\\\",[30,1,[\\\"hash\\\"]]],[12],[1,\\\"\\\\n                        \\\"],[8,[39,14],null,[[\\\"@text\\\",\\\"@iconName\\\",\\\"@align\\\"],[[28,[37,15],[\\\"components.attachment-manager.Attachment has been saved\\\"],null],\\\"check\\\",\\\"right\\\"]],null],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,1,[\\\"isInvalid\\\"]],[[[1,\\\"                      \\\"],[10,1],[14,0,\\\"attachment-manager__file-table-icon-cell--info\\\"],[15,\\\"data-test-attachment-manager-invalid-message\\\",[30,1,[\\\"hash\\\"]]],[12],[1,\\\"\\\\n                        \\\"],[8,[39,14],null,[[\\\"@text\\\",\\\"@iconName\\\",\\\"@align\\\"],[[30,1,[\\\"invalidMessage\\\"]],\\\"exclamation-circle\\\",\\\"right\\\"]],null],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,1,[\\\"hasErrored\\\"]],[[[1,\\\"                      \\\"],[10,1],[14,0,\\\"attachment-manager__file-table-icon-cell--error\\\"],[15,\\\"data-test-attachment-manager-error-message\\\",[30,1,[\\\"hash\\\"]]],[12],[1,\\\"\\\\n                        \\\"],[8,[39,14],null,[[\\\"@text\\\",\\\"@iconName\\\",\\\"@align\\\"],[[30,1,[\\\"errorMessage\\\"]],\\\"exclamation-triangle\\\",\\\"right\\\"]],null],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"td\\\"],[14,0,\\\"attachment-manager__file-table-icon-cell\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"isSaving\\\"]],[[[1,\\\"                      \\\"],[8,[39,16],null,[[\\\"@type\\\"],[\\\"spinner\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                      \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isSaving\\\"]]],[16,\\\"data-test-attachment-manager-delete-container\\\",[30,1,[\\\"hash\\\"]]],[24,4,\\\"button\\\"],[4,[38,5],[\\\"click\\\",[28,[37,2],[[30,0,[\\\"unstageFile\\\"]],[30,1]],null]],null],[12],[8,[39,18],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"attachment-manager__drop-zone-button\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,15],[\\\"shared.bill.Drag files here or\\\"],null]],[1,\\\" \\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add\\\"],[24,\\\"data-test-attachment-manager-browse-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,5],[\\\"click\\\",[30,0,[\\\"onManualUploadClick\\\"]]],null],[12],[1,[28,[35,15],[\\\"shared.bill.Browse files\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,20],[[24,\\\"data-test-attachment-manager-upload-files\\\",\\\"\\\"]],[[\\\"@class\\\",\\\"@isLoading\\\",\\\"@action\\\",\\\"@buttonText\\\"],[\\\"float-end button\\\",[30,0,[\\\"isSaving\\\"]],[30,0,[\\\"completeUpload\\\"]],[28,[37,15],[\\\"common.Upload files\\\"],null]]],null],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--plain\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isSaving\\\"]]],[24,4,\\\"button\\\"],[4,[38,5],[\\\"click\\\",[30,0,[\\\"close\\\"]]],null],[12],[1,[28,[35,15],[\\\"common.Close\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"fc\\\"],false,[\\\"if\\\",\\\"modal-dialog\\\",\\\"fn\\\",\\\"mut\\\",\\\"div\\\",\\\"on\\\",\\\"table\\\",\\\"tbody\\\",\\\"each\\\",\\\"-track-array\\\",\\\"tr\\\",\\\"td\\\",\\\"file-type-icon\\\",\\\"span\\\",\\\"info-popup\\\",\\\"t\\\",\\\"loading-icon\\\",\\\"button\\\",\\\"fa-icon\\\",\\\"footer\\\",\\\"loading-button\\\"]]\",\n    \"moduleName\": \"portal/components/attachment-manager.hbs\",\n    \"isStrictMode\": false\n  });\n  let FileContainer = (_class = class FileContainer extends _object.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"file\", _descriptor, this);\n      _initializerDefineProperty(this, \"hash\", _descriptor2, this);\n      _initializerDefineProperty(this, \"isSaving\", _descriptor3, this);\n      _initializerDefineProperty(this, \"isInvalid\", _descriptor4, this);\n      _initializerDefineProperty(this, \"hasErrored\", _descriptor5, this);\n      _initializerDefineProperty(this, \"saved\", _descriptor6, this);\n      _initializerDefineProperty(this, \"invalidMessage\", _descriptor7, this);\n      _initializerDefineProperty(this, \"errorMessage\", _descriptor8, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"file\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"hash\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"isSaving\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"isInvalid\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"hasErrored\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"saved\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"invalidMessage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"errorMessage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class2 = class _class2 extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor9, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor0, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor1, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor10, this);\n      _initializerDefineProperty(this, \"acceptedMimeTypes\", _descriptor11, this);\n      _initializerDefineProperty(this, \"visible\", _descriptor12, this);\n      _initializerDefineProperty(this, \"attachments\", _descriptor13, this);\n      _initializerDefineProperty(this, \"fileContainers\", _descriptor14, this);\n    }\n    init() {\n      super.init(...arguments);\n      (false && (0, _debug.warn)('You must supply a `toggleVisible` function prop', this.toggleVisible && typeof this.toggleVisible === 'function', {\n        id: 'attachment-manager.no-toggle-visible-prop'\n      }));\n      (false && (0, _debug.warn)('You must supply a `onUploadComplete` function prop', this.onUploadComplete && typeof this.onUploadComplete === 'function', {\n        id: 'attachment-manager.no-upload-complete-prop'\n      }));\n    }\n    get isSaving() {\n      return this.fileContainers.some(fc => fc.isSaving);\n    }\n    get existingAttachmentHashes() {\n      return this.attachments.map(att => att.hash);\n    }\n    get existingFileContainerHashes() {\n      return this.fileContainers.map(fc => fc.hash);\n    }\n    onDropZoneDragOver(event) {\n      // this function runs hundreds of times keep it fast\n      event.preventDefault();\n    }\n    async onDropZoneDrop(event) {\n      event.preventDefault();\n      let filesArray = [...event.dataTransfer.files];\n      // remove directories and not accepted file types\n      filesArray = filesArray.filter(file => this.isValidType(file));\n      // populate the hash for each file\n      let forUpload = await Promise.all(filesArray.map(async file => ({\n        file,\n        hash: await this.getFileHash(file)\n      })));\n      // discard duplicate files\n      forUpload = forUpload.filter(file => !this.fileAlreadyStaged(file.hash));\n      this.stageFiles(forUpload);\n    }\n    async onManualFileUpload(event) {\n      const filesArray = [...event.target.files];\n      // populate the hash for each file\n      let forUpload = await Promise.all(filesArray.map(async file => ({\n        file,\n        hash: await this.getFileHash(file)\n      })));\n      // discard duplicate files\n      forUpload = forUpload.filter(file => !this.fileAlreadyStaged(file.hash));\n      this.stageFiles(forUpload);\n    }\n    onManualUploadClick(event) {\n      if (event.target.files) {\n        // This is a testing override, since a file picker is hard to use in a test environment,\n        // the file refs are tacked on to the click event instead.\n        const fakeEvent = {\n          preventDefault: () => null,\n          dataTransfer: {\n            files: event.target.files\n          }\n        };\n        this.onDropZoneDrop(fakeEvent);\n        return;\n      }\n      const input = document.createElement('input');\n      input.type = 'file';\n      input.accept = this.acceptedMimeTypes.join(', ');\n      input.multiple = true;\n      input.onchange = this.onManualFileUpload;\n      input.click();\n    }\n    unstageFile(dfc) {\n      this.fileContainers.removeObject(dfc);\n    }\n    async stageFiles(files) {\n      files.forEach(({\n        file,\n        hash\n      }) => {\n        const fc = {\n          file,\n          hash\n        };\n        if (this.fileIsTooLarge(file.size)) {\n          fc.isInvalid = true;\n          fc.invalidMessage = this.intl.t('components.attachment-manager.fileIsLargerThan20MBAndWillNotBeUploaded');\n        } else if (this.filePreviouslyAttached(hash)) {\n          fc.isInvalid = true;\n          fc.invalidMessage = this.intl.t('components.attachment-manager.thisFileIsAlreadyAttachedAndWillNotBeUploaded');\n        }\n        return this.fileContainers.pushObject(FileContainer.create(fc));\n      });\n    }\n    async completeUpload() {\n      try {\n        const invalidFiles = this.fileContainers.filter(fc => fc.isInvalid);\n        const containersToSave = this.fileContainers.filter(fc => !fc.isInvalid && !fc.saved);\n        const attachmentResources = await Promise.all(containersToSave.map(fc => this.createAttachmentRecord(fc)));\n        const saved = attachmentResources.filter(r => !r.isNew);\n        this.onUploadComplete({\n          numberInvalid: invalidFiles.length,\n          numberOfFailures: containersToSave.length - saved.length,\n          savedRecords: saved.filter(r => !r.isNew)\n        });\n        if (saved.length === containersToSave.length) this.close();\n      } catch (error) {\n        this.notifications.error({\n          message: this.intl.t('shared.notification.somethingWentWrongWhileSavingAttachments'),\n          error\n        });\n      }\n    }\n    close() {\n      this.fileContainers = (0, _array.A)([]);\n      this.toggleVisible();\n    }\n    async createAttachmentRecord(fc) {\n      fc.isSaving = true;\n      let attachmentRecord;\n      try {\n        attachmentRecord = await _attachment.default.fromFileInput(fc.file, this.store, this.sessionData.entity);\n        await attachmentRecord.save({\n          adapterOptions: {\n            meta: {\n              data: attachmentRecord.data\n            }\n          }\n        });\n        fc.saved = true;\n      } catch (error) {\n        fc.hasErrored = true;\n        fc.errorMessage = this.intl.t('shared.notification.somethingWentWrongWhileSavingAttachments');\n        this.notifications.error({\n          error,\n          message: this.intl.t('components.attachment-manager.Error saving attachment')\n        });\n      } finally {\n        fc.isSaving = false;\n        return attachmentRecord;\n      }\n    }\n    isValidType(file) {\n      // directories and files without types are not allowed\n      if (!file.type) return false;\n      // No mime types specified means allow all types\n      if (!this.acceptedMimeTypes) return true;\n      return this.acceptedMimeTypes.some(acceptedMime => (0, _attachment.isMimeSame)(acceptedMime, file.type));\n    }\n    async getFileHash(file) {\n      const buffer = await file.arrayBuffer();\n      let hash;\n      if (crypto?.subtle?.digest || _environment.default.environment !== 'test') {\n        const hashBuffer = await crypto.subtle.digest('SHA-1', buffer);\n        const hashArray = Array.from(new Uint8Array(hashBuffer));\n        hash = hashArray.map(b => b.toString(16).padStart(2, '0')).join('');\n      } else {\n        hash = window.fileHashes[file.name];\n      }\n      return hash;\n    }\n    fileIsTooLarge(size) {\n      // 30MB is current server limit\n      // Base64 encoding increases size by ~33% https://developer.mozilla.org/en-US/docs/Glossary/Base64\n      return size > 2e7; // 20MB\n    }\n    filePreviouslyAttached(hash) {\n      return this.existingAttachmentHashes.includes(hash);\n    }\n    fileAlreadyStaged(hash) {\n      return this.existingFileContainerHashes.includes(hash);\n    }\n  }, _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"acceptedMimeTypes\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"visible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"attachments\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"fileContainers\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return (0, _array.A)([]);\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"onDropZoneDragOver\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onDropZoneDragOver\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onDropZoneDrop\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onDropZoneDrop\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onManualFileUpload\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onManualFileUpload\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onManualUploadClick\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onManualUploadClick\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"unstageFile\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"unstageFile\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"completeUpload\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"completeUpload\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"close\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"close\"), _class2.prototype), _class2));\n});","define(\"portal/components/attachment-preview\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isPdf}}\n    <iframe\n      class='w-100 h-100 flex-grow-1 border-0'\n      title={{@attachment.filename}}\n      src={{@attachment.previewHref}}\n    >\n    </iframe>\n  {{else if this.isImage}}\n    <div\n      class='w-100 h-100 flex-grow-1 border rounded d-flex align-items-center justify-content-center overflow-auto'\n    >\n      <img\n        class='mw-100 mh-100 object-fit-contain'\n        alt={{@attachment.filename}}\n        src={{@attachment.previewHref}}\n      />\n    </div>\n  {{else}}\n    <div\n      class='d-flex flex-column align-items-center justify-content-center border rounded flex-grow-1'\n    >\n      <div>{{t 'components.bill-editor.Can not preview this file'}}</div>\n    </div>\n  {{/if}}\n  */\n  {\n    \"id\": \"/LNCdOgV\",\n    \"block\": \"[[[41,[30,0,[\\\"isPdf\\\"]],[[[1,\\\"  \\\"],[10,\\\"iframe\\\"],[14,0,\\\"w-100 h-100 flex-grow-1 border-0\\\"],[15,\\\"title\\\",[30,1,[\\\"filename\\\"]]],[15,\\\"src\\\",[30,1,[\\\"previewHref\\\"]]],[12],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"isImage\\\"]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"w-100 h-100 flex-grow-1 border rounded d-flex align-items-center justify-content-center overflow-auto\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"img\\\"],[14,0,\\\"mw-100 mh-100 object-fit-contain\\\"],[15,\\\"alt\\\",[30,1,[\\\"filename\\\"]]],[15,\\\"src\\\",[30,1,[\\\"previewHref\\\"]]],[12],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"d-flex flex-column align-items-center justify-content-center border rounded flex-grow-1\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[12],[1,[28,[35,4],[\\\"components.bill-editor.Can not preview this file\\\"],null]],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]]],[\\\"@attachment\\\"],false,[\\\"if\\\",\\\"iframe\\\",\\\"div\\\",\\\"img\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/components/attachment-preview.hbs\",\n    \"isStrictMode\": false\n  });\n  class AttachmentPreviewComponent extends _component2.default {\n    get fileType() {\n      return this.args.attachment?.fileType;\n    }\n    get isPdf() {\n      return this.fileType === 'application/pdf';\n    }\n    get isImage() {\n      return this.fileType?.startsWith('image/');\n    }\n  }\n  _exports.default = AttachmentPreviewComponent;\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AttachmentPreviewComponent);\n});","define(\"portal/components/attachment-settings-modal\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"ember-changeset\", \"@glimmer/tracking\", \"@ember/service\", \"lodash\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _emberChangeset, _tracking, _service, _lodash, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"ember-concurrency\",0,\"ember-changeset\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"lodash\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <ModalDialog\n    @translucentOverlay={{true}}\n    @onClose={{@onCloseAction}}\n    @overlayClass='modal'\n    @containerClass='block-module attachment-settings-modal__container'\n  >\n    {{#if this.initChangeset.isRunning}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <form data-test-new-project-form>\n        <header>\n          <h3 class='text-truncate'>{{@attachment.filename}}</h3>\n        </header>\n        <PtlInput\n          @type='text'\n          @label={{t 'common.Name'}}\n          @key='filename'\n          @model={{this.attachmentChangeSet}}\n          disabled={{not this.isEditable}}\n        />\n        <PtlInput\n          @type='text'\n          @label={{t 'common.Description'}}\n          @key='description'\n          @model={{this.attachmentChangeSet}}\n          disabled={{not this.isEditable}}\n        />\n  \n        {{#if this.canManageUsers}}\n          <PtlInput\n            @type='powerSelectMultiple'\n            @label={{t 'common.Shared with'}}\n            @key='users'\n            @optionKeys={{array 'fullName'}}\n            @searchField='name'\n            @options={{@users}}\n            @model={{this.permissionChangeSet}}\n            @forceValidationVisible={{gt this.saveAttachment.performCount 0}}\n            @disabled={{this.saveAttachment.isRunning}}\n          />\n          {{#if this.showClientVisibleButton}}\n            <PtlInput\n              @type='checkbox'\n              @label={{t\n                'components.attachment-settings-modal.Visible to project clients'\n              }}\n              @key='clientsCanViewFileStorage'\n              @model={{this.permissionChangeSet}}\n              disabled={{this.saveAttachment.isRunning}}\n            />\n          {{/if}}\n        {{/if}}\n  \n        <footer class='block-module__footer'>\n          {{#if this.isEditable}}\n            <button\n              class='btn btn-link text-danger text-decoration-underline'\n              type='button'\n              disabled={{or\n                this.saveAttachment.isRunning\n                this.onDeletingAttachment.isRunning\n              }}\n              {{on 'click' (perform this.onDeletingAttachment)}}\n            >\n              {{#if this.onDeletingAttachment.isRunning}}\n                &nbsp;&nbsp;{{t 'common.Deleting'}}…\n              {{else}}\n                {{t 'common.Delete attachment'}}\n              {{/if}}\n            </button>\n          {{/if}}\n          <div class='float-end d-flex align-items-center'>\n            <button\n              type='button'\n              class='btn btn-secondary text-white ms-2'\n              data-test-new-project-close-button\n              disabled={{or\n                this.saveAttachment.isRunning\n                this.onDeletingAttachment.isRunning\n              }}\n              {{on 'click' @onCloseAction}}\n            >{{if\n                this.isEditable\n                (t 'common.Cancel')\n                (t 'common.Close')\n              }}</button>\n            {{#if this.isEditable}}\n              <button\n                type='button'\n                class='btn btn-primary ms-2'\n                disabled={{or\n                  this.saveAttachment.isRunning\n                  this.onDeletingAttachment.isRunning\n                }}\n                {{on 'click' (perform this.saveAttachment)}}\n              >\n                {{#if this.saveAttachment.isRunning}}\n                  <span\n                    class='spinner-border spinner-border-sm'\n                  ></span>&nbsp;&nbsp;{{t 'common.Saving'}}…\n                {{else}}\n                  {{t 'common.Save'}}\n                {{/if}}\n              </button>\n            {{/if}}\n          </div>\n        </footer>\n      </form>\n    {{/if}}\n  </ModalDialog>\n  */\n  {\n    \"id\": \"FuBUqjBY\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@translucentOverlay\\\",\\\"@onClose\\\",\\\"@overlayClass\\\",\\\"@containerClass\\\"],[true,[30,1],\\\"modal\\\",\\\"block-module attachment-settings-modal__container\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"initChangeset\\\",\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,\\\"form\\\"],[14,\\\"data-test-new-project-form\\\",\\\"\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"header\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"text-truncate\\\"],[12],[1,[30,2,[\\\"filename\\\"]]],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,6],[[16,\\\"disabled\\\",[28,[37,7],[[30,0,[\\\"isEditable\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"text\\\",[28,[37,8],[\\\"common.Name\\\"],null],\\\"filename\\\",[30,0,[\\\"attachmentChangeSet\\\"]]]],null],[1,\\\"\\\\n      \\\"],[8,[39,6],[[16,\\\"disabled\\\",[28,[37,7],[[30,0,[\\\"isEditable\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"text\\\",[28,[37,8],[\\\"common.Description\\\"],null],\\\"description\\\",[30,0,[\\\"attachmentChangeSet\\\"]]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"canManageUsers\\\"]],[[[1,\\\"        \\\"],[8,[39,6],null,[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@searchField\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@disabled\\\"],[\\\"powerSelectMultiple\\\",[28,[37,8],[\\\"common.Shared with\\\"],null],\\\"users\\\",[28,[37,9],[\\\"fullName\\\"],null],\\\"name\\\",[30,3],[30,0,[\\\"permissionChangeSet\\\"]],[28,[37,10],[[30,0,[\\\"saveAttachment\\\",\\\"performCount\\\"]],0],null],[30,0,[\\\"saveAttachment\\\",\\\"isRunning\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showClientVisibleButton\\\"]],[[[1,\\\"          \\\"],[8,[39,6],[[16,\\\"disabled\\\",[30,0,[\\\"saveAttachment\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"checkbox\\\",[28,[37,8],[\\\"components.attachment-settings-modal.Visible to project clients\\\"],null],\\\"clientsCanViewFileStorage\\\",[30,0,[\\\"permissionChangeSet\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n      \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEditable\\\"]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline\\\"],[16,\\\"disabled\\\",[28,[37,13],[[30,0,[\\\"saveAttachment\\\",\\\"isRunning\\\"]],[30,0,[\\\"onDeletingAttachment\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,14],[\\\"click\\\",[28,[37,15],[[30,0,[\\\"onDeletingAttachment\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"onDeletingAttachment\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"common.Deleting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"common.Delete attachment\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[10,0],[14,0,\\\"float-end d-flex align-items-center\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[24,\\\"data-test-new-project-close-button\\\",\\\"\\\"],[16,\\\"disabled\\\",[28,[37,13],[[30,0,[\\\"saveAttachment\\\",\\\"isRunning\\\"]],[30,0,[\\\"onDeletingAttachment\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,14],[\\\"click\\\",[30,1]],null],[12],[1,[52,[30,0,[\\\"isEditable\\\"]],[28,[37,8],[\\\"common.Cancel\\\"],null],[28,[37,8],[\\\"common.Close\\\"],null]]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEditable\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[16,\\\"disabled\\\",[28,[37,13],[[30,0,[\\\"saveAttachment\\\",\\\"isRunning\\\"]],[30,0,[\\\"onDeletingAttachment\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,14],[\\\"click\\\",[28,[37,15],[[30,0,[\\\"saveAttachment\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveAttachment\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,8],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"common.Save\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]]]]],[\\\"@onCloseAction\\\",\\\"@attachment\\\",\\\"@users\\\"],false,[\\\"modal-dialog\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"form\\\",\\\"header\\\",\\\"h3\\\",\\\"ptl-input\\\",\\\"not\\\",\\\"t\\\",\\\"array\\\",\\\"gt\\\",\\\"footer\\\",\\\"button\\\",\\\"or\\\",\\\"on\\\",\\\"perform\\\",\\\"div\\\",\\\"span\\\"]]\",\n    \"moduleName\": \"portal/components/attachment-settings-modal.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"attachmentChangeSet\", _descriptor, this);\n      _initializerDefineProperty(this, \"permissionChangeSet\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor4, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor5, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor6, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor7, this);\n      _defineProperty(this, \"validateName\", newValue => {\n        const filename = newValue;\n        return filename && filename.length > 0 || this.intl.t('validation.Please provide a file name');\n      });\n      _defineProperty(this, \"taskValidator\", ({\n        key,\n        newValue,\n        oldValue\n      }) => {\n        switch (key) {\n          case 'filename':\n            return this.validateName(newValue, oldValue);\n          default:\n            break;\n        }\n      });\n      _defineProperty(this, \"validationMap\", {\n        name: this.validateName\n      });\n      _defineProperty(this, \"userAttachmentPermission\", ['canViewFileStorage']);\n      _defineProperty(this, \"attachmentProjectPermission\", ['clientsCanViewFileStorage']);\n      _defineProperty(this, \"initChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          if (this.canManageUsers) {\n            yield Promise.all([this.getUserPermissionSet.perform(), this.getAttachmentPermissionSet.perform()]);\n            yield this.initPermissionChangeset.perform();\n          }\n          this.attachmentChangeSet = (0, _emberChangeset.Changeset)(this.args.attachment, this.taskValidator, this.validationMap);\n        }\n      }), null, \"initChangeset\", null));\n      _defineProperty(this, \"getUserPermissionSet\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const attributes = yield this.store.simpleQuery('user-attribute', {\n            _id: {\n              $in: this.userAttachmentPermission\n            }\n          });\n          return attributes.toArray().reduce((acc, a) => ({\n            ...acc,\n            [a.id]: a\n          }), {});\n        }\n      }), null, \"getUserPermissionSet\", null));\n      _defineProperty(this, \"getAttachmentPermissionSet\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const attributes = yield this.store.simpleQuery('attachment-attribute', {\n            _id: {\n              $in: this.attachmentProjectPermission\n            }\n          });\n          return attributes.toArray().reduce((acc, a) => ({\n            ...acc,\n            [a.id]: a\n          }), {});\n        }\n      }), null, \"getAttachmentPermissionSet\", null));\n      _defineProperty(this, \"initPermissionChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.getExistUserPermissions.perform();\n          const users = this.getExistUserPermissions.last.value.map(at => at.belongsTo('user').value());\n          yield this.getExistCanViewFilePermission.perform();\n          this.permissionChangeSet = (0, _emberChangeset.Changeset)({\n            users,\n            clientsCanViewFileStorage: this.getExistCanViewFilePermission.last.value.length > 0\n          });\n        }\n      }), null, \"initPermissionChangeset\", null));\n      _defineProperty(this, \"getExistUserPermissions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const attributes = yield this.store.simpleQuery('user-attachment-attribute', {\n            entity: this.sessionData.entity.id,\n            attachment: this.args.attachment.id\n          }, {\n            include: 'user'\n          });\n          return attributes;\n        }\n      }), null, \"getExistUserPermissions\", null));\n      _defineProperty(this, \"getExistCanViewFilePermission\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const attributes = yield this.store.simpleQuery('attachment-project-attribute', {\n            attachment: this.args.attachment.id,\n            attribute: this.getAttachmentPermissionSet.last.value.clientsCanViewFileStorage.id\n          });\n          return attributes;\n        }\n      }), null, \"getExistCanViewFilePermission\", null));\n      _defineProperty(this, \"saveAttachment\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.attachmentChangeSet.validate();\n          if (this.attachmentChangeSet.isInvalid) return;\n          try {\n            yield this.attachmentChangeSet.save();\n            if (this.canManageUsers) {\n              yield Promise.all([this.saveUserAttachmentPermission.perform(), this.saveClientCanViewAttachmentPermission.perform()]);\n            }\n            this.notifications.success(this.intl.t('components.attachment-settings-modal.Successfully saved attachment settings'));\n            this.args.onCloseAction();\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('components.attachment-settings-modal.somethingWentWrongWhileSavingAttachmentSettings'),\n              error\n            });\n          }\n        }\n      }), null, \"saveAttachment\", null));\n      _defineProperty(this, \"saveClientCanViewAttachmentPermission\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          // make sure current state saved.\n          this.permissionChangeSet.execute();\n          yield this.getExistCanViewFilePermission.perform();\n          // get the up to date value\n          const existCanViewFilePermission = this.getExistCanViewFilePermission.last.value;\n          const originalState = existCanViewFilePermission.length > 0;\n          const currentState = this.permissionChangeSet.clientsCanViewFileStorage;\n          if (originalState !== currentState) {\n            if (currentState) {\n              yield this.store.createRecord('attachment-project-attribute', {\n                entity: this.args.attachment.belongsTo('entity').value(),\n                attachment: this.args.attachment,\n                project: this.args.project,\n                attribute: this.getAttachmentPermissionSet.last.value.clientsCanViewFileStorage\n              }).save();\n            } else {\n              yield existCanViewFilePermission.map(attr => attr.destroyRecord());\n            }\n          }\n        }\n      }), null, \"saveClientCanViewAttachmentPermission\", null));\n      _defineProperty(this, \"onDeletingAttachment\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          if (!confirm(this.intl.t('components.attachment-settings-modal.Do you want to delete this attachment'))) return;\n          const linkAttachmentsToParent = this.args.parent.hasMany('attachments').value();\n          const linkRecord = linkAttachmentsToParent.find(item => item.belongsTo('attachment').id() === this.args.attachment.id);\n\n          // first we need to delete the link record\n          yield linkRecord.destroyRecord();\n\n          //after delete actual attachment record\n          yield this.args.attachment.destroyRecord();\n          this.args.onCloseAction(true);\n        }\n      }), null, \"onDeletingAttachment\", null));\n      _defineProperty(this, \"saveUserAttachmentPermission\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const originalAttributes = this.getExistUserPermissions.last.value;\n          const originalSelectedUsers = originalAttributes.map(at => at.belongsTo('user').value());\n          const selectedUsers = this.permissionChangeSet.users;\n          const removeUsers = _lodash.default.difference(originalSelectedUsers, selectedUsers);\n          let attrToRemove = [];\n          if (removeUsers.length) {\n            attrToRemove = originalAttributes.filter(oa => removeUsers.includes(oa.belongsTo('user').value()));\n          }\n          const addUsers = _lodash.default.difference(selectedUsers, originalSelectedUsers);\n          let attrToAdd = [];\n          if (addUsers.length) {\n            attrToAdd = addUsers.map(u => this.store.createRecord('user-attachment-attribute', {\n              user: u,\n              attachment: this.args.attachment,\n              entity: this.args.attachment.belongsTo('entity').value(),\n              attribute: this.getUserPermissionSet.last.value.canViewFileStorage\n            }));\n          }\n          yield Promise.all([attrToRemove.map(attr => attr.destroyRecord()), attrToAdd.map(attr => attr.save())]);\n        }\n      }), null, \"saveUserAttachmentPermission\", null));\n      this.initChangeset.perform();\n    }\n    get showClientVisibleButton() {\n      return !this.args.attachment.hasMany('entities').ids().length;\n    }\n    get isEditable() {\n      return this.newFeatureFlags.includesFeatureFlags(this.args.parent, 'canManageFileStorage');\n    }\n    get canManageUsers() {\n      return this.newFeatureFlags.includesFeatureFlags(this.args.parent, 'canManageUsers');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"attachmentChangeSet\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"permissionChangeSet\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class));\n});","define(\"portal/components/attachment-table\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _component2, _tracking, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='d-flex flex-column'>\n    {{#each @attachments as |attachment|}}\n      <div class='d-flex align-items-center attachment-table__attachment-row'>\n        <div class='d-flex flex-grow-1 align-items-center'>\n          <div class='me-3'>\n            <FileTypeIcon @mime={{attachment.fileType}} @size='2x' />\n          </div>\n  \n          <div class='d-flex flex-column align-items-start'>\n            <button\n              type='button'\n              class='fs-5 btn btn-link m-0 p-0'\n              {{on 'click' (fn this.setAttachmentToUpdate attachment)}}\n            >{{attachment.filename}}</button>\n            <div class='text-dark fs-6'>\n              {{attachment.description}}\n            </div>\n            <div class='text-muted fs-6'>\n              {{date-ago attachment.dateCreated}},\n              {{file-size-to-string attachment.size true}}\n            </div>\n          </div>\n        </div>\n  \n        <div class='d-flex align-items-center'>\n          <a\n            target='_blank'\n            href={{attachment.href}}\n            rel='noopener noreferrer'\n            class='btn btn-link'\n          ><FaIcon @icon='download' @size='md' /></a>\n        </div>\n      </div>\n    {{else}}\n      <p class='text-center'>\n        {{t 'common.No documents'}}\n      </p>\n    {{/each}}\n  </div>\n  \n  {{#if this.attachmentToUpdate}}\n    <AttachmentSettingsModal\n      @parent={{@parent}}\n      @project={{@project}}\n      @attachment={{this.attachmentToUpdate}}\n      @users={{@users}}\n      @onCloseAction={{fn (mut this.attachmentToUpdate) null}}\n    />\n  {{/if}}\n  */\n  {\n    \"id\": \"Vsg9dAVP\",\n    \"block\": \"[[[10,0],[14,0,\\\"d-flex flex-column\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,2],[[28,[37,2],[[30,1]],null]],null],null,[[[1,\\\"    \\\"],[10,0],[14,0,\\\"d-flex align-items-center attachment-table__attachment-row\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"me-3\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,3],null,[[\\\"@mime\\\",\\\"@size\\\"],[[30,2,[\\\"fileType\\\"]],\\\"2x\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-column align-items-start\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"fs-5 btn btn-link m-0 p-0\\\"],[24,4,\\\"button\\\"],[4,[38,5],[\\\"click\\\",[28,[37,6],[[30,0,[\\\"setAttachmentToUpdate\\\"]],[30,2]],null]],null],[12],[1,[30,2,[\\\"filename\\\"]]],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"text-dark fs-6\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[30,2,[\\\"description\\\"]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"text-muted fs-6\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,7],[[30,2,[\\\"dateCreated\\\"]]],null]],[1,\\\",\\\\n            \\\"],[1,[28,[35,8],[[30,2,[\\\"size\\\"]],true],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[10,3],[14,\\\"target\\\",\\\"_blank\\\"],[15,6,[30,2,[\\\"href\\\"]]],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[14,0,\\\"btn btn-link\\\"],[12],[8,[39,10],null,[[\\\"@icon\\\",\\\"@size\\\"],[\\\"download\\\",\\\"md\\\"]],null],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],[[[1,\\\"    \\\"],[10,2],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,12],[\\\"common.No documents\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"attachmentToUpdate\\\"]],[[[1,\\\"  \\\"],[8,[39,14],null,[[\\\"@parent\\\",\\\"@project\\\",\\\"@attachment\\\",\\\"@users\\\",\\\"@onCloseAction\\\"],[[30,3],[30,4],[30,0,[\\\"attachmentToUpdate\\\"]],[30,5],[28,[37,6],[[28,[37,15],[[30,0,[\\\"attachmentToUpdate\\\"]]],null],null],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@attachments\\\",\\\"attachment\\\",\\\"@parent\\\",\\\"@project\\\",\\\"@users\\\"],false,[\\\"div\\\",\\\"each\\\",\\\"-track-array\\\",\\\"file-type-icon\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"date-ago\\\",\\\"file-size-to-string\\\",\\\"a\\\",\\\"fa-icon\\\",\\\"p\\\",\\\"t\\\",\\\"if\\\",\\\"attachment-settings-modal\\\",\\\"mut\\\"]]\",\n    \"moduleName\": \"portal/components/attachment-table.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"attachmentToDelete\", _descriptor, this);\n      _initializerDefineProperty(this, \"attachmentToUpdate\", _descriptor2, this);\n    }\n    setAttachmentToUpdate(attachment, event) {\n      event.preventDefault();\n      this.attachmentToUpdate = attachment;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"attachmentToDelete\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"attachmentToUpdate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"setAttachmentToUpdate\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setAttachmentToUpdate\"), _class.prototype), _class));\n});","define(\"portal/components/attachment-upload-modal\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if @visible}}\n    <ModalDialog\n      @onClose={{fn (mut @visible) false}}\n      @translucentOverlay='true'\n      @overlayClass='modal'\n      @containerClass='block-module'\n    >\n      <div class='card width--large'>\n        <DragAndDropContainer\n          @parent={{@parent}}\n          @onUploadComplete={{@onUploadComplete}}\n          @isDragAndDropVisible={{@isDragAndDropVisible}}\n        />\n      </div>\n      <footer class='block-module__footer'>\n        <div class='float-end d-flex align-items-center'>\n          {{#if @onUploadComplete.isRunning}}\n            <button\n              type='button'\n              class='btn btn-secondary text-white ms-2'\n              disabled={{true}}\n            >\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t 'common.uploading'}}…\n            </button>\n          {{else}}\n            <button\n              class='btn btn-secondary text-white ms-2'\n              type='button'\n              disabled={{@onUploadComplete.isRunning}}\n              {{on 'click' (fn (mut @visible) false)}}\n            >\n              {{t 'common.Cancel'}}\n            </button>\n          {{/if}}\n        </div>\n      </footer>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"CbvDEYih\",\n    \"block\": \"[[[41,[30,1],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@overlayClass\\\",\\\"@containerClass\\\"],[[28,[37,2],[[28,[37,3],[[30,1]],null],false],null],\\\"true\\\",\\\"modal\\\",\\\"block-module\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"card width--large\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,5],null,[[\\\"@parent\\\",\\\"@onUploadComplete\\\",\\\"@isDragAndDropVisible\\\"],[[30,2],[30,3],[30,4]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"float-end d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,3,[\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white ms-2\\\"],[15,\\\"disabled\\\",true],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,9],[\\\"common.uploading\\\"],null]],[1,\\\"…\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[16,\\\"disabled\\\",[30,3,[\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,2],[[28,[37,3],[[30,1]],null],false],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,9],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@visible\\\",\\\"@parent\\\",\\\"@onUploadComplete\\\",\\\"@isDragAndDropVisible\\\"],false,[\\\"if\\\",\\\"modal-dialog\\\",\\\"fn\\\",\\\"mut\\\",\\\"div\\\",\\\"drag-and-drop-container\\\",\\\"footer\\\",\\\"button\\\",\\\"span\\\",\\\"t\\\",\\\"on\\\"]]\",\n    \"moduleName\": \"portal/components/attachment-upload-modal.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"portal/components/attachments-popover\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@ember/service\", \"@glimmer/tracking\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _service, _tracking, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <PopOver\n    @direction={{this.direction}}\n    @fixed={{true}}\n    @disableBlur={{true}}\n    @disabled={{@disabled}}\n    class={{if this.forceVisible 'pop-over__container--force-visible'}}\n    {{on 'click' this.open}}\n    {{did-insert this.setupListeners}}\n    {{will-destroy this.teardownListeners}}\n    ...attributes\n    as |po|\n  >\n    <button\n      type='button'\n      class='btn btn-secondary text-white text-nowrap d-inline-flex align-items-center justify-content-between gap-2'\n      disabled={{@disabled}}\n    >\n      <span class='d-inline-flex align-items-center gap-2 text-nowrap'>\n        <FaIcon @icon='file-alt' />\n        <span>{{this.buttonText}}</span>\n      </span>\n      <FaIcon @icon='caret-down' />\n    </button>\n  \n    <po.Content class='p-0'>\n      <div class='d-flex flex-column gap-3 p-3' style='max-width: 90vw;'>\n        <div class='fs-6 fw-semibold'>{{t\n            'components.attachments-popover.Attach files'\n          }}</div>\n  \n        <DragAndDropContainer\n          @onUploadComplete={{@onUploadComplete}}\n          @isDragAndDropVisible={{true}}\n        />\n  \n        <div class='list-group overflow-auto' style='max-height: 20rem;'>\n          {{#each this.attachments as |attachment|}}\n            <div\n              class='list-group-item d-flex align-items-center gap-3 px-3 py-3'\n            >\n              <div\n                class='d-flex align-items-center gap-3 flex-grow-1 overflow-hidden'\n              >\n                <div\n                  class='d-flex justify-content-center flex-shrink-0'\n                  style='width: 1.5rem;'\n                >\n                  <FileTypeIcon @mime={{attachment.fileType}} @size='lg' />\n                </div>\n  \n                <div class='flex-grow-1 overflow-hidden'>\n                  <div\n                    class='d-block text-truncate fw-semibold'\n                    title={{attachment.filename}}\n                  >\n                    {{ellipsis-characters attachment.filename 30}}\n                  </div>\n                  <div class='small text-muted'>\n                    {{if\n                      (or attachment.size (eq attachment.size 0))\n                      (file-size-to-string attachment.size true)\n                      (t 'components.attachments-popover.File size unavailable')\n                    }}\n                  </div>\n                </div>\n              </div>\n  \n              <div class='d-flex align-items-center gap-3 flex-shrink-0'>\n                <button\n                  type='button'\n                  class='btn btn-link text-decoration-none fw-semibold p-0 text-nowrap'\n                  {{on 'click' (fn @onViewAttachment attachment)}}\n                >\n                  {{t 'common.View'}}\n                </button>\n  \n                <button\n                  type='button'\n                  class='btn btn-link text-danger text-decoration-none p-0 lh-1'\n                  aria-label={{t 'common.Delete attachment'}}\n                  {{on 'click' (fn @onDeleteAttachment attachment)}}\n                >\n                  <FaIcon @icon='trash' />\n                </button>\n              </div>\n            </div>\n          {{else}}\n            <div class='list-group-item py-4 text-center text-muted'>\n              {{t 'components.attachments-popover.No attachments'}}\n            </div>\n          {{/each}}\n        </div>\n      </div>\n    </po.Content>\n  </PopOver>\n  */\n  {\n    \"id\": \"KQj3LmbV\",\n    \"block\": \"[[[8,[39,0],[[16,0,[52,[30,0,[\\\"forceVisible\\\"]],\\\"pop-over__container--force-visible\\\"]],[17,1],[4,[38,2],[\\\"click\\\",[30,0,[\\\"open\\\"]]],null],[4,[38,3],[[30,0,[\\\"setupListeners\\\"]]],null],[4,[38,4],[[30,0,[\\\"teardownListeners\\\"]]],null]],[[\\\"@direction\\\",\\\"@fixed\\\",\\\"@disableBlur\\\",\\\"@disabled\\\"],[[30,0,[\\\"direction\\\"]],true,true,[30,2]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white text-nowrap d-inline-flex align-items-center justify-content-between gap-2\\\"],[15,\\\"disabled\\\",[30,2]],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n    \\\"],[10,1],[14,0,\\\"d-inline-flex align-items-center gap-2 text-nowrap\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,7],null,[[\\\"@icon\\\"],[\\\"file-alt\\\"]],null],[1,\\\"\\\\n      \\\"],[10,1],[12],[1,[30,0,[\\\"buttonText\\\"]]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,7],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,3,[\\\"Content\\\"]],[[24,0,\\\"p-0\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex flex-column gap-3 p-3\\\"],[14,5,\\\"max-width: 90vw;\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"fs-6 fw-semibold\\\"],[12],[1,[28,[35,9],[\\\"components.attachments-popover.Attach files\\\"],null]],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,10],null,[[\\\"@onUploadComplete\\\",\\\"@isDragAndDropVisible\\\"],[[30,4],true]],null],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"list-group overflow-auto\\\"],[14,5,\\\"max-height: 20rem;\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,12],[[28,[37,12],[[30,0,[\\\"attachments\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[10,0],[14,0,\\\"list-group-item d-flex align-items-center gap-3 px-3 py-3\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"d-flex align-items-center gap-3 flex-grow-1 overflow-hidden\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"d-flex justify-content-center flex-shrink-0\\\"],[14,5,\\\"width: 1.5rem;\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,13],null,[[\\\"@mime\\\",\\\"@size\\\"],[[30,5,[\\\"fileType\\\"]],\\\"lg\\\"]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\\n              \\\"],[10,0],[14,0,\\\"flex-grow-1 overflow-hidden\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"d-block text-truncate fw-semibold\\\"],[15,\\\"title\\\",[30,5,[\\\"filename\\\"]]],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,14],[[30,5,[\\\"filename\\\"]],30],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"small text-muted\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[52,[28,[37,15],[[30,5,[\\\"size\\\"]],[28,[37,16],[[30,5,[\\\"size\\\"]],0],null]],null],[28,[37,17],[[30,5,[\\\"size\\\"]],true],null],[28,[37,9],[\\\"components.attachments-popover.File size unavailable\\\"],null]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[10,0],[14,0,\\\"d-flex align-items-center gap-3 flex-shrink-0\\\"],[12],[1,\\\"\\\\n              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-decoration-none fw-semibold p-0 text-nowrap\\\"],[24,4,\\\"button\\\"],[4,[38,2],[\\\"click\\\",[28,[37,18],[[30,6],[30,5]],null]],null],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,9],[\\\"common.View\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\\n              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-none p-0 lh-1\\\"],[16,\\\"aria-label\\\",[28,[37,9],[\\\"common.Delete attachment\\\"],null]],[24,4,\\\"button\\\"],[4,[38,2],[\\\"click\\\",[28,[37,18],[[30,7],[30,5]],null]],null],[12],[1,\\\"\\\\n                \\\"],[8,[39,7],null,[[\\\"@icon\\\"],[\\\"trash\\\"]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[5]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"list-group-item py-4 text-center text-muted\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,9],[\\\"components.attachments-popover.No attachments\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[3]]]]]],[\\\"&attrs\\\",\\\"@disabled\\\",\\\"po\\\",\\\"@onUploadComplete\\\",\\\"attachment\\\",\\\"@onViewAttachment\\\",\\\"@onDeleteAttachment\\\"],false,[\\\"pop-over\\\",\\\"if\\\",\\\"on\\\",\\\"did-insert\\\",\\\"will-destroy\\\",\\\"button\\\",\\\"span\\\",\\\"fa-icon\\\",\\\"div\\\",\\\"t\\\",\\\"drag-and-drop-container\\\",\\\"each\\\",\\\"-track-array\\\",\\\"file-type-icon\\\",\\\"ellipsis-characters\\\",\\\"or\\\",\\\"eq\\\",\\\"file-size-to-string\\\",\\\"fn\\\"]]\",\n    \"moduleName\": \"portal/components/attachments-popover.hbs\",\n    \"isStrictMode\": false\n  });\n  let AttachmentsPopoverComponent = _exports.default = (_class = class AttachmentsPopoverComponent extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"media\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _initializerDefineProperty(this, \"isDraggingFiles\", _descriptor3, this);\n      _initializerDefineProperty(this, \"isOpen\", _descriptor4, this);\n      _defineProperty(this, \"element\", null);\n      _defineProperty(this, \"dragHandler\", null);\n      _defineProperty(this, \"dragEndHandler\", null);\n      _defineProperty(this, \"clickHandler\", null);\n    }\n    get attachments() {\n      return this.args.attachments || [];\n    }\n    get buttonText() {\n      return this.args.buttonText || `${this.intl.t('common.Attachments')} (${this.attachments.length})`;\n    }\n    get direction() {\n      if (this.media.isDesktop) {\n        return 'bottom-left';\n      } else {\n        return 'bottom-right';\n      }\n    }\n    get forceVisible() {\n      return this.isOpen || this.isDraggingFiles;\n    }\n    open() {\n      this.isOpen = true;\n    }\n    setupListeners(element) {\n      this.element = element;\n      this.dragHandler = event => {\n        if (event.dataTransfer?.types?.includes('Files')) {\n          this.isDraggingFiles = true;\n          this.isOpen = true;\n        }\n      };\n      this.dragEndHandler = () => {\n        this.isDraggingFiles = false;\n      };\n      this.clickHandler = event => {\n        if (!this.element.contains(event.target)) {\n          this.isOpen = false;\n        }\n      };\n      window.addEventListener('dragenter', this.dragHandler);\n      window.addEventListener('dragover', this.dragHandler);\n      window.addEventListener('drop', this.dragEndHandler);\n      window.addEventListener('dragend', this.dragEndHandler);\n      window.addEventListener('mousedown', this.clickHandler);\n    }\n    teardownListeners() {\n      window.removeEventListener('dragenter', this.dragHandler);\n      window.removeEventListener('dragover', this.dragHandler);\n      window.removeEventListener('drop', this.dragEndHandler);\n      window.removeEventListener('dragend', this.dragEndHandler);\n      window.removeEventListener('mousedown', this.clickHandler);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"media\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"isDraggingFiles\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"isOpen\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"open\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"open\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setupListeners\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setupListeners\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"teardownListeners\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"teardownListeners\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AttachmentsPopoverComponent);\n});","define(\"portal/components/auto-mapping/directive-pm\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{!\n    This component is a template sentence with two inputs.\n    The second input could be a select box, if the directive is account based,\n    or a text input, if the directive is a reference based.\n  }}\n  \n  <div\n    class='directive__segment directive__segment--left'\n    data-test-sentence-fragment=''\n  >\n    {{t 'components.auto-mapping.directive-pm.Auto map bills to the project'}}\n  </div>\n  \n  <SelectInput\n    @class={{concat\n      'select-box directive__segment directive__segment--left'\n      (unless this.directive.project.id ' invalid')\n    }}\n    @value={{this.directive.project.id}}\n    @action={{action 'switchProject'}}\n    data-test-project-select={{if this.directive.isNew 'new' this.directive.id}}\n    as |si|\n  >\n    <si.option @value={{null}}>{{t 'common.Select a project'}}</si.option>\n  \n    {{#each this.projectOptions as |project|}}\n      <si.option @value={{project.id}}>{{project.name}}</si.option>\n    {{/each}}\n  </SelectInput>\n  \n  {{#if (eq this.directive.kind 'account')}}\n    <div\n      class='directive__segment directive__segment--left'\n      data-test-sentence-fragment=''\n    >\n      {{t\n        'components.auto-mapping.directive-pm.whenTheyAreBilledToTheMerchantAccount'\n      }}\n    </div>\n  \n    <SelectInput\n      @class={{concat\n        'select-box directive__segment directive__segment--left'\n        (unless this.directive.value ' invalid')\n      }}\n      @value={{this.directive.value}}\n      @action={{fn (mut this.directive.value)}}\n      data-test-account-select={{if this.directive.isNew 'new' this.directive.id}}\n      as |si|\n    >\n      <si.option>{{t\n          'components.auto-mapping.directive-pm.Select an account'\n        }}</si.option>\n  \n      {{#each this.accountOptions as |account|}}\n        <si.option\n          @value={{account.code}}\n          data-test-account-option={{this.directive.id}}\n        >\n          {{account.name}}&nbsp;({{account.supplier.name}})\n        </si.option>\n      {{/each}}\n    </SelectInput>\n  \n  {{else if (eq this.directive.kind 'reference')}}\n  \n    <div\n      class='directive__segment directive__segment--left'\n      data-test-sentence-fragment=''\n    >\n      {{t\n        'components.auto-mapping.directive-pm.whenTheBillsPurchaseOrderFieldIs'\n      }}\n    </div>\n  \n    <Input\n      @value={{this.directive.value}}\n      class={{concat\n        'text-input directive__segment directive__segment--left'\n        (unless this.directive.value ' invalid')\n      }}\n      data-test-reference={{if this.directive.isNew 'new' this.directive.id}}\n    />\n  \n  {{else}}\n  \n    <div data-test-error-message=''>\n      {{t 'components.auto-mapping.directive-pm.Something went wrong'}}\n    </div>\n  {{/if}}\n  \n  <button\n    class='button button--delete directive__segment'\n    data-test-delete=''\n    type='button'\n    {{action this.delete}}\n  ><FaIcon @icon='trash' /></button>\n  */\n  {\n    \"id\": \"eWTJiSZy\",\n    \"block\": \"[[[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"directive__segment directive__segment--left\\\"],[14,\\\"data-test-sentence-fragment\\\",\\\"\\\"],[12],[1,\\\"\\\\n  \\\"],[1,[28,[35,1],[\\\"components.auto-mapping.directive-pm.Auto map bills to the project\\\"],null]],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[8,[39,2],[[16,\\\"data-test-project-select\\\",[52,[30,0,[\\\"directive\\\",\\\"isNew\\\"]],\\\"new\\\",[30,0,[\\\"directive\\\",\\\"id\\\"]]]]],[[\\\"@class\\\",\\\"@value\\\",\\\"@action\\\"],[[28,[37,4],[\\\"select-box directive__segment directive__segment--left\\\",[52,[51,[30,0,[\\\"directive\\\",\\\"project\\\",\\\"id\\\"]]],\\\" invalid\\\"]],null],[30,0,[\\\"directive\\\",\\\"project\\\",\\\"id\\\"]],[28,[37,6],[[30,0],\\\"switchProject\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[null]],[[\\\"default\\\"],[[[[1,[28,[35,1],[\\\"common.Select a project\\\"],null]]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,0,[\\\"projectOptions\\\"]]],null]],null],null,[[[1,\\\"    \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[[30,2,[\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,[30,2,[\\\"name\\\"]]]],[]]]]],[1,\\\"\\\\n\\\"]],[2]],null]],[1]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,9],[[30,0,[\\\"directive\\\",\\\"kind\\\"]],\\\"account\\\"],null],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"directive__segment directive__segment--left\\\"],[14,\\\"data-test-sentence-fragment\\\",\\\"\\\"],[12],[1,\\\"\\\\n    \\\"],[1,[28,[35,1],[\\\"components.auto-mapping.directive-pm.whenTheyAreBilledToTheMerchantAccount\\\"],null]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,2],[[16,\\\"data-test-account-select\\\",[52,[30,0,[\\\"directive\\\",\\\"isNew\\\"]],\\\"new\\\",[30,0,[\\\"directive\\\",\\\"id\\\"]]]]],[[\\\"@class\\\",\\\"@value\\\",\\\"@action\\\"],[[28,[37,4],[\\\"select-box directive__segment directive__segment--left\\\",[52,[51,[30,0,[\\\"directive\\\",\\\"value\\\"]]],\\\" invalid\\\"]],null],[30,0,[\\\"directive\\\",\\\"value\\\"]],[28,[37,10],[[28,[37,11],[[30,0,[\\\"directive\\\",\\\"value\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,3,[\\\"option\\\"]],null,null,[[\\\"default\\\"],[[[[1,[28,[35,1],[\\\"components.auto-mapping.directive-pm.Select an account\\\"],null]]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,0,[\\\"accountOptions\\\"]]],null]],null],null,[[[1,\\\"      \\\"],[8,[30,3,[\\\"option\\\"]],[[16,\\\"data-test-account-option\\\",[30,0,[\\\"directive\\\",\\\"id\\\"]]]],[[\\\"@value\\\"],[[30,4,[\\\"code\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[30,4,[\\\"name\\\"]]],[1,\\\" (\\\"],[1,[30,4,[\\\"supplier\\\",\\\"name\\\"]]],[1,\\\")\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"  \\\"]],[3]]]]],[1,\\\"\\\\n\\\\n\\\"]],[]],[[[41,[28,[37,9],[[30,0,[\\\"directive\\\",\\\"kind\\\"]],\\\"reference\\\"],null],[[[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"directive__segment directive__segment--left\\\"],[14,\\\"data-test-sentence-fragment\\\",\\\"\\\"],[12],[1,\\\"\\\\n    \\\"],[1,[28,[35,1],[\\\"components.auto-mapping.directive-pm.whenTheBillsPurchaseOrderFieldIs\\\"],null]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,12],[[16,0,[28,[37,4],[\\\"text-input directive__segment directive__segment--left\\\",[52,[51,[30,0,[\\\"directive\\\",\\\"value\\\"]]],\\\" invalid\\\"]],null]],[16,\\\"data-test-reference\\\",[52,[30,0,[\\\"directive\\\",\\\"isNew\\\"]],\\\"new\\\",[30,0,[\\\"directive\\\",\\\"id\\\"]]]]],[[\\\"@value\\\"],[[30,0,[\\\"directive\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\\n\\\"]],[]],[[[1,\\\"\\\\n  \\\"],[10,0],[14,\\\"data-test-error-message\\\",\\\"\\\"],[12],[1,\\\"\\\\n    \\\"],[1,[28,[35,1],[\\\"components.auto-mapping.directive-pm.Something went wrong\\\"],null]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]],[1,\\\"\\\\n\\\"],[11,\\\"button\\\"],[24,0,\\\"button button--delete directive__segment\\\"],[24,\\\"data-test-delete\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,6],[[30,0],[30,0,[\\\"delete\\\"]]],null],[12],[8,[39,14],null,[[\\\"@icon\\\"],[\\\"trash\\\"]],null],[13]],[\\\"si\\\",\\\"project\\\",\\\"si\\\",\\\"account\\\"],false,[\\\"div\\\",\\\"t\\\",\\\"select-input\\\",\\\"if\\\",\\\"concat\\\",\\\"unless\\\",\\\"action\\\",\\\"each\\\",\\\"-track-array\\\",\\\"eq\\\",\\\"fn\\\",\\\"mut\\\",\\\"input\\\",\\\"button\\\",\\\"fa-icon\\\"]]\",\n    \"moduleName\": \"portal/components/auto-mapping/directive-pm.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    classNames: ['directive'],\n    /**\n     * Makes sure that the selected project is included in the list.\n     * It may not have been passed in as an option if it was not open.\n     * @type {Project[]}\n     */\n    projectOptions: (0, _object.computed)('directive.project', 'projects.[]', function () {\n      const selectedProject = (0, _object.get)(this, 'directive').safeBelongsToValue('project');\n      const passedInProjects = (0, _object.get)(this, 'projects').toArray();\n      if (passedInProjects.mapBy('id').includes(selectedProject ? (0, _object.get)(selectedProject, 'id') : null)) {\n        return [...passedInProjects];\n      } else {\n        return [selectedProject, ...passedInProjects];\n      }\n    }),\n    // Include all the unused accounts, as well as the account currently used by this directive.\n    accountOptions: (0, _object.computed)('allAccounts', 'directive.value', 'unusedAccounts.[]', function () {\n      const unused = (0, _object.get)(this, 'unusedAccounts');\n      const currentCode = (0, _object.get)(this, 'directive.value');\n\n      // Filtering the complete list preserves order, as opposed to adding the current account to the unused list.\n      return (0, _object.get)(this, 'allAccounts').filter(a => (0, _object.get)(a, 'code') === currentCode || unused.includes(a));\n    }),\n    actions: {\n      switchProject(projectId) {\n        const project = ((0, _object.get)(this, 'projects') === undefined ? [] : (0, _object.get)(this, 'projects')).find(j => (0, _object.get)(j, 'id') === projectId);\n\n        // No project being set is akin to the directive not existing, it is therefore not a valid state to enter.\n        if (project == null) return;\n        (0, _object.set)(this, 'directive.project', project);\n      }\n    }\n  }));\n});","define(\"portal/components/basic-dropdown-content\", [\"exports\", \"ember-basic-dropdown/components/basic-dropdown-content\"], function (_exports, _basicDropdownContent) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _basicDropdownContent.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-basic-dropdown/components/basic-dropdown-content\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/basic-dropdown-trigger\", [\"exports\", \"ember-basic-dropdown/components/basic-dropdown-trigger\"], function (_exports, _basicDropdownTrigger) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _basicDropdownTrigger.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-basic-dropdown/components/basic-dropdown-trigger\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/basic-dropdown-wormhole\", [\"exports\", \"ember-basic-dropdown/components/basic-dropdown-wormhole\"], function (_exports, _basicDropdownWormhole) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _basicDropdownWormhole.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-basic-dropdown/components/basic-dropdown-wormhole\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/basic-dropdown\", [\"exports\", \"ember-basic-dropdown/components/basic-dropdown\"], function (_exports, _basicDropdown) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _basicDropdown.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-basic-dropdown/components/basic-dropdown\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/basic-importer\", [\"exports\", \"@ember/component\", \"@ember/service\", \"@ember/object/computed\", \"@ember/object\", \"@ember/utils\"], function (_exports, _component, _service, _computed, _object, _utils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/service\",0,\"@ember/object/computed\",0,\"@ember/object\",0,\"@ember/utils\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _component.default.extend({\n    notifications: (0, _service.inject)(),\n    // Override this\n    parser: null,\n    hasSelectedFile: (0, _computed.notEmpty)('importData'),\n    hasNotSelectedFile: (0, _computed.not)('hasSelectedFile'),\n    hasImported: false,\n    actions: {\n      import(importData) {\n        const parser = (0, _object.get)(this, 'parser');\n        const csvParsingErrors = (0, _object.get)(importData, 'errors').rejectBy('type', 'Delimiter');\n        const oldError = (0, _object.get)(this, 'error');\n        if (!parser) {\n          throw new Error('No report parser provided. You should import this component and extend it, overriding the parser field');\n        }\n        if (oldError) {\n          (0, _object.get)(this, 'notifications').clear(oldError);\n        }\n        if (csvParsingErrors.length) {\n          this.send('parsingError', ['Bad CSV']);\n          return;\n        }\n\n        // Parse the response\n        const report = parser((0, _object.get)(importData, 'data'));\n        const reportParsingErrors = report.errors;\n        if (!(0, _utils.isEmpty)(reportParsingErrors)) {\n          this.send('parsingError', reportParsingErrors);\n          return;\n        }\n        this.import(report);\n        (0, _object.set)(this, 'hasImported', true);\n        (0, _object.set)(this, 'importData', null);\n      },\n      parsingError(errors) {\n        const msg = errors[0] || \"The file you selected didn't have the structure we were expecting. Please check the guides and try again.\";\n        const error = (0, _object.get)(this, 'notifications').error(msg);\n        (0, _object.set)(this, 'error', error);\n      }\n    }\n  });\n});","define(\"portal/components/bill-editor\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"ember-concurrency\", \"@ember/object\", \"@ember/service\", \"ember-changeset\", \"@glimmer/tracking\", \"ember-changeset-validations\", \"portal/validators/bill\", \"portal/validators/bill-item\", \"portal/utils/search-filter\", \"@ember/runloop\", \"portal/utils/search-term-escape\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _emberConcurrency, _object, _service, _emberChangeset, _tracking, _emberChangesetValidations, _bill, _billItem, _searchFilter, _runloop, _searchTermEscape, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"ember-concurrency\",0,\"@ember/object\",0,\"@ember/service\",0,\"ember-changeset\",0,\"@glimmer/tracking\",0,\"ember-changeset-validations\",0,\"portal/validators/bill\",0,\"portal/validators/bill-item\",0,\"portal/utils/search-filter\",0,\"@ember/runloop\",0,\"portal/utils/search-term-escape\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! the trigger has to sit outside the branches below - the loading state\n    unmounts the editor, so a bill change landing while it is up would be missed }}\n  <div hidden {{did-update (perform this.resetChangeset @bill)}}></div>\n  \n  {{#if this.resetChangeset.isRunning}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <div\n      class='d-flex flex-wrap p-2 border-bottom position-sticky bg-white z-1'\n      style='top: 0;'\n    >\n      <h2 class='flex-grow-1 m-0 my-2 d-flex align-items-center'>\n        {{@bill.typeLabel}}\n        {{@bill.billNumber}}\n        <span\n          class='badge ms-1 fs-7\n            {{if (eq @bill.status \"DRAFT\") \"bg-secondary\"}}\n            {{if (eq @bill.status \"ACCEPTED\") \"bg-info\"}}\n            {{if (eq @bill.status \"HELD\") \"bg-warning text-dark\"}}\n            {{if (eq @bill.status \"PAID\") \"bg-success\"}}\n            {{if (eq @bill.status \"ARCHIVED\") \"bg-secondary\"}}\n            '\n        >\n          {{@bill.statusLabel}}\n        </span>\n        {{#if @bill.hasDuplicate}}\n          <button\n            type='button'\n            class='btn btn-link p-0 ms-1 text-decoration-none'\n            title={{t 'components.bill-editor.View duplicate bills'}}\n            {{on 'click' this.viewDuplicateBills}}\n          >\n            <span class='badge fs-7 bg-danger'>\n              {{t 'common.Duplicate'}}\n              <FaIcon @icon='external-link-alt' />\n            </span>\n          </button>\n        {{/if}}\n      </h2>\n  \n      <div class='d-flex align-items-center gap-2 ms-auto'>\n        {{#if @bill.accountingPackageUrl}}\n          <a\n            href={{@bill.accountingPackageUrl}}\n            target='_blank'\n            rel='noopener noreferrer'\n            class='btn btn-link text-primary text-decoration-underline m-1'\n          >\n            {{t\n              'components.bill-editor.viewInLabel'\n              label=this.accountingPlatform.label\n            }}\n            <FaIcon class='ms-1' @icon='external-link-alt' />\n          </a>\n        {{/if}}\n  \n        <AttachmentsPopover\n          @attachments={{this.allAttachments}}\n          @disabled={{not this.canManageBills}}\n          @onViewAttachment={{this.viewAttachment}}\n          @onUploadComplete={{this.attachmentsUploadComplete}}\n          @onDeleteAttachment={{this.deleteAttachment}}\n        />\n  \n        <div class='d-flex'>\n          {{#if\n            (and\n              this.billActions.primaryAction\n              (not this.billActions.secondaryActions.length)\n            )\n          }}\n            <button\n              type='button'\n              class='btn btn-primary text-white m-1'\n              disabled={{or this.isLoading this.isActionsRunning}}\n              {{on\n                'click'\n                (perform\n                  this.billActions.primaryAction.action\n                  this.billActions.primaryAction.targetStatus\n                )\n              }}\n            >\n              {{#if this.isActionsRunning}}\n                {{t 'common.Syncing'}}&hellip;\n              {{else}}\n                {{this.billActions.primaryAction.name}}\n              {{/if}}\n            </button>\n          {{else if\n            (and\n              this.billActions.primaryAction\n              this.billActions.secondaryActions.length\n            )\n          }}\n            <div class='m-1'>\n              <DropdownButton\n                @onPrimaryClick={{perform\n                  this.billActions.primaryAction.action\n                  this.billActions.primaryAction.targetStatus\n                  this.billActions.primaryAction.syncToAccountingPackage\n                }}\n                @buttonText={{if\n                  this.isActionsRunning\n                  (t 'common.Saving')\n                  this.billActions.primaryAction.name\n                }}\n                @disabled={{or this.isLoading this.isActionsRunning}}\n              >\n                {{#each this.billActions.secondaryActions as |action|}}\n                  <button\n                    type='button'\n                    class='dropdown-item text-nowrap fs-5'\n                    {{on\n                      'click'\n                      (perform\n                        action.action\n                        action.targetStatus\n                        action.syncToAccountingPackage\n                      )\n                    }}\n                    disabled={{action.action.isRunning}}\n                  >\n                    {{#if action.action.isRunning}}\n                      {{t 'common.Updating'}}&hellip;\n                    {{else}}\n                      {{action.name}}\n                    {{/if}}\n                  </button>\n                {{/each}}\n              </DropdownButton>\n            </div>\n          {{/if}}\n        </div>\n  \n        <div class='d-flex align-items-center gap-1'>\n          {{#unless @bill.isNew}}\n            <IconButton\n              @size='md'\n              @icon='arrow-up'\n              {{on 'click' this.previousBill}}\n              {{on-key 'ArrowUp' this.triggerPreviousBill}}\n              title={{format-shortcut\n                'ArrowUp'\n                (t 'components.bill-editor.Previous bill')\n              }}\n            />\n            <IconButton\n              @size='md'\n              @icon='arrow-down'\n              {{on 'click' this.nextBill}}\n              {{on-key 'ArrowDown' this.triggerNextBill}}\n              title={{format-shortcut\n                'ArrowDown'\n                (t 'components.bill-editor.Next bill')\n              }}\n            />\n          {{/unless}}\n  \n          <LinkTo\n            @route='entity.builda-price.operations.incoming.bills'\n            class='d-flex'\n          >\n            <IconButton\n              @size='md'\n              @icon='times'\n              {{on-key 'Escape' this.triggerClose}}\n              title={{format-shortcut\n                'Esc'\n                (t 'components.bill-editor.Back to list')\n              }}\n            />\n          </LinkTo>\n        </div>\n      </div>\n    </div>\n  \n    <form class='p-3'>\n      <div class='d-flex'>\n        <div class='col mb-3'>\n          <label class='mb-1'>\n            {{t 'common.Issuer'}}\n            <sup class='text-danger'>*</sup>\n          </label>\n          <SearchSelector\n            @onSelect={{this.setIssuerContact}}\n            @onLoad={{this.loadContacts}}\n            @noDataMessage={{t 'common.Create a contact'}}\n            @noDataAction={{this.createIssuerContact}}\n            @showNoDataActionWithResults={{true}}\n            @initialSearchTerm={{@bill.issuer}}\n            @placeholder={{@bill.issuer}}\n            @key='issuerContact'\n            @optionKeys={{array 'name'}}\n            @model={{this.billForm}}\n            @disabled={{or (not this.canManageBills) this.save.isRunning}}\n            @forceValidationVisible={{true}}\n          />\n          {{#if this.billForm.issuerContact}}\n            <LinkTo\n              @route='entity.settings.contacts.contact'\n              @model={{this.billForm.issuerContact.id}}\n              class='link ps-1'\n              target='_blank'\n            >\n              View contact\n              <FaIcon @icon='external-link-alt' @fixedWidth={{true}} @size='sm' />\n            </LinkTo>\n          {{/if}}\n        </div>\n  \n        <div class='col mx-3 mb-3'>\n          <PtlInput\n            @containerClass='mb-0'\n            @type='select'\n            @label={{t 'common.Allocation type'}}\n            @key='allocationType'\n            @required={{true}}\n            @model={{this.billForm}}\n            @options={{array\n              (hash value='MATERIALS' label=(t 'common.Materials'))\n              (hash value='SUBCONTRACTORS' label=(t 'common.Subcontractors'))\n              (hash value='LABOUR' label=(t 'common.Labour'))\n            }}\n            @selectNoBlankOption={{true}}\n            disabled={{or (not this.canManageBills) this.save.isRunning}}\n            @forceValidationVisible={{true}}\n          />\n          {{#if this.hasDifferentAllocationType}}\n            <button\n              type='button'\n              class='btn btn-link p-0 text-primary'\n              disabled={{or (not this.canManageBills) this.save.isRunning}}\n              {{on 'click' this.setDefaultAllocationType}}\n            >\n              {{t 'components.bill-editor.Set as default allocation type'}}\n            </button>\n          {{/if}}\n        </div>\n  \n        <PtlInput\n          @containerClass='col mb-3'\n          @type='text'\n          @label={{t 'common.Number'}}\n          @key='billNumber'\n          @model={{this.billForm}}\n          @required={{true}}\n          disabled={{or (not this.canManageBills) this.save.isRunning}}\n          @forceValidationVisible={{true}}\n        />\n      </div>\n  \n      <div class='d-flex'>\n        <PtlInput\n          @containerClass='col mb-1'\n          @type='date'\n          @label={{t 'common.Issue date'}}\n          @key='issueDate'\n          @model={{this.billForm}}\n          disabled={{or (not this.canManageBills) this.save.isRunning}}\n          @required={{true}}\n          @forceValidationVisible={{true}}\n        />\n  \n        <PtlInput\n          @containerClass='col mb-1 mx-3'\n          @type='date'\n          @label={{t 'common.Due date'}}\n          @key='dueDate'\n          @model={{this.billForm}}\n          @required={{not (eq this.billForm.billType 'CREDIT_NOTE')}}\n          disabled={{or (not this.canManageBills) this.save.isRunning}}\n          @forceValidationVisible={{true}}\n        />\n  \n        <div class='col position-relative'>\n          <NewComboBox\n            class='col mb-0'\n            @isLoading={{or\n              this.onSearchPurchaseOrders.isRunning\n              this.loadMorePurchaseOrders.isRunning\n            }}\n            @list={{this.purchaseOrders}}\n            @noDataMessage={{t 'shared.purchase-order.No purchase orders'}}\n            @onSelect={{this.setPurchaseOrder}}\n            @onSearch={{this.onSearchPurchaseOrders}}\n            @debounce={{this.debounceTime}}\n            @label={{t 'common.Purchase order'}}\n            @key='reference'\n            @optionKeys={{array 'purchaseOrderNumber'}}\n            @model={{this.billForm}}\n            @inputContainerClass='mb-1'\n            @hasNextPage={{this.hasNextPurchaseOrderPage}}\n            @onLoadMore={{this.loadMorePurchaseOrders}}\n            @disabled={{or (not this.canManageBills) this.save.isRunning}}\n            @forceValidationVisible={{true}}\n          />\n          {{#if this.billForm.purchaseOrder.id}}\n            <LinkTo\n              @route='entity.builda-price.operations.outgoing.purchase-orders.purchase-order'\n              @model={{this.billForm.purchaseOrder.id}}\n              class='link ps-1 position-absolute mt-1'\n              style='bottom: -3px;'\n              target='_blank'\n            >\n              View purchase order\n              <FaIcon @icon='external-link-alt' @fixedWidth={{true}} @size='sm' />\n            </LinkTo>\n          {{/if}}\n        </div>\n      </div>\n  \n      <div class='d-flex'>\n        <PtlInput\n          @containerClass='col-8 mb-3'\n          @type='textarea'\n          @label={{t 'common.Notes'}}\n          @key='notes'\n          @model={{this.billForm}}\n          disabled={{or (not this.canManageBills) this.save.isRunning}}\n          @forceValidationVisible={{true}}\n          style='max-height:60px;'\n        />\n      </div>\n  \n      {{#if this.canManageBills}}\n        <div class='pb-2 d-flex'>\n          {{#if (or this.allBillItemsSelected this.someBillItemsSelected)}}\n            <button\n              class='btn btn-link text-danger text-decoration-underline'\n              type='button'\n              {{on 'click' this.deleteSelectedBillItemForms}}\n            >\n              {{t 'common.Delete'}}\n            </button>\n          {{/if}}\n  \n          <button\n            class='ms-auto btn btn-success text-white'\n            type='button'\n            {{on 'click' this.addNewBillItem}}\n            {{on-key 'cmd+i' this.addNewBillItem}}\n            title={{format-shortcut 'cmd+i' (t 'common.Add new item')}}\n          >\n            {{t 'common.Add new item'}}\n          </button>\n        </div>\n      {{/if}}\n      <table\n        class='table table-sm align-middle w-100'\n        id='bill-items-table'\n        style='table-layout: fixed;'\n      >\n        <thead>\n          <tr>\n            {{#if this.columnSpans.select}}\n              <th\n                colspan={{this.columnSpans.select}}\n                role='button'\n                class='text-center px-1'\n                style='width: 32px;'\n                {{on 'click' this.toggleSelectAll}}\n              >\n                {{! template-lint-disable no-nested-interactive }}\n                <input\n                  class='pe-none'\n                  type='checkbox'\n                  checked={{this.allBillItemsSelected}}\n                  disabled={{this.save.isRunning}}\n                  indeterminate={{this.someBillItemsSelected}}\n                />\n              </th>\n            {{/if}}\n            <th colspan={{this.columnSpans.code}} class='text-nowrap'>\n              {{t 'common.Code'}}</th>\n            <th colspan={{this.columnSpans.description}} class='text-nowrap'>\n              {{t 'common.Description'}}\n            </th>\n  \n            {{#if this.columnSpans.allocation}}\n              <th colspan={{this.columnSpans.allocation}} class='text-nowrap'>\n                {{t 'common.Allocation'}}\n              </th>\n            {{/if}}\n            {{#if this.columnSpans.purchaseOrderItem}}\n              <th\n                colspan={{this.columnSpans.purchaseOrderItem}}\n                class='text-nowrap'\n              >\n                {{t 'components.bill-editor.PO item'}}\n              </th>\n            {{/if}}\n            {{#if this.columnSpans.glAccount}}\n              <th colspan={{this.columnSpans.glAccount}} class='text-nowrap'>\n                {{t 'common.GL account'}}\n              </th>\n            {{/if}}\n  \n            <th\n              colspan={{this.columnSpans.quantity}}\n              class='text-end text-nowrap'\n            >\n              {{t 'common.Qty'}}</th>\n            <th colspan={{this.columnSpans.unitPrice}} class='text-nowrap'>\n              {{t 'common.Unit price'}}</th>\n            <th colspan={{this.columnSpans.total}} class='text-end text-nowrap'>\n              {{t 'common.Total'}}\n            </th>\n            {{#if this.columnSpans.icon}}\n              <th colspan={{this.columnSpans.icon}}>\n              </th>\n            {{/if}}\n          </tr>\n        </thead>\n        <tbody>\n          {{#if this.filteredBillItemForms.length}}\n            {{#each this.filteredBillItemForms as |item|}}\n              <tr>\n                {{#if this.columnSpans.select}}\n                  <td\n                    colspan={{this.columnSpans.select}}\n                    role='button'\n                    class='text-center px-1'\n                    style='width: 32px;'\n                    {{on 'click' (fn this.toggleSelected item)}}\n                  >\n                    {{! template-lint-disable no-nested-interactive }}\n                    <input\n                      class='pe-none'\n                      type='checkbox'\n                      disabled={{this.save.isRunning}}\n                      checked={{includes this.selectedBillItemForms item}}\n                    />\n                  </td>\n                {{/if}}\n                <td colspan={{this.columnSpans.code}}>\n                  <PtlInput\n                    @containerClass='m-0'\n                    @type='text'\n                    @key='productCode'\n                    @model={{item}}\n                    style='width: 65px'\n                    disabled={{or (not this.canManageBills) this.save.isRunning}}\n                    @forceValidationVisible={{true}}\n                    @onChange={{this.validateBothDescriptionAndProductCode item}}\n                  />\n                </td>\n                <td colspan={{this.columnSpans.description}}>\n                  <PtlInput\n                    @containerClass='m-0'\n                    @type='text'\n                    @key='description'\n                    @model={{item}}\n                    disabled={{or (not this.canManageBills) this.save.isRunning}}\n                    @forceValidationVisible={{true}}\n                    @onChange={{this.validateBothDescriptionAndProductCode item}}\n                  />\n                </td>\n  \n                {{#if this.columnSpans.allocation}}\n                  <td colspan={{this.columnSpans.allocation}}>\n                    <AllocationHierarchy @allocations={{item.allocations}} />\n                  </td>\n                {{/if}}\n                {{#if this.columnSpans.purchaseOrderItem}}\n                  <td colspan={{this.columnSpans.purchaseOrderItem}}>\n                    <div class='d-flex align-items-center w-100'>\n                      <div class='flex-grow-1 me-1' style='min-width: 0;'>\n                        <SearchSelector\n                          @onSelect={{fn this.setBillItemPurchaseOrderItem item}}\n                          @onLoad={{this.loadPurchaseOrderItems}}\n                          @noDataMessage={{t\n                            'components.bill-editor.No purchase order items'\n                          }}\n                          @key='purchaseOrderItem'\n                          @optionKeys={{array 'sku' 'description'}}\n                          @model={{item}}\n                          @disabled={{or\n                            (not this.canManageBills)\n                            this.save.isRunning\n                          }}\n                          @forceValidationVisible={{true}}\n                          class='w-100'\n                        />\n                      </div>\n                      {{#if item.purchaseOrderMatchingStatus}}\n                        <InfoPopup\n                          @text={{item.purchaseOrderMatchingStatus.title}}\n                          @iconName='exclamation-circle'\n                          class='{{item.purchaseOrderMatchingStatus.class}} ms-1'\n                        />\n                      {{/if}}\n                    </div>\n                  </td>\n                {{/if}}\n                {{#if this.columnSpans.glAccount}}\n                  <td colspan={{this.columnSpans.glAccount}}>\n                    <span class='fs-6'>\n                      {{item.glAccountLabel}}\n                    </span>\n                  </td>\n                {{/if}}\n  \n                <td colspan={{this.columnSpans.quantity}} class='text-end'>\n                  <PtlInput\n                    @containerClass='m-0'\n                    @type='number'\n                    @key='quantity'\n                    @model={{item}}\n                    disabled={{or (not this.canManageBills) this.save.isRunning}}\n                    style='width: 50px'\n                    @forceValidationVisible={{true}}\n                  />\n                </td>\n                <td colspan={{this.columnSpans.unitPrice}} class='text-end'>\n                  <PtlInput\n                    @containerClass='m-0'\n                    @type='currency'\n                    @key='unitPrice'\n                    style='width: 60px'\n                    @model={{item}}\n                    disabled={{or (not this.canManageBills) this.save.isRunning}}\n                    @forceValidationVisible={{true}}\n                  />\n                </td>\n                <td\n                  colspan={{this.columnSpans.total}}\n                  class='text-end text-nowrap'\n                >\n                  {{number-format\n                    (math (or item.quantity 0) '*' (or item.unitPrice 0))\n                    style='currency'\n                    dashZero=true\n                  }}\n                </td>\n                {{#if this.columnSpans.icon}}\n                  <td colspan={{this.columnSpans.icon}} class='text-center px-1'>\n                    <BillItemSummary @item={{item}} />\n                  </td>\n                {{/if}}\n              </tr>\n            {{/each}}\n          {{else}}\n            <tr>\n              <td class='text-center' colspan={{this.columnSpans.totalSpan}}>\n                {{t 'components.bill-editor.No bill items'}}\n              </td>\n            </tr>\n          {{/if}}\n        </tbody>\n      </table>\n    </form>\n  \n    {{! z-index is 5 because the inputs get 5 when focused}}\n    <div\n      class='d-flex flex-column border-top p-3 position-sticky bg-white'\n      style='bottom: 0; z-index: 5;'\n    >\n      <h2 class='m-0 ms-auto mb-3'>\n        {{t 'common.Total'}}\n        {{number-format this.totalPrice style='currency' dashZero=true}}\n      </h2>\n  \n      <div class='d-flex align-items-center justify-content-between'>\n        {{#unless @bill.isNew}}\n          <button\n            type='button'\n            class='btn btn-link text-danger text-decoration-underline ps-0'\n            disabled={{or (not this.canManageBills) this.save.isRunning}}\n            {{on 'click' (fn (mut this.showBillDeleteConfirmModal) true)}}\n          >\n            {{#if this.save.isRunning}}\n              {{t 'common.Deleting'}}\n              &hellip;\n            {{else}}\n              {{t 'common.Delete'}}\n            {{/if}}\n          </button>\n  \n        {{/unless}}\n        <button\n          type='button'\n          class='btn btn-primary ms-auto'\n          disabled={{or\n            (not this.canManageBills)\n            this.save.isRunning\n            (not this.hasUnsavedChanges)\n          }}\n          {{on-key 'cmd+s' this.triggerSave}}\n          title={{format-shortcut 'cmd+s' 'Save'}}\n          {{on 'click' this.triggerSave}}\n        >\n          {{#if this.save.isRunning}}\n            <span class='spinner-border spinner-border-sm'></span>&nbsp;{{t\n              'common.Saving'\n            }}…\n          {{else}}\n            {{t 'common.Save'}}\n          {{/if}}\n        </button>\n      </div>\n    </div>\n  \n    {{#unless @bill.isNew}}\n      <div\n        class='d-flex align-items-center p-3 border mx-3 mt-3'\n        role='button'\n        {{on 'click' (fn (mut this.showBillHistory) (not this.showBillHistory))}}\n      >\n        <h4 class='m-0'>\n          {{t 'components.bill-editor.Bill history'}}\n        </h4>\n        <h4 class='m-0 ms-auto'>\n          <FaIcon\n            @icon={{if this.showBillHistory 'chevron-down' 'chevron-right'}}\n          />\n        </h4>\n      </div>\n      {{#if this.showBillHistory}}\n        <div class='px-3'>\n          <ResourceHistory @resourceId={{@bill.id}} />\n        </div>\n      {{/if}}\n    {{/unless}}\n  \n  {{/if}}\n  <ConfirmDelete\n    @visible={{this.showBillDeleteConfirmModal}}\n    @title={{(t 'common.Delete bill')}}\n    @messages={{(t 'components.bill-editor.Do you want to delete this bill')}}\n    @deleteButtonText={{(t 'common.Delete bill')}}\n    @deletingButtonText={{t 'common.Deleting'}}\n    @onDelete={{(perform this.deleteBill)}}\n    @onCancel={{fn (mut this.showBillDeleteConfirmModal) false}}\n  >\n    <p>{{t 'shared.estimate.This action cannot be undone'}}</p>\n  </ConfirmDelete>\n  \n  {{#if this.billTypeChangeConfirmation}}\n    <ModalDialog\n      @onClose={{fn this.handleBillTypeChange false}}\n      @containerClass='modal-content w-auto'\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-header'>\n        <h3 class='modal-title'>\n          {{t 'components.bill-editor.Change bill type'}}\n        </h3>\n      </div>\n      <div class='modal-body'>\n        <p>\n          {{t\n            'components.bill-editor.yourUpdatedSubtotalIsSignExistingBillTypePluralShouldBeExistingSignDoYouWantToChangeThisDocumentToABillType'\n            sign=this.billTypeChangeConfirmation.sign\n            existingBillTypePlural=this.billTypeChangeConfirmation.existingBillTypePural\n            existingSign=this.billTypeChangeConfirmation.existingSign\n            billType=this.billTypeChangeConfirmation.billType\n          }}\n        </p>\n      </div>\n  \n      <div class='modal-footer d-flex'>\n        <button\n          class='btn btn-secondary text-white ms-2'\n          type='button'\n          {{on 'click' (fn this.handleBillTypeChange false)}}\n        >\n          {{t 'common.Cancel'}}\n        </button>\n        <button\n          class='btn btn-primary ms-2'\n          type='button'\n          {{on 'click' (fn this.handleBillTypeChange true)}}\n        >\n          {{t 'common.Confirm'}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.billTypeResponseHandlerVisible}}\n    <BillTypeResponseHandler\n      @responses={{this.billResponses}}\n      @onCancel={{this.onBillTypeResponseHandlerCancel}}\n    />\n  {{/if}}\n  \n  {{#if this.allocating}}\n    <BillItemAllocator\n      @bills={{array @bill}}\n      @onClose={{this.onBillItemAllocatorClose}}\n      @billStatus={{@billStatus}}\n    />\n  {{/if}}\n  \n  {{#if this.attachmentsVisible}}\n    <div class='bill-attachment-overlay-pane p-3 d-flex flex-column'>\n      <div class='d-flex align-items-center mb-2'>\n        <IconButton\n          @icon='times'\n          {{on 'click' (fn (mut this.attachmentsVisible) false)}}\n        />\n  \n        <p class='m-0 fw-bold fs-6 ms-3'>\n          {{ellipsis-characters this.activeAttachment.filename 30}}\n        </p>\n  \n        {{#if this.activeAttachment}}\n          <a\n            rel='noopener noreferrer'\n            href={{this.activeAttachment.href}}\n            target='_blank'\n            class='ms-auto'\n          >\n            <FaIcon @icon='download' />\n            {{t 'common.Download'}}\n          </a>\n        {{/if}}\n      </div>\n  \n      {{#if this.activeAttachment}}\n        <AttachmentPreview @attachment={{this.activeAttachment}} />\n      {{/if}}\n  \n      {{#if (gt this.allAttachments.length 1)}}\n        <div class='d-flex pt-2 align-items-center justify-content-end'>\n          <IconButton\n            @size='sm'\n            @icon='arrow-left'\n            {{on 'click' this.previousAttachment}}\n          />\n  \n          <span class='m-1'>\n            {{math this.attachmentIndex '+' 1}}\n            /\n            {{this.allAttachments.length}}\n          </span>\n  \n          <IconButton\n            @size='sm'\n            @icon='arrow-right'\n            {{on 'click' this.nextAttachment}}\n          />\n        </div>\n      {{/if}}\n    </div>\n  {{/if}}\n  \n  {{#if this.setContactAliasModalVisible}}\n    <ModalDialog\n      @onClose={{fn (mut this.setContactAliasModalVisible) false}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n      @overlayClass='modal'\n    >\n      <div class='modal-body'>\n        <p class='m-0'>\n          {{t\n            'components.bill-editor.doYouAlsoWantToAddAliasAsAnAliasOfYourContact'\n            alias=@bill.issuer\n            contact=this.billForm.issuerContact.name\n          }}\n        </p>\n      </div>\n      <footer class='modal-footer'>\n        <div class='float-end d-flex align-items-center'>\n          <button\n            class='btn btn-secondary text-white ms-2'\n            type='button'\n            disabled={{this.saveContactAlias.isRunning}}\n            {{on 'click' (fn (mut this.setContactAliasModalVisible) false)}}\n          >{{t 'common.No'}}</button>\n          <button\n            class='btn btn-primary text-white ms-2'\n            type='button'\n            disabled={{this.saveContactAlias.isRunning}}\n            {{on 'click' (perform this.saveContactAlias)}}\n          >\n            {{#if this.saveContactAlias.isRunning}}\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t 'common.Saving'}}\n            {{else}}\n              {{t 'components.bill-editor.Add alias'}}\n            {{/if}}\n          </button>\n        </div>\n      </footer>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"3bK63QNx\",\n    \"block\": \"[[[11,0],[24,\\\"hidden\\\",\\\"\\\"],[4,[38,1],[[28,[37,2],[[30,0,[\\\"resetChangeset\\\"]],[30,1]],null]],null],[12],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"resetChangeset\\\",\\\"isRunning\\\"]],[[[1,\\\"  \\\"],[8,[39,4],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"d-flex flex-wrap p-2 border-bottom position-sticky bg-white z-1\\\"],[14,5,\\\"top: 0;\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[30,1,[\\\"typeLabel\\\"]]],[1,\\\"\\\\n      \\\"],[1,[30,1,[\\\"billNumber\\\"]]],[1,\\\"\\\\n      \\\"],[10,1],[15,0,[29,[\\\"badge ms-1 fs-7\\\\n          \\\",[52,[28,[37,7],[[30,1,[\\\"status\\\"]],\\\"DRAFT\\\"],null],\\\"bg-secondary\\\"],\\\"\\\\n          \\\",[52,[28,[37,7],[[30,1,[\\\"status\\\"]],\\\"ACCEPTED\\\"],null],\\\"bg-info\\\"],\\\"\\\\n          \\\",[52,[28,[37,7],[[30,1,[\\\"status\\\"]],\\\"HELD\\\"],null],\\\"bg-warning text-dark\\\"],\\\"\\\\n          \\\",[52,[28,[37,7],[[30,1,[\\\"status\\\"]],\\\"PAID\\\"],null],\\\"bg-success\\\"],\\\"\\\\n          \\\",[52,[28,[37,7],[[30,1,[\\\"status\\\"]],\\\"ARCHIVED\\\"],null],\\\"bg-secondary\\\"],\\\"\\\\n          \\\"]]],[12],[1,\\\"\\\\n        \\\"],[1,[30,1,[\\\"statusLabel\\\"]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"hasDuplicate\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link p-0 ms-1 text-decoration-none\\\"],[16,\\\"title\\\",[28,[37,9],[\\\"components.bill-editor.View duplicate bills\\\"],null]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"viewDuplicateBills\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[10,1],[14,0,\\\"badge fs-7 bg-danger\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,9],[\\\"common.Duplicate\\\"],null]],[1,\\\"\\\\n            \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"external-link-alt\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center gap-2 ms-auto\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"accountingPackageUrl\\\"]],[[[1,\\\"        \\\"],[10,3],[15,6,[30,1,[\\\"accountingPackageUrl\\\"]]],[14,\\\"target\\\",\\\"_blank\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[14,0,\\\"btn btn-link text-primary text-decoration-underline m-1\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,9],[\\\"components.bill-editor.viewInLabel\\\"],[[\\\"label\\\"],[[30,0,[\\\"accountingPlatform\\\",\\\"label\\\"]]]]]],[1,\\\"\\\\n          \\\"],[8,[39,11],[[24,0,\\\"ms-1\\\"]],[[\\\"@icon\\\"],[\\\"external-link-alt\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[8,[39,13],null,[[\\\"@attachments\\\",\\\"@disabled\\\",\\\"@onViewAttachment\\\",\\\"@onUploadComplete\\\",\\\"@onDeleteAttachment\\\"],[[30,0,[\\\"allAttachments\\\"]],[28,[37,14],[[30,0,[\\\"canManageBills\\\"]]],null],[30,0,[\\\"viewAttachment\\\"]],[30,0,[\\\"attachmentsUploadComplete\\\"]],[30,0,[\\\"deleteAttachment\\\"]]]],null],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"d-flex\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,15],[[30,0,[\\\"billActions\\\",\\\"primaryAction\\\"]],[28,[37,14],[[30,0,[\\\"billActions\\\",\\\"secondaryActions\\\",\\\"length\\\"]]],null]],null],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary text-white m-1\\\"],[16,\\\"disabled\\\",[28,[37,16],[[30,0,[\\\"isLoading\\\"]],[30,0,[\\\"isActionsRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,2],[[30,0,[\\\"billActions\\\",\\\"primaryAction\\\",\\\"action\\\"]],[30,0,[\\\"billActions\\\",\\\"primaryAction\\\",\\\"targetStatus\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isActionsRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,9],[\\\"common.Syncing\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[30,0,[\\\"billActions\\\",\\\"primaryAction\\\",\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,15],[[30,0,[\\\"billActions\\\",\\\"primaryAction\\\"]],[30,0,[\\\"billActions\\\",\\\"secondaryActions\\\",\\\"length\\\"]]],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,17],null,[[\\\"@onPrimaryClick\\\",\\\"@buttonText\\\",\\\"@disabled\\\"],[[28,[37,2],[[30,0,[\\\"billActions\\\",\\\"primaryAction\\\",\\\"action\\\"]],[30,0,[\\\"billActions\\\",\\\"primaryAction\\\",\\\"targetStatus\\\"]],[30,0,[\\\"billActions\\\",\\\"primaryAction\\\",\\\"syncToAccountingPackage\\\"]]],null],[52,[30,0,[\\\"isActionsRunning\\\"]],[28,[37,9],[\\\"common.Saving\\\"],null],[30,0,[\\\"billActions\\\",\\\"primaryAction\\\",\\\"name\\\"]]],[28,[37,16],[[30,0,[\\\"isLoading\\\"]],[30,0,[\\\"isActionsRunning\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,19],[[28,[37,19],[[30,0,[\\\"billActions\\\",\\\"secondaryActions\\\"]]],null]],null],null,[[[1,\\\"                \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,2,[\\\"action\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,2],[[30,2,[\\\"action\\\"]],[30,2,[\\\"targetStatus\\\"]],[30,2,[\\\"syncToAccountingPackage\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"action\\\",\\\"isRunning\\\"]],[[[1,\\\"                    \\\"],[1,[28,[35,9],[\\\"common.Updating\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                    \\\"],[1,[30,2,[\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"            \\\"]],[]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]],null]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center gap-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,1,[\\\"isNew\\\"]]],[[[1,\\\"          \\\"],[8,[39,21],[[16,\\\"title\\\",[28,[37,22],[\\\"ArrowUp\\\",[28,[37,9],[\\\"components.bill-editor.Previous bill\\\"],null]],null]],[4,[38,10],[\\\"click\\\",[30,0,[\\\"previousBill\\\"]]],null],[4,[38,23],[\\\"ArrowUp\\\",[30,0,[\\\"triggerPreviousBill\\\"]]],null]],[[\\\"@size\\\",\\\"@icon\\\"],[\\\"md\\\",\\\"arrow-up\\\"]],null],[1,\\\"\\\\n          \\\"],[8,[39,21],[[16,\\\"title\\\",[28,[37,22],[\\\"ArrowDown\\\",[28,[37,9],[\\\"components.bill-editor.Next bill\\\"],null]],null]],[4,[38,10],[\\\"click\\\",[30,0,[\\\"nextBill\\\"]]],null],[4,[38,23],[\\\"ArrowDown\\\",[30,0,[\\\"triggerNextBill\\\"]]],null]],[[\\\"@size\\\",\\\"@icon\\\"],[\\\"md\\\",\\\"arrow-down\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n        \\\"],[8,[39,24],[[24,0,\\\"d-flex\\\"]],[[\\\"@route\\\"],[\\\"entity.builda-price.operations.incoming.bills\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,21],[[16,\\\"title\\\",[28,[37,22],[\\\"Esc\\\",[28,[37,9],[\\\"components.bill-editor.Back to list\\\"],null]],null]],[4,[38,23],[\\\"Escape\\\",[30,0,[\\\"triggerClose\\\"]]],null]],[[\\\"@size\\\",\\\"@icon\\\"],[\\\"md\\\",\\\"times\\\"]],null],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"form\\\"],[14,0,\\\"p-3\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"col mb-3\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,9],[\\\"common.Issuer\\\"],null]],[1,\\\"\\\\n          \\\"],[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,28],null,[[\\\"@onSelect\\\",\\\"@onLoad\\\",\\\"@noDataMessage\\\",\\\"@noDataAction\\\",\\\"@showNoDataActionWithResults\\\",\\\"@initialSearchTerm\\\",\\\"@placeholder\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@model\\\",\\\"@disabled\\\",\\\"@forceValidationVisible\\\"],[[30,0,[\\\"setIssuerContact\\\"]],[30,0,[\\\"loadContacts\\\"]],[28,[37,9],[\\\"common.Create a contact\\\"],null],[30,0,[\\\"createIssuerContact\\\"]],true,[30,1,[\\\"issuer\\\"]],[30,1,[\\\"issuer\\\"]],\\\"issuerContact\\\",[28,[37,29],[\\\"name\\\"],null],[30,0,[\\\"billForm\\\"]],[28,[37,16],[[28,[37,14],[[30,0,[\\\"canManageBills\\\"]]],null],[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],null],true]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"billForm\\\",\\\"issuerContact\\\"]],[[[1,\\\"          \\\"],[8,[39,24],[[24,0,\\\"link ps-1\\\"],[24,\\\"target\\\",\\\"_blank\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.settings.contacts.contact\\\",[30,0,[\\\"billForm\\\",\\\"issuerContact\\\",\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            View contact\\\\n            \\\"],[8,[39,11],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",true,\\\"sm\\\"]],null],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"col mx-3 mb-3\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,30],[[16,\\\"disabled\\\",[28,[37,16],[[28,[37,14],[[30,0,[\\\"canManageBills\\\"]]],null],[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@required\\\",\\\"@model\\\",\\\"@options\\\",\\\"@selectNoBlankOption\\\",\\\"@forceValidationVisible\\\"],[\\\"mb-0\\\",\\\"select\\\",[28,[37,9],[\\\"common.Allocation type\\\"],null],\\\"allocationType\\\",true,[30,0,[\\\"billForm\\\"]],[28,[37,29],[[28,[37,31],null,[[\\\"value\\\",\\\"label\\\"],[\\\"MATERIALS\\\",[28,[37,9],[\\\"common.Materials\\\"],null]]]],[28,[37,31],null,[[\\\"value\\\",\\\"label\\\"],[\\\"SUBCONTRACTORS\\\",[28,[37,9],[\\\"common.Subcontractors\\\"],null]]]],[28,[37,31],null,[[\\\"value\\\",\\\"label\\\"],[\\\"LABOUR\\\",[28,[37,9],[\\\"common.Labour\\\"],null]]]]],null],true,true]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"hasDifferentAllocationType\\\"]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link p-0 text-primary\\\"],[16,\\\"disabled\\\",[28,[37,16],[[28,[37,14],[[30,0,[\\\"canManageBills\\\"]]],null],[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"setDefaultAllocationType\\\"]]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,9],[\\\"components.bill-editor.Set as default allocation type\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,30],[[16,\\\"disabled\\\",[28,[37,16],[[28,[37,14],[[30,0,[\\\"canManageBills\\\"]]],null],[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"col mb-3\\\",\\\"text\\\",[28,[37,9],[\\\"common.Number\\\"],null],\\\"billNumber\\\",[30,0,[\\\"billForm\\\"]],true,true]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,30],[[16,\\\"disabled\\\",[28,[37,16],[[28,[37,14],[[30,0,[\\\"canManageBills\\\"]]],null],[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"col mb-1\\\",\\\"date\\\",[28,[37,9],[\\\"common.Issue date\\\"],null],\\\"issueDate\\\",[30,0,[\\\"billForm\\\"]],true,true]],null],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,30],[[16,\\\"disabled\\\",[28,[37,16],[[28,[37,14],[[30,0,[\\\"canManageBills\\\"]]],null],[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"col mb-1 mx-3\\\",\\\"date\\\",[28,[37,9],[\\\"common.Due date\\\"],null],\\\"dueDate\\\",[30,0,[\\\"billForm\\\"]],[28,[37,14],[[28,[37,7],[[30,0,[\\\"billForm\\\",\\\"billType\\\"]],\\\"CREDIT_NOTE\\\"],null]],null],true]],null],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"col position-relative\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,32],[[24,0,\\\"col mb-0\\\"]],[[\\\"@isLoading\\\",\\\"@list\\\",\\\"@noDataMessage\\\",\\\"@onSelect\\\",\\\"@onSearch\\\",\\\"@debounce\\\",\\\"@label\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@model\\\",\\\"@inputContainerClass\\\",\\\"@hasNextPage\\\",\\\"@onLoadMore\\\",\\\"@disabled\\\",\\\"@forceValidationVisible\\\"],[[28,[37,16],[[30,0,[\\\"onSearchPurchaseOrders\\\",\\\"isRunning\\\"]],[30,0,[\\\"loadMorePurchaseOrders\\\",\\\"isRunning\\\"]]],null],[30,0,[\\\"purchaseOrders\\\"]],[28,[37,9],[\\\"shared.purchase-order.No purchase orders\\\"],null],[30,0,[\\\"setPurchaseOrder\\\"]],[30,0,[\\\"onSearchPurchaseOrders\\\"]],[30,0,[\\\"debounceTime\\\"]],[28,[37,9],[\\\"common.Purchase order\\\"],null],\\\"reference\\\",[28,[37,29],[\\\"purchaseOrderNumber\\\"],null],[30,0,[\\\"billForm\\\"]],\\\"mb-1\\\",[30,0,[\\\"hasNextPurchaseOrderPage\\\"]],[30,0,[\\\"loadMorePurchaseOrders\\\"]],[28,[37,16],[[28,[37,14],[[30,0,[\\\"canManageBills\\\"]]],null],[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],null],true]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"billForm\\\",\\\"purchaseOrder\\\",\\\"id\\\"]],[[[1,\\\"          \\\"],[8,[39,24],[[24,0,\\\"link ps-1 position-absolute mt-1\\\"],[24,5,\\\"bottom: -3px;\\\"],[24,\\\"target\\\",\\\"_blank\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.builda-price.operations.outgoing.purchase-orders.purchase-order\\\",[30,0,[\\\"billForm\\\",\\\"purchaseOrder\\\",\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            View purchase order\\\\n            \\\"],[8,[39,11],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",true,\\\"sm\\\"]],null],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,30],[[16,\\\"disabled\\\",[28,[37,16],[[28,[37,14],[[30,0,[\\\"canManageBills\\\"]]],null],[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],null]],[24,5,\\\"max-height:60px;\\\"]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"col-8 mb-3\\\",\\\"textarea\\\",[28,[37,9],[\\\"common.Notes\\\"],null],\\\"notes\\\",[30,0,[\\\"billForm\\\"]],true]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"canManageBills\\\"]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"pb-2 d-flex\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,16],[[30,0,[\\\"allBillItemsSelected\\\"]],[30,0,[\\\"someBillItemsSelected\\\"]]],null],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"deleteSelectedBillItemForms\\\"]]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,9],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"ms-auto btn btn-success text-white\\\"],[16,\\\"title\\\",[28,[37,22],[\\\"cmd+i\\\",[28,[37,9],[\\\"common.Add new item\\\"],null]],null]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"addNewBillItem\\\"]]],null],[4,[38,23],[\\\"cmd+i\\\",[30,0,[\\\"addNewBillItem\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,9],[\\\"common.Add new item\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-sm align-middle w-100\\\"],[14,1,\\\"bill-items-table\\\"],[14,5,\\\"table-layout: fixed;\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"columnSpans\\\",\\\"select\\\"]],[[[1,\\\"            \\\"],[11,\\\"th\\\"],[16,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"select\\\"]]],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"text-center px-1\\\"],[24,5,\\\"width: 32px;\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"toggleSelectAll\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[1,\\\"              \\\"],[10,\\\"input\\\"],[14,0,\\\"pe-none\\\"],[15,\\\"checked\\\",[30,0,[\\\"allBillItemsSelected\\\"]]],[15,\\\"disabled\\\",[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],[15,\\\"indeterminate\\\",[30,0,[\\\"someBillItemsSelected\\\"]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,\\\"th\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"code\\\"]]],[14,0,\\\"text-nowrap\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,9],[\\\"common.Code\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,\\\"th\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"description\\\"]]],[14,0,\\\"text-nowrap\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,9],[\\\"common.Description\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"columnSpans\\\",\\\"allocation\\\"]],[[[1,\\\"            \\\"],[10,\\\"th\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"allocation\\\"]]],[14,0,\\\"text-nowrap\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,9],[\\\"common.Allocation\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"columnSpans\\\",\\\"purchaseOrderItem\\\"]],[[[1,\\\"            \\\"],[10,\\\"th\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"purchaseOrderItem\\\"]]],[14,0,\\\"text-nowrap\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,9],[\\\"components.bill-editor.PO item\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"columnSpans\\\",\\\"glAccount\\\"]],[[[1,\\\"            \\\"],[10,\\\"th\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"glAccount\\\"]]],[14,0,\\\"text-nowrap\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,9],[\\\"common.GL account\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n          \\\"],[10,\\\"th\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"quantity\\\"]]],[14,0,\\\"text-end text-nowrap\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,9],[\\\"common.Qty\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,\\\"th\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"unitPrice\\\"]]],[14,0,\\\"text-nowrap\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,9],[\\\"common.Unit price\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,\\\"th\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"total\\\"]]],[14,0,\\\"text-end text-nowrap\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,9],[\\\"common.Total\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"columnSpans\\\",\\\"icon\\\"]],[[[1,\\\"            \\\"],[10,\\\"th\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"icon\\\"]]],[12],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"filteredBillItemForms\\\",\\\"length\\\"]],[[[42,[28,[37,19],[[28,[37,19],[[30,0,[\\\"filteredBillItemForms\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"columnSpans\\\",\\\"select\\\"]],[[[1,\\\"                \\\"],[11,\\\"td\\\"],[16,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"select\\\"]]],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"text-center px-1\\\"],[24,5,\\\"width: 32px;\\\"],[4,[38,10],[\\\"click\\\",[28,[37,40],[[30,0,[\\\"toggleSelected\\\"]],[30,3]],null]],null],[12],[1,\\\"\\\\n\\\"],[1,\\\"                  \\\"],[10,\\\"input\\\"],[14,0,\\\"pe-none\\\"],[15,\\\"disabled\\\",[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],[15,\\\"checked\\\",[28,[37,41],[[30,0,[\\\"selectedBillItemForms\\\"]],[30,3]],null]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[10,\\\"td\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"code\\\"]]],[12],[1,\\\"\\\\n                \\\"],[8,[39,30],[[24,5,\\\"width: 65px\\\"],[16,\\\"disabled\\\",[28,[37,16],[[28,[37,14],[[30,0,[\\\"canManageBills\\\"]]],null],[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@onChange\\\"],[\\\"m-0\\\",\\\"text\\\",\\\"productCode\\\",[30,3],true,[28,[30,0,[\\\"validateBothDescriptionAndProductCode\\\"]],[[30,3]],null]]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"description\\\"]]],[12],[1,\\\"\\\\n                \\\"],[8,[39,30],[[16,\\\"disabled\\\",[28,[37,16],[[28,[37,14],[[30,0,[\\\"canManageBills\\\"]]],null],[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@onChange\\\"],[\\\"m-0\\\",\\\"text\\\",\\\"description\\\",[30,3],true,[28,[30,0,[\\\"validateBothDescriptionAndProductCode\\\"]],[[30,3]],null]]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"columnSpans\\\",\\\"allocation\\\"]],[[[1,\\\"                \\\"],[10,\\\"td\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"allocation\\\"]]],[12],[1,\\\"\\\\n                  \\\"],[8,[39,42],null,[[\\\"@allocations\\\"],[[30,3,[\\\"allocations\\\"]]]],null],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"columnSpans\\\",\\\"purchaseOrderItem\\\"]],[[[1,\\\"                \\\"],[10,\\\"td\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"purchaseOrderItem\\\"]]],[12],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"d-flex align-items-center w-100\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"flex-grow-1 me-1\\\"],[14,5,\\\"min-width: 0;\\\"],[12],[1,\\\"\\\\n                      \\\"],[8,[39,28],[[24,0,\\\"w-100\\\"]],[[\\\"@onSelect\\\",\\\"@onLoad\\\",\\\"@noDataMessage\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@model\\\",\\\"@disabled\\\",\\\"@forceValidationVisible\\\"],[[28,[37,40],[[30,0,[\\\"setBillItemPurchaseOrderItem\\\"]],[30,3]],null],[30,0,[\\\"loadPurchaseOrderItems\\\"]],[28,[37,9],[\\\"components.bill-editor.No purchase order items\\\"],null],\\\"purchaseOrderItem\\\",[28,[37,29],[\\\"sku\\\",\\\"description\\\"],null],[30,3],[28,[37,16],[[28,[37,14],[[30,0,[\\\"canManageBills\\\"]]],null],[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],null],true]],null],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,3,[\\\"purchaseOrderMatchingStatus\\\"]],[[[1,\\\"                      \\\"],[8,[39,43],[[16,0,[29,[[30,3,[\\\"purchaseOrderMatchingStatus\\\",\\\"class\\\"]],\\\" ms-1\\\"]]]],[[\\\"@text\\\",\\\"@iconName\\\"],[[30,3,[\\\"purchaseOrderMatchingStatus\\\",\\\"title\\\"]],\\\"exclamation-circle\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"columnSpans\\\",\\\"glAccount\\\"]],[[[1,\\\"                \\\"],[10,\\\"td\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"glAccount\\\"]]],[12],[1,\\\"\\\\n                  \\\"],[10,1],[14,0,\\\"fs-6\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[30,3,[\\\"glAccountLabel\\\"]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"quantity\\\"]]],[14,0,\\\"text-end\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,30],[[16,\\\"disabled\\\",[28,[37,16],[[28,[37,14],[[30,0,[\\\"canManageBills\\\"]]],null],[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],null]],[24,5,\\\"width: 50px\\\"]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"m-0\\\",\\\"number\\\",\\\"quantity\\\",[30,3],true]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"unitPrice\\\"]]],[14,0,\\\"text-end\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,30],[[24,5,\\\"width: 60px\\\"],[16,\\\"disabled\\\",[28,[37,16],[[28,[37,14],[[30,0,[\\\"canManageBills\\\"]]],null],[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"m-0\\\",\\\"currency\\\",\\\"unitPrice\\\",[30,3],true]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"total\\\"]]],[14,0,\\\"text-end text-nowrap\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,44],[[28,[37,45],[[28,[37,16],[[30,3,[\\\"quantity\\\"]],0],null],\\\"*\\\",[28,[37,16],[[30,3,[\\\"unitPrice\\\"]],0],null]],null]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"columnSpans\\\",\\\"icon\\\"]],[[[1,\\\"                \\\"],[10,\\\"td\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"icon\\\"]]],[14,0,\\\"text-center px-1\\\"],[12],[1,\\\"\\\\n                  \\\"],[8,[39,46],null,[[\\\"@item\\\"],[[30,3]]],null],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],null]],[]],[[[1,\\\"          \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"td\\\"],[14,0,\\\"text-center\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"totalSpan\\\"]]],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,9],[\\\"components.bill-editor.No bill items\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"  \\\"],[10,0],[14,0,\\\"d-flex flex-column border-top p-3 position-sticky bg-white\\\"],[14,5,\\\"bottom: 0; z-index: 5;\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h2\\\"],[14,0,\\\"m-0 ms-auto mb-3\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,9],[\\\"common.Total\\\"],null]],[1,\\\"\\\\n      \\\"],[1,[28,[35,44],[[30,0,[\\\"totalPrice\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center justify-content-between\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,1,[\\\"isNew\\\"]]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline ps-0\\\"],[16,\\\"disabled\\\",[28,[37,16],[[28,[37,14],[[30,0,[\\\"canManageBills\\\"]]],null],[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,40],[[28,[37,47],[[30,0,[\\\"showBillDeleteConfirmModal\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"save\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,9],[\\\"common.Deleting\\\"],null]],[1,\\\"\\\\n            …\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,9],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[28,[37,16],[[28,[37,14],[[30,0,[\\\"canManageBills\\\"]]],null],[30,0,[\\\"save\\\",\\\"isRunning\\\"]],[28,[37,14],[[30,0,[\\\"hasUnsavedChanges\\\"]]],null]],null]],[16,\\\"title\\\",[28,[37,22],[\\\"cmd+s\\\",\\\"Save\\\"],null]],[24,4,\\\"button\\\"],[4,[38,23],[\\\"cmd+s\\\",[30,0,[\\\"triggerSave\\\"]]],null],[4,[38,10],[\\\"click\\\",[30,0,[\\\"triggerSave\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"save\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\" \\\"],[1,[28,[35,9],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,9],[\\\"common.Save\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,1,[\\\"isNew\\\"]]],[[[1,\\\"    \\\"],[11,0],[24,0,\\\"d-flex align-items-center p-3 border mx-3 mt-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,40],[[28,[37,47],[[30,0,[\\\"showBillHistory\\\"]]],null],[28,[37,14],[[30,0,[\\\"showBillHistory\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,9],[\\\"components.bill-editor.Bill history\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"showBillHistory\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showBillHistory\\\"]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"px-3\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,49],null,[[\\\"@resourceId\\\"],[[30,1,[\\\"id\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n\\\"]],[]]],[8,[39,50],null,[[\\\"@visible\\\",\\\"@title\\\",\\\"@messages\\\",\\\"@deleteButtonText\\\",\\\"@deletingButtonText\\\",\\\"@onDelete\\\",\\\"@onCancel\\\"],[[30,0,[\\\"showBillDeleteConfirmModal\\\"]],[28,[37,9],[\\\"common.Delete bill\\\"],null],[28,[37,9],[\\\"components.bill-editor.Do you want to delete this bill\\\"],null],[28,[37,9],[\\\"common.Delete bill\\\"],null],[28,[37,9],[\\\"common.Deleting\\\"],null],[28,[37,2],[[30,0,[\\\"deleteBill\\\"]]],null],[28,[37,40],[[28,[37,47],[[30,0,[\\\"showBillDeleteConfirmModal\\\"]]],null],false],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[10,2],[12],[1,[28,[35,9],[\\\"shared.estimate.This action cannot be undone\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"billTypeChangeConfirmation\\\"]],[[[1,\\\"  \\\"],[8,[39,52],null,[[\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@overlayClass\\\",\\\"@translucentOverlay\\\"],[[28,[37,40],[[30,0,[\\\"handleBillTypeChange\\\"]],false],null],\\\"modal-content w-auto\\\",\\\"modal\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,9],[\\\"components.bill-editor.Change bill type\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,9],[\\\"components.bill-editor.yourUpdatedSubtotalIsSignExistingBillTypePluralShouldBeExistingSignDoYouWantToChangeThisDocumentToABillType\\\"],[[\\\"sign\\\",\\\"existingBillTypePlural\\\",\\\"existingSign\\\",\\\"billType\\\"],[[30,0,[\\\"billTypeChangeConfirmation\\\",\\\"sign\\\"]],[30,0,[\\\"billTypeChangeConfirmation\\\",\\\"existingBillTypePural\\\"]],[30,0,[\\\"billTypeChangeConfirmation\\\",\\\"existingSign\\\"]],[30,0,[\\\"billTypeChangeConfirmation\\\",\\\"billType\\\"]]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer d-flex\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,40],[[30,0,[\\\"handleBillTypeChange\\\"]],false],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,9],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,40],[[30,0,[\\\"handleBillTypeChange\\\"]],true],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,9],[\\\"common.Confirm\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"billTypeResponseHandlerVisible\\\"]],[[[1,\\\"  \\\"],[8,[39,54],null,[[\\\"@responses\\\",\\\"@onCancel\\\"],[[30,0,[\\\"billResponses\\\"]],[30,0,[\\\"onBillTypeResponseHandlerCancel\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"allocating\\\"]],[[[1,\\\"  \\\"],[8,[39,55],null,[[\\\"@bills\\\",\\\"@onClose\\\",\\\"@billStatus\\\"],[[28,[37,29],[[30,1]],null],[30,0,[\\\"onBillItemAllocatorClose\\\"]],[30,4]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"attachmentsVisible\\\"]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"bill-attachment-overlay-pane p-3 d-flex flex-column\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center mb-2\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,21],[[4,[38,10],[\\\"click\\\",[28,[37,40],[[28,[37,47],[[30,0,[\\\"attachmentsVisible\\\"]]],null],false],null]],null]],[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\"\\\\n\\\\n      \\\"],[10,2],[14,0,\\\"m-0 fw-bold fs-6 ms-3\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,56],[[30,0,[\\\"activeAttachment\\\",\\\"filename\\\"]],30],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"activeAttachment\\\"]],[[[1,\\\"        \\\"],[10,3],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[15,6,[30,0,[\\\"activeAttachment\\\",\\\"href\\\"]]],[14,\\\"target\\\",\\\"_blank\\\"],[14,0,\\\"ms-auto\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"download\\\"]],null],[1,\\\"\\\\n          \\\"],[1,[28,[35,9],[\\\"common.Download\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"activeAttachment\\\"]],[[[1,\\\"      \\\"],[8,[39,57],null,[[\\\"@attachment\\\"],[[30,0,[\\\"activeAttachment\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,58],[[30,0,[\\\"allAttachments\\\",\\\"length\\\"]],1],null],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"d-flex pt-2 align-items-center justify-content-end\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,21],[[4,[38,10],[\\\"click\\\",[30,0,[\\\"previousAttachment\\\"]]],null]],[[\\\"@size\\\",\\\"@icon\\\"],[\\\"sm\\\",\\\"arrow-left\\\"]],null],[1,\\\"\\\\n\\\\n        \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,45],[[30,0,[\\\"attachmentIndex\\\"]],\\\"+\\\",1],null]],[1,\\\"\\\\n          /\\\\n          \\\"],[1,[30,0,[\\\"allAttachments\\\",\\\"length\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,21],[[4,[38,10],[\\\"click\\\",[30,0,[\\\"nextAttachment\\\"]]],null]],[[\\\"@size\\\",\\\"@icon\\\"],[\\\"sm\\\",\\\"arrow-right\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"setContactAliasModalVisible\\\"]],[[[1,\\\"  \\\"],[8,[39,52],null,[[\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\",\\\"@overlayClass\\\"],[[28,[37,40],[[28,[37,47],[[30,0,[\\\"setContactAliasModalVisible\\\"]]],null],false],null],\\\"modal-content w-auto\\\",true,\\\"modal\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,9],[\\\"components.bill-editor.doYouAlsoWantToAddAliasAsAnAliasOfYourContact\\\"],[[\\\"alias\\\",\\\"contact\\\"],[[30,1,[\\\"issuer\\\"]],[30,0,[\\\"billForm\\\",\\\"issuerContact\\\",\\\"name\\\"]]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"float-end d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveContactAlias\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,40],[[28,[37,47],[[30,0,[\\\"setContactAliasModalVisible\\\"]]],null],false],null]],null],[12],[1,[28,[35,9],[\\\"common.No\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveContactAlias\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,2],[[30,0,[\\\"saveContactAlias\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveContactAlias\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,9],[\\\"common.Saving\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,9],[\\\"components.bill-editor.Add alias\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@bill\\\",\\\"action\\\",\\\"item\\\",\\\"@billStatus\\\"],false,[\\\"div\\\",\\\"did-update\\\",\\\"perform\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"h2\\\",\\\"span\\\",\\\"eq\\\",\\\"button\\\",\\\"t\\\",\\\"on\\\",\\\"fa-icon\\\",\\\"a\\\",\\\"attachments-popover\\\",\\\"not\\\",\\\"and\\\",\\\"or\\\",\\\"dropdown-button\\\",\\\"each\\\",\\\"-track-array\\\",\\\"unless\\\",\\\"icon-button\\\",\\\"format-shortcut\\\",\\\"on-key\\\",\\\"link-to\\\",\\\"form\\\",\\\"label\\\",\\\"sup\\\",\\\"search-selector\\\",\\\"array\\\",\\\"ptl-input\\\",\\\"hash\\\",\\\"new-combo-box\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"input\\\",\\\"tbody\\\",\\\"td\\\",\\\"fn\\\",\\\"includes\\\",\\\"allocation-hierarchy\\\",\\\"info-popup\\\",\\\"number-format\\\",\\\"math\\\",\\\"bill-item-summary\\\",\\\"mut\\\",\\\"h4\\\",\\\"resource-history\\\",\\\"confirm-delete\\\",\\\"p\\\",\\\"modal-dialog\\\",\\\"h3\\\",\\\"bill-type-response-handler\\\",\\\"bill-item-allocator\\\",\\\"ellipsis-characters\\\",\\\"attachment-preview\\\",\\\"gt\\\",\\\"footer\\\"]]\",\n    \"moduleName\": \"portal/components/bill-editor.hbs\",\n    \"isStrictMode\": false\n  });\n  const deleteKey = '_deleteMe';\n  let BillEditorComponent = _exports.default = (_class = class BillEditorComponent extends _component2.default {\n    get condensedMode() {\n      return !this.media.isDesktop;\n    }\n    get columnSpans() {\n      const hasPurchaseOrder = Boolean(this.billForm?.get('purchaseOrder'));\n      const spans = {\n        select: this.canManageBills ? 1 : 0,\n        code: 4,\n        description: hasPurchaseOrder ? 6 : 10,\n        allocation: this.condensedMode ? 0 : hasPurchaseOrder ? 6 : 4,\n        purchaseOrderItem: hasPurchaseOrder ? 6 : 0,\n        glAccount: this.condensedMode ? 0 : 4,\n        quantity: 4,\n        unitPrice: 4,\n        total: 2,\n        icon: this.condensedMode ? 1 : 0\n      };\n      return {\n        ...spans,\n        totalSpan: Object.values(spans).reduce((sum, span) => sum + span, 0)\n      };\n    }\n    get canManageBills() {\n      return this.newFeatureFlags.includesFeatureFlags('canManageBills');\n    }\n    get loadedBillItems() {\n      return this.args.bill.safeHasManyToValue('items')?.toArray() || [];\n    }\n    get hasNextPurchaseOrderPage() {\n      const current = this.purchaseOrdersPage?.currentPage ?? 1;\n      const total = this.purchaseOrdersPage?.totalPages ?? 1;\n      return current < total;\n    }\n    get isActionsRunning() {\n      return this.billActions.secondaryActions.some(action => action.action.isRunning) || this.billActions.primaryAction?.action.isRunning;\n    }\n    get activeAttachment() {\n      return this.allAttachments[this.attachmentIndex];\n    }\n    get allAttachments() {\n      return this.args.bill.myAttachments || [];\n    }\n    sortBillItems(billItems) {\n      return billItems.sort((a, b) => {\n        const sortIndexDiff = (a.get('sortIndex') || 0) - (b.get('sortIndex') || 0);\n        if (sortIndexDiff !== 0) return sortIndexDiff;\n        return new Date(a.get('dateCreated')).getTime() - new Date(b.get('dateCreated')).getTime();\n      });\n    }\n    get filteredBillItemForms() {\n      return this.billItemForms.filter(form => !form.get(deleteKey));\n    }\n    get allBillItemsSelected() {\n      if (this.billItemForms.length === 0) return false;\n      return this.billItemForms.length === this.selectedBillItemForms.length;\n    }\n    get someBillItemsSelected() {\n      if (this.allBillItemsSelected) return false;\n      return this.selectedBillItemForms.length > 0;\n    }\n    get totalPrice() {\n      return this.filteredBillItemForms.reduce((total, bif) => total += (bif.get('quantity') || 0) * (bif.get('unitPrice') || 0), 0);\n    }\n    get hasUnsavedChanges() {\n      return this.billForm.isDirty || this.billItemForms.some(form => form.isDirty || form.get(deleteKey) || form.get('data.isNew'));\n    }\n    get isBillFormValid() {\n      return this.billForm?.isValid && this.isTotalPriceValid && this.billItemForms.every(form => {\n        if (form.get(deleteKey)) return true;\n        return form.isValid;\n      });\n    }\n    get isBillFormPristine() {\n      return this.billForm?.isPristine && this.billItemForms.every(form => {\n        if (form.get(deleteKey)) return true;\n        return form.isPristine;\n      });\n    }\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor4, this);\n      _initializerDefineProperty(this, \"session\", _descriptor5, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor6, this);\n      _initializerDefineProperty(this, \"accountingPlatform\", _descriptor7, this);\n      _initializerDefineProperty(this, \"billsData\", _descriptor8, this);\n      _initializerDefineProperty(this, \"invoicedCosts\", _descriptor9, this);\n      _initializerDefineProperty(this, \"media\", _descriptor0, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor1, this);\n      _initializerDefineProperty(this, \"billForm\", _descriptor10, this);\n      _initializerDefineProperty(this, \"billItemForms\", _descriptor11, this);\n      _initializerDefineProperty(this, \"attachments\", _descriptor12, this);\n      _initializerDefineProperty(this, \"attachmentIndex\", _descriptor13, this);\n      _initializerDefineProperty(this, \"attachmentsVisible\", _descriptor14, this);\n      _initializerDefineProperty(this, \"allocating\", _descriptor15, this);\n      _defineProperty(this, \"contacts\", []);\n      _defineProperty(this, \"contactsPage\", undefined);\n      _defineProperty(this, \"contactsSearchTerm\", undefined);\n      _initializerDefineProperty(this, \"purchaseOrders\", _descriptor16, this);\n      _initializerDefineProperty(this, \"purchaseOrdersPage\", _descriptor17, this);\n      _defineProperty(this, \"purchaseOrderSearchTerm\", undefined);\n      _initializerDefineProperty(this, \"purchaseOrderItems\", _descriptor18, this);\n      _initializerDefineProperty(this, \"purchaseOrderItemsPage\", _descriptor19, this);\n      _defineProperty(this, \"purchaseOrderItemSearchTerm\", undefined);\n      _initializerDefineProperty(this, \"showBillDeleteConfirmModal\", _descriptor20, this);\n      _initializerDefineProperty(this, \"billTypeChangeConfirmation\", _descriptor21, this);\n      _initializerDefineProperty(this, \"billResponses\", _descriptor22, this);\n      _initializerDefineProperty(this, \"billTypeResponseHandlerVisible\", _descriptor23, this);\n      _initializerDefineProperty(this, \"setContactAliasModalVisible\", _descriptor24, this);\n      _initializerDefineProperty(this, \"selectedBillItemForms\", _descriptor25, this);\n      _defineProperty(this, \"isHandlingTransition\", false);\n      _defineProperty(this, \"resetChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          if (this.isHandlingTransition) return;\n          this.selectedBillItemForms = [];\n          const billValidations = (0, _bill.default)(this.intl);\n          this.billForm = new _emberChangeset.Changeset(this.args.bill, (0, _emberChangesetValidations.default)(billValidations), billValidations);\n          const sortedItems = this.sortBillItems(this.loadedBillItems);\n          const billItemValidations = (0, _billItem.default)(this.intl);\n          this.billItemForms = sortedItems.map(item => new _emberChangeset.Changeset(item, (0, _emberChangesetValidations.default)(billItemValidations), billItemValidations));\n\n          // pending (unsaved) attachments belong to the previous bill - drop them\n          this.attachments = [];\n          const hasAttachments = this.allAttachments.length > 0;\n          this.attachmentsVisible = hasAttachments && !this.condensedMode;\n          this.attachmentIndex = 0;\n          if (!this.args.bill.isNew) {\n            (0, _runloop.next)(this, async () => {\n              await this.validateBillForm();\n            });\n          }\n\n          // hold the loading state so swapping to the next bill is noticeable\n          yield (0, _emberConcurrency.timeout)(300);\n        }\n      }), {\n        restartable: true\n      }, \"resetChangeset\", null));\n      _defineProperty(this, \"loadContacts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (searchTerm) {\n          try {\n            let effectiveSearchTerm;\n            if (searchTerm === undefined) {\n              if (this.billForm.get('issuerContact')) {\n                effectiveSearchTerm = '';\n              } else {\n                effectiveSearchTerm = this.billForm.get('issuer');\n              }\n            } else {\n              effectiveSearchTerm = searchTerm.trim();\n            }\n            if (effectiveSearchTerm !== this.contactsSearchTerm) {\n              this.contactsPage = undefined;\n              this.contacts = [];\n              this.contactsSearchTerm = effectiveSearchTerm;\n            }\n            const contactFilter = {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }]\n            };\n            if (effectiveSearchTerm?.length) {\n              contactFilter.and.push((0, _searchFilter.default)(['name'], effectiveSearchTerm));\n            }\n            const nextPageNumber = (this.contactsPage?.currentPage || 0) + 1;\n            const nextPage = yield this.store.query('contact', {\n              filter: contactFilter,\n              sort: 'name',\n              page: {\n                size: 10,\n                number: nextPageNumber\n              }\n            });\n            this.contactsPage = nextPage.meta;\n            this.contacts = [...this.contacts, ...nextPage.toArray()];\n            return this.contacts;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('components.bill-editor.somethingWentWrongLoadingMoreContacts'),\n              error\n            });\n          }\n        }\n      }), {\n        restartable: true\n      }, \"loadContacts\", null));\n      _defineProperty(this, \"onSearchPurchaseOrders\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (searchTerm) {\n          this.clearPurchaseOrderIfReferenceChanged(searchTerm);\n          this.billForm.set('reference', searchTerm);\n          yield this.loadPurchaseOrders(searchTerm);\n        }\n      }), {\n        restartable: true\n      }, \"onSearchPurchaseOrders\", null));\n      _defineProperty(this, \"loadMorePurchaseOrders\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.loadPurchaseOrders(this.purchaseOrderSearchTerm);\n        }\n      }), null, \"loadMorePurchaseOrders\", null));\n      _defineProperty(this, \"loadPurchaseOrderItems\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (searchTerm) {\n          try {\n            const purchaseOrder = this.billForm.get('purchaseOrder');\n            if (!purchaseOrder) {\n              this.resetPurchaseOrderItems();\n              return [];\n            }\n            const effectiveSearchTerm = searchTerm?.trim?.();\n            if (effectiveSearchTerm !== this.purchaseOrderItemSearchTerm) {\n              this.resetPurchaseOrderItems();\n            }\n            if (this.purchaseOrderItemsPage?.currentPage >= this.purchaseOrderItemsPage?.totalPages) {\n              return this.purchaseOrderItems;\n            }\n            const purchaseOrderItemFilter = {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'purchaseOrder',\n                op: 'EQ',\n                value: purchaseOrder.id\n              }]\n            };\n            if (effectiveSearchTerm?.length) {\n              purchaseOrderItemFilter.and.push((0, _searchFilter.default)(['sku', 'description'], effectiveSearchTerm));\n            }\n            const nextPageNumber = (this.purchaseOrderItemsPage?.currentPage || 0) + 1;\n            const nextPage = yield this.store.query('purchase-order-item', {\n              filter: purchaseOrderItemFilter,\n              sort: 'sortIndex',\n              page: {\n                size: 10,\n                number: nextPageNumber\n              }\n            });\n            this.purchaseOrderItemsPage = nextPage.meta;\n            this.purchaseOrderItems = [...this.purchaseOrderItems, ...nextPage.toArray()];\n            return this.purchaseOrderItems;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('components.bill-editor.somethingWentWrongLoadingPurchaseOrderItems'),\n              error\n            });\n          }\n        }\n      }), {\n        restartable: true\n      }, \"loadPurchaseOrderItems\", null));\n      _defineProperty(this, \"saveContactAlias\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            const contact = this.billForm.get('issuerContact');\n            if (!contact || !this.args.bill.issuer) return;\n            contact.aliases.push(this.args.bill.issuer);\n            // save the contact to persist the alias\n            yield contact.save();\n            this.setContactAliasModalVisible = false;\n            this.notifications.success({\n              message: this.intl.t('components.bill-editor.Contact alias saved successfully')\n            });\n            yield this.billsData.reloadBills.perform();\n          } catch (error) {\n            this.notifications.error({\n              error,\n              message: this.intl.t('components.bill-editor.somethingWentWrongWhileSavingTheContactAlias')\n            });\n          }\n        }\n      }), null, \"saveContactAlias\", null));\n      _defineProperty(this, \"save\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (syncToAccountingPackage = false) {\n          try {\n            const wasNew = this.args.bill.isNew;\n            const originalIssuerContactId = this.args.bill.belongsTo('issuerContact').id() || null;\n            if (!wasNew) {\n              yield this.confirmBillTypeMatchesTotal();\n            }\n            if (!(yield this.validateBillForm({\n              showWarning: true\n            }))) return false;\n            const selectedIssuerContactId = this.billForm.get('issuerContact')?.id || null;\n            const issuerContactAdded = !wasNew && !originalIssuerContactId && selectedIssuerContactId;\n            const issuerContact = this.billForm.get('issuerContact');\n            const purchaseOrder = this.billForm.get('purchaseOrder');\n            this.billForm.rollbackProperty('issuerContact');\n            this.billForm.rollbackProperty('purchaseOrder');\n            this.args.bill.issuerContact = issuerContact?.content || issuerContact || null;\n            this.args.bill.purchaseOrder = purchaseOrder?.content || purchaseOrder || null;\n            yield this.billForm.save();\n            if (wasNew) {\n              yield Promise.all(this.attachments.filter(attachment => attachment.isNew).map(attachment => attachment.save()));\n            }\n            let sortIndex = 0;\n            const itemPromises = this.billItemForms.map(form => {\n              if (form.get(deleteKey)) {\n                return form.get('data').destroyRecord();\n              } else {\n                const billItem = form.get('data');\n                const purchaseOrderItem = form.get('purchaseOrderItem');\n                form.rollbackProperty('purchaseOrderItem');\n                billItem.purchaseOrderItem = purchaseOrderItem?.content || purchaseOrderItem || null;\n                form.set('sortIndex', sortIndex++);\n                return form.save();\n              }\n            });\n            yield Promise.all(itemPromises);\n            const formsToDelete = this.billItemForms.filter(f => f.get(deleteKey));\n            this.billItemForms.removeObjects(formsToDelete);\n            this.notifications.success(this.intl.t('components.bill-editor.Bill successfully saved'));\n            if (wasNew) {\n              this.billsData.addBill(this.args.bill);\n              this.router.transitionTo('entity.builda-price.operations.incoming.bills.bill', this.args.bill.id);\n            } else if (issuerContactAdded) {\n              yield this.billsData.reloadBills.perform();\n            }\n            if (syncToAccountingPackage) {\n              const response = yield this.accountingPlatform.sendBill.perform(this.args.bill);\n              this.handleAccountingPackageResponse(response);\n            }\n            return true;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('components.bill-editor.There was an error while saving the bill'),\n              error\n            });\n            return false;\n          }\n        }\n      }), null, \"save\", \"drop\"));\n      _defineProperty(this, \"syncToAccountingPackage\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          if (!(yield this.validateBillForm())) return;\n          const response = yield this.accountingPlatform.sendBill.perform(this.args.bill);\n          this.handleAccountingPackageResponse(response);\n        }\n      }), null, \"syncToAccountingPackage\", null));\n      _defineProperty(this, \"allocate\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          if (!(yield this.validateBillForm())) return;\n          this.allocating = true;\n        }\n      }), null, \"allocate\", null));\n      _defineProperty(this, \"changeStatusWithoutValidations\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (targetStatus) {\n          try {\n            this.args.bill.set('status', targetStatus);\n            yield this.args.bill.save();\n            this.notifications.success(this.intl.t('components.bill-editor.Bill successfully saved'));\n            this.removeBillAndNavigateToNext(this.args.bill);\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('components.bill-editor.Something went wrong changing status'),\n              error\n            });\n          }\n        }\n      }), null, \"changeStatusWithoutValidations\", null));\n      _defineProperty(this, \"changeStatus\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (targetStatus, syncToAccountingPackage = false) {\n          try {\n            if (!(yield this.validateBillForm())) return;\n            this.billForm.set('status', targetStatus);\n            const saved = yield this.save.perform(syncToAccountingPackage);\n            if (!saved) return;\n            this.removeBillAndNavigateToNext(this.args.bill);\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('components.bill-editor.Something went wrong changing status'),\n              error\n            });\n          }\n        }\n      }), null, \"changeStatus\", null));\n      _defineProperty(this, \"deleteBill\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            const bill = this.args.bill;\n            yield this.invoicedCosts.requestDelete.perform({\n              isInvoiced: bill.isInvoiced,\n              title: this.intl.t('services.invoiced-costs.Delete linked bill'),\n              message: this.intl.t('services.invoiced-costs.billMessage'),\n              deleteCb: async () => {\n                const nextBill = document.querySelector('[active-bill=\"\"]')?.nextElementSibling;\n                try {\n                  // Instead of directly deleting just mark it as delete, remove from service data and then delete bill\n                  await bill.deleteRecord();\n                  await this.billsData.removeBill(bill);\n                  await bill.save();\n                  if (nextBill) {\n                    nextBill.click();\n                  } else {\n                    this.router.transitionTo('entity.builda-price.operations.incoming.bills');\n                  }\n                  this.notifications.success(this.intl.t('components.bill-editor.Successfully deleted bill'));\n                } finally {\n                  this.showBillDeleteConfirmModal = false;\n                }\n              }\n            });\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('components.bill-editor.Something went wrong deleting bill'),\n              error\n            });\n          }\n        }\n      }), null, \"deleteBill\", null));\n      this.router.on('routeWillChange', this.preventInternalNavigation);\n      window.addEventListener('beforeunload', this.preventBrowserClose);\n      this.resetChangeset.perform();\n    }\n    willDestroy() {\n      super.willDestroy(...arguments);\n      this.router.off('routeWillChange', this.preventInternalNavigation);\n      window.removeEventListener('beforeunload', this.preventBrowserClose);\n    }\n    viewDuplicateBills() {\n      const billNumber = this.args.bill.billNumber?.trim();\n      if (!billNumber) return;\n      const url = this.router.urlFor('entity.builda-price.operations.incoming.bills');\n      const query = new URLSearchParams({\n        search: billNumber,\n        status: ''\n      });\n      window.open(`${url}?${query}`, '_blank');\n    }\n    triggerClose() {\n      this.router.transitionTo('entity.builda-price.operations.incoming.bills');\n    }\n    triggerSave(event) {\n      event.preventDefault();\n      this.save.perform();\n    }\n    triggerNextBill(event) {\n      event.preventDefault();\n      this.nextBill();\n    }\n    nextBill() {\n      // TODO this is gross but easier than using props\n      const current = document.querySelector('[active-bill=\"\"]');\n      if (current?.nextElementSibling) {\n        current.nextElementSibling.click();\n        return true;\n      }\n      return false;\n    }\n    triggerPreviousBill(event) {\n      event.preventDefault();\n      this.previousBill();\n    }\n    previousBill() {\n      // TODO this is gross but easier than using props\n      const current = document.querySelector('[active-bill=\"\"]');\n      if (current?.previousElementSibling) {\n        current.previousElementSibling.click();\n        return true;\n      }\n      return false;\n    }\n    removeBillAndNavigateToNext(bill) {\n      // anytime this is true you need to remove it from the list anyway\n      // no billStatus = ALL\n      const billOutsideFilter = this.args.billStatus && this.args.billStatus !== bill.status;\n\n      // only advance if the bill no longer exists in the list or the bill has moved to accepted\n      const shouldAutoAdvance = billOutsideFilter || bill.status === 'ACCEPTED';\n      if (shouldAutoAdvance) {\n        const hasNextBill = this.nextBill();\n        if (!hasNextBill) {\n          this.router.transitionTo('entity.builda-price.operations.incoming.bills');\n        }\n      }\n      if (billOutsideFilter) {\n        this.billsData.removeBill(bill);\n      }\n    }\n    validateBothDescriptionAndProductCode(changeset) {\n      if (changeset.get('productCode') || changeset.get('description')) {\n        changeset.validate('productCode');\n        changeset.validate('description');\n      }\n    }\n    preventInternalNavigation(transition) {\n      if (this.isHandlingTransition) return;\n      if (this.hasUnsavedChanges) {\n        this.isHandlingTransition = true;\n        const confirmLeave = window.confirm(this.intl.t('components.bill-editor.youHaveUnsavedChangesToThisBillAreYouSureYouWantToLeave'));\n        if (!confirmLeave) {\n          transition.abort();\n        } else {\n          // unload safely all new records\n          this.billItemForms.forEach(form => {\n            const record = form.get('data');\n            if (record.isNew) {\n              record.unloadRecord();\n            } else {\n              record.rollbackAttributes();\n            }\n          });\n        }\n        (0, _runloop.next)(() => {\n          this.isHandlingTransition = false;\n        });\n      }\n    }\n    preventBrowserClose(event) {\n      if (this.hasUnsavedChanges) {\n        event.preventDefault();\n        event.returnValue = '';\n      }\n    }\n    nextAttachment() {\n      const attachmentCount = this.allAttachments.length;\n      if (!attachmentCount) return;\n      this.attachmentIndex = (this.attachmentIndex + 1) % attachmentCount;\n    }\n    previousAttachment() {\n      const attachmentCount = this.allAttachments.length;\n      if (!attachmentCount) return;\n      this.attachmentIndex = (this.attachmentIndex - 1 + attachmentCount) % attachmentCount;\n    }\n    viewAttachment(attachment) {\n      const attachmentIndex = this.allAttachments.findIndex(item => attachment.id && item.id === attachment.id || item.href === attachment.href);\n      if (attachmentIndex >= 0) {\n        this.attachmentIndex = attachmentIndex;\n      }\n      this.attachmentsVisible = true;\n    }\n    async attachmentsUploadComplete({\n      attachments,\n      validationErrors,\n      error\n    }) {\n      try {\n        if (error) throw error;\n        const newAttachments = attachments.map(attachment => {\n          return this.store.createRecord('bill-attachment', {\n            bill: this.args.bill,\n            entity: this.sessionData.entity,\n            data: attachment.data,\n            filename: attachment.filename,\n            fileType: attachment.fileType,\n            extension: attachment.extension,\n            size: attachment.fileSize\n          });\n        });\n        if (!this.args.bill.isNew) {\n          await Promise.all(newAttachments.map(attachment => attachment.save()));\n        }\n        this.attachments = [...this.attachments, ...newAttachments];\n        if (newAttachments.length) {\n          this.attachmentIndex = this.allAttachments.length - 1;\n        }\n        this.attachmentsVisible = this.allAttachments.length > 0;\n        validationErrors.forEach(error => this.notifications.error(error));\n      } catch (uploadError) {\n        this.notifications.error({\n          message: this.intl.t('components.bill-editor.somethingWentWrongWhileSavingAttachments'),\n          error: uploadError\n        });\n      }\n    }\n    async deleteAttachment(attachment) {\n      try {\n        const linkAttachmentsToBill = this.args.bill.hasMany('attachments').value();\n        const linkRecord = linkAttachmentsToBill?.find(item => attachment.id && item.id === attachment.id || item.attachmentInfo.href === attachment.href);\n        if (linkRecord?.isNew) {\n          linkRecord.unloadRecord();\n        } else {\n          await linkRecord?.destroyRecord();\n        }\n        this.attachments = this.attachments.filter(item => item.attachmentInfo.href !== attachment.href);\n        const attachmentsCount = this.allAttachments.length;\n        if (attachmentsCount === 0) {\n          this.attachmentsVisible = false;\n          this.attachmentIndex = 0;\n        } else if (this.attachmentIndex >= attachmentsCount) {\n          this.attachmentIndex = attachmentsCount - 1;\n        }\n      } catch (error) {\n        this.notifications.error({\n          message: this.intl.t('components.bill-editor.somethingWentWrongWhileDeletingTheAttachment'),\n          error: error\n        });\n      }\n    }\n    addNewBillItem() {\n      const billItemValidations = (0, _billItem.default)(this.intl);\n      this.billItemForms = [...this.billItemForms, new _emberChangeset.Changeset(this.store.createRecord('bill-item', {\n        bill: this.args.bill,\n        entity: this.sessionData.entity,\n        sortIndex: this.billItemForms.length\n      }), (0, _emberChangesetValidations.default)(billItemValidations), billItemValidations)];\n\n      // added settimeout to make sure last row is rendered and then focus into created row\n      setTimeout(() => {\n        const row = document.querySelector('#bill-items-table tbody tr:last-child');\n        const input = row?.querySelector('input[name=\"productCode\"]');\n        row?.scrollIntoView({\n          behavior: 'smooth',\n          block: 'center'\n        });\n        input?.focus({\n          preventScroll: true\n        });\n      }, 10);\n    }\n    toggleSelectAll() {\n      if (this.allBillItemsSelected) {\n        this.selectedBillItemForms = [];\n      } else {\n        this.selectedBillItemForms = this.billItemForms;\n      }\n    }\n    toggleSelected(item, e) {\n      e.stopPropagation();\n      e.preventDefault();\n      const i = this.selectedBillItemForms.indexOf(item);\n      if (i < 0) {\n        this.selectedBillItemForms = [...this.selectedBillItemForms, item];\n      } else {\n        this.selectedBillItemForms = this.selectedBillItemForms.toSpliced(i, 1);\n      }\n    }\n    deleteSelectedBillItemForms() {\n      for (const form of this.selectedBillItemForms) {\n        form.set(deleteKey, true);\n      }\n      this.billItemForms = [...this.billItemForms];\n      this.selectedBillItemForms = [];\n    }\n    async loadPurchaseOrders(searchTerm) {\n      try {\n        const effectiveSearchTerm = searchTerm?.trim?.();\n        if (effectiveSearchTerm !== this.purchaseOrderSearchTerm) {\n          this.purchaseOrdersPage = undefined;\n          this.purchaseOrders = [];\n          this.purchaseOrderSearchTerm = effectiveSearchTerm;\n        }\n        const purchaseOrderFilter = {\n          and: [{\n            field: 'entity',\n            op: 'EQ',\n            value: this.sessionData.entity.id\n          }]\n        };\n        if (effectiveSearchTerm?.length) {\n          purchaseOrderFilter.and.push((0, _searchFilter.default)(['purchaseOrderNumber'], effectiveSearchTerm));\n        }\n        const nextPageNumber = (this.purchaseOrdersPage?.currentPage || 0) + 1;\n        const nextPage = await this.store.query('purchase-order', {\n          filter: purchaseOrderFilter,\n          sort: 'purchaseOrderNumber',\n          page: {\n            size: 10,\n            number: nextPageNumber\n          }\n        });\n        this.purchaseOrdersPage = nextPage.meta;\n        this.purchaseOrders = [...this.purchaseOrders, ...nextPage.toArray()];\n        return this.purchaseOrders;\n      } catch (error) {\n        this.notifications.error({\n          message: this.intl.t('components.bill-editor.somethingWentWrongLoadingMorePurchaseOrders'),\n          error\n        });\n      }\n    }\n    async setIssuerContact(contact) {\n      const hadContact = !!this.billForm.get('issuerContact');\n      const savedBillHasIssuerString = !!this.args.bill.issuer;\n      const contactNameMatches = contact && savedBillHasIssuerString && this.billForm.get('issuerContact.name') === this.args.bill.issuer;\n      if (savedBillHasIssuerString && !hadContact && !contactNameMatches) {\n        const results = await this.store.query('contact', {\n          filter: {\n            and: [{\n              field: 'entity',\n              op: 'EQ',\n              value: this.sessionData.entity.id\n            }, {\n              or: [{\n                field: 'aliases',\n                op: 'CONTAINS_ILIKE',\n                value: `${(0, _searchTermEscape.searchTermEscape)(this.args.bill.issuer)}`\n              }, {\n                field: 'name',\n                op: 'EQ',\n                value: this.args.bill.issuer\n              }]\n            }]\n          },\n          pageSize: 1\n        });\n        if (!results?.toArray()?.length) {\n          this.setContactAliasModalVisible = true;\n        }\n      }\n      this.billForm.set('issuerContact', contact || null);\n      this.billForm.set('issuer', contact?.name || null);\n      if (contact?.defaultBillAllocationType && this.args.bill.isNew) {\n        this.billForm.set('allocationType', contact.defaultBillAllocationType);\n      }\n    }\n    async setDefaultAllocationType() {\n      const currentAllocationType = this.billForm.get('allocationType');\n      const contact = this.store.peekRecord('contact', this.billForm.get('issuerContact').id);\n      contact.set('defaultBillAllocationType', currentAllocationType);\n      await contact.save();\n    }\n    get hasDifferentAllocationType() {\n      if (!this.billForm.get('issuerContact')) return false;\n      const currentAllocationType = this.billForm.get('allocationType');\n      const originalAllocationType = this.billForm.get('issuerContact').defaultBillAllocationType;\n      return currentAllocationType !== originalAllocationType;\n    }\n    setPurchaseOrder(purchaseOrder) {\n      const existingPurchaseOrder = this.billForm.get('purchaseOrder');\n      this.billForm.set('purchaseOrder', purchaseOrder || null);\n      this.billForm.set('reference', purchaseOrder?.purchaseOrderNumber);\n      this.resetPurchaseOrderItems();\n      if (existingPurchaseOrder?.id !== purchaseOrder?.id) {\n        this.clearBillItemPurchaseOrderItems();\n      }\n    }\n    clearPurchaseOrderIfReferenceChanged(reference) {\n      const purchaseOrder = this.billForm.get('purchaseOrder');\n      if (purchaseOrder?.purchaseOrderNumber && purchaseOrder.purchaseOrderNumber !== reference?.trim?.()) {\n        this.billForm.set('purchaseOrder', null);\n        this.resetPurchaseOrderItems();\n        this.clearBillItemPurchaseOrderItems();\n      }\n    }\n    resetPurchaseOrderItems() {\n      this.purchaseOrderItemsPage = undefined;\n      this.purchaseOrderItems = [];\n      this.purchaseOrderItemSearchTerm = undefined;\n    }\n    clearBillItemPurchaseOrderItems() {\n      this.billItemForms.forEach(item => {\n        item.set('purchaseOrderItem', null);\n      });\n    }\n    setBillItemPurchaseOrderItem(item, purchaseOrderItem) {\n      item.set('purchaseOrderItem', purchaseOrderItem || null);\n    }\n    async createIssuerContact(name) {\n      const contactName = name?.trim?.();\n      if (!contactName) return;\n      try {\n        const contact = await this.store.createRecord('contact', {\n          entity: this.sessionData.entity,\n          name: contactName\n        }).save();\n        this.setIssuerContact(contact);\n        this.contacts = [contact, ...this.contacts];\n        this.notifications.success(this.intl.t('components.bill-editor.Contact created'));\n      } catch (error) {\n        this.notifications.error({\n          message: this.intl.t('components.bill-editor.somethingWentWrongCreatingTheContact'),\n          error\n        });\n      }\n    }\n    async validateBillForm({\n      showWarning = false\n    } = {}) {\n      await this.billForm.validate();\n      let itemsInvalid = false;\n      for (const form of this.billItemForms) {\n        if (form.get(deleteKey)) {\n          continue;\n        }\n        await form.validate();\n        if (form.isInvalid) {\n          itemsInvalid = true;\n        }\n      }\n      if (!this.isTotalPriceValid) {\n        if (showWarning) {\n          this.notifications.warning(this.intl.t(this.billForm.get('billType') === 'CREDIT_NOTE' ? 'components.bill-editor.Total price must be less than zero' : 'components.bill-editor.Total price must be greater than zero'));\n        }\n        return false;\n      }\n      if (this.billForm.isInvalid || itemsInvalid || !this.billForm.get('issuerContact')) {\n        if (showWarning) {\n          this.notifications.warning(this.intl.t('components.bill-editor.You must complete the form'));\n        }\n        return false;\n      }\n      return true;\n    }\n    confirmBillTypeMatchesTotal() {\n      const suggestedBillType = this.suggestedBillType;\n      if (!suggestedBillType) return true;\n      return new Promise(resolve => {\n        const currentBillType = this.billForm?.get('billType');\n        this.billTypeChangeConfirmation = {\n          suggestedBillType,\n          billType: suggestedBillType === 'CREDIT_NOTE' ? this.intl.t('shared.bill.Credit note') : this.intl.t('common.Bill'),\n          sign: suggestedBillType === 'CREDIT_NOTE' ? this.intl.t('common.negative') : this.intl.t('common.positive'),\n          existingBillTypePural: currentBillType === 'CREDIT_NOTE' ? this.intl.t('common.Credit notes') : this.intl.t('common.Bills'),\n          existingSign: currentBillType === 'CREDIT_NOTE' ? this.intl.t('common.negative') : this.intl.t('common.positive'),\n          resolve\n        };\n      });\n    }\n    get suggestedBillType() {\n      if (this.args.bill.xeroLinked) return null;\n      const currentBillType = this.billForm?.get('billType');\n      if (currentBillType === 'BILL' && this.totalPrice < 0) {\n        return 'CREDIT_NOTE';\n      }\n      if (currentBillType === 'CREDIT_NOTE' && this.totalPrice > 0) {\n        return 'BILL';\n      }\n      return null;\n    }\n    handleBillTypeChange(confirmed) {\n      const confirmation = this.billTypeChangeConfirmation;\n      if (!confirmation) return;\n      if (confirmed) {\n        this.billForm.set('billType', confirmation.suggestedBillType);\n      }\n      confirmation.resolve(confirmed);\n      this.billTypeChangeConfirmation = null;\n    }\n    get isTotalPriceValid() {\n      return this.billForm?.get('billType') === 'CREDIT_NOTE' ? this.totalPrice < 0 : this.totalPrice > 0;\n    }\n    get billActions() {\n      const actions = {\n        primaryAction: undefined,\n        secondaryActions: []\n      };\n\n      // Only allow \"Mark as Held\" when the bill form is invalid and the bill is not already held.\n      if (!this.isBillFormValid && this.args.bill.status !== 'HELD' && !this.args.bill.isNew) {\n        actions.primaryAction = {\n          name: this.intl.t('components.bill-editor.Mark as held'),\n          action: this.changeStatusWithoutValidations,\n          targetStatus: 'HELD'\n        };\n        return actions;\n      }\n      if (!this.isBillFormPristine) return actions;\n      const items = this.loadedBillItems;\n      const status = this.args.bill.status;\n      if (!items.length || this.args.bill.isNew) return actions;\n      if (status === 'DRAFT') {\n        if (this.args.bill.fullyMapped) {\n          // fully allocated -> accept it; syncing is only offered once accepted\n          actions.primaryAction = {\n            name: this.intl.t('components.bill-editor.Mark as accepted'),\n            action: this.changeStatus,\n            targetStatus: 'ACCEPTED'\n          };\n          actions.secondaryActions.push({\n            name: this.intl.t('common.Allocate'),\n            action: this.allocate\n          });\n        } else {\n          actions.primaryAction = {\n            name: this.intl.t('common.Allocate'),\n            action: this.allocate\n          };\n        }\n        actions.secondaryActions.push({\n          name: this.intl.t('components.bill-editor.Mark as paid'),\n          action: this.changeStatus,\n          targetStatus: 'PAID'\n        });\n        actions.secondaryActions.push({\n          name: this.intl.t('components.bill-editor.Mark as held'),\n          action: this.changeStatus,\n          targetStatus: 'HELD'\n        });\n        if (this.accountingPlatform.activePlatform) actions.secondaryActions.push({\n          name: `${this.intl.t('components.bill-editor.Sync to')} ${this.accountingPlatform.label}`,\n          action: this.syncToAccountingPackage\n        });\n      } else if (status === 'ACCEPTED') {\n        if (!this.args.bill.xeroLinked && !this.args.bill.quickbooksLinked && this.accountingPlatform.activePlatform) {\n          actions.primaryAction = {\n            name: `${this.intl.t('components.bill-editor.Sync to')} ${this.accountingPlatform.label}`,\n            action: this.syncToAccountingPackage\n          };\n          actions.secondaryActions.push({\n            name: this.intl.t('components.bill-editor.Mark as paid'),\n            action: this.changeStatus,\n            targetStatus: 'PAID'\n          });\n        } else {\n          actions.primaryAction = {\n            name: this.intl.t('components.bill-editor.Mark as paid'),\n            action: this.changeStatus,\n            targetStatus: 'PAID'\n          };\n          if (this.accountingPlatform.activePlatform) actions.secondaryActions.push({\n            name: `${this.intl.t('components.bill-editor.Sync to')} ${this.accountingPlatform.label}`,\n            action: this.syncToAccountingPackage\n          });\n        }\n        actions.secondaryActions.push({\n          name: this.intl.t('common.Allocate'),\n          action: this.allocate\n        });\n        actions.secondaryActions.push({\n          name: this.intl.t('components.bill-editor.Revert to Draft'),\n          action: this.changeStatus,\n          targetStatus: 'DRAFT'\n        });\n      } else if (status === 'PAID') {\n        if (this.accountingPlatform.activePlatform) {\n          actions.primaryAction = {\n            name: `${this.intl.t('components.bill-editor.Sync to')} ${this.accountingPlatform.label}`,\n            action: this.syncToAccountingPackage\n          };\n          actions.secondaryActions.push({\n            name: this.intl.t('components.bill-editor.Revert to Draft'),\n            action: this.changeStatus,\n            targetStatus: 'DRAFT'\n          });\n        } else {\n          actions.primaryAction = {\n            name: this.intl.t('components.bill-editor.Revert to Draft'),\n            action: this.changeStatusWithoutValidations,\n            targetStatus: 'DRAFT'\n          };\n        }\n      } else if (status === 'HELD') {\n        actions.primaryAction = {\n          name: this.intl.t('components.bill-editor.Revert to Draft'),\n          action: this.changeStatusWithoutValidations,\n          targetStatus: 'DRAFT'\n        };\n      }\n      return actions;\n    }\n    handleAccountingPackageResponse(response) {\n      if (this.accountingPlatform.activePlatform === 'xero') {\n        const hasRejection = response?.attachments?.some(resp => resp.rejected);\n        if (hasRejection) {\n          this.billResponses = [response];\n          this.billTypeResponseHandlerVisible = true;\n        } else if (response) {\n          this.notifications.success(this.intl.t('components.bill-editor.Sent bill to Xero'));\n        }\n        return;\n      }\n      if (this.accountingPlatform.activePlatform === 'quickbooks') {\n        const filterResponses = (response || []).filter(item => Boolean(item));\n        if (filterResponses?.length) {\n          this.billResponses = [filterResponses];\n          this.billTypeResponseHandlerVisible = true;\n        } else {\n          this.notifications.success(this.intl.t('components.bill-editor.Sent bill to QuickBooks'));\n        }\n      }\n    }\n    onBillTypeResponseHandlerCancel() {\n      this.billResponses = [];\n      this.billTypeResponseHandlerVisible = false;\n    }\n    onBillItemAllocatorClose({\n      wasCancelled = false\n    } = {}) {\n      if (!wasCancelled && this.args.bill.status === 'ACCEPTED' && this.args.billStatus !== 'ACCEPTED') {\n        const hasNextBill = this.nextBill();\n        // if we didn't just navigate to a bill then close the bill (there is no more bills)\n        if (!hasNextBill) this.router.transitionTo('entity.builda-price.operations.incoming.bills');\n      }\n      this.allocating = false;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"accountingPlatform\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"billsData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"invoicedCosts\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"media\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"billForm\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"billItemForms\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"attachments\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"attachmentIndex\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"attachmentsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"allocating\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"purchaseOrders\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, \"purchaseOrdersPage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return undefined;\n    }\n  }), _descriptor18 = _applyDecoratedDescriptor(_class.prototype, \"purchaseOrderItems\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor19 = _applyDecoratedDescriptor(_class.prototype, \"purchaseOrderItemsPage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return undefined;\n    }\n  }), _descriptor20 = _applyDecoratedDescriptor(_class.prototype, \"showBillDeleteConfirmModal\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor21 = _applyDecoratedDescriptor(_class.prototype, \"billTypeChangeConfirmation\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor22 = _applyDecoratedDescriptor(_class.prototype, \"billResponses\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor23 = _applyDecoratedDescriptor(_class.prototype, \"billTypeResponseHandlerVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor24 = _applyDecoratedDescriptor(_class.prototype, \"setContactAliasModalVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor25 = _applyDecoratedDescriptor(_class.prototype, \"selectedBillItemForms\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"viewDuplicateBills\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"viewDuplicateBills\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"triggerClose\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"triggerClose\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"triggerSave\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"triggerSave\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"triggerNextBill\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"triggerNextBill\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"nextBill\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"nextBill\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"triggerPreviousBill\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"triggerPreviousBill\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"previousBill\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"previousBill\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"validateBothDescriptionAndProductCode\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"validateBothDescriptionAndProductCode\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"preventInternalNavigation\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"preventInternalNavigation\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"preventBrowserClose\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"preventBrowserClose\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"nextAttachment\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"nextAttachment\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"previousAttachment\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"previousAttachment\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"viewAttachment\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"viewAttachment\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"attachmentsUploadComplete\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"attachmentsUploadComplete\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"deleteAttachment\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"deleteAttachment\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addNewBillItem\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"addNewBillItem\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleSelectAll\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleSelectAll\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleSelected\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleSelected\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"deleteSelectedBillItemForms\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"deleteSelectedBillItemForms\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setIssuerContact\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setIssuerContact\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setDefaultAllocationType\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setDefaultAllocationType\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setPurchaseOrder\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setPurchaseOrder\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setBillItemPurchaseOrderItem\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setBillItemPurchaseOrderItem\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"createIssuerContact\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"createIssuerContact\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleBillTypeChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleBillTypeChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onBillTypeResponseHandlerCancel\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onBillTypeResponseHandlerCancel\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onBillItemAllocatorClose\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onBillItemAllocatorClose\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, BillEditorComponent);\n});","define(\"portal/components/bill-item-allocator\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"@ember/object\", \"@glimmer/tracking\", \"portal/utils/tree-item\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _object, _tracking, _treeItem, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"portal/utils/tree-item\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <ModalDialog\n    @overlayClass='modal'\n    @containerClass='modal-content bill-item-allocator__modal-container modal-dialog-scrollable'\n    @onClose={{@onClose}}\n    @translucentOverlay={{true}}\n    {{did-insert (perform this.updateItems @bills)}}\n    {{did-update (perform this.updateItems @bills)}}\n  >\n    <div class='modal-header'>\n      <h5 class='modal-title'>\n        {{t 'common.Allocating'}}\n      </h5>\n    </div>\n  \n    <div class='modal-body p-0'>\n      <div class='d-flex h-100'>\n        {{#if this.isLoading}}\n          <div\n            class='h-100 w-100 d-flex align-items-center justify-content-center'\n          >\n            <LoadingIcon @type='ripple' />\n          </div>\n        {{else}}\n          <div class='overflow-auto border-right' style='flex: 2; min-width: 0;'>\n            <table class='table align-middle'>\n              <thead>\n                <tr>\n                  <th\n                    class='text-center ps-2'\n                    role='button'\n                    data-test-allocator-select-all\n                    {{on 'click' this.toggleSelectAll}}\n                  >\n                    {{! template-lint-disable no-nested-interactive }}\n                    <input\n                      class='pe-none'\n                      type='checkbox'\n                      checked={{this.allItemsSelected}}\n                      indeterminate={{this.someItemsSelected}}\n                    />\n                  </th>\n                  <th>{{t 'common.Bill'}}</th>\n                  <th>{{t 'common.Description'}}</th>\n                  <th>{{t 'common.Allocation'}}</th>\n                  <th>{{t 'common.GL account'}}</th>\n                  <th class='text-right pe-2'>{{t 'common.Total'}}</th>\n                </tr>\n              </thead>\n              <tbody>\n                {{#each this.items as |item|}}\n                  {{#let (map-get this.stagedChanges item) as |allocation|}}\n                    {{#let\n                      (bool\n                        (or\n                          allocation.project\n                          allocation.task\n                          item.project.id\n                          item.task.id\n                        )\n                      )\n                      as |hasAllocation|\n                    }}\n                      <tr\n                        class={{if hasAllocation 'table-light'}}\n                        role='button'\n                        data-test-allocator-row={{item.id}}\n                        {{! template-lint-disable no-nested-interactive }}\n                        {{on 'click' (fn this.toggleSelected item)}}\n                      >\n                        <td class='text-center ps-2'>\n                          <input\n                            class='pe-none'\n                            type='checkbox'\n                            checked={{includes this.selectedItems item}}\n                          />\n                        </td>\n                        <td>\n                          {{item.bill.billNumber}}\n                        </td>\n                        <td>\n                          {{item.description}}\n                        </td>\n                        <td>\n                          <AllocationHierarchy\n                            @allocations={{or\n                              allocation.allocations\n                              item.allocations\n                            }}\n                          />\n                        </td>\n                        <td>\n                          {{#if allocation.glAccount}}\n                            {{allocation.glAccount.code}}\n                            -\n                            {{allocation.glAccount.name}}\n                          {{else if item.glAccount}}\n                            {{item.glAccount.label}}\n                          {{else}}\n                            –\n                          {{/if}}\n                        </td>\n                        <td class='no-wrap text-right pe-2'>\n                          {{number-format\n                            (math (or item.quantity 0) '*' (or item.unitPrice 0))\n                            style='currency'\n                            dashZero=true\n                          }}\n                        </td>\n                      </tr>\n                    {{/let}}\n                  {{/let}}\n                {{/each}}\n              </tbody>\n            </table>\n          </div>\n  \n          <div class='d-flex flex-column mb-2' style='flex: 1; min-width: 0;'>\n            {{#if (gt this.selectedItems.length 0)}}\n              <div class='overflow-auto flex-grow-1' style='min-height: 0;'>\n                <ItemSelector\n                  @items={{this.projectTree}}\n                  @selectedItem={{this.selectedMap}}\n                  @onChange={{this.onMapChange}}\n                  @nameKey='name'\n                  @homeText={{t 'common.Projects'}}\n                  @noItemsMessage={{t 'common.No tasks or projects'}}\n                  @searchPlaceholder={{t 'common.Search for a task or project'}}\n                  @noSearchItemsMessage={{t 'common.No tasks or projects found'}}\n                />\n              </div>\n  \n            {{else}}\n              <div\n                class='h-100 w-100 d-flex align-items-center justify-content-center'\n              >\n                {{t\n                  'components.bill-item-allocator.Select items to make an allocation'\n                }}\n              </div>\n            {{/if}}\n          </div>\n        {{/if}}\n      </div>\n    </div>\n  \n    {{#if this.selectedMap}}\n      <div class='d-flex'>\n        <div style='flex: 2' />\n        <div\n          style='flex: 1;'\n          class='border-start border-top bg-white position-relative z-1'\n        >\n          <div class='p-3'>\n            <button\n              type='button'\n              class='btn btn-link d-block p-0 mb-2'\n              data-test-allocator-clear\n              disabled={{or this.isLoading this.isSaving}}\n              {{on 'click' this.clearSelectedAllocations}}\n            >\n              {{t 'components.bill-item-allocator.Clear allocation'}}\n            </button>\n  \n            <label class='d-block'>GL Account</label>\n            <SearchSelector\n              @onSelect={{this.onOverrideGlAccount}}\n              @model={{changeset (hash value=this.overriddenGlAccount)}}\n              @key='value'\n              @onLoad={{this.loadGlAccounts}}\n              @placeholder={{if\n                this.selectedMap.item.effectivePurchasesGlAccount\n                (concat\n                  this.selectedMap.item.effectivePurchasesGlAccount.name\n                  ' - '\n                  this.selectedMap.item.effectivePurchasesGlAccount.code\n                )\n                '–'\n              }}\n              @optionKeys={{array 'code' 'name'}}\n              @disabled={{or this.isLoading this.isSaving}}\n            />\n          </div>\n        </div>\n      </div>\n    {{/if}}\n  \n    <div class='modal-footer'>\n      <button\n        class='btn btn-secondary'\n        type='button'\n        data-test-allocator-close\n        {{on 'click' this.close}}\n      >\n        {{t 'common.Cancel'}}\n      </button>\n  \n      <div class='ms-auto d-flex'>\n        {{#if\n          (and (not this.primaryActionDisabled) this.secondaryActions.length)\n        }}\n          <DropdownButton\n            @onPrimaryClick={{perform this.primaryAction.task}}\n            @disabled={{this.primaryActionDisabled}}\n            @buttonText={{if\n              this.isSaving\n              (t 'common.Saving')\n              this.primaryAction.label\n            }}\n            @popOverFixed={{true}}\n          >\n            {{#each this.secondaryActions as |action|}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                data-test-allocator-secondary-action\n                {{on 'click' (perform action.task)}}\n              >\n                {{action.label}}\n              </button>\n            {{/each}}\n          </DropdownButton>\n        {{else}}\n          <button\n            type='button'\n            class='btn btn-primary'\n            data-test-allocator-primary-action\n            {{on 'click' (perform this.primaryAction.task)}}\n            disabled={{this.primaryActionDisabled}}\n          >\n            {{#if this.isSaving}}\n              {{t 'common.Saving'}}&hellip;\n            {{else}}\n              {{this.primaryAction.label}}\n            {{/if}}\n          </button>\n        {{/if}}\n      </div>\n    </div>\n  </ModalDialog>\n  */\n  {\n    \"id\": \"juDA5t6r\",\n    \"block\": \"[[[8,[39,0],[[4,[38,1],[[28,[37,2],[[30,0,[\\\"updateItems\\\"]],[30,2]],null]],null],[4,[38,3],[[28,[37,2],[[30,0,[\\\"updateItems\\\"]],[30,2]],null]],null]],[[\\\"@overlayClass\\\",\\\"@containerClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",\\\"modal-content bill-item-allocator__modal-container modal-dialog-scrollable\\\",[30,1],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h5\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,6],[\\\"common.Allocating\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"modal-body p-0\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex h-100\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"h-100 w-100 d-flex align-items-center justify-content-center\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,8],null,[[\\\"@type\\\"],[\\\"ripple\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"overflow-auto border-right\\\"],[14,5,\\\"flex: 2; min-width: 0;\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"table\\\"],[14,0,\\\"table align-middle\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                \\\"],[11,\\\"th\\\"],[24,0,\\\"text-center ps-2\\\"],[24,\\\"role\\\",\\\"button\\\"],[24,\\\"data-test-allocator-select-all\\\",\\\"\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"toggleSelectAll\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[1,\\\"                  \\\"],[10,\\\"input\\\"],[14,0,\\\"pe-none\\\"],[15,\\\"checked\\\",[30,0,[\\\"allItemsSelected\\\"]]],[15,\\\"indeterminate\\\",[30,0,[\\\"someItemsSelected\\\"]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"common.Bill\\\"],null]],[13],[1,\\\"\\\\n                \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"common.Description\\\"],null]],[13],[1,\\\"\\\\n                \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"common.Allocation\\\"],null]],[13],[1,\\\"\\\\n                \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"common.GL account\\\"],null]],[13],[1,\\\"\\\\n                \\\"],[10,\\\"th\\\"],[14,0,\\\"text-right pe-2\\\"],[12],[1,[28,[35,6],[\\\"common.Total\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,17],[[28,[37,17],[[30,0,[\\\"items\\\"]]],null]],null],null,[[[44,[[28,[37,19],[[30,0,[\\\"stagedChanges\\\"]],[30,3]],null]],[[[44,[[28,[37,20],[[28,[37,21],[[30,4,[\\\"project\\\"]],[30,4,[\\\"task\\\"]],[30,3,[\\\"project\\\",\\\"id\\\"]],[30,3,[\\\"task\\\",\\\"id\\\"]]],null]],null]],[[[1,\\\"                    \\\"],[11,\\\"tr\\\"],[16,0,[52,[30,5],\\\"table-light\\\"]],[24,\\\"role\\\",\\\"button\\\"],[16,\\\"data-test-allocator-row\\\",[30,3,[\\\"id\\\"]]],[4,[38,13],[\\\"click\\\",[28,[37,22],[[30,0,[\\\"toggleSelected\\\"]],[30,3]],null]],null],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[14,0,\\\"text-center ps-2\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"input\\\"],[14,0,\\\"pe-none\\\"],[15,\\\"checked\\\",[28,[37,24],[[30,0,[\\\"selectedItems\\\"]],[30,3]],null]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                        \\\"],[1,[30,3,[\\\"bill\\\",\\\"billNumber\\\"]]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                        \\\"],[1,[30,3,[\\\"description\\\"]]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                        \\\"],[8,[39,25],null,[[\\\"@allocations\\\"],[[28,[37,21],[[30,4,[\\\"allocations\\\"]],[30,3,[\\\"allocations\\\"]]],null]]],null],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,4,[\\\"glAccount\\\"]],[[[1,\\\"                          \\\"],[1,[30,4,[\\\"glAccount\\\",\\\"code\\\"]]],[1,\\\"\\\\n                          -\\\\n                          \\\"],[1,[30,4,[\\\"glAccount\\\",\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,3,[\\\"glAccount\\\"]],[[[1,\\\"                          \\\"],[1,[30,3,[\\\"glAccount\\\",\\\"label\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                          –\\\\n                        \\\"]],[]]]],[]]],[1,\\\"                      \\\"],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[14,0,\\\"no-wrap text-right pe-2\\\"],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[35,26],[[28,[37,27],[[28,[37,21],[[30,3,[\\\"quantity\\\"]],0],null],\\\"*\\\",[28,[37,21],[[30,3,[\\\"unitPrice\\\"]],0],null]],null]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[5]]]],[4]]]],[3]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-column mb-2\\\"],[14,5,\\\"flex: 1; min-width: 0;\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,28],[[30,0,[\\\"selectedItems\\\",\\\"length\\\"]],0],null],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"overflow-auto flex-grow-1\\\"],[14,5,\\\"min-height: 0;\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,29],null,[[\\\"@items\\\",\\\"@selectedItem\\\",\\\"@onChange\\\",\\\"@nameKey\\\",\\\"@homeText\\\",\\\"@noItemsMessage\\\",\\\"@searchPlaceholder\\\",\\\"@noSearchItemsMessage\\\"],[[30,0,[\\\"projectTree\\\"]],[30,0,[\\\"selectedMap\\\"]],[30,0,[\\\"onMapChange\\\"]],\\\"name\\\",[28,[37,6],[\\\"common.Projects\\\"],null],[28,[37,6],[\\\"common.No tasks or projects\\\"],null],[28,[37,6],[\\\"common.Search for a task or project\\\"],null],[28,[37,6],[\\\"common.No tasks or projects found\\\"],null]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"h-100 w-100 d-flex align-items-center justify-content-center\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"components.bill-item-allocator.Select items to make an allocation\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"selectedMap\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"d-flex\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,5,\\\"flex: 2\\\"],[12],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,5,\\\"flex: 1;\\\"],[14,0,\\\"border-start border-top bg-white position-relative z-1\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"p-3\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link d-block p-0 mb-2\\\"],[24,\\\"data-test-allocator-clear\\\",\\\"\\\"],[16,\\\"disabled\\\",[28,[37,21],[[30,0,[\\\"isLoading\\\"]],[30,0,[\\\"isSaving\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"clearSelectedAllocations\\\"]]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"components.bill-item-allocator.Clear allocation\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"d-block\\\"],[12],[1,\\\"GL Account\\\"],[13],[1,\\\"\\\\n          \\\"],[8,[39,32],null,[[\\\"@onSelect\\\",\\\"@model\\\",\\\"@key\\\",\\\"@onLoad\\\",\\\"@placeholder\\\",\\\"@optionKeys\\\",\\\"@disabled\\\"],[[30,0,[\\\"onOverrideGlAccount\\\"]],[28,[37,33],[[28,[37,34],null,[[\\\"value\\\"],[[30,0,[\\\"overriddenGlAccount\\\"]]]]]],null],\\\"value\\\",[30,0,[\\\"loadGlAccounts\\\"]],[52,[30,0,[\\\"selectedMap\\\",\\\"item\\\",\\\"effectivePurchasesGlAccount\\\"]],[28,[37,35],[[30,0,[\\\"selectedMap\\\",\\\"item\\\",\\\"effectivePurchasesGlAccount\\\",\\\"name\\\"]],\\\" - \\\",[30,0,[\\\"selectedMap\\\",\\\"item\\\",\\\"effectivePurchasesGlAccount\\\",\\\"code\\\"]]],null],\\\"–\\\"],[28,[37,36],[\\\"code\\\",\\\"name\\\"],null],[28,[37,21],[[30,0,[\\\"isLoading\\\"]],[30,0,[\\\"isSaving\\\"]]],null]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,\\\"data-test-allocator-close\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"close\\\"]]],null],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,6],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"ms-auto d-flex\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,37],[[28,[37,38],[[30,0,[\\\"primaryActionDisabled\\\"]]],null],[30,0,[\\\"secondaryActions\\\",\\\"length\\\"]]],null],[[[1,\\\"        \\\"],[8,[39,39],null,[[\\\"@onPrimaryClick\\\",\\\"@disabled\\\",\\\"@buttonText\\\",\\\"@popOverFixed\\\"],[[28,[37,2],[[30,0,[\\\"primaryAction\\\",\\\"task\\\"]]],null],[30,0,[\\\"primaryActionDisabled\\\"]],[52,[30,0,[\\\"isSaving\\\"]],[28,[37,6],[\\\"common.Saving\\\"],null],[30,0,[\\\"primaryAction\\\",\\\"label\\\"]]],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,17],[[28,[37,17],[[30,0,[\\\"secondaryActions\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,\\\"data-test-allocator-secondary-action\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,2],[[30,6,[\\\"task\\\"]]],null]],null],[12],[1,\\\"\\\\n              \\\"],[1,[30,6,[\\\"label\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[6]],null],[1,\\\"        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[24,\\\"data-test-allocator-primary-action\\\",\\\"\\\"],[16,\\\"disabled\\\",[30,0,[\\\"primaryActionDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,2],[[30,0,[\\\"primaryAction\\\",\\\"task\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isSaving\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[30,0,[\\\"primaryAction\\\",\\\"label\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]]]],[\\\"@onClose\\\",\\\"@bills\\\",\\\"item\\\",\\\"allocation\\\",\\\"hasAllocation\\\",\\\"action\\\"],false,[\\\"modal-dialog\\\",\\\"did-insert\\\",\\\"perform\\\",\\\"did-update\\\",\\\"div\\\",\\\"h5\\\",\\\"t\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"on\\\",\\\"input\\\",\\\"tbody\\\",\\\"each\\\",\\\"-track-array\\\",\\\"let\\\",\\\"map-get\\\",\\\"bool\\\",\\\"or\\\",\\\"fn\\\",\\\"td\\\",\\\"includes\\\",\\\"allocation-hierarchy\\\",\\\"number-format\\\",\\\"math\\\",\\\"gt\\\",\\\"item-selector\\\",\\\"button\\\",\\\"label\\\",\\\"search-selector\\\",\\\"changeset\\\",\\\"hash\\\",\\\"concat\\\",\\\"array\\\",\\\"and\\\",\\\"not\\\",\\\"dropdown-button\\\"]]\",\n    \"moduleName\": \"portal/components/bill-item-allocator.hbs\",\n    \"isStrictMode\": false\n  });\n  let BillItemAllocatorComponent = _exports.default = (_class = class BillItemAllocatorComponent extends _component2.default {\n    onOverrideGlAccount(glAccount) {\n      this.overriddenGlAccount = glAccount;\n      for (const item of this.selectedItems) {\n        const map = this.stagedChanges.get(item);\n        this.stagedChanges.set(item, {\n          ...map,\n          glAccount\n        });\n      }\n      this.stagedChanges = this.stagedChanges; // eslint-disable-line no-self-assign\n    }\n    // TODO search-selector containment block end\n\n    get allItemsSelected() {\n      if (!this.items || this.items.length === 0) return false;\n      return this.items.length === this.selectedItems.length;\n    }\n    get someItemsSelected() {\n      if (this.allItemsSelected) return false;\n      return this.selectedItems.length > 0;\n    }\n    get fullyAllocatedBills() {\n      return this.args.bills.filter(bill => {\n        const billItems = this.items.filter(item => item.belongsTo('bill').id() === bill.id);\n        return billItems.length > 0 && billItems.every(item => {\n          const stagedState = this.stagedChanges.get(item);\n          if (stagedState) {\n            return Boolean(stagedState.project || stagedState.task);\n          }\n          return Boolean(item.belongsTo('project').id() || item.belongsTo('task').id());\n        });\n      });\n    }\n    get allocationActions() {\n      const actions = [];\n      const billCount = this.fullyAllocatedBills.length;\n      const billCountLabel = billCount > 0 && this.args.bills.length > 1 ? ` ${billCount} ${this.intl.t('common.bills')}` : '';\n\n      // accepting is only on offer once there's a bill with every item allocated\n      if (billCount > 0) {\n        if (this.accountingPlatform.isActive) {\n          actions.push({\n            label: `${this.intl.t('components.bill-item-allocator.allocateAcceptSend')}${billCountLabel}`,\n            task: this.acceptAllocateSend\n          });\n        }\n        actions.push({\n          label: `${this.intl.t('components.bill-item-allocator.allocateAccept')}${billCountLabel}`,\n          task: this.acceptAllocate\n        });\n      }\n      actions.push({\n        label: this.intl.t('common.Allocate'),\n        task: this.allocate\n      });\n      return actions;\n    }\n    get primaryAction() {\n      return this.allocationActions[0];\n    }\n    get secondaryActions() {\n      return this.allocationActions.slice(1);\n    }\n    get isLoading() {\n      return this.load.isRunning;\n    }\n    get isSaving() {\n      return this.acceptAllocateSend.isRunning || this.acceptAllocate.isRunning || this.allocate.isRunning;\n    }\n    get actionsDisabled() {\n      return this.isLoading || this.isSaving || this.selectedItems.length === 0 && this.stagedChanges.size === 0;\n    }\n    get primaryActionDisabled() {\n      if (this.isLoading || this.isSaving) return true;\n\n      // an already fully allocated bill can be accepted without staging anything\n      if (this.fullyAllocatedBills.length > 0) return false;\n      return this.actionsDisabled;\n    }\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"accountingPlatform\", _descriptor3, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor4, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor5, this);\n      _initializerDefineProperty(this, \"billsData\", _descriptor6, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor7, this);\n      _initializerDefineProperty(this, \"mapSetFromComputeMap\", _descriptor8, this);\n      _initializerDefineProperty(this, \"items\", _descriptor9, this);\n      _initializerDefineProperty(this, \"selectedItems\", _descriptor0, this);\n      _initializerDefineProperty(this, \"projectTree\", _descriptor1, this);\n      _initializerDefineProperty(this, \"selectedMap\", _descriptor10, this);\n      _initializerDefineProperty(this, \"stagedChanges\", _descriptor11, this);\n      // TODO search-selector containment block start\n      _initializerDefineProperty(this, \"overriddenGlAccount\", _descriptor12, this);\n      _initializerDefineProperty(this, \"glAccounts\", _descriptor13, this);\n      _initializerDefineProperty(this, \"glAccountsPage\", _descriptor14, this);\n      _defineProperty(this, \"loadGlAccounts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (searchString) {\n          if (searchString !== this.glAccountsPage.searchString) {\n            this.glAccounts = [];\n            this.glAccountsPage = {\n              ...this.glAccountsPage,\n              number: 0,\n              hasNextPage: undefined,\n              searchString\n            };\n          }\n          if (this.glAccountsPage.hasNextPage === false) return this.glAccounts;\n          this.glAccountsPage = {\n            ...this.glAccountsPage,\n            number: this.glAccountsPage.number + 1\n          };\n          const page = yield this.accountingPlatform.loadActivePlatformGlAccounts.perform(searchString, this.glAccountsPage);\n          this.glAccountsPage = {\n            ...this.glAccountsPage,\n            hasNextPage: page.meta.totalPages >= this.glAccountsPage.number\n          };\n          this.glAccounts = [...this.glAccounts, ...page.toArray()];\n          return this.glAccounts;\n        }\n      }), null, \"loadGlAccounts\", null));\n      _defineProperty(this, \"load\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const projects = yield this.store.query('project', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'status',\n                op: 'EQ',\n                value: 'OPEN'\n              }]\n            },\n            include: 'purchasesGlAccount',\n            sort: 'sortIndex'\n          });\n          const projectIds = projects.map(p => p.id);\n          const tasks = yield this.store.query('task', {\n            filter: {\n              and: [{\n                field: 'project',\n                op: 'IN',\n                value: projectIds\n              }, {\n                field: 'status',\n                op: 'IN',\n                value: ['ACTIVE', 'DRAFT_CREATED']\n              }, {\n                field: 'project.status',\n                op: 'EQ',\n                value: 'OPEN'\n              }]\n            },\n            include: 'purchasesGlAccount,children',\n            sort: 'path'\n          });\n          this.projectTree = _treeItem.default.constructItemTreeFromProjectAndTasks(tasks, projects);\n        }\n      }), {\n        restartable: true\n      }, \"load\", null));\n      _defineProperty(this, \"updateItems\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const billIds = this.args.bills.map(b => b.id);\n\n          // TODO could paginate this\n          const items = yield this.store.query('bill-item', {\n            filter: {\n              and: [{\n                field: 'bill',\n                op: 'IN',\n                value: billIds\n              }]\n            },\n            fields: {\n              'bill-items': '_meta.allocationPath'\n            },\n            sort: 'billId,sortIndex,-dateCreated'\n          });\n          this.items = items.toArray();\n\n          // only select items that aren't allocated\n          const unallocatedItems = [];\n          for (const item of this.items) {\n            if (item.belongsTo('project').id() || item.belongsTo('task').id()) continue;\n            unallocatedItems.push(item);\n          }\n          this.selectedItems = unallocatedItems;\n          this.computeMap();\n        }\n      }), null, \"updateItems\", \"drop\"));\n      _defineProperty(this, \"_saveAllocations\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const itemsJson = [];\n          for (const [item, stagedState] of this.stagedChanges.entries()) {\n            item.project = stagedState.project;\n            item.task = stagedState.task;\n            item.glAccount = stagedState.glAccount;\n            itemsJson.push(item.toJSON({\n              includeId: true\n            }));\n          }\n          if (itemsJson.length === 0) return;\n          yield this.buildaPrice.updateInvoiceItems(itemsJson);\n\n          // we must reload the records for the server side isAllocated\n          // we could do this client side but this is easier\n          const itemIds = [];\n          const billIds = new Set();\n          for (const item of itemsJson) {\n            itemIds.push(item.id);\n            billIds.add(item.bill);\n          }\n          yield Promise.all([this.store.query('bill-item', {\n            filter: {\n              and: [{\n                field: '_id',\n                op: 'IN',\n                value: [...itemIds]\n              }]\n            },\n            fields: {\n              'bill-items': '_meta.allocationPath'\n            }\n          }), this.store.query('bill', {\n            filter: {\n              and: [{\n                field: '_id',\n                op: 'IN',\n                value: [...billIds]\n              }]\n            },\n            fields: {\n              bills: '_meta.allocationPath'\n            }\n          })]);\n          this.stagedChanges.clear();\n        }\n      }), null, \"_saveAllocations\", null));\n      _defineProperty(this, \"_acceptBills\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const bills = [...this.fullyAllocatedBills];\n          yield Promise.all(bills.map(async b => {\n            b.status = 'ACCEPTED';\n            await b.save();\n            if (this.args.billStatus && this.args.billStatus !== 'ACCEPTED') {\n              this.billsData.removeBill(b);\n            }\n          }));\n        }\n      }), null, \"_acceptBills\", null));\n      _defineProperty(this, \"allocate\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this._saveAllocations.perform();\n          this.notifications.success(this.intl.t('components.bill-item-allocator.Saved successfully'));\n          this.args.onClose();\n        }\n      }), null, \"allocate\", null));\n      _defineProperty(this, \"acceptAllocate\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this._saveAllocations.perform();\n          yield this._acceptBills.perform();\n          this.notifications.success(this.intl.t('components.bill-item-allocator.Saved successfully'));\n          this.args.onClose();\n        }\n      }), null, \"acceptAllocate\", null));\n      _defineProperty(this, \"acceptAllocateSend\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this._saveAllocations.perform();\n          const bills = [...this.fullyAllocatedBills];\n          if (!this.accountingPlatform.isActive) {\n            yield this._acceptBills.perform();\n          } else {\n            let errorCount = 0;\n            yield Promise.all(bills.map(async b => {\n              const oldStatus = b.status;\n              b.status = 'ACCEPTED';\n              await b.save();\n              try {\n                await this.accountingPlatform.sendBill.perform(b);\n                if (this.args.billStatus && this.args.billStatus !== 'ACCEPTED') {\n                  this.billsData.removeBill(b);\n                }\n              } catch (_) {\n                errorCount++;\n                b.status = oldStatus;\n                await b.save();\n              }\n            }));\n            if (errorCount) {\n              this.notifications.error({\n                message: this.intl.t('components.bill-item-allocator.thereAreErrorCountBillsFailedToSend', {\n                  errorCount\n                })\n              });\n              return; // halt early so we don't show success/close the modal\n            }\n          }\n          this.notifications.success(this.intl.t('components.bill-item-allocator.Saved successfully'));\n          this.args.onClose();\n        }\n      }), null, \"acceptAllocateSend\", null));\n      this.load.perform();\n    }\n    async computeMap() {\n      await this.load.last;\n      if (!this.selectedItems || this.selectedItems.length === 0) {\n        this.selectedMap = undefined;\n        return;\n      }\n      this.mapSetFromComputeMap = true;\n      let targetProject = null;\n      let targetTask = null;\n      for (const item of this.selectedItems) {\n        let project, task;\n        if (this.stagedChanges.has(item)) {\n          project = this.stagedChanges.get(item).project;\n          task = this.stagedChanges.get(item).task;\n        } else {\n          project = item.belongsTo('project').value();\n          task = item.belongsTo('task').value();\n        }\n        if (!project && !task) {\n          this.selectedMap = undefined;\n          return;\n        }\n        targetProject ??= project;\n        if (targetProject !== project) {\n          this.selectedMap = undefined;\n          return;\n        }\n        targetTask ??= task;\n        if (targetTask !== task) {\n          this.selectedMap = undefined;\n          return;\n        }\n      }\n      if (targetTask) {\n        this.selectedMap = _treeItem.default.findItemInTree(this.projectTree, targetTask);\n      } else if (targetProject) {\n        this.selectedMap = this.projectTree.find(i => i.item === targetProject);\n      } else {\n        this.selectedMap = undefined;\n      }\n    }\n    onMapChange(map) {\n      for (const item of this.selectedItems) {\n        if (map?.item.constructor.modelName === 'project') {\n          const allocations = [_treeItem.default.getPath(this.projectTree, map)];\n          this.stagedChanges.set(item, {\n            project: map.item,\n            task: undefined,\n            allocations,\n            glAccount: this.overriddenGlAccount || map.item.effectivePurchasesGlAccount\n          });\n        } else if (map?.item.constructor.modelName === 'task') {\n          const allocations = [_treeItem.default.getPath(this.projectTree, map)];\n          this.stagedChanges.set(item, {\n            project: undefined,\n            task: map.item,\n            allocations,\n            glAccount: this.overriddenGlAccount || map.item.effectivePurchasesGlAccount\n          });\n        } else if (!this.mapSetFromComputeMap) {\n          // only clear the allocation when the user makes a selection\n          this.stagedChanges.set(item, {\n            project: undefined,\n            task: undefined,\n            allocations: undefined,\n            glAccount: undefined\n          });\n        }\n      }\n      if (this.mapSetFromComputeMap) this.mapSetFromComputeMap = false;\n      this.stagedChanges = this.stagedChanges; // eslint-disable-line no-self-assign\n      this.selectedMap = map;\n    }\n    clearSelectedAllocations() {\n      for (const item of this.selectedItems) {\n        this.stagedChanges.set(item, {\n          project: undefined,\n          task: undefined,\n          allocations: undefined,\n          glAccount: undefined\n        });\n      }\n      this.stagedChanges = this.stagedChanges; // eslint-disable-line no-self-assign\n      this.selectedMap = undefined;\n    }\n    toggleSelectAll() {\n      if (this.allItemsSelected) {\n        this.selectedItems = [];\n      } else {\n        this.selectedItems = [...this.items];\n      }\n      this.computeMap();\n    }\n    toggleSelected(item, e) {\n      e.stopPropagation();\n      e.preventDefault();\n      const i = this.selectedItems.indexOf(item);\n      if (i < 0) {\n        this.selectedItems = [...this.selectedItems, item];\n      } else {\n        this.selectedItems = this.selectedItems.toSpliced(i, 1);\n      }\n      this.computeMap();\n    }\n    close() {\n      this.stagedChanges.clear();\n      this.selectedItems = [];\n      this.args.onClose({\n        wasCancelled: true\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"accountingPlatform\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"billsData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"mapSetFromComputeMap\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"items\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"selectedItems\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"projectTree\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"selectedMap\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"stagedChanges\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return new Map();\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"overriddenGlAccount\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"glAccounts\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"glAccountsPage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return {\n        number: 0,\n        size: 10,\n        hasNextPage: undefined,\n        searchString: ''\n      };\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"onOverrideGlAccount\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onOverrideGlAccount\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"computeMap\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"computeMap\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onMapChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onMapChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"clearSelectedAllocations\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"clearSelectedAllocations\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleSelectAll\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleSelectAll\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleSelected\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleSelected\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"close\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"close\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, BillItemAllocatorComponent);\n});","define(\"portal/components/bill-item-summary\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! Aligned right because this sits in the last column of the table }}\n  <InfoPopup\n    @text={{this.summaryText}}\n    @iconName={{this.statusIcon}}\n    @align='right'\n    class={{this.statusClass}}\n    ...attributes\n  />\n  */\n  {\n    \"id\": \"iHYQpaI6\",\n    \"block\": \"[[[8,[39,0],[[16,0,[30,0,[\\\"statusClass\\\"]]],[17,1]],[[\\\"@text\\\",\\\"@iconName\\\",\\\"@align\\\"],[[30,0,[\\\"summaryText\\\"]],[30,0,[\\\"statusIcon\\\"]],\\\"right\\\"]],null]],[\\\"&attrs\\\"],false,[\\\"info-popup\\\"]]\",\n    \"moduleName\": \"portal/components/bill-item-summary.hbs\",\n    \"isStrictMode\": false\n  });\n  const PATH_SEPARATOR = ' › ';\n  const escapeHtml = value => String(value).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;');\n  const toLineBreaks = value => escapeHtml(value).replaceAll('\\n', '<br>');\n  let BillItemSummaryComponent = _exports.default = (_class = class BillItemSummaryComponent extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n    }\n    // the underlying bill-item. everything shown here comes from server meta\n    // rather than the form, so it is read from the record\n    get record() {\n      return this.args.item?.get('data');\n    }\n    get allocationPaths() {\n      return (this.record?.allocations ?? []).filter(path => path?.length);\n    }\n\n    // mirrors the per item test used by bill.fullymapped\n    get isAllocated() {\n      const record = this.record;\n      return Boolean(record?.isMapped || record?.belongsTo('project').id() || record?.belongsTo('task').id() || this.allocationPaths.length);\n    }\n    get allocation() {\n      if (!this.allocationPaths.length) return null;\n      return this.allocationPaths.map(path => path.join(PATH_SEPARATOR)).join('\\n');\n    }\n    get glAccount() {\n      return this.record?.belongsTo('glAccount').value()?.label || null;\n    }\n\n    // only rows with something to show make it into the popup\n    get rows() {\n      return [{\n        label: this.intl.t('common.Allocation'),\n        value: this.allocation\n      }, {\n        label: this.intl.t('common.GL account'),\n        value: this.glAccount\n      }].filter(row => row.value);\n    }\n    get summaryText() {\n      return [`<strong>${escapeHtml(this.statusLabel)}</strong>`, ...this.rows.map(row => `${escapeHtml(row.label)}: ${toLineBreaks(row.value)}`)].join('<br>');\n    }\n    get statusLabel() {\n      return this.isAllocated ? this.intl.t('common.Allocated') : this.intl.t('common.Not allocated');\n    }\n    get statusIcon() {\n      return this.isAllocated ? 'check-circle' : 'exclamation-circle';\n    }\n    get statusClass() {\n      return this.isAllocated ? 'text-left text-success' : 'text-left text-danger';\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, BillItemSummaryComponent);\n});","define(\"portal/components/bill-type-response-handler\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <ModalDialog\n    @onClose={{@onCancel}}\n    @translucentOverlay={{true}}\n    @overlayClass='modal'\n    @containerClass='block-module'\n  >\n    {{#if this.responseErrors.length}}\n      <p class='p'>{{t 'shared.bill.Some bills failed to send'}}</p>\n      <div class='bill-type-response-handler__table-container'>\n        <table class='bill-type-response-handler__table'>\n          <thead>\n            <tr>\n              <th>{{t 'shared.bill.Reason for failure'}}</th>\n            </tr>\n          </thead>\n          <tbody>\n            {{#each this.responseErrors as |error|}}\n              <tr data-test-bill-type-resource-handler-error>\n                <td>{{error}}</td>\n              </tr>\n            {{/each}}\n          </tbody>\n        </table>\n      </div>\n    {{/if}}\n  \n    {{#if this.attachmentErrors.length}}\n      <p class='p'>{{t 'shared.bill.Some attachments failed to send to Xero'}}</p>\n      <div class='bill-type-response-handler__table-container'>\n        <table class='bill-type-response-handler__table'>\n          <thead>\n            <tr>\n              <th>{{t 'shared.bill.Reason for failure'}}</th>\n            </tr>\n          </thead>\n          <tbody>\n            {{#each this.attachmentErrors as |error|}}\n              <tr data-test-bill-type-resource-handler-attachment-error>\n                <td>{{error.rejectedReason}}</td>\n              </tr>\n            {{/each}}\n          </tbody>\n        </table>\n      </div>\n    {{/if}}\n    <div class='block-module__footer'>\n      <button\n        class='button float-end'\n        data-test-bill-type-resource-handler-okay-button\n        type='button'\n        {{on 'click' @onCancel}}\n      >{{t 'common.Okay'}}</button>\n    </div>\n  </ModalDialog>\n  */\n  {\n    \"id\": \"Ty6sLlrJ\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@overlayClass\\\",\\\"@containerClass\\\"],[[30,1],true,\\\"modal\\\",\\\"block-module\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"responseErrors\\\",\\\"length\\\"]],[[[1,\\\"    \\\"],[10,2],[14,0,\\\"p\\\"],[12],[1,[28,[35,3],[\\\"shared.bill.Some bills failed to send\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"bill-type-response-handler__table-container\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"table\\\"],[14,0,\\\"bill-type-response-handler__table\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,3],[\\\"shared.bill.Reason for failure\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,11],[[28,[37,11],[[30,0,[\\\"responseErrors\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"tr\\\"],[14,\\\"data-test-bill-type-resource-handler-error\\\",\\\"\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,[30,2]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"attachmentErrors\\\",\\\"length\\\"]],[[[1,\\\"    \\\"],[10,2],[14,0,\\\"p\\\"],[12],[1,[28,[35,3],[\\\"shared.bill.Some attachments failed to send to Xero\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"bill-type-response-handler__table-container\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"table\\\"],[14,0,\\\"bill-type-response-handler__table\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,3],[\\\"shared.bill.Reason for failure\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,11],[[28,[37,11],[[30,0,[\\\"attachmentErrors\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"tr\\\"],[14,\\\"data-test-bill-type-resource-handler-attachment-error\\\",\\\"\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,[30,3,[\\\"rejectedReason\\\"]]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[10,0],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"button float-end\\\"],[24,\\\"data-test-bill-type-resource-handler-okay-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,14],[\\\"click\\\",[30,1]],null],[12],[1,[28,[35,3],[\\\"common.Okay\\\"],null]],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]]]],[\\\"@onCancel\\\",\\\"error\\\",\\\"error\\\"],false,[\\\"modal-dialog\\\",\\\"if\\\",\\\"p\\\",\\\"t\\\",\\\"div\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"tbody\\\",\\\"each\\\",\\\"-track-array\\\",\\\"td\\\",\\\"button\\\",\\\"on\\\"]]\",\n    \"moduleName\": \"portal/components/bill-type-response-handler.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component2.default {\n    get responseErrors() {\n      return (this.args.responses ?? []).flat().filter(response => typeof response === 'string');\n    }\n    get attachmentErrors() {\n      const responses = (this.args.responses ?? []).reduce((attachments, response) => [...attachments, ...(response.attachments || [])], []);\n      const errors = responses.filter(response => response.rejected);\n      return errors;\n    }\n  });\n});","define(\"portal/components/bills-table\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _object, _tracking, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"@ember/object\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.allocating}}\n    <BillItemAllocator\n      @bills={{this.selectedBills}}\n      @onClose={{this.closeAllocator}}\n      @billStatus={{@billStatus}}\n    />\n  {{/if}}\n  \n  <div\n    class='overflow-auto h-100'\n    {{did-update this.resetSelectionOnFilterChange this.filterString}}\n  >\n    <div\n      {{! TODO sticky-top bs class is overwritten by our deprecated component}}\n      class='d-flex align-items-center position-sticky bg-white z-1 p-3'\n      style='top: 0; height: 43px;'\n    >\n      {{#if this.someBillsSelected}}\n        <DropdownButton\n          data-test-bills-bulk-actions\n          @direction='bottom-right'\n          @btnClass='btn btn-sm btn-primary '\n          @buttonText={{t 'common.Allocate'}}\n          @onPrimaryClick={{fn (mut this.allocating) (not this.allocating)}}\n          @disabled={{or this.isLoading this.isActionsRunning}}\n        >\n          <button\n            type='button'\n            class='dropdown-item text-nowrap fs-5'\n            {{on 'click' (perform this.setSelectedBillsToHoldStatus)}}\n          >\n            {{t 'components.bills-table.Mark as held'}}\n          </button>\n          <button\n            type='button'\n            class='dropdown-item text-nowrap fs-5'\n            {{on 'click' (fn (mut this.showBillsDeleteConfirmModal) true)}}\n          >\n            {{t 'common.Delete'}}\n          </button>\n        </DropdownButton>\n      {{/if}}\n    </div>\n  \n    <table class='table position-relative align-middle'>\n      <thead class='position-sticky' style='top: 43px;'>\n        <tr>\n          <th colspan='1' />\n          {{#if this.showStatusColumn}}\n            <BillsTable::Th\n              colspan='1'\n              @sort={{@sort}}\n              @onOrderBy={{@onOrderBy}}\n              @key='status'\n              class='text-nowrap'\n            >\n              {{t 'common.Status'}}\n            </BillsTable::Th>\n          {{/if}}\n          <BillsTable::Th\n            colspan={{this.fromColumnSpan}}\n            @sort={{@sort}}\n            @onOrderBy={{@onOrderBy}}\n            @key='issuer'\n            class='text-nowrap'\n          >\n            {{t 'common.From'}}\n          </BillsTable::Th>\n          <BillsTable::Th\n            colspan={{this.numberColumnSpan}}\n            @sort={{@sort}}\n            @onOrderBy={{@onOrderBy}}\n            @key='billNumber'\n            class='text-nowrap'\n          >\n            {{t 'common.Number'}}\n          </BillsTable::Th>\n          {{#unless @condensed}}\n            <BillsTable::Th\n              colspan='1'\n              @sort={{@sort}}\n              @onOrderBy={{@onOrderBy}}\n              @key='reference'\n              class='text-nowrap'\n            >\n              {{t 'common.Purchase order'}}\n            </BillsTable::Th>\n            <BillsTable::Th\n              colspan='1'\n              @sort={{@sort}}\n              @onOrderBy={{@onOrderBy}}\n              @key='issueDate'\n              class='text-nowrap'\n            >\n              {{t 'common.Issue date'}}\n            </BillsTable::Th>\n            <BillsTable::Th\n              colspan='1'\n              @sort={{@sort}}\n              @onOrderBy={{@onOrderBy}}\n              @key='dueDate'\n              class='text-nowrap'\n            >\n              {{t 'common.Due date'}}\n            </BillsTable::Th>\n          {{/unless}}\n          <th colspan={{this.allocationColumnSpan}} class='text-nowrap'>\n            {{t 'common.Allocation'}}\n          </th>\n          <BillsTable::Th\n            colspan='1'\n            @sort={{@sort}}\n            @onOrderBy={{@onOrderBy}}\n            class='text-nowrap'\n            @key='subtotal'\n          >\n            {{t 'common.Total'}}\n          </BillsTable::Th>\n        </tr>\n      </thead>\n      <InfinityScroll\n        @onLoadMore={{(fn (perform this.loadMoreBills))}}\n        as |didInsert|\n      >\n        <tbody {{did-insert didInsert}}>\n          {{#each this.billsData.bills as |bill|}}\n            {{#let\n              (is-active\n                'entity.builda-price.operations.incoming.bills.bill' bill.id\n              )\n              as |active|\n            }}\n              <tr\n                class={{if active 'table-primary'}}\n                {{on 'click' (fn this.navigateToBill bill.id)}}\n                {{did-insert this.scrollActiveBill active}}\n                {{did-update this.scrollActiveBill active}}\n                role='button'\n                active-bill={{active}}\n                data-test-bill-row={{bill.id}}\n              >\n                {{! template-lint-disable no-nested-interactive }}\n                {{#if (includes-feature-flags 'canManageBills')}}\n                  {{#if bill.newIsValid}}\n                    <td\n                      colspan='1'\n                      role='button'\n                      class='{{if\n                          this.showCondensedStatusStripe\n                          (map-get this.billStatusStripeClasses bill.status)\n                        }}\n                        '\n                      {{on 'click' (fn this.toggleSelected bill)}}\n                    >\n                      <input\n                        class='pe-none'\n                        type='checkbox'\n                        checked={{includes this.selectedBills bill}}\n                      />\n                    </td>\n                  {{else}}\n                    <td\n                      colspan='1'\n                      class='{{if\n                          this.showCondensedStatusStripe\n                          (map-get this.billStatusStripeClasses bill.status)\n                        }}\n                        '\n                    />\n                  {{/if}}\n                {{/if}}\n                {{#if this.showStatusColumn}}\n                  <td colspan='1'>\n                    <span\n                      class='badge m-1 fs-7\n                        {{map-get this.billStatusBackgroundClasses bill.status}}\n                        {{if (eq bill.status \"HELD\") \"text-dark\"}}\n                        {{if (eq bill.status \"PAID\") \"text-dark\"}}\n                        '\n                    >\n                      {{bill.statusLabel}}\n                    </span>\n                  </td>\n                {{/if}}\n                <td\n                  colspan={{this.fromColumnSpan}}\n                  data-test-bill-issuer\n                >{{bill.issuer}}</td>\n                <td colspan={{this.numberColumnSpan}} data-test-bill-number>\n                  {{#if bill.billNumber}}\n                    {{bill.billNumber}}\n                    {{#if (eq bill.billType 'CREDIT_NOTE')}}\n                      <span class='badge m-1 fs-7 bg-info'>\n                        {{bill.typeLabel}}\n                      </span>\n                    {{/if}}\n                    {{#if bill.hasDuplicate}}\n                      <span class='badge m-1 fs-7 bg-danger'>\n                        {{t 'common.Duplicate'}}\n                      </span>\n                    {{/if}}\n                    {{#if bill.isAcceptedButNotSyncedToAccountingPlatform}}\n                      <span class='badge m-1 fs-7 bg-danger'>\n                        {{t 'components.bills-table.Not synced to'}}\n                        {{this.accountingPlatform.label}}\n                      </span>\n                    {{/if}}\n                  {{else}}\n                    &mdash;\n                  {{/if}}\n                </td>\n                {{#unless @condensed}}\n                  <td colspan='1'>\n                    {{#if bill.reference}}\n                      {{bill.reference}}\n                      {{#if (this.getPurchaseOrderMatchingStatus bill)}}\n                        <span\n                          class='badge m-1 fs-7\n                            {{this.getPurchaseOrderMatchingStatus bill}}'\n                        >\n                          <FaIcon @icon='shopping-cart' @size='sm' />\n                          &nbsp;PO\n                        </span>\n                      {{/if}}\n                    {{else}}\n                      &mdash;\n                    {{/if}}\n                  </td>\n                  <td colspan='1' class='text-nowrap'>\n                    {{#if bill.issueDate}}\n                      {{moment-format bill.issueDate (t 'date.shortWithWeekday')}}\n                    {{else}}\n                      &mdash;\n                    {{/if}}\n                  </td>\n                  <td colspan='1' class='text-nowrap'>\n                    {{#if bill.dueDate}}\n                      {{moment-format bill.dueDate (t 'date.shortWithWeekday')}}\n                    {{else}}\n                      &mdash;\n                    {{/if}}\n                  </td>\n                {{/unless}}\n                <td colspan={{this.allocationColumnSpan}}>\n                  <AllocationHierarchy @allocations={{bill.allocations}} />\n                </td>\n                <td colspan='1' class='text-nowrap'>\n                  {{number-format bill.subtotal style='currency' dashZero=true}}\n                </td>\n              </tr>\n            {{/let}}\n          {{else}}\n            <tr data-test-bills-empty>\n              <td class='text-center' colspan='12'>\n                {{t 'common.No bills'}}\n              </td>\n            </tr>\n          {{/each}}\n        </tbody>\n      </InfinityScroll>\n    </table>\n  </div>\n  \n  <ConfirmDelete\n    @visible={{this.showBillsDeleteConfirmModal}}\n    @title={{if\n      this.deleteConfirmText\n      (t 'common.Delete bills')\n      (t 'common.Delete bill')\n    }}\n    @messages={{this.deleteMessages}}\n    @confirmText={{this.deleteConfirmText}}\n    @deleteButtonText={{if\n      this.deleteConfirmText\n      (t 'common.Delete bills')\n      (t 'common.Delete bill')\n    }}\n    @deletingButtonText={{t 'common.Deleting'}}\n    @onDelete={{(perform this.deleteSelectedBills)}}\n    @onCancel={{fn (mut this.showBillsDeleteConfirmModal) false}}\n  >\n    <p>{{t 'shared.estimate.This action cannot be undone'}}</p>\n  </ConfirmDelete>\n  */\n  {\n    \"id\": \"8rBz0R/o\",\n    \"block\": \"[[[41,[30,0,[\\\"allocating\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@bills\\\",\\\"@onClose\\\",\\\"@billStatus\\\"],[[30,0,[\\\"selectedBills\\\"]],[30,0,[\\\"closeAllocator\\\"]],[30,1]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[11,0],[24,0,\\\"overflow-auto h-100\\\"],[4,[38,3],[[30,0,[\\\"resetSelectionOnFilterChange\\\"]],[30,0,[\\\"filterString\\\"]]],null],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"d-flex align-items-center position-sticky bg-white z-1 p-3\\\"],[14,5,\\\"top: 0; height: 43px;\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"someBillsSelected\\\"]],[[[1,\\\"      \\\"],[8,[39,4],[[24,\\\"data-test-bills-bulk-actions\\\",\\\"\\\"]],[[\\\"@direction\\\",\\\"@btnClass\\\",\\\"@buttonText\\\",\\\"@onPrimaryClick\\\",\\\"@disabled\\\"],[\\\"bottom-right\\\",\\\"btn btn-sm btn-primary \\\",[28,[37,5],[\\\"common.Allocate\\\"],null],[28,[37,6],[[28,[37,7],[[30,0,[\\\"allocating\\\"]]],null],[28,[37,8],[[30,0,[\\\"allocating\\\"]]],null]],null],[28,[37,9],[[30,0,[\\\"isLoading\\\"]],[30,0,[\\\"isActionsRunning\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,12],[[30,0,[\\\"setSelectedBillsToHoldStatus\\\"]]],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,5],[\\\"components.bills-table.Mark as held\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,6],[[28,[37,7],[[30,0,[\\\"showBillsDeleteConfirmModal\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,5],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"table\\\"],[14,0,\\\"table position-relative align-middle\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"thead\\\"],[14,0,\\\"position-sticky\\\"],[14,5,\\\"top: 43px;\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"th\\\"],[14,\\\"colspan\\\",\\\"1\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showStatusColumn\\\"]],[[[1,\\\"          \\\"],[8,[39,17],[[24,\\\"colspan\\\",\\\"1\\\"],[24,0,\\\"text-nowrap\\\"]],[[\\\"@sort\\\",\\\"@onOrderBy\\\",\\\"@key\\\"],[[30,2],[30,3],\\\"status\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[28,[35,5],[\\\"common.Status\\\"],null]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[8,[39,17],[[16,\\\"colspan\\\",[30,0,[\\\"fromColumnSpan\\\"]]],[24,0,\\\"text-nowrap\\\"]],[[\\\"@sort\\\",\\\"@onOrderBy\\\",\\\"@key\\\"],[[30,2],[30,3],\\\"issuer\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,5],[\\\"common.From\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[8,[39,17],[[16,\\\"colspan\\\",[30,0,[\\\"numberColumnSpan\\\"]]],[24,0,\\\"text-nowrap\\\"]],[[\\\"@sort\\\",\\\"@onOrderBy\\\",\\\"@key\\\"],[[30,2],[30,3],\\\"billNumber\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,5],[\\\"common.Number\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"],[41,[51,[30,4]],[[[1,\\\"          \\\"],[8,[39,17],[[24,\\\"colspan\\\",\\\"1\\\"],[24,0,\\\"text-nowrap\\\"]],[[\\\"@sort\\\",\\\"@onOrderBy\\\",\\\"@key\\\"],[[30,2],[30,3],\\\"reference\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[28,[35,5],[\\\"common.Purchase order\\\"],null]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n          \\\"],[8,[39,17],[[24,\\\"colspan\\\",\\\"1\\\"],[24,0,\\\"text-nowrap\\\"]],[[\\\"@sort\\\",\\\"@onOrderBy\\\",\\\"@key\\\"],[[30,2],[30,3],\\\"issueDate\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[28,[35,5],[\\\"common.Issue date\\\"],null]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n          \\\"],[8,[39,17],[[24,\\\"colspan\\\",\\\"1\\\"],[24,0,\\\"text-nowrap\\\"]],[[\\\"@sort\\\",\\\"@onOrderBy\\\",\\\"@key\\\"],[[30,2],[30,3],\\\"dueDate\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[28,[35,5],[\\\"common.Due date\\\"],null]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[10,\\\"th\\\"],[15,\\\"colspan\\\",[30,0,[\\\"allocationColumnSpan\\\"]]],[14,0,\\\"text-nowrap\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,5],[\\\"common.Allocation\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,17],[[24,\\\"colspan\\\",\\\"1\\\"],[24,0,\\\"text-nowrap\\\"]],[[\\\"@sort\\\",\\\"@onOrderBy\\\",\\\"@key\\\"],[[30,2],[30,3],\\\"subtotal\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,5],[\\\"common.Total\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,19],null,[[\\\"@onLoadMore\\\"],[[28,[37,6],[[28,[37,12],[[30,0,[\\\"loadMoreBills\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[11,\\\"tbody\\\"],[4,[38,21],[[30,5]],null],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,23],[[28,[37,23],[[30,0,[\\\"billsData\\\",\\\"bills\\\"]]],null]],null],null,[[[44,[[28,[37,25],[\\\"entity.builda-price.operations.incoming.bills.bill\\\",[30,6,[\\\"id\\\"]]],null]],[[[1,\\\"            \\\"],[11,\\\"tr\\\"],[16,0,[52,[30,7],\\\"table-primary\\\"]],[24,\\\"role\\\",\\\"button\\\"],[16,\\\"active-bill\\\",[30,7]],[16,\\\"data-test-bill-row\\\",[30,6,[\\\"id\\\"]]],[4,[38,11],[\\\"click\\\",[28,[37,6],[[30,0,[\\\"navigateToBill\\\"]],[30,6,[\\\"id\\\"]]],null]],null],[4,[38,21],[[30,0,[\\\"scrollActiveBill\\\"]],[30,7]],null],[4,[38,3],[[30,0,[\\\"scrollActiveBill\\\"]],[30,7]],null],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,26],[\\\"canManageBills\\\"],null],[[[41,[30,6,[\\\"newIsValid\\\"]],[[[1,\\\"                  \\\"],[11,\\\"td\\\"],[24,\\\"colspan\\\",\\\"1\\\"],[24,\\\"role\\\",\\\"button\\\"],[16,0,[29,[[52,[30,0,[\\\"showCondensedStatusStripe\\\"]],[28,[37,28],[[30,0,[\\\"billStatusStripeClasses\\\"]],[30,6,[\\\"status\\\"]]],null]],\\\"\\\\n                      \\\"]]],[4,[38,11],[\\\"click\\\",[28,[37,6],[[30,0,[\\\"toggleSelected\\\"]],[30,6]],null]],null],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"input\\\"],[14,0,\\\"pe-none\\\"],[15,\\\"checked\\\",[28,[37,30],[[30,0,[\\\"selectedBills\\\"]],[30,6]],null]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"1\\\"],[15,0,[29,[[52,[30,0,[\\\"showCondensedStatusStripe\\\"]],[28,[37,28],[[30,0,[\\\"billStatusStripeClasses\\\"]],[30,6,[\\\"status\\\"]]],null]],\\\"\\\\n                      \\\"]]],[12],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],null],[41,[30,0,[\\\"showStatusColumn\\\"]],[[[1,\\\"                \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"1\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,1],[15,0,[29,[\\\"badge m-1 fs-7\\\\n                      \\\",[28,[37,28],[[30,0,[\\\"billStatusBackgroundClasses\\\"]],[30,6,[\\\"status\\\"]]],null],\\\"\\\\n                      \\\",[52,[28,[37,32],[[30,6,[\\\"status\\\"]],\\\"HELD\\\"],null],\\\"text-dark\\\"],\\\"\\\\n                      \\\",[52,[28,[37,32],[[30,6,[\\\"status\\\"]],\\\"PAID\\\"],null],\\\"text-dark\\\"],\\\"\\\\n                      \\\"]]],[12],[1,\\\"\\\\n                    \\\"],[1,[30,6,[\\\"statusLabel\\\"]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[10,\\\"td\\\"],[15,\\\"colspan\\\",[30,0,[\\\"fromColumnSpan\\\"]]],[14,\\\"data-test-bill-issuer\\\",\\\"\\\"],[12],[1,[30,6,[\\\"issuer\\\"]]],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[15,\\\"colspan\\\",[30,0,[\\\"numberColumnSpan\\\"]]],[14,\\\"data-test-bill-number\\\",\\\"\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,6,[\\\"billNumber\\\"]],[[[1,\\\"                  \\\"],[1,[30,6,[\\\"billNumber\\\"]]],[1,\\\"\\\\n\\\"],[41,[28,[37,32],[[30,6,[\\\"billType\\\"]],\\\"CREDIT_NOTE\\\"],null],[[[1,\\\"                    \\\"],[10,1],[14,0,\\\"badge m-1 fs-7 bg-info\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[30,6,[\\\"typeLabel\\\"]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,6,[\\\"hasDuplicate\\\"]],[[[1,\\\"                    \\\"],[10,1],[14,0,\\\"badge m-1 fs-7 bg-danger\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,5],[\\\"common.Duplicate\\\"],null]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,6,[\\\"isAcceptedButNotSyncedToAccountingPlatform\\\"]],[[[1,\\\"                    \\\"],[10,1],[14,0,\\\"badge m-1 fs-7 bg-danger\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,5],[\\\"components.bills-table.Not synced to\\\"],null]],[1,\\\"\\\\n                      \\\"],[1,[30,0,[\\\"accountingPlatform\\\",\\\"label\\\"]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[1,\\\"                  —\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,4]],[[[1,\\\"                \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,6,[\\\"reference\\\"]],[[[1,\\\"                    \\\"],[1,[30,6,[\\\"reference\\\"]]],[1,\\\"\\\\n\\\"],[41,[28,[30,0,[\\\"getPurchaseOrderMatchingStatus\\\"]],[[30,6]],null],[[[1,\\\"                      \\\"],[10,1],[15,0,[29,[\\\"badge m-1 fs-7\\\\n                          \\\",[28,[30,0,[\\\"getPurchaseOrderMatchingStatus\\\"]],[[30,6]],null]]]],[12],[1,\\\"\\\\n                        \\\"],[8,[39,33],null,[[\\\"@icon\\\",\\\"@size\\\"],[\\\"shopping-cart\\\",\\\"sm\\\"]],null],[1,\\\"\\\\n                         PO\\\\n                      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[1,\\\"                    —\\\\n\\\"]],[]]],[1,\\\"                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"1\\\"],[14,0,\\\"text-nowrap\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,6,[\\\"issueDate\\\"]],[[[1,\\\"                    \\\"],[1,[28,[35,34],[[30,6,[\\\"issueDate\\\"]],[28,[37,5],[\\\"date.shortWithWeekday\\\"],null]],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                    —\\\\n\\\"]],[]]],[1,\\\"                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"1\\\"],[14,0,\\\"text-nowrap\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,6,[\\\"dueDate\\\"]],[[[1,\\\"                    \\\"],[1,[28,[35,34],[[30,6,[\\\"dueDate\\\"]],[28,[37,5],[\\\"date.shortWithWeekday\\\"],null]],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                    —\\\\n\\\"]],[]]],[1,\\\"                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[10,\\\"td\\\"],[15,\\\"colspan\\\",[30,0,[\\\"allocationColumnSpan\\\"]]],[12],[1,\\\"\\\\n                \\\"],[8,[39,35],null,[[\\\"@allocations\\\"],[[30,6,[\\\"allocations\\\"]]]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"1\\\"],[14,0,\\\"text-nowrap\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,36],[[30,6,[\\\"subtotal\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[7]]]],[6]],[[[1,\\\"          \\\"],[10,\\\"tr\\\"],[14,\\\"data-test-bills-empty\\\",\\\"\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"td\\\"],[14,0,\\\"text-center\\\"],[14,\\\"colspan\\\",\\\"12\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,5],[\\\"common.No bills\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"]],[5]]]]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[8,[39,37],null,[[\\\"@visible\\\",\\\"@title\\\",\\\"@messages\\\",\\\"@confirmText\\\",\\\"@deleteButtonText\\\",\\\"@deletingButtonText\\\",\\\"@onDelete\\\",\\\"@onCancel\\\"],[[30,0,[\\\"showBillsDeleteConfirmModal\\\"]],[52,[30,0,[\\\"deleteConfirmText\\\"]],[28,[37,5],[\\\"common.Delete bills\\\"],null],[28,[37,5],[\\\"common.Delete bill\\\"],null]],[30,0,[\\\"deleteMessages\\\"]],[30,0,[\\\"deleteConfirmText\\\"]],[52,[30,0,[\\\"deleteConfirmText\\\"]],[28,[37,5],[\\\"common.Delete bills\\\"],null],[28,[37,5],[\\\"common.Delete bill\\\"],null]],[28,[37,5],[\\\"common.Deleting\\\"],null],[28,[37,12],[[30,0,[\\\"deleteSelectedBills\\\"]]],null],[28,[37,6],[[28,[37,7],[[30,0,[\\\"showBillsDeleteConfirmModal\\\"]]],null],false],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[10,2],[12],[1,[28,[35,5],[\\\"shared.estimate.This action cannot be undone\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]]]]]],[\\\"@billStatus\\\",\\\"@sort\\\",\\\"@onOrderBy\\\",\\\"@condensed\\\",\\\"didInsert\\\",\\\"bill\\\",\\\"active\\\"],false,[\\\"if\\\",\\\"bill-item-allocator\\\",\\\"div\\\",\\\"did-update\\\",\\\"dropdown-button\\\",\\\"t\\\",\\\"fn\\\",\\\"mut\\\",\\\"not\\\",\\\"or\\\",\\\"button\\\",\\\"on\\\",\\\"perform\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"bills-table/th\\\",\\\"unless\\\",\\\"infinity-scroll\\\",\\\"tbody\\\",\\\"did-insert\\\",\\\"each\\\",\\\"-track-array\\\",\\\"let\\\",\\\"is-active\\\",\\\"includes-feature-flags\\\",\\\"td\\\",\\\"map-get\\\",\\\"input\\\",\\\"includes\\\",\\\"span\\\",\\\"eq\\\",\\\"fa-icon\\\",\\\"moment-format\\\",\\\"allocation-hierarchy\\\",\\\"number-format\\\",\\\"confirm-delete\\\",\\\"p\\\"]]\",\n    \"moduleName\": \"portal/components/bills-table.hbs\",\n    \"isStrictMode\": false\n  });\n  let BillsTableComponent = _exports.default = (_class = class BillsTableComponent extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor4, this);\n      _initializerDefineProperty(this, \"invoicedCosts\", _descriptor5, this);\n      _initializerDefineProperty(this, \"accountingPlatform\", _descriptor6, this);\n      _initializerDefineProperty(this, \"billsData\", _descriptor7, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor8, this);\n      _initializerDefineProperty(this, \"allocating\", _descriptor9, this);\n      _initializerDefineProperty(this, \"showBillsDeleteConfirmModal\", _descriptor0, this);\n      _initializerDefineProperty(this, \"selectedBills\", _descriptor1, this);\n      _initializerDefineProperty(this, \"originalFilter\", _descriptor10, this);\n      _defineProperty(this, \"loadMoreBills\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.billsData.loadMoreBills.perform(this.args.filter, this.args.fields, this.args.sort, this.args.pageSize);\n        }\n      }), null, \"loadMoreBills\", \"drop\"));\n      _defineProperty(this, \"deleteSelectedBills\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const hasOneBill = this.selectedBills.length === 1;\n          const isInvoiced = this.selectedBills.some(bill => bill.isInvoiced);\n          yield this.invoicedCosts.requestDelete.perform({\n            isInvoiced,\n            title: this.intl.t(hasOneBill ? 'services.invoiced-costs.Delete linked bill' : 'services.invoiced-costs.Delete linked bills'),\n            message: this.intl.t(hasOneBill ? 'services.invoiced-costs.billMessage' : 'services.invoiced-costs.billsMessage'),\n            deleteCb: async () => {\n              const bills = [...this.selectedBills];\n              const billIds = bills.map(bill => bill.id);\n              if (!bills.length) {\n                return this.notifications.info(this.intl.t('components.bills-table.youHaveNotSelectedAnyBillsToDelete'));\n              }\n              try {\n                await Promise.all(bills.map(async bill => {\n                  const items = bill.hasMany('items').value();\n\n                  // Instead of directly deleting just mark it as delete, remove from service data and then delete bill\n                  await bill.deleteRecord();\n                  await this.billsData.removeBill(bill);\n                  await bill.save();\n                  if (items) items.forEach(item => item.unloadRecord());\n                }));\n                this.selectedBills = [];\n                if (billIds.includes(this.router.currentRoute?.params?.bill_id)) {\n                  this.router.transitionTo('entity.builda-price.operations.incoming.bills');\n                }\n                this.notifications.success(this.intl.t('components.bills-table.Successfully deleted bills'));\n              } finally {\n                this.showBillsDeleteConfirmModal = false;\n              }\n            }\n          });\n        }\n      }), null, \"deleteSelectedBills\", \"drop\"));\n      _defineProperty(this, \"setSelectedBillsToHoldStatus\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          if (!this.selectedBills.length) {\n            return this.notifications.info(this.intl.t('components.bills-table.You have not selected any bills'));\n          }\n          const targetStatus = 'HELD';\n          const bills = [...this.selectedBills];\n          const results = yield Promise.allSettled(bills.map(bill => {\n            bill.set('status', targetStatus);\n            return bill.save();\n          }));\n          const failedUpdates = results.filter(r => r.status === 'rejected');\n          if (failedUpdates.length) {\n            this.notifications.error(this.intl.t('components.bills-table.thereAreFailedTotalBillSFailedToUpdate', {\n              failed: failedUpdates.length,\n              total: this.selectedBills.length\n            }));\n          } else {\n            this.notifications.success(this.intl.t('components.bills-table.All bills updated successfully'));\n          }\n          if (this.hasStatusFilter) {\n            results.forEach((result, index) => {\n              if (result.status === 'fulfilled') {\n                this.billsData.removeBill(bills[index]);\n              }\n            });\n          }\n          this.selectedBills = this.selectedBills.filter(bill => this.billsData.bills.includes(bill));\n        }\n      }), null, \"setSelectedBillsToHoldStatus\", \"restartable\"));\n    }\n    get someBillsSelected() {\n      return this.selectedBills.length > 0;\n    }\n    get selectedBillItems() {\n      return this.selectedBills.map(bill => bill.hasMany('items').value()).flat();\n    }\n    get deleteConfirmText() {\n      if (this.selectedBills.length > 1) return this.intl.t('components.bills-table.deleteCountBills', {\n        count: this.selectedBills.length\n      });\n      return null;\n    }\n    scrollActiveBill(element, [active]) {\n      if (!active) return;\n      element.scrollIntoView({\n        block: 'nearest',\n        inline: 'nearest'\n      });\n    }\n    get deleteMessages() {\n      if (this.deleteConfirmText) return this.intl.t('components.bills-table.Do you want to delete these bills');\n      return this.intl.t('components.bill-editor.Do you want to delete this bill');\n    }\n    get showStatusColumn() {\n      return !this.args.condensed && !this.hasStatusFilter;\n    }\n    get hasStatusFilter() {\n      return this.args.filter?.and?.some(filter => filter.field === 'status');\n    }\n    get filterString() {\n      return JSON.stringify(this.args.filter);\n    }\n    get showCondensedStatusStripe() {\n      return this.args.condensed && !this.hasStatusFilter;\n    }\n    get fromColumnSpan() {\n      return this.args.condensed ? 4 : 1;\n    }\n    get numberColumnSpan() {\n      return this.args.condensed ? 2 : 1;\n    }\n    get allocationColumnSpan() {\n      if (this.args.condensed) return 4;\n      return this.showStatusColumn ? 4 : 5;\n    }\n    get billStatusBackgroundClasses() {\n      return new Map([['DRAFT', 'bg-secondary'], ['ACCEPTED', 'bg-info'], ['HELD', 'bg-warning'], ['PAID', 'bg-success'], ['ARCHIVED', 'bg-secondary']]);\n    }\n    resetSelectionOnFilterChange() {\n      const currentFilter = this.filterString;\n      if (this.originalFilter === null) {\n        this.originalFilter = currentFilter;\n        return;\n      }\n      if (this.originalFilter !== currentFilter) {\n        this.selectedBills = [];\n        this.originalFilter = currentFilter;\n      }\n      return;\n    }\n    get billStatusStripeClasses() {\n      return new Map([['DRAFT', 'status-stripe-secondary'], ['ACCEPTED', 'status-stripe-info'], ['HELD', 'status-stripe-warning'], ['PAID', 'status-stripe-success'], ['ARCHIVED', 'status-stripe-secondary']]);\n    }\n    navigateToBill(id) {\n      this.router.transitionTo('entity.builda-price.operations.incoming.bills.bill', id);\n    }\n    toggleSelected(bill, e) {\n      e.stopPropagation();\n      e.preventDefault();\n      const i = this.selectedBills.indexOf(bill);\n      if (i < 0) {\n        this.selectedBills = [...this.selectedBills, bill];\n      } else {\n        this.selectedBills = this.selectedBills.toSpliced(i, 1);\n      }\n    }\n    closeAllocator({\n      wasCancelled = false\n    } = {}) {\n      this.allocating = false;\n      if (!wasCancelled) {\n        this.selectedBills = [];\n      }\n    }\n    getPurchaseOrderMatchingStatus(bill) {\n      const purchaseOrderDetails = bill.purchaseOrderDetails;\n      if (!purchaseOrderDetails) return '';\n      const values = Object.values(purchaseOrderDetails);\n      if (values.includes(false) || values.includes('OVER')) {\n        return 'bg-danger';\n      }\n      if (values.includes('PARTIAL')) {\n        return 'bg-warning';\n      }\n      return 'bg-success';\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"invoicedCosts\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"accountingPlatform\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"billsData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"allocating\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"showBillsDeleteConfirmModal\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"selectedBills\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"scrollActiveBill\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"scrollActiveBill\"), _class.prototype), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"originalFilter\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"resetSelectionOnFilterChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"resetSelectionOnFilterChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"navigateToBill\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"navigateToBill\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleSelected\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleSelected\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeAllocator\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"closeAllocator\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, BillsTableComponent);\n});","define(\"portal/components/bills-table/th\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <th ...attributes role='button' {{on 'click' this.toggleOrderBy}}>\n    {{yield}}\n  \n    {{#if this.icon}}\n      <FaIcon @icon={{this.icon}} />\n    {{/if}}\n  </th>\n  */\n  {\n    \"id\": \"pr4BuFeB\",\n    \"block\": \"[[[11,\\\"th\\\"],[17,1],[24,\\\"role\\\",\\\"button\\\"],[4,[38,1],[\\\"click\\\",[30,0,[\\\"toggleOrderBy\\\"]]],null],[12],[1,\\\"\\\\n  \\\"],[18,2,null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"icon\\\"]],[[[1,\\\"    \\\"],[8,[39,4],null,[[\\\"@icon\\\"],[[30,0,[\\\"icon\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[13]],[\\\"&attrs\\\",\\\"&default\\\"],false,[\\\"th\\\",\\\"on\\\",\\\"yield\\\",\\\"if\\\",\\\"fa-icon\\\"]]\",\n    \"moduleName\": \"portal/components/bills-table/th.hbs\",\n    \"isStrictMode\": false\n  });\n  let BillsTableThComponent = _exports.default = (_class = class BillsTableThComponent extends _component2.default {\n    get direction() {\n      const state = this.args.sort;\n      if (!state?.endsWith(this.args.key)) return false;\n      if (state.startsWith('-')) return 'desc';else return 'asc';\n    }\n    get icon() {\n      switch (this.direction) {\n        case 'asc':\n          return 'caret-up';\n        case 'desc':\n          return 'caret-down';\n        default:\n          return undefined;\n      }\n    }\n    toggleOrderBy() {\n      let newValue;\n      switch (this.direction) {\n        case 'asc':\n          newValue = `-${this.args.key}`;\n          break;\n        case 'desc':\n          newValue = undefined;\n          break;\n        default:\n          newValue = `${this.args.key}`;\n          break;\n      }\n      this.args.onOrderBy(newValue);\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"toggleOrderBy\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleOrderBy\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, BillsTableThComponent);\n});","define(\"portal/components/bills-uploader\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"ember-changeset\", \"@glimmer/tracking\", \"@ember/service\", \"@ember/object\", \"string-similarity\", \"csv-parse/browser/esm\", \"moment\", \"portal/utils/parse-currency-string\", \"portal/utils/search-filter\", \"portal/utils/placemakers-bill-csv-normalizer\", \"portal/utils/bunnings-bill-csv-normalizer\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _emberChangeset, _tracking, _service, _object, _stringSimilarity, _esm, _moment, _parseCurrencyString, _searchFilter, _placemakersBillCsvNormalizer, _bunningsBillCsvNormalizer, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _class2, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"ember-changeset\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"@ember/object\",0,\"string-similarity\",0,\"ember-concurrency\",0,\"csv-parse/browser/esm\",0,\"moment\",0,\"portal/utils/parse-currency-string\",0,\"portal/utils/search-filter\",0,\"portal/utils/placemakers-bill-csv-normalizer\",0,\"portal/utils/bunnings-bill-csv-normalizer\",0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <ModalDialog\n    @overlayClass='modal'\n    @translucentOverlay={{true}}\n    @onClose={{@onClose}}\n    @containerClass='modal-content modal-dialog-scrollable w-auto max-width-75 h-auto'\n  >\n    <div class='modal-content' style='max-width: 95vw;'>\n      <div class='modal-header'>\n        <h5 class='modal-title'>\n          {{t 'components.bills-uploader.Import bills'}}\n        </h5>\n      </div>\n  \n      <div class='modal-body overflow-auto'>\n        {{#if this.billFile}}\n          <div class='w-25'>\n            <label class='mb-1'>\n              {{t 'common.Contact'}}\n              <sup class='text-danger'>*</sup>\n            </label>\n            <SearchSelector\n              @onSelect={{this.setContact}}\n              @onLoad={{this.loadContacts}}\n              @noDataMessage={{t 'components.bills-uploader.No contacts'}}\n              @key='contact'\n              @optionKeys={{array 'name'}}\n              @model={{this.contactChangeSet}}\n              @forceValidationVisible={{gt this.uploadBills.performCount 0}}\n            />\n          </div>\n          <p>\n            {{t 'shared.uploader.pleaseIdentifyTheColumnTypesIsInTheDocument'}}\n          </p>\n          <div class='table-responsive'>\n            <table class='table table-sm table-bordered'>\n              <thead>\n                <tr>\n                  {{#each this.billFile.columnTypes as |type index|}}\n                    <th class='text-center align-top'>\n                      <PtlInput\n                        style='min-width: 85px;'\n                        @type='select'\n                        @label={{number-to-char index}}\n                        {{! the key needs to be a string }}\n                        @key={{concat index}}\n                        @options={{this.billFile.columnTypeOptions}}\n                        @model={{this.billFile.columnTypeForm}}\n                        @selectNoBlankOption={{true}}\n                        @forceValidationVisible={{gt\n                          this.uploadBills.performCount\n                          0\n                        }}\n                      />\n                    </th>\n                  {{/each}}\n                </tr>\n              </thead>\n              <tbody>\n                {{#each this.billFile.sampleRows as |columns|}}\n                  <tr>\n                    {{#each columns as |column index|}}\n                      <td\n                        class='no-wrap text-truncate\n                          {{if\n                            (eq\n                              (get this.billFile.columnTypeForm index)\n                              \"do-not-import\"\n                            )\n                            \"opacity-25\"\n                          }}'\n                        style='max-width: 200px;'\n                        title={{column}}\n                      >\n                        {{column}}\n                      </td>\n                    {{/each}}\n                  </tr>\n                {{/each}}\n              </tbody>\n            </table>\n          </div>\n  \n          <div class='d-flex justify-content-end p-2'>\n            {{#if this.uploadBills.isRunning}}\n              <button\n                type='button'\n                class='btn btn-primary ms-2'\n                disabled={{true}}\n              >\n                <span\n                  class='spinner-border spinner-border-sm'\n                ></span>&nbsp;&nbsp;{{t 'common.uploading'}}…\n              </button>\n            {{else}}\n              <button\n                class='btn btn-secondary'\n                type='button'\n                {{on 'click' this.onClear}}\n              >\n                {{t 'shared.uploader.Upload a different file'}}\n              </button>\n            {{/if}}\n          </div>\n        {{else}}\n          <DragAndDropContainer\n            @onUploadComplete={{this.onUpload}}\n            @isDragAndDropVisible={{true}}\n          >\n            <p class='text-center'>\n              {{t\n                'components.bills-uploader.Upload your CSV file to generate bills'\n              }}\n            </p>\n            <a\n              class='btn btn-link align-self-center mb-3'\n              href='/assets/example-invoices-file-329566189a769091832b514177383e26.csv'\n              download='example-invoices-file-329566189a769091832b514177383e26.csv'\n            >\n              <FaIcon @icon='download' />&nbsp;&nbsp;\n              {{t 'shared.uploader.Download example file'}}\n            </a>\n          </DragAndDropContainer>\n        {{/if}}\n      </div>\n  \n      <div class='modal-footer'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          disabled={{this.isLoading}}\n          {{on 'click' @onClose}}\n        >\n          {{t 'common.Cancel'}}\n        </button>\n        {{#if this.billFile}}\n          <button\n            class='btn btn-primary'\n            type='button'\n            {{on 'click' (fn (perform this.uploadBills))}}\n            disabled={{or this.uploadBills.isRunning this.saveBills.isRunning}}\n          >\n            {{#if (or this.uploadBills.isRunning this.saveBills.isRunning)}}\n              {{t 'components.bills-uploader.Importing bills'}}&hellip;\n            {{else}}\n              {{t 'components.bills-uploader.Import bills'}}\n            {{/if}}\n          </button>\n        {{/if}}\n      </div>\n    </div>\n  </ModalDialog>\n  \n  {{#if this.invalidProductRowIndexes}}\n    <ModalDialog\n      @onClose={{fn (mut this.invalidProductRowIndexes) ''}}\n      @containerClass='card'\n      @translucentOverlay={{true}}\n    >\n      <div class='card-body'>\n        <p>\n          {{t\n            'components.bills-uploader.theFollowingRowsInYourFileAreInvalidAndWereNotUploaded'\n          }}\n        </p>\n        <p class='products-uploader__invalid-rows-confirm-modal-row-message'>\n          {{this.invalidProductRowIndexes}}\n        </p>\n      </div>\n      <div class='card-footer'>\n        <div class='pull-right d-flex align-items-center'>\n          <button\n            class='btn btn-primary me-2'\n            type='button'\n            {{on 'click' this.skipNoneDescriptionRowsAndUpload}}\n          >\n            {{t 'components.bills-uploader.Upload valid rows anyway'}}\n          </button>\n          <button\n            type='button'\n            class='btn btn-secondary'\n            {{on 'click' (fn (mut this.invalidProductRowIndexes) '')}}\n          >\n            {{t 'common.Cancel'}}\n          </button>\n        </div>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.importedBills.existing.length}}\n    <ModalDialog\n      @onClose={{fn (mut this.importedBills) false}}\n      @translucentOverlay={{true}}\n      @overlayClass='modal'\n      @containerClass='modal-content w-auto'\n    >\n      <div class='modal-body'>\n        <p>\n          {{t\n            'shared.notification.xOutOfYBillsWereFoundToBeDuplicates'\n            duplicates=this.importedBills.existing.length\n            total=(math\n              this.importedBills.existing.length '+' this.importedBills.new.length\n            )\n          }}\n        </p>\n  \n        <div class='invoice-editor__import-modal__table-container'>\n          <table class='data-table data-table--stretched'>\n            <tr>\n              <th>{{t 'common.Supplier'}}</th>\n              <th>{{t 'common.Bill number'}}</th>\n              <th>{{t 'common.Reference'}}</th>\n            </tr>\n            {{#each this.importedBills.existing as |bill|}}\n              <tr>\n                <td>{{bill.issuer}}</td>\n                <td>{{bill.billNumber}}</td>\n                <td>{{bill.name}}</td>\n              </tr>\n            {{/each}}\n          </table>\n        </div>\n      </div>\n  \n      <div class='modal-footer'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' (fn (mut this.importedBills) false)}}\n          disabled={{this.saveBills.isRunning}}\n        >\n          {{t 'common.Cancel'}}\n        </button>\n  \n        <button\n          type='button'\n          class='btn btn-primary'\n          {{on 'click' this.importAllBills}}\n          disabled={{this.saveBills.isRunning}}\n        >\n          {{t 'common.Import all'}}\n        </button>\n  \n        {{#if this.importedBills.new.length}}\n          <button\n            type='button'\n            class='btn btn-primary'\n            {{on 'click' this.importNewBillsOnly}}\n            disabled={{this.saveBills.isRunning}}\n          >\n            {{t 'components.bills-uploader.Import only new bills'}}\n          </button>\n        {{/if}}\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"Gix+ALkZ\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@overlayClass\\\",\\\"@translucentOverlay\\\",\\\"@onClose\\\",\\\"@containerClass\\\"],[\\\"modal\\\",true,[30,1],\\\"modal-content modal-dialog-scrollable w-auto max-width-75 h-auto\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"modal-content\\\"],[14,5,\\\"max-width: 95vw;\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h5\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,3],[\\\"components.bills-uploader.Import bills\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-body overflow-auto\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"billFile\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"w-25\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,3],[\\\"common.Contact\\\"],null]],[1,\\\"\\\\n            \\\"],[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[39,7],null,[[\\\"@onSelect\\\",\\\"@onLoad\\\",\\\"@noDataMessage\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[[30,0,[\\\"setContact\\\"]],[30,0,[\\\"loadContacts\\\"]],[28,[37,3],[\\\"components.bills-uploader.No contacts\\\"],null],\\\"contact\\\",[28,[37,8],[\\\"name\\\"],null],[30,0,[\\\"contactChangeSet\\\"]],[28,[37,9],[[30,0,[\\\"uploadBills\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,2],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,3],[\\\"shared.uploader.pleaseIdentifyTheColumnTypesIsInTheDocument\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"table-responsive\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-sm table-bordered\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,15],[[28,[37,15],[[30,0,[\\\"billFile\\\",\\\"columnTypes\\\"]]],null]],null],null,[[[1,\\\"                  \\\"],[10,\\\"th\\\"],[14,0,\\\"text-center align-top\\\"],[12],[1,\\\"\\\\n                    \\\"],[8,[39,17],[[24,5,\\\"min-width: 85px;\\\"]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@options\\\",\\\"@model\\\",\\\"@selectNoBlankOption\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",[28,[37,18],[[30,3]],null],[28,[37,19],[[30,3]],null],[30,0,[\\\"billFile\\\",\\\"columnTypeOptions\\\"]],[30,0,[\\\"billFile\\\",\\\"columnTypeForm\\\"]],true,[28,[37,9],[[30,0,[\\\"uploadBills\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[2,3]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,15],[[28,[37,15],[[30,0,[\\\"billFile\\\",\\\"sampleRows\\\"]]],null]],null],null,[[[1,\\\"                \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,15],[[28,[37,15],[[30,4]],null]],null],null,[[[1,\\\"                    \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"no-wrap text-truncate\\\\n                        \\\",[52,[28,[37,22],[[28,[37,23],[[30,0,[\\\"billFile\\\",\\\"columnTypeForm\\\"]],[30,6]],null],\\\"do-not-import\\\"],null],\\\"opacity-25\\\"]]]],[14,5,\\\"max-width: 200px;\\\"],[15,\\\"title\\\",[30,5]],[12],[1,\\\"\\\\n                      \\\"],[1,[30,5]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[5,6]],null],[1,\\\"                \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"d-flex justify-content-end p-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"uploadBills\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary ms-2\\\"],[15,\\\"disabled\\\",true],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n              \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,3],[\\\"common.uploading\\\"],null]],[1,\\\"…\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,26],[\\\"click\\\",[30,0,[\\\"onClear\\\"]]],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,3],[\\\"shared.uploader.Upload a different file\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[8,[39,27],null,[[\\\"@onUploadComplete\\\",\\\"@isDragAndDropVisible\\\"],[[30,0,[\\\"onUpload\\\"]],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[10,2],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,3],[\\\"components.bills-uploader.Upload your CSV file to generate bills\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,3],[14,0,\\\"btn btn-link align-self-center mb-3\\\"],[14,6,\\\"/assets/example-invoices-file-329566189a769091832b514177383e26.csv\\\"],[14,\\\"download\\\",\\\"example-invoices-file-329566189a769091832b514177383e26.csv\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,29],null,[[\\\"@icon\\\"],[\\\"download\\\"]],null],[1,\\\"  \\\\n            \\\"],[1,[28,[35,3],[\\\"shared.uploader.Download example file\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[24,4,\\\"button\\\"],[4,[38,26],[\\\"click\\\",[30,1]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,3],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"billFile\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[28,[37,30],[[30,0,[\\\"uploadBills\\\",\\\"isRunning\\\"]],[30,0,[\\\"saveBills\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,26],[\\\"click\\\",[28,[37,31],[[28,[37,32],[[30,0,[\\\"uploadBills\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,30],[[30,0,[\\\"uploadBills\\\",\\\"isRunning\\\"]],[30,0,[\\\"saveBills\\\",\\\"isRunning\\\"]]],null],[[[1,\\\"            \\\"],[1,[28,[35,3],[\\\"components.bills-uploader.Importing bills\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,3],[\\\"components.bills-uploader.Import bills\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"invalidProductRowIndexes\\\"]],[[[1,\\\"  \\\"],[8,[39,0],null,[[\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[[28,[37,31],[[28,[37,33],[[30,0,[\\\"invalidProductRowIndexes\\\"]]],null],\\\"\\\"],null],\\\"card\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"card-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,3],[\\\"components.bills-uploader.theFollowingRowsInYourFileAreInvalidAndWereNotUploaded\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"products-uploader__invalid-rows-confirm-modal-row-message\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,0,[\\\"invalidProductRowIndexes\\\"]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"card-footer\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"pull-right d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary me-2\\\"],[24,4,\\\"button\\\"],[4,[38,26],[\\\"click\\\",[30,0,[\\\"skipNoneDescriptionRowsAndUpload\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,3],[\\\"components.bills-uploader.Upload valid rows anyway\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,26],[\\\"click\\\",[28,[37,31],[[28,[37,33],[[30,0,[\\\"invalidProductRowIndexes\\\"]]],null],\\\"\\\"],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,3],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"importedBills\\\",\\\"existing\\\",\\\"length\\\"]],[[[1,\\\"  \\\"],[8,[39,0],null,[[\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@overlayClass\\\",\\\"@containerClass\\\"],[[28,[37,31],[[28,[37,33],[[30,0,[\\\"importedBills\\\"]]],null],false],null],true,\\\"modal\\\",\\\"modal-content w-auto\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,3],[\\\"shared.notification.xOutOfYBillsWereFoundToBeDuplicates\\\"],[[\\\"duplicates\\\",\\\"total\\\"],[[30,0,[\\\"importedBills\\\",\\\"existing\\\",\\\"length\\\"]],[28,[37,34],[[30,0,[\\\"importedBills\\\",\\\"existing\\\",\\\"length\\\"]],\\\"+\\\",[30,0,[\\\"importedBills\\\",\\\"new\\\",\\\"length\\\"]]],null]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"invoice-editor__import-modal__table-container\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"table\\\"],[14,0,\\\"data-table data-table--stretched\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,3],[\\\"common.Supplier\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,3],[\\\"common.Bill number\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,3],[\\\"common.Reference\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,15],[[28,[37,15],[[30,0,[\\\"importedBills\\\",\\\"existing\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,[30,7,[\\\"issuer\\\"]]],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,[30,7,[\\\"billNumber\\\"]]],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,[30,7,[\\\"name\\\"]]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[7]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveBills\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,26],[\\\"click\\\",[28,[37,31],[[28,[37,33],[[30,0,[\\\"importedBills\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,3],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveBills\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,26],[\\\"click\\\",[30,0,[\\\"importAllBills\\\"]]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,3],[\\\"common.Import all\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"importedBills\\\",\\\"new\\\",\\\"length\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveBills\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,26],[\\\"click\\\",[30,0,[\\\"importNewBillsOnly\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,3],[\\\"components.bills-uploader.Import only new bills\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@onClose\\\",\\\"type\\\",\\\"index\\\",\\\"columns\\\",\\\"column\\\",\\\"index\\\",\\\"bill\\\"],false,[\\\"modal-dialog\\\",\\\"div\\\",\\\"h5\\\",\\\"t\\\",\\\"if\\\",\\\"label\\\",\\\"sup\\\",\\\"search-selector\\\",\\\"array\\\",\\\"gt\\\",\\\"p\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"each\\\",\\\"-track-array\\\",\\\"th\\\",\\\"ptl-input\\\",\\\"number-to-char\\\",\\\"concat\\\",\\\"tbody\\\",\\\"td\\\",\\\"eq\\\",\\\"get\\\",\\\"button\\\",\\\"span\\\",\\\"on\\\",\\\"drag-and-drop-container\\\",\\\"a\\\",\\\"fa-icon\\\",\\\"or\\\",\\\"fn\\\",\\\"perform\\\",\\\"mut\\\",\\\"math\\\"]]\",\n    \"moduleName\": \"portal/components/bills-uploader.hbs\",\n    \"isStrictMode\": false\n  });\n  const normalizeColumnValue = (value = '') => {\n    return value.toLowerCase().replace(/^\\uFEFF|^ï»¿/, '').trim();\n  };\n\n  // why this library kept this API when making a browser build is beyond me\n  const parseCsvFromBase64 = base64 => {\n    const records = [];\n    const parser = (0, _esm.parse)({\n      bom: true,\n      skip_empty_lines: true,\n      relax_column_count: true,\n      trim: true\n    });\n    parser.on('readable', () => {\n      let record;\n      while ((record = parser.read()) !== null) {\n        records.push(record);\n      }\n    });\n    const csvText = atob(base64);\n    parser.write(csvText);\n    parser.end();\n    return records;\n  };\n  class ParserError extends Error {}\n  const getValidationMessages = (errors = []) => {\n    return errors.flatMap(error => {\n      const validation = error?.validation ?? error?.value?.validation;\n      if (Array.isArray(validation)) return validation;\n      if (validation) return [validation];\n      return [];\n    }).filter(Boolean);\n  };\n  const TrimValue = value => String(value || '').trim();\n  let BillsFile = (_class = class BillsFile {\n    get sampleRows() {\n      if (!this.csv) return null;\n      return this.csv.slice(0, 10);\n    }\n    get columnsLength() {\n      return this.csv[0].length;\n    }\n    constructor(csv, intl) {\n      _defineProperty(this, \"columnTypeOptions\", void 0);\n      _initializerDefineProperty(this, \"columnTypes\", _descriptor, this);\n      _initializerDefineProperty(this, \"columnTypeForm\", _descriptor2, this);\n      _initializerDefineProperty(this, \"csv\", _descriptor3, this);\n      this.columnTypeOptions = [{\n        label: '—',\n        value: 'do-not-import',\n        matches: [],\n        type: undefined\n      }, {\n        label: intl.t('common.Invoice number'),\n        value: 'invoiceNumber',\n        matches: ['invoice number', 'invoice no', 'invoice reference', 'invoicenumber', 'document number'],\n        type: 'string'\n      }, {\n        label: intl.t('common.Issue date'),\n        value: 'issueDate',\n        matches: ['issue date', 'issue', 'issued', 'date', 'created date', 'invoicedate', 'invoice date', 'document date'],\n        type: 'date'\n      }, {\n        label: intl.t('common.Due date'),\n        value: 'dueDate',\n        matches: ['due date', 'due', 'duedate', 'delivery date'],\n        type: 'date'\n      }, {\n        label: intl.t('common.Customer reference'),\n        value: 'reference',\n        matches: ['customer reference', 'reference', 'order reference', 'order number', 'your ref', 'your ref.', 'customer order number', 'contract number', 'job'],\n        type: 'string'\n      }, {\n        label: intl.t('common.Code'),\n        value: 'code',\n        matches: ['sku', 'product code', 'item code', 'inventoryitemcode', 'inventory item code'],\n        type: 'string'\n      }, {\n        label: intl.t('common.Description'),\n        value: 'description',\n        matches: ['description', 'item name', 'line', 'product title', 'product description'],\n        type: 'string'\n      }, {\n        label: intl.t('common.Unit price'),\n        value: 'unitPrice',\n        matches: ['unit price', 'price', 'unit rate', 'unitamount', 'unit amount', 'unit price excluding gst', 'net', 'nett value'],\n        type: 'currency'\n      }, {\n        label: intl.t('common.Quantity'),\n        value: 'quantity',\n        matches: ['quantity', 'qty', 'qty ordered', 'qty supplied', 'quantity delivered', 'quantity ordered', 'quantity supplied'],\n        type: 'number'\n      }];\n      this.csv = csv;\n      this.columnTypes = this._findLikelyColumnTypes();\n      this.columnTypeForm = this._generateColumnTypeForm(intl);\n    }\n    _generateColumnTypeForm(intl) {\n      const validator = ({\n        key: _key,\n        newValue,\n        oldValue,\n        changes,\n        content\n      }) => {\n        const current = {\n          ...content,\n          ...changes\n        };\n        const values = Object.values(current);\n        const value = newValue || oldValue;\n        // you need at least one of each of these to progress\n        const requiredValues = ['invoiceNumber'];\n        if (\n        // if you have chosen not to import this column\n        value === 'do-not-import' &&\n        // and there are still required values left\n        requiredValues.some(rv => !values.includes(rv))) return 'Invoice number is required';\n\n        // no import is always valid\n        if (value === 'do-not-import') return true;\n\n        // you can't have duplicate selections\n        if (values.filter(v => v === value).length > 1) return intl.t('validation.You can only select this column once');\n        return true;\n      };\n      const data = {\n        save: () => {\n          for (let i = 0; i < this.columnsLength; i++) {\n            this.columnTypes[i] = this.columnTypeForm.get(String(i));\n          }\n        }\n      };\n      const validatorMap = {};\n      for (let i = 0; i < this.columnsLength; i++) {\n        data[i] = this.columnTypes[i];\n        validatorMap[i] = validator;\n      }\n      return (0, _emberChangeset.Changeset)(data, validator, validatorMap);\n    }\n    _findLikelyColumnTypes() {\n      // TODO if there isn't a header row, we could try and assume from the data type of the columns\n      const likenessThreshold = 0.8;\n      // for each column iterate over each column type to find the closest matching column type\n      const results = [];\n      for (let i = 0; i < this.columnsLength; i++) {\n        const header = normalizeColumnValue(this.csv[0]?.[i]);\n        const winners = this.columnTypeOptions.map(option => {\n          if (!option.matches.length || !header) return {\n            option,\n            rating: 0\n          };\n          const normalizedMatches = option.matches.map(normalizeColumnValue);\n          const score = (0, _stringSimilarity.findBestMatch)(header, normalizedMatches);\n          return {\n            option,\n            rating: score.bestMatch.rating || 0\n          };\n        });\n\n        // find best matching column type\n        const bestMatch = winners.sort((a, b) => b.rating - a.rating).shift();\n\n        // we now have the closest matching column type for this column\n        results.push(bestMatch?.rating >= likenessThreshold ? bestMatch.option.value : 'do-not-import');\n\n        // in the future we could also try evaluate the columns against the data type\n      }\n      return results;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"columnTypes\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"columnTypeForm\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"csv\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class2 = class _class2 extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor4, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor5, this);\n      _initializerDefineProperty(this, \"store\", _descriptor6, this);\n      _initializerDefineProperty(this, \"portalApiV2\", _descriptor7, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor8, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor9, this);\n      _defineProperty(this, \"contacts\", []);\n      _defineProperty(this, \"contactsPage\", void 0);\n      _defineProperty(this, \"contactsSearchTerm\", void 0);\n      _initializerDefineProperty(this, \"billFileItems\", _descriptor0, this);\n      _initializerDefineProperty(this, \"billFile\", _descriptor1, this);\n      _initializerDefineProperty(this, \"importedBills\", _descriptor10, this);\n      _initializerDefineProperty(this, \"invalidProductRowIndexes\", _descriptor11, this);\n      _initializerDefineProperty(this, \"contactChangeSet\", _descriptor12, this);\n      _defineProperty(this, \"contactValidator\", ({\n        key,\n        newValue\n      }) => {\n        if (key === 'contact') {\n          return Boolean(newValue) || this.intl.t('components.bills-uploader.Please provide a contact');\n        }\n      });\n      _defineProperty(this, \"parseCsvFromAttachment\", attachment => {\n        // TODO windows does some funky shit with MIME types\n\n        if (attachment.fileType !== 'text/csv') throw new ParserError(this.intl.t('shared.uploader.Please upload a valid CSV file'));\n        const csv = parseCsvFromBase64(attachment.data);\n        return csv;\n      });\n      _defineProperty(this, \"loadContacts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (searchTerm) {\n          try {\n            if (searchTerm !== this.contactsSearchTerm) {\n              this.contactsPage = undefined;\n              this.contacts = [];\n              this.contactsSearchTerm = searchTerm;\n            }\n            const contactFilter = {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }]\n            };\n            if (searchTerm?.length) contactFilter.and.push((0, _searchFilter.default)(['name'], searchTerm));\n            const nextPageNumber = (this.contactsPage?.currentPage || 0) + 1;\n            const nextPage = yield this.store.query('contact', {\n              filter: contactFilter,\n              sort: 'name',\n              page: {\n                size: 10,\n                number: nextPageNumber\n              }\n            });\n            this.contactsPage = nextPage.meta;\n            this.contacts = [...this.contacts, ...nextPage.toArray()];\n            return this.contacts;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('components.bills-uploader.somethingWentWrongLoadingMoreContacts'),\n              error\n            });\n          }\n        }\n      }), {\n        restartable: true\n      }, \"loadContacts\", null));\n      _defineProperty(this, \"uploadBills\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (_e, skipNoneDescriptionRows = false) {\n          this.billFile.columnTypeForm.validate();\n\n          // this is not throwing error, so i have specify key\n          this.contactChangeSet.validate('contact');\n          if (this.billFile.columnTypeForm.isInvalid || this.contactChangeSet.isInvalid) {\n            const validationMessages = [...getValidationMessages(this.billFile.columnTypeForm.errors), ...getValidationMessages(this.contactChangeSet.errors)];\n            this.notifications.warning(validationMessages[0] || this.intl.t('shared.uploader.pleaseCompleteTheFormBeforeContinuing'));\n            return;\n          }\n          try {\n            yield this.billFile.columnTypeForm.save();\n            const billsMap = new Map();\n            const noDescriptionIndexes = [];\n            const contact = this.contactChangeSet.get('contact');\n            this.billFile.csv.forEach((columns, rowIndex) => {\n              // Skip the first row (headers)\n              if (rowIndex === 0) return;\n              const getColumn = label => {\n                const colIndex = this.billFile.columnTypes.findIndex(colType => colType === label);\n                return columns[colIndex]?.trim() || null;\n              };\n              const invoiceNumber = getColumn('invoiceNumber');\n              const reference = getColumn('reference');\n              const description = getColumn('description') || reference || invoiceNumber;\n              if (skipNoneDescriptionRows && !description) return;\n              if (!description) noDescriptionIndexes.push(rowIndex + 1);\n              const item = {\n                description,\n                productCode: getColumn('code'),\n                unitPrice: (0, _parseCurrencyString.default)(getColumn('unitPrice')),\n                quantity: parseFloat(getColumn('quantity')) || 1\n              };\n              if (Number(item.unitPrice) < 0) {\n                item.quantity = item.quantity * -1;\n                item.unitPrice = Math.abs(item.unitPrice);\n              }\n              const rawIssueDate = getColumn('issueDate');\n              const parsedIssueDate = rawIssueDate ? (0, _moment.default)(rawIssueDate, [_moment.default.ISO_8601, 'YYYY-MM-DD', 'DD/MM/YYYY', 'DD/MM/YY', 'D/M/YYYY', 'D/M/YY', 'DD-MM-YYYY', 'DD-MM-YY', 'D-M-YYYY', 'D-M-YY', 'MM/DD/YYYY', 'M/D/YYYY', 'MM/DD/YY', 'M/D/YY'], true) : null;\n              const issueDate = parsedIssueDate?.isValid() ? parsedIssueDate.toDate() : new Date();\n              const rawDueDate = getColumn('dueDate');\n              const parsedDueDate = rawDueDate ? (0, _moment.default)(rawDueDate, [_moment.default.ISO_8601, 'YYYY-MM-DD', 'DD/MM/YYYY', 'DD/MM/YY', 'D/M/YYYY', 'D/M/YY', 'DD-MM-YYYY', 'DD-MM-YY', 'D-M-YYYY', 'D-M-YY', 'MM/DD/YYYY', 'M/D/YYYY', 'MM/DD/YY', 'M/D/YY'], true) : null;\n              const dueDate = parsedDueDate?.isValid() ? parsedDueDate.toDate() : contact?.getBillDueDate(issueDate) || issueDate;\n              if (!billsMap.has(invoiceNumber)) {\n                billsMap.set(invoiceNumber, {\n                  billNumber: invoiceNumber,\n                  entity: this.sessionData.entity,\n                  status: 'DRAFT',\n                  allocationType: contact?.defaultBillAllocationType || 'MATERIALS',\n                  issuer: contact?.name,\n                  issuerContact: contact,\n                  reference,\n                  source: 'web:generic-csv',\n                  issueDate,\n                  dueDate,\n                  items: []\n                });\n              }\n              billsMap.get(invoiceNumber).items.push(item);\n            });\n            if (noDescriptionIndexes.length && !skipNoneDescriptionRows) {\n              this.invalidProductRowIndexes = `${noDescriptionIndexes.join(', ')}`;\n              this.notifications.warning(this.intl.t('components.bills-uploader.rowsAreMissingADescriptionAndWereNotUploaded', {\n                rows: this.invalidProductRowIndexes\n              }));\n              return;\n            }\n            const bills = Array.from(billsMap.values());\n            const importedBills = yield this.findExistingBills(bills);\n            if (importedBills.existing.length) {\n              this.importedBills = importedBills;\n              return;\n            }\n            yield this.saveBills.perform(bills);\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('components.bills-uploader.Something went wrong while saving bills'),\n              error\n            });\n          }\n        }\n      }), null, \"uploadBills\", null));\n      _defineProperty(this, \"saveBills\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (bills) {\n          try {\n            const failedBills = [];\n            yield Promise.all(bills.map(async billData => {\n              try {\n                const {\n                  items,\n                  ...billAttrs\n                } = billData;\n                const subtotal = items.reduce((total, item) => total + item.quantity * item.unitPrice, 0);\n                const bill = await this.store.createRecord('bill', {\n                  ...billAttrs,\n                  ...(subtotal < 0 && {\n                    billType: 'CREDIT_NOTE'\n                  }),\n                  entity: this.sessionData.entity\n                }).save();\n                await Promise.all(items.map(async item => {\n                  await this.store.createRecord('bill-item', {\n                    ...item,\n                    entity: this.sessionData.entity,\n                    bill\n                  }).save();\n                }));\n              } catch (error) {\n                failedBills.push({\n                  bill: billData,\n                  error\n                });\n              }\n            }));\n            if (this.args.onUploadBillsCSV) {\n              yield this.args.onUploadBillsCSV();\n            }\n            const total = bills.length;\n            const failed = failedBills.length;\n            const success = total - failed;\n            if (!success && failed) {\n              this.notifications.error({\n                message: this.intl.t('components.bills-uploader.uploadFailedForCountFiles', {\n                  count: failed\n                }),\n                error: failedBills[0]?.error\n              });\n              return;\n            }\n            this.importedBills = null;\n            this.notifications.success({\n              message: this.intl.t('components.bills-uploader.uploadSummarySuccessSucceededFailed', {\n                success,\n                failed\n              }),\n              clearDuration: 5000\n            });\n            this.args.onClose();\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('components.bills-uploader.Something went wrong while saving bills'),\n              error\n            });\n          }\n        }\n      }), null, \"saveBills\", null));\n    }\n    setContact(value) {\n      this.contactChangeSet.set('contact', value);\n    }\n    onClear() {\n      this.billFile = null;\n      this.billFileItems = null;\n      this.importedBills = null;\n      this.invalidProductRowIndexes = '';\n    }\n    skipNoneDescriptionRowsAndUpload() {\n      this.invalidProductRowIndexes = '';\n      this.uploadBills.perform(undefined, true);\n    }\n    onUpload(e) {\n      try {\n        if (!e.attachments.length) {\n          this.notifications.warning(this.intl.t('shared.uploader.Please upload a valid CSV file'));\n          return;\n        }\n        if (e.attachments.length > 1) this.notifications.warning(this.intl.t('shared.uploader.Please upload one file at a time'));\n        const attachment = e.attachments[0];\n        const parsedCsv = this.parseCsvFromAttachment(attachment);\n        let csv = parsedCsv;\n        if ((0, _placemakersBillCsvNormalizer.isPlaceMakersBillCsv)(csv)) csv = (0, _placemakersBillCsvNormalizer.default)(csv);else if ((0, _bunningsBillCsvNormalizer.isBunningsBillCsv)(csv)) csv = (0, _bunningsBillCsvNormalizer.default)(csv);\n        this.billFile = new BillsFile(csv, this.intl);\n      } catch (error) {\n        if (error instanceof ParserError) {\n          this.notifications.warning(error.message);\n          return;\n        }\n        this.notifications.error({\n          message: this.intl.t('shared.uploader.Something went wrong uploading the file'),\n          error\n        });\n      }\n    }\n    async findExistingBills(bills) {\n      const entityId = this.sessionData.entity.id;\n      const uniqueBillNumbers = Array.from(new Set((bills || []).map(bill => bill.billNumber).filter(Boolean)));\n      let existingBills = this.store.peekAll('bill').toArray().filter(bill => bill.belongsTo('entity').id() === entityId);\n      if (uniqueBillNumbers.length) {\n        try {\n          existingBills = await this.store.query('bill', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: entityId\n              }, {\n                field: 'billNumber',\n                op: 'IN',\n                value: uniqueBillNumbers\n              }]\n            },\n            sort: 'issuer',\n            fields: {\n              bills: '_meta.hasDuplicate'\n            }\n          }).then(res => res.toArray ? res.toArray() : res);\n        } catch (_e) {\n          // ignore and use anything already loaded in the store\n        }\n      }\n      return bills.reduce((grouped, bill) => {\n        const billNumber = TrimValue(bill.billNumber);\n        const issuer = TrimValue(bill.issuer);\n        const billIsExisting = existingBills.find(existingBill => TrimValue(existingBill.billNumber) === billNumber && TrimValue(existingBill.issuer) === issuer);\n        if (billIsExisting) grouped.existing.push(bill);else grouped.new.push(bill);\n        return grouped;\n      }, {\n        new: [],\n        existing: [],\n        bills\n      });\n    }\n    importNewBillsOnly() {\n      this.saveBills.perform(this.importedBills?.new || []);\n    }\n    importAllBills() {\n      this.saveBills.perform(this.importedBills?.bills || []);\n    }\n  }, _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"portalApiV2\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"billFileItems\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"billFile\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"importedBills\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"invalidProductRowIndexes\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"contactChangeSet\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return (0, _emberChangeset.Changeset)({\n        contact: null\n      }, this.contactValidator.bind(this));\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"setContact\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setContact\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onClear\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onClear\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"skipNoneDescriptionRowsAndUpload\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"skipNoneDescriptionRowsAndUpload\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onUpload\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onUpload\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"importNewBillsOnly\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"importNewBillsOnly\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"importAllBills\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"importAllBills\"), _class2.prototype), _class2));\n});","define(\"portal/components/c3-chart\", [\"exports\", \"ember-c3/components/c3-chart\"], function (_exports, _c3Chart) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _c3Chart.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-c3/components/c3-chart\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/calculation-breakdown\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <ul class='steps'>\n    {{#each this.steps as |step|}}\n      {{#if (eq step.type 'operator')}}\n        <li class='operator'>{{step.char}}</li>\n      {{/if}}\n  \n      {{#if (eq step.type 'input')}}\n        <li class='input'>\n          <div class='name'>{{step.name}}</div>\n          {{#if (or this.result (eq this.result 0))}}\n            <div class='value'>\n              {{number-format step.value maximumFractionDigits=2 dashZero=false}}\n            </div>\n          {{/if}}\n        </li>\n      {{/if}}\n  \n      {{#if (eq step.type 'number')}}\n        <li class='number'>{{step.value}}</li>\n      {{/if}}\n    {{/each}}\n  \n    <li class='operator'>=</li>\n  \n    <li class='input'>\n      <div class='name'>{{t 'common.Result'}}</div>\n      {{#if (or this.result (eq this.result 0))}}\n        <div class='value'>\n          {{number-format\n            this.result\n            style=this.format\n            dashZero=true\n            maximumFractionDigits=2\n          }}\n        </div>\n      {{/if}}\n    </li>\n  </ul>\n  */\n  {\n    \"id\": \"EuvKld4J\",\n    \"block\": \"[[[10,\\\"ul\\\"],[14,0,\\\"steps\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,2],[[28,[37,2],[[30,0,[\\\"steps\\\"]]],null]],null],null,[[[41,[28,[37,4],[[30,1,[\\\"type\\\"]],\\\"operator\\\"],null],[[[1,\\\"      \\\"],[10,\\\"li\\\"],[14,0,\\\"operator\\\"],[12],[1,[30,1,[\\\"char\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[[30,1,[\\\"type\\\"]],\\\"input\\\"],null],[[[1,\\\"      \\\"],[10,\\\"li\\\"],[14,0,\\\"input\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"name\\\"],[12],[1,[30,1,[\\\"name\\\"]]],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[[30,0,[\\\"result\\\"]],[28,[37,4],[[30,0,[\\\"result\\\"]],0],null]],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"value\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,8],[[30,1,[\\\"value\\\"]]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[2,false]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[[30,1,[\\\"type\\\"]],\\\"number\\\"],null],[[[1,\\\"      \\\"],[10,\\\"li\\\"],[14,0,\\\"number\\\"],[12],[1,[30,1,[\\\"value\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null]],[1]],null],[1,\\\"\\\\n  \\\"],[10,\\\"li\\\"],[14,0,\\\"operator\\\"],[12],[1,\\\"=\\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"li\\\"],[14,0,\\\"input\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"name\\\"],[12],[1,[28,[35,9],[\\\"common.Result\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[[30,0,[\\\"result\\\"]],[28,[37,4],[[30,0,[\\\"result\\\"]],0],null]],null],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"value\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,8],[[30,0,[\\\"result\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\"],[[30,0,[\\\"format\\\"]],true,2]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"step\\\"],false,[\\\"ul\\\",\\\"each\\\",\\\"-track-array\\\",\\\"if\\\",\\\"eq\\\",\\\"li\\\",\\\"div\\\",\\\"or\\\",\\\"number-format\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/components/calculation-breakdown.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    classNames: ['calculation-breakdown'],\n    steps: (0, _object.computed)('calc', 'data', 'inputs', function () {\n      const calc = (0, _object.get)(this, 'calc');\n      const inputs = (0, _object.get)(this, 'inputs') || {};\n      const steps = [];\n      if (!calc) {\n        return [];\n      }\n\n      /* eslint-disable quote-props */\n      const chars = {\n        'LEFT-BRACKET': '(',\n        'RIGHT-BRACKET': ')',\n        PLUS: '+',\n        MINUS: '\\u2212',\n        MULTIPLY: '\\u00D7',\n        DIV: '/'\n      };\n      /* eslint-enable quote-props */\n\n      calc.forEach(step => {\n        if (step.operator) {\n          steps.pushObject({\n            type: 'operator',\n            char: (0, _object.get)(chars, step.operator)\n          });\n        } else if (step.name) {\n          steps.pushObject({\n            type: 'input',\n            name: step.name,\n            value: (0, _object.get)(inputs, step.input)\n          });\n        } else if (step.number) {\n          steps.pushObject({\n            type: 'number',\n            value: (0, _object.get)(step, 'number')\n          });\n        }\n      });\n      return steps;\n    })\n  }));\n});","define(\"portal/components/charts/data-table\", [\"exports\", \"@ember/component\", \"@ember/object\", \"portal/helpers/format-number\", \"moment\", \"@ember/template-factory\"], function (_exports, _component, _object, _formatNumber, _moment, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"portal/helpers/format-number\",0,\"moment\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#each this.data as |row|}}\n    <tr>\n      <td>{{get row 0}}</td>\n      <td class='text-right'>{{get row 1}}</td>\n    </tr>\n  {{/each}}\n  */\n  {\n    \"id\": \"BPUPrTnc\",\n    \"block\": \"[[[42,[28,[37,1],[[28,[37,1],[[30,0,[\\\"data\\\"]]],null]],null],null,[[[1,\\\"  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,4],[[30,1],0],null]],[13],[1,\\\"\\\\n    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,[28,[35,4],[[30,1],1],null]],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null]],[\\\"row\\\"],false,[\\\"each\\\",\\\"-track-array\\\",\\\"tr\\\",\\\"td\\\",\\\"get\\\"]]\",\n    \"moduleName\": \"portal/components/charts/data-table.hbs\",\n    \"isStrictMode\": false\n  });\n\n  //import layout from '../../templates/components/charts/data-table';\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    // layout,\n\n    classNames: ['chart', 'chart--data-table', 'data-table'],\n    tagName: 'table',\n    data: (0, _object.computed)('metrics', 'period.{start,type}', function () {\n      const metrics = (0, _object.get)(this, 'metrics');\n      const date = (0, _moment.default)((0, _object.get)(this, 'period.start'), 'YYYY-MM').endOf('month').toDate();\n      const periodType = (0, _object.get)(this, 'period.type');\n      const table = [];\n      metrics.forEach(metric => {\n        const format = (0, _object.get)(metric, 'meta.format');\n        const series = (0, _object.get)(metric, 'series') || [];\n        const periods = (0, _object.get)(series.objectAt(0) || [], 'periods') || [];\n        const period = periods.find(p => p.date === date.toISOString());\n        let value = period ? (0, _object.get)(period, `periodTypes.${periodType}.value`) : null;\n        if (value != null) {\n          value = (0, _formatNumber.formatNumber)([format, value]);\n        } else if (typeof value === 'undefined') {\n          value = null; // null not undefined\n        }\n        table.push([(0, _object.get)(metric, 'meta.name'), value]);\n      });\n      return table;\n    })\n  }));\n});","define(\"portal/components/charts/gauge-chart\", [\"exports\", \"@ember/utils\", \"@ember/debug\", \"@ember/object\", \"ember-c3/components/c3-chart\", \"portal/helpers/format-number\"], function (_exports, _utils, _debug, _object, _c3Chart, _formatNumber) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/utils\",0,\"@ember/debug\",0,\"@ember/object\",0,\"ember-c3/components/c3-chart\",0,\"portal/helpers/format-number\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _c3Chart.default.extend({\n    classNames: ['chart', 'chart--gauge'],\n    reverseColors: false,\n    min: 0,\n    max: 1,\n    label: '% of target',\n    data: (0, _object.computed)('metrics', 'period.type', 'target', function () {\n      const metrics = (0, _object.get)(this, 'metrics');\n      const target = (0, _object.get)(this, 'target');\n      const periodType = (0, _object.get)(this, 'period.type');\n      const columns = [];\n      if (!metrics || (0, _utils.isEmpty)(metrics)) {\n        (false && (0, _debug.warn)('No data provided to gauge chart component.'));\n        return;\n      }\n      const name = (0, _object.get)(metrics[0], 'meta.name');\n      const metric = (0, _object.get)(metrics[0], `series.0.periods.0.periodTypes.${periodType}.value`) || 0;\n      const value = metric / target;\n      columns.push([name, value]);\n      return {\n        type: 'gauge',\n        columns\n      };\n    }),\n    size: {\n      height: 180\n    },\n    gauge: (0, _object.computed)('label', 'max', 'min', 'units', function () {\n      return {\n        label: {\n          format: (value, _ratio) => (0, _formatNumber.formatNumber)(['percentage', value], {\n            places: 2,\n            dashZero: false\n          }),\n          show: true // to turn off the min/max labels\n        },\n        min: (0, _object.get)(this, 'min'),\n        max: (0, _object.get)(this, 'max'),\n        // 100 is default\n        units: (0, _object.get)(this, 'label'),\n        width: 60 // for adjusting arc thickness\n      };\n    }),\n    color: (0, _object.computed)('max', 'min', 'reverseColors', function () {\n      const min = (0, _object.get)(this, 'min');\n      const max = (0, _object.get)(this, 'max');\n      const reverseColors = (0, _object.get)(this, 'reverseColors');\n      const values = [];\n      let colors = ['#ca1528', '#d02329', '#db382b', '#e6502e', '#ef6931', '#f08033', '#f09136', '#d0973c', '#b0973e', '#8c9341', '#688c44', '#498646'];\n      if (reverseColors) {\n        colors = colors.reverse();\n      }\n      for (let i = 0; i < colors.length; i++) {\n        values.push(min + i / colors.length * (max - min));\n      }\n      return {\n        pattern: colors,\n        threshold: {\n          unit: 'value',\n          // percentage is default\n          max: (0, _object.get)(this, 'max'),\n          // 100 is default\n          values\n        }\n      };\n    }),\n    legend: {\n      position: 'right'\n    }\n  });\n});","define(\"portal/components/charts/line-chart\", [\"exports\", \"@ember/array\", \"@ember/object\", \"@ember/debug\", \"ember-c3/components/c3-chart\", \"portal/helpers/format-number\", \"moment\"], function (_exports, _array, _object, _debug, _c3Chart, _formatNumber, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/array\",0,\"@ember/object\",0,\"@ember/debug\",0,\"ember-c3/components/c3-chart\",0,\"portal/helpers/format-number\",0,\"moment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _c3Chart.default.extend({\n    classNames: ['chart', 'chart--line'],\n    data: (0, _object.computed)('metrics', 'period.{end,start,type}', 'series', function () {\n      const periodType = (0, _object.get)(this, 'period.type');\n      const dates = [];\n      const seriesMeta = (0, _object.get)(this, 'series');\n      const metrics = (0, _object.get)(this, 'metrics');\n      const series = (0, _array.isArray)(metrics) ? metrics[0].series : metrics.series;\n      const columns = [];\n      if (!series) {\n        (false && (0, _debug.warn)('No series provided to line chart component.'));\n        return;\n      }\n      const start = (0, _moment.default)((0, _object.get)(this, 'period.start'), 'YYYY-MM').endOf('month').toDate();\n      const end = (0, _moment.default)((0, _object.get)(this, 'period.end'), 'YYYY-MM').endOf('month').toDate();\n      let currentPeriod = start;\n      while (currentPeriod <= end) {\n        dates.push(currentPeriod);\n        currentPeriod = (0, _moment.default)(currentPeriod).add(1, 'month').endOf('month').toDate();\n      }\n      seriesMeta.forEach((meta, seriesIndex) => {\n        const thisSeries = series.find(s => s.entity === (0, _object.get)(meta, 'id') || s.group === (0, _object.get)(meta, 'id')) || {};\n        const periods = thisSeries.periods || [];\n        columns.pushObject([(0, _object.get)(meta, 'name')]);\n        dates.forEach((date, periodIndex) => {\n          const period = periods.find(p => p.date === date.toISOString());\n          const value = period ? (0, _object.get)(period, `periodTypes.${periodType}.value`) : null;\n          columns[seriesIndex][periodIndex + 1] = value == null ? null : value;\n          currentPeriod = (0, _moment.default)(currentPeriod).add(1, 'month').endOf('month').toDate();\n        });\n      });\n      columns.unshift(['Periods', ...dates]);\n      return {\n        x: 'Periods',\n        columns\n      };\n    }),\n    axis: (0, _object.computed)('metrics', 'period.type', function () {\n      const metrics = (0, _object.get)(this, 'metrics');\n      const meta = (0, _array.isArray)(metrics) ? metrics[0].meta : metrics.meta;\n      let label;\n      let reduction;\n      let yAxisPlaces = 0;\n      const periodType = (0, _object.get)(this, 'period.type');\n      if (meta.format === 'PERCENTAGE') {\n        label = meta.name;\n      } else {\n        const series = (0, _array.isArray)(metrics) ? metrics[0].series : metrics.series;\n        let longest = 0;\n        series.forEach(({\n          periods\n        }) => {\n          periods.forEach(period => {\n            const current = period ? (0, _object.get)(period, `periodTypes.${periodType}.value`) : null;\n            if (current > longest) {\n              longest = current;\n            }\n          });\n        });\n        const longestLength = Math.floor(longest).toString().length;\n        const setsOfThree = Math.ceil(longestLength / 3) - 1;\n        reduction = Math.pow(10, setsOfThree * 3);\n        let reductionText;\n        yAxisPlaces = longestLength % 3 === 1 ? 3 - longestLength : 0;\n        switch (setsOfThree) {\n          case 1:\n            reductionText = 'thousands';\n            break;\n          case 2:\n            reductionText = 'millions';\n            break;\n          case 3:\n            reductionText = 'billions';\n            break;\n          case 4:\n            reductionText = 'trillions';\n            break;\n          default:\n            if (setsOfThree) {\n              reductionText = '⨉ ' + reduction;\n            }\n            break;\n        }\n        if (reductionText) {\n          label = `${meta.name} (${reductionText})`;\n        } else {\n          label = meta.name;\n        }\n      }\n      return {\n        x: {\n          type: 'timeseries',\n          tick: {\n            format(tick) {\n              return (0, _moment.default)(tick).format('MMM-YY');\n            }\n          }\n        },\n        y: {\n          label: {\n            text: label,\n            position: 'outer-middle'\n          },\n          tick: {\n            format(tick) {\n              if (meta.format === 'PERCENTAGE') {\n                return (0, _formatNumber.formatNumber)(['percentage', tick], {\n                  places: 2,\n                  dashZero: false\n                });\n              } else {\n                return (0, _formatNumber.formatNumber)(tick / reduction, {\n                  places: yAxisPlaces,\n                  dashZero: false\n                });\n              }\n            }\n          }\n        }\n      };\n    }),\n    size: {\n      height: 220\n    },\n    grid: {\n      x: {\n        show: false\n      },\n      y: {\n        show: true\n      }\n    },\n    tooltip: (0, _object.computed)('metrics', function () {\n      const metrics = (0, _object.get)(this, 'metrics');\n      const meta = (0, _array.isArray)(metrics) ? metrics[0].meta : metrics.meta;\n      return {\n        show: true,\n        format: {\n          title: date => (0, _moment.default)(date).format('MMMM YYYY'),\n          value(value) {\n            if (meta.format === 'PERCENTAGE') {\n              return (0, _formatNumber.formatNumber)(['percentage', value], {\n                sigfigs: 4,\n                dashZero: false\n              });\n            } else if (meta.format === 'CURRENCY') {\n              return (0, _formatNumber.formatNumber)(['currency', value], {\n                places: value >= 100 ? 0 : 2,\n                dashZero: false\n              });\n            } else {\n              const numberLength = Math.floor(value).toString().length;\n              return (0, _formatNumber.formatNumber)(value, {\n                places: numberLength > 3 ? 0 : 3 - numberLength,\n                dashZero: false\n              });\n            }\n          }\n        }\n      };\n    }),\n    legend: {\n      position: 'bottom'\n    }\n  });\n});","define(\"portal/components/charts/pie-chart\", [\"exports\", \"@ember/utils\", \"@ember/object\", \"@ember/debug\", \"ember-c3/components/c3-chart\"], function (_exports, _utils, _object, _debug, _c3Chart) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/utils\",0,\"@ember/object\",0,\"@ember/debug\",0,\"ember-c3/components/c3-chart\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _c3Chart.default.extend({\n    classNames: ['chart', 'chart--pie'],\n    markEmptySeries: true,\n    markNegativeSeries: true,\n    data: (0, _object.computed)('markEmptySeries', 'markNegativeSeries', 'metrics', 'period.type', function () {\n      const metrics = (0, _object.get)(this, 'metrics');\n      const periodType = (0, _object.get)(this, 'period.type');\n      const markEmpty = (0, _object.get)(this, 'markEmptySeries');\n      const markNegative = (0, _object.get)(this, 'markNegativeSeries');\n      const columns = [];\n      if (!metrics || (0, _utils.isEmpty)(metrics)) {\n        (false && (0, _debug.warn)('No data provided to pie chart component.'));\n        return;\n      }\n      metrics.forEach(metric => {\n        let name = (0, _object.get)(metric, 'meta.name');\n        const value = (0, _object.get)(metric, `series.0.periods.0.periodTypes.${periodType}.value`) || 0;\n        if (markEmpty && !value) {\n          name += ' (no data)';\n        }\n        if (markNegative && value != null && value < 0) {\n          name += ' (negative)';\n        }\n        columns.push([name, value]);\n      });\n\n      // Sort by value\n      columns.sort((a, b) => b[1] - a[1]);\n      return {\n        type: 'pie',\n        columns\n      };\n    }),\n    size: {\n      height: 220\n    },\n    legend: {\n      position: 'right'\n    }\n  });\n});","define(\"portal/components/checklist\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/service\", \"@ember/object\", \"ember-changeset\", \"@ember/runloop\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _tracking, _service, _object, _emberChangeset, _runloop, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"@ember/object\",0,\"ember-changeset\",0,\"@ember/runloop\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <ModalDialog\n    @containerClass='modal-content w-auto'\n    @translucentOverlay={{true}}\n    @overlayClass='modal'\n    @onClose={{@onClose}}\n  >\n    <div class='modal-header'>\n      <h3 class='modal-title'>\n        {{t 'common.Checklist'}}\n      </h3>\n    </div>\n    <div class='modal-body' style='max-width: 768px'>\n      <p class='mt-0'>\n        {{t 'components.checklist.checklistExplanation'}}\n      </p>\n      <div class='bg-white border rounded checklist__container px-3'>\n        {{#each @checklist as |item|}}\n          <div class='d-flex align-items-center py-2'>\n            <label>\n              <Input\n                @type='checkbox'\n                class='form-check-input md-size-checkbox m-0'\n                disabled={{not @editable}}\n                @checked={{item.complete}}\n              />\n            </label>\n            <span\n              class='btn btn-link ms-3'\n              type='button'\n              {{on 'click' (fn this.editQuestion item)}}\n            >{{item.title}}</span>\n          </div>\n        {{else if (not @editable)}}\n          <div class='p-2'>{{t 'components.checklist.No checklist items'}}</div>\n        {{/each}}\n  \n        {{#if @editable}}\n          <div class='d-flex align-items-center py-2'>\n            <FaIcon @icon='plus' />\n            <Input\n              @type='text'\n              class='form-control ms-3 w-auto'\n              placeholder={{t 'common.Add'}}\n              @value={{this.newQuestionTitle}}\n              disabled={{not @editable}}\n              {{did-insert this.setFocus}}\n              {{on 'keypress' this.onChangeNewQuestionInput}}\n            />\n            {{#if this.newQuestionTitle.length}}\n              <button\n                type='button'\n                disabled={{not @editable}}\n                class='ms-2 text-light btn btn-secondary me-2'\n                {{on 'click' (perform this.addNewQuestion)}}\n              >{{t 'common.Add'}}</button>\n            {{/if}}\n          </div>\n        {{/if}}\n      </div>\n    </div>\n    <div class='modal-footer text-right'>\n      <button\n        type='button'\n        class='btn btn-secondary text-white text-nowrap m-1'\n        {{on 'click' @onClose}}\n      >\n        {{t 'common.Cancel'}}\n      </button>\n  \n      {{#if @editable}}\n        <button\n          type='button'\n          disabled={{this.isSaving}}\n          class='btn btn-primary text-nowrap m-1'\n          {{on 'click' (perform this.saveChecklist)}}\n        >\n          {{#if this.isSaving}}\n            <span class='spinner-border spinner-border-sm'></span>&nbsp;&nbsp;{{t\n              'common.Saving'\n            }}&hellip;\n          {{else}}\n            {{t 'common.Save'}}\n          {{/if}}\n        </button>\n      {{/if}}\n    </div>\n  </ModalDialog>\n  \n  {{#if this.showEditQuestion}}\n    <ModalDialog\n      @containerClass='modal-content  w-auto'\n      @translucentOverlay={{true}}\n      @overlayClass='modal'\n    >\n      <div class='modal-body'>\n        <PtlInput\n          @type='text'\n          @label={{t 'common.Title'}}\n          @key='title'\n          @model={{this.question}}\n          @required={{true}}\n          @forceValidationVisible={{gt this.saveQuestion.performCount 0}}\n          disabled={{or this.saveQuestion.isRunning (not @editable)}}\n        />\n        <PtlInput\n          @type='text'\n          @label={{t 'common.Description'}}\n          @key='description'\n          @model={{this.question}}\n          @forceValidationVisible={{gt this.saveQuestion.performCount 0}}\n          disabled={{or this.saveQuestion.isRunning (not @editable)}}\n        />\n      </div>\n      <div\n        class='modal-footer d-flex align-items-center\n          {{if @editable \"justify-content-between\" \"justify-content-end\"}}'\n      >\n        {{#if @editable}}\n          <button\n            class='btn btn-link text-danger text-decoration-underline float-start'\n            type='button'\n            {{on 'click' (perform this.deleteQuestion)}}\n            disabled={{or\n              this.deleteQuestion.isRunning\n              this.saveQuestion.isRunning\n            }}\n          >\n            {{t 'common.Delete'}}\n          </button>\n        {{/if}}\n        <div>\n          <button\n            type='button'\n            class='btn btn-secondary text-white text-nowrap m-1'\n            {{on 'click' (fn (mut this.showEditQuestion) false)}}\n          >\n            {{t 'common.Cancel'}}\n          </button>\n          {{#if @editable}}\n            <button\n              type='button'\n              disabled={{or\n                this.deleteQuestion.isRunning\n                this.saveQuestion.isRunning\n              }}\n              class='btn btn-primary text-nowrap m-1'\n              {{on 'click' (perform this.saveQuestion)}}\n            >\n              {{#if this.saveQuestion.isRunning}}\n                <span\n                  class='spinner-border spinner-border-sm'\n                ></span>&nbsp;&nbsp;{{t 'common.Saving'}}&hellip;\n              {{else}}\n                {{t 'common.Save'}}\n              {{/if}}\n            </button>\n          {{/if}}\n        </div>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"7KNJ7DpU\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@containerClass\\\",\\\"@translucentOverlay\\\",\\\"@overlayClass\\\",\\\"@onClose\\\"],[\\\"modal-content w-auto\\\",true,\\\"modal\\\",[30,1]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h3\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,3],[\\\"common.Checklist\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"modal-body\\\"],[14,5,\\\"max-width: 768px\\\"],[12],[1,\\\"\\\\n    \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,3],[\\\"components.checklist.checklistExplanation\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"bg-white border rounded checklist__container px-3\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[30,2]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"d-flex align-items-center py-2\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,8],[[24,0,\\\"form-check-input md-size-checkbox m-0\\\"],[16,\\\"disabled\\\",[28,[37,9],[[30,4]],null]]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,3,[\\\"complete\\\"]]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,1],[24,0,\\\"btn btn-link ms-3\\\"],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,12],[[30,0,[\\\"editQuestion\\\"]],[30,3]],null]],null],[12],[1,[30,3,[\\\"title\\\"]]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],[[[41,[28,[37,9],[[30,4]],null],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"p-2\\\"],[12],[1,[28,[35,3],[\\\"components.checklist.No checklist items\\\"],null]],[13],[1,\\\"\\\\n      \\\"]],[]],null]],[]]],[1,\\\"\\\\n\\\"],[41,[30,4],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"d-flex align-items-center py-2\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,14],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"\\\\n          \\\"],[8,[39,8],[[24,0,\\\"form-control ms-3 w-auto\\\"],[16,\\\"placeholder\\\",[28,[37,3],[\\\"common.Add\\\"],null]],[16,\\\"disabled\\\",[28,[37,9],[[30,4]],null]],[4,[38,15],[[30,0,[\\\"setFocus\\\"]]],null],[4,[38,11],[\\\"keypress\\\",[30,0,[\\\"onChangeNewQuestionInput\\\"]]],null]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"newQuestionTitle\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newQuestionTitle\\\",\\\"length\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[16,\\\"disabled\\\",[28,[37,9],[[30,4]],null]],[24,0,\\\"ms-2 text-light btn btn-secondary me-2\\\"],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"addNewQuestion\\\"]]],null]],null],[12],[1,[28,[35,3],[\\\"common.Add\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white text-nowrap m-1\\\"],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[30,1]],null],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,3],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,4],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isSaving\\\"]]],[24,0,\\\"btn btn-primary text-nowrap m-1\\\"],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"saveChecklist\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isSaving\\\"]],[[[1,\\\"          \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,3],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,3],[\\\"common.Save\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"showEditQuestion\\\"]],[[[1,\\\"  \\\"],[8,[39,0],null,[[\\\"@containerClass\\\",\\\"@translucentOverlay\\\",\\\"@overlayClass\\\"],[\\\"modal-content  w-auto\\\",true,\\\"modal\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,18],[[16,\\\"disabled\\\",[28,[37,19],[[30,0,[\\\"saveQuestion\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,4]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,3],[\\\"common.Title\\\"],null],\\\"title\\\",[30,0,[\\\"question\\\"]],true,[28,[37,20],[[30,0,[\\\"saveQuestion\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,18],[[16,\\\"disabled\\\",[28,[37,19],[[30,0,[\\\"saveQuestion\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,4]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,3],[\\\"common.Description\\\"],null],\\\"description\\\",[30,0,[\\\"question\\\"]],[28,[37,20],[[30,0,[\\\"saveQuestion\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[15,0,[29,[\\\"modal-footer d-flex align-items-center\\\\n        \\\",[52,[30,4],\\\"justify-content-between\\\",\\\"justify-content-end\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[30,4],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline float-start\\\"],[16,\\\"disabled\\\",[28,[37,19],[[30,0,[\\\"deleteQuestion\\\",\\\"isRunning\\\"]],[30,0,[\\\"saveQuestion\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"deleteQuestion\\\"]]],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,3],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[10,0],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white text-nowrap m-1\\\"],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,12],[[28,[37,21],[[30,0,[\\\"showEditQuestion\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,3],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,4],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[16,\\\"disabled\\\",[28,[37,19],[[30,0,[\\\"deleteQuestion\\\",\\\"isRunning\\\"]],[30,0,[\\\"saveQuestion\\\",\\\"isRunning\\\"]]],null]],[24,0,\\\"btn btn-primary text-nowrap m-1\\\"],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"saveQuestion\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveQuestion\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,3],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,3],[\\\"common.Save\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@onClose\\\",\\\"@checklist\\\",\\\"item\\\",\\\"@editable\\\"],false,[\\\"modal-dialog\\\",\\\"div\\\",\\\"h3\\\",\\\"t\\\",\\\"p\\\",\\\"each\\\",\\\"-track-array\\\",\\\"label\\\",\\\"input\\\",\\\"not\\\",\\\"span\\\",\\\"on\\\",\\\"fn\\\",\\\"if\\\",\\\"fa-icon\\\",\\\"did-insert\\\",\\\"button\\\",\\\"perform\\\",\\\"ptl-input\\\",\\\"or\\\",\\\"gt\\\",\\\"mut\\\"]]\",\n    \"moduleName\": \"portal/components/checklist.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor3, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _initializerDefineProperty(this, \"showEditQuestion\", _descriptor6, this);\n      _initializerDefineProperty(this, \"question\", _descriptor7, this);\n      _initializerDefineProperty(this, \"newQuestionTitle\", _descriptor8, this);\n      _defineProperty(this, \"validateTitle\", newValue => {\n        const title = newValue;\n        if (title.length > 255) {\n          return this.intl.t('validation.titleCannotBeLongerThan255Characters');\n        }\n        return title && title.length > 0 || this.intl.t('validation.Please provide a title');\n      });\n      _defineProperty(this, \"questionValidator\", ({\n        key,\n        newValue,\n        oldValue\n      }) => {\n        switch (key) {\n          case 'title':\n            return this.validateTitle(newValue, oldValue);\n          default:\n            break;\n        }\n      });\n      _defineProperty(this, \"validationMap\", {\n        title: this.validateTitle\n      });\n      _defineProperty(this, \"deleteQuestion\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const questionId = this.question.get('id');\n          yield this.args.deleteQuestion.perform(questionId);\n          this.showEditQuestion = false;\n        }\n      }), null, \"deleteQuestion\", null));\n      _defineProperty(this, \"addNewQuestion\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.args.addNewQuestion.perform(this.newQuestionTitle);\n          this.newQuestionTitle = '';\n        }\n      }), null, \"addNewQuestion\", null));\n      _defineProperty(this, \"saveQuestion\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.question.validate();\n          if (!this.question.isValid) return;\n          yield this.question.save();\n          this.showEditQuestion = false;\n        }\n      }), null, \"saveQuestion\", null));\n      _defineProperty(this, \"saveChecklist\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield Promise.all(this.args.checklist.map(question => {\n              if (question.hasDirtyAttributes) {\n                return question.save();\n              }\n              return undefined;\n            }));\n            this.args.onClose();\n            this.notifications.success(this.intl.t('components.checklist.Successfully saved checklist'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('components.checklist.somethingWentWrongWhileSavingTheChecklist'),\n              error\n            });\n          }\n        }\n      }), null, \"saveChecklist\", null));\n    }\n    willDestroy() {\n      super.willDestroy(...arguments);\n      this.args.checklist.forEach(question => {\n        if (question.hasDirtyAttributes) {\n          question.rollbackAttributes();\n        }\n      });\n    }\n    editQuestion(question) {\n      this.question = (0, _emberChangeset.Changeset)(question, this.questionValidator, this.validationMap);\n      this.showEditQuestion = true;\n    }\n    get isSaving() {\n      return this.saveChecklist.isRunning;\n    }\n    setFocus(e) {\n      (0, _runloop.next)(() => {\n        e.focus();\n      });\n    }\n    onChangeNewQuestionInput(e) {\n      if (e.key === 'Enter' && e.target.value.length) {\n        this.addNewQuestion.perform();\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"showEditQuestion\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"question\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"newQuestionTitle\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"editQuestion\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"editQuestion\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setFocus\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setFocus\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onChangeNewQuestionInput\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onChangeNewQuestionInput\"), _class.prototype), _class));\n});","define(\"portal/components/coa-editor-line\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@ember/utils\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _object, _utils, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"@ember/utils\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='line'>\n    {{#if this.account.children.length}}\n      <button\n        class='float-start children text-button'\n        type='button'\n        {{action 'toggleHidingChildren'}}\n      >\n        <FaIcon @icon={{if this.hidingChildren 'caret-right' 'caret-down'}} />\n      </button>\n    {{/if}}\n  \n    <span class='label'><Input\n        placeholder='Account Name'\n        @value={{this.account.name}}\n        class='text-input'\n      /></span>\n  \n    <div class='controls'>\n      <button\n        class='text-button'\n        type='button'\n        {{action 'toggleIsEditingDescription'}}\n      >Description</button>\n      <SelectInput\n        @value={{this.account.debitCredit}}\n        @action={{fn (mut this.account.debitCredit)}}\n        @class='select-box'\n        as |si|\n      >\n        <si.option @value='CREDIT'>Cr</si.option>\n        <si.option @value='DEBIT'>Dr</si.option>\n      </SelectInput>\n  \n      <SelectInput\n        @value={{this.account.format}}\n        @action={{fn (mut this.account.format)}}\n        @class='select-box'\n        as |si|\n      >\n        <si.option @value='CURRENCY'>$</si.option>\n        <si.option @value='INTEGER'>Int</si.option>\n        <si.option @value='NUMBER'>#</si.option>\n        <si.option @value='PERCENTAGE'>%</si.option>\n      </SelectInput>\n  \n      <button\n        class='text-button text-button--delete'\n        type='button'\n        {{action 'deleteAccount' this.account}}\n      ><FaIcon @icon='trash' /></button>\n      <div class='handle'><FaIcon @icon='bars' /></div>\n      <button\n        class='addChild text-button'\n        type='button'\n        {{action 'createChildAccount' this.account}}\n      ><FaIcon @icon='plus' /></button>\n    </div>\n  \n    <div class='settings'>\n      <span class='drcr'>{{if\n          (eq this.account.debitCredit 'DEBIT')\n          'Dr'\n          'Cr'\n        }}</span>\n      <span class='format'>\n        {{if (eq this.account.format 'CURRENCY') '$'}}\n        {{if (eq this.account.format 'INTEGER') 'Int'}}\n        {{if (eq this.account.format 'NUMBER') '#'}}\n        {{if (eq this.account.format 'PERCENTAGE') '%'}}\n      </span>\n      {{! This is just to keep the spacing consistent }}\n      <button class='text-button text-button--delete' type='button'><FaIcon\n          @icon='trash'\n        /></button>\n      <div class='handle'><FaIcon @icon='bars' /></div>\n      <button class='addChild text-button' type='button'>\n        <FaIcon @icon='plus' /></button>\n    </div>\n  </div>\n  \n  {{#if this.account.children.length}}\n    {{#if this.hidingChildren}}{{else}}\n      <ol>\n        {{#each this.account.children as |childAccount|}}\n          <CoaEditorLine\n            @account={{childAccount}}\n            @deleteAccount={{action 'deleteAccount'}}\n            @createChildAccount={{action 'createChildAccount'}}\n          />\n        {{/each}}\n      </ol>\n    {{/if}}\n  {{/if}}\n  \n  {{#if this.isEditingDescription}}\n    <ModalDialog\n      @onClose={{action 'toggleIsEditingDescription'}}\n      @translucentOverlay={{true}}\n      @overlayClass='modal'\n      @containerClass='block-module'\n    >\n      <Textarea\n        @value={{this.account.description}}\n        class='account-description-editor'\n      />\n  \n      <footer class='block-module__footer'>\n        <LoadingButton\n          @class='float-end button button--spaced'\n          @isLoading={{this.isSavingDescription}}\n          @action={{action 'saveDescription'}}\n        >Save</LoadingButton>\n        <button\n          class='float-end button button--plain button--spaced'\n          type='button'\n          {{action 'toggleIsEditingDescription'}}\n        >{{t 'common.Cancel'}}</button>\n      </footer>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"X13soPGj\",\n    \"block\": \"[[[10,0],[14,0,\\\"line\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"account\\\",\\\"children\\\",\\\"length\\\"]],[[[1,\\\"    \\\"],[11,\\\"button\\\"],[24,0,\\\"float-start children text-button\\\"],[24,4,\\\"button\\\"],[4,[38,3],[[30,0],\\\"toggleHidingChildren\\\"],null],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"hidingChildren\\\"]],\\\"caret-right\\\",\\\"caret-down\\\"]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[10,1],[14,0,\\\"label\\\"],[12],[8,[39,6],[[24,\\\"placeholder\\\",\\\"Account Name\\\"],[24,0,\\\"text-input\\\"]],[[\\\"@value\\\"],[[30,0,[\\\"account\\\",\\\"name\\\"]]]],null],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"controls\\\"],[12],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,4,\\\"button\\\"],[4,[38,3],[[30,0],\\\"toggleIsEditingDescription\\\"],null],[12],[1,\\\"Description\\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,7],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"account\\\",\\\"debitCredit\\\"]],[28,[37,8],[[28,[37,9],[[30,0,[\\\"account\\\",\\\"debitCredit\\\"]]],null]],null],\\\"select-box\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"CREDIT\\\"]],[[\\\"default\\\"],[[[[1,\\\"Cr\\\"]],[]]]]],[1,\\\"\\\\n      \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"DEBIT\\\"]],[[\\\"default\\\"],[[[[1,\\\"Dr\\\"]],[]]]]],[1,\\\"\\\\n    \\\"]],[1]]]]],[1,\\\"\\\\n\\\\n    \\\"],[8,[39,7],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"account\\\",\\\"format\\\"]],[28,[37,8],[[28,[37,9],[[30,0,[\\\"account\\\",\\\"format\\\"]]],null]],null],\\\"select-box\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[30,2,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"CURRENCY\\\"]],[[\\\"default\\\"],[[[[1,\\\"$\\\"]],[]]]]],[1,\\\"\\\\n      \\\"],[8,[30,2,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"INTEGER\\\"]],[[\\\"default\\\"],[[[[1,\\\"Int\\\"]],[]]]]],[1,\\\"\\\\n      \\\"],[8,[30,2,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"NUMBER\\\"]],[[\\\"default\\\"],[[[[1,\\\"#\\\"]],[]]]]],[1,\\\"\\\\n      \\\"],[8,[30,2,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"PERCENTAGE\\\"]],[[\\\"default\\\"],[[[[1,\\\"%\\\"]],[]]]]],[1,\\\"\\\\n    \\\"]],[2]]]]],[1,\\\"\\\\n\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--delete\\\"],[24,4,\\\"button\\\"],[4,[38,3],[[30,0],\\\"deleteAccount\\\",[30,0,[\\\"account\\\"]]],null],[12],[8,[39,4],null,[[\\\"@icon\\\"],[\\\"trash\\\"]],null],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"handle\\\"],[12],[8,[39,4],null,[[\\\"@icon\\\"],[\\\"bars\\\"]],null],[13],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"addChild text-button\\\"],[24,4,\\\"button\\\"],[4,[38,3],[[30,0],\\\"createChildAccount\\\",[30,0,[\\\"account\\\"]]],null],[12],[8,[39,4],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"settings\\\"],[12],[1,\\\"\\\\n    \\\"],[10,1],[14,0,\\\"drcr\\\"],[12],[1,[52,[28,[37,10],[[30,0,[\\\"account\\\",\\\"debitCredit\\\"]],\\\"DEBIT\\\"],null],\\\"Dr\\\",\\\"Cr\\\"]],[13],[1,\\\"\\\\n    \\\"],[10,1],[14,0,\\\"format\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[52,[28,[37,10],[[30,0,[\\\"account\\\",\\\"format\\\"]],\\\"CURRENCY\\\"],null],\\\"$\\\"]],[1,\\\"\\\\n      \\\"],[1,[52,[28,[37,10],[[30,0,[\\\"account\\\",\\\"format\\\"]],\\\"INTEGER\\\"],null],\\\"Int\\\"]],[1,\\\"\\\\n      \\\"],[1,[52,[28,[37,10],[[30,0,[\\\"account\\\",\\\"format\\\"]],\\\"NUMBER\\\"],null],\\\"#\\\"]],[1,\\\"\\\\n      \\\"],[1,[52,[28,[37,10],[[30,0,[\\\"account\\\",\\\"format\\\"]],\\\"PERCENTAGE\\\"],null],\\\"%\\\"]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[1,\\\"    \\\"],[10,\\\"button\\\"],[14,0,\\\"text-button text-button--delete\\\"],[14,4,\\\"button\\\"],[12],[8,[39,4],null,[[\\\"@icon\\\"],[\\\"trash\\\"]],null],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"handle\\\"],[12],[8,[39,4],null,[[\\\"@icon\\\"],[\\\"bars\\\"]],null],[13],[1,\\\"\\\\n    \\\"],[10,\\\"button\\\"],[14,0,\\\"addChild text-button\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"account\\\",\\\"children\\\",\\\"length\\\"]],[[[1,\\\"  \\\"],[41,[30,0,[\\\"hidingChildren\\\"]],[[],[]],[[[1,\\\"\\\\n    \\\"],[10,\\\"ol\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,13],[[28,[37,13],[[30,0,[\\\"account\\\",\\\"children\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[8,[39,14],null,[[\\\"@account\\\",\\\"@deleteAccount\\\",\\\"@createChildAccount\\\"],[[30,3],[28,[37,3],[[30,0],\\\"deleteAccount\\\"],null],[28,[37,3],[[30,0],\\\"createChildAccount\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEditingDescription\\\"]],[[[1,\\\"  \\\"],[8,[39,15],null,[[\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@overlayClass\\\",\\\"@containerClass\\\"],[[28,[37,3],[[30,0],\\\"toggleIsEditingDescription\\\"],null],true,\\\"modal\\\",\\\"block-module\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,16],[[24,0,\\\"account-description-editor\\\"]],[[\\\"@value\\\"],[[30,0,[\\\"account\\\",\\\"description\\\"]]]],null],[1,\\\"\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,18],null,[[\\\"@class\\\",\\\"@isLoading\\\",\\\"@action\\\"],[\\\"float-end button button--spaced\\\",[30,0,[\\\"isSavingDescription\\\"]],[28,[37,3],[[30,0],\\\"saveDescription\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"Save\\\"]],[]]]]],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"float-end button button--plain button--spaced\\\"],[24,4,\\\"button\\\"],[4,[38,3],[[30,0],\\\"toggleIsEditingDescription\\\"],null],[12],[1,[28,[35,19],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"si\\\",\\\"si\\\",\\\"childAccount\\\"],false,[\\\"div\\\",\\\"if\\\",\\\"button\\\",\\\"action\\\",\\\"fa-icon\\\",\\\"span\\\",\\\"input\\\",\\\"select-input\\\",\\\"fn\\\",\\\"mut\\\",\\\"eq\\\",\\\"ol\\\",\\\"each\\\",\\\"-track-array\\\",\\\"coa-editor-line\\\",\\\"modal-dialog\\\",\\\"textarea\\\",\\\"footer\\\",\\\"loading-button\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/components/coa-editor-line.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    notifications: (0, _service.inject)(),\n    hidingChildren: false,\n    tagName: 'li',\n    classNameBindings: ['account.children.length:heading'],\n    attributeBindings: ['id'],\n    id: (0, _object.computed)('account.tmpId', function () {\n      const tmpId = (0, _object.get)(this, 'account.tmpId');\n      return !(0, _utils.isEmpty)(tmpId) ? 'menuItem_' + tmpId : null;\n    }),\n    actions: {\n      deleteAccount(account) {\n        this.deleteAccount(account);\n      },\n      createChildAccount(account) {\n        this.createChildAccount(account);\n      },\n      toggleHidingChildren() {\n        this.toggleProperty('hidingChildren');\n      },\n      toggleIsEditingDescription() {\n        this.toggleProperty('isEditingDescription');\n      },\n      saveDescription() {\n        const account = (0, _object.get)(this, 'account');\n        const notifications = (0, _object.get)(this, 'notifications');\n        (0, _object.set)(this, 'isSavingDescription', true);\n        account.save().then(() => {\n          (0, _object.set)(this, 'isSavingDescription', false);\n          (0, _object.set)(this, 'isEditingDescription', false);\n          notifications.success('Account description was successfully saved.');\n        }, () => {\n          (0, _object.set)(this, 'isSavingDescription', false);\n          (0, _object.set)(this, 'isEditingDescription', false);\n          notifications.error(`Sorry, the account description failed to save.`);\n        });\n      }\n    }\n  }));\n});","define(\"portal/components/coa-editor\", [\"exports\", \"@ember/component\", \"jquery\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _jquery, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"jquery\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#each this.nestedAccounts as |account|}}\n    <CoaEditorLine\n      @account={{account}}\n      @deleteAccount={{action 'deleteAccount'}}\n      @createChildAccount={{action 'createChildAccount'}}\n    />\n  {{else}}\n    <p class='ptl-placeholder'>This company has no accounts of this type.</p>\n  {{/each}}\n  */\n  {\n    \"id\": \"yJ4DF8us\",\n    \"block\": \"[[[42,[28,[37,1],[[28,[37,1],[[30,0,[\\\"nestedAccounts\\\"]]],null]],null],null,[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@account\\\",\\\"@deleteAccount\\\",\\\"@createChildAccount\\\"],[[30,1],[28,[37,3],[[30,0],\\\"deleteAccount\\\"],null],[28,[37,3],[[30,0],\\\"createChildAccount\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[1]],[[[1,\\\"  \\\"],[10,2],[14,0,\\\"ptl-placeholder\\\"],[12],[1,\\\"This company has no accounts of this type.\\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[\\\"account\\\"],false,[\\\"each\\\",\\\"-track-array\\\",\\\"coa-editor-line\\\",\\\"action\\\",\\\"p\\\"]]\",\n    \"moduleName\": \"portal/components/coa-editor.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    tagName: 'ol',\n    didInsertElement() {\n      this._super(...arguments);\n      (0, _jquery.default)(this.element).find('.line').hover(event => (0, _jquery.default)(event.target).addClass('hover'), event => (0, _jquery.default)(event.target).removeClass('hover'));\n      (0, _jquery.default)(this.element).nestedSortable({\n        handle: '.handle',\n        helper: 'clone',\n        items: 'li',\n        excludeRoot: true,\n        toleranceElement: '> div',\n        placeholder: 'dropzone',\n        update: this.updateList.bind(this)\n      });\n    },\n    updateList() {\n      var accounts = (0, _object.get)(this, 'accounts');\n      var nestingData = (0, _jquery.default)(this.element).nestedSortable('toArray');\n      accounts.beginPropertyChanges();\n      nestingData.forEach(line => {\n        var account = accounts.findBy('tmpId', line.item_id);\n        var parent = accounts.findBy('tmpId', line.parent_id);\n        if (account) {\n          (0, _object.set)(account, 'sortIndex', line.left);\n          (0, _object.set)(account, 'parent', parent);\n          var oldParent = (0, _object.get)(account, 'parent.tmpId');\n          if (oldParent !== (0, _object.get)(line, 'parent_id')) {\n            account.send('becomeDirty');\n          }\n        } else {\n          this.send('error', new Error(`Could not find account with id ${line.item_id}`));\n        }\n      });\n      nestingData.forEach(line => {\n        var account = accounts.findBy('tmpId', line.item_id);\n        var children = accounts.filterBy('parent.tmpId', line.item_id);\n        (0, _object.set)(account, 'isHeading', children.length > 0);\n      });\n      accounts.endPropertyChanges();\n    },\n    actions: {\n      deleteAccount(account) {\n        this.deleteAccount(account);\n      },\n      createChildAccount(account) {\n        this.createChildAccount(account);\n      }\n    }\n  }));\n});","define(\"portal/components/combo-box\", [\"exports\", \"@ember/component\", \"@ember/object\", \"jquery\", \"portal/components/combo-box\", \"@ember/runloop\", \"@ember/template-factory\"], function (_exports, _component, _object, _jquery, _comboBox, _runloop, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"jquery\",0,\"portal/components/combo-box\",0,\"@ember/runloop\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{!-- {{input\n    class=(or @class 'text-input')\n    type='text'\n    value=@searchTerm\n    placeholder=(if\n      @finderVisible (or @searchPlaceholder 'Type to search…') @placeholder\n    )\n    keyDown=(action 'keyDown' bubbles=false)\n    keyUp=(action 'keyUp' bubbles=false)\n    click=(action 'setFinderVisible' true bubbles=false)\n    focusIn=(action 'setFinderVisible' true bubbles=false)\n    autocomplete='off'\n  }} --}}\n  \n  <Input\n    @type='text'\n    @value={{this.searchTerm}}\n    class={{or @class 'text-input'}}\n    placeholder={{if\n      this.finderVisible\n      (or @searchPlaceholder 'Type to search…')\n      @placeholder\n    }}\n    {{on 'keydown' (action 'keyDown' bubbles=false)}}\n    {{on 'keyup' (action 'keyUp' bubbles=false)}}\n    {{on 'click' (action 'setFinderVisible' true bubbles=false)}}\n    {{on 'focusin' (action 'setFinderVisible' true bubbles=false)}}\n    autocomplete='off'\n  />\n  \n  {{#if this.finderVisible}}\n    {{#unless @isLoading}}\n      {{#if this.filteredOptions.length}}\n        <div class='combo-box__drop-down'>\n          {{#each this.filteredOptions as |option index|}}\n            <div\n              class='combo-box__drop-down-row\n                {{if\n                  (eq index this.selectedRow)\n                  \"combo-box__drop-down-row--selected\"\n                }}\n                {{concat \"combo-box__drop-down-row--\" index}}'\n              onclick={{action 'setItem' index bubbles=false}}\n              onmouseover={{fn (mut this.selectedRow) index}}\n              onmouseout={{action 'unSetHighlight' index bubbles=false}}\n              data-test-combo-box-option={{index}}\n            >\n              {{or (get option @key) option}}\n            </div>\n          {{/each}}\n        </div>\n      {{else if (or @emptyText @emptyButtonAction)}}\n        <div class='combo-box__drop-down'>\n          <div class='combo-box__drop-down-row combo-box__drop-down-row--empty'>\n            {{#if @emptyText}}\n              <span class='text-button--spaced'>\n                {{@emptyText}}\n              </span>\n            {{/if}}\n  \n            {{#if @emptyButtonAction}}\n              <button\n                class='text-button text-button--spaced'\n                type='button'\n                {{action @emptyButtonAction bubbles=false}}\n              >\n                {{or @emptyButtonText 'Click to update'}}\n              </button>\n            {{/if}}\n          </div>\n        </div>\n      {{/if}}\n    {{else}}\n      <div class='combo-box__drop-down'>\n        <div class='combo-box__drop-down-row combo-box__drop-down-row--loading'>\n          <LoadingIcon @type='spinner' />\n        </div>\n      </div>\n    {{/unless}}\n  {{/if}}\n  */\n  {\n    \"id\": \"4p+zbZ2l\",\n    \"block\": \"[[[1,\\\"\\\\n\\\"],[8,[39,0],[[16,0,[28,[37,1],[[30,1],\\\"text-input\\\"],null]],[16,\\\"placeholder\\\",[52,[30,0,[\\\"finderVisible\\\"]],[28,[37,1],[[30,2],\\\"Type to search…\\\"],null],[30,3]]],[24,\\\"autocomplete\\\",\\\"off\\\"],[4,[38,3],[\\\"keydown\\\",[28,[37,4],[[30,0],\\\"keyDown\\\"],[[\\\"bubbles\\\"],[false]]]],null],[4,[38,3],[\\\"keyup\\\",[28,[37,4],[[30,0],\\\"keyUp\\\"],[[\\\"bubbles\\\"],[false]]]],null],[4,[38,3],[\\\"click\\\",[28,[37,4],[[30,0],\\\"setFinderVisible\\\",true],[[\\\"bubbles\\\"],[false]]]],null],[4,[38,3],[\\\"focusin\\\",[28,[37,4],[[30,0],\\\"setFinderVisible\\\",true],[[\\\"bubbles\\\"],[false]]]],null]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"searchTerm\\\"]]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"finderVisible\\\"]],[[[41,[51,[30,4]],[[[41,[30,0,[\\\"filteredOptions\\\",\\\"length\\\"]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"combo-box__drop-down\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,0,[\\\"filteredOptions\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[10,0],[15,0,[29,[\\\"combo-box__drop-down-row\\\\n              \\\",[52,[28,[37,9],[[30,6],[30,0,[\\\"selectedRow\\\"]]],null],\\\"combo-box__drop-down-row--selected\\\"],\\\"\\\\n              \\\",[28,[37,10],[\\\"combo-box__drop-down-row--\\\",[30,6]],null]]]],[15,\\\"onclick\\\",[28,[37,4],[[30,0],\\\"setItem\\\",[30,6]],[[\\\"bubbles\\\"],[false]]]],[15,\\\"onmouseover\\\",[28,[37,11],[[28,[37,12],[[30,0,[\\\"selectedRow\\\"]]],null],[30,6]],null]],[15,\\\"onmouseout\\\",[28,[37,4],[[30,0],\\\"unSetHighlight\\\",[30,6]],[[\\\"bubbles\\\"],[false]]]],[15,\\\"data-test-combo-box-option\\\",[30,6]],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,1],[[28,[37,13],[[30,5],[30,7]],null],[30,5]],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[5,6]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,1],[[30,8],[30,9]],null],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"combo-box__drop-down\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"combo-box__drop-down-row combo-box__drop-down-row--empty\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,8],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"text-button--spaced\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,8]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,9],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--spaced\\\"],[24,4,\\\"button\\\"],[4,[38,4],[[30,0],[30,9]],[[\\\"bubbles\\\"],[false]]],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,1],[[30,10],\\\"Click to update\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]],null]],[]]]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"combo-box__drop-down\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"combo-box__drop-down-row combo-box__drop-down-row--loading\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,16],null,[[\\\"@type\\\"],[\\\"spinner\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],null]],[\\\"@class\\\",\\\"@searchPlaceholder\\\",\\\"@placeholder\\\",\\\"@isLoading\\\",\\\"option\\\",\\\"index\\\",\\\"@key\\\",\\\"@emptyText\\\",\\\"@emptyButtonAction\\\",\\\"@emptyButtonText\\\"],false,[\\\"input\\\",\\\"or\\\",\\\"if\\\",\\\"on\\\",\\\"action\\\",\\\"unless\\\",\\\"div\\\",\\\"each\\\",\\\"-track-array\\\",\\\"eq\\\",\\\"concat\\\",\\\"fn\\\",\\\"mut\\\",\\\"get\\\",\\\"span\\\",\\\"button\\\",\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/components/combo-box.hbs\",\n    \"isStrictMode\": false\n  });\n\n  // to lower case\n  function tlc(string) {\n    return String(string).toLowerCase();\n  }\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    layout: _comboBox.default,\n    classNames: ['combo-box'],\n    finderVisible: false,\n    selectedRow: 0,\n    searchTerm: '',\n    // Things that need to happen once, when the element is created\n    didInsertElement() {\n      this._super(...arguments);\n      // capture click events and check if they are for our component\n      // if they are not, we can close the drop down\n      const element = (0, _object.get)(this, 'elementId');\n      (0, _jquery.default)(window).on('click', event => {\n        if ((0, _object.get)(this, 'finderVisible') && (0, _jquery.default)(`#${element}`).has(event.target).length === 0 && !(0, _jquery.default)(`#${element}`).is(event.target)) {\n          this.send('setFinderVisible', false);\n        }\n      });\n\n      // we need to set the value on the initial render\n      const activeValue = (0, _object.get)(this, 'activeDisplayName');\n      (0, _object.set)(this, 'searchTerm', activeValue);\n    },\n    // Things that need to happen once, when the element is destroyed\n    willDestroyElement() {\n      this._super(...arguments);\n      // remove our listener\n      (0, _jquery.default)(window).off('click');\n    },\n    // Things that need to happen every time the element is re-rendered\n    willRender() {\n      this._super(...arguments);\n      // We only want to set the value when the search is not being used and the value has changed\n      const finderNotVisible = !(0, _object.get)(this, 'finderVisible');\n      const activeValue = (0, _object.get)(this, 'activeDisplayName');\n      const searchTerm = (0, _object.get)(this, 'searchTerm');\n      if (finderNotVisible && activeValue !== searchTerm) {\n        (0, _object.set)(this, 'searchTerm', activeValue);\n      }\n    },\n    filteredOptions: (0, _object.computed)('key', 'options', 'searchTerm', function () {\n      const key = (0, _object.get)(this, 'key');\n      const searchTerm = (0, _object.get)(this, 'searchTerm');\n      const options = (0, _object.get)(this, 'options');\n      if (searchTerm) {\n        return options.filter(option => {\n          const searchableValue = typeof option === 'object' ? (0, _object.get)(option, key) : option;\n          return tlc(searchableValue).includes(tlc(searchTerm));\n        });\n      } else {\n        return options;\n      }\n    }),\n    activeDisplayName: (0, _object.computed)('key', 'options', 'value', function () {\n      const value = (0, _object.get)(this, 'value');\n      const key = (0, _object.get)(this, 'key');\n      if (typeof value !== 'object') {\n        // Verbatim if value is not an object\n        return value;\n      } else if (key && value) {\n        // value[key] if both key and value are truthy\n        return (0, _object.get)(value, key);\n      } else {\n        // Empty string if nothing else matches\n        return '';\n      }\n    }),\n    actions: {\n      setFinderVisible(visible) {\n        if ((0, _object.get)(this, 'finderVisible') !== visible && !this.isDestroyed && !this.isDestroying) (0, _object.set)(this, 'finderVisible', visible);\n      },\n      keyDown(event) {\n        const selectedRow = (0, _object.get)(this, 'selectedRow');\n        switch (event.keyCode) {\n          // down arrow\n          case 38:\n            this.send('setFinderVisible', true);\n            if (selectedRow > 0) {\n              const newSelectedRow = selectedRow - 1;\n              (0, _object.set)(this, 'selectedRow', newSelectedRow);\n              this.send('keepSelectedRowVisible', newSelectedRow);\n            }\n            break;\n          // up arrow\n          case 40:\n            this.send('setFinderVisible', true);\n            if (selectedRow + 1 < (0, _object.get)(this, 'filteredOptions.length')) {\n              const newSelectedRow = selectedRow + 1;\n              (0, _object.set)(this, 'selectedRow', newSelectedRow);\n              this.send('keepSelectedRowVisible', newSelectedRow);\n            }\n            break;\n          // enter\n          case 13:\n            if ((0, _object.get)(this, 'finderVisible')) this.send('setItem', selectedRow);\n            event.preventDefault();\n            break;\n          // tab\n          case 9:\n            this.send('setItem');\n            this.send('setFinderVisible', false);\n            break;\n          // escape\n          case 27:\n            this.send('setFinderVisible', false);\n            break;\n          // any other key\n          default:\n            (0, _object.set)(this, 'selectedRow', -1);\n            this.send('setItem', -1);\n            this.send('setFinderVisible', true);\n            break;\n        }\n      },\n      keyUp(event) {\n        if ([38, 40, 13, 9, 27].includes(event.keyCode)) return; // event has been handled\n\n        (0, _object.set)(this, 'selectedRow', -1);\n        this.send('setItem', -1);\n        this.send('setFinderVisible', true);\n      },\n      keepSelectedRowVisible(selectedRowIndex) {\n        const $row = (0, _jquery.default)(this.element).find('.combo-box__drop-down-row--' + selectedRowIndex);\n        const $container = (0, _jquery.default)(this.element).find('.combo-box__drop-down');\n        if ($row.position().top > $container.height()) {\n          $container.scrollTop($container.scrollTop() + $row.outerHeight());\n        } else if ($row.position().top < 0) {\n          $container.scrollTop($container.scrollTop() - $row.outerHeight());\n        }\n      },\n      unSetHighlight(index) {\n        if ((0, _object.get)(this, 'selectedRow') === index) (0, _object.set)(this, 'selectedRow', null);\n      },\n      setItem(index) {\n        (0, _runloop.next)(() => {\n          // when the index is negative, the new item value is in the searchTerm\n          const item = index >= 0 ? (0, _object.get)(this, 'filteredOptions').objectAt(index) : (0, _object.get)(this, 'searchTerm');\n          const key = (0, _object.get)(this, 'key');\n          if (typeof item === 'object') {\n            // this.args.onSet(key ? get(item, key) : item);\n            this.get('onSet')(key ? (0, _object.get)(item, key) : item);\n            // this.sendAction('onSet', key ? get(item, key) : item);\n          } else {\n            // this.args.onSet(item);\n            this.get('onSet')(item);\n            // this.sendAction('onSet', item);\n          }\n          if (index >= 0) this.send('setFinderVisible', false);\n        });\n      }\n    }\n  }));\n});","define(\"portal/components/combo-button\", [\"exports\", \"@ember/component\", \"portal/components/combo-button\", \"@ember/object/computed\", \"@ember/object\", \"@ember/runloop\", \"@ember/template-factory\"], function (_exports, _component, _comboButton, _computed, _object, _runloop, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"portal/components/combo-button\",0,\"@ember/object/computed\",0,\"@ember/object\",0,\"@ember/runloop\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='combo-button__container' tabindex='0'>\n    <div class='combo-button__button-container'>\n      <LoadingButton\n        @isLoading={{@isLoading}}\n        class={{concat\n          'combo-button__button-main '\n          (if @buttonClass @buttonClass)\n        }}\n        @action={{action 'onButtonClick'}}\n        @buttonText={{@buttonText}}\n      />\n  \n      <button\n        class='combo-button__button-side {{if @buttonClass @buttonClass}}'\n        disabled={{@isLoading}}\n        type='button'\n        {{action this.toggleProperty 'focused'}}\n      >\n        <FaIcon @icon='caret-down' />\n      </button>\n    </div>\n  \n    {{#if (has-block)}}\n      {{#if this.showDropdown}}\n        {{! template-lint-disable no-pointer-down-event-binding }}\n        <div\n          class='combo-button__overlaid-dropdown-container'\n          onmousedown={{action 'holdFocus'}}\n          ontouchstart={{action 'holdFocus'}}\n        >\n          {{#if this.title}}\n            <div\n              class='combo-button__overlaid-dropdown-title'\n            >{{this.title}}</div>\n          {{/if}}\n  \n          {{yield}}\n        </div>\n      {{/if}}\n    {{else}}\n      You provided no options! Use a regular button.\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"MM+bez+M\",\n    \"block\": \"[[[10,0],[14,0,\\\"combo-button__container\\\"],[14,\\\"tabindex\\\",\\\"0\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"combo-button__button-container\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,1],[[16,0,[28,[37,2],[\\\"combo-button__button-main \\\",[52,[30,1],[30,1]]],null]]],[[\\\"@isLoading\\\",\\\"@action\\\",\\\"@buttonText\\\"],[[30,2],[28,[37,4],[[30,0],\\\"onButtonClick\\\"],null],[30,3]]],null],[1,\\\"\\\\n\\\\n    \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"combo-button__button-side \\\",[52,[30,1],[30,1]]]]],[16,\\\"disabled\\\",[30,2]],[24,4,\\\"button\\\"],[4,[38,4],[[30,0],[30,0,[\\\"toggleProperty\\\"]],\\\"focused\\\"],null],[12],[1,\\\"\\\\n      \\\"],[8,[39,6],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[48,[30,4]],[[[41,[30,0,[\\\"showDropdown\\\"]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"combo-button__overlaid-dropdown-container\\\"],[15,\\\"onmousedown\\\",[28,[37,4],[[30,0],\\\"holdFocus\\\"],null]],[15,\\\"ontouchstart\\\",[28,[37,4],[[30,0],\\\"holdFocus\\\"],null]],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"title\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"combo-button__overlaid-dropdown-title\\\"],[12],[1,[30,0,[\\\"title\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n        \\\"],[18,4,null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[1,\\\"    You provided no options! Use a regular button.\\\\n\\\"]],[]]],[13]],[\\\"@buttonClass\\\",\\\"@isLoading\\\",\\\"@buttonText\\\",\\\"&default\\\"],false,[\\\"div\\\",\\\"loading-button\\\",\\\"concat\\\",\\\"if\\\",\\\"action\\\",\\\"button\\\",\\\"fa-icon\\\",\\\"has-block\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"portal/components/combo-button.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    layout: _comboButton.default,\n    showDropdown: (0, _computed.or)('holdFocus', 'focused'),\n    focusOut() {\n      (0, _object.set)(this, 'focused', false);\n    },\n    actions: {\n      onButtonClick() {\n        (0, _object.set)(this, 'focused', false);\n        this.action();\n      },\n      /*\n       * Makes sure that the dropdown doesn't disappear if user clicks inside the dropdown.\n       * Holds the dropdown, waits for the blur event on the button, then focuses the button\n       * again and releases the hold so that the blur event can happen again.\n       */\n      holdFocus() {\n        // Keep dropdown visible\n        (0, _object.set)(this, 'holdFocus', true);\n        // Wait for blur event to occur\n        (0, _runloop.next)(() => {\n          // Set focused back to true\n          (0, _object.set)(this, 'focused', true);\n          // Release the hold on the dropdown being open\n          (0, _object.set)(this, 'holdFocus', false);\n        });\n      }\n    }\n  }));\n});","define(\"portal/components/confirm-delete\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _tracking, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"ember-concurrency\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if @visible}}\n    <ModalDialog\n      @onClose={{perform this.onCancel}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n      @overlayClass='modal'\n    >\n      <div class='modal-header'>\n        <h5 class='modal-title'>\n          {{@title}}\n        </h5>\n      </div>\n  \n      <div class='modal-body' data-test-confirm-delete-dialog>\n  \n        {{#if @messages.length}}\n          <div class='d-flex flex-column gap-2 mb-3'>\n            {{#each @messages as |message|}}\n              <p class='m-0'>{{message}}</p>\n            {{/each}}\n          </div>\n        {{/if}}\n        {{#if @confirmText}}\n          <label for='confirmDelete' class='mb-1'>\n            {{t\n              'common.toConfirmTypeConfirmTextInTheBoxBelow'\n              confirmText=@confirmText\n            }}:\n          </label>\n          <Input\n            id='confirmDelete'\n            @value={{this.confirmText}}\n            class='form-control'\n            @type='text'\n            autocomplete='off'\n            data-test-confirm-delete-confirm-text-input\n          />\n        {{/if}}\n  \n        {{yield}}\n      </div>\n      <footer class='modal-footer'>\n        <div class='float-end d-flex align-items-center'>\n          <button\n            class='btn btn-secondary text-white ms-2'\n            type='button'\n            disabled={{this.onDelete.isRunning}}\n            {{on 'click' (perform this.onCancel)}}\n            data-test-confirm-delete-cancel-button\n          >{{t 'common.Cancel'}}</button>\n          <button\n            class='btn btn-danger text-white ms-2'\n            type='button'\n            data-test-confirm-delete-delete-button\n            disabled={{or (not this.allowDelete) this.onDelete.isRunning}}\n            {{on 'click' (perform this.onDelete)}}\n          >\n            {{#if this.onDelete.isRunning}}\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{@deletingButtonText}}\n            {{else}}\n              {{@deleteButtonText}}\n            {{/if}}\n          </button>\n        </div>\n      </footer>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"UE1kdEnO\",\n    \"block\": \"[[[41,[30,1],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\",\\\"@overlayClass\\\"],[[28,[37,2],[[30,0,[\\\"onCancel\\\"]]],null],\\\"modal-content w-auto\\\",true,\\\"modal\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h5\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,2]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[14,\\\"data-test-confirm-delete-dialog\\\",\\\"\\\"],[12],[1,\\\"\\\\n\\\\n\\\"],[41,[30,3,[\\\"length\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"d-flex flex-column gap-2 mb-3\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[30,3]],null]],null],null,[[[1,\\\"            \\\"],[10,2],[14,0,\\\"m-0\\\"],[12],[1,[30,4]],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,5],[[[1,\\\"        \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"confirmDelete\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,9],[\\\"common.toConfirmTypeConfirmTextInTheBoxBelow\\\"],[[\\\"confirmText\\\"],[[30,5]]]]],[1,\\\":\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,10],[[24,1,\\\"confirmDelete\\\"],[24,0,\\\"form-control\\\"],[24,\\\"autocomplete\\\",\\\"off\\\"],[24,\\\"data-test-confirm-delete-confirm-text-input\\\",\\\"\\\"]],[[\\\"@value\\\",\\\"@type\\\"],[[30,0,[\\\"confirmText\\\"]],\\\"text\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[18,8,null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"float-end d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"onDelete\\\",\\\"isRunning\\\"]]],[24,\\\"data-test-confirm-delete-cancel-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,14],[\\\"click\\\",[28,[37,2],[[30,0,[\\\"onCancel\\\"]]],null]],null],[12],[1,[28,[35,9],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger text-white ms-2\\\"],[24,\\\"data-test-confirm-delete-delete-button\\\",\\\"\\\"],[16,\\\"disabled\\\",[28,[37,15],[[28,[37,16],[[30,0,[\\\"allowDelete\\\"]]],null],[30,0,[\\\"onDelete\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,14],[\\\"click\\\",[28,[37,2],[[30,0,[\\\"onDelete\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"onDelete\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[30,6]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[30,7]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@visible\\\",\\\"@title\\\",\\\"@messages\\\",\\\"message\\\",\\\"@confirmText\\\",\\\"@deletingButtonText\\\",\\\"@deleteButtonText\\\",\\\"&default\\\"],false,[\\\"if\\\",\\\"modal-dialog\\\",\\\"perform\\\",\\\"div\\\",\\\"h5\\\",\\\"each\\\",\\\"-track-array\\\",\\\"p\\\",\\\"label\\\",\\\"t\\\",\\\"input\\\",\\\"yield\\\",\\\"footer\\\",\\\"button\\\",\\\"on\\\",\\\"or\\\",\\\"not\\\",\\\"span\\\"]]\",\n    \"moduleName\": \"portal/components/confirm-delete.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"confirmText\", _descriptor, this);\n      _defineProperty(this, \"onCancel\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          this.confirmText = '';\n          yield this.args.onCancel();\n        }\n      }), null, \"onCancel\", null));\n      _defineProperty(this, \"onDelete\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.args.onDelete();\n          } finally {\n            this.confirmText = '';\n          }\n        }\n      }), null, \"onDelete\", null));\n    }\n    get allowDelete() {\n      if (this.args.confirmText) return this.confirmText.toLowerCase().replace(/\\s/g, '') === this.args.confirmText.toLowerCase().replace(/\\s/g, '');\n      return true;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"confirmText\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _class));\n});","define(\"portal/components/content-tabs\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='flex-grow-1 d-flex align-items-center justify-content-start'>\n    {{#each @tabs as |tab|}}\n      <ContentTabs::Tab @tabName={{tab.name}} @route={{tab.route}} />\n    {{/each}}\n  </div>\n  {{yield}}\n  */\n  {\n    \"id\": \"tjo74Uni\",\n    \"block\": \"[[[10,0],[14,0,\\\"flex-grow-1 d-flex align-items-center justify-content-start\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,2],[[28,[37,2],[[30,1]],null]],null],null,[[[1,\\\"    \\\"],[8,[39,3],null,[[\\\"@tabName\\\",\\\"@route\\\"],[[30,2,[\\\"name\\\"]],[30,2,[\\\"route\\\"]]]],null],[1,\\\"\\\\n\\\"]],[2]],null],[13],[1,\\\"\\\\n\\\"],[18,3,null]],[\\\"@tabs\\\",\\\"tab\\\",\\\"&default\\\"],false,[\\\"div\\\",\\\"each\\\",\\\"-track-array\\\",\\\"content-tabs/tab\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"portal/components/content-tabs.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component2.default {});\n});","define(\"portal/components/content-tabs/tab\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LinkTo\n    @route={{@route}}\n    class='btn py-2 content-tab'\n    draggable={{false}}\n    data-test-content-tab-button\n  >\n    {{@tabName}}\n  </LinkTo>\n  */\n  {\n    \"id\": \"s1V9hxUG\",\n    \"block\": \"[[[8,[39,0],[[24,0,\\\"btn py-2 content-tab\\\"],[16,\\\"draggable\\\",false],[24,\\\"data-test-content-tab-button\\\",\\\"\\\"]],[[\\\"@route\\\"],[[30,1]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[1,[30,2]],[1,\\\"\\\\n\\\"]],[]]]]]],[\\\"@route\\\",\\\"@tabName\\\"],false,[\\\"link-to\\\"]]\",\n    \"moduleName\": \"portal/components/content-tabs/tab.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component2.default {});\n});","define(\"portal/components/context-menu\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/runloop\", \"@ember/template-factory\"], function (_exports, _component, _component2, _tracking, _runloop, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{yield\n    (hash\n      containerId=this.containerId\n      buttonId=this.buttonId\n      Menu=(component\n        'context-menu/menu'\n        targetPosition=this.targetPosition\n        direction=@direction\n        containerId=this.containerId\n      )\n    )\n  }}\n  */\n  {\n    \"id\": \"uxa6o8sw\",\n    \"block\": \"[[[18,2,[[28,[37,1],null,[[\\\"containerId\\\",\\\"buttonId\\\",\\\"Menu\\\"],[[30,0,[\\\"containerId\\\"]],[30,0,[\\\"buttonId\\\"]],[50,\\\"context-menu/menu\\\",0,null,[[\\\"targetPosition\\\",\\\"direction\\\",\\\"containerId\\\"],[[30,0,[\\\"targetPosition\\\"]],[30,1],[30,0,[\\\"containerId\\\"]]]]]]]]]]],[\\\"@direction\\\",\\\"&default\\\"],false,[\\\"yield\\\",\\\"hash\\\",\\\"component\\\"]]\",\n    \"moduleName\": \"portal/components/context-menu.hbs\",\n    \"isStrictMode\": false\n  });\n  function getElement(id) {\n    return document.querySelector(`[context-menu=\"${id}\"]`);\n  }\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    clearTarget() {\n      this.longPressed = false;\n      this.targetPosition = null;\n    }\n    setTarget(x, y, withScroll = false) {\n      if (this.args.disabled) return;\n      this.targetPosition = {\n        x,\n        y,\n        withScroll\n      };\n    }\n    get menuVisible() {\n      return Boolean(this.targetPosition);\n    }\n    bindEvents() {\n      const container = getElement(this.containerId);\n      const button = getElement(this.buttonId);\n\n      // make sure the container is focusable\n      container.setAttribute('tabindex', '0');\n      this.containerContextMenuListener = this.onContainerContextMenu.bind(this);\n      container.addEventListener('contextmenu', this.containerContextMenuListener);\n      this.containerClickListener = this.onContainerClick.bind(this);\n      container.addEventListener('click', this.containerClickListener);\n      this.containerMouseDownListener = this.onContainerMouseDown.bind(this);\n      container.addEventListener('mousedown', this.containerMouseDownListener);\n      this.containerMouseUpListener = this.onContainerMouseUp.bind(this);\n      container.addEventListener('mouseup', this.containerMouseUpListener);\n      this.containerFocusOutListener = this.onContainerFocusOut.bind(this);\n      container.addEventListener('focusout', this.containerFocusOutListener);\n      if (button) {\n        this.buttonClickListener = this.onButtonClick.bind(this);\n        button.addEventListener('click', this.buttonClickListener);\n      }\n    }\n    removeEvents() {\n      const container = getElement(this.containerId);\n      const button = getElement(this.buttonId);\n      container.removeEventListener('contextmenu', this.containerContextMenuListener);\n      container.removeEventListener('click', this.containerClickListener);\n      container.removeEventListener('mousedown', this.containerMouseDownListener);\n      container.removeEventListener('mouseup', this.containerMouseUpListener);\n      container.removeEventListener('focusout', this.containerFocusOutListener);\n      if (button) {\n        button.removeEventListener('click', this.buttonClickListener);\n      }\n    }\n    constructor() {\n      super(...arguments);\n      _defineProperty(this, \"containerId\", Math.random());\n      _defineProperty(this, \"buttonId\", Math.random());\n      _initializerDefineProperty(this, \"targetPosition\", _descriptor, this);\n      _initializerDefineProperty(this, \"longPressed\", _descriptor2, this);\n      _initializerDefineProperty(this, \"longPressTimeout\", _descriptor3, this);\n      _initializerDefineProperty(this, \"containerContextMenuListener\", _descriptor4, this);\n      _initializerDefineProperty(this, \"containerClickListener\", _descriptor5, this);\n      _initializerDefineProperty(this, \"containerMouseDownListener\", _descriptor6, this);\n      _initializerDefineProperty(this, \"containerMouseUpListener\", _descriptor7, this);\n      _initializerDefineProperty(this, \"containerFocusOutListener\", _descriptor8, this);\n      _initializerDefineProperty(this, \"buttonClickListener\", _descriptor9, this);\n      (0, _runloop.next)(() => {\n        this.bindEvents();\n      });\n    }\n\n    // TODO replace with when upgraded import { registerDestructor } from '@ember/destroyable';\n    willDestroyElement() {\n      this.removeEvents();\n      super.willDestroyElement(...arguments);\n    }\n    onContainerContextMenu(event) {\n      event.preventDefault();\n      event.stopPropagation();\n      if (this.menuVisible) {\n        this.clearTarget();\n        return;\n      }\n      this.setTarget(event.clientX, event.clientY);\n    }\n    onContainerClick(event) {\n      // if the menu is open, stop the click from propagating and close the menu\n      if (this.menuVisible) {\n        event.preventDefault();\n        event.stopPropagation();\n        if (!this.longPressed) {\n          this.clearTarget();\n        }\n        this.longPressed = false;\n      }\n    }\n    onContainerMouseDown(event) {\n      this.longPressTimeout = setTimeout(() => {\n        this.onContainerLongPress(event);\n      }, 1000);\n    }\n    onContainerMouseUp() {\n      clearTimeout(this.longPressTimeout);\n    }\n    onContainerLongPress(event) {\n      if (this.menuVisible) {\n        this.clearTarget();\n        return;\n      }\n      this.longPressed = true;\n      this.setTarget(event.clientX, event.clientY);\n    }\n    onButtonClick(event) {\n      event.preventDefault();\n      event.stopPropagation();\n      if (this.menuVisible) {\n        this.clearTarget();\n        return;\n      }\n      const button = getElement(this.buttonId);\n      const buttonRect = button.getBoundingClientRect();\n      const bottomRightX = buttonRect.right + window.scrollX;\n      const bottomRightY = buttonRect.bottom + window.scrollY;\n      this.setTarget(bottomRightX, bottomRightY, true);\n\n      // ensure container gets focused when clicking the button\n      const container = getElement(this.containerId);\n      container.focus();\n    }\n    onContainerFocusOut(event) {\n      (0, _runloop.next)(() => {\n        const container = getElement(this.containerId);\n        const button = getElement(this.buttonId);\n        if (container && container.contains(event.relatedTarget)) return;\n        if (button && button.contains(event.relatedTarget)) return;\n        this.clearTarget();\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"targetPosition\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"longPressed\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"longPressTimeout\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"containerContextMenuListener\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"containerClickListener\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"containerMouseDownListener\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"containerMouseUpListener\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"containerFocusOutListener\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"buttonClickListener\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _class));\n});","define(\"portal/components/context-menu/menu\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/runloop\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _component2, _tracking, _runloop, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if @targetPosition}}\n    <div\n      {{did-insert this.positionMenuFixed @targetPosition}}\n      class='context-menu__menu-container position-fixed card shadow d-flex flex-column py-2'\n    >\n      {{yield}}\n    </div>\n  {{/if}}\n  */\n  {\n    \"id\": \"d6ZmaSaS\",\n    \"block\": \"[[[41,[30,1],[[[1,\\\"  \\\"],[11,0],[24,0,\\\"context-menu__menu-container position-fixed card shadow d-flex flex-column py-2\\\"],[4,[38,2],[[30,0,[\\\"positionMenuFixed\\\"]],[30,1]],null],[12],[1,\\\"\\\\n    \\\"],[18,2,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@targetPosition\\\",\\\"&default\\\"],false,[\\\"if\\\",\\\"div\\\",\\\"did-insert\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"portal/components/context-menu/menu.hbs\",\n    \"isStrictMode\": false\n  });\n  function getElement(id) {\n    return document.querySelector(`[context-menu=\"${id}\"]`);\n  }\n  function px(number) {\n    return number + 'px';\n  }\n  function parsePx(pxValue) {\n    return pxValue ? parseInt(pxValue, 10) : 0;\n  }\n  function isVisible(width, height, {\n    top,\n    right,\n    bottom,\n    left\n  }) {\n    // check top\n    if (top !== undefined && (top < 0 || top + height > window.innerHeight)) {\n      return false;\n    }\n\n    // check right\n    if (right !== undefined && (right < 0 || right + width > window.innerWidth)) {\n      return false;\n    }\n\n    // check bottom\n    if (bottom !== undefined && (bottom < 0 || bottom + height > window.innerHeight)) {\n      return false;\n    }\n\n    // check left\n    if (left !== undefined && (left < 0 || left + width > window.innerWidth)) {\n      return false;\n    }\n    return true;\n  }\n  function findFirstScrollableParent(element) {\n    let parent = element.parentElement;\n    while (parent) {\n      // this handles all scroll styles i.e scroll: auto, scroll-y: auto\n      const overflowY = getComputedStyle(parent).getPropertyValue('overflow-y');\n      const hasScrollStyle = overflowY === 'auto' || overflowY === 'scroll';\n      if (hasScrollStyle) return parent;\n      parent = parent.parentElement;\n    }\n    return parent;\n  }\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"scrollParentScrollListener\", _descriptor, this);\n      _initializerDefineProperty(this, \"containerFocusOutListener\", _descriptor2, this);\n      _initializerDefineProperty(this, \"initialPosition\", _descriptor3, this);\n    }\n    onScroll(menuElement, parentElement) {\n      if (!this.initialPosition) {\n        const rect = menuElement.getBoundingClientRect();\n        const parentRect = parentElement.getBoundingClientRect();\n        this.initialPosition = {\n          top: rect.top - parentRect.top,\n          left: rect.left - parentRect.left\n        };\n      }\n      const parentRect = parentElement.getBoundingClientRect();\n      menuElement.style.top = px(parentRect.top + this.initialPosition.top - parentElement.scrollTop);\n      menuElement.style.left = px(parentRect.left + this.initialPosition.left - parentElement.scrollLeft);\n    }\n    onContainerFocusOut(scrollParent) {\n      scrollParent.removeEventListener('scroll', this.scrollParentScrollListener);\n    }\n    positionMenuFixed(menuElement, [targetPosition]) {\n      // don't give people direction options with the context menu\n      const direction = targetPosition.withScroll ? this.args.direction || 'bottom-right' : 'bottom-right';\n\n      // reset styles\n      this.initialPosition = null;\n      menuElement.style.removeProperty('top');\n      menuElement.style.removeProperty('right');\n      menuElement.style.removeProperty('bottom');\n      menuElement.style.removeProperty('left');\n      function positionMenuFixed(direction, originalDirection) {\n        const {\n          x,\n          y\n        } = targetPosition;\n        let checkedAllDirections = false;\n        if (!originalDirection) {\n          originalDirection = direction;\n        } else {\n          checkedAllDirections = direction === originalDirection;\n        }\n        const margin = 5;\n        const menuRect = menuElement.getBoundingClientRect();\n        const menuStyle = window.getComputedStyle(menuElement);\n        const menuOuterWidth = menuRect.width + parsePx(menuStyle.borderLeftWidth) + parsePx(menuStyle.paddingLeft) + parsePx(menuStyle.borderRightWidth) + parsePx(menuStyle.paddingRight);\n        const menuOuterHeight = menuRect.height + parsePx(menuStyle.borderTopWidth) + parsePx(menuStyle.paddingTop) + parsePx(menuStyle.borderBottomWidth) + parsePx(menuStyle.paddingBottom);\n        switch (direction) {\n          case 'top':\n            {\n              // position above the target, centered horizontally\n              const bottom = window.innerHeight - y + margin;\n              const left = x - menuOuterWidth / 2;\n              if (!checkedAllDirections && !isVisible(menuOuterWidth, menuOuterHeight, {\n                bottom,\n                left\n              })) {\n                return positionMenuFixed('top-right', originalDirection);\n              }\n              menuElement.style.bottom = px(bottom);\n              menuElement.style.left = px(left);\n              break;\n            }\n          case 'top-right':\n            {\n              // position above the target, left edge aligned with target.x\n              const bottom = window.innerHeight - y;\n              const left = x + margin;\n              if (!checkedAllDirections && !isVisible(menuOuterWidth, menuOuterHeight, {\n                bottom,\n                left\n              })) {\n                return positionMenuFixed('right', originalDirection);\n              }\n              menuElement.style.bottom = px(bottom);\n              menuElement.style.left = px(left);\n              break;\n            }\n          case 'right':\n            {\n              // position to the right of the target, centered vertically\n              const left = x + margin;\n              const top = y - menuRect.height / 2;\n              if (!checkedAllDirections && !isVisible(menuOuterWidth, menuOuterHeight, {\n                left,\n                top\n              })) {\n                return positionMenuFixed('bottom-right', originalDirection);\n              }\n              menuElement.style.left = px(left);\n              menuElement.style.top = px(top);\n              break;\n            }\n          case 'bottom-right':\n            {\n              // position below the target, left edge aligned with target.x\n              const top = y;\n              const left = x + margin;\n              if (!checkedAllDirections && !isVisible(menuOuterWidth, menuOuterHeight, {\n                top,\n                left\n              })) {\n                return positionMenuFixed('bottom', originalDirection);\n              }\n              menuElement.style.top = px(top);\n              menuElement.style.left = px(left);\n              break;\n            }\n          case 'bottom':\n            {\n              // position below the target, centered horizontally\n              const top = y + margin;\n              const left = x - menuOuterWidth / 2;\n              if (!checkedAllDirections && !isVisible(menuOuterWidth, menuOuterHeight, {\n                top,\n                left\n              })) {\n                return positionMenuFixed('bottom-left', originalDirection);\n              }\n              menuElement.style.top = px(top);\n              menuElement.style.left = px(left);\n              break;\n            }\n          case 'bottom-left':\n            {\n              // position below the target, right edge aligned with target.x\n              const top = y;\n              const right = window.innerWidth - x + margin;\n              if (!checkedAllDirections && !isVisible(menuOuterWidth, menuOuterHeight, {\n                top,\n                right\n              })) {\n                return positionMenuFixed('left', originalDirection);\n              }\n              menuElement.style.top = px(top);\n              menuElement.style.right = px(right);\n              break;\n            }\n          case 'left':\n            {\n              // position to the left of the target, centered vertically\n              const right = window.innerWidth - x + margin;\n              const top = y - menuRect.height / 2;\n              if (!checkedAllDirections && !isVisible(menuOuterWidth, menuOuterHeight, {\n                right,\n                top\n              })) {\n                return positionMenuFixed('top-left', originalDirection);\n              }\n              menuElement.style.right = px(right);\n              menuElement.style.top = px(top);\n              break;\n            }\n          case 'top-left':\n            {\n              // position above the target, right edge aligned with target.x\n              const bottom = window.innerHeight - y;\n              const right = window.innerWidth - x + margin;\n              if (!checkedAllDirections && !isVisible(menuOuterWidth, menuOuterHeight, {\n                bottom,\n                right\n              })) {\n                return positionMenuFixed('top', originalDirection);\n              }\n              menuElement.style.bottom = px(bottom);\n              menuElement.style.right = px(right);\n              break;\n            }\n          default:\n            return positionMenuFixed('bottom-right');\n        }\n      }\n      positionMenuFixed(direction);\n\n      // bind our position to the scroll\n      if (targetPosition.withScroll) {\n        (0, _runloop.next)(() => {\n          const container = getElement(this.args.containerId);\n          const scrollParent = findFirstScrollableParent(menuElement);\n          this.scrollParentScrollListener = this.onScroll.bind(this, menuElement, scrollParent);\n          scrollParent.addEventListener('scroll', this.scrollParentScrollListener, {\n            passive: true\n          });\n          this.containerFocusOutListener = this.onContainerFocusOut.bind(this, scrollParent);\n          container.addEventListener('focusout', this.containerFocusOutListener);\n        });\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"scrollParentScrollListener\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"containerFocusOutListener\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"initialPosition\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"positionMenuFixed\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"positionMenuFixed\"), _class.prototype), _class));\n});","define(\"portal/components/dashboard-item\", [\"exports\", \"@ember/component\", \"@ember/service\"], function (_exports, _component, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/components/dashboard-item/card\", [\"exports\", \"@ember/component\", \"portal/components/dashboard-item\", \"@ember/template-factory\"], function (_exports, _component, _dashboardItem, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/components/dashboard-item\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.module.icon}}\n    <div class='dashboard-item-card__icon'>\n      <FaIcon @icon={{this.module.icon}} />\n    </div>\n  {{else if this.module.logo}}\n    <img src={{this.module.logo}} alt='Logo' class='dashboard-item-card__logo' />\n  {{/if}}\n  \n  <div class='dashboard-item-card__text'>\n    {{#if this.module.brand}}\n      <div class='dashboard-item-card__brand'>{{this.module.brand}}</div>\n    {{/if}}\n  \n    {{#if this.module.name}}\n      <div class='dashboard-item-card__title'>{{this.module.name}}</div>\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"xj9wqOaD\",\n    \"block\": \"[[[41,[30,0,[\\\"module\\\",\\\"icon\\\"]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"dashboard-item-card__icon\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,2],null,[[\\\"@icon\\\"],[[30,0,[\\\"module\\\",\\\"icon\\\"]]]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"module\\\",\\\"logo\\\"]],[[[1,\\\"  \\\"],[10,\\\"img\\\"],[15,\\\"src\\\",[30,0,[\\\"module\\\",\\\"logo\\\"]]],[14,\\\"alt\\\",\\\"Logo\\\"],[14,0,\\\"dashboard-item-card__logo\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"dashboard-item-card__text\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"module\\\",\\\"brand\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"dashboard-item-card__brand\\\"],[12],[1,[30,0,[\\\"module\\\",\\\"brand\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"module\\\",\\\"name\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"dashboard-item-card__title\\\"],[12],[1,[30,0,[\\\"module\\\",\\\"name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[13]],[],false,[\\\"if\\\",\\\"div\\\",\\\"fa-icon\\\",\\\"img\\\"]]\",\n    \"moduleName\": \"portal/components/dashboard-item/card.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _dashboardItem.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"classNames\", ['dashboard-item-card__container']);\n    }\n  });\n});","define(\"portal/components/dashboard-item/icon\", [\"exports\", \"@ember/component\", \"portal/components/dashboard-item\", \"@ember/template-factory\"], function (_exports, _component, _dashboardItem, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/components/dashboard-item\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.module.icon}}\n    <div class='dashboard-item-icon__icon'>\n      <FaIcon @icon={{this.module.icon}} />\n    </div>\n  {{else if this.module.logo}}\n    <img src={{this.module.logo}} alt='Logo' class='dashboard-item-icon__logo' />\n  {{/if}}\n  \n  <div class='dashboard-item-icon__text'>\n    {{#if this.module.brand}}\n      <div class='dashboard-item-icon__brand'>{{this.module.brand}}</div>\n    {{/if}}\n  \n    {{#if this.module.name}}\n      <div class='dashboard-item-icon__title'>{{this.module.name}}</div>\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"gTjwCiTr\",\n    \"block\": \"[[[41,[30,0,[\\\"module\\\",\\\"icon\\\"]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"dashboard-item-icon__icon\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,2],null,[[\\\"@icon\\\"],[[30,0,[\\\"module\\\",\\\"icon\\\"]]]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"module\\\",\\\"logo\\\"]],[[[1,\\\"  \\\"],[10,\\\"img\\\"],[15,\\\"src\\\",[30,0,[\\\"module\\\",\\\"logo\\\"]]],[14,\\\"alt\\\",\\\"Logo\\\"],[14,0,\\\"dashboard-item-icon__logo\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"dashboard-item-icon__text\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"module\\\",\\\"brand\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"dashboard-item-icon__brand\\\"],[12],[1,[30,0,[\\\"module\\\",\\\"brand\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"module\\\",\\\"name\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"dashboard-item-icon__title\\\"],[12],[1,[30,0,[\\\"module\\\",\\\"name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[13]],[],false,[\\\"if\\\",\\\"div\\\",\\\"fa-icon\\\",\\\"img\\\"]]\",\n    \"moduleName\": \"portal/components/dashboard-item/icon.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _dashboardItem.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"classNames\", ['dashboard-item-icon__container']);\n    }\n  });\n});","define(\"portal/components/dashboard-item/module\", [\"exports\", \"@ember/component\", \"portal/components/dashboard-item\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _dashboardItem, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/components/dashboard-item\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.module.badge}}\n    <div class='badge bg-info dashboard-item-module__badge'>\n      {{this.module.badge}}\n    </div>\n  {{/if}}\n  {{#if this.module.icon}}\n    <div class='dashboard-item-module__icon'>\n      <FaIcon @icon={{this.module.icon}} @size='2x' />\n    </div>\n  {{else if this.module.logo}}\n    <img\n      src={{this.module.logo}}\n      alt='Logo'\n      class='dashboard-item-module__logo'\n    />\n  {{/if}}\n  \n  <div class='dashboard-item-module__text'>\n    {{#if this.module.brand}}\n      <div class='dashboard-item-module__brand'>{{this.module.brand}}</div>\n    {{/if}}\n  \n    {{#if this.module.name}}\n      <div class='dashboard-item-module__title'>\n        {{#if this.active}}\n          {{this.module.name}}\n        {{else}}\n          {{ellipsis-characters this.module.name 20}}\n        {{/if}}\n      </div>\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"ydIjCLqd\",\n    \"block\": \"[[[41,[30,0,[\\\"module\\\",\\\"badge\\\"]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"badge bg-info dashboard-item-module__badge\\\"],[12],[1,\\\"\\\\n    \\\"],[1,[30,0,[\\\"module\\\",\\\"badge\\\"]]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"module\\\",\\\"icon\\\"]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"dashboard-item-module__icon\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,2],null,[[\\\"@icon\\\",\\\"@size\\\"],[[30,0,[\\\"module\\\",\\\"icon\\\"]],\\\"2x\\\"]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"module\\\",\\\"logo\\\"]],[[[1,\\\"  \\\"],[10,\\\"img\\\"],[15,\\\"src\\\",[30,0,[\\\"module\\\",\\\"logo\\\"]]],[14,\\\"alt\\\",\\\"Logo\\\"],[14,0,\\\"dashboard-item-module__logo\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"dashboard-item-module__text\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"module\\\",\\\"brand\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"dashboard-item-module__brand\\\"],[12],[1,[30,0,[\\\"module\\\",\\\"brand\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"module\\\",\\\"name\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"dashboard-item-module__title\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"active\\\"]],[[[1,\\\"        \\\"],[1,[30,0,[\\\"module\\\",\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[1,[28,[35,4],[[30,0,[\\\"module\\\",\\\"name\\\"]],20],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[13]],[],false,[\\\"if\\\",\\\"div\\\",\\\"fa-icon\\\",\\\"img\\\",\\\"ellipsis-characters\\\"]]\",\n    \"moduleName\": \"portal/components/dashboard-item/module.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _dashboardItem.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"classNames\", ['dashboard-item-module__container']);\n      _defineProperty(this, \"active\", false);\n    }\n    mouseEnter() {\n      (0, _object.set)(this, 'active', true);\n    }\n    mouseLeave() {\n      (0, _object.set)(this, 'active', false);\n    }\n  });\n});","define(\"portal/components/dashboard/config-modal\", [\"exports\", \"@ember/component\", \"@ember/service\", \"@ember/object/evented\", \"@ember/utils\", \"jquery\", \"@ember/object\", \"@ember/object/computed\", \"portal/models/account\", \"portal/models/kpi\", \"portal/models/entity\", \"portal/models/entity-group\", \"@ember/template-factory\"], function (_exports, _component, _service, _evented, _utils, _jquery, _object, _computed, _account, _kpi, _entity, _entityGroup, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"@ember/object/evented\",0,\"@ember/utils\",0,\"jquery\",0,\"@ember/object\",0,\"@ember/object/computed\",0,\"@ember/component\",0,\"portal/models/account\",0,\"portal/models/kpi\",0,\"portal/models/entity\",0,\"portal/models/entity-group\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <ModalDialog\n    @translucentOverlay={{true}}\n    @overlayClass='modal'\n    @onClose={{action 'back'}}\n    @containerClass='block-module dashboard-module-config'\n  >\n    <header class='block-module__header'>\n      <button\n        class='float-end button button--plain'\n        type='button'\n        {{action 'onClose'}}\n      ><FaIcon @icon='times' /></button>\n      <h1 class='h1'>Edit your module</h1>\n    </header>\n  \n    <div class='dashboard-module-config-steps'>\n  \n      <section class='active'>\n        <h3 class='h3 text-center'>Display settings</h3>\n  \n        <section class='config-modal__section'>\n          <label class='config-modal__section-heading' for='module-title'>Module\n            title</label>\n          <Input\n            class='text-input'\n            @value={{this.module.title}}\n            placeholder='Untitled'\n          />\n        </section>\n  \n        <section class='config-modal__section'>\n          <label class='config-modal__section-heading'>Module type</label>\n  \n          <div class='selector'>\n            <label>\n              <RadioButton\n                @class='radio-button'\n                @checked={{this.module.visualiser}}\n                @value='data-table'\n              />\n              Table\n            </label>\n            <label>\n              <RadioButton\n                @class='radio-button'\n                @checked={{this.module.visualiser}}\n                @value='line-chart'\n              />\n              Line chart\n            </label>\n            <label>\n              <RadioButton\n                @class='radio-button'\n                @checked={{this.module.visualiser}}\n                @value='pie-chart'\n              />\n              Pie chart\n            </label>\n          </div>\n        </section>\n  \n        <section class='config-modal__section'>\n          <label class='config-modal__section-heading'>Data period</label>\n  \n          <div class='selector'>\n            <label>\n              <RadioButton\n                @class='radio-button'\n                @checked={{this.module.periodType}}\n                @value='month'\n              />\n              Monthly\n            </label>\n            <label>\n              <RadioButton\n                @class='radio-button'\n                @checked={{this.module.periodType}}\n                @value='ytd'\n              />\n              Year to date\n            </label>\n          </div>\n        </section>\n      </section>\n  \n      <section>\n        <h3 class='h3 text-center'>Metrics</h3>\n  \n        <div class='selector'>\n          <h4 class='h4'>\n            <a class='tree-branch' {{action 'toggleTree' 'kpis'}}>\n              <FaIcon\n                @icon={{if this.treeExpansion.kpis 'caret-down' 'caret-right'}}\n              />\n              KPIs\n            </a>\n          </h4>\n          {{#if this.treeExpansion.kpis}}\n            {{#unless this.singleMetric}}\n              <Multiselect-checkboxes\n                @options={{this.data.kpis}}\n                @labelProperty='name'\n                @selection={{this.selectedKpis}}\n                @onchange={{action 'updateKpis'}}\n              />\n            {{else}}\n              {{#each this.data.kpis as |kpi|}}\n                <label>\n                  <RadioButton\n                    @class='radio-button'\n                    @name='metric'\n                    @checked={{this.selectedMetric}}\n                    @value={{kpi}}\n                  />\n                  {{kpi.name}}\n                </label>\n              {{else}}\n                <p class='ptl-placeholder'>No KPIs available</p>\n              {{/each}}\n            {{/unless}}\n          {{/if}}\n  \n          <h4 class='h4'>\n            <a class='tree-branch' {{action 'toggleTree' 'profitAndLoss'}}>\n              <FaIcon\n                @icon={{if\n                  this.treeExpansion.profitAndLoss\n                  'caret-down'\n                  'caret-right'\n                }}\n              />\n              Profit &amp; Loss\n            </a>\n          </h4>\n  \n          {{#if this.treeExpansion.profitAndLoss}}\n            {{#unless this.singleMetric}}\n              <Multiselect-checkboxes\n                @options={{this.accounts.profitAndLoss}}\n                @labelProperty='name'\n                @selection={{this.selectedAccounts}}\n                @onchange={{action 'updateAccounts'}}\n                as |account isSelected|\n              >\n                <label\n                  class='depth-{{account.depth}}\n                    {{if account.isHeading \"heading\"}}'\n                >\n                  <Input\n                    @type='checkbox'\n                    class='checkbox'\n                    @checked={{isSelected}}\n                  />\n                  {{account.name}}\n                </label>\n              </Multiselect-checkboxes>\n            {{else}}\n              {{#each this.accounts.profitAndLoss as |account|}}\n                <label\n                  class='depth-{{account.depth}}\n                    {{if account.isHeading \"heading\"}}'\n                >\n                  <RadioButton\n                    @class='radio-button'\n                    @name='metric'\n                    @checked={{this.selectedMetric}}\n                    @value={{account}}\n                  />\n                  {{account.name}}\n                </label>\n              {{else}}\n                <p class='ptl-placeholder'>No profit and loss accounts available</p>\n              {{/each}}\n            {{/unless}}\n          {{/if}}\n  \n          <h4 class='h4'>\n            <a class='tree-branch' {{action 'toggleTree' 'balanceSheet'}}>\n              <FaIcon\n                @icon={{if\n                  this.treeExpansion.balanceSheet\n                  'caret-down'\n                  'caret-right'\n                }}\n              />\n              Balance Sheet\n            </a>\n          </h4>\n  \n          {{#if this.treeExpansion.balanceSheet}}\n            {{#unless this.singleMetric}}\n              <Multiselect-checkboxes\n                @options={{this.accounts.balanceSheet}}\n                @labelProperty='name'\n                @selection={{this.selectedAccounts}}\n                @onchange={{action 'updateAccounts'}}\n                as |account isSelected|\n              >\n                <label\n                  class='depth-{{account.depth}}\n                    {{if account.isHeading \"heading\"}}'\n                >\n                  <Input @type='checkbox' @checked={{isSelected}} />\n                  {{account.name}}\n                </label>\n              </Multiselect-checkboxes>\n            {{else}}\n              {{#each this.accounts.balanceSheet as |account|}}\n                <label\n                  class='depth-{{account.depth}}\n                    {{if account.isHeading \"heading\"}}'\n                >\n                  <RadioButton\n                    @class='radio-button'\n                    @name='metric'\n                    @checked={{this.selectedMetric}}\n                    @value={{account}}\n                  />\n                  {{account.name}}\n                </label>\n              {{else}}\n                <p class='ptl-placeholder'>No balance sheet accounts available</p>\n              {{/each}}\n            {{/unless}}\n          {{/if}}\n  \n          <h4 class='h4'>\n            <a class='tree-branch' {{action 'toggleTree' 'otherData'}}>\n              <FaIcon\n                @icon={{if\n                  this.treeExpansion.otherData\n                  'caret-down'\n                  'caret-right'\n                }}\n              />\n              Other Data\n            </a>\n          </h4>\n  \n          {{#if this.treeExpansion.otherData}}\n            {{#unless this.singleMetric}}\n              <Multiselect-checkboxes\n                @options={{this.accounts.otherData}}\n                @labelProperty='name'\n                @selection={{this.selectedAccounts}}\n                @onchange={{action 'updateAccounts'}}\n                as |account isSelected|\n              >\n                <label\n                  class='depth-{{account.depth}}\n                    {{if account.isHeading \"heading\"}}'\n                >\n                  <Input @type='checkbox' @checked={{isSelected}} />\n                  {{account.name}}\n                </label>\n              </Multiselect-checkboxes>\n            {{else}}\n              {{#each this.accounts.otherData as |account|}}\n                <label\n                  class='depth-{{account.depth}}\n                    {{if account.isHeading \"heading\"}}'\n                >\n                  <RadioButton\n                    @name='metric'\n                    @checked={{this.selectedMetric}}\n                    @value={{account}}\n                  />\n                  {{account.name}}\n                </label>\n              {{else}}\n                <p class='ptl-placeholder'>No other data accounts available</p>\n              {{/each}}\n            {{/unless}}\n          {{/if}}\n        </div>\n      </section>\n  \n      <section>\n        <h3 class='h3 text-center'>Series</h3>\n  \n        <div class='selector'>\n          {{#if this.canAccessEntities}}\n            <h4 class='h4'>\n              <a class='tree-branch' {{action 'toggleTree' 'entities'}}>\n                <FaIcon\n                  @icon={{if\n                    this.treeExpansion.entities\n                    'caret-down'\n                    'caret-right'\n                  }}\n                />\n                Branches\n              </a>\n            </h4>\n            {{#if this.treeExpansion.entities}}\n              {{#if this.multipleSeries}}\n                <label class={{concat 'depth-' this.branch.depth}}>\n                  <Input\n                    @type='checkbox'\n                    @checked={{this.module.includeCurrentEntity}}\n                  />\n                  {{#if this.canAccessMultipleEntities}}\n                    Current branch<br />\n                    <span class='subtext'>The module will adapt to whichever\n                      branch you are currently viewing.</span>\n                  {{else}}\n                    {{this.sessionData.entity.name}}\n                  {{/if}}\n                </label>\n  \n                {{#if this.canAccessMultipleEntities}}\n                  <Multiselect-checkboxes\n                    tagName='div'\n                    @options={{this.data.entities}}\n                    @labelProperty='name'\n                    @selection={{this.selectedEntities}}\n                    @onchange={{action 'updateEntities'}}\n                  />\n                {{/if}}\n              {{else}}\n                <label class={{concat 'depth-' this.branch.depth}}>\n                  <RadioButton\n                    @name='metric'\n                    @checked={{this.selectedSeries}}\n                    @value='current'\n                  />\n                  {{#if this.canAccessMultipleEntities}}\n                    Current branch<br />\n                    <span class='subtext'>The module will adapt to whichever\n                      branch you are currently viewing.</span>\n                  {{else}}\n                    {{this.sessionData.entity.name}}\n                  {{/if}}\n                </label>\n                {{#if this.canAccessMultipleBranches}}\n                  data:\n                  {{this.data}}\n                  data.entities :\n                  {{this.data.entities}}\n                  {{#each this.data.entities as |entity|}}\n                    <label class={{concat 'depth-' entity.depth}}>\n                      <RadioButton\n                        @name='metric'\n                        @checked={{this.selectedSeries}}\n                        @value={{entity}}\n                      />\n                      {{entity.name}}\n                    </label>\n                  {{else}}\n                    <p class='ptl-placeholder'>No branches available</p>\n                  {{/each}}\n                {{/if}}\n              {{/if}}\n            {{/if}}\n          {{/if}}\n  \n          {{#if this.canAccessEntityGroups}}\n            <h4 class='h4'>\n              <a class='tree-branch' {{action 'toggleTree' 'entityGroups'}}>\n                <FaIcon\n                  @icon={{if\n                    this.treeExpansion.entityGroups\n                    'caret-down'\n                    'caret-right'\n                  }}\n                />Groups\n              </a>\n            </h4>\n  \n            {{#if this.treeExpansion.entityGroups}}\n              {{#if this.multipleSeries}}\n                <Multiselect-checkboxes\n                  @options={{this.data.entityGroups}}\n                  @labelProperty='name'\n                  @selection={{this.selectedEntityGroups}}\n                  @onchange={{action 'updateEntityGroups'}}\n                />\n              {{else}}\n                {{#each this.data.entityGroups as |group|}}\n                  <label class={{concat 'depth-' group.depth}}>\n                    <RadioButton\n                      @name='metric'\n                      @checked={{this.selectedSeries}}\n                      @value={{group}}\n                    />\n                    {{group.name}}\n                  </label>\n                {{else}}\n                  <p class='ptl-placeholder'>No groups available</p>\n                {{/each}}\n              {{/if}}\n            {{/if}}\n          {{/if}}\n        </div>\n      </section>\n    </div>\n  \n    <footer class='block-module__footer'>\n      <button\n        class='text-button text-button--delete'\n        type='button'\n        {{action 'toggleIsDeleting'}}\n      >Delete module…</button>\n      <button\n        class='button button--spaced float-end'\n        type='button'\n        {{action 'advance'}}\n      >\n        {{#if this.isLastStep}}\n          Finish\n        {{else}}\n          Next &nbsp;\n          <FaIcon @icon='caret-right' />\n        {{/if}}</button>\n      <button\n        class='button button--spaced float-end'\n        disabled={{if this.isFirstStep 'disabled' null}}\n        type='button'\n        {{action 'back'}}\n      ><FaIcon @icon='caret-left' />&nbsp; Back</button>\n    </footer>\n  \n    {{#if this.isDeleting}}\n      <ModalDialog\n        @overlayClass='modal'\n        @translucentOverlay={{true}}\n        @containerClass='block-module'\n        @onClose={{action 'toggleIsDeleting'}}\n      >\n        <p>Are you sure you want to delete this module? This action cannot be\n          undone.</p>\n        <button\n          class='float-end button button--spaced button--delete'\n          type='button'\n          {{action 'delete'}}\n        >Delete</button>\n        <button\n          class='float-end button button--spaced button--plain'\n          type='button'\n          {{action 'toggleIsDeleting'}}\n        >{{t 'common.Cancel'}}</button>\n      </ModalDialog>\n    {{/if}}\n  </ModalDialog>\n  */\n  {\n    \"id\": \"ICXBPHVy\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@translucentOverlay\\\",\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\"],[true,\\\"modal\\\",[28,[37,1],[[30,0],\\\"back\\\"],null],\\\"block-module dashboard-module-config\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"block-module__header\\\"],[12],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"float-end button button--plain\\\"],[24,4,\\\"button\\\"],[4,[38,1],[[30,0],\\\"onClose\\\"],null],[12],[8,[39,4],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[13],[1,\\\"\\\\n    \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1\\\"],[12],[1,\\\"Edit your module\\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"dashboard-module-config-steps\\\"],[12],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"section\\\"],[14,0,\\\"active\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3 text-center\\\"],[12],[1,\\\"Display settings\\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"section\\\"],[14,0,\\\"config-modal__section\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"config-modal__section-heading\\\"],[14,\\\"for\\\",\\\"module-title\\\"],[12],[1,\\\"Module\\\\n          title\\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,10],[[24,0,\\\"text-input\\\"],[24,\\\"placeholder\\\",\\\"Untitled\\\"]],[[\\\"@value\\\"],[[30,0,[\\\"module\\\",\\\"title\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"section\\\"],[14,0,\\\"config-modal__section\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"config-modal__section-heading\\\"],[12],[1,\\\"Module type\\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"selector\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,11],null,[[\\\"@class\\\",\\\"@checked\\\",\\\"@value\\\"],[\\\"radio-button\\\",[30,0,[\\\"module\\\",\\\"visualiser\\\"]],\\\"data-table\\\"]],null],[1,\\\"\\\\n            Table\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,11],null,[[\\\"@class\\\",\\\"@checked\\\",\\\"@value\\\"],[\\\"radio-button\\\",[30,0,[\\\"module\\\",\\\"visualiser\\\"]],\\\"line-chart\\\"]],null],[1,\\\"\\\\n            Line chart\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,11],null,[[\\\"@class\\\",\\\"@checked\\\",\\\"@value\\\"],[\\\"radio-button\\\",[30,0,[\\\"module\\\",\\\"visualiser\\\"]],\\\"pie-chart\\\"]],null],[1,\\\"\\\\n            Pie chart\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"section\\\"],[14,0,\\\"config-modal__section\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"config-modal__section-heading\\\"],[12],[1,\\\"Data period\\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"selector\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,11],null,[[\\\"@class\\\",\\\"@checked\\\",\\\"@value\\\"],[\\\"radio-button\\\",[30,0,[\\\"module\\\",\\\"periodType\\\"]],\\\"month\\\"]],null],[1,\\\"\\\\n            Monthly\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,11],null,[[\\\"@class\\\",\\\"@checked\\\",\\\"@value\\\"],[\\\"radio-button\\\",[30,0,[\\\"module\\\",\\\"periodType\\\"]],\\\"ytd\\\"]],null],[1,\\\"\\\\n            Year to date\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"section\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3 text-center\\\"],[12],[1,\\\"Metrics\\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"selector\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h4\\\"],[14,0,\\\"h4\\\"],[12],[1,\\\"\\\\n          \\\"],[11,3],[24,0,\\\"tree-branch\\\"],[4,[38,1],[[30,0],\\\"toggleTree\\\",\\\"kpis\\\"],null],[12],[1,\\\"\\\\n            \\\"],[8,[39,4],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"treeExpansion\\\",\\\"kpis\\\"]],\\\"caret-down\\\",\\\"caret-right\\\"]]],null],[1,\\\"\\\\n            KPIs\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"treeExpansion\\\",\\\"kpis\\\"]],[[[41,[51,[30,0,[\\\"singleMetric\\\"]]],[[[1,\\\"            \\\"],[8,[39,16],null,[[\\\"@options\\\",\\\"@labelProperty\\\",\\\"@selection\\\",\\\"@onchange\\\"],[[30,0,[\\\"data\\\",\\\"kpis\\\"]],\\\"name\\\",[30,0,[\\\"selectedKpis\\\"]],[28,[37,1],[[30,0],\\\"updateKpis\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],[[[42,[28,[37,18],[[28,[37,18],[[30,0,[\\\"data\\\",\\\"kpis\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,11],null,[[\\\"@class\\\",\\\"@name\\\",\\\"@checked\\\",\\\"@value\\\"],[\\\"radio-button\\\",\\\"metric\\\",[30,0,[\\\"selectedMetric\\\"]],[30,1]]],null],[1,\\\"\\\\n                \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],[[[1,\\\"              \\\"],[10,2],[14,0,\\\"ptl-placeholder\\\"],[12],[1,\\\"No KPIs available\\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]]],[]],null],[1,\\\"\\\\n        \\\"],[10,\\\"h4\\\"],[14,0,\\\"h4\\\"],[12],[1,\\\"\\\\n          \\\"],[11,3],[24,0,\\\"tree-branch\\\"],[4,[38,1],[[30,0],\\\"toggleTree\\\",\\\"profitAndLoss\\\"],null],[12],[1,\\\"\\\\n            \\\"],[8,[39,4],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"treeExpansion\\\",\\\"profitAndLoss\\\"]],\\\"caret-down\\\",\\\"caret-right\\\"]]],null],[1,\\\"\\\\n            Profit & Loss\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"treeExpansion\\\",\\\"profitAndLoss\\\"]],[[[41,[51,[30,0,[\\\"singleMetric\\\"]]],[[[1,\\\"            \\\"],[8,[39,16],null,[[\\\"@options\\\",\\\"@labelProperty\\\",\\\"@selection\\\",\\\"@onchange\\\"],[[30,0,[\\\"accounts\\\",\\\"profitAndLoss\\\"]],\\\"name\\\",[30,0,[\\\"selectedAccounts\\\"]],[28,[37,1],[[30,0],\\\"updateAccounts\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[15,0,[29,[\\\"depth-\\\",[30,2,[\\\"depth\\\"]],\\\"\\\\n                  \\\",[52,[30,2,[\\\"isHeading\\\"]],\\\"heading\\\"]]]],[12],[1,\\\"\\\\n                \\\"],[8,[39,10],[[24,0,\\\"checkbox\\\"]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,3]]],null],[1,\\\"\\\\n                \\\"],[1,[30,2,[\\\"name\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"]],[2,3]]]]],[1,\\\"\\\\n\\\"]],[]],[[[42,[28,[37,18],[[28,[37,18],[[30,0,[\\\"accounts\\\",\\\"profitAndLoss\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,\\\"label\\\"],[15,0,[29,[\\\"depth-\\\",[30,4,[\\\"depth\\\"]],\\\"\\\\n                  \\\",[52,[30,4,[\\\"isHeading\\\"]],\\\"heading\\\"]]]],[12],[1,\\\"\\\\n                \\\"],[8,[39,11],null,[[\\\"@class\\\",\\\"@name\\\",\\\"@checked\\\",\\\"@value\\\"],[\\\"radio-button\\\",\\\"metric\\\",[30,0,[\\\"selectedMetric\\\"]],[30,4]]],null],[1,\\\"\\\\n                \\\"],[1,[30,4,[\\\"name\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],[[[1,\\\"              \\\"],[10,2],[14,0,\\\"ptl-placeholder\\\"],[12],[1,\\\"No profit and loss accounts available\\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]]],[]],null],[1,\\\"\\\\n        \\\"],[10,\\\"h4\\\"],[14,0,\\\"h4\\\"],[12],[1,\\\"\\\\n          \\\"],[11,3],[24,0,\\\"tree-branch\\\"],[4,[38,1],[[30,0],\\\"toggleTree\\\",\\\"balanceSheet\\\"],null],[12],[1,\\\"\\\\n            \\\"],[8,[39,4],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"treeExpansion\\\",\\\"balanceSheet\\\"]],\\\"caret-down\\\",\\\"caret-right\\\"]]],null],[1,\\\"\\\\n            Balance Sheet\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"treeExpansion\\\",\\\"balanceSheet\\\"]],[[[41,[51,[30,0,[\\\"singleMetric\\\"]]],[[[1,\\\"            \\\"],[8,[39,16],null,[[\\\"@options\\\",\\\"@labelProperty\\\",\\\"@selection\\\",\\\"@onchange\\\"],[[30,0,[\\\"accounts\\\",\\\"balanceSheet\\\"]],\\\"name\\\",[30,0,[\\\"selectedAccounts\\\"]],[28,[37,1],[[30,0],\\\"updateAccounts\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[15,0,[29,[\\\"depth-\\\",[30,5,[\\\"depth\\\"]],\\\"\\\\n                  \\\",[52,[30,5,[\\\"isHeading\\\"]],\\\"heading\\\"]]]],[12],[1,\\\"\\\\n                \\\"],[8,[39,10],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,6]]],null],[1,\\\"\\\\n                \\\"],[1,[30,5,[\\\"name\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"]],[5,6]]]]],[1,\\\"\\\\n\\\"]],[]],[[[42,[28,[37,18],[[28,[37,18],[[30,0,[\\\"accounts\\\",\\\"balanceSheet\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,\\\"label\\\"],[15,0,[29,[\\\"depth-\\\",[30,7,[\\\"depth\\\"]],\\\"\\\\n                  \\\",[52,[30,7,[\\\"isHeading\\\"]],\\\"heading\\\"]]]],[12],[1,\\\"\\\\n                \\\"],[8,[39,11],null,[[\\\"@class\\\",\\\"@name\\\",\\\"@checked\\\",\\\"@value\\\"],[\\\"radio-button\\\",\\\"metric\\\",[30,0,[\\\"selectedMetric\\\"]],[30,7]]],null],[1,\\\"\\\\n                \\\"],[1,[30,7,[\\\"name\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[7]],[[[1,\\\"              \\\"],[10,2],[14,0,\\\"ptl-placeholder\\\"],[12],[1,\\\"No balance sheet accounts available\\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]]],[]],null],[1,\\\"\\\\n        \\\"],[10,\\\"h4\\\"],[14,0,\\\"h4\\\"],[12],[1,\\\"\\\\n          \\\"],[11,3],[24,0,\\\"tree-branch\\\"],[4,[38,1],[[30,0],\\\"toggleTree\\\",\\\"otherData\\\"],null],[12],[1,\\\"\\\\n            \\\"],[8,[39,4],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"treeExpansion\\\",\\\"otherData\\\"]],\\\"caret-down\\\",\\\"caret-right\\\"]]],null],[1,\\\"\\\\n            Other Data\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"treeExpansion\\\",\\\"otherData\\\"]],[[[41,[51,[30,0,[\\\"singleMetric\\\"]]],[[[1,\\\"            \\\"],[8,[39,16],null,[[\\\"@options\\\",\\\"@labelProperty\\\",\\\"@selection\\\",\\\"@onchange\\\"],[[30,0,[\\\"accounts\\\",\\\"otherData\\\"]],\\\"name\\\",[30,0,[\\\"selectedAccounts\\\"]],[28,[37,1],[[30,0],\\\"updateAccounts\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[15,0,[29,[\\\"depth-\\\",[30,8,[\\\"depth\\\"]],\\\"\\\\n                  \\\",[52,[30,8,[\\\"isHeading\\\"]],\\\"heading\\\"]]]],[12],[1,\\\"\\\\n                \\\"],[8,[39,10],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,9]]],null],[1,\\\"\\\\n                \\\"],[1,[30,8,[\\\"name\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"]],[8,9]]]]],[1,\\\"\\\\n\\\"]],[]],[[[42,[28,[37,18],[[28,[37,18],[[30,0,[\\\"accounts\\\",\\\"otherData\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,\\\"label\\\"],[15,0,[29,[\\\"depth-\\\",[30,10,[\\\"depth\\\"]],\\\"\\\\n                  \\\",[52,[30,10,[\\\"isHeading\\\"]],\\\"heading\\\"]]]],[12],[1,\\\"\\\\n                \\\"],[8,[39,11],null,[[\\\"@name\\\",\\\"@checked\\\",\\\"@value\\\"],[\\\"metric\\\",[30,0,[\\\"selectedMetric\\\"]],[30,10]]],null],[1,\\\"\\\\n                \\\"],[1,[30,10,[\\\"name\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[10]],[[[1,\\\"              \\\"],[10,2],[14,0,\\\"ptl-placeholder\\\"],[12],[1,\\\"No other data accounts available\\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"section\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3 text-center\\\"],[12],[1,\\\"Series\\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"selector\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canAccessEntities\\\"]],[[[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"h4\\\"],[12],[1,\\\"\\\\n            \\\"],[11,3],[24,0,\\\"tree-branch\\\"],[4,[38,1],[[30,0],\\\"toggleTree\\\",\\\"entities\\\"],null],[12],[1,\\\"\\\\n              \\\"],[8,[39,4],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"treeExpansion\\\",\\\"entities\\\"]],\\\"caret-down\\\",\\\"caret-right\\\"]]],null],[1,\\\"\\\\n              Branches\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"treeExpansion\\\",\\\"entities\\\"]],[[[41,[30,0,[\\\"multipleSeries\\\"]],[[[1,\\\"              \\\"],[10,\\\"label\\\"],[15,0,[28,[37,20],[\\\"depth-\\\",[30,0,[\\\"branch\\\",\\\"depth\\\"]]],null]],[12],[1,\\\"\\\\n                \\\"],[8,[39,10],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"module\\\",\\\"includeCurrentEntity\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canAccessMultipleEntities\\\"]],[[[1,\\\"                  Current branch\\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[10,1],[14,0,\\\"subtext\\\"],[12],[1,\\\"The module will adapt to whichever\\\\n                    branch you are currently viewing.\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"canAccessMultipleEntities\\\"]],[[[1,\\\"                \\\"],[8,[39,16],[[24,\\\"tagName\\\",\\\"div\\\"]],[[\\\"@options\\\",\\\"@labelProperty\\\",\\\"@selection\\\",\\\"@onchange\\\"],[[30,0,[\\\"data\\\",\\\"entities\\\"]],\\\"name\\\",[30,0,[\\\"selectedEntities\\\"]],[28,[37,1],[[30,0],\\\"updateEntities\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[1,\\\"              \\\"],[10,\\\"label\\\"],[15,0,[28,[37,20],[\\\"depth-\\\",[30,0,[\\\"branch\\\",\\\"depth\\\"]]],null]],[12],[1,\\\"\\\\n                \\\"],[8,[39,11],null,[[\\\"@name\\\",\\\"@checked\\\",\\\"@value\\\"],[\\\"metric\\\",[30,0,[\\\"selectedSeries\\\"]],\\\"current\\\"]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canAccessMultipleEntities\\\"]],[[[1,\\\"                  Current branch\\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[10,1],[14,0,\\\"subtext\\\"],[12],[1,\\\"The module will adapt to whichever\\\\n                    branch you are currently viewing.\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canAccessMultipleBranches\\\"]],[[[1,\\\"                data:\\\\n                \\\"],[1,[30,0,[\\\"data\\\"]]],[1,\\\"\\\\n                data.entities :\\\\n                \\\"],[1,[30,0,[\\\"data\\\",\\\"entities\\\"]]],[1,\\\"\\\\n\\\"],[42,[28,[37,18],[[28,[37,18],[[30,0,[\\\"data\\\",\\\"entities\\\"]]],null]],null],null,[[[1,\\\"                  \\\"],[10,\\\"label\\\"],[15,0,[28,[37,20],[\\\"depth-\\\",[30,11,[\\\"depth\\\"]]],null]],[12],[1,\\\"\\\\n                    \\\"],[8,[39,11],null,[[\\\"@name\\\",\\\"@checked\\\",\\\"@value\\\"],[\\\"metric\\\",[30,0,[\\\"selectedSeries\\\"]],[30,11]]],null],[1,\\\"\\\\n                    \\\"],[1,[30,11,[\\\"name\\\"]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[11]],[[[1,\\\"                  \\\"],[10,2],[14,0,\\\"ptl-placeholder\\\"],[12],[1,\\\"No branches available\\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],null]],[]]]],[]],null]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canAccessEntityGroups\\\"]],[[[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"h4\\\"],[12],[1,\\\"\\\\n            \\\"],[11,3],[24,0,\\\"tree-branch\\\"],[4,[38,1],[[30,0],\\\"toggleTree\\\",\\\"entityGroups\\\"],null],[12],[1,\\\"\\\\n              \\\"],[8,[39,4],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"treeExpansion\\\",\\\"entityGroups\\\"]],\\\"caret-down\\\",\\\"caret-right\\\"]]],null],[1,\\\"Groups\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"treeExpansion\\\",\\\"entityGroups\\\"]],[[[41,[30,0,[\\\"multipleSeries\\\"]],[[[1,\\\"              \\\"],[8,[39,16],null,[[\\\"@options\\\",\\\"@labelProperty\\\",\\\"@selection\\\",\\\"@onchange\\\"],[[30,0,[\\\"data\\\",\\\"entityGroups\\\"]],\\\"name\\\",[30,0,[\\\"selectedEntityGroups\\\"]],[28,[37,1],[[30,0],\\\"updateEntityGroups\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],[[[42,[28,[37,18],[[28,[37,18],[[30,0,[\\\"data\\\",\\\"entityGroups\\\"]]],null]],null],null,[[[1,\\\"                \\\"],[10,\\\"label\\\"],[15,0,[28,[37,20],[\\\"depth-\\\",[30,12,[\\\"depth\\\"]]],null]],[12],[1,\\\"\\\\n                  \\\"],[8,[39,11],null,[[\\\"@name\\\",\\\"@checked\\\",\\\"@value\\\"],[\\\"metric\\\",[30,0,[\\\"selectedSeries\\\"]],[30,12]]],null],[1,\\\"\\\\n                  \\\"],[1,[30,12,[\\\"name\\\"]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[12]],[[[1,\\\"                \\\"],[10,2],[14,0,\\\"ptl-placeholder\\\"],[12],[1,\\\"No groups available\\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]]],[]],null]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--delete\\\"],[24,4,\\\"button\\\"],[4,[38,1],[[30,0],\\\"toggleIsDeleting\\\"],null],[12],[1,\\\"Delete module…\\\"],[13],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--spaced float-end\\\"],[24,4,\\\"button\\\"],[4,[38,1],[[30,0],\\\"advance\\\"],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLastStep\\\"]],[[[1,\\\"        Finish\\\\n\\\"]],[]],[[[1,\\\"        Next  \\\\n        \\\"],[8,[39,4],null,[[\\\"@icon\\\"],[\\\"caret-right\\\"]],null],[1,\\\"\\\\n      \\\"]],[]]],[13],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--spaced float-end\\\"],[16,\\\"disabled\\\",[52,[30,0,[\\\"isFirstStep\\\"]],\\\"disabled\\\",null]],[24,4,\\\"button\\\"],[4,[38,1],[[30,0],\\\"back\\\"],null],[12],[8,[39,4],null,[[\\\"@icon\\\"],[\\\"caret-left\\\"]],null],[1,\\\"  Back\\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isDeleting\\\"]],[[[1,\\\"    \\\"],[8,[39,0],null,[[\\\"@overlayClass\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\",\\\"@onClose\\\"],[\\\"modal\\\",true,\\\"block-module\\\",[28,[37,1],[[30,0],\\\"toggleIsDeleting\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"Are you sure you want to delete this module? This action cannot be\\\\n        undone.\\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"float-end button button--spaced button--delete\\\"],[24,4,\\\"button\\\"],[4,[38,1],[[30,0],\\\"delete\\\"],null],[12],[1,\\\"Delete\\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"float-end button button--spaced button--plain\\\"],[24,4,\\\"button\\\"],[4,[38,1],[[30,0],\\\"toggleIsDeleting\\\"],null],[12],[1,[28,[35,24],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]]]]]],[\\\"kpi\\\",\\\"account\\\",\\\"isSelected\\\",\\\"account\\\",\\\"account\\\",\\\"isSelected\\\",\\\"account\\\",\\\"account\\\",\\\"isSelected\\\",\\\"account\\\",\\\"entity\\\",\\\"group\\\"],false,[\\\"modal-dialog\\\",\\\"action\\\",\\\"header\\\",\\\"button\\\",\\\"fa-icon\\\",\\\"h1\\\",\\\"div\\\",\\\"section\\\",\\\"h3\\\",\\\"label\\\",\\\"input\\\",\\\"radio-button\\\",\\\"h4\\\",\\\"a\\\",\\\"if\\\",\\\"unless\\\",\\\"multiselect-checkboxes\\\",\\\"each\\\",\\\"-track-array\\\",\\\"p\\\",\\\"concat\\\",\\\"br\\\",\\\"span\\\",\\\"footer\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/components/dashboard/config-modal.hbs\",\n    \"isStrictMode\": false\n  });\n\n  // This renders its own <ModalDialog> in the template, so it never needed to be\n  // one: it subclassed the addon's component and then nulled out the inherited\n  // layout. ember-modal-dialog 5 is a Glimmer component with no `.extend`, so\n  // the vestigial subclassing is dropped here. `tagName: ''` preserves the\n  // wrapper-less DOM the addon's `@tagName('')` used to give it.\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    tagName: '',\n    session: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    groups: [],\n    selectedKpis: [],\n    selectedAccounts: [],\n    selectedEntityGroups: [],\n    selectedEntities: [],\n    isMac: (0, _object.computed)(function () {\n      return window.navigator.platform.toLowerCase().indexOf('mac') > -1;\n    }),\n    canAccessEntities: true,\n    // todo\n\n    canAccessEntityGroups: (0, _object.computed)('sessionData.entity.parent.id', function () {\n      const parentEntity = (0, _object.get)(this, 'sessionData.entity.parent.id');\n      const parenEntityFilter = {\n        and: []\n      };\n      if (parentEntity) {\n        parenEntityFilter.and.push({\n          field: 'parentEntity',\n          op: 'EQ',\n          value: parentEntity\n        });\n      }\n      return (0, _object.get)(this, 'store').query('entity-group', {\n        filter: parenEntityFilter\n      }).then(groups => {\n        return groups.length;\n      });\n    }),\n    canAccessMultipleEntities: (0, _object.computed)('session.data.authenticated.user.{readableEntities,role}', 'sessionData.entities', 'sessionData.entity.parent', function () {\n      const role = (0, _object.get)(this, 'session.data.authenticated.user.role');\n      const parent = (0, _object.get)(this, 'sessionData.entity.parent');\n      const entities = (0, _object.get)(this, 'sessionData.entities');\n      const readableForCurrentOrganisation = (entities || []).filterBy('parent', parent);\n      return role === 'admin' || readableForCurrentOrganisation.length > 1;\n    }),\n    treeExpansion: {\n      kpis: false,\n      profitAndLoss: false,\n      balanceSheet: false,\n      otherData: false,\n      entities: true,\n      entityGroups: true\n    },\n    step: 0,\n    isFirstStep: (0, _computed.equal)('step', 0),\n    isLastStep: (0, _computed.equal)('step', 2),\n    singleMetric: (0, _computed.equal)('module.visualiser', 'line-chart'),\n    multipleSeries: (0, _computed.equal)('module.visualiser', 'line-chart'),\n    correctMetricCount: (0, _object.observer)('singleMetric', function () {\n      const single = (0, _object.get)(this, 'singleMetric');\n      if (single) {\n        const module = (0, _object.get)(this, 'module');\n        const {\n          kpis,\n          accounts\n        } = module.getProperties('kpis', 'accounts');\n        if (!(0, _utils.isEmpty)(kpis)) {\n          module.setProperties({\n            kpis: [kpis.objectAt(0)],\n            accounts: []\n          });\n        } else if (!(0, _utils.isEmpty)(accounts)) {\n          (0, _object.set)(module, 'accounts', [accounts.objectAt(0)]);\n        }\n      }\n    }),\n    correctSeriesCount: (0, _object.observer)('singleSeries', function () {\n      const single = !(0, _object.get)(this, 'multipleSeries');\n      if (single) {\n        const module = (0, _object.get)(this, 'module');\n        const {\n          entities,\n          entityGroups\n        } = module.getProperties('entities', 'entityGroups');\n        if (entities.length) {\n          module.setProperties({\n            entities: [entities.objectAt(0)],\n            entityGroups: []\n          });\n        } else if (entityGroups.length) {\n          (0, _object.set)(module, 'entityGroups', [entityGroups.objectAt(0)]);\n        }\n      }\n    }),\n    accounts: {\n      profitAndLoss: [],\n      balanceSheet: [],\n      otherData: []\n    },\n    setSelectedKpis: (0, _evented.on)('init', function () {\n      const linkDashboardToKpis = (0, _object.get)(this, 'module.kpis') || [];\n      const kpiIds = linkDashboardToKpis.content.map(item => (0, _object.get)(item, 'kpi.id'));\n      const allKpisInStore = this.store.peekAll('kpi').filter(item => kpiIds.includes((0, _object.get)(item, 'id')));\n      (0, _object.set)(this, 'selectedKpis', allKpisInStore);\n    }),\n    setSelectedAccounts: (0, _evented.on)('init', function () {\n      const linkDashboardToAccounts = (0, _object.get)(this, 'module.accounts') || [];\n      const accountIds = linkDashboardToAccounts.content.map(item => (0, _object.get)(item, 'account.id'));\n      const allAccountsInStore = this.store.peekAll('account').filter(item => accountIds.includes((0, _object.get)(item, 'id')));\n      (0, _object.set)(this, 'selectedAccounts', allAccountsInStore);\n    }),\n    setSelectedEntityGroups: (0, _evented.on)('init', function () {\n      const linkDashboardToEntityGroups = (0, _object.get)(this, 'module.entityGroups') || [];\n      const entityGroupIds = linkDashboardToEntityGroups.content.map(item => (0, _object.get)(item, 'entityGroup.id'));\n      const allEntityGroupsInStore = this.store.peekAll('entity-group').filter(item => entityGroupIds.includes((0, _object.get)(item, 'id')));\n      (0, _object.set)(this, 'selectedEntityGroups', allEntityGroupsInStore);\n    }),\n    setSelectedEntities: (0, _evented.on)('init', function () {\n      const linkDashboardToEntities = (0, _object.get)(this, 'module.entities') || [];\n      const entityIds = linkDashboardToEntities.content.map(item => (0, _object.get)(item, 'entity.id'));\n      const allEntitiesInStore = this.store.peekAll('entity').filter(item => entityIds.includes((0, _object.get)(item, 'id')));\n      (0, _object.set)(this, 'selectedEntities', allEntitiesInStore);\n    }),\n    setAccounts: (0, _evented.on)('init', (0, _object.observer)('data.accounts.[]', function () {\n      const accounts = (0, _object.get)(this, 'data.accounts');\n      if (!accounts) {\n        return;\n      }\n\n      // Set account depths\n      accounts.forEach(account => {\n        (0, _object.set)(account, 'depth', (0, _object.computed)(() => {\n          let parent = (0, _object.get)(account, 'parent');\n          let depth = 0;\n          while ((0, _object.get)(parent, 'id') && depth <= 5) {\n            parent = (0, _object.get)(parent, 'parent');\n            depth += 1;\n          }\n          return depth;\n        }));\n        const data = {\n          profitAndLoss: accounts.filterBy('category', 'profit-and-loss').sortBy('sortIndex'),\n          balanceSheet: accounts.filterBy('category', 'balance-sheet').sortBy('sortIndex'),\n          otherData: accounts.filterBy('category', 'other-data').sortBy('sortIndex')\n        };\n        (0, _object.set)(this, 'accounts', data);\n      });\n    })),\n    selectedMetric: (0, _object.computed)('module.kpis', 'module.accounts', {\n      get() {\n        const linkDashboardKpis = (0, _object.get)(this, 'module.kpis') || [];\n        const kpiIds = linkDashboardKpis.content.map(item => (0, _object.get)(item, 'kpi.id'));\n        const kpis = this.store.peekAll('kpi').filter(item => kpiIds.includes((0, _object.get)(item, 'id')));\n        const linkDashBoardToAccounts = (0, _object.get)(this, 'module.accounts') || [];\n        const accountIds = linkDashBoardToAccounts.content.map(item => (0, _object.get)(item, 'account.id'));\n        const accounts = this.store.peekAll('account').filter(item => accountIds.includes((0, _object.get)(item, 'id')));\n        return (kpis || []).concat(accounts || [])[0];\n      },\n      set(key, value) {\n        const linkDashboardToKpis = (0, _object.get)(this, 'module.kpis') || [];\n        linkDashboardToKpis.content.map(item => item.deleteRecord());\n        const linkDashboardToAccounts = (0, _object.get)(this, 'module.accounts') || [];\n        linkDashboardToAccounts.content.map(item => item.deleteRecord());\n        if (value instanceof _kpi.default) {\n          (0, _object.get)(this, 'store').createRecord('link-dashboard-module-kpi', {\n            kpi: value,\n            dashboardModule: (0, _object.get)(this, 'module')\n          });\n        } else if (value instanceof _account.default) {\n          (0, _object.get)(this, 'store').createRecord('link-dashboard-module-account', {\n            account: value,\n            dashboardModule: (0, _object.get)(this, 'module')\n          });\n        }\n        return value;\n      }\n    }),\n    selectedSeries: (0, _object.computed)('module.{entities,entityGroups,includeCurrentEntity}', {\n      get() {\n        let includeCurrentEntity = (0, _object.get)(this, 'module.includeCurrentEntity');\n        const linkDashboardToEntities = (0, _object.get)(this, 'module.entities') || [];\n        const entityIds = linkDashboardToEntities.content.map(item => (0, _object.get)(item, 'entity.id'));\n        const entities = this.store.peekAll('entity').filter(item => entityIds.includes((0, _object.get)(item, 'id')));\n        const linkDashboardToEntityGroups = (0, _object.get)(this, 'module.entityGroups') || [];\n        const entityGroupIds = linkDashboardToEntityGroups.content.map(item => (0, _object.get)(item, 'entityGroup.id'));\n        const entityGroups = this.store.peekAll('entity-group').filter(item => entityGroupIds.includes((0, _object.get)(item, 'id')));\n        return includeCurrentEntity ? 'current' : (entities || []).concat(entityGroups || [])[0];\n      },\n      set(key, value) {\n        let includeCurrentEntity = false;\n        const linkDashboardToEntities = (0, _object.get)(this, 'module.entities') || [];\n        linkDashboardToEntities.content.map(item => item.deleteRecord());\n        const linkDashboardToEntityGroups = (0, _object.get)(this, 'module.entityGroups') || [];\n        linkDashboardToEntityGroups.content.map(item => item.deleteRecord());\n        if (value === 'current') {\n          includeCurrentEntity = true;\n        } else if (value instanceof _entity.default) {\n          (0, _object.get)(this, 'store').createRecord('link-dashboard-module-entity', {\n            entity: value,\n            dashboardModule: (0, _object.get)(this, 'module')\n          });\n        } else if (value instanceof _entityGroup.default) {\n          (0, _object.get)(this, 'store').createRecord('link-dashboard-module-entity-group', {\n            entityGroup: value,\n            dashboardModule: (0, _object.get)(this, 'module')\n          });\n        }\n        (0, _object.get)(this, 'module').setProperties({\n          includeCurrentEntity\n        });\n        return value;\n      }\n    }),\n    actions: {\n      advance() {\n        const step = (0, _object.get)(this, 'step');\n        if (step < 2) {\n          (0, _object.set)(this, 'step', step + 1);\n          (0, _jquery.default)('.ember-modal-dialog section.active').removeClass('active').next().addClass('active');\n        } else {\n          this.send('onClose');\n        }\n      },\n      back() {\n        const step = (0, _object.get)(this, 'step');\n        if (step > 0) {\n          (0, _object.set)(this, 'step', step - 1);\n          (0, _jquery.default)('.ember-modal-dialog section.active').removeClass('active').prev().addClass('active');\n        }\n      },\n      async onClose(withoutSaving) {\n        if (!withoutSaving) {\n          await (0, _object.get)(this, 'module').save();\n        }\n        const savePromises = [];\n        const models = ['link-dashboard-module-entity-group', 'link-dashboard-module-entity', 'link-dashboard-module-kpi', 'link-dashboard-module-account'];\n        models.forEach(model => {\n          (0, _object.get)(this, 'store').peekAll(model).forEach(item => {\n            if ((0, _object.get)(item, 'isNew') || (0, _object.get)(item, 'isDeleted')) {\n              savePromises.push(item.save());\n            }\n          });\n        });\n        await Promise.all(savePromises);\n        this.close();\n      },\n      updateEntityGroups(_newSelection, value, operation) {\n        if (operation === 'removed') {\n          const entityGroups = (0, _object.get)(this, 'module.entityGroups') || [];\n          const linkRecord = entityGroups.find(item => (0, _object.get)(item, 'entityGroup.id') === (0, _object.get)(value, 'id'));\n          if (linkRecord) {\n            linkRecord.deleteRecord();\n          }\n        } else if (operation === 'added') {\n          (0, _object.get)(this, 'store').createRecord('link-dashboard-module-entity-group', {\n            entityGroup: value,\n            dashboardModule: (0, _object.get)(this, 'module')\n          });\n        }\n      },\n      updateEntities(_newSelection, value, operation) {\n        if (operation === 'removed') {\n          const entities = (0, _object.get)(this, 'module.entities') || [];\n          const linkRecord = entities.find(item => (0, _object.get)(item, 'entity.id') === (0, _object.get)(value, 'id'));\n          if (linkRecord) {\n            linkRecord.deleteRecord();\n          }\n        } else if (operation === 'added') {\n          (0, _object.get)(this, 'store').createRecord('link-dashboard-module-entity', {\n            entity: value,\n            dashboardModule: (0, _object.get)(this, 'module')\n          });\n        }\n      },\n      updateKpis(_newSelection, value, operation) {\n        if (operation === 'removed') {\n          const kpis = (0, _object.get)(this, 'module.kpis') || [];\n          const linkRecord = kpis.find(item => (0, _object.get)(item, 'kpi.id') === (0, _object.get)(value, 'id'));\n          if (linkRecord) {\n            linkRecord.deleteRecord();\n          }\n        } else if (operation === 'added') {\n          (0, _object.get)(this, 'store').createRecord('link-dashboard-module-kpi', {\n            kpi: value,\n            dashboardModule: (0, _object.get)(this, 'module')\n          });\n        }\n      },\n      updateAccounts(_newSelection, value, operation) {\n        if (operation === 'removed') {\n          const accounts = (0, _object.get)(this, 'module.accounts') || [];\n          const linkRecord = accounts.find(item => (0, _object.get)(item, 'account.id') === (0, _object.get)(value, 'id'));\n          if (linkRecord) {\n            linkRecord.deleteRecord();\n          }\n        } else if (operation === 'added') {\n          (0, _object.get)(this, 'store').createRecord('link-dashboard-module-account', {\n            account: value,\n            dashboardModule: (0, _object.get)(this, 'module')\n          });\n        }\n      },\n      toggleIsDeleting() {\n        this.toggleProperty('isDeleting');\n      },\n      delete() {\n        this.delete((0, _object.get)(this, 'module'));\n        this.send('onClose', true);\n      },\n      toggleTree(type) {\n        this.toggleProperty('treeExpansion.' + type);\n      }\n    }\n  }));\n});","define(\"portal/components/dashboard/draggable-module\", [\"exports\", \"@ember/component\", \"@ember/service\", \"@ember/object\", \"@ember/object/evented\", \"rsvp\", \"@ember/utils\", \"@ember/array\", \"jquery\", \"moment\", \"portal/config/environment\", \"lodash\", \"@ember/template-factory\"], function (_exports, _component, _service, _object, _evented, _rsvp, _utils, _array, _jquery, _moment, _environment, _lodash, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/service\",0,\"@ember/object\",0,\"@ember/object/evented\",0,\"rsvp\",0,\"@ember/utils\",0,\"@ember/array\",0,\"jquery\",0,\"moment\",0,\"portal/config/environment\",0,\"lodash\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isEditing}}\n    <Dashboard::ConfigModal\n      @close={{action 'toggleIsEditing'}}\n      @delete={{action 'delete'}}\n      @translucentOverlay={{true}}\n      @module={{this.module}}\n      @data={{this.data}}\n    />\n  {{else}}\n    <header class='dashboard-module__header block-module__header'>\n      {{#if (media 'isDesktop')}}\n        <button\n          class='dashboard-module__edit-button'\n          type='button'\n          {{action 'toggleIsEditing'}}\n        ><FaIcon @icon='edit' /></button>\n      {{/if}}\n  \n      {{#if this.module.title}}\n        <h1 class='text-center tuck-for-controls'>{{this.module.title}}</h1>\n      {{else}}\n        <h1 class='text-center tuck-for-controls placeholder'>Untitled</h1>\n      {{/if}}\n    </header>\n  \n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' />\n    {{else}}\n      {{#if this.hasError}}\n        <div class='text-center error'>\n          <h2><FaIcon @icon='exclamation-circle' /></h2>\n          <h3>Error</h3>\n          <p>Sorry, the data for this module could not be loaded.</p>\n        </div>\n      {{else}}\n        {{#if this.metrics.length}}\n          {{#if this.hasData}}\n            {{component\n              (concat 'charts/' this.module.visualiser)\n              metrics=this.metrics\n              series=this.series\n              period=this.period\n              class=(if\n                (eq this.module.visualiser 'data-table') 'block-module__table'\n              )\n            }}\n          {{else}}\n            <div class='text-center error no-data'>\n              <h2><FaIcon @icon='exclamation-triangle' /></h2>\n              <h3>No data</h3>\n              <p>You could import data for\n                {{moment-format this.sessionData.period 'MMMM YYYY' 'YYYY-MM'}}\n                or configure this module to display different data.</p>\n            </div>\n          {{/if}}\n        {{else}}\n          <p class='text-center dashboard-module__explainer'>This module hasn’t\n            been configured yet.</p>\n          <p class='text-center'><button\n              class='text-button'\n              type='button'\n              {{action 'toggleIsEditing'}}\n            >Configure</button></p>\n        {{/if}}\n      {{/if}}\n    {{/if}}\n  {{/if}}\n  */\n  {\n    \"id\": \"Jk7t942s\",\n    \"block\": \"[[[41,[30,0,[\\\"isEditing\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@close\\\",\\\"@delete\\\",\\\"@translucentOverlay\\\",\\\"@module\\\",\\\"@data\\\"],[[28,[37,2],[[30,0],\\\"toggleIsEditing\\\"],null],[28,[37,2],[[30,0],\\\"delete\\\"],null],true,[30,0,[\\\"module\\\"]],[30,0,[\\\"data\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,\\\"header\\\"],[14,0,\\\"dashboard-module__header block-module__header\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"dashboard-module__edit-button\\\"],[24,4,\\\"button\\\"],[4,[38,2],[[30,0],\\\"toggleIsEditing\\\"],null],[12],[8,[39,6],null,[[\\\"@icon\\\"],[\\\"edit\\\"]],null],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"module\\\",\\\"title\\\"]],[[[1,\\\"      \\\"],[10,\\\"h1\\\"],[14,0,\\\"text-center tuck-for-controls\\\"],[12],[1,[30,0,[\\\"module\\\",\\\"title\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,\\\"h1\\\"],[14,0,\\\"text-center tuck-for-controls placeholder\\\"],[12],[1,\\\"Untitled\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,8],null,[[\\\"@type\\\"],[\\\"ripple\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"hasError\\\"]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"text-center error\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h2\\\"],[12],[8,[39,6],null,[[\\\"@icon\\\"],[\\\"exclamation-circle\\\"]],null],[13],[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[12],[1,\\\"Error\\\"],[13],[1,\\\"\\\\n        \\\"],[10,2],[12],[1,\\\"Sorry, the data for this module could not be loaded.\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"metrics\\\",\\\"length\\\"]],[[[41,[30,0,[\\\"hasData\\\"]],[[[1,\\\"          \\\"],[46,[28,[37,14],[\\\"charts/\\\",[30,0,[\\\"module\\\",\\\"visualiser\\\"]]],null],null,[[\\\"metrics\\\",\\\"series\\\",\\\"period\\\",\\\"class\\\"],[[30,0,[\\\"metrics\\\"]],[30,0,[\\\"series\\\"]],[30,0,[\\\"period\\\"]],[52,[28,[37,15],[[30,0,[\\\"module\\\",\\\"visualiser\\\"]],\\\"data-table\\\"],null],\\\"block-module__table\\\"]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"text-center error no-data\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h2\\\"],[12],[8,[39,6],null,[[\\\"@icon\\\"],[\\\"exclamation-triangle\\\"]],null],[13],[1,\\\"\\\\n            \\\"],[10,\\\"h3\\\"],[12],[1,\\\"No data\\\"],[13],[1,\\\"\\\\n            \\\"],[10,2],[12],[1,\\\"You could import data for\\\\n              \\\"],[1,[28,[35,16],[[30,0,[\\\"sessionData\\\",\\\"period\\\"]],\\\"MMMM YYYY\\\",\\\"YYYY-MM\\\"],null]],[1,\\\"\\\\n              or configure this module to display different data.\\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[1,\\\"        \\\"],[10,2],[14,0,\\\"text-center dashboard-module__explainer\\\"],[12],[1,\\\"This module hasn’t\\\\n          been configured yet.\\\"],[13],[1,\\\"\\\\n        \\\"],[10,2],[14,0,\\\"text-center\\\"],[12],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,4,\\\"button\\\"],[4,[38,2],[[30,0],\\\"toggleIsEditing\\\"],null],[12],[1,\\\"Configure\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]]],[]]]],[]]]],[],false,[\\\"if\\\",\\\"dashboard/config-modal\\\",\\\"action\\\",\\\"header\\\",\\\"media\\\",\\\"button\\\",\\\"fa-icon\\\",\\\"h1\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"h2\\\",\\\"h3\\\",\\\"p\\\",\\\"component\\\",\\\"concat\\\",\\\"eq\\\",\\\"moment-format\\\"]]\",\n    \"moduleName\": \"portal/components/dashboard/draggable-module.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    classNames: ['dashboard-module', 'block-module'],\n    attributeBindings: ['module.tmpId:data-module-id'],\n    cache: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    session: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    isLoading: false,\n    isEditing: (0, _object.computed)('module.isNewModule', {\n      get() {\n        if ((0, _object.get)(this, 'module.isNewModule') === true) {\n          (0, _object.set)(this, 'module.isNewModule', false);\n          return true;\n        }\n        return false;\n      },\n      set(_key, value) {\n        return value;\n      }\n    }),\n    metrics: [],\n    series: [],\n    period: {},\n    updateMetrics: (0, _evented.on)('init', function () {\n      const visualiser = (0, _object.get)(this, 'module.visualiser');\n      (0, _object.set)(this, 'hasError', false);\n      (0, _object.set)(this, 'badConfig', false);\n      if (!visualiser) {\n        return;\n      }\n      const period = {\n        start: null,\n        end: (0, _object.get)(this, 'sessionData.period'),\n        type: (0, _object.get)(this, 'module.periodType') === 'ytd' ? 'ytd' : 'month'\n      };\n      if (visualiser === 'line-chart') {\n        (0, _object.set)(period, 'start', (0, _moment.default)((0, _object.get)(period, 'end'), 'YYYY-MM').subtract(11, 'months').format('YYYY-MM'));\n      } else {\n        (0, _object.set)(period, 'start', (0, _object.get)(period, 'end'));\n      }\n      (0, _object.set)(this, 'period', period);\n      const module = (0, _object.get)(this, 'module');\n      let linkDashboardModuleToAccounts = module.hasMany('accounts').value() || [];\n      let linkDashboardModuleToKpis = module.hasMany('kpis').value() || [];\n      let linkDashboardModuleToEntities = module.hasMany('entities').value() || [];\n      let linkDashboardModulesToEntityGroups = module.hasMany('entityGroups').value() || [];\n      const includeCurrent = (0, _object.get)(this, 'module.includeCurrentEntity');\n      let accounts = (linkDashboardModuleToAccounts || []).map(account => (0, _object.get)(account, 'account.id'));\n      let kpis = (linkDashboardModuleToKpis || []).map(item => (0, _object.get)(item, 'kpi.id'));\n      let entities = (linkDashboardModuleToEntities || []).map(item => (0, _object.get)(item, 'entity'));\n      let entityGroups = (linkDashboardModulesToEntityGroups || []).map(item => (0, _object.get)(item, 'entityGroup'));\n      const series = [...entities, ...entityGroups];\n      if (includeCurrent) {\n        series.unshift((0, _object.get)(this, 'sessionData.entity'));\n      }\n      (0, _object.set)(this, 'series', series);\n      if (includeCurrent) {\n        entities.push((0, _object.get)(this, 'sessionData.entity'));\n      }\n      if (!accounts.length && !kpis.length || !entities.length && !entityGroups.length) {\n        return;\n      }\n      (0, _object.set)(this, 'isLoading', true);\n      const entityIds = entities.map(entity => (0, _object.get)(entity, 'id')).filter(i => i);\n      const entityGroupIds = entityGroups.map(entityGroup => (0, _object.get)(entityGroup, 'id')).filter(i => i);\n      const loadBalances = this.getMetrics('balances', accounts, entityIds, entityGroupIds, period);\n      const loadKpiValues = this.getMetrics('kpis', kpis, entityIds, entityGroupIds, period);\n      return _rsvp.default.all([loadBalances, loadKpiValues]).then(data => {\n        // Make sure this module wasn't destroyed while its data was loading.\n        // This happens if you switch periods quickly.\n        if (this.isDestroying) {\n          return;\n        }\n        const metrics = data[0].concat(data[1]);\n        return this.setMetrics(metrics, entities.concat(entityGroups));\n      }).catch(err => {\n        // If there was a permissions error, attempt to fix it\n        if (err.status === 403 && err.responseJSON && err.responseJSON.errors[0].title === 'Group access denied.') {\n          this.attemptToCorrectPermissionsError(err);\n        } else {\n          (0, _object.set)(this, 'isLoading', false);\n          (0, _object.set)(this, 'hasError', true);\n        }\n      });\n    }),\n    setMetrics(metrics) {\n      const periodTypes = ['month', 'ytd'];\n      let hasData = false;\n      metrics.forEach(metric => {\n        if ((0, _utils.isEmpty)(metric.series)) {\n          return;\n        }\n        metric.series.forEach(entity => {\n          if ((0, _utils.isEmpty)(entity.periods)) {\n            return;\n          }\n          entity.periods.forEach(period => {\n            periodTypes.forEach(type => {\n              if (period.periodTypes[type] && period.periodTypes[type].value != null) {\n                hasData = true;\n              }\n            });\n          });\n        });\n      });\n      this.setProperties({\n        hasData,\n        metrics,\n        isLoading: false\n      });\n    },\n    getMetrics(type, metrics, entities, entityGroups, period) {\n      if (!metrics || !metrics.length) {\n        return _rsvp.default.resolve([]);\n      }\n      const url = `${_environment.default.urls.api}${_environment.default.urls.apiV1Path}/reports/${type}`;\n      const payload = {\n        entities,\n        entityGroups,\n        periodStart: period.start,\n        periodEnd: period.end,\n        periodTypes: [period.type],\n        metrics\n      };\n      const headers = {\n        Authorization: 'Bearer ' + (0, _object.get)(this, 'session.data.authenticated.access_token')\n      };\n      const cacheKey = _lodash.default.merge(payload, {\n        type\n      });\n      const cached = (0, _object.get)(this, 'cache').lookup('reports', cacheKey);\n      if (cached) {\n        return cached;\n      }\n      return _jquery.default.ajax({\n        url,\n        data: JSON.stringify({\n          ...payload\n        }),\n        headers,\n        method: 'POST',\n        contentType: 'application/json'\n      }).then(res => {\n        (0, _object.get)(this, 'cache').store('reports', cacheKey, res.data);\n        return res.data;\n      });\n    },\n    attemptToCorrectPermissionsError(err) {\n      const error = err.responseJSON.errors[0];\n      const loadGroups = (0, _object.get)(this, 'module.entityGroups');\n      const disallowedGroups = error.detail.match(/: ([0-9a-f]{24})(?:, ([0-9a-f]{24}))?/).slice(1);\n      loadGroups.then(groups => {\n        if ((0, _array.isArray)(groups) && (0, _array.isArray)(disallowedGroups)) {\n          const startingLength = (0, _object.get)(this, 'module.entityGroups.length');\n          (0, _object.set)(this, 'module.entityGroups', groups.reject(group => {\n            return disallowedGroups.indexOf((0, _object.get)(group, 'id')) > -1;\n          }));\n          if ((0, _object.get)(this, 'module.entityGroups.length') < startingLength) {\n            (0, _object.get)(this, 'module').save().then(this.updateMetrics.bind(this)).catch(this.send.bind(this));\n          } else {\n            (0, _object.set)(this, 'isLoading', false);\n            (0, _object.set)(this, 'hasError', true);\n          }\n        }\n      });\n    },\n    actions: {\n      toggleIsEditing() {\n        const isEditing = this.toggleProperty('isEditing');\n        const isDestroying = (0, _object.get)(this, 'module.isDestroying');\n        if (!isEditing && !isDestroying) {\n          this.updateMetrics();\n        }\n      },\n      delete() {\n        this.delete((0, _object.get)(this, 'module'));\n      }\n    }\n  }));\n});","define(\"portal/components/dashboard/module-rows\", [\"exports\", \"@ember/component\", \"@ember/service\", \"@ember/object/evented\", \"@ember/object\", \"jquery\", \"rsvp\", \"@ember/runloop\", \"portal/utils/make-temp-id\", \"@ember/template-factory\"], function (_exports, _component, _service, _evented, _object, _jquery, _rsvp, _runloop, _makeTempId, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/service\",0,\"@ember/object/evented\",0,\"@ember/object\",0,\"jquery\",0,\"rsvp\",0,\"@ember/runloop\",0,\"portal/utils/make-temp-id\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#each this.rows as |row|}}\n    <section class='dashboard__row'>\n      {{#each row as |module|}}\n        <Dashboard::DraggableModule\n          @module={{module}}\n          @data={{this.data}}\n          @delete={{action 'deleteModule'}}\n        />\n      {{/each}}\n    </section>\n  {{else}}\n    <header class='spaced-header'>\n      <h2 class='text-center'>It looks like you don’t have any modules yet</h2>\n      <h3 class='text-center subtitle'>Click the button below to get started</h3>\n    </header>\n  {{/each}}\n  \n  {{#if (media 'isDesktop')}}\n    <p class='dashboard__actions'>\n      <button\n        class='button button--add'\n        type='button'\n        {{action 'createModule'}}\n      >Add new module</button>\n    </p>\n  {{/if}}\n  */\n  {\n    \"id\": \"4M1h7n6a\",\n    \"block\": \"[[[42,[28,[37,1],[[28,[37,1],[[30,0,[\\\"rows\\\"]]],null]],null],null,[[[1,\\\"  \\\"],[10,\\\"section\\\"],[14,0,\\\"dashboard__row\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,1],[[28,[37,1],[[30,1]],null]],null],null,[[[1,\\\"      \\\"],[8,[39,3],null,[[\\\"@module\\\",\\\"@data\\\",\\\"@delete\\\"],[[30,2],[30,0,[\\\"data\\\"]],[28,[37,4],[[30,0],\\\"deleteModule\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],[[[1,\\\"  \\\"],[10,\\\"header\\\"],[14,0,\\\"spaced-header\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h2\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"It looks like you don’t have any modules yet\\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"h3\\\"],[14,0,\\\"text-center subtitle\\\"],[12],[1,\\\"Click the button below to get started\\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[28,[37,9],[\\\"isDesktop\\\"],null],[[[1,\\\"  \\\"],[10,2],[14,0,\\\"dashboard__actions\\\"],[12],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add\\\"],[24,4,\\\"button\\\"],[4,[38,4],[[30,0],\\\"createModule\\\"],null],[12],[1,\\\"Add new module\\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"row\\\",\\\"module\\\"],false,[\\\"each\\\",\\\"-track-array\\\",\\\"section\\\",\\\"dashboard/draggable-module\\\",\\\"action\\\",\\\"header\\\",\\\"h2\\\",\\\"h3\\\",\\\"if\\\",\\\"media\\\",\\\"p\\\",\\\"button\\\"]]\",\n    \"moduleName\": \"portal/components/dashboard/module-rows.hbs\",\n    \"isStrictMode\": false\n  });\n  const ANIMATION_DURATION = 250;\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    store: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    media: (0, _service.inject)(),\n    rows: (0, _object.computed)('modules.[]', function () {\n      const modules = (0, _object.get)(this, 'modules');\n      const tree = [];\n      const spare = [];\n      modules.forEach(module => {\n        const x = (0, _object.get)(module, 'positionX');\n        const y = (0, _object.get)(module, 'positionY');\n        const tmpId = (0, _object.get)(module, 'id') || (0, _makeTempId.default)();\n        (0, _object.set)(module, 'tmpId', tmpId);\n        if (typeof x === 'number' && typeof y === 'number' && x >= 0 && y >= 0) {\n          if (!Array.isArray(tree[y])) {\n            tree[y] = [];\n          }\n          tree[y][x] = module;\n        } else {\n          spare.pushObject(module);\n        }\n      });\n      return tree;\n    }),\n    saveModulePositions() {\n      const modules = (0, _object.get)(this, 'modules');\n\n      // Hack to make the charts resize\n      const resizeEvent = document.createEvent('Event');\n      resizeEvent.initEvent('resize', true, true);\n      window.dispatchEvent(resizeEvent);\n      const $dashboardModules = (0, _jquery.default)('.dashboard-module');\n      $dashboardModules.addClass('dashboard-module--transitioning');\n      (0, _runloop.later)(() => $dashboardModules.removeClass('dashboard-module--transitioning'), ANIMATION_DURATION);\n      (0, _jquery.default)(this.element).children('section').each((y, section) => {\n        (0, _jquery.default)(section).children('.dashboard-module').each((x, module) => {\n          module = modules.findBy('tmpId', module.dataset.moduleId);\n          module.setProperties({\n            positionX: x,\n            positionY: y\n          });\n          if ((0, _object.get)(module, 'hasDirtyAttributes')) {\n            module.save();\n          }\n        });\n      });\n    },\n    checkRowCount($section) {\n      const sortable = $section.data('sortable');\n      sortable.options.group.put = $section.children().length < 3;\n      $section.data('sortable', sortable);\n    },\n    makeNewRowsSortable: (0, _evented.on)('didRender', function () {\n      const component = this;\n      if ((0, _object.get)(this, 'media.isDesktop')) {\n        (0, _jquery.default)('section').each(function () {\n          (0, _jquery.default)(this).nativeSortable({\n            handle: 'header',\n            animation: ANIMATION_DURATION,\n            group: {\n              name: 'dashboard',\n              put: (0, _jquery.default)(this).children().length < 3,\n              pull: true\n            },\n            onSort: () => component.saveModulePositions(),\n            onAdd: () => component.checkRowCount((0, _jquery.default)(this)),\n            onRemove: () => component.checkRowCount((0, _jquery.default)(this))\n          });\n        });\n      }\n    }),\n    actions: {\n      createModule() {\n        // If the user somehow manages to create two at once, don't\n        if ((0, _object.get)(this, 'isCreatingModule')) {\n          return;\n        }\n        const userId = (0, _object.get)(this, 'sessionData.user.id');\n        const getUser = (0, _object.get)(this, 'store').findRecord('user', userId);\n        const getEntity = (0, _object.get)(this, 'sessionData.entity.parent');\n        (0, _object.set)(this, 'isCreatingModule', true);\n        _rsvp.default.all([getUser, getEntity]).then(([user, entity]) => {\n          const module = (0, _object.get)(this, 'store').createRecord('dashboard-module', {\n            user,\n            entity,\n            positionX: 0,\n            positionY: (0, _object.get)(this, 'rows.length'),\n            periodType: 'month',\n            includeCurrentBranch: true\n          });\n          module.setProperties({\n            tmpId: (0, _makeTempId.default)(),\n            isNewModule: true\n          });\n          (0, _object.get)(this, 'modules').pushObject(module);\n        }).finally(() => {\n          (0, _object.set)(this, 'isCreatingModule', false);\n        });\n      },\n      deleteModule(module) {\n        module.destroyRecord().then(() => {\n          const modules = (0, _object.get)(this, 'modules');\n          const row = (0, _object.get)(module, 'positionY');\n          const col = (0, _object.get)(module, 'positionX');\n          const modulesToRight = modules.filter(m => (0, _object.get)(m, 'positionY') === row && (0, _object.get)(m, 'positionX') > col);\n          const saveModsToRight = modulesToRight.map(m => {\n            (0, _object.set)(m, 'positionX', (0, _object.get)(m, 'positionX') - 1);\n            return m.save();\n          });\n          return _rsvp.default.all(saveModsToRight).then(() => modules.removeObject(module));\n        });\n      }\n    }\n  }));\n});","define(\"portal/components/data-withheld-notice\", [\"exports\", \"@ember/component\", \"@ember/template-factory\"], function (_exports, _component, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='notification-message'>\n    <div class='notification-message__icon'>\n      <FaIcon @icon='info' />\n    </div>\n  \n    <div class='notification-message__content'>\n      Your data is being withheld from group reports for this period\n    </div>\n  </div>\n  */\n  {\n    \"id\": \"tBZ8/b17\",\n    \"block\": \"[[[10,0],[14,0,\\\"notification-message\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"notification-message__icon\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,1],null,[[\\\"@icon\\\"],[\\\"info\\\"]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"notification-message__content\\\"],[12],[1,\\\"\\\\n    Your data is being withheld from group reports for this period\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"div\\\",\\\"fa-icon\\\"]]\",\n    \"moduleName\": \"portal/components/data-withheld-notice.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({}));\n});","define(\"portal/components/date-input\", [\"exports\", \"@ember/component\", \"@ember/runloop\", \"jquery\", \"moment\", \"@ember/object\", \"portal/components/date-input\", \"@ember/template-factory\"], function (_exports, _component, _runloop, _jquery, _moment, _object, _dateInput, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/runloop\",0,\"jquery\",0,\"moment\",0,\"@ember/object\",0,\"portal/components/date-input\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isActive}}\n    <Input\n      @type='date'\n      @value={{moment-format @date 'YYYY-MM-DD'}}\n      class='select-box-replacement select-box-replacement--stretched date-input__display select-box-replacement--date-input'\n      {{on 'keyup' (action 'handleDateInput')}}\n    />\n  \n    <DatePicker\n      @date={{@date}}\n      @select={{action 'selectAndDeactivate'}}\n      class='date-input__picker date-picker--stretched'\n    />\n  \n  {{else}}\n    <div\n      class='select-box-replacement select-box-replacement--stretched date-input__display'\n      onfocus={{action 'toggle'}}\n      tabindex='0'\n      {{action 'toggle'}}\n    >\n      {{if @date (moment-format @date @format) this.placeholder}}\n    </div>\n  {{/if}}\n  */\n  {\n    \"id\": \"HipDbn+b\",\n    \"block\": \"[[[41,[30,0,[\\\"isActive\\\"]],[[[1,\\\"  \\\"],[8,[39,1],[[24,0,\\\"select-box-replacement select-box-replacement--stretched date-input__display select-box-replacement--date-input\\\"],[4,[38,3],[\\\"keyup\\\",[28,[37,4],[[30,0],\\\"handleDateInput\\\"],null]],null]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"date\\\",[28,[37,2],[[30,1],\\\"YYYY-MM-DD\\\"],null]]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,5],[[24,0,\\\"date-input__picker date-picker--stretched\\\"]],[[\\\"@date\\\",\\\"@select\\\"],[[30,1],[28,[37,4],[[30,0],\\\"selectAndDeactivate\\\"],null]]],null],[1,\\\"\\\\n\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[11,0],[24,0,\\\"select-box-replacement select-box-replacement--stretched date-input__display\\\"],[16,\\\"onfocus\\\",[28,[37,4],[[30,0],\\\"toggle\\\"],null]],[24,\\\"tabindex\\\",\\\"0\\\"],[4,[38,4],[[30,0],\\\"toggle\\\"],null],[12],[1,\\\"\\\\n    \\\"],[1,[52,[30,1],[28,[37,2],[[30,1],[30,2]],null],[30,0,[\\\"placeholder\\\"]]]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[\\\"@date\\\",\\\"@format\\\"],false,[\\\"if\\\",\\\"input\\\",\\\"moment-format\\\",\\\"on\\\",\\\"action\\\",\\\"date-picker\\\",\\\"div\\\"]]\",\n    \"moduleName\": \"portal/components/date-input.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    layout: _dateInput.default,\n    placeholder: 'Please select a Date',\n    classNames: ['date-input'],\n    isActive: false,\n    format: 'dddd, D MMMM YYYY',\n    didInsertElement() {\n      this._super(...arguments);\n      const element = this.elementId;\n      (0, _jquery.default)(window).on('keydown keyup click blur', event => {\n        const {\n          target,\n          key\n        } = event;\n        const isTarget = (0, _jquery.default)(`#${element}`).is(target);\n        const hasTarget = (0, _jquery.default)(`#${element}`).has(target).length !== 0;\n        if (isTarget || hasTarget) {\n          if (['Enter', 'Escape'].includes(key)) {\n            (0, _object.set)(this, 'isActive', false);\n            event.preventDefault();\n          }\n        } else if (this.isActive) {\n          (0, _object.set)(this, 'isActive', false);\n        }\n      });\n    },\n    willDestroyElement() {\n      this._super(...arguments);\n      // remove our listener\n      (0, _jquery.default)(window).off('keydown keyup click blur');\n    },\n    focusDateInput: (0, _object.observer)('isActive', function () {\n      if (this.isActive) (0, _runloop.next)(() => this.element.querySelector('input').focus());\n    }),\n    actions: {\n      selectAndDeactivate(date) {\n        this.toggleProperty('isActive');\n        this.select(date);\n      },\n      handleDateInput(value) {\n        const date = (0, _moment.default)(value.target.value, 'YYYY-MM-DD').toDate();\n        if (date.getTime()) this.select(date);\n      },\n      toggle() {\n        this.toggleProperty('isActive');\n      }\n    }\n  }));\n});","define(\"portal/components/date-range-selector\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@ember/runloop\", \"moment\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _object, _runloop, _moment, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"@ember/runloop\",0,\"moment\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <OverlaidDropdown\n    @disabled={{this.disabled}}\n    @buttonText={{this.dateString}}\n    @buttonClasses='date-range-selector__button'\n    @buttonIcon='calendar'\n    data-test-date-range-selector\n    as |closeDropdown|\n  >\n    <div\n      class='date-range-selector__dropdown'\n      {{did-insert (action 'didOpen')}}\n      {{will-destroy (action 'willClose')}}\n    >\n      <PowerCalendarRange\n        class='date-range-selector__dropdown-section flex-md-row flex-column'\n        @center={{this.center}}\n        @maxRange={{if this.maxRange this.maxRange null}}\n        @selected={{this.selectedRange}}\n        @onCenterChange={{action (mut this.center) value='date'}}\n        @onSelect={{action (mut this.selectedRange) value='date'}}\n        as |calendar|\n      >\n        <div class='date-range-selector__quick-actions'>\n          <div class='date-range-selector__quick-actions-title'>\n            {{t 'common.Shortcuts'}}\n          </div>\n          <button\n            class='text-button'\n            data-test-this-week-button=''\n            type='button'\n            {{action 'thisWeek' calendar}}\n          >\n            {{t 'common.This week'}}\n          </button>\n          <button\n            class='text-button'\n            data-test-last-week-button=''\n            type='button'\n            {{action 'lastWeek' calendar}}\n          >\n            {{t 'common.Last week'}}\n          </button>\n          <button\n            class='text-button'\n            data-test-this-fortnight-button=''\n            type='button'\n            {{action 'thisFortnight' calendar}}\n          >\n            {{t 'common.This fortnight'}}\n          </button>\n          <button\n            class='text-button'\n            data-test-last-fortnight-button=''\n            type='button'\n            {{action 'lastFortnight' calendar}}\n          >\n            {{t 'common.Last fortnight'}}\n          </button>\n          <button\n            class='text-button'\n            data-test-this-month-button=''\n            type='button'\n            {{action 'thisMonth' calendar}}\n          >\n            {{t 'common.This month'}}\n          </button>\n          <button\n            class='text-button'\n            data-test-last-month-button=''\n            type='button'\n            {{action 'lastMonth' calendar}}\n          >\n            {{t 'common.Last month'}}\n          </button>\n        </div>\n        <div class='date-range-selector__calendar'>\n          <calendar.Nav />\n          <calendar.Days />\n        </div>\n      </PowerCalendarRange>\n      <div class='date-range-selector__dropdown-section'>\n        <div class='date-range-selector__footer'>\n          <button\n            class='button button--plain button--spaced float-end'\n            type='button'\n            {{action 'cancel' closeDropdown}}\n          >\n            {{t 'common.Cancel'}}\n          </button>\n          <button\n            class='button button--spaced float-end'\n            disabled={{not (and this.selectedRange.start this.selectedRange.end)}}\n            data-test-date-range-selector-apply-button=''\n            type='button'\n            {{action 'applyFilter' closeDropdown}}\n          >\n            {{t 'common.Apply'}}\n          </button>\n        </div>\n      </div>\n    </div>\n  </OverlaidDropdown>\n  */\n  {\n    \"id\": \"Wi0zwFhC\",\n    \"block\": \"[[[8,[39,0],[[24,\\\"data-test-date-range-selector\\\",\\\"\\\"]],[[\\\"@disabled\\\",\\\"@buttonText\\\",\\\"@buttonClasses\\\",\\\"@buttonIcon\\\"],[[30,0,[\\\"disabled\\\"]],[30,0,[\\\"dateString\\\"]],\\\"date-range-selector__button\\\",\\\"calendar\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[11,0],[24,0,\\\"date-range-selector__dropdown\\\"],[4,[38,2],[[28,[37,3],[[30,0],\\\"didOpen\\\"],null]],null],[4,[38,4],[[28,[37,3],[[30,0],\\\"willClose\\\"],null]],null],[12],[1,\\\"\\\\n    \\\"],[8,[39,5],[[24,0,\\\"date-range-selector__dropdown-section flex-md-row flex-column\\\"]],[[\\\"@center\\\",\\\"@maxRange\\\",\\\"@selected\\\",\\\"@onCenterChange\\\",\\\"@onSelect\\\"],[[30,0,[\\\"center\\\"]],[52,[30,0,[\\\"maxRange\\\"]],[30,0,[\\\"maxRange\\\"]],null],[30,0,[\\\"selectedRange\\\"]],[28,[37,3],[[30,0],[28,[37,7],[[30,0,[\\\"center\\\"]]],null]],[[\\\"value\\\"],[\\\"date\\\"]]],[28,[37,3],[[30,0],[28,[37,7],[[30,0,[\\\"selectedRange\\\"]]],null]],[[\\\"value\\\"],[\\\"date\\\"]]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"date-range-selector__quick-actions\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"date-range-selector__quick-actions-title\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.Shortcuts\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,\\\"data-test-this-week-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,3],[[30,0],\\\"thisWeek\\\",[30,2]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.This week\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,\\\"data-test-last-week-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,3],[[30,0],\\\"lastWeek\\\",[30,2]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.Last week\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,\\\"data-test-this-fortnight-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,3],[[30,0],\\\"thisFortnight\\\",[30,2]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.This fortnight\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,\\\"data-test-last-fortnight-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,3],[[30,0],\\\"lastFortnight\\\",[30,2]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.Last fortnight\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,\\\"data-test-this-month-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,3],[[30,0],\\\"thisMonth\\\",[30,2]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.This month\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,\\\"data-test-last-month-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,3],[[30,0],\\\"lastMonth\\\",[30,2]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.Last month\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"date-range-selector__calendar\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[30,2,[\\\"Nav\\\"]],null,null,null],[1,\\\"\\\\n        \\\"],[8,[30,2,[\\\"Days\\\"]],null,null,null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[2]]]]],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"date-range-selector__dropdown-section\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"date-range-selector__footer\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--plain button--spaced float-end\\\"],[24,4,\\\"button\\\"],[4,[38,3],[[30,0],\\\"cancel\\\",[30,1]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--spaced float-end\\\"],[16,\\\"disabled\\\",[28,[37,10],[[28,[37,11],[[30,0,[\\\"selectedRange\\\",\\\"start\\\"]],[30,0,[\\\"selectedRange\\\",\\\"end\\\"]]],null]],null]],[24,\\\"data-test-date-range-selector-apply-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,3],[[30,0],\\\"applyFilter\\\",[30,1]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.Apply\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[1]]]]]],[\\\"closeDropdown\\\",\\\"calendar\\\"],false,[\\\"overlaid-dropdown\\\",\\\"div\\\",\\\"did-insert\\\",\\\"action\\\",\\\"will-destroy\\\",\\\"power-calendar-range\\\",\\\"if\\\",\\\"mut\\\",\\\"t\\\",\\\"button\\\",\\\"not\\\",\\\"and\\\"]]\",\n    \"moduleName\": \"portal/components/date-range-selector.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    classNames: ['date-range-selector'],\n    today: new Date(),\n    isOpen: false,\n    intl: (0, _service.inject)(),\n    didReceiveAttrs() {\n      this._super(...arguments);\n      this.setupAttrs();\n    },\n    setupAttrs() {\n      const {\n        startDate,\n        endDate\n      } = this;\n      const daysFromCenter = Math.round((0, _moment.default)(endDate).diff(startDate, 'days') / 2);\n      const center = (0, _moment.default)(startDate).add(daysFromCenter, 'days');\n      // PowerCalendar asserts on an invalid center, which breaks rendering app-wide.\n      (0, _object.set)(this, 'center', center.isValid() ? center : (0, _moment.default)(this.today));\n      (0, _object.set)(this, 'selectedRange', {\n        start: startDate,\n        end: endDate\n      });\n    },\n    dateString: (0, _object.computed)('endDate', 'isOpen', 'selectedRange.{end,start}', 'startDate', 'today', function () {\n      const isOpen = (0, _object.get)(this, 'isOpen');\n      const isPicking = !(0, _object.get)(this, 'selectedRange.end');\n      let startDate = isOpen ? (0, _object.get)(this, 'selectedRange.start') : (0, _object.get)(this, 'startDate');\n      let endDate = isOpen ? (0, _object.get)(this, 'selectedRange.end') : (0, _object.get)(this, 'endDate');\n      if (isOpen && isPicking) {\n        startDate = (0, _moment.default)(startDate);\n        return `${startDate.format((0, _object.get)(this, 'intl').t('date.shortWithWeekday'))}&nbsp;&nbsp;&mdash;`;\n      }\n      startDate = (0, _moment.default)(startDate);\n      endDate = (0, _moment.default)(endDate);\n      let dateString = '';\n      const isThisYear = startDate.isSame(this.today, 'year') && endDate.isSame(this.today, 'year');\n      const isSameYear = startDate.isSame(endDate, 'year');\n      if (isThisYear) {\n        dateString = `${startDate.format((0, _object.get)(this, 'intl').t('date.shortWeekdayMonth'))}&nbsp;&nbsp;&mdash;&nbsp;&nbsp;${endDate.format((0, _object.get)(this, 'intl').t('date.shortWeekdayMonth'))}`;\n      } else if (isSameYear) {\n        dateString = `${startDate.format((0, _object.get)(this, 'intl').t('date.shortWeekdayMonth'))}&nbsp;&nbsp;&mdash;&nbsp;&nbsp;${endDate.format((0, _object.get)(this, 'intl').t('date.shortWithWeekday'))}`;\n      } else {\n        dateString = `${startDate.format((0, _object.get)(this, 'intl').t('date.shortWithWeekday'))}&nbsp;&nbsp;&mdash;&nbsp;&nbsp;${endDate.format((0, _object.get)(this, 'intl').t('date.shortWithWeekday'))}`;\n      }\n      return dateString;\n    }),\n    actions: {\n      applyFilter(closeDropdown) {\n        const {\n          start,\n          end\n        } = (0, _object.get)(this, 'selectedRange');\n        if (!start || !end) return;\n\n        // If onApply has been provided, use it. Otherwise mutate the start and end values directly.\n        if (this.onApply && typeof this.onApply === 'function') {\n          this.onApply({\n            startDate: start,\n            endDate: end\n          });\n        } else {\n          (0, _object.set)(this, 'startDate', (0, _moment.default)(start));\n          (0, _object.set)(this, 'endDate', (0, _moment.default)(end));\n        }\n\n        // Close the box after filter is applied.\n        closeDropdown();\n      },\n      cancel(closeDropdown) {\n        this.setupAttrs();\n        closeDropdown();\n      },\n      thisWeek(calendar) {\n        const start = (0, _moment.default)(this.today).startOf('isoWeek');\n        const end = (0, _moment.default)(start).endOf('isoWeek');\n        calendarSelect(calendar, {\n          start,\n          end\n        });\n      },\n      lastWeek(calendar) {\n        const start = (0, _moment.default)(this.today).subtract(1, 'weeks').startOf('isoWeek');\n        const end = (0, _moment.default)(start).endOf('isoWeek');\n        calendarSelect(calendar, {\n          start,\n          end\n        });\n      },\n      thisFortnight(calendar) {\n        const end = (0, _moment.default)(this.today).endOf('isoWeek');\n        const start = (0, _moment.default)(end).subtract(13, 'days');\n        calendarSelect(calendar, {\n          start,\n          end\n        });\n      },\n      lastFortnight(calendar) {\n        const end = (0, _moment.default)(this.today).endOf('isoWeek').subtract(14, 'days');\n        const start = (0, _moment.default)(end).subtract(13, 'days');\n        calendarSelect(calendar, {\n          start,\n          end\n        });\n      },\n      thisMonth(calendar) {\n        const start = (0, _moment.default)(this.today).startOf('month');\n        const end = (0, _moment.default)(start).endOf('month');\n        calendarSelect(calendar, {\n          start,\n          end\n        });\n      },\n      lastMonth(calendar) {\n        const start = (0, _moment.default)(this.today).subtract(1, 'months').startOf('month');\n        const end = (0, _moment.default)(start).endOf('month');\n        calendarSelect(calendar, {\n          start,\n          end\n        });\n      },\n      didOpen() {\n        (0, _object.set)(this, 'isOpen', true);\n      },\n      willClose() {\n        (0, _runloop.next)(() => {\n          if ((0, _object.get)(this, 'isDestroying') || (0, _object.get)(this, 'isDestroyed')) return;\n          (0, _object.set)(this, 'isOpen', false);\n          this.setupAttrs();\n        });\n      }\n    }\n  }));\n  function calendarSelect(calendar, range) {\n    const {\n      start,\n      end\n    } = range;\n    const center = (0, _moment.default)(start).add(end.diff(start, 'days'), 'days');\n    calendar.actions.changeCenter(center);\n    calendar.actions.select({\n      date: {\n        start,\n        end\n      }\n    });\n  }\n});","define(\"portal/components/documents-table\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _tracking, _object, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <table\n    class='table table-bordered position-report__remove-border-bottom'\n    data-test-documents-table\n  >\n    <thead class='table-light'>\n      <tr>\n        <th>{{t 'common.Name'}}</th>\n        {{#if @searchString}}\n          <th class='text-right'>{{t 'common.Path'}}</th>\n        {{/if}}\n        <th class='text-left'>{{t 'common.Type'}}</th>\n        <th class='text-left d-none d-md-table-cell'>{{t\n            'common.Created date'\n          }}</th>\n        <th class='text-left d-none d-md-table-cell'>{{t 'common.Size'}}</th>\n        <th class='text-center'>{{t 'common.Action'}}</th>\n      </tr>\n    </thead>\n    {{#if @goToContainer.isRunning}}\n      <tbody>\n        <tr>\n          <td colspan='5' class='text-center'>\n            <LoadingIcon @type='ripple' @class='p-2' /></td>\n        </tr>\n      </tbody>\n    {{else}}\n      <tbody>\n        <LazyEach\n          @items={{this.filteredFiles}}\n          @automatic={{true}}\n          @initialNumberOfItemsVisible='30'\n          @increment='30'\n          @itemDisplayName={{t 'common.documents'}}\n          @emptyContent={{this.emptyContent}}\n          as |file identifier|\n        >\n          <tr class={{identifier}}>\n            <td>\n              {{#if (eq file.type 'project')}}\n                <div class='d-flex align-items-center'>\n                  <FaIcon class='me-1 flex-shrink-0' @icon='folder' @size='md' />\n                  <LinkTo\n                    @route={{file.route}}\n                    @model={{file.projectLinkModel}}\n                    class='fs-5 btn btn-link m-0 p-0 flex-grow-1 text-start text-break'\n                    data-test-documents-project-name\n                  >{{file.name}}\n                  </LinkTo>\n                </div>\n              {{else if (eq file.type 'task')}}\n                <div class='d-flex align-items-center'>\n                  <FaIcon class='me-1 flex-shrink-0' @icon='folder' @size='md' />\n                  <LinkTo\n                    @route={{file.route}}\n                    @models={{array file.projectLinkModel file.taskLinkModel}}\n                    class='fs-5 btn btn-link m-0 p-0 flex-grow-1 text-start text-break'\n                    data-test-documents-task-name\n                  >{{file.name}}</LinkTo>\n                </div>\n              {{else}}\n                <div class='d-flex align-items-center'>\n                  <FileTypeIcon\n                    class='me-1 flex-shrink-0'\n                    @mime={{file.type}}\n                    @size='md'\n                  />\n                  <button\n                    type='button'\n                    class='fs-5 btn m-0 p-0 btn-link flex-grow-1 text-start text-break'\n                    data-test-documents-attachment-name\n                    {{on 'click' (fn this.setAttachmentToUpdate file)}}\n                  >{{file.name}}</button>\n                </div>\n              {{/if}}\n            </td>\n            {{#if @searchString}}\n              <td\n                class='text-right'\n                data-test-documents-file-breadcrumbs\n              >{{file.breadcrumbs}}</td>\n            {{/if}}\n            <td\n              class='text-left'\n              data-test-documents-file-type\n            >{{file.humanType}}</td>\n            <td\n              class='text-left d-none d-md-table-cell'\n              data-test-documents-file-dateCreated\n            >\n              {{moment-format file.dateCreated (t 'date.shortWithWeekday')}}\n            </td>\n            <td\n              class='text-left d-none d-md-table-cell'\n              data-test-documents-file-size\n            >\n              {{#if file.size}}\n                {{file-size-to-string file.size true}}\n              {{else}}\n                &mdash;\n              {{/if}}\n            </td>\n            <td class='text-center'>\n              {{#if file.size}}\n                <button\n                  class='btn btn-link p-0 m-0'\n                  type='button'\n                  data-test-documents-file-download-btn\n                  {{on 'click' (fn @downloadAttachments file)}}\n                >\n                  <FaIcon @icon='download' @size='md' />\n                </button>\n              {{else}}\n                &mdash;\n              {{/if}}\n            </td>\n          </tr>\n        </LazyEach>\n      </tbody>\n    {{/if}}\n  </table>\n  \n  {{#if @uploadModalVisible}}\n    <ModalDialog\n      @translucentOverlay={{true}}\n      @overlayClass='modal'\n      @onClose={{fn (mut @uploadModalVisible) false}}\n      @containerClass='block-module attachment-settings-modal__container'\n    >\n      <div class='card'>\n        <DragAndDropContainer\n          @parent={{@parent}}\n          @onUploadComplete={{@onUploadComplete}}\n          @isDragAndDropVisible={{this.isDragAndDropVisible}}\n        />\n      </div>\n      <footer class='block-module__footer'>\n        <div class='float-end d-flex align-items-center'>\n          <button\n            type='button'\n            class='btn btn-secondary text-white ms-2'\n            {{on 'click' (fn (mut @uploadModalVisible) false)}}\n            data-test-documents-upload-close-button\n          >{{t 'common.Close'}}</button>\n        </div>\n      </footer>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.currentFile}}\n    <AttachmentSettingsModal\n      @parent={{@parent}}\n      @project={{@project}}\n      @attachment={{this.currentFile.value}}\n      @users={{@users}}\n      @onCloseAction={{this.onClose}}\n    />\n  {{/if}}\n  */\n  {\n    \"id\": \"7p6HYodI\",\n    \"block\": \"[[[10,\\\"table\\\"],[14,0,\\\"table table-bordered position-report__remove-border-bottom\\\"],[14,\\\"data-test-documents-table\\\",\\\"\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"thead\\\"],[14,0,\\\"table-light\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,4],[\\\"common.Name\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[30,1],[[[1,\\\"        \\\"],[10,\\\"th\\\"],[14,0,\\\"text-right\\\"],[12],[1,[28,[35,4],[\\\"common.Path\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[10,\\\"th\\\"],[14,0,\\\"text-left\\\"],[12],[1,[28,[35,4],[\\\"common.Type\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,\\\"th\\\"],[14,0,\\\"text-left d-none d-md-table-cell\\\"],[12],[1,[28,[35,4],[\\\"common.Created date\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,\\\"th\\\"],[14,0,\\\"text-left d-none d-md-table-cell\\\"],[12],[1,[28,[35,4],[\\\"common.Size\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,\\\"th\\\"],[14,0,\\\"text-center\\\"],[12],[1,[28,[35,4],[\\\"common.Action\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"5\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,8],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"p-2\\\"]],null],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,9],null,[[\\\"@items\\\",\\\"@automatic\\\",\\\"@initialNumberOfItemsVisible\\\",\\\"@increment\\\",\\\"@itemDisplayName\\\",\\\"@emptyContent\\\"],[[30,0,[\\\"filteredFiles\\\"]],true,\\\"30\\\",\\\"30\\\",[28,[37,4],[\\\"common.documents\\\"],null],[30,0,[\\\"emptyContent\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"tr\\\"],[15,0,[30,4]],[12],[1,\\\"\\\\n          \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,10],[[30,3,[\\\"type\\\"]],\\\"project\\\"],null],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,12],[[24,0,\\\"me-1 flex-shrink-0\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"folder\\\",\\\"md\\\"]],null],[1,\\\"\\\\n                \\\"],[8,[39,13],[[24,0,\\\"fs-5 btn btn-link m-0 p-0 flex-grow-1 text-start text-break\\\"],[24,\\\"data-test-documents-project-name\\\",\\\"\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[[30,3,[\\\"route\\\"]],[30,3,[\\\"projectLinkModel\\\"]]]],[[\\\"default\\\"],[[[[1,[30,3,[\\\"name\\\"]]],[1,\\\"\\\\n                \\\"]],[]]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,10],[[30,3,[\\\"type\\\"]],\\\"task\\\"],null],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,12],[[24,0,\\\"me-1 flex-shrink-0\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"folder\\\",\\\"md\\\"]],null],[1,\\\"\\\\n                \\\"],[8,[39,13],[[24,0,\\\"fs-5 btn btn-link m-0 p-0 flex-grow-1 text-start text-break\\\"],[24,\\\"data-test-documents-task-name\\\",\\\"\\\"]],[[\\\"@route\\\",\\\"@models\\\"],[[30,3,[\\\"route\\\"]],[28,[37,14],[[30,3,[\\\"projectLinkModel\\\"]],[30,3,[\\\"taskLinkModel\\\"]]],null]]],[[\\\"default\\\"],[[[[1,[30,3,[\\\"name\\\"]]]],[]]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,15],[[24,0,\\\"me-1 flex-shrink-0\\\"]],[[\\\"@mime\\\",\\\"@size\\\"],[[30,3,[\\\"type\\\"]],\\\"md\\\"]],null],[1,\\\"\\\\n                \\\"],[11,\\\"button\\\"],[24,0,\\\"fs-5 btn m-0 p-0 btn-link flex-grow-1 text-start text-break\\\"],[24,\\\"data-test-documents-attachment-name\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[28,[37,18],[[30,0,[\\\"setAttachmentToUpdate\\\"]],[30,3]],null]],null],[12],[1,[30,3,[\\\"name\\\"]]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"]],[]]]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,1],[[[1,\\\"            \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[14,\\\"data-test-documents-file-breadcrumbs\\\",\\\"\\\"],[12],[1,[30,3,[\\\"breadcrumbs\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,\\\"td\\\"],[14,0,\\\"text-left\\\"],[14,\\\"data-test-documents-file-type\\\",\\\"\\\"],[12],[1,[30,3,[\\\"humanType\\\"]]],[13],[1,\\\"\\\\n          \\\"],[10,\\\"td\\\"],[14,0,\\\"text-left d-none d-md-table-cell\\\"],[14,\\\"data-test-documents-file-dateCreated\\\",\\\"\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,19],[[30,3,[\\\"dateCreated\\\"]],[28,[37,4],[\\\"date.shortWithWeekday\\\"],null]],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"td\\\"],[14,0,\\\"text-left d-none d-md-table-cell\\\"],[14,\\\"data-test-documents-file-size\\\",\\\"\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,3,[\\\"size\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,20],[[30,3,[\\\"size\\\"]],true],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              —\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"td\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,3,[\\\"size\\\"]],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link p-0 m-0\\\"],[24,\\\"data-test-documents-file-download-btn\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[28,[37,18],[[30,5],[30,3]],null]],null],[12],[1,\\\"\\\\n                \\\"],[8,[39,12],null,[[\\\"@icon\\\",\\\"@size\\\"],[\\\"download\\\",\\\"md\\\"]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              —\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[3,4]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,6],[[[1,\\\"  \\\"],[8,[39,21],null,[[\\\"@translucentOverlay\\\",\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\"],[true,\\\"modal\\\",[28,[37,18],[[28,[37,22],[[30,6]],null],false],null],\\\"block-module attachment-settings-modal__container\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"card\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,23],null,[[\\\"@parent\\\",\\\"@onUploadComplete\\\",\\\"@isDragAndDropVisible\\\"],[[30,7],[30,8],[30,0,[\\\"isDragAndDropVisible\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"float-end d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[24,\\\"data-test-documents-upload-close-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[28,[37,18],[[28,[37,22],[[30,6]],null],false],null]],null],[12],[1,[28,[35,4],[\\\"common.Close\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"currentFile\\\"]],[[[1,\\\"  \\\"],[8,[39,25],null,[[\\\"@parent\\\",\\\"@project\\\",\\\"@attachment\\\",\\\"@users\\\",\\\"@onCloseAction\\\"],[[30,7],[30,9],[30,0,[\\\"currentFile\\\",\\\"value\\\"]],[30,10],[30,0,[\\\"onClose\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@searchString\\\",\\\"@goToContainer\\\",\\\"file\\\",\\\"identifier\\\",\\\"@downloadAttachments\\\",\\\"@uploadModalVisible\\\",\\\"@parent\\\",\\\"@onUploadComplete\\\",\\\"@project\\\",\\\"@users\\\"],false,[\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"t\\\",\\\"if\\\",\\\"tbody\\\",\\\"td\\\",\\\"loading-icon\\\",\\\"lazy-each\\\",\\\"eq\\\",\\\"div\\\",\\\"fa-icon\\\",\\\"link-to\\\",\\\"array\\\",\\\"file-type-icon\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"moment-format\\\",\\\"file-size-to-string\\\",\\\"modal-dialog\\\",\\\"mut\\\",\\\"drag-and-drop-container\\\",\\\"footer\\\",\\\"attachment-settings-modal\\\"]]\",\n    \"moduleName\": \"portal/components/documents-table.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"currentFile\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n    }\n    setAttachmentToUpdate(file, event) {\n      event.preventDefault();\n      this.currentFile = file;\n    }\n    get isDragAndDropVisible() {\n      return this.newFeatureFlags.includesFeatureFlags(this.args.parent, 'canManageFileStorage');\n    }\n    get emptyContent() {\n      const colspan = this.args.searchString ? 6 : 5;\n      return `<tr class='text-center'><td colspan='${colspan}'>No documents</td></tr>`;\n    }\n    onClose(isDelete) {\n      if (isDelete === true) this.args.tableData.removeAttachment(this.currentFile);\n      this.currentFile = null;\n    }\n    get filteredFiles() {\n      const visibleFiles = this.args.tableData.files.filter(f => f.isVisible);\n      return visibleFiles;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"currentFile\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"setAttachmentToUpdate\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setAttachmentToUpdate\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onClose\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onClose\"), _class.prototype), _class));\n});","define(\"portal/components/drag-and-drop-container\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"@ember/service\", \"@ember/object\", \"@glimmer/tracking\", \"portal/models/attachment\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _service, _object, _tracking, _attachment, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"portal/models/attachment\",0,\"portal/models/attachment\",0,\"ember-concurrency\",0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    class='p-3 {{if this.isDropHover \"drag-and-drop-hovered\"}} d-flex flex-column'\n    ...attributes\n    {{on 'dragleave' this.onDragLeave}}\n    {{on 'dragover' this.onDragOver}}\n    {{on 'drop' this.onDropZoneDrop}}\n  >\n    {{yield}}\n  \n    {{#if this.processAttachments.isRunning}}\n      <span class='align-self-center d-flex align-items-center m-2 fs-5'>\n        {{t 'common.Uploading files'}}\n        <FaIcon @icon='circle-notch' @spin={{true}} class='ms-2 text-primary' />\n      </span>\n    {{/if}}\n  \n    {{#if @isDragAndDropVisible}}\n      <div class='align-self-center d-flex align-items-center m-2'>\n        {{t 'shared.bill.Drag files here or'}}\n        <button\n          type='button'\n          class='btn btn-success text-white ms-2'\n          {{on 'click' this.onManualUploadClick}}\n        >\n          <FaIcon @icon='upload' />&nbsp;&nbsp;{{t 'shared.bill.Browse files'}}\n        </button>\n      </div>\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"/rA5HhdH\",\n    \"block\": \"[[[11,0],[16,0,[29,[\\\"p-3 \\\",[52,[30,0,[\\\"isDropHover\\\"]],\\\"drag-and-drop-hovered\\\"],\\\" d-flex flex-column\\\"]]],[17,1],[4,[38,2],[\\\"dragleave\\\",[30,0,[\\\"onDragLeave\\\"]]],null],[4,[38,2],[\\\"dragover\\\",[30,0,[\\\"onDragOver\\\"]]],null],[4,[38,2],[\\\"drop\\\",[30,0,[\\\"onDropZoneDrop\\\"]]],null],[12],[1,\\\"\\\\n  \\\"],[18,3,null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"processAttachments\\\",\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[10,1],[14,0,\\\"align-self-center d-flex align-items-center m-2 fs-5\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,5],[\\\"common.Uploading files\\\"],null]],[1,\\\"\\\\n      \\\"],[8,[39,6],[[24,0,\\\"ms-2 text-primary\\\"]],[[\\\"@icon\\\",\\\"@spin\\\"],[\\\"circle-notch\\\",true]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,2],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"align-self-center d-flex align-items-center m-2\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,5],[\\\"shared.bill.Drag files here or\\\"],null]],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white ms-2\\\"],[24,4,\\\"button\\\"],[4,[38,2],[\\\"click\\\",[30,0,[\\\"onManualUploadClick\\\"]]],null],[12],[1,\\\"\\\\n        \\\"],[8,[39,6],null,[[\\\"@icon\\\"],[\\\"upload\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,5],[\\\"shared.bill.Browse files\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[13]],[\\\"&attrs\\\",\\\"@isDragAndDropVisible\\\",\\\"&default\\\"],false,[\\\"div\\\",\\\"if\\\",\\\"on\\\",\\\"yield\\\",\\\"span\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"button\\\"]]\",\n    \"moduleName\": \"portal/components/drag-and-drop-container.hbs\",\n    \"isStrictMode\": false\n  });\n  const acceptedMimeTypes = [..._attachment.shortcutsToMime.image, ..._attachment.shortcutsToMime.text, ..._attachment.shortcutsToMime.document, ..._attachment.shortcutsToMime.archive];\n  function fileIsTooLarge(size) {\n    // 30MB is current server limit\n    // Base64 encoding increases size by ~33% https://developer.mozilla.org/en-US/docs/Glossary/Base64\n    return size > 2e7; // 20MB\n  }\n  class FileContainer {\n    constructor({\n      file,\n      store,\n      entity,\n      intl\n    }) {\n      _defineProperty(this, \"file\", void 0);\n      _defineProperty(this, \"store\", void 0);\n      _defineProperty(this, \"entity\", void 0);\n      _defineProperty(this, \"intl\", void 0);\n      this.file = file;\n      this.store = store;\n      this.entity = entity;\n      this.intl = intl;\n    }\n    get validationError() {\n      // directories and files without types are not allowed\n      if (!this.file.type) return this.intl.t('validation.xIsNotAValidFile', {\n        fileName: this.file.name\n      });\n\n      // check the mime type\n      if (!acceptedMimeTypes.some(acceptedMime => (0, _attachment.isMimeSame)(acceptedMime, this.file.type))) return this.intl.t('validation.xIsNotAValidFile', {\n        fileName: this.file.name\n      });\n\n      // check if the file is too large\n      if (fileIsTooLarge(this.file.size)) return this.intl.t('validation.xIsLargerThan20mbAndWillNotBeUploaded', {\n        fileName: this.file.name\n      });\n      return false;\n    }\n    get isValid() {\n      return this.validationError === false;\n    }\n    async create() {\n      return _attachment.default.fromFileInput(this.file, this.store, this.entity);\n    }\n  }\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"isDropHover\", _descriptor4, this);\n      _defineProperty(this, \"processAttachments\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (files) {\n          let fileContainers = [];\n          try {\n            fileContainers = files.map(file => new FileContainer({\n              file,\n              store: this.store,\n              entity: this.sessionData.entity,\n              intl: this.intl\n            }));\n            const fileContainersForUpload = fileContainers.filter(fc => fc.isValid);\n            const invalidFiles = fileContainers.filter(fc => !fc.isValid);\n            const attachments = yield Promise.all(fileContainersForUpload.map(fc => fc.create()));\n            yield this.args.onUploadComplete({\n              error: undefined,\n              validationErrors: invalidFiles.map(fc => fc.validationError),\n              attachments\n            });\n          } catch (error) {\n            this.args.onUploadComplete({\n              error,\n              validationErrors: [this.intl.t('shared.notification.somethingWentWrongWhileSavingAttachments')],\n              attachments: []\n            });\n          }\n        }\n      }), null, \"processAttachments\", null));\n    }\n    onDragLeave(event) {\n      event.preventDefault();\n      this.isDropHover = false;\n    }\n    onDragOver(event) {\n      event.preventDefault();\n      this.isDropHover = true;\n    }\n    onDropZoneDrop(event) {\n      event.preventDefault();\n      let files = [...event.dataTransfer.files];\n      this.isDropHover = false;\n      this.processAttachments.perform(files);\n    }\n    onManualUploadClick() {\n      const input = document.createElement('input');\n      input.type = 'file';\n      input.accept = acceptedMimeTypes.join(', ');\n      input.multiple = true;\n      input.onchange = this.onManualFileUpload;\n      input.click();\n    }\n    onManualFileUpload(event) {\n      const files = [...event.target.files];\n      this.processAttachments.perform(files);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"isDropHover\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"onDragLeave\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onDragLeave\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onDragOver\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onDragOver\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onDropZoneDrop\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onDropZoneDrop\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onManualUploadClick\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onManualUploadClick\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onManualFileUpload\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onManualFileUpload\"), _class.prototype), _class));\n});","define(\"portal/components/drag-sort-list\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _tracking, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _class2, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <DragSortList::Children\n    ...attributes\n    @containers={{this.containers}}\n    @itemComponent={{@itemComponent}}\n    @sort={{this.sort}}\n    @setDraggedContainer={{this.setDraggedContainer}}\n    @draggedContainer={{this.draggedContainer}}\n    @eachKey={{this.eachKey}}\n    @disableDragging={{@disableDragging}}\n  />\n  */\n  {\n    \"id\": \"N1+FBMvt\",\n    \"block\": \"[[[8,[39,0],[[17,1]],[[\\\"@containers\\\",\\\"@itemComponent\\\",\\\"@sort\\\",\\\"@setDraggedContainer\\\",\\\"@draggedContainer\\\",\\\"@eachKey\\\",\\\"@disableDragging\\\"],[[30,0,[\\\"containers\\\"]],[30,2],[30,0,[\\\"sort\\\"]],[30,0,[\\\"setDraggedContainer\\\"]],[30,0,[\\\"draggedContainer\\\"]],[30,0,[\\\"eachKey\\\"]],[30,3]]],null]],[\\\"&attrs\\\",\\\"@itemComponent\\\",\\\"@disableDragging\\\"],false,[\\\"drag-sort-list/children\\\"]]\",\n    \"moduleName\": \"portal/components/drag-sort-list.hbs\",\n    \"isStrictMode\": false\n  });\n  let DragSortListComponent = _exports.default = (_class2 = class DragSortListComponent extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"draggedContainer\", _descriptor5, this);\n    }\n    get eachKey() {\n      let key = 'item';\n      if (this.args.eachKey) key += '.' + this.args.eachKey;\n      return key;\n    }\n    get containers() {\n      return DSLContainer.buildContainers(this.args.list);\n    }\n    setDraggedContainer(container) {\n      this.draggedContainer = container;\n    }\n    sort(sourceId, targetId, sortAction) {\n      const onUpdate = this.args.onUpdate;\n      if (!onUpdate) return;\n      const newContainerList = DSLContainer.sort(this.containers, sourceId,\n      // these are \"dslIds\"\n      targetId,\n      // these are \"dslIds\"\n      sortAction // ['above', 'into', 'below']\n      );\n\n      // Map containers back to originals\n      const newList = DSLContainer.unwrap(newContainerList);\n      onUpdate(newList);\n    }\n  }, _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"draggedContainer\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"setDraggedContainer\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setDraggedContainer\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"sort\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"sort\"), _class2.prototype), _class2);\n  function getElement(list, coordinates) {\n    if (coordinates.length === 1) return list[coordinates[0]];else return getElement(list[coordinates[0]].children, coordinates.slice(1));\n  }\n\n  /*\n  Turns a self similar, nested list in the form:\n  Item extends { ..., children: Item[] }\n  into another self similar list in the form:\n  DSLContainer: { ...extraProps, item: Item, children: DSLContainer[] }\n  This is to be able to pass around properties without exposing them\n  or mutating the items passed in.\n  */\n  let DSLContainer = (_class = class DSLContainer {\n    static sort(containerList, sourceId, targetId, sortAction) {\n      const newContainerList = DSLContainer.clone(containerList);\n      const sourceCoordinates = sourceId.split('.').map(c => Number.parseInt(c));\n      const targetCoordinates = targetId.split('.').map(c => Number.parseInt(c));\n      const sourceContainer = getElement(newContainerList, sourceCoordinates);\n      const targetContainer = getElement(newContainerList, targetCoordinates);\n\n      // Remove from old location\n      const sourceList = sourceContainer.parent?.children ?? newContainerList;\n      const sourceIndex = sourceCoordinates[sourceCoordinates.length - 1];\n      sourceList.splice(sourceIndex, 1);\n      if (['above', 'below'].includes(sortAction)) {\n        // Reassign parent pointer\n        sourceContainer.parent = targetContainer.parent;\n\n        // Insert into new location\n        const targetList = targetContainer.parent?.children ?? newContainerList;\n        let targetIndex = targetCoordinates[targetCoordinates.length - 1];\n\n        // if the element was removed from above the target in the same list\n        // we need to account for the removed element in the targetIndex\n        const isSameList = sourceList === targetList;\n        if (isSameList && targetIndex > sourceIndex) targetIndex--;\n        if (sortAction === 'below') targetIndex++; // If placing below target, add 1 to index\n\n        targetList.splice(targetIndex, 0, sourceContainer);\n      } else if (sortAction === 'into') {\n        // Reassign parent pointer\n        sourceContainer.parent = targetContainer;\n\n        // Insert into new location\n        targetContainer.children.splice(0, 0, sourceContainer);\n      } else {\n        throw new Error('Unknown sort action provided');\n      }\n      return newContainerList;\n    }\n    static unwrap(containers) {\n      // we are directly modifying the \"children\" array so we can return the newly sorted array\n      // we should encourage mutable data to be passed to this component\n      // directly modifying ember data isn't ideal\n      return containers.map(c => {\n        c.item.children = DSLContainer.unwrap(c.children);\n        return c.item;\n      });\n    }\n    static clone(containers, parent) {\n      return containers.map(c => {\n        const newContainer = {\n          ...c,\n          parent\n        };\n        newContainer.children = DSLContainer.clone(c.children, newContainer);\n        return newContainer;\n      });\n    }\n    static buildContainers(list) {\n      // It is wrapped to prevent anyone being tempted to pass in the parent, or\n      return DSLContainer._buildContainers(list);\n    }\n    static _buildContainers(list, parent, prefix = '') {\n      return list.map((item, index) => {\n        const container = new DSLContainer(item, prefix + index);\n        container.parent = parent;\n        if (item.children?.length) {\n          container.children = DSLContainer._buildContainers(item.children, container, prefix + index + '.');\n        }\n        return container;\n      });\n    }\n    constructor(item, id) {\n      _defineProperty(this, \"dslId\", void 0);\n      _defineProperty(this, \"item\", void 0);\n      _defineProperty(this, \"parent\", void 0);\n      _defineProperty(this, \"children\", []);\n      _initializerDefineProperty(this, \"isDragging\", _descriptor, this);\n      _initializerDefineProperty(this, \"isDroppingAbove\", _descriptor2, this);\n      _initializerDefineProperty(this, \"isDroppingBelow\", _descriptor3, this);\n      _initializerDefineProperty(this, \"isDroppingInto\", _descriptor4, this);\n      this.item = item;\n      this.dslId = id;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"isDragging\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"isDroppingAbove\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"isDroppingBelow\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"isDroppingInto\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, DragSortListComponent);\n});","define(\"portal/components/drag-sort-list/children\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div ...attributes>\n    {{#each @containers key=@eachKey as |container|}}\n      {{component\n        @itemComponent\n        item=container.item\n        dsl=(hash\n          isDroppingAbove=container.isDroppingAbove\n          isDroppingInto=container.isDroppingInto\n          isDroppingBelow=container.isDroppingBelow\n          isDragging=(eq @draggedContainer.dslId container.dslId)\n          Separator=(component 'drag-sort-list/separator')\n          Draggable=(component\n            'drag-sort-list/draggable'\n            container=container\n            sort=@sort\n            setDraggedContainer=@setDraggedContainer\n            draggedContainer=@draggedContainer\n            disableDragging=@disableDragging\n          )\n          DragHandle=(component\n            'drag-sort-list/drag-handle'\n            container=container\n            setDraggedContainer=@setDraggedContainer\n            draggedContainer=@draggedContainer\n            disableDragging=@disableDragging\n          )\n          Children=(component\n            'drag-sort-list/children'\n            containers=container.children\n            itemComponent=@itemComponent\n            sort=@sort\n            setDraggedContainer=@setDraggedContainer\n            draggedContainer=@draggedContainer\n            eachKey=@eachKey\n            disableDragging=@disableDragging\n          )\n        )\n      }}\n    {{/each}}\n  </div>\n  */\n  {\n    \"id\": \"+Z71i6LR\",\n    \"block\": \"[[[11,0],[17,1],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,2],[[28,[37,2],[[30,2]],null]],null],[30,3],[[[1,\\\"    \\\"],[46,[30,5],null,[[\\\"item\\\",\\\"dsl\\\"],[[30,4,[\\\"item\\\"]],[28,[37,4],null,[[\\\"isDroppingAbove\\\",\\\"isDroppingInto\\\",\\\"isDroppingBelow\\\",\\\"isDragging\\\",\\\"Separator\\\",\\\"Draggable\\\",\\\"DragHandle\\\",\\\"Children\\\"],[[30,4,[\\\"isDroppingAbove\\\"]],[30,4,[\\\"isDroppingInto\\\"]],[30,4,[\\\"isDroppingBelow\\\"]],[28,[37,5],[[30,6,[\\\"dslId\\\"]],[30,4,[\\\"dslId\\\"]]],null],[50,\\\"drag-sort-list/separator\\\",0,null,null],[50,\\\"drag-sort-list/draggable\\\",0,null,[[\\\"container\\\",\\\"sort\\\",\\\"setDraggedContainer\\\",\\\"draggedContainer\\\",\\\"disableDragging\\\"],[[30,4],[30,7],[30,8],[30,6],[30,9]]]],[50,\\\"drag-sort-list/drag-handle\\\",0,null,[[\\\"container\\\",\\\"setDraggedContainer\\\",\\\"draggedContainer\\\",\\\"disableDragging\\\"],[[30,4],[30,8],[30,6],[30,9]]]],[50,\\\"drag-sort-list/children\\\",0,null,[[\\\"containers\\\",\\\"itemComponent\\\",\\\"sort\\\",\\\"setDraggedContainer\\\",\\\"draggedContainer\\\",\\\"eachKey\\\",\\\"disableDragging\\\"],[[30,4,[\\\"children\\\"]],[30,5],[30,7],[30,8],[30,6],[30,3],[30,9]]]]]]]]],null],[1,\\\"\\\\n\\\"]],[4]],null],[13]],[\\\"&attrs\\\",\\\"@containers\\\",\\\"@eachKey\\\",\\\"container\\\",\\\"@itemComponent\\\",\\\"@draggedContainer\\\",\\\"@sort\\\",\\\"@setDraggedContainer\\\",\\\"@disableDragging\\\"],false,[\\\"div\\\",\\\"each\\\",\\\"-track-array\\\",\\\"component\\\",\\\"hash\\\",\\\"eq\\\"]]\",\n    \"moduleName\": \"portal/components/drag-sort-list/children.hbs\",\n    \"isStrictMode\": false\n  });\n  class DragSortListChildrenComponent extends _component2.default {}\n  _exports.default = DragSortListChildrenComponent;\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, DragSortListChildrenComponent);\n});","define(\"portal/components/drag-sort-list/drag-handle\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! template-lint-disable no-invalid-interactive }}\n  {{! template-lint-disable no-pointer-down-event-binding }}\n  <div\n    class={{this.cursorClass}}\n    {{on 'mousedown' (fn (mut @container.isDragging) true)}}\n    {{on 'mouseup' (fn (mut @container.isDragging) false)}}\n    {{on 'touchstart' (fn (mut @container.isDragging) true)}}\n    {{on 'touchend' (fn (mut @container.isDragging) false)}}\n    ...attributes\n  >{{yield}}</div>\n  */\n  {\n    \"id\": \"jR2x78p8\",\n    \"block\": \"[[[11,0],[16,0,[30,0,[\\\"cursorClass\\\"]]],[17,1],[4,[38,1],[\\\"mousedown\\\",[28,[37,2],[[28,[37,3],[[30,2,[\\\"isDragging\\\"]]],null],true],null]],null],[4,[38,1],[\\\"mouseup\\\",[28,[37,2],[[28,[37,3],[[30,2,[\\\"isDragging\\\"]]],null],false],null]],null],[4,[38,1],[\\\"touchstart\\\",[28,[37,2],[[28,[37,3],[[30,2,[\\\"isDragging\\\"]]],null],true],null]],null],[4,[38,1],[\\\"touchend\\\",[28,[37,2],[[28,[37,3],[[30,2,[\\\"isDragging\\\"]]],null],false],null]],null],[12],[18,3,null],[13]],[\\\"&attrs\\\",\\\"@container\\\",\\\"&default\\\"],false,[\\\"div\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"portal/components/drag-sort-list/drag-handle.hbs\",\n    \"isStrictMode\": false\n  });\n  class DragSortListDragHandleComponent extends _component2.default {\n    get cursorClass() {\n      if (this.args.disableDragging) return null;\n      if (this.args.container.isDragging) {\n        return 'grabbing-cursor';\n      }\n      return 'grab-cursor';\n    }\n  }\n  _exports.default = DragSortListDragHandleComponent;\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, DragSortListDragHandleComponent);\n});","define(\"portal/components/drag-sort-list/draggable\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    draggable={{if @disableDragging false @container.isDragging}}\n    {{on 'dragstart' this.onDragStart}}\n    {{on 'dragenter' this.onDragEnter}}\n    {{on 'dragover' this.onDragOver}}\n    {{on 'dragleave' this.onDragLeave}}\n    {{on 'drop' this.onDrop}}\n    {{on 'dragend' this.onDragEnd}}\n    ...attributes\n  >{{yield}}</div>\n  */\n  {\n    \"id\": \"j6Dc3wl7\",\n    \"block\": \"[[[11,0],[16,\\\"draggable\\\",[52,[30,1],false,[30,2,[\\\"isDragging\\\"]]]],[17,3],[4,[38,2],[\\\"dragstart\\\",[30,0,[\\\"onDragStart\\\"]]],null],[4,[38,2],[\\\"dragenter\\\",[30,0,[\\\"onDragEnter\\\"]]],null],[4,[38,2],[\\\"dragover\\\",[30,0,[\\\"onDragOver\\\"]]],null],[4,[38,2],[\\\"dragleave\\\",[30,0,[\\\"onDragLeave\\\"]]],null],[4,[38,2],[\\\"drop\\\",[30,0,[\\\"onDrop\\\"]]],null],[4,[38,2],[\\\"dragend\\\",[30,0,[\\\"onDragEnd\\\"]]],null],[12],[18,4,null],[13]],[\\\"@disableDragging\\\",\\\"@container\\\",\\\"&attrs\\\",\\\"&default\\\"],false,[\\\"div\\\",\\\"if\\\",\\\"on\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"portal/components/drag-sort-list/draggable.hbs\",\n    \"isStrictMode\": false\n  });\n  let DragSortListDraggableComponent = _exports.default = (_class = class DragSortListDraggableComponent extends _component2.default {\n    // you cannot become a child of yourself\n    // this relies on the path-ish type ids (dslId) to check if the currently dragged\n    // item can be dropped onto this item\n    // e.g:\n    // \"0\" is dragged onto \"0.0\"\n    // result: not droppable because the dragged item is the parent of the dropped item\n    //         you can not become a child of yourself\n    // \"0\" is dragged onto \"0\"\n    // result: not droppable because you can not drop onto yourself\n    // \"0\" is dragged onto \"1\"\n    // result: droppable because there is no relationship between them\n    get isDraggingOntoSelf() {\n      if (!this.args.draggedContainer) return false;\n      return this.args.container.dslId === this.args.draggedContainer.dslId;\n    }\n    get isDraggingInsideSelf() {\n      if (!this.args.draggedContainer) return false;\n      return this.args.draggedContainer.dslId !== this.args.container.dslId && this.args.container.dslId.startsWith(this.args.draggedContainer.dslId);\n    }\n    onDragStart(event) {\n      event.dataTransfer.setData('text/plain', this.args.container.dslId);\n      event.stopPropagation();\n      this.args.setDraggedContainer(this.args.container);\n    }\n    onDragEnter(event) {\n      event.preventDefault();\n    }\n    onDragOver(event) {\n      if (this.isDraggingInsideSelf) {\n        event.stopPropagation();\n        event.preventDefault();\n        return;\n      }\n      const cursorYPos = event.originalEvent ? event.originalEvent.pageY : event.pageY;\n      const elementTop = event.currentTarget.getBoundingClientRect().top + document.documentElement.scrollTop;\n      const elementHeight = event.currentTarget.offsetHeight;\n\n      // note: comments assume element is 45px tall\n      // basically the pixel position of cursor from the top of the element (0px is on the top, 45px is the bottom)\n      const heightOffset = cursorYPos - elementTop;\n      const third = 1 / 3;\n      // 0px until 14px\n      const inTopThird = heightOffset < elementHeight * third;\n      // 31px until 45px\n      const inBottomThird = heightOffset > elementHeight * (third * 2);\n      // 15px until 30px\n      const inMiddleThird = !inTopThird && !inBottomThird;\n      if (this.args.container.isDroppingAbove !== inTopThird) this.args.container.isDroppingAbove = inTopThird;\n      const isDroppingInto = this.isDraggingOntoSelf ? false : inMiddleThird;\n      if (this.args.container.isDroppingInto !== isDroppingInto) this.args.container.isDroppingInto = isDroppingInto;\n      if (this.args.container.isDroppingBelow !== inBottomThird) this.args.container.isDroppingBelow = inBottomThird;\n      event.stopPropagation();\n      event.preventDefault();\n    }\n    onDrop(event) {\n      event.stopPropagation();\n      this.args.container.isDragging = false;\n      const sourceId = event.dataTransfer.getData('text/plain');\n      const targetId = this.args.container.dslId;\n      // sorting is required when the dragged element is not equal to the drop target\n      // e.g the element has not been dropped onto itself\n      const sortingRequired = sourceId !== targetId;\n      if (sortingRequired) {\n        let direction;\n        if (this.args.container.isDroppingAbove) direction = 'above';\n        if (this.args.container.isDroppingInto) direction = 'into';\n        if (this.args.container.isDroppingBelow) direction = 'below';\n        this.args.sort(sourceId, targetId, direction);\n      }\n      this.args.container.isDroppingAbove = false;\n      this.args.container.isDroppingInto = false;\n      this.args.container.isDroppingBelow = false;\n    }\n    onDragLeave() {\n      this.args.container.isDroppingAbove = false;\n      this.args.container.isDroppingInto = false;\n      this.args.container.isDroppingBelow = false;\n    }\n    onDragEnd() {\n      this.args.container.isDragging = false;\n      this.args.setDraggedContainer(undefined);\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"onDragStart\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onDragStart\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onDragEnter\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onDragEnter\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onDragOver\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onDragOver\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onDrop\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onDrop\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onDragLeave\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onDragLeave\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onDragEnd\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onDragEnd\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, DragSortListDraggableComponent);\n});","define(\"portal/components/drag-sort-list/separator\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='dsl-separator'></div>\n  */\n  {\n    \"id\": \"vpmGMpmy\",\n    \"block\": \"[[[10,0],[14,0,\\\"dsl-separator\\\"],[12],[13]],[],false,[\\\"div\\\"]]\",\n    \"moduleName\": \"portal/components/drag-sort-list/separator.hbs\",\n    \"isStrictMode\": false\n  });\n\n  // eslint-disable-next-line ember/no-empty-glimmer-component-classes\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component2.default {});\n});","define(\"portal/components/draggable-task\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    \n  */\n  {\n    \"id\": \"PdluFg5Z\",\n    \"block\": \"[[],[],false,[]]\",\n    \"moduleName\": \"portal/components/draggable-task.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"portal/components/dropdown-button\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='d-flex' ...attributes>\n    {{#if @route}}\n      <LinkTo\n        @route={{@route}}\n        @model={{@model}}\n        class='{{or @btnClass \"btn btn-primary\"}}\n          rounded-0 rounded-start text-white'\n      >\n        {{#if @icon}}<FaIcon @icon={{@icon}} />&nbsp;&nbsp;{{/if}}{{@buttonText}}\n      </LinkTo>\n    {{else}}\n      <button\n        type='button'\n        class='{{or @btnClass \"btn btn-primary\"}}\n          rounded-0 rounded-start text-white'\n        {{on 'click' @onPrimaryClick}}\n        disabled={{@disabled}}\n        data-test-dropdown-button-primary-button={{@buttonText}}\n      >\n        {{#if @icon}}<FaIcon @icon={{@icon}} />&nbsp;&nbsp;{{/if}}{{@buttonText}}\n      </button>\n    {{/if}}\n  \n    <PopOver\n      @fixed={{@popOverFixed}}\n      @direction={{or @direction 'bottom-left'}}\n      as |po|\n    >\n      <button\n        type='button'\n        class='{{or @btnClass \"btn btn-primary\"}}\n          dropdown-button__divider rounded-0 rounded-end text-white'\n        disabled={{@disabled}}\n        data-test-dropdown-button-dropdown-button={{@buttonText}}\n      >\n        <FaIcon @icon='caret-down' />\n      </button>\n      <po.Content>\n        {{yield}}\n      </po.Content>\n    </PopOver>\n  </div>\n  */\n  {\n    \"id\": \"slxDqnHX\",\n    \"block\": \"[[[11,0],[24,0,\\\"d-flex\\\"],[17,1],[12],[1,\\\"\\\\n\\\"],[41,[30,2],[[[1,\\\"    \\\"],[8,[39,2],[[16,0,[29,[[28,[37,3],[[30,3],\\\"btn btn-primary\\\"],null],\\\"\\\\n        rounded-0 rounded-start text-white\\\"]]]],[[\\\"@route\\\",\\\"@model\\\"],[[30,2],[30,4]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[41,[30,5],[[[8,[39,4],null,[[\\\"@icon\\\"],[[30,5]]],null],[1,\\\"  \\\"]],[]],null],[1,[30,6]],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[11,\\\"button\\\"],[16,0,[29,[[28,[37,3],[[30,3],\\\"btn btn-primary\\\"],null],\\\"\\\\n        rounded-0 rounded-start text-white\\\"]]],[16,\\\"disabled\\\",[30,7]],[16,\\\"data-test-dropdown-button-primary-button\\\",[30,6]],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[30,8]],null],[12],[1,\\\"\\\\n      \\\"],[41,[30,5],[[[8,[39,4],null,[[\\\"@icon\\\"],[[30,5]]],null],[1,\\\"  \\\"]],[]],null],[1,[30,6]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n  \\\"],[8,[39,7],null,[[\\\"@fixed\\\",\\\"@direction\\\"],[[30,9],[28,[37,3],[[30,10],\\\"bottom-left\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,\\\"button\\\"],[15,0,[29,[[28,[37,3],[[30,3],\\\"btn btn-primary\\\"],null],\\\"\\\\n        dropdown-button__divider rounded-0 rounded-end text-white\\\"]]],[15,\\\"disabled\\\",[30,7]],[15,\\\"data-test-dropdown-button-dropdown-button\\\",[30,6]],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[30,11,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[18,12,null],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[11]]]]],[1,\\\"\\\\n\\\"],[13]],[\\\"&attrs\\\",\\\"@route\\\",\\\"@btnClass\\\",\\\"@model\\\",\\\"@icon\\\",\\\"@buttonText\\\",\\\"@disabled\\\",\\\"@onPrimaryClick\\\",\\\"@popOverFixed\\\",\\\"@direction\\\",\\\"po\\\",\\\"&default\\\"],false,[\\\"div\\\",\\\"if\\\",\\\"link-to\\\",\\\"or\\\",\\\"fa-icon\\\",\\\"button\\\",\\\"on\\\",\\\"pop-over\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"portal/components/dropdown-button.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"portal/components/duration-input\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@glimmer/tracking\", \"portal/utils/duration-input\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _tracking, _durationInput, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"portal/utils/duration-input\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <input\n    value={{this.value}}\n    placeholder={{or @placeholder '0:00'}}\n    {{on 'focus' this.handleFocus}}\n    {{on 'blur' this.handleBlur}}\n    disabled={{@disabled}}\n    class={{@class}}\n    type='text'\n    ...attributes\n  />\n  */\n  {\n    \"id\": \"CMvFX7/b\",\n    \"block\": \"[[[11,\\\"input\\\"],[16,2,[30,0,[\\\"value\\\"]]],[16,\\\"placeholder\\\",[28,[37,1],[[30,1],\\\"0:00\\\"],null]],[16,\\\"disabled\\\",[30,2]],[16,0,[30,3]],[24,4,\\\"text\\\"],[17,4],[4,[38,2],[\\\"focus\\\",[30,0,[\\\"handleFocus\\\"]]],null],[4,[38,2],[\\\"blur\\\",[30,0,[\\\"handleBlur\\\"]]],null],[12],[13]],[\\\"@placeholder\\\",\\\"@disabled\\\",\\\"@class\\\",\\\"&attrs\\\"],false,[\\\"input\\\",\\\"or\\\",\\\"on\\\"]]\",\n    \"moduleName\": \"portal/components/duration-input.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"value\", _descriptor, this);\n      this.value = (0, _durationInput.formatDuration)([this.args.duration ?? 0]);\n    }\n    handleFocus(event) {\n      if (this.args.selectOnFocus) {\n        requestAnimationFrame(() => {\n          event.target.select();\n        });\n      }\n    }\n    handleBlur(event) {\n      const rawValue = event.target.value;\n      const duration = (0, _durationInput.parseDuration)(rawValue);\n      this.value = (0, _durationInput.formatDuration)([duration]);\n      if (this.args.onDurationChange) {\n        this.args.onDurationChange(duration);\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"value\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"handleFocus\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleFocus\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleBlur\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleBlur\"), _class.prototype), _class));\n});","define(\"portal/components/education-promotion-button\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if (and (includes-feature-flags 'entityIsCalStudent') this.couponCode)}}\n    <a\n      href='https://au.buildaprice.app/plans'\n      target='_blank'\n      rel='noopener noreferrer'\n      class='btn btn-info p-3 rounded-4 animate-flip-down text-white text-center fs-5'\n      data-test-button\n      ...attributes\n    >\n      {{t\n        'components.education-promotion-button.promotionMessage'\n        couponCode=this.couponCode\n      }}\n    </a>\n  {{/if}}\n  */\n  {\n    \"id\": \"gJ+mO3FJ\",\n    \"block\": \"[[[41,[28,[37,1],[[28,[37,2],[\\\"entityIsCalStudent\\\"],null],[30,0,[\\\"couponCode\\\"]]],null],[[[1,\\\"  \\\"],[11,3],[24,6,\\\"https://au.buildaprice.app/plans\\\"],[24,\\\"target\\\",\\\"_blank\\\"],[24,\\\"rel\\\",\\\"noopener noreferrer\\\"],[24,0,\\\"btn btn-info p-3 rounded-4 animate-flip-down text-white text-center fs-5\\\"],[24,\\\"data-test-button\\\",\\\"\\\"],[17,1],[12],[1,\\\"\\\\n    \\\"],[1,[28,[35,4],[\\\"components.education-promotion-button.promotionMessage\\\"],[[\\\"couponCode\\\"],[[30,0,[\\\"couponCode\\\"]]]]]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"&attrs\\\"],false,[\\\"if\\\",\\\"and\\\",\\\"includes-feature-flags\\\",\\\"a\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/components/education-promotion-button.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n    }\n    get couponCode() {\n      return this.sessionData.entity?.calEducationCouponCode;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class));\n});","define(\"portal/components/ember-modal-dialog-positioned-container\", [\"exports\", \"ember-modal-dialog/components/positioned-container\"], function (_exports, _positionedContainer) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _positionedContainer.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-modal-dialog/components/positioned-container\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/ember-modal-dialog/-basic-dialog\", [\"exports\", \"ember-modal-dialog/components/basic-dialog\"], function (_exports, _basicDialog) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _basicDialog.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-modal-dialog/components/basic-dialog\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/ember-modal-dialog/-in-place-dialog\", [\"exports\", \"ember-modal-dialog/components/in-place-dialog\"], function (_exports, _inPlaceDialog) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _inPlaceDialog.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-modal-dialog/components/in-place-dialog\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/ember-modal-dialog/-liquid-dialog\", [\"exports\", \"ember-modal-dialog/components/liquid-dialog\"], function (_exports, _liquidDialog) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _liquidDialog.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-modal-dialog/components/liquid-dialog\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/ember-modal-dialog/-liquid-tether-dialog\", [\"exports\", \"ember-modal-dialog/components/liquid-tether-dialog\"], function (_exports, _liquidTetherDialog) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _liquidTetherDialog.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-modal-dialog/components/liquid-tether-dialog\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/ember-modal-dialog/-tether-dialog\", [\"exports\", \"ember-modal-dialog/components/tether-dialog\"], function (_exports, _tetherDialog) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _tetherDialog.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-modal-dialog/components/tether-dialog\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/ember-modal-dialog/overlay\", [\"exports\", \"ember-modal-dialog/components/overlay\"], function (_exports, _overlay) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _overlay.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-modal-dialog/components/overlay\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/ember-wormhole\", [\"exports\", \"ember-wormhole/components/ember-wormhole\"], function (_exports, _emberWormhole) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _emberWormhole.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-wormhole/components/ember-wormhole\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/entity-selector\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@ember/service\", \"@glimmer/tracking\", \"@ember/runloop\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _service, _tracking, _runloop, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <ModalDialog\n    @translucentOverlay={{true}}\n    @containerClass='modal-content w-auto'\n    @overlayClass='modal'\n    @onClose={{@onClose}}\n  >\n    <div class='modal-body d-flex flex-column align-items-start overflow-hidden'>\n      <Input\n        class='mb-3 form-control'\n        aria-label={{t 'common.Find company by name'}}\n        @type='text'\n        placeholder={{t 'common.Find company by name'}}\n        autofocus={{true}}\n        @value={{this.searchString}}\n        {{did-insert this.focus}}\n      />\n  \n      <div class='overflow-auto w-100 d-flex flex-column'>\n        <LazyEach\n          @items={{this.filteredEntities}}\n          @automatic={{true}}\n          @initialNumberOfItemsVisible='20'\n          @increment='20'\n          @itemDisplayName={{t 'common.companies'}}\n          @emptyText={{t 'common.No companies'}}\n          as |entity id|\n        >\n          <span class='mb-2 {{id}}'>\n            <button\n              type='button'\n              class='btn btn-link px-0 py-1'\n              {{on 'click' (fn this.changeEntity entity.id)}}\n            >\n              {{entity.name}}\n            </button>\n  \n            {{#if entity.parent.name}}\n              <span class='badge bg-secondary text-white'>\n                {{entity.parent.name}}\n              </span>\n            {{/if}}\n          </span>\n        </LazyEach>\n      </div>\n    </div>\n  \n    <footer class='modal-footer'>\n      <button\n        type='button'\n        class='btn btn-secondary text-white ms-2'\n        {{on 'click' @onClose}}\n      >{{t 'common.Cancel'}}</button>\n    </footer>\n  </ModalDialog>\n  */\n  {\n    \"id\": \"slwH942l\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@translucentOverlay\\\",\\\"@containerClass\\\",\\\"@overlayClass\\\",\\\"@onClose\\\"],[true,\\\"modal-content w-auto\\\",\\\"modal\\\",[30,1]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"modal-body d-flex flex-column align-items-start overflow-hidden\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,2],[[24,0,\\\"mb-3 form-control\\\"],[16,\\\"aria-label\\\",[28,[37,3],[\\\"common.Find company by name\\\"],null]],[16,\\\"placeholder\\\",[28,[37,3],[\\\"common.Find company by name\\\"],null]],[16,\\\"autofocus\\\",true],[4,[38,4],[[30,0,[\\\"focus\\\"]]],null]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"overflow-auto w-100 d-flex flex-column\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,5],null,[[\\\"@items\\\",\\\"@automatic\\\",\\\"@initialNumberOfItemsVisible\\\",\\\"@increment\\\",\\\"@itemDisplayName\\\",\\\"@emptyText\\\"],[[30,0,[\\\"filteredEntities\\\"]],true,\\\"20\\\",\\\"20\\\",[28,[37,3],[\\\"common.companies\\\"],null],[28,[37,3],[\\\"common.No companies\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,1],[15,0,[29,[\\\"mb-2 \\\",[30,3]]]],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link px-0 py-1\\\"],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[30,0,[\\\"changeEntity\\\"]],[30,2,[\\\"id\\\"]]],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[30,2,[\\\"name\\\"]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,2,[\\\"parent\\\",\\\"name\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"badge bg-secondary text-white\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,2,[\\\"parent\\\",\\\"name\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"]],[2,3]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"footer\\\"],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[30,1]],null],[12],[1,[28,[35,3],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]]]],[\\\"@onClose\\\",\\\"entity\\\",\\\"id\\\"],false,[\\\"modal-dialog\\\",\\\"div\\\",\\\"input\\\",\\\"t\\\",\\\"did-insert\\\",\\\"lazy-each\\\",\\\"span\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"if\\\",\\\"footer\\\"]]\",\n    \"moduleName\": \"portal/components/entity-selector.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor2, this);\n      _defineProperty(this, \"hasParentColumn\", false);\n      _defineProperty(this, \"entities\", []);\n      const parentNames = new Set();\n      this.entities = this.sessionData.allowedEntities.sort((a, b) => {\n        parentNames.add(a.belongsTo('parent').value()?.name);\n        const aString = (a.belongsTo('parent').value()?.name || '') + a.name;\n        const bString = (b.belongsTo('parent').value()?.name || '') + b.name;\n        return aString.localeCompare(bString);\n      });\n      this.hasParentColumn = parentNames.size > 1;\n    }\n    get filteredEntities() {\n      if (!this.searchString) return this.entities;\n      const searchString = this.searchString.replace(/\\s/g, '').toLowerCase();\n      const filteredEntities = this.entities.filter(e => {\n        const matchString = String((e.belongsTo('parent').value()?.name || '') + e.name).replace(/\\s/g, '').toLowerCase();\n        return matchString.includes(searchString);\n      });\n      return filteredEntities;\n    }\n    changeEntity(entityId) {\n      this.sessionData.changeEntity(entityId);\n      this.args.onClose();\n    }\n    focus(element) {\n      (0, _runloop.next)(() => element.focus());\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"changeEntity\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"changeEntity\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"focus\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"focus\"), _class.prototype), _class));\n});","define(\"portal/components/entity-table-contents\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{entity-list model=this.model}}\n  */\n  {\n    \"id\": \"wNGDAS+/\",\n    \"block\": \"[[[1,[28,[35,0],null,[[\\\"model\\\"],[[30,0,[\\\"model\\\"]]]]]]],[],false,[\\\"entity-list\\\"]]\",\n    \"moduleName\": \"portal/components/entity-table-contents.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"portal/components/estimate/item\", [\"exports\", \"@ember/component\", \"@glimmer/tracking\", \"@ember/object\"], function (_exports, _component, _tracking, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@glimmer/tracking\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"open\", _descriptor, this);\n    }\n    setProjectedRemaining(item, hours) {\n      const costCenter = item.belongsTo('costCenter').value();\n      const manHoursProjectedTotal = hours + costCenter.manHoursActual;\n      item.manHoursProjectedTotal = manHoursProjectedTotal || 0;\n    }\n    setProjectedRemainingTotal(item, hours) {\n      const costCenter = item.belongsTo('costCenter').value();\n      const manHoursProjectedTotal = costCenter.manHoursActual > hours ? costCenter.manHoursActual : hours;\n      item.manHoursProjectedTotal = manHoursProjectedTotal || 0;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"open\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"setProjectedRemaining\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setProjectedRemaining\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setProjectedRemainingTotal\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setProjectedRemainingTotal\"), _class2.prototype), _class2);\n});","define(\"portal/components/fa-icon\", [\"exports\", \"@fortawesome/ember-fontawesome/components/fa-icon\"], function (_exports, _faIcon) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _faIcon.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"@fortawesome/ember-fontawesome/components/fa-icon\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/file-field\", [\"exports\", \"@ember/utils\", \"@ember/object/evented\", \"@ember/component\"], function (_exports, _utils, _evented, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/utils\",0,\"@ember/object/evented\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _component.default.extend(_evented.default, {\n    tagName: 'input',\n    classNames: ['d-none'],\n    type: 'file',\n    attributeBindings: ['name', 'disabled', 'form', 'type', 'accept', 'autofocus', 'required', 'multiple'],\n    multiple: false,\n    change(event) {\n      const input = event.target;\n      if (!(0, _utils.isEmpty)(input.files)) {\n        this.trigger('filesDidChange', input.files);\n      }\n    }\n  });\n});","define(\"portal/components/file-importer\", [\"exports\", \"@ember/component\", \"@ember/object\", \"portal/components/basic-importer\", \"@ember/template-factory\"], function (_exports, _component, _object, _basicImporter, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"portal/components/basic-importer\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{yield}}\n  \n  {{component\n    this.baseParserComponent\n    file=this.importData\n    class='file-input-button__input'\n    accept='.csv,.txt'\n    data-test-bill-input=this.parser.name\n  }}\n  */\n  {\n    \"id\": \"evUW1U+L\",\n    \"block\": \"[[[18,1,null],[1,\\\"\\\\n\\\\n\\\"],[46,[30,0,[\\\"baseParserComponent\\\"]],null,[[\\\"file\\\",\\\"class\\\",\\\"accept\\\",\\\"data-test-bill-input\\\"],[[30,0,[\\\"importData\\\"]],\\\"file-input-button__input\\\",\\\".csv,.txt\\\",[30,0,[\\\"parser\\\",\\\"name\\\"]]]],null]],[\\\"&default\\\"],false,[\\\"yield\\\",\\\"component\\\"]]\",\n    \"moduleName\": \"portal/components/file-importer.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _basicImporter.default.extend({\n    tagName: 'label',\n    parser: null,\n    baseParser: 'csv',\n    accept: '.csv,.txt,.CSV,.TXT',\n    baseParserComponent: (0, _object.computed)('baseParser', function () {\n      return 'file-inputs/' + (0, _object.get)(this, 'baseParser');\n    }),\n    importObserver: (0, _object.observer)('importData', function () {\n      const importData = (0, _object.get)(this, 'importData');\n      if (importData) {\n        this.send('import', importData);\n      }\n    }),\n    actions: {\n      importing() {\n        (0, _object.set)(this, 'importing', true);\n      }\n    }\n  }));\n});","define(\"portal/components/file-inputs/csv\", [\"exports\", \"@ember/utils\", \"@ember/object\", \"@ember/runloop\", \"ember\", \"portal/components/file-field\"], function (_exports, _utils, _object, _runloop, _ember, _fileField) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/utils\",0,\"@ember/object\",0,\"@ember/runloop\",0,\"ember\",0,\"portal/components/file-field\"eaimeta@70e063a35619d71f\n  /* global Papa */\n  var _default = _exports.default = _fileField.default.extend({\n    attributeBindings: ['accept'],\n    change(event) {\n      const files = (0, _object.get)(event, 'target.files');\n      if ((0, _utils.isEmpty)(files) || files[0] == null) {\n        (0, _object.set)(this, 'file', null);\n        event.target.value = '';\n        return;\n      }\n      const reader = new FileReader();\n      reader.addEventListener('loadend', () => {\n        const sanitizedText = reader.result.replace(/[\\r\\n]+/g, '\\n');\n        Papa.parse(sanitizedText, {\n          skipEmptyLines: true,\n          newline: '\\n',\n          complete: results => (0, _runloop.run)(() => (0, _object.set)(this, 'file', results))\n        });\n      });\n      reader.readAsText(files[0]);\n      if (!_ember.default.testing) {\n        event.target.value = '';\n      }\n    }\n  });\n});","define(\"portal/components/file-inputs/general\", [\"exports\", \"portal/components/file-field\"], function (_exports, _fileField) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/components/file-field\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _fileField.default.extend();\n});","define(\"portal/components/file-inputs/text\", [\"exports\", \"@ember/utils\", \"@ember/object\", \"ember\", \"portal/components/file-field\"], function (_exports, _utils, _object, _ember, _fileField) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/utils\",0,\"@ember/object\",0,\"ember\",0,\"portal/components/file-field\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _fileField.default.extend({\n    attributeBindings: ['accept'],\n    change(event) {\n      /*\n      TODO There is currently no modules friendly approach to this.\n      Apparently its being worked on but I can't find where.\n      It should be reviseted at a later date.\n      */\n      const files = (0, _object.get)(event, _ember.default.testing ? 'testFiles' : 'target.files');\n      const reader = new FileReader();\n      reader.onload = () => (0, _object.set)(this, 'file', reader.result);\n      if (!(0, _utils.isEmpty)(files)) {\n        reader.readAsText(files[0]);\n      }\n    }\n  });\n});","define(\"portal/components/file-type-icon\", [\"exports\", \"@ember/component\", \"@ember/object\", \"portal/models/attachment\", \"@ember/template-factory\"], function (_exports, _component, _object, _attachment, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"portal/models/attachment\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <FaIcon @icon={{this.icon}} @size={{this.defaultSize}} ...attributes />\n  */\n  {\n    \"id\": \"tUVr4JUI\",\n    \"block\": \"[[[8,[39,0],[[17,1]],[[\\\"@icon\\\",\\\"@size\\\"],[[30,0,[\\\"icon\\\"]],[30,0,[\\\"defaultSize\\\"]]]],null]],[\\\"&attrs\\\"],false,[\\\"fa-icon\\\"]]\",\n    \"moduleName\": \"portal/components/file-type-icon.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_dec = (0, _object.computed)('mime'), _class = class _class extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"tagName\", '');\n    }\n    testMimes(testMimes) {\n      return testMimes.some(tm => (0, _attachment.isMimeSame)(tm, this.mime));\n    }\n    get icon() {\n      // eslint-disable-line complexity\n      const {\n        csv,\n        doc,\n        docx,\n        pdf,\n        ppt,\n        pptx,\n        rtf,\n        xls,\n        xlsx\n      } = _attachment.extensionToMime;\n      const {\n        audio,\n        image,\n        video,\n        text,\n        document,\n        archive\n      } = _attachment.shortcutsToMime;\n      let icon = 'file';\n      if (!this.mime) {\n        icon = 'file';\n      } else if (this.testMimes([csv, xls, xlsx])) {\n        icon = 'file-excel';\n      } else if (this.testMimes([pdf])) {\n        icon = 'file-pdf';\n      } else if (this.testMimes([doc, docx, rtf])) {\n        icon = 'file-word';\n      } else if (this.testMimes([ppt, pptx])) {\n        icon = 'file-powerpoint';\n      } else if (this.testMimes(audio)) {\n        icon = 'file-audio';\n      } else if (this.testMimes(image)) {\n        icon = 'file-image';\n      } else if (this.testMimes(video)) {\n        icon = 'file-video';\n      } else if (this.testMimes(text)) {\n        icon = 'file-text';\n      } else if (this.testMimes(document)) {\n        icon = 'file-text';\n      } else if (this.testMimes(archive)) {\n        icon = 'file-archive';\n      }\n      return icon;\n    }\n    get defaultSize() {\n      return this.size || 'lg';\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"icon\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"icon\"), _class.prototype), _class));\n});","define(\"portal/components/filter-pill\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    role='button'\n    class='px-2 py-1 fw-bold rounded bg-info text-white m-1 fs-7 text-nowrap'\n    ...attributes\n  >\n    {{yield}}&nbsp;&nbsp;<FaIcon @icon='times' @size='sm' />\n  </div>\n  */\n  {\n    \"id\": \"KPKbuQxC\",\n    \"block\": \"[[[11,0],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"px-2 py-1 fw-bold rounded bg-info text-white m-1 fs-7 text-nowrap\\\"],[17,1],[12],[1,\\\"\\\\n  \\\"],[18,2,null],[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@icon\\\",\\\"@size\\\"],[\\\"times\\\",\\\"sm\\\"]],null],[1,\\\"\\\\n\\\"],[13]],[\\\"&attrs\\\",\\\"&default\\\"],false,[\\\"div\\\",\\\"yield\\\",\\\"fa-icon\\\"]]\",\n    \"moduleName\": \"portal/components/filter-pill.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"portal/components/financial-data-importer\", [\"exports\", \"@ember/component\", \"@ember/object/evented\", \"@ember/utils\", \"@ember/object\", \"jquery\", \"@ember/object/computed\", \"@ember/template-factory\"], function (_exports, _component, _evented, _utils, _object, _jquery, _computed, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object/evented\",0,\"@ember/utils\",0,\"@ember/object\",0,\"jquery\",0,\"@ember/object/computed\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless this.hasImported}}\n    <section>\n      {{#if this.selectedSystem}}\n        {{component\n          this.optionsTemplate\n          branch=this.branch\n          organisation=this.organisation\n          periodTo=this.period\n          maps=this.maps\n          hasImported=this.hasImported\n          import=(action 'import')\n          remap=this.remap\n        }}\n  \n        {{#if this.canChangeSystem}}\n          <p class='text-center subtext'>\n            <a {{action 'setSelectedSystemValue' null}} class='link'>\n              Import from another system…</a></p>\n        {{/if}}\n      {{else}}\n        <p>To begin an automatic import, please first select which accounting\n          package you use. If your accounting package is not listed, please\n          contact support.</p>\n        <SelectInput\n          @id='import-system'\n          @value={{this.selectedSystem}}\n          @action={{action 'setSelectedSystemValue'}}\n          @class='select-box'\n          as |si|\n        >\n          <si.option>Please select a package…</si.option>\n          {{#each this.systems as |system|}}\n            <si.option @value={{system.key}}>{{system.label}}</si.option>\n          {{/each}}\n        </SelectInput>\n      {{/if}}\n    </section>\n  \n    {{#if this.hasBackgroundImports}}\n      <section class='map-list-section'>\n        <Mapping::MapList\n          @system={{this.selectedSystem}}\n          @maps={{this.maps}}\n          @importData={{this.importData}}\n          @remap={{action 'remap'}}\n          @invertMap={{action 'invertMap'}}\n        >\n          <p class='ptl-placeholder'>If you had any accounts in eAccounts that\n            needed to be mapped to accounts in the master general ledger, they\n            would be shown here.</p>\n        </Mapping::MapList>\n      </section>\n    {{/if}}\n  \n    <footer class='block-module__footer block-module__footer--centered'>\n      <button\n        class='button button--secondary'\n        type='button'\n        {{action 'advance'}}\n      >Skip</button>\n      <LoadingButton\n        @action={{action 'save'}}\n        @class='button'\n        @isLoading={{this.isImporting}}\n      >Save &amp; Continue</LoadingButton>\n    </footer>\n  {{else}}\n    <section>\n      <h3>Unmapped accounts</h3>\n      <p>These are the accounts we found in the file you imported. Click and drag\n        these accounts onto the links (<FaIcon @icon='link' />) column to the left\n        to make connections. Your connections will be saved, so your next import\n        will be much quicker.</p>\n    </section>\n  \n    <section class='map-list-section'>\n      <Mapping::MapList\n        @canInvertValues={{false}}\n        @system={{this.selectedSystem}}\n        @maps={{this.maps}}\n        @remap={{action 'remap'}}\n        @invertMap={{action 'invertMap'}}\n      >\n        <p class='ptl-placeholder'>\n          If you had any accounts in your system that needed to be mapped to\n          accounts in the master general ledger, they would be shown here.\n        </p>\n      </Mapping::MapList>\n    </section>\n  \n    <footer class='block-module__footer block-module__footer--centered'>\n      <p class='subtext'>\n        <a {{action 'resetImport'}} class='link'>\n          {{if\n            this.selectedSystem.multipleFiles\n            'Import an additional file…'\n            'Import a different file…'\n          }}\n        </a>\n      </p>\n      <button\n        class='button button--secondary'\n        type='button'\n        {{action 'advance'}}\n      >Skip</button>\n      <LoadingButton\n        @action={{action 'save'}}\n        @class='button'\n        @isLoading={{this.isImporting}}\n      >Save &amp; Continue</LoadingButton>\n    </footer>\n  {{/unless}}\n  */\n  {\n    \"id\": \"2N3VK6EG\",\n    \"block\": \"[[[41,[51,[30,0,[\\\"hasImported\\\"]]],[[[1,\\\"  \\\"],[10,\\\"section\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"selectedSystem\\\"]],[[[1,\\\"      \\\"],[46,[30,0,[\\\"optionsTemplate\\\"]],null,[[\\\"branch\\\",\\\"organisation\\\",\\\"periodTo\\\",\\\"maps\\\",\\\"hasImported\\\",\\\"import\\\",\\\"remap\\\"],[[30,0,[\\\"branch\\\"]],[30,0,[\\\"organisation\\\"]],[30,0,[\\\"period\\\"]],[30,0,[\\\"maps\\\"]],[30,0,[\\\"hasImported\\\"]],[28,[37,4],[[30,0],\\\"import\\\"],null],[30,0,[\\\"remap\\\"]]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"canChangeSystem\\\"]],[[[1,\\\"        \\\"],[10,2],[14,0,\\\"text-center subtext\\\"],[12],[1,\\\"\\\\n          \\\"],[11,3],[24,0,\\\"link\\\"],[4,[38,4],[[30,0],\\\"setSelectedSystemValue\\\",null],null],[12],[1,\\\"\\\\n            Import from another system…\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[1,\\\"      \\\"],[10,2],[12],[1,\\\"To begin an automatic import, please first select which accounting\\\\n        package you use. If your accounting package is not listed, please\\\\n        contact support.\\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,7],null,[[\\\"@id\\\",\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[\\\"import-system\\\",[30,0,[\\\"selectedSystem\\\"]],[28,[37,4],[[30,0],\\\"setSelectedSystemValue\\\"],null],\\\"select-box\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"option\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"Please select a package…\\\"]],[]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[30,0,[\\\"systems\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[[30,2,[\\\"key\\\"]]]],[[\\\"default\\\"],[[[[1,[30,2,[\\\"label\\\"]]]],[]]]]],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"      \\\"]],[1]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"hasBackgroundImports\\\"]],[[[1,\\\"    \\\"],[10,\\\"section\\\"],[14,0,\\\"map-list-section\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,10],null,[[\\\"@system\\\",\\\"@maps\\\",\\\"@importData\\\",\\\"@remap\\\",\\\"@invertMap\\\"],[[30,0,[\\\"selectedSystem\\\"]],[30,0,[\\\"maps\\\"]],[30,0,[\\\"importData\\\"]],[28,[37,4],[[30,0],\\\"remap\\\"],null],[28,[37,4],[[30,0],\\\"invertMap\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,2],[14,0,\\\"ptl-placeholder\\\"],[12],[1,\\\"If you had any accounts in eAccounts that\\\\n          needed to be mapped to accounts in the master general ledger, they\\\\n          would be shown here.\\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer block-module__footer--centered\\\"],[12],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--secondary\\\"],[24,4,\\\"button\\\"],[4,[38,4],[[30,0],\\\"advance\\\"],null],[12],[1,\\\"Skip\\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,13],null,[[\\\"@action\\\",\\\"@class\\\",\\\"@isLoading\\\"],[[28,[37,4],[[30,0],\\\"save\\\"],null],\\\"button\\\",[30,0,[\\\"isImporting\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"Save & Continue\\\"]],[]]]]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,\\\"section\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h3\\\"],[12],[1,\\\"Unmapped accounts\\\"],[13],[1,\\\"\\\\n    \\\"],[10,2],[12],[1,\\\"These are the accounts we found in the file you imported. Click and drag\\\\n      these accounts onto the links (\\\"],[8,[39,15],null,[[\\\"@icon\\\"],[\\\"link\\\"]],null],[1,\\\") column to the left\\\\n      to make connections. Your connections will be saved, so your next import\\\\n      will be much quicker.\\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"section\\\"],[14,0,\\\"map-list-section\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,10],null,[[\\\"@canInvertValues\\\",\\\"@system\\\",\\\"@maps\\\",\\\"@remap\\\",\\\"@invertMap\\\"],[false,[30,0,[\\\"selectedSystem\\\"]],[30,0,[\\\"maps\\\"]],[28,[37,4],[[30,0],\\\"remap\\\"],null],[28,[37,4],[[30,0],\\\"invertMap\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"ptl-placeholder\\\"],[12],[1,\\\"\\\\n        If you had any accounts in your system that needed to be mapped to\\\\n        accounts in the master general ledger, they would be shown here.\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer block-module__footer--centered\\\"],[12],[1,\\\"\\\\n    \\\"],[10,2],[14,0,\\\"subtext\\\"],[12],[1,\\\"\\\\n      \\\"],[11,3],[24,0,\\\"link\\\"],[4,[38,4],[[30,0],\\\"resetImport\\\"],null],[12],[1,\\\"\\\\n        \\\"],[1,[52,[30,0,[\\\"selectedSystem\\\",\\\"multipleFiles\\\"]],\\\"Import an additional file…\\\",\\\"Import a different file…\\\"]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--secondary\\\"],[24,4,\\\"button\\\"],[4,[38,4],[[30,0],\\\"advance\\\"],null],[12],[1,\\\"Skip\\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,13],null,[[\\\"@action\\\",\\\"@class\\\",\\\"@isLoading\\\"],[[28,[37,4],[[30,0],\\\"save\\\"],null],\\\"button\\\",[30,0,[\\\"isImporting\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"Save & Continue\\\"]],[]]]]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[\\\"si\\\",\\\"system\\\"],false,[\\\"unless\\\",\\\"section\\\",\\\"if\\\",\\\"component\\\",\\\"action\\\",\\\"p\\\",\\\"a\\\",\\\"select-input\\\",\\\"each\\\",\\\"-track-array\\\",\\\"mapping/map-list\\\",\\\"footer\\\",\\\"button\\\",\\\"loading-button\\\",\\\"h3\\\",\\\"fa-icon\\\"]]\",\n    \"moduleName\": \"portal/components/financial-data-importer.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    tagName: 'aside',\n    classNames: ['controls'],\n    hasImported: false,\n    hasBackgroundImports: (0, _computed.equal)('selectedSystem', 'eaccounts'),\n    canMap: (0, _computed.or)('hasImported', 'hasBackgroundImports'),\n    setHasImported: (0, _evented.on)('init', function () {\n      (0, _object.set)(this, 'hasImported', (0, _object.get)(this, 'importData.externalBalances.length') > 0);\n    }),\n    // For some reason, notEmpty doesn't work but the observer does\n    // hasSelectedSystem: computed.notEmpty('selectedSystem'),\n    selectedSystemDidChange: (0, _evented.on)('init', (0, _object.observer)('selectedSystem', function () {\n      (0, _object.set)(this, 'hasSelectedSystem', !(0, _utils.isEmpty)((0, _object.get)(this, 'selectedSystem')));\n    })),\n    didInsertElement() {\n      this._super(...arguments);\n      if ((0, _jquery.default)('html').hasClass('ie-11')) {\n        (0, _jquery.default)(this.element).height((0, _jquery.default)(window).height() - 40);\n      }\n    },\n    willDestroyElement() {\n      this._super(...arguments);\n    },\n    optionsTemplate: (0, _object.computed)('selectedSystem.key', function () {\n      var system = (0, _object.get)(this, 'selectedSystem.key');\n      if (system) {\n        return 'gl-importers/' + system;\n      } else {\n        return null;\n      }\n    }),\n    unmapped: (0, _computed.filter)('maps.@each.account', function (map) {\n      return (0, _utils.isEmpty)((0, _object.get)(map, 'account.id'));\n    }),\n    actions: {\n      resetImport() {\n        (0, _object.set)(this, 'hasImported', false);\n      },\n      import() {\n        (0, _object.set)(this, 'hasImported', true);\n        this.import(...arguments);\n      },\n      remap() {\n        this.remap(...arguments);\n      },\n      // Inversions shouldn't bubble form here\n      invertMap() {},\n      // eslint-disable-line no-empty-function\n\n      save() {\n        this.save(...arguments);\n      },\n      advance() {\n        this.advance(...arguments);\n      },\n      setSelectedSystemValue(value) {\n        const matchedSystem = this.systems.find(sys => sys.key === value);\n        this.selectSystem(matchedSystem ? matchedSystem.key : null);\n      }\n    }\n  }));\n});","define(\"portal/components/financial-data-table\", [\"exports\", \"@ember/component\", \"@ember/service\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _service, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/service\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <thead>\n    <tr>\n      <th>Account name</th>\n      <th width='120px'>Amount</th>\n      <th width='35px'><FaIcon @icon='link' /></th>\n    </tr>\n  </thead>\n  <tbody>\n    {{#each this.accountList as |line|}}\n      {{#if line.isHeading}}\n  \n        <tr>\n          <td class='depth-{{line.depth}} heading' colspan='4'>\n            {{line.name}}\n  \n            {{#if line.description}}\n              <span class='float-end'>\n                <InfoPopup @text={{line.description}} />\n              </span>\n            {{/if}}\n          </td>\n        </tr>\n  \n      {{else}}\n  \n        <tr>\n          <td class='depth-{{line.depth}} financial-data-table__account-name'>\n            <a\n              class='link data-table__cell-cover'\n              {{action 'toggleConfigPane' line}}\n            >{{line.name}}</a>\n  \n            {{#if line.description}}\n              <span class='float-end'>\n                <InfoPopup @text={{line.description}} />\n              </span>\n            {{/if}}\n          </td>\n          <td>\n            <FormattedInput\n              @format={{line.format}}\n              @formatterOptions={{hash currencySymbol=''}}\n              @number={{line.balance.value}}\n              @update={{action 'manualUpdate' line}}\n              @class='data-table__cell-cover text-input text-right'\n            />\n          </td>\n          <Mapping::MapStatus\n            @system={{this.selectedSystem}}\n            @account={{line}}\n            @maps={{line.balance.maps}}\n            @isManual={{line.balance.isManual}}\n            @makeAuto={{action 'revertToAuto'}}\n            @toggle={{this.toggleConfigPane}}\n            @remap={{this.remap}}\n          />\n        </tr>\n  \n        <tr data-account-id={{line.id}} class='config-pane closed'>\n          <td colspan='4'>\n            <Mapping::MapList\n              @system={{this.selectedSystem}}\n              @account={{line}}\n              @maps={{line.balance.maps}}\n              @importData={{this.importData.externalBalances}}\n              @remap={{action this.remap}}\n              @invertMap={{action this.invertMap}}\n            />\n          </td>\n        </tr>\n  \n      {{/if}}\n    {{/each}}\n  </tbody>\n  */\n  {\n    \"id\": \"cNB3z1S7\",\n    \"block\": \"[[[10,\\\"thead\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"th\\\"],[12],[1,\\\"Account name\\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"120px\\\"],[12],[1,\\\"Amount\\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"35px\\\"],[12],[8,[39,3],null,[[\\\"@icon\\\"],[\\\"link\\\"]],null],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[30,0,[\\\"accountList\\\"]]],null]],null],null,[[[41,[30,1,[\\\"isHeading\\\"]],[[[1,\\\"\\\\n      \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"depth-\\\",[30,1,[\\\"depth\\\"]],\\\" heading\\\"]]],[14,\\\"colspan\\\",\\\"4\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,1,[\\\"description\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"float-end\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,10],null,[[\\\"@text\\\"],[[30,1,[\\\"description\\\"]]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[]],[[[1,\\\"\\\\n      \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"depth-\\\",[30,1,[\\\"depth\\\"]],\\\" financial-data-table__account-name\\\"]]],[12],[1,\\\"\\\\n          \\\"],[11,3],[24,0,\\\"link data-table__cell-cover\\\"],[4,[38,12],[[30,0],\\\"toggleConfigPane\\\",[30,1]],null],[12],[1,[30,1,[\\\"name\\\"]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,1,[\\\"description\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"float-end\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,10],null,[[\\\"@text\\\"],[[30,1,[\\\"description\\\"]]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,13],null,[[\\\"@format\\\",\\\"@formatterOptions\\\",\\\"@number\\\",\\\"@update\\\",\\\"@class\\\"],[[30,1,[\\\"format\\\"]],[28,[37,14],null,[[\\\"currencySymbol\\\"],[\\\"\\\"]]],[30,1,[\\\"balance\\\",\\\"value\\\"]],[28,[37,12],[[30,0],\\\"manualUpdate\\\",[30,1]],null],\\\"data-table__cell-cover text-input text-right\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,15],null,[[\\\"@system\\\",\\\"@account\\\",\\\"@maps\\\",\\\"@isManual\\\",\\\"@makeAuto\\\",\\\"@toggle\\\",\\\"@remap\\\"],[[30,0,[\\\"selectedSystem\\\"]],[30,1],[30,1,[\\\"balance\\\",\\\"maps\\\"]],[30,1,[\\\"balance\\\",\\\"isManual\\\"]],[28,[37,12],[[30,0],\\\"revertToAuto\\\"],null],[30,0,[\\\"toggleConfigPane\\\"]],[30,0,[\\\"remap\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"tr\\\"],[15,\\\"data-account-id\\\",[30,1,[\\\"id\\\"]]],[14,0,\\\"config-pane closed\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"4\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,16],null,[[\\\"@system\\\",\\\"@account\\\",\\\"@maps\\\",\\\"@importData\\\",\\\"@remap\\\",\\\"@invertMap\\\"],[[30,0,[\\\"selectedSystem\\\"]],[30,1],[30,1,[\\\"balance\\\",\\\"maps\\\"]],[30,0,[\\\"importData\\\",\\\"externalBalances\\\"]],[28,[37,12],[[30,0],[30,0,[\\\"remap\\\"]]],null],[28,[37,12],[[30,0],[30,0,[\\\"invertMap\\\"]]],null]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[]]]],[1]],null],[13]],[\\\"line\\\"],false,[\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"fa-icon\\\",\\\"tbody\\\",\\\"each\\\",\\\"-track-array\\\",\\\"if\\\",\\\"td\\\",\\\"span\\\",\\\"info-popup\\\",\\\"a\\\",\\\"action\\\",\\\"formatted-input\\\",\\\"hash\\\",\\\"mapping/map-status\\\",\\\"mapping/map-list\\\"]]\",\n    \"moduleName\": \"portal/components/financial-data-table.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    sessionData: (0, _service.inject)(),\n    tagName: 'table',\n    classNames: ['data-table', 'financial-data-table'],\n    actions: {\n      manualUpdate(line, value) {\n        // If an input is changed to blank (as opposed to 0) then it is no longer manual.\n        if (value == null) return this.send('revertToAuto', line);\n        const account = (0, _object.get)(line, 'id');\n        const balance = (0, _object.get)(line, 'balance.manualBalance');\n        if (balance) {\n          (0, _object.set)(balance, 'value', value);\n        } else {\n          (0, _object.set)(line, 'balance.manualBalance', _object.default.create({\n            account,\n            value\n          }));\n        }\n      },\n      revertToAuto(line) {\n        (0, _object.set)(line, 'balance.manualBalance', null);\n      },\n      toggleConfigPane() {\n        this.toggleConfigPane(...arguments);\n      }\n    }\n  }));\n});","define(\"portal/components/financials-table-section\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#each this.accounts as |account|}}\n    <tr class='{{if (or this.doNotPrint (not account.print)) \"do-not-print\"}}'>\n      <td\n        class='financials-table__account-name financials-table__indented-cell financials-table__indented-cell--depth-{{account.depth}}'\n      >\n        {{#if (and this.filterHeaders account.children)}}\n          <a\n            class='financials-table__print-toggle link do-not-print'\n            {{action 'toggleFilter' account}}\n          >\n            <FaIcon @icon={{if account.print 'eye' 'eye-slash'}} />\n          </a>\n        {{/if}}\n  \n        {{#if account.children}}\n          <a\n            class='financials-table__section-expansion-toggle link'\n            {{action 'toggleShowChildren' account}}\n          >\n            <FaIcon\n              @icon={{if account.hideChildren 'angle-right' 'angle-down'}}\n            />{{~! ~}}\n            {{#if\n              (and\n                account.parent\n                (not (eq account.debitCredit this.parent.debitCredit))\n              )\n            }}\n              <span class='debitCredit debitCredit--debit'><InfoPopup\n                  @text={{concat\n                    account.name\n                    ' subtracts from '\n                    this.parent.name\n                  }}\n                  @iconName='minus'\n                /></span>\n            {{/if}}\n            {{account.name}}\n          </a>\n        {{else}}\n          <FaIcon @icon='angle-right' class='invisible' />{{~! ~}}\n          {{! Just to fill the space }}\n          {{#if\n            (and\n              account.parent\n              (not (eq account.debitCredit this.parent.debitCredit))\n            )\n          }}\n            <span class='debitCredit debitCredit--debit'><InfoPopup\n                @text={{concat account.name ' subtracts from ' this.parent.name}}\n                @iconName='minus'\n              /></span>\n          {{/if}}\n          {{account.name}}\n        {{/if}}\n  \n        {{#if account.description}}\n          <span\n            class='financials-table__inspectable-cell__account-description'\n          ><InfoPopup @text={{account.description}} @class='description' /></span>\n        {{/if}}\n      </td>\n  \n      {{! If we can't see all of the children and the total row, show just the totals here instead. }}\n      {{#if account.hideChildren}}\n        {{#each account.data as |value index|}}\n          {{#if this.showMonth}}\n            {{#if (and (not-eq index 0) this.canSeeBreakdown)}}\n              <td\n                {{action 'toggleShowBreakdown' account index 'month'}}\n                colspan={{if (and this.showYTD (not account.periodic)) '2' '1'}}\n                class='financials-table__inspectable-cell text-right\n                  {{if (lt value.month 0) \"financials-table__negative-value\"}}'\n              >\n                {{number-format\n                  value.month\n                  maximumFractionDigits=0\n                  dashZero=true\n                }}\n              </td>\n            {{else}}\n              <td\n                colspan={{if (and this.showYTD (not account.periodic)) '2' '1'}}\n                class='text-right\n                  {{if (lt value.month 0) \"financials-table__negative-value\"}}'\n              >\n                {{number-format\n                  value.month\n                  maximumFractionDigits=0\n                  dashZero=true\n                }}\n              </td>\n            {{/if}}\n          {{/if}}\n  \n          {{#if (and this.showYTD account.periodic)}}\n            {{#if (and (not-eq index 0) this.canSeeBreakdown)}}\n              <td\n                {{action 'toggleShowBreakdown' account index 'ytd'}}\n                class='financials-table__inspectable-cell text-right\n                  {{if (lt value.ytd 0) \"financials-table__negative-value\"}}'\n              >\n                {{number-format value.ytd maximumFractionDigits=0 dashZero=true}}\n              </td>\n            {{else}}\n              <td\n                class='text-right\n                  {{if (lt value.ytd 0) \"financials-table__negative-value\"}}'\n              >\n                {{number-format value.ytd maximumFractionDigits=0 dashZero=true}}\n              </td>\n            {{/if}}\n          {{/if}}\n  \n          {{! Add an empty cell if there is no data to be shown, just to stop the table breaking. }}\n          {{#if (not (or this.showMonth this.showYTD))}}\n            <td></td>\n          {{/if}}\n        {{/each}}\n      {{else}}\n        <td colspan={{this.columnCount}}></td>\n      {{/if}}\n    </tr>\n  \n    {{#if (and account.children (not account.hideChildren))}}\n      <FinancialsTableSection\n        @canSeeBreakdown={{this.canSeeBreakdown}}\n        @toggleShowChildren={{action 'toggleShowChildren'}}\n        @toggleShowBreakdown={{action 'toggleShowBreakdown'}}\n        @accounts={{account.children}}\n        @parent={{account}}\n        @showMonth={{this.showMonth}}\n        @showYTD={{this.showYTD}}\n        @filterHeaders={{this.filterHeaders}}\n        @doNotPrint={{not account.print}}\n        @hasGroups={{this.hasGroups}}\n      />\n  \n      <tr class='data-table__total-row {{unless account.print \"do-not-print\"}}'>\n        <td\n          class='financials-table__indented-cell financials-table__indented-cell--depth-{{account.depth}}'\n        >\n          <FaIcon @icon='angle-right' class='invisible' />\n          {{#if this.hasGroups}}\n            {{!Add a star to the end of the name to denote that it requires explanation}}\n            {{account.name}}*\n          {{else}}\n            Total\n            {{account.name}}\n          {{/if}}\n        </td>\n  \n        {{#each account.data as |value|}}\n          {{#if this.showMonth}}\n            <td\n              colspan={{if (and this.showYTD (not account.periodic)) '2' '1'}}\n              class='text-right\n                {{if (lt value.month 0) \"financials-table__negative-value\"}}'\n            >\n              {{number-format value.month maximumFractionDigits=0 dashZero=true}}\n            </td>\n          {{/if}}\n  \n          {{#if (and this.showYTD account.periodic)}}\n            <td\n              class='text-right\n                {{if (lt value.month 0) \"financials-table__negative-value\"}}'\n            >\n              {{number-format value.ytd maximumFractionDigits=0 dashZero=true}}\n            </td>\n          {{/if}}\n  \n          {{! Add an empty cell if there is no data to be shown, just to stop the table breaking. }}\n          {{#if (not (or this.showMonth this.showYTD))}}\n            <td></td>\n          {{/if}}\n        {{/each}}\n      </tr>\n    {{/if}}\n  {{/each}}\n  \n  {{#if this.totalsRow}}\n    <tr class='data-table__total-row {{unless this.totals.print \"do-not-print\"}}'>\n      <td\n        class='financials-table__account-name financials-table__indented-cell financials-table__indented-cell--depth-0'\n      >\n        {{#if this.filterHeaders}}\n          <a\n            class='financials-table__print-toggle do-not-print'\n            {{action 'toggleFilter' this.totals}}\n          >\n            <FaIcon @icon={{if this.totals.print 'eye' 'eye-slash'}} />\n          </a>\n        {{/if}}\n        {{this.totalsRow}}\n      </td>\n  \n      {{#each this.totals as |total|}}\n        {{#if (and this.showMonth (not-eq total.month null))}}\n          <td\n            class='text-right\n              {{if (lt total.month 0) \"financials-table__negative-value\"}}'\n          >\n            {{number-format total.month maximumFractionDigits=0 dashZero=true}}\n          </td>\n        {{/if}}\n  \n        {{#if (and this.showYTD (not-eq total.ytd null))}}\n          <td\n            class='text-right\n              {{if (lt total.ytd 0) \"financials-table__negative-value\"}}\n              '\n          >\n            {{number-format total.ytd maximumFractionDigits=0 dashZero=true}}\n          </td>\n        {{/if}}\n  \n        {{#if (and this.showMonth (not-eq total.continuous null))}}\n          <td\n            class='text-right\n              {{if (lt total.continuous 0) \"financials-table__negative-value\"}}'\n          >\n            {{number-format\n              total.continuous\n              maximumFractionDigits=0\n              dashZero=true\n            }}\n          </td>\n        {{/if}}\n  \n        {{! Add an empty cell if there is no data to be shown, just to stop the table breaking. }}\n        {{#if (not (or this.showMonth this.showYTD))}}\n          <td></td>\n        {{/if}}\n      {{/each}}\n    </tr>\n  {{/if}}\n  */\n  {\n    \"id\": \"NvHaoju2\",\n    \"block\": \"[[[42,[28,[37,1],[[28,[37,1],[[30,0,[\\\"accounts\\\"]]],null]],null],null,[[[1,\\\"  \\\"],[10,\\\"tr\\\"],[15,0,[29,[[52,[28,[37,4],[[30,0,[\\\"doNotPrint\\\"]],[28,[37,5],[[30,1,[\\\"print\\\"]]],null]],null],\\\"do-not-print\\\"]]]],[12],[1,\\\"\\\\n    \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"financials-table__account-name financials-table__indented-cell financials-table__indented-cell--depth-\\\",[30,1,[\\\"depth\\\"]]]]],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[[30,0,[\\\"filterHeaders\\\"]],[30,1,[\\\"children\\\"]]],null],[[[1,\\\"        \\\"],[11,3],[24,0,\\\"financials-table__print-toggle link do-not-print\\\"],[4,[38,9],[[30,0],\\\"toggleFilter\\\",[30,1]],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,10],null,[[\\\"@icon\\\"],[[52,[30,1,[\\\"print\\\"]],\\\"eye\\\",\\\"eye-slash\\\"]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"children\\\"]],[[[1,\\\"        \\\"],[11,3],[24,0,\\\"financials-table__section-expansion-toggle link\\\"],[4,[38,9],[[30,0],\\\"toggleShowChildren\\\",[30,1]],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,10],null,[[\\\"@icon\\\"],[[52,[30,1,[\\\"hideChildren\\\"]],\\\"angle-right\\\",\\\"angle-down\\\"]]],null],[41,[28,[37,7],[[30,1,[\\\"parent\\\"]],[28,[37,5],[[28,[37,11],[[30,1,[\\\"debitCredit\\\"]],[30,0,[\\\"parent\\\",\\\"debitCredit\\\"]]],null]],null]],null],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"debitCredit debitCredit--debit\\\"],[12],[8,[39,13],null,[[\\\"@text\\\",\\\"@iconName\\\"],[[28,[37,14],[[30,1,[\\\"name\\\"]],\\\" subtracts from \\\",[30,0,[\\\"parent\\\",\\\"name\\\"]]],null],\\\"minus\\\"]],null],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[8,[39,10],[[24,0,\\\"invisible\\\"]],[[\\\"@icon\\\"],[\\\"angle-right\\\"]],null],[41,[28,[37,7],[[30,1,[\\\"parent\\\"]],[28,[37,5],[[28,[37,11],[[30,1,[\\\"debitCredit\\\"]],[30,0,[\\\"parent\\\",\\\"debitCredit\\\"]]],null]],null]],null],[[[1,\\\"          \\\"],[10,1],[14,0,\\\"debitCredit debitCredit--debit\\\"],[12],[8,[39,13],null,[[\\\"@text\\\",\\\"@iconName\\\"],[[28,[37,14],[[30,1,[\\\"name\\\"]],\\\" subtracts from \\\",[30,0,[\\\"parent\\\",\\\"name\\\"]]],null],\\\"minus\\\"]],null],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"description\\\"]],[[[1,\\\"        \\\"],[10,1],[14,0,\\\"financials-table__inspectable-cell__account-description\\\"],[12],[8,[39,13],null,[[\\\"@text\\\",\\\"@class\\\"],[[30,1,[\\\"description\\\"]],\\\"description\\\"]],null],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,1,[\\\"hideChildren\\\"]],[[[42,[28,[37,1],[[28,[37,1],[[30,1,[\\\"data\\\"]]],null]],null],null,[[[41,[30,0,[\\\"showMonth\\\"]],[[[41,[28,[37,7],[[28,[37,15],[[30,3],0],null],[30,0,[\\\"canSeeBreakdown\\\"]]],null],[[[1,\\\"            \\\"],[11,\\\"td\\\"],[16,\\\"colspan\\\",[52,[28,[37,7],[[30,0,[\\\"showYTD\\\"]],[28,[37,5],[[30,1,[\\\"periodic\\\"]]],null]],null],\\\"2\\\",\\\"1\\\"]],[16,0,[29,[\\\"financials-table__inspectable-cell text-right\\\\n                \\\",[52,[28,[37,16],[[30,2,[\\\"month\\\"]],0],null],\\\"financials-table__negative-value\\\"]]]],[4,[38,9],[[30,0],\\\"toggleShowBreakdown\\\",[30,1],[30,3],\\\"month\\\"],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,17],[[30,2,[\\\"month\\\"]]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[10,\\\"td\\\"],[15,\\\"colspan\\\",[52,[28,[37,7],[[30,0,[\\\"showYTD\\\"]],[28,[37,5],[[30,1,[\\\"periodic\\\"]]],null]],null],\\\"2\\\",\\\"1\\\"]],[15,0,[29,[\\\"text-right\\\\n                \\\",[52,[28,[37,16],[[30,2,[\\\"month\\\"]],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,17],[[30,2,[\\\"month\\\"]]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[[30,0,[\\\"showYTD\\\"]],[30,1,[\\\"periodic\\\"]]],null],[[[41,[28,[37,7],[[28,[37,15],[[30,3],0],null],[30,0,[\\\"canSeeBreakdown\\\"]]],null],[[[1,\\\"            \\\"],[11,\\\"td\\\"],[16,0,[29,[\\\"financials-table__inspectable-cell text-right\\\\n                \\\",[52,[28,[37,16],[[30,2,[\\\"ytd\\\"]],0],null],\\\"financials-table__negative-value\\\"]]]],[4,[38,9],[[30,0],\\\"toggleShowBreakdown\\\",[30,1],[30,3],\\\"ytd\\\"],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,17],[[30,2,[\\\"ytd\\\"]]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n                \\\",[52,[28,[37,16],[[30,2,[\\\"ytd\\\"]],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,17],[[30,2,[\\\"ytd\\\"]]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[[28,[37,4],[[30,0,[\\\"showMonth\\\"]],[30,0,[\\\"showYTD\\\"]]],null]],null],[[[1,\\\"          \\\"],[10,\\\"td\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null]],[2,3]],null]],[]],[[[1,\\\"      \\\"],[10,\\\"td\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnCount\\\"]]],[12],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,7],[[30,1,[\\\"children\\\"]],[28,[37,5],[[30,1,[\\\"hideChildren\\\"]]],null]],null],[[[1,\\\"    \\\"],[8,[39,18],null,[[\\\"@canSeeBreakdown\\\",\\\"@toggleShowChildren\\\",\\\"@toggleShowBreakdown\\\",\\\"@accounts\\\",\\\"@parent\\\",\\\"@showMonth\\\",\\\"@showYTD\\\",\\\"@filterHeaders\\\",\\\"@doNotPrint\\\",\\\"@hasGroups\\\"],[[30,0,[\\\"canSeeBreakdown\\\"]],[28,[37,9],[[30,0],\\\"toggleShowChildren\\\"],null],[28,[37,9],[[30,0],\\\"toggleShowBreakdown\\\"],null],[30,1,[\\\"children\\\"]],[30,1],[30,0,[\\\"showMonth\\\"]],[30,0,[\\\"showYTD\\\"]],[30,0,[\\\"filterHeaders\\\"]],[28,[37,5],[[30,1,[\\\"print\\\"]]],null],[30,0,[\\\"hasGroups\\\"]]]],null],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"tr\\\"],[15,0,[29,[\\\"data-table__total-row \\\",[52,[51,[30,1,[\\\"print\\\"]]],\\\"do-not-print\\\"]]]],[12],[1,\\\"\\\\n      \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"financials-table__indented-cell financials-table__indented-cell--depth-\\\",[30,1,[\\\"depth\\\"]]]]],[12],[1,\\\"\\\\n        \\\"],[8,[39,10],[[24,0,\\\"invisible\\\"]],[[\\\"@icon\\\"],[\\\"angle-right\\\"]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"hasGroups\\\"]],[[[1,\\\"          \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"*\\\\n\\\"]],[]],[[[1,\\\"          Total\\\\n          \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,1],[[28,[37,1],[[30,1,[\\\"data\\\"]]],null]],null],null,[[[41,[30,0,[\\\"showMonth\\\"]],[[[1,\\\"          \\\"],[10,\\\"td\\\"],[15,\\\"colspan\\\",[52,[28,[37,7],[[30,0,[\\\"showYTD\\\"]],[28,[37,5],[[30,1,[\\\"periodic\\\"]]],null]],null],\\\"2\\\",\\\"1\\\"]],[15,0,[29,[\\\"text-right\\\\n              \\\",[52,[28,[37,16],[[30,4,[\\\"month\\\"]],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,17],[[30,4,[\\\"month\\\"]]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[[30,0,[\\\"showYTD\\\"]],[30,1,[\\\"periodic\\\"]]],null],[[[1,\\\"          \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n              \\\",[52,[28,[37,16],[[30,4,[\\\"month\\\"]],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,17],[[30,4,[\\\"ytd\\\"]]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[[28,[37,4],[[30,0,[\\\"showMonth\\\"]],[30,0,[\\\"showYTD\\\"]]],null]],null],[[[1,\\\"          \\\"],[10,\\\"td\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null]],[4]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[1]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"totalsRow\\\"]],[[[1,\\\"  \\\"],[10,\\\"tr\\\"],[15,0,[29,[\\\"data-table__total-row \\\",[52,[51,[30,0,[\\\"totals\\\",\\\"print\\\"]]],\\\"do-not-print\\\"]]]],[12],[1,\\\"\\\\n    \\\"],[10,\\\"td\\\"],[14,0,\\\"financials-table__account-name financials-table__indented-cell financials-table__indented-cell--depth-0\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"filterHeaders\\\"]],[[[1,\\\"        \\\"],[11,3],[24,0,\\\"financials-table__print-toggle do-not-print\\\"],[4,[38,9],[[30,0],\\\"toggleFilter\\\",[30,0,[\\\"totals\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,10],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"totals\\\",\\\"print\\\"]],\\\"eye\\\",\\\"eye-slash\\\"]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[1,[30,0,[\\\"totalsRow\\\"]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,1],[[28,[37,1],[[30,0,[\\\"totals\\\"]]],null]],null],null,[[[41,[28,[37,7],[[30,0,[\\\"showMonth\\\"]],[28,[37,15],[[30,5,[\\\"month\\\"]],null],null]],null],[[[1,\\\"        \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n            \\\",[52,[28,[37,16],[[30,5,[\\\"month\\\"]],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,17],[[30,5,[\\\"month\\\"]]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[[30,0,[\\\"showYTD\\\"]],[28,[37,15],[[30,5,[\\\"ytd\\\"]],null],null]],null],[[[1,\\\"        \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n            \\\",[52,[28,[37,16],[[30,5,[\\\"ytd\\\"]],0],null],\\\"financials-table__negative-value\\\"],\\\"\\\\n            \\\"]]],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,17],[[30,5,[\\\"ytd\\\"]]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[[30,0,[\\\"showMonth\\\"]],[28,[37,15],[[30,5,[\\\"continuous\\\"]],null],null]],null],[[[1,\\\"        \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n            \\\",[52,[28,[37,16],[[30,5,[\\\"continuous\\\"]],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,17],[[30,5,[\\\"continuous\\\"]]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[[28,[37,4],[[30,0,[\\\"showMonth\\\"]],[30,0,[\\\"showYTD\\\"]]],null]],null],[[[1,\\\"        \\\"],[10,\\\"td\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null]],[5]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"account\\\",\\\"value\\\",\\\"index\\\",\\\"value\\\",\\\"total\\\"],false,[\\\"each\\\",\\\"-track-array\\\",\\\"tr\\\",\\\"if\\\",\\\"or\\\",\\\"not\\\",\\\"td\\\",\\\"and\\\",\\\"a\\\",\\\"action\\\",\\\"fa-icon\\\",\\\"eq\\\",\\\"span\\\",\\\"info-popup\\\",\\\"concat\\\",\\\"not-eq\\\",\\\"lt\\\",\\\"number-format\\\",\\\"financials-table-section\\\",\\\"unless\\\"]]\",\n    \"moduleName\": \"portal/components/financials-table-section.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    tagName: '',\n    columnCount: (0, _object.computed)('accounts.0.data.length', 'accounts.@each.data', 'showMonth', 'showYTD', function () {\n      const colsPerGroup = (0, _object.get)(this, 'showMonth') + (0, _object.get)(this, 'showYTD'); // boolean addition\n      return (0, _object.get)(this, 'accounts.0.data.length') * colsPerGroup;\n    }),\n    totals: (0, _object.computed)('accounts.@each.data', 'totalsRow', function () {\n      const accounts = (0, _object.get)(this, 'accounts');\n      const totals = [];\n\n      // If the user doesn't want a totals row, don't bother computing it\n      if (!(0, _object.get)(this, 'totalsRow')) {\n        return;\n      }\n      accounts.forEach(account => {\n        // The sum of the P+L is Cr - Dr. The sum of the BS is Dr - Cr. We need to invert\n        // the values of BS accounts to get the correct totals.\n        const plBs = (0, _object.get)(account, 'category') === 'balance-sheet' ? -1 : 1;\n        (0, _object.get)(account, 'data').forEach((value, i) => {\n          const drCr = (0, _object.get)(account, 'debitCredit') === 'DEBIT' ? -1 : 1;\n          if (!totals[i]) {\n            totals[i] = {\n              month: null,\n              ytd: null,\n              continuous: null\n            };\n          }\n          if ((0, _object.get)(account, 'periodic')) {\n            totals[i].month = totals[i].month || 0;\n            totals[i].month += value.month * drCr * plBs || 0;\n            totals[i].ytd = totals[i].ytd || 0;\n            totals[i].ytd += value.ytd * drCr * plBs || 0;\n          } else {\n            totals[i].continuous = totals[i].continuous || 0;\n            totals[i].continuous += value.month * drCr * plBs || 0;\n          }\n          (0, _object.set)(totals, 'print', true);\n        });\n      });\n      return totals;\n    }),\n    actions: {\n      toggleShowChildren(account) {\n        this.toggleShowChildren(account);\n      },\n      toggleShowBreakdown(...args) {\n        this.toggleShowBreakdown(...args);\n      },\n      toggleFilter(account) {\n        (0, _object.set)(account, 'print', !(0, _object.get)(account, 'print'));\n      }\n    }\n  }));\n});","define(\"portal/components/format-duration-with-unit\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"portal/utils/duration-input\", \"@ember/template-factory\"], function (_exports, _component, _component2, _durationInput, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"portal/utils/duration-input\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <span data-test-format-duration-with-unit>\n    {{this.valueWithUnit}}\n  </span>\n  */\n  {\n    \"id\": \"L4/YhYEz\",\n    \"block\": \"[[[10,1],[14,\\\"data-test-format-duration-with-unit\\\",\\\"\\\"],[12],[1,\\\"\\\\n  \\\"],[1,[30,0,[\\\"valueWithUnit\\\"]]],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"span\\\"]]\",\n    \"moduleName\": \"portal/components/format-duration-with-unit.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component2.default {\n    get value() {\n      return this.args.value || 0;\n    }\n    get valueWithUnit() {\n      var suffix = this.args.suffix || '';\n      var prefix = this.args.prefix || '';\n      return this.value ? `${prefix}${(0, _durationInput.formatDuration)([this.value])}${suffix}` : this.args.emptyPlaceholder;\n    }\n  });\n});","define(\"portal/components/formatted-input\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@glimmer/tracking\", \"portal/helpers/format-number\", \"@ember/runloop\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _tracking, _formatNumber, _runloop, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"portal/helpers/format-number\",0,\"@ember/runloop\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <Input\n    @type='text'\n    disabled={{@disabled}}\n    class='{{@class}}\n      formatted-input\n      {{this.formatClassName}}\n      {{if this.doWarnForZero \"formatted-input--zero\"}}\n      {{if this.wasUpdated \"formatted-input--updated\"}}'\n    @value={{this.currencyValue}}\n    {{on 'focusin' this.handleFocusIn}}\n    {{on 'focusout' this.handleFocusOut}}\n    {{on 'input' this.handleInput}}\n    ...attributes\n  />\n  */\n  {\n    \"id\": \"3oTgj74t\",\n    \"block\": \"[[[8,[39,0],[[16,\\\"disabled\\\",[30,1]],[16,0,[29,[[30,2],\\\"\\\\n    formatted-input\\\\n    \\\",[30,0,[\\\"formatClassName\\\"]],\\\"\\\\n    \\\",[52,[30,0,[\\\"doWarnForZero\\\"]],\\\"formatted-input--zero\\\"],\\\"\\\\n    \\\",[52,[30,0,[\\\"wasUpdated\\\"]],\\\"formatted-input--updated\\\"]]]],[17,3],[4,[38,2],[\\\"focusin\\\",[30,0,[\\\"handleFocusIn\\\"]]],null],[4,[38,2],[\\\"focusout\\\",[30,0,[\\\"handleFocusOut\\\"]]],null],[4,[38,2],[\\\"input\\\",[30,0,[\\\"handleInput\\\"]]],null]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"currencyValue\\\"]]]],null]],[\\\"@disabled\\\",\\\"@class\\\",\\\"&attrs\\\"],false,[\\\"input\\\",\\\"if\\\",\\\"on\\\"]]\",\n    \"moduleName\": \"portal/components/formatted-input.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    get currencyValue() {\n      const {\n        number,\n        formatterOptions\n      } = this.args;\n      if (!this.isUpdating) return this.formatter(number, formatterOptions);\n      return this.value;\n    }\n    set currencyValue(val) {\n      this.value = val;\n      return this.value;\n    }\n    get format() {\n      return this.args.format ?? 'number';\n    }\n    get formatter() {\n      return (value, options) => (0, _formatNumber.formatNumber)([this.format, value], options);\n    }\n    get parser() {\n      return this.args.parser ?? _formatNumber.parseNumber;\n    }\n    get editRawValue() {\n      return ['number', 'currency'].includes(this.format.toLowerCase());\n    }\n    get formatClassName() {\n      return `formatted-input--${this.format.toLowerCase()}`;\n    }\n    get isZero() {\n      return this.args.number === 0;\n    }\n    get doWarnForZero() {\n      return this.args.warnOnZero && this.isZero;\n    }\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"wasUpdated\", _descriptor, this);\n      _initializerDefineProperty(this, \"value\", _descriptor2, this);\n      _initializerDefineProperty(this, \"isUpdating\", _descriptor3, this);\n      this.displayFormattedValue();\n    }\n    handleInput(event) {\n      this.value = event.target.value;\n    }\n    displayFormattedValue() {\n      const {\n        number,\n        formatterOptions\n      } = this.args;\n      (0, _runloop.next)(() => {\n        if (!this.isDestroying) {\n          this.value = this.formatter(number, formatterOptions);\n        }\n      });\n    }\n    handleFocusIn(event) {\n      this.isUpdating = true;\n      if (this.editRawValue) {\n        this.value = this.args.number;\n      }\n      if (this.editRawValue || this.args.selectOnFocus) {\n        (0, _runloop.next)(() => {\n          const input = event.target;\n          input.select();\n        });\n      }\n    }\n    handleFocusOut() {\n      let value = this.value;\n      if (this.format === 'percentage' && !String(value).includes('%') && !Number.isNaN(Number(value))) {\n        value = value / 100;\n      }\n      const current = this.args.number;\n      const parsed = this.parser(value, this.args.parserOptions);\n      const number = isNaN(parsed) ? this.args.defaultValue : parsed;\n      if (number === current) {\n        this.displayFormattedValue();\n      } else if (typeof this.args.update === 'function') {\n        this.args.update(number);\n      } else {\n        this.value = this.formatter(number, this.args.formatterOptions);\n      }\n      this.wasUpdated = true;\n      this.isUpdating = false;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"wasUpdated\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"value\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"isUpdating\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"handleInput\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleInput\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"displayFormattedValue\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"displayFormattedValue\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleFocusIn\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleFocusIn\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleFocusOut\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleFocusOut\"), _class.prototype), _class));\n});","define(\"portal/components/from-elsewhere\", [\"exports\", \"ember-elsewhere/components/from-elsewhere\"], function (_exports, _fromElsewhere) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _fromElsewhere.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-elsewhere/components/from-elsewhere\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/gl-importers/api\", [\"exports\", \"@ember/component\", \"@ember/template-factory\"], function (_exports, _component, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <p>\n    Connected Applications will upload data into the financial portal\n    automatically.\n  </p>\n  */\n  {\n    \"id\": \"vLpGMut9\",\n    \"block\": \"[[[10,2],[12],[1,\\\"\\\\n  Connected Applications will upload data into the financial portal\\\\n  automatically.\\\\n\\\"],[13]],[],false,[\\\"p\\\"]]\",\n    \"moduleName\": \"portal/components/gl-importers/api.hbs\",\n    \"isStrictMode\": false\n  });\n\n  // for this stack to work you need to extend ember component, not glimmer\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component.default {});\n});","define(\"portal/components/gl-importers/banklink\", [\"exports\", \"@ember/component\", \"portal/components/basic-importer\", \"portal/utils/gl-import-parsers/banklink\", \"@ember/template-factory\"], function (_exports, _component, _basicImporter, _banklink, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/components/basic-importer\",0,\"portal/utils/gl-import-parsers/banklink\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <p>To import from BankLink, please export your data in CSV format and upload it\n    here.</p>\n  \n  <div class='d-flex align-items-center justify-content-center'>\n    <label\n      for='input-button'\n      class='file-input-button button button--secondary button--spaced'\n    >\n      Choose file…\n    </label>\n    <FileInputs::Csv\n      @id='input-button'\n      @file={{this.importData}}\n      @class='file-input-button__input'\n      @accept='.csv,.txt'\n    />\n  \n    <button\n      class='button button--add'\n      disabled={{this.hasNotSelectedFile}}\n      type='button'\n      {{action 'import' this.importData}}\n    >Import</button>\n  </div>\n  */\n  {\n    \"id\": \"1lVlj5wF\",\n    \"block\": \"[[[10,2],[12],[1,\\\"To import from BankLink, please export your data in CSV format and upload it\\\\n  here.\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,0],[14,0,\\\"d-flex align-items-center justify-content-center\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"input-button\\\"],[14,0,\\\"file-input-button button button--secondary button--spaced\\\"],[12],[1,\\\"\\\\n    Choose file…\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,3],null,[[\\\"@id\\\",\\\"@file\\\",\\\"@class\\\",\\\"@accept\\\"],[\\\"input-button\\\",[30,0,[\\\"importData\\\"]],\\\"file-input-button__input\\\",\\\".csv,.txt\\\"]],null],[1,\\\"\\\\n\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add\\\"],[16,\\\"disabled\\\",[30,0,[\\\"hasNotSelectedFile\\\"]]],[24,4,\\\"button\\\"],[4,[38,5],[[30,0],\\\"import\\\",[30,0,[\\\"importData\\\"]]],null],[12],[1,\\\"Import\\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"p\\\",\\\"div\\\",\\\"label\\\",\\\"file-inputs/csv\\\",\\\"button\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"portal/components/gl-importers/banklink.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _basicImporter.default.extend({\n    parser: _banklink.default\n  }));\n});","define(\"portal/components/gl-importers/eaccounts\", [\"exports\", \"@ember/component\", \"@ember/template-factory\"], function (_exports, _component, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <p>As an eAccounts user, you don’t have to worry about manual imports. All of\n    your data is automatically imported and updated for you each night.</p>\n  */\n  {\n    \"id\": \"UwmlXasn\",\n    \"block\": \"[[[10,2],[12],[1,\\\"As an eAccounts user, you don’t have to worry about manual imports. All of\\\\n  your data is automatically imported and updated for you each night.\\\"],[13]],[],false,[\\\"p\\\"]]\",\n    \"moduleName\": \"portal/components/gl-importers/eaccounts.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend());\n});","define(\"portal/components/gl-importers/empower\", [\"exports\", \"@ember/component\", \"portal/components/basic-importer\", \"portal/utils/gl-import-parsers/empower\", \"@ember/template-factory\"], function (_exports, _component, _basicImporter, _empower, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/components/basic-importer\",0,\"portal/utils/gl-import-parsers/empower\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <p>To import from Empower, please export your data in CSV format and upload it\n    here.</p>\n  \n  <div class='d-flex align-items-center justify-content-center'>\n    <label\n      for='input-button'\n      class='file-input-button button button--secondary button--spaced'\n    >\n      Choose file…\n    </label>\n    <FileInputs::Csv\n      @id='input-button'\n      @file={{this.importData}}\n      @class='file-input-button__input'\n      @accept='.csv,.txt'\n    />\n  \n    <button\n      class='button button--add'\n      disabled={{this.hasNotSelectedFile}}\n      type='button'\n      {{action 'import' this.importData}}\n    >Import</button>\n  </div>\n  */\n  {\n    \"id\": \"CPwRen/R\",\n    \"block\": \"[[[10,2],[12],[1,\\\"To import from Empower, please export your data in CSV format and upload it\\\\n  here.\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,0],[14,0,\\\"d-flex align-items-center justify-content-center\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"input-button\\\"],[14,0,\\\"file-input-button button button--secondary button--spaced\\\"],[12],[1,\\\"\\\\n    Choose file…\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,3],null,[[\\\"@id\\\",\\\"@file\\\",\\\"@class\\\",\\\"@accept\\\"],[\\\"input-button\\\",[30,0,[\\\"importData\\\"]],\\\"file-input-button__input\\\",\\\".csv,.txt\\\"]],null],[1,\\\"\\\\n\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add\\\"],[16,\\\"disabled\\\",[30,0,[\\\"hasNotSelectedFile\\\"]]],[24,4,\\\"button\\\"],[4,[38,5],[[30,0],\\\"import\\\",[30,0,[\\\"importData\\\"]]],null],[12],[1,\\\"Import\\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"p\\\",\\\"div\\\",\\\"label\\\",\\\"file-inputs/csv\\\",\\\"button\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"portal/components/gl-importers/empower.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _basicImporter.default.extend({\n    parser: _empower.default\n  }));\n});","define(\"portal/components/gl-importers/frameworks\", [\"exports\", \"@ember/component\", \"portal/components/basic-importer\", \"portal/utils/gl-import-parsers/frameworks\", \"@ember/template-factory\"], function (_exports, _component, _basicImporter, _frameworks, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/components/basic-importer\",0,\"portal/utils/gl-import-parsers/frameworks\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <p>To import from Frameworks, please export your data in CSV format and upload\n    it here.</p>\n  \n  <div class='d-flex align-items-center justify-content-center'>\n    <label\n      for='input-button'\n      class='file-input-button button button--secondary button--spaced'\n    >\n      Choose file…\n    </label>\n    <FileInputs::Csv\n      @id='input-button'\n      @file={{this.importData}}\n      @class='file-input-button__input'\n      @accept='.csv,.txt'\n    />\n  \n    <button\n      class='button button--add'\n      disabled={{this.hasNotSelectedFile}}\n      type='button'\n      {{action 'import' this.importData}}\n    >Import</button>\n  </div>\n  */\n  {\n    \"id\": \"fM9gs4gA\",\n    \"block\": \"[[[10,2],[12],[1,\\\"To import from Frameworks, please export your data in CSV format and upload\\\\n  it here.\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,0],[14,0,\\\"d-flex align-items-center justify-content-center\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"input-button\\\"],[14,0,\\\"file-input-button button button--secondary button--spaced\\\"],[12],[1,\\\"\\\\n    Choose file…\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,3],null,[[\\\"@id\\\",\\\"@file\\\",\\\"@class\\\",\\\"@accept\\\"],[\\\"input-button\\\",[30,0,[\\\"importData\\\"]],\\\"file-input-button__input\\\",\\\".csv,.txt\\\"]],null],[1,\\\"\\\\n\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add\\\"],[16,\\\"disabled\\\",[30,0,[\\\"hasNotSelectedFile\\\"]]],[24,4,\\\"button\\\"],[4,[38,5],[[30,0],\\\"import\\\",[30,0,[\\\"importData\\\"]]],null],[12],[1,\\\"Import\\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"p\\\",\\\"div\\\",\\\"label\\\",\\\"file-inputs/csv\\\",\\\"button\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"portal/components/gl-importers/frameworks.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _basicImporter.default.extend({\n    parser: _frameworks.default\n  }));\n});","define(\"portal/components/gl-importers/gj-gardner\", [\"exports\", \"@ember/component\", \"portal/components/basic-importer\", \"portal/utils/gl-import-parsers/gj-gardner\", \"@ember/template-factory\"], function (_exports, _component, _basicImporter, _gjGardner, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/components/basic-importer\",0,\"portal/utils/gl-import-parsers/gj-gardner\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='d-flex align-items-center justify-content-center'>\n    <p>Please select a P+L or Balance Sheet report to import.</p>\n  \n    <label\n      for='input-button'\n      class='file-input-button button button--secondary button--spaced'\n    >\n      Choose file…\n    </label>\n    <FileInputs::Csv\n      @id='input-button'\n      @file={{this.importData}}\n      @class='file-input-button__input'\n      @accept='.csv,.txt'\n    />\n  \n    <button\n      class='button button--add'\n      disabled={{this.hasNotSelectedFile}}\n      type='button'\n      {{action 'import' this.importData}}\n    >Import</button>\n  </div>\n  */\n  {\n    \"id\": \"guiBvNvF\",\n    \"block\": \"[[[10,0],[14,0,\\\"d-flex align-items-center justify-content-center\\\"],[12],[1,\\\"\\\\n  \\\"],[10,2],[12],[1,\\\"Please select a P+L or Balance Sheet report to import.\\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"input-button\\\"],[14,0,\\\"file-input-button button button--secondary button--spaced\\\"],[12],[1,\\\"\\\\n    Choose file…\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,3],null,[[\\\"@id\\\",\\\"@file\\\",\\\"@class\\\",\\\"@accept\\\"],[\\\"input-button\\\",[30,0,[\\\"importData\\\"]],\\\"file-input-button__input\\\",\\\".csv,.txt\\\"]],null],[1,\\\"\\\\n\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add\\\"],[16,\\\"disabled\\\",[30,0,[\\\"hasNotSelectedFile\\\"]]],[24,4,\\\"button\\\"],[4,[38,5],[[30,0],\\\"import\\\",[30,0,[\\\"importData\\\"]]],null],[12],[1,\\\"Import\\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"div\\\",\\\"p\\\",\\\"label\\\",\\\"file-inputs/csv\\\",\\\"button\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"portal/components/gl-importers/gj-gardner.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _basicImporter.default.extend({\n    parser: _gjGardner.default\n  }));\n});","define(\"portal/components/gl-importers/itm-manual\", [\"exports\", \"@ember/component\", \"portal/components/basic-importer\", \"portal/utils/gl-import-parsers/itm-manual\", \"@ember/template-factory\"], function (_exports, _component, _basicImporter, _itmManual, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/components/basic-importer\",0,\"portal/utils/gl-import-parsers/itm-manual\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <p>To import from ITM Manual, please export your data in CSV format and upload\n    it here.</p>\n  \n  <div class='text-center d-flex align-items-center justify-content-center'>\n    <label\n      for='input-button'\n      class='file-input-button button button--secondary button--spaced'\n    >\n      Choose file…\n    </label>\n    <FileInputs::Csv\n      @id='input-button'\n      @file={{this.importData}}\n      @class='file-input-button__input'\n      @accept='.csv,.txt'\n    />\n  \n    <button\n      class='button button--add'\n      disabled={{this.hasNotSelectedFile}}\n      type='button'\n      {{action 'import' this.importData}}\n    >\n      Import\n    </button>\n  </div>\n  */\n  {\n    \"id\": \"KxvsQhU/\",\n    \"block\": \"[[[10,2],[12],[1,\\\"To import from ITM Manual, please export your data in CSV format and upload\\\\n  it here.\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,0],[14,0,\\\"text-center d-flex align-items-center justify-content-center\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"input-button\\\"],[14,0,\\\"file-input-button button button--secondary button--spaced\\\"],[12],[1,\\\"\\\\n    Choose file…\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,3],null,[[\\\"@id\\\",\\\"@file\\\",\\\"@class\\\",\\\"@accept\\\"],[\\\"input-button\\\",[30,0,[\\\"importData\\\"]],\\\"file-input-button__input\\\",\\\".csv,.txt\\\"]],null],[1,\\\"\\\\n\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add\\\"],[16,\\\"disabled\\\",[30,0,[\\\"hasNotSelectedFile\\\"]]],[24,4,\\\"button\\\"],[4,[38,5],[[30,0],\\\"import\\\",[30,0,[\\\"importData\\\"]]],null],[12],[1,\\\"\\\\n    Import\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"p\\\",\\\"div\\\",\\\"label\\\",\\\"file-inputs/csv\\\",\\\"button\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"portal/components/gl-importers/itm-manual.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _basicImporter.default.extend({\n    parser: _itmManual.default\n  }));\n});","define(\"portal/components/gl-importers/maxim\", [\"exports\", \"@ember/component\", \"portal/components/basic-importer\", \"portal/utils/gl-import-parsers/maxim\", \"@ember/template-factory\"], function (_exports, _component, _basicImporter, _maxim, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/components/basic-importer\",0,\"portal/utils/gl-import-parsers/maxim\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <p>To import from Maxim, please export your data in CSV format and upload it\n    here.</p>\n  \n  <div class='d-flex align-items-center justify-content-center'>\n    <label\n      for='input-button'\n      class='file-input-button button button--secondary button--spaced'\n    >\n      Choose file…\n    </label>\n    <FileInputs::Csv\n      @id='input-button'\n      @file={{this.importData}}\n      @class='file-input-button__input'\n      @accept='.csv,.txt'\n    />\n  \n    <button\n      class='button button--add'\n      disabled={{this.hasNotSelectedFile}}\n      type='button'\n      {{action 'import' this.importData}}\n    >Import</button>\n  </div>\n  */\n  {\n    \"id\": \"lT+Bc8Hw\",\n    \"block\": \"[[[10,2],[12],[1,\\\"To import from Maxim, please export your data in CSV format and upload it\\\\n  here.\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,0],[14,0,\\\"d-flex align-items-center justify-content-center\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"input-button\\\"],[14,0,\\\"file-input-button button button--secondary button--spaced\\\"],[12],[1,\\\"\\\\n    Choose file…\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,3],null,[[\\\"@id\\\",\\\"@file\\\",\\\"@class\\\",\\\"@accept\\\"],[\\\"input-button\\\",[30,0,[\\\"importData\\\"]],\\\"file-input-button__input\\\",\\\".csv,.txt\\\"]],null],[1,\\\"\\\\n\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add\\\"],[16,\\\"disabled\\\",[30,0,[\\\"hasNotSelectedFile\\\"]]],[24,4,\\\"button\\\"],[4,[38,5],[[30,0],\\\"import\\\",[30,0,[\\\"importData\\\"]]],null],[12],[1,\\\"Import\\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"p\\\",\\\"div\\\",\\\"label\\\",\\\"file-inputs/csv\\\",\\\"button\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"portal/components/gl-importers/maxim.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _basicImporter.default.extend({\n    parser: _maxim.default\n  }));\n});","define(\"portal/components/gl-importers/myob-ao\", [\"exports\", \"@ember/component\", \"portal/components/basic-importer\", \"portal/utils/gl-import-parsers/myob-ao\", \"@ember/template-factory\"], function (_exports, _component, _basicImporter, _myobAo, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/components/basic-importer\",0,\"portal/utils/gl-import-parsers/myob-ao\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <p>To import from MYOB AO, please export your data in CSV format and upload it\n    here.</p>\n  \n  <div class='d-flex align-items-center justify-content-center'>\n    <label\n      for='input-button'\n      class='file-input-button button button--secondary button--spaced'\n    >\n      Choose file…\n    </label>\n    <FileInputs::Csv\n      @id='input-button'\n      @file={{this.importData}}\n      @class='file-input-button__input'\n      @accept='.csv,.txt'\n    />\n  \n    <button\n      class='button button--add'\n      disabled={{this.hasNotSelectedFile}}\n      type='button'\n      {{action 'import' this.importData}}\n    >Import</button>\n  </div>\n  */\n  {\n    \"id\": \"0ZnVvfW0\",\n    \"block\": \"[[[10,2],[12],[1,\\\"To import from MYOB AO, please export your data in CSV format and upload it\\\\n  here.\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,0],[14,0,\\\"d-flex align-items-center justify-content-center\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"input-button\\\"],[14,0,\\\"file-input-button button button--secondary button--spaced\\\"],[12],[1,\\\"\\\\n    Choose file…\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,3],null,[[\\\"@id\\\",\\\"@file\\\",\\\"@class\\\",\\\"@accept\\\"],[\\\"input-button\\\",[30,0,[\\\"importData\\\"]],\\\"file-input-button__input\\\",\\\".csv,.txt\\\"]],null],[1,\\\"\\\\n\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add\\\"],[16,\\\"disabled\\\",[30,0,[\\\"hasNotSelectedFile\\\"]]],[24,4,\\\"button\\\"],[4,[38,5],[[30,0],\\\"import\\\",[30,0,[\\\"importData\\\"]]],null],[12],[1,\\\"Import\\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"p\\\",\\\"div\\\",\\\"label\\\",\\\"file-inputs/csv\\\",\\\"button\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"portal/components/gl-importers/myob-ao.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _basicImporter.default.extend({\n    parser: _myobAo.default\n  }));\n});","define(\"portal/components/gl-importers/myob\", [\"exports\", \"@ember/component\", \"portal/components/basic-importer\", \"portal/utils/gl-import-parsers/myob\", \"@ember/template-factory\"], function (_exports, _component, _basicImporter, _myob, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/components/basic-importer\",0,\"portal/utils/gl-import-parsers/myob\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <p>To import from MYOB, please export a General Ledger Summary in CSV format and\n    upload it here.</p>\n  \n  <div class='d-flex align-items-center justify-content-center'>\n    <label\n      for='input-button'\n      class='file-input-button button button--secondary button--spaced'\n    >\n      Choose file…\n    </label>\n    <FileInputs::Csv\n      @id='input-button'\n      @file={{this.importData}}\n      @class='file-input-button__input'\n      @accept='.csv,.txt'\n    />\n  \n    <button\n      class='button button--add'\n      disabled={{this.hasNotSelectedFile}}\n      type='button'\n      {{action 'import' this.importData}}\n    >Import</button>\n  </div>\n  */\n  {\n    \"id\": \"vm2q6+03\",\n    \"block\": \"[[[10,2],[12],[1,\\\"To import from MYOB, please export a General Ledger Summary in CSV format and\\\\n  upload it here.\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,0],[14,0,\\\"d-flex align-items-center justify-content-center\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"input-button\\\"],[14,0,\\\"file-input-button button button--secondary button--spaced\\\"],[12],[1,\\\"\\\\n    Choose file…\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,3],null,[[\\\"@id\\\",\\\"@file\\\",\\\"@class\\\",\\\"@accept\\\"],[\\\"input-button\\\",[30,0,[\\\"importData\\\"]],\\\"file-input-button__input\\\",\\\".csv,.txt\\\"]],null],[1,\\\"\\\\n\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add\\\"],[16,\\\"disabled\\\",[30,0,[\\\"hasNotSelectedFile\\\"]]],[24,4,\\\"button\\\"],[4,[38,5],[[30,0],\\\"import\\\",[30,0,[\\\"importData\\\"]]],null],[12],[1,\\\"Import\\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"p\\\",\\\"div\\\",\\\"label\\\",\\\"file-inputs/csv\\\",\\\"button\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"portal/components/gl-importers/myob.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _basicImporter.default.extend({\n    parser: _myob.default\n  }));\n});","define(\"portal/components/gl-importers/prostix\", [\"exports\", \"@ember/component\", \"portal/components/basic-importer\", \"portal/utils/gl-import-parsers/prostix\", \"@ember/template-factory\"], function (_exports, _component, _basicImporter, _prostix, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/components/basic-importer\",0,\"portal/utils/gl-import-parsers/prostix\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <p>To import from ProStix, please export your data in CSV format and upload it\n    here.</p>\n  \n  <div class='d-flex align-items-center justify-content-center'>\n    <label\n      for='input-button'\n      class='file-input-button button button--secondary button--spaced'\n    >\n      Choose file…\n    </label>\n    <FileInputs::Csv\n      @id='input-button'\n      @file={{this.importData}}\n      @class='file-input-button__input'\n      @accept='.csv,.txt'\n    />\n  \n    <button\n      class='button button--add'\n      disabled={{this.hasNotSelectedFile}}\n      type='button'\n      {{action 'import' this.importData}}\n    >Import</button>\n  </div>\n  */\n  {\n    \"id\": \"ZeSSC3yf\",\n    \"block\": \"[[[10,2],[12],[1,\\\"To import from ProStix, please export your data in CSV format and upload it\\\\n  here.\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,0],[14,0,\\\"d-flex align-items-center justify-content-center\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"input-button\\\"],[14,0,\\\"file-input-button button button--secondary button--spaced\\\"],[12],[1,\\\"\\\\n    Choose file…\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,3],null,[[\\\"@id\\\",\\\"@file\\\",\\\"@class\\\",\\\"@accept\\\"],[\\\"input-button\\\",[30,0,[\\\"importData\\\"]],\\\"file-input-button__input\\\",\\\".csv,.txt\\\"]],null],[1,\\\"\\\\n\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add\\\"],[16,\\\"disabled\\\",[30,0,[\\\"hasNotSelectedFile\\\"]]],[24,4,\\\"button\\\"],[4,[38,5],[[30,0],\\\"import\\\",[30,0,[\\\"importData\\\"]]],null],[12],[1,\\\"Import\\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"p\\\",\\\"div\\\",\\\"label\\\",\\\"file-inputs/csv\\\",\\\"button\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"portal/components/gl-importers/prostix.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _basicImporter.default.extend({\n    parser: _prostix.default\n  }));\n});","define(\"portal/components/gl-importers/rees\", [\"exports\", \"@ember/component\", \"@ember/object/computed\", \"@ember/service\", \"@ember/object\", \"portal/utils/gl-import-parsers/rees\", \"jquery\", \"@ember/template-factory\"], function (_exports, _component, _computed, _service, _object, _rees, _jquery, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object/computed\",0,\"@ember/component\",0,\"@ember/service\",0,\"@ember/object\",0,\"portal/utils/gl-import-parsers/rees\",0,\"jquery\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <p>To import from Rees, please export a Statement of Financial Position (report\n    7.11.6) in CSV or text format and upload it here.</p>\n  <p>If your report includes data relating to multiple businesses, you will be\n    able to filter it down to just the codes that you need after importing.</p>\n  \n  <div class='d-flex align-items-center justify-content-center'>\n    <label\n      for='input-button'\n      class='file-input-button button button--secondary button--spaced'\n    >\n      Choose file…\n    </label>\n    <FileInputs::Text\n      @id='input-button'\n      @file={{this.importData}}\n      @class='file-input-button__input'\n      @accept='.csv,.txt'\n    />\n  \n    <button\n      class='button button--add button--spaced'\n      disabled={{this.hasNotSelectedFile}}\n      type='button'\n      {{action 'import' this.importData}}\n    >Import</button>\n  </div>\n  */\n  {\n    \"id\": \"IwWbsLeq\",\n    \"block\": \"[[[10,2],[12],[1,\\\"To import from Rees, please export a Statement of Financial Position (report\\\\n  7.11.6) in CSV or text format and upload it here.\\\"],[13],[1,\\\"\\\\n\\\"],[10,2],[12],[1,\\\"If your report includes data relating to multiple businesses, you will be\\\\n  able to filter it down to just the codes that you need after importing.\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,0],[14,0,\\\"d-flex align-items-center justify-content-center\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"input-button\\\"],[14,0,\\\"file-input-button button button--secondary button--spaced\\\"],[12],[1,\\\"\\\\n    Choose file…\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,3],null,[[\\\"@id\\\",\\\"@file\\\",\\\"@class\\\",\\\"@accept\\\"],[\\\"input-button\\\",[30,0,[\\\"importData\\\"]],\\\"file-input-button__input\\\",\\\".csv,.txt\\\"]],null],[1,\\\"\\\\n\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add button--spaced\\\"],[16,\\\"disabled\\\",[30,0,[\\\"hasNotSelectedFile\\\"]]],[24,4,\\\"button\\\"],[4,[38,5],[[30,0],\\\"import\\\",[30,0,[\\\"importData\\\"]]],null],[12],[1,\\\"Import\\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"p\\\",\\\"div\\\",\\\"label\\\",\\\"file-inputs/text\\\",\\\"button\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"portal/components/gl-importers/rees.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    notifications: (0, _service.inject)(),\n    hasSelectedFile: (0, _computed.notEmpty)('importData'),\n    hasNotSelectedFile: (0, _computed.not)('hasSelectedFile'),\n    hasImported: false,\n    actions: {\n      import(importData) {\n        const oldError = (0, _object.get)(this, 'error');\n        if (oldError) {\n          (0, _object.get)(this, 'notifications').clear(oldError);\n        }\n\n        // Parse the response\n        const report = (0, _rees.default)(importData);\n        if ((0, _object.get)(report, 'errors.length')) {\n          this.send('parsingError', report);\n          return;\n        }\n\n        // All is well, import\n        this.import(report);\n        (0, _object.set)(this, 'hasImported', true);\n        const $fileInput = (0, _jquery.default)(this.element).find('input[type=file]');\n        const $fileInputClone = $fileInput.val('').clone(true);\n        $fileInput.replaceWith($fileInputClone);\n        (0, _object.set)(this, 'importData', null);\n      },\n      parsingError: function () {\n        const error = (0, _object.get)(this, 'notifications').error(\"The file you selected didn't have the structure we were expecting. Please check the guides and try again.\");\n        (0, _object.set)(this, 'error', error);\n      }\n    }\n  }));\n});","define(\"portal/components/gl-importers/xero-api\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@ember/service\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _service, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/component\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.xeroIntegration.ready}}\n    <p>\n      Xero balance data is automatically brought in regularly. You can also choose\n      to bring it in yourself by clicking the import button.\n    </p>\n    <button\n      type='button'\n      class='btn btn-primary'\n      disabled={{this.getXeroBalances.isRunning}}\n      {{on 'click' (perform this.getXeroBalances)}}\n    >\n      {{#if this.getXeroBalances.isRunning}}\n        Importing&hellip;\n      {{else}}\n        Import balances from Xero\n      {{/if}}\n    </button>\n  {{else}}\n    To import balances using Xero, first\n    <LinkTo @route='entity.settings.integrations'>connect your Xero account</LinkTo>.\n  {{/if}}\n  */\n  {\n    \"id\": \"NNOxMJSz\",\n    \"block\": \"[[[41,[30,0,[\\\"xeroIntegration\\\",\\\"ready\\\"]],[[[1,\\\"  \\\"],[10,2],[12],[1,\\\"\\\\n    Xero balance data is automatically brought in regularly. You can also choose\\\\n    to bring it in yourself by clicking the import button.\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"getXeroBalances\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,3],[\\\"click\\\",[28,[37,4],[[30,0,[\\\"getXeroBalances\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"getXeroBalances\\\",\\\"isRunning\\\"]],[[[1,\\\"      Importing…\\\\n\\\"]],[]],[[[1,\\\"      Import balances from Xero\\\\n\\\"]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  To import balances using Xero, first\\\\n  \\\"],[8,[39,5],null,[[\\\"@route\\\"],[\\\"entity.settings.integrations\\\"]],[[\\\"default\\\"],[[[[1,\\\"connect your Xero account\\\"]],[]]]]],[1,\\\".\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"p\\\",\\\"button\\\",\\\"on\\\",\\\"perform\\\",\\\"link-to\\\"]]\",\n    \"moduleName\": \"portal/components/gl-importers/xero-api.hbs\",\n    \"isStrictMode\": false\n  });\n\n  // for this stack to work you need to extend ember component, not glimmer\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor2, this);\n      _initializerDefineProperty(this, \"xeroIntegration\", _descriptor3, this);\n      _initializerDefineProperty(this, \"financialPortalPeriodSelector\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n      _defineProperty(this, \"getXeroBalances\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.xeroIntegration.getXeroBalances({\n              entityId: this.sessionData.entity.id,\n              period: this.financialPortalPeriodSelector.period\n            });\n            yield Promise.all([this.store.simpleQuery('account-map', {\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('import', {\n              entity: this.sessionData.entity.id,\n              date: this.financialPortalPeriodSelector.date.toISOString()\n            })]);\n\n            // don't ever do this again\n            (0, _object.set)(this, 'hasImported', true);\n            (0, _object.set)(this, 'importData', null);\n            this.notifications.success('Imported balances from Xero');\n          } catch (error) {\n            this.notifications.error({\n              error,\n              message: 'Something went wrong getting balances'\n            });\n          }\n        }\n      }), null, \"getXeroBalances\", null));\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"xeroIntegration\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"financialPortalPeriodSelector\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class));\n});","define(\"portal/components/gl-importers/xero-csv\", [\"exports\", \"@ember/component\", \"portal/components/basic-importer\", \"portal/utils/gl-import-parsers/xero-csv\", \"@ember/template-factory\"], function (_exports, _component, _basicImporter, _xeroCsv, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/components/basic-importer\",0,\"portal/utils/gl-import-parsers/xero-csv\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <p>To import from Xero, please export your data in CSV format and upload it\n    here.</p>\n  \n  <div class='d-flex align-items-center justify-content-center'>\n    <label\n      for='input-button'\n      class='file-input-button button button--secondary button--spaced'\n    >\n      Choose file…\n    </label>\n    <FileInputs::Csv\n      @id='input-button'\n      @file={{this.importData}}\n      @class='file-input-button__input'\n      @accept='.csv,.txt'\n    />\n  \n    <button\n      class='button button--add'\n      disabled={{this.hasNotSelectedFile}}\n      type='button'\n      {{action 'import' this.importData}}\n    >Import</button>\n  </div>\n  */\n  {\n    \"id\": \"x1T2zC+l\",\n    \"block\": \"[[[10,2],[12],[1,\\\"To import from Xero, please export your data in CSV format and upload it\\\\n  here.\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,0],[14,0,\\\"d-flex align-items-center justify-content-center\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"input-button\\\"],[14,0,\\\"file-input-button button button--secondary button--spaced\\\"],[12],[1,\\\"\\\\n    Choose file…\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,3],null,[[\\\"@id\\\",\\\"@file\\\",\\\"@class\\\",\\\"@accept\\\"],[\\\"input-button\\\",[30,0,[\\\"importData\\\"]],\\\"file-input-button__input\\\",\\\".csv,.txt\\\"]],null],[1,\\\"\\\\n\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add\\\"],[16,\\\"disabled\\\",[30,0,[\\\"hasNotSelectedFile\\\"]]],[24,4,\\\"button\\\"],[4,[38,5],[[30,0],\\\"import\\\",[30,0,[\\\"importData\\\"]]],null],[12],[1,\\\"Import\\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"p\\\",\\\"div\\\",\\\"label\\\",\\\"file-inputs/csv\\\",\\\"button\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"portal/components/gl-importers/xero-csv.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _basicImporter.default.extend({\n    parser: _xeroCsv.default\n  }));\n});","define(\"portal/components/google-map\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"portal/config/environment\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _environment, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"portal/config/environment\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='google-map' ...attributes>\n    {{#if (has-block)}}\n      <div\n        class='google-map__control google-map__control--pending'\n        {{did-insert this.registerControl 'TOP_LEFT'}}\n      >\n        {{yield}}\n      </div>\n    {{/if}}\n  \n    <div\n      class='google-map-container'\n      style='width: 100%; height: 400px;'\n      {{did-insert this.setupMap}}\n      {{did-update this.updateMap @lat @lng @radius}}\n    >\n    </div>\n  </div>\n  */\n  {\n    \"id\": \"Hc1fI6li\",\n    \"block\": \"[[[11,0],[24,0,\\\"google-map\\\"],[17,1],[12],[1,\\\"\\\\n\\\"],[41,[48,[30,5]],[[[1,\\\"    \\\"],[11,0],[24,0,\\\"google-map__control google-map__control--pending\\\"],[4,[38,3],[[30,0,[\\\"registerControl\\\"]],\\\"TOP_LEFT\\\"],null],[12],[1,\\\"\\\\n      \\\"],[18,5,null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[11,0],[24,0,\\\"google-map-container\\\"],[24,5,\\\"width: 100%; height: 400px;\\\"],[4,[38,3],[[30,0,[\\\"setupMap\\\"]]],null],[4,[38,5],[[30,0,[\\\"updateMap\\\"]],[30,2],[30,3],[30,4]],null],[12],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"&attrs\\\",\\\"@lat\\\",\\\"@lng\\\",\\\"@radius\\\",\\\"&default\\\"],false,[\\\"div\\\",\\\"if\\\",\\\"has-block\\\",\\\"did-insert\\\",\\\"yield\\\",\\\"did-update\\\"]]\",\n    \"moduleName\": \"portal/components/google-map.hbs\",\n    \"isStrictMode\": false\n  });\n  /* global google */\n  let GoogleMapComponent = _exports.default = (_class = class GoogleMapComponent extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"map\", null);\n      _defineProperty(this, \"marker\", null);\n      _defineProperty(this, \"circle\", null);\n      _defineProperty(this, \"mapListeners\", []);\n      _defineProperty(this, \"isProgrammaticUpdate\", false);\n      _defineProperty(this, \"pendingControls\", []);\n      _defineProperty(this, \"controlObservers\", []);\n    }\n    registerControl(element, position) {\n      this.pendingControls.push({\n        element,\n        position\n      });\n      this.attachControls();\n    }\n    attachControls() {\n      if (!this.map || !this.pendingControls.length) return;\n      const pending = this.pendingControls;\n      this.pendingControls = [];\n      pending.forEach(({\n        element,\n        position\n      }) => {\n        const wrapper = element.parentElement;\n        this.map.controls[google.maps.ControlPosition[position]].push(element);\n        const observer = new MutationObserver(() => {\n          if (element.parentElement === wrapper) return;\n          element.classList.remove('google-map__control--pending');\n          observer.disconnect();\n        });\n        observer.observe(wrapper, {\n          childList: true\n        });\n        this.controlObservers.push(observer);\n      });\n    }\n    disconnectControlObservers() {\n      this.controlObservers.forEach(observer => observer.disconnect());\n      this.controlObservers = [];\n    }\n    setupMap(element) {\n      if (typeof google === 'undefined') return;\n      const lat = this.args.lat ?? 0;\n      const lng = this.args.lng ?? 0;\n      const radius = this.args.radius ?? 0;\n      const minRadius = this.args.minRadius ?? 100;\n      const maxRadius = this.args.maxRadius ?? 250;\n      const hasLocation = this.args.lat != null && this.args.lng != null;\n      const position = {\n        lat,\n        lng\n      };\n      this.map = new google.maps.Map(element, {\n        center: position,\n        zoom: hasLocation ? 18 : 2,\n        clickableIcons: false,\n        mapTypeId: google.maps.MapTypeId.HYBRID,\n        mapId: _environment.default.googleMaps?.mapId,\n        mapTypeControl: true,\n        // the search control owns the top left corner\n        mapTypeControlOptions: {\n          position: google.maps.ControlPosition.TOP_RIGHT\n        }\n      });\n      this.attachControls();\n      const clickListener = this.map.addListener('click', event => {\n        this.handleMapClick(event);\n      });\n      this.mapListeners.push(clickListener);\n      this.marker = new google.maps.marker.AdvancedMarkerElement({\n        position: position,\n        map: hasLocation ? this.map : null\n      });\n      this.circle = new google.maps.Circle({\n        strokeColor: '#FF0000',\n        strokeOpacity: 0.8,\n        strokeWeight: 2,\n        fillColor: '#FF0000',\n        fillOpacity: 0.35,\n        map: hasLocation && radius > 0 ? this.map : null,\n        center: position,\n        radius: radius,\n        clickable: false,\n        editable: true\n      });\n\n      // radius listener\n      const radiusListener = this.circle.addListener('radius_changed', () => {\n        if (this.isProgrammaticUpdate) return;\n        let newRadius = Math.round(this.circle.getRadius()); // round to int\n        let isClamped = false;\n        if (newRadius < minRadius) {\n          newRadius = minRadius;\n          isClamped = true;\n        } else if (newRadius > maxRadius) {\n          newRadius = maxRadius;\n          isClamped = true;\n        }\n        if (isClamped) {\n          this.isProgrammaticUpdate = true;\n          this.circle.setRadius(newRadius);\n          this.isProgrammaticUpdate = false;\n        }\n        if (this.args.onRadiusChange) {\n          this.args.onRadiusChange(newRadius);\n        }\n      });\n      this.mapListeners.push(radiusListener);\n\n      // center listener\n      const centerListener = this.circle.addListener('center_changed', () => {\n        if (this.isProgrammaticUpdate) return;\n        const newCenter = this.circle.getCenter();\n        if (this.args.onClick) {\n          this.args.onClick(newCenter.lat(), newCenter.lng());\n        }\n      });\n      this.mapListeners.push(centerListener);\n    }\n    handleMapClick(event) {\n      const newLat = event.latLng.lat();\n      const newLng = event.latLng.lng();\n      if (this.args.onClick) {\n        this.args.onClick(newLat, newLng);\n      }\n    }\n    updateMap() {\n      if (!this.map) return;\n      const hasLocation = this.args.lat != null && this.args.lng != null;\n      const lat = this.args.lat ?? 0;\n      const lng = this.args.lng ?? 0;\n      const radius = this.args.radius ?? 0;\n      const position = {\n        lat,\n        lng\n      };\n      if (hasLocation) {\n        // 1. move map view\n        this.map.panTo(position);\n\n        // 2. move marker\n        this.marker.position = position;\n        this.marker.map = this.map;\n\n        // 3. update circle center\n        const currentCenter = this.circle.getCenter();\n        const latDiff = Math.abs(currentCenter.lat() - lat);\n        const lngDiff = Math.abs(currentCenter.lng() - lng);\n        if (latDiff > 0.000001 || lngDiff > 0.000001) {\n          this.isProgrammaticUpdate = true;\n          this.circle.setCenter(position);\n          this.isProgrammaticUpdate = false;\n        }\n\n        // 4. update circle radius\n        const currentMapRadius = this.circle.getRadius();\n        if (Math.abs(currentMapRadius - radius) > 0.1) {\n          this.circle.setRadius(radius);\n        }\n\n        // 5. visibility and dynamic zoom\n        if (radius > 0) {\n          this.circle.setMap(this.map);\n          this.fitMapToCircle(); // dynamic zoom adjustment //\n        } else {\n          this.circle.setMap(null);\n          this.map.setZoom(18); // fallback zoom if no radius //\n        }\n      } else {\n        this.marker.map = null;\n        this.circle.setMap(null);\n      }\n    }\n    fitMapToCircle() {\n      if (!this.map || !this.circle || !this.circle.getMap()) return;\n      const bounds = this.circle.getBounds();\n      if (bounds) {\n        this.map.fitBounds(bounds);\n      }\n    }\n    willDestroy() {\n      super.willDestroy(...arguments);\n      this.disconnectControlObservers();\n      this.mapListeners.forEach(listener => {\n        google.maps.event.removeListener(listener);\n      });\n      this.mapListeners = [];\n      if (this.map) {\n        this.marker.map = null;\n        this.circle.setMap(null);\n        this.map = null;\n      }\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"registerControl\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"registerControl\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setupMap\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setupMap\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateMap\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"updateMap\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, GoogleMapComponent);\n});","define(\"portal/components/grouping-selector\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.getAxes = getAxes;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{yield this.gs}}\n  */\n  {\n    \"id\": \"Ktb51HvO\",\n    \"block\": \"[[[18,1,[[30,0,[\\\"gs\\\"]]]]],[\\\"&default\\\"],false,[\\\"yield\\\"]]\",\n    \"moduleName\": \"portal/components/grouping-selector.hbs\",\n    \"isStrictMode\": false\n  });\n  class GroupingSelectorComponent extends _component2.default {\n    get gs() {\n      return {\n        axes: getAxes(this.args.groups ?? [], this.args.value ?? [], this.args.onChange)\n      };\n    }\n  }\n\n  /**\n   * @param {{ key: string }[]} groups All properties will be passed through\n   * @param {string[]} value To match groups[].key\n   * @param {(newValue: string[]) => void} onChange To match groups[].key\n   * @returns {\n   *   value: null | string,\n   *   update: (depth: number) => void,\n   *   options: { key: string, isSelected: boolean }[]\n   * }\n   */\n  _exports.default = GroupingSelectorComponent;\n  function getAxes(groups, value, onChange) {\n    const axes = [];\n    const noneOption = {\n      key: '__none__',\n      name: 'None'\n    };\n    const update = level => updatedValue => {\n      if (!onChange || value[level] === updatedValue) return;\n      onChange([...value.slice(0, level), ...(updatedValue === '__none__' ? [] : [updatedValue])]);\n    };\n    const getOptions = (remainingGroups, key) => [noneOption, ...groups].map(opt => ({\n      ...opt,\n      isSelected: opt.key === key\n    }));\n    let depth = 0;\n    do {\n      if (!value[depth]) {\n        axes.push({\n          value: null,\n          update: update(depth),\n          options: getOptions(groups, null)\n        });\n        groups = [];\n      } else {\n        const key = value[depth];\n        axes.push({\n          value: key,\n          update: update(depth),\n          options: getOptions(groups, key)\n        });\n        groups = groups.filter(g => g.key !== key);\n      }\n      depth++;\n    } while (groups.length > 0);\n    return axes;\n  }\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, GroupingSelectorComponent);\n});","define(\"portal/components/groups-redacted-notice\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='notification-message'>\n    <div class='notification-message__icon'>\n      <FaIcon @icon='info' />\n    </div>\n  \n    <div class='notification-message__content'>\n      Group data has not yet been released for this period\n    </div>\n  </div>\n  */\n  {\n    \"id\": \"g06We6pA\",\n    \"block\": \"[[[10,0],[14,0,\\\"notification-message\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"notification-message__icon\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,1],null,[[\\\"@icon\\\"],[\\\"info\\\"]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"notification-message__content\\\"],[12],[1,\\\"\\\\n    Group data has not yet been released for this period\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"div\\\",\\\"fa-icon\\\"]]\",\n    \"moduleName\": \"portal/components/groups-redacted-notice.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"portal/components/icon-button\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div role='button' class='icon-button {{this.sizeClass}}' ...attributes>\n    <FaIcon @icon={{@icon}} />\n  </div>\n  */\n  {\n    \"id\": \"qCMknlbF\",\n    \"block\": \"[[[11,0],[24,\\\"role\\\",\\\"button\\\"],[16,0,[29,[\\\"icon-button \\\",[30,0,[\\\"sizeClass\\\"]]]]],[17,1],[12],[1,\\\"\\\\n  \\\"],[8,[39,1],null,[[\\\"@icon\\\"],[[30,2]]],null],[1,\\\"\\\\n\\\"],[13]],[\\\"&attrs\\\",\\\"@icon\\\"],false,[\\\"div\\\",\\\"fa-icon\\\"]]\",\n    \"moduleName\": \"portal/components/icon-button.hbs\",\n    \"isStrictMode\": false\n  });\n  class IconButtonComponent extends _component2.default {\n    get sizeClass() {\n      const validSizes = ['xs', 'sm', 'md', 'lg', 'xl', '2xl'];\n      if (this.args.size && validSizes.includes(this.args.size)) {\n        return `icon-button--${this.args.size}`;\n      }\n      return 'icon-button--md';\n    }\n  }\n  _exports.default = IconButtonComponent;\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, IconButtonComponent);\n});","define(\"portal/components/indeterminate-checkbox\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <Input\n    @type='checkbox'\n    class='form-check-input {{@class}}'\n    @checked={{@checked}}\n    ...attributes\n    {{on 'click' this.onClick}}\n    {{did-update this.onChangeIndeterminate @indeterminate}}\n    {{did-insert this.onChangeIndeterminate}}\n  />\n  */\n  {\n    \"id\": \"1rJ5toB/\",\n    \"block\": \"[[[8,[39,0],[[16,0,[29,[\\\"form-check-input \\\",[30,1]]]],[17,2],[4,[38,1],[\\\"click\\\",[30,0,[\\\"onClick\\\"]]],null],[4,[38,2],[[30,0,[\\\"onChangeIndeterminate\\\"]],[30,4]],null],[4,[38,3],[[30,0,[\\\"onChangeIndeterminate\\\"]]],null]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,3]]],null]],[\\\"@class\\\",\\\"&attrs\\\",\\\"@checked\\\",\\\"@indeterminate\\\"],false,[\\\"input\\\",\\\"on\\\",\\\"did-update\\\",\\\"did-insert\\\"]]\",\n    \"moduleName\": \"portal/components/indeterminate-checkbox.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class extends _component2.default {\n    onChangeIndeterminate(element) {\n      element.indeterminate = this.args.indeterminate;\n    }\n    onClick(event) {\n      if (this.args.onChange) this.args.onChange(event);\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"onChangeIndeterminate\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onChangeIndeterminate\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onClick\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onClick\"), _class.prototype), _class));\n});","define(\"portal/components/infinity-scroll\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{yield this.didInsert}}\n  */\n  {\n    \"id\": \"+pD1FRch\",\n    \"block\": \"[[[18,1,[[30,0,[\\\"didInsert\\\"]]]]],[\\\"&default\\\"],false,[\\\"yield\\\"]]\",\n    \"moduleName\": \"portal/components/infinity-scroll.hbs\",\n    \"isStrictMode\": false\n  });\n  const DEFAULT_BUFFER = 35;\n  function findFirstScrollableParent(el) {\n    let parent = el;\n    while (parent) {\n      // this handles all scroll styles i.e scroll: auto, scroll-y: auto\n      const overflowY = window.getComputedStyle(parent).getPropertyValue('overflow-y');\n      const hasScrollStyle = overflowY === 'auto' || overflowY === 'scroll';\n      if (hasScrollStyle) return parent;\n      parent = parent.parentElement;\n    }\n    return undefined;\n  }\n  function isNearScrollBottom(el, buffer = DEFAULT_BUFFER) {\n    if (el.scrollTop + el.clientHeight >= el.scrollHeight - buffer) {\n      return true;\n    }\n    return false;\n  }\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _defineProperty(this, \"scrollableParent\", void 0);\n      _defineProperty(this, \"onScrollEventListener\", void 0);\n      _defineProperty(this, \"lastTriggerPosition\", 0);\n    }\n    willDestroy() {\n      super.willDestroy(...arguments);\n      if (this.onScrollEventListener) {\n        this.scrollableParent.removeEventListener('scroll', this.onScrollEventListener);\n      }\n    }\n    onScroll(element) {\n      return () => {\n        if (!isNearScrollBottom(element, this.args.buffer)) return;\n        const currentPosition = element.scrollTop + element.clientHeight;\n        const positionDiff = Math.abs(this.lastTriggerPosition - currentPosition);\n\n        // if we are within the margin of the last trigger, don't trigger again\n        if (positionDiff <= (this.args.buffer || DEFAULT_BUFFER)) return;\n        this.args.onLoadMore();\n        this.lastTriggerPosition = currentPosition;\n      };\n    }\n    didInsert(element) {\n      const scrollableParent = findFirstScrollableParent(element);\n      if (!scrollableParent) return;\n      this.scrollableParent = scrollableParent;\n      this.maybeLoadOnInsert();\n      this.onScrollEventListener = this.onScroll(scrollableParent).bind(this);\n      scrollableParent.addEventListener('scroll', this.onScrollEventListener);\n    }\n    async maybeLoadOnInsert() {\n      if (!this.scrollableParent) return;\n\n      // record initial scroll height\n      let prevHeight = this.scrollableParent.scrollHeight;\n      let max = 10;\n      let i = 0;\n      while (max > i) {\n        i++;\n        // if content overflows container, stop loading\n        if (prevHeight > this.scrollableParent.clientHeight) break;\n        // load more items\n        try {\n          await this.args.onLoadMore();\n        } catch (_) {\n          // I don't mind if it drops\n        }\n        // wait for next frame\n        await new Promise(resolve => requestAnimationFrame(resolve));\n        // get updated scroll height\n        const newHeight = this.scrollableParent.scrollHeight;\n        // if no new items loaded, stop\n        if (newHeight === prevHeight) break;\n        // update for next iteration\n        prevHeight = newHeight;\n      }\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"didInsert\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"didInsert\"), _class.prototype), _class));\n});","define(\"portal/components/info-popup\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='info-popup' ...attributes>\n    <FaIcon\n      @icon={{or @iconName 'info-circle'}}\n      @prefix={{or @iconPrefix 'fas'}}\n      class='info-popup__icon'\n    />\n  \n    <div\n      class='info-popup__text\n        {{if\n          (eq @align \"right\")\n          \"info-popup__text--right\"\n          \"info-popup__text--left\"\n        }}'\n    >\n      {{html-safe @text}}\n    </div>\n  </div>\n  */\n  {\n    \"id\": \"BLYXQAm/\",\n    \"block\": \"[[[11,0],[24,0,\\\"info-popup\\\"],[17,1],[12],[1,\\\"\\\\n  \\\"],[8,[39,1],[[24,0,\\\"info-popup__icon\\\"]],[[\\\"@icon\\\",\\\"@prefix\\\"],[[28,[37,2],[[30,2],\\\"info-circle\\\"],null],[28,[37,2],[[30,3],\\\"fas\\\"],null]]],null],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[15,0,[29,[\\\"info-popup__text\\\\n      \\\",[52,[28,[37,4],[[30,4],\\\"right\\\"],null],\\\"info-popup__text--right\\\",\\\"info-popup__text--left\\\"]]]],[12],[1,\\\"\\\\n    \\\"],[1,[28,[35,5],[[30,5]],null]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"&attrs\\\",\\\"@iconName\\\",\\\"@iconPrefix\\\",\\\"@align\\\",\\\"@text\\\"],false,[\\\"div\\\",\\\"fa-icon\\\",\\\"or\\\",\\\"if\\\",\\\"eq\\\",\\\"html-safe\\\"]]\",\n    \"moduleName\": \"portal/components/info-popup.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"portal/components/info-wrapper\", [\"exports\", \"@ember/component\", \"@ember/template-factory\"], function (_exports, _component, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='info-wrapper'>\n    {{yield}}\n  \n    <div class='info-wrapper__text'>\n      {{this.text}}\n    </div>\n  </div>\n  */\n  {\n    \"id\": \"fUfg2oz4\",\n    \"block\": \"[[[10,0],[14,0,\\\"info-wrapper\\\"],[12],[1,\\\"\\\\n  \\\"],[18,1,null],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"info-wrapper__text\\\"],[12],[1,\\\"\\\\n    \\\"],[1,[30,0,[\\\"text\\\"]]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"&default\\\"],false,[\\\"div\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"portal/components/info-wrapper.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    tagName: ''\n  }));\n});","define(\"portal/components/integration-icon\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.icon}}\n    {{#if (eq this.icon 'cloud-sync')}}\n      <FaIcon\n        @icon='cloud'\n        @title={{this.title}}\n        class='integration-icon__cloud-sync-cloud'\n      />\n      <FaIcon\n        @icon='sync-alt'\n        @title={{this.title}}\n        class='integration-icon__cloud-sync-refresh'\n      />\n    {{else}}\n      <FaIcon @icon={{this.icon}} @title={{this.title}} />\n    {{/if}}\n  {{/if}}\n  */\n  {\n    \"id\": \"bVIQ3dt7\",\n    \"block\": \"[[[41,[30,0,[\\\"icon\\\"]],[[[41,[28,[37,1],[[30,0,[\\\"icon\\\"]],\\\"cloud-sync\\\"],null],[[[1,\\\"    \\\"],[8,[39,2],[[24,0,\\\"integration-icon__cloud-sync-cloud\\\"]],[[\\\"@icon\\\",\\\"@title\\\"],[\\\"cloud\\\",[30,0,[\\\"title\\\"]]]],null],[1,\\\"\\\\n    \\\"],[8,[39,2],[[24,0,\\\"integration-icon__cloud-sync-refresh\\\"]],[[\\\"@icon\\\",\\\"@title\\\"],[\\\"sync-alt\\\",[30,0,[\\\"title\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@icon\\\",\\\"@title\\\"],[[30,0,[\\\"icon\\\"]],[30,0,[\\\"title\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]]]],[]],null]],[],false,[\\\"if\\\",\\\"eq\\\",\\\"fa-icon\\\"]]\",\n    \"moduleName\": \"portal/components/integration-icon.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    classNames: ['integration-icon'],\n    classNameBindings: ['small:integration-icon--small'],\n    icon: (0, _object.computed)('synced', 'exported', 'imported', 'autoMapped', function () {\n      const synced = (0, _object.get)(this, 'synced');\n      const exported = (0, _object.get)(this, 'exported');\n      const imported = (0, _object.get)(this, 'imported');\n      const autoMapped = (0, _object.get)(this, 'autoMapped');\n      if (autoMapped) return 'magic';\n      if (synced || exported && imported) {\n        return 'cloud-sync';\n      } else if (exported) {\n        return 'cloud-upload-alt';\n      } else if (imported) {\n        return 'cloud-download-alt';\n      } else {\n        return false;\n      }\n    })\n  }));\n});","define(\"portal/components/invoice-item-editor-modal\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"ember-changeset\", \"moment\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/service\", \"@ember/array\", \"@ember/runloop\", \"portal/helpers/round-number\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _emberChangeset, _moment, _object, _tracking, _service, _array, _runloop, _roundNumber, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _class2, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"ember-changeset\",0,\"moment\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"@ember/array\",0,\"ember-concurrency\",0,\"@ember/runloop\",0,\"portal/helpers/round-number\",0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <ModalDialog\n    @overlayClass='modal'\n    @onClose={{@onClose}}\n    @translucentOverlay={{true}}\n    @containerClass='modal-content modal-dialog-scrollable h-auto'\n    style='width: 768px;'\n  >\n    {{#if @headerText}}\n      <div class='modal-header'>\n        <h5 class='modal-title'>{{@headerText}}</h5>\n      </div>\n    {{/if}}\n  \n    <div class='modal-body overflow-auto' style='max-height: 68vh;'>\n      {{#unless this.invoiceItemChangeset}}\n        <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n      {{else}}\n        <PtlInput\n          @type='text'\n          @required={{true}}\n          @label={{t 'common.Description'}}\n          @key='description'\n          @model={{this.invoiceItemChangeset}}\n          disabled={{this.editDisabled}}\n          @forceValidationVisible={{gt this.saveItem.performCount 0}}\n        />\n  \n        <div class='mb-3'>\n  \n          <div class='input-group mb-1 align-items-end'>\n            <label>\n              {{t 'common.Allocation'}}\n              {{#if this.itemHasValue}}\n                <sup class='text-danger'>*</sup>\n              {{/if}}\n            </label>\n  \n            <div class='ms-auto me-2 mb-1'>\n              <label class='mb-1' for='contract-type'>\n                Contract type\n              </label>\n  \n              <SelectInput\n                @value={{this.contractType}}\n                @action={{this.onChangeContractType}}\n                disabled={{this.allocationDisabled}}\n                name='contract-type'\n                class='select-box form-control form-control-sm d-block invoice__invoice-item-editor-modal-filter-inputs'\n                autocomplete='off'\n                as |si|\n              >\n                <si.option @value='ALL'>\n                  {{t 'common.All'}}\n                </si.option>\n                <si.option @value='FIXED_PRICE'>\n                  Fixed price\n                </si.option>\n                <si.option @value='COST_PLUS'>\n                  Cost plus\n                </si.option>\n              </SelectInput>\n            </div>\n  \n            <div class='me-2 mb-1'>\n              <label class='mb-1' for='allocation-type'>\n                {{t 'common.Allocation type'}}\n              </label>\n  \n              <SelectInput\n                @value={{this.allocationType}}\n                @action={{this.onChangeAllocationType}}\n                disabled={{this.allocationDisabled}}\n                name='allocation-type'\n                class='select-box form-control form-control-sm d-block invoice__invoice-item-editor-modal-filter-inputs'\n                autocomplete='off'\n                as |si|\n              >\n                <si.option @value='all'>\n                  {{t 'common.All'}}\n                </si.option>\n                <si.option @value='labour'>\n                  {{t 'common.Labour'}}\n                </si.option>\n                <si.option @value='subcontractors'>\n                  {{t 'common.Subcontractors'}}\n                </si.option>\n                <si.option @value='materials'>\n                  {{t 'common.Materials'}}\n                </si.option>\n              </SelectInput>\n            </div>\n            <div class='mb-1'>\n              <label class='mb-1' for='allocation-date'>\n                Show billable amounts up to\n              </label>\n  \n              <input\n                class='form-control form-control-sm invoice__invoice-item-editor-modal-filter-inputs'\n                label='allocation-date'\n                type='date'\n                disabled={{this.allocationDisabled}}\n                value={{this.allocationDate}}\n                {{on 'change' this.onChangeAllocationDate}}\n                autocomplete='off'\n              />\n            </div>\n          </div>\n  \n          {{#let\n            (and\n              (or\n                (gt this.saveItem.performCount 0) (gt this.checkedProjectCount 1)\n              )\n              this.allocatorWarning.length\n            )\n            as |showWarning|\n          }}\n            <div\n              style='height: 25vh; min-height: 200px;'\n              class='border rounded d-flex flex-column\n                {{if showWarning \"border-danger\"}}'\n            >\n              <MultiItemSelectorPaginated\n                @scope={{this.items}}\n                @onSelectContainer={{this.onSelectContainer}}\n                @item={{this.activeItem}}\n                @isLoading={{this.isLoading}}\n                @nameKey='name'\n                @nameKeys={{array 'name' 'value'}}\n                @noItemsMessage={{t 'common.No items'}}\n                @loadingMessage={{t 'common.Loading items'}}\n                @onLoadMore={{perform this.loadMore}}\n                @onCheckboxClick={{this.onCheckboxClick}}\n                @disabled={{this.allocationDisabled}}\n              />\n            </div>\n  \n            {{#if showWarning}}\n              <div class='invalid-feedback d-block'>\n                {{this.allocatorWarning}}\n              </div>\n            {{/if}}\n          {{/let}}\n        </div>\n  \n        <div class='input-group mb-2'>\n          <div class='d-flex flex-column flex-grow-1'>\n            <PtlInput\n              @containerClass='me-2'\n              @type='currency'\n              @label={{t 'common.Unit price'}}\n              @key='unitPrice'\n              @onChange={{this.onUnitPriceChange}}\n              @warningText={{if\n                this.hasAllocationValueMismatch\n                this.allocationMisMatchValue.warningText\n              }}\n              @model={{this.invoiceItemChangeset}}\n              disabled={{this.editDisabled}}\n              @forceValidationVisible={{gt this.saveItem.performCount 0}}\n            />\n            {{#unless this.allocationDisabled}}\n              <button\n                class='btn form-text btn-link p-0 align-self-start'\n                type='button'\n                disabled={{or\n                  (eq this.selectedAllocationValue.value 0)\n                  this.editDisabled\n                }}\n                {{on 'click' this.useAllocationValue}}\n              >\n                {{#if (not-eq this.selectedAllocationValue.value 0)}}\n                  {{t\n                    'components.invoice-item-editor-modal.Use allocation value'\n                  }}\n                  ({{this.selectedAllocationValue.formatted}})\n                {{else}}\n                  <i>\n                    {{t\n                      'components.invoice-item-editor-modal.Make a selection for an allocation value'\n                    }}\n                  </i>\n                {{/if}}\n              </button>\n            {{/unless}}\n          </div>\n  \n          <PtlInput\n            @containerClass='me-2'\n            @type='number'\n            @label={{t 'common.Quantity'}}\n            @key='quantity'\n            @model={{this.invoiceItemChangeset}}\n            @forceValidationVisible={{gt this.saveItem.performCount 0}}\n            disabled={{this.editDisabled}}\n            style='width: 70px;'\n          />\n  \n          <div>\n            <label class='mb-1'>\n              {{t 'common.Subtotal'}}\n            </label>\n  \n            <FormattedInput\n              style='width: 110px;'\n              @class='form-control'\n              @name={{@key}}\n              @format='currency'\n              @number={{this.subtotal}}\n              @disabled={{true}}\n            />\n          </div>\n        </div>\n  \n        <div class='input-group'>\n          {{#if\n            (includes\n              this.accountingPlatform.invoiceItemTaxVisibleFields 'glAccount'\n            )\n          }}\n            <PtlInput\n              @containerClass='flex-grow-1 me-2'\n              @type='powerSelect'\n              @label={{t 'common.Account'}}\n              @key='glAccount'\n              @optionKeys={{array 'code' 'name'}}\n              @searchField={{if this.quickbooks.ready 'name' 'code'}}\n              @searchEnabled={{true}}\n              @options={{this.glAccounts}}\n              @model={{this.invoiceItemChangeset}}\n              @forceValidationVisible={{gt this.saveItem.performCount 0}}\n              @allowClear={{true}}\n              @disabled={{this.editDisabled}}\n              @onChange={{this.onChangeSalesGlAccount}}\n            />\n          {{/if}}\n  \n          {{#if\n            (includes\n              this.accountingPlatform.invoiceItemTaxVisibleFields 'taxRate'\n            )\n          }}\n            <PtlInput\n              @containerClass='me-2'\n              @type='percentage'\n              @label={{t 'common.Tax rate'}}\n              @key='taxRate'\n              @model={{this.invoiceItemChangeset}}\n              @forceValidationVisible={{gt this.saveItem.performCount 0}}\n              disabled={{or\n                this.invoiceItemChangeset.glAccount\n                this.editDisabled\n              }}\n              style='width: 70px;'\n            />\n          {{/if}}\n  \n          {{#if\n            (includes this.accountingPlatform.invoiceItemTaxVisibleFields 'Total')\n          }}\n            <div>\n              <label class='mb-1'>\n                {{t 'common.Total'}}\n              </label>\n  \n              <FormattedInput\n                style='width: 110px;'\n                @class='form-control'\n                @name={{@key}}\n                @format='currency'\n                @number={{this.total}}\n                @disabled={{true}}\n              />\n            </div>\n          {{/if}}\n        </div>\n      {{/unless}}\n    </div>\n  \n    <div class='modal-footer'>\n      {{#unless\n        (or\n          @item.isNew\n          this.saveItem.isRunning\n          this.allocationDisabled\n          this.editDisabled\n        )\n      }}\n        <button\n          type='button'\n          class='btn btn-link text-danger text-decoration-underline'\n          {{on 'click' (perform @onDelete @item)}}\n          disabled={{or @onDelete.isRunning this.isLoading}}\n        >\n          {{#if @onDelete.isRunning}}\n            {{t 'common.Deleting'}}&hellip;\n          {{else}}\n            {{t 'common.Delete'}}\n          {{/if}}\n        </button>\n      {{/unless}}\n  \n      <div class='ms-auto'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' @onClose}}\n          disabled={{or @onDelete.isRunning this.saveItem.isRunning}}\n        >\n          {{t 'common.Close'}}\n        </button>\n  \n        {{#unless (and this.editDisabled this.allocationDisabled)}}\n          <button\n            type='button'\n            class='btn btn-primary'\n            {{on 'click' (perform this.saveItem)}}\n            disabled={{or\n              this.isLoading\n              @onDelete.isRunning\n              this.saveItem.isRunning\n            }}\n          >\n            {{#if this.saveItem.isRunning}}\n              {{t 'common.Saving item'}}&hellip;\n            {{else}}\n              {{t 'common.Save item'}}\n            {{/if}}\n          </button>\n        {{/unless}}\n      </div>\n    </div>\n  </ModalDialog>\n  */\n  {\n    \"id\": \"bRV1H5Rl\",\n    \"block\": \"[[[8,[39,0],[[24,5,\\\"width: 768px;\\\"]],[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\"],[\\\"modal\\\",[30,1],true,\\\"modal-content modal-dialog-scrollable h-auto\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,2],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h5\\\"],[14,0,\\\"modal-title\\\"],[12],[1,[30,2]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"modal-body overflow-auto\\\"],[14,5,\\\"max-height: 68vh;\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"invoiceItemChangeset\\\"]]],[[[1,\\\"      \\\"],[8,[39,5],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[8,[39,6],[[16,\\\"disabled\\\",[30,0,[\\\"editDisabled\\\"]]]],[[\\\"@type\\\",\\\"@required\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",true,[28,[37,7],[\\\"common.Description\\\"],null],\\\"description\\\",[30,0,[\\\"invoiceItemChangeset\\\"]],[28,[37,8],[[30,0,[\\\"saveItem\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"input-group mb-1 align-items-end\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,7],[\\\"common.Allocation\\\"],null]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"itemHasValue\\\"]],[[[1,\\\"              \\\"],[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"ms-auto me-2 mb-1\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[14,\\\"for\\\",\\\"contract-type\\\"],[12],[1,\\\"\\\\n              Contract type\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[8,[39,11],[[16,\\\"disabled\\\",[30,0,[\\\"allocationDisabled\\\"]]],[24,3,\\\"contract-type\\\"],[24,0,\\\"select-box form-control form-control-sm d-block invoice__invoice-item-editor-modal-filter-inputs\\\"],[24,\\\"autocomplete\\\",\\\"off\\\"]],[[\\\"@value\\\",\\\"@action\\\"],[[30,0,[\\\"contractType\\\"]],[30,0,[\\\"onChangeContractType\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ALL\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[1,[28,[35,7],[\\\"common.All\\\"],null]],[1,\\\"\\\\n              \\\"]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"FIXED_PRICE\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                Fixed price\\\\n              \\\"]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"COST_PLUS\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                Cost plus\\\\n              \\\"]],[]]]]],[1,\\\"\\\\n            \\\"]],[3]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"me-2 mb-1\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[14,\\\"for\\\",\\\"allocation-type\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,7],[\\\"common.Allocation type\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[8,[39,11],[[16,\\\"disabled\\\",[30,0,[\\\"allocationDisabled\\\"]]],[24,3,\\\"allocation-type\\\"],[24,0,\\\"select-box form-control form-control-sm d-block invoice__invoice-item-editor-modal-filter-inputs\\\"],[24,\\\"autocomplete\\\",\\\"off\\\"]],[[\\\"@value\\\",\\\"@action\\\"],[[30,0,[\\\"allocationType\\\"]],[30,0,[\\\"onChangeAllocationType\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[8,[30,4,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"all\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[1,[28,[35,7],[\\\"common.All\\\"],null]],[1,\\\"\\\\n              \\\"]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,4,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"labour\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[1,[28,[35,7],[\\\"common.Labour\\\"],null]],[1,\\\"\\\\n              \\\"]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,4,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"subcontractors\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[1,[28,[35,7],[\\\"common.Subcontractors\\\"],null]],[1,\\\"\\\\n              \\\"]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,4,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"materials\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[1,[28,[35,7],[\\\"common.Materials\\\"],null]],[1,\\\"\\\\n              \\\"]],[]]]]],[1,\\\"\\\\n            \\\"]],[4]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[14,\\\"for\\\",\\\"allocation-date\\\"],[12],[1,\\\"\\\\n              Show billable amounts up to\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control form-control-sm invoice__invoice-item-editor-modal-filter-inputs\\\"],[24,\\\"label\\\",\\\"allocation-date\\\"],[16,\\\"disabled\\\",[30,0,[\\\"allocationDisabled\\\"]]],[16,2,[30,0,[\\\"allocationDate\\\"]]],[24,\\\"autocomplete\\\",\\\"off\\\"],[24,4,\\\"date\\\"],[4,[38,13],[\\\"change\\\",[30,0,[\\\"onChangeAllocationDate\\\"]]],null],[12],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[44,[[28,[37,15],[[28,[37,16],[[28,[37,8],[[30,0,[\\\"saveItem\\\",\\\"performCount\\\"]],0],null],[28,[37,8],[[30,0,[\\\"checkedProjectCount\\\"]],1],null]],null],[30,0,[\\\"allocatorWarning\\\",\\\"length\\\"]]],null]],[[[1,\\\"          \\\"],[10,0],[14,5,\\\"height: 25vh; min-height: 200px;\\\"],[15,0,[29,[\\\"border rounded d-flex flex-column\\\\n              \\\",[52,[30,5],\\\"border-danger\\\"]]]],[12],[1,\\\"\\\\n            \\\"],[8,[39,17],null,[[\\\"@scope\\\",\\\"@onSelectContainer\\\",\\\"@item\\\",\\\"@isLoading\\\",\\\"@nameKey\\\",\\\"@nameKeys\\\",\\\"@noItemsMessage\\\",\\\"@loadingMessage\\\",\\\"@onLoadMore\\\",\\\"@onCheckboxClick\\\",\\\"@disabled\\\"],[[30,0,[\\\"items\\\"]],[30,0,[\\\"onSelectContainer\\\"]],[30,0,[\\\"activeItem\\\"]],[30,0,[\\\"isLoading\\\"]],\\\"name\\\",[28,[37,18],[\\\"name\\\",\\\"value\\\"],null],[28,[37,7],[\\\"common.No items\\\"],null],[28,[37,7],[\\\"common.Loading items\\\"],null],[28,[37,19],[[30,0,[\\\"loadMore\\\"]]],null],[30,0,[\\\"onCheckboxClick\\\"]],[30,0,[\\\"allocationDisabled\\\"]]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,5],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"invalid-feedback d-block\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"allocatorWarning\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[5]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"input-group mb-2\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-column flex-grow-1\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,6],[[16,\\\"disabled\\\",[30,0,[\\\"editDisabled\\\"]]]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@onChange\\\",\\\"@warningText\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"me-2\\\",\\\"currency\\\",[28,[37,7],[\\\"common.Unit price\\\"],null],\\\"unitPrice\\\",[30,0,[\\\"onUnitPriceChange\\\"]],[52,[30,0,[\\\"hasAllocationValueMismatch\\\"]],[30,0,[\\\"allocationMisMatchValue\\\",\\\"warningText\\\"]]],[30,0,[\\\"invoiceItemChangeset\\\"]],[28,[37,8],[[30,0,[\\\"saveItem\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"allocationDisabled\\\"]]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn form-text btn-link p-0 align-self-start\\\"],[16,\\\"disabled\\\",[28,[37,16],[[28,[37,21],[[30,0,[\\\"selectedAllocationValue\\\",\\\"value\\\"]],0],null],[30,0,[\\\"editDisabled\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"useAllocationValue\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,22],[[30,0,[\\\"selectedAllocationValue\\\",\\\"value\\\"]],0],null],[[[1,\\\"                \\\"],[1,[28,[35,7],[\\\"components.invoice-item-editor-modal.Use allocation value\\\"],null]],[1,\\\"\\\\n                (\\\"],[1,[30,0,[\\\"selectedAllocationValue\\\",\\\"formatted\\\"]]],[1,\\\")\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[10,\\\"i\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,7],[\\\"components.invoice-item-editor-modal.Make a selection for an allocation value\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,6],[[16,\\\"disabled\\\",[30,0,[\\\"editDisabled\\\"]]],[24,5,\\\"width: 70px;\\\"]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"me-2\\\",\\\"number\\\",[28,[37,7],[\\\"common.Quantity\\\"],null],\\\"quantity\\\",[30,0,[\\\"invoiceItemChangeset\\\"]],[28,[37,8],[[30,0,[\\\"saveItem\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,7],[\\\"common.Subtotal\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,24],[[24,5,\\\"width: 110px;\\\"]],[[\\\"@class\\\",\\\"@name\\\",\\\"@format\\\",\\\"@number\\\",\\\"@disabled\\\"],[\\\"form-control\\\",[30,6],\\\"currency\\\",[30,0,[\\\"subtotal\\\"]],true]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"input-group\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,25],[[30,0,[\\\"accountingPlatform\\\",\\\"invoiceItemTaxVisibleFields\\\"]],\\\"glAccount\\\"],null],[[[1,\\\"          \\\"],[8,[39,6],null,[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@searchField\\\",\\\"@searchEnabled\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@allowClear\\\",\\\"@disabled\\\",\\\"@onChange\\\"],[\\\"flex-grow-1 me-2\\\",\\\"powerSelect\\\",[28,[37,7],[\\\"common.Account\\\"],null],\\\"glAccount\\\",[28,[37,18],[\\\"code\\\",\\\"name\\\"],null],[52,[30,0,[\\\"quickbooks\\\",\\\"ready\\\"]],\\\"name\\\",\\\"code\\\"],true,[30,0,[\\\"glAccounts\\\"]],[30,0,[\\\"invoiceItemChangeset\\\"]],[28,[37,8],[[30,0,[\\\"saveItem\\\",\\\"performCount\\\"]],0],null],true,[30,0,[\\\"editDisabled\\\"]],[30,0,[\\\"onChangeSalesGlAccount\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,25],[[30,0,[\\\"accountingPlatform\\\",\\\"invoiceItemTaxVisibleFields\\\"]],\\\"taxRate\\\"],null],[[[1,\\\"          \\\"],[8,[39,6],[[16,\\\"disabled\\\",[28,[37,16],[[30,0,[\\\"invoiceItemChangeset\\\",\\\"glAccount\\\"]],[30,0,[\\\"editDisabled\\\"]]],null]],[24,5,\\\"width: 70px;\\\"]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"me-2\\\",\\\"percentage\\\",[28,[37,7],[\\\"common.Tax rate\\\"],null],\\\"taxRate\\\",[30,0,[\\\"invoiceItemChangeset\\\"]],[28,[37,8],[[30,0,[\\\"saveItem\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,25],[[30,0,[\\\"accountingPlatform\\\",\\\"invoiceItemTaxVisibleFields\\\"]],\\\"Total\\\"],null],[[[1,\\\"          \\\"],[10,0],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,7],[\\\"common.Total\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[8,[39,24],[[24,5,\\\"width: 110px;\\\"]],[[\\\"@class\\\",\\\"@name\\\",\\\"@format\\\",\\\"@number\\\",\\\"@disabled\\\"],[\\\"form-control\\\",[30,6],\\\"currency\\\",[30,0,[\\\"total\\\"]],true]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[28,[37,16],[[30,7,[\\\"isNew\\\"]],[30,0,[\\\"saveItem\\\",\\\"isRunning\\\"]],[30,0,[\\\"allocationDisabled\\\"]],[30,0,[\\\"editDisabled\\\"]]],null]],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline\\\"],[16,\\\"disabled\\\",[28,[37,16],[[30,8,[\\\"isRunning\\\"]],[30,0,[\\\"isLoading\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,19],[[30,8],[30,7]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,8,[\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,7],[\\\"common.Deleting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,7],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"ms-auto\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[16,\\\"disabled\\\",[28,[37,16],[[30,8,[\\\"isRunning\\\"]],[30,0,[\\\"saveItem\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,1]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,7],[\\\"common.Close\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[28,[37,15],[[30,0,[\\\"editDisabled\\\"]],[30,0,[\\\"allocationDisabled\\\"]]],null]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[28,[37,16],[[30,0,[\\\"isLoading\\\"]],[30,8,[\\\"isRunning\\\"]],[30,0,[\\\"saveItem\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"saveItem\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveItem\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,7],[\\\"common.Saving item\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,7],[\\\"common.Save item\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]]]],[\\\"@onClose\\\",\\\"@headerText\\\",\\\"si\\\",\\\"si\\\",\\\"showWarning\\\",\\\"@key\\\",\\\"@item\\\",\\\"@onDelete\\\"],false,[\\\"modal-dialog\\\",\\\"if\\\",\\\"div\\\",\\\"h5\\\",\\\"unless\\\",\\\"loading-icon\\\",\\\"ptl-input\\\",\\\"t\\\",\\\"gt\\\",\\\"label\\\",\\\"sup\\\",\\\"select-input\\\",\\\"input\\\",\\\"on\\\",\\\"let\\\",\\\"and\\\",\\\"or\\\",\\\"multi-item-selector-paginated\\\",\\\"array\\\",\\\"perform\\\",\\\"button\\\",\\\"eq\\\",\\\"not-eq\\\",\\\"i\\\",\\\"formatted-input\\\",\\\"includes\\\"]]\",\n    \"moduleName\": \"portal/components/invoice-item-editor-modal.hbs\",\n    \"isStrictMode\": false\n  });\n  const PAGE_SIZE = 10;\n  const TIMESHEET_CATEGORY_NAME = 'Timesheets';\n  const BILLS_CATEGORY_NAME = 'Bills';\n  const TOLERANCE_VALUE = 0.05;\n  let GenericTreeItem = (_class = class GenericTreeItem {\n    addChildren(children) {\n      // TODO in the future this should merge the data\n      // this would let us load data in from a search method or something\n      this.children = [...this.children, ...children];\n    }\n    get effectiveValueType() {\n      switch (this.classKind) {\n        case 'RESOURCE':\n          return this.component.activeItem === this ? 'direct' : 'total';\n        case 'CATEGORY':\n          {\n            // categories always carry over their parents resource\n            return this.component.activeItem.resource === this.resource ? 'direct' : 'total';\n          }\n        default:\n          return undefined;\n      }\n    }\n    get isLoading() {\n      return this.loadChildren?.isRunning;\n    }\n    get isPristine() {\n      if (this.children.length > 0) {\n        return this.children.every(child => child.isPristine);\n      }\n      return this._isPristine;\n    }\n    set isPristine(value) {\n      if (this.children.length > 0) {\n        this.children.forEach(child => {\n          child.isPristine = value;\n        });\n      }\n      this._isPristine = value;\n    }\n    get indeterminate() {\n      // defer to the server if we haven't got enough information to know\n      if (this.hasChildren && this.isPristine && !this.allChildrenLoaded) return this._indeterminate;\n      if (this.children.length > 0) {\n        let hasChecked = false;\n        let hasUnchecked = false;\n        for (const child of this.children) {\n          if (child.indeterminate) return true;\n          if (child.checked) hasChecked = true;else hasUnchecked = true;\n          if (hasChecked && hasUnchecked) return true;\n        }\n        return false;\n      }\n      return this._indeterminate;\n    }\n    set indeterminate(value) {\n      this._indeterminate = value;\n      this._checked = false;\n      this.isPristine = false;\n    }\n    set checked(value) {\n      if (this.children.length > 0) {\n        this.children.forEach(child => {\n          child.checked = value;\n        });\n        return;\n      }\n      if (value === false) {\n        // if unchecked, it wipes the cascade\n        this.clearedUnloadedChildren = true;\n      } else if (value === true) {\n        // if checked, it restores it\n        this.clearedUnloadedChildren = false;\n      }\n      this._checked = value;\n      this._indeterminate = false;\n      this.isPristine = false;\n    }\n    get clearedChildrenTypes() {\n      // we only need to compute this for nodes that get sent to the server\n      if (this.classKind === 'CATEGORY') return undefined;\n      const types = new Set();\n\n      // if this resource itself was unchecked, it wipes all descendants\n      if (this.clearedUnloadedChildren) {\n        types.add('task');\n        types.add('timesheet');\n        types.add('bill-item');\n      }\n\n      // check if any CATEGORY children absorbed a specific wipe\n      for (const child of this.children) {\n        if (child.classKind === 'CATEGORY' && child.clearedUnloadedChildren) {\n          if (child.costType === 'bills') types.add('bill-item');\n          if (child.costType === 'timesheets') types.add('timesheet');\n        }\n      }\n      return types.size > 0 ? Array.from(types) : undefined;\n    }\n    get checked() {\n      // defer to the server if we haven't got enough information to know\n      if (this.hasChildren && this.isPristine && !this.allChildrenLoaded) return this._checked;\n      if (this.children.length > 0) {\n        return this.children.every(child => child.checked);\n      }\n      return this._checked;\n    }\n    get hasChildren() {\n      return this.children.length > 0 || this.loadChildren !== undefined;\n    }\n    get totalValue() {\n      // categories always use the direct value and don't have a total value\n      if (this.classKind === 'CATEGORY') return this.directValue;\n      const isPristineWithAllocation = Boolean(this.isPristine && this.link);\n      if (isPristineWithAllocation) {\n        const totalLinksValue = this.link._meta.values.total[this.costType].invoiced;\n        return totalLinksValue;\n      }\n      if (!this.value) return 0;\n      let value = 0;\n      const currentInvoiceableValue = this.value.total[this.costType][this.component.allocationType].invoiceable;\n      value += currentInvoiceableValue;\n      if (this.link) {\n        const existingChildrenInvoiceItemLinkValue = this.link._meta.values.total[this.costType].invoiced;\n        value += existingChildrenInvoiceItemLinkValue;\n      }\n      return value;\n    }\n    get directValue() {\n      const isPristineWithAllocation = Boolean(this.isPristine && this.link);\n      if (isPristineWithAllocation) {\n        const totalLinksValue = this.link._meta.values.direct[this.costType].invoiced;\n        return totalLinksValue;\n      }\n      if (!this.value) return 0;\n      let value = 0;\n      const currentInvoiceableValue = this.value.direct[this.costType][this.component.allocationType].invoiceable;\n      value += currentInvoiceableValue;\n      if (this.link) {\n        const existingChildrenInvoiceItemLinkValue = this.link._meta.values.direct[this.costType].invoiced;\n        value += existingChildrenInvoiceItemLinkValue;\n      }\n      return value;\n    }\n    get effectiveValue() {\n      switch (this.effectiveValueType) {\n        case 'total':\n          return this.totalValue;\n        case 'direct':\n          return this.directValue;\n        default:\n          return 0;\n      }\n    }\n    get totalValueContractType() {\n      let contractType;\n      if (this.value?.total.bills.all.invoiceable || this.value?.total.timesheets.all.invoiceable) {\n        contractType = 'COST_PLUS';\n      }\n      if (this.value?.total.quote.all.invoiceable) {\n        if (contractType) contractType = 'MIXED';else contractType = 'FIXED_PRICE';\n      }\n      return contractType;\n    }\n    get item() {\n      return {\n        name: this.name,\n        value: this.currencyFormatter(this.effectiveValue)\n      };\n    }\n    constructor({\n      checked,\n      classKind,\n      component,\n      costType,\n      currencyFormatter,\n      indeterminate,\n      isPristine = true,\n      link,\n      loadChildren,\n      name,\n      page,\n      resource,\n      value\n    }) {\n      _defineProperty(this, \"component\", void 0);\n      _defineProperty(this, \"classKind\", void 0);\n      // 'RESOURCE' | 'CATEGORY'\n      _defineProperty(this, \"costType\", void 0);\n      // 'bills' | 'timesheets' | 'quote' | 'total'\n      _defineProperty(this, \"currencyFormatter\", void 0);\n      _defineProperty(this, \"link\", void 0);\n      _defineProperty(this, \"loadChildren\", void 0);\n      _defineProperty(this, \"name\", void 0);\n      _defineProperty(this, \"page\", void 0);\n      _defineProperty(this, \"resource\", void 0);\n      _defineProperty(this, \"value\", void 0);\n      _initializerDefineProperty(this, \"allChildrenLoaded\", _descriptor, this);\n      _initializerDefineProperty(this, \"clearedUnloadedChildren\", _descriptor2, this);\n      _initializerDefineProperty(this, \"children\", _descriptor3, this);\n      _initializerDefineProperty(this, \"_isPristine\", _descriptor4, this);\n      _initializerDefineProperty(this, \"_indeterminate\", _descriptor5, this);\n      _initializerDefineProperty(this, \"_checked\", _descriptor6, this);\n      _defineProperty(this, \"loadMore\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          if (!this.loadChildren) return;\n          let hasNextPage = false;\n          for (const key in this.page) {\n            if (this.page[key].hasNextPage === false) {\n              // nothing more to load\n              continue;\n            }\n            if (this.page[key].hasNextPage) this.page[key].number += 1;\n            hasNextPage = true;\n          }\n          if (!hasNextPage) {\n            this.allChildrenLoaded = true;\n            return 'done';\n          }\n          yield this.loadChildren.perform(this);\n        }\n      }), {\n        drop: true\n      }, \"loadMore\", null));\n      this.classKind = classKind;\n      this.component = component;\n      this.costType = costType;\n      this.currencyFormatter = currencyFormatter;\n      this.link = link;\n      this.loadChildren = loadChildren;\n      this.name = name;\n      this.page = page;\n      this.resource = resource;\n      this.value = value;\n\n      // bypass the setters so we don't touch isPristine\n      this._isPristine = isPristine;\n      this._checked = checked;\n      this._indeterminate = indeterminate;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"allChildrenLoaded\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"clearedUnloadedChildren\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"children\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"_isPristine\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"_indeterminate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"_checked\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class2 = class _class2 extends _component2.default {\n    get projectsSortString() {\n      return this.projectsSortKeys.join(',');\n    }\n    get tasksSortString() {\n      return this.tasksSortKeys.join(',');\n    }\n    get timesheetsSortString() {\n      return this.timesheetsSortKeys.join(',');\n    }\n    get billItemsSortString() {\n      return this.billItemsSortKeys.join(',');\n    }\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor7, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor8, this);\n      _initializerDefineProperty(this, \"numberFormat\", _descriptor9, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor0, this);\n      _initializerDefineProperty(this, \"store\", _descriptor1, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor10, this);\n      _initializerDefineProperty(this, \"accountingPlatform\", _descriptor11, this);\n      _initializerDefineProperty(this, \"glAccounts\", _descriptor12, this);\n      _initializerDefineProperty(this, \"invoiceItemChangeset\", _descriptor13, this);\n      _initializerDefineProperty(this, \"items\", _descriptor14, this);\n      _initializerDefineProperty(this, \"taxRateIsPristine\", _descriptor15, this);\n      _initializerDefineProperty(this, \"linkedProjectIds\", _descriptor16, this);\n      _initializerDefineProperty(this, \"originalAllocationValue\", _descriptor17, this);\n      _initializerDefineProperty(this, \"isUnitPriceChanged\", _descriptor18, this);\n      _initializerDefineProperty(this, \"isAllocationValueChanged\", _descriptor19, this);\n      _initializerDefineProperty(this, \"isSyncingAllocationValue\", _descriptor20, this);\n      _defineProperty(this, \"projectsSortKeys\", ['sortIndex', 'name']);\n      _defineProperty(this, \"tasksSortKeys\", ['path', 'name']);\n      _defineProperty(this, \"timesheetsSortKeys\", ['worker.firstName', 'worker.lastName', 'duration', 'date']);\n      _defineProperty(this, \"billItemsSortKeys\", ['bill.issuer', 'bill.billNumber', 'name']);\n      /* helpers */\n      _defineProperty(this, \"invoiceItemValidator\", ({\n        key,\n        newValue,\n        oldValue\n      }) => {\n        const value = newValue !== undefined ? newValue : oldValue;\n        switch (key) {\n          case 'description':\n            return value?.length > 0 || this.intl.t('components.invoice-item-editor-modal.Please provide a description');\n          case 'unitPrice':\n            return Number(value) >= 0 || this.intl.t('components.invoice-item-editor-modal.pleaseProvideAValueGreaterThanZero');\n          default:\n            return true;\n        }\n      });\n      _defineProperty(this, \"projectsCategory\", () => new GenericTreeItem({\n        component: this,\n        resource: this.sessionData.entity,\n        classKind: 'CATEGORY',\n        loadChildren: this.loadProjectsFromEntity,\n        page: {\n          project: {\n            number: 1,\n            size: PAGE_SIZE,\n            hasNextPage: undefined\n          }\n        },\n        name: this.intl.t('common.Projects'),\n        currencyFormatter: this.formatCurrency.bind(this),\n        checked: false\n      }));\n      _defineProperty(this, \"timesheetsCategory\", (container, loadChildren, checked, indeterminate) => new GenericTreeItem({\n        component: this,\n        resource: container.resource,\n        classKind: 'CATEGORY',\n        loadChildren,\n        page: {\n          timesheet: {\n            number: 1,\n            size: PAGE_SIZE,\n            hasNextPage: undefined\n          }\n        },\n        name: TIMESHEET_CATEGORY_NAME,\n        costType: 'timesheets',\n        link: container.link,\n        value: container.value,\n        currencyFormatter: this.formatCurrency.bind(this),\n        checked,\n        indeterminate,\n        isPristine: container.isPristine\n      }));\n      _defineProperty(this, \"billsCategory\", (container, loadChildren, checked, indeterminate) => new GenericTreeItem({\n        component: this,\n        resource: container.resource,\n        classKind: 'CATEGORY',\n        loadChildren,\n        page: {\n          'bill-item': {\n            number: 1,\n            size: PAGE_SIZE,\n            hasNextPage: undefined\n          }\n        },\n        name: BILLS_CATEGORY_NAME,\n        costType: 'bills',\n        link: container.link,\n        value: container.value,\n        currencyFormatter: this.formatCurrency.bind(this),\n        checked,\n        indeterminate,\n        isPristine: container.isPristine\n      }));\n      _defineProperty(this, \"firstLoad\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const glAccountFilter = {\n            and: [{\n              field: 'entity',\n              op: 'EQ',\n              value: this.sessionData.entity.id\n            }]\n          };\n          if (this.accountingPlatform.activePlatform === 'xero') {\n            glAccountFilter.and.push({\n              field: 'xeroAccountId',\n              op: 'IS_NOT_NULL',\n              value: null\n            });\n          }\n          const [projectLinks, glAccounts] = yield Promise.all([\n          // load the project list and keep loading until all the existing links are loaded\n          this.store.query('link-invoice-item-to-project', {\n            filter: {\n              and: [{\n                field: 'invoiceItem',\n                op: 'EQ',\n                value: this.args.item.id\n              }]\n            },\n            page: {\n              number: 1,\n              size: 10,\n              // only 1 allocated project is allowed in the front end\n              hasNextPage: undefined\n            },\n            params: {\n              allocationDate: this.allocationDateIso\n            },\n            fields: {\n              'link-invoice-item-to-projects': '_meta'\n            }\n          }),\n          // fetch the gl accounts once - the components for paginated selection aren't ready to use\n          this.store.query('gl-account', {\n            filter: glAccountFilter,\n            sort: 'code,name'\n          })]);\n          this.glAccounts = glAccounts.toArray();\n          const originalAllocationValue = projectLinks.reduce((total, link) => {\n            const value = link._meta?.values?.total?.total?.linkValue ?? link.value ?? 0;\n            return total + Number(value || 0);\n          }, 0);\n          this.originalAllocationValue = projectLinks.length ? originalAllocationValue : undefined;\n          const projectIds = projectLinks.map(link => link.belongsTo('project').id());\n\n          // we need this to include selected projects that aren't open\n          this.linkedProjectIds = projectIds;\n          const load = async (tries = 0) => {\n            // don't trigger it again\n            const loadMoreTask = this.activeItem.loadMore.last;\n            if (loadMoreTask && loadMoreTask.isRunning) await loadMoreTask;else await this.activeItem.loadMore.perform();\n            const hasEveryProject = projectIds.every(projectId => this.activeItem.children.some(p => p.resource.id === projectId));\n            tries++;\n            if (!hasEveryProject && tries <= 50) return load(tries);\n          };\n          yield load();\n        }\n      }), null, \"firstLoad\", null));\n      _defineProperty(this, \"saveItem\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.invoiceItemChangeset.validate();\n            if (this.invoiceItemChangeset.isInvalid || typeof this.allocatorWarning === 'string') return;\n            this.invoiceItemChangeset.execute();\n\n            // extract invoice item from changeset before passing it to callback function\n            const invoiceItem = this.invoiceItemChangeset.get('_content');\n            if (this.firstItem.isPristine) {\n              yield this.args.onSave(invoiceItem);\n            } else {\n              // only send the allocations if they've changed\n              const selectedItems = yield this.getSelectedItems();\n              const allocations = selectedItems.map(item => ({\n                type: item.resource?.constructor.modelName,\n                id: item.resource?.id,\n                allocation: this.allocationType,\n                checked: item.checked,\n                indeterminate: item.indeterminate,\n                clearedChildren: item.clearedChildrenTypes\n              }));\n              yield this.args.onSave(invoiceItem, allocations, this.allocationDateIso, this.invoiceItemTotalsContractType);\n            }\n          } catch (error) {\n            this.notifications.error({\n              message: 'Something went wrong saving the item',\n              error\n            });\n          }\n        }\n      }), null, \"saveItem\", null));\n      _defineProperty(this, \"loadMore\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.activeItem.loadMore?.perform();\n        }\n      }), {\n        drop: true\n      }, \"loadMore\", null));\n      _defineProperty(this, \"loadProjectsFromEntity\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (container) {\n          if (container.page['project'].hasNextPage === false) return [];\n          const projectsFilter = {\n            or: [{\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: container.resource.id\n              }, {\n                field: 'status',\n                op: 'EQ',\n                value: 'OPEN'\n              }]\n            }]\n          };\n\n          // if there is an existing allocation make sure we also fetch that project (it might not be open)\n          if (this.linkedProjectIds?.length) {\n            projectsFilter.or.push({\n              field: '_id',\n              op: 'IN',\n              value: this.linkedProjectIds\n            });\n          }\n          const projects = yield this.loadProjects.perform(projectsFilter, this.projectsSortString, container);\n          container.addChildren(projects);\n        }\n      }), null, \"loadProjectsFromEntity\", null));\n      _defineProperty(this, \"loadParentTasksFromProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (container) {\n          if (container.page['task'].hasNextPage === false) return [];\n          const tasksFilter = {\n            and: [{\n              field: 'entity',\n              op: 'EQ',\n              value: this.sessionData.entity.id\n            }, {\n              field: 'status',\n              op: 'IN',\n              value: ['ACTIVE', 'DRAFT_CREATED']\n            }, {\n              field: 'project',\n              op: 'EQ',\n              value: container.resource.id\n            }, {\n              field: 'parent',\n              op: 'IS_NULL',\n              value: null\n            }]\n          };\n          const items = yield this.loadTasks.perform(tasksFilter, this.tasksSortString, container);\n          container.addChildren(items);\n          if (\n          // only load the cost index when you've loaded all the tasks (so we add to the bottom of the list)\n          container.page['task'].hasNextPage === false &&\n          // only load the costs index once\n          container.page['bills-index'].hasNextPage === undefined) {\n            const notLinked = !container.link;\n            const hasBills = !notLinked && container.link._meta.values.direct.bills.numberOfResources > 0;\n            const hasBillItemsValue = container.value?.direct.bills.all.total > 0;\n            if (notLinked ? hasBillItemsValue : hasBills) {\n              const checked = Boolean(container.checked || container.link?._meta.values.direct.bills.fullyLinked);\n              const indeterminate = Boolean(!checked && container.link?._meta.values.direct.bills.partiallyLinked);\n              container.addChildren([this.billsCategory(container, this.loadBillsFromProject, checked, indeterminate)]);\n            }\n          }\n        }\n      }), null, \"loadParentTasksFromProject\", null));\n      _defineProperty(this, \"loadChildTasksOrCostsIndexFromTasks\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (container) {\n          const hasChildren = container.resource.hasMany('children').ids()?.length > 0;\n\n          // load the next layer of tasks\n          if (hasChildren) {\n            if (container.page['task'].hasNextPage === false) return [];\n\n            // load the costs index\n            const tasksFilter = {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'status',\n                op: 'IN',\n                value: ['ACTIVE', 'DRAFT_CREATED']\n              }, {\n                field: 'parent',\n                op: 'EQ',\n                value: container.resource.id\n              }]\n            };\n            const items = yield this.loadTasks.perform(tasksFilter, this.tasksSortString, container);\n            container.addChildren(items);\n          } else {\n            // if there are no children set next page to false\n            container.page['task'].hasNextPage = false;\n          }\n          if (\n          // only load the cost index when you've loaded all the tasks (so we add to the bottom of the list)\n          (!hasChildren || container.page['task'].hasNextPage === false) &&\n          // only load the costs index once\n          container.page['timesheet-bills-index'].hasNextPage === undefined) {\n            const notLinked = !container.link;\n            const hasTimesheets = !notLinked && container.link._meta.values.direct.timesheets.numberOfResources > 0;\n            const hasBills = !notLinked && container.link._meta.values.direct.bills.numberOfResources > 0;\n            const hasTimesheetsValue = container.value?.direct.timesheets.all.total > 0;\n            const hasBillsValue = container.value?.direct.bills.all.total > 0;\n            if (notLinked ? hasTimesheetsValue : hasTimesheets) {\n              const timesheetsChecked = container.isPristine ? Boolean(container.checked || container.link?._meta.values.direct.timesheets.fullyLinked) : container.checked;\n              const timesheetsIndeterminate = Boolean(!timesheetsChecked && container.link?._meta.values.direct.timesheets.partiallyLinked);\n              container.addChildren([this.timesheetsCategory(container, this.loadTimesheetsFromTask, timesheetsChecked, timesheetsIndeterminate)]);\n            }\n            if (notLinked ? hasBillsValue : hasBills) {\n              const billItemsChecked = container.isPristine ? Boolean(container.checked || container.link?._meta.values.direct.bills.fullyLinked) : container.checked;\n              const billItemsIndeterminate = Boolean(!billItemsChecked && container.link?._meta.values.direct.bills.partiallyLinked);\n              container.addChildren([this.billsCategory(container, this.loadBillsFromTask, billItemsChecked, billItemsIndeterminate)]);\n            }\n            container.page['timesheet-bills-index'].hasNextPage = false;\n          }\n        }\n      }), null, \"loadChildTasksOrCostsIndexFromTasks\", null));\n      _defineProperty(this, \"loadTimesheetsFromTask\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (container) {\n          if (container.page['timesheet'].hasNextPage === false) return [];\n          const timesheetsFilter = {\n            and: [{\n              field: 'entity',\n              op: 'EQ',\n              value: this.sessionData.entity.id\n            }, {\n              field: 'task',\n              op: 'EQ',\n              value: container.resource.id\n            }]\n          };\n          if (this.allocationDate) {\n            timesheetsFilter.and.push({\n              field: 'date',\n              op: 'LE',\n              value: this.allocationDate\n            });\n          }\n          const items = yield this.loadTimesheets.perform(timesheetsFilter, this.timesheetsSortString, container);\n          container.addChildren(items);\n        }\n      }), null, \"loadTimesheetsFromTask\", null));\n      _defineProperty(this, \"loadBillsFromProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (container) {\n          if (container.page['bill-item'].hasNextPage === false) return [];\n          const billsFilter = {\n            and: [{\n              field: 'bill.status',\n              op: 'NE',\n              value: 'HELD'\n            }, {\n              field: 'entity',\n              op: 'EQ',\n              value: this.sessionData.entity.id\n            }, {\n              field: 'project',\n              op: 'EQ',\n              value: container.resource.id\n            }]\n          };\n          if (this.allocationDateIso) {\n            billsFilter.and.push({\n              or: [{\n                and: [{\n                  field: 'bill.issueDate',\n                  op: 'IS_NULL',\n                  value: null\n                }, {\n                  field: 'bill.dateCreated',\n                  op: 'LE',\n                  value: this.allocationDateIso\n                }]\n              }, {\n                field: 'bill.issueDate',\n                op: 'LE',\n                value: this.allocationDateIso\n              }]\n            });\n          }\n          const items = yield this.loadBills.perform(billsFilter, this.billItemsSortString, container);\n          container.addChildren(items);\n        }\n      }), null, \"loadBillsFromProject\", null));\n      _defineProperty(this, \"loadBillsFromTask\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (container) {\n          if (container.page['bill-item'].hasNextPage === false) return [];\n          const billsFilter = {\n            and: [{\n              field: 'bill.status',\n              op: 'NE',\n              value: 'HELD'\n            }, {\n              field: 'entity',\n              op: 'EQ',\n              value: this.sessionData.entity.id\n            }, {\n              field: 'task',\n              op: 'EQ',\n              value: container.resource.id\n            }]\n          };\n          if (this.allocationDateIso) {\n            billsFilter.and.push({\n              or: [{\n                and: [{\n                  field: 'bill.issueDate',\n                  op: 'IS_NULL',\n                  value: null\n                }, {\n                  field: 'bill.dateCreated',\n                  op: 'LE',\n                  value: this.allocationDateIso\n                }]\n              }, {\n                field: 'bill.issueDate',\n                op: 'LE',\n                value: this.allocationDateIso\n              }]\n            });\n          }\n          const items = yield this.loadBills.perform(billsFilter, this.billItemsSortString, container);\n          container.addChildren(items);\n        }\n      }), null, \"loadBillsFromTask\", null));\n      _defineProperty(this, \"loadProjects\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (filter, sort, container) {\n          const projects = yield this.store.query('project', {\n            filter,\n            page: container.page['project'],\n            sort,\n            include: 'salesGlAccount'\n          });\n          container.page['project'].hasNextPage = container.page['project'].number < projects.meta.totalPages;\n          if (projects.length < 1) return [];\n          const fetchAllocation = Boolean(this.args.item.id);\n          const projectIds = projects.map(project => project.id);\n          let [totalsByProjectIdRequest, projectLinksByProjectIdRequest] = [this.buildaPrice.getInvoiceItemTotals({\n            projectId: projectIds,\n            taskId: 'null',\n            timesheetId: 'null',\n            billItemId: 'null',\n            startDate: undefined,\n            endDate: this.allocationDateIso,\n            contractType: this.invoiceItemTotalsContractType\n          }).then(totals => new Map(totals.map(total => [total.projectId, total])))];\n          if (fetchAllocation) {\n            const projectIds = projects.map(p => p.id);\n            projectLinksByProjectIdRequest = yield this.store.query('link-invoice-item-to-project', {\n              filter: {\n                and: [{\n                  field: 'invoiceItem',\n                  op: 'EQ',\n                  value: this.args.item.id\n                }, {\n                  field: 'project',\n                  op: 'IN',\n                  value: projectIds\n                }]\n              },\n              params: {\n                allocationDate: this.allocationDateIso\n              },\n              fields: {\n                'link-invoice-item-to-projects': '_meta'\n              }\n            }).then(res => new Map(res.map(l => [l.belongsTo('project').id(), l])));\n          }\n          const [totalsByProjectId, projectLinksByProjectId] = yield Promise.all([totalsByProjectIdRequest, projectLinksByProjectIdRequest]);\n          const projectItems = projects.map(project => {\n            const totals = totalsByProjectId.get(project.id);\n            let checked = container.checked;\n            let indeterminate = false;\n            let link = undefined;\n            if (fetchAllocation) {\n              link = projectLinksByProjectId.get(project.id);\n              if (link) {\n                if (container.isPristine) {\n                  checked = link._meta?.checked || false;\n                  indeterminate = link._meta?.indeterminate || false;\n                }\n              }\n            }\n            return new GenericTreeItem({\n              component: this,\n              resource: project,\n              classKind: 'RESOURCE',\n              loadChildren: this.loadParentTasksFromProject,\n              page: {\n                task: {\n                  number: 1,\n                  size: PAGE_SIZE,\n                  hasNextPage: undefined\n                },\n                // this isn't a real resource, I'm using it to prevent double renders of my index page\n                'bills-index': {\n                  number: 1,\n                  size: 1,\n                  hasNextPage: undefined\n                }\n              },\n              costType: 'total',\n              name: project.name,\n              link,\n              value: totals,\n              currencyFormatter: this.formatCurrency.bind(this),\n              checked,\n              indeterminate,\n              isPristine: container.isPristine\n            });\n          });\n          return projectItems;\n        }\n      }), null, \"loadProjects\", null));\n      _defineProperty(this, \"loadTasks\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (filter, sort, container) {\n          const tasks = yield this.store.query('task', {\n            filter,\n            page: container.page['task'],\n            sort,\n            include: 'salesGlAccount'\n          });\n          container.page['task'].hasNextPage = container.page['task'].number < tasks.meta.totalPages;\n          if (tasks.length < 1) return [];\n          const fetchAllocation = Boolean(this.args.item.id);\n          const taskIds = tasks.map(task => task.id);\n          let [totalsByTaskIdRequest, taskLinksByTaskIdRequest] = [this.buildaPrice.getInvoiceItemTotals({\n            taskId: taskIds,\n            timesheetId: 'null',\n            billItemId: 'null',\n            startDate: undefined,\n            endDate: this.allocationDateIso,\n            contractType: this.invoiceItemTotalsContractType\n          }).then(totals => new Map(totals.map(total => [total.taskId, total])))];\n          if (fetchAllocation) {\n            const taskIds = tasks.map(p => p.id);\n            taskLinksByTaskIdRequest = yield this.store.query('link-invoice-item-to-task', {\n              filter: {\n                and: [{\n                  field: 'invoiceItem',\n                  op: 'EQ',\n                  value: this.args.item.id\n                }, {\n                  field: 'task',\n                  op: 'IN',\n                  value: taskIds\n                }]\n              },\n              params: {\n                allocationDate: this.allocationDateIso\n              },\n              fields: {\n                'link-invoice-item-to-tasks': '_meta'\n              }\n            }).then(res => new Map(res.map(l => [l.belongsTo('task').id(), l])));\n          }\n          const [totalsByTaskId, taskLinksByTaskId] = yield Promise.all([totalsByTaskIdRequest, taskLinksByTaskIdRequest]);\n          const taskItems = tasks.map(task => {\n            const totals = totalsByTaskId.get(task.id);\n            let checked = container.checked;\n            let indeterminate = false;\n            let link = undefined;\n            if (fetchAllocation) {\n              link = taskLinksByTaskId.get(task.id);\n              if (link) {\n                checked =\n                // the item is linked to the invoice item\n                (link._meta?.checked || false) && (\n                // and the container isPristine or not unchecked locally\n                container.isPristine || container.checked || container.indeterminate);\n                indeterminate = !checked && link._meta?.indeterminate || false;\n              }\n            }\n            return new GenericTreeItem({\n              component: this,\n              resource: task,\n              classKind: 'RESOURCE',\n              loadChildren: this.loadChildTasksOrCostsIndexFromTasks,\n              page: {\n                task: {\n                  number: 1,\n                  size: PAGE_SIZE,\n                  hasNextPage: undefined\n                },\n                // this isn't a real resource, I'm using it to prevent double renders of my index page\n                'timesheet-bills-index': {\n                  number: 1,\n                  size: 2,\n                  hasNextPage: undefined\n                }\n              },\n              name: task.name,\n              costType: 'total',\n              link,\n              value: totals,\n              currencyFormatter: this.formatCurrency.bind(this),\n              checked,\n              indeterminate,\n              isPristine: container.isPristine\n            });\n          });\n          return taskItems;\n        }\n      }), null, \"loadTasks\", null));\n      _defineProperty(this, \"loadTimesheets\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (filter, sort, container) {\n          const timesheets = yield this.store.query('timesheet', {\n            filter,\n            page: container.page['timesheet'],\n            sort,\n            include: 'worker'\n          });\n          container.page['timesheet'].hasNextPage = container.page['timesheet'].number < timesheets.meta.totalPages;\n          if (timesheets.length < 1) return [];\n          const fetchAllocation = Boolean(this.args.item.id);\n          const timesheetIds = timesheets.map(timesheet => timesheet.id);\n          let [totalsByTimesheetIdRequest, timesheetLinksByTimesheetIdRequest] = [this.buildaPrice.getInvoiceItemTotals({\n            timesheetId: timesheetIds,\n            startDate: undefined,\n            endDate: this.allocationDateIso,\n            contractType: this.invoiceItemTotalsContractType\n          }).then(totals => new Map(totals.map(total => [total.timesheetId, total])))];\n          if (fetchAllocation) {\n            const timesheetIds = timesheets.map(p => p.id);\n            timesheetLinksByTimesheetIdRequest = yield this.store.query('link-invoice-item-to-timesheet', {\n              filter: {\n                and: [{\n                  field: 'invoiceItem',\n                  op: 'EQ',\n                  value: this.args.item.id\n                }, {\n                  field: 'timesheet',\n                  op: 'IN',\n                  value: timesheetIds\n                }]\n              },\n              params: {\n                allocationDate: this.allocationDateIso\n              },\n              fields: {\n                'link-invoice-item-to-timesheets': '_meta'\n              }\n            }).then(res => new Map(res.map(l => [l.belongsTo('timesheet').id(), l])));\n          }\n          const [totalsByTimesheetId, timesheetLinksByTimesheetId] = yield Promise.all([totalsByTimesheetIdRequest, timesheetLinksByTimesheetIdRequest]);\n          const timesheetItems = timesheets.map(timesheet => {\n            const totals = totalsByTimesheetId.get(timesheet.id);\n            let checked = container.checked;\n            let link = undefined;\n            if (fetchAllocation) {\n              link = timesheetLinksByTimesheetId.get(timesheet.id);\n              checked = container.indeterminate ? timesheetLinksByTimesheetId.has(timesheet.id) // mixed state: defer to server for unseen items\n              : container.checked; // fully checked or fully unchecked: honour that intent\n            }\n            const name = [timesheet.belongsTo('worker').value().firstName, timesheet.belongsTo('worker').value().lastName + ':', this.formatDuration(timesheet.duration), 'on', (0, _moment.default)(timesheet.date).format(this.intl.t('date.longWithoutWeekday'))].join(' ');\n            return new GenericTreeItem({\n              component: this,\n              resource: timesheet,\n              classKind: 'RESOURCE',\n              loadChildren: undefined,\n              // no children\n              page: {\n                timesheet: {\n                  number: 1,\n                  size: PAGE_SIZE,\n                  hasNextPage: undefined\n                }\n              },\n              name: name,\n              costType: 'total',\n              link,\n              value: totals,\n              currencyFormatter: this.formatCurrency.bind(this),\n              checked,\n              indeterminate: false,\n              isPristine: container.isPristine\n            });\n          });\n          return timesheetItems;\n        }\n      }), null, \"loadTimesheets\", null));\n      _defineProperty(this, \"loadBills\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (filter, sort, container) {\n          const billItems = yield this.store.query('bill-item', {\n            filter,\n            page: container.page['bill-item'],\n            sort,\n            include: 'bill,task.project,task.project.profitMargin,entity.profitMargin'\n          });\n          container.page['bill-item'].hasNextPage = container.page['bill-item'].number < billItems.meta.totalPages;\n          if (billItems.length < 1) return [];\n          const fetchAllocation = Boolean(this.args.item.id);\n          const billItemIds = billItems.map(billItem => billItem.id);\n          let [totalsByBillItemIdRequest, billItemLinksByBillItemIdRequest] = [this.buildaPrice.getInvoiceItemTotals({\n            billItemId: billItemIds,\n            startDate: undefined,\n            endDate: this.allocationDateIso,\n            contractType: this.invoiceItemTotalsContractType\n          }).then(totals => new Map(totals.map(total => [total.billItemId, total])))];\n          if (fetchAllocation) {\n            const billItemIds = billItems.map(p => p.id);\n            billItemLinksByBillItemIdRequest = yield this.store.query('link-invoice-item-to-bill-item', {\n              filter: {\n                and: [{\n                  field: 'invoiceItem',\n                  op: 'EQ',\n                  value: this.args.item.id\n                }, {\n                  field: 'billItem',\n                  op: 'IN',\n                  value: billItemIds\n                }]\n              },\n              params: {\n                allocationDate: this.allocationDateIso\n              },\n              fields: {\n                'link-invoice-item-to-bill-items': '_meta'\n              }\n            }).then(res => new Map(res.map(l => [l.belongsTo('billItem').id(), l])));\n          }\n          const [totalsByBillItemId, billItemLinksByBillItemId] = yield Promise.all([totalsByBillItemIdRequest, billItemLinksByBillItemIdRequest]);\n          const billItemItems = billItems.map(billItem => {\n            const totals = totalsByBillItemId.get(billItem.id);\n            let checked = container.checked;\n            let link = undefined;\n            if (fetchAllocation) {\n              link = billItemLinksByBillItemId.get(billItem.id);\n              checked = container.indeterminate ? billItemLinksByBillItemId.has(billItem.id) // mixed state: defer to server for unseen items\n              : container.checked; // fully checked or fully unchecked: honour that intent\n            }\n            const name = [billItem.belongsTo('bill').value().issuer, (billItem.belongsTo('bill').value().billNumber || '') + ':', billItem.description].join(' ');\n            return new GenericTreeItem({\n              component: this,\n              resource: billItem,\n              classKind: 'RESOURCE',\n              loadChildren: undefined,\n              // no children\n              page: {\n                'bill-item': {\n                  number: 1,\n                  size: PAGE_SIZE,\n                  hasNextPage: undefined\n                }\n              },\n              name,\n              costType: 'total',\n              link,\n              value: totals,\n              currencyFormatter: this.formatCurrency.bind(this),\n              checked,\n              indeterminate: false,\n              isPristine: container.isPristine\n            });\n          });\n          return billItemItems;\n        }\n      }), null, \"loadBills\", null));\n      this.invoiceItemChangeset = (0, _emberChangeset.Changeset)(this.args.item, this.invoiceItemValidator, {\n        description: this.invoiceItemValidator\n      });\n      this.items = [this.projectsCategory()];\n      if (this.hasStagePayment) this.args.item.contractType = 'FIXED_PRICE';\n      this.firstLoad.perform();\n    }\n\n    /* computed properties */\n    get allocationType() {\n      return this.args.item.allocationType.toLowerCase();\n    }\n    set allocationType(value) {\n      this.args.item.allocationType = value.toUpperCase();\n    }\n    get contractType() {\n      return this.args.item.contractType;\n    }\n    set contractType(value) {\n      this.args.item.contractType = value;\n    }\n    get allocationDate() {\n      return this.args.item.allocationDate?.toISOString().split('T')[0];\n    }\n    set allocationDate(value) {\n      if (!value) {\n        this.args.item.allocationDate = undefined;\n      } else {\n        const date = new Date(value);\n        date.setHours(23, 59, 59, 999); // 23:59:59.999\n\n        this.args.item.allocationDate = date;\n      }\n    }\n    get allocationDateIso() {\n      if (!this.allocationDate) return undefined;\n      const date = new Date(this.allocationDate);\n      date.setHours(23, 59, 59, 999); // 23:59:59.999\n\n      return date.toISOString();\n    }\n    get invoiceItemTotalsContractType() {\n      return this.contractType === 'ALL' ? undefined : this.contractType;\n    }\n    get isLoading() {\n      return this.firstLoad?.isRunning || !this.invoiceItemChangeset;\n    }\n    get firstItem() {\n      return this.items[0];\n    }\n    // this is the item we are currently navigated to\n    get activeItem() {\n      return this.items[this.items.length - 1];\n    }\n    get allocationValue() {\n      let total = 0;\n      if (!this.firstItem || this.checkedProjectCount > 1) return {\n        value: total,\n        formatted: this.formatCurrency(total),\n        contractType: undefined\n      };\n\n      // we want to transverse the highest level only (it will include all the selected data)\n      // example items: [[Proj1, Proj2], [Proj1's Task 1, Proj1's Task 2]]\n      let contractType;\n      const getVal = children => {\n        for (const child of children) {\n          // if the item is entirely checked, you don't need to check the children for their value\n          if (child.checked) {\n            if (contractType !== 'MIXED' && child.totalValue && child.totalValueContractType) {\n              if (!contractType) {\n                contractType = child.totalValueContractType;\n              } else if (contractType !== child.totalValueContractType) {\n                contractType = 'MIXED';\n              }\n            }\n            total += child.totalValue;\n            continue;\n          }\n\n          // Use server value when a parent is partially selected and by adding up only not changed children\n          if (child.indeterminate && child.isPristine) {\n            if (contractType !== 'MIXED' && child.effectiveValue && child.totalValueContractType) {\n              if (!contractType) {\n                contractType = child.totalValueContractType;\n              } else if (contractType !== child.totalValueContractType) {\n                contractType = 'MIXED';\n              }\n            }\n            total += child.effectiveValue;\n            continue;\n          }\n          if (child.children) getVal(child.children);\n        }\n      };\n      getVal(this.firstItem.children);\n      return {\n        value: total,\n        formatted: this.formatCurrency(total),\n        contractType\n      };\n    }\n    get subtotal() {\n      return this.invoiceItemChangeset.get('unitPrice') * this.invoiceItemChangeset.get('quantity') || 0;\n    }\n    get total() {\n      return this.subtotal * (1 + this.invoiceItemChangeset.get('taxRate'));\n    }\n    get effectiveSalesGlAccount() {\n      // return undefined if no item or more than one project selected\n      if (!this.firstItem || this.checkedProjectCount > 1) return undefined;\n\n      // recursively find project and task GL accounts\n      const findSalesGlAccount = container => {\n        let projectSalesGlAccount;\n        let taskSalesGlAccount;\n\n        // only consider selected or indeterminate children\n        const selected = container.children.filter(c => c.checked || c.indeterminate);\n        const multiple = selected.length > 1;\n        for (const child of selected) {\n          // skip non-resource nodes\n          if (child.classKind !== 'RESOURCE') continue;\n          const model = child.resource?.constructor.modelName;\n          if (model === 'project') {\n            projectSalesGlAccount = child.resource.effectiveSalesGlAccount;\n          } else if (model === 'task') {\n            if (taskSalesGlAccount) {\n              // two tasks found, cannot use task GL account\n              taskSalesGlAccount = undefined;\n              break;\n            }\n            taskSalesGlAccount = child.resource.belongsTo('salesGlAccount').value();\n          }\n\n          // if no task account yet and only one branch, go deeper\n          if (!taskSalesGlAccount && !multiple) {\n            const result = findSalesGlAccount(child);\n            projectSalesGlAccount ??= result.projectSalesGlAccount;\n            taskSalesGlAccount = result.taskSalesGlAccount;\n          }\n        }\n        return {\n          projectSalesGlAccount,\n          taskSalesGlAccount\n        };\n      };\n      const {\n        projectSalesGlAccount,\n        taskSalesGlAccount\n      } = findSalesGlAccount(this.firstItem);\n      // prefer task GL account over project\n      return taskSalesGlAccount ?? projectSalesGlAccount;\n    }\n    get checkedProjectCount() {\n      if (!this.firstItem) return 0;\n      let checkedProjectCount = 0;\n      for (const project of this.firstItem.children) {\n        if (project.checked || project.indeterminate) checkedProjectCount++;\n      }\n      return checkedProjectCount;\n    }\n    get itemHasValue() {\n      return this.subtotal > 0;\n    }\n    get allocatorWarning() {\n      if (this.checkedProjectCount > 1) {\n        return this.intl.t('components.invoice-item-editor-modal.youCanOnlyAllocateTheItemToOneProject');\n      }\n\n      // you don't need an allocation for $0 items\n      if (!this.itemHasValue) return true;\n      if (this.checkedProjectCount === 0) {\n        return this.intl.t('components.invoice-item-editor-modal.youMustAllocateTheItemToOneProject');\n      }\n      return true;\n    }\n    get hasStagePayment() {\n      return Boolean(this.args.item.belongsTo('stagePayment').id());\n    }\n    get shouldCheckAllocationValueMismatch() {\n      if (this.isSyncingAllocationValue) return false;\n      const hasAllocation = !!this.selectedAllocationValue.value;\n      if (hasAllocation && (!this.args.item.isNew || this.isUnitPriceChanged)) return true;\n      return false;\n    }\n    get hasAllocationValueMismatch() {\n      if (!this.shouldCheckAllocationValueMismatch) return false;\n      const allocationValue = this.selectedAllocationValue.value;\n      const itemSubtotal = this.subtotal;\n      return Math.abs(allocationValue - itemSubtotal) > TOLERANCE_VALUE;\n    }\n    get selectedAllocationValue() {\n      const useOriginalAllocationValue = !this.args.item.isNew && !this.isAllocationValueChanged;\n      const allocationValue = Number((useOriginalAllocationValue ? this.originalAllocationValue ?? this.allocationValue?.value : this.allocationValue?.value) || 0);\n      return {\n        value: allocationValue,\n        formatted: this.formatCurrency(allocationValue)\n      };\n    }\n    get allocationMisMatchValue() {\n      const allocationValue = Number(this.selectedAllocationValue.value || 0);\n      const itemSubtotal = Number(this.subtotal || 0);\n      const diff = itemSubtotal - allocationValue;\n      const formatted = this.formatCurrency(Math.abs(diff));\n      return {\n        value: diff,\n        formatted: this.formatCurrency(diff),\n        warningText: diff > 0 ? this.intl.t('components.invoice-item-editor-modal.overInvoicingWarningText', {\n          value: formatted\n        }) : this.intl.t('components.invoice-item-editor-modal.underInvoicingWarningText', {\n          value: formatted\n        })\n      };\n    }\n    onUnitPriceChange() {\n      this.isUnitPriceChanged = true;\n    }\n    get editDisabled() {\n      if (this.args.editDisabled) return true;\n      if (this.hasStagePayment) return true;\n      if (this.saveItem.isRunning) return true;\n      return false;\n    }\n    get allocationDisabled() {\n      if (this.args.allocationDisabled) return true;\n      if (this.hasStagePayment) return true;\n      return false;\n    }\n    formatCurrency(value) {\n      return this.numberFormat.format(value, {\n        style: 'currency',\n        dashZero: false\n      });\n    }\n    formatDuration(minutes) {\n      const hours = Math.floor(minutes / 60);\n      const displayMinutes = minutes % 60;\n      const hourLabel = hours === 1 ? 'hour' : 'hours';\n      let str = `${hours} ${hourLabel}`;\n      if (displayMinutes) {\n        const minuteLabel = displayMinutes === 1 ? 'min' : 'mins';\n        str += ` ${displayMinutes} ${minuteLabel}`;\n      }\n      return str;\n    }\n    // go through the items list and find the highest possible selection to be able to determine the selection\n    // we don't need to load them because a partial selection indicates that data is loaded below\n    async getSelectedItems() {\n      const items = [];\n      if (!this.firstItem?.checked && !this.firstItem?.indeterminate) return items;\n      await async function getItems(children) {\n        for (const child of children) {\n          if (child.isPristine) continue;\n          switch (child.classKind) {\n            case 'RESOURCE':\n              {\n                items.push(child);\n\n                // indeterminate means partial selection - recurse to collect actual selected items\n                if (child.indeterminate) {\n                  await getItems(child.children);\n                }\n                break;\n              }\n            case 'CATEGORY':\n              {\n                // if we have a indeterminate selection on a category, we know the data has been manually selected\n                // just recurse\n                if (child.indeterminate) {\n                  await getItems(child.children);\n                  break;\n                }\n\n                // because we can't send a category to the API, we need to load the actual resources and send them\n                let load;\n                while (load !== 'done') {\n                  load = await child.loadMore.perform();\n                }\n\n                // after loading all, check children\n                if (child.children.length) {\n                  return getItems(child.children);\n                }\n                break;\n              }\n          }\n        }\n      }(this.firstItem.children);\n      return items;\n    }\n\n    /* actions */\n    onChangeSalesGlAccount(account) {\n      this.invoiceItemChangeset.taxRate = account?.taxRate || 0;\n      this.taxRateIsPristine = false;\n    }\n    onSelectContainer(container) {\n      const existingIndex = this.items.findIndex(c => c === container);\n      if (existingIndex !== -1) {\n        // container already selected; trim list to that point\n        this.items = this.items.slice(0, existingIndex + 1);\n\n        // ensure children are loaded\n        this.activeItem.loadMore.perform();\n      } else {\n        // normal down navigation\n        this.items = [...this.items, container];\n        container.loadMore.perform();\n      }\n    }\n    onCheckboxClick() {\n      this.isSyncingAllocationValue = true;\n      this.isAllocationValueChanged = true;\n      (0, _runloop.next)(() => {\n        // automatically change the value when we're dealing with a cost plus selection\n        if (this.allocationValue.contractType === 'COST_PLUS') {\n          this.useAllocationValue();\n          this.isUnitPriceChanged = true;\n        }\n        this.isSyncingAllocationValue = false;\n      });\n\n      // only change the account if the tax rate hasn't already been modified\n      if (this.taxRateIsPristine) {\n        // wait for the item to become checked/unchecked\n        (0, _runloop.next)(() => {\n          const account = this.effectiveSalesGlAccount || null;\n          this.invoiceItemChangeset.set('glAccount', account);\n          this.invoiceItemChangeset.taxRate = account?.taxRate || 0;\n        });\n      }\n    }\n    async onChangeAllocationDate(event) {\n      const value = event.target.value;\n      this.allocationDate = value;\n      this.items = (0, _array.A)([this.projectsCategory()]);\n      await this.firstLoad.perform();\n    }\n    async onChangeContractType(type) {\n      this.contractType = type;\n      this.items = (0, _array.A)([this.projectsCategory()]);\n      await this.firstLoad.perform();\n    }\n    onChangeAllocationType(type) {\n      this.allocationType = type;\n    }\n    useAllocationValue() {\n      const value = this.selectedAllocationValue.value;\n\n      // the price is always entered positive - a negative allocation is carried\n      // by the quantity instead\n      this.invoiceItemChangeset.set('unitPrice', (0, _roundNumber.round2dp)(Math.abs(value)));\n      this.invoiceItemChangeset.set('quantity', value < 0 ? -1 : 1);\n    }\n  }, _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"numberFormat\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"accountingPlatform\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"glAccounts\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"invoiceItemChangeset\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"items\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, \"taxRateIsPristine\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, \"linkedProjectIds\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, \"originalAllocationValue\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, \"isUnitPriceChanged\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor19 = _applyDecoratedDescriptor(_class2.prototype, \"isAllocationValueChanged\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor20 = _applyDecoratedDescriptor(_class2.prototype, \"isSyncingAllocationValue\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"onUnitPriceChange\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onUnitPriceChange\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onChangeSalesGlAccount\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onChangeSalesGlAccount\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onSelectContainer\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onSelectContainer\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onCheckboxClick\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onCheckboxClick\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onChangeAllocationDate\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onChangeAllocationDate\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onChangeContractType\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onChangeContractType\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onChangeAllocationType\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onChangeAllocationType\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"useAllocationValue\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"useAllocationValue\"), _class2.prototype), _class2));\n});","define(\"portal/components/invoice-item-table-pm\", [\"exports\", \"@ember/component\", \"@ember/runloop\", \"jquery\", \"@ember/template-factory\"], function (_exports, _component, _runloop, _jquery, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/runloop\",0,\"jquery\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! Table head }}\n  <thead>\n    <tr>\n      {{#if this.isEditing}}\n        {{! In editing mode, show code and description separately }}\n        <th class='invoice-editor__table-small-cell'>{{t\n            'shared.report-builder.Product code'\n          }}</th>\n        <th>{{t 'common.Description'}}</th>\n      {{else}}\n        {{! In non editing mode, show the code and description together and include the allocation }}\n        <th>{{t 'common.Item'}}</th>\n        <th>{{t 'common.Allocated'}}</th>\n      {{/if}}\n  \n      {{#if (and this.xeroIntegration.ready (not this.invoice.isNew))}}\n        <th class='invoice-editor__table-small-cell'>{{t\n            'common.Xero account'\n          }}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</th>\n      {{else if (and this.quickbooksIntegration.ready (not this.invoice.isNew))}}\n        <th class='invoice-editor__table-small-cell'>\n          {{t 'components.invoice-item-table-pm.QuickBooks account'}}\n          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</th>\n      {{/if}}\n      <th class='invoice-editor__table-small-cell'>{{t 'common.Quantity'}}</th>\n      <th class='invoice-editor__table-small-cell'>{{t 'common.Unit cost'}}</th>\n      <th class='invoice-editor__table-small-cell'>{{t 'common.Total cost'}}</th>\n      {{#if (and (not this.isEditing) this.invoice.items.length)}}\n        {{! Don't show allocation selection checkboxes if the page is in editing mode }}\n        <th\n          class='invoice-editor__table-small-cell'\n          onclick={{action this.toggleSelectAll}}\n          data-test-select-all-trigger=''\n        >\n          <Input @type='checkbox' @checked={{this.allSelected}} />\n        </th>\n      {{/if}}\n  \n      {{#if (and this.isEditing (gt this.invoice.activeItems.length 1))}}\n        <th class='invoice-editor__table-small-cell'>{{t 'common.Delete'}}</th>\n      {{/if}}\n    </tr>\n  </thead>\n  \n  {{! Items in table body }}\n  <tbody>\n    {{#each this.invoice.sortedItems as |item index|}}\n      {{#unless item.isDeleted}}\n        <tr\n          class={{unless this.isEditing 'invoice-editor__table-row--hover'}}\n          onclick={{unless this.isEditing (action this.toggleSelectItem item)}}\n        >\n          {{#if this.isEditing}}\n            {{! In editing mode, show code and description separately }}\n            <td class='invoice-editor__table-small-cell'>\n              <Input\n                class={{concat\n                  'text-input data-table__cell-cover invoice-item-table--autofocus'\n                  (unless (or item.productCode item.description) ' invalid')\n                }}\n                @value={{item.productCode}}\n                title={{item.productCode}}\n                placeholder={{t 'shared.report-builder.Product code'}}\n                data-test-item-product-code-input={{index}}\n                autofocus='true'\n              />\n            </td>\n  \n            <td>\n              <ComboBox\n                @class={{unless (or item.description item.productCode) 'invalid'}}\n                @key='description'\n                @value={{item.description}}\n                @options={{this.names}}\n                @onSet={{fn (mut item.description)}}\n                @placeholder={{t 'shared.task.Product description'}}\n                data-test-item-name-input={{index}}\n              />\n            </td>\n          {{else}}\n            {{! In non editing mode, show the code and description together and include the allocation }}\n            <td\n              class='invoice-editor__table-big-cell'\n              title={{concat\n                (if this.productCode (concat item.productCode ' — '))\n                item.description\n              }}\n            >\n              {{if\n                item.productCode\n                (concat item.productCode ' — ')\n              }}{{item.description}}\n            </td>\n  \n            <td\n              class='invoice-editor__table-big-cell'\n              title='{{item.assignment}}'\n            >\n              {{item.assignment}}\n            </td>\n          {{/if}}\n  \n          {{#if (and this.xeroIntegration.ready (not this.invoice.isNew))}}\n            <td>\n              {{#if this.isEditing}}\n                <PowerSelect\n                  @options={{this.xeroAccounts}}\n                  @selected={{item.glAccount}}\n                  @onChange={{action this.setItemXeroAccount item}}\n                  @disabled={{this.xeroFetching}}\n                  @searchEnabled={{true}}\n                  @searchField='name'\n                  @placeholder={{t 'shared.bill.000 - Account'}}\n                  @allowClear={{true}}\n                  @loadingMessage={{t 'shared.bill.Loading Xero accounts'}}\n                  @noMatchesMessage={{t\n                    'components.invoice-item-table-pm.No Xero accounts found'\n                  }}\n                  @afterOptionsComponent={{component\n                    'power-select-after-options-button'\n                    onClick=this.updateXeroAccounts\n                    icon='sync'\n                    text=(t 'shared.bill.Click to update Xero accounts')\n                    isLoading=this.xeroFetching\n                    loadingText=(t 'shared.bill.Loading Xero accounts')\n                  }}\n                  as |option|\n                >\n                  {{option.code}}\n                  -\n                  {{option.name}}\n                </PowerSelect>\n              {{else}}\n                {{if\n                  item.glAccount\n                  (concat item.glAccount.code ' - ' item.glAccount.name)\n                  '–'\n                }}\n              {{/if}}\n            </td>\n          {{else if\n            (and this.quickbooksIntegration.ready (not this.invoice.isNew))\n          }}\n            <td>\n              {{#if this.isEditing}}\n                <PowerSelect\n                  @options={{this.quickbooksAccounts}}\n                  @selected={{item.glAccount}}\n                  @onChange={{action this.setItemQuickbooksAccount item}}\n                  @disabled={{this.quickbooksFetching}}\n                  @searchEnabled={{true}}\n                  @searchField='name'\n                  @placeholder={{t 'shared.bill.000 - Account'}}\n                  @allowClear={{true}}\n                  @loadingMessage='Loading QuickBooks accounts'\n                  @noMatchesMessage='No QuickBooks accounts found'\n                  @afterOptionsComponent={{component\n                    'power-select-after-options-button'\n                    onClick=this.updateQuickbooksAccounts\n                    icon='sync'\n                    text='Click to update QuickBooks accounts'\n                    isLoading=this.quickbooksFetching\n                    loadingText='Loading QuickBooks accounts'\n                  }}\n                  as |option|\n                >\n                  {{option.name}}\n                </PowerSelect>\n              {{else}}\n                {{if item.glAccount item.glAccount.name '–'}}\n              {{/if}}\n            </td>\n          {{/if}}\n  \n          <td class='text-right'>\n            {{! Item Quantity }}\n            {{#if this.isEditing}}\n              <Input\n                class={{concat\n                  'text-input text-right data-table__cell-cover'\n                  (unless (or item.quantity (eq item.quantity 0)) ' invalid')\n                }}\n                @type='number'\n                @value={{item.quantity}}\n                placeholder='0'\n                data-test-item-quantity-input={{index}}\n              />\n            {{else}}\n              {{item.quantity}}\n            {{/if}}\n          </td>\n  \n          <td class='text-right'>\n            {{! Item Unit Price }}\n            {{#if this.isEditing}}\n              <FormattedInput\n                @class={{concat\n                  'text-input text-right data-table__cell-cover invoice-item-table--new-line-item-action'\n                  (unless (or item.unitPrice (eq item.unitPrice 0)) ' invalid')\n                }}\n                @format='currency'\n                @formatterOptions={{hash dashZero=false}}\n                @number={{item.unitPrice}}\n                @placeholder='$0.00'\n                data-test-item-unit-price-input={{index}}\n                @update={{fn (mut item.unitPrice)}}\n              />\n            {{else}}\n              {{number-format item.unitPrice style='currency' dashZero=true}}\n            {{/if}}\n          </td>\n  \n          <td class='text-right'>\n            {{! Item total price }}\n            {{number-format item.totalPrice style='currency' dashZero=true}}\n          </td>\n  \n          {{#if (and (not this.isEditing) this.invoice.items.length)}}\n            {{! Item selection checkbox }}\n            <td>\n              <Input @type='checkbox' @checked={{get this.isSelected index}} />\n            </td>\n          {{/if}}\n  \n          {{#if (and this.isEditing (gt this.invoice.activeItems.length 1))}}\n            <td class='text-center'>\n              <button\n                class='text-button text-button--delete'\n                onClick={{action this.deleteItem item}}\n                data-test-delete-item-button='index'\n                type='button'\n              >\n                <FaIcon @icon='trash' />\n              </button>\n            </td>\n          {{/if}}\n        </tr>\n      {{/unless}}\n    {{else}}\n      <tr><td colspan='6'>{{t\n            'components.invoice-item-table-pm.No items to show'\n          }}</td></tr>\n    {{/each}}\n  </tbody>\n  */\n  {\n    \"id\": \"OifYB35V\",\n    \"block\": \"[[[10,\\\"thead\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEditing\\\"]],[[[1,\\\"      \\\"],[10,\\\"th\\\"],[14,0,\\\"invoice-editor__table-small-cell\\\"],[12],[1,[28,[35,4],[\\\"shared.report-builder.Product code\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,4],[\\\"common.Description\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,4],[\\\"common.Item\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,4],[\\\"common.Allocated\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[[30,0,[\\\"xeroIntegration\\\",\\\"ready\\\"]],[28,[37,6],[[30,0,[\\\"invoice\\\",\\\"isNew\\\"]]],null]],null],[[[1,\\\"      \\\"],[10,\\\"th\\\"],[14,0,\\\"invoice-editor__table-small-cell\\\"],[12],[1,[28,[35,4],[\\\"common.Xero account\\\"],null]],[1,\\\"         \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,5],[[30,0,[\\\"quickbooksIntegration\\\",\\\"ready\\\"]],[28,[37,6],[[30,0,[\\\"invoice\\\",\\\"isNew\\\"]]],null]],null],[[[1,\\\"      \\\"],[10,\\\"th\\\"],[14,0,\\\"invoice-editor__table-small-cell\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"components.invoice-item-table-pm.QuickBooks account\\\"],null]],[1,\\\"\\\\n                 \\\"],[13],[1,\\\"\\\\n    \\\"]],[]],null]],[]]],[1,\\\"    \\\"],[10,\\\"th\\\"],[14,0,\\\"invoice-editor__table-small-cell\\\"],[12],[1,[28,[35,4],[\\\"common.Quantity\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[10,\\\"th\\\"],[14,0,\\\"invoice-editor__table-small-cell\\\"],[12],[1,[28,[35,4],[\\\"common.Unit cost\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[10,\\\"th\\\"],[14,0,\\\"invoice-editor__table-small-cell\\\"],[12],[1,[28,[35,4],[\\\"common.Total cost\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[[28,[37,6],[[30,0,[\\\"isEditing\\\"]]],null],[30,0,[\\\"invoice\\\",\\\"items\\\",\\\"length\\\"]]],null],[[[1,\\\"      \\\"],[10,\\\"th\\\"],[14,0,\\\"invoice-editor__table-small-cell\\\"],[15,\\\"onclick\\\",[28,[37,7],[[30,0],[30,0,[\\\"toggleSelectAll\\\"]]],null]],[14,\\\"data-test-select-all-trigger\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,8],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"allSelected\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[[30,0,[\\\"isEditing\\\"]],[28,[37,9],[[30,0,[\\\"invoice\\\",\\\"activeItems\\\",\\\"length\\\"]],1],null]],null],[[[1,\\\"      \\\"],[10,\\\"th\\\"],[14,0,\\\"invoice-editor__table-small-cell\\\"],[12],[1,[28,[35,4],[\\\"common.Delete\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,12],[[28,[37,12],[[30,0,[\\\"invoice\\\",\\\"sortedItems\\\"]]],null]],null],null,[[[41,[51,[30,1,[\\\"isDeleted\\\"]]],[[[1,\\\"      \\\"],[10,\\\"tr\\\"],[15,0,[52,[51,[30,0,[\\\"isEditing\\\"]]],\\\"invoice-editor__table-row--hover\\\"]],[15,\\\"onclick\\\",[52,[51,[30,0,[\\\"isEditing\\\"]]],[28,[37,7],[[30,0],[30,0,[\\\"toggleSelectItem\\\"]],[30,1]],null]]],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEditing\\\"]],[[[1,\\\"          \\\"],[10,\\\"td\\\"],[14,0,\\\"invoice-editor__table-small-cell\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,8],[[16,0,[28,[37,15],[\\\"text-input data-table__cell-cover invoice-item-table--autofocus\\\",[52,[51,[28,[37,16],[[30,1,[\\\"productCode\\\"]],[30,1,[\\\"description\\\"]]],null]],\\\" invalid\\\"]],null]],[16,\\\"title\\\",[30,1,[\\\"productCode\\\"]]],[16,\\\"placeholder\\\",[28,[37,4],[\\\"shared.report-builder.Product code\\\"],null]],[16,\\\"data-test-item-product-code-input\\\",[30,2]],[24,\\\"autofocus\\\",\\\"true\\\"]],[[\\\"@value\\\"],[[30,1,[\\\"productCode\\\"]]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,17],[[16,\\\"data-test-item-name-input\\\",[30,2]]],[[\\\"@class\\\",\\\"@key\\\",\\\"@value\\\",\\\"@options\\\",\\\"@onSet\\\",\\\"@placeholder\\\"],[[52,[51,[28,[37,16],[[30,1,[\\\"description\\\"]],[30,1,[\\\"productCode\\\"]]],null]],\\\"invalid\\\"],\\\"description\\\",[30,1,[\\\"description\\\"]],[30,0,[\\\"names\\\"]],[28,[37,18],[[28,[37,19],[[30,1,[\\\"description\\\"]]],null]],null],[28,[37,4],[\\\"shared.task.Product description\\\"],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,\\\"td\\\"],[14,0,\\\"invoice-editor__table-big-cell\\\"],[15,\\\"title\\\",[28,[37,15],[[52,[30,0,[\\\"productCode\\\"]],[28,[37,15],[[30,1,[\\\"productCode\\\"]],\\\" — \\\"],null]],[30,1,[\\\"description\\\"]]],null]],[12],[1,\\\"\\\\n            \\\"],[1,[52,[30,1,[\\\"productCode\\\"]],[28,[37,15],[[30,1,[\\\"productCode\\\"]],\\\" — \\\"],null]]],[1,[30,1,[\\\"description\\\"]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,\\\"td\\\"],[14,0,\\\"invoice-editor__table-big-cell\\\"],[15,\\\"title\\\",[29,[[30,1,[\\\"assignment\\\"]]]]],[12],[1,\\\"\\\\n            \\\"],[1,[30,1,[\\\"assignment\\\"]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[[30,0,[\\\"xeroIntegration\\\",\\\"ready\\\"]],[28,[37,6],[[30,0,[\\\"invoice\\\",\\\"isNew\\\"]]],null]],null],[[[1,\\\"          \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEditing\\\"]],[[[1,\\\"              \\\"],[8,[39,20],null,[[\\\"@options\\\",\\\"@selected\\\",\\\"@onChange\\\",\\\"@disabled\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@allowClear\\\",\\\"@loadingMessage\\\",\\\"@noMatchesMessage\\\",\\\"@afterOptionsComponent\\\"],[[30,0,[\\\"xeroAccounts\\\"]],[30,1,[\\\"glAccount\\\"]],[28,[37,7],[[30,0],[30,0,[\\\"setItemXeroAccount\\\"]],[30,1]],null],[30,0,[\\\"xeroFetching\\\"]],true,\\\"name\\\",[28,[37,4],[\\\"shared.bill.000 - Account\\\"],null],true,[28,[37,4],[\\\"shared.bill.Loading Xero accounts\\\"],null],[28,[37,4],[\\\"components.invoice-item-table-pm.No Xero accounts found\\\"],null],[50,\\\"power-select-after-options-button\\\",0,null,[[\\\"onClick\\\",\\\"icon\\\",\\\"text\\\",\\\"isLoading\\\",\\\"loadingText\\\"],[[30,0,[\\\"updateXeroAccounts\\\"]],\\\"sync\\\",[28,[37,4],[\\\"shared.bill.Click to update Xero accounts\\\"],null],[30,0,[\\\"xeroFetching\\\"]],[28,[37,4],[\\\"shared.bill.Loading Xero accounts\\\"],null]]]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[1,[30,3,[\\\"code\\\"]]],[1,\\\"\\\\n                -\\\\n                \\\"],[1,[30,3,[\\\"name\\\"]]],[1,\\\"\\\\n              \\\"]],[3]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[52,[30,1,[\\\"glAccount\\\"]],[28,[37,15],[[30,1,[\\\"glAccount\\\",\\\"code\\\"]],\\\" - \\\",[30,1,[\\\"glAccount\\\",\\\"name\\\"]]],null],\\\"–\\\"]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,5],[[30,0,[\\\"quickbooksIntegration\\\",\\\"ready\\\"]],[28,[37,6],[[30,0,[\\\"invoice\\\",\\\"isNew\\\"]]],null]],null],[[[1,\\\"          \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEditing\\\"]],[[[1,\\\"              \\\"],[8,[39,20],null,[[\\\"@options\\\",\\\"@selected\\\",\\\"@onChange\\\",\\\"@disabled\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@allowClear\\\",\\\"@loadingMessage\\\",\\\"@noMatchesMessage\\\",\\\"@afterOptionsComponent\\\"],[[30,0,[\\\"quickbooksAccounts\\\"]],[30,1,[\\\"glAccount\\\"]],[28,[37,7],[[30,0],[30,0,[\\\"setItemQuickbooksAccount\\\"]],[30,1]],null],[30,0,[\\\"quickbooksFetching\\\"]],true,\\\"name\\\",[28,[37,4],[\\\"shared.bill.000 - Account\\\"],null],true,\\\"Loading QuickBooks accounts\\\",\\\"No QuickBooks accounts found\\\",[50,\\\"power-select-after-options-button\\\",0,null,[[\\\"onClick\\\",\\\"icon\\\",\\\"text\\\",\\\"isLoading\\\",\\\"loadingText\\\"],[[30,0,[\\\"updateQuickbooksAccounts\\\"]],\\\"sync\\\",\\\"Click to update QuickBooks accounts\\\",[30,0,[\\\"quickbooksFetching\\\"]],\\\"Loading QuickBooks accounts\\\"]]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[1,[30,4,[\\\"name\\\"]]],[1,\\\"\\\\n              \\\"]],[4]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[52,[30,1,[\\\"glAccount\\\"]],[30,1,[\\\"glAccount\\\",\\\"name\\\"]],\\\"–\\\"]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]],null]],[]]],[1,\\\"\\\\n        \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEditing\\\"]],[[[1,\\\"            \\\"],[8,[39,8],[[16,0,[28,[37,15],[\\\"text-input text-right data-table__cell-cover\\\",[52,[51,[28,[37,16],[[30,1,[\\\"quantity\\\"]],[28,[37,22],[[30,1,[\\\"quantity\\\"]],0],null]],null]],\\\" invalid\\\"]],null]],[24,\\\"placeholder\\\",\\\"0\\\"],[16,\\\"data-test-item-quantity-input\\\",[30,2]]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"number\\\",[30,1,[\\\"quantity\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[30,1,[\\\"quantity\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEditing\\\"]],[[[1,\\\"            \\\"],[8,[39,23],[[16,\\\"data-test-item-unit-price-input\\\",[30,2]]],[[\\\"@class\\\",\\\"@format\\\",\\\"@formatterOptions\\\",\\\"@number\\\",\\\"@placeholder\\\",\\\"@update\\\"],[[28,[37,15],[\\\"text-input text-right data-table__cell-cover invoice-item-table--new-line-item-action\\\",[52,[51,[28,[37,16],[[30,1,[\\\"unitPrice\\\"]],[28,[37,22],[[30,1,[\\\"unitPrice\\\"]],0],null]],null]],\\\" invalid\\\"]],null],\\\"currency\\\",[28,[37,24],null,[[\\\"dashZero\\\"],[false]]],[30,1,[\\\"unitPrice\\\"]],\\\"$0.00\\\",[28,[37,18],[[28,[37,19],[[30,1,[\\\"unitPrice\\\"]]],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,25],[[30,1,[\\\"unitPrice\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"          \\\"],[1,[28,[35,25],[[30,1,[\\\"totalPrice\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,5],[[28,[37,6],[[30,0,[\\\"isEditing\\\"]]],null],[30,0,[\\\"invoice\\\",\\\"items\\\",\\\"length\\\"]]],null],[[[1,\\\"          \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,8],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,26],[[30,0,[\\\"isSelected\\\"]],[30,2]],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[[30,0,[\\\"isEditing\\\"]],[28,[37,9],[[30,0,[\\\"invoice\\\",\\\"activeItems\\\",\\\"length\\\"]],1],null]],null],[[[1,\\\"          \\\"],[10,\\\"td\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"button\\\"],[14,0,\\\"text-button text-button--delete\\\"],[15,\\\"onClick\\\",[28,[37,7],[[30,0],[30,0,[\\\"deleteItem\\\"]],[30,1]],null]],[14,\\\"data-test-delete-item-button\\\",\\\"index\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,28],null,[[\\\"@icon\\\"],[\\\"trash\\\"]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[1,2]],[[[1,\\\"    \\\"],[10,\\\"tr\\\"],[12],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"6\\\"],[12],[1,[28,[35,4],[\\\"components.invoice-item-table-pm.No items to show\\\"],null]],[13],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"item\\\",\\\"index\\\",\\\"option\\\",\\\"option\\\"],false,[\\\"thead\\\",\\\"tr\\\",\\\"if\\\",\\\"th\\\",\\\"t\\\",\\\"and\\\",\\\"not\\\",\\\"action\\\",\\\"input\\\",\\\"gt\\\",\\\"tbody\\\",\\\"each\\\",\\\"-track-array\\\",\\\"unless\\\",\\\"td\\\",\\\"concat\\\",\\\"or\\\",\\\"combo-box\\\",\\\"fn\\\",\\\"mut\\\",\\\"power-select\\\",\\\"component\\\",\\\"eq\\\",\\\"formatted-input\\\",\\\"hash\\\",\\\"number-format\\\",\\\"get\\\",\\\"button\\\",\\\"fa-icon\\\"]]\",\n    \"moduleName\": \"portal/components/invoice-item-table-pm.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    tagName: 'table',\n    classNames: ['invoice-editor__table'],\n    keyDown(event) {\n      const {\n        key,\n        target\n      } = event;\n      if ((0, _jquery.default)(target).is('.invoice-item-table--new-line-item-action:last')) {\n        switch (key) {\n          case 'Tab':\n            this.addItem();\n            (0, _runloop.next)(() => (0, _jquery.default)('.invoice-item-table--autofocus:last').focus());\n            break;\n          default:\n            break;\n        }\n      }\n    }\n  }));\n});","define(\"portal/components/invoice-type-response-handler\", [\"exports\", \"@ember/component\", \"@glimmer/tracking\", \"@ember/template-factory\"], function (_exports, _component, _tracking, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@glimmer/tracking\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <ModalDialog\n    @onClose={{this.onCancel}}\n    @translucentOverlay={{true}}\n    @overlayClass='modal'\n    @containerClass='block-module'\n  >\n    {{#if @responses.length}}\n      <p class='p'>{{t 'shared.bill.Some bills failed to send'}}</p>\n      <div class='invoice-type-response-handler__table-container'>\n        <table class='invoice-type-response-handler__table'>\n          <thead>\n            <tr>\n              <th>{{t 'shared.bill.Reason for failure'}}</th>\n            </tr>\n          </thead>\n          <tbody>\n            {{#each @responses as |error|}}\n              <tr data-test-bill-type-resource-handler-error>\n                <td>{{error}}</td>\n              </tr>\n            {{/each}}\n          </tbody>\n        </table>\n      </div>\n    {{/if}}\n  \n    {{#if this.attachmentErrors.length}}\n      <p class='p'>{{t 'shared.bill.Some attachments failed to send to Xero'}}</p>\n      <div class='invoice-type-response-handler__table-container'>\n        <table class='invoice-type-response-handler__table'>\n          <thead>\n            <tr>\n              <th>{{t 'shared.bill.Reason for failure'}}</th>\n            </tr>\n          </thead>\n          <tbody>\n            {{#each this.attachmentErrors as |error|}}\n              <tr data-test-bill-type-resource-handler-attachment-error>\n                <td>{{error.rejectedReason}}</td>\n              </tr>\n            {{/each}}\n          </tbody>\n        </table>\n      </div>\n    {{/if}}\n    <div class='block-module__footer'>\n      <button\n        class='button float-end'\n        data-test-bill-type-resource-handler-okay-button\n        type='button'\n        {{on 'click' this.onCancel}}\n      >{{t 'common.Okay'}}</button>\n    </div>\n  </ModalDialog>\n  */\n  {\n    \"id\": \"biOh3pjl\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@overlayClass\\\",\\\"@containerClass\\\"],[[30,0,[\\\"onCancel\\\"]],true,\\\"modal\\\",\\\"block-module\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"length\\\"]],[[[1,\\\"    \\\"],[10,2],[14,0,\\\"p\\\"],[12],[1,[28,[35,3],[\\\"shared.bill.Some bills failed to send\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"invoice-type-response-handler__table-container\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"table\\\"],[14,0,\\\"invoice-type-response-handler__table\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,3],[\\\"shared.bill.Reason for failure\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,11],[[28,[37,11],[[30,1]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"tr\\\"],[14,\\\"data-test-bill-type-resource-handler-error\\\",\\\"\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,[30,2]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"attachmentErrors\\\",\\\"length\\\"]],[[[1,\\\"    \\\"],[10,2],[14,0,\\\"p\\\"],[12],[1,[28,[35,3],[\\\"shared.bill.Some attachments failed to send to Xero\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"invoice-type-response-handler__table-container\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"table\\\"],[14,0,\\\"invoice-type-response-handler__table\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,3],[\\\"shared.bill.Reason for failure\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,11],[[28,[37,11],[[30,0,[\\\"attachmentErrors\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"tr\\\"],[14,\\\"data-test-bill-type-resource-handler-attachment-error\\\",\\\"\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,[30,3,[\\\"rejectedReason\\\"]]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[10,0],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"button float-end\\\"],[24,\\\"data-test-bill-type-resource-handler-okay-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,14],[\\\"click\\\",[30,0,[\\\"onCancel\\\"]]],null],[12],[1,[28,[35,3],[\\\"common.Okay\\\"],null]],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]]]],[\\\"@responses\\\",\\\"error\\\",\\\"error\\\"],false,[\\\"modal-dialog\\\",\\\"if\\\",\\\"p\\\",\\\"t\\\",\\\"div\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"tbody\\\",\\\"each\\\",\\\"-track-array\\\",\\\"td\\\",\\\"button\\\",\\\"on\\\"]]\",\n    \"moduleName\": \"portal/components/invoice-type-response-handler.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"responses\", _descriptor, this);\n    }\n    get attachmentErrors() {\n      const responses = this.responses.reduce((attachments, response) => [...attachments, ...(response.attachments || [])], []);\n      const errors = responses.filter(response => response.rejected);\n      return errors;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"responses\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _class));\n});","define(\"portal/components/invoices-uploader\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"ember-changeset\", \"@glimmer/tracking\", \"@ember/service\", \"@ember/object\", \"string-similarity\", \"csv-parse/browser/esm\", \"portal/utils/parse-currency-string\", \"portal/utils/search-filter\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _emberChangeset, _tracking, _service, _object, _stringSimilarity, _esm, _parseCurrencyString, _searchFilter, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _class2, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"ember-changeset\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"@ember/object\",0,\"string-similarity\",0,\"ember-concurrency\",0,\"csv-parse/browser/esm\",0,\"portal/utils/parse-currency-string\",0,\"portal/utils/search-filter\",0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <ModalDialog\n    @overlayClass='modal'\n    @translucentOverlay={{true}}\n    @onClose={{@onClose}}\n    @containerClass='modal-content modal-dialog-scrollable w-auto max-width-75 h-auto'\n  >\n    <div class='modal-content' style='max-width: 95vw;'>\n      <div class='modal-header'>\n        <h5 class='modal-title'>\n          {{t 'components.invoices-uploader.Import invoices'}}\n        </h5>\n      </div>\n  \n      <div class='modal-body overflow-auto'>\n        {{#if this.invoiceFile}}\n          <div class='w-25'>\n            <label class='mb-1'>\n              {{t 'common.Project'}}\n              <sup class='text-danger'>*</sup>\n            </label>\n            <SearchSelector\n              @onSelect={{this.setProject}}\n              @onLoad={{this.loadProjects}}\n              @noDataMessage={{t 'common.No projects'}}\n              @key='project'\n              @optionKeys={{array 'name'}}\n              @model={{this.projectChangeSet}}\n              @forceValidationVisible={{gt this.uploadInvoices.performCount 0}}\n            />\n          </div>\n          <p>\n            {{t 'shared.uploader.pleaseIdentifyTheColumnTypesIsInTheDocument'}}\n          </p>\n          <div class='table-responsive'>\n            <table class='table table-sm table-bordered'>\n              <thead>\n                <tr>\n                  {{#each this.invoiceFile.columnTypes as |type index|}}\n                    <th class='text-center align-top'>\n                      <PtlInput\n                        style='min-width: 85px;'\n                        @type='select'\n                        @label={{number-to-char index}}\n                        {{! the key needs to be a string }}\n                        @key={{concat index}}\n                        @options={{this.invoiceFile.columnTypeOptions}}\n                        @model={{this.invoiceFile.columnTypeForm}}\n                        @selectNoBlankOption={{true}}\n                        @forceValidationVisible={{gt\n                          this.continue.performCount\n                          0\n                        }}\n                      />\n                    </th>\n                  {{/each}}\n                </tr>\n              </thead>\n              <tbody>\n                {{#each this.invoiceFile.sampleRows as |columns|}}\n                  <tr>\n                    {{#each columns as |column index|}}\n                      <td\n                        class='no-wrap text-truncate\n                          {{if\n                            (eq\n                              (get this.invoiceFile.columnTypeForm index)\n                              \"do-not-import\"\n                            )\n                            \"opacity-25\"\n                          }}'\n                        style='max-width: 200px;'\n                        title={{column}}\n                      >\n                        {{column}}\n                      </td>\n                    {{/each}}\n                  </tr>\n                {{/each}}\n              </tbody>\n            </table>\n          </div>\n  \n          <div class='d-flex justify-content-end p-2'>\n            {{#if this.uploadInvoices.isRunning}}\n              <button\n                type='button'\n                class='btn btn-primary ms-2'\n                disabled={{true}}\n              >\n                <span\n                  class='spinner-border spinner-border-sm'\n                ></span>&nbsp;&nbsp;{{t 'common.uploading'}}…\n              </button>\n            {{else}}\n              <button\n                class='btn btn-secondary'\n                type='button'\n                {{on 'click' this.onClear}}\n              >\n                {{t 'shared.uploader.Upload a different file'}}\n              </button>\n            {{/if}}\n          </div>\n        {{else}}\n          <DragAndDropContainer\n            @onUploadComplete={{this.onUpload}}\n            @isDragAndDropVisible={{true}}\n          >\n            <p class='text-center'>\n              {{t 'components.invoices-uploader.uploadInvoiceModalBody'}}\n            </p>\n            <a\n              class='btn btn-link align-self-center mb-3'\n              href='/assets/example-invoices-file-329566189a769091832b514177383e26.csv'\n              download='example-invoices-file-329566189a769091832b514177383e26.csv'\n            >\n              <FaIcon @icon='download' />&nbsp;&nbsp;\n              {{t 'shared.uploader.Download example file'}}\n            </a>\n          </DragAndDropContainer>\n        {{/if}}\n      </div>\n  \n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          disabled={{this.isLoading}}\n          {{on 'click' @onClose}}\n        >\n          {{t 'common.Cancel'}}\n        </button>\n        {{#if this.invoiceFile}}\n          <button\n            class='btn btn-primary'\n            type='button'\n            {{on 'click' (fn (perform this.uploadInvoices))}}\n            disabled={{this.uploadInvoices.isRunning}}\n          >\n            {{#if this.uploadInvoices.isRunning}}\n              {{t 'components.invoices-uploader.Importing invoices'}}&hellip;\n            {{else}}\n              {{t 'components.invoices-uploader.Import invoices'}}\n            {{/if}}\n          </button>\n        {{/if}}\n      </div>\n    </div>\n  </ModalDialog>\n  */\n  {\n    \"id\": \"oUEZ4DkH\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@overlayClass\\\",\\\"@translucentOverlay\\\",\\\"@onClose\\\",\\\"@containerClass\\\"],[\\\"modal\\\",true,[30,1],\\\"modal-content modal-dialog-scrollable w-auto max-width-75 h-auto\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"modal-content\\\"],[14,5,\\\"max-width: 95vw;\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h5\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,3],[\\\"components.invoices-uploader.Import invoices\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-body overflow-auto\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"invoiceFile\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"w-25\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,3],[\\\"common.Project\\\"],null]],[1,\\\"\\\\n            \\\"],[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[39,7],null,[[\\\"@onSelect\\\",\\\"@onLoad\\\",\\\"@noDataMessage\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[[30,0,[\\\"setProject\\\"]],[30,0,[\\\"loadProjects\\\"]],[28,[37,3],[\\\"common.No projects\\\"],null],\\\"project\\\",[28,[37,8],[\\\"name\\\"],null],[30,0,[\\\"projectChangeSet\\\"]],[28,[37,9],[[30,0,[\\\"uploadInvoices\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,2],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,3],[\\\"shared.uploader.pleaseIdentifyTheColumnTypesIsInTheDocument\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"table-responsive\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-sm table-bordered\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,15],[[28,[37,15],[[30,0,[\\\"invoiceFile\\\",\\\"columnTypes\\\"]]],null]],null],null,[[[1,\\\"                  \\\"],[10,\\\"th\\\"],[14,0,\\\"text-center align-top\\\"],[12],[1,\\\"\\\\n                    \\\"],[8,[39,17],[[24,5,\\\"min-width: 85px;\\\"]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@options\\\",\\\"@model\\\",\\\"@selectNoBlankOption\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",[28,[37,18],[[30,3]],null],[28,[37,19],[[30,3]],null],[30,0,[\\\"invoiceFile\\\",\\\"columnTypeOptions\\\"]],[30,0,[\\\"invoiceFile\\\",\\\"columnTypeForm\\\"]],true,[28,[37,9],[[30,0,[\\\"continue\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[2,3]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,15],[[28,[37,15],[[30,0,[\\\"invoiceFile\\\",\\\"sampleRows\\\"]]],null]],null],null,[[[1,\\\"                \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,15],[[28,[37,15],[[30,4]],null]],null],null,[[[1,\\\"                    \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"no-wrap text-truncate\\\\n                        \\\",[52,[28,[37,22],[[28,[37,23],[[30,0,[\\\"invoiceFile\\\",\\\"columnTypeForm\\\"]],[30,6]],null],\\\"do-not-import\\\"],null],\\\"opacity-25\\\"]]]],[14,5,\\\"max-width: 200px;\\\"],[15,\\\"title\\\",[30,5]],[12],[1,\\\"\\\\n                      \\\"],[1,[30,5]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[5,6]],null],[1,\\\"                \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"d-flex justify-content-end p-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"uploadInvoices\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary ms-2\\\"],[15,\\\"disabled\\\",true],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n              \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,3],[\\\"common.uploading\\\"],null]],[1,\\\"…\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,26],[\\\"click\\\",[30,0,[\\\"onClear\\\"]]],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,3],[\\\"shared.uploader.Upload a different file\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[8,[39,27],null,[[\\\"@onUploadComplete\\\",\\\"@isDragAndDropVisible\\\"],[[30,0,[\\\"onUpload\\\"]],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[10,2],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,3],[\\\"components.invoices-uploader.uploadInvoiceModalBody\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,3],[14,0,\\\"btn btn-link align-self-center mb-3\\\"],[14,6,\\\"/assets/example-invoices-file-329566189a769091832b514177383e26.csv\\\"],[14,\\\"download\\\",\\\"example-invoices-file-329566189a769091832b514177383e26.csv\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,29],null,[[\\\"@icon\\\"],[\\\"download\\\"]],null],[1,\\\"  \\\\n            \\\"],[1,[28,[35,3],[\\\"shared.uploader.Download example file\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[24,4,\\\"button\\\"],[4,[38,26],[\\\"click\\\",[30,1]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,3],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"invoiceFile\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"uploadInvoices\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,26],[\\\"click\\\",[28,[37,30],[[28,[37,31],[[30,0,[\\\"uploadInvoices\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"uploadInvoices\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,3],[\\\"components.invoices-uploader.Importing invoices\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,3],[\\\"components.invoices-uploader.Import invoices\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]]]],[\\\"@onClose\\\",\\\"type\\\",\\\"index\\\",\\\"columns\\\",\\\"column\\\",\\\"index\\\"],false,[\\\"modal-dialog\\\",\\\"div\\\",\\\"h5\\\",\\\"t\\\",\\\"if\\\",\\\"label\\\",\\\"sup\\\",\\\"search-selector\\\",\\\"array\\\",\\\"gt\\\",\\\"p\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"each\\\",\\\"-track-array\\\",\\\"th\\\",\\\"ptl-input\\\",\\\"number-to-char\\\",\\\"concat\\\",\\\"tbody\\\",\\\"td\\\",\\\"eq\\\",\\\"get\\\",\\\"button\\\",\\\"span\\\",\\\"on\\\",\\\"drag-and-drop-container\\\",\\\"a\\\",\\\"fa-icon\\\",\\\"fn\\\",\\\"perform\\\"]]\",\n    \"moduleName\": \"portal/components/invoices-uploader.hbs\",\n    \"isStrictMode\": false\n  });\n  const getColumnsFrom2dArray = (arr, col) => {\n    return arr.map(r => r[col]);\n  };\n\n  // why this library kept this API when making a browser build is beyond me\n  const parseCsvFromBase64 = base64 => {\n    const records = [];\n    const parser = (0, _esm.parse)({\n      bom: true,\n      skip_empty_lines: true,\n      trim: true\n    });\n    parser.on('readable', () => {\n      let record;\n      while ((record = parser.read()) !== null) {\n        records.push(record);\n      }\n    });\n    const csvText = atob(base64);\n    parser.write(csvText);\n    parser.end();\n    return records;\n  };\n  class ParserError extends Error {}\n  let InvoiceFile = (_class = class InvoiceFile {\n    get sampleRows() {\n      if (!this.csv) return null;\n      return this.csv.slice(0, 10);\n    }\n    get columnsLength() {\n      return this.csv[0].length;\n    }\n    constructor(csv, intl) {\n      _defineProperty(this, \"columnTypeOptions\", void 0);\n      _initializerDefineProperty(this, \"columnTypes\", _descriptor, this);\n      _initializerDefineProperty(this, \"columnTypeForm\", _descriptor2, this);\n      _initializerDefineProperty(this, \"csv\", _descriptor3, this);\n      this.columnTypeOptions = [{\n        label: '—',\n        value: 'do-not-import',\n        matches: [],\n        type: undefined\n      }, {\n        label: intl.t('common.Invoice number'),\n        value: 'invoiceNumber',\n        matches: ['invoice number', 'invoice no'],\n        type: 'string'\n      }, {\n        label: intl.t('common.To'),\n        value: 'to',\n        matches: ['to', 'recipient'],\n        type: 'string'\n      }, {\n        label: intl.t('common.Issue date'),\n        value: 'issueDate',\n        matches: ['issue date', 'issue', 'issued', 'date'],\n        type: 'date'\n      }, {\n        label: intl.t('common.Due date'),\n        value: 'dueDate',\n        matches: ['due date', 'due'],\n        type: 'date'\n      }, {\n        label: intl.t('common.Description'),\n        value: 'description',\n        matches: ['description', 'item name', 'line'],\n        type: 'string'\n      }, {\n        label: intl.t('common.Unit price'),\n        value: 'unitPrice',\n        matches: ['unit price', 'price'],\n        type: 'currency'\n      }, {\n        label: intl.t('common.Quantity'),\n        value: 'quantity',\n        matches: ['quantity', 'qty'],\n        type: 'number'\n      }, {\n        label: intl.t('common.Tax rate'),\n        value: 'tax',\n        matches: ['tax', 'gst', 'tax rate'],\n        type: 'currency'\n      }];\n      this.csv = csv;\n      this.columnTypes = this._findLikelyColumnTypes();\n      this.columnTypeForm = this._generateColumnTypeForm(intl);\n    }\n    _generateColumnTypeForm(intl) {\n      const validator = ({\n        key: _key,\n        newValue,\n        oldValue,\n        changes,\n        content\n      }) => {\n        const current = {\n          ...content,\n          ...changes\n        };\n        const values = Object.values(current);\n        const value = newValue || oldValue;\n        // you need at least one of each of these to progress\n        const requiredValues = ['invoiceNumber'];\n        if (\n        // if you have chosen not to import this column\n        value === 'do-not-import' &&\n        // and there are still required values left\n        requiredValues.some(rv => !values.includes(rv))) return intl.t('components.invoices-uploader.Invoice number is required');\n\n        // no import is always valid\n        if (value === 'do-not-import') return true;\n\n        // you can't have duplicate selections\n        if (values.filter(v => v === value).length > 1) return intl.t('validation.You can only select this column once');\n        return true;\n      };\n      const data = {\n        save: () => {\n          for (let i = 0; i < this.columnsLength; i++) {\n            this.columnTypes[i] = this.columnTypeForm.get(String(i));\n          }\n        }\n      };\n      const validatorMap = {};\n      for (let i = 0; i < this.columnsLength; i++) {\n        data[i] = this.columnTypes[i];\n        validatorMap[i] = validator;\n      }\n      return (0, _emberChangeset.Changeset)(data, validator, validatorMap);\n    }\n    _findLikelyColumnTypes() {\n      // TODO if there isn't a header row, we could try and assume from the data type of the columns\n      const likenessThreshold = 0.8;\n      // for each column iterate over each column type to find the closest matching column type\n      const results = [];\n      for (let i = 0; i < this.columnsLength; i++) {\n        const winners = this.columnTypeOptions.map(option => {\n          // get the entire column from the sample rows\n          const columns = getColumnsFrom2dArray(this.sampleRows, i).map(s => s.toLowerCase().trim());\n          // test the likeness of the columns against the matching strings\n          const scores = option.matches.map(m => (0, _stringSimilarity.findBestMatch)(m, columns));\n          // check if the best match is better than the threshold\n          const winner = scores.find(score => score.bestMatch.rating >= likenessThreshold);\n          return {\n            option,\n            rating: winner?.bestMatch?.rating || 0\n          };\n        });\n\n        // find best matching column type\n        const bestMatch = winners.sort((a, b) => b.rating - a.rating).shift();\n\n        // we now have the closest matching column type for this column\n        results.push(bestMatch.option.value);\n\n        // in the future we could also try evaluate the columns against the data type\n      }\n      return results;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"columnTypes\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"columnTypeForm\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"csv\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class2 = class _class2 extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor4, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor5, this);\n      _initializerDefineProperty(this, \"store\", _descriptor6, this);\n      _initializerDefineProperty(this, \"portalApiV2\", _descriptor7, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor8, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor9, this);\n      _defineProperty(this, \"projects\", []);\n      _defineProperty(this, \"projectsPage\", void 0);\n      _defineProperty(this, \"projectsSearchTerm\", void 0);\n      _initializerDefineProperty(this, \"invoiceFileItems\", _descriptor0, this);\n      _initializerDefineProperty(this, \"invoiceFile\", _descriptor1, this);\n      _initializerDefineProperty(this, \"projectChangeSet\", _descriptor10, this);\n      _defineProperty(this, \"projectValidator\", ({\n        key,\n        newValue\n      }) => {\n        if (key === 'project') {\n          return Boolean(newValue) || this.intl.t('validation.Please provide a project');\n        }\n      });\n      _defineProperty(this, \"parseCsvFromAttachment\", attachment => {\n        // TODO windows does some funky shit with MIME types\n\n        if (attachment.fileType !== 'text/csv') throw new ParserError(this.intl.t('shared.uploader.Please upload a valid CSV file'));\n        const csv = parseCsvFromBase64(attachment.data);\n        return csv;\n      });\n      _defineProperty(this, \"loadProjects\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (searchTerm) {\n          try {\n            if (searchTerm !== this.projectsSearchTerm) {\n              this.projectsPage = undefined;\n              this.projects = [];\n              this.projectsSearchTerm = searchTerm;\n            }\n            const projectFilter = {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'status',\n                op: 'IN',\n                value: ['OPEN', 'HELD']\n              }]\n            };\n            if (searchTerm?.length) projectFilter.and.push((0, _searchFilter.default)(['name'], searchTerm));\n            const nextPageNumber = (this.projectsPage?.currentPage || 0) + 1;\n            const nextPage = yield this.store.query('project', {\n              filter: projectFilter,\n              sort: 'name',\n              page: {\n                size: 10,\n                number: nextPageNumber\n              }\n            });\n            this.projectsPage = nextPage.meta;\n            this.projects = [...this.projects, ...nextPage.toArray()];\n            return this.projects;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('components.invoices-uploader.somethingWentWrongLoadingMoreProjects'),\n              error\n            });\n          }\n        }\n      }), {\n        restartable: true\n      }, \"loadProjects\", null));\n      _defineProperty(this, \"uploadInvoices\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (_e, skipNoneDescriptionRows = false) {\n          this.invoiceFile.columnTypeForm.validate();\n\n          // this is not throwing error, so i have specify key\n          this.projectChangeSet.validate('project');\n          if (this.invoiceFile.columnTypeForm.isInvalid || this.projectChangeSet.isInvalid) {\n            this.notifications.warning(this.intl.t('shared.uploader.pleaseCompleteTheFormBeforeContinuing'));\n            return;\n          }\n          try {\n            yield this.invoiceFile.columnTypeForm.save();\n            const invoicesMap = new Map();\n            const noDescriptionIndexes = [];\n            this.invoiceFile.csv.forEach((columns, rowIndex) => {\n              // Skip the first row (headers)\n              if (rowIndex === 0) return;\n              const getColumn = label => {\n                const colIndex = this.invoiceFile.columnTypes.findIndex(colType => colType === label);\n                return columns[colIndex]?.trim() || null;\n              };\n              const description = getColumn('description');\n              if (skipNoneDescriptionRows && !description) return;\n              if (!description) noDescriptionIndexes.push(rowIndex + 1);\n              const invoiceNumber = getColumn('invoiceNumber');\n              const item = {\n                description,\n                unitPrice: (0, _parseCurrencyString.default)(getColumn('unitPrice')),\n                quantity: parseFloat(getColumn('quantity')) || 1,\n                tax: getColumn('tax')\n              };\n              if (!invoicesMap.has(invoiceNumber)) {\n                invoicesMap.set(invoiceNumber, {\n                  invoiceNumber,\n                  entity: this.sessionData.entity.id,\n                  status: 'DRAFT',\n                  from: getColumn('from'),\n                  to: getColumn('to'),\n                  // TODO this must parse and validate the date\n                  issueDate: getColumn('issueDate'),\n                  dueDate: getColumn('dueDate'),\n                  items: []\n                });\n              }\n              invoicesMap.get(invoiceNumber).items.push(item);\n            });\n            if (noDescriptionIndexes.length && !skipNoneDescriptionRows) {\n              this.invalidProductRowIndexes = `${noDescriptionIndexes.join(', ')}`;\n              return;\n            }\n            const invoices = Array.from(invoicesMap.values());\n            const nonUniqueInvoices = [];\n            const failedInvoices = [];\n            const contactNames = [...new Set(invoices.map(item => item.to).filter(Boolean))];\n            const contacts = yield this.store.query('contact', {\n              filter: {\n                and: [{\n                  field: 'entity',\n                  op: 'EQ',\n                  value: this.sessionData.entity.id\n                }, {\n                  field: 'name',\n                  op: 'IN',\n                  value: contactNames\n                }]\n              }\n            }).then(r => r.toArray());\n            yield Promise.all(invoices.map(async invoice => {\n              try {\n                let toContact = typeof invoice.to === 'string' ? contacts.find(c => c.name.toLowerCase() === invoice.to.toLowerCase()) : null;\n                if (!toContact && invoice.to) {\n                  toContact = this.store.createRecord('contact', {\n                    name: invoice.to,\n                    entity: this.sessionData.entity\n                  });\n                }\n                const savedInvoice = await this.store.createRecord('invoice', {\n                  entity: this.sessionData.entity,\n                  invoiceNumber: invoice.invoiceNumber,\n                  status: invoice.status,\n                  issueDate: invoice.issueDate,\n                  dueDate: invoice.dueDate,\n                  toContact\n                }).save();\n                const allocations = [];\n                allocations.push({\n                  type: 'project',\n                  id: this.projectChangeSet.get('project').id,\n                  allocation: 'all',\n                  checked: true,\n                  indeterminate: false\n                });\n                await Promise.all(invoice.items.map(async (item, index) => {\n                  await this.store.createRecord('invoice-item', {\n                    description: item.description,\n                    unitPrice: item.unitPrice,\n                    quantity: item.quantity,\n                    entity: this.sessionData.entity,\n                    taxRate: item.tax || this.sessionData.entity.gst,\n                    sortIndex: index,\n                    invoice: savedInvoice\n                  }).save({\n                    adapterOptions: {\n                      meta: {\n                        allocations\n                      }\n                    }\n                  });\n                }));\n              } catch (error) {\n                failedInvoices.push({\n                  invoice,\n                  error\n                });\n              }\n            }));\n            yield this.args.onUploadInvoices();\n            const total = invoices.length;\n            const failed = nonUniqueInvoices.length + failedInvoices.length;\n            const success = total - failed;\n            this.notifications.success({\n              message: `Upload summary: ${success} succeeded, ${failed} failed`,\n              clearDuration: 5000\n            });\n            this.args.onClose();\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('components.invoices-uploader.somethingWentWrongWhileSavingInvoices'),\n              error\n            });\n          }\n        }\n      }), null, \"uploadInvoices\", null));\n    }\n    setProject(value) {\n      this.projectChangeSet.set('project', value);\n    }\n    onClear() {\n      this.invoiceFile = null;\n      this.invoiceFileItems = null;\n    }\n    onUpload(e) {\n      try {\n        if (!e.attachments.length) {\n          this.notifications.warning(this.intl.t('shared.uploader.Please upload a valid CSV file'));\n          return;\n        }\n        if (e.attachments.length > 1) this.notifications.warning(this.intl.t('shared.uploader.Please upload one file at a time'));\n        const attachment = e.attachments[0];\n        const csv = this.parseCsvFromAttachment(attachment);\n        this.invoiceFile = new InvoiceFile(csv, this.intl);\n      } catch (error) {\n        if (error instanceof ParserError) {\n          this.notifications.warning(error.message);\n          return;\n        }\n        this.notifications.error({\n          message: this.intl.t('shared.uploader.Something went wrong uploading the file'),\n          error\n        });\n      }\n    }\n  }, _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"portalApiV2\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"invoiceFileItems\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"invoiceFile\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"projectChangeSet\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return (0, _emberChangeset.Changeset)({\n        project: null\n      }, this.projectValidator.bind(this));\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"setProject\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setProject\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onClear\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onClear\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onUpload\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onUpload\"), _class2.prototype), _class2));\n});","define(\"portal/components/ips-uploader\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <ModalDialog\n    @onClose={{@onClose}}\n    @containerClass='modal-content modal-dialog-scrollable w-auto max-width-75 h-auto'\n    @overlayClass='modal'\n    @translucentOverlay={{true}}\n  >\n    <div class='modal-header'>\n      <h3 class='modal-title'>\n        {{t 'common.Upload files'}}\n      </h3>\n    </div>\n  \n    <div class='modal-body'>\n      <DragAndDropContainer\n        @onUploadComplete={{this.upload}}\n        @isDragAndDropVisible={{true}}\n        data-test-ips-dropzone\n      />\n  \n      <div class='form-text text-muted mt-2'>\n        {{t 'entity.builda-price.operations.incoming.bills.ipsProcessingInfo'}}\n      </div>\n    </div>\n  \n    <div class='modal-footer text-right'>\n      <button type='button' class='btn btn-secondary' {{on 'click' @onClose}}>\n        {{t 'common.Cancel'}}\n      </button>\n    </div>\n  </ModalDialog>\n  */\n  {\n    \"id\": \"gbQdhX32\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@overlayClass\\\",\\\"@translucentOverlay\\\"],[[30,1],\\\"modal-content modal-dialog-scrollable w-auto max-width-75 h-auto\\\",\\\"modal\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h3\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,3],[\\\"common.Upload files\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,4],[[24,\\\"data-test-ips-dropzone\\\",\\\"\\\"]],[[\\\"@onUploadComplete\\\",\\\"@isDragAndDropVisible\\\"],[[30,0,[\\\"upload\\\"]],true]],null],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"form-text text-muted mt-2\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,3],[\\\"entity.builda-price.operations.incoming.bills.ipsProcessingInfo\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[30,1]],null],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,3],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]]]],[\\\"@onClose\\\"],false,[\\\"modal-dialog\\\",\\\"div\\\",\\\"h3\\\",\\\"t\\\",\\\"drag-and-drop-container\\\",\\\"button\\\",\\\"on\\\"]]\",\n    \"moduleName\": \"portal/components/ips-uploader.hbs\",\n    \"isStrictMode\": false\n  });\n  let IpsUploader = _exports.default = (_class = class IpsUploader extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"ips\", _descriptor, this);\n    }\n    async upload(uploadResult) {\n      if (await this.ips.uploadPdf.perform(uploadResult)) this.args.onClose?.();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"ips\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"upload\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"upload\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, IpsUploader);\n});","define(\"portal/components/ips-usage\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"@ember/object\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _object, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.alertOnly}}\n    {{#if this.showAlert}}\n      <IpsUsage::Alert @onDismiss={{this.dismissAlert}} ...attributes>\n        <:message>\n          {{#if this.hasActiveTerm}}\n            {{#if this.isBlocked}}\n              {{t 'components.ips-usage.atLimitTitle'}}\n            {{else}}\n              {{t 'components.ips-usage.nearLimitTitle' remaining=this.remaining}}\n            {{/if}}\n          {{else}}\n            {{t 'components.ips-usage.cannotImportRightNow'}}\n          {{/if}}\n        </:message>\n  \n        <:action>\n          <IpsUsage::Upgrade\n            @buttonClass='btn btn-outline-dark btn-sm'\n            @canUpgrade={{this.canUpgrade}}\n            @showAdminPrompt={{this.showAdminPrompt}}\n            @upgrade={{this.upgrade}}\n          />\n        </:action>\n      </IpsUsage::Alert>\n    {{/if}}\n  {{else if this.ips.ready}}\n    {{#if this.hasActiveTerm}}\n      <div class='d-flex flex-column' ...attributes>\n        <div class='small mb-1'>{{this.caption}}</div>\n  \n        {{#if this.showMeter}}\n          <UsageBar @value={{this.used}} @notches={{this.notches}} />\n        {{/if}}\n  \n        {{#unless this.isMetered}}\n          <p class='small text-muted mt-2 mb-0'>\n            {{t 'components.ips-usage.includedFreeExplainer' limit=this.limit}}\n          </p>\n        {{/unless}}\n  \n        <IpsUsage::Upgrade\n          class='mt-3 align-self-end'\n          @canUpgrade={{this.canUpgrade}}\n          @showAdminPrompt={{this.showAdminPrompt}}\n          @upgrade={{this.upgrade}}\n        />\n      </div>\n    {{else}}\n      <IpsUsage::Alert @onDismiss={{this.dismissAlert}} ...attributes>\n        <:message>{{t 'components.ips-usage.cannotImportRightNow'}}</:message>\n      </IpsUsage::Alert>\n    {{/if}}\n  {{/if}}\n  */\n  {\n    \"id\": \"DomcM4Bz\",\n    \"block\": \"[[[41,[30,0,[\\\"alertOnly\\\"]],[[[41,[30,0,[\\\"showAlert\\\"]],[[[1,\\\"    \\\"],[8,[39,1],[[17,1]],[[\\\"@onDismiss\\\"],[[30,0,[\\\"dismissAlert\\\"]]]],[[\\\"message\\\",\\\"action\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"hasActiveTerm\\\"]],[[[41,[30,0,[\\\"isBlocked\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,3],[\\\"components.ips-usage.atLimitTitle\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,3],[\\\"components.ips-usage.nearLimitTitle\\\"],[[\\\"remaining\\\"],[[30,0,[\\\"remaining\\\"]]]]]],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[1,\\\"          \\\"],[1,[28,[35,3],[\\\"components.ips-usage.cannotImportRightNow\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"]],[]],[[[1,\\\"\\\\n        \\\"],[8,[39,5],null,[[\\\"@buttonClass\\\",\\\"@canUpgrade\\\",\\\"@showAdminPrompt\\\",\\\"@upgrade\\\"],[\\\"btn btn-outline-dark btn-sm\\\",[30,0,[\\\"canUpgrade\\\"]],[30,0,[\\\"showAdminPrompt\\\"]],[30,0,[\\\"upgrade\\\"]]]],null],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[41,[30,0,[\\\"ips\\\",\\\"ready\\\"]],[[[41,[30,0,[\\\"hasActiveTerm\\\"]],[[[1,\\\"    \\\"],[11,0],[24,0,\\\"d-flex flex-column\\\"],[17,1],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"small mb-1\\\"],[12],[1,[30,0,[\\\"caption\\\"]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"showMeter\\\"]],[[[1,\\\"        \\\"],[8,[39,7],null,[[\\\"@value\\\",\\\"@notches\\\"],[[30,0,[\\\"used\\\"]],[30,0,[\\\"notches\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"isMetered\\\"]]],[[[1,\\\"        \\\"],[10,2],[14,0,\\\"small text-muted mt-2 mb-0\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,3],[\\\"components.ips-usage.includedFreeExplainer\\\"],[[\\\"limit\\\"],[[30,0,[\\\"limit\\\"]]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[8,[39,5],[[24,0,\\\"mt-3 align-self-end\\\"]],[[\\\"@canUpgrade\\\",\\\"@showAdminPrompt\\\",\\\"@upgrade\\\"],[[30,0,[\\\"canUpgrade\\\"]],[30,0,[\\\"showAdminPrompt\\\"]],[30,0,[\\\"upgrade\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[8,[39,1],[[17,1]],[[\\\"@onDismiss\\\"],[[30,0,[\\\"dismissAlert\\\"]]]],[[\\\"message\\\"],[[[[1,[28,[35,3],[\\\"components.ips-usage.cannotImportRightNow\\\"],null]]],[]]]]],[1,\\\"\\\\n\\\"]],[]]]],[]],null]],[]]]],[\\\"&attrs\\\"],false,[\\\"if\\\",\\\"ips-usage/alert\\\",\\\":message\\\",\\\"t\\\",\\\":action\\\",\\\"ips-usage/upgrade\\\",\\\"div\\\",\\\"usage-bar\\\",\\\"unless\\\",\\\"p\\\"]]\",\n    \"moduleName\": \"portal/components/ips-usage.hbs\",\n    \"isStrictMode\": false\n  });\n  const WARN_AT = 0.8;\n  let IpsUsage = _exports.default = (_class = class IpsUsage extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"chargebee\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _initializerDefineProperty(this, \"ips\", _descriptor3, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor4, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor5, this);\n      _defineProperty(this, \"upgrade\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.chargebee.openIpsAddonCheckout();\n          } catch (error) {\n            this.notifications.error({\n              error,\n              message: this.intl.t('components.ips-usage.couldNotOpenIpsCheckout')\n            });\n          }\n        }\n      }), {\n        drop: true\n      }, \"upgrade\", null));\n    }\n    get usage() {\n      return this.ips.latestUsage;\n    }\n    get alertOnly() {\n      return Boolean(this.args.alertOnly);\n    }\n    get used() {\n      return this.usage?.used ?? 0;\n    }\n    get limit() {\n      return this.usage?.limit ?? 0;\n    }\n    get remaining() {\n      return Math.max(0, this.limit - this.used);\n    }\n    get notches() {\n      return this.limit > 0 ? [this.limit] : [];\n    }\n\n    // entitled to process beyond the free allowance, for a charge\n    get isMetered() {\n      return Boolean(this.usage?.isMetered);\n    }\n    get hasActiveTerm() {\n      return Boolean(this.usage?.hasActiveTerm);\n    }\n    get allowanceRemains() {\n      return this.used < this.limit;\n    }\n\n    // allowance gone and not metered, so the next upload is refused\n    get isBlocked() {\n      return !this.isMetered && !this.allowanceRemains;\n    }\n    get isNearLimit() {\n      if (this.isMetered || this.isBlocked) return false;\n      return this.used >= this.limit * WARN_AT;\n    }\n    get alertKind() {\n      if (!this.hasActiveTerm) return 'no-term';\n      if (this.isBlocked) return 'blocked';\n      if (this.isNearLimit) return 'near';\n      return null;\n    }\n    get showAlert() {\n      return this.ips.ready && Boolean(this.alertKind) && this.ips.dismissedAlert !== this.alertKind;\n    }\n    dismissAlert() {\n      this.ips.dismissedAlert = this.alertKind;\n    }\n\n    // the bar measures the free allowance; past it there is no ceiling to draw\n    get showMeter() {\n      if (this.alertOnly || this.limit <= 0) return false;\n      return !this.isMetered || this.allowanceRemains;\n    }\n    get caption() {\n      if (this.isMetered && !this.allowanceRemains) return this.intl.t('components.ips-usage.usageThisPeriod', {\n        used: this.used\n      });\n      return this.intl.t(this.isMetered ? 'components.ips-usage.usageOfIncluded' : 'components.ips-usage.usageOfAllowance', {\n        used: this.used,\n        limit: this.limit\n      });\n    }\n\n    // the addon is bought through Chargebee, so it is only on offer once that is ready\n    get addonAvailable() {\n      return this.chargebee.ready && Boolean(this.usage?.canUpgrade);\n    }\n    get canUpgrade() {\n      if (!this.addonAvailable) return false;\n      return this.newFeatureFlags.includesFeatureFlags('userIsEntityAdmin');\n    }\n\n    // the addon is there to be bought, just not by this user\n    get showAdminPrompt() {\n      return this.addonAvailable && !this.canUpgrade;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"chargebee\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"ips\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"dismissAlert\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"dismissAlert\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, IpsUsage);\n});","define(\"portal/components/ips-usage/alert\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    class='alert alert-warning d-flex align-items-center gap-3'\n    role='alert'\n    ...attributes\n  >\n    <FaIcon @icon='exclamation-triangle' @size='lg' class='flex-shrink-0' />\n  \n    <div class='flex-grow-1'>{{yield to='message'}}</div>\n  \n    {{yield to='action'}}\n  \n    <button\n      type='button'\n      class='btn-close flex-shrink-0'\n      aria-label={{t 'common.Close'}}\n      data-test-ips-alert-dismiss\n      {{on 'click' @onDismiss}}\n    ></button>\n  </div>\n  */\n  {\n    \"id\": \"USlW4yUR\",\n    \"block\": \"[[[11,0],[24,0,\\\"alert alert-warning d-flex align-items-center gap-3\\\"],[24,\\\"role\\\",\\\"alert\\\"],[17,1],[12],[1,\\\"\\\\n  \\\"],[8,[39,1],[[24,0,\\\"flex-shrink-0\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"exclamation-triangle\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[18,3,null],[13],[1,\\\"\\\\n\\\\n  \\\"],[18,4,null],[1,\\\"\\\\n\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"btn-close flex-shrink-0\\\"],[16,\\\"aria-label\\\",[28,[37,4],[\\\"common.Close\\\"],null]],[24,\\\"data-test-ips-alert-dismiss\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,5],[\\\"click\\\",[30,2]],null],[12],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"&attrs\\\",\\\"@onDismiss\\\",\\\"&message\\\",\\\"&action\\\"],false,[\\\"div\\\",\\\"fa-icon\\\",\\\"yield\\\",\\\"button\\\",\\\"t\\\",\\\"on\\\"]]\",\n    \"moduleName\": \"portal/components/ips-usage/alert.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"portal/components/ips-usage/upgrade\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if @canUpgrade}}\n    <button\n      type='button'\n      class='{{or @buttonClass \"btn btn-primary\"}} text-nowrap'\n      disabled={{@upgrade.isRunning}}\n      data-test-ips-upgrade\n      ...attributes\n      {{on 'click' (perform @upgrade)}}\n    >\n      {{t 'components.ips-usage.Add IPS to your plan'}}\n    </button>\n  {{else if @showAdminPrompt}}\n    <span class='small text-nowrap' ...attributes>\n      {{t 'components.ips-usage.askAdminToAddAddon'}}\n    </span>\n  {{/if}}\n  */\n  {\n    \"id\": \"0pOFGRc1\",\n    \"block\": \"[[[41,[30,1],[[[1,\\\"  \\\"],[11,\\\"button\\\"],[24,4,\\\"button\\\"],[16,0,[29,[[28,[37,2],[[30,2],\\\"btn btn-primary\\\"],null],\\\" text-nowrap\\\"]]],[16,\\\"disabled\\\",[30,3,[\\\"isRunning\\\"]]],[24,\\\"data-test-ips-upgrade\\\",\\\"\\\"],[17,4],[4,[38,3],[\\\"click\\\",[28,[37,4],[[30,3]],null]],null],[12],[1,\\\"\\\\n    \\\"],[1,[28,[35,5],[\\\"components.ips-usage.Add IPS to your plan\\\"],null]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,5],[[[1,\\\"  \\\"],[11,1],[24,0,\\\"small text-nowrap\\\"],[17,4],[12],[1,\\\"\\\\n    \\\"],[1,[28,[35,5],[\\\"components.ips-usage.askAdminToAddAddon\\\"],null]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]]],[\\\"@canUpgrade\\\",\\\"@buttonClass\\\",\\\"@upgrade\\\",\\\"&attrs\\\",\\\"@showAdminPrompt\\\"],false,[\\\"if\\\",\\\"button\\\",\\\"or\\\",\\\"on\\\",\\\"perform\\\",\\\"t\\\",\\\"span\\\"]]\",\n    \"moduleName\": \"portal/components/ips-usage/upgrade.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"portal/components/item-selector\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/array\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/runloop\", \"@ember/template-factory\"], function (_exports, _component, _component2, _array, _object, _tracking, _runloop, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/array\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    class='d-flex align-items-center px-3 py-3 item-selector__path'\n    {{did-update this.onSelectedItemChange @selectedItem}}\n  >\n    <span\n      role='button'\n      class='text-primary text-decoration-underline'\n      {{on 'click' this.clearScope}}\n      data-test-item-selector-home-text\n    >\n      {{or @homeText (t 'common.Home')}}\n    </span>\n    {{#if this.scope.length}}\n      <FaIcon @icon='chevron-right' class='mx-2' />\n    {{/if}}\n    {{#each this.first2Scopes as |container|}}\n      <ItemSelector::BreadCrumb\n        @isSelected={{eq this.selectedScope container}}\n        @onClick={{fn this.goToContainer container}}\n        data-test-items-selector-bread-crumb\n      >\n        {{get container.item @nameKey}}\n      </ItemSelector::BreadCrumb>\n    {{/each}}\n  \n    {{#if (gt this.scope.length 4)}}\n      <div class='mx-2 fw-bolder' data-test-item-selector-ellipsis>&hellip;</div>\n      <FaIcon @icon='chevron-right' class='mx-2' />\n    {{/if}}\n  \n    {{#each this.last2Scopes as |container|}}\n      <ItemSelector::BreadCrumb\n        @isSelected={{eq this.selectedScope container}}\n        @onClick={{fn this.goToContainer container}}\n        data-test-items-selector-bread-crumb\n      >\n        {{get container.item @nameKey}}\n      </ItemSelector::BreadCrumb>\n    {{/each}}\n  </div>\n  \n  <div class='px-3 pb-3'>\n    <Input\n      class='form-control rounded'\n      placeholder={{or @searchPlaceholder (t 'common.Search for a item')}}\n      aria-label={{or @searchPlaceholder (t 'common.Search for a item')}}\n      {{! auto focus only worked on the initial render }}\n      {{did-insert this.focusInput}}\n      @value={{this.searchString}}\n      @type='text'\n      data-test-item-selector-search-input\n    />\n  </div>\n  \n  <ul class='list-group item-selector__list border-top rounded-0'>\n    {{#if this.searchString}}\n      {{#each this.searchContainers as |container|}}\n        <button\n          type='button'\n          class='list-group-item list-group-item-action border-0 border-bottom'\n          {{on 'click' (fn this.rebuildScopeFromContainer container)}}\n          data-test-item-selector-item\n        >\n          {{get container.item @nameKey}}\n        </button>\n      {{else}}\n        <div class='p-3 text-center' data-test-item-selector-no-item>\n          {{or @noSearchItemsMessage (t 'common.No items found')}}\n        </div>\n      {{/each}}\n    {{else}}\n      {{#each this.currentContainers as |container|}}\n        <button\n          type='button'\n          class='list-group-item list-group-item-action border-0 border-bottom'\n          {{on 'click' (fn this.goIntoContainer container)}}\n          data-test-item-selector-item\n        >\n          {{get container.item @nameKey}}\n        </button>\n      {{else}}\n        <div class='p-3 text-center' data-test-item-selector-no-item>\n          {{or @noItemsMessage (t 'common.No items')}}\n        </div>\n      {{/each}}\n    {{/if}}\n  </ul>\n  */\n  {\n    \"id\": \"qMVcEevc\",\n    \"block\": \"[[[11,0],[24,0,\\\"d-flex align-items-center px-3 py-3 item-selector__path\\\"],[4,[38,1],[[30,0,[\\\"onSelectedItemChange\\\"]],[30,1]],null],[12],[1,\\\"\\\\n  \\\"],[11,1],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"text-primary text-decoration-underline\\\"],[24,\\\"data-test-item-selector-home-text\\\",\\\"\\\"],[4,[38,3],[\\\"click\\\",[30,0,[\\\"clearScope\\\"]]],null],[12],[1,\\\"\\\\n    \\\"],[1,[28,[35,4],[[30,2],[28,[37,5],[\\\"common.Home\\\"],null]],null]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"scope\\\",\\\"length\\\"]],[[[1,\\\"    \\\"],[8,[39,7],[[24,0,\\\"mx-2\\\"]],[[\\\"@icon\\\"],[\\\"chevron-right\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[42,[28,[37,9],[[28,[37,9],[[30,0,[\\\"first2Scopes\\\"]]],null]],null],null,[[[1,\\\"    \\\"],[8,[39,10],[[24,\\\"data-test-items-selector-bread-crumb\\\",\\\"\\\"]],[[\\\"@isSelected\\\",\\\"@onClick\\\"],[[28,[37,11],[[30,0,[\\\"selectedScope\\\"]],[30,3]],null],[28,[37,12],[[30,0,[\\\"goToContainer\\\"]],[30,3]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[1,[28,[35,13],[[30,3,[\\\"item\\\"]],[30,4]],null]],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,14],[[30,0,[\\\"scope\\\",\\\"length\\\"]],4],null],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mx-2 fw-bolder\\\"],[14,\\\"data-test-item-selector-ellipsis\\\",\\\"\\\"],[12],[1,\\\"…\\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,7],[[24,0,\\\"mx-2\\\"]],[[\\\"@icon\\\"],[\\\"chevron-right\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[30,0,[\\\"last2Scopes\\\"]]],null]],null],null,[[[1,\\\"    \\\"],[8,[39,10],[[24,\\\"data-test-items-selector-bread-crumb\\\",\\\"\\\"]],[[\\\"@isSelected\\\",\\\"@onClick\\\"],[[28,[37,11],[[30,0,[\\\"selectedScope\\\"]],[30,5]],null],[28,[37,12],[[30,0,[\\\"goToContainer\\\"]],[30,5]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[1,[28,[35,13],[[30,5,[\\\"item\\\"]],[30,4]],null]],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[5]],null],[13],[1,\\\"\\\\n\\\\n\\\"],[10,0],[14,0,\\\"px-3 pb-3\\\"],[12],[1,\\\"\\\\n  \\\"],[8,[39,15],[[24,0,\\\"form-control rounded\\\"],[16,\\\"placeholder\\\",[28,[37,4],[[30,6],[28,[37,5],[\\\"common.Search for a item\\\"],null]],null]],[16,\\\"aria-label\\\",[28,[37,4],[[30,6],[28,[37,5],[\\\"common.Search for a item\\\"],null]],null]],[24,\\\"data-test-item-selector-search-input\\\",\\\"\\\"],[4,[38,16],[[30,0,[\\\"focusInput\\\"]]],null]],[[\\\"@value\\\",\\\"@type\\\"],[[30,0,[\\\"searchString\\\"]],\\\"text\\\"]],null],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,\\\"ul\\\"],[14,0,\\\"list-group item-selector__list border-top rounded-0\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"searchString\\\"]],[[[42,[28,[37,9],[[28,[37,9],[[30,0,[\\\"searchContainers\\\"]]],null]],null],null,[[[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"list-group-item list-group-item-action border-0 border-bottom\\\"],[24,\\\"data-test-item-selector-item\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,3],[\\\"click\\\",[28,[37,12],[[30,0,[\\\"rebuildScopeFromContainer\\\"]],[30,7]],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,13],[[30,7,[\\\"item\\\"]],[30,4]],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[7]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"p-3 text-center\\\"],[14,\\\"data-test-item-selector-no-item\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[[30,8],[28,[37,5],[\\\"common.No items found\\\"],null]],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[42,[28,[37,9],[[28,[37,9],[[30,0,[\\\"currentContainers\\\"]]],null]],null],null,[[[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"list-group-item list-group-item-action border-0 border-bottom\\\"],[24,\\\"data-test-item-selector-item\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,3],[\\\"click\\\",[28,[37,12],[[30,0,[\\\"goIntoContainer\\\"]],[30,9]],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,13],[[30,9,[\\\"item\\\"]],[30,4]],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[9]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"p-3 text-center\\\"],[14,\\\"data-test-item-selector-no-item\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[[30,10],[28,[37,5],[\\\"common.No items\\\"],null]],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]],[13]],[\\\"@selectedItem\\\",\\\"@homeText\\\",\\\"container\\\",\\\"@nameKey\\\",\\\"container\\\",\\\"@searchPlaceholder\\\",\\\"container\\\",\\\"@noSearchItemsMessage\\\",\\\"container\\\",\\\"@noItemsMessage\\\"],false,[\\\"div\\\",\\\"did-update\\\",\\\"span\\\",\\\"on\\\",\\\"or\\\",\\\"t\\\",\\\"if\\\",\\\"fa-icon\\\",\\\"each\\\",\\\"-track-array\\\",\\\"item-selector/bread-crumb\\\",\\\"eq\\\",\\\"fn\\\",\\\"get\\\",\\\"gt\\\",\\\"input\\\",\\\"did-insert\\\",\\\"ul\\\",\\\"button\\\"]]\",\n    \"moduleName\": \"portal/components/item-selector.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"scope\", _descriptor, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor2, this);\n      if (this.args.selectedItem) this.rebuildScopeFromContainer(this.args.selectedItem);\n    }\n    onSelectedItemChange() {\n      if (this.args.selectedItem === this.selectedScope) return;\n      if (this.args.selectedItem) this.rebuildScopeFromContainer(this.args.selectedItem);else this.clearScope();\n    }\n    get first2Scopes() {\n      return this.scope.slice(0, 2);\n    }\n    get last2Scopes() {\n      return this.scope.length >= 4 ? this.scope.slice(-2) : this.scope.slice(2);\n    }\n    get selectedScope() {\n      return this.scope[this.scope.length - 1];\n    }\n    get currentContainers() {\n      // if we have scope, return the highest scope\n      if (this.selectedScope) return this.selectedScope.children;\n      // return the top level\n      return this.args.items;\n    }\n    get searchContainers() {\n      if (!this.searchString) return null;\n      const matchedContainers = [];\n      const findContainer = containers => {\n        containers.forEach(container => {\n          const matchValue = container.item[this.args.nameKey];\n\n          // if our container matches the search term we have a match\n          if (matchValue.toLowerCase().includes(this.searchString.toLowerCase())) matchedContainers.push(container);\n\n          // if our container has children check the children\n          if (container.children) findContainer(container.children);\n        });\n      };\n      findContainer(this.currentContainers);\n      return matchedContainers;\n    }\n    clearScope() {\n      this.scope = (0, _array.A)([]);\n      (0, _runloop.next)(() => this.args.onChange(this.selectedScope));\n    }\n    rebuildScopeFromContainer(container) {\n      // rebuild the scope from the end node by looking at all the items\n      const scope = [];\n      const unshiftContainerToScope = container => {\n        scope.unshift(container);\n        (function checkAllItemsForParent(items) {\n          items.forEach(c => {\n            // we have found the parent of this container, unshift it to scope\n            if (c.children.includes(container)) unshiftContainerToScope(c);\n            // if we didn't find the parent check the children\n            else if (c.children.length) checkAllItemsForParent(c.children);\n          });\n        })(this.args.items);\n      };\n      unshiftContainerToScope(container);\n      this.scope = (0, _array.A)(scope);\n      (0, _runloop.next)(() => this.args.onChange(this.selectedScope));\n      this.searchString = '';\n    }\n    goIntoContainer(container) {\n      this.scope.pushObject(container);\n      (0, _runloop.next)(() => this.args.onChange(this.selectedScope));\n    }\n    goToContainer(container) {\n      const index = this.scope.findIndex(c => c === container);\n      this.scope = this.scope.slice(0, index + 1);\n      (0, _runloop.next)(() => this.args.onChange(this.selectedScope));\n    }\n    focusInput(element) {\n      element.focus();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"scope\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return (0, _array.A)([]);\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"onSelectedItemChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onSelectedItemChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"clearScope\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"clearScope\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"rebuildScopeFromContainer\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"rebuildScopeFromContainer\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"goIntoContainer\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"goIntoContainer\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"goToContainer\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"goToContainer\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"focusInput\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"focusInput\"), _class.prototype), _class));\n});","define(\"portal/components/item-selector/bread-crumb\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if @isSelected}}\n    <span class='text-primary fw-bolder' ...attributes>\n      {{yield}}\n    </span>\n  {{else}}\n    <span\n      role='button'\n      class='text-primary text-decoration-underline'\n      {{on 'click' @onClick}}\n      ...attributes\n    >\n      {{yield}}\n    </span>\n    <FaIcon @icon={{or @icon 'chevron-right'}} class='mx-2' />\n  {{/if}}\n  */\n  {\n    \"id\": \"WXRwT/W+\",\n    \"block\": \"[[[41,[30,1],[[[1,\\\"  \\\"],[11,1],[24,0,\\\"text-primary fw-bolder\\\"],[17,2],[12],[1,\\\"\\\\n    \\\"],[18,5,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[11,1],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"text-primary text-decoration-underline\\\"],[17,2],[4,[38,3],[\\\"click\\\",[30,3]],null],[12],[1,\\\"\\\\n    \\\"],[18,5,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,4],[[24,0,\\\"mx-2\\\"]],[[\\\"@icon\\\"],[[28,[37,5],[[30,4],\\\"chevron-right\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]]]],[\\\"@isSelected\\\",\\\"&attrs\\\",\\\"@onClick\\\",\\\"@icon\\\",\\\"&default\\\"],false,[\\\"if\\\",\\\"span\\\",\\\"yield\\\",\\\"on\\\",\\\"fa-icon\\\",\\\"or\\\"]]\",\n    \"moduleName\": \"portal/components/item-selector/bread-crumb.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component2.default {});\n});","define(\"portal/components/itm-financial-table-section\", [\"exports\", \"@ember/component\", \"@ember/template-factory\"], function (_exports, _component, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.splitLines}}\n    <tr class='data-table__total-row'>\n      <td colspan='2'>{{or this.title this.data.name}} $</td>\n      {{#each this.data.month as |unused index|}}\n        {{#if this.monthVisible}}\n          <td\n            class='text-right\n              {{if (lt this.data.month 0) \"financials-table__negative-value\"}}'\n          >\n            {{#if this.percentageVisible}}\n              <span\n                class='float-end financials-table__percentage'\n                aria-hidden='true'\n              >\n              </span>\n            {{/if}}\n            {{number-format\n              (object-at this.data.month index)\n              maximumFractionDigits=0\n              dashZero=true\n            }}\n          </td>\n          {{#if this.lastYearVisible}}\n            <td\n              class='text-right\n                {{if\n                  (lt this.data.monthPrev 0)\n                  \"financials-table__negative-value\"\n                }}'\n            >\n              {{#if this.percentageVisible}}\n                <span\n                  class='float-end financials-table__percentage'\n                  aria-hidden='true'\n                >\n                </span>\n              {{/if}}\n              {{number-format\n                (object-at this.data.monthPrev index)\n                maximumFractionDigits=0\n                dashZero=true\n              }}\n            </td>\n          {{/if}}\n        {{/if}}\n        {{#if this.ytdVisible}}\n          <td\n            class='text-right\n              {{if (lt this.data.ytd 0) \"financials-table__negative-value\"}}'\n          >\n            {{#if this.percentageVisible}}\n              <span\n                class='float-end financials-table__percentage'\n                aria-hidden='true'\n              ></span>\n            {{/if}}\n            {{number-format\n              (object-at this.data.ytd index)\n              maximumFractionDigits=0\n              dashZero=true\n            }}\n          </td>\n          {{#if this.lastYearVisible}}\n            <td\n              class='text-right\n                {{if\n                  (lt this.data.ytdPrev 0)\n                  \"financials-table__negative-value\"\n                }}'\n            >\n              {{#if this.percentageVisible}}\n                <span\n                  class='float-end financials-table__percentage'\n                  aria-hidden='true'\n                ></span>\n              {{/if}}\n              {{number-format\n                (object-at this.data.ytdPrev index)\n                maximumFractionDigits=0\n                dashZero=true\n              }}\n            </td>\n          {{/if}}\n        {{/if}}\n      {{/each}}\n    </tr>\n    <tr class='data-table__total-row'>\n      <td colspan='2'>{{or this.title this.data.name}} %</td>\n      {{#each this.data.month as |unused index|}}\n        {{#if this.monthVisible}}\n          <td\n            class='text-right\n              {{if\n                (lt this.data.MonthPercentSales 0)\n                \"financials-table__negative-value\"\n              }}'\n          >\n            {{#if this.percentageVisible}}\n              <span\n                class='float-end financials-table__percentage'\n                aria-hidden='true'\n              ></span>\n            {{/if}}\n            {{number-format\n              (object-at this.data.monthPercentSales index)\n              style='percent'\n              dashZero=true\n              maximumFractionDigits=2\n              minimumFractionDigits=2\n            }}\n          </td>\n          {{#if this.lastYearVisible}}\n            <td\n              class='text-right\n                {{if\n                  (lt this.data.MonthPrevPercentSales 0)\n                  \"financials-table__negative-value\"\n                }}'\n            >\n              {{#if this.percentageVisible}}\n                <span\n                  class='float-end financials-table__percentage'\n                  aria-hidden='true'\n                ></span>\n              {{/if}}\n              {{number-format\n                (object-at this.data.monthPrevPercentSales index)\n                style='percent'\n                dashZero=true\n                maximumFractionDigits=2\n                minimumFractionDigits=2\n              }}\n            </td>\n          {{/if}}\n        {{/if}}\n        {{#if this.ytdVisible}}\n          <td\n            class='text-right\n              {{if\n                (lt this.data.YtdPercentSales 0)\n                \"financials-table__negative-value\"\n              }}'\n          >\n            {{#if this.percentageVisible}}\n              <span\n                class='float-end financials-table__percentage'\n                aria-hidden='true'\n              ></span>\n            {{/if}}\n            {{number-format\n              (object-at this.data.ytdPercentSales index)\n              style='percent'\n              dashZero=true\n              maximumFractionDigits=2\n              minimumFractionDigits=2\n            }}\n          </td>\n          {{#if this.lastYearVisible}}\n            <td\n              class='text-right\n                {{if\n                  (lt this.data.YtdPrevPercentSales 0)\n                  \"financials-table__negative-value\"\n                }}'\n            >\n              {{#if this.percentageVisible}}\n                <span\n                  class='float-end financials-table__percentage'\n                  aria-hidden='true'\n                ></span>\n              {{/if}}\n              {{number-format\n                (object-at this.data.ytdPrevPercentSales index)\n                style='percent'\n                dashZero=true\n                maximumFractionDigits=2\n                minimumFractionDigits=2\n              }}\n            </td>\n          {{/if}}\n        {{/if}}\n      {{/each}}\n    </tr>\n  {{else}}\n  \n    <tr\n      class='{{if\n          (or\n            this.highlighted (and (not this.data.parent) this.expandableTotalRow)\n          )\n          \"data-table__total-row\"\n        }}'\n    >\n      <td\n        class='{{unless\n            this.highlighted\n            (concat\n              \"inancials-table__account-name financials-table__account-name financials-table__indented-cell financials-table__indented-cell--depth-\"\n              this.depth\n            )\n          }}'\n        colspan='2'\n      >\n        {{#if (and this.data.children (not this.childrenHidden))}}\n          <a\n            class='financials-table__section-expansion-toggle link'\n            {{action this.toggleProperty 'showChildren'}}\n          >\n            <FaIcon\n              @icon={{if this.showChildren 'angle-down' 'angle-right'}}\n            />{{~! ~}}\n            {{#if\n              (and\n                this.data.parent\n                (not (eq this.data.debitCredit this.data.parent.debitCredit))\n              )\n            }}\n              <span class='debitCredit debitCredit--debit'>\n                <InfoPopup\n                  @text={{concat\n                    this.data.name\n                    ' subtracts from '\n                    this.data.parent.name\n                  }}\n                  @iconName='minus'\n                />\n              </span>\n            {{/if}}\n            {{this.data.name}}\n          </a>\n        {{else}}\n          {{#if\n            (and\n              this.data.parent\n              (not (eq this.data.debitCredit this.data.parent.debitCredit))\n            )\n          }}\n            <span class='debitCredit debitCredit--debit'><InfoPopup\n                @text={{concat\n                  this.data.name\n                  ' subtracts from '\n                  this.data.parent.name\n                }}\n                @iconName='minus'\n              /></span>\n          {{/if}}\n          {{this.data.name}}\n        {{/if}}\n      </td>\n  \n      {{#each this.data.month as |unused index|}}\n        {{#if this.monthVisible}}\n          <td\n            class='text-right\n              {{if (lt this.data.month 0) \"financials-table__negative-value\"}}'\n          >\n            {{#unless (and this.showChildren (not this.childrenHidden))}}\n              {{number-format\n                (object-at this.data.month index)\n                maximumFractionDigits=0\n                dashZero=true\n              }}\n              {{#if this.percentageVisible}}\n                <span class='financials-table__percentage'>\n                  {{#if (or (not this.expandableTotalRow) this.data.parent)}}\n                    <InfoWrapper\n                      @text={{concat\n                        (number-format\n                          (if\n                            this.parentScoped\n                            (object-at this.data.monthPercentParent index)\n                            (object-at this.data.monthPercentSales index)\n                          )\n                          style='percent'\n                          dashZero=true\n                          maximumFractionDigits=2\n                          minimumFractionDigits=2\n                        )\n                        ' of '\n                        (if this.parentScoped this.data.parent.name 'Sales')\n                      }}\n                    >\n                      {{number-format\n                        (if\n                          this.parentScoped\n                          (object-at this.data.monthPercentParent index)\n                          (object-at this.data.monthPercentSales index)\n                        )\n                        style='percent'\n                        dashZero=true\n                        maximumFractionDigits=2\n                        minimumFractionDigits=2\n                      }}\n                    </InfoWrapper>\n                  {{/if}}\n                </span>\n              {{/if}}\n            {{/unless}}\n          </td>\n          {{#if this.lastYearVisible}}\n            <td\n              class='text-right\n                {{if\n                  (lt (object-at this.data.monthPrev index) 0)\n                  \"financials-table__negative-value\"\n                }}'\n            >\n              {{#unless (and this.showChildren (not this.childrenHidden))}}\n                {{number-format\n                  (object-at this.data.monthPrev index)\n                  maximumFractionDigits=0\n                  dashZero=true\n                }}\n                {{#if this.percentageVisible}}\n                  <span class='financials-table__percentage'>\n                    {{#if (or (not this.expandableTotalRow) this.data.parent)}}\n                      <InfoWrapper\n                        @text={{concat\n                          (number-format\n                            (if\n                              this.parentScoped\n                              (object-at this.data.monthPrevPercentParent index)\n                              (object-at this.data.monthPrevPercentSales index)\n                            )\n                            style='percent'\n                            dashZero=true\n                            maximumFractionDigits=2\n                            minimumFractionDigits=2\n                          )\n                          ' of '\n                          (if this.parentScoped this.data.parent.name 'Sales')\n                        }}\n                      >\n                        {{number-format\n                          (if\n                            this.parentScoped\n                            (object-at this.data.monthPrevPercentParent index)\n                            (object-at this.data.monthPrevPercentSales index)\n                          )\n                          style='percent'\n                          dashZero=true\n                          maximumFractionDigits=2\n                          minimumFractionDigits=2\n                        }}\n                      </InfoWrapper>\n                    {{/if}}\n                  </span>\n                {{/if}}\n              {{/unless}}\n            </td>\n          {{/if}}\n        {{/if}}\n        {{#if this.ytdVisible}}\n          <td\n            class='text-right\n              {{if\n                (lt (object-at this.data.ytd index) 0)\n                \"financials-table__negative-value\"\n              }}'\n          >\n            {{#unless (and this.showChildren (not this.childrenHidden))}}\n              {{number-format\n                (object-at this.data.ytd index)\n                maximumFractionDigits=0\n                dashZero=true\n              }}\n              {{#if this.percentageVisible}}\n                <span class='financials-table__percentage'>\n                  {{#if (or (not this.expandableTotalRow) this.data.parent)}}\n                    <InfoWrapper\n                      @text={{concat\n                        (number-format\n                          (if\n                            this.parentScoped\n                            (object-at this.data.ytdPercentParent index)\n                            (object-at this.data.ytdPercentSales index)\n                          )\n                          style='percent'\n                          dashZero=true\n                          maximumFractionDigits=2\n                          minimumFractionDigits=2\n                        )\n                        ' of '\n                        (if this.parentScoped this.data.parent.name 'Sales')\n                      }}\n                    >\n                      {{number-format\n                        (if\n                          this.parentScoped\n                          (object-at this.data.ytdPercentParent index)\n                          (object-at this.data.ytdPercentSales index)\n                        )\n                        style='percent'\n                        dashZero=true\n                        maximumFractionDigits=2\n                        minimumFractionDigits=2\n                      }}\n                    </InfoWrapper>\n                  {{/if}}\n                </span>\n              {{/if}}\n            {{/unless}}\n          </td>\n          {{#if this.lastYearVisible}}\n            <td\n              class='text-right\n                {{if\n                  (lt (object-at this.data.ytdPrev index) 0)\n                  \"financials-table__negative-value\"\n                }}'\n            >\n              {{#unless (and this.showChildren (not this.childrenHidden))}}\n                {{number-format\n                  (object-at this.data.ytdPrev index)\n                  maximumFractionDigits=0\n                  dashZero=true\n                }}\n                {{#if this.percentageVisible}}\n                  <span class='financials-table__percentage'>\n                    {{#if (or (not this.expandableTotalRow) this.data.parent)}}\n                      <InfoWrapper\n                        @text={{concat\n                          (number-format\n                            (if\n                              this.parentScoped\n                              (object-at this.data.ytdPrevPercentParent index)\n                              (object-at this.data.ytdPrevPercentSales index)\n                            )\n                            style='percent'\n                            dashZero=true\n                            maximumFractionDigits=2\n                            minimumFractionDigits=2\n                          )\n                          ' of '\n                          (if this.parentScoped this.data.parent.name 'Sales')\n                        }}\n                      >\n                        {{number-format\n                          (if\n                            this.parentScoped\n                            (object-at this.data.ytdPrevPercentParent index)\n                            (object-at this.data.ytdPrevPercentSales index)\n                          )\n                          style='percent'\n                          dashZero=true\n                          maximumFractionDigits=2\n                          minimumFractionDigits=2\n                        }}\n                      </InfoWrapper>\n                    {{/if}}\n                  </span>\n                {{/if}}\n              {{/unless}}\n            </td>\n          {{/if}}\n        {{/if}}\n      {{/each}}\n    </tr>\n  \n    {{#if (and this.showChildren (not this.childrenHidden))}}\n      {{#each this.data.children as |child|}}\n        <ItmFinancialTableSection\n          @parentScoped={{this.parentScoped}}\n          @lastYearVisible={{this.lastYearVisible}}\n          @percentageVisible={{this.percentageVisible}}\n          @ytdVisible={{this.ytdVisible}}\n          @monthVisible={{this.monthVisible}}\n          @data={{child}}\n          @depth={{math this.depth '+' 1}}\n          @toggleShowChildren={{action 'toggleShowChildren'}}\n        />\n      {{/each}}\n  \n      <tr class='data-table__total-row'>\n        <td\n          class='financials-table__account-name financials-table__indented-cell financials-table__indented-cell--depth-0'\n          colspan='2'\n        >\n          <FaIcon @icon='angle-right' class='invisible' />{{~! ~}}\n          {{this.data.name}}\n        </td>\n        {{#each this.data.month as |unused index|}}\n          {{#if this.monthVisible}}\n            <td\n              class='text-right\n                {{if\n                  (lt (object-at this.data.month index) 0)\n                  \"financials-table__negative-value\"\n                }}'\n            >\n              {{number-format\n                (object-at this.data.month index)\n                maximumFractionDigits=0\n                dashZero=true\n              }}\n              {{#if this.percentageVisible}}\n                <span class='financials-table__percentage'>\n                  {{#if (or (not this.expandableTotalRow) this.data.parent)}}\n                    <InfoWrapper\n                      @text={{concat\n                        (number-format\n                          (if\n                            this.parentScoped\n                            (object-at this.data.monthPercentParent index)\n                            (object-at this.data.monthPercentSales index)\n                          )\n                          style='percent'\n                          dashZero=true\n                          maximumFractionDigits=2\n                          minimumFractionDigits=2\n                        )\n                        ' of '\n                        (if this.parentScoped this.data.parent.name 'Sales')\n                      }}\n                    >\n                      {{number-format\n                        (if\n                          this.parentScoped\n                          (object-at this.data.monthPercentParent index)\n                          (object-at this.data.monthPercentSales index)\n                        )\n                        style='percent'\n                        dashZero=true\n                        maximumFractionDigits=2\n                        minimumFractionDigits=2\n                      }}\n                    </InfoWrapper>\n                  {{/if}}\n                </span>\n              {{/if}}\n            </td>\n            {{#if this.lastYearVisible}}\n              <td\n                class='text-right\n                  {{if\n                    (lt (object-at this.data.monthPrev index) 0)\n                    \"financials-table__negative-value\"\n                  }}'\n              >\n                {{number-format\n                  (object-at this.data.monthPrev index)\n                  maximumFractionDigits=0\n                  dashZero=true\n                }}\n                {{#if this.percentageVisible}}\n                  <span class='financials-table__percentage'>\n                    {{#if (or (not this.expandableTotalRow) this.data.parent)}}\n                      <InfoWrapper\n                        @text={{concat\n                          (number-format\n                            (if\n                              this.parentScoped\n                              (object-at this.data.monthPrevPercentParent index)\n                              (object-at this.data.monthPrevPercentSales index)\n                            )\n                            style='percent'\n                            dashZero=true\n                            maximumFractionDigits=2\n                            minimumFractionDigits=2\n                          )\n                          ' of '\n                          (if this.parentScoped this.data.parent.name 'Sales')\n                        }}\n                      >\n                        {{number-format\n                          (if\n                            this.parentScoped\n                            (object-at this.data.monthPrevPercentParent index)\n                            (object-at this.data.monthPrevPercentSales index)\n                          )\n                          style='percent'\n                          dashZero=true\n                          maximumFractionDigits=2\n                          minimumFractionDigits=2\n                        }}\n                      </InfoWrapper>\n                    {{/if}}\n                  </span>\n                {{/if}}\n              </td>\n            {{/if}}\n          {{/if}}\n          {{#if this.ytdVisible}}\n            <td\n              class='text-right\n                {{if\n                  (lt (object-at this.data.ytd index) 0)\n                  \"financials-table__negative-value\"\n                }}'\n            >\n              {{number-format\n                (object-at this.data.ytd index)\n                maximumFractionDigits=0\n                dashZero=true\n              }}\n              {{#if this.percentageVisible}}\n                <span class='financials-table__percentage'>\n                  {{#if (or (not this.expandableTotalRow) this.data.parent)}}\n                    <InfoWrapper\n                      @text={{concat\n                        (number-format\n                          (if\n                            this.parentScoped\n                            (object-at this.data.ytdPercentParent index)\n                            (object-at this.data.ytdPercentSales index)\n                          )\n                          style='percent'\n                          dashZero=true\n                          maximumFractionDigits=2\n                          minimumFractionDigits=2\n                        )\n                        ' of '\n                        (if this.parentScoped this.data.parent.name 'Sales')\n                      }}\n                    >\n                      {{number-format\n                        (if\n                          this.parentScoped\n                          (object-at this.data.ytdPercentParent index)\n                          (object-at this.data.ytdPercentSales index)\n                        )\n                        style='percent'\n                        dashZero=true\n                        maximumFractionDigits=2\n                        minimumFractionDigits=2\n                      }}\n                    </InfoWrapper>\n                  {{/if}}\n                </span>\n              {{/if}}\n            </td>\n            {{#if this.lastYearVisible}}\n              <td\n                class='text-right\n                  {{if\n                    (lt (object-at this.data.ytdPrev index) 0)\n                    \"financials-table__negative-value\"\n                  }}'\n              >\n                {{number-format\n                  (object-at this.data.ytdPrev index)\n                  maximumFractionDigits=0\n                  dashZero=true\n                }}\n                {{#if this.percentageVisible}}\n                  <span class='financials-table__percentage'>\n                    {{#if (or (not this.expandableTotalRow) this.data.parent)}}\n                      <InfoWrapper\n                        @text={{concat\n                          (number-format\n                            (if\n                              this.parentScoped\n                              (object-at this.data.ytdPrevPercentParent index)\n                              (object-at this.data.ytdPrevPercentSales index)\n                            )\n                            style='percent'\n                            dashZero=true\n                            maximumFractionDigits=2\n                            minimumFractionDigits=2\n                          )\n                          ' of '\n                          (if this.parentScoped this.data.parent.name 'Sales')\n                        }}\n                      >\n                        {{number-format\n                          (if\n                            this.parentScoped\n                            (object-at this.data.ytdPrevPercentParent index)\n                            (object-at this.data.ytdPrevPercentSales index)\n                          )\n                          style='percent'\n                          dashZero=true\n                          maximumFractionDigits=2\n                          minimumFractionDigits=2\n                        }}\n                      </InfoWrapper>\n                    {{/if}}\n                  </span>\n                {{/if}}\n              </td>\n            {{/if}}\n          {{/if}}\n        {{/each}}\n      </tr>\n    {{/if}}\n  \n  {{/if}}\n  */\n  {\n    \"id\": \"OYQe9M7E\",\n    \"block\": \"[[[41,[30,0,[\\\"splitLines\\\"]],[[[1,\\\"  \\\"],[10,\\\"tr\\\"],[14,0,\\\"data-table__total-row\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"2\\\"],[12],[1,[28,[35,3],[[30,0,[\\\"title\\\"]],[30,0,[\\\"data\\\",\\\"name\\\"]]],null]],[1,\\\" $\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,5],[[28,[37,5],[[30,0,[\\\"data\\\",\\\"month\\\"]]],null]],null],null,[[[41,[30,0,[\\\"monthVisible\\\"]],[[[1,\\\"        \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n            \\\",[52,[28,[37,6],[[30,0,[\\\"data\\\",\\\"month\\\"]],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"percentageVisible\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"float-end financials-table__percentage\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[1,[28,[35,8],[[28,[37,9],[[30,0,[\\\"data\\\",\\\"month\\\"]],[30,2]],null]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"lastYearVisible\\\"]],[[[1,\\\"          \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n              \\\",[52,[28,[37,6],[[30,0,[\\\"data\\\",\\\"monthPrev\\\"]],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"percentageVisible\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"float-end financials-table__percentage\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[1,[28,[35,8],[[28,[37,9],[[30,0,[\\\"data\\\",\\\"monthPrev\\\"]],[30,2]],null]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"ytdVisible\\\"]],[[[1,\\\"        \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n            \\\",[52,[28,[37,6],[[30,0,[\\\"data\\\",\\\"ytd\\\"]],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"percentageVisible\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"float-end financials-table__percentage\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[1,[28,[35,8],[[28,[37,9],[[30,0,[\\\"data\\\",\\\"ytd\\\"]],[30,2]],null]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"lastYearVisible\\\"]],[[[1,\\\"          \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n              \\\",[52,[28,[37,6],[[30,0,[\\\"data\\\",\\\"ytdPrev\\\"]],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"percentageVisible\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"float-end financials-table__percentage\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[1,[28,[35,8],[[28,[37,9],[[30,0,[\\\"data\\\",\\\"ytdPrev\\\"]],[30,2]],null]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[1,2]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n  \\\"],[10,\\\"tr\\\"],[14,0,\\\"data-table__total-row\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"2\\\"],[12],[1,[28,[35,3],[[30,0,[\\\"title\\\"]],[30,0,[\\\"data\\\",\\\"name\\\"]]],null]],[1,\\\" %\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,5],[[28,[37,5],[[30,0,[\\\"data\\\",\\\"month\\\"]]],null]],null],null,[[[41,[30,0,[\\\"monthVisible\\\"]],[[[1,\\\"        \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n            \\\",[52,[28,[37,6],[[30,0,[\\\"data\\\",\\\"MonthPercentSales\\\"]],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"percentageVisible\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"float-end financials-table__percentage\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[1,[28,[35,8],[[28,[37,9],[[30,0,[\\\"data\\\",\\\"monthPercentSales\\\"]],[30,4]],null]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"lastYearVisible\\\"]],[[[1,\\\"          \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n              \\\",[52,[28,[37,6],[[30,0,[\\\"data\\\",\\\"MonthPrevPercentSales\\\"]],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"percentageVisible\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"float-end financials-table__percentage\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[1,[28,[35,8],[[28,[37,9],[[30,0,[\\\"data\\\",\\\"monthPrevPercentSales\\\"]],[30,4]],null]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"ytdVisible\\\"]],[[[1,\\\"        \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n            \\\",[52,[28,[37,6],[[30,0,[\\\"data\\\",\\\"YtdPercentSales\\\"]],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"percentageVisible\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"float-end financials-table__percentage\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[1,[28,[35,8],[[28,[37,9],[[30,0,[\\\"data\\\",\\\"ytdPercentSales\\\"]],[30,4]],null]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"lastYearVisible\\\"]],[[[1,\\\"          \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n              \\\",[52,[28,[37,6],[[30,0,[\\\"data\\\",\\\"YtdPrevPercentSales\\\"]],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"percentageVisible\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"float-end financials-table__percentage\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[1,[28,[35,8],[[28,[37,9],[[30,0,[\\\"data\\\",\\\"ytdPrevPercentSales\\\"]],[30,4]],null]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[3,4]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\n  \\\"],[10,\\\"tr\\\"],[15,0,[29,[[52,[28,[37,3],[[30,0,[\\\"highlighted\\\"]],[28,[37,10],[[28,[37,11],[[30,0,[\\\"data\\\",\\\"parent\\\"]]],null],[30,0,[\\\"expandableTotalRow\\\"]]],null]],null],\\\"data-table__total-row\\\"]]]],[12],[1,\\\"\\\\n    \\\"],[10,\\\"td\\\"],[15,0,[29,[[52,[51,[30,0,[\\\"highlighted\\\"]]],[28,[37,13],[\\\"inancials-table__account-name financials-table__account-name financials-table__indented-cell financials-table__indented-cell--depth-\\\",[30,0,[\\\"depth\\\"]]],null]]]]],[14,\\\"colspan\\\",\\\"2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,10],[[30,0,[\\\"data\\\",\\\"children\\\"]],[28,[37,11],[[30,0,[\\\"childrenHidden\\\"]]],null]],null],[[[1,\\\"        \\\"],[11,3],[24,0,\\\"financials-table__section-expansion-toggle link\\\"],[4,[38,15],[[30,0],[30,0,[\\\"toggleProperty\\\"]],\\\"showChildren\\\"],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"showChildren\\\"]],\\\"angle-down\\\",\\\"angle-right\\\"]]],null],[41,[28,[37,10],[[30,0,[\\\"data\\\",\\\"parent\\\"]],[28,[37,11],[[28,[37,17],[[30,0,[\\\"data\\\",\\\"debitCredit\\\"]],[30,0,[\\\"data\\\",\\\"parent\\\",\\\"debitCredit\\\"]]],null]],null]],null],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"debitCredit debitCredit--debit\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,18],null,[[\\\"@text\\\",\\\"@iconName\\\"],[[28,[37,13],[[30,0,[\\\"data\\\",\\\"name\\\"]],\\\" subtracts from \\\",[30,0,[\\\"data\\\",\\\"parent\\\",\\\"name\\\"]]],null],\\\"minus\\\"]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[1,[30,0,[\\\"data\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,10],[[30,0,[\\\"data\\\",\\\"parent\\\"]],[28,[37,11],[[28,[37,17],[[30,0,[\\\"data\\\",\\\"debitCredit\\\"]],[30,0,[\\\"data\\\",\\\"parent\\\",\\\"debitCredit\\\"]]],null]],null]],null],[[[1,\\\"          \\\"],[10,1],[14,0,\\\"debitCredit debitCredit--debit\\\"],[12],[8,[39,18],null,[[\\\"@text\\\",\\\"@iconName\\\"],[[28,[37,13],[[30,0,[\\\"data\\\",\\\"name\\\"]],\\\" subtracts from \\\",[30,0,[\\\"data\\\",\\\"parent\\\",\\\"name\\\"]]],null],\\\"minus\\\"]],null],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[1,[30,0,[\\\"data\\\",\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,5],[[28,[37,5],[[30,0,[\\\"data\\\",\\\"month\\\"]]],null]],null],null,[[[41,[30,0,[\\\"monthVisible\\\"]],[[[1,\\\"        \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n            \\\",[52,[28,[37,6],[[30,0,[\\\"data\\\",\\\"month\\\"]],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[51,[28,[37,10],[[30,0,[\\\"showChildren\\\"]],[28,[37,11],[[30,0,[\\\"childrenHidden\\\"]]],null]],null]],[[[1,\\\"            \\\"],[1,[28,[35,8],[[28,[37,9],[[30,0,[\\\"data\\\",\\\"month\\\"]],[30,6]],null]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"percentageVisible\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"financials-table__percentage\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[[28,[37,11],[[30,0,[\\\"expandableTotalRow\\\"]]],null],[30,0,[\\\"data\\\",\\\"parent\\\"]]],null],[[[1,\\\"                  \\\"],[8,[39,19],null,[[\\\"@text\\\"],[[28,[37,13],[[28,[37,8],[[52,[30,0,[\\\"parentScoped\\\"]],[28,[37,9],[[30,0,[\\\"data\\\",\\\"monthPercentParent\\\"]],[30,6]],null],[28,[37,9],[[30,0,[\\\"data\\\",\\\"monthPercentSales\\\"]],[30,6]],null]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]],\\\" of \\\",[52,[30,0,[\\\"parentScoped\\\"]],[30,0,[\\\"data\\\",\\\"parent\\\",\\\"name\\\"]],\\\"Sales\\\"]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                    \\\"],[1,[28,[35,8],[[52,[30,0,[\\\"parentScoped\\\"]],[28,[37,9],[[30,0,[\\\"data\\\",\\\"monthPercentParent\\\"]],[30,6]],null],[28,[37,9],[[30,0,[\\\"data\\\",\\\"monthPercentSales\\\"]],[30,6]],null]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]]],[1,\\\"\\\\n                  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"lastYearVisible\\\"]],[[[1,\\\"          \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n              \\\",[52,[28,[37,6],[[28,[37,9],[[30,0,[\\\"data\\\",\\\"monthPrev\\\"]],[30,6]],null],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[51,[28,[37,10],[[30,0,[\\\"showChildren\\\"]],[28,[37,11],[[30,0,[\\\"childrenHidden\\\"]]],null]],null]],[[[1,\\\"              \\\"],[1,[28,[35,8],[[28,[37,9],[[30,0,[\\\"data\\\",\\\"monthPrev\\\"]],[30,6]],null]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"percentageVisible\\\"]],[[[1,\\\"                \\\"],[10,1],[14,0,\\\"financials-table__percentage\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[[28,[37,11],[[30,0,[\\\"expandableTotalRow\\\"]]],null],[30,0,[\\\"data\\\",\\\"parent\\\"]]],null],[[[1,\\\"                    \\\"],[8,[39,19],null,[[\\\"@text\\\"],[[28,[37,13],[[28,[37,8],[[52,[30,0,[\\\"parentScoped\\\"]],[28,[37,9],[[30,0,[\\\"data\\\",\\\"monthPrevPercentParent\\\"]],[30,6]],null],[28,[37,9],[[30,0,[\\\"data\\\",\\\"monthPrevPercentSales\\\"]],[30,6]],null]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]],\\\" of \\\",[52,[30,0,[\\\"parentScoped\\\"]],[30,0,[\\\"data\\\",\\\"parent\\\",\\\"name\\\"]],\\\"Sales\\\"]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                      \\\"],[1,[28,[35,8],[[52,[30,0,[\\\"parentScoped\\\"]],[28,[37,9],[[30,0,[\\\"data\\\",\\\"monthPrevPercentParent\\\"]],[30,6]],null],[28,[37,9],[[30,0,[\\\"data\\\",\\\"monthPrevPercentSales\\\"]],[30,6]],null]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]]],[1,\\\"\\\\n                    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"ytdVisible\\\"]],[[[1,\\\"        \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n            \\\",[52,[28,[37,6],[[28,[37,9],[[30,0,[\\\"data\\\",\\\"ytd\\\"]],[30,6]],null],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[51,[28,[37,10],[[30,0,[\\\"showChildren\\\"]],[28,[37,11],[[30,0,[\\\"childrenHidden\\\"]]],null]],null]],[[[1,\\\"            \\\"],[1,[28,[35,8],[[28,[37,9],[[30,0,[\\\"data\\\",\\\"ytd\\\"]],[30,6]],null]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"percentageVisible\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"financials-table__percentage\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[[28,[37,11],[[30,0,[\\\"expandableTotalRow\\\"]]],null],[30,0,[\\\"data\\\",\\\"parent\\\"]]],null],[[[1,\\\"                  \\\"],[8,[39,19],null,[[\\\"@text\\\"],[[28,[37,13],[[28,[37,8],[[52,[30,0,[\\\"parentScoped\\\"]],[28,[37,9],[[30,0,[\\\"data\\\",\\\"ytdPercentParent\\\"]],[30,6]],null],[28,[37,9],[[30,0,[\\\"data\\\",\\\"ytdPercentSales\\\"]],[30,6]],null]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]],\\\" of \\\",[52,[30,0,[\\\"parentScoped\\\"]],[30,0,[\\\"data\\\",\\\"parent\\\",\\\"name\\\"]],\\\"Sales\\\"]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                    \\\"],[1,[28,[35,8],[[52,[30,0,[\\\"parentScoped\\\"]],[28,[37,9],[[30,0,[\\\"data\\\",\\\"ytdPercentParent\\\"]],[30,6]],null],[28,[37,9],[[30,0,[\\\"data\\\",\\\"ytdPercentSales\\\"]],[30,6]],null]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]]],[1,\\\"\\\\n                  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"lastYearVisible\\\"]],[[[1,\\\"          \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n              \\\",[52,[28,[37,6],[[28,[37,9],[[30,0,[\\\"data\\\",\\\"ytdPrev\\\"]],[30,6]],null],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[51,[28,[37,10],[[30,0,[\\\"showChildren\\\"]],[28,[37,11],[[30,0,[\\\"childrenHidden\\\"]]],null]],null]],[[[1,\\\"              \\\"],[1,[28,[35,8],[[28,[37,9],[[30,0,[\\\"data\\\",\\\"ytdPrev\\\"]],[30,6]],null]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"percentageVisible\\\"]],[[[1,\\\"                \\\"],[10,1],[14,0,\\\"financials-table__percentage\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[[28,[37,11],[[30,0,[\\\"expandableTotalRow\\\"]]],null],[30,0,[\\\"data\\\",\\\"parent\\\"]]],null],[[[1,\\\"                    \\\"],[8,[39,19],null,[[\\\"@text\\\"],[[28,[37,13],[[28,[37,8],[[52,[30,0,[\\\"parentScoped\\\"]],[28,[37,9],[[30,0,[\\\"data\\\",\\\"ytdPrevPercentParent\\\"]],[30,6]],null],[28,[37,9],[[30,0,[\\\"data\\\",\\\"ytdPrevPercentSales\\\"]],[30,6]],null]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]],\\\" of \\\",[52,[30,0,[\\\"parentScoped\\\"]],[30,0,[\\\"data\\\",\\\"parent\\\",\\\"name\\\"]],\\\"Sales\\\"]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                      \\\"],[1,[28,[35,8],[[52,[30,0,[\\\"parentScoped\\\"]],[28,[37,9],[[30,0,[\\\"data\\\",\\\"ytdPrevPercentParent\\\"]],[30,6]],null],[28,[37,9],[[30,0,[\\\"data\\\",\\\"ytdPrevPercentSales\\\"]],[30,6]],null]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]]],[1,\\\"\\\\n                    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[5,6]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,10],[[30,0,[\\\"showChildren\\\"]],[28,[37,11],[[30,0,[\\\"childrenHidden\\\"]]],null]],null],[[[42,[28,[37,5],[[28,[37,5],[[30,0,[\\\"data\\\",\\\"children\\\"]]],null]],null],null,[[[1,\\\"      \\\"],[8,[39,20],null,[[\\\"@parentScoped\\\",\\\"@lastYearVisible\\\",\\\"@percentageVisible\\\",\\\"@ytdVisible\\\",\\\"@monthVisible\\\",\\\"@data\\\",\\\"@depth\\\",\\\"@toggleShowChildren\\\"],[[30,0,[\\\"parentScoped\\\"]],[30,0,[\\\"lastYearVisible\\\"]],[30,0,[\\\"percentageVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]],[30,0,[\\\"monthVisible\\\"]],[30,7],[28,[37,21],[[30,0,[\\\"depth\\\"]],\\\"+\\\",1],null],[28,[37,15],[[30,0],\\\"toggleShowChildren\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[7]],null],[1,\\\"\\\\n    \\\"],[10,\\\"tr\\\"],[14,0,\\\"data-table__total-row\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"td\\\"],[14,0,\\\"financials-table__account-name financials-table__indented-cell financials-table__indented-cell--depth-0\\\"],[14,\\\"colspan\\\",\\\"2\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,16],[[24,0,\\\"invisible\\\"]],[[\\\"@icon\\\"],[\\\"angle-right\\\"]],null],[1,[30,0,[\\\"data\\\",\\\"name\\\"]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,5],[[28,[37,5],[[30,0,[\\\"data\\\",\\\"month\\\"]]],null]],null],null,[[[41,[30,0,[\\\"monthVisible\\\"]],[[[1,\\\"          \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n              \\\",[52,[28,[37,6],[[28,[37,9],[[30,0,[\\\"data\\\",\\\"month\\\"]],[30,9]],null],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,8],[[28,[37,9],[[30,0,[\\\"data\\\",\\\"month\\\"]],[30,9]],null]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"percentageVisible\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"financials-table__percentage\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[[28,[37,11],[[30,0,[\\\"expandableTotalRow\\\"]]],null],[30,0,[\\\"data\\\",\\\"parent\\\"]]],null],[[[1,\\\"                  \\\"],[8,[39,19],null,[[\\\"@text\\\"],[[28,[37,13],[[28,[37,8],[[52,[30,0,[\\\"parentScoped\\\"]],[28,[37,9],[[30,0,[\\\"data\\\",\\\"monthPercentParent\\\"]],[30,9]],null],[28,[37,9],[[30,0,[\\\"data\\\",\\\"monthPercentSales\\\"]],[30,9]],null]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]],\\\" of \\\",[52,[30,0,[\\\"parentScoped\\\"]],[30,0,[\\\"data\\\",\\\"parent\\\",\\\"name\\\"]],\\\"Sales\\\"]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                    \\\"],[1,[28,[35,8],[[52,[30,0,[\\\"parentScoped\\\"]],[28,[37,9],[[30,0,[\\\"data\\\",\\\"monthPercentParent\\\"]],[30,9]],null],[28,[37,9],[[30,0,[\\\"data\\\",\\\"monthPercentSales\\\"]],[30,9]],null]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]]],[1,\\\"\\\\n                  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"lastYearVisible\\\"]],[[[1,\\\"            \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n                \\\",[52,[28,[37,6],[[28,[37,9],[[30,0,[\\\"data\\\",\\\"monthPrev\\\"]],[30,9]],null],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,8],[[28,[37,9],[[30,0,[\\\"data\\\",\\\"monthPrev\\\"]],[30,9]],null]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"percentageVisible\\\"]],[[[1,\\\"                \\\"],[10,1],[14,0,\\\"financials-table__percentage\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[[28,[37,11],[[30,0,[\\\"expandableTotalRow\\\"]]],null],[30,0,[\\\"data\\\",\\\"parent\\\"]]],null],[[[1,\\\"                    \\\"],[8,[39,19],null,[[\\\"@text\\\"],[[28,[37,13],[[28,[37,8],[[52,[30,0,[\\\"parentScoped\\\"]],[28,[37,9],[[30,0,[\\\"data\\\",\\\"monthPrevPercentParent\\\"]],[30,9]],null],[28,[37,9],[[30,0,[\\\"data\\\",\\\"monthPrevPercentSales\\\"]],[30,9]],null]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]],\\\" of \\\",[52,[30,0,[\\\"parentScoped\\\"]],[30,0,[\\\"data\\\",\\\"parent\\\",\\\"name\\\"]],\\\"Sales\\\"]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                      \\\"],[1,[28,[35,8],[[52,[30,0,[\\\"parentScoped\\\"]],[28,[37,9],[[30,0,[\\\"data\\\",\\\"monthPrevPercentParent\\\"]],[30,9]],null],[28,[37,9],[[30,0,[\\\"data\\\",\\\"monthPrevPercentSales\\\"]],[30,9]],null]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]]],[1,\\\"\\\\n                    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"ytdVisible\\\"]],[[[1,\\\"          \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n              \\\",[52,[28,[37,6],[[28,[37,9],[[30,0,[\\\"data\\\",\\\"ytd\\\"]],[30,9]],null],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,8],[[28,[37,9],[[30,0,[\\\"data\\\",\\\"ytd\\\"]],[30,9]],null]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"percentageVisible\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"financials-table__percentage\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[[28,[37,11],[[30,0,[\\\"expandableTotalRow\\\"]]],null],[30,0,[\\\"data\\\",\\\"parent\\\"]]],null],[[[1,\\\"                  \\\"],[8,[39,19],null,[[\\\"@text\\\"],[[28,[37,13],[[28,[37,8],[[52,[30,0,[\\\"parentScoped\\\"]],[28,[37,9],[[30,0,[\\\"data\\\",\\\"ytdPercentParent\\\"]],[30,9]],null],[28,[37,9],[[30,0,[\\\"data\\\",\\\"ytdPercentSales\\\"]],[30,9]],null]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]],\\\" of \\\",[52,[30,0,[\\\"parentScoped\\\"]],[30,0,[\\\"data\\\",\\\"parent\\\",\\\"name\\\"]],\\\"Sales\\\"]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                    \\\"],[1,[28,[35,8],[[52,[30,0,[\\\"parentScoped\\\"]],[28,[37,9],[[30,0,[\\\"data\\\",\\\"ytdPercentParent\\\"]],[30,9]],null],[28,[37,9],[[30,0,[\\\"data\\\",\\\"ytdPercentSales\\\"]],[30,9]],null]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]]],[1,\\\"\\\\n                  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"lastYearVisible\\\"]],[[[1,\\\"            \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n                \\\",[52,[28,[37,6],[[28,[37,9],[[30,0,[\\\"data\\\",\\\"ytdPrev\\\"]],[30,9]],null],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,8],[[28,[37,9],[[30,0,[\\\"data\\\",\\\"ytdPrev\\\"]],[30,9]],null]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"percentageVisible\\\"]],[[[1,\\\"                \\\"],[10,1],[14,0,\\\"financials-table__percentage\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[[28,[37,11],[[30,0,[\\\"expandableTotalRow\\\"]]],null],[30,0,[\\\"data\\\",\\\"parent\\\"]]],null],[[[1,\\\"                    \\\"],[8,[39,19],null,[[\\\"@text\\\"],[[28,[37,13],[[28,[37,8],[[52,[30,0,[\\\"parentScoped\\\"]],[28,[37,9],[[30,0,[\\\"data\\\",\\\"ytdPrevPercentParent\\\"]],[30,9]],null],[28,[37,9],[[30,0,[\\\"data\\\",\\\"ytdPrevPercentSales\\\"]],[30,9]],null]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]],\\\" of \\\",[52,[30,0,[\\\"parentScoped\\\"]],[30,0,[\\\"data\\\",\\\"parent\\\",\\\"name\\\"]],\\\"Sales\\\"]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                      \\\"],[1,[28,[35,8],[[52,[30,0,[\\\"parentScoped\\\"]],[28,[37,9],[[30,0,[\\\"data\\\",\\\"ytdPrevPercentParent\\\"]],[30,9]],null],[28,[37,9],[[30,0,[\\\"data\\\",\\\"ytdPrevPercentSales\\\"]],[30,9]],null]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]]],[1,\\\"\\\\n                    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[8,9]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"]],[]]]],[\\\"unused\\\",\\\"index\\\",\\\"unused\\\",\\\"index\\\",\\\"unused\\\",\\\"index\\\",\\\"child\\\",\\\"unused\\\",\\\"index\\\"],false,[\\\"if\\\",\\\"tr\\\",\\\"td\\\",\\\"or\\\",\\\"each\\\",\\\"-track-array\\\",\\\"lt\\\",\\\"span\\\",\\\"number-format\\\",\\\"object-at\\\",\\\"and\\\",\\\"not\\\",\\\"unless\\\",\\\"concat\\\",\\\"a\\\",\\\"action\\\",\\\"fa-icon\\\",\\\"eq\\\",\\\"info-popup\\\",\\\"info-wrapper\\\",\\\"itm-financial-table-section\\\",\\\"math\\\"]]\",\n    \"moduleName\": \"portal/components/itm-financial-table-section.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    tagName: '',\n    actions: {\n      toggleShowChildren(account) {\n        this.toggleShowChildren(account);\n      }\n    }\n  }));\n});","define(\"portal/components/label-indicator\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <span\n    class='{{if @isBad \"text-danger\"}} {{if @isGood \"text-success\"}}'\n    ...attributes\n  >\n    {{yield}}\n  </span>\n  */\n  {\n    \"id\": \"A+pewt0C\",\n    \"block\": \"[[[11,1],[16,0,[29,[[52,[30,1],\\\"text-danger\\\"],\\\" \\\",[52,[30,2],\\\"text-success\\\"]]]],[17,3],[12],[1,\\\"\\\\n  \\\"],[18,4,null],[1,\\\"\\\\n\\\"],[13]],[\\\"@isBad\\\",\\\"@isGood\\\",\\\"&attrs\\\",\\\"&default\\\"],false,[\\\"span\\\",\\\"if\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"portal/components/label-indicator.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"portal/components/label-popup\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _tracking, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    class='label-popup__container'\n    {{on 'mouseenter' this.showPopup}}\n    {{on 'mouseleave' this.hidePopup}}\n    {{did-insert this.registerContainer}}\n    {{will-destroy this.teardown}}\n    ...attributes\n  >\n    <span class='label-popup__text'>{{yield}}</span>\n  </div>\n  \n  {{#if (and @text this.isShowing)}}\n    {{#in-element this.destinationElement}}\n      <div\n        class='shadow border rounded bg-white px-2 py-1 text-left fs-6 label-popup__popup\n          {{@popupClass}}'\n        {{did-insert this.registerPopup}}\n      >\n        <span class='text-break' style='white-space: pre-line;'>{{@text}}</span>\n      </div>\n    {{/in-element}}\n  {{/if}}\n  */\n  {\n    \"id\": \"srCKYzhu\",\n    \"block\": \"[[[11,0],[24,0,\\\"label-popup__container\\\"],[17,1],[4,[38,1],[\\\"mouseenter\\\",[30,0,[\\\"showPopup\\\"]]],null],[4,[38,1],[\\\"mouseleave\\\",[30,0,[\\\"hidePopup\\\"]]],null],[4,[38,2],[[30,0,[\\\"registerContainer\\\"]]],null],[4,[38,3],[[30,0,[\\\"teardown\\\"]]],null],[12],[1,\\\"\\\\n  \\\"],[10,1],[14,0,\\\"label-popup__text\\\"],[12],[18,4,null],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,7],[[30,2],[30,0,[\\\"isShowing\\\"]]],null],[[[40,[[[1,\\\"    \\\"],[11,0],[16,0,[29,[\\\"shadow border rounded bg-white px-2 py-1 text-left fs-6 label-popup__popup\\\\n        \\\",[30,3]]]],[4,[38,2],[[30,0,[\\\"registerPopup\\\"]]],null],[12],[1,\\\"\\\\n      \\\"],[10,1],[14,0,\\\"text-break\\\"],[14,5,\\\"white-space: pre-line;\\\"],[12],[1,[30,2]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],\\\"%cursor:0%\\\",[28,[37,9],[[30,0,[\\\"destinationElement\\\"]]],null]]],[]],null]],[\\\"&attrs\\\",\\\"@text\\\",\\\"@popupClass\\\",\\\"&default\\\"],false,[\\\"div\\\",\\\"on\\\",\\\"did-insert\\\",\\\"will-destroy\\\",\\\"span\\\",\\\"yield\\\",\\\"if\\\",\\\"and\\\",\\\"in-element\\\",\\\"-in-el-null\\\"]]\",\n    \"moduleName\": \"portal/components/label-popup.hbs\",\n    \"isStrictMode\": false\n  });\n  let LabelPopupComponent = _exports.default = (_class = class LabelPopupComponent extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"isShowing\", _descriptor, this);\n      _defineProperty(this, \"containerElement\", null);\n      _defineProperty(this, \"popupElement\", null);\n      this.ensurePortalTargetExists();\n    }\n    ensurePortalTargetExists() {\n      if (!document.getElementById('popup-portal-target')) {\n        const portalDiv = document.createElement('div');\n        portalDiv.id = 'popup-portal-target';\n        document.body.appendChild(portalDiv);\n      }\n    }\n    get destinationElement() {\n      // Never #ember-testing: in-element empties its destination, so that would\n      // wipe the whole app out from under any test that hovers a label.\n      return document.getElementById('popup-portal-target');\n    }\n    showPopup() {\n      this.isShowing = true;\n    }\n    hidePopup() {\n      this.isShowing = false;\n    }\n    registerContainer(element) {\n      this.containerElement = element;\n    }\n    registerPopup(element) {\n      this.popupElement = element;\n      // trigger positioning immediately when the popup is inserted into the dom\n      this.setupPositioning();\n    }\n    setupPositioning() {\n      if (!this.containerElement || !this.popupElement) return;\n      this.updatePosition();\n      window.addEventListener('scroll', this.updatePosition, {\n        capture: true,\n        passive: true\n      });\n      window.addEventListener('resize', this.updatePosition, {\n        passive: true\n      });\n    }\n    updatePosition() {\n      requestAnimationFrame(() => {\n        // if the user mouses out quickly, the element might be gone before this fires\n        if (!this.containerElement || !this.popupElement || !this.isShowing) return;\n        const containerRect = this.containerElement.getBoundingClientRect();\n        const popupRect = this.popupElement.getBoundingClientRect();\n        const gap = 4;\n        let top = containerRect.bottom + window.scrollY + gap;\n        let left = containerRect.left + window.scrollX;\n        const rightEdge = containerRect.left + popupRect.width;\n        const maxRight = window.innerWidth - 5;\n        if (rightEdge > maxRight) {\n          left = left - (rightEdge - maxRight);\n        }\n        const bottomEdge = containerRect.bottom + popupRect.height + gap;\n        if (bottomEdge > window.innerHeight && containerRect.top > popupRect.height + gap) {\n          top = containerRect.top + window.scrollY - popupRect.height - gap;\n        }\n        Object.assign(this.popupElement.style, {\n          position: 'absolute',\n          top: `${top}px`,\n          left: `${left}px`\n        });\n      });\n    }\n    teardown() {\n      window.removeEventListener('scroll', this.updatePosition, {\n        capture: true\n      });\n      window.removeEventListener('resize', this.updatePosition);\n      this.containerElement = null;\n      this.popupElement = null;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"isShowing\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"showPopup\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"showPopup\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"hidePopup\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"hidePopup\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"registerContainer\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"registerContainer\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"registerPopup\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"registerPopup\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updatePosition\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"updatePosition\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"teardown\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"teardown\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, LabelPopupComponent);\n});","define(\"portal/components/lazy-each\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@ember/runloop\", \"@ember/debug\", \"portal/config/environment\", \"@ember/template-factory\"], function (_exports, _component, _object, _runloop, _debug, _environment, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"@ember/runloop\",0,\"@ember/debug\",0,\"portal/config/environment\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#each this.lazyLoadedItems as |item index|}}\n    {{yield item this.elementIdentifier index}}\n  {{else if this.emptyText}}\n    <p class='text-center text-muted p-4' data-test-lazy-each-empty-text=''>\n      {{html-safe this.emptyText}}\n    </p>\n  {{else if this.emptyContent}}\n    {{html-safe this.emptyContent}}\n  {{/each}}\n  {{#unless this.allItemsAreDisplayed}}\n    {{#if this.automatic}}\n      <div\n        class='lazy-each__placeholder'\n        data-test-lazy-each-is-automatic-loading=''\n      >\n        {{t 'common.Loading more'}}\n        {{this.itemDisplayName}}\n        <LoadingIcon @type='spinner' />\n      </div>\n    {{else}}\n      <div class='lazy-each__load-more'>\n        <button\n          type='button'\n          class='text-button'\n          {{action 'renderMore'}}\n          data-test-lazy-each-load-more-button=''\n        >\n          {{t 'common.loadXMore' nextIncrement=this.nextIncrement}}\n          {{pluralize this.nextIncrement this.itemDisplayName without-count=true}}\n          {{t\n            'common.showingXOfYName'\n            length=this.lazyLoadedItems.length\n            total=this.items.length\n            name=(pluralize this.itemDisplayName)\n          }}\n        </button>\n      </div>\n    {{/if}}\n  {{/unless}}\n  */\n  {\n    \"id\": \"FZWOQwN+\",\n    \"block\": \"[[[42,[28,[37,1],[[28,[37,1],[[30,0,[\\\"lazyLoadedItems\\\"]]],null]],null],null,[[[1,\\\"  \\\"],[18,3,[[30,1],[30,0,[\\\"elementIdentifier\\\"]],[30,2]]],[1,\\\"\\\\n\\\"]],[1,2]],[[[41,[30,0,[\\\"emptyText\\\"]],[[[1,\\\"  \\\"],[10,2],[14,0,\\\"text-center text-muted p-4\\\"],[14,\\\"data-test-lazy-each-empty-text\\\",\\\"\\\"],[12],[1,\\\"\\\\n    \\\"],[1,[28,[35,5],[[30,0,[\\\"emptyText\\\"]]],null]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"emptyContent\\\"]],[[[1,\\\"  \\\"],[1,[28,[35,5],[[30,0,[\\\"emptyContent\\\"]]],null]],[1,\\\"\\\\n\\\"]],[]],null]],[]]]],[]]],[41,[51,[30,0,[\\\"allItemsAreDisplayed\\\"]]],[[[41,[30,0,[\\\"automatic\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"lazy-each__placeholder\\\"],[14,\\\"data-test-lazy-each-is-automatic-loading\\\",\\\"\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,8],[\\\"common.Loading more\\\"],null]],[1,\\\"\\\\n      \\\"],[1,[30,0,[\\\"itemDisplayName\\\"]]],[1,\\\"\\\\n      \\\"],[8,[39,9],null,[[\\\"@type\\\"],[\\\"spinner\\\"]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"lazy-each__load-more\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,\\\"data-test-lazy-each-load-more-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,11],[[30,0],\\\"renderMore\\\"],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,8],[\\\"common.loadXMore\\\"],[[\\\"nextIncrement\\\"],[[30,0,[\\\"nextIncrement\\\"]]]]]],[1,\\\"\\\\n        \\\"],[1,[28,[35,12],[[30,0,[\\\"nextIncrement\\\"]],[30,0,[\\\"itemDisplayName\\\"]]],[[\\\"without-count\\\"],[true]]]],[1,\\\"\\\\n        \\\"],[1,[28,[35,8],[\\\"common.showingXOfYName\\\"],[[\\\"length\\\",\\\"total\\\",\\\"name\\\"],[[30,0,[\\\"lazyLoadedItems\\\",\\\"length\\\"]],[30,0,[\\\"items\\\",\\\"length\\\"]],[28,[37,12],[[30,0,[\\\"itemDisplayName\\\"]]],null]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],null]],[\\\"item\\\",\\\"index\\\",\\\"&default\\\"],false,[\\\"each\\\",\\\"-track-array\\\",\\\"yield\\\",\\\"if\\\",\\\"p\\\",\\\"html-safe\\\",\\\"unless\\\",\\\"div\\\",\\\"t\\\",\\\"loading-icon\\\",\\\"button\\\",\\\"action\\\",\\\"pluralize\\\"]]\",\n    \"moduleName\": \"portal/components/lazy-each.hbs\",\n    \"isStrictMode\": false\n  });\n  function findFirstScrollableParent(className, defaultSelector) {\n    let parent = document.querySelector(`.${className}`)?.parentElement;\n    while (parent) {\n      // this handles all scroll styles i.e scroll: auto, scroll-y: auto\n      const overflowY = window.getComputedStyle(parent).getPropertyValue('overflow-y');\n      const hasScrollStyle = overflowY === 'auto' || overflowY === 'scroll';\n      if (hasScrollStyle) return parent;\n      parent = parent.parentElement;\n    }\n    return document.querySelector(defaultSelector);\n  }\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    tagName: '',\n    elementIdentifier: null,\n    automatic: false,\n    increment: 10,\n    itemDisplayName: 'item',\n    windowSelector: _environment.default.windowSelector,\n    numberOfItemsVisible: 1,\n    scrollHandler: null,\n    init() {\n      this._super(...arguments);\n      if (this.initialNumberOfItemsVisible) {\n        (false && !(!isNaN(this.initialNumberOfItemsVisible)) && (0, _debug.assert)('Must provide number to `initialNumberOfItemsVisible`', !isNaN(this.initialNumberOfItemsVisible)));\n        if (typeof this.initialNumberOfItemsVisible === 'string') this.set('numberOfItemsVisible', Number(this.initialNumberOfItemsVisible));\n      }\n\n      // Generate a identifier so we can find our elements (our component is tagless)\n      (0, _object.set)(this, 'elementIdentifier', 'lazy-each__' + Math.floor(Math.random() * 1e5));\n    },\n    didReceiveAttrs() {\n      this._super(...arguments);\n      (false && !(!isNaN(this.increment)) && (0, _debug.assert)('Must provide number to `increment`', !isNaN(this.increment)));\n      if (typeof this.increment === 'string') this.set('increment', Number(this.increment));\n\n      // If the items array changes update the component\n      if (this.items) {\n        // The items have changed so we need to check our position again\n        if (this.automatic) (0, _runloop.next)(() => this.checkVisible());\n      }\n    },\n    didInsertElement() {\n      this._super(...arguments);\n      if (this.automatic) {\n        const scrollableParent = findFirstScrollableParent(this.elementIdentifier, this.windowSelector);\n        this.findLastElement(true);\n        (0, _object.set)(this, 'scrollHandler', this.checkVisible.bind(this));\n        scrollableParent.addEventListener('scroll', this.scrollHandler);\n      }\n    },\n    willDestroyElement() {\n      this._super(...arguments);\n      if (this.automatic) {\n        const scrollableParent = findFirstScrollableParent(this.elementIdentifier, this.windowSelector);\n        scrollableParent.removeEventListener('scroll', this.scrollHandler);\n        (0, _object.set)(this, 'scrollHandler', null);\n      }\n    },\n    allItemsAreDisplayed: (0, _object.computed)('items.[]', 'numberOfItemsVisible', function () {\n      return this.items.length <= this.numberOfItemsVisible;\n    }),\n    nextIncrement: (0, _object.computed)('items.[]', 'increment', 'numberOfItemsVisible', function () {\n      const itemsRemaining = this.items.length - this.numberOfItemsVisible;\n\n      // Don't increment past the length of the items array\n      return this.increment > itemsRemaining ? itemsRemaining : this.increment;\n    }),\n    lazyLoadedItems: (0, _object.computed)('items.[]', 'numberOfItemsVisible', function () {\n      return this.items.slice(0, this.numberOfItemsVisible);\n    }),\n    actions: {\n      renderMore() {\n        (0, _object.set)(this, 'numberOfItemsVisible', this.numberOfItemsVisible + this.nextIncrement);\n      }\n    },\n    findLastElement: function (shouldWarn) {\n      if (this.allItemsAreDisplayed) return;\n      const element = Array.from(document.querySelectorAll(`.${this.elementIdentifier}`)).pop();\n      (false && (0, _debug.warn)('No elements with identifier class found. Please use the second contextual variable from the loop as a class name in the last element of each iteration', !shouldWarn || element, {\n        id: 'lazy-each.no-identifier-class-found'\n      }));\n      return element;\n    },\n    checkVisible: function () {\n      if (this.allItemsAreDisplayed) return;\n      const element = this.findLastElement();\n      if (!element) return;\n      const scrollableParent = findFirstScrollableParent(this.elementIdentifier, this.windowSelector);\n      const placeholderHeight = 40;\n      const screenHeight = scrollableParent.clientHeight;\n      const topOfElement = element.offsetTop;\n      const bottomOfElement = topOfElement + element.offsetHeight;\n      const topOfScreen = scrollableParent.scrollTop;\n      const bottomOfScreen = topOfScreen + screenHeight;\n      const renderAhead = screenHeight;\n\n      // If the bottom of the screen (plus margins) is larger than the bottom of the element\n      if (bottomOfScreen + placeholderHeight + renderAhead > bottomOfElement) {\n        this.send('renderMore');\n        // Check again if we have rendered enough elements for our scroll position\n        (0, _runloop.next)(() => this.checkVisible());\n      }\n    }\n  }));\n});","define(\"portal/components/link-to-external\", [\"exports\", \"ember-engines/components/link-to-external\"], function (_exports, _linkToExternal) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _linkToExternal.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-engines/components/link-to-external\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/loading-button\", [\"exports\", \"@ember/component\", \"@ember/object/computed\", \"portal/components/loading-button\", \"jquery\", \"@ember/template-factory\"], function (_exports, _component, _computed, _loadingButton, _jquery, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object/computed\",0,\"@ember/component\",0,\"portal/components/loading-button\",0,\"jquery\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if @isLoading}}\n    <FaIcon @icon='circle-notch' @spin='true' />\n  {{else}}\n    {{#if (has-block)}}\n      {{yield}}\n    {{else}}\n      {{@buttonText}}\n    {{/if}}\n  {{/if}}\n  */\n  {\n    \"id\": \"+9hid45e\",\n    \"block\": \"[[[41,[30,1],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@icon\\\",\\\"@spin\\\"],[\\\"circle-notch\\\",\\\"true\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[48,[30,3]],[[[1,\\\"    \\\"],[18,3,null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[1,[30,2]],[1,\\\"\\\\n\\\"]],[]]]],[]]]],[\\\"@isLoading\\\",\\\"@buttonText\\\",\\\"&default\\\"],false,[\\\"if\\\",\\\"fa-icon\\\",\\\"has-block\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"portal/components/loading-button.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    layout: _loadingButton.default,\n    tagName: 'button',\n    classNames: ['loading-button'],\n    classNameBindings: ['isLoading:loading'],\n    attributeBindings: ['isDisabledComputed:disabled'],\n    buttonText: 'Submit',\n    isLoading: false,\n    isDisabled: false,\n    isDisabledComputed: (0, _computed.or)('isLoading', 'isDisabled'),\n    click(event) {\n      event.preventDefault();\n      if (!this.isLoading) {\n        // Maintain current width\n        var el = (0, _jquery.default)(this.element)[0];\n        el.style.minWidth = getComputedStyle(el).width;\n        el.style.minHeight = getComputedStyle(el).height;\n        if (this.action) {\n          this.action();\n        }\n      }\n    }\n  }));\n});","define(\"portal/components/loading-icon\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    class='loading-icon\n      {{if @type (concat \"loading-icon--\" @type)}}\n      {{if @class @class}}'\n  >\n    {{#if (eq @type 'ripple')}}\n      <svg\n        xmlns='http://www.w3.org/2000/svg'\n        viewBox='0 0 100 100'\n        preserveAspectRatio='xMidYMid'\n        class='uil-ripple'\n      >\n        <circle\n          cx='50'\n          cy='50'\n          r='0'\n          stroke='#8ca7c3'\n          fill='none'\n          stroke-width='3'\n          stroke-linecap='round'\n        />\n        <circle\n          cx='50'\n          cy='50'\n          r='14.7'\n          stroke='#eee'\n          fill='none'\n          stroke-width='3'\n          stroke-linecap='round'\n        />\n        <circle\n          cx='50'\n          cy='50'\n          r='29.3'\n          stroke='#8ca7c3'\n          fill='none'\n          stroke-width='3'\n          stroke-linecap='round'\n        />\n        <circle\n          cx='50'\n          cy='50'\n          r='44'\n          stroke='#eee'\n          fill='none'\n          stroke-width='3'\n          stroke-linecap='round'\n        />\n      </svg>\n    {{/if}}\n  \n    {{#if (eq @type 'spinner')}}\n      <svg\n        xmlns='http://www.w3.org/2000/svg'\n        viewBox='0 0 100 100'\n        preserveAspectRatio='xMidYMid'\n        class='uil-ring'\n      >\n        <circle cx='50' cy='50' r='40'></circle>\n      </svg>\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"/GcN80Vs\",\n    \"block\": \"[[[10,0],[15,0,[29,[\\\"loading-icon\\\\n    \\\",[52,[30,1],[28,[37,2],[\\\"loading-icon--\\\",[30,1]],null]],\\\"\\\\n    \\\",[52,[30,2],[30,2]]]]],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[[30,1],\\\"ripple\\\"],null],[[[1,\\\"    \\\"],[10,\\\"svg\\\"],[14,\\\"xmlns\\\",\\\"http://www.w3.org/2000/svg\\\",\\\"http://www.w3.org/2000/xmlns/\\\"],[14,\\\"viewBox\\\",\\\"0 0 100 100\\\"],[14,\\\"preserveAspectRatio\\\",\\\"xMidYMid\\\"],[14,0,\\\"uil-ripple\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"circle\\\"],[14,\\\"cx\\\",\\\"50\\\"],[14,\\\"cy\\\",\\\"50\\\"],[14,\\\"r\\\",\\\"0\\\"],[14,\\\"stroke\\\",\\\"#8ca7c3\\\"],[14,\\\"fill\\\",\\\"none\\\"],[14,\\\"stroke-width\\\",\\\"3\\\"],[14,\\\"stroke-linecap\\\",\\\"round\\\"],[12],[13],[1,\\\"\\\\n      \\\"],[10,\\\"circle\\\"],[14,\\\"cx\\\",\\\"50\\\"],[14,\\\"cy\\\",\\\"50\\\"],[14,\\\"r\\\",\\\"14.7\\\"],[14,\\\"stroke\\\",\\\"#eee\\\"],[14,\\\"fill\\\",\\\"none\\\"],[14,\\\"stroke-width\\\",\\\"3\\\"],[14,\\\"stroke-linecap\\\",\\\"round\\\"],[12],[13],[1,\\\"\\\\n      \\\"],[10,\\\"circle\\\"],[14,\\\"cx\\\",\\\"50\\\"],[14,\\\"cy\\\",\\\"50\\\"],[14,\\\"r\\\",\\\"29.3\\\"],[14,\\\"stroke\\\",\\\"#8ca7c3\\\"],[14,\\\"fill\\\",\\\"none\\\"],[14,\\\"stroke-width\\\",\\\"3\\\"],[14,\\\"stroke-linecap\\\",\\\"round\\\"],[12],[13],[1,\\\"\\\\n      \\\"],[10,\\\"circle\\\"],[14,\\\"cx\\\",\\\"50\\\"],[14,\\\"cy\\\",\\\"50\\\"],[14,\\\"r\\\",\\\"44\\\"],[14,\\\"stroke\\\",\\\"#eee\\\"],[14,\\\"fill\\\",\\\"none\\\"],[14,\\\"stroke-width\\\",\\\"3\\\"],[14,\\\"stroke-linecap\\\",\\\"round\\\"],[12],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[[30,1],\\\"spinner\\\"],null],[[[1,\\\"    \\\"],[10,\\\"svg\\\"],[14,\\\"xmlns\\\",\\\"http://www.w3.org/2000/svg\\\",\\\"http://www.w3.org/2000/xmlns/\\\"],[14,\\\"viewBox\\\",\\\"0 0 100 100\\\"],[14,\\\"preserveAspectRatio\\\",\\\"xMidYMid\\\"],[14,0,\\\"uil-ring\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"circle\\\"],[14,\\\"cx\\\",\\\"50\\\"],[14,\\\"cy\\\",\\\"50\\\"],[14,\\\"r\\\",\\\"40\\\"],[12],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[13]],[\\\"@type\\\",\\\"@class\\\"],false,[\\\"div\\\",\\\"if\\\",\\\"concat\\\",\\\"eq\\\",\\\"svg\\\",\\\"circle\\\"]]\",\n    \"moduleName\": \"portal/components/loading-icon.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component2.default {});\n});","define(\"portal/components/logged-in-as\", [\"exports\", \"@ember/component\", \"@ember/service\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _service, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/service\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='logged-in-as'>\n    <div class='logged-in-as__marquee'>\n      <div class='marquee'>\n        <p>You're logged in as\n          {{this.sessionData.user.firstName}}\n          {{this.sessionData.user.lastName}}\n          ({{this.sessionData.user.email}})\n          <FaIcon @icon='exclamation-circle' style='margin-left: 5px' /></p>\n      </div>\n    </div>\n    <button\n      class='logged-in-as__return text-button'\n      type='button'\n      {{action 'exitLoginAs'}}\n    >\n      Return\n      <FaIcon @icon='sign-out-alt' style='margin-left: 5px' />\n    </button>\n  </div>\n  */\n  {\n    \"id\": \"tSxiu5cc\",\n    \"block\": \"[[[10,0],[14,0,\\\"logged-in-as\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"logged-in-as__marquee\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"marquee\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"You're logged in as\\\\n        \\\"],[1,[30,0,[\\\"sessionData\\\",\\\"user\\\",\\\"firstName\\\"]]],[1,\\\"\\\\n        \\\"],[1,[30,0,[\\\"sessionData\\\",\\\"user\\\",\\\"lastName\\\"]]],[1,\\\"\\\\n        (\\\"],[1,[30,0,[\\\"sessionData\\\",\\\"user\\\",\\\"email\\\"]]],[1,\\\")\\\\n        \\\"],[8,[39,2],[[24,5,\\\"margin-left: 5px\\\"]],[[\\\"@icon\\\"],[\\\"exclamation-circle\\\"]],null],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"logged-in-as__return text-button\\\"],[24,4,\\\"button\\\"],[4,[38,4],[[30,0],\\\"exitLoginAs\\\"],null],[12],[1,\\\"\\\\n    Return\\\\n    \\\"],[8,[39,2],[[24,5,\\\"margin-left: 5px\\\"]],[[\\\"@icon\\\"],[\\\"sign-out-alt\\\"]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"div\\\",\\\"p\\\",\\\"fa-icon\\\",\\\"button\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"portal/components/logged-in-as.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    sessionData: (0, _service.inject)(),\n    actions: {\n      exitLoginAs() {\n        (0, _object.get)(this, 'sessionData').exitLoginAs();\n      }\n    }\n  }));\n});","define(\"portal/components/mapping/draggable-map\", [\"exports\", \"@ember/component\", \"@ember/object/computed\", \"@ember/object\", \"jquery\", \"@ember/template-factory\"], function (_exports, _component, _computed, _object, _jquery, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object/computed\",0,\"@ember/component\",0,\"@ember/object\",0,\"jquery\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <td class='code'>{{this.map.code}}</td>\n  <td class='name' title={{this.map.name}}>{{this.map.name}}</td>\n  <td class='value'>\n    {{number-format\n      this.map.value\n      style='currency'\n      dashZero=true\n      maximumFractionDigits=0\n    }}\n  </td>\n  {{#if this.canInvert}}\n    <td class='inversion'><label><Input\n          @type='checkbox'\n          @checked={{this.map.inverted}}\n        />\n        +/&minus;</label></td>\n  {{/if}}\n  */\n  {\n    \"id\": \"0cBmoDFW\",\n    \"block\": \"[[[10,\\\"td\\\"],[14,0,\\\"code\\\"],[12],[1,[30,0,[\\\"map\\\",\\\"code\\\"]]],[13],[1,\\\"\\\\n\\\"],[10,\\\"td\\\"],[14,0,\\\"name\\\"],[15,\\\"title\\\",[30,0,[\\\"map\\\",\\\"name\\\"]]],[12],[1,[30,0,[\\\"map\\\",\\\"name\\\"]]],[13],[1,\\\"\\\\n\\\"],[10,\\\"td\\\"],[14,0,\\\"value\\\"],[12],[1,\\\"\\\\n  \\\"],[1,[28,[35,1],[[30,0,[\\\"map\\\",\\\"value\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\"],[\\\"currency\\\",true,0]]]],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canInvert\\\"]],[[[1,\\\"  \\\"],[10,\\\"td\\\"],[14,0,\\\"inversion\\\"],[12],[10,\\\"label\\\"],[12],[8,[39,4],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"map\\\",\\\"inverted\\\"]]]],null],[1,\\\"\\\\n      +/−\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],null]],[],false,[\\\"td\\\",\\\"number-format\\\",\\\"if\\\",\\\"label\\\",\\\"input\\\"]]\",\n    \"moduleName\": \"portal/components/mapping/draggable-map.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    tagName: 'tr',\n    attributeBindings: ['map.externalId:data-map-external-id', 'map.system:data-map-system'],\n    classNames: ['draggable-map'],\n    classNameBindings: ['map.system'],\n    unmapped: (0, _computed.empty)('map.account.id'),\n    didInsertElement() {\n      this._super(...arguments);\n      const appendTo = (0, _object.get)(this, 'unmapped') ? 'parent' : 'body';\n      (0, _jquery.default)(this.element).draggable({\n        cursor: 'grabbing',\n        revert: 'invalid',\n        scope: 'accounts',\n        handle: '.code, .name, .value',\n        helper: 'clone',\n        appendTo,\n        opacity: 0.8\n      });\n    }\n  }));\n});","define(\"portal/components/mapping/map-list\", [\"exports\", \"@ember/component\", \"@ember/object\", \"portal/utils/sort-by-account-code\", \"jquery\", \"@ember/object/computed\", \"@ember/template-factory\"], function (_exports, _component, _object, _sortByAccountCode, _jquery, _computed, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"portal/utils/sort-by-account-code\",0,\"jquery\",0,\"@ember/object/computed\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.mapList.length}}\n    <table>\n      {{#each this.mapList as |map|}}\n        <Mapping::DraggableMap\n          @map={{map}}\n          @canInvert={{this.shouldShowInvert}}\n        />\n      {{/each}}\n    </table>\n  {{else}}\n    {{#if (has-block)}}\n      {{yield}}\n    {{else}}\n      <span class='ptl-placeholder'>No accounts have been set to map to this one</span>\n    {{/if}}\n  {{/if}}\n  */\n  {\n    \"id\": \"eZBYFoio\",\n    \"block\": \"[[[41,[30,0,[\\\"mapList\\\",\\\"length\\\"]],[[[1,\\\"  \\\"],[10,\\\"table\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,3],[[28,[37,3],[[30,0,[\\\"mapList\\\"]]],null]],null],null,[[[1,\\\"      \\\"],[8,[39,4],null,[[\\\"@map\\\",\\\"@canInvert\\\"],[[30,1],[30,0,[\\\"shouldShowInvert\\\"]]]],null],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[48,[30,2]],[[[1,\\\"    \\\"],[18,2,null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,1],[14,0,\\\"ptl-placeholder\\\"],[12],[1,\\\"No accounts have been set to map to this one\\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]]],[\\\"map\\\",\\\"&default\\\"],false,[\\\"if\\\",\\\"table\\\",\\\"each\\\",\\\"-track-array\\\",\\\"mapping/draggable-map\\\",\\\"has-block\\\",\\\"yield\\\",\\\"span\\\"]]\",\n    \"moduleName\": \"portal/components/mapping/map-list.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    classNames: ['map-list'],\n    canInvertValues: true,\n    shouldShowInvert: (0, _computed.and)('canInvertValues', 'hasImported'),\n    hasSelectedSystem: (0, _computed.notEmpty)('system'),\n    mapList: (0, _object.computed)('maps.[]', function () {\n      const maps = (0, _object.get)(this, 'maps') || [];\n      let hasImported = false;\n      for (let i = 0; i < (0, _object.get)(maps, 'length'); i++) {\n        if (maps.objectAt(i).value != null) {\n          hasImported = true;\n          break;\n        }\n      }\n      (0, _object.set)(this, 'hasImported', hasImported);\n      return maps.sort(_sortByAccountCode.default);\n    }),\n    didInsertElement() {\n      this._super(...arguments);\n      (0, _jquery.default)(this.element).droppable({\n        hoverClass: 'hover',\n        scope: 'accounts',\n        tolerance: 'pointer',\n        drop: (event, ui) => {\n          const mapId = ui.draggable.attr('data-map-external-id');\n          const balance = (0, _object.get)(this, 'account.balance');\n          const system = ui.draggable.attr('data-map-system');\n          this.remap(mapId, balance, system || null);\n        }\n      });\n    }\n  }));\n});","define(\"portal/components/mapping/map-status\", [\"exports\", \"@ember/component\", \"@ember/object\", \"portal/components/mapping/map-list\", \"@ember/template-factory\"], function (_exports, _component, _object, _mapList, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"portal/components/mapping/map-list\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <a {{action 'wasClicked' this.account}}></a>\n  \n  {{!\n    This sits outside of the <a> so it remains vertically centered when\n    the <a> is position: absolute;\n  }}\n  \n  <span>\n    {{#if this.isManual}}\n      M\n    {{else}}\n      {{#if this.hasSelectedSystem}}\n        {{this.mapList.length}}\n      {{else}}\n        –\n      {{/if}}\n    {{/if}}\n  </span>\n  */\n  {\n    \"id\": \"XHGC5aDx\",\n    \"block\": \"[[[11,3],[4,[38,1],[[30,0],\\\"wasClicked\\\",[30,0,[\\\"account\\\"]]],null],[12],[13],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"\\\\n\\\"],[10,1],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isManual\\\"]],[[[1,\\\"    M\\\\n\\\"]],[]],[[[41,[30,0,[\\\"hasSelectedSystem\\\"]],[[[1,\\\"      \\\"],[1,[30,0,[\\\"mapList\\\",\\\"length\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      –\\\\n\\\"]],[]]]],[]]],[13]],[],false,[\\\"a\\\",\\\"action\\\",\\\"span\\\",\\\"if\\\"]]\",\n    \"moduleName\": \"portal/components/mapping/map-status.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _mapList.default.extend({\n    tagName: 'td',\n    classNames: ['map-status'],\n    classNameBindings: ['ok', 'isManual:manual'],\n    ok: (0, _object.computed)('mapList.length', 'hasSelectedSystem', function () {\n      return (0, _object.get)(this, 'mapList.length') > 0 && (0, _object.get)(this, 'hasSelectedSystem');\n    }),\n    actions: {\n      wasClicked() {\n        if ((0, _object.get)(this, 'isManual')) {\n          this.makeAuto(...arguments);\n        } else {\n          this.toggle(...arguments);\n        }\n      }\n    }\n  }));\n});","define(\"portal/components/markdown-to-html\", [\"exports\", \"ember-cli-showdown/components/markdown-to-html\"], function (_exports, _markdownToHtml) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _markdownToHtml.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-showdown/components/markdown-to-html\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/metric-breakdown\", [\"exports\", \"@ember/component\", \"@ember/object/computed\", \"@ember/object/evented\", \"jquery\", \"@ember/object\", \"@ember/service\", \"portal/config/environment\", \"@ember/template-factory\"], function (_exports, _component, _computed, _evented, _jquery, _object, _service, _environment, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object/computed\",0,\"@ember/component\",0,\"@ember/object/evented\",0,\"jquery\",0,\"@ember/object\",0,\"@ember/service\",0,\"portal/config/environment\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <ModalDialog\n    @translucentOverlay={{true}}\n    @clickOutsideToClose={{true}}\n    @overlayClass='modal breakdown'\n    @containerClass='block-module'\n    @onClose={{action this.close}}\n  >\n    <header class='block-module__header'>\n      <button\n        class='text-button float-end close'\n        type='button'\n        {{action this.close}}\n      >&times;</button>\n      <h1 class='h1'>Breakdown of {{this.selectedGroup.name}} Group</h1>\n      <h2 class='h2'>{{this.selectedMetric.name}}\n        —\n        {{if (eq this.periodType 'ytd') 'Year to'}}\n        {{moment-format this.sessionData.period 'MMMM YYYY'}}</h2>\n    </header>\n  \n    <section class='chart'>\n      {{#if this.isLoading}}\n        <LoadingIcon @type='ripple' />\n      {{else if (gt (get this.chartData.columns '0.length') 3)}}\n        <h3>Variation from the average, by store</h3>\n        <C3Chart\n          @data={{this.chartData}}\n          @size={{this.size}}\n          @legend={{this.legend}}\n          @grid={{this.grid}}\n          @axis={{this.axis}}\n          @tooltip={{this.tooltip}}\n          @padding={{this.padding}}\n          @point={{this.point}}\n          @regions={{this.regions}}\n        />\n      {{else if (gt (get this.chartData.columns '0.length') 1)}}\n        <p class='ptl-placeholder no-data'>There must be at least three values for\n          a chart to be shown.</p>\n      {{else}}\n        <p class='ptl-placeholder no-data'>There is no data for\n          {{moment-format this.sessionData.period 'MMMM YYYY'}}.</p>\n      {{/if}}\n    </section>\n  \n    <section class='stats'>\n      {{! &nbsp; around values prevents collapse when values are null }}\n  \n      <div class='metric'>\n        <div class='number'>\n          {{#if this.isLoading}}\n            <FaIcon @icon='circle-notch' @spin={{true}} />\n          {{else}}\n            &nbsp;\n            {{number-format\n              this.average\n              style=(get this.formattedStyle this.selectedMetric.format)\n              maximumFractionDigits=2\n              dashZero=true\n            }}\n            &nbsp;\n          {{/if}}\n        </div>\n        <div class='label'>Average</div>\n      </div>\n  \n      <div class='metric'>\n        <div class='number'>\n          {{#if this.isLoading}}\n            <FaIcon @icon='circle-notch' @spin={{true}} />\n          {{else}}\n            &nbsp;\n            {{number-format\n              this.standardDeviation\n              style=(get this.formattedStyle this.selectedMetric.format)\n              maximumFractionDigits=2\n              dashZero=true\n            }}\n            &nbsp;\n          {{/if}}\n        </div>\n        <div class='label'>Standard Deviation</div>\n      </div>\n    </section>\n  \n    <section class='breakdown-table'>\n      {{#unless this.isLoading}}\n        <ActiveTable @columns={{this.tableColumns}} @sortedBy={{this.sort}}>\n          {{#each this.sortedValues as |value|}}\n            <tr class={{unless value.included 'disabled'}}>\n              <td>\n                <Input @type='checkbox' @checked={{value.included}} />\n                {{value.entity.name}}\n              </td>\n  \n              <td class='text-right'>\n                {{number-format\n                  (get value this.periodType)\n                  style=(get this.formattedStyle this.selectedMetric.format)\n                  maximumFractionDigits=2\n                  dashZero=true\n                }}\n              </td>\n  \n              <td\n                class='text-right\n                  {{if this.kpi.warnings.length \"warning\" \"no-warning\"}}'\n              >\n                {{#if (and (get value this.periodType) this.average)}}\n                  {{number-format\n                    (math (get value this.periodType) '-' this.average)\n                    style=(get this.formattedStyle this.selectedMetric.format)\n                    maximumFractionDigits=2\n                    dashZero=true\n                  }}\n                {{/if}}\n              </td>\n            </tr>\n          {{/each}}\n        </ActiveTable>\n      {{/unless}}\n    </section>\n  </ModalDialog>\n  */\n  {\n    \"id\": \"Bu0zYU3o\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@translucentOverlay\\\",\\\"@clickOutsideToClose\\\",\\\"@overlayClass\\\",\\\"@containerClass\\\",\\\"@onClose\\\"],[true,true,\\\"modal breakdown\\\",\\\"block-module\\\",[28,[37,1],[[30,0],[30,0,[\\\"close\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"block-module__header\\\"],[12],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button float-end close\\\"],[24,4,\\\"button\\\"],[4,[38,1],[[30,0],[30,0,[\\\"close\\\"]]],null],[12],[1,\\\"×\\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1\\\"],[12],[1,\\\"Breakdown of \\\"],[1,[30,0,[\\\"selectedGroup\\\",\\\"name\\\"]]],[1,\\\" Group\\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2\\\"],[12],[1,[30,0,[\\\"selectedMetric\\\",\\\"name\\\"]]],[1,\\\"\\\\n      —\\\\n      \\\"],[1,[52,[28,[37,7],[[30,0,[\\\"periodType\\\"]],\\\"ytd\\\"],null],\\\"Year to\\\"]],[1,\\\"\\\\n      \\\"],[1,[28,[35,8],[[30,0,[\\\"sessionData\\\",\\\"period\\\"]],\\\"MMMM YYYY\\\"],null]],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"section\\\"],[14,0,\\\"chart\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"      \\\"],[8,[39,10],null,[[\\\"@type\\\"],[\\\"ripple\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,11],[[28,[37,12],[[30,0,[\\\"chartData\\\",\\\"columns\\\"]],\\\"0.length\\\"],null],3],null],[[[1,\\\"      \\\"],[10,\\\"h3\\\"],[12],[1,\\\"Variation from the average, by store\\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,14],null,[[\\\"@data\\\",\\\"@size\\\",\\\"@legend\\\",\\\"@grid\\\",\\\"@axis\\\",\\\"@tooltip\\\",\\\"@padding\\\",\\\"@point\\\",\\\"@regions\\\"],[[30,0,[\\\"chartData\\\"]],[30,0,[\\\"size\\\"]],[30,0,[\\\"legend\\\"]],[30,0,[\\\"grid\\\"]],[30,0,[\\\"axis\\\"]],[30,0,[\\\"tooltip\\\"]],[30,0,[\\\"padding\\\"]],[30,0,[\\\"point\\\"]],[30,0,[\\\"regions\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,11],[[28,[37,12],[[30,0,[\\\"chartData\\\",\\\"columns\\\"]],\\\"0.length\\\"],null],1],null],[[[1,\\\"      \\\"],[10,2],[14,0,\\\"ptl-placeholder no-data\\\"],[12],[1,\\\"There must be at least three values for\\\\n        a chart to be shown.\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,2],[14,0,\\\"ptl-placeholder no-data\\\"],[12],[1,\\\"There is no data for\\\\n        \\\"],[1,[28,[35,8],[[30,0,[\\\"sessionData\\\",\\\"period\\\"]],\\\"MMMM YYYY\\\"],null]],[1,\\\".\\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]],[]]]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"section\\\"],[14,0,\\\"stats\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"metric\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"number\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"          \\\"],[8,[39,17],null,[[\\\"@icon\\\",\\\"@spin\\\"],[\\\"circle-notch\\\",true]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"           \\\\n          \\\"],[1,[28,[35,18],[[30,0,[\\\"average\\\"]]],[[\\\"style\\\",\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[[28,[37,12],[[30,0,[\\\"formattedStyle\\\"]],[30,0,[\\\"selectedMetric\\\",\\\"format\\\"]]],null],2,true]]]],[1,\\\"\\\\n           \\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"label\\\"],[12],[1,\\\"Average\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"metric\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"number\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"          \\\"],[8,[39,17],null,[[\\\"@icon\\\",\\\"@spin\\\"],[\\\"circle-notch\\\",true]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"           \\\\n          \\\"],[1,[28,[35,18],[[30,0,[\\\"standardDeviation\\\"]]],[[\\\"style\\\",\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[[28,[37,12],[[30,0,[\\\"formattedStyle\\\"]],[30,0,[\\\"selectedMetric\\\",\\\"format\\\"]]],null],2,true]]]],[1,\\\"\\\\n           \\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"label\\\"],[12],[1,\\\"Standard Deviation\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"section\\\"],[14,0,\\\"breakdown-table\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"isLoading\\\"]]],[[[1,\\\"      \\\"],[8,[39,20],null,[[\\\"@columns\\\",\\\"@sortedBy\\\"],[[30,0,[\\\"tableColumns\\\"]],[30,0,[\\\"sort\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,22],[[28,[37,22],[[30,0,[\\\"sortedValues\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[10,\\\"tr\\\"],[15,0,[52,[51,[30,1,[\\\"included\\\"]]],\\\"disabled\\\"]],[12],[1,\\\"\\\\n            \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,25],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,1,[\\\"included\\\"]]]],null],[1,\\\"\\\\n              \\\"],[1,[30,1,[\\\"entity\\\",\\\"name\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,18],[[28,[37,12],[[30,1],[30,0,[\\\"periodType\\\"]]],null]],[[\\\"style\\\",\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[[28,[37,12],[[30,0,[\\\"formattedStyle\\\"]],[30,0,[\\\"selectedMetric\\\",\\\"format\\\"]]],null],2,true]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n                \\\",[52,[30,0,[\\\"kpi\\\",\\\"warnings\\\",\\\"length\\\"]],\\\"warning\\\",\\\"no-warning\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,26],[[28,[37,12],[[30,1],[30,0,[\\\"periodType\\\"]]],null],[30,0,[\\\"average\\\"]]],null],[[[1,\\\"                \\\"],[1,[28,[35,18],[[28,[37,27],[[28,[37,12],[[30,1],[30,0,[\\\"periodType\\\"]]],null],\\\"-\\\",[30,0,[\\\"average\\\"]]],null]],[[\\\"style\\\",\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[[28,[37,12],[[30,0,[\\\"formattedStyle\\\"]],[30,0,[\\\"selectedMetric\\\",\\\"format\\\"]]],null],2,true]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]]]],[\\\"value\\\"],false,[\\\"modal-dialog\\\",\\\"action\\\",\\\"header\\\",\\\"button\\\",\\\"h1\\\",\\\"h2\\\",\\\"if\\\",\\\"eq\\\",\\\"moment-format\\\",\\\"section\\\",\\\"loading-icon\\\",\\\"gt\\\",\\\"get\\\",\\\"h3\\\",\\\"c3-chart\\\",\\\"p\\\",\\\"div\\\",\\\"fa-icon\\\",\\\"number-format\\\",\\\"unless\\\",\\\"active-table\\\",\\\"each\\\",\\\"-track-array\\\",\\\"tr\\\",\\\"td\\\",\\\"input\\\",\\\"and\\\",\\\"math\\\"]]\",\n    \"moduleName\": \"portal/components/metric-breakdown.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    store: (0, _service.inject)(),\n    session: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    numberFormat: (0, _service.inject)(),\n    // To be passed in\n    accountType: null,\n    // 'balances' or 'kpis'\n    selectedGroup: null,\n    // record\n    selectedMetric: null,\n    // record\n    periodType: 'month',\n    // or 'ytd'\n\n    formattedStyle: {\n      PERCENTAGE: 'percent',\n      NUMBER: 'decimal',\n      CURRENCY: 'currency'\n    },\n    /**\n     * A collection of month, ytd, and entity values. Populated by loadData().\n     * @type {Array}\n     * @property {[Number]} [].month\n     * @property {[Number]} [].ytd\n     * @property {Entity} [].entity\n     * @property {boolean} [].included\n     */\n    values: [],\n    isLoading: false,\n    periodTypeOptions: [{\n      value: 'month',\n      label: 'Monthly'\n    }, {\n      value: 'ytd',\n      label: 'YTD'\n    }],\n    entities: (0, _object.computed)('selectedGroup.members', 'session.data.authenticated.user.role', 'sessionData.user', async function () {\n      const members = await (0, _object.get)(this, 'selectedGroup.members');\n      const memberEntities = await Promise.all(members.map(member => (0, _object.get)(member, 'entity')));\n      if ((0, _object.get)(this, 'session.data.authenticated.user.role') === 'admin') return memberEntities;\n      return memberEntities.filter(e => {\n        if ((0, _object.get)(this, 'sessionData.user')?.includesSomeClaimsAboutEntity(e.id, 'canAdminFinancialReporting', 'canManageFinancialReporting', 'canViewFinancialReporting')) return true;\n      });\n    }),\n    tableColumns: (0, _object.computed)('periodType', function () {\n      return [{\n        name: 'Entity',\n        key: 'entity.name',\n        width: 3\n      }, {\n        name: 'Value',\n        key: (0, _object.get)(this, 'periodType'),\n        width: 2\n      }, {\n        name: 'Difference',\n        key: '',\n        width: 2\n      }];\n    }),\n    sort: ['month:asc'],\n    sortedValues: (0, _computed.sort)('values', 'sort'),\n    maintainSortOrder: (0, _object.observer)('periodType', function () {\n      const sort = (0, _object.get)(this, 'sort').objectAt(0);\n      const periodType = (0, _object.get)(this, 'periodType');\n\n      // Swap month or YTD for the new periodType. Does nothing if sorted by something else.\n      (0, _object.set)(this, 'sort', [sort.replace(/month|ytd/, periodType)]);\n    }),\n    /**\n     * Populates the values field.\n     * @returns {Promise<void>} - Promise that resolves once the values field has been set.\n     */\n    loadData: (0, _evented.on)('init', async function () {\n      const reportType = (0, _object.get)(this, 'accountType');\n      const metricId = (0, _object.get)(this, 'selectedMetric.id');\n      const entities = await (0, _object.get)(this, 'entities');\n      const entityIds = entities.map(entity => (0, _object.get)(entity, 'id'));\n      const period = (0, _object.get)(this, 'sessionData.period');\n      const token = (0, _object.get)(this, 'session.data.authenticated.access_token');\n      const periodType = (0, _object.get)(this, 'periodType');\n      (0, _object.set)(this, 'isLoading', true);\n      return this.loadReport(reportType, metricId, entityIds, token, period, periodType).then(report => {\n        const values = this.prepareReport(report, entities);\n        (0, _object.set)(this, 'values', values);\n        (0, _object.set)(this, 'isLoading', false);\n      });\n    }),\n    /**\n     * Retrieves a full report from the API.\n     * @param {string} reportType - Either 'balances' or 'kpis'.\n     * @param {string} metricId\n     * @param {string[]} entityIds\n     * @param {string} token - Bearer token for authentication with the API.\n     * @param {string} period - Date string in YYYY-MM format.\n     * @param {string} periodType - 'month' or 'ytd'.\n     * @returns {Promise<Object>} - Full response from the server.\n     */\n    loadReport(reportType, metricId, entityIds, token, period, periodType) {\n      const url = `${_environment.default.urls.api}${_environment.default.urls.apiV1Path}/reports/${reportType}`;\n      const payload = {\n        periodStart: period,\n        periodEnd: period,\n        periodTypes: [periodType],\n        entities: entityIds,\n        metrics: [metricId],\n        type: reportType\n      };\n      const headers = {\n        Authorization: `Bearer ${token}`\n      };\n      return _jquery.default.ajax({\n        url,\n        headers,\n        data: JSON.stringify(payload),\n        method: 'POST',\n        contentType: 'application/json'\n      });\n    },\n    /**\n     * Coverts a plain report from the API into an array of values for each entity.\n     * @param {Object} report - API /reports response.\n     * @param {Entity[]} entities - Array of entities to be mapped to values.\n     * @returns {Object[]} - A collection of values holding month, ytd, and entity keys.\n     *   Month and YTD values could be null. The entity key will hold the hold entity record.\n     */\n    prepareReport(report, entities) {\n      const periodType = (0, _object.get)(this, 'periodType');\n      return entities.map(entity => {\n        // Find the entry in the report for this entity\n        const series = (0, _object.get)(report, 'data.0.series').findBy('entity', (0, _object.get)(entity, 'id'));\n\n        // Extract month and YTD values for the first period\n        const period = this.extractFigures(series);\n        const periodValue = (0, _object.get)(period, periodType);\n\n        // Attach the entity as extra metadata for display\n        (0, _object.set)(period, 'entity', entity);\n        (0, _object.set)(period, 'included', periodValue != null);\n        return period;\n      });\n    },\n    extractFigures(entity) {\n      return {\n        month: (0, _object.get)(entity || {}, 'periods.0.periodTypes.month.value'),\n        ytd: (0, _object.get)(entity || {}, 'periods.0.periodTypes.ytd.value')\n      };\n    },\n    /**\n     * Stats\n     */\n\n    average: (0, _object.computed)('values.@each.{month,ytd,included}', 'periodType', function () {\n      const values = (0, _object.get)(this, 'values').filterBy('included');\n      const periodType = (0, _object.get)(this, 'periodType');\n      let total = 0;\n      let count = 0;\n\n      // We're counting all included values, even if they're null\n      values.forEach(value => {\n        const periodValue = Number((0, _object.get)(value, periodType));\n        total += periodValue || 0;\n        count++;\n      });\n\n      // Avoid dividing by zero if there's no data\n      return total / (count || 1);\n    }),\n    standardDeviation: (0, _object.computed)('values.@each.{month,ytd,included}', 'periodType', 'average', function () {\n      const values = (0, _object.get)(this, 'values').filterBy('included');\n      const average = (0, _object.get)(this, 'average');\n      const periodType = (0, _object.get)(this, 'periodType');\n      let total = 0;\n      let count = 0;\n      values.forEach(value => {\n        const periodValue = (0, _object.get)(value, periodType);\n        if (periodValue != null) {\n          total += (periodValue - average) ** 2;\n          count++;\n        }\n      });\n\n      // Avoid dividing by zero if there's no data\n      return Math.sqrt(total / (count - 1 || 1));\n    }),\n    /**\n     * Chart Config\n     */\n\n    size: {\n      height: 200,\n      width: 506\n    },\n    legend: {\n      show: false\n    },\n    tooltip: (0, _object.computed)('selectedMetric.format', function () {\n      const format = (0, _object.get)(this, 'selectedMetric.format');\n      return {\n        show: true,\n        format: {\n          value(value) {\n            if (format === 'PERCENTAGE') {\n              return (0, _object.get)(this, 'numberFormat').format(value, {\n                style: 'percent',\n                dashZero: true,\n                maximumSignificantDigits: 4\n              });\n            } else if (format === 'CURRENCY') {\n              return (0, _object.get)(this, 'numberFormat').format(value, {\n                style: 'currency',\n                maximumFractionDigits: 0\n              });\n            }\n          }\n        }\n      };\n    }),\n    regions: [{\n      axis: 'y',\n      end: 0,\n      class: 'regionNegative'\n    }, {\n      axis: 'y',\n      start: 0,\n      class: 'regionPositive'\n    }],\n    grid: {\n      x: {\n        show: false\n      },\n      y: {\n        show: true\n      }\n    },\n    axis: (0, _object.computed)('average', 'periodType', 'values.@each.{included,month,ytd}', function () {\n      const values = (0, _object.get)(this, 'values').filterBy('included');\n      const average = (0, _object.get)(this, 'average');\n      const periodType = (0, _object.get)(this, 'periodType');\n      let min = Infinity;\n      let max = -Infinity;\n      values.forEach(value => {\n        const periodValue = (0, _object.get)(value, periodType);\n        if (periodValue == null) return;\n        const deviation = periodValue - average;\n        if (deviation < min) min = deviation;\n        if (deviation > max) max = deviation;\n      });\n      return {\n        x: {\n          type: 'category' // this needed to load string x value\n        },\n        y: {\n          min,\n          max\n        }\n      };\n    }),\n    padding: {\n      top: 0,\n      right: 0,\n      bottom: 0,\n      left: 0\n    },\n    point: {\n      show: false\n    },\n    chartData: (0, _object.computed)('sortedValues.@each.{month,ytd,included,entity}', 'selectedMetric.format', 'average', 'periodType', function () {\n      const columns = [['Entity Name'], ['Difference'], ['Actual']];\n      const values = (0, _object.get)(this, 'sortedValues').filterBy('included');\n      values.forEach(value => {\n        const entityName = (0, _object.get)(value, 'entity.name');\n        const periodType = (0, _object.get)(this, 'periodType');\n        const periodValue = (0, _object.get)(value, periodType);\n        const average = (0, _object.get)(this, 'average');\n        if (periodValue != null) {\n          columns[0].push(entityName);\n          columns[1].push(periodValue - average);\n          columns[2].push(periodValue);\n        }\n      });\n      const x = 'Entity Name';\n      const types = {\n        Difference: 'bar',\n        Actual: 'none'\n      };\n      return {\n        columns,\n        x,\n        types\n      };\n    }),\n    actions: {\n      modalToggle() {\n        this.toggleProperty('modalToggle');\n      }\n    }\n  }));\n});","define(\"portal/components/mobile-side-bar\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <Sidebar as |sidebar|>\n    {{#if (gt this.modules.allowedModules.length 1)}}\n      <sidebar.BackButton\n        @buttonText={{t 'common.Back to modules'}}\n        @route='entity'\n      />\n    {{/if}}\n  \n    {{#if\n      (and (gt this.sessionData.entities.length 1) (not (media 'isDesktop')))\n    }}\n      <sidebar.EntitySelector />\n    {{/if}}\n  \n    {{#each @tabs as |tab|}}\n      {{#unless tab.sections}}\n        <sidebar.Item\n          @route={{tab.route}}\n          @icon={{tab.icon}}\n          @title={{tab.name}}\n          @model={{tab.model}}\n          @sup={{this.item.sup}}\n        />\n      {{/unless}}\n    {{/each}}\n  \n    {{#if this.operationsSection.items.length}}\n      <sidebar.Section @title={{t 'common.Operations'}}>\n        {{#each this.operationsSection.items as |item|}}\n          <sidebar.Item\n            @route={{item.route}}\n            @icon={{item.icon}}\n            @title={{item.name}}\n            @model={{item.model}}\n            @sup={{item.sup}}\n          />\n        {{/each}}\n      </sidebar.Section>\n    {{/if}}\n  \n    {{#if this.reportsSection.items.length}}\n      <sidebar.Section\n        @title={{t 'common.Reports'}}\n        @content={{this.reportsSection}}\n      >\n        {{#each this.reportsSection.items as |item|}}\n          <sidebar.Item\n            @route={{item.route}}\n            @icon={{item.icon}}\n            @title={{item.name}}\n            @model={{item.model}}\n            @sup={{item.sup}}\n          />\n        {{/each}}\n      </sidebar.Section>\n    {{/if}}\n  </Sidebar>\n  */\n  {\n    \"id\": \"pk6bOEem\",\n    \"block\": \"[[[8,[39,0],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[28,[37,2],[[30,0,[\\\"modules\\\",\\\"allowedModules\\\",\\\"length\\\"]],1],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"BackButton\\\"]],null,[[\\\"@buttonText\\\",\\\"@route\\\"],[[28,[37,3],[\\\"common.Back to modules\\\"],null],\\\"entity\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[[28,[37,2],[[30,0,[\\\"sessionData\\\",\\\"entities\\\",\\\"length\\\"]],1],null],[28,[37,5],[[28,[37,6],[\\\"isDesktop\\\"],null]],null]],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"EntitySelector\\\"]],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,2]],null]],null],null,[[[41,[51,[30,3,[\\\"sections\\\"]]],[[[1,\\\"      \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\",\\\"@sup\\\"],[[30,3,[\\\"route\\\"]],[30,3,[\\\"icon\\\"]],[30,3,[\\\"name\\\"]],[30,3,[\\\"model\\\"]],[30,0,[\\\"item\\\",\\\"sup\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[3]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"operationsSection\\\",\\\"items\\\",\\\"length\\\"]],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Section\\\"]],null,[[\\\"@title\\\"],[[28,[37,3],[\\\"common.Operations\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,0,[\\\"operationsSection\\\",\\\"items\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\",\\\"@sup\\\"],[[30,4,[\\\"route\\\"]],[30,4,[\\\"icon\\\"]],[30,4,[\\\"name\\\"]],[30,4,[\\\"model\\\"]],[30,4,[\\\"sup\\\"]]]],null],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"reportsSection\\\",\\\"items\\\",\\\"length\\\"]],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Section\\\"]],null,[[\\\"@title\\\",\\\"@content\\\"],[[28,[37,3],[\\\"common.Reports\\\"],null],[30,0,[\\\"reportsSection\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,0,[\\\"reportsSection\\\",\\\"items\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\",\\\"@sup\\\"],[[30,5,[\\\"route\\\"]],[30,5,[\\\"icon\\\"]],[30,5,[\\\"name\\\"]],[30,5,[\\\"model\\\"]],[30,5,[\\\"sup\\\"]]]],null],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[1]]]]]],[\\\"sidebar\\\",\\\"@tabs\\\",\\\"tab\\\",\\\"item\\\",\\\"item\\\"],false,[\\\"sidebar\\\",\\\"if\\\",\\\"gt\\\",\\\"t\\\",\\\"and\\\",\\\"not\\\",\\\"media\\\",\\\"each\\\",\\\"-track-array\\\",\\\"unless\\\"]]\",\n    \"moduleName\": \"portal/components/mobile-side-bar.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"modules\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor3, this);\n      _initializerDefineProperty(this, \"media\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n    }\n    get operationsSection() {\n      const operationsTab = this.args.tabs.find(ot => ot.name === 'Operations') || {\n        sections: []\n      };\n      const operationsSection = {\n        name: this.intl.t('common.Operations'),\n        items: (operationsTab.sections || []).flatMap(section => {\n          return (section.routes || []).map(({\n            route,\n            icon,\n            name,\n            sup\n          }) => ({\n            route,\n            icon,\n            name,\n            sup\n          }));\n        })\n      };\n      return operationsSection;\n    }\n    get reportsSection() {\n      const reportsTab = this.args.tabs.find(ot => ot.name === 'Reports') || {\n        sections: []\n      };\n      const reportsSection = {\n        name: this.intl.t('common.Reports'),\n        items: (reportsTab.sections || []).flatMap(section => {\n          return (section.routes || []).map(({\n            route,\n            icon,\n            name,\n            sup\n          }) => ({\n            route,\n            icon,\n            name,\n            sup\n          }));\n        })\n      };\n      return reportsSection;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"modules\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"media\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class));\n});","define(\"portal/components/mobile-side-menu\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='bg-light mobile-side-menu' id='mobile-side-menu'>\n    {{yield}}\n  </div>\n  \n  <div\n    class='mobile-side-menu__overlay'\n    tabindex='-1'\n    id='mobile-side-menu__overlay'\n    {{on 'focus' this.mobileMenu.closeMenu}}\n  >\n  \n  </div>\n  */\n  {\n    \"id\": \"HdCVM266\",\n    \"block\": \"[[[10,0],[14,0,\\\"bg-light mobile-side-menu\\\"],[14,1,\\\"mobile-side-menu\\\"],[12],[1,\\\"\\\\n  \\\"],[18,1,null],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[11,0],[24,0,\\\"mobile-side-menu__overlay\\\"],[24,\\\"tabindex\\\",\\\"-1\\\"],[24,1,\\\"mobile-side-menu__overlay\\\"],[4,[38,2],[\\\"focus\\\",[30,0,[\\\"mobileMenu\\\",\\\"closeMenu\\\"]]],null],[12],[1,\\\"\\\\n\\\\n\\\"],[13]],[\\\"&default\\\"],false,[\\\"div\\\",\\\"yield\\\",\\\"on\\\"]]\",\n    \"moduleName\": \"portal/components/mobile-side-menu.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"mobileMenu\", _descriptor, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"mobileMenu\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class));\n});","define(\"portal/components/mobile-title-bar\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    class='mobile-title-bar__container px-4 d-flex align-items-center justify-content-between link-light'\n  >\n    {{yield}}\n  </div>\n  */\n  {\n    \"id\": \"27XRVCnI\",\n    \"block\": \"[[[10,0],[14,0,\\\"mobile-title-bar__container px-4 d-flex align-items-center justify-content-between link-light\\\"],[12],[1,\\\"\\\\n  \\\"],[18,1,null],[1,\\\"\\\\n\\\"],[13]],[\\\"&default\\\"],false,[\\\"div\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"portal/components/mobile-title-bar.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"portal/components/mobile-title-bar/avatar\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='ms-auto' data-test-mobile-title-popover>\n    <div class='d-flex align-items-center'>\n      <a\n        href='https://buildaprice.zendesk.com/hc/en-us'\n        target='_blank'\n        class='d-flex align-items-center link-light title-bar__icon me-2'\n        rel='noopener noreferrer'\n      >\n        <FaIcon @icon='question-circle' />\n      </a>\n  \n      <PopOver @direction='bottom-left' as |po|>\n        <FaIcon\n          @icon='user-circle'\n          class='link-light title-bar__icon title-bar__icon--lg'\n          role='button'\n        />\n        <po.Content style='min-width: 150px;'>\n          {{#unless this.adminConsoleIsActive}}\n            {{#unless (includes-feature-flags 'userIsWorker')}}\n              <LinkTo\n                @route='entity.settings.profile'\n                @model={{this.sessionData.entity.id}}\n                class='dropdown-item text-nowrap fs-4 py-2'\n                data-test-settings-link\n              >{{t 'common.Settings'}}</LinkTo>\n  \n              <div class='dropdown-divider'></div>\n            {{/unless}}\n          {{/unless}}\n  \n          {{yield}}\n  \n          <button\n            type='button'\n            class='dropdown-item text-nowrap fs-4 py-2'\n            {{on 'click' this.logout}}\n            data-test-title-bar-logout-button\n          >{{t 'common.Sign out'}}</button>\n        </po.Content>\n      </PopOver>\n    </div>\n  </div>\n  */\n  {\n    \"id\": \"qWjCMqbF\",\n    \"block\": \"[[[10,0],[14,0,\\\"ms-auto\\\"],[14,\\\"data-test-mobile-title-popover\\\",\\\"\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,3],[14,6,\\\"https://buildaprice.zendesk.com/hc/en-us\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,0,\\\"d-flex align-items-center link-light title-bar__icon me-2\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,2],null,[[\\\"@icon\\\"],[\\\"question-circle\\\"]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[8,[39,3],null,[[\\\"@direction\\\"],[\\\"bottom-left\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,2],[[24,0,\\\"link-light title-bar__icon title-bar__icon--lg\\\"],[24,\\\"role\\\",\\\"button\\\"]],[[\\\"@icon\\\"],[\\\"user-circle\\\"]],null],[1,\\\"\\\\n      \\\"],[8,[30,1,[\\\"Content\\\"]],[[24,5,\\\"min-width: 150px;\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"adminConsoleIsActive\\\"]]],[[[41,[51,[28,[37,5],[\\\"userIsWorker\\\"],null]],[[[1,\\\"            \\\"],[8,[39,6],[[24,0,\\\"dropdown-item text-nowrap fs-4 py-2\\\"],[24,\\\"data-test-settings-link\\\",\\\"\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.settings.profile\\\",[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,[28,[35,7],[\\\"common.Settings\\\"],null]]],[]]]]],[1,\\\"\\\\n\\\\n            \\\"],[10,0],[14,0,\\\"dropdown-divider\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n        \\\"],[18,2,null],[1,\\\"\\\\n\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-4 py-2\\\"],[24,\\\"data-test-title-bar-logout-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"logout\\\"]]],null],[12],[1,[28,[35,7],[\\\"common.Sign out\\\"],null]],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"]],[1]]]]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"po\\\",\\\"&default\\\"],false,[\\\"div\\\",\\\"a\\\",\\\"fa-icon\\\",\\\"pop-over\\\",\\\"unless\\\",\\\"includes-feature-flags\\\",\\\"link-to\\\",\\\"t\\\",\\\"yield\\\",\\\"button\\\",\\\"on\\\"]]\",\n    \"moduleName\": \"portal/components/mobile-title-bar/avatar.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n      _initializerDefineProperty(this, \"session\", _descriptor2, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor3, this);\n    }\n    get adminConsoleIsActive() {\n      return this.router.currentRouteName.includes('admin');\n    }\n    goBack(backRoute) {\n      this.router.transitionTo(backRoute);\n    }\n    logout() {\n      // TODO dunno if this is the right approach, hard to bubble\n      // an action from here to application Route as was done before.\n      this.session.invalidate();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"goBack\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"goBack\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"logout\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"logout\"), _class.prototype), _class));\n});","define(\"portal/components/mobile-title-bar/avatar/avatar-link\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <a\n    href={{@link}}\n    target='_blank'\n    class='dropdown-item text-nowrap fs-4 py-2'\n    rel='noopener noreferrer'\n  >\n    {{@label}}\n  </a>\n  */\n  {\n    \"id\": \"8sz97OSx\",\n    \"block\": \"[[[10,3],[15,6,[30,1]],[14,\\\"target\\\",\\\"_blank\\\"],[14,0,\\\"dropdown-item text-nowrap fs-4 py-2\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[12],[1,\\\"\\\\n  \\\"],[1,[30,2]],[1,\\\"\\\\n\\\"],[13]],[\\\"@link\\\",\\\"@label\\\"],false,[\\\"a\\\"]]\",\n    \"moduleName\": \"portal/components/mobile-title-bar/avatar/avatar-link.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"portal/components/mobile-title-bar/back-button\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <FaIcon\n    @icon='arrow-left'\n    class='mobile-title-bar__icon'\n    @size='lg'\n    role='button'\n    {{on 'click' (fn this.goBack @titleBarBack)}}\n    data-test-mobile-title-bar-back-button\n  />\n  */\n  {\n    \"id\": \"crPxpKve\",\n    \"block\": \"[[[8,[39,0],[[24,0,\\\"mobile-title-bar__icon\\\"],[24,\\\"role\\\",\\\"button\\\"],[24,\\\"data-test-mobile-title-bar-back-button\\\",\\\"\\\"],[4,[38,1],[\\\"click\\\",[28,[37,2],[[30,0,[\\\"goBack\\\"]],[30,1]],null]],null]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"arrow-left\\\",\\\"lg\\\"]],null]],[\\\"@titleBarBack\\\"],false,[\\\"fa-icon\\\",\\\"on\\\",\\\"fn\\\"]]\",\n    \"moduleName\": \"portal/components/mobile-title-bar/back-button.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n    }\n    goBack(backRoute) {\n      this.router.transitionTo(backRoute);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"goBack\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"goBack\"), _class.prototype), _class));\n});","define(\"portal/components/mobile-title-bar/burger-button\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <FaIcon\n    @icon='bars'\n    class='mobile-title-bar__icon'\n    @size='lg'\n    role='button'\n    {{on 'click' this.mobileMenu.toggleMenu}}\n    data-test-mobile-title-bar-side-menu-button\n  />\n  */\n  {\n    \"id\": \"WB21bS5b\",\n    \"block\": \"[[[8,[39,0],[[24,0,\\\"mobile-title-bar__icon\\\"],[24,\\\"role\\\",\\\"button\\\"],[24,\\\"data-test-mobile-title-bar-side-menu-button\\\",\\\"\\\"],[4,[38,1],[\\\"click\\\",[30,0,[\\\"mobileMenu\\\",\\\"toggleMenu\\\"]]],null]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"bars\\\",\\\"lg\\\"]],null]],[],false,[\\\"fa-icon\\\",\\\"on\\\"]]\",\n    \"moduleName\": \"portal/components/mobile-title-bar/burger-button.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"mobileMenu\", _descriptor, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"mobileMenu\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class));\n});","define(\"portal/components/mobile-title-bar/page-title\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    class='fs-3 fw-bold overflow-auto mobile-title-bar__title-text'\n  >{{@title}}</div>\n  */\n  {\n    \"id\": \"t2HYUDUA\",\n    \"block\": \"[[[10,0],[14,0,\\\"fs-3 fw-bold overflow-auto mobile-title-bar__title-text\\\"],[12],[1,[30,1]],[13]],[\\\"@title\\\"],false,[\\\"div\\\"]]\",\n    \"moduleName\": \"portal/components/mobile-title-bar/page-title.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component2.default {});\n});","define(\"portal/components/modal-dialog\", [\"exports\", \"@ember/runloop\", \"ember-modal-dialog/components/modal-dialog\"], function (_exports, _runloop, _modalDialog) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/runloop\",0,\"ember-modal-dialog/components/modal-dialog\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  const ESC_KEY = 27;\n  const defaultModalDialogClass = 'ember-modal-dialog';\n\n  // ember-modal-dialog's own ModalDialog converted to a Glimmer component at\n  // 4.1.5 (portal was pinned at 4.1.4, the last classic version), which dropped\n  // didInsertElement/willDestroyElement and the flattened `this.onClose`. This\n  // subclass still inherits the addon's own template through the prototype\n  // chain - Ember resolves a Glimmer component's associated template by\n  // walking up from the constructor, so there's no need for a template of our\n  // own here, and none of the addon's ~20 args need re-forwarding.\n  //\n  // Lifecycle: `constructor` runs before this component's element exists in\n  // the DOM, so the element/stacking capture that used to happen in\n  // didInsertElement is deferred to the same 'afterRender' queue this app\n  // already uses elsewhere (see app/mixins/scroll-route.js) - still flushed\n  // synchronously within the same runloop, well before a user could press a\n  // key, so the timing is equivalent. `willDestroy` (unlike\n  // willDestroyElement) is a real Glimmer lifecycle hook, so teardown needs no\n  // such deferral.\n  class ModalDialog extends _modalDialog.default {\n    constructor() {\n      super(...arguments);\n      _defineProperty(this, \"modalIndex\", null);\n      _defineProperty(this, \"modalElement\", null);\n      this._initEscListener();\n      (0, _runloop.scheduleOnce)('afterRender', this, this._captureModalPosition);\n    }\n    willDestroy() {\n      super.willDestroy(...arguments);\n      document.body.removeEventListener('keyup', this._boundCloseOnEscapeKey);\n    }\n    _captureModalPosition() {\n      if (this.isDestroying || this.isDestroyed) return;\n      const modalElements = document.getElementsByClassName(defaultModalDialogClass);\n      this.modalIndex = modalElements.length;\n      this.modalElement = modalElements[modalElements.length - 1];\n    }\n    _initEscListener() {\n      this._boundCloseOnEscapeKey = this.closeOnEscapeKey.bind(this);\n      document.body.addEventListener('keyup', this._boundCloseOnEscapeKey);\n    }\n    closeOnEscapeKey(event) {\n      // The listener is removed in willDestroy, but that hook runs in the\n      // runloop's destroy queue - a later phase than the one that invalidates\n      // `this.args`. A keyup landing in that gap would otherwise throw here\n      // instead of the classic version's `this.onClose`, which stayed a plain\n      // property and didn't go stale early.\n      if (this.isDestroying || this.isDestroyed) return;\n      if (event.keyCode === ESC_KEY && this.args.onClose) {\n        const openModals = document.getElementsByClassName(defaultModalDialogClass).length;\n        // if we are not the top modal, don't do anything\n        if (openModals !== this.modalIndex) return;\n        // is the event target inside the modal?\n        if (this.modalElement.contains(event.target)) {\n          // if it is, focus outside the modal\n          event.target.blur();\n        } else {\n          // otherwise, close the modal\n          this.args.onClose();\n        }\n      }\n    }\n  }\n  _exports.default = ModalDialog;\n});","define(\"portal/components/module-navigation/admin\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <Sidebar as |sidebar|>\n    <sidebar.BackButton @buttonText='Back to home' @route='index' />\n  \n    <sidebar.Item @route='admin.entities' @icon='building' @title='Entities' />\n    <sidebar.Item @route='admin.demo-entity' @icon='video' @title='Demo entity' />\n  \n    <sidebar.Item @route='admin.licensees' @icon='users' @title='Licensees' />\n    <sidebar.Item\n      @route='admin.announcements'\n      @icon='bell'\n      @title='Announcements'\n    />\n    <sidebar.Item\n      @route='admin.billing-report'\n      @icon='file-invoice-dollar'\n      @title='Billing report'\n    />\n  </Sidebar>\n  */\n  {\n    \"id\": \"cOj9pGxr\",\n    \"block\": \"[[[8,[39,0],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"BackButton\\\"]],null,[[\\\"@buttonText\\\",\\\"@route\\\"],[\\\"Back to home\\\",\\\"index\\\"]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"admin.entities\\\",\\\"building\\\",\\\"Entities\\\"]],null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"admin.demo-entity\\\",\\\"video\\\",\\\"Demo entity\\\"]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"admin.licensees\\\",\\\"users\\\",\\\"Licensees\\\"]],null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"admin.announcements\\\",\\\"bell\\\",\\\"Announcements\\\"]],null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"admin.billing-report\\\",\\\"file-invoice-dollar\\\",\\\"Billing report\\\"]],null],[1,\\\"\\\\n\\\"]],[1]]]]]],[\\\"sidebar\\\"],false,[\\\"sidebar\\\"]]\",\n    \"moduleName\": \"portal/components/module-navigation/admin.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class));\n});","define(\"portal/components/module-navigation/dashboard\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <Sidebar as |sidebar|>\n    {{#if (gt this.modules.allowedModules.length 1)}}\n      <sidebar.BackButton\n        @buttonText={{t 'common.Back to modules'}}\n        @route='index'\n      />\n    {{/if}}\n    {{#if\n      (and (gt this.sessionData.entities.length 1) (not (media 'isDesktop')))\n    }}\n      <sidebar.EntitySelector />\n    {{/if}}\n  </Sidebar>\n  */\n  {\n    \"id\": \"jPQbP6iD\",\n    \"block\": \"[[[8,[39,0],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[28,[37,2],[[30,0,[\\\"modules\\\",\\\"allowedModules\\\",\\\"length\\\"]],1],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"BackButton\\\"]],null,[[\\\"@buttonText\\\",\\\"@route\\\"],[[28,[37,3],[\\\"common.Back to modules\\\"],null],\\\"index\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,4],[[28,[37,2],[[30,0,[\\\"sessionData\\\",\\\"entities\\\",\\\"length\\\"]],1],null],[28,[37,5],[[28,[37,6],[\\\"isDesktop\\\"],null]],null]],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"EntitySelector\\\"]],null,null,null],[1,\\\"\\\\n\\\"]],[]],null]],[1]]]]]],[\\\"sidebar\\\"],false,[\\\"sidebar\\\",\\\"if\\\",\\\"gt\\\",\\\"t\\\",\\\"and\\\",\\\"not\\\",\\\"media\\\"]]\",\n    \"moduleName\": \"portal/components/module-navigation/dashboard.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"modules\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"modules\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class));\n});","define(\"portal/components/module-navigation/financials\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <Sidebar as |sidebar|>\n    {{#if (gt this.modules.allowedModules.length 1)}}\n      <sidebar.BackButton @buttonText='Back to modules' @route='entity' />\n    {{/if}}\n    {{#if\n      (and (gt this.sessionData.entities.length 1) (not (media 'isDesktop')))\n    }}\n      <sidebar.EntitySelector />\n    {{/if}}\n  \n    {{#if\n      (includes-some-feature-flags\n        'canUseFPDashboard'\n        'canUseFPKpis'\n        'canUseFPItmCustomerPAndL'\n        'canUseFPProfitAndLoss'\n        'canUseFPBalanceSheet'\n        'canUseFPOtherData'\n        'canUseFPPersonalData'\n        'canUseFPDataAvailability'\n      )\n    }}\n      <sidebar.Title @title={{t 'common.Reports'}} />\n    {{/if}}\n    {{#if (includes-feature-flags 'canUseFPDashboard')}}\n      <sidebar.Item\n        @route='entity.financials.dashboard'\n        @icon='tachometer-alt'\n        @title='Dashboard'\n      />\n    {{/if}}\n    {{#if (includes-feature-flags 'canUseFPKpis')}}\n      <sidebar.Item\n        @route='entity.financials.reports.kpis'\n        @icon='key'\n        @title='KPIs'\n      />\n    {{/if}}\n    {{#if (includes-feature-flags 'canUseFPItmCustomerPAndL')}}\n      <sidebar.Item\n        @route='entity.financials.reports.general-ledger.itm-profit-and-loss'\n        @icon='columns'\n        @title='ITM custom P&L'\n      />\n    {{/if}}\n    {{#if (includes-feature-flags 'canUseFPProfitAndLoss')}}\n      <sidebar.Item\n        @route='entity.financials.reports.general-ledger.profit-and-loss'\n        @icon='money-bill'\n        @title='Profit and loss'\n      />\n    {{/if}}\n    {{#if (includes-feature-flags 'canUseFPBalanceSheet')}}\n      <sidebar.Item\n        @route='entity.financials.reports.general-ledger.balance-sheet'\n        @icon='balance-scale'\n        @title='Balance sheet'\n      />\n    {{/if}}\n    {{#if (includes-feature-flags 'canUseFPOtherData')}}\n      <sidebar.Item\n        @route='entity.financials.reports.general-ledger.other-data'\n        @icon='database'\n        @title='Other data'\n      />\n    {{/if}}\n    {{#if (includes-feature-flags 'canUseFPPersonalData')}}\n      <sidebar.Item\n        @route='entity.financials.reports.general-ledger.personal-data'\n        @icon='user'\n        @title='Personal data'\n      />\n    {{/if}}\n    {{#if (includes-feature-flags 'canUseFPDataAvailability')}}\n      <sidebar.Item\n        @route='entity.financials.reports.imports'\n        @icon='table'\n        @title='Data availability'\n      />\n    {{/if}}\n  \n    {{#if (includes-feature-flags 'canUseFPImportManager')}}\n      <sidebar.Title @title='Data' />\n      <sidebar.Item\n        @route='entity.financials.import'\n        @icon='database'\n        @title='Import manager'\n      />\n    {{/if}}\n  \n    {{#if (includes-feature-flags 'canUseFPStrategies')}}\n      <sidebar.Title @title='Planning' />\n      <sidebar.Item\n        @route='entity.financials.planning.strategies'\n        @icon='map'\n        @title='Strategies'\n      />\n    {{/if}}\n  \n    {{#if\n      (includes-some-feature-flags\n        'canUseFPReportingPeriod'\n        'canUseFPChartOfAccounts'\n        'canUseFPKpisConfig'\n        'canUseFPGroups'\n      )\n    }}\n      <sidebar.Title @title='Configuration' />\n    {{/if}}\n    {{#if (includes-feature-flags 'canUseFPReportingPeriod')}}\n      <sidebar.Item\n        @route='entity.financials.general'\n        @title='Reporting period'\n      />\n    {{/if}}\n    {{#if (includes-feature-flags 'canUseFPChartOfAccounts')}}\n      <sidebar.Item\n        @route='entity.financials.chart-of-accounts'\n        @title='Chart of accounts'\n      />\n    {{/if}}\n    {{#if (includes-feature-flags 'canUseFPKpisConfig')}}\n      <sidebar.Item @route='entity.financials.kpis' @title='KPIs' />\n    {{/if}}\n    {{#if (includes-feature-flags 'canUseFPGroups')}}\n      <sidebar.Item @route='entity.financials.groups' @title='Groups' />\n    {{/if}}\n  </Sidebar>\n  */\n  {\n    \"id\": \"Q6RaWv5/\",\n    \"block\": \"[[[8,[39,0],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[28,[37,2],[[30,0,[\\\"modules\\\",\\\"allowedModules\\\",\\\"length\\\"]],1],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"BackButton\\\"]],null,[[\\\"@buttonText\\\",\\\"@route\\\"],[\\\"Back to modules\\\",\\\"entity\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,3],[[28,[37,2],[[30,0,[\\\"sessionData\\\",\\\"entities\\\",\\\"length\\\"]],1],null],[28,[37,4],[[28,[37,5],[\\\"isDesktop\\\"],null]],null]],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"EntitySelector\\\"]],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[\\\"canUseFPDashboard\\\",\\\"canUseFPKpis\\\",\\\"canUseFPItmCustomerPAndL\\\",\\\"canUseFPProfitAndLoss\\\",\\\"canUseFPBalanceSheet\\\",\\\"canUseFPOtherData\\\",\\\"canUseFPPersonalData\\\",\\\"canUseFPDataAvailability\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Title\\\"]],null,[[\\\"@title\\\"],[[28,[37,7],[\\\"common.Reports\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,8],[\\\"canUseFPDashboard\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"entity.financials.dashboard\\\",\\\"tachometer-alt\\\",\\\"Dashboard\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,8],[\\\"canUseFPKpis\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"entity.financials.reports.kpis\\\",\\\"key\\\",\\\"KPIs\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,8],[\\\"canUseFPItmCustomerPAndL\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"entity.financials.reports.general-ledger.itm-profit-and-loss\\\",\\\"columns\\\",\\\"ITM custom P&L\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,8],[\\\"canUseFPProfitAndLoss\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"entity.financials.reports.general-ledger.profit-and-loss\\\",\\\"money-bill\\\",\\\"Profit and loss\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,8],[\\\"canUseFPBalanceSheet\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"entity.financials.reports.general-ledger.balance-sheet\\\",\\\"balance-scale\\\",\\\"Balance sheet\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,8],[\\\"canUseFPOtherData\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"entity.financials.reports.general-ledger.other-data\\\",\\\"database\\\",\\\"Other data\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,8],[\\\"canUseFPPersonalData\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"entity.financials.reports.general-ledger.personal-data\\\",\\\"user\\\",\\\"Personal data\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,8],[\\\"canUseFPDataAvailability\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"entity.financials.reports.imports\\\",\\\"table\\\",\\\"Data availability\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[\\\"canUseFPImportManager\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Title\\\"]],null,[[\\\"@title\\\"],[\\\"Data\\\"]],null],[1,\\\"\\\\n    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"entity.financials.import\\\",\\\"database\\\",\\\"Import manager\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[\\\"canUseFPStrategies\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Title\\\"]],null,[[\\\"@title\\\"],[\\\"Planning\\\"]],null],[1,\\\"\\\\n    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"entity.financials.planning.strategies\\\",\\\"map\\\",\\\"Strategies\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[\\\"canUseFPReportingPeriod\\\",\\\"canUseFPChartOfAccounts\\\",\\\"canUseFPKpisConfig\\\",\\\"canUseFPGroups\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Title\\\"]],null,[[\\\"@title\\\"],[\\\"Configuration\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,8],[\\\"canUseFPReportingPeriod\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@title\\\"],[\\\"entity.financials.general\\\",\\\"Reporting period\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,8],[\\\"canUseFPChartOfAccounts\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@title\\\"],[\\\"entity.financials.chart-of-accounts\\\",\\\"Chart of accounts\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,8],[\\\"canUseFPKpisConfig\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@title\\\"],[\\\"entity.financials.kpis\\\",\\\"KPIs\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,8],[\\\"canUseFPGroups\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@title\\\"],[\\\"entity.financials.groups\\\",\\\"Groups\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null]],[1]]]]]],[\\\"sidebar\\\"],false,[\\\"sidebar\\\",\\\"if\\\",\\\"gt\\\",\\\"and\\\",\\\"not\\\",\\\"media\\\",\\\"includes-some-feature-flags\\\",\\\"t\\\",\\\"includes-feature-flags\\\"]]\",\n    \"moduleName\": \"portal/components/module-navigation/financials.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"modules\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"modules\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class));\n});","define(\"portal/components/module-navigation/module-dashboard\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <Sidebar as |sidebar|>\n    <sidebar.EntitySelector />\n  </Sidebar>\n  */\n  {\n    \"id\": \"DmjVH+aq\",\n    \"block\": \"[[[8,[39,0],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"EntitySelector\\\"]],null,null,null],[1,\\\"\\\\n\\\"]],[1]]]]]],[\\\"sidebar\\\"],false,[\\\"sidebar\\\"]]\",\n    \"moduleName\": \"portal/components/module-navigation/module-dashboard.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"portal/components/module-navigation/operations/incoming\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <Sidebar as |sidebar|>\n    {{#if (gt this.modules.allowedModules.length 1)}}\n      <sidebar.BackButton\n        @buttonText={{t 'common.Back to modules'}}\n        @route='entity'\n      />\n    {{/if}}\n    {{#if\n      (and (gt this.sessionData.entities.length 1) (not (media 'isDesktop')))\n    }}\n      <sidebar.EntitySelector />\n    {{/if}}\n  \n    {{#if (includes-feature-flags 'canUseBills')}}\n      <sidebar.Item\n        @icon='file-invoice-dollar'\n        @title={{t 'common.Bills'}}\n        @route='entity.builda-price.operations.incoming.bills'\n      />\n      {{#if (includes-feature-flags 'canUseLegacyBills')}}\n        <sidebar.Item\n          @icon='file-invoice-dollar'\n          @title={{t 'common.Bills'}}\n          @sup='LEGACY'\n          @route='entity.builda-price.operations.incoming.bills-legacy'\n        />\n      {{/if}}\n    {{/if}}\n  \n    {{#if (includes-feature-flags 'canUseStatements')}}\n      <sidebar.Item\n        @icon='file-lines'\n        @title={{t 'common.Statements'}}\n        @route='entity.builda-price.operations.incoming.statements'\n      />\n    {{/if}}\n  \n    {{#if (includes-feature-flags 'canUseTimesheets')}}\n      <sidebar.Item\n        @route='entity.builda-price.operations.incoming.timesheets'\n        @icon='clock'\n        @title={{t 'common.Timesheets'}}\n      />\n    {{/if}}\n  </Sidebar>\n  */\n  {\n    \"id\": \"okZi701D\",\n    \"block\": \"[[[8,[39,0],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[28,[37,2],[[30,0,[\\\"modules\\\",\\\"allowedModules\\\",\\\"length\\\"]],1],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"BackButton\\\"]],null,[[\\\"@buttonText\\\",\\\"@route\\\"],[[28,[37,3],[\\\"common.Back to modules\\\"],null],\\\"entity\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,4],[[28,[37,2],[[30,0,[\\\"sessionData\\\",\\\"entities\\\",\\\"length\\\"]],1],null],[28,[37,5],[[28,[37,6],[\\\"isDesktop\\\"],null]],null]],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"EntitySelector\\\"]],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"canUseBills\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@icon\\\",\\\"@title\\\",\\\"@route\\\"],[\\\"file-invoice-dollar\\\",[28,[37,3],[\\\"common.Bills\\\"],null],\\\"entity.builda-price.operations.incoming.bills\\\"]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"canUseLegacyBills\\\"],null],[[[1,\\\"      \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@icon\\\",\\\"@title\\\",\\\"@sup\\\",\\\"@route\\\"],[\\\"file-invoice-dollar\\\",[28,[37,3],[\\\"common.Bills\\\"],null],\\\"LEGACY\\\",\\\"entity.builda-price.operations.incoming.bills-legacy\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"canUseStatements\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@icon\\\",\\\"@title\\\",\\\"@route\\\"],[\\\"file-lines\\\",[28,[37,3],[\\\"common.Statements\\\"],null],\\\"entity.builda-price.operations.incoming.statements\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"canUseTimesheets\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"entity.builda-price.operations.incoming.timesheets\\\",\\\"clock\\\",[28,[37,3],[\\\"common.Timesheets\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[1]]]]]],[\\\"sidebar\\\"],false,[\\\"sidebar\\\",\\\"if\\\",\\\"gt\\\",\\\"t\\\",\\\"and\\\",\\\"not\\\",\\\"media\\\",\\\"includes-feature-flags\\\"]]\",\n    \"moduleName\": \"portal/components/module-navigation/operations/incoming.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"modules\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"modules\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class));\n});","define(\"portal/components/module-navigation/operations/outgoing\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <Sidebar as |sidebar|>\n    {{#if (gt this.modules.allowedModules.length 1)}}\n      <sidebar.BackButton\n        @buttonText={{t 'common.Back to modules'}}\n        @route='entity'\n      />\n    {{/if}}\n    {{#if\n      (and (gt this.sessionData.entities.length 1) (not (media 'isDesktop')))\n    }}\n      <sidebar.EntitySelector />\n    {{/if}}\n  \n    {{#if (includes-feature-flags 'canUseInvoices')}}\n      <sidebar.Item\n        @route='entity.builda-price.operations.outgoing.invoices'\n        @icon='file-invoice-dollar'\n        @title={{t 'common.Invoices'}}\n      />\n    {{/if}}\n  \n    {{#if (includes-feature-flags 'canUsePayroll')}}\n      <sidebar.Item\n        @route='entity.builda-price.operations.outgoing.payroll'\n        @icon='money-bill'\n        @title={{t 'common.Payroll'}}\n      />\n    {{/if}}\n  \n    {{#if (includes-feature-flags 'canUsePurchaseOrders')}}\n      <sidebar.Item\n        @route='entity.builda-price.operations.outgoing.purchase-orders'\n        @icon='shopping-cart'\n        @title={{t 'common.Purchase orders'}}\n      />\n    {{/if}}\n  \n    {{#if (includes-feature-flags 'canUseReportBuilder')}}\n      <sidebar.Item\n        @route='entity.builda-price.operations.outgoing.report-builder'\n        @icon='file-invoice'\n        @title={{t 'common.Report builder'}}\n      />\n    {{/if}}\n  </Sidebar>\n  */\n  {\n    \"id\": \"3tzbhJKA\",\n    \"block\": \"[[[8,[39,0],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[28,[37,2],[[30,0,[\\\"modules\\\",\\\"allowedModules\\\",\\\"length\\\"]],1],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"BackButton\\\"]],null,[[\\\"@buttonText\\\",\\\"@route\\\"],[[28,[37,3],[\\\"common.Back to modules\\\"],null],\\\"entity\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,4],[[28,[37,2],[[30,0,[\\\"sessionData\\\",\\\"entities\\\",\\\"length\\\"]],1],null],[28,[37,5],[[28,[37,6],[\\\"isDesktop\\\"],null]],null]],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"EntitySelector\\\"]],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"canUseInvoices\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"entity.builda-price.operations.outgoing.invoices\\\",\\\"file-invoice-dollar\\\",[28,[37,3],[\\\"common.Invoices\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"canUsePayroll\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"entity.builda-price.operations.outgoing.payroll\\\",\\\"money-bill\\\",[28,[37,3],[\\\"common.Payroll\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"canUsePurchaseOrders\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"entity.builda-price.operations.outgoing.purchase-orders\\\",\\\"shopping-cart\\\",[28,[37,3],[\\\"common.Purchase orders\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"canUseReportBuilder\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"entity.builda-price.operations.outgoing.report-builder\\\",\\\"file-invoice\\\",[28,[37,3],[\\\"common.Report builder\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[1]]]]]],[\\\"sidebar\\\"],false,[\\\"sidebar\\\",\\\"if\\\",\\\"gt\\\",\\\"t\\\",\\\"and\\\",\\\"not\\\",\\\"media\\\",\\\"includes-feature-flags\\\"]]\",\n    \"moduleName\": \"portal/components/module-navigation/operations/outgoing.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"modules\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"modules\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class));\n});","define(\"portal/components/module-navigation/pricing\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <Sidebar as |sidebar|>\n    {{#if (gt this.modules.allowedModules.length 1)}}\n      <sidebar.BackButton @buttonText='Back to modules' @route='entity' />\n    {{/if}}\n    {{#if\n      (and (gt this.sessionData.entities.length 1) (not (media 'isDesktop')))\n    }}\n      <sidebar.EntitySelector />\n    {{/if}}\n  \n    <sidebar.Title @title='Job management' />\n    <sidebar.Item\n      @route='entity.pricing.embedded-page'\n      @model='jobList'\n      @title={{t 'shared.estimates.Job list'}}\n    />\n    <sidebar.Item\n      @route='entity.pricing.embedded-page'\n      @model='ownTakeoff'\n      @title={{t 'shared.estimates.Own takeoff'}}\n    />\n  \n    <sidebar.Title @title='Configuration' />\n    <sidebar.Item\n      @route='entity.pricing.embedded-page'\n      @model='materialRate'\n      @title={{t 'shared.estimates.Material rate'}}\n    />\n    <sidebar.Item\n      @route='entity.pricing.embedded-page'\n      @model='flatRateResource'\n      @title={{t 'shared.estimates.Flat rate resource'}}\n    />\n    <sidebar.Item\n      @route='entity.pricing.embedded-page'\n      @model='miscTemplate'\n      @title={{t 'shared.estimates.Misc template'}}\n    />\n    <sidebar.Item\n      @route='entity.pricing.embedded-page'\n      @model='labourFactor'\n      @title={{t 'shared.estimates.Labour factor'}}\n    />\n    <sidebar.Item\n      @route='entity.pricing.embedded-page'\n      @model='overheadTemplates'\n      @title={{t 'shared.estimates.Overhead templates'}}\n    />\n    <sidebar.Item\n      @route='entity.pricing.embedded-page'\n      @model='workgangPositions'\n      @title={{t 'shared.estimates.Workgang positions'}}\n    />\n    <sidebar.Item\n      @route='entity.pricing.embedded-page'\n      @model='workgangs'\n      @title={{t 'shared.estimates.Workgangs'}}\n    />\n    <sidebar.Item\n      @route='entity.pricing.embedded-page'\n      @model='subcontractorList'\n      @title={{t 'shared.estimates.Subcontractor list'}}\n    />\n  </Sidebar>\n  */\n  {\n    \"id\": \"JgyOobKr\",\n    \"block\": \"[[[8,[39,0],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[28,[37,2],[[30,0,[\\\"modules\\\",\\\"allowedModules\\\",\\\"length\\\"]],1],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"BackButton\\\"]],null,[[\\\"@buttonText\\\",\\\"@route\\\"],[\\\"Back to modules\\\",\\\"entity\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,3],[[28,[37,2],[[30,0,[\\\"sessionData\\\",\\\"entities\\\",\\\"length\\\"]],1],null],[28,[37,4],[[28,[37,5],[\\\"isDesktop\\\"],null]],null]],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"EntitySelector\\\"]],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"Title\\\"]],null,[[\\\"@title\\\"],[\\\"Job management\\\"]],null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@model\\\",\\\"@title\\\"],[\\\"entity.pricing.embedded-page\\\",\\\"jobList\\\",[28,[37,6],[\\\"shared.estimates.Job list\\\"],null]]],null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@model\\\",\\\"@title\\\"],[\\\"entity.pricing.embedded-page\\\",\\\"ownTakeoff\\\",[28,[37,6],[\\\"shared.estimates.Own takeoff\\\"],null]]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"Title\\\"]],null,[[\\\"@title\\\"],[\\\"Configuration\\\"]],null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@model\\\",\\\"@title\\\"],[\\\"entity.pricing.embedded-page\\\",\\\"materialRate\\\",[28,[37,6],[\\\"shared.estimates.Material rate\\\"],null]]],null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@model\\\",\\\"@title\\\"],[\\\"entity.pricing.embedded-page\\\",\\\"flatRateResource\\\",[28,[37,6],[\\\"shared.estimates.Flat rate resource\\\"],null]]],null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@model\\\",\\\"@title\\\"],[\\\"entity.pricing.embedded-page\\\",\\\"miscTemplate\\\",[28,[37,6],[\\\"shared.estimates.Misc template\\\"],null]]],null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@model\\\",\\\"@title\\\"],[\\\"entity.pricing.embedded-page\\\",\\\"labourFactor\\\",[28,[37,6],[\\\"shared.estimates.Labour factor\\\"],null]]],null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@model\\\",\\\"@title\\\"],[\\\"entity.pricing.embedded-page\\\",\\\"overheadTemplates\\\",[28,[37,6],[\\\"shared.estimates.Overhead templates\\\"],null]]],null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@model\\\",\\\"@title\\\"],[\\\"entity.pricing.embedded-page\\\",\\\"workgangPositions\\\",[28,[37,6],[\\\"shared.estimates.Workgang positions\\\"],null]]],null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@model\\\",\\\"@title\\\"],[\\\"entity.pricing.embedded-page\\\",\\\"workgangs\\\",[28,[37,6],[\\\"shared.estimates.Workgangs\\\"],null]]],null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@model\\\",\\\"@title\\\"],[\\\"entity.pricing.embedded-page\\\",\\\"subcontractorList\\\",[28,[37,6],[\\\"shared.estimates.Subcontractor list\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[1]]]]]],[\\\"sidebar\\\"],false,[\\\"sidebar\\\",\\\"if\\\",\\\"gt\\\",\\\"and\\\",\\\"not\\\",\\\"media\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/components/module-navigation/pricing.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"modules\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"modules\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class));\n});","define(\"portal/components/module-navigation/project\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <Sidebar as |sidebar|>\n  \n    <sidebar.BackButton\n      @buttonText={{t 'common.Back to projects'}}\n      @route='entity.builda-price.projects'\n    />\n  \n    {{#unless sidebar.isCollapsed}}\n      <ProjectSelector\n        @selectedProject={{@selectedProject}}\n        @openProjects={{@openProjects}}\n        @selectedProjectIsLoading={{@selectedProjectIsLoading}}\n        @openProjectsIsLoading={{@openProjectsIsLoading}}\n        @backToProjectsRoute={{'entity.builda-price.projects'}}\n      />\n    {{/unless}}\n  \n    {{#if (includes-some-feature-flags @selectedProject 'canUseTasks')}}\n      <sidebar.Item\n        @route='entity.builda-price.projects.project.tasks'\n        @icon='tasks'\n        @title={{t 'common.Tasks'}}\n        {{! we need model because ember-elsewhere does not un-render this link before the transition causing the linkTo to error when using mobile navigation }}\n        @model={{@model}}\n      />\n    {{/if}}\n  \n    {{#if\n      (includes-some-feature-flags\n        @selectedProject 'canUseQuoteVersions' 'canUseBudgetVersions'\n      )\n    }}\n      <sidebar.Item\n        @route='entity.builda-price.projects.project.financials'\n        @icon='dollar-sign'\n        @title={{t 'common.Financials'}}\n        {{! we need model because ember-elsewhere does not un-render this link before the transition causing the linkTo to error when using mobile navigation }}\n        @model={{@model}}\n      />\n    {{/if}}\n  \n    {{#if (includes-feature-flags @selectedProject 'canUseEstimates')}}\n      <sidebar.Item\n        @route='entity.builda-price.projects.project.estimates'\n        @icon='tag'\n        @title={{t 'common.Estimates'}}\n        {{! we need model because ember-elsewhere does not un-render this link before the transition causing the linkTo to error when using mobile navigation }}\n        @model={{@model}}\n      />\n    {{/if}}\n  \n    {{#if\n      (includes-some-feature-flags\n        @selectedProject\n        'canUseDocumentsPage'\n        'canUseProgressPage'\n        'canUseHealthAndSafety'\n      )\n    }}\n      <sidebar.Section @title={{t 'common.Operations'}}>\n        {{#if (includes-feature-flags @selectedProject 'canUseDocumentsPage')}}\n          <sidebar.Item\n            @route='entity.builda-price.projects.project.documents'\n            @icon='paperclip'\n            @title={{t 'common.Documents'}}\n            {{! we need model because ember-elsewhere does not un-render this link before the transition causing the linkTo to error when using mobile navigation }}\n            @model={{@model}}\n          />\n        {{/if}}\n  \n        {{#if (includes-feature-flags @selectedProject 'canUseProgressPage')}}\n          <sidebar.Item\n            @route='entity.builda-price.projects.project.progress'\n            @icon='percent'\n            @title={{t 'shared.progress.Labour progress'}}\n            {{! we need model because ember-elsewhere does not un-render this link before the transition causing the linkTo to error when using mobile navigation }}\n            @model={{@model}}\n          />\n        {{/if}}\n  \n        {{#if (includes-feature-flags @selectedProject 'canUseHealthAndSafety')}}\n          <sidebar.Item\n            @route='entity.builda-price.projects.project.health-and-safety'\n            @icon='notes-medical'\n            @title={{t 'common.healthAndSafety'}}\n            {{! we need model because ember-elsewhere does not un-render this link before the transition causing the linkTo to error when using mobile navigation }}\n            @model={{@model}}\n          />\n        {{/if}}\n      </sidebar.Section>\n  \n      {{#if (includes-feature-flags @selectedProject 'canUseStagePayments')}}\n        <sidebar.Item\n          @route='entity.builda-price.projects.project.stage-payments'\n          @icon='coins'\n          @title={{t 'shared.stage-payments.Stage payments'}}\n          {{! we need model because ember-elsewhere does not un-render this link before the transition causing the linkTo to error when using mobile navigation }}\n          @model={{@model}}\n        />\n      {{/if}}\n    {{/if}}\n  \n    {{#if\n      (includes-some-feature-flags\n        'canUseProjects'\n        'canUseProducts'\n        'canUseUsers'\n        'canUseWorkers'\n        'canUseSubcontractors'\n      )\n    }}\n      <sidebar.Section @title={{t 'common.Configuration'}}>\n        {{#if (includes-feature-flags @selectedProject 'canUseProducts')}}\n          <sidebar.Item\n            @route='entity.builda-price.projects.project.products'\n            @icon='cubes'\n            @title={{t 'common.Products'}}\n            {{! we need model because ember-elsewhere does not un-render this link before the transition causing the linkTo to error when using mobile navigation }}\n            @model={{@model}}\n          />\n        {{/if}}\n  \n        {{#if\n          (includes-some-feature-flags\n            'canUseUsers' 'canUseWorkers' 'canUseSubcontractors'\n          )\n        }}\n          <sidebar.Item\n            @route='entity.builda-price.projects.project.people'\n            @icon='users'\n            @title={{t 'common.People'}}\n            {{! we need model because ember-elsewhere does not un-render this link before the transition causing the linkTo to error when using mobile navigation }}\n            @model={{@model}}\n          />\n        {{/if}}\n  \n        {{#if (includes-feature-flags @selectedProject 'canUseProjects')}}\n          <sidebar.Item\n            @route='entity.builda-price.projects.project.settings'\n            @icon='cog'\n            @title={{t 'common.Settings'}}\n            {{! we need model because ember-elsewhere does not un-render this link before the transition causing the linkTo to error when using mobile navigation }}\n            @model={{@model}}\n          />\n        {{/if}}\n      </sidebar.Section>\n  \n    {{/if}}\n  </Sidebar>\n  */\n  {\n    \"id\": \"2uMzQ1dG\",\n    \"block\": \"[[[8,[39,0],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"BackButton\\\"]],null,[[\\\"@buttonText\\\",\\\"@route\\\"],[[28,[37,1],[\\\"common.Back to projects\\\"],null],\\\"entity.builda-price.projects\\\"]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,1,[\\\"isCollapsed\\\"]]],[[[1,\\\"    \\\"],[8,[39,3],null,[[\\\"@selectedProject\\\",\\\"@openProjects\\\",\\\"@selectedProjectIsLoading\\\",\\\"@openProjectsIsLoading\\\",\\\"@backToProjectsRoute\\\"],[[30,2],[30,3],[30,4],[30,5],\\\"entity.builda-price.projects\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[[30,2],\\\"canUseTasks\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[\\\"entity.builda-price.projects.project.tasks\\\",\\\"tasks\\\",[28,[37,1],[\\\"common.Tasks\\\"],null],[30,6]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[[30,2],\\\"canUseQuoteVersions\\\",\\\"canUseBudgetVersions\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[\\\"entity.builda-price.projects.project.financials\\\",\\\"dollar-sign\\\",[28,[37,1],[\\\"common.Financials\\\"],null],[30,6]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[[30,2],\\\"canUseEstimates\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[\\\"entity.builda-price.projects.project.estimates\\\",\\\"tag\\\",[28,[37,1],[\\\"common.Estimates\\\"],null],[30,6]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[[30,2],\\\"canUseDocumentsPage\\\",\\\"canUseProgressPage\\\",\\\"canUseHealthAndSafety\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Section\\\"]],null,[[\\\"@title\\\"],[[28,[37,1],[\\\"common.Operations\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[28,[37,6],[[30,2],\\\"canUseDocumentsPage\\\"],null],[[[1,\\\"        \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[\\\"entity.builda-price.projects.project.documents\\\",\\\"paperclip\\\",[28,[37,1],[\\\"common.Documents\\\"],null],[30,6]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[[30,2],\\\"canUseProgressPage\\\"],null],[[[1,\\\"        \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[\\\"entity.builda-price.projects.project.progress\\\",\\\"percent\\\",[28,[37,1],[\\\"shared.progress.Labour progress\\\"],null],[30,6]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[[30,2],\\\"canUseHealthAndSafety\\\"],null],[[[1,\\\"        \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[\\\"entity.builda-price.projects.project.health-and-safety\\\",\\\"notes-medical\\\",[28,[37,1],[\\\"common.healthAndSafety\\\"],null],[30,6]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,6],[[30,2],\\\"canUseStagePayments\\\"],null],[[[1,\\\"      \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[\\\"entity.builda-price.projects.project.stage-payments\\\",\\\"coins\\\",[28,[37,1],[\\\"shared.stage-payments.Stage payments\\\"],null],[30,6]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[\\\"canUseProjects\\\",\\\"canUseProducts\\\",\\\"canUseUsers\\\",\\\"canUseWorkers\\\",\\\"canUseSubcontractors\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Section\\\"]],null,[[\\\"@title\\\"],[[28,[37,1],[\\\"common.Configuration\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[28,[37,6],[[30,2],\\\"canUseProducts\\\"],null],[[[1,\\\"        \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[\\\"entity.builda-price.projects.project.products\\\",\\\"cubes\\\",[28,[37,1],[\\\"common.Products\\\"],null],[30,6]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[\\\"canUseUsers\\\",\\\"canUseWorkers\\\",\\\"canUseSubcontractors\\\"],null],[[[1,\\\"        \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[\\\"entity.builda-price.projects.project.people\\\",\\\"users\\\",[28,[37,1],[\\\"common.People\\\"],null],[30,6]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[[30,2],\\\"canUseProjects\\\"],null],[[[1,\\\"        \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[\\\"entity.builda-price.projects.project.settings\\\",\\\"cog\\\",[28,[37,1],[\\\"common.Settings\\\"],null],[30,6]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"]],[]],null]],[1]]]]]],[\\\"sidebar\\\",\\\"@selectedProject\\\",\\\"@openProjects\\\",\\\"@selectedProjectIsLoading\\\",\\\"@openProjectsIsLoading\\\",\\\"@model\\\"],false,[\\\"sidebar\\\",\\\"t\\\",\\\"unless\\\",\\\"project-selector\\\",\\\"if\\\",\\\"includes-some-feature-flags\\\",\\\"includes-feature-flags\\\"]]\",\n    \"moduleName\": \"portal/components/module-navigation/project.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"modules\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"modules\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class));\n});","define(\"portal/components/module-navigation/projects\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <Sidebar as |sidebar|>\n    {{#if (gt this.modules.allowedModules.length 1)}}\n      <sidebar.BackButton\n        @buttonText={{t 'common.Back to modules'}}\n        @route='index'\n      />\n    {{/if}}\n    {{#if\n      (and (gt this.sessionData.entities.length 1) (not (media 'isDesktop')))\n    }}\n      <sidebar.EntitySelector />\n    {{/if}}\n  \n  </Sidebar>\n  */\n  {\n    \"id\": \"WHXOZG7T\",\n    \"block\": \"[[[8,[39,0],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[28,[37,2],[[30,0,[\\\"modules\\\",\\\"allowedModules\\\",\\\"length\\\"]],1],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"BackButton\\\"]],null,[[\\\"@buttonText\\\",\\\"@route\\\"],[[28,[37,3],[\\\"common.Back to modules\\\"],null],\\\"index\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,4],[[28,[37,2],[[30,0,[\\\"sessionData\\\",\\\"entities\\\",\\\"length\\\"]],1],null],[28,[37,5],[[28,[37,6],[\\\"isDesktop\\\"],null]],null]],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"EntitySelector\\\"]],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"]],[1]]]]]],[\\\"sidebar\\\"],false,[\\\"sidebar\\\",\\\"if\\\",\\\"gt\\\",\\\"t\\\",\\\"and\\\",\\\"not\\\",\\\"media\\\"]]\",\n    \"moduleName\": \"portal/components/module-navigation/projects.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class));\n});","define(\"portal/components/module-navigation/reports\", [\"exports\", \"@glimmer/component\", \"@ember/service\"], function (_exports, _component, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/components/module-navigation/reports/company-reports\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <Sidebar as |sidebar|>\n    {{#if (gt this.modules.allowedModules.length 1)}}\n      <sidebar.BackButton\n        @buttonText={{t 'common.Back to modules'}}\n        @route='entity'\n      />\n    {{/if}}\n    {{#if\n      (and (gt this.sessionData.entities.length 1) (not (media 'isDesktop')))\n    }}\n      <sidebar.EntitySelector />\n    {{/if}}\n  \n    {{#if\n      (includes-some-feature-flags\n        'userIsClient' 'canUseEntityPositionReport' 'canUseEntityLabourHourReport'\n      )\n    }}\n      <sidebar.Title @title={{t 'common.Summary'}} />\n    {{/if}}\n  \n    {{#if (includes-feature-flags 'canUseEntityPositionReport')}}\n      <sidebar.Item\n        @route='entity.builda-price.reports.company.position'\n        @icon='tasks'\n        @title={{t 'common.Position'}}\n      />\n    {{/if}}\n  \n    {{#if (includes-feature-flags 'canUseEntityLabourHourReport')}}\n      <sidebar.Item\n        @route='entity.builda-price.reports.company.labour-hours'\n        @icon='user-clock'\n        @title={{t 'common.Labour hours'}}\n      />\n    {{/if}}\n  \n    {{#if\n      (includes-some-feature-flags\n        'canUseEntityForecastReport'\n        'canUseEntityProfitMarginReport'\n        'canUseEntityInvoicingReport'\n        'canUseTimesheets'\n      )\n    }}\n      <sidebar.Title @title={{t 'common.Breakdown'}} />\n    {{/if}}\n  \n    {{#if (includes-feature-flags 'canUseEntityForecastReport')}}\n      <sidebar.Item\n        @route='entity.builda-price.reports.company.forecast-breakdown'\n        @icon='chart-line'\n        @title={{t\n          'components.module-navigation.reports.company-reports.Financial breakdown'\n        }}\n      />\n    {{/if}}\n  \n    {{#if (includes-feature-flags 'canUseEntityProfitMarginReport')}}\n      <sidebar.Item\n        @route='entity.builda-price.reports.company.profit-margins'\n        @icon='hand-holding-usd'\n        @title={{t 'common.Profit margins'}}\n      />\n    {{/if}}\n  \n    {{#if (includes-feature-flags 'canUseEntityInvoicingReport')}}\n      <sidebar.Item\n        @route='entity.builda-price.reports.company.invoicing'\n        @icon='file-invoice-dollar'\n        @title={{t 'common.Invoicing'}}\n      />\n    {{/if}}\n  \n    {{#if (includes-feature-flags 'canUseTimesheets')}}\n      <sidebar.Item\n        @route='entity.builda-price.reports.company.notes'\n        @icon='sticky-note'\n        @title={{t 'common.Notes'}}\n      />\n    {{/if}}\n  \n    {{#if (includes-feature-flags 'canUseEntityWIPReport')}}\n      <sidebar.Title @title={{t 'common.Financial'}} />\n      {{#if (includes-feature-flags 'canUseEntityWIPReport')}}\n        <sidebar.Item\n          @route='entity.builda-price.reports.company.wip'\n          @icon='balance-scale'\n          @title={{t 'shared.report.Work in progress'}}\n        />\n      {{/if}}\n    {{/if}}\n  </Sidebar>\n  */\n  {\n    \"id\": \"gsBvq8U1\",\n    \"block\": \"[[[8,[39,0],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[28,[37,2],[[30,0,[\\\"modules\\\",\\\"allowedModules\\\",\\\"length\\\"]],1],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"BackButton\\\"]],null,[[\\\"@buttonText\\\",\\\"@route\\\"],[[28,[37,3],[\\\"common.Back to modules\\\"],null],\\\"entity\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,4],[[28,[37,2],[[30,0,[\\\"sessionData\\\",\\\"entities\\\",\\\"length\\\"]],1],null],[28,[37,5],[[28,[37,6],[\\\"isDesktop\\\"],null]],null]],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"EntitySelector\\\"]],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"userIsClient\\\",\\\"canUseEntityPositionReport\\\",\\\"canUseEntityLabourHourReport\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Title\\\"]],null,[[\\\"@title\\\"],[[28,[37,3],[\\\"common.Summary\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[\\\"canUseEntityPositionReport\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"entity.builda-price.reports.company.position\\\",\\\"tasks\\\",[28,[37,3],[\\\"common.Position\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[\\\"canUseEntityLabourHourReport\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"entity.builda-price.reports.company.labour-hours\\\",\\\"user-clock\\\",[28,[37,3],[\\\"common.Labour hours\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"canUseEntityForecastReport\\\",\\\"canUseEntityProfitMarginReport\\\",\\\"canUseEntityInvoicingReport\\\",\\\"canUseTimesheets\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Title\\\"]],null,[[\\\"@title\\\"],[[28,[37,3],[\\\"common.Breakdown\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[\\\"canUseEntityForecastReport\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"entity.builda-price.reports.company.forecast-breakdown\\\",\\\"chart-line\\\",[28,[37,3],[\\\"components.module-navigation.reports.company-reports.Financial breakdown\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[\\\"canUseEntityProfitMarginReport\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"entity.builda-price.reports.company.profit-margins\\\",\\\"hand-holding-usd\\\",[28,[37,3],[\\\"common.Profit margins\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[\\\"canUseEntityInvoicingReport\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"entity.builda-price.reports.company.invoicing\\\",\\\"file-invoice-dollar\\\",[28,[37,3],[\\\"common.Invoicing\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[\\\"canUseTimesheets\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"entity.builda-price.reports.company.notes\\\",\\\"sticky-note\\\",[28,[37,3],[\\\"common.Notes\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[\\\"canUseEntityWIPReport\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Title\\\"]],null,[[\\\"@title\\\"],[[28,[37,3],[\\\"common.Financial\\\"],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[\\\"canUseEntityWIPReport\\\"],null],[[[1,\\\"      \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"entity.builda-price.reports.company.wip\\\",\\\"balance-scale\\\",[28,[37,3],[\\\"shared.report.Work in progress\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[1]]]]]],[\\\"sidebar\\\"],false,[\\\"sidebar\\\",\\\"if\\\",\\\"gt\\\",\\\"t\\\",\\\"and\\\",\\\"not\\\",\\\"media\\\",\\\"includes-some-feature-flags\\\",\\\"includes-feature-flags\\\"]]\",\n    \"moduleName\": \"portal/components/module-navigation/reports/company-reports.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"modules\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"modules\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class));\n});","define(\"portal/components/module-navigation/reports/project\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <Sidebar as |sidebar|>\n    <sidebar.BackButton\n      @buttonText={{t 'common.Back to projects'}}\n      @route='entity.builda-price.reports.projects'\n    />\n    {{#unless sidebar.isCollapsed}}\n      <ProjectSelector\n        @selectedProject={{@selectedProject}}\n        @openProjects={{@openProjects}}\n        @selectedProjectIsLoading={{@selectedProjectIsLoading}}\n        @openProjectsIsLoading={{@openProjectsIsLoading}}\n        @backToProjectsRoute={{'entity.builda-price.reports.projects'}}\n      />\n    {{/unless}}\n  \n    {{#if this.showSummaryTitle}}\n      <sidebar.Title @title={{t 'common.Summary'}} />\n    {{/if}}\n  \n    {{#if this.canUsePositionReports}}\n      <sidebar.Item\n        @route='entity.builda-price.reports.projects.project.position'\n        @icon='tasks'\n        @title={{t 'common.Position'}}\n        @model={{@model}}\n      />\n    {{/if}}\n  \n    {{#if this.canUseLabourHourReports}}\n      <sidebar.Item\n        @route='entity.builda-price.reports.projects.project.labour-hours'\n        @icon='user-clock'\n        @title={{t 'common.Labour hours'}}\n        @model={{@model}}\n      />\n    {{/if}}\n  \n    {{#if this.showBreakdownTitle}}\n      <sidebar.Title @title={{t 'common.Breakdown'}} />\n    {{/if}}\n  \n    {{#if this.canUseBudgetReports}}\n      <sidebar.Item\n        @route='entity.builda-price.reports.projects.project.budget'\n        @icon='money-check-alt'\n        @title={{t 'common.Budget'}}\n        @model={{@model}}\n      />\n    {{/if}}\n  \n    {{#if this.canUseQuoteReports}}\n      <sidebar.Item\n        @route='entity.builda-price.reports.projects.project.quote'\n        @icon='handshake'\n        @title={{t 'common.Quote'}}\n        @model={{@model}}\n      />\n    {{/if}}\n  \n    {{#if this.canUseCostReports}}\n      <sidebar.Item\n        @route='entity.builda-price.reports.projects.project.cost'\n        @icon='search-dollar'\n        @title={{t 'common.Costs'}}\n        @model={{@model}}\n      />\n    {{/if}}\n  \n    {{#if (includes-feature-flags 'canUseTimesheets')}}\n      <sidebar.Item\n        @route='entity.builda-price.reports.projects.project.notes'\n        @icon='sticky-note'\n        @title={{t 'common.Notes'}}\n        @model={{@model}}\n      />\n    {{/if}}\n  \n    {{#if this.canUseForecastReports}}\n      <sidebar.Item\n        @route='entity.builda-price.reports.projects.project.forecast-breakdown'\n        @icon='chart-line'\n        @title={{t 'shared.report.Forecast breakdown'}}\n        @model={{@model}}\n      />\n    {{/if}}\n  \n    {{#if this.canUseProfitMarginReports}}\n      <sidebar.Item\n        @route='entity.builda-price.reports.projects.project.profit-margins'\n        @icon='hand-holding-usd'\n        @title={{t 'common.Profit margins'}}\n        @model={{@model}}\n      />\n    {{/if}}\n  \n    {{#if this.canUseChargeupReports}}\n      <sidebar.Item\n        @route='entity.builda-price.reports.projects.project.chargeup'\n        @icon='poll'\n        @title={{t 'common.Chargeup'}}\n        @model={{@model}}\n      />\n    {{/if}}\n  \n    {{#if this.canUseInvoicingReports}}\n      <sidebar.Item\n        @route='entity.builda-price.reports.projects.project.invoicing'\n        @icon='file-invoice-dollar'\n        @title={{t 'common.Invoicing'}}\n        @model={{@model}}\n      />\n    {{/if}}\n  \n    {{#if this.canUseClientReports}}\n      <sidebar.Title @title={{t 'common.Client'}} />\n      <sidebar.Item\n        @route='entity.builda-price.reports.projects.project.cost-to-complete'\n        @icon='user-tie'\n        @title={{t\n          'entity.builda-price.reports.projects.project.cost-to-complete.Cost to complete'\n        }}\n        @model={{@model}}\n      />\n    {{/if}}\n  \n    {{#if this.canUseAccessReports}}\n      <sidebar.Title @title='Access' />\n      <sidebar.Item\n        @route='entity.builda-price.reports.projects.project.access'\n        @icon='map-pin'\n        @title='Access'\n        @model={{@model}}\n      />\n    {{/if}}\n  </Sidebar>\n  */\n  {\n    \"id\": \"/MURR/ZC\",\n    \"block\": \"[[[8,[39,0],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"BackButton\\\"]],null,[[\\\"@buttonText\\\",\\\"@route\\\"],[[28,[37,1],[\\\"common.Back to projects\\\"],null],\\\"entity.builda-price.reports.projects\\\"]],null],[1,\\\"\\\\n\\\"],[41,[51,[30,1,[\\\"isCollapsed\\\"]]],[[[1,\\\"    \\\"],[8,[39,3],null,[[\\\"@selectedProject\\\",\\\"@openProjects\\\",\\\"@selectedProjectIsLoading\\\",\\\"@openProjectsIsLoading\\\",\\\"@backToProjectsRoute\\\"],[[30,2],[30,3],[30,4],[30,5],\\\"entity.builda-price.reports.projects\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showSummaryTitle\\\"]],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Title\\\"]],null,[[\\\"@title\\\"],[[28,[37,1],[\\\"common.Summary\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canUsePositionReports\\\"]],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[\\\"entity.builda-price.reports.projects.project.position\\\",\\\"tasks\\\",[28,[37,1],[\\\"common.Position\\\"],null],[30,6]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canUseLabourHourReports\\\"]],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[\\\"entity.builda-price.reports.projects.project.labour-hours\\\",\\\"user-clock\\\",[28,[37,1],[\\\"common.Labour hours\\\"],null],[30,6]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showBreakdownTitle\\\"]],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Title\\\"]],null,[[\\\"@title\\\"],[[28,[37,1],[\\\"common.Breakdown\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canUseBudgetReports\\\"]],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[\\\"entity.builda-price.reports.projects.project.budget\\\",\\\"money-check-alt\\\",[28,[37,1],[\\\"common.Budget\\\"],null],[30,6]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canUseQuoteReports\\\"]],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[\\\"entity.builda-price.reports.projects.project.quote\\\",\\\"handshake\\\",[28,[37,1],[\\\"common.Quote\\\"],null],[30,6]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canUseCostReports\\\"]],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[\\\"entity.builda-price.reports.projects.project.cost\\\",\\\"search-dollar\\\",[28,[37,1],[\\\"common.Costs\\\"],null],[30,6]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[\\\"canUseTimesheets\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[\\\"entity.builda-price.reports.projects.project.notes\\\",\\\"sticky-note\\\",[28,[37,1],[\\\"common.Notes\\\"],null],[30,6]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canUseForecastReports\\\"]],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[\\\"entity.builda-price.reports.projects.project.forecast-breakdown\\\",\\\"chart-line\\\",[28,[37,1],[\\\"shared.report.Forecast breakdown\\\"],null],[30,6]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canUseProfitMarginReports\\\"]],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[\\\"entity.builda-price.reports.projects.project.profit-margins\\\",\\\"hand-holding-usd\\\",[28,[37,1],[\\\"common.Profit margins\\\"],null],[30,6]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canUseChargeupReports\\\"]],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[\\\"entity.builda-price.reports.projects.project.chargeup\\\",\\\"poll\\\",[28,[37,1],[\\\"common.Chargeup\\\"],null],[30,6]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canUseInvoicingReports\\\"]],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[\\\"entity.builda-price.reports.projects.project.invoicing\\\",\\\"file-invoice-dollar\\\",[28,[37,1],[\\\"common.Invoicing\\\"],null],[30,6]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canUseClientReports\\\"]],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Title\\\"]],null,[[\\\"@title\\\"],[[28,[37,1],[\\\"common.Client\\\"],null]]],null],[1,\\\"\\\\n    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[\\\"entity.builda-price.reports.projects.project.cost-to-complete\\\",\\\"user-tie\\\",[28,[37,1],[\\\"entity.builda-price.reports.projects.project.cost-to-complete.Cost to complete\\\"],null],[30,6]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canUseAccessReports\\\"]],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Title\\\"]],null,[[\\\"@title\\\"],[\\\"Access\\\"]],null],[1,\\\"\\\\n    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[\\\"entity.builda-price.reports.projects.project.access\\\",\\\"map-pin\\\",\\\"Access\\\",[30,6]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[1]]]]]],[\\\"sidebar\\\",\\\"@selectedProject\\\",\\\"@openProjects\\\",\\\"@selectedProjectIsLoading\\\",\\\"@openProjectsIsLoading\\\",\\\"@model\\\"],false,[\\\"sidebar\\\",\\\"t\\\",\\\"unless\\\",\\\"project-selector\\\",\\\"if\\\",\\\"includes-feature-flags\\\"]]\",\n    \"moduleName\": \"portal/components/module-navigation/reports/project.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n    }\n    get canUsePositionReports() {\n      return this.newFeatureFlags.includesFeatureFlags(this.args.selectedProject, 'canUseProjectPositionReport');\n    }\n    get canUseLabourHourReports() {\n      return this.newFeatureFlags.includesFeatureFlags(this.args.selectedProject, 'canUseProjectLabourHourReport');\n    }\n    get canUseClientReports() {\n      return this.newFeatureFlags.includesFeatureFlags(this.args.selectedProject, 'canUseProjectClientReport');\n    }\n    get showSummaryTitle() {\n      return this.canUsePositionReports || this.canUseLabourHourReports;\n    }\n    get canUseQuoteReports() {\n      return this.newFeatureFlags.includesFeatureFlags(this.args.selectedProject, 'canUseProjectQuoteReport');\n    }\n    get canUseCostReports() {\n      return this.newFeatureFlags.includesFeatureFlags(this.args.selectedProject, 'canUseProjectCostReport');\n    }\n    get canUseBudgetReports() {\n      return this.newFeatureFlags.includesFeatureFlags(this.args.selectedProject, 'canUseProjectBudgetReport');\n    }\n    get canUseForecastReports() {\n      return this.newFeatureFlags.includesFeatureFlags(this.args.selectedProject, 'canUseProjectForecastReport');\n    }\n    get canUseProfitMarginReports() {\n      return this.newFeatureFlags.includesFeatureFlags(this.args.selectedProject, 'canUseProjectProfitMarginReport');\n    }\n    get canUseChargeupReports() {\n      return this.newFeatureFlags.includesFeatureFlags(this.args.selectedProject, 'canUseProjectChargeupReport');\n    }\n    get canUseInvoicingReports() {\n      return this.newFeatureFlags.includesFeatureFlags(this.args.selectedProject, 'canUseProjectInvoicingReport');\n    }\n    get canUseAccessReports() {\n      return this.newFeatureFlags.includesFeatureFlags(this.args.selectedProject, 'canViewAccessReports');\n    }\n    get showBreakdownTitle() {\n      return this.canUseChargeupReports || this.canUseProfitMarginReports || this.canUseForecastReports || this.canUseBudgetReports || this.canUseCostReports || this.canUseQuoteReports || this.canUseInvoicingReports;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class));\n});","define(\"portal/components/module-navigation/scheduling\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! TODO implement this once we have more than one page }}\n  <Sidebar as |sidebar|>\n    {{#if (gt this.modules.allowedModules.length 1)}}\n      <sidebar.BackButton\n        @buttonText={{t 'common.Back to modules'}}\n        @route='entity'\n      />\n    {{/if}}\n    {{#if\n      (and (gt this.sessionData.entities.length 1) (not (media 'isDesktop')))\n    }}\n      <sidebar.EntitySelector />\n    {{/if}}\n  </Sidebar>\n  */\n  {\n    \"id\": \"Cs4LF5jP\",\n    \"block\": \"[[[8,[39,0],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[28,[37,2],[[30,0,[\\\"modules\\\",\\\"allowedModules\\\",\\\"length\\\"]],1],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"BackButton\\\"]],null,[[\\\"@buttonText\\\",\\\"@route\\\"],[[28,[37,3],[\\\"common.Back to modules\\\"],null],\\\"entity\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,4],[[28,[37,2],[[30,0,[\\\"sessionData\\\",\\\"entities\\\",\\\"length\\\"]],1],null],[28,[37,5],[[28,[37,6],[\\\"isDesktop\\\"],null]],null]],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"EntitySelector\\\"]],null,null,null],[1,\\\"\\\\n\\\"]],[]],null]],[1]]]]]],[\\\"sidebar\\\"],false,[\\\"sidebar\\\",\\\"if\\\",\\\"gt\\\",\\\"t\\\",\\\"and\\\",\\\"not\\\",\\\"media\\\"]]\",\n    \"moduleName\": \"portal/components/module-navigation/scheduling.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"modules\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"modules\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class));\n});","define(\"portal/components/module-navigation/settings\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <Sidebar as |sidebar|>\n    <sidebar.BackButton\n      @buttonText={{t 'common.Back to modules'}}\n      @route='entity'\n    />\n  \n    {{#if\n      (and (gt this.sessionData.entities.length 1) (not (media 'isDesktop')))\n    }}\n      <sidebar.EntitySelector />\n    {{/if}}\n  \n    <sidebar.Section @title={{t 'common.People'}}>\n      {{#each this.peopleSection.items as |item|}}\n        <sidebar.Item\n          @route={{item.route}}\n          @icon={{item.icon}}\n          @title={{item.name}}\n          @model={{item.model}}\n        />\n      {{/each}}\n    </sidebar.Section>\n  \n    {{#if\n      (or\n        (includes-some-feature-flags 'userIsEntityAdmin' 'canManageBills')\n        this.canViewIntegrationsTab\n      )\n    }}\n      <sidebar.Section\n        @title={{t 'common.Company'}}\n        @content={{this.companySection}}\n      >\n        {{#each this.companySection.items as |item|}}\n          <sidebar.Item\n            @route={{item.route}}\n            @icon={{item.icon}}\n            @title={{item.name}}\n            @model={{item.model}}\n          />\n        {{/each}}\n      </sidebar.Section>\n    {{/if}}\n  \n    {{#if (includes-feature-flags 'canManageEstimatesSettings')}}\n      <sidebar.Section @title={{t 'common.Estimates'}}>\n        {{#each this.estimateSection.items as |item|}}\n          <sidebar.Item\n            @route={{item.route}}\n            @icon={{item.icon}}\n            @title={{item.name}}\n            @model={{item.model}}\n          />\n        {{/each}}\n      </sidebar.Section>\n    {{/if}}\n  </Sidebar>\n  */\n  {\n    \"id\": \"IfSl+Qeh\",\n    \"block\": \"[[[8,[39,0],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"BackButton\\\"]],null,[[\\\"@buttonText\\\",\\\"@route\\\"],[[28,[37,1],[\\\"common.Back to modules\\\"],null],\\\"entity\\\"]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,3],[[28,[37,4],[[30,0,[\\\"sessionData\\\",\\\"entities\\\",\\\"length\\\"]],1],null],[28,[37,5],[[28,[37,6],[\\\"isDesktop\\\"],null]],null]],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"EntitySelector\\\"]],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"Section\\\"]],null,[[\\\"@title\\\"],[[28,[37,1],[\\\"common.People\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,0,[\\\"peopleSection\\\",\\\"items\\\"]]],null]],null],null,[[[1,\\\"      \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[[30,2,[\\\"route\\\"]],[30,2,[\\\"icon\\\"]],[30,2,[\\\"name\\\"]],[30,2,[\\\"model\\\"]]]],null],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,9],[[28,[37,10],[\\\"userIsEntityAdmin\\\",\\\"canManageBills\\\"],null],[30,0,[\\\"canViewIntegrationsTab\\\"]]],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Section\\\"]],null,[[\\\"@title\\\",\\\"@content\\\"],[[28,[37,1],[\\\"common.Company\\\"],null],[30,0,[\\\"companySection\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,0,[\\\"companySection\\\",\\\"items\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[[30,3,[\\\"route\\\"]],[30,3,[\\\"icon\\\"]],[30,3,[\\\"name\\\"]],[30,3,[\\\"model\\\"]]]],null],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[\\\"canManageEstimatesSettings\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Section\\\"]],null,[[\\\"@title\\\"],[[28,[37,1],[\\\"common.Estimates\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,0,[\\\"estimateSection\\\",\\\"items\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[[30,4,[\\\"route\\\"]],[30,4,[\\\"icon\\\"]],[30,4,[\\\"name\\\"]],[30,4,[\\\"model\\\"]]]],null],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[1]]]]]],[\\\"sidebar\\\",\\\"item\\\",\\\"item\\\",\\\"item\\\"],false,[\\\"sidebar\\\",\\\"t\\\",\\\"if\\\",\\\"and\\\",\\\"gt\\\",\\\"not\\\",\\\"media\\\",\\\"each\\\",\\\"-track-array\\\",\\\"or\\\",\\\"includes-some-feature-flags\\\",\\\"includes-feature-flags\\\"]]\",\n    \"moduleName\": \"portal/components/module-navigation/settings.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n    }\n    // the \"integrations\" route was prematurely migrated from the building route\n    // we need to keep it in both old and new versions of the software\n    // this should only be visible to people who have building, pricing, or buildaPrice modules\n    get canViewIntegrationsTab() {\n      const newBpCanSee = this.newFeatureFlags.includesFeatureFlags('canUseIntegrations');\n      return newBpCanSee;\n    }\n    get peopleSection() {\n      const peopleSection = {\n        name: this.intl.t('common.People'),\n        items: []\n      };\n      if (this.newFeatureFlags.excludesFeatureFlags('userIsWorker')) peopleSection.items.push({\n        route: 'entity.settings.profile',\n        icon: 'user-circle',\n        name: this.intl.t('components.module-navigation.settings.My profile')\n      });\n      if (this.newFeatureFlags.includesSomeFeatureFlags('canUseUsers', 'canUseWorkers', 'canUseClientPortal', 'canUseSubcontractors')) peopleSection.items.push({\n        route: 'entity.settings.people',\n        icon: 'users',\n        name: this.intl.t('common.People')\n      });\n      if (this.newFeatureFlags.includesFeatureFlags('canUseSuppliers')) peopleSection.items.push({\n        route: 'entity.settings.contacts',\n        icon: 'warehouse',\n        name: this.intl.t('common.contacts')\n      });\n      return peopleSection;\n    }\n    get companySection() {\n      const companySection = {\n        name: this.intl.t('common.Company'),\n        items: []\n      };\n      if (this.newFeatureFlags.includesFeatureFlags('userIsEntityAdmin')) companySection.items.push({\n        route: 'entity.settings.company',\n        icon: 'building',\n        name: this.intl.t('common.Settings')\n      });\n      if (this.newFeatureFlags.includesFeatureFlags('canManageBills')) companySection.items.push({\n        route: 'entity.settings.auto-mapping',\n        icon: 'magic',\n        name: this.intl.t('common.Auto mapping')\n      });\n      if (this.canViewIntegrationsTab) companySection.items.push({\n        route: 'entity.settings.integrations',\n        icon: 'plug',\n        name: this.intl.t('common.Integrations')\n      });\n      if (this.newFeatureFlags.includesFeatureFlags('canManageBills') || this.newFeatureFlags.includesFeatureFlags('canManageInvoices')) companySection.items.push({\n        route: 'entity.settings.chart-of-accounts',\n        icon: 'piggy-bank',\n        name: this.intl.t('entity.settings.chart-of-accounts.Chart of accounts')\n      });\n      return companySection;\n    }\n    get estimateSection() {\n      const estimateSection = {\n        name: this.intl.t('components.module-navigation.settings.Estimate settings'),\n        items: []\n      };\n      estimateSection.items.push({\n        route: 'entity.settings.estimates.embedded-page',\n        icon: 'plane-departure',\n        model: 'ownTakeoff',\n        name: this.intl.t('shared.estimates.Own takeoff')\n      });\n      estimateSection.items.push({\n        route: 'entity.settings.estimates.embedded-page',\n        icon: 'truck',\n        model: 'materialRate',\n        name: this.intl.t('shared.estimates.Material rate')\n      });\n      estimateSection.items.push({\n        route: 'entity.settings.estimates.embedded-page',\n        icon: 'file-invoice-dollar',\n        model: 'flatRateResource',\n        name: this.intl.t('shared.estimates.Flat rate resource')\n      });\n      estimateSection.items.push({\n        route: 'entity.settings.estimates.embedded-page',\n        icon: 'copy',\n        model: 'miscTemplate',\n        name: this.intl.t('shared.estimates.Misc template')\n      });\n      estimateSection.items.push({\n        route: 'entity.settings.estimates.embedded-page',\n        icon: 'user-clock',\n        model: 'labourFactor',\n        name: this.intl.t('shared.estimates.Labour factor')\n      });\n      estimateSection.items.push({\n        route: 'entity.settings.estimates.embedded-page',\n        icon: 'copy',\n        model: 'overheadTemplates',\n        name: this.intl.t('shared.estimates.Overhead templates')\n      });\n      estimateSection.items.push({\n        route: 'entity.settings.estimates.embedded-page',\n        icon: 'users',\n        model: 'workgangPositions',\n        name: this.intl.t('shared.estimates.Workgang positions')\n      });\n      estimateSection.items.push({\n        route: 'entity.settings.estimates.embedded-page',\n        icon: 'people-carry',\n        model: 'workgangs',\n        name: this.intl.t('shared.estimates.Workgangs')\n      });\n      estimateSection.items.push({\n        route: 'entity.settings.estimates.embedded-page',\n        icon: 'wrench',\n        model: 'subcontractorList',\n        name: this.intl.t('shared.estimates.Subcontractor list')\n      });\n      return estimateSection;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class));\n});","define(\"portal/components/month-picker\", [\"exports\", \"@ember/component\", \"@ember/object\", \"moment\", \"@ember/template-factory\"], function (_exports, _component, _object, _moment, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"moment\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless this.compact}}\n    <button type='button' class='subdued' {{action 'prevYear'}}>\n      <FaIcon @icon='angles-left' @size='lg' />\n    </button>\n    <button type='button' class='subdued' {{action 'prevMonth'}}>\n      <FaIcon @icon='angle-left' @size='lg' />\n    </button>\n  \n    <div class='inputs'>\n      <select\n        class={{if\n          this.dark\n          'select-box select-box--dark month'\n          'select-box month'\n        }}\n        onchange={{action (mut this.selectedMonth) value='target.value'}}\n      >\n        <option\n          value='01'\n          selected={{eq this.selectedMonth '01'}}\n        >January</option>\n        <option\n          value='02'\n          selected={{eq this.selectedMonth '02'}}\n        >February</option>\n        <option value='03' selected={{eq this.selectedMonth '03'}}>March</option>\n        <option value='04' selected={{eq this.selectedMonth '04'}}>April</option>\n        <option value='05' selected={{eq this.selectedMonth '05'}}>May</option>\n        <option value='06' selected={{eq this.selectedMonth '06'}}>June</option>\n        <option value='07' selected={{eq this.selectedMonth '07'}}>July</option>\n        <option value='08' selected={{eq this.selectedMonth '08'}}>August</option>\n        <option\n          value='09'\n          selected={{eq this.selectedMonth '09'}}\n        >September</option>\n        <option\n          value='10'\n          selected={{eq this.selectedMonth '10'}}\n        >October</option>\n        <option\n          value='11'\n          selected={{eq this.selectedMonth '11'}}\n        >November</option>\n        <option\n          value='12'\n          selected={{eq this.selectedMonth '12'}}\n        >December</option>\n      </select>\n  \n      <select\n        class={{if\n          this.dark\n          'select-box select-box--dark year'\n          'select-box year'\n        }}\n        onchange={{action (mut this.selectedYear) value='target.value'}}\n      >\n        {{#each this.yearList as |year|}}\n          <option\n            value={{year}}\n            selected={{eq this.selectedYear year}}\n          >{{year}}</option>\n        {{/each}}\n      </select>\n    </div>\n  \n    <button type='button' class='subdued' {{action 'nextMonth'}}>\n      <FaIcon @icon='angle-right' @size='lg' />\n    </button>\n    <button type='button' class='subdued' {{action 'nextYear'}}>\n      <FaIcon @icon='angles-right' @size='lg' />\n    </button>\n  {{else}}\n    <label class='month-picker__input-label' for='month-picker__input'>\n      <span class='month-picker__display'>\n        <span class='month-picker__month'>{{moment-format\n            this.period\n            'MMM'\n            'YYYY-MM'\n          }}</span>\n        <span class='month-picker__year'>{{moment-format\n            this.period\n            'YYYY'\n            'YYYY-MM'\n          }}</span>\n      </span>\n      <FaIcon @icon='calendar-alt' @size='lg' />\n    </label>\n  \n    <input\n      type='month'\n      value={{this.period}}\n      class='month-picker__input'\n      id='month-picker__input'\n    />\n  {{/unless}}\n  */\n  {\n    \"id\": \"y9uhXhpp\",\n    \"block\": \"[[[41,[51,[30,0,[\\\"compact\\\"]]],[[[1,\\\"  \\\"],[11,\\\"button\\\"],[24,0,\\\"subdued\\\"],[24,4,\\\"button\\\"],[4,[38,2],[[30,0],\\\"prevYear\\\"],null],[12],[1,\\\"\\\\n    \\\"],[8,[39,3],null,[[\\\"@icon\\\",\\\"@size\\\"],[\\\"angles-left\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"subdued\\\"],[24,4,\\\"button\\\"],[4,[38,2],[[30,0],\\\"prevMonth\\\"],null],[12],[1,\\\"\\\\n    \\\"],[8,[39,3],null,[[\\\"@icon\\\",\\\"@size\\\"],[\\\"angle-left\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"inputs\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"select\\\"],[15,0,[52,[30,0,[\\\"dark\\\"]],\\\"select-box select-box--dark month\\\",\\\"select-box month\\\"]],[15,\\\"onchange\\\",[28,[37,2],[[30,0],[28,[37,7],[[30,0,[\\\"selectedMonth\\\"]]],null]],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[12],[1,\\\"\\\\n      \\\"],[10,\\\"option\\\"],[14,2,\\\"01\\\"],[15,\\\"selected\\\",[28,[37,9],[[30,0,[\\\"selectedMonth\\\"]],\\\"01\\\"],null]],[12],[1,\\\"January\\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"option\\\"],[14,2,\\\"02\\\"],[15,\\\"selected\\\",[28,[37,9],[[30,0,[\\\"selectedMonth\\\"]],\\\"02\\\"],null]],[12],[1,\\\"February\\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"option\\\"],[14,2,\\\"03\\\"],[15,\\\"selected\\\",[28,[37,9],[[30,0,[\\\"selectedMonth\\\"]],\\\"03\\\"],null]],[12],[1,\\\"March\\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"option\\\"],[14,2,\\\"04\\\"],[15,\\\"selected\\\",[28,[37,9],[[30,0,[\\\"selectedMonth\\\"]],\\\"04\\\"],null]],[12],[1,\\\"April\\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"option\\\"],[14,2,\\\"05\\\"],[15,\\\"selected\\\",[28,[37,9],[[30,0,[\\\"selectedMonth\\\"]],\\\"05\\\"],null]],[12],[1,\\\"May\\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"option\\\"],[14,2,\\\"06\\\"],[15,\\\"selected\\\",[28,[37,9],[[30,0,[\\\"selectedMonth\\\"]],\\\"06\\\"],null]],[12],[1,\\\"June\\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"option\\\"],[14,2,\\\"07\\\"],[15,\\\"selected\\\",[28,[37,9],[[30,0,[\\\"selectedMonth\\\"]],\\\"07\\\"],null]],[12],[1,\\\"July\\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"option\\\"],[14,2,\\\"08\\\"],[15,\\\"selected\\\",[28,[37,9],[[30,0,[\\\"selectedMonth\\\"]],\\\"08\\\"],null]],[12],[1,\\\"August\\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"option\\\"],[14,2,\\\"09\\\"],[15,\\\"selected\\\",[28,[37,9],[[30,0,[\\\"selectedMonth\\\"]],\\\"09\\\"],null]],[12],[1,\\\"September\\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"option\\\"],[14,2,\\\"10\\\"],[15,\\\"selected\\\",[28,[37,9],[[30,0,[\\\"selectedMonth\\\"]],\\\"10\\\"],null]],[12],[1,\\\"October\\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"option\\\"],[14,2,\\\"11\\\"],[15,\\\"selected\\\",[28,[37,9],[[30,0,[\\\"selectedMonth\\\"]],\\\"11\\\"],null]],[12],[1,\\\"November\\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"option\\\"],[14,2,\\\"12\\\"],[15,\\\"selected\\\",[28,[37,9],[[30,0,[\\\"selectedMonth\\\"]],\\\"12\\\"],null]],[12],[1,\\\"December\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"select\\\"],[15,0,[52,[30,0,[\\\"dark\\\"]],\\\"select-box select-box--dark year\\\",\\\"select-box year\\\"]],[15,\\\"onchange\\\",[28,[37,2],[[30,0],[28,[37,7],[[30,0,[\\\"selectedYear\\\"]]],null]],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,11],[[28,[37,11],[[30,0,[\\\"yearList\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,\\\"option\\\"],[15,2,[30,1]],[15,\\\"selected\\\",[28,[37,9],[[30,0,[\\\"selectedYear\\\"]],[30,1]],null]],[12],[1,[30,1]],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"subdued\\\"],[24,4,\\\"button\\\"],[4,[38,2],[[30,0],\\\"nextMonth\\\"],null],[12],[1,\\\"\\\\n    \\\"],[8,[39,3],null,[[\\\"@icon\\\",\\\"@size\\\"],[\\\"angle-right\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"subdued\\\"],[24,4,\\\"button\\\"],[4,[38,2],[[30,0],\\\"nextYear\\\"],null],[12],[1,\\\"\\\\n    \\\"],[8,[39,3],null,[[\\\"@icon\\\",\\\"@size\\\"],[\\\"angles-right\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,\\\"label\\\"],[14,0,\\\"month-picker__input-label\\\"],[14,\\\"for\\\",\\\"month-picker__input\\\"],[12],[1,\\\"\\\\n    \\\"],[10,1],[14,0,\\\"month-picker__display\\\"],[12],[1,\\\"\\\\n      \\\"],[10,1],[14,0,\\\"month-picker__month\\\"],[12],[1,[28,[35,14],[[30,0,[\\\"period\\\"]],\\\"MMM\\\",\\\"YYYY-MM\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,1],[14,0,\\\"month-picker__year\\\"],[12],[1,[28,[35,14],[[30,0,[\\\"period\\\"]],\\\"YYYY\\\",\\\"YYYY-MM\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,3],null,[[\\\"@icon\\\",\\\"@size\\\"],[\\\"calendar-alt\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"input\\\"],[15,2,[30,0,[\\\"period\\\"]]],[14,0,\\\"month-picker__input\\\"],[14,1,\\\"month-picker__input\\\"],[14,4,\\\"month\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]]]],[\\\"year\\\"],false,[\\\"unless\\\",\\\"button\\\",\\\"action\\\",\\\"fa-icon\\\",\\\"div\\\",\\\"select\\\",\\\"if\\\",\\\"mut\\\",\\\"option\\\",\\\"eq\\\",\\\"each\\\",\\\"-track-array\\\",\\\"label\\\",\\\"span\\\",\\\"moment-format\\\",\\\"input\\\"]]\",\n    \"moduleName\": \"portal/components/month-picker.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    // Default only. Bind your YYYY-MM string to this.\n    period: (0, _moment.default)().format('YYYY-MM'),\n    classNames: ['month-picker'],\n    classNameBindings: ['closedPeriod', 'dark:month-picker--dark'],\n    selectedMonth: (0, _object.computed)('period', {\n      get() {\n        return (0, _object.get)(this, 'period').substr(5);\n      },\n      set(key, value) {\n        const current = (0, _object.get)(this, 'period');\n        (0, _object.set)(this, 'period', current.substr(0, 5) + value);\n        return value;\n      }\n    }),\n    selectedYear: (0, _object.computed)('period', {\n      get() {\n        const period = (0, _object.get)(this, 'period');\n        return typeof period === 'string' ? period.substr(0, 4) : String((0, _moment.default)().year());\n      },\n      set(key, year) {\n        const current = (0, _moment.default)((0, _object.get)(this, 'period'), 'YYYY-MM');\n        const month = current.isValid() ? current.format('MM') : (0, _moment.default)().format('MM');\n        year = (0, _moment.default)(year, 'YYYY').isValid() ? String(year) : (0, _moment.default)().format('YYYY');\n        (0, _object.set)(this, 'period', `${year}-${month}`);\n        return year;\n      }\n    }),\n    yearList: (0, _object.computed)('period', function () {\n      const selected = (0, _moment.default)((0, _object.get)(this, 'period').substr(0, 4), 'YYYY');\n      let start = (0, _moment.default)([(0, _moment.default)().year() - 8]);\n      let end = (0, _moment.default)([(0, _moment.default)().year() + 2]);\n      if (selected.diff(start, 'years', true) < 2) {\n        start = selected.subtract(2, 'years');\n      } else if (selected.diff(end, 'years', true) > -2) {\n        end = selected.add(2, 'years');\n      }\n      const list = [];\n      let current = start;\n      do {\n        list.push(current.format('YYYY'));\n        current = current.add(1, 'year');\n      } while (current.isBefore(end) || current.isSame(end));\n      return list;\n    }),\n    changePeriod(diff, type) {\n      const current = (0, _object.get)(this, 'period');\n      const updated = (0, _moment.default)(current, 'YYYY-MM').add(diff, type).format('YYYY-MM');\n      (0, _object.set)(this, 'period', updated);\n    },\n    actions: {\n      prevYear() {\n        this.changePeriod(-1, 'year');\n      },\n      prevMonth() {\n        this.changePeriod(-1, 'month');\n      },\n      nextMonth() {\n        this.changePeriod(1, 'month');\n      },\n      nextYear() {\n        this.changePeriod(1, 'year');\n      }\n    }\n  }));\n});","define(\"portal/components/multi-item-selector-paginated\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@ember/runloop\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _runloop, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/runloop\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    class='d-flex align-items-center px-3 text-nowrap overflow-auto'\n    style='min-height: 3em;'\n  >\n    {{#each this.firstScopes as |container|}}\n      <ItemSelector::BreadCrumb\n        @isSelected={{eq this.selectedScope container}}\n        @onClick={{fn @onSelectContainer container}}\n      >\n        {{get container.item @nameKey}}\n      </ItemSelector::BreadCrumb>\n    {{/each}}\n  \n    {{#if (gt @scope.length 3)}}\n      <div class='mx-2 fw-bolder'>&hellip;</div>\n      <FaIcon @icon='chevron-right' class='mx-2' />\n    {{/if}}\n  \n    {{#each this.lastScopes as |container|}}\n      <ItemSelector::BreadCrumb\n        @isSelected={{eq this.selectedScope container}}\n        @onClick={{fn @onSelectContainer container}}\n      >\n        {{get container.item @nameKey}}\n      </ItemSelector::BreadCrumb>\n    {{/each}}\n    <LabelPopup\n      class='ms-auto'\n      @text={{t\n        'components.multi-item-selector-paginated.billableRemainingTooltip'\n      }}\n    >\n      {{t 'components.multi-item-selector-paginated.Billable remaining'}}\n    </LabelPopup>\n  </div>\n  \n  {{#if @onSearch}}\n    <div class='px-3 pb-3'>\n      <Input\n        class='form-control rounded'\n        placeholder={{or @searchPlaceholder (t 'common.Search for a item')}}\n        aria-label={{or @searchPlaceholder (t 'common.Search for a item')}}\n        @value={{@searchString}}\n        {{on 'keyup' this.onSearchInputKeyUp}}\n        disabled={{@disabled}}\n        @type='text'\n      />\n    </div>\n  {{/if}}\n  \n  <InfinityScroll @onLoadMore={{@onLoadMore}} as |didInsert|>\n    <div class='overflow-auto border-top' {{did-insert didInsert}}>\n      {{#if @isLoading}}\n        <div class='d-block text-center p-3'>\n          {{or @loadingMessage (t 'common.Loading')}}\n          <LoadingIcon @type='spinner' />\n        </div>\n      {{else}}\n        {{#each @item.children as |container|}}\n          <div class='d-flex align-items-stretch border-bottom'>\n            {{#unless @hideCheckbox}}\n              <label\n                class='d-flex align-items-center py-2 px-3 list-group-item-action w-auto'\n                role='button'\n              >\n                <IndeterminateCheckbox\n                  class='m-0'\n                  @checked={{container.checked}}\n                  @indeterminate={{container.indeterminate}}\n                  @onChange={{fn this.onCheckboxClick container}}\n                  disabled={{@disabled}}\n                />\n              </label>\n            {{/unless}}\n  \n            <div\n              role='button'\n              class='flex-fill row align-items-center m-0 py-2 list-group-item-action w-auto'\n              {{on 'click' (fn this.onContainerClick container)}}\n            >\n              {{#if @nameKeys.length}}\n                {{#each @nameKeys as |key index|}}\n                  {{#let (math @nameKeys.length '-' 1) as |lastIndex|}}\n                    <div\n                      {{! TODO trying to make this as generic as I can, still not great - should switch to @nameKeys with classes }}\n                      class='{{if (not-eq index lastIndex) \"col\"}}\n                        {{if\n                          (and (not-eq index 0) (not-eq index lastIndex))\n                          \"text-center\"\n                        }}\n                        {{if (eq index lastIndex) \"col-3 text-right\"}}'\n                    >\n                      {{get container.item key}}\n                    </div>\n                  {{/let}}\n                {{/each}}\n              {{else}}\n                {{get container.item @nameKey}}\n              {{/if}}\n            </div>\n          </div>\n        {{else}}\n          {{#unless @item.isLoading}}\n            <div class='d-block text-center p-3'>\n              {{or @noItemsMessage (t 'common.No items')}}\n            </div>\n          {{/unless}}\n        {{/each}}\n        {{#if @item.isLoading}}\n          <div class='d-block text-center p-3'>\n            {{or @loadingMessage (t 'common.Loading')}}\n            <LoadingIcon @type='spinner' />\n          </div>\n        {{/if}}\n      {{/if}}\n    </div>\n  </InfinityScroll>\n  */\n  {\n    \"id\": \"ABrEIrvq\",\n    \"block\": \"[[[10,0],[14,0,\\\"d-flex align-items-center px-3 text-nowrap overflow-auto\\\"],[14,5,\\\"min-height: 3em;\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,2],[[28,[37,2],[[30,0,[\\\"firstScopes\\\"]]],null]],null],null,[[[1,\\\"    \\\"],[8,[39,3],null,[[\\\"@isSelected\\\",\\\"@onClick\\\"],[[28,[37,4],[[30,0,[\\\"selectedScope\\\"]],[30,1]],null],[28,[37,5],[[30,2],[30,1]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[1,[28,[35,6],[[30,1,[\\\"item\\\"]],[30,3]],null]],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,4,[\\\"length\\\"]],3],null],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mx-2 fw-bolder\\\"],[12],[1,\\\"…\\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,9],[[24,0,\\\"mx-2\\\"]],[[\\\"@icon\\\"],[\\\"chevron-right\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[42,[28,[37,2],[[28,[37,2],[[30,0,[\\\"lastScopes\\\"]]],null]],null],null,[[[1,\\\"    \\\"],[8,[39,3],null,[[\\\"@isSelected\\\",\\\"@onClick\\\"],[[28,[37,4],[[30,0,[\\\"selectedScope\\\"]],[30,5]],null],[28,[37,5],[[30,2],[30,5]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[1,[28,[35,6],[[30,5,[\\\"item\\\"]],[30,3]],null]],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"  \\\"],[8,[39,10],[[24,0,\\\"ms-auto\\\"]],[[\\\"@text\\\"],[[28,[37,11],[\\\"components.multi-item-selector-paginated.billableRemainingTooltip\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[1,[28,[35,11],[\\\"components.multi-item-selector-paginated.Billable remaining\\\"],null]],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,6],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"px-3 pb-3\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,12],[[24,0,\\\"form-control rounded\\\"],[16,\\\"placeholder\\\",[28,[37,13],[[30,7],[28,[37,11],[\\\"common.Search for a item\\\"],null]],null]],[16,\\\"aria-label\\\",[28,[37,13],[[30,7],[28,[37,11],[\\\"common.Search for a item\\\"],null]],null]],[16,\\\"disabled\\\",[30,8]],[4,[38,14],[\\\"keyup\\\",[30,0,[\\\"onSearchInputKeyUp\\\"]]],null]],[[\\\"@value\\\",\\\"@type\\\"],[[30,9],\\\"text\\\"]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[8,[39,15],null,[[\\\"@onLoadMore\\\"],[[30,10]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[11,0],[24,0,\\\"overflow-auto border-top\\\"],[4,[38,16],[[30,11]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,12],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"d-block text-center p-3\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,13],[[30,13],[28,[37,11],[\\\"common.Loading\\\"],null]],null]],[1,\\\"\\\\n        \\\"],[8,[39,17],null,[[\\\"@type\\\"],[\\\"spinner\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[42,[28,[37,2],[[28,[37,2],[[30,14,[\\\"children\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"d-flex align-items-stretch border-bottom\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,16]],[[[1,\\\"            \\\"],[10,\\\"label\\\"],[14,0,\\\"d-flex align-items-center py-2 px-3 list-group-item-action w-auto\\\"],[14,\\\"role\\\",\\\"button\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,20],[[24,0,\\\"m-0\\\"],[16,\\\"disabled\\\",[30,8]]],[[\\\"@checked\\\",\\\"@indeterminate\\\",\\\"@onChange\\\"],[[30,15,[\\\"checked\\\"]],[30,15,[\\\"indeterminate\\\"]],[28,[37,5],[[30,0,[\\\"onCheckboxClick\\\"]],[30,15]],null]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n          \\\"],[11,0],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"flex-fill row align-items-center m-0 py-2 list-group-item-action w-auto\\\"],[4,[38,14],[\\\"click\\\",[28,[37,5],[[30,0,[\\\"onContainerClick\\\"]],[30,15]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,17,[\\\"length\\\"]],[[[42,[28,[37,2],[[28,[37,2],[[30,17]],null]],null],null,[[[44,[[28,[37,22],[[30,17,[\\\"length\\\"]],\\\"-\\\",1],null]],[[[1,\\\"                  \\\"],[10,0],[15,0,[29,[[52,[28,[37,23],[[30,19],[30,20]],null],\\\"col\\\"],\\\"\\\\n                      \\\",[52,[28,[37,24],[[28,[37,23],[[30,19],0],null],[28,[37,23],[[30,19],[30,20]],null]],null],\\\"text-center\\\"],\\\"\\\\n                      \\\",[52,[28,[37,4],[[30,19],[30,20]],null],\\\"col-3 text-right\\\"]]]],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,6],[[30,15,[\\\"item\\\"]],[30,18]],null]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[20]]]],[18,19]],null]],[]],[[[1,\\\"              \\\"],[1,[28,[35,6],[[30,15,[\\\"item\\\"]],[30,3]],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[15]],[[[41,[51,[30,14,[\\\"isLoading\\\"]]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"d-block text-center p-3\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,13],[[30,21],[28,[37,11],[\\\"common.No items\\\"],null]],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[41,[30,14,[\\\"isLoading\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"d-block text-center p-3\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,13],[[30,13],[28,[37,11],[\\\"common.Loading\\\"],null]],null]],[1,\\\"\\\\n          \\\"],[8,[39,17],null,[[\\\"@type\\\"],[\\\"spinner\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[11]]]]]],[\\\"container\\\",\\\"@onSelectContainer\\\",\\\"@nameKey\\\",\\\"@scope\\\",\\\"container\\\",\\\"@onSearch\\\",\\\"@searchPlaceholder\\\",\\\"@disabled\\\",\\\"@searchString\\\",\\\"@onLoadMore\\\",\\\"didInsert\\\",\\\"@isLoading\\\",\\\"@loadingMessage\\\",\\\"@item\\\",\\\"container\\\",\\\"@hideCheckbox\\\",\\\"@nameKeys\\\",\\\"key\\\",\\\"index\\\",\\\"lastIndex\\\",\\\"@noItemsMessage\\\"],false,[\\\"div\\\",\\\"each\\\",\\\"-track-array\\\",\\\"item-selector/bread-crumb\\\",\\\"eq\\\",\\\"fn\\\",\\\"get\\\",\\\"if\\\",\\\"gt\\\",\\\"fa-icon\\\",\\\"label-popup\\\",\\\"t\\\",\\\"input\\\",\\\"or\\\",\\\"on\\\",\\\"infinity-scroll\\\",\\\"did-insert\\\",\\\"loading-icon\\\",\\\"unless\\\",\\\"label\\\",\\\"indeterminate-checkbox\\\",\\\"let\\\",\\\"math\\\",\\\"not-eq\\\",\\\"and\\\"]]\",\n    \"moduleName\": \"portal/components/multi-item-selector-paginated.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class extends _component2.default {\n    get firstScopes() {\n      return this.args.scope.slice(0, 1);\n    }\n    get lastScopes() {\n      return this.args.scope.length >= 3 ? this.args.scope.slice(-2) : this.args.scope.slice(1);\n    }\n    get selectedScope() {\n      return this.args.scope[this.args.scope.length - 1];\n    }\n    onContainerClick(container) {\n      (0, _runloop.next)(() => {\n        if (this.args.onSelectContainer) this.args.onSelectContainer(container);\n      });\n    }\n    onSearchInputKeyUp() {\n      if (this.args.onSearch) this.args.onSearch();\n    }\n    onCheckboxClick(container) {\n      if (this.args.onCheckboxClick) this.args.onCheckboxClick(container);\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"onContainerClick\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onContainerClick\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSearchInputKeyUp\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onSearchInputKeyUp\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onCheckboxClick\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onCheckboxClick\"), _class.prototype), _class));\n});","define(\"portal/components/multi-item-selector\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/array\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/template-factory\"], function (_exports, _component, _component2, _array, _object, _tracking, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/array\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='d-flex align-items-center px-3 py-3 item-selector__path'>\n    <span\n      role='button'\n      class='text-primary text-decoration-underline'\n      {{on 'click' this.clearScope}}\n      data-test-item-selector-home-text\n    >\n      {{or @homeText (t 'common.Home')}}\n    </span>\n    {{#if this.scope.length}}\n      <FaIcon @icon='chevron-right' class='mx-2' />\n    {{/if}}\n    {{#each this.first2Scopes as |container|}}\n      <ItemSelector::BreadCrumb\n        @isSelected={{eq this.selectedScope container}}\n        @onClick={{fn this.goToContainer container}}\n        data-test-items-selector-bread-crumb\n      >\n        {{get container.item @nameKey}}\n      </ItemSelector::BreadCrumb>\n    {{/each}}\n  \n    {{#if (gt this.scope.length 4)}}\n      <div class='mx-2 fw-bolder' data-test-item-selector-ellipsis>&hellip;</div>\n      <FaIcon @icon='chevron-right' class='mx-2' />\n    {{/if}}\n  \n    {{#each this.last2Scopes as |container|}}\n      <ItemSelector::BreadCrumb\n        @isSelected={{eq this.selectedScope container}}\n        @onClick={{fn this.goToContainer container}}\n        data-test-items-selector-bread-crumb\n      >\n        {{get container.item @nameKey}}\n      </ItemSelector::BreadCrumb>\n    {{/each}}\n  </div>\n  \n  <div class='px-3 pb-3'>\n    <Input\n      class='form-control rounded'\n      placeholder={{or @searchPlaceholder (t 'common.Search for a item')}}\n      aria-label={{or @searchPlaceholder (t 'common.Search for a item')}}\n      {{! auto focus only worked on the initial render }}\n      {{did-insert this.focusInput}}\n      @value={{this.searchString}}\n      @type='text'\n      data-test-item-selector-search-input\n    />\n  </div>\n  \n  <ul class='list-group item-selector__list border-top rounded-0'>\n    {{#if this.searchString}}\n      {{#each this.searchContainers as |container|}}\n        <ul class='list-group list-group-horizontal flex-row'>\n          <label\n            class='list-group-item list-group-item-action w-auto border-0 border-bottom'\n            role='button'\n          >\n            <IndeterminateCheckbox\n              @checked={{container.checked}}\n              @indeterminate={{container.indeterminate}}\n              @onChange={{fn @onChange container}}\n            />\n          </label>\n          <li\n            {{on 'click' (fn this.rebuildScopeFromContainer container)}}\n            class='list-group-item list-group-item-action flex-fill border-0 p-0 border-bottom'\n          >\n            <button\n              type='button'\n              class='btn shadow-none text-start w-100'\n              data-test-item-selector-item\n            >\n              {{get container.item @nameKey}}\n  \n              <FaIcon\n                @icon='circle'\n                @size='xs'\n                class='text-info ms-1\n                  {{unless container.isSomeChildChecked \"invisible\"}}'\n              />\n            </button>\n          </li>\n        </ul>\n      {{else}}\n        <div class='p-3 text-center' data-test-item-selector-no-item>\n          {{or @noSearchItemsMessage (t 'common.No items found')}}\n        </div>\n      {{/each}}\n    {{else}}\n      {{#each this.currentContainers as |container|}}\n        <ul class='list-group list-group-horizontal flex-row'>\n          <label\n            class='list-group-item list-group-item-action w-auto border-0 border-bottom'\n            role='button'\n          >\n            <IndeterminateCheckbox\n              @checked={{container.checked}}\n              @indeterminate={{container.indeterminate}}\n              @onChange={{fn @onChange container}}\n            />\n          </label>\n          <li\n            {{on 'click' (fn this.goIntoContainer container)}}\n            class='list-group-item list-group-item-action flex-fill border-0 p-0 border-bottom'\n          >\n            <button\n              type='button'\n              class='btn shadow-none text-start w-100'\n              data-test-item-selector-item\n            >\n              {{get container.item @nameKey}}\n  \n              <FaIcon\n                @icon='circle'\n                @size='xs'\n                class='text-info ms-1\n                  {{unless container.isSomeChildChecked \"invisible\"}}'\n              />\n            </button>\n          </li>\n        </ul>\n      {{else}}\n        <div class='p-3 text-center' data-test-item-selector-no-item>\n          {{or @noItemsMessage (t 'common.No items')}}\n        </div>\n      {{/each}}\n    {{/if}}\n  </ul>\n  */\n  {\n    \"id\": \"IzjYnecE\",\n    \"block\": \"[[[10,0],[14,0,\\\"d-flex align-items-center px-3 py-3 item-selector__path\\\"],[12],[1,\\\"\\\\n  \\\"],[11,1],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"text-primary text-decoration-underline\\\"],[24,\\\"data-test-item-selector-home-text\\\",\\\"\\\"],[4,[38,2],[\\\"click\\\",[30,0,[\\\"clearScope\\\"]]],null],[12],[1,\\\"\\\\n    \\\"],[1,[28,[35,3],[[30,1],[28,[37,4],[\\\"common.Home\\\"],null]],null]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"scope\\\",\\\"length\\\"]],[[[1,\\\"    \\\"],[8,[39,6],[[24,0,\\\"mx-2\\\"]],[[\\\"@icon\\\"],[\\\"chevron-right\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[42,[28,[37,8],[[28,[37,8],[[30,0,[\\\"first2Scopes\\\"]]],null]],null],null,[[[1,\\\"    \\\"],[8,[39,9],[[24,\\\"data-test-items-selector-bread-crumb\\\",\\\"\\\"]],[[\\\"@isSelected\\\",\\\"@onClick\\\"],[[28,[37,10],[[30,0,[\\\"selectedScope\\\"]],[30,2]],null],[28,[37,11],[[30,0,[\\\"goToContainer\\\"]],[30,2]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[1,[28,[35,12],[[30,2,[\\\"item\\\"]],[30,3]],null]],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,13],[[30,0,[\\\"scope\\\",\\\"length\\\"]],4],null],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mx-2 fw-bolder\\\"],[14,\\\"data-test-item-selector-ellipsis\\\",\\\"\\\"],[12],[1,\\\"…\\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,6],[[24,0,\\\"mx-2\\\"]],[[\\\"@icon\\\"],[\\\"chevron-right\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,0,[\\\"last2Scopes\\\"]]],null]],null],null,[[[1,\\\"    \\\"],[8,[39,9],[[24,\\\"data-test-items-selector-bread-crumb\\\",\\\"\\\"]],[[\\\"@isSelected\\\",\\\"@onClick\\\"],[[28,[37,10],[[30,0,[\\\"selectedScope\\\"]],[30,4]],null],[28,[37,11],[[30,0,[\\\"goToContainer\\\"]],[30,4]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[1,[28,[35,12],[[30,4,[\\\"item\\\"]],[30,3]],null]],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[4]],null],[13],[1,\\\"\\\\n\\\\n\\\"],[10,0],[14,0,\\\"px-3 pb-3\\\"],[12],[1,\\\"\\\\n  \\\"],[8,[39,14],[[24,0,\\\"form-control rounded\\\"],[16,\\\"placeholder\\\",[28,[37,3],[[30,5],[28,[37,4],[\\\"common.Search for a item\\\"],null]],null]],[16,\\\"aria-label\\\",[28,[37,3],[[30,5],[28,[37,4],[\\\"common.Search for a item\\\"],null]],null]],[24,\\\"data-test-item-selector-search-input\\\",\\\"\\\"],[4,[38,15],[[30,0,[\\\"focusInput\\\"]]],null]],[[\\\"@value\\\",\\\"@type\\\"],[[30,0,[\\\"searchString\\\"]],\\\"text\\\"]],null],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,\\\"ul\\\"],[14,0,\\\"list-group item-selector__list border-top rounded-0\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"searchString\\\"]],[[[42,[28,[37,8],[[28,[37,8],[[30,0,[\\\"searchContainers\\\"]]],null]],null],null,[[[1,\\\"      \\\"],[10,\\\"ul\\\"],[14,0,\\\"list-group list-group-horizontal flex-row\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"list-group-item list-group-item-action w-auto border-0 border-bottom\\\"],[14,\\\"role\\\",\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,18],null,[[\\\"@checked\\\",\\\"@indeterminate\\\",\\\"@onChange\\\"],[[30,6,[\\\"checked\\\"]],[30,6,[\\\"indeterminate\\\"]],[28,[37,11],[[30,7],[30,6]],null]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"li\\\"],[24,0,\\\"list-group-item list-group-item-action flex-fill border-0 p-0 border-bottom\\\"],[4,[38,2],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"rebuildScopeFromContainer\\\"]],[30,6]],null]],null],[12],[1,\\\"\\\\n          \\\"],[10,\\\"button\\\"],[14,0,\\\"btn shadow-none text-start w-100\\\"],[14,\\\"data-test-item-selector-item\\\",\\\"\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,12],[[30,6,[\\\"item\\\"]],[30,3]],null]],[1,\\\"\\\\n\\\\n            \\\"],[8,[39,6],[[16,0,[29,[\\\"text-info ms-1\\\\n                \\\",[52,[51,[30,6,[\\\"isSomeChildChecked\\\"]]],\\\"invisible\\\"]]]]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"circle\\\",\\\"xs\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[6]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"p-3 text-center\\\"],[14,\\\"data-test-item-selector-no-item\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,3],[[30,8],[28,[37,4],[\\\"common.No items found\\\"],null]],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[42,[28,[37,8],[[28,[37,8],[[30,0,[\\\"currentContainers\\\"]]],null]],null],null,[[[1,\\\"      \\\"],[10,\\\"ul\\\"],[14,0,\\\"list-group list-group-horizontal flex-row\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"list-group-item list-group-item-action w-auto border-0 border-bottom\\\"],[14,\\\"role\\\",\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,18],null,[[\\\"@checked\\\",\\\"@indeterminate\\\",\\\"@onChange\\\"],[[30,9,[\\\"checked\\\"]],[30,9,[\\\"indeterminate\\\"]],[28,[37,11],[[30,7],[30,9]],null]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"li\\\"],[24,0,\\\"list-group-item list-group-item-action flex-fill border-0 p-0 border-bottom\\\"],[4,[38,2],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"goIntoContainer\\\"]],[30,9]],null]],null],[12],[1,\\\"\\\\n          \\\"],[10,\\\"button\\\"],[14,0,\\\"btn shadow-none text-start w-100\\\"],[14,\\\"data-test-item-selector-item\\\",\\\"\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,12],[[30,9,[\\\"item\\\"]],[30,3]],null]],[1,\\\"\\\\n\\\\n            \\\"],[8,[39,6],[[16,0,[29,[\\\"text-info ms-1\\\\n                \\\",[52,[51,[30,9,[\\\"isSomeChildChecked\\\"]]],\\\"invisible\\\"]]]]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"circle\\\",\\\"xs\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[9]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"p-3 text-center\\\"],[14,\\\"data-test-item-selector-no-item\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,3],[[30,10],[28,[37,4],[\\\"common.No items\\\"],null]],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]],[13]],[\\\"@homeText\\\",\\\"container\\\",\\\"@nameKey\\\",\\\"container\\\",\\\"@searchPlaceholder\\\",\\\"container\\\",\\\"@onChange\\\",\\\"@noSearchItemsMessage\\\",\\\"container\\\",\\\"@noItemsMessage\\\"],false,[\\\"div\\\",\\\"span\\\",\\\"on\\\",\\\"or\\\",\\\"t\\\",\\\"if\\\",\\\"fa-icon\\\",\\\"each\\\",\\\"-track-array\\\",\\\"item-selector/bread-crumb\\\",\\\"eq\\\",\\\"fn\\\",\\\"get\\\",\\\"gt\\\",\\\"input\\\",\\\"did-insert\\\",\\\"ul\\\",\\\"label\\\",\\\"indeterminate-checkbox\\\",\\\"li\\\",\\\"button\\\",\\\"unless\\\"]]\",\n    \"moduleName\": \"portal/components/multi-item-selector.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"scope\", _descriptor, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor2, this);\n    }\n    get first2Scopes() {\n      return this.scope.slice(0, 2);\n    }\n    get last2Scopes() {\n      return this.scope.length >= 4 ? this.scope.slice(-2) : this.scope.slice(2);\n    }\n    get selectedScope() {\n      return this.scope[this.scope.length - 1];\n    }\n    get currentContainers() {\n      // if we have scope, return the highest scope\n      if (this.selectedScope) return this.selectedScope.children;\n      // return the top level\n      return this.args.items;\n    }\n    get searchContainers() {\n      if (!this.searchString) return null;\n      const matchedContainers = [];\n      const findContainer = containers => {\n        containers.forEach(container => {\n          const matchValue = container.item[this.args.nameKey];\n\n          // if our container matches the search term we have a match\n          if (matchValue.toLowerCase().includes(this.searchString.toLowerCase())) matchedContainers.push(container);\n\n          // if our container has children check the children\n          if (container.children) findContainer(container.children);\n        });\n      };\n      findContainer(this.currentContainers);\n      return matchedContainers;\n    }\n    clearScope() {\n      this.searchString = '';\n      this.scope = (0, _array.A)([]);\n    }\n    rebuildScopeFromContainer(container) {\n      // rebuild the scope from the end node by looking at all the items\n      const scope = [];\n      const unshiftContainerToScope = container => {\n        scope.unshift(container);\n        (function checkAllItemsForParent(items) {\n          items.forEach(c => {\n            // we have found the parent of this container, unshift it to scope\n            if (c.children.includes(container)) unshiftContainerToScope(c);\n            // if we didn't find the parent check the children\n            else if (c.children.length) checkAllItemsForParent(c.children);\n          });\n        })(this.args.items);\n      };\n      unshiftContainerToScope(container);\n      this.scope = (0, _array.A)(scope);\n      this.searchString = '';\n    }\n    goIntoContainer(container) {\n      this.scope.pushObject(container);\n    }\n    goToContainer(container) {\n      const index = this.scope.findIndex(c => c === container);\n      this.scope = this.scope.slice(0, index + 1);\n    }\n    focusInput(element) {\n      element.focus();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"scope\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return (0, _array.A)([]);\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"clearScope\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"clearScope\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"rebuildScopeFromContainer\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"rebuildScopeFromContainer\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"goIntoContainer\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"goIntoContainer\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"goToContainer\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"goToContainer\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"focusInput\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"focusInput\"), _class.prototype), _class));\n});","define(\"portal/components/multi-task-selector-input\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <PopUp\n    @visible={{@showTaskPopUp}}\n    @onClose={{fn (mut @showTaskPopUp) false}}\n    @disabled={{@disabled}}\n    as |pu|\n  >\n    <div\n      role='button'\n      class='form-control multi-task-selector-input__input\n        {{if @disabled \"multi-task-selector-input__input-disabled\"}}'\n      data-test-task-div=''\n      {{on 'click' (fn (mut @showTaskPopUp) (not @showTaskPopUp))}}\n      ...attributes\n    >\n      {{#if @selectedTasks.length}}\n        {{#each @selectedTasks as |task|}}\n          <div class='multi-task-selector-input__option text-truncate'>\n            <span\n              {{on 'click' (fn @removeSelectedTask task)}}\n              class='multi-task-selector-input__remove-button'\n            >\n              ×\n            </span>\n            {{task.name}}\n          </div>\n        {{/each}}\n      {{else}}\n        <span class='d-flex align-items-center mx-3 h-100'>\n          –\n        </span>\n      {{/if}}\n      <span\n        class='multi-task-selector-input__task-select-icon\n          {{if @showTaskPopUp \"rotate\"}}'\n      ></span>\n    </div>\n    <pu.Content>\n      <MultiTaskSelector\n        @tasks={{@selectedProject.activeTasks}}\n        @selectedTasks={{@selectedTasks}}\n        @onCancel={{fn (mut @showTaskPopUp) false}}\n        @onSubmit={{action @setSelectedTasks}}\n      />\n    </pu.Content>\n  </PopUp>\n  */\n  {\n    \"id\": \"2dNvSkvy\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@visible\\\",\\\"@onClose\\\",\\\"@disabled\\\"],[[30,1],[28,[37,1],[[28,[37,2],[[30,1]],null],false],null],[30,2]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[11,0],[24,\\\"role\\\",\\\"button\\\"],[16,0,[29,[\\\"form-control multi-task-selector-input__input\\\\n      \\\",[52,[30,2],\\\"multi-task-selector-input__input-disabled\\\"]]]],[24,\\\"data-test-task-div\\\",\\\"\\\"],[17,4],[4,[38,5],[\\\"click\\\",[28,[37,1],[[28,[37,2],[[30,1]],null],[28,[37,6],[[30,1]],null]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,5,[\\\"length\\\"]],[[[42,[28,[37,8],[[28,[37,8],[[30,5]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"multi-task-selector-input__option text-truncate\\\"],[12],[1,\\\"\\\\n          \\\"],[11,1],[24,0,\\\"multi-task-selector-input__remove-button\\\"],[4,[38,5],[\\\"click\\\",[28,[37,1],[[30,7],[30,6]],null]],null],[12],[1,\\\"\\\\n            ×\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[1,[30,6,[\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[6]],null]],[]],[[[1,\\\"      \\\"],[10,1],[14,0,\\\"d-flex align-items-center mx-3 h-100\\\"],[12],[1,\\\"\\\\n        –\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[10,1],[15,0,[29,[\\\"multi-task-selector-input__task-select-icon\\\\n        \\\",[52,[30,1],\\\"rotate\\\"]]]],[12],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[30,3,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,10],null,[[\\\"@tasks\\\",\\\"@selectedTasks\\\",\\\"@onCancel\\\",\\\"@onSubmit\\\"],[[30,8,[\\\"activeTasks\\\"]],[30,5],[28,[37,1],[[28,[37,2],[[30,1]],null],false],null],[28,[37,11],[[30,0],[30,9]],null]]],null],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[3]]]]]],[\\\"@showTaskPopUp\\\",\\\"@disabled\\\",\\\"pu\\\",\\\"&attrs\\\",\\\"@selectedTasks\\\",\\\"task\\\",\\\"@removeSelectedTask\\\",\\\"@selectedProject\\\",\\\"@setSelectedTasks\\\"],false,[\\\"pop-up\\\",\\\"fn\\\",\\\"mut\\\",\\\"div\\\",\\\"if\\\",\\\"on\\\",\\\"not\\\",\\\"each\\\",\\\"-track-array\\\",\\\"span\\\",\\\"multi-task-selector\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"portal/components/multi-task-selector-input.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component2.default {});\n});","define(\"portal/components/multi-task-selector\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@glimmer/tracking\", \"portal/utils/multi-selectable-tree-item\", \"@ember/object\", \"@ember/runloop\", \"@ember/template-factory\"], function (_exports, _component, _component2, _tracking, _multiSelectableTreeItem, _object, _runloop, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"portal/utils/multi-selectable-tree-item\",0,\"@ember/object\",0,\"@ember/runloop\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='task-selector__list'>\n    <MultiItemSelector\n      @items={{this.items}}\n      @nameKey='name'\n      @homeText={{t 'common.Tasks'}}\n      @noItemsMessage={{t 'common.No tasks'}}\n      @searchPlaceholder={{t 'common.Search for a task'}}\n      @noSearchItemsMessage={{t 'common.No tasks found'}}\n      @onChange={{this.onChange}}\n    />\n  </div>\n  \n  <div class='d-flex p-3 task-selector__footer border-top'>\n    <div class='flex-grow-1'>\n      <button\n        type='button'\n        class='btn btn-secondary text-white'\n        data-test-task-selector-clear\n        {{on 'click' this.clear}}\n      >{{t 'common.Clear selection'}}</button>\n    </div>\n  \n    <button\n      type='button'\n      data-test-task-selector-cancel\n      {{on 'click' @onCancel}}\n      class='btn btn-secondary text-white me-2'\n    >{{t 'common.Cancel'}}</button>\n    <button\n      type='button'\n      {{on 'click' (fn @onSubmit this.selectedItems)}}\n      class='btn btn-primary text-white'\n      data-test-task-selector-ok-confirm\n    >{{t 'common.OK'}}</button>\n  </div>\n  */\n  {\n    \"id\": \"3cqXTsBm\",\n    \"block\": \"[[[10,0],[14,0,\\\"task-selector__list\\\"],[12],[1,\\\"\\\\n  \\\"],[8,[39,1],null,[[\\\"@items\\\",\\\"@nameKey\\\",\\\"@homeText\\\",\\\"@noItemsMessage\\\",\\\"@searchPlaceholder\\\",\\\"@noSearchItemsMessage\\\",\\\"@onChange\\\"],[[30,0,[\\\"items\\\"]],\\\"name\\\",[28,[37,2],[\\\"common.Tasks\\\"],null],[28,[37,2],[\\\"common.No tasks\\\"],null],[28,[37,2],[\\\"common.Search for a task\\\"],null],[28,[37,2],[\\\"common.No tasks found\\\"],null],[30,0,[\\\"onChange\\\"]]]],null],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,0],[14,0,\\\"d-flex p-3 task-selector__footer border-top\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white\\\"],[24,\\\"data-test-task-selector-clear\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,4],[\\\"click\\\",[30,0,[\\\"clear\\\"]]],null],[12],[1,[28,[35,2],[\\\"common.Clear selection\\\"],null]],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[11,\\\"button\\\"],[24,\\\"data-test-task-selector-cancel\\\",\\\"\\\"],[24,0,\\\"btn btn-secondary text-white me-2\\\"],[24,4,\\\"button\\\"],[4,[38,4],[\\\"click\\\",[30,1]],null],[12],[1,[28,[35,2],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary text-white\\\"],[24,\\\"data-test-task-selector-ok-confirm\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,4],[\\\"click\\\",[28,[37,5],[[30,2],[30,0,[\\\"selectedItems\\\"]]],null]],null],[12],[1,[28,[35,2],[\\\"common.OK\\\"],null]],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"@onCancel\\\",\\\"@onSubmit\\\"],false,[\\\"div\\\",\\\"multi-item-selector\\\",\\\"t\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\"]]\",\n    \"moduleName\": \"portal/components/multi-task-selector.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"items\", _descriptor, this);\n      this.items = _multiSelectableTreeItem.default.constructItemTreeFromTasks(this.args.tasks, this.args.selectedTasks);\n    }\n    onChange(container, event) {\n      event.preventDefault();\n      (0, _runloop.next)(() => {\n        const newIsEnabled = !container._isChecked;\n        const setIsTaskSchedulingOnChildren = item => {\n          item.isChecked = newIsEnabled;\n          if (item.children?.length) {\n            item.children.forEach(i => setIsTaskSchedulingOnChildren(i, true));\n          }\n        };\n        setIsTaskSchedulingOnChildren(container);\n      });\n    }\n    clear() {\n      const clearItems = items => {\n        items.forEach(item => {\n          item.isChecked = false;\n          if (item.children?.length) clearItems(item.children);\n        });\n      };\n      clearItems(this.items);\n    }\n    get selectedItems() {\n      const selectedItems = [];\n      const checkAllChildSelected = containers => {\n        containers.forEach(container => {\n          if (container.checked || container.indeterminate) {\n            selectedItems.push(container.item);\n          }\n          if (container.children?.length) checkAllChildSelected(container.children);\n        });\n      };\n      checkAllChildSelected(this.items);\n      return selectedItems;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"items\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"onChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"clear\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"clear\"), _class.prototype), _class));\n});","define(\"portal/components/multiple-from-elsewhere\", [\"exports\", \"ember-elsewhere/components/multiple-from-elsewhere\"], function (_exports, _multipleFromElsewhere) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _multipleFromElsewhere.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-elsewhere/components/multiple-from-elsewhere\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/multiselect-checkboxes\", [\"exports\", \"ember-multiselect-checkboxes/components/multiselect-checkboxes\"], function (_exports, _multiselectCheckboxes) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _multiselectCheckboxes.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-multiselect-checkboxes/components/multiselect-checkboxes\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/nested-task-card\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"@ember/object\", \"@ember/service\", \"@glimmer/tracking\", \"@ember/runloop\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _object, _service, _tracking, _runloop, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"@ember/object\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! template-lint-disable no-nested-interactive }}\n  {{#if @dsl.isDroppingAbove}}\n    <@dsl.Separator />\n  {{/if}}\n  \n  <@dsl.Draggable\n    class='nested-task-card__task-container'\n    {{did-update this.onIsDroppingInto @dsl.isDroppingInto}}\n    {{on 'drop' this.onDrop}}\n  >\n    {{#if (media 'isDesktop')}}\n      <@dsl.DragHandle>\n        <div\n          role='treeitem'\n          class='nested-task-card__task-row\n            {{if this.hasTimeout \"nested-task-card__task-row--expanding\"}}\n            {{if @dsl.isDragging \"nested-task-card__task-row--dragging\"}}'\n          {{on 'click' this.toggleExpanded}}\n          data-test-task-row={{@item.task.id}}\n        >\n          <div class='nested-task-card__left-icon'>\n            {{#if @item.children.length}}\n              <FaIcon\n                @icon={{if @item.expanded 'chevron-down' 'chevron-right'}}\n              />\n            {{else if (and @item.expanded (not this.readOnly))}}\n              <FaIcon @icon='chevron-down' />\n            {{else if (not this.readOnly)}}\n              <FaIcon @icon='plus' />\n            {{/if}}\n          </div>\n  \n          <button\n            type='button'\n            class='nested-task-card__content-button'\n            {{on 'click' this.onNameButtonClick}}\n            {{! the task must have an id before it can be navigated to }}\n            disabled={{and @item.task.isSaving @item.task.isNew}}\n            data-test-task-name={{@item.task.id}}\n          >\n            {{@item.task.name}}\n          </button>\n  \n          <TaskTypeBadge @type={{@item.task.taskType}} class='m-1' />\n  \n          {{#if (includes-feature-flags @item.task 'canUseTaskBudgets')}}\n            {{#if\n              (or @item.task.hasDirectBudget @item.task.hasTaskChildrenBudget)\n            }}\n              <TaskDetailBadge\n                class='m-1'\n                @hasDirectRecord={{@item.task.hasDirectBudget}}\n                @char='B'\n              />\n            {{/if}}\n          {{/if}}\n  \n          {{#if (includes-feature-flags @item.task 'canUseTaskQuotes')}}\n            {{#if (or @item.task.hasDirectQuote @item.task.hasTaskChildrenQuote)}}\n              <TaskDetailBadge\n                class='m-1'\n                @hasDirectRecord={{@item.task.hasDirectQuote}}\n                @char='Q'\n              />\n            {{/if}}\n          {{/if}}\n  \n          {{#if\n            (or\n              @item.task.hasDirectAttachments\n              @item.task.hasTaskChildrenAttachments\n            )\n          }}\n            <TaskDetailBadge\n              class='m-1'\n              @hasDirectRecord={{@item.task.hasDirectAttachments}}\n              @icon='paperclip'\n            />\n          {{/if}}\n  \n          {{! TODO this UI is far from ideal }}\n          {{#if\n            (or\n              @item.task.userTaskAttributes.length\n              @item.task.workerTaskAttributes.length\n            )\n          }}\n            <TaskDetailBadge class='m-1' @hasDirectRecord={{true}} @icon='user' />\n          {{/if}}\n  \n          {{#if\n            (and\n              (or @item.task.hasDirectProducts @item.task.hasTaskChildrenProducts)\n              this.showProductIcon\n            )\n          }}\n            <TaskDetailBadge\n              class='m-1'\n              @hasDirectRecord={{@item.task.hasDirectProducts}}\n              @icon='cubes'\n            />\n          {{/if}}\n  \n          {{#unless this.readOnly}}\n            <div class='ms-auto'>\n              <div role='button' {{on 'click' this.toggleTaskActive}}>\n                <button\n                  type='button'\n                  class='btn text-white\n                    {{if\n                      (eq @item.task.timesheetStatus \"ACTIVE\")\n                      \"btn-primary\"\n                      \"btn-secondary\"\n                    }}\n                    nested-task-card__timesheet-toggle-button'\n                  disabled={{or\n                    @disableActions\n                    this.toggleTaskActive.isRunning\n                    @item.task.hasInactiveParents\n                  }}\n                >\n                  {{#if (eq @item.task.timesheetStatus 'ACTIVE')}}\n                    <FaIcon @icon='clock' @prefix='far' />\n                  {{else}}\n                    <FaIcon @icon='slash' @flip='horizontal' />\n                    <FaIcon @icon='clock' @prefix='far' />\n                  {{/if}}\n                </button>\n              </div>\n            </div>\n          {{/unless}}\n        </div>\n  \n      </@dsl.DragHandle>\n    {{else}}\n      <div\n        role='treeitem'\n        class='nested-task-card__task-row\n          {{if this.hasTimeout \"nested-task-card__task-row--expanding\"}}\n          {{if @dsl.isDragging \"nested-task-card__task-row--dragging\"}}'\n        {{on 'click' this.toggleExpanded}}\n        data-test-task-row={{@item.task.id}}\n      >\n        <@dsl.DragHandle class='me-3'>\n          <FaIcon @icon='grip-vertical' @fixedWidth={{true}} @size='lg' />\n        </@dsl.DragHandle>\n  \n        <div class='nested-task-card__left-icon'>\n          {{#if @item.children.length}}\n            <FaIcon @icon={{if @item.expanded 'chevron-down' 'chevron-right'}} />\n          {{else if (and @item.expanded (not this.readOnly))}}\n            <FaIcon @icon='chevron-down' />\n          {{else if (not this.readOnly)}}\n            <FaIcon @icon='plus' />\n          {{/if}}\n        </div>\n  \n        <button\n          type='button'\n          class='nested-task-card__content-button'\n          {{on 'click' this.onNameButtonClick}}\n          {{! the task must have an id before it can be navigated to }}\n          disabled={{and @item.task.isSaving @item.task.isNew}}\n          data-test-task-name={{@item.task.id}}\n        >\n          {{@item.task.name}}\n        </button>\n  \n        {{#unless (media 'isMobile')}}\n          {{#unless this.readOnly}}\n            <div class='ms-auto'>\n              <div role='button' {{on 'click' this.toggleTaskActive}}>\n                <button\n                  type='button'\n                  class='btn text-white\n                    {{if\n                      (eq @item.task.timesheetStatus \"ACTIVE\")\n                      \"btn-primary\"\n                      \"btn-secondary\"\n                    }}\n                    nested-task-card__timesheet-toggle-button'\n                  disabled={{or\n                    @disableActions\n                    this.toggleTaskActive.isRunning\n                    @item.task.hasInactiveParents\n                  }}\n                >\n                  {{#if (eq @item.task.timesheetStatus 'ACTIVE')}}\n                    <FaIcon @icon='clock' @prefix='far' />\n                  {{else}}\n                    <FaIcon @icon='slash' @flip='horizontal' />\n                    <FaIcon @icon='clock' @prefix='far' />\n                  {{/if}}\n                </button>\n              </div>\n            </div>\n          {{/unless}}\n        {{/unless}}\n      </div>\n  \n    {{/if}}\n  \n    {{#if @dsl.isDroppingInto}}\n      <div class='ms-5'>\n        <@dsl.Separator />\n      </div>\n    {{/if}}\n  \n    {{#if @item.expanded}}\n      <div class='ms-5'>\n        <@dsl.Children />\n  \n        {{#unless this.readOnly}}\n          <NestedTaskCard::AddTask\n            @inputId='new-task-name-input-{{@item.task.id}}'\n            @saveNewTask={{this.saveNewTask}}\n            {{! the task must be saved before children can be added }}\n            @disabled={{and @item.task.isSaving @item.task.isNew}}\n            @placeholder={{concat 'Add task for \"' @item.task.name '\"'}}\n            data-test-add-task={{@item.task.id}}\n          />\n        {{/unless}}\n      </div>\n    {{/if}}\n  </@dsl.Draggable>\n  \n  {{#if @dsl.isDroppingBelow}}\n    <@dsl.Separator />\n  {{/if}}\n  */\n  {\n    \"id\": \"oJpBenNJ\",\n    \"block\": \"[[[41,[30,1,[\\\"isDroppingAbove\\\"]],[[[1,\\\"  \\\"],[8,[30,1,[\\\"Separator\\\"]],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[8,[30,1,[\\\"Draggable\\\"]],[[24,0,\\\"nested-task-card__task-container\\\"],[4,[38,1],[[30,0,[\\\"onIsDroppingInto\\\"]],[30,1,[\\\"isDroppingInto\\\"]]],null],[4,[38,2],[\\\"drop\\\",[30,0,[\\\"onDrop\\\"]]],null]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[28,[37,3],[\\\"isDesktop\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"DragHandle\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[11,0],[24,\\\"role\\\",\\\"treeitem\\\"],[16,0,[29,[\\\"nested-task-card__task-row\\\\n          \\\",[52,[30,0,[\\\"hasTimeout\\\"]],\\\"nested-task-card__task-row--expanding\\\"],\\\"\\\\n          \\\",[52,[30,1,[\\\"isDragging\\\"]],\\\"nested-task-card__task-row--dragging\\\"]]]],[16,\\\"data-test-task-row\\\",[30,2,[\\\"task\\\",\\\"id\\\"]]],[4,[38,2],[\\\"click\\\",[30,0,[\\\"toggleExpanded\\\"]]],null],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"nested-task-card__left-icon\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"children\\\",\\\"length\\\"]],[[[1,\\\"            \\\"],[8,[39,5],null,[[\\\"@icon\\\"],[[52,[30,2,[\\\"expanded\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,6],[[30,2,[\\\"expanded\\\"]],[28,[37,7],[[30,0,[\\\"readOnly\\\"]]],null]],null],[[[1,\\\"            \\\"],[8,[39,5],null,[[\\\"@icon\\\"],[\\\"chevron-down\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,7],[[30,0,[\\\"readOnly\\\"]]],null],[[[1,\\\"            \\\"],[8,[39,5],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"\\\\n          \\\"]],[]],null]],[]]]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"nested-task-card__content-button\\\"],[16,\\\"disabled\\\",[28,[37,6],[[30,2,[\\\"task\\\",\\\"isSaving\\\"]],[30,2,[\\\"task\\\",\\\"isNew\\\"]]],null]],[16,\\\"data-test-task-name\\\",[30,2,[\\\"task\\\",\\\"id\\\"]]],[24,4,\\\"button\\\"],[4,[38,2],[\\\"click\\\",[30,0,[\\\"onNameButtonClick\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[1,[30,2,[\\\"task\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,9],[[24,0,\\\"m-1\\\"]],[[\\\"@type\\\"],[[30,2,[\\\"task\\\",\\\"taskType\\\"]]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,10],[[30,2,[\\\"task\\\"]],\\\"canUseTaskBudgets\\\"],null],[[[41,[28,[37,11],[[30,2,[\\\"task\\\",\\\"hasDirectBudget\\\"]],[30,2,[\\\"task\\\",\\\"hasTaskChildrenBudget\\\"]]],null],[[[1,\\\"            \\\"],[8,[39,12],[[24,0,\\\"m-1\\\"]],[[\\\"@hasDirectRecord\\\",\\\"@char\\\"],[[30,2,[\\\"task\\\",\\\"hasDirectBudget\\\"]],\\\"B\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,10],[[30,2,[\\\"task\\\"]],\\\"canUseTaskQuotes\\\"],null],[[[41,[28,[37,11],[[30,2,[\\\"task\\\",\\\"hasDirectQuote\\\"]],[30,2,[\\\"task\\\",\\\"hasTaskChildrenQuote\\\"]]],null],[[[1,\\\"            \\\"],[8,[39,12],[[24,0,\\\"m-1\\\"]],[[\\\"@hasDirectRecord\\\",\\\"@char\\\"],[[30,2,[\\\"task\\\",\\\"hasDirectQuote\\\"]],\\\"Q\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[[30,2,[\\\"task\\\",\\\"hasDirectAttachments\\\"]],[30,2,[\\\"task\\\",\\\"hasTaskChildrenAttachments\\\"]]],null],[[[1,\\\"          \\\"],[8,[39,12],[[24,0,\\\"m-1\\\"]],[[\\\"@hasDirectRecord\\\",\\\"@icon\\\"],[[30,2,[\\\"task\\\",\\\"hasDirectAttachments\\\"]],\\\"paperclip\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[[30,2,[\\\"task\\\",\\\"userTaskAttributes\\\",\\\"length\\\"]],[30,2,[\\\"task\\\",\\\"workerTaskAttributes\\\",\\\"length\\\"]]],null],[[[1,\\\"          \\\"],[8,[39,12],[[24,0,\\\"m-1\\\"]],[[\\\"@hasDirectRecord\\\",\\\"@icon\\\"],[true,\\\"user\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[[28,[37,11],[[30,2,[\\\"task\\\",\\\"hasDirectProducts\\\"]],[30,2,[\\\"task\\\",\\\"hasTaskChildrenProducts\\\"]]],null],[30,0,[\\\"showProductIcon\\\"]]],null],[[[1,\\\"          \\\"],[8,[39,12],[[24,0,\\\"m-1\\\"]],[[\\\"@hasDirectRecord\\\",\\\"@icon\\\"],[[30,2,[\\\"task\\\",\\\"hasDirectProducts\\\"]],\\\"cubes\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"readOnly\\\"]]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"ms-auto\\\"],[12],[1,\\\"\\\\n            \\\"],[11,0],[24,\\\"role\\\",\\\"button\\\"],[4,[38,2],[\\\"click\\\",[30,0,[\\\"toggleTaskActive\\\"]]],null],[12],[1,\\\"\\\\n              \\\"],[10,\\\"button\\\"],[15,0,[29,[\\\"btn text-white\\\\n                  \\\",[52,[28,[37,14],[[30,2,[\\\"task\\\",\\\"timesheetStatus\\\"]],\\\"ACTIVE\\\"],null],\\\"btn-primary\\\",\\\"btn-secondary\\\"],\\\"\\\\n                  nested-task-card__timesheet-toggle-button\\\"]]],[15,\\\"disabled\\\",[28,[37,11],[[30,3],[30,0,[\\\"toggleTaskActive\\\",\\\"isRunning\\\"]],[30,2,[\\\"task\\\",\\\"hasInactiveParents\\\"]]],null]],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,14],[[30,2,[\\\"task\\\",\\\"timesheetStatus\\\"]],\\\"ACTIVE\\\"],null],[[[1,\\\"                  \\\"],[8,[39,5],null,[[\\\"@icon\\\",\\\"@prefix\\\"],[\\\"clock\\\",\\\"far\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[8,[39,5],null,[[\\\"@icon\\\",\\\"@flip\\\"],[\\\"slash\\\",\\\"horizontal\\\"]],null],[1,\\\"\\\\n                  \\\"],[8,[39,5],null,[[\\\"@icon\\\",\\\"@prefix\\\"],[\\\"clock\\\",\\\"far\\\"]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[11,0],[24,\\\"role\\\",\\\"treeitem\\\"],[16,0,[29,[\\\"nested-task-card__task-row\\\\n        \\\",[52,[30,0,[\\\"hasTimeout\\\"]],\\\"nested-task-card__task-row--expanding\\\"],\\\"\\\\n        \\\",[52,[30,1,[\\\"isDragging\\\"]],\\\"nested-task-card__task-row--dragging\\\"]]]],[16,\\\"data-test-task-row\\\",[30,2,[\\\"task\\\",\\\"id\\\"]]],[4,[38,2],[\\\"click\\\",[30,0,[\\\"toggleExpanded\\\"]]],null],[12],[1,\\\"\\\\n      \\\"],[8,[30,1,[\\\"DragHandle\\\"]],[[24,0,\\\"me-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[39,5],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"grip-vertical\\\",true,\\\"lg\\\"]],null],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"nested-task-card__left-icon\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"children\\\",\\\"length\\\"]],[[[1,\\\"          \\\"],[8,[39,5],null,[[\\\"@icon\\\"],[[52,[30,2,[\\\"expanded\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,6],[[30,2,[\\\"expanded\\\"]],[28,[37,7],[[30,0,[\\\"readOnly\\\"]]],null]],null],[[[1,\\\"          \\\"],[8,[39,5],null,[[\\\"@icon\\\"],[\\\"chevron-down\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,7],[[30,0,[\\\"readOnly\\\"]]],null],[[[1,\\\"          \\\"],[8,[39,5],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"\\\\n        \\\"]],[]],null]],[]]]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"nested-task-card__content-button\\\"],[16,\\\"disabled\\\",[28,[37,6],[[30,2,[\\\"task\\\",\\\"isSaving\\\"]],[30,2,[\\\"task\\\",\\\"isNew\\\"]]],null]],[16,\\\"data-test-task-name\\\",[30,2,[\\\"task\\\",\\\"id\\\"]]],[24,4,\\\"button\\\"],[4,[38,2],[\\\"click\\\",[30,0,[\\\"onNameButtonClick\\\"]]],null],[12],[1,\\\"\\\\n        \\\"],[1,[30,2,[\\\"task\\\",\\\"name\\\"]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[28,[37,3],[\\\"isMobile\\\"],null]],[[[41,[51,[30,0,[\\\"readOnly\\\"]]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"ms-auto\\\"],[12],[1,\\\"\\\\n            \\\"],[11,0],[24,\\\"role\\\",\\\"button\\\"],[4,[38,2],[\\\"click\\\",[30,0,[\\\"toggleTaskActive\\\"]]],null],[12],[1,\\\"\\\\n              \\\"],[10,\\\"button\\\"],[15,0,[29,[\\\"btn text-white\\\\n                  \\\",[52,[28,[37,14],[[30,2,[\\\"task\\\",\\\"timesheetStatus\\\"]],\\\"ACTIVE\\\"],null],\\\"btn-primary\\\",\\\"btn-secondary\\\"],\\\"\\\\n                  nested-task-card__timesheet-toggle-button\\\"]]],[15,\\\"disabled\\\",[28,[37,11],[[30,3],[30,0,[\\\"toggleTaskActive\\\",\\\"isRunning\\\"]],[30,2,[\\\"task\\\",\\\"hasInactiveParents\\\"]]],null]],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,14],[[30,2,[\\\"task\\\",\\\"timesheetStatus\\\"]],\\\"ACTIVE\\\"],null],[[[1,\\\"                  \\\"],[8,[39,5],null,[[\\\"@icon\\\",\\\"@prefix\\\"],[\\\"clock\\\",\\\"far\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[8,[39,5],null,[[\\\"@icon\\\",\\\"@flip\\\"],[\\\"slash\\\",\\\"horizontal\\\"]],null],[1,\\\"\\\\n                  \\\"],[8,[39,5],null,[[\\\"@icon\\\",\\\"@prefix\\\"],[\\\"clock\\\",\\\"far\\\"]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"isDroppingInto\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"ms-5\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[30,1,[\\\"Separator\\\"]],null,null,null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"expanded\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"ms-5\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[30,1,[\\\"Children\\\"]],null,null,null],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"readOnly\\\"]]],[[[1,\\\"        \\\"],[8,[39,15],[[16,\\\"data-test-add-task\\\",[30,2,[\\\"task\\\",\\\"id\\\"]]]],[[\\\"@inputId\\\",\\\"@saveNewTask\\\",\\\"@disabled\\\",\\\"@placeholder\\\"],[[29,[\\\"new-task-name-input-\\\",[30,2,[\\\"task\\\",\\\"id\\\"]]]],[30,0,[\\\"saveNewTask\\\"]],[28,[37,6],[[30,2,[\\\"task\\\",\\\"isSaving\\\"]],[30,2,[\\\"task\\\",\\\"isNew\\\"]]],null],[28,[37,16],[\\\"Add task for \\\\\\\"\\\",[30,2,[\\\"task\\\",\\\"name\\\"]],\\\"\\\\\\\"\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,1,[\\\"isDroppingBelow\\\"]],[[[1,\\\"  \\\"],[8,[30,1,[\\\"Separator\\\"]],null,null,null],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@dsl\\\",\\\"@item\\\",\\\"@disableActions\\\"],false,[\\\"if\\\",\\\"did-update\\\",\\\"on\\\",\\\"media\\\",\\\"div\\\",\\\"fa-icon\\\",\\\"and\\\",\\\"not\\\",\\\"button\\\",\\\"task-type-badge\\\",\\\"includes-feature-flags\\\",\\\"or\\\",\\\"task-detail-badge\\\",\\\"unless\\\",\\\"eq\\\",\\\"nested-task-card/add-task\\\",\\\"concat\\\"]]\",\n    \"moduleName\": \"portal/components/nested-task-card.hbs\",\n    \"isStrictMode\": false\n  });\n  const expandOnHoverMsTimeout = 500; // this is paired with .nested-task-card__task-row--expanding\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor3, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor4, this);\n      _initializerDefineProperty(this, \"timeout\", _descriptor5, this);\n      _initializerDefineProperty(this, \"hasTimeout\", _descriptor6, this);\n      _defineProperty(this, \"_toggleTaskActive\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const taskIsActive = this.args.item.task.timesheetStatus === 'ACTIVE';\n          const newStatus = taskIsActive ? 'INACTIVE' : 'ACTIVE';\n          const taskChildren = this.args.item.task.getAllActiveChildren(this.args.item.task);\n          this.args.item.task.timesheetStatus = newStatus;\n          taskChildren.forEach(task => task.timesheetStatus = newStatus);\n          yield this.buildaPrice.updateTaskList(this.args.item);\n        }\n      }), null, \"_toggleTaskActive\", null));\n    }\n    get readOnly() {\n      // don't try to evaluate permission on a task that isn't created\n      if (this.args.item.task.isNew) return false;\n      return this.newFeatureFlags.excludesFeatureFlags(this.args.item.task, 'canManageTasks');\n    }\n    onIsDroppingInto() {\n      const {\n        item,\n        dsl\n      } = this.args;\n\n      // when we are not dropping into and there is an existing timeout, clear the timeout\n      if (!dsl.isDroppingInto && this.hasTimeout) {\n        clearTimeout(this.timeout);\n        this.hasTimeout = false;\n      }\n      const hasChildren = Boolean(item.children?.length);\n      const isCollapsed = !item.expanded;\n      if (!this.hasTimeout && dsl.isDroppingInto && hasChildren && isCollapsed) {\n        this.hasTimeout = true;\n        this.timeout = setTimeout(() => {\n          this.args.item.expanded = true; // expand the item\n          this.hasTimeout = false;\n        }, expandOnHoverMsTimeout);\n      }\n    }\n    get showProductIcon() {\n      if (this.newFeatureFlags.includesFeatureFlags('userIsEntityAdmin')) return true;\n\n      // if the task hasn't been saved yet it can't have any product\n      if (!this.args.item.task.id) return false;\n      if (this.newFeatureFlags.includesFeatureFlags(this.args.item.task, 'canUseProducts')) return true;\n      if (this.args.item.task.allActiveChildren.length) {\n        if (this.args.item.task.allActiveChildren.some(task => this.newFeatureFlags.includesFeatureFlags(task, 'canUseProducts'))) {\n          return true;\n        }\n      }\n      return false;\n    }\n    onDrop() {\n      // expand the item if something has been dropped inside\n      if (this.args.dsl.isDroppingInto && !this.args.item.expanded) this.args.item.expanded = true;\n    }\n    toggleExpanded(event) {\n      this.args.item.expanded = !this.args.item.expanded;\n      if (this.args.item.expanded) this.focusTaskNameInput();\n      event.stopPropagation();\n      event.preventDefault();\n    }\n    focusTaskNameInput() {\n      (0, _runloop.next)(() => {\n        document.getElementById(`new-task-name-input-${this.args.item.task.id}`)?.focus();\n      });\n    }\n    onNameButtonClick(event) {\n      event.stopPropagation();\n      event.preventDefault();\n\n      // this was not hooked up with a link-to because the element broken the drag animation\n      this.router.transitionTo('entity.builda-price.projects.project.tasks.task', this.args.item.task.id);\n    }\n    saveNewTask(name) {\n      this.args.saveNewTask.perform(name, this.args.item.task);\n    }\n    toggleTaskActive(event) {\n      event.stopPropagation();\n      event.preventDefault();\n      if (this.args.disableActions || this._toggleTaskActive.isRunning || this.args.item.task.hasInactiveParents) return;\n      this._toggleTaskActive.perform();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"timeout\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"hasTimeout\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"onIsDroppingInto\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onIsDroppingInto\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onDrop\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onDrop\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleExpanded\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleExpanded\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onNameButtonClick\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onNameButtonClick\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"saveNewTask\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"saveNewTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleTaskActive\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleTaskActive\"), _class.prototype), _class));\n});","define(\"portal/components/nested-task-card/add-task\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"@ember/service\", \"@ember/object\", \"ember-changeset\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _service, _object, _emberChangeset, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/object\",0,\"ember-changeset\",0,\"ember-concurrency\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='nested-task-card__add-task-container' ...attributes>\n    {{#unless @readOnly}}\n      <FaIcon\n        @icon='plus'\n        @fixedWidth={{true}}\n        class='nested-task-card__add-task-icon'\n      />\n  \n      <Input\n        @type='text'\n        @value={{this.changeset.name}}\n        id={{@inputId}}\n        class='nested-task-card__add-task-input'\n        placeholder={{@placeholder}}\n        disabled={{@disabled}}\n        autofocus={{@autofocus}}\n        {{on 'keypress' this.onTaskNameInputKeypress}}\n        {{! you need this to prevent drops onto the input }}\n        {{on 'drop' this.noop}}\n      />\n  \n      {{#if this.changeset.name.length}}\n        <button\n          type='button'\n          class='ms-2 text-light btn btn-secondary me-3'\n          disabled={{@disabled}}\n          {{on 'click' this.saveNewTask}}\n        >{{t 'common.Add'}}</button>\n      {{/if}}\n    {{/unless}}\n  </div>\n  */\n  {\n    \"id\": \"gJag9Qo/\",\n    \"block\": \"[[[11,0],[24,0,\\\"nested-task-card__add-task-container\\\"],[17,1],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,2]],[[[1,\\\"    \\\"],[8,[39,2],[[24,0,\\\"nested-task-card__add-task-icon\\\"]],[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"plus\\\",true]],null],[1,\\\"\\\\n\\\\n    \\\"],[8,[39,3],[[16,1,[30,3]],[24,0,\\\"nested-task-card__add-task-input\\\"],[16,\\\"placeholder\\\",[30,4]],[16,\\\"disabled\\\",[30,5]],[16,\\\"autofocus\\\",[30,6]],[4,[38,4],[\\\"keypress\\\",[30,0,[\\\"onTaskNameInputKeypress\\\"]]],null],[4,[38,4],[\\\"drop\\\",[30,0,[\\\"noop\\\"]]],null]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"changeset\\\",\\\"name\\\"]]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"changeset\\\",\\\"name\\\",\\\"length\\\"]],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"ms-2 text-light btn btn-secondary me-3\\\"],[16,\\\"disabled\\\",[30,5]],[24,4,\\\"button\\\"],[4,[38,4],[\\\"click\\\",[30,0,[\\\"saveNewTask\\\"]]],null],[12],[1,[28,[35,7],[\\\"common.Add\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[13]],[\\\"&attrs\\\",\\\"@readOnly\\\",\\\"@inputId\\\",\\\"@placeholder\\\",\\\"@disabled\\\",\\\"@autofocus\\\"],false,[\\\"div\\\",\\\"unless\\\",\\\"fa-icon\\\",\\\"input\\\",\\\"on\\\",\\\"if\\\",\\\"button\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/components/nested-task-card/add-task.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _defineProperty(this, \"validateName\", (newValue, oldValue) => {\n        const name = newValue || oldValue;\n        return name && name.length > 0 || this.intl.t('validation.Please provide a name');\n      });\n      _defineProperty(this, \"taskValidator\", ({\n        key,\n        newValue,\n        oldValue\n      }) => {\n        switch (key) {\n          case 'name':\n            return this.validateName(newValue, oldValue);\n          default:\n            break;\n        }\n      });\n      _defineProperty(this, \"validationMap\", {\n        name: this.validateName\n      });\n      _defineProperty(this, \"changeset\", (0, _emberChangeset.Changeset)({\n        name: undefined\n      }, this.taskValidator, this.validationMap));\n      _defineProperty(this, \"validateAndProcess\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.changeset.validate();\n          if (!this.changeset.isValid) {\n            this.notifications.warning(this.changeset.error.name.validation);\n            return;\n          }\n          this.args.saveNewTask(this.changeset.name);\n          this.changeset.name = '';\n        }\n      }), null, \"validateAndProcess\", null));\n    }\n    onTaskNameInputKeypress(e) {\n      if (e.key === 'Enter') {\n        this.saveNewTask();\n        e.target.blur();\n      }\n    }\n    saveNewTask() {\n      this.validateAndProcess.perform();\n    }\n    noop(e) {\n      e.preventDefault();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"onTaskNameInputKeypress\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onTaskNameInputKeypress\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"saveNewTask\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"saveNewTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"noop\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"noop\"), _class.prototype), _class));\n});","define(\"portal/components/new-combo-box\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"@ember/object\", \"@glimmer/tracking\", \"ember-concurrency\", \"@ember/runloop\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _object, _tracking, _emberConcurrency, _runloop, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"ember-concurrency\",0,\"ember-concurrency\",0,\"@ember/runloop\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    class='position-relative'\n    id={{this.elementId}}\n    {{will-destroy this.destroySearch}}\n    ...attributes\n  >\n    <PtlInput\n      class='new-combo-box__input'\n      @type='text'\n      @label={{@label}}\n      @key={{@key}}\n      @model={{@model}}\n      @required={{@required}}\n      @description={{@description}}\n      disabled={{@disabled}}\n      @forceValidationVisible={{@forceValidationVisible}}\n      placeholder={{@placeholder}}\n      {{on 'click' (perform this.onChangeSearch)}}\n      {{on 'input' (perform this.onChangeSearch)}}\n      {{on 'keyup' this.keyup}}\n    />\n  \n    {{#if this.showDropDown}}\n      <div class='new-combo-box__drop-down w-100'>\n        <div hidden {{did-insert this.initComboBox}} />\n        {{#if this.showDataList}}\n          {{#each @list key=@key as |item index|}}\n            <div\n              class='new-combo-box__drop-down-row\n                {{if\n                  (eq index this.selectedRow)\n                  \"new-combo-box__drop-down-row--selected\"\n                }}\n                {{concat \"new-combo-box__drop-down-row--\" index}}'\n              {{on 'click' (fn this.onSelect item)}}\n            >\n              {{#each this.optionKeys as |key|}}\n                {{get item key}}\n              {{/each}}\n              {{#if (and @customDescription (get item @customDescription))}}\n                &mdash;\n                {{get item @customDescription}}\n              {{/if}}\n            </div>\n          {{/each}}\n          {{#unless this.allItemsAreDisplayed}}\n            <div class='lazy-each__placeholder'>\n              {{t 'common.Loading more'}}\n              <LoadingIcon @type='spinner' />\n            </div>\n          {{/unless}}\n        {{else if this.isLoading}}\n          <div class='py-2 text-center'>\n            <LoadingIcon @type='spinner' />\n          </div>\n        {{else}}\n          <div class='p-3'>\n            {{#if @noDataMessage}}\n              {{@noDataMessage}}\n            {{else}}\n              {{t 'common.No data'}}\n            {{/if}}\n          </div>\n        {{/if}}\n      </div>\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"9p1PvsUG\",\n    \"block\": \"[[[11,0],[24,0,\\\"position-relative\\\"],[16,1,[30,0,[\\\"elementId\\\"]]],[17,1],[4,[38,1],[[30,0,[\\\"destroySearch\\\"]]],null],[12],[1,\\\"\\\\n  \\\"],[8,[39,2],[[24,0,\\\"new-combo-box__input\\\"],[16,\\\"disabled\\\",[30,2]],[16,\\\"placeholder\\\",[30,3]],[4,[38,3],[\\\"click\\\",[28,[37,4],[[30,0,[\\\"onChangeSearch\\\"]]],null]],null],[4,[38,3],[\\\"input\\\",[28,[37,4],[[30,0,[\\\"onChangeSearch\\\"]]],null]],null],[4,[38,3],[\\\"keyup\\\",[30,0,[\\\"keyup\\\"]]],null]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@description\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[30,4],[30,5],[30,6],[30,7],[30,8],[30,9]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"showDropDown\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"new-combo-box__drop-down w-100\\\"],[12],[1,\\\"\\\\n      \\\"],[11,0],[24,\\\"hidden\\\",\\\"\\\"],[4,[38,6],[[30,0,[\\\"initComboBox\\\"]]],null],[12],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showDataList\\\"]],[[[42,[28,[37,8],[[28,[37,8],[[30,10]],null]],null],[30,5],[[[1,\\\"          \\\"],[11,0],[16,0,[29,[\\\"new-combo-box__drop-down-row\\\\n              \\\",[52,[28,[37,9],[[30,12],[30,0,[\\\"selectedRow\\\"]]],null],\\\"new-combo-box__drop-down-row--selected\\\"],\\\"\\\\n              \\\",[28,[37,10],[\\\"new-combo-box__drop-down-row--\\\",[30,12]],null]]]],[4,[38,3],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"onSelect\\\"]],[30,11]],null]],null],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,0,[\\\"optionKeys\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[1,[28,[35,12],[[30,11],[30,13]],null]],[1,\\\"\\\\n\\\"]],[13]],null],[41,[28,[37,13],[[30,14],[28,[37,12],[[30,11],[30,14]],null]],null],[[[1,\\\"              —\\\\n              \\\"],[1,[28,[35,12],[[30,11],[30,14]],null]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[11,12]],null],[41,[51,[30,0,[\\\"allItemsAreDisplayed\\\"]]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"lazy-each__placeholder\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,15],[\\\"common.Loading more\\\"],null]],[1,\\\"\\\\n            \\\"],[8,[39,16],null,[[\\\"@type\\\"],[\\\"spinner\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"py-2 text-center\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,16],null,[[\\\"@type\\\"],[\\\"spinner\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"p-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,15],[[[1,\\\"            \\\"],[1,[30,15]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,15],[\\\"common.No data\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[13]],[\\\"&attrs\\\",\\\"@disabled\\\",\\\"@placeholder\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@description\\\",\\\"@forceValidationVisible\\\",\\\"@list\\\",\\\"item\\\",\\\"index\\\",\\\"key\\\",\\\"@customDescription\\\",\\\"@noDataMessage\\\"],false,[\\\"div\\\",\\\"will-destroy\\\",\\\"ptl-input\\\",\\\"on\\\",\\\"perform\\\",\\\"if\\\",\\\"did-insert\\\",\\\"each\\\",\\\"-track-array\\\",\\\"eq\\\",\\\"concat\\\",\\\"fn\\\",\\\"get\\\",\\\"and\\\",\\\"unless\\\",\\\"t\\\",\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/components/new-combo-box.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    initComboBox() {\n      const parentElement = document.getElementById(this.elementId);\n      this.scrollableParent = parentElement.querySelector('.new-combo-box__drop-down');\n      this.findLastElement();\n      this.scrollHandler = this.checkVisible.bind(this);\n      this.scrollableParent.addEventListener('scroll', this.scrollHandler);\n      this.inputElement = parentElement.querySelector('.new-combo-box__input');\n    }\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"showDropDown\", _descriptor, this);\n      _defineProperty(this, \"scrollHandler\", null);\n      _defineProperty(this, \"elementIdentifier\", null);\n      _initializerDefineProperty(this, \"scrollableParent\", _descriptor2, this);\n      _initializerDefineProperty(this, \"inputElement\", _descriptor3, this);\n      _initializerDefineProperty(this, \"selectedRow\", _descriptor4, this);\n      _initializerDefineProperty(this, \"searchTerm\", _descriptor5, this);\n      _initializerDefineProperty(this, \"lastLoadedSearchTerm\", _descriptor6, this);\n      _defineProperty(this, \"debounce\", this.args.debounce);\n      _defineProperty(this, \"renderMore\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.args.onLoadMore.perform();\n        }\n      }), null, \"renderMore\", null));\n      _defineProperty(this, \"onChangeSearch\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          const thisSearchTerm = e.target.value.trim();\n          if (!this.showDropDown) this.showDropDown = true;\n          if (this.searchTerm === thisSearchTerm && this.lastLoadedSearchTerm === thisSearchTerm) return;\n          this.searchTerm = thisSearchTerm;\n          if (this.debounce) yield (0, _emberConcurrency.timeout)(this.debounce);\n          yield this.args.onSearch.perform(this.searchTerm);\n          this.lastLoadedSearchTerm = thisSearchTerm;\n        }\n      }), {\n        restartable: true\n      }, \"onChangeSearch\", null));\n      this.elementId = 'new-combo-box__' + Math.floor(Math.random() * 1e5);\n      window.addEventListener('click', this.handleBlur.bind(this));\n    }\n    get allItemsAreDisplayed() {\n      return !this.args.hasNextPage;\n    }\n    findLastElement() {\n      if (this.allItemsAreDisplayed) return;\n      const element = Array.from(this.scrollableParent.querySelectorAll(`.new-combo-box__drop-down-row`)).pop();\n      return element;\n    }\n    async checkVisible() {\n      if (this.isLoading) return;\n      if (this.allItemsAreDisplayed) return;\n      const element = this.findLastElement();\n      if (!element) return;\n      const scrollableParent = this.scrollableParent;\n      const screenHeight = scrollableParent.clientHeight;\n      const topOfElement = element.offsetTop;\n      const bottomOfElement = topOfElement + element.offsetHeight;\n      const topOfScreen = scrollableParent.scrollTop;\n      const bottomOfScreen = topOfScreen + screenHeight;\n      const padding = 10;\n      if (bottomOfScreen + padding > bottomOfElement) {\n        await this.renderMore.perform();\n        // Check again if we have rendered enough elements for our scroll position\n        (0, _runloop.next)(() => this.checkVisible());\n      }\n    }\n    setDropdownVisible(visible) {\n      if (this.showDropDown !== visible) this.showDropDown = visible;\n    }\n    keepSelectedRowVisible(selectedRowIndex) {\n      const $row = this.scrollableParent.querySelector('.new-combo-box__drop-down-row--' + selectedRowIndex);\n      const $container = this.scrollableParent;\n      if ($row && $container) {\n        const rowTop = $row.offsetTop;\n        const rowHeight = $row.offsetHeight;\n        const containerHeight = $container.clientHeight;\n        const containerScrollTop = $container.scrollTop;\n        if (rowTop + rowHeight > containerScrollTop + containerHeight) {\n          $container.scrollTop = rowTop + rowHeight - containerHeight;\n        } else if (rowTop < containerScrollTop) {\n          $container.scrollTop = rowTop;\n        }\n      }\n    }\n    keyup(event) {\n      if (this.isLoading) return;\n      const selectedRow = this.selectedRow;\n      switch (event.keyCode) {\n        // down arrow\n        case 38:\n          this.setDropdownVisible(true);\n          if (selectedRow > 0) {\n            const newSelectedRow = selectedRow - 1;\n            this.selectedRow = newSelectedRow;\n            this.keepSelectedRowVisible(newSelectedRow);\n          }\n          break;\n        // up arrow\n        case 40:\n          this.setDropdownVisible(true);\n          if (selectedRow + 1 < this.args.list.length) {\n            const newSelectedRow = selectedRow + 1;\n            this.selectedRow = newSelectedRow;\n            this.keepSelectedRowVisible(newSelectedRow);\n          }\n          break;\n        // enter\n        case 13:\n          if (this.showDropDown) this.onSelect(this.args.list[selectedRow]);\n          event.preventDefault();\n          break;\n        // tab\n        case 9:\n          this.selectedRow = -1;\n          this.setDropdownVisible(false);\n          break;\n        // escape\n        case 27:\n          this.setDropdownVisible(false);\n          break;\n        // any other key\n        default:\n          this.selectedRow = -1;\n          this.setDropdownVisible(true);\n          break;\n      }\n    }\n    onSelect(item) {\n      this.args.onSelect(item);\n      this.showDropDown = false;\n    }\n    handleBlur(event) {\n      if (!document.getElementById(this.elementId)) return;\n      if (this.showDropDown && this.inputElement != event.target && !this.scrollableParent.contains(event.target) && this.scrollableParent != event.target) {\n        this.showDropDown = false;\n      }\n    }\n    destroySearch() {\n      if (document.getElementById(this.elementId)) {\n        window.removeEventListener('click', this.handleBlur);\n        window.removeEventListener('scroll', this.scrollHandler);\n      }\n    }\n    get isLoading() {\n      return this.onChangeSearch.isRunning || this.args.isLoading;\n    }\n    get showDataList() {\n      return !this.onChangeSearch.isRunning && this.args.list.length;\n    }\n    get optionKeys() {\n      return this.args.optionKeys || [this.args.key];\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"showDropDown\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"scrollableParent\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"inputElement\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"selectedRow\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return -1;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"searchTerm\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"lastLoadedSearchTerm\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"initComboBox\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"initComboBox\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"keyup\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"keyup\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSelect\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onSelect\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"destroySearch\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"destroySearch\"), _class.prototype), _class));\n});","define(\"portal/components/new-supplier-prompt\", [\"exports\", \"@ember/component\", \"@ember/template-factory\"], function (_exports, _component, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.visible}}\n    <ModalDialog\n      @translucentOverlay={{true}}\n      @overlayClass='modal'\n      @containerClass='block-module'\n      @onClose={{action this.close}}\n    >\n      <header class='block-module__header'>\n        <h2 class='h2'>\n          {{#if this.newSupplierIsBeingUpdated}}\n            {{t 'components.new-supplier-prompt.Editing information for'}}\n            <i>{{this.newSupplier.name}}</i>…\n          {{else}}\n            {{t 'components.new-supplier-prompt.We found a new supplier'}},\n            <i>{{this.newSupplier.name}}</i>…\n          {{/if}}\n        </h2>\n      </header>\n  \n      {{#if this.newSupplierIsBeingUpdated}}\n        <div class='tabular-form-controls'>\n          <div class='tabular-form-controls__row'>\n            <label\n              for='contact'\n              class='tabular-form-controls__cell tabular-form-controls__cell--label'\n            >\n              {{t 'shared.contacts.Contact person'}}\n            </label>\n            <Input\n              class='tabular-form-controls__cell text-input'\n              id='contact'\n              @type='text'\n              @value={{this.newSupplier.contactPerson}}\n            />\n          </div>\n          <div class='tabular-form-controls__row'>\n            <label\n              for='number'\n              class='tabular-form-controls__cell tabular-form-controls__cell--label'\n            >\n              {{t 'shared.contacts.Contact number'}}\n            </label>\n            <Input\n              class='tabular-form-controls__cell text-input'\n              id='number'\n              @type='text'\n              @value={{this.newSupplier.contactNumber}}\n            />\n          </div>\n          <div class='tabular-form-controls__row'>\n            <label\n              for='email'\n              class='tabular-form-controls__cell tabular-form-controls__cell--label'\n            >\n              {{t 'shared.contacts.Contact email'}}\n            </label>\n            <Input\n              class='tabular-form-controls__cell text-input'\n              id='email'\n              @type='email'\n              @value={{this.newSupplier.contactEmail}}\n            />\n          </div>\n          <div class='tabular-form-controls__row'>\n            <label\n              for='address'\n              class='tabular-form-controls__cell tabular-form-controls__cell--label'\n            >\n              {{t 'common.Address'}}\n            </label>\n            <Input\n              class='tabular-form-controls__cell text-input'\n              id='address'\n              @type='text'\n              @value={{this.newSupplier.address}}\n            />\n          </div>\n        </div>\n        <br /><br />\n        <LoadingButton\n          @class='button button--spaced float-end'\n          @action={{action this.updateSupplier this.newSupplier}}\n          @isLoading={{this.isSaving}}\n          @buttonText={{t 'common.Done'}}\n        />\n      {{else}}\n        <p>\n          {{t\n            'components.new-supplier-prompt.wouldYouLikeToAddInformationForThisSupplierNow'\n          }}\n          <br /><br />\n        </p>\n  \n        <button\n          class='button button--spaced float-end'\n          type='button'\n          {{action this.set 'newSupplierIsBeingUpdated' true bubbles=false}}\n        >\n          {{t 'common.Yes'}}\n        </button>\n      {{/if}}\n      <button\n        class='button button--plain button--spaced float-end'\n        type='button'\n        {{action\n          (pipe\n            (action this.close)\n            (action this.set 'newSupplierIsBeingUpdated' false)\n          )\n        }}\n        data-test-new-supplier-cancel-button\n      >\n        {{t 'common.Cancel'}}\n      </button>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"vDbL2meY\",\n    \"block\": \"[[[41,[30,0,[\\\"visible\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@translucentOverlay\\\",\\\"@overlayClass\\\",\\\"@containerClass\\\",\\\"@onClose\\\"],[true,\\\"modal\\\",\\\"block-module\\\",[28,[37,2],[[30,0],[30,0,[\\\"close\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"block-module__header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newSupplierIsBeingUpdated\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"components.new-supplier-prompt.Editing information for\\\"],null]],[1,\\\"\\\\n          \\\"],[10,\\\"i\\\"],[12],[1,[30,0,[\\\"newSupplier\\\",\\\"name\\\"]]],[13],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"components.new-supplier-prompt.We found a new supplier\\\"],null]],[1,\\\",\\\\n          \\\"],[10,\\\"i\\\"],[12],[1,[30,0,[\\\"newSupplier\\\",\\\"name\\\"]]],[13],[1,\\\"…\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"newSupplierIsBeingUpdated\\\"]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"tabular-form-controls\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"tabular-form-controls__row\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"contact\\\"],[14,0,\\\"tabular-form-controls__cell tabular-form-controls__cell--label\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,5],[\\\"shared.contacts.Contact person\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[39,9],[[24,0,\\\"tabular-form-controls__cell text-input\\\"],[24,1,\\\"contact\\\"]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"newSupplier\\\",\\\"contactPerson\\\"]]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"tabular-form-controls__row\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"number\\\"],[14,0,\\\"tabular-form-controls__cell tabular-form-controls__cell--label\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,5],[\\\"shared.contacts.Contact number\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[39,9],[[24,0,\\\"tabular-form-controls__cell text-input\\\"],[24,1,\\\"number\\\"]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"newSupplier\\\",\\\"contactNumber\\\"]]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"tabular-form-controls__row\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"email\\\"],[14,0,\\\"tabular-form-controls__cell tabular-form-controls__cell--label\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,5],[\\\"shared.contacts.Contact email\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[39,9],[[24,0,\\\"tabular-form-controls__cell text-input\\\"],[24,1,\\\"email\\\"]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"email\\\",[30,0,[\\\"newSupplier\\\",\\\"contactEmail\\\"]]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"tabular-form-controls__row\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"address\\\"],[14,0,\\\"tabular-form-controls__cell tabular-form-controls__cell--label\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,5],[\\\"common.Address\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[39,9],[[24,0,\\\"tabular-form-controls__cell text-input\\\"],[24,1,\\\"address\\\"]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"newSupplier\\\",\\\"address\\\"]]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"br\\\"],[12],[13],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n      \\\"],[8,[39,11],null,[[\\\"@class\\\",\\\"@action\\\",\\\"@isLoading\\\",\\\"@buttonText\\\"],[\\\"button button--spaced float-end\\\",[28,[37,2],[[30,0],[30,0,[\\\"updateSupplier\\\"]],[30,0,[\\\"newSupplier\\\"]]],null],[30,0,[\\\"isSaving\\\"]],[28,[37,5],[\\\"common.Done\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,2],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"components.new-supplier-prompt.wouldYouLikeToAddInformationForThisSupplierNow\\\"],null]],[1,\\\"\\\\n        \\\"],[10,\\\"br\\\"],[12],[13],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--spaced float-end\\\"],[24,4,\\\"button\\\"],[4,[38,2],[[30,0],[30,0,[\\\"set\\\"]],\\\"newSupplierIsBeingUpdated\\\",true],[[\\\"bubbles\\\"],[false]]],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"common.Yes\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--plain button--spaced float-end\\\"],[24,\\\"data-test-new-supplier-cancel-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,2],[[30,0],[28,[37,14],[[28,[37,2],[[30,0],[30,0,[\\\"close\\\"]]],null],[28,[37,2],[[30,0],[30,0,[\\\"set\\\"]],\\\"newSupplierIsBeingUpdated\\\",false],null]],null]],null],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,5],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[],false,[\\\"if\\\",\\\"modal-dialog\\\",\\\"action\\\",\\\"header\\\",\\\"h2\\\",\\\"t\\\",\\\"i\\\",\\\"div\\\",\\\"label\\\",\\\"input\\\",\\\"br\\\",\\\"loading-button\\\",\\\"p\\\",\\\"button\\\",\\\"pipe\\\"]]\",\n    \"moduleName\": \"portal/components/new-supplier-prompt.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    newSupplierIsBeingUpdated: false\n  }));\n});","define(\"portal/components/notification-container\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='notification-container'>\n    {{#each @notifications.list as |notification|}}\n      <NotificationMessage @notification={{notification}} />\n    {{/each}}\n  </div>\n  */\n  {\n    \"id\": \"GK0nMd3z\",\n    \"block\": \"[[[10,0],[14,0,\\\"notification-container\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,2],[[28,[37,2],[[30,1,[\\\"list\\\"]]],null]],null],null,[[[1,\\\"    \\\"],[8,[39,3],null,[[\\\"@notification\\\"],[[30,2]]],null],[1,\\\"\\\\n\\\"]],[2]],null],[13]],[\\\"@notifications\\\",\\\"notification\\\"],false,[\\\"div\\\",\\\"each\\\",\\\"-track-array\\\",\\\"notification-message\\\"]]\",\n    \"moduleName\": \"portal/components/notification-container.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"portal/components/notification-message\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/template\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _template, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/template\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    class='notification-message notification-message--animated\n      {{this.typeClassVariant}}\n      {{unless @notification.dismiss \"notification-message--incoming\"}}'\n  >\n    <div class='notification-message__icon'>\n      <FaIcon @icon={{this.icon}} />\n    </div>\n  \n    <div class='notification-message__content'>\n      {{html-safe @notification.message}}\n    </div>\n  \n    <a class='notification-message__close-button' {{on 'click' this.clear}}>\n      <FaIcon @icon='times-circle' />\n    </a>\n  \n    {{#if @notification.autoClear}}\n      <div\n        class='notification-message__countdown'\n        style={{this.notificationClearDuration}}\n      ></div>\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"4vlGaADc\",\n    \"block\": \"[[[10,0],[15,0,[29,[\\\"notification-message notification-message--animated\\\\n    \\\",[30,0,[\\\"typeClassVariant\\\"]],\\\"\\\\n    \\\",[52,[51,[30,1,[\\\"dismiss\\\"]]],\\\"notification-message--incoming\\\"]]]],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"notification-message__icon\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,2],null,[[\\\"@icon\\\"],[[30,0,[\\\"icon\\\"]]]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"notification-message__content\\\"],[12],[1,\\\"\\\\n    \\\"],[1,[28,[35,3],[[30,1,[\\\"message\\\"]]],null]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[11,3],[24,0,\\\"notification-message__close-button\\\"],[4,[38,5],[\\\"click\\\",[30,0,[\\\"clear\\\"]]],null],[12],[1,\\\"\\\\n    \\\"],[8,[39,2],null,[[\\\"@icon\\\"],[\\\"times-circle\\\"]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,1,[\\\"autoClear\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"notification-message__countdown\\\"],[15,5,[30,0,[\\\"notificationClearDuration\\\"]]],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[13]],[\\\"@notification\\\"],false,[\\\"div\\\",\\\"unless\\\",\\\"fa-icon\\\",\\\"html-safe\\\",\\\"a\\\",\\\"on\\\",\\\"if\\\"]]\",\n    \"moduleName\": \"portal/components/notification-message.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n    }\n    get typeClassVariant() {\n      const type = this.args.notification?.type || 'info';\n      return `notification-message--${type}`;\n    }\n    get icon() {\n      switch (this.args.notification?.type) {\n        case 'warning':\n          return 'warning';\n        case 'success':\n          return 'check';\n        case 'error':\n          return 'exclamation-circle';\n        default:\n          return 'info-circle';\n      }\n    }\n    get notificationClearDuration() {\n      const duration = Number(this.args.notification?.clearDuration || 0);\n      return (0, _template.htmlSafe)(`animation-duration: ${duration}ms; -webkit-animation-duration: ${duration}ms;`);\n    }\n    clear() {\n      this.notifications.clear(this.args.notification);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"clear\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"clear\"), _class.prototype), _class));\n});","define(\"portal/components/overlaid-dropdown\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/runloop\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _tracking, _runloop, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    class='overlaid-dropdown'\n    {{on 'blur' this.handleBlur}}\n    {{did-insert this.registerElement}}\n    tabindex='-1'\n    ...attributes\n  >\n    <LoadingButton\n      @class={{concat 'overlaid-dropdown__button ' @buttonClasses}}\n      @action={{this.onButtonClick}}\n      disabled={{@disabled}}\n    >\n      {{#if @buttonText}}\n        {{{@buttonText}}}\n      {{/if}}\n      {{#if @buttonIcon}}\n        {{fa-icon icon=@buttonIcon}}\n      {{/if}}\n    </LoadingButton>\n  \n    <div\n      class='overlaid-dropdown__body\n        {{if (eq @align \"right\") \"overlaid-dropdown__body--right\"}}\n        {{if (not this.showDropdown) \"overlaid-dropdown__body--hidden\"}}'\n    >\n      {{#if @title}}\n        <div class='overlaid-dropdown__title'>{{@title}}</div>\n      {{/if}}\n  \n      {{yield this.closeDropdown}}\n    </div>\n  </div>\n  */\n  {\n    \"id\": \"ijWIgEak\",\n    \"block\": \"[[[11,0],[24,0,\\\"overlaid-dropdown\\\"],[24,\\\"tabindex\\\",\\\"-1\\\"],[17,1],[4,[38,1],[\\\"blur\\\",[30,0,[\\\"handleBlur\\\"]]],null],[4,[38,2],[[30,0,[\\\"registerElement\\\"]]],null],[12],[1,\\\"\\\\n  \\\"],[8,[39,3],[[16,\\\"disabled\\\",[30,2]]],[[\\\"@class\\\",\\\"@action\\\"],[[28,[37,4],[\\\"overlaid-dropdown__button \\\",[30,3]],null],[30,0,[\\\"onButtonClick\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,4],[[[1,\\\"      \\\"],[2,[30,4]],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,5],[[[1,\\\"      \\\"],[1,[28,[35,6],null,[[\\\"icon\\\"],[[30,5]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[15,0,[29,[\\\"overlaid-dropdown__body\\\\n      \\\",[52,[28,[37,7],[[30,6],\\\"right\\\"],null],\\\"overlaid-dropdown__body--right\\\"],\\\"\\\\n      \\\",[52,[28,[37,8],[[30,0,[\\\"showDropdown\\\"]]],null],\\\"overlaid-dropdown__body--hidden\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[30,7],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"overlaid-dropdown__title\\\"],[12],[1,[30,7]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n    \\\"],[18,8,[[30,0,[\\\"closeDropdown\\\"]]]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"&attrs\\\",\\\"@disabled\\\",\\\"@buttonClasses\\\",\\\"@buttonText\\\",\\\"@buttonIcon\\\",\\\"@align\\\",\\\"@title\\\",\\\"&default\\\"],false,[\\\"div\\\",\\\"on\\\",\\\"did-insert\\\",\\\"loading-button\\\",\\\"concat\\\",\\\"if\\\",\\\"fa-icon\\\",\\\"eq\\\",\\\"not\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"portal/components/overlaid-dropdown.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"showDropdown\", _descriptor, this);\n      _initializerDefineProperty(this, \"element\", _descriptor2, this);\n    }\n    registerElement(element) {\n      this.element = element;\n    }\n    onButtonClick() {\n      this.element.focus();\n      this.showDropdown = !this.showDropdown;\n    }\n    closeDropdown() {\n      this.showDropdown = false;\n    }\n    handleBlur(event) {\n      const focusLeavingComponent = !event.relatedTarget || !this.element.contains(event.relatedTarget);\n      if (focusLeavingComponent) {\n        this.showDropdown = false;\n        return;\n      }\n      (0, _runloop.next)(() => {\n        if (this.isDestroyed || !this.element) return;\n        this.element.focus();\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"showDropdown\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"element\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"registerElement\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"registerElement\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onButtonClick\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onButtonClick\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeDropdown\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"closeDropdown\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleBlur\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleBlur\"), _class.prototype), _class));\n});","define(\"portal/components/page-filters\", [\"exports\", \"@ember/component\", \"@glimmer/tracking\", \"@ember/template-factory\"], function (_exports, _component, _tracking, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@glimmer/tracking\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='page-filters__drop-down-container'>\n    <button\n      class='btn btn-secondary m-1'\n      data-test-filter-button=''\n      type='button'\n      {{action this.toggleProperty 'filterModalVisible'}}\n      disabled={{@disable}}\n    >\n      {{or this.buttonText (t 'common.Filters')}}&nbsp;&nbsp;<FaIcon\n        @icon='caret-down'\n      />\n    </button>\n    {{#if this.filterModalVisible}}\n      <div\n        class='page-filters__drop-down-filters\n          {{if\n            (eq this.align \"right\")\n            \"page-filters__drop-down-filters--right\"\n            \"page-filters__drop-down-filters--left\"\n          }}'\n      >\n        <div class='text-right'>\n          <button\n            class='text-button'\n            type='button'\n            {{action this.toggleProperty 'filterModalVisible'}}\n          ><FaIcon @icon='times' /></button>\n        </div>\n        {{yield}}\n      </div>\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"dcl0x/SK\",\n    \"block\": \"[[[10,0],[14,0,\\\"page-filters__drop-down-container\\\"],[12],[1,\\\"\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary m-1\\\"],[24,\\\"data-test-filter-button\\\",\\\"\\\"],[16,\\\"disabled\\\",[30,1]],[24,4,\\\"button\\\"],[4,[38,2],[[30,0],[30,0,[\\\"toggleProperty\\\"]],\\\"filterModalVisible\\\"],null],[12],[1,\\\"\\\\n    \\\"],[1,[28,[35,3],[[30,0,[\\\"buttonText\\\"]],[28,[37,4],[\\\"common.Filters\\\"],null]],null]],[1,\\\"  \\\"],[8,[39,5],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"filterModalVisible\\\"]],[[[1,\\\"    \\\"],[10,0],[15,0,[29,[\\\"page-filters__drop-down-filters\\\\n        \\\",[52,[28,[37,7],[[30,0,[\\\"align\\\"]],\\\"right\\\"],null],\\\"page-filters__drop-down-filters--right\\\",\\\"page-filters__drop-down-filters--left\\\"]]]],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,4,\\\"button\\\"],[4,[38,2],[[30,0],[30,0,[\\\"toggleProperty\\\"]],\\\"filterModalVisible\\\"],null],[12],[8,[39,5],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[18,2,null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[13]],[\\\"@disable\\\",\\\"&default\\\"],false,[\\\"div\\\",\\\"button\\\",\\\"action\\\",\\\"or\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"if\\\",\\\"eq\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"portal/components/page-filters.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"filterModalVisible\", _descriptor, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"filterModalVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _class));\n});","define(\"portal/components/page-filters/item\", [\"exports\", \"@ember/component\", \"@ember/template-factory\"], function (_exports, _component, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.label}}\n    <label class='no-wrap'>{{this.label}}</label>\n  {{/if}}\n  <div class='page-filters__drop-down-filter'>{{yield}}</div>\n  */\n  {\n    \"id\": \"oSwMZypU\",\n    \"block\": \"[[[41,[30,0,[\\\"label\\\"]],[[[1,\\\"  \\\"],[10,\\\"label\\\"],[14,0,\\\"no-wrap\\\"],[12],[1,[30,0,[\\\"label\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[10,0],[14,0,\\\"page-filters__drop-down-filter\\\"],[12],[18,1,null],[13]],[\\\"&default\\\"],false,[\\\"if\\\",\\\"label\\\",\\\"div\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"portal/components/page-filters/item.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"tagName\", '');\n    }\n  });\n});","define(\"portal/components/page-filters/pill\", [\"exports\", \"@ember/component\", \"@ember/template-factory\"], function (_exports, _component, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{yield}}\n  {{#if this.onClose}}\n    &nbsp;\n    <span role='button' {{on 'click' this.onClose}}>\n      <FaIcon @icon='times' />\n    </span>\n  {{/if}}\n  */\n  {\n    \"id\": \"4Q3y3mbH\",\n    \"block\": \"[[[18,1,null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"onClose\\\"]],[[[1,\\\"   \\\\n  \\\"],[11,1],[24,\\\"role\\\",\\\"button\\\"],[4,[38,3],[\\\"click\\\",[30,0,[\\\"onClose\\\"]]],null],[12],[1,\\\"\\\\n    \\\"],[8,[39,4],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"&default\\\"],false,[\\\"yield\\\",\\\"if\\\",\\\"span\\\",\\\"on\\\",\\\"fa-icon\\\"]]\",\n    \"moduleName\": \"portal/components/page-filters/pill.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"tagName\", 'span');\n      _defineProperty(this, \"classNames\", ['px-2 py-1 fw-bold rounded bg-info text-white m-1 fs-7 text-nowrap']);\n    }\n  });\n});","define(\"portal/components/page-header\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='border-bottom d-flex align-items-center p-3'>\n    <h1 class='m-0'>{{@title}}</h1>\n  \n    {{yield}}\n  </div>\n  */\n  {\n    \"id\": \"lrYC1R4v\",\n    \"block\": \"[[[10,0],[14,0,\\\"border-bottom d-flex align-items-center p-3\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"h1\\\"],[14,0,\\\"m-0\\\"],[12],[1,[30,1]],[13],[1,\\\"\\\\n\\\\n  \\\"],[18,2,null],[1,\\\"\\\\n\\\"],[13]],[\\\"@title\\\",\\\"&default\\\"],false,[\\\"div\\\",\\\"h1\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"portal/components/page-header.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"portal/components/page-title-breadcrumbs\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#each this.crumbStack as |crumb|}}\n    {{#if (eq crumb this.lastCrumb)}}\n      <span\n        class='fw-bold fs-5'\n        data-test-page-title-breadcrumbs-crumb\n        data-test-page-title-breadcrumbs-crumb-last\n      >\n        {{ellipsis-words (or crumb.pageTitle crumb.name) 5}}\n      </span>\n    {{else}}\n      {{#if crumb.model}}\n        <LinkTo\n          @route={{crumb.route}}\n          @model={{crumb.model}}\n          class='fs-5'\n          data-test-page-title-breadcrumbs-crumb\n          data-test-page-title-breadcrumbs-crumb-link-with-model\n        >\n          {{ellipsis-words crumb.pageTitle 3}}\n        </LinkTo>\n      {{else if crumb.route}}\n        <LinkTo\n          @route={{crumb.route}}\n          class='fs-5'\n          data-test-page-title-breadcrumbs-crumb\n          data-test-page-title-breadcrumbs-crumb-link-no-model\n        >\n          {{ellipsis-words crumb.pageTitle 3}}\n        </LinkTo>\n        {{! TODO onclick and action are basically the same API }}\n      {{else if @action}}\n        <span\n          class='fs-5 btn-link'\n          role='button'\n          data-test-page-title-breadcrumbs-crumb\n          data-test-page-title-breadcrumbs-crumb-text\n          {{on 'click' (perform @action crumb)}}\n        >\n          {{ellipsis-words (or crumb.pageTitle crumb.name) 3}}\n        </span>\n      {{else if crumb.onClick}}\n        <span\n          role='button'\n          class='fs-5 btn btn-link'\n          data-test-page-title-breadcrumbs-crumb\n          data-test-page-title-breadcrumbs-crumb-text\n          {{on 'click' crumb.onClick}}\n        >\n          {{ellipsis-words crumb.pageTitle 3}}\n        </span>\n      {{else}}\n        <span\n          class='fs-5'\n          role='button'\n          data-test-page-title-breadcrumbs-crumb\n          data-test-page-title-breadcrumbs-crumb-text\n        >\n          {{ellipsis-words (or crumb.pageTitle crumb.name) 3}}\n        </span>\n      {{/if}}\n      {{#let (or @icon 'chevron-right') as |icon|}}\n        <FaIcon\n          @icon={{icon}}\n          class='mx-2 fs-6 text-secondary'\n          data-test-page-title-breadcrumbs-crumb-icon={{icon}}\n        />\n      {{/let}}\n    {{/if}}\n  {{/each}}\n  */\n  {\n    \"id\": \"J9Nd5ut/\",\n    \"block\": \"[[[42,[28,[37,1],[[28,[37,1],[[30,0,[\\\"crumbStack\\\"]]],null]],null],null,[[[41,[28,[37,3],[[30,1],[30,0,[\\\"lastCrumb\\\"]]],null],[[[1,\\\"    \\\"],[10,1],[14,0,\\\"fw-bold fs-5\\\"],[14,\\\"data-test-page-title-breadcrumbs-crumb\\\",\\\"\\\"],[14,\\\"data-test-page-title-breadcrumbs-crumb-last\\\",\\\"\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,5],[[28,[37,6],[[30,1,[\\\"pageTitle\\\"]],[30,1,[\\\"name\\\"]]],null],5],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,1,[\\\"model\\\"]],[[[1,\\\"      \\\"],[8,[39,7],[[24,0,\\\"fs-5\\\"],[24,\\\"data-test-page-title-breadcrumbs-crumb\\\",\\\"\\\"],[24,\\\"data-test-page-title-breadcrumbs-crumb-link-with-model\\\",\\\"\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[[30,1,[\\\"route\\\"]],[30,1,[\\\"model\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[[30,1,[\\\"pageTitle\\\"]],3],null]],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,1,[\\\"route\\\"]],[[[1,\\\"      \\\"],[8,[39,7],[[24,0,\\\"fs-5\\\"],[24,\\\"data-test-page-title-breadcrumbs-crumb\\\",\\\"\\\"],[24,\\\"data-test-page-title-breadcrumbs-crumb-link-no-model\\\",\\\"\\\"]],[[\\\"@route\\\"],[[30,1,[\\\"route\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[[30,1,[\\\"pageTitle\\\"]],3],null]],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,2],[[[1,\\\"      \\\"],[11,1],[24,0,\\\"fs-5 btn-link\\\"],[24,\\\"role\\\",\\\"button\\\"],[24,\\\"data-test-page-title-breadcrumbs-crumb\\\",\\\"\\\"],[24,\\\"data-test-page-title-breadcrumbs-crumb-text\\\",\\\"\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[30,2],[30,1]],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[[28,[37,6],[[30,1,[\\\"pageTitle\\\"]],[30,1,[\\\"name\\\"]]],null],3],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,1,[\\\"onClick\\\"]],[[[1,\\\"      \\\"],[11,1],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"fs-5 btn btn-link\\\"],[24,\\\"data-test-page-title-breadcrumbs-crumb\\\",\\\"\\\"],[24,\\\"data-test-page-title-breadcrumbs-crumb-text\\\",\\\"\\\"],[4,[38,8],[\\\"click\\\",[30,1,[\\\"onClick\\\"]]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[[30,1,[\\\"pageTitle\\\"]],3],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,1],[14,0,\\\"fs-5\\\"],[14,\\\"role\\\",\\\"button\\\"],[14,\\\"data-test-page-title-breadcrumbs-crumb\\\",\\\"\\\"],[14,\\\"data-test-page-title-breadcrumbs-crumb-text\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[[28,[37,6],[[30,1,[\\\"pageTitle\\\"]],[30,1,[\\\"name\\\"]]],null],3],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]],[]]]],[]]]],[]]],[44,[[28,[37,6],[[30,3],\\\"chevron-right\\\"],null]],[[[1,\\\"      \\\"],[8,[39,11],[[24,0,\\\"mx-2 fs-6 text-secondary\\\"],[16,\\\"data-test-page-title-breadcrumbs-crumb-icon\\\",[30,4]]],[[\\\"@icon\\\"],[[30,4]]],null],[1,\\\"\\\\n\\\"]],[4]]]],[]]]],[1]],null]],[\\\"crumb\\\",\\\"@action\\\",\\\"@icon\\\",\\\"icon\\\"],false,[\\\"each\\\",\\\"-track-array\\\",\\\"if\\\",\\\"eq\\\",\\\"span\\\",\\\"ellipsis-words\\\",\\\"or\\\",\\\"link-to\\\",\\\"on\\\",\\\"perform\\\",\\\"let\\\",\\\"fa-icon\\\"]]\",\n    \"moduleName\": \"portal/components/page-title-breadcrumbs.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component2.default {\n    get crumbStack() {\n      return this.args.crumbStack;\n    }\n    get lastCrumb() {\n      return this.args.crumbStack[this.args.crumbStack.length - 1];\n    }\n  });\n});","define(\"portal/components/pagination-table\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _component2, _tracking, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='pagination-table__container'>\n    <div class='pagination-table__table-container'>\n      {{#if @isLoading}}\n        <SkeletonScreens::Table\n          @columnLength={{this.skeletonColumnNumber}}\n          @rowLength={{this.skeletonRowNumber}}\n        />\n      {{else}}\n        <table\n          class='{{@class}}\n            table pagination-table\n            {{if @validationMessage \"mb-0\"}}'\n          {{did-insert this.setSkeletonTable}}\n          data-test-pagination-table\n        >\n          <thead class='pagination-table__table-thead'>\n            <tr>\n              {{#each @tableHeader as |tableHeaderCol|}}\n                <th\n                  class='{{tableHeaderCol.colClass}} pagination-table__nowrap'\n                  {{on 'click' (fn this.onClickCol undefined tableHeaderCol)}}\n                >\n                  {{#if (eq tableHeaderCol.type 'CHECKBOX_INPUT')}}\n                    <LabelPopup @text={{tableHeaderCol.title}}>\n                      <IndeterminateCheckbox\n                        @checked={{tableHeaderCol.value}}\n                        @indeterminate={{tableHeaderCol.isPartiallySelected}}\n                        @onChange={{fn\n                          this.onInputChange\n                          @tableHeader\n                          tableHeaderCol\n                        }}\n                        class={{tableHeaderCol.textClass}}\n                      />\n                    </LabelPopup>\n                  {{else}}\n                    <span class={{tableHeaderCol.textClass}}>\n                      {{tableHeaderCol.value}}\n                    </span>\n                  {{/if}}\n  \n                  {{#if tableHeaderCol.iconName}}\n                    <FaIcon @icon={{tableHeaderCol.iconName}} />\n                  {{/if}}\n                </th>\n              {{/each}}\n            </tr>\n          </thead>\n          {{#if @footer}}\n            <tfoot class='pagination-table__table-tfoot'>\n              <tr>\n                <th colspan={{@footerColspan}}></th>\n                <th class={{@footer.colClass}}>{{@footer.value}}</th>\n              </tr>\n            </tfoot>\n          {{/if}}\n          <tbody>\n            {{#each @tableData as |row|}}\n              <tr\n                class={{row.rowClass}}\n                {{on 'click' (fn this.onClickRow row)}}\n                data-test-pagination-table-row\n              >\n                {{#each row.rowData as |col|}}\n                  <td class={{col.colClass}}>\n                    {{#if (eq col.type 'CHECKBOX_INPUT')}}\n                      <LabelPopup @text={{col.title}}>\n                        <IndeterminateCheckbox\n                          @checked={{col.value}}\n                          @indeterminate={{col.isPartiallySelected}}\n                          @onChange={{fn this.onInputChange row col}}\n                          disabled={{col.disabled}}\n                          class={{col.textClass}}\n                        />\n                      </LabelPopup>\n                    {{else if (eq col.type 'TEXT_INPUT')}}\n                      <Input\n                        class='{{col.textClass}}'\n                        @type='text'\n                        @value={{col.value}}\n                        disabled={{col.disabled}}\n                        {{on 'change' (fn col.onInputChange row col)}}\n                      />\n                    {{else if (eq col.type 'NUMBER_INPUT')}}\n                      <Input\n                        class='{{col.textClass}}'\n                        @type='number'\n                        step={{col.step}}\n                        min={{col.min}}\n                        max={{col.max}}\n                        disabled={{col.disabled}}\n                        @value={{col.value}}\n                        {{on 'change' (fn col.onInputChange row col)}}\n                      />\n                    {{else if (eq col.type 'BUTTON')}}\n                      {{#if col.badgeValue}}\n                        <div class='d-flex align-items-center'>\n                          <button\n                            class={{col.textClass}}\n                            type='button'\n                            disabled={{col.disabled}}\n                            {{on 'click' (fn col.onClickButton row col)}}\n                          >\n                            {{col.value}}\n                          </button>\n                          {{#if col.badgeValue}}\n                            <span class={{col.badgeClass}}>\n                              {{col.badgeValue}}\n                            </span>\n                          {{/if}}\n                        </div>\n                      {{else}}\n                        <button\n                          class={{col.textClass}}\n                          type='button'\n                          disabled={{col.disabled}}\n                          {{on 'click' (fn col.onClickButton row col)}}\n                        >\n                          {{col.value}}\n                        </button>\n                      {{/if}}\n                    {{else if (eq col.type 'POPOVER')}}\n                      <div class='d-flex justify-content-center'>\n                        <PopOver @direction='bottom-left' @fixed={{true}} as |po|>\n                          {{#if col.popOverActions.primary.iconName}}\n                            <FaIcon\n                              @icon={{col.popOverActions.primary.iconName}}\n                              role='button'\n                              @class='fs-3'\n                            />\n                          {{/if}}\n                          {{#if col.popOverActions.primary.name}}\n                            {{col.popOverActions.primary.name}}\n                          {{/if}}\n                          <po.Content>\n                            {{#each\n                              col.popOverActions.secondary\n                              as |section index|\n                            }}\n                              {{#if section.name}}\n                                <div\n                                  class='dropdown-header text-nowrap fs-5 py-2'\n                                >\n                                  {{section.name}}\n                                </div>\n                              {{/if}}\n                              {{#each section.items as |item|}}\n                                <button\n                                  type='button'\n                                  class='dropdown-item text-nowrap fs-5 py-2'\n                                  {{on 'click' (fn item.onClickButton row col)}}\n                                >\n                                  {{#if item.iconName}}\n                                    <FaIcon\n                                      @icon={{item.iconName}}\n                                      @fixedWidth={{true}}\n                                    />&nbsp;\n                                  {{/if}}\n                                  {{item.name}}\n                                </button>\n                              {{/each}}\n                              {{#if\n                                (lt\n                                  index\n                                  (math col.popOverActions.secondary.length '-' 1)\n                                )\n                              }}\n                                <hr />\n                              {{/if}}\n                            {{/each}}\n                          </po.Content>\n                        </PopOver>\n                      </div>\n                    {{else}}\n                      {{#if col.badgeValue}}\n                        <div class='d-flex align-items-center'>\n                          <span class={{concat col.textClass ' me-1'}}>\n                            {{col.value}}\n                          </span>\n                          {{#if col.badgeValue}}\n                            <span class={{col.badgeClass}}>\n                              {{col.badgeValue}}\n                            </span>\n                          {{/if}}\n                        </div>\n                      {{else}}\n                        <span class={{col.textClass}}>\n                          {{html-safe col.value}}\n                        </span>\n                      {{/if}}\n                    {{/if}}\n  \n                    {{#if col.iconName}}\n                      <FaIcon @title={{col.title}} @icon={{col.iconName}} />\n                    {{/if}}\n                  </td>\n                {{/each}}\n              </tr>\n            {{else if @noDataText}}\n              <tr>\n                <td class='text-center' colspan={{this.skeletonColumnNumber}}>\n                  {{@noDataText}}\n                </td>\n              </tr>\n            {{/each}}\n          </tbody>\n        </table>\n      {{/if}}\n    </div>\n  \n    {{#if @validationMessage}}\n      <div class='invalid-feedback d-block' data-test-pagination-table-validation>\n        {{@validationMessage}}\n      </div>\n    {{/if}}\n  \n    {{#if this.showPagination}}\n      <div class='d-flex justify-content-end'>\n        <div class='mx-1'>\n          <SelectInput\n            @value={{@pageSize}}\n            @action={{this.onChangePageSize}}\n            class='form-control select-box d-block'\n            data-test-pagination-table-page-size-select\n            as |si|\n          >\n            {{#each this.pageSizes as |option|}}\n              <si.option @value={{option}}>{{option}}</si.option>\n            {{/each}}\n          </SelectInput>\n        </div>\n        <div class='d-flex align-items-center mx-1'>\n          {{#if @totalRecords}}\n            <div class='mx-1'>\n              {{this.fromRow}}\n              –\n              {{this.toRow}}\n              of\n              {{this.tableDataLength}}\n            </div>\n          {{/if}}\n          <div class='mx-1'>\n            <button\n              type='button'\n              class='btn btn-link'\n              {{on 'click' this.goFirstPage}}\n              disabled={{eq @pageIndex 1}}\n            >\n              <FaIcon @icon='step-backward' />\n            </button>\n            <button\n              type='button'\n              class='btn btn-link'\n              {{on 'click' this.goBackPage}}\n              disabled={{eq @pageIndex 1}}\n            >\n              <FaIcon @icon='angle-left' />\n            </button>\n            <button\n              type='button'\n              class='btn btn-link'\n              {{on 'click' this.goNextPage}}\n              disabled={{not this.hasNextPage}}\n            >\n              <FaIcon @icon='angle-right' />\n            </button>\n            {{#if @totalRecords}}\n              <button\n                type='button'\n                class='btn btn-link'\n                {{on 'click' this.goLastPage}}\n                disabled={{eq @pageIndex this.lastPageIndex}}\n              >\n                <FaIcon @icon='step-forward' />\n              </button>\n            {{/if}}\n          </div>\n        </div>\n      </div>\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"GdW3g0lI\",\n    \"block\": \"[[[10,0],[14,0,\\\"pagination-table__container\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"pagination-table__table-container\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1],[[[1,\\\"      \\\"],[8,[39,2],null,[[\\\"@columnLength\\\",\\\"@rowLength\\\"],[[30,0,[\\\"skeletonColumnNumber\\\"]],[30,0,[\\\"skeletonRowNumber\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[11,\\\"table\\\"],[16,0,[29,[[30,2],\\\"\\\\n          table pagination-table\\\\n          \\\",[52,[30,3],\\\"mb-0\\\"]]]],[24,\\\"data-test-pagination-table\\\",\\\"\\\"],[4,[38,4],[[30,0,[\\\"setSkeletonTable\\\"]]],null],[12],[1,\\\"\\\\n        \\\"],[10,\\\"thead\\\"],[14,0,\\\"pagination-table__table-thead\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,4]],null]],null],null,[[[1,\\\"              \\\"],[11,\\\"th\\\"],[16,0,[29,[[30,5,[\\\"colClass\\\"]],\\\" pagination-table__nowrap\\\"]]],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"onClickCol\\\"]],[27],[30,5]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,12],[[30,5,[\\\"type\\\"]],\\\"CHECKBOX_INPUT\\\"],null],[[[1,\\\"                  \\\"],[8,[39,13],null,[[\\\"@text\\\"],[[30,5,[\\\"title\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                    \\\"],[8,[39,14],[[16,0,[30,5,[\\\"textClass\\\"]]]],[[\\\"@checked\\\",\\\"@indeterminate\\\",\\\"@onChange\\\"],[[30,5,[\\\"value\\\"]],[30,5,[\\\"isPartiallySelected\\\"]],[28,[37,11],[[30,0,[\\\"onInputChange\\\"]],[30,4],[30,5]],null]]],null],[1,\\\"\\\\n                  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[10,1],[15,0,[30,5,[\\\"textClass\\\"]]],[12],[1,\\\"\\\\n                    \\\"],[1,[30,5,[\\\"value\\\"]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,5,[\\\"iconName\\\"]],[[[1,\\\"                  \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[[30,5,[\\\"iconName\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,6],[[[1,\\\"          \\\"],[10,\\\"tfoot\\\"],[14,0,\\\"pagination-table__table-tfoot\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"th\\\"],[15,\\\"colspan\\\",[30,7]],[12],[13],[1,\\\"\\\\n              \\\"],[10,\\\"th\\\"],[15,0,[30,6,[\\\"colClass\\\"]]],[12],[1,[30,6,[\\\"value\\\"]]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,8]],null]],null],null,[[[1,\\\"            \\\"],[11,\\\"tr\\\"],[16,0,[30,9,[\\\"rowClass\\\"]]],[24,\\\"data-test-pagination-table-row\\\",\\\"\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"onClickRow\\\"]],[30,9]],null]],null],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,9,[\\\"rowData\\\"]]],null]],null],null,[[[1,\\\"                \\\"],[10,\\\"td\\\"],[15,0,[30,10,[\\\"colClass\\\"]]],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,12],[[30,10,[\\\"type\\\"]],\\\"CHECKBOX_INPUT\\\"],null],[[[1,\\\"                    \\\"],[8,[39,13],null,[[\\\"@text\\\"],[[30,10,[\\\"title\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                      \\\"],[8,[39,14],[[16,\\\"disabled\\\",[30,10,[\\\"disabled\\\"]]],[16,0,[30,10,[\\\"textClass\\\"]]]],[[\\\"@checked\\\",\\\"@indeterminate\\\",\\\"@onChange\\\"],[[30,10,[\\\"value\\\"]],[30,10,[\\\"isPartiallySelected\\\"]],[28,[37,11],[[30,0,[\\\"onInputChange\\\"]],[30,9],[30,10]],null]]],null],[1,\\\"\\\\n                    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,12],[[30,10,[\\\"type\\\"]],\\\"TEXT_INPUT\\\"],null],[[[1,\\\"                    \\\"],[8,[39,20],[[16,0,[29,[[30,10,[\\\"textClass\\\"]]]]],[16,\\\"disabled\\\",[30,10,[\\\"disabled\\\"]]],[4,[38,10],[\\\"change\\\",[28,[37,11],[[30,10,[\\\"onInputChange\\\"]],[30,9],[30,10]],null]],null]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,10,[\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,12],[[30,10,[\\\"type\\\"]],\\\"NUMBER_INPUT\\\"],null],[[[1,\\\"                    \\\"],[8,[39,20],[[16,0,[29,[[30,10,[\\\"textClass\\\"]]]]],[16,\\\"step\\\",[30,10,[\\\"step\\\"]]],[16,\\\"min\\\",[30,10,[\\\"min\\\"]]],[16,\\\"max\\\",[30,10,[\\\"max\\\"]]],[16,\\\"disabled\\\",[30,10,[\\\"disabled\\\"]]],[4,[38,10],[\\\"change\\\",[28,[37,11],[[30,10,[\\\"onInputChange\\\"]],[30,9],[30,10]],null]],null]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"number\\\",[30,10,[\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,12],[[30,10,[\\\"type\\\"]],\\\"BUTTON\\\"],null],[[[41,[30,10,[\\\"badgeValue\\\"]],[[[1,\\\"                      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n                        \\\"],[11,\\\"button\\\"],[16,0,[30,10,[\\\"textClass\\\"]]],[16,\\\"disabled\\\",[30,10,[\\\"disabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,10,[\\\"onClickButton\\\"]],[30,9],[30,10]],null]],null],[12],[1,\\\"\\\\n                          \\\"],[1,[30,10,[\\\"value\\\"]]],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,10,[\\\"badgeValue\\\"]],[[[1,\\\"                          \\\"],[10,1],[15,0,[30,10,[\\\"badgeClass\\\"]]],[12],[1,\\\"\\\\n                            \\\"],[1,[30,10,[\\\"badgeValue\\\"]]],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                      \\\"],[11,\\\"button\\\"],[16,0,[30,10,[\\\"textClass\\\"]]],[16,\\\"disabled\\\",[30,10,[\\\"disabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,10,[\\\"onClickButton\\\"]],[30,9],[30,10]],null]],null],[12],[1,\\\"\\\\n                        \\\"],[1,[30,10,[\\\"value\\\"]]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[41,[28,[37,12],[[30,10,[\\\"type\\\"]],\\\"POPOVER\\\"],null],[[[1,\\\"                    \\\"],[10,0],[14,0,\\\"d-flex justify-content-center\\\"],[12],[1,\\\"\\\\n                      \\\"],[8,[39,22],null,[[\\\"@direction\\\",\\\"@fixed\\\"],[\\\"bottom-left\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,10,[\\\"popOverActions\\\",\\\"primary\\\",\\\"iconName\\\"]],[[[1,\\\"                          \\\"],[8,[39,16],[[24,\\\"role\\\",\\\"button\\\"]],[[\\\"@icon\\\",\\\"@class\\\"],[[30,10,[\\\"popOverActions\\\",\\\"primary\\\",\\\"iconName\\\"]],\\\"fs-3\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,10,[\\\"popOverActions\\\",\\\"primary\\\",\\\"name\\\"]],[[[1,\\\"                          \\\"],[1,[30,10,[\\\"popOverActions\\\",\\\"primary\\\",\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                        \\\"],[8,[30,11,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,10,[\\\"popOverActions\\\",\\\"secondary\\\"]]],null]],null],null,[[[41,[30,12,[\\\"name\\\"]],[[[1,\\\"                              \\\"],[10,0],[14,0,\\\"dropdown-header text-nowrap fs-5 py-2\\\"],[12],[1,\\\"\\\\n                                \\\"],[1,[30,12,[\\\"name\\\"]]],[1,\\\"\\\\n                              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[42,[28,[37,8],[[28,[37,8],[[30,12,[\\\"items\\\"]]],null]],null],null,[[[1,\\\"                              \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5 py-2\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,14,[\\\"onClickButton\\\"]],[30,9],[30,10]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,14,[\\\"iconName\\\"]],[[[1,\\\"                                  \\\"],[8,[39,16],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[[30,14,[\\\"iconName\\\"]],true]],null],[1,\\\" \\\\n\\\"]],[]],null],[1,\\\"                                \\\"],[1,[30,14,[\\\"name\\\"]]],[1,\\\"\\\\n                              \\\"],[13],[1,\\\"\\\\n\\\"]],[14]],null],[41,[28,[37,23],[[30,13],[28,[37,24],[[30,10,[\\\"popOverActions\\\",\\\"secondary\\\",\\\"length\\\"]],\\\"-\\\",1],null]],null],[[[1,\\\"                              \\\"],[10,\\\"hr\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null]],[12,13]],null],[1,\\\"                        \\\"]],[]]]]],[1,\\\"\\\\n                      \\\"]],[11]]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,10,[\\\"badgeValue\\\"]],[[[1,\\\"                      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,1],[15,0,[28,[37,26],[[30,10,[\\\"textClass\\\"]],\\\" me-1\\\"],null]],[12],[1,\\\"\\\\n                          \\\"],[1,[30,10,[\\\"value\\\"]]],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,10,[\\\"badgeValue\\\"]],[[[1,\\\"                          \\\"],[10,1],[15,0,[30,10,[\\\"badgeClass\\\"]]],[12],[1,\\\"\\\\n                            \\\"],[1,[30,10,[\\\"badgeValue\\\"]]],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                      \\\"],[10,1],[15,0,[30,10,[\\\"textClass\\\"]]],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[35,27],[[30,10,[\\\"value\\\"]]],null]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                  \\\"]],[]]]],[]]]],[]]]],[]]]],[]]],[1,\\\"\\\\n\\\"],[41,[30,10,[\\\"iconName\\\"]],[[[1,\\\"                    \\\"],[8,[39,16],null,[[\\\"@title\\\",\\\"@icon\\\"],[[30,10,[\\\"title\\\"]],[30,10,[\\\"iconName\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                \\\"],[13],[1,\\\"\\\\n\\\"]],[10]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[9]],[[[41,[30,15],[[[1,\\\"            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[14,0,\\\"text-center\\\"],[15,\\\"colspan\\\",[30,0,[\\\"skeletonColumnNumber\\\"]]],[12],[1,\\\"\\\\n                \\\"],[1,[30,15]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"]],[]],null]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,3],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"invalid-feedback d-block\\\"],[14,\\\"data-test-pagination-table-validation\\\",\\\"\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[30,3]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showPagination\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"d-flex justify-content-end\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"mx-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,28],[[24,0,\\\"form-control select-box d-block\\\"],[24,\\\"data-test-pagination-table-page-size-select\\\",\\\"\\\"]],[[\\\"@value\\\",\\\"@action\\\"],[[30,16],[30,0,[\\\"onChangePageSize\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,0,[\\\"pageSizes\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[8,[30,17,[\\\"option\\\"]],null,[[\\\"@value\\\"],[[30,18]]],[[\\\"default\\\"],[[[[1,[30,18]]],[]]]]],[1,\\\"\\\\n\\\"]],[18]],null],[1,\\\"        \\\"]],[17]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center mx-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,19],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"mx-1\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[30,0,[\\\"fromRow\\\"]]],[1,\\\"\\\\n            –\\\\n            \\\"],[1,[30,0,[\\\"toRow\\\"]]],[1,\\\"\\\\n            of\\\\n            \\\"],[1,[30,0,[\\\"tableDataLength\\\"]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[10,0],[14,0,\\\"mx-1\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link\\\"],[16,\\\"disabled\\\",[28,[37,12],[[30,20],1],null]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"goFirstPage\\\"]]],null],[12],[1,\\\"\\\\n            \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"step-backward\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link\\\"],[16,\\\"disabled\\\",[28,[37,12],[[30,20],1],null]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"goBackPage\\\"]]],null],[12],[1,\\\"\\\\n            \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"angle-left\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link\\\"],[16,\\\"disabled\\\",[28,[37,29],[[30,0,[\\\"hasNextPage\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"goNextPage\\\"]]],null],[12],[1,\\\"\\\\n            \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"angle-right\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,19],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link\\\"],[16,\\\"disabled\\\",[28,[37,12],[[30,20],[30,0,[\\\"lastPageIndex\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"goLastPage\\\"]]],null],[12],[1,\\\"\\\\n              \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"step-forward\\\"]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[13]],[\\\"@isLoading\\\",\\\"@class\\\",\\\"@validationMessage\\\",\\\"@tableHeader\\\",\\\"tableHeaderCol\\\",\\\"@footer\\\",\\\"@footerColspan\\\",\\\"@tableData\\\",\\\"row\\\",\\\"col\\\",\\\"po\\\",\\\"section\\\",\\\"index\\\",\\\"item\\\",\\\"@noDataText\\\",\\\"@pageSize\\\",\\\"si\\\",\\\"option\\\",\\\"@totalRecords\\\",\\\"@pageIndex\\\"],false,[\\\"div\\\",\\\"if\\\",\\\"skeleton-screens/table\\\",\\\"table\\\",\\\"did-insert\\\",\\\"thead\\\",\\\"tr\\\",\\\"each\\\",\\\"-track-array\\\",\\\"th\\\",\\\"on\\\",\\\"fn\\\",\\\"eq\\\",\\\"label-popup\\\",\\\"indeterminate-checkbox\\\",\\\"span\\\",\\\"fa-icon\\\",\\\"tfoot\\\",\\\"tbody\\\",\\\"td\\\",\\\"input\\\",\\\"button\\\",\\\"pop-over\\\",\\\"lt\\\",\\\"math\\\",\\\"hr\\\",\\\"concat\\\",\\\"html-safe\\\",\\\"select-input\\\",\\\"not\\\"]]\",\n    \"moduleName\": \"portal/components/pagination-table.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"skeletonColumnNumber\", _descriptor, this);\n      _initializerDefineProperty(this, \"skeletonRowNumber\", _descriptor2, this);\n    }\n    onClickRow(row) {\n      if (row.onClickRow) row.onClickRow(row.rowData);\n    }\n    onClickCol(row, col) {\n      if (col.onClickCol) col.onClickCol(row, col);\n    }\n    onInputChange(row, col, event) {\n      if (col.onInputChange) col.onInputChange(row, col, event);\n    }\n    get pageSizes() {\n      return this.args.pageSizes ?? [10, 20, 30];\n    }\n    get tableDataLength() {\n      return this.args.totalRecords ?? this.args.tableData.length;\n    }\n    get showPagination() {\n      if (this.args.hidePagination) return false;\n      if (this.args.isLoading) return false;\n      if (!this.hasNextPage && this.args.pageIndex === 1) return false;\n      return true;\n    }\n    get hasNextPage() {\n      if (this.args.totalRecords) return this.toRow < this.tableDataLength;\n      return this.args.hasNextPage;\n    }\n    setSkeletonTable() {\n      if (this.args.tableHeader.length) this.skeletonColumnNumber = this.args.tableHeader.length;\n      if (this.args.tableData.length) this.skeletonRowNumber = this.args.tableData.length;\n    }\n    get lastPageIndex() {\n      if (this.tableDataLength / this.args.pageSize < 1) return 1;\n      return Math.ceil(this.tableDataLength / this.args.pageSize);\n    }\n    get toRow() {\n      if (this.args.pageSize > this.tableDataLength) return this.tableDataLength;\n      return this.args.pageSize * this.args.pageIndex;\n    }\n    get fromRow() {\n      return this.args.pageSize * (this.args.pageIndex - 1) + 1;\n    }\n    scrollToTop() {\n      document.getElementsByClassName('pagination-table__table-container')[0].scrollTo({\n        top: 0,\n        behavior: 'smooth'\n      });\n    }\n    onChangePageSize(pageSize) {\n      if (this.args.onChangePageSize) this.args.onChangePageSize(pageSize);\n    }\n    goFirstPage() {\n      if (this.args.onChangePageIndex) {\n        this.args.onChangePageIndex(1);\n        this.scrollToTop();\n      }\n    }\n    goLastPage() {\n      if (this.args.onChangePageIndex) {\n        this.args.onChangePageIndex(this.lastPageIndex);\n        this.scrollToTop();\n      }\n    }\n    goBackPage() {\n      if (this.args.onChangePageIndex) {\n        this.args.onChangePageIndex(this.args.pageIndex - 1);\n        this.scrollToTop();\n      }\n    }\n    goNextPage() {\n      if (this.args.onChangePageIndex) {\n        this.args.onChangePageIndex(this.args.pageIndex + 1);\n        this.scrollToTop();\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"skeletonColumnNumber\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 8;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"skeletonRowNumber\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 4;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"onClickRow\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onClickRow\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onClickCol\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onClickCol\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onInputChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onInputChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setSkeletonTable\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setSkeletonTable\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onChangePageSize\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onChangePageSize\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"goFirstPage\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"goFirstPage\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"goLastPage\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"goLastPage\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"goBackPage\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"goBackPage\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"goNextPage\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"goNextPage\"), _class.prototype), _class));\n});","define(\"portal/components/pdf-export-timesheet-row\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template\", \"@ember/template-factory\"], function (_exports, _component, _component2, _template, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <tr>\n    {{#if @group.children}}\n      <td colspan='4' style={{this.indentStyle}}><strong\n        >{{@group.label}}</strong></td>\n    {{else}}\n      <td style={{this.indentStyle}}>{{@group.label}}</td>\n      <td class='r num-col'>\n        {{number-format @group.hours maximumFractionDigits=2 dashZero=false}}\n      </td>\n      <td class='r num-col'>\n        {{number-format\n          (math @group.rate '*' @coef)\n          style='currency'\n          dashZero=true\n        }}\n      </td>\n      <td class='r num-col'>\n        {{number-format\n          (math @group.total '*' @coef)\n          style='currency'\n          dashZero=true\n        }}\n      </td>\n    {{/if}}\n  </tr>\n  \n  {{#each @group.children as |child|}}\n    <PdfExportTimesheetRow\n      @coef={{@coef}}\n      @group={{child}}\n      @depth={{inc (or @depth 0)}}\n    />\n  {{/each}}\n  */\n  {\n    \"id\": \"F04MFi1U\",\n    \"block\": \"[[[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"children\\\"]],[[[1,\\\"    \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"4\\\"],[15,5,[30,0,[\\\"indentStyle\\\"]]],[12],[10,\\\"strong\\\"],[12],[1,[30,1,[\\\"label\\\"]]],[13],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,\\\"td\\\"],[15,5,[30,0,[\\\"indentStyle\\\"]]],[12],[1,[30,1,[\\\"label\\\"]]],[13],[1,\\\"\\\\n    \\\"],[10,\\\"td\\\"],[14,0,\\\"r num-col\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,4],[[30,1,[\\\"hours\\\"]]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[2,false]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"td\\\"],[14,0,\\\"r num-col\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,4],[[28,[37,5],[[30,1,[\\\"rate\\\"]],\\\"*\\\",[30,2]],null]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"td\\\"],[14,0,\\\"r num-col\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,4],[[28,[37,5],[[30,1,[\\\"total\\\"]],\\\"*\\\",[30,2]],null]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[30,1,[\\\"children\\\"]]],null]],null],null,[[[1,\\\"  \\\"],[8,[39,8],null,[[\\\"@coef\\\",\\\"@group\\\",\\\"@depth\\\"],[[30,2],[30,3],[28,[37,9],[[28,[37,10],[[30,4],0],null]],null]]],null],[1,\\\"\\\\n\\\"]],[3]],null]],[\\\"@group\\\",\\\"@coef\\\",\\\"child\\\",\\\"@depth\\\"],false,[\\\"tr\\\",\\\"if\\\",\\\"td\\\",\\\"strong\\\",\\\"number-format\\\",\\\"math\\\",\\\"each\\\",\\\"-track-array\\\",\\\"pdf-export-timesheet-row\\\",\\\"inc\\\",\\\"or\\\"]]\",\n    \"moduleName\": \"portal/components/pdf-export-timesheet-row.hbs\",\n    \"isStrictMode\": false\n  });\n  class PdfExportTimesheetRow extends _component2.default {\n    get indentStyle() {\n      return (0, _template.htmlSafe)(`text-indent: ${this.args.depth ?? 0}em`);\n    }\n  }\n  _exports.default = PdfExportTimesheetRow;\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, PdfExportTimesheetRow);\n});","define(\"portal/components/people-table\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _tracking, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if @filteredList.length}}\n    <table class='table table-bordered people__remove-border-bottom'>\n      <thead class='people__table__table-thead'>\n        <tr>\n          <th>{{t 'common.Name'}}</th>\n          <th>{{t 'common.Email'}}</th>\n          <th>{{t 'common.Phone number'}}</th>\n          {{#if (and (includes-feature-flags 'userIsAdmin') @showLoginAs)}}\n            <th class='text-center'>{{t 'common.Action'}}</th>\n          {{/if}}\n          {{#if @showWorkerCode}}\n            <th class='text-center'>{{t\n                'components.people-table.Worker code'\n              }}</th>\n          {{/if}}\n        </tr>\n      </thead>\n      <tbody>\n        {{#each @filteredList as |item|}}\n          <tr data-test-person-row={{item.id}}>\n            <td>\n              <LinkTo @route={{@route}} @model={{item.id}} data-test-person-name>\n                {{item.fullName}}\n              </LinkTo>\n            </td>\n            <td>\n              {{item.email}}\n            </td>\n            <td>\n              {{#if item.phoneNumber}}\n                {{item.phoneNumber}}\n              {{else}}\n                <div class='text-center'> &mdash;</div>\n              {{/if}}\n            </td>\n            {{#if @showLoginAs}}\n              <td class='text-center'>\n                <button\n                  class='btn btn-link p-0 m-0 ms-1 tooltip-btn'\n                  type='button'\n                  {{action @onClickLoginAs item}}\n                  data-bs-placement='bottom'\n                  {{bootstrap-tooltip (concat 'Login as ' item.fullName)}}\n                >\n                  <FaIcon @icon='sign-in-alt' @size='lg' />\n                </button>\n              </td>\n            {{/if}}\n            {{#if @showWorkerCode}}\n              <td class='text-center'>\n                {{#if item.authCode}}\n                  <div\n                    role='button'\n                    class='bg-white border rounded px-2 py-1 flex-grow-1'\n                    {{on 'click' (fn this.onCopyAuthCode item)}}\n                    data-bs-placement='bottom'\n                    {{bootstrap-tooltip\n                      (if\n                        (eq this.copiedItemId item.id)\n                        (t 'common.Copied')\n                        (t 'common.Click to copy')\n                      )\n                    }}\n                  >\n                    <span class='fw-bold'>\n                      {{or item.authCode}}\n                    </span>\n                  </div>\n                {{else}}\n                  <div\n                    role='button'\n                    class='bg-white border rounded px-2 py-1 flex-grow-1'\n                  >\n                    <span class='fw-bold'>\n                      {{t 'common.Not set'}}\n                    </span>\n                  </div>\n                {{/if}}\n  \n              </td>\n            {{/if}}\n          </tr>\n        {{/each}}\n      </tbody>\n    </table>\n  {{else}}\n    <table class='table table-bordered people__remove-border-bottom'>\n      <tbody>\n        <tr data-test-people-empty>\n          <td class='text-center'><div>{{@noData}}</div></td>\n        </tr>\n      </tbody>\n    </table>\n  {{/if}}\n  */\n  {\n    \"id\": \"2RzVV0Lo\",\n    \"block\": \"[[[41,[30,1,[\\\"length\\\"]],[[[1,\\\"  \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-bordered people__remove-border-bottom\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"thead\\\"],[14,0,\\\"people__table__table-thead\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,5],[\\\"common.Name\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,5],[\\\"common.Email\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,5],[\\\"common.Phone number\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[[28,[37,7],[\\\"userIsAdmin\\\"],null],[30,2]],null],[[[1,\\\"          \\\"],[10,\\\"th\\\"],[14,0,\\\"text-center\\\"],[12],[1,[28,[35,5],[\\\"common.Action\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,3],[[[1,\\\"          \\\"],[10,\\\"th\\\"],[14,0,\\\"text-center\\\"],[12],[1,[28,[35,5],[\\\"components.people-table.Worker code\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[30,1]],null]],null],null,[[[1,\\\"        \\\"],[10,\\\"tr\\\"],[15,\\\"data-test-person-row\\\",[30,4,[\\\"id\\\"]]],[12],[1,\\\"\\\\n          \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,12],[[24,\\\"data-test-person-name\\\",\\\"\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[[30,5],[30,4,[\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[1,[30,4,[\\\"fullName\\\"]]],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[30,4,[\\\"email\\\"]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,4,[\\\"phoneNumber\\\"]],[[[1,\\\"              \\\"],[1,[30,4,[\\\"phoneNumber\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\" —\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,2],[[[1,\\\"            \\\"],[10,\\\"td\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link p-0 m-0 ms-1 tooltip-btn\\\"],[24,\\\"data-bs-placement\\\",\\\"bottom\\\"],[24,4,\\\"button\\\"],[4,[38,15],[[30,0],[30,6],[30,4]],null],[4,[38,16],[[28,[37,17],[\\\"Login as \\\",[30,4,[\\\"fullName\\\"]]],null]],null],[12],[1,\\\"\\\\n                \\\"],[8,[39,18],null,[[\\\"@icon\\\",\\\"@size\\\"],[\\\"sign-in-alt\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,3],[[[1,\\\"            \\\"],[10,\\\"td\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,4,[\\\"authCode\\\"]],[[[1,\\\"                \\\"],[11,0],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"bg-white border rounded px-2 py-1 flex-grow-1\\\"],[24,\\\"data-bs-placement\\\",\\\"bottom\\\"],[4,[38,19],[\\\"click\\\",[28,[37,20],[[30,0,[\\\"onCopyAuthCode\\\"]],[30,4]],null]],null],[4,[38,16],[[52,[28,[37,21],[[30,0,[\\\"copiedItemId\\\"]],[30,4,[\\\"id\\\"]]],null],[28,[37,5],[\\\"common.Copied\\\"],null],[28,[37,5],[\\\"common.Click to copy\\\"],null]]],null],[12],[1,\\\"\\\\n                  \\\"],[10,1],[14,0,\\\"fw-bold\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,23],[[30,4,[\\\"authCode\\\"]]],null]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[10,0],[14,\\\"role\\\",\\\"button\\\"],[14,0,\\\"bg-white border rounded px-2 py-1 flex-grow-1\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,1],[14,0,\\\"fw-bold\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,5],[\\\"common.Not set\\\"],null]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-bordered people__remove-border-bottom\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"tr\\\"],[14,\\\"data-test-people-empty\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"td\\\"],[14,0,\\\"text-center\\\"],[12],[10,0],[12],[1,[30,7]],[13],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[\\\"@filteredList\\\",\\\"@showLoginAs\\\",\\\"@showWorkerCode\\\",\\\"item\\\",\\\"@route\\\",\\\"@onClickLoginAs\\\",\\\"@noData\\\"],false,[\\\"if\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"t\\\",\\\"and\\\",\\\"includes-feature-flags\\\",\\\"tbody\\\",\\\"each\\\",\\\"-track-array\\\",\\\"td\\\",\\\"link-to\\\",\\\"div\\\",\\\"button\\\",\\\"action\\\",\\\"bootstrap-tooltip\\\",\\\"concat\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"fn\\\",\\\"eq\\\",\\\"span\\\",\\\"or\\\"]]\",\n    \"moduleName\": \"portal/components/people-table.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"copiedItemId\", _descriptor, this);\n    }\n    async onCopyAuthCode(item) {\n      await this.args.onCopyAuthCode.perform(item);\n      this.copiedItemId = item.id;\n      setTimeout(() => this.copiedItemId = null, 1500);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"copiedItemId\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"onCopyAuthCode\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onCopyAuthCode\"), _class.prototype), _class));\n});","define(\"portal/components/personal-financial-table-section\", [\"exports\", \"@ember/component\", \"@ember/object\", \"lodash\", \"@ember/template-factory\"], function (_exports, _component, _object, _lodash, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"lodash\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#each this.accounts as |account|}}\n    <tr class='{{if (or this.doNotPrint (not account.print)) \"do-not-print\"}}'>\n      <td\n        class='financials-table__account-name financials-table__indented-cell financials-table__indented-cell--depth-{{account.depth}}'\n      >\n  \n        {{#if (and this.filterHeaders account.children)}}\n          <a\n            class='financials-table__print-toggle link do-not-print'\n            {{action 'toggleFilter' account}}\n          >\n            <FaIcon @icon={{if account.print 'eye' 'eye-slash'}} />\n          </a>\n        {{/if}}\n  \n        {{#if account.children}}\n          <a\n            class='financials-table__section-expansion-toggle link'\n            {{action 'toggleShowChildren' account}}\n          >\n            <FaIcon\n              @icon={{if account.hideChildren 'angle-right' 'angle-down'}}\n            />{{~! ~}}\n            {{#if (eq account.depth 0)}}\n              {{#if (eq account.debitCredit 'CREDIT')}}<span\n                  class='debitCredit debitCredit--credit'\n                >Cr</span>{{/if}}\n              {{#if (eq account.debitCredit 'DEBIT')}}<span\n                  class='debitCredit debitCredit--debit'\n                >Dr</span>{{/if}}\n            {{else}}\n              {{#if (eq account.debitCredit this.parent.debitCredit)}}\n                <span class='debitCredit debitCredit--credit'><InfoPopup\n                    @text={{concat account.name ' adds to ' this.parent.name}}\n                    @iconName='plus'\n                  /></span>\n              {{else}}\n                <span class='debitCredit debitCredit--debit'><InfoPopup\n                    @text={{concat\n                      account.name\n                      ' subtracts from '\n                      this.parent.name\n                    }}\n                    @iconName='minus'\n                  /></span>\n              {{/if}}\n            {{/if}}\n            {{account.name}}\n          </a>\n        {{else}}\n          <FaIcon @icon='angle-right' class='invisible' />{{~! ~}}\n          {{#if (eq account.depth 0)}}\n            {{#if (eq account.debitCredit 'CREDIT')}}<span\n                class='debitCredit debitCredit--credit'\n              >Cr</span>{{/if}}\n            {{#if (eq account.debitCredit 'DEBIT')}}<span\n                class='debitCredit debitCredit--debit'\n              >Dr</span>{{/if}}\n          {{else}}\n            {{#if (eq account.debitCredit this.parent.debitCredit)}}\n              <span class='debitCredit debitCredit--credit'><InfoPopup\n                  @text={{concat account.name ' adds to ' this.parent.name}}\n                  @iconName='plus'\n                /></span>\n            {{else}}\n              <span class='debitCredit debitCredit--debit'><InfoPopup\n                  @text={{concat\n                    account.name\n                    ' subtracts from '\n                    this.parent.name\n                  }}\n                  @iconName='minus'\n                /></span>\n            {{/if}}\n          {{/if}}\n          {{account.name}}\n        {{/if}}\n  \n      </td>\n  \n      {{#if account.hideChildren}}\n  \n        {{#each account.data as |period|}}\n          {{#if this.showMonth}}\n            <td\n              class='text-right\n                {{if\n                  (lt (get period \"periods.0.periodTypes.month.value\") 0)\n                  \"financials-table__negative-value\"\n                }}'\n            >\n              {{number-format\n                (get period 'periods.0.periodTypes.month.value')\n                maximumFractionDigits=0\n                dashZero=true\n              }}\n            </td>\n          {{/if}}\n  \n          {{#if (and this.showYTD account.periodic)}}\n            <td\n              class='text-right\n                {{if\n                  (lt (get period \"periods.0.periodTypes.ytd.value\") 0)\n                  \"financials-table__negative-value\"\n                }}'\n            >\n              {{number-format\n                (get period 'periods.0.periodTypes.ytd.value')\n                maximumFractionDigits=0\n                dashZero=true\n              }}\n            </td>\n          {{/if}}\n  \n          {{#if (not (or this.showMonth this.showYTD))}}\n            <td></td>\n          {{/if}}\n        {{/each}}\n  \n      {{else}}\n  \n        {{#if this.columnCount}}\n          <td colspan={{this.columnCount}}></td>\n        {{/if}}\n  \n      {{/if}}\n    </tr>\n  \n    {{#if (and account.children.length (not account.hideChildren))}}\n      <PersonalFinancialTableSection\n        @accounts={{account.children}}\n        @passedColumnCount={{this.columnCount}}\n        @toggleShowChildren={{action 'toggleShowChildren'}}\n        @showMonth={{this.showMonth}}\n        @showYTD={{this.showYTD}}\n        @totalsRow={{account.name}}\n        @filterHeaders={{true}}\n        @parent={{account}}\n        @nested={{true}}\n        @doNotPrint={{not account.print}}\n        @periodCount={{this.periodCount}}\n      />\n    {{/if}}\n  {{/each}}\n  \n  {{#if this.totalsRow}}\n    {{! Prevent from printing if doNotPrint is passed in recursively (doNotPrint) OR from top level (doNotPrintTotal) }}\n    <tr\n      class='data-table__total-row\n        {{if (or this.doNotPrintTotal this.doNotPrint) \"do-not-print\"}}'\n    >\n      <td\n        class='financials-table__account-name financials-table__indented-cell financials-table__indented-cell--depth-0'\n      >\n        {{! Only allow hiding of totals row independently if it at the top level }}\n        {{#if (and this.filterHeaders (not this.nested))}}\n          <a\n            class='financials-table__print-toggle do-not-print'\n            {{action this.toggleProperty 'doNotPrintTotal'}}\n          >\n            <FaIcon @icon={{if this.doNotPrintTotal 'eye-slash' 'eye'}} />\n          </a>\n        {{/if}}\n        {{this.totalsRow}}\n      </td>\n  \n      {{#each this.totals as |total|}}\n        {{#if (and this.showMonth (not-eq total.month null))}}\n          <td\n            class='text-right\n              {{if (lt total.month 0) \"financials-table__negative-value\"}}'\n          >\n            {{number-format total.month maximumFractionDigits=0 dashZero=true}}\n          </td>\n        {{/if}}\n  \n        {{#if (and this.showYTD (not-eq total.ytd null))}}\n          <td\n            class='text-right\n              {{if (lt total.ytd 0) \"financials-table__negative-value\"}}\n              '\n          >\n            {{number-format total.ytd maximumFractionDigits=0 dashZero=true}}\n          </td>\n        {{/if}}\n  \n        {{#if (and this.showMonth (not-eq total.continuous null))}}\n          <td\n            class='text-right\n              {{if (lt total.continuous 0) \"financials-table__negative-value\"}}'\n          >\n            {{number-format\n              total.continuous\n              maximumFractionDigits=0\n              dashZero=true\n            }}\n          </td>\n        {{/if}}\n  \n        {{! Add an empty cell if there is no data to be shown, just to stop the table breaking. }}\n        {{#if (not (or this.showMonth this.showYTD))}}\n          <td></td>\n        {{/if}}\n      {{/each}}\n    </tr>\n  {{/if}}\n  */\n  {\n    \"id\": \"NphDbALh\",\n    \"block\": \"[[[42,[28,[37,1],[[28,[37,1],[[30,0,[\\\"accounts\\\"]]],null]],null],null,[[[1,\\\"  \\\"],[10,\\\"tr\\\"],[15,0,[29,[[52,[28,[37,4],[[30,0,[\\\"doNotPrint\\\"]],[28,[37,5],[[30,1,[\\\"print\\\"]]],null]],null],\\\"do-not-print\\\"]]]],[12],[1,\\\"\\\\n    \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"financials-table__account-name financials-table__indented-cell financials-table__indented-cell--depth-\\\",[30,1,[\\\"depth\\\"]]]]],[12],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,7],[[30,0,[\\\"filterHeaders\\\"]],[30,1,[\\\"children\\\"]]],null],[[[1,\\\"        \\\"],[11,3],[24,0,\\\"financials-table__print-toggle link do-not-print\\\"],[4,[38,9],[[30,0],\\\"toggleFilter\\\",[30,1]],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,10],null,[[\\\"@icon\\\"],[[52,[30,1,[\\\"print\\\"]],\\\"eye\\\",\\\"eye-slash\\\"]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"children\\\"]],[[[1,\\\"        \\\"],[11,3],[24,0,\\\"financials-table__section-expansion-toggle link\\\"],[4,[38,9],[[30,0],\\\"toggleShowChildren\\\",[30,1]],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,10],null,[[\\\"@icon\\\"],[[52,[30,1,[\\\"hideChildren\\\"]],\\\"angle-right\\\",\\\"angle-down\\\"]]],null],[41,[28,[37,11],[[30,1,[\\\"depth\\\"]],0],null],[[[1,\\\"            \\\"],[41,[28,[37,11],[[30,1,[\\\"debitCredit\\\"]],\\\"CREDIT\\\"],null],[[[10,1],[14,0,\\\"debitCredit debitCredit--credit\\\"],[12],[1,\\\"Cr\\\"],[13]],[]],null],[1,\\\"\\\\n            \\\"],[41,[28,[37,11],[[30,1,[\\\"debitCredit\\\"]],\\\"DEBIT\\\"],null],[[[10,1],[14,0,\\\"debitCredit debitCredit--debit\\\"],[12],[1,\\\"Dr\\\"],[13]],[]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,11],[[30,1,[\\\"debitCredit\\\"]],[30,0,[\\\"parent\\\",\\\"debitCredit\\\"]]],null],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"debitCredit debitCredit--credit\\\"],[12],[8,[39,13],null,[[\\\"@text\\\",\\\"@iconName\\\"],[[28,[37,14],[[30,1,[\\\"name\\\"]],\\\" adds to \\\",[30,0,[\\\"parent\\\",\\\"name\\\"]]],null],\\\"plus\\\"]],null],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"debitCredit debitCredit--debit\\\"],[12],[8,[39,13],null,[[\\\"@text\\\",\\\"@iconName\\\"],[[28,[37,14],[[30,1,[\\\"name\\\"]],\\\" subtracts from \\\",[30,0,[\\\"parent\\\",\\\"name\\\"]]],null],\\\"minus\\\"]],null],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]],[1,\\\"          \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[8,[39,10],[[24,0,\\\"invisible\\\"]],[[\\\"@icon\\\"],[\\\"angle-right\\\"]],null],[41,[28,[37,11],[[30,1,[\\\"depth\\\"]],0],null],[[[1,\\\"          \\\"],[41,[28,[37,11],[[30,1,[\\\"debitCredit\\\"]],\\\"CREDIT\\\"],null],[[[10,1],[14,0,\\\"debitCredit debitCredit--credit\\\"],[12],[1,\\\"Cr\\\"],[13]],[]],null],[1,\\\"\\\\n          \\\"],[41,[28,[37,11],[[30,1,[\\\"debitCredit\\\"]],\\\"DEBIT\\\"],null],[[[10,1],[14,0,\\\"debitCredit debitCredit--debit\\\"],[12],[1,\\\"Dr\\\"],[13]],[]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,11],[[30,1,[\\\"debitCredit\\\"]],[30,0,[\\\"parent\\\",\\\"debitCredit\\\"]]],null],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"debitCredit debitCredit--credit\\\"],[12],[8,[39,13],null,[[\\\"@text\\\",\\\"@iconName\\\"],[[28,[37,14],[[30,1,[\\\"name\\\"]],\\\" adds to \\\",[30,0,[\\\"parent\\\",\\\"name\\\"]]],null],\\\"plus\\\"]],null],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"debitCredit debitCredit--debit\\\"],[12],[8,[39,13],null,[[\\\"@text\\\",\\\"@iconName\\\"],[[28,[37,14],[[30,1,[\\\"name\\\"]],\\\" subtracts from \\\",[30,0,[\\\"parent\\\",\\\"name\\\"]]],null],\\\"minus\\\"]],null],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]],[1,\\\"        \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,1,[\\\"hideChildren\\\"]],[[[1,\\\"\\\\n\\\"],[42,[28,[37,1],[[28,[37,1],[[30,1,[\\\"data\\\"]]],null]],null],null,[[[41,[30,0,[\\\"showMonth\\\"]],[[[1,\\\"          \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n              \\\",[52,[28,[37,15],[[28,[37,16],[[30,2],\\\"periods.0.periodTypes.month.value\\\"],null],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,17],[[28,[37,16],[[30,2],\\\"periods.0.periodTypes.month.value\\\"],null]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[[30,0,[\\\"showYTD\\\"]],[30,1,[\\\"periodic\\\"]]],null],[[[1,\\\"          \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n              \\\",[52,[28,[37,15],[[28,[37,16],[[30,2],\\\"periods.0.periodTypes.ytd.value\\\"],null],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,17],[[28,[37,16],[[30,2],\\\"periods.0.periodTypes.ytd.value\\\"],null]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[[28,[37,4],[[30,0,[\\\"showMonth\\\"]],[30,0,[\\\"showYTD\\\"]]],null]],null],[[[1,\\\"          \\\"],[10,\\\"td\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null]],[2]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"columnCount\\\"]],[[[1,\\\"        \\\"],[10,\\\"td\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnCount\\\"]]],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,7],[[30,1,[\\\"children\\\",\\\"length\\\"]],[28,[37,5],[[30,1,[\\\"hideChildren\\\"]]],null]],null],[[[1,\\\"    \\\"],[8,[39,18],null,[[\\\"@accounts\\\",\\\"@passedColumnCount\\\",\\\"@toggleShowChildren\\\",\\\"@showMonth\\\",\\\"@showYTD\\\",\\\"@totalsRow\\\",\\\"@filterHeaders\\\",\\\"@parent\\\",\\\"@nested\\\",\\\"@doNotPrint\\\",\\\"@periodCount\\\"],[[30,1,[\\\"children\\\"]],[30,0,[\\\"columnCount\\\"]],[28,[37,9],[[30,0],\\\"toggleShowChildren\\\"],null],[30,0,[\\\"showMonth\\\"]],[30,0,[\\\"showYTD\\\"]],[30,1,[\\\"name\\\"]],true,[30,1],true,[28,[37,5],[[30,1,[\\\"print\\\"]]],null],[30,0,[\\\"periodCount\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[1]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"totalsRow\\\"]],[[[1,\\\"  \\\"],[10,\\\"tr\\\"],[15,0,[29,[\\\"data-table__total-row\\\\n      \\\",[52,[28,[37,4],[[30,0,[\\\"doNotPrintTotal\\\"]],[30,0,[\\\"doNotPrint\\\"]]],null],\\\"do-not-print\\\"]]]],[12],[1,\\\"\\\\n    \\\"],[10,\\\"td\\\"],[14,0,\\\"financials-table__account-name financials-table__indented-cell financials-table__indented-cell--depth-0\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[[30,0,[\\\"filterHeaders\\\"]],[28,[37,5],[[30,0,[\\\"nested\\\"]]],null]],null],[[[1,\\\"        \\\"],[11,3],[24,0,\\\"financials-table__print-toggle do-not-print\\\"],[4,[38,9],[[30,0],[30,0,[\\\"toggleProperty\\\"]],\\\"doNotPrintTotal\\\"],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,10],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"doNotPrintTotal\\\"]],\\\"eye-slash\\\",\\\"eye\\\"]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[1,[30,0,[\\\"totalsRow\\\"]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,1],[[28,[37,1],[[30,0,[\\\"totals\\\"]]],null]],null],null,[[[41,[28,[37,7],[[30,0,[\\\"showMonth\\\"]],[28,[37,19],[[30,3,[\\\"month\\\"]],null],null]],null],[[[1,\\\"        \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n            \\\",[52,[28,[37,15],[[30,3,[\\\"month\\\"]],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,17],[[30,3,[\\\"month\\\"]]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[[30,0,[\\\"showYTD\\\"]],[28,[37,19],[[30,3,[\\\"ytd\\\"]],null],null]],null],[[[1,\\\"        \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n            \\\",[52,[28,[37,15],[[30,3,[\\\"ytd\\\"]],0],null],\\\"financials-table__negative-value\\\"],\\\"\\\\n            \\\"]]],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,17],[[30,3,[\\\"ytd\\\"]]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[[30,0,[\\\"showMonth\\\"]],[28,[37,19],[[30,3,[\\\"continuous\\\"]],null],null]],null],[[[1,\\\"        \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n            \\\",[52,[28,[37,15],[[30,3,[\\\"continuous\\\"]],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,17],[[30,3,[\\\"continuous\\\"]]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[[28,[37,4],[[30,0,[\\\"showMonth\\\"]],[30,0,[\\\"showYTD\\\"]]],null]],null],[[[1,\\\"        \\\"],[10,\\\"td\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null]],[3]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"account\\\",\\\"period\\\",\\\"total\\\"],false,[\\\"each\\\",\\\"-track-array\\\",\\\"tr\\\",\\\"if\\\",\\\"or\\\",\\\"not\\\",\\\"td\\\",\\\"and\\\",\\\"a\\\",\\\"action\\\",\\\"fa-icon\\\",\\\"eq\\\",\\\"span\\\",\\\"info-popup\\\",\\\"concat\\\",\\\"lt\\\",\\\"get\\\",\\\"number-format\\\",\\\"personal-financial-table-section\\\",\\\"not-eq\\\"]]\",\n    \"moduleName\": \"portal/components/personal-financial-table-section.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    tagName: '',\n    columnCount: (0, _object.computed)('periodCount', 'showMonth', 'showYTD', function () {\n      const periodCount = (0, _object.get)(this, 'periodCount') || 1;\n      const colsPerPeriod = (0, _object.get)(this, 'showMonth') + (0, _object.get)(this, 'showYTD') || 1; // boolean addition+\n      return periodCount * colsPerPeriod;\n    }),\n    columnCountArray: (0, _object.computed)('columnCount', function () {\n      const array = [];\n      const count = (0, _object.get)(this, 'columnCount');\n      for (let i = 0; i < count; i++) {\n        array.push(i);\n      }\n      return array;\n    }),\n    totals: (0, _object.computed)('accounts.0.data.length', 'accounts.@each.data', function () {\n      const notEnoughData = (0, _object.get)(this, 'accounts.length') === 0 || (0, _object.get)(this, 'accounts.0.data.length') === 0;\n      if (notEnoughData) return [];\n      const accounts = (0, _object.get)(this, 'accounts');\n      const periodic = (0, _object.get)(accounts, '0.periodic');\n      const totals = periodic ? this.getPeriodicTotals(accounts) : this.getContinuousTotals(accounts);\n\n      // Yeah idk, that's how the last guy did it\n      (0, _object.set)(totals, 'print', true);\n      return totals;\n    }),\n    sumDrCrValues(values, periodType) {\n      return (0, _lodash.default)(values).map(({\n        multiplier,\n        values\n      }) => multiplier * ((0, _object.get)(values, `${periodType}.value`) || 0)).sum();\n    },\n    extractAccountValues(account, periodIndex) {\n      const {\n        debitCredit,\n        periodic\n      } = (0, _object.getProperties)(account, 'debitCredit', 'periodic');\n\n      // |    | Cr | Dr |\n      // | PL |  1 | -1 |\n      // | BS | -1 |  1 |\n      const multiplier = (debitCredit === 'CREDIT' ? 1 : -1) * (periodic ? 1 : -1);\n      const values = (0, _object.get)(account, `data.${periodIndex}.periods.0.periodTypes`) || {};\n      return {\n        multiplier,\n        values\n      };\n    },\n    getPeriodicTotals(accounts) {\n      const numPeriods = (0, _object.get)(this, 'accounts.0.data.length');\n      const periods = _lodash.default.range(0, numPeriods);\n      return periods.map(i => {\n        const periodData = accounts.map(account => this.extractAccountValues(account, i));\n        const month = this.sumDrCrValues(periodData, 'month');\n        const ytd = this.sumDrCrValues(periodData, 'ytd');\n        return {\n          month,\n          ytd,\n          continuous: null\n        };\n      });\n    },\n    getContinuousTotals(accounts) {\n      const numPeriods = (0, _object.get)(this, 'accounts.0.data.length');\n      const periods = _lodash.default.range(0, numPeriods);\n      return periods.map(i => {\n        const periodData = accounts.map(account => this.extractAccountValues(account, i));\n        const continuous = this.sumDrCrValues(periodData, 'month');\n        return {\n          month: null,\n          ytd: null,\n          continuous\n        };\n      });\n    },\n    actions: {\n      toggleShowChildren(account) {\n        this.toggleShowChildren(account);\n      },\n      toggleShowBreakdown(...args) {\n        this.toggleShowBreakdown(...args);\n      },\n      toggleFilter(account) {\n        (0, _object.set)(account, 'print', !(0, _object.get)(account, 'print'));\n      }\n    }\n  }));\n});","define(\"portal/components/pm-integration-settings\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"@ember/service\", \"@ember/object\", \"@glimmer/tracking\", \"portal/config/environment\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _service, _object, _tracking, _environment, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/object\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"portal/config/environment\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <p class='mt-2 mb-0 text-muted'>\n    {{t 'components.pm-integration-settings.placemakersIntegrationDescription'}}\n  </p>\n  \n  <div class='mt-2 d-flex align-items-center'>\n    {{#if (and this.pmIntegration.isInitialized this.pmIntegration.isConnected)}}\n      <span class='float-end'>\n        {{#if this.pmIntegration.updateOption.isRunning}}\n          <LoadingIcon @type='spinner' />\n          {{t 'common.Saving'}}\n        {{else if this.pmIntegration.updateOption.performCount}}\n          <FaIcon @icon='check' />\n          {{t 'components.pm-integration-settings.Up to date'}}\n        {{/if}}\n      </span>\n    {{/if}}\n    {{t\n      'components.pm-integration-settings.toViewYourPlacemakersAccountOrToCreateOne'\n    }}:\n    <a\n      href='{{this.pmBaseURL}}'\n      class='link ps-1'\n      target='_blank'\n      rel='noopener noreferrer'\n    >\n      {{t 'components.pm-integration-settings.Click here'}}\n      <FaIcon @icon='external-link-alt' @size='sm' />\n    </a>\n  </div>\n  \n  <div class='mt-3'>\n    {{#if this.pmIntegration.isInitialized}}\n      {{#if this.pmIntegration.isConnected}}\n        {{#let\n          (changeset this.integrationOptions this.pmValidationMap)\n          as |pmModel|\n        }}\n          <PtlInput\n            @type='checkbox'\n            @label={{t 'components.pm-integration-settings.Auto sync status'}}\n            @key='autoSync'\n            @model={{pmModel}}\n            @role='switch'\n            @forceValidationVisible={{gt this.savePmConnection.performCount 0}}\n            disabled={{this.savePmConnection.isRunning}}\n          />\n          <PtlInput\n            @type='select'\n            @label={{t 'components.pm-integration-settings.Branch'}}\n            @key='branchCode'\n            @options={{this.pmStoreList}}\n            @model={{pmModel}}\n            @forceValidationVisible={{gt this.savePmConnection.performCount 0}}\n            disabled={{this.savePmConnection.isRunning}}\n          />\n          <PtlInput\n            @type='text'\n            @label={{t 'components.pm-integration-settings.Account code'}}\n            @key='accountCode'\n            @model={{pmModel}}\n            @forceValidationVisible={{gt this.savePmConnection.performCount 0}}\n            disabled={{this.savePmConnection.isRunning}}\n          />\n          <div>\n            <button\n              type='button'\n              class='btn btn-link text-decoration-underline m- p-0'\n              disabled={{this.syncPriceBookNow.isRunning}}\n              {{on 'click' (perform this.syncPriceBookNow this.xeroModel)}}\n            >\n              {{#if this.syncPriceBookNow.isRunning}}\n                <span\n                  class='spinner-border spinner-border-sm'\n                ></span>&nbsp;&nbsp;Syncing&hellip;\n              {{else}}\n                {{t 'components.pm-integration-settings.Sync Now'}}\n              {{/if}}\n            </button>\n          </div>\n          <div class='d-flex flex-grow-1 mt-3'>\n            <button\n              type='button'\n              class='btn btn-danger text-white'\n              disabled={{this.disconnect.isRunning}}\n              {{on 'click' (perform this.disconnect)}}\n            >\n              {{#if this.disconnect.isRunning}}\n                <span\n                  class='spinner-border spinner-border-sm'\n                ></span>&nbsp;&nbsp;{{t 'common.Disconnecting'}}&hellip;\n              {{else}}\n                {{t 'common.Disconnect'}}\n              {{/if}}\n            </button>\n            <button\n              type='button'\n              class='btn btn-primary ms-auto'\n              disabled={{this.savePmConnection.isRunning}}\n              {{on 'click' (perform this.savePmConnection pmModel)}}\n            >\n              {{#if this.savePmConnection.isRunning}}\n                <span\n                  class='spinner-border spinner-border-sm'\n                ></span>&nbsp;&nbsp;{{t 'common.Saving'}}&hellip;\n              {{else}}\n                {{t 'common.Save'}}\n                PlaceMakers\n              {{/if}}\n            </button>\n          </div>\n        {{/let}}\n      {{else}}\n        <div class='mt-2'>\n          <button\n            type='button'\n            class='btn btn-primary'\n            {{on 'click' this.initiatePMConnection}}\n          >\n            {{t 'components.pm-integration-settings.Connect to PlaceMakers'}}\n          </button>\n        </div>\n      {{/if}}\n    {{else}}\n      <LoadingIcon @type='spinner' />\n      {{t 'common.Initializing'}}\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"M+zdwd4j\",\n    \"block\": \"[[[10,2],[14,0,\\\"mt-2 mb-0 text-muted\\\"],[12],[1,\\\"\\\\n  \\\"],[1,[28,[35,1],[\\\"components.pm-integration-settings.placemakersIntegrationDescription\\\"],null]],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,0],[14,0,\\\"mt-2 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[[30,0,[\\\"pmIntegration\\\",\\\"isInitialized\\\"]],[30,0,[\\\"pmIntegration\\\",\\\"isConnected\\\"]]],null],[[[1,\\\"    \\\"],[10,1],[14,0,\\\"float-end\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"pmIntegration\\\",\\\"updateOption\\\",\\\"isRunning\\\"]],[[[1,\\\"        \\\"],[8,[39,6],null,[[\\\"@type\\\"],[\\\"spinner\\\"]],null],[1,\\\"\\\\n        \\\"],[1,[28,[35,1],[\\\"common.Saving\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"pmIntegration\\\",\\\"updateOption\\\",\\\"performCount\\\"]],[[[1,\\\"        \\\"],[8,[39,7],null,[[\\\"@icon\\\"],[\\\"check\\\"]],null],[1,\\\"\\\\n        \\\"],[1,[28,[35,1],[\\\"components.pm-integration-settings.Up to date\\\"],null]],[1,\\\"\\\\n      \\\"]],[]],null]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[1,[28,[35,1],[\\\"components.pm-integration-settings.toViewYourPlacemakersAccountOrToCreateOne\\\"],null]],[1,\\\":\\\\n  \\\"],[10,3],[15,6,[29,[[30,0,[\\\"pmBaseURL\\\"]]]]],[14,0,\\\"link ps-1\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[12],[1,\\\"\\\\n    \\\"],[1,[28,[35,1],[\\\"components.pm-integration-settings.Click here\\\"],null]],[1,\\\"\\\\n    \\\"],[8,[39,7],null,[[\\\"@icon\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",\\\"sm\\\"]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,0],[14,0,\\\"mt-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"pmIntegration\\\",\\\"isInitialized\\\"]],[[[41,[30,0,[\\\"pmIntegration\\\",\\\"isConnected\\\"]],[[[44,[[28,[37,10],[[30,0,[\\\"integrationOptions\\\"]],[30,0,[\\\"pmValidationMap\\\"]]],null]],[[[1,\\\"        \\\"],[8,[39,11],[[16,\\\"disabled\\\",[30,0,[\\\"savePmConnection\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@role\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,1],[\\\"components.pm-integration-settings.Auto sync status\\\"],null],\\\"autoSync\\\",[30,1],\\\"switch\\\",[28,[37,12],[[30,0,[\\\"savePmConnection\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[8,[39,11],[[16,\\\"disabled\\\",[30,0,[\\\"savePmConnection\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",[28,[37,1],[\\\"components.pm-integration-settings.Branch\\\"],null],\\\"branchCode\\\",[30,0,[\\\"pmStoreList\\\"]],[30,1],[28,[37,12],[[30,0,[\\\"savePmConnection\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[8,[39,11],[[16,\\\"disabled\\\",[30,0,[\\\"savePmConnection\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,1],[\\\"components.pm-integration-settings.Account code\\\"],null],\\\"accountCode\\\",[30,1],[28,[37,12],[[30,0,[\\\"savePmConnection\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[10,0],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-decoration-underline m- p-0\\\"],[16,\\\"disabled\\\",[30,0,[\\\"syncPriceBookNow\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,14],[\\\"click\\\",[28,[37,15],[[30,0,[\\\"syncPriceBookNow\\\"]],[30,0,[\\\"xeroModel\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"syncPriceBookNow\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  Syncing…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,1],[\\\"components.pm-integration-settings.Sync Now\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-3\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger text-white\\\"],[16,\\\"disabled\\\",[30,0,[\\\"disconnect\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,14],[\\\"click\\\",[28,[37,15],[[30,0,[\\\"disconnect\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"disconnect\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,1],[\\\"common.Disconnecting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,1],[\\\"common.Disconnect\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"savePmConnection\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,14],[\\\"click\\\",[28,[37,15],[[30,0,[\\\"savePmConnection\\\"]],[30,1]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"savePmConnection\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,1],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,1],[\\\"common.Save\\\"],null]],[1,\\\"\\\\n              PlaceMakers\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[1]]]],[]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"mt-2\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[24,4,\\\"button\\\"],[4,[38,14],[\\\"click\\\",[30,0,[\\\"initiatePMConnection\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,1],[\\\"components.pm-integration-settings.Connect to PlaceMakers\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[1,\\\"    \\\"],[8,[39,6],null,[[\\\"@type\\\"],[\\\"spinner\\\"]],null],[1,\\\"\\\\n    \\\"],[1,[28,[35,1],[\\\"common.Initializing\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"pmModel\\\"],false,[\\\"p\\\",\\\"t\\\",\\\"div\\\",\\\"if\\\",\\\"and\\\",\\\"span\\\",\\\"loading-icon\\\",\\\"fa-icon\\\",\\\"a\\\",\\\"let\\\",\\\"changeset\\\",\\\"ptl-input\\\",\\\"gt\\\",\\\"button\\\",\\\"on\\\",\\\"perform\\\"]]\",\n    \"moduleName\": \"portal/components/pm-integration-settings.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_dec = (0, _service.inject)('placemakers'), _class = class _class extends _component2.default {\n    get pmIntegrationEnabledOptions() {\n      return [{\n        value: true,\n        label: this.intl.t('common.Enabled')\n      }, {\n        value: false,\n        label: this.intl.t('common.Disabled')\n      }];\n    }\n    get autoSync() {\n      return this._autoSync;\n    }\n    set autoSync(value) {\n      this._autoSync = value;\n      this.pmIntegration.updateOption.perform('autoSync', value);\n      return value;\n    }\n    get integrationOptions() {\n      return this.pmIntegration.integrationOptions;\n    }\n    discoverSettings() {\n      const {\n        autoSync,\n        accountvalue,\n        branchvalue\n      } = this.pmIntegration.integrationOptions;\n      this._autoSync = autoSync;\n      this._accountvalue = accountvalue;\n      this._branchvalue = branchvalue;\n    }\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"pmIntegration\", _descriptor, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor2, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      // this list was pulled from: https://knowme.fbnzd.co.nz/accounts (creds in 1password)\n      // * the list provided directly from PM was wrong *\n      // it seems this list is correct...\n      // this list can apparently be fetched from their API, but probably not worth doing atm\n      _defineProperty(this, \"pmStoreList\", [{\n        label: 'PlaceMakers Ahuriri',\n        value: '226'\n      }, {\n        label: 'PlaceMakers Albany',\n        value: '422'\n      }, {\n        label: 'PlaceMakers Alexandra',\n        value: '195'\n      }, {\n        label: 'PlaceMakers Aoraki Hub',\n        value: '590'\n      }, {\n        label: 'PlaceMakers Ashburton',\n        value: '173'\n      }, {\n        label: 'PlaceMakers Auckland Expo',\n        value: '411'\n      }, {\n        label: 'PlaceMakers Auckland Frame & Truss',\n        value: '444'\n      }, {\n        label: 'PlaceMakers Auckland Hub',\n        value: '600'\n      }, {\n        label: 'PlaceMakers Blenheim',\n        value: '165'\n      }, {\n        label: 'PlaceMakers Christchurch Frame & Truss',\n        value: '155'\n      }, {\n        label: 'PlaceMakers Christchurch Hub',\n        value: '545'\n      }, {\n        label: 'PlaceMakers Clarence Street Hamilton',\n        value: '369'\n      }, {\n        label: 'PlaceMakers Cook St',\n        value: '481'\n      }, {\n        label: 'PlaceMakers Cranford Street',\n        value: '169'\n      }, {\n        label: 'PlaceMakers Cromwell',\n        value: '196'\n      }, {\n        label: 'PlaceMakers Dannevirke',\n        value: '287'\n      }, {\n        label: 'PlaceMakers Dunedin Frame And Truss',\n        value: '720'\n      }, {\n        label: 'PlaceMakers Dunedin',\n        value: '181'\n      }, {\n        label: 'PlaceMakers Evans Bay',\n        value: '293'\n      }, {\n        label: 'PlaceMakers Gisborne',\n        value: '277'\n      }, {\n        label: 'PlaceMakers Gore',\n        value: '185'\n      }, {\n        label: 'PlaceMakers Hastings PM (Old)',\n        value: '222'\n      }, {\n        label: 'PlaceMakers Hastings',\n        value: '225'\n      }, {\n        label: 'PlaceMakers Havelock North',\n        value: '224'\n      }, {\n        label: 'PlaceMakers Hawera',\n        value: '263'\n      }, {\n        label: 'PlaceMakers Hawkes Bay Frame And Truss',\n        value: '796'\n      }, {\n        label: 'PlaceMakers Hawkes Bay',\n        value: '592'\n      }, {\n        label: 'PlaceMakers Huntly',\n        value: '313'\n      }, {\n        label: 'PlaceMakers Hutt City',\n        value: '289'\n      }, {\n        label: 'PlaceMakers Invercargill',\n        value: '187'\n      }, {\n        label: 'PlaceMakers Kaiapoi',\n        value: '171'\n      }, {\n        label: 'PlaceMakers Kaitaia',\n        value: '461'\n      }, {\n        label: 'PlaceMakers Kaiwharawhara',\n        value: '292'\n      }, {\n        label: 'PlaceMakers Kapiti',\n        value: '283'\n      }, {\n        label: 'PlaceMakers Kerikeri',\n        value: '463'\n      }, {\n        label: 'PlaceMakers Levin',\n        value: '281'\n      }, {\n        label: 'PlaceMakers Mangawhai',\n        value: '416'\n      }, {\n        label: 'PlaceMakers Morrinsville',\n        value: '365'\n      }, {\n        label: 'PlaceMakers Mosgiel',\n        value: '183'\n      }, {\n        label: 'PlaceMakers Motueka',\n        value: '163'\n      }, {\n        label: 'PlaceMakers Mt Maunganui',\n        value: '377'\n      }, {\n        label: 'PlaceMakers Mt Wellington',\n        value: '485'\n      }, {\n        label: 'PlaceMakers Napier',\n        value: '221'\n      }, {\n        label: 'PlaceMakers Nelson Marlborough Hub',\n        value: '535'\n      }, {\n        label: 'PlaceMakers Nelson',\n        value: '161'\n      }, {\n        label: 'PlaceMakers New Lynn',\n        value: '479'\n      }, {\n        label: 'PlaceMakers New Plymouth',\n        value: '258'\n      }, {\n        label: 'PlaceMakers New Plymouth',\n        value: '262'\n      }, {\n        label: 'PlaceMakers Northern Frame & Truss',\n        value: '775'\n      }, {\n        label: 'PlaceMakers Northland Hub',\n        value: '540'\n      }, {\n        label: 'PlaceMakers Oamaru',\n        value: '179'\n      }, {\n        label: 'PlaceMakers Ohakune',\n        value: '266'\n      }, {\n        label: 'PlaceMakers Okatea Hub',\n        value: '575'\n      }, {\n        label: 'PlaceMakers Pakuranga',\n        value: '491'\n      }, {\n        label: 'PlaceMakers Palmerston North',\n        value: '276'\n      }, {\n        label: 'PlaceMakers Penrose',\n        value: '482'\n      }, {\n        label: 'PlaceMakers Porirua Expo',\n        value: '412'\n      }, {\n        label: 'PlaceMakers Porirua',\n        value: '285'\n      }, {\n        label: 'PlaceMakers Pukekohe',\n        value: '499'\n      }, {\n        label: 'PlaceMakers Queenstown - 191',\n        value: '191'\n      }, {\n        label: 'PlaceMakers Queenstown - 580',\n        value: '580'\n      }, {\n        label: 'PlaceMakers Riccarton Expo',\n        value: '413'\n      }, {\n        label: 'PlaceMakers Riccarton',\n        value: '167'\n      }, {\n        label: 'PlaceMakers Rolleston',\n        value: '172'\n      }, {\n        label: 'PlaceMakers Rotorua',\n        value: '387'\n      }, {\n        label: 'PlaceMakers Saxton Road',\n        value: '162'\n      }, {\n        label: 'PlaceMakers Silverdale',\n        value: '427'\n      }, {\n        label: 'PlaceMakers Supply Fix & Install',\n        value: '156'\n      }, {\n        label: 'PlaceMakers Takanini',\n        value: '439'\n      }, {\n        label: 'PlaceMakers Tasman Frame And Truss',\n        value: '745'\n      }, {\n        label: 'PlaceMakers Taupo Frame And Truss',\n        value: '770'\n      }, {\n        label: 'PlaceMakers Taupo',\n        value: '385'\n      }, {\n        label: 'PlaceMakers Te Anau',\n        value: '186'\n      }, {\n        label: 'PlaceMakers Te Rapa',\n        value: '368'\n      }, {\n        label: 'PlaceMakers Thames',\n        value: '362'\n      }, {\n        label: 'PlaceMakers Timaru',\n        value: '175'\n      }, {\n        label: 'PlaceMakers Twizel',\n        value: '176'\n      }, {\n        label: 'PlaceMakers Waiheke',\n        value: '405'\n      }, {\n        label: 'PlaceMakers Waikato Hub',\n        value: '565'\n      }, {\n        label: 'PlaceMakers Waikato/BOP Frame & Truss',\n        value: '702'\n      }, {\n        label: 'PlaceMakers Wairarapa (Old)',\n        value: '288'\n      }, {\n        label: 'PlaceMakers Wairarapa Hub',\n        value: '588'\n      }, {\n        label: 'PlaceMakers Wairarapa',\n        value: '286'\n      }, {\n        label: 'PlaceMakers Wairau Park',\n        value: '471'\n      }, {\n        label: 'PlaceMakers Wanaka',\n        value: '146'\n      }, {\n        label: 'PlaceMakers Warkworth',\n        value: '488'\n      }, {\n        label: 'PlaceMakers Wellington Frame & Truss',\n        value: '290'\n      }, {\n        label: 'PlaceMakers Wellington Hub',\n        value: '570'\n      }, {\n        label: 'PlaceMakers Westgate',\n        value: '473'\n      }, {\n        label: 'PlaceMakers Whakatane',\n        value: '382'\n      }, {\n        label: 'PlaceMakers Whanganui',\n        value: '265'\n      }, {\n        label: 'PlaceMakers Whangarei',\n        value: '415'\n      }, {\n        label: 'PlaceMakers Whitianga',\n        value: '363'\n      }, {\n        label: 'PlaceMakers Winton',\n        value: '189'\n      }]);\n      _defineProperty(this, \"pmBaseURL\", _environment.default.placemakers.baseURL);\n      _initializerDefineProperty(this, \"_autoSync\", _descriptor5, this);\n      _defineProperty(this, \"pmValidationMap\", {});\n      _defineProperty(this, \"disconnect\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.pmIntegration.disconnect();\n            this.notifications.success(this.intl.t('components.pm-integration-settings.PlaceMakers is disconnected'));\n          } catch (error) {\n            this.notifications.error({\n              error,\n              message: this.intl.t('components.pm-integration-settings.somethingWentWrongUnableToDisconnect')\n            });\n          }\n        }\n      }), null, \"disconnect\", null));\n      _defineProperty(this, \"savePmConnection\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          try {\n            changeset.validate();\n            changeset.execute();\n            yield changeset.save();\n            this.notifications.success(this.intl.t('shared.notification.Saved successfully'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('components.pm-integration-settings.somethingWentWrongWhileUpdatingPlaceMakers'),\n              error\n            });\n          }\n        }\n      }), null, \"savePmConnection\", null));\n      _defineProperty(this, \"syncPriceBookNow\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            const result = yield this.pmIntegration.syncPriceBookNow(this.sessionData.entity.id);\n            if (result.products > 0) {\n              this.notifications.success(this.intl.t('components.pm-integration-settings.successfullySyncedXProductPrices', {\n                number: result.products\n              }));\n            } else {\n              this.notifications.warning(this.intl.t('components.pm-integration-settings.placemakersReturnedNoProductPriceDataForYourSelectedBranch'));\n            }\n          } catch (error) {\n            if (error.wasAuthenticationError) return;\n            this.notifications.error({\n              error,\n              message: this.intl.t('components.pm-integration-settings.syncFailedMakeSureYourBranchAndAccountCodeAreCorrect')\n            });\n          }\n        }\n      }), null, \"syncPriceBookNow\", null));\n      this.pmIntegration.initialize.perform();\n    }\n    initiatePMConnection() {\n      this.pmIntegration.initiatePMConnection();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"pmIntegration\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"_autoSync\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"discoverSettings\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"discoverSettings\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"initiatePMConnection\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"initiatePMConnection\"), _class.prototype), _class));\n});","define(\"portal/components/pop-hover-over\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='pop-hover-over__container d-flex align-items-center' tabindex='-1'>\n    {{yield\n      (hash\n        Content=(component\n          'pop-hover-over/content' direction=@direction onClick=this.onItemClick\n        )\n      )\n    }}\n  </div>\n  */\n  {\n    \"id\": \"GSF6NheB\",\n    \"block\": \"[[[10,0],[14,0,\\\"pop-hover-over__container d-flex align-items-center\\\"],[14,\\\"tabindex\\\",\\\"-1\\\"],[12],[1,\\\"\\\\n  \\\"],[18,2,[[28,[37,2],null,[[\\\"Content\\\"],[[50,\\\"pop-hover-over/content\\\",0,null,[[\\\"direction\\\",\\\"onClick\\\"],[[30,1],[30,0,[\\\"onItemClick\\\"]]]]]]]]]],[1,\\\"\\\\n\\\"],[13]],[\\\"@direction\\\",\\\"&default\\\"],false,[\\\"div\\\",\\\"yield\\\",\\\"hash\\\",\\\"component\\\"]]\",\n    \"moduleName\": \"portal/components/pop-hover-over.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component2.default {\n    onItemClick() {\n      document.activeElement.blur();\n    }\n  });\n});","define(\"portal/components/pop-hover-over/content\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    class='pop-hover-over__content card shadow d-flex flex-column py-2 pop-hover-over__{{@direction}}'\n    {{on 'click' @onClick}}\n  >\n    {{yield}}\n  </div>\n  */\n  {\n    \"id\": \"vKlidCQN\",\n    \"block\": \"[[[11,0],[16,0,[29,[\\\"pop-hover-over__content card shadow d-flex flex-column py-2 pop-hover-over__\\\",[30,1]]]],[4,[38,1],[\\\"click\\\",[30,2]],null],[12],[1,\\\"\\\\n  \\\"],[18,3,null],[1,\\\"\\\\n\\\"],[13]],[\\\"@direction\\\",\\\"@onClick\\\",\\\"&default\\\"],false,[\\\"div\\\",\\\"on\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"portal/components/pop-hover-over/content.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"portal/components/pop-over\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    class='pop-over__container\n      {{if @disabled \"pop-over__container--disabled\"}}\n      d-flex align-items-center'\n    tabindex='-1'\n    {{on 'focusin' this.onContainerClick}}\n    {{did-insert this.initPosition}}\n    ...attributes\n  >\n    {{yield\n      (hash\n        Content=(component\n          'pop-over/content'\n          direction=@direction\n          onClick=this.onItemClick\n          fixed=@fixed\n        )\n      )\n    }}\n  </div>\n  */\n  {\n    \"id\": \"ASF48uoq\",\n    \"block\": \"[[[11,0],[16,0,[29,[\\\"pop-over__container\\\\n    \\\",[52,[30,1],\\\"pop-over__container--disabled\\\"],\\\"\\\\n    d-flex align-items-center\\\"]]],[24,\\\"tabindex\\\",\\\"-1\\\"],[17,2],[4,[38,2],[\\\"focusin\\\",[30,0,[\\\"onContainerClick\\\"]]],null],[4,[38,3],[[30,0,[\\\"initPosition\\\"]]],null],[12],[1,\\\"\\\\n  \\\"],[18,5,[[28,[37,5],null,[[\\\"Content\\\"],[[50,\\\"pop-over/content\\\",0,null,[[\\\"direction\\\",\\\"onClick\\\",\\\"fixed\\\"],[[30,3],[30,0,[\\\"onItemClick\\\"]],[30,4]]]]]]]]],[1,\\\"\\\\n\\\"],[13]],[\\\"@disabled\\\",\\\"&attrs\\\",\\\"@direction\\\",\\\"@fixed\\\",\\\"&default\\\"],false,[\\\"div\\\",\\\"if\\\",\\\"on\\\",\\\"did-insert\\\",\\\"yield\\\",\\\"hash\\\",\\\"component\\\"]]\",\n    \"moduleName\": \"portal/components/pop-over.hbs\",\n    \"isStrictMode\": false\n  });\n  const px = number => {\n    return number + 'px';\n  };\n  const parsePx = px => {\n    return px ? parseInt(px, 10) : 0;\n  };\n  const margin = 5; // px\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"contentClass\", this.args.fixed ? 'pop-over__content-fixed' : 'pop-over__content');\n    }\n    isVisible(width, height, {\n      top,\n      right,\n      bottom,\n      left\n    }) {\n      if (top !== undefined && (\n      // the element is rendered above the page\n      top < 0 ||\n      // the element is taller than the viewport\n      top + height > window.innerHeight)) {\n        return false;\n      }\n      if (right !== undefined && (\n      // the element is rendered over the right of the page\n      right < 0 ||\n      // the element is wider than the viewport\n      right + width > window.innerWidth)) {\n        return false;\n      }\n      if (bottom !== undefined && (\n      // the element is rendered over the bottom of the page\n      bottom < 0 ||\n      // the element is taller than the viewport\n      bottom + height > window.innerHeight)) {\n        return false;\n      }\n      if (left !== undefined && (\n      // the element is rendered over the left of the page\n      left < 0 ||\n      // the element is wider than the viewport\n      left + width > window.innerWidth)) {\n        return false;\n      }\n      return true;\n    }\n    calculatePositionFixed(container, direction, originalDirection) {\n      let checkedAllDirections = false;\n      if (!originalDirection) {\n        originalDirection = direction;\n      } else {\n        checkedAllDirections = direction === originalDirection;\n      }\n      const containerRect = container.getBoundingClientRect();\n      const content = container.querySelector('.' + this.contentClass);\n      const contentRect = content.getBoundingClientRect();\n      const contentStyle = window.getComputedStyle(content);\n      const contentOuterWidth = contentRect.width + parsePx(contentStyle.borderLeftWidth) + parsePx(contentStyle.paddingLeft) + parsePx(contentStyle.borderRightWidth) + parsePx(contentStyle.paddingRight);\n      const contentOuterHeight = contentRect.height + parsePx(contentStyle.borderTopHeight) + parsePx(contentStyle.paddingTop) + parsePx(contentStyle.borderBottomHeight) + parsePx(contentStyle.paddingBottom);\n\n      // reset the calculation each time\n      content.style.removeProperty('top');\n      content.style.removeProperty('right');\n      content.style.removeProperty('bottom');\n      content.style.removeProperty('left');\n      switch (direction) {\n        case 'top':\n          {\n            const bottom = window.innerHeight - containerRect.top + margin;\n            const left = containerRect.left + containerRect.width / 2 - contentOuterWidth / 2;\n            if (!checkedAllDirections && !this.isVisible(contentOuterWidth, contentOuterHeight, {\n              bottom,\n              left\n            })) {\n              return this.calculatePositionFixed(container, 'top-right', originalDirection);\n            }\n            content.style.bottom = px(bottom);\n            content.style.left = px(left);\n            break;\n          }\n        case 'top-right':\n          {\n            const bottom = window.innerHeight - containerRect.top + margin;\n            const left = containerRect.left;\n            if (!checkedAllDirections && !this.isVisible(contentOuterWidth, contentOuterHeight, {\n              bottom,\n              left\n            })) {\n              return this.calculatePositionFixed(container, 'right', originalDirection);\n            }\n            content.style.bottom = px(bottom);\n            content.style.left = px(left);\n            break;\n          }\n        case 'right':\n          {\n            const left = containerRect.right + margin;\n            const top = containerRect.top + containerRect.height / 2 - contentRect.height / 2;\n            if (!checkedAllDirections && !this.isVisible(contentOuterWidth, contentOuterHeight, {\n              left,\n              top\n            })) {\n              return this.calculatePositionFixed(container, 'bottom-right', originalDirection);\n            }\n            content.style.left = px(left);\n            content.style.top = px(top);\n            break;\n          }\n        case 'bottom-right':\n          {\n            const top = containerRect.bottom + margin;\n            const left = containerRect.left;\n            if (!checkedAllDirections && !this.isVisible(contentOuterWidth, contentOuterHeight, {\n              top,\n              left\n            })) {\n              return this.calculatePositionFixed(container, 'bottom', originalDirection);\n            }\n            content.style.top = px(top);\n            content.style.left = px(left);\n            break;\n          }\n        case 'bottom':\n          {\n            const top = containerRect.bottom + margin;\n            const left = containerRect.left + containerRect.width / 2 - contentOuterWidth / 2;\n            if (!checkedAllDirections && !this.isVisible(contentOuterWidth, contentOuterHeight, {\n              top,\n              left\n            })) {\n              return this.calculatePositionFixed(container, 'bottom-left', originalDirection);\n            }\n            content.style.top = px(top);\n            content.style.left = px(left);\n            break;\n          }\n        case 'bottom-left':\n          {\n            const top = containerRect.bottom + margin;\n            const right = window.innerWidth - containerRect.right;\n            if (!checkedAllDirections && !this.isVisible(contentOuterWidth, contentOuterHeight, {\n              top,\n              right\n            })) {\n              return this.calculatePositionFixed(container, 'left', originalDirection);\n            }\n            content.style.top = px(top);\n            content.style.right = px(right);\n            break;\n          }\n        case 'left':\n          {\n            const right = window.innerWidth - containerRect.left + margin;\n            const top = containerRect.top + containerRect.height / 2 - contentRect.height / 2;\n            if (!checkedAllDirections && !this.isVisible(contentOuterWidth, contentOuterHeight, {\n              right,\n              top\n            })) {\n              return this.calculatePositionFixed(container, 'top-left', originalDirection);\n            }\n            content.style.right = px(right);\n            content.style.top = px(top);\n            break;\n          }\n        case 'top-left':\n          {\n            const bottom = window.innerHeight - containerRect.top + margin;\n            const right = window.innerWidth - containerRect.right;\n            if (!checkedAllDirections && !this.isVisible(contentOuterWidth, contentOuterHeight, {\n              bottom,\n              right\n            })) {\n              return this.calculatePositionFixed(container, 'top', originalDirection);\n            }\n            content.style.bottom = px(bottom);\n            content.style.right = px(right);\n            break;\n          }\n      }\n    }\n    calculatePositionAbsolute(container, direction) {\n      const containerRect = container.getBoundingClientRect();\n      const containerStyle = window.getComputedStyle(container);\n      const containerWidth = containerRect.width;\n      const containerLeftPadding = parsePx(containerStyle.borderLeftWidth) + parsePx(containerStyle.paddingLeft);\n      const containerRightPadding = parsePx(containerStyle.borderRightWidth) + parsePx(containerStyle.paddingRight);\n      const containerHeight = containerRect.height;\n      const containerTopPadding = parsePx(containerStyle.borderTopWidth) + parsePx(containerStyle.paddingTop);\n      const containerBottomPadding = parsePx(containerStyle.borderBottomWidth) + parsePx(containerStyle.paddingBottom);\n      const content = container.querySelector('.' + this.contentClass);\n      const contentRect = content.getBoundingClientRect();\n      const contentStyle = window.getComputedStyle(content);\n      const contentOuterWidth = contentRect.width + parsePx(contentStyle.borderLeftWidth) + parsePx(contentStyle.paddingLeft) + parsePx(contentStyle.borderRightWidth) + parsePx(contentStyle.paddingRight);\n      switch (direction) {\n        case 'top':\n          content.style.bottom = px(margin + containerHeight - containerTopPadding);\n          content.style.left = px(containerWidth / 2 / (contentOuterWidth / 2));\n          break;\n        case 'top-right':\n          content.style.bottom = px(margin + containerHeight - containerTopPadding);\n          content.style.left = px(containerLeftPadding);\n          break;\n        case 'right':\n          content.style.left = px(margin + containerWidth - containerRightPadding);\n          break;\n        case 'bottom-right':\n          content.style.top = px(margin + containerHeight - containerBottomPadding);\n          content.style.left = px(containerLeftPadding);\n          break;\n        case 'bottom':\n          content.style.top = px(margin + containerHeight - containerBottomPadding);\n          content.style.left = px(containerWidth / 2 / (contentOuterWidth / 2));\n          break;\n        case 'bottom-left':\n          content.style.top = px(margin + containerHeight - containerBottomPadding);\n          content.style.right = px(containerRightPadding);\n          break;\n        case 'left':\n          content.style.right = px(margin + containerWidth - containerLeftPadding);\n          break;\n        case 'top-left':\n          content.style.bottom = px(margin + containerHeight - containerTopPadding);\n          content.style.right = px(containerRightPadding);\n          break;\n      }\n    }\n    onContainerClick(e) {\n      if (!this.args.fixed) return;\n      const container = e.target.closest('.pop-over__container');\n      this.calculatePositionFixed(container, this.args.direction);\n    }\n    initPosition(container) {\n      if (this.args.fixed) this.calculatePositionFixed(container, this.args.direction);else this.calculatePositionAbsolute(container, this.args.direction);\n    }\n    onItemClick() {\n      if (this.args.disableBlur) return;\n      document.activeElement.blur();\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"onContainerClick\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onContainerClick\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"initPosition\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"initPosition\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onItemClick\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onItemClick\"), _class.prototype), _class));\n});","define(\"portal/components/pop-over/content\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    class='dropdown-menu\n      {{if @fixed \"pop-over__content-fixed\" \"pop-over__content\"}}\n      card shadow d-flex flex-column py-2 pop-over__{{@direction}}'\n    {{on 'click' @onClick}}\n    ...attributes\n  >\n    {{yield}}\n  </div>\n  */\n  {\n    \"id\": \"KN7KLLMS\",\n    \"block\": \"[[[11,0],[16,0,[29,[\\\"dropdown-menu\\\\n    \\\",[52,[30,1],\\\"pop-over__content-fixed\\\",\\\"pop-over__content\\\"],\\\"\\\\n    card shadow d-flex flex-column py-2 pop-over__\\\",[30,2]]]],[17,3],[4,[38,2],[\\\"click\\\",[30,4]],null],[12],[1,\\\"\\\\n  \\\"],[18,5,null],[1,\\\"\\\\n\\\"],[13]],[\\\"@fixed\\\",\\\"@direction\\\",\\\"&attrs\\\",\\\"@onClick\\\",\\\"&default\\\"],false,[\\\"div\\\",\\\"if\\\",\\\"on\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"portal/components/pop-over/content.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component2.default {});\n});","define(\"portal/components/pop-up\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    class='pop-up__container {{if @disabled \"pop-up__container--disabled\"}}'\n    ...attributes\n  >\n    {{yield\n      (hash\n        Content=(component\n          'pop-up/content'\n          onClose=@onClose\n          scrollDivClass=@scrollDivClass\n          visible=@visible\n        )\n      )\n    }}\n  </div>\n  */\n  {\n    \"id\": \"Fv5TwSlD\",\n    \"block\": \"[[[11,0],[16,0,[29,[\\\"pop-up__container \\\",[52,[30,1],\\\"pop-up__container--disabled\\\"]]]],[17,2],[12],[1,\\\"\\\\n  \\\"],[18,6,[[28,[37,3],null,[[\\\"Content\\\"],[[50,\\\"pop-up/content\\\",0,null,[[\\\"onClose\\\",\\\"scrollDivClass\\\",\\\"visible\\\"],[[30,3],[30,4],[30,5]]]]]]]]],[1,\\\"\\\\n\\\"],[13]],[\\\"@disabled\\\",\\\"&attrs\\\",\\\"@onClose\\\",\\\"@scrollDivClass\\\",\\\"@visible\\\",\\\"&default\\\"],false,[\\\"div\\\",\\\"if\\\",\\\"yield\\\",\\\"hash\\\",\\\"component\\\"]]\",\n    \"moduleName\": \"portal/components/pop-up.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component2.default {});\n});","define(\"portal/components/pop-up/content\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/runloop\", \"jquery\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _tracking, _object, _runloop, _jquery, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/runloop\",0,\"jquery\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if @visible}}\n    <div\n      class='card shadow pop-up__content {{this.direction}}'\n      {{did-insert this.onDidInsert}}\n      {{will-destroy this.onWillDestroy}}\n      ...attributes\n    >\n      {{yield}}\n    </div>\n  {{/if}}\n  */\n  {\n    \"id\": \"peOLhJmK\",\n    \"block\": \"[[[41,[30,1],[[[1,\\\"  \\\"],[11,0],[16,0,[29,[\\\"card shadow pop-up__content \\\",[30,0,[\\\"direction\\\"]]]]],[17,2],[4,[38,2],[[30,0,[\\\"onDidInsert\\\"]]],null],[4,[38,3],[[30,0,[\\\"onWillDestroy\\\"]]],null],[12],[1,\\\"\\\\n    \\\"],[18,3,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@visible\\\",\\\"&attrs\\\",\\\"&default\\\"],false,[\\\"if\\\",\\\"div\\\",\\\"did-insert\\\",\\\"will-destroy\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"portal/components/pop-up/content.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"onClickListener\", _descriptor, this);\n      _initializerDefineProperty(this, \"direction\", _descriptor2, this);\n      _initializerDefineProperty(this, \"media\", _descriptor3, this);\n      _defineProperty(this, \"offsetListener\", void 0);\n      _defineProperty(this, \"resizeObserver\", void 0);\n    }\n    handleOffsetChange(element) {\n      const padding = 4;\n      const $element = (0, _jquery.default)(element);\n      // we know this component is always rendered inside the pop-up component\n      const $parent = $element.parent();\n      const $scrollDiv = this.args.scrollDivClass ? (0, _jquery.default)(this.args.scrollDivClass) : undefined;\n      const shouldRenderAboveParent = window.innerHeight - $parent[0].getBoundingClientRect().bottom < $element.outerHeight();\n      const scrollOffset = $scrollDiv ? $scrollDiv.scrollTop() : 0;\n      let marginTop = 0;\n      marginTop = shouldRenderAboveParent ? -($parent.outerHeight() + $element.outerHeight()) : 0;\n      marginTop -= scrollOffset;\n      if (marginTop >= 0) marginTop += padding;else marginTop -= padding;\n      $element.css('margin-top', `${marginTop}px`);\n    }\n    onDidInsert(element) {\n      if (this.args.onClose) {\n        (0, _runloop.next)(() => {\n          this.onClickListener = event => this.onClick(event, element);\n          document.addEventListener('click', this.onClickListener);\n        });\n      }\n\n      // this is only applicable for desktop\n      if (!this.media.isDesktop) return;\n      this.offsetListener = () => this.handleOffsetChange.bind(this)(element);\n\n      // run the first time manually\n      this.offsetListener();\n\n      // on div resize\n      this.resizeObserver = new ResizeObserver(this.offsetListener);\n      this.resizeObserver.observe(element);\n\n      // on window resize\n      (0, _jquery.default)(window).on('resize', this.offsetListener);\n      // on scroll div scroll\n      (0, _jquery.default)(this.args.scrollDivClass).on('scroll', this.offsetListener);\n    }\n    onWillDestroy() {\n      if (this.onClickListener) document.removeEventListener('click', this.onClickListener);\n      this.direction = null;\n      this.resizeObserver?.disconnect();\n      (0, _jquery.default)(window).off('resize', this.offsetListener);\n      (0, _jquery.default)(this.args.scrollDivClass).off('scroll', this.offsetListener);\n    }\n    onClick(event, element) {\n      const isFocusedWithin = event.composedPath()?.includes(element);\n      if (!isFocusedWithin) this.args.onClose();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"onClickListener\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"direction\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"media\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"onDidInsert\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onDidInsert\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onWillDestroy\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onWillDestroy\"), _class.prototype), _class));\n});","define(\"portal/components/power-calendar-multiple\", [\"exports\", \"ember-power-calendar/components/power-calendar-multiple\"], function (_exports, _powerCalendarMultiple) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _powerCalendarMultiple.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-power-calendar/components/power-calendar-multiple\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/power-calendar-multiple/days\", [\"exports\", \"ember-power-calendar/components/power-calendar-multiple/days\"], function (_exports, _days) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _days.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-power-calendar/components/power-calendar-multiple/days\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/power-calendar-range\", [\"exports\", \"ember-power-calendar/components/power-calendar-range\"], function (_exports, _powerCalendarRange) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _powerCalendarRange.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-power-calendar/components/power-calendar-range\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/power-calendar-range/days\", [\"exports\", \"ember-power-calendar/components/power-calendar-range/days\"], function (_exports, _days) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _days.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-power-calendar/components/power-calendar-range/days\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/power-calendar\", [\"exports\", \"ember-power-calendar/components/power-calendar\"], function (_exports, _powerCalendar) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _powerCalendar.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-power-calendar/components/power-calendar\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/power-calendar/days\", [\"exports\", \"ember-power-calendar/components/power-calendar/days\"], function (_exports, _days) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _days.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-power-calendar/components/power-calendar/days\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/power-calendar/nav\", [\"exports\", \"ember-power-calendar/components/power-calendar/nav\"], function (_exports, _nav) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _nav.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-power-calendar/components/power-calendar/nav\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/power-select-after-options-button\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if @isLoading}}\n    <div class='d-flex align-items-center'>\n      <div class='spinner-border spinner-border-sm'></div>&nbsp;{{or\n        @loadingText\n        'Syncing'\n      }}&hellip;\n    </div>\n  {{else}}\n    <button\n      type='button'\n      data-test-after-options-button\n      class='power-select-after-options-button__button\n        {{if @isLoading \"power-select-after-options-button__button--loading\"}}'\n      {{on 'click' @onClick}}\n    >\n      <FaIcon @icon={{@icon}} />&nbsp;{{@text}}\n    </button>\n  {{/if}}\n  */\n  {\n    \"id\": \"hLVVBXnV\",\n    \"block\": \"[[[41,[30,1],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\" \\\"],[1,[28,[35,2],[[30,2],\\\"Syncing\\\"],null]],[1,\\\"…\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[11,\\\"button\\\"],[24,\\\"data-test-after-options-button\\\",\\\"\\\"],[16,0,[29,[\\\"power-select-after-options-button__button\\\\n      \\\",[52,[30,1],\\\"power-select-after-options-button__button--loading\\\"]]]],[24,4,\\\"button\\\"],[4,[38,4],[\\\"click\\\",[30,3]],null],[12],[1,\\\"\\\\n    \\\"],[8,[39,5],null,[[\\\"@icon\\\"],[[30,4]]],null],[1,\\\" \\\"],[1,[30,5]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[\\\"@isLoading\\\",\\\"@loadingText\\\",\\\"@onClick\\\",\\\"@icon\\\",\\\"@text\\\"],false,[\\\"if\\\",\\\"div\\\",\\\"or\\\",\\\"button\\\",\\\"on\\\",\\\"fa-icon\\\"]]\",\n    \"moduleName\": \"portal/components/power-select-after-options-button.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"portal/components/power-select-multiple\", [\"exports\", \"ember-power-select/components/power-select-multiple\"], function (_exports, _powerSelectMultiple) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _powerSelectMultiple.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-power-select/components/power-select-multiple\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/power-select-multiple/input\", [\"exports\", \"ember-power-select/components/power-select-multiple/input\"], function (_exports, _input) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _input.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-power-select/components/power-select-multiple/input\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/power-select-multiple/trigger\", [\"exports\", \"ember-power-select/components/power-select-multiple/trigger\"], function (_exports, _trigger) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _trigger.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-power-select/components/power-select-multiple/trigger\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/power-select\", [\"exports\", \"ember-power-select/components/power-select\"], function (_exports, _powerSelect) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _powerSelect.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-power-select/components/power-select\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/power-select/before-options\", [\"exports\", \"ember-power-select/components/power-select/before-options\"], function (_exports, _beforeOptions) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _beforeOptions.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-power-select/components/power-select/before-options\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/power-select/input\", [\"exports\", \"ember-power-select/components/power-select/input\"], function (_exports, _input) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _input.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-power-select/components/power-select/input\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/power-select/label\", [\"exports\", \"ember-power-select/components/power-select/label\"], function (_exports, _label) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _label.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-power-select/components/power-select/label\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/power-select/no-matches-message\", [\"exports\", \"ember-power-select/components/power-select/no-matches-message\"], function (_exports, _noMatchesMessage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _noMatchesMessage.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-power-select/components/power-select/no-matches-message\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/power-select/options\", [\"exports\", \"ember-power-select/components/power-select/options\"], function (_exports, _options) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _options.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-power-select/components/power-select/options\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/power-select/placeholder\", [\"exports\", \"ember-power-select/components/power-select/placeholder\"], function (_exports, _placeholder) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _placeholder.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-power-select/components/power-select/placeholder\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/power-select/power-select-group\", [\"exports\", \"ember-power-select/components/power-select/power-select-group\"], function (_exports, _powerSelectGroup) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _powerSelectGroup.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-power-select/components/power-select/power-select-group\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/power-select/search-message\", [\"exports\", \"ember-power-select/components/power-select/search-message\"], function (_exports, _searchMessage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _searchMessage.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-power-select/components/power-select/search-message\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/power-select/trigger\", [\"exports\", \"ember-power-select/components/power-select/trigger\"], function (_exports, _trigger) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _trigger.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-power-select/components/power-select/trigger\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/pricing-page\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"portal/config/environment\", \"@ember/template-factory\"], function (_exports, _component, _component2, _environment, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"portal/config/environment\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! template-lint-disable require-iframe-title }}\n  <iframe src={{this.url}} class='buildaprice-frame'>\n  </iframe>\n  */\n  {\n    \"id\": \"6+6rIPQ9\",\n    \"block\": \"[[[10,\\\"iframe\\\"],[15,\\\"src\\\",[30,0,[\\\"url\\\"]]],[14,0,\\\"buildaprice-frame\\\"],[12],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"iframe\\\"]]\",\n    \"moduleName\": \"portal/components/pricing-page.hbs\",\n    \"isStrictMode\": false\n  });\n  const BUILDAPRICE_URL = _environment.default.urls.buildaprice;\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component2.default {\n    get url() {\n      return `${BUILDAPRICE_URL}/index-lite.jsp;jsessionid=${this.args.sessionId}?path=${encodeURIComponent(this.args.path)}`;\n    }\n  });\n});","define(\"portal/components/pricing-quote-uploader\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <button\n    type='button'\n    class='pricing-quote-uploader__upload-file-button'\n    {{on 'click' this.onManualUploadClick}}\n  >\n    <FaIcon @icon='upload' />&nbsp;Upload new file (&lt; 2 MB)\n  </button>\n  */\n  {\n    \"id\": \"dOjgPkal\",\n    \"block\": \"[[[11,\\\"button\\\"],[24,0,\\\"pricing-quote-uploader__upload-file-button\\\"],[24,4,\\\"button\\\"],[4,[38,1],[\\\"click\\\",[30,0,[\\\"onManualUploadClick\\\"]]],null],[12],[1,\\\"\\\\n  \\\"],[8,[39,2],null,[[\\\"@icon\\\"],[\\\"upload\\\"]],null],[1,\\\" Upload new file (< 2 MB)\\\\n\\\"],[13]],[],false,[\\\"button\\\",\\\"on\\\",\\\"fa-icon\\\"]]\",\n    \"moduleName\": \"portal/components/pricing-quote-uploader.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n    }\n    async onManualUploadClick() {\n      const input = document.createElement('input');\n      input.type = 'file';\n      input.accept = this.args.fileFormats;\n      input.onchange = this.onManualFileUpload;\n      input.click();\n    }\n    async onManualFileUpload(event) {\n      try {\n        const file = event.target.files[0];\n        this.args.onFileUpload(file);\n      } catch (error) {\n        this.notifications.error({\n          message: this.intl.t('components.pricing-quote-uploader.somethingWentWrongWhileUploadingFile'),\n          error\n        });\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"onManualUploadClick\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onManualUploadClick\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onManualFileUpload\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onManualFileUpload\"), _class.prototype), _class));\n});","define(\"portal/components/product-editor\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"@ember/object\", \"@glimmer/tracking\", \"ember-changeset\", \"@ember/service\", \"portal/config/environment\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _object, _tracking, _emberChangeset, _service, _environment, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"ember-changeset\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"portal/config/environment\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <ModalDialog\n    @containerClass='modal-content w-auto'\n    @overlayClass='modal'\n    @translucentOverlay={{true}}\n    @onClose={{@onClose}}\n  >\n  \n    {{#if this.initComponent.isRunning}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='modal-body'>\n        <form data-test-edit-product-form>\n          {{#if this.isSelectingFromExistingProducts}}\n            <NewComboBox\n              @isLoading={{or\n                this.loadMoreProducts.isRunning\n                this.onSearchProduct.isRunning\n              }}\n              @list={{this.productList}}\n              @noDataMessage={{t 'shared.product.No products'}}\n              @onSelect={{this.setProduct}}\n              @onSearch={{this.onSearchProduct}}\n              @debounce={{this.debounceTime}}\n              @label={{t 'common.Product'}}\n              @key='description'\n              @customDescription='supplierName'\n              @model={{this.productChangeSet}}\n              @hasNextPage={{this.hasNextProductPage}}\n              @pageSize={{this.recordPageSize}}\n              @onLoadMore={{this.loadMoreProducts}}\n              @disabled={{@onSaveProduct.isRunning}}\n              @forceValidationVisible={{gt @onSaveProduct.performCount 0}}\n            />\n          {{else}}\n            <PtlInput\n              @type='text'\n              @label={{t 'common.Product'}}\n              @key='description'\n              @model={{this.productChangeSet}}\n              disabled={{@onSaveProduct.isRunning}}\n              @forceValidationVisible={{gt @onSaveProduct.performCount 0}}\n            />\n          {{/if}}\n          <NewComboBox\n            @isLoading={{or\n              this.loadMoreSupplier.isRunning\n              this.getSuppliers.isRunning\n            }}\n            @list={{this.supplierList}}\n            @noDataMessage={{t 'common.No suppliers'}}\n            @onSelect={{this.setSupplier}}\n            @onSearch={{this.onSearchSupplier}}\n            @debounce={{this.debounceTime}}\n            @label={{t 'common.Supplier'}}\n            @key='supplierName'\n            @model={{this.productChangeSet}}\n            @hasNextPage={{this.hasNextSupplierPage}}\n            @pageSize={{this.recordPageSize}}\n            @onLoadMore={{this.loadMoreSupplier}}\n            @disabled={{@onSaveProduct.isRunning}}\n          />\n          {{#if this.isSelectingFromExistingProducts}}\n            <NewComboBox\n              @isLoading={{or this.loadMoreSku.isRunning this.getSku.isRunning}}\n              @list={{this.skuList}}\n              @noDataMessage={{t 'components.product-editor.No sku'}}\n              @onSelect={{this.setProduct}}\n              @onSearch={{this.onSearchSku}}\n              @debounce={{this.debounceTime}}\n              @label={{t 'common.SKU'}}\n              @key='sku'\n              @model={{this.productChangeSet}}\n              @hasNextPage={{this.hasNextSkuPage}}\n              @pageSize={{this.recordPageSize}}\n              @onLoadMore={{this.loadMoreSku}}\n              @disabled={{@onSaveProduct.isRunning}}\n            />\n          {{else}}\n            <PtlInput\n              @type='text'\n              @label={{t 'common.SKU'}}\n              @key='sku'\n              @model={{this.productChangeSet}}\n              disabled={{@onSaveProduct.isRunning}}\n              @forceValidationVisible={{gt @onSaveProduct.performCount 0}}\n            />\n          {{/if}}\n          <NewComboBox\n            @isLoading={{false}}\n            @list={{this.unitList}}\n            @noDataMessage={{t 'components.product-editor.No units'}}\n            @onSelect={{this.setUnit}}\n            @onSearch={{this.onSearchUnit}}\n            @label={{t 'common.Unit'}}\n            @key='unit'\n            @model={{this.productChangeSet}}\n            @hasNextPage={{this.hasNextUnitPage}}\n            @pageSize={{this.unitPageSize}}\n            @disabled={{@onSaveProduct.isRunning}}\n          />\n          {{#if (and this.isSelectingFromExistingProducts this.priceList.length)}}\n            <div class='product-editor__price-table-container'>\n              <table\n                class='table table-sm table-bordered product-editor__price-table'\n              >\n                <thead class='product-editor__price-table-thead'>\n                  <tr>\n                    <th>{{t 'common.Source'}}</th>\n                    <th>{{t 'common.Supplier'}}</th>\n                    <th class='text-right'>{{t 'common.Unit price'}}</th>\n                    <th></th>\n                  </tr>\n                </thead>\n                <tbody>\n                  {{#each this.priceList as |price|}}\n                    <tr>\n                      <td class='text-left align-middle'>{{price.source}}</td>\n                      <td class='text-left align-middle'>{{price.supplier}}</td>\n                      <td class='text-right align-middle'>\n                        {{number-format\n                          price.price\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                      <td class='text-center align-middle'>\n                        <button\n                          type='button'\n                          class='btn btn-link p-0'\n                          {{on 'click' (fn this.setPrice price)}}\n                        >\n                          {{t 'shared.product.Set price'}}\n                        </button>\n                      </td>\n                    </tr>\n                  {{/each}}\n                </tbody>\n              </table>\n            </div>\n          {{/if}}\n          <PtlInput\n            @type='currency'\n            @label={{t 'common.Unit price'}}\n            @key='unitPrice'\n            @model={{this.productChangeSet}}\n            disabled={{@onSaveProduct.isRunning}}\n          />\n        </form>\n      </div>\n      <div class='modal-footer d-flex'>\n        <div class='d-flex align-items-center'>\n          <button\n            type='button'\n            class='btn btn-secondary text-white ms-2'\n            data-test-new-product-close-button\n            disabled={{@onSaveProduct.isRunning}}\n            {{on 'click' @onClose}}\n          >{{t 'common.Cancel'}}</button>\n          <button\n            type='button'\n            class='btn btn-primary ms-2'\n            disabled={{@onSaveProduct.isRunning}}\n            {{on 'click' (perform @onSaveProduct this.productChangeSet)}}\n          >\n            {{#if @onSaveProduct.isRunning}}\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{if\n                @isCreateProduct\n                (t 'common.Creating')\n                (t 'common.Saving')\n              }}\n            {{else}}\n              {{if @isCreateProduct (t 'common.Create') (t 'common.Save')}}\n            {{/if}}\n          </button>\n        </div>\n      </div>\n    {{/if}}\n  </ModalDialog>\n  */\n  {\n    \"id\": \"zOyWr9SX\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@containerClass\\\",\\\"@overlayClass\\\",\\\"@translucentOverlay\\\",\\\"@onClose\\\"],[\\\"modal-content w-auto\\\",\\\"modal\\\",true,[30,1]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"initComponent\\\",\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"form\\\"],[14,\\\"data-test-edit-product-form\\\",\\\"\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isSelectingFromExistingProducts\\\"]],[[[1,\\\"          \\\"],[8,[39,5],null,[[\\\"@isLoading\\\",\\\"@list\\\",\\\"@noDataMessage\\\",\\\"@onSelect\\\",\\\"@onSearch\\\",\\\"@debounce\\\",\\\"@label\\\",\\\"@key\\\",\\\"@customDescription\\\",\\\"@model\\\",\\\"@hasNextPage\\\",\\\"@pageSize\\\",\\\"@onLoadMore\\\",\\\"@disabled\\\",\\\"@forceValidationVisible\\\"],[[28,[37,6],[[30,0,[\\\"loadMoreProducts\\\",\\\"isRunning\\\"]],[30,0,[\\\"onSearchProduct\\\",\\\"isRunning\\\"]]],null],[30,0,[\\\"productList\\\"]],[28,[37,7],[\\\"shared.product.No products\\\"],null],[30,0,[\\\"setProduct\\\"]],[30,0,[\\\"onSearchProduct\\\"]],[30,0,[\\\"debounceTime\\\"]],[28,[37,7],[\\\"common.Product\\\"],null],\\\"description\\\",\\\"supplierName\\\",[30,0,[\\\"productChangeSet\\\"]],[30,0,[\\\"hasNextProductPage\\\"]],[30,0,[\\\"recordPageSize\\\"]],[30,0,[\\\"loadMoreProducts\\\"]],[30,2,[\\\"isRunning\\\"]],[28,[37,8],[[30,2,[\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[8,[39,9],[[16,\\\"disabled\\\",[30,2,[\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,7],[\\\"common.Product\\\"],null],\\\"description\\\",[30,0,[\\\"productChangeSet\\\"]],[28,[37,8],[[30,2,[\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[8,[39,5],null,[[\\\"@isLoading\\\",\\\"@list\\\",\\\"@noDataMessage\\\",\\\"@onSelect\\\",\\\"@onSearch\\\",\\\"@debounce\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@hasNextPage\\\",\\\"@pageSize\\\",\\\"@onLoadMore\\\",\\\"@disabled\\\"],[[28,[37,6],[[30,0,[\\\"loadMoreSupplier\\\",\\\"isRunning\\\"]],[30,0,[\\\"getSuppliers\\\",\\\"isRunning\\\"]]],null],[30,0,[\\\"supplierList\\\"]],[28,[37,7],[\\\"common.No suppliers\\\"],null],[30,0,[\\\"setSupplier\\\"]],[30,0,[\\\"onSearchSupplier\\\"]],[30,0,[\\\"debounceTime\\\"]],[28,[37,7],[\\\"common.Supplier\\\"],null],\\\"supplierName\\\",[30,0,[\\\"productChangeSet\\\"]],[30,0,[\\\"hasNextSupplierPage\\\"]],[30,0,[\\\"recordPageSize\\\"]],[30,0,[\\\"loadMoreSupplier\\\"]],[30,2,[\\\"isRunning\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isSelectingFromExistingProducts\\\"]],[[[1,\\\"          \\\"],[8,[39,5],null,[[\\\"@isLoading\\\",\\\"@list\\\",\\\"@noDataMessage\\\",\\\"@onSelect\\\",\\\"@onSearch\\\",\\\"@debounce\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@hasNextPage\\\",\\\"@pageSize\\\",\\\"@onLoadMore\\\",\\\"@disabled\\\"],[[28,[37,6],[[30,0,[\\\"loadMoreSku\\\",\\\"isRunning\\\"]],[30,0,[\\\"getSku\\\",\\\"isRunning\\\"]]],null],[30,0,[\\\"skuList\\\"]],[28,[37,7],[\\\"components.product-editor.No sku\\\"],null],[30,0,[\\\"setProduct\\\"]],[30,0,[\\\"onSearchSku\\\"]],[30,0,[\\\"debounceTime\\\"]],[28,[37,7],[\\\"common.SKU\\\"],null],\\\"sku\\\",[30,0,[\\\"productChangeSet\\\"]],[30,0,[\\\"hasNextSkuPage\\\"]],[30,0,[\\\"recordPageSize\\\"]],[30,0,[\\\"loadMoreSku\\\"]],[30,2,[\\\"isRunning\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[8,[39,9],[[16,\\\"disabled\\\",[30,2,[\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,7],[\\\"common.SKU\\\"],null],\\\"sku\\\",[30,0,[\\\"productChangeSet\\\"]],[28,[37,8],[[30,2,[\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[8,[39,5],null,[[\\\"@isLoading\\\",\\\"@list\\\",\\\"@noDataMessage\\\",\\\"@onSelect\\\",\\\"@onSearch\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@hasNextPage\\\",\\\"@pageSize\\\",\\\"@disabled\\\"],[false,[30,0,[\\\"unitList\\\"]],[28,[37,7],[\\\"components.product-editor.No units\\\"],null],[30,0,[\\\"setUnit\\\"]],[30,0,[\\\"onSearchUnit\\\"]],[28,[37,7],[\\\"common.Unit\\\"],null],\\\"unit\\\",[30,0,[\\\"productChangeSet\\\"]],[30,0,[\\\"hasNextUnitPage\\\"]],[30,0,[\\\"unitPageSize\\\"]],[30,2,[\\\"isRunning\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,10],[[30,0,[\\\"isSelectingFromExistingProducts\\\"]],[30,0,[\\\"priceList\\\",\\\"length\\\"]]],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"product-editor__price-table-container\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-sm table-bordered product-editor__price-table\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"thead\\\"],[14,0,\\\"product-editor__price-table-thead\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,7],[\\\"common.Source\\\"],null]],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,7],[\\\"common.Supplier\\\"],null]],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"th\\\"],[14,0,\\\"text-right\\\"],[12],[1,[28,[35,7],[\\\"common.Unit price\\\"],null]],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"th\\\"],[12],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,17],[[28,[37,17],[[30,0,[\\\"priceList\\\"]]],null]],null],null,[[[1,\\\"                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-left align-middle\\\"],[12],[1,[30,3,[\\\"source\\\"]]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-left align-middle\\\"],[12],[1,[30,3,[\\\"supplier\\\"]]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right align-middle\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,19],[[30,3,[\\\"price\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-center align-middle\\\"],[12],[1,\\\"\\\\n                      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link p-0\\\"],[24,4,\\\"button\\\"],[4,[38,21],[\\\"click\\\",[28,[37,22],[[30,0,[\\\"setPrice\\\"]],[30,3]],null]],null],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[35,7],[\\\"shared.product.Set price\\\"],null]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[8,[39,9],[[16,\\\"disabled\\\",[30,2,[\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"currency\\\",[28,[37,7],[\\\"common.Unit price\\\"],null],\\\"unitPrice\\\",[30,0,[\\\"productChangeSet\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer d-flex\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[24,\\\"data-test-new-product-close-button\\\",\\\"\\\"],[16,\\\"disabled\\\",[30,2,[\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,21],[\\\"click\\\",[30,1]],null],[12],[1,[28,[35,7],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[16,\\\"disabled\\\",[30,2,[\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,21],[\\\"click\\\",[28,[37,23],[[30,2],[30,0,[\\\"productChangeSet\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[52,[30,4],[28,[37,7],[\\\"common.Creating\\\"],null],[28,[37,7],[\\\"common.Saving\\\"],null]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[52,[30,4],[28,[37,7],[\\\"common.Create\\\"],null],[28,[37,7],[\\\"common.Save\\\"],null]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]]]]],[\\\"@onClose\\\",\\\"@onSaveProduct\\\",\\\"price\\\",\\\"@isCreateProduct\\\"],false,[\\\"modal-dialog\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"form\\\",\\\"new-combo-box\\\",\\\"or\\\",\\\"t\\\",\\\"gt\\\",\\\"ptl-input\\\",\\\"and\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"tbody\\\",\\\"each\\\",\\\"-track-array\\\",\\\"td\\\",\\\"number-format\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"perform\\\",\\\"span\\\"]]\",\n    \"moduleName\": \"portal/components/product-editor.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(owner, args) {\n      super(owner, args);\n      _initializerDefineProperty(this, \"portalApiV2\", _descriptor, this);\n      _initializerDefineProperty(this, \"priceList\", _descriptor2, this);\n      _initializerDefineProperty(this, \"productChangeSet\", _descriptor3, this);\n      _initializerDefineProperty(this, \"store\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor6, this);\n      _initializerDefineProperty(this, \"product\", _descriptor7, this);\n      _initializerDefineProperty(this, \"unitData\", _descriptor8, this);\n      _initializerDefineProperty(this, \"productList\", _descriptor9, this);\n      _initializerDefineProperty(this, \"unitList\", _descriptor0, this);\n      _initializerDefineProperty(this, \"supplierList\", _descriptor1, this);\n      _initializerDefineProperty(this, \"skuList\", _descriptor10, this);\n      _initializerDefineProperty(this, \"productsCurrentPage\", _descriptor11, this);\n      _initializerDefineProperty(this, \"skuCurrentPage\", _descriptor12, this);\n      _initializerDefineProperty(this, \"suppliersCurrentPage\", _descriptor13, this);\n      _initializerDefineProperty(this, \"unitsCurrentPage\", _descriptor14, this);\n      _initializerDefineProperty(this, \"hasNextProductPage\", _descriptor15, this);\n      _initializerDefineProperty(this, \"hasNextSkuPage\", _descriptor16, this);\n      _initializerDefineProperty(this, \"hasNextSupplierPage\", _descriptor17, this);\n      _initializerDefineProperty(this, \"hasNextUnitPage\", _descriptor18, this);\n      _initializerDefineProperty(this, \"productFilter\", _descriptor19, this);\n      _initializerDefineProperty(this, \"skuFilter\", _descriptor20, this);\n      _initializerDefineProperty(this, \"supplierFilter\", _descriptor21, this);\n      _defineProperty(this, \"recordPageSize\", 10);\n      _defineProperty(this, \"unitPageSize\", 100);\n      _defineProperty(this, \"debounceTime\", _environment.default.debounceTimeMs);\n      _defineProperty(this, \"validateLength\", newValue => {\n        return newValue && newValue.length > 0 || this.intl.t('validation.Please provide a product name');\n      });\n      _defineProperty(this, \"productValidator\", ({\n        key,\n        newValue\n      }) => {\n        switch (key) {\n          case 'description':\n            return this.validateLength(newValue);\n          default:\n            break;\n        }\n      });\n      _defineProperty(this, \"validationMap\", {\n        description: this.validateLength\n      });\n      _defineProperty(this, \"initComponent\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          if (!this.args.productId) {\n            switch (this.args.productTable) {\n              case 'task-product':\n                this.product = yield this.store.createRecord(this.args.productTable, {\n                  quantity: 1,\n                  task: this.args.target,\n                  entity: this.args.entity\n                });\n                break;\n              case 'project-product':\n                this.product = yield this.store.createRecord(this.args.productTable, {\n                  quantity: 1,\n                  project: this.args.target,\n                  entity: this.args.entity\n                });\n                break;\n              case 'entity-product':\n                this.product = yield this.store.createRecord(this.args.productTable, {\n                  quantity: 1,\n                  entity: this.args.target\n                });\n                break;\n            }\n            this.priceList = [];\n          } else {\n            this.product = yield this.store.findRecord(this.args.productTable, this.args.productId);\n            if (this.isSelectingFromExistingProducts) yield this.getProductPrices.perform(true);\n          }\n          this.unitData = yield this.portalApiV2.authGet('/product-units');\n          this.totalUnits = this.unitData.pagination.totalRecords;\n          this.unitList = this.unitData.data;\n          this.productChangeSet = (0, _emberChangeset.Changeset)(this.product, this.productValidator, this.validationMap);\n        }\n      }), null, \"initComponent\", null));\n      _defineProperty(this, \"loadMoreProducts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            const productList = yield this.portalApiV2.authGet('/search-products', {\n              filter: this.productFilter,\n              pageSize: this.recordPageSize,\n              page: this.productsCurrentPage + 1\n            });\n            if (!productList.data?.length) {\n              this.hasNextProductPage = false;\n              return;\n            }\n            this.productsCurrentPage = productList.pagination.currentPage;\n            this.hasNextProductPage = productList.pagination.hasNextPage;\n            this.productList = [...this.productList, ...productList.data];\n          } catch (error) {\n            this.hasNextProductPage = false;\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongLoadingMoreProducts'),\n              error\n            });\n          }\n        }\n      }), null, \"loadMoreProducts\", null));\n      _defineProperty(this, \"loadMoreSku\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            const skuList = yield this.portalApiV2.authGet('/search-products', {\n              filter: this.skuFilter,\n              pageSize: this.recordPageSize,\n              page: this.skuCurrentPage + 1\n            });\n            if (!skuList.data?.length) {\n              this.hasNextSkuPage = false;\n              return;\n            }\n            this.skuCurrentPage = skuList.pagination.currentPage;\n            this.hasNextSkuPage = skuList.pagination.hasNextPage;\n            this.skuList = [...this.skuList, ...skuList.data];\n          } catch (error) {\n            this.hasNextSkuPage = false;\n            this.notifications.error({\n              message: this.intl.t('components.product-editor.Something went wrong loading more SKUs'),\n              error\n            });\n          }\n        }\n      }), null, \"loadMoreSku\", null));\n      _defineProperty(this, \"loadMoreSupplier\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            const supplierList = yield this.portalApiV2.authGet('/search-suppliers', {\n              filter: this.supplierFilter,\n              pageSize: this.recordPageSize,\n              page: this.suppliersCurrentPage + 1,\n              orderBy: 'name',\n              orderByDirection: 'desc'\n            });\n            if (!supplierList.data?.length) {\n              this.hasNextSupplierPage = false;\n              return;\n            }\n            this.suppliersCurrentPage = supplierList.pagination.currentPage;\n            this.hasNextSupplierPage = supplierList.pagination.hasNextPage;\n            this.supplierList = [...this.supplierList, ...supplierList.data];\n          } catch (error) {\n            this.hasNextSupplierPage = false;\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongLoadingMoreSuppliers'),\n              error\n            });\n          }\n        }\n      }), null, \"loadMoreSupplier\", null));\n      _defineProperty(this, \"onSearchProduct\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (searchTerm) {\n          if (searchTerm.length) {\n            this.productFilter.or = [{\n              field: 'description',\n              operator: 'ILIKE',\n              value: searchTerm\n            }];\n          } else {\n            this.productFilter.or = [];\n          }\n          const productList = yield this.portalApiV2.authGet('/search-products', {\n            filter: this.productFilter,\n            pageSize: this.recordPageSize,\n            page: 1\n          });\n          this.productsCurrentPage = productList.pagination.currentPage;\n          this.hasNextProductPage = productList.pagination.hasNextPage;\n          this.productList = productList.data;\n        }\n      }), null, \"onSearchProduct\", null));\n      _defineProperty(this, \"onSaveProduct\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (productChangeSet) {\n          yield productChangeSet.validate();\n          if (!productChangeSet.isValid) {\n            this.notifications.warning(productChangeSet.error.description.validation);\n            return;\n          }\n          this.args.onSaveProduct.perform(productChangeSet);\n        }\n      }), null, \"onSaveProduct\", null));\n      _defineProperty(this, \"onSearchSku\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (searchTerm) {\n          if (searchTerm.length) {\n            this.skuFilter.or = [{\n              field: 'sku',\n              operator: 'ILIKE',\n              value: searchTerm\n            }];\n          } else {\n            this.skuFilter.or = [];\n          }\n          yield this.getSku.perform(this.skuFilter);\n        }\n      }), null, \"onSearchSku\", null));\n      _defineProperty(this, \"getSku\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (filter) {\n          const skuList = yield this.portalApiV2.authGet('/search-products', {\n            filter,\n            pageSize: this.recordPageSize,\n            page: 1\n          });\n          this.skuCurrentPage = skuList.pagination.currentPage;\n          this.hasNextSkuPage = skuList.pagination.hasNextPage;\n          this.skuList = skuList.data;\n        }\n      }), null, \"getSku\", null));\n      _defineProperty(this, \"onSearchSupplier\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (searchTerm) {\n          if (searchTerm.length) {\n            this.supplierFilter.or = [{\n              field: 'name',\n              operator: 'ILIKE',\n              value: searchTerm\n            }];\n          } else {\n            this.supplierFilter.or = [];\n          }\n          yield this.getSuppliers.perform(this.supplierFilter);\n        }\n      }), null, \"onSearchSupplier\", null));\n      _defineProperty(this, \"getSuppliers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (filter) {\n          const suppliers = yield this.portalApiV2.authGet('/search-suppliers', {\n            filter,\n            pageSize: this.recordPageSize,\n            page: 1,\n            orderBy: 'name',\n            orderByDirection: 'desc'\n          });\n          this.suppliersCurrentPage = suppliers.pagination.currentPage;\n          this.hasNextSupplierPage = suppliers.pagination.hasNextPage;\n          this.supplierList = suppliers.data;\n        }\n      }), null, \"getSuppliers\", null));\n      _defineProperty(this, \"onSearchUnit\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (searchTerm) {\n          this.unitList = this.unitData.data.filter(u => {\n            const matchString = `${u.unit}`.replace(/\\s/g, '').toLowerCase();\n            return matchString.includes(searchTerm.replace(/\\s/g, '').toLowerCase());\n          });\n        }\n      }), null, \"onSearchUnit\", null));\n      _defineProperty(this, \"getProductPrices\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (fromInit) {\n          const filter = {\n            and: [{\n              field: 'entity',\n              operator: 'EQ',\n              value: this.args.entity.id\n            }, {\n              field: 'project',\n              operator: 'EQ',\n              value: this.args.target.project.get('id')\n            }, {\n              field: 'description',\n              operator: 'EQ',\n              value: this.product.description\n            }]\n          };\n          if (this.product.supplierName) filter.and.push({\n            field: 'supplierName',\n            operator: 'EQ',\n            value: this.product.supplierName\n          });\n          if (this.product.unit) filter.and.push({\n            field: 'unit',\n            operator: 'EQ',\n            value: this.product.unit\n          });\n          if (this.product.sku) filter.and.push({\n            field: 'sku',\n            operator: 'EQ',\n            value: this.product.sku\n          });\n          const prices = yield this.portalApiV2.authGet('/search-products', {\n            filter\n          });\n          this.priceList = prices.data.filter(p => (p.unit !== this.product.unit || p.supplierName !== this.product.supplierName || p.unitPrice !== this.product.unitPrice || !p.source.includes('Task')) && p.unitPrice > 0).map(p => {\n            return {\n              supplier: p.supplierName ?? this.intl.t('common.No suppliers'),\n              price: p.unitPrice,\n              source: p.source\n            };\n          });\n          if (!fromInit) {\n            const price = this.product.unitPrice || this.priceList[0]?.price || 0;\n            this.productChangeSet.set('unitPrice', price);\n          }\n        }\n      }), null, \"getProductPrices\", null));\n      this.initComponent.perform();\n    }\n    setProduct(product) {\n      this.productChangeSet.set('description', product.description);\n      this.productChangeSet.set('sku', product.sku);\n      this.productChangeSet.set('supplierName', product.supplierName);\n      this.productChangeSet.set('unit', product.unit);\n      this.product = product;\n      this.getProductPrices.perform();\n    }\n    setSupplier(value) {\n      this.productChangeSet.set('supplierName', value.supplierName);\n    }\n    setUnit(unit) {\n      this.productChangeSet.set('unit', unit.unit);\n    }\n    setPrice(value) {\n      if (value.supplier !== 'No supplier') this.productChangeSet.set('supplierName', value.supplier);\n      this.productChangeSet.set('unitPrice', value.price);\n    }\n    get isSelectingFromExistingProducts() {\n      return this.args.productTable === 'task-product' || !this.args.productId;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"portalApiV2\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"priceList\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"productChangeSet\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"product\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"unitData\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"productList\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"unitList\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"supplierList\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"skuList\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"productsCurrentPage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 1;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"skuCurrentPage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 1;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"suppliersCurrentPage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 1;\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"unitsCurrentPage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 1;\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"hasNextProductPage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"hasNextSkuPage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, \"hasNextSupplierPage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor18 = _applyDecoratedDescriptor(_class.prototype, \"hasNextUnitPage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor19 = _applyDecoratedDescriptor(_class.prototype, \"productFilter\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return {\n        and: [{\n          field: 'entity',\n          operator: 'EQ',\n          value: this.args.entity.id\n        }]\n      };\n    }\n  }), _descriptor20 = _applyDecoratedDescriptor(_class.prototype, \"skuFilter\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return {\n        and: [{\n          field: 'entity',\n          operator: 'EQ',\n          value: this.args.entity.id\n        }]\n      };\n    }\n  }), _descriptor21 = _applyDecoratedDescriptor(_class.prototype, \"supplierFilter\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return {\n        and: [{\n          field: 'entity',\n          operator: 'EQ',\n          value: this.args.entity.id\n        }]\n      };\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"setProduct\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setProduct\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setSupplier\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setSupplier\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setUnit\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setUnit\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setPrice\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setPrice\"), _class.prototype), _class));\n});","define(\"portal/components/product-selector\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"@ember/object\", \"ember-concurrency\", \"@glimmer/tracking\", \"@ember/service\", \"ember-changeset\", \"portal/config/environment\", \"portal/utils/search-filter\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _object, _emberConcurrency, _tracking, _service, _emberChangeset, _environment, _searchFilter, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"@ember/object\",0,\"ember-concurrency\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"ember-changeset\",0,\"portal/config/environment\",0,\"portal/utils/search-filter\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <ModalDialog\n    @containerClass='modal-content w-75 product-selector__modal-container'\n    @translucentOverlay={{true}}\n    @overlayClass='modal'\n    @onClose={{@onClose}}\n  >\n    <div {{did-insert (perform this.initComponent)}} hidden></div>\n    {{#if this.initComponent.isRunning}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='modal-body product-selector__content'>\n        <div class='row mb-4'>\n          <div class='col'>\n            <label class='mb-1'>\n              {{t 'shared.product.Search products'}}\n            </label>\n            <Input\n              class='form-control'\n              @type='text'\n              {{on 'input' (perform this.onChangeSearchTerm)}}\n              autocomplete='off'\n              disabled={{this.isAddingProduct}}\n            />\n          </div>\n          <div class='col'>\n            <span>\n              <label class='mb-1'>{{t\n                  'shared.product.Filter by supplier'\n                }}</label>\n              <SearchSelector\n                @disabled={{this.isAddingProduct}}\n                @noDataMessage={{t 'common.No suppliers'}}\n                @key='supplier'\n                @optionKeys={{array 'supplierName'}}\n                @model={{this.supplierChangeSet}}\n                @forceValidationVisible={{gt this.onSaveInvoice.performCount 0}}\n                @onSelect={{this.setSupplier}}\n                @onLoad={{this.loadSuppliers}}\n              />\n            </span>\n          </div>\n        </div>\n        <div class='d-flex mb-2 align-items-center'>\n          <div class='ms-auto'>{{t 'shared.product.canNotFindTheProduct'}}\n            <button\n              type='button'\n              class='btn btn-success text-white text-nowrap m-1'\n              {{on 'click' @onCreateProduct}}\n            >\n              <FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Create new'}}\n            </button>\n          </div>\n        </div>\n        <div class='product-selector__table-container'>\n          <PaginationTable\n            @tableHeader={{this.productHeader}}\n            @tableData={{this.productTableData}}\n            @noDataText={{t 'common.No data'}}\n            @pageSizes={{this.pageSizes}}\n            @pageSize={{this.pageSize}}\n            @pageIndex={{this.pageIndex}}\n            @onChangePageIndex={{this.onChangePageIndex}}\n            @onChangePageSize={{this.onChangePageSize}}\n            @isLoading={{this.getProducts.isRunning}}\n            @hasNextPage={{this.hasNextProductPage}}\n            @class='table-bordered'\n          />\n        </div>\n      </div>\n  \n      <div class='modal-footer d-flex'>\n        <div class='d-flex align-items-center'>\n          <button\n            type='button'\n            class='btn btn-secondary text-white ms-2'\n            data-test-new-product-close-button\n            disabled={{false}}\n            {{on 'click' @onClose}}\n          >{{t 'common.Close'}}</button>\n        </div>\n      </div>\n    {{/if}}\n  </ModalDialog>\n  */\n  {\n    \"id\": \"RG+SIKfz\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@containerClass\\\",\\\"@translucentOverlay\\\",\\\"@overlayClass\\\",\\\"@onClose\\\"],[\\\"modal-content w-75 product-selector__modal-container\\\",true,\\\"modal\\\",[30,1]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[11,0],[24,\\\"hidden\\\",\\\"\\\"],[4,[38,2],[[28,[37,3],[[30,0,[\\\"initComponent\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"initComponent\\\",\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[8,[39,5],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"modal-body product-selector__content\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"row mb-4\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,7],[\\\"shared.product.Search products\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[39,8],[[24,0,\\\"form-control\\\"],[24,\\\"autocomplete\\\",\\\"off\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isAddingProduct\\\"]]],[4,[38,9],[\\\"input\\\",[28,[37,3],[[30,0,[\\\"onChangeSearchTerm\\\"]]],null]],null]],[[\\\"@type\\\"],[\\\"text\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col\\\"],[12],[1,\\\"\\\\n          \\\"],[10,1],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,[28,[35,7],[\\\"shared.product.Filter by supplier\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[8,[39,11],null,[[\\\"@disabled\\\",\\\"@noDataMessage\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@onSelect\\\",\\\"@onLoad\\\"],[[30,0,[\\\"isAddingProduct\\\"]],[28,[37,7],[\\\"common.No suppliers\\\"],null],\\\"supplier\\\",[28,[37,12],[\\\"supplierName\\\"],null],[30,0,[\\\"supplierChangeSet\\\"]],[28,[37,13],[[30,0,[\\\"onSaveInvoice\\\",\\\"performCount\\\"]],0],null],[30,0,[\\\"setSupplier\\\"]],[30,0,[\\\"loadSuppliers\\\"]]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex mb-2 align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"ms-auto\\\"],[12],[1,[28,[35,7],[\\\"shared.product.canNotFindTheProduct\\\"],null]],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[24,4,\\\"button\\\"],[4,[38,9],[\\\"click\\\",[30,2]],null],[12],[1,\\\"\\\\n            \\\"],[8,[39,15],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,7],[\\\"common.Create new\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"product-selector__table-container\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,16],null,[[\\\"@tableHeader\\\",\\\"@tableData\\\",\\\"@noDataText\\\",\\\"@pageSizes\\\",\\\"@pageSize\\\",\\\"@pageIndex\\\",\\\"@onChangePageIndex\\\",\\\"@onChangePageSize\\\",\\\"@isLoading\\\",\\\"@hasNextPage\\\",\\\"@class\\\"],[[30,0,[\\\"productHeader\\\"]],[30,0,[\\\"productTableData\\\"]],[28,[37,7],[\\\"common.No data\\\"],null],[30,0,[\\\"pageSizes\\\"]],[30,0,[\\\"pageSize\\\"]],[30,0,[\\\"pageIndex\\\"]],[30,0,[\\\"onChangePageIndex\\\"]],[30,0,[\\\"onChangePageSize\\\"]],[30,0,[\\\"getProducts\\\",\\\"isRunning\\\"]],[30,0,[\\\"hasNextProductPage\\\"]],\\\"table-bordered\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer d-flex\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[24,\\\"data-test-new-product-close-button\\\",\\\"\\\"],[16,\\\"disabled\\\",false],[24,4,\\\"button\\\"],[4,[38,9],[\\\"click\\\",[30,1]],null],[12],[1,[28,[35,7],[\\\"common.Close\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]]]]],[\\\"@onClose\\\",\\\"@onCreateProduct\\\"],false,[\\\"modal-dialog\\\",\\\"div\\\",\\\"did-insert\\\",\\\"perform\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"label\\\",\\\"t\\\",\\\"input\\\",\\\"on\\\",\\\"span\\\",\\\"search-selector\\\",\\\"array\\\",\\\"gt\\\",\\\"button\\\",\\\"fa-icon\\\",\\\"pagination-table\\\"]]\",\n    \"moduleName\": \"portal/components/product-selector.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _initializerDefineProperty(this, \"portalApiV2\", _descriptor2, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor3, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor4, this);\n      _initializerDefineProperty(this, \"numberFormat\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _initializerDefineProperty(this, \"pageIndex\", _descriptor7, this);\n      _initializerDefineProperty(this, \"sortDirection\", _descriptor8, this);\n      _initializerDefineProperty(this, \"sortBy\", _descriptor9, this);\n      _initializerDefineProperty(this, \"searchTerm\", _descriptor0, this);\n      _initializerDefineProperty(this, \"hasNextProductPage\", _descriptor1, this);\n      _defineProperty(this, \"products\", []);\n      _defineProperty(this, \"pageSizes\", [10, 25, 50]);\n      _initializerDefineProperty(this, \"pageSize\", _descriptor10, this);\n      _defineProperty(this, \"recordPageSize\", 10);\n      _initializerDefineProperty(this, \"supplierChangeSet\", _descriptor11, this);\n      _defineProperty(this, \"suppliers\", []);\n      _defineProperty(this, \"suppliersPage\", void 0);\n      _defineProperty(this, \"suppliersSearchTerm\", void 0);\n      _defineProperty(this, \"initComponent\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          this.supplierChangeSet = (0, _emberChangeset.Changeset)({\n            supplier: null\n          });\n          yield this.getProducts.perform();\n        }\n      }), null, \"initComponent\", null));\n      _defineProperty(this, \"onChangeSearchTerm\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          yield (0, _emberConcurrency.timeout)(_environment.default.debounceTimeMs);\n          this.searchTerm = e.target.value.trim();\n          this.pageIndex = 1;\n          yield this.getProducts.perform();\n        }\n      }), {\n        restartable: true\n      }, \"onChangeSearchTerm\", null));\n      _defineProperty(this, \"getProducts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          let orFilters = [];\n          let andFilters = [{\n            field: 'entity',\n            operator: 'EQ',\n            value: this.sessionData.entity.id\n          }];\n          if (this.searchTerm.length) {\n            orFilters = [{\n              field: 'sku',\n              operator: 'ILIKE',\n              value: this.searchTerm\n            }, {\n              field: 'description',\n              operator: 'ILIKE',\n              value: this.searchTerm\n            }];\n          }\n          if (this.supplierChangeSet.get('supplier')?.supplierName) {\n            andFilters.push({\n              field: 'supplierName',\n              operator: 'EQ',\n              value: this.supplierChangeSet.get('supplier').supplierName\n            });\n          }\n          const filters = {\n            and: andFilters,\n            or: orFilters\n          };\n          let orderBy;\n          switch (this.sortBy) {\n            case 'Product':\n              orderBy = 'description';\n              break;\n            case 'Supplier':\n              orderBy = 'supplierName';\n              break;\n            case 'SKU':\n              orderBy = 'sku';\n              break;\n            case 'Unit':\n              orderBy = 'unit';\n              break;\n            case 'Unit price':\n              orderBy = 'unitPrice';\n              break;\n            default:\n              break;\n          }\n          const products = yield this.portalApiV2.authGet('/search-products', {\n            filter: filters,\n            orderBy: orderBy || 'description',\n            orderByDirection: this.sortDirection || 'asc',\n            pageSize: this.pageSize,\n            page: this.pageIndex\n          });\n          this.hasNextProductPage = products.pagination.hasNextPage;\n          this.products = products.data;\n        }\n      }), null, \"getProducts\", null));\n      _defineProperty(this, \"loadSuppliers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (searchTerm) {\n          try {\n            if (searchTerm !== this.suppliersSearchTerm) {\n              this.suppliersPage = undefined;\n              this.suppliers = [];\n              this.suppliersSearchTerm = searchTerm;\n            }\n            const supplierFilter = {\n              and: [{\n                field: 'entity',\n                operator: 'EQ',\n                value: this.sessionData.entity.id\n              }]\n            };\n            if (searchTerm?.length) {\n              supplierFilter.and.push((0, _searchFilter.default)(['name'], searchTerm, 'operator'));\n            }\n            const nextPageNumber = (this.suppliersPage?.currentPage || 0) + 1;\n            const nextPage = yield this.portalApiV2.authGet('/search-suppliers', {\n              filter: supplierFilter,\n              orderBy: 'name',\n              orderByDirection: 'desc',\n              pageSize: this.recordPageSize,\n              page: nextPageNumber\n            });\n            this.suppliersPage = nextPage.pagination;\n            this.suppliers = [...this.suppliers, ...nextPage.data];\n            return this.suppliers;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongLoadingMoreSuppliers'),\n              error\n            });\n          }\n        }\n      }), {\n        restartable: true\n      }, \"loadSuppliers\", null));\n    }\n    get productHeader() {\n      return [{\n        value: this.intl.t('common.Product'),\n        iconName: this.sortBy === 'Product' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left'\n      }, {\n        value: this.intl.t('common.Supplier'),\n        iconName: this.sortBy === 'Supplier' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left'\n      }, {\n        value: this.intl.t('common.SKU'),\n        iconName: this.sortBy === 'SKU' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left'\n      }, {\n        value: this.intl.t('common.Unit'),\n        iconName: this.sortBy === 'Unit' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left'\n      }, {\n        value: this.intl.t('common.Unit price'),\n        iconName: this.sortBy === 'Unit price' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-right'\n      }];\n    }\n    onAddProduct(row) {\n      if (this.isAddingProduct) return;\n      this.args.onAddProduct.perform({\n        description: row[0].value,\n        supplierName: row[1].value,\n        sku: row[2].value,\n        unit: row[3].value,\n        unitPrice: row[4].value ? Number(row[4].value.replace(/[^0-9.-]+/g, '')) : null,\n        quantity: 1\n      });\n    }\n    get isAddingProduct() {\n      return this.args.onAddProduct.isRunning;\n    }\n    get productTableData() {\n      if (this.getProducts.isRunning) return [];\n      return this.products.map(product => {\n        const productData = [{\n          colClass: 'align-middle',\n          value: product.description\n        }, {\n          colClass: 'text-left align-middle',\n          value: product.supplierName\n        }, {\n          colClass: 'text-left align-middle',\n          value: product.sku\n        }, {\n          colClass: 'text-left align-middle',\n          value: product.unit\n        }, {\n          colClass: 'text-right align-middle',\n          value: this.numberFormat.format(product.unitPrice, {\n            style: 'currency',\n            dashZero: true\n          })\n        }];\n        return {\n          rowClass: 'product-selector__table-row',\n          rowData: productData,\n          onClickRow: this.onAddProduct\n        };\n      });\n    }\n    onChangePageSize(pageSize) {\n      this.pageSize = pageSize;\n      this.getProducts.perform();\n    }\n    onChangePageIndex(pageIndex) {\n      this.pageIndex = pageIndex;\n      this.getProducts.perform();\n    }\n    sortColumn(_row, col) {\n      if (this.sortBy !== col.value) {\n        this.sortBy = col.value;\n        this.sortDirection = 'asc';\n      } else {\n        this.sortBy = col.value;\n        if (this.sortDirection === 'asc') {\n          this.sortDirection = 'desc';\n        } else if (this.sortDirection === 'desc') {\n          this.sortDirection = undefined;\n        } else {\n          this.sortDirection = 'asc';\n        }\n      }\n      this.getProducts.perform();\n    }\n    setSupplier(value) {\n      this.supplierChangeSet.set('supplier', value);\n      this.getProducts.perform();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"portalApiV2\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"numberFormat\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"pageIndex\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 1;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"sortDirection\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"sortBy\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"searchTerm\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"hasNextProductPage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"pageSize\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.pageSizes[0];\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"supplierChangeSet\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return (0, _emberChangeset.Changeset)({\n        supplier: null\n      });\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"onAddProduct\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onAddProduct\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onChangePageSize\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onChangePageSize\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onChangePageIndex\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onChangePageIndex\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"sortColumn\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"sortColumn\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setSupplier\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setSupplier\"), _class.prototype), _class));\n});","define(\"portal/components/products-uploader\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"ember-changeset\", \"@glimmer/tracking\", \"@ember/service\", \"@ember/object\", \"string-similarity\", \"csv-parse/browser/esm\", \"portal/utils/parse-currency-string\", \"portal/config/environment\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _emberChangeset, _tracking, _service, _object, _stringSimilarity, _esm, _parseCurrencyString, _environment, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _class2, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"ember-changeset\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"@ember/object\",0,\"string-similarity\",0,\"ember-concurrency\",0,\"csv-parse/browser/esm\",0,\"portal/utils/parse-currency-string\",0,\"portal/config/environment\",0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <ModalDialog\n    @containerClass='modal-content w-auto'\n    @translucentOverlay={{true}}\n    @overlayClass='modal'\n    @onClose={{@onClose}}\n  >\n    <div class='modal-header'>\n      <h3 class='mb-1'>{{t 'shared.product.Add products from a file'}}</h3>\n    </div>\n  \n    <div\n      class='modal-body overflow-auto'\n      id='takeoff-uploader-modal'\n      style='max-width: 95vw;'\n    >\n      {{#if this.takeoff}}\n        <NewComboBox\n          class='w-50'\n          @isLoading={{or\n            this.loadMoreSupplier.isRunning\n            this.getSuppliers.isRunning\n          }}\n          @list={{this.supplierList}}\n          @noDataMessage={{t 'common.No suppliers'}}\n          @onSelect={{this.setSupplier}}\n          @onSearch={{this.onSearchSupplier}}\n          @debounce={{this.debounceTime}}\n          @label={{t 'common.Supplier'}}\n          @key='supplierName'\n          @model={{this.supplierChangeSet}}\n          @hasNextPage={{this.hasNextSupplierPage}}\n          @pageSize={{this.recordPageSize}}\n          @onLoadMore={{this.loadMoreSupplier}}\n          @disabled={{@uploadProducts.isRunning}}\n          @forceValidationVisible={{gt this.uploadProducts.performCount 0}}\n        />\n        <p>{{t 'shared.uploader.pleaseIdentifyTheColumnTypesIsInTheDocument'}}</p>\n        <div class='overflow-auto'>\n          <div class='table-responsive'>\n            <table class='table table-sm table-bordered'>\n              <thead>\n                <tr>\n                  {{#each this.takeoff.columnTypes as |type index|}}\n                    <th class='text-center align-top'>\n                      <PtlInput\n                        style='min-width: 85px;'\n                        @type='select'\n                        @label={{number-to-char index}}\n                        {{! the key needs to be a string }}\n                        @key={{concat index}}\n                        @options={{this.takeoff.columnTypeOptions}}\n                        @model={{this.takeoff.columnTypeForm}}\n                        @selectNoBlankOption={{true}}\n                        @forceValidationVisible={{gt\n                          this.continue.performCount\n                          0\n                        }}\n                      />\n                    </th>\n                  {{/each}}\n                </tr>\n              </thead>\n              <tbody>\n                {{#each this.takeoff.sampleRows as |columns|}}\n                  <tr>\n                    {{#each columns as |column index|}}\n                      <td\n                        class='no-wrap text-truncate\n                          {{if\n                            (eq\n                              (get this.takeoff.columnTypeForm index)\n                              \"do-not-import\"\n                            )\n                            \"opacity-25\"\n                          }}'\n                        style='max-width: 200px;'\n                        title={{column}}\n                      >{{column}}</td>\n                    {{/each}}\n                  </tr>\n                {{/each}}\n              </tbody>\n            </table>\n          </div>\n        </div>\n        <div class='d-flex justify-content-end p-2'>\n          {{#if this.uploadProducts.isRunning}}\n            <button type='button' class='btn btn-primary ms-2' disabled={{true}}>\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t\n                'components.products-uploader.Importing products'\n              }}…\n            </button>\n          {{else}}\n            <button\n              class='btn btn-secondary me-2'\n              type='button'\n              {{on 'click' this.onClear}}\n            >{{t 'shared.uploader.Upload a different file'}}</button>\n            <button\n              class='btn btn-primary'\n              type='button'\n              {{on 'click' (fn (perform this.uploadProducts))}}\n              disabled={{this.uploadProducts.isRunning}}\n            >{{t 'components.products-uploader.Import products'}}</button>\n          {{/if}}\n        </div>\n      {{else}}\n        <DragAndDropContainer\n          @onUploadComplete={{this.onUpload}}\n          @isDragAndDropVisible={{true}}\n        >\n          <p class='text-center'>\n            {{t\n              'components.products-uploader.uploadYourCsvFileToGenerateProductsFewerThan5000Items'\n            }}\n          </p>\n          <a\n            class='btn btn-link align-self-center mb-3'\n            href='/assets/example-product-file-78b832b3e151d334a38cfb180a17f061.csv'\n            download='example-product-file-78b832b3e151d334a38cfb180a17f061.csv'\n          >\n            <FaIcon @icon='download' />&nbsp;&nbsp;{{t\n              'shared.uploader.Download example file'\n            }}\n          </a>\n        </DragAndDropContainer>\n      {{/if}}\n    </div>\n  \n    <div class='modal-footer'>\n      <button\n        type='button'\n        class='btn btn-secondary'\n        disabled={{this.isLoading}}\n        {{on 'click' @onClose}}\n      >{{t 'common.Cancel'}}</button>\n    </div>\n  </ModalDialog>\n  \n  {{#if this.invalidProductRowIndexes}}\n    <ModalDialog\n      @onClose={{fn (mut this.invalidProductRowIndexes) ''}}\n      @containerClass='modal-content w-auto'\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body'>\n        <p>\n          {{t\n            'components.products-uploader.theFollowingRowsInYourFileAreInvalidAndWillNotBeImported'\n          }}:\n        </p>\n        <p class='products-uploader__invalid-rows-confirm-modal-row-message'>\n          {{this.invalidProductRowIndexes}}\n        </p>\n      </div>\n      <div class='modal-footer'>\n        <div class='float-end d-flex align-items-center'>\n          <button\n            class='btn btn-primary me-2'\n            type='button'\n            {{on 'click' this.skipNoneDescriptionRowsAndUpload}}\n          >\n            {{t 'components.products-uploader.Import anyway'}}\n          </button>\n          <button\n            type='button'\n            class='btn btn-secondary'\n            {{on 'click' (fn (mut this.invalidProductRowIndexes) '')}}\n          >{{t 'common.Cancel'}}</button>\n        </div>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"3LnaKxbt\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@containerClass\\\",\\\"@translucentOverlay\\\",\\\"@overlayClass\\\",\\\"@onClose\\\"],[\\\"modal-content w-auto\\\",true,\\\"modal\\\",[30,1]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-1\\\"],[12],[1,[28,[35,3],[\\\"shared.product.Add products from a file\\\"],null]],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"modal-body overflow-auto\\\"],[14,1,\\\"takeoff-uploader-modal\\\"],[14,5,\\\"max-width: 95vw;\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"takeoff\\\"]],[[[1,\\\"      \\\"],[8,[39,5],[[24,0,\\\"w-50\\\"]],[[\\\"@isLoading\\\",\\\"@list\\\",\\\"@noDataMessage\\\",\\\"@onSelect\\\",\\\"@onSearch\\\",\\\"@debounce\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@hasNextPage\\\",\\\"@pageSize\\\",\\\"@onLoadMore\\\",\\\"@disabled\\\",\\\"@forceValidationVisible\\\"],[[28,[37,6],[[30,0,[\\\"loadMoreSupplier\\\",\\\"isRunning\\\"]],[30,0,[\\\"getSuppliers\\\",\\\"isRunning\\\"]]],null],[30,0,[\\\"supplierList\\\"]],[28,[37,3],[\\\"common.No suppliers\\\"],null],[30,0,[\\\"setSupplier\\\"]],[30,0,[\\\"onSearchSupplier\\\"]],[30,0,[\\\"debounceTime\\\"]],[28,[37,3],[\\\"common.Supplier\\\"],null],\\\"supplierName\\\",[30,0,[\\\"supplierChangeSet\\\"]],[30,0,[\\\"hasNextSupplierPage\\\"]],[30,0,[\\\"recordPageSize\\\"]],[30,0,[\\\"loadMoreSupplier\\\"]],[30,2,[\\\"isRunning\\\"]],[28,[37,7],[[30,0,[\\\"uploadProducts\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,[28,[35,3],[\\\"shared.uploader.pleaseIdentifyTheColumnTypesIsInTheDocument\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"overflow-auto\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"table-responsive\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-sm table-bordered\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,13],[[28,[37,13],[[30,0,[\\\"takeoff\\\",\\\"columnTypes\\\"]]],null]],null],null,[[[1,\\\"                  \\\"],[10,\\\"th\\\"],[14,0,\\\"text-center align-top\\\"],[12],[1,\\\"\\\\n                    \\\"],[8,[39,15],[[24,5,\\\"min-width: 85px;\\\"]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@options\\\",\\\"@model\\\",\\\"@selectNoBlankOption\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",[28,[37,16],[[30,4]],null],[28,[37,17],[[30,4]],null],[30,0,[\\\"takeoff\\\",\\\"columnTypeOptions\\\"]],[30,0,[\\\"takeoff\\\",\\\"columnTypeForm\\\"]],true,[28,[37,7],[[30,0,[\\\"continue\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[3,4]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,13],[[28,[37,13],[[30,0,[\\\"takeoff\\\",\\\"sampleRows\\\"]]],null]],null],null,[[[1,\\\"                \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,13],[[28,[37,13],[[30,5]],null]],null],null,[[[1,\\\"                    \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"no-wrap text-truncate\\\\n                        \\\",[52,[28,[37,20],[[28,[37,21],[[30,0,[\\\"takeoff\\\",\\\"columnTypeForm\\\"]],[30,7]],null],\\\"do-not-import\\\"],null],\\\"opacity-25\\\"]]]],[14,5,\\\"max-width: 200px;\\\"],[15,\\\"title\\\",[30,6]],[12],[1,[30,6]],[13],[1,\\\"\\\\n\\\"]],[6,7]],null],[1,\\\"                \\\"],[13],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex justify-content-end p-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"uploadProducts\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary ms-2\\\"],[15,\\\"disabled\\\",true],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,3],[\\\"components.products-uploader.Importing products\\\"],null]],[1,\\\"…\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary me-2\\\"],[24,4,\\\"button\\\"],[4,[38,24],[\\\"click\\\",[30,0,[\\\"onClear\\\"]]],null],[12],[1,[28,[35,3],[\\\"shared.uploader.Upload a different file\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"uploadProducts\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,24],[\\\"click\\\",[28,[37,25],[[28,[37,26],[[30,0,[\\\"uploadProducts\\\"]]],null]],null]],null],[12],[1,[28,[35,3],[\\\"components.products-uploader.Import products\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[8,[39,27],null,[[\\\"@onUploadComplete\\\",\\\"@isDragAndDropVisible\\\"],[[30,0,[\\\"onUpload\\\"]],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,2],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,3],[\\\"components.products-uploader.uploadYourCsvFileToGenerateProductsFewerThan5000Items\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,3],[14,0,\\\"btn btn-link align-self-center mb-3\\\"],[14,6,\\\"/assets/example-product-file-78b832b3e151d334a38cfb180a17f061.csv\\\"],[14,\\\"download\\\",\\\"example-product-file-78b832b3e151d334a38cfb180a17f061.csv\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,29],null,[[\\\"@icon\\\"],[\\\"download\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,3],[\\\"shared.uploader.Download example file\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[24,4,\\\"button\\\"],[4,[38,24],[\\\"click\\\",[30,1]],null],[12],[1,[28,[35,3],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"invalidProductRowIndexes\\\"]],[[[1,\\\"  \\\"],[8,[39,0],null,[[\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@overlayClass\\\",\\\"@translucentOverlay\\\"],[[28,[37,25],[[28,[37,30],[[30,0,[\\\"invalidProductRowIndexes\\\"]]],null],\\\"\\\"],null],\\\"modal-content w-auto\\\",\\\"modal\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,3],[\\\"components.products-uploader.theFollowingRowsInYourFileAreInvalidAndWillNotBeImported\\\"],null]],[1,\\\":\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"products-uploader__invalid-rows-confirm-modal-row-message\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,0,[\\\"invalidProductRowIndexes\\\"]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"float-end d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary me-2\\\"],[24,4,\\\"button\\\"],[4,[38,24],[\\\"click\\\",[30,0,[\\\"skipNoneDescriptionRowsAndUpload\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,3],[\\\"components.products-uploader.Import anyway\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,24],[\\\"click\\\",[28,[37,25],[[28,[37,30],[[30,0,[\\\"invalidProductRowIndexes\\\"]]],null],\\\"\\\"],null]],null],[12],[1,[28,[35,3],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@onClose\\\",\\\"@uploadProducts\\\",\\\"type\\\",\\\"index\\\",\\\"columns\\\",\\\"column\\\",\\\"index\\\"],false,[\\\"modal-dialog\\\",\\\"div\\\",\\\"h3\\\",\\\"t\\\",\\\"if\\\",\\\"new-combo-box\\\",\\\"or\\\",\\\"gt\\\",\\\"p\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"each\\\",\\\"-track-array\\\",\\\"th\\\",\\\"ptl-input\\\",\\\"number-to-char\\\",\\\"concat\\\",\\\"tbody\\\",\\\"td\\\",\\\"eq\\\",\\\"get\\\",\\\"button\\\",\\\"span\\\",\\\"on\\\",\\\"fn\\\",\\\"perform\\\",\\\"drag-and-drop-container\\\",\\\"a\\\",\\\"fa-icon\\\",\\\"mut\\\"]]\",\n    \"moduleName\": \"portal/components/products-uploader.hbs\",\n    \"isStrictMode\": false\n  });\n  const maxNumberOfProducts = 5001;\n  const getColumnsFrom2dArray = (arr, col) => {\n    return arr.map(r => r[col]);\n  };\n\n  // why this library kept this API when making a browser build is beyond me\n  const parseCsvFromBase64 = base64 => {\n    const records = [];\n    const parser = (0, _esm.parse)({\n      bom: true,\n      skip_empty_lines: true,\n      trim: true\n    });\n    parser.on('readable', () => {\n      let record;\n      while ((record = parser.read()) !== null) {\n        records.push(record);\n      }\n    });\n    const csvText = atob(base64);\n    parser.write(csvText);\n    parser.end();\n    return records;\n  };\n  class ParserError extends Error {}\n  let TakeoffFile = (_class = class TakeoffFile {\n    get sampleRows() {\n      if (!this.csv) return null;\n      return this.csv.slice(0, 10);\n    }\n    get columnsLength() {\n      return this.csv[0].length;\n    }\n    constructor(csv, intl) {\n      _defineProperty(this, \"columnTypeOptions\", void 0);\n      _initializerDefineProperty(this, \"columnTypes\", _descriptor, this);\n      _initializerDefineProperty(this, \"columnTypeForm\", _descriptor2, this);\n      _initializerDefineProperty(this, \"csv\", _descriptor3, this);\n      this.columnTypeOptions = [{\n        label: '—',\n        value: 'do-not-import',\n        matches: [],\n        type: undefined\n      }, {\n        label: intl.t('shared.task.Product description'),\n        value: 'productDescription',\n        matches: ['product description', 'product', 'product name', 'description'],\n        type: 'string'\n      }, {\n        label: intl.t('common.SKU'),\n        value: 'sku',\n        matches: ['sku'],\n        type: 'string'\n      }, {\n        label: intl.t('common.GTIN'),\n        value: 'gtin',\n        matches: ['gtin'],\n        type: 'string'\n      }, {\n        label: intl.t('common.Manufacturer'),\n        value: 'manufacturer',\n        matches: ['manufacture', 'manufacture', 'mfr.', 'mfr'],\n        type: 'string'\n      }, {\n        label: intl.t('common.Unit'),\n        value: 'unit',\n        matches: ['type', 'unit'],\n        type: 'number'\n      }, {\n        label: intl.t('common.Rate'),\n        value: 'rate',\n        matches: ['rate', 'price', 'price (ex gst)', 'price (inc gst)'],\n        type: 'currency'\n      }];\n      this.csv = csv;\n      this.columnTypes = this._findLikelyColumnTypes();\n      this.columnTypeForm = this._generateColumnTypeForm(intl);\n    }\n    _generateColumnTypeForm(intl) {\n      const validator = ({\n        key: _key,\n        newValue,\n        oldValue,\n        changes,\n        content\n      }) => {\n        const current = {\n          ...content,\n          ...changes\n        };\n        const values = Object.values(current);\n        const value = newValue || oldValue;\n\n        // you need at least one of each of these to progress\n        const requiredValues = ['productDescription'];\n        if (\n        // if you have chosen not to import this column\n        value === 'do-not-import' &&\n        // and there are still required values left\n        requiredValues.some(rv => !values.includes(rv))) return intl.t('validation.Product description is required');\n\n        // no import is always valid\n        if (value === 'do-not-import') return true;\n\n        // you can't have duplicate selections\n        if (values.filter(v => v === value).length > 1) return intl.t('validation.You can only select this column once');\n        return true;\n      };\n      const data = {\n        save: () => {\n          for (let i = 0; i < this.columnsLength; i++) {\n            this.columnTypes[i] = this.columnTypeForm.get(String(i));\n          }\n        }\n      };\n      const validatorMap = {};\n      for (let i = 0; i < this.columnsLength; i++) {\n        data[i] = this.columnTypes[i];\n        validatorMap[i] = validator;\n      }\n      return (0, _emberChangeset.Changeset)(data, validator, validatorMap);\n    }\n    _findLikelyColumnTypes() {\n      // TODO if there isn't a header row, we could try and assume from the data type of the columns\n      const likenessThreshold = 0.8;\n      // for each column iterate over each column type to find the closest matching column type\n      const results = [];\n      for (let i = 0; i < this.columnsLength; i++) {\n        const winners = this.columnTypeOptions.map(option => {\n          // get the entire column from the sample rows\n          const columns = getColumnsFrom2dArray(this.sampleRows, i).map(s => s.toLowerCase().trim());\n          // test the likeness of the columns against the matching strings\n          const scores = option.matches.map(m => (0, _stringSimilarity.findBestMatch)(m, columns));\n          // check if the best match is better than the threshold\n          const winner = scores.find(score => score.bestMatch.rating >= likenessThreshold);\n          return {\n            option,\n            rating: winner?.bestMatch?.rating || 0\n          };\n        });\n\n        // find best matching column type\n        const bestMatch = winners.sort((a, b) => b.rating - a.rating).shift();\n\n        // we now have the closest matching column type for this column\n        results.push(bestMatch.option.value);\n\n        // in the future we could also try evaluate the columns against the data type\n      }\n      return results;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"columnTypes\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"columnTypeForm\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"csv\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class2 = class _class2 extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor4, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor5, this);\n      _initializerDefineProperty(this, \"store\", _descriptor6, this);\n      _initializerDefineProperty(this, \"portalApiV2\", _descriptor7, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor8, this);\n      _initializerDefineProperty(this, \"takeoffItems\", _descriptor9, this);\n      _initializerDefineProperty(this, \"takeoff\", _descriptor0, this);\n      _defineProperty(this, \"validateLength\", newValue => {\n        const value = newValue.trim();\n        return value && value.length > 0 || this.intl.t('validation.Please provide a supplier name');\n      });\n      _defineProperty(this, \"supplierValidator\", ({\n        newValue\n      }) => {\n        return this.validateLength(newValue);\n      });\n      _defineProperty(this, \"validationMap\", {\n        supplierName: this.validateLength\n      });\n      _initializerDefineProperty(this, \"supplierChangeSet\", _descriptor1, this);\n      _initializerDefineProperty(this, \"supplierList\", _descriptor10, this);\n      _initializerDefineProperty(this, \"suppliersCurrentPage\", _descriptor11, this);\n      _initializerDefineProperty(this, \"hasNextSupplierPage\", _descriptor12, this);\n      _initializerDefineProperty(this, \"supplierFilter\", _descriptor13, this);\n      _initializerDefineProperty(this, \"invalidProductRowIndexes\", _descriptor14, this);\n      _defineProperty(this, \"debounceTime\", _environment.default.debounceTimeMs);\n      _defineProperty(this, \"recordPageSize\", 10);\n      _defineProperty(this, \"uploadProducts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (_e, skipNoneDescriptionRows = false) {\n          this.takeoff.columnTypeForm.validate();\n          this.supplierChangeSet.validate();\n          if (this.takeoff.columnTypeForm.isInvalid || this.supplierChangeSet.isInvalid) {\n            this.notifications.warning(this.intl.t('shared.uploader.pleaseCompleteTheFormBeforeContinuing'));\n            return;\n          }\n          try {\n            yield this.takeoff.columnTypeForm.save();\n            const products = [];\n            const noDescriptionProductIndex = [];\n            this.takeoff.csv.forEach((columns, columnsIndex) => {\n              const product = {};\n              columns.forEach((column, index) => {\n                product.entity = this.sessionData.entity.id;\n                if (this.args.saveTarget === 'project-products') product.project = this.args.project.id;\n                switch (this.takeoff.columnTypes[index]) {\n                  case 'do-not-import':\n                    break;\n                  case 'productDescription':\n                    product.description = column?.trim();\n                    if (!column?.trim().length) noDescriptionProductIndex.push(columnsIndex + 1);\n                    break;\n                  case 'sku':\n                    product.sku = column?.trim();\n                    break;\n                  case 'gtin':\n                    product.gtin = column?.trim();\n                    break;\n                  case 'manufacturer':\n                    product.manufacturer = column?.trim();\n                    break;\n                  case 'unit':\n                    product.unit = column?.trim();\n                    break;\n                  case 'rate':\n                    product.unitPrice = (0, _parseCurrencyString.default)(column);\n                    break;\n                }\n              });\n              if (skipNoneDescriptionRows && !product.description) return;\n              product.supplierName = this.supplierChangeSet.get('supplierName').trim();\n              products.push(product);\n            });\n            if (noDescriptionProductIndex.length && !skipNoneDescriptionRows) {\n              this.invalidProductRowIndexes = `${noDescriptionProductIndex.join(', ')}`;\n              return;\n            }\n            products.shift();\n            yield this.portalApiV2.authPut(`/resources/${this.args.saveTarget}`, products);\n            yield this.args.onUploadProducts.perform();\n            this.notifications.success(this.intl.t('components.products-uploader.Successfully uploaded products'));\n            this.args.onClose();\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('components.products-uploader.somethingWentWrongWhileSavingProducts'),\n              error\n            });\n          }\n        }\n      }), null, \"uploadProducts\", null));\n      _defineProperty(this, \"parseCsvFromAttachment\", attachment => {\n        // TODO windows does some funky shit with MIME types\n        if (attachment.fileType !== 'text/csv') throw new ParserError(this.intl.t('shared.uploader.Please upload a valid CSV file'));\n        const csv = parseCsvFromBase64(attachment.data);\n        if (csv?.length > maxNumberOfProducts) throw new ParserError(this.intl.t('components.products-uploader.pleaseUploadACsvFileContainingFewerThan5000Products'));\n        return csv;\n      });\n      _defineProperty(this, \"loadMoreSupplier\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            const supplierList = yield this.portalApiV2.authGet('/search-suppliers', {\n              filter: this.supplierFilter,\n              pageSize: this.recordPageSize,\n              page: this.suppliersCurrentPage + 1,\n              orderBy: 'name',\n              orderByDirection: 'desc'\n            });\n            if (!supplierList.data?.length) {\n              this.hasNextSupplierPage = false;\n              return;\n            }\n            this.suppliersCurrentPage = supplierList.pagination.currentPage;\n            this.hasNextSupplierPage = supplierList.pagination.hasNextPage;\n            this.supplierList = [...this.supplierList, ...supplierList.data];\n          } catch (error) {\n            this.hasNextSupplierPage = false;\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongLoadingMoreSuppliers'),\n              error\n            });\n          }\n        }\n      }), null, \"loadMoreSupplier\", null));\n      _defineProperty(this, \"getSuppliers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (filter) {\n          const suppliers = yield this.portalApiV2.authGet('/search-suppliers', {\n            filter,\n            pageSize: this.recordPageSize,\n            page: 1,\n            orderBy: 'name',\n            orderByDirection: 'desc'\n          });\n          this.suppliersCurrentPage = suppliers.pagination.currentPage;\n          this.hasNextSupplierPage = suppliers.pagination.hasNextPage;\n          this.supplierList = suppliers.data;\n        }\n      }), null, \"getSuppliers\", null));\n      _defineProperty(this, \"onSearchSupplier\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (searchTerm) {\n          if (searchTerm.length) {\n            this.supplierFilter.or = [{\n              field: 'name',\n              operator: 'ILIKE',\n              value: searchTerm\n            }];\n          } else {\n            this.supplierFilter.or = [];\n          }\n          yield this.getSuppliers.perform(this.supplierFilter);\n        }\n      }), null, \"onSearchSupplier\", null));\n    }\n    onClear() {\n      this.takeoff = null;\n      this.takeoffItems = null;\n    }\n    skipNoneDescriptionRowsAndUpload() {\n      this.invalidProductRowIndexes = '';\n      this.uploadProducts.perform(undefined, true);\n    }\n    onUpload(e) {\n      try {\n        if (!e.attachments.length) {\n          this.notifications.warning(this.intl.t('shared.uploader.Please upload a valid CSV file'));\n          return;\n        }\n        if (e.attachments.length > 1) this.notifications.warning(this.intl.t('shared.uploader.Please upload one file at a time'));\n        const attachment = e.attachments[0];\n        const csv = this.parseCsvFromAttachment(attachment);\n        this.takeoff = new TakeoffFile(csv, this.intl);\n      } catch (error) {\n        if (error instanceof ParserError) {\n          this.notifications.warning(error.message);\n          return;\n        }\n        this.notifications.error({\n          message: this.intl.t('shared.uploader.Something went wrong uploading the file'),\n          error\n        });\n      }\n    }\n    setSupplier(value) {\n      this.supplierChangeSet.set('supplierName', value.supplierName);\n    }\n  }, _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"portalApiV2\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"takeoffItems\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"takeoff\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"supplierChangeSet\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return (0, _emberChangeset.Changeset)({\n        supplierName: ''\n      }, this.supplierValidator, this.validationMap);\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"supplierList\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"suppliersCurrentPage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 1;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"hasNextSupplierPage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"supplierFilter\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return {\n        and: [{\n          field: 'entity',\n          operator: 'EQ',\n          value: this.sessionData.entity.id\n        }]\n      };\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"invalidProductRowIndexes\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"onClear\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onClear\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"skipNoneDescriptionRowsAndUpload\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"skipNoneDescriptionRowsAndUpload\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onUpload\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onUpload\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setSupplier\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setSupplier\"), _class2.prototype), _class2));\n});","define(\"portal/components/profit-margin-form\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _tracking, _object, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <h3 class='mb-3'>{{t 'common.Profit margins'}}</h3>\n  {{#if @description}}\n    <p class='mt-0'>{{@description}}</p>\n  {{/if}}\n  <PtlInput\n    @type='select'\n    @toolTip={{t\n      'shared.profit-margins.marginIsThePercentageOfWhatYouAreChargingTheCustomerThatIsProfitMarkupIsThePercentageOfYourCostThatIsAddedToYourCostToGetProfit'\n    }}\n    @label={{t 'shared.profit-margins.Profit type'}}\n    @key='profitType'\n    @required={{true}}\n    @options={{this.profitTypes}}\n    @model={{@profitMargin}}\n    @forceValidationVisible={{@forceValidationVisible}}\n    @selectNoBlankOption={{true}}\n    disabled={{@disabled}}\n    data-test-profit-margin-form-profit-select\n  />\n  {{! labour start}}\n  <div class='d-flex align-items-center'>\n    <div class='flex-grow-1'>\n      {{#if this.labourIsOverridden}}\n        <PtlInput\n          data-test-profit-margin-form-labour-percentage-input\n          @type='percentage'\n          @label={{t 'common.Labour'}}\n          @containerClass='mb-1'\n          @key='labourPercentage'\n          @model={{@profitMargin}}\n          @forceValidationVisible={{@forceValidationVisible}}\n          disabled={{or @disabled (not this.labourIsOverridden)}}\n          @inputGroupText={{profit-type-label @profitMargin.profitType}}\n        />\n      {{else}}\n        <div class='mb-1'>\n          <label class='mb-1'>{{t 'common.Labour'}}</label>\n          <div class='input-group'>\n            <FormattedInput\n              @class='form-control'\n              @format='percentage'\n              @formatterOptions={{hash dashZero=false}}\n              @number={{or @default.labourPercentage.value 0}}\n              @disabled={{true}}\n            />\n            {{#if @default.labourPercentage.type}}\n              <span class='input-group-text text-muted'>\n                {{profit-type-label @default.labourPercentage.type}}\n              </span>\n            {{/if}}\n          </div>\n        </div>\n      {{/if}}\n    </div>\n    <label class='mx-3 d-flex align-items-center mt-3'>{{t\n        'common.Override'\n      }}&nbsp;\n      <Input\n        data-test-profit-margin-form-labour-checkbox\n        @type='checkbox'\n        class='form-check-input ms-1 mb-1'\n        @checked={{this.labourIsOverridden}}\n        disabled={{@disabled}}\n        {{on\n          'click'\n          (fn this.togglePercentageOverride @profitMargin 'labourPercentage')\n        }}\n      />\n    </label>\n  </div>\n  <div class='mb-3 form-text'>\n    {{#if\n      (includes-feature-flags\n        @default.labourPercentage.record 'canManageProfitMargin'\n      )\n    }}\n      <LinkTo\n        class='link ps-0'\n        @route={{@default.labourPercentage.route}}\n        @model={{@default.labourPercentage.model}}\n      >\n        {{#if @default.labourPercentage.value}}\n          {{t 'common.Default'}}\n          {{number-format\n            @default.labourPercentage.value\n            style='percent'\n            dashZero=true\n            maximumFractionDigits=2\n            minimumFractionDigits=2\n          }}\n          {{profit-type-label @default.labourPercentage.type}}\n        {{else}}\n          {{t 'components.profit-margin-form.Set a default labour profit margin'}}\n        {{/if}}\n        <FaIcon @icon='external-link-alt' @fixedWidth={{true}} @size='sm' />\n      </LinkTo>\n    {{/if}}\n  </div>\n  {{! labour end}}\n  {{! additional labour margin start}}\n  {{#if\n    (or @default.additionalLabourMargin.value this.additionalLabourIsOverridden)\n  }}\n    <div class='d-flex align-items-center'>\n      <div class='flex-grow-1'>\n        {{#if this.additionalLabourIsOverridden}}\n          <PtlInput\n            data-test-profit-margin-form-additional-labour-margin-input\n            @type='percentage'\n            @label={{t 'shared.profit-margins.Additional labour margin'}}\n            @containerClass='mb-1'\n            @key='additionalLabourMargin'\n            @model={{@profitMargin}}\n            @forceValidationVisible={{@forceValidationVisible}}\n            disabled={{not this.additionalLabourIsOverridden}}\n            @description={{t\n              'shared.profit-margins.additionalLabourMarginDescription'\n            }}\n            @inputGroupText={{profit-type-label @profitMargin.profitType}}\n          />\n        {{else}}\n          <div class='mb-1'>\n            <label class='mb-1'>{{t\n                'shared.profit-margins.Additional labour margin'\n              }}</label>\n            <div class='input-group'>\n              <FormattedInput\n                @class='form-control'\n                @format='percentage'\n                @formatterOptions={{hash dashZero=false}}\n                @number={{or @default.additionalLabourMargin.value 0}}\n                @disabled={{true}}\n              />\n              {{#if @default.additionalLabourMargin.type}}\n                <span class='input-group-text text-muted'>\n                  {{profit-type-label @default.additionalLabourMargin.type}}\n                </span>\n              {{/if}}\n            </div>\n          </div>\n        {{/if}}\n      </div>\n      <label class='mx-3 d-flex align-items-center mt-3'>{{t\n          'common.Override'\n        }}&nbsp;\n        <Input\n          data-test-profit-margin-form-additional-labour-margin-checkbox\n          @type='checkbox'\n          class='form-check-input ms-1 mb-1'\n          @checked={{this.additionalLabourIsOverridden}}\n          {{on\n            'click'\n            (fn\n              this.togglePercentageOverride @profitMargin 'additionalLabourMargin'\n            )\n          }}\n        />\n      </label>\n    </div>\n    <div class='mb-3 form-text'>\n      {{#if\n        (includes-feature-flags\n          @default.additionalLabourMargin.record 'canManageProfitMargin'\n        )\n      }}\n        <LinkTo\n          class='link ps-0'\n          @route={{@default.additionalLabourMargin.route}}\n          @model={{@default.additionalLabourMargin.model}}\n        >\n          {{#if @default.additionalLabourMargin.value}}\n            {{t 'common.Default'}}\n            {{number-format\n              @default.additionalLabourMargin.value\n              style='percent'\n              dashZero=true\n              maximumFractionDigits=2\n              minimumFractionDigits=2\n            }}\n            {{profit-type-label @default.additionalLabourMargin.type}}\n          {{else}}\n            {{t\n              'components.profit-margin-form.Set a default additional labour margin'\n            }}\n          {{/if}}\n          <FaIcon @icon='external-link-alt' @fixedWidth={{true}} @size='sm' />\n        </LinkTo>\n      {{/if}}\n    </div>\n  {{/if}}\n  {{! additional labour margin end}}\n  {{! material start}}\n  <div class='d-flex align-items-center'>\n    <div class='flex-grow-1'>\n      {{#if this.materialsIsOverridden}}\n        <PtlInput\n          data-test-profit-margin-form-materials-percentage-input\n          @type='percentage'\n          @label={{t 'common.Materials'}}\n          @containerClass='mb-1'\n          @key='materialsPercentage'\n          @model={{@profitMargin}}\n          @forceValidationVisible={{@forceValidationVisible}}\n          disabled={{or @disabled (not this.materialsIsOverridden)}}\n          @inputGroupText={{profit-type-label @profitMargin.profitType}}\n        />\n      {{else}}\n        <div class='mb-1'>\n          <label class='mb-1'>{{t 'common.Materials'}}</label>\n          <div class='input-group'>\n            <FormattedInput\n              @class='form-control'\n              @format='percentage'\n              @formatterOptions={{hash dashZero=false}}\n              @number={{or @default.materialsPercentage.value 0}}\n              @disabled={{true}}\n            />\n            {{#if @default.materialsPercentage.type}}\n              <span class='input-group-text text-muted'>\n                {{profit-type-label @default.materialsPercentage.type}}\n              </span>\n            {{/if}}\n          </div>\n        </div>\n      {{/if}}\n    </div>\n    <label class='mx-3 d-flex align-items-center mt-3'>{{t\n        'common.Override'\n      }}&nbsp;\n      <Input\n        data-test-profit-margin-form-materials-checkbox\n        @type='checkbox'\n        class='form-check-input ms-1 mb-1'\n        @checked={{this.materialsIsOverridden}}\n        disabled={{@disabled}}\n        {{on\n          'click'\n          (fn this.togglePercentageOverride @profitMargin 'materialsPercentage')\n        }}\n      />\n    </label>\n  </div>\n  <div class='mb-3 form-text'>\n    {{#if\n      (includes-feature-flags\n        @default.materialsPercentage.record 'canManageProfitMargin'\n      )\n    }}\n      <LinkTo\n        class='link ps-0'\n        @route={{@default.materialsPercentage.route}}\n        @model={{@default.materialsPercentage.model}}\n      >\n        {{#if @default.materialsPercentage.value}}\n          {{t 'common.Default'}}\n          {{number-format\n            @default.materialsPercentage.value\n            style='percent'\n            dashZero=true\n            maximumFractionDigits=2\n            minimumFractionDigits=2\n          }}\n          {{profit-type-label @default.materialsPercentage.type}}\n        {{else}}\n          {{t\n            'components.profit-margin-form.Set a default materials profit margin'\n          }}\n        {{/if}}\n        <FaIcon @icon='external-link-alt' @fixedWidth={{true}} @size='sm' />\n      </LinkTo>\n    {{/if}}\n  </div>\n  {{! material end}}\n  {{! subcontractors start}}\n  <div class='d-flex align-items-center'>\n    <div class='flex-grow-1'>\n      {{#if this.subcontractorIsOverridden}}\n        <PtlInput\n          data-test-profit-margin-form-subcontractors-percentage-input\n          @type='percentage'\n          @label={{t 'common.Subcontractors'}}\n          @containerClass='mb-1'\n          @key='subcontractorsPercentage'\n          @model={{@profitMargin}}\n          @forceValidationVisible={{@forceValidationVisible}}\n          disabled={{or @disabled (not this.subcontractorIsOverridden)}}\n          @inputGroupText={{profit-type-label @profitMargin.profitType}}\n        />\n      {{else}}\n        <div class='mb-1'>\n          <label class='mb-1'>{{t 'common.Subcontractors'}}</label>\n          <div class='input-group'>\n            <FormattedInput\n              @class='form-control'\n              @format='percentage'\n              @formatterOptions={{hash dashZero=false}}\n              @number={{or @default.subcontractorsPercentage.value 0}}\n              @disabled={{true}}\n            />\n            {{#if @default.subcontractorsPercentage.type}}\n              <span class='input-group-text text-muted'>\n                {{profit-type-label @default.subcontractorsPercentage.type}}\n              </span>\n            {{/if}}\n          </div>\n        </div>\n      {{/if}}\n    </div>\n    <label class='mx-3 d-flex align-items-center mt-3'>{{t\n        'common.Override'\n      }}&nbsp;\n      <Input\n        data-test-profit-margin-form-subcontractors-checkbox\n        @type='checkbox'\n        class='form-check-input ms-1 mb-1'\n        @checked={{this.subcontractorIsOverridden}}\n        disabled={{@disabled}}\n        {{on\n          'click'\n          (fn\n            this.togglePercentageOverride @profitMargin 'subcontractorsPercentage'\n          )\n        }}\n      />\n    </label>\n  </div>\n  <div class='mb-3 form-text'>\n    {{#if\n      (includes-feature-flags\n        @default.subcontractorsPercentage.record 'canManageProfitMargin'\n      )\n    }}\n      <LinkTo\n        class='link ps-0'\n        @route={{@default.subcontractorsPercentage.route}}\n        @model={{@default.subcontractorsPercentage.model}}\n      >\n        {{#if @default.subcontractorsPercentage.value}}\n          {{t 'common.Default'}}\n          {{number-format\n            @default.subcontractorsPercentage.value\n            style='percent'\n            dashZero=true\n            maximumFractionDigits=2\n            minimumFractionDigits=2\n          }}\n          {{profit-type-label @default.subcontractorsPercentage.type}}\n        {{else}}\n          {{t\n            'components.profit-margin-form.setADefaultSubcontractorsProfitMargin'\n          }}\n        {{/if}}\n        <FaIcon @icon='external-link-alt' @fixedWidth={{true}} @size='sm' />\n      </LinkTo>\n    {{/if}}\n  </div>\n  {{! subcontractors end}}\n  {{! sums start}}\n  <div class='d-flex'>\n    <div class='flex-grow-1 align-items-center'>\n      {{#if this.sumsIsOverridden}}\n        <PtlInput\n          data-test-profit-margin-form-sums-percentage-input\n          @type='percentage'\n          @label={{t 'common.Sums'}}\n          @containerClass='mb-1'\n          @key='sumsPercentage'\n          @model={{@profitMargin}}\n          @forceValidationVisible={{@forceValidationVisible}}\n          disabled={{or @disabled (not this.sumsIsOverridden)}}\n          @inputGroupText={{profit-type-label @profitMargin.profitType}}\n        />\n      {{else}}\n        <div class='mb-1'>\n          <label class='mb-1'>{{t 'common.Sums'}}</label>\n          <div class='input-group'>\n            <FormattedInput\n              @class='form-control'\n              @format='percentage'\n              @formatterOptions={{hash dashZero=false}}\n              @number={{or @default.sumsPercentage.value 0}}\n              @disabled={{true}}\n            />\n            {{#if @default.sumsPercentage.type}}\n              <span class='input-group-text text-muted'>\n                {{profit-type-label @default.sumsPercentage.type}}\n              </span>\n            {{/if}}\n          </div>\n        </div>\n      {{/if}}\n    </div>\n    <label class='mx-3 d-flex align-items-center mt-3'>{{t\n        'common.Override'\n      }}&nbsp;\n      <Input\n        data-test-profit-margin-form-sums-checkbox\n        @type='checkbox'\n        class='form-check-input ms-1 mb-1'\n        @checked={{this.sumsIsOverridden}}\n        disabled={{@disabled}}\n        {{on\n          'click'\n          (fn this.togglePercentageOverride @profitMargin 'sumsPercentage')\n        }}\n      />\n    </label>\n  </div>\n  <div class='form-text'>\n    {{#if\n      (includes-feature-flags\n        @default.sumsPercentage.record 'canManageProfitMargin'\n      )\n    }}\n      <LinkTo\n        class='link ps-0'\n        @route={{@default.sumsPercentage.route}}\n        @model={{@default.sumsPercentage.model}}\n      >\n        {{#if @default.sumsPercentage.value}}\n          {{t 'common.Default'}}\n          {{number-format\n            @default.sumsPercentage.value\n            style='percent'\n            dashZero=true\n            maximumFractionDigits=2\n            minimumFractionDigits=2\n          }}\n          {{profit-type-label @default.sumsPercentage.type}}\n        {{else}}\n          {{t 'components.profit-margin-form.Set a default sums profit margin'}}\n        {{/if}}\n        <FaIcon @icon='external-link-alt' @fixedWidth={{true}} @size='sm' />\n      </LinkTo>\n    {{/if}}\n  </div>\n  {{! sums end}}\n  */\n  {\n    \"id\": \"v1SMzXDA\",\n    \"block\": \"[[[10,\\\"h3\\\"],[14,0,\\\"mb-3\\\"],[12],[1,[28,[35,1],[\\\"common.Profit margins\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[30,1],[[[1,\\\"  \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,[30,1]],[13],[1,\\\"\\\\n\\\"]],[]],null],[8,[39,4],[[16,\\\"disabled\\\",[30,2]],[24,\\\"data-test-profit-margin-form-profit-select\\\",\\\"\\\"]],[[\\\"@type\\\",\\\"@toolTip\\\",\\\"@label\\\",\\\"@key\\\",\\\"@required\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@selectNoBlankOption\\\"],[\\\"select\\\",[28,[37,1],[\\\"shared.profit-margins.marginIsThePercentageOfWhatYouAreChargingTheCustomerThatIsProfitMarkupIsThePercentageOfYourCostThatIsAddedToYourCostToGetProfit\\\"],null],[28,[37,1],[\\\"shared.profit-margins.Profit type\\\"],null],\\\"profitType\\\",true,[30,0,[\\\"profitTypes\\\"]],[30,3],[30,4],true]],null],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"labourIsOverridden\\\"]],[[[1,\\\"      \\\"],[8,[39,4],[[24,\\\"data-test-profit-margin-form-labour-percentage-input\\\",\\\"\\\"],[16,\\\"disabled\\\",[28,[37,6],[[30,2],[28,[37,7],[[30,0,[\\\"labourIsOverridden\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@containerClass\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@inputGroupText\\\"],[\\\"percentage\\\",[28,[37,1],[\\\"common.Labour\\\"],null],\\\"mb-1\\\",\\\"labourPercentage\\\",[30,3],[30,4],[28,[37,8],[[30,3,[\\\"profitType\\\"]]],null]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,[28,[35,1],[\\\"common.Labour\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"input-group\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,10],null,[[\\\"@class\\\",\\\"@format\\\",\\\"@formatterOptions\\\",\\\"@number\\\",\\\"@disabled\\\"],[\\\"form-control\\\",\\\"percentage\\\",[28,[37,11],null,[[\\\"dashZero\\\"],[false]]],[28,[37,6],[[30,5,[\\\"labourPercentage\\\",\\\"value\\\"]],0],null],true]],null],[1,\\\"\\\\n\\\"],[41,[30,5,[\\\"labourPercentage\\\",\\\"type\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"input-group-text text-muted\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,8],[[30,5,[\\\"labourPercentage\\\",\\\"type\\\"]]],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n  \\\"],[10,\\\"label\\\"],[14,0,\\\"mx-3 d-flex align-items-center mt-3\\\"],[12],[1,[28,[35,1],[\\\"common.Override\\\"],null]],[1,\\\" \\\\n    \\\"],[8,[39,13],[[24,\\\"data-test-profit-margin-form-labour-checkbox\\\",\\\"\\\"],[24,0,\\\"form-check-input ms-1 mb-1\\\"],[16,\\\"disabled\\\",[30,2]],[4,[38,14],[\\\"click\\\",[28,[37,15],[[30,0,[\\\"togglePercentageOverride\\\"]],[30,3],\\\"labourPercentage\\\"],null]],null]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"labourIsOverridden\\\"]]]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"mb-3 form-text\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,16],[[30,5,[\\\"labourPercentage\\\",\\\"record\\\"]],\\\"canManageProfitMargin\\\"],null],[[[1,\\\"    \\\"],[8,[39,17],[[24,0,\\\"link ps-0\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[[30,5,[\\\"labourPercentage\\\",\\\"route\\\"]],[30,5,[\\\"labourPercentage\\\",\\\"model\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,5,[\\\"labourPercentage\\\",\\\"value\\\"]],[[[1,\\\"        \\\"],[1,[28,[35,1],[\\\"common.Default\\\"],null]],[1,\\\"\\\\n        \\\"],[1,[28,[35,18],[[30,5,[\\\"labourPercentage\\\",\\\"value\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]]],[1,\\\"\\\\n        \\\"],[1,[28,[35,8],[[30,5,[\\\"labourPercentage\\\",\\\"type\\\"]]],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[1,[28,[35,1],[\\\"components.profit-margin-form.Set a default labour profit margin\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[8,[39,19],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",true,\\\"sm\\\"]],null],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[[30,5,[\\\"additionalLabourMargin\\\",\\\"value\\\"]],[30,0,[\\\"additionalLabourIsOverridden\\\"]]],null],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"additionalLabourIsOverridden\\\"]],[[[1,\\\"        \\\"],[8,[39,4],[[24,\\\"data-test-profit-margin-form-additional-labour-margin-input\\\",\\\"\\\"],[16,\\\"disabled\\\",[28,[37,7],[[30,0,[\\\"additionalLabourIsOverridden\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@containerClass\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@description\\\",\\\"@inputGroupText\\\"],[\\\"percentage\\\",[28,[37,1],[\\\"shared.profit-margins.Additional labour margin\\\"],null],\\\"mb-1\\\",\\\"additionalLabourMargin\\\",[30,3],[30,4],[28,[37,1],[\\\"shared.profit-margins.additionalLabourMarginDescription\\\"],null],[28,[37,8],[[30,3,[\\\"profitType\\\"]]],null]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,[28,[35,1],[\\\"shared.profit-margins.Additional labour margin\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"input-group\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,10],null,[[\\\"@class\\\",\\\"@format\\\",\\\"@formatterOptions\\\",\\\"@number\\\",\\\"@disabled\\\"],[\\\"form-control\\\",\\\"percentage\\\",[28,[37,11],null,[[\\\"dashZero\\\"],[false]]],[28,[37,6],[[30,5,[\\\"additionalLabourMargin\\\",\\\"value\\\"]],0],null],true]],null],[1,\\\"\\\\n\\\"],[41,[30,5,[\\\"additionalLabourMargin\\\",\\\"type\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"input-group-text text-muted\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,8],[[30,5,[\\\"additionalLabourMargin\\\",\\\"type\\\"]]],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"label\\\"],[14,0,\\\"mx-3 d-flex align-items-center mt-3\\\"],[12],[1,[28,[35,1],[\\\"common.Override\\\"],null]],[1,\\\" \\\\n      \\\"],[8,[39,13],[[24,\\\"data-test-profit-margin-form-additional-labour-margin-checkbox\\\",\\\"\\\"],[24,0,\\\"form-check-input ms-1 mb-1\\\"],[4,[38,14],[\\\"click\\\",[28,[37,15],[[30,0,[\\\"togglePercentageOverride\\\"]],[30,3],\\\"additionalLabourMargin\\\"],null]],null]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"additionalLabourIsOverridden\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"mb-3 form-text\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,16],[[30,5,[\\\"additionalLabourMargin\\\",\\\"record\\\"]],\\\"canManageProfitMargin\\\"],null],[[[1,\\\"      \\\"],[8,[39,17],[[24,0,\\\"link ps-0\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[[30,5,[\\\"additionalLabourMargin\\\",\\\"route\\\"]],[30,5,[\\\"additionalLabourMargin\\\",\\\"model\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,5,[\\\"additionalLabourMargin\\\",\\\"value\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,1],[\\\"common.Default\\\"],null]],[1,\\\"\\\\n          \\\"],[1,[28,[35,18],[[30,5,[\\\"additionalLabourMargin\\\",\\\"value\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]]],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[[30,5,[\\\"additionalLabourMargin\\\",\\\"type\\\"]]],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,1],[\\\"components.profit-margin-form.Set a default additional labour margin\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[8,[39,19],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",true,\\\"sm\\\"]],null],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"materialsIsOverridden\\\"]],[[[1,\\\"      \\\"],[8,[39,4],[[24,\\\"data-test-profit-margin-form-materials-percentage-input\\\",\\\"\\\"],[16,\\\"disabled\\\",[28,[37,6],[[30,2],[28,[37,7],[[30,0,[\\\"materialsIsOverridden\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@containerClass\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@inputGroupText\\\"],[\\\"percentage\\\",[28,[37,1],[\\\"common.Materials\\\"],null],\\\"mb-1\\\",\\\"materialsPercentage\\\",[30,3],[30,4],[28,[37,8],[[30,3,[\\\"profitType\\\"]]],null]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,[28,[35,1],[\\\"common.Materials\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"input-group\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,10],null,[[\\\"@class\\\",\\\"@format\\\",\\\"@formatterOptions\\\",\\\"@number\\\",\\\"@disabled\\\"],[\\\"form-control\\\",\\\"percentage\\\",[28,[37,11],null,[[\\\"dashZero\\\"],[false]]],[28,[37,6],[[30,5,[\\\"materialsPercentage\\\",\\\"value\\\"]],0],null],true]],null],[1,\\\"\\\\n\\\"],[41,[30,5,[\\\"materialsPercentage\\\",\\\"type\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"input-group-text text-muted\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,8],[[30,5,[\\\"materialsPercentage\\\",\\\"type\\\"]]],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n  \\\"],[10,\\\"label\\\"],[14,0,\\\"mx-3 d-flex align-items-center mt-3\\\"],[12],[1,[28,[35,1],[\\\"common.Override\\\"],null]],[1,\\\" \\\\n    \\\"],[8,[39,13],[[24,\\\"data-test-profit-margin-form-materials-checkbox\\\",\\\"\\\"],[24,0,\\\"form-check-input ms-1 mb-1\\\"],[16,\\\"disabled\\\",[30,2]],[4,[38,14],[\\\"click\\\",[28,[37,15],[[30,0,[\\\"togglePercentageOverride\\\"]],[30,3],\\\"materialsPercentage\\\"],null]],null]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"materialsIsOverridden\\\"]]]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"mb-3 form-text\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,16],[[30,5,[\\\"materialsPercentage\\\",\\\"record\\\"]],\\\"canManageProfitMargin\\\"],null],[[[1,\\\"    \\\"],[8,[39,17],[[24,0,\\\"link ps-0\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[[30,5,[\\\"materialsPercentage\\\",\\\"route\\\"]],[30,5,[\\\"materialsPercentage\\\",\\\"model\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,5,[\\\"materialsPercentage\\\",\\\"value\\\"]],[[[1,\\\"        \\\"],[1,[28,[35,1],[\\\"common.Default\\\"],null]],[1,\\\"\\\\n        \\\"],[1,[28,[35,18],[[30,5,[\\\"materialsPercentage\\\",\\\"value\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]]],[1,\\\"\\\\n        \\\"],[1,[28,[35,8],[[30,5,[\\\"materialsPercentage\\\",\\\"type\\\"]]],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[1,[28,[35,1],[\\\"components.profit-margin-form.Set a default materials profit margin\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[8,[39,19],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",true,\\\"sm\\\"]],null],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"subcontractorIsOverridden\\\"]],[[[1,\\\"      \\\"],[8,[39,4],[[24,\\\"data-test-profit-margin-form-subcontractors-percentage-input\\\",\\\"\\\"],[16,\\\"disabled\\\",[28,[37,6],[[30,2],[28,[37,7],[[30,0,[\\\"subcontractorIsOverridden\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@containerClass\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@inputGroupText\\\"],[\\\"percentage\\\",[28,[37,1],[\\\"common.Subcontractors\\\"],null],\\\"mb-1\\\",\\\"subcontractorsPercentage\\\",[30,3],[30,4],[28,[37,8],[[30,3,[\\\"profitType\\\"]]],null]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,[28,[35,1],[\\\"common.Subcontractors\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"input-group\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,10],null,[[\\\"@class\\\",\\\"@format\\\",\\\"@formatterOptions\\\",\\\"@number\\\",\\\"@disabled\\\"],[\\\"form-control\\\",\\\"percentage\\\",[28,[37,11],null,[[\\\"dashZero\\\"],[false]]],[28,[37,6],[[30,5,[\\\"subcontractorsPercentage\\\",\\\"value\\\"]],0],null],true]],null],[1,\\\"\\\\n\\\"],[41,[30,5,[\\\"subcontractorsPercentage\\\",\\\"type\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"input-group-text text-muted\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,8],[[30,5,[\\\"subcontractorsPercentage\\\",\\\"type\\\"]]],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n  \\\"],[10,\\\"label\\\"],[14,0,\\\"mx-3 d-flex align-items-center mt-3\\\"],[12],[1,[28,[35,1],[\\\"common.Override\\\"],null]],[1,\\\" \\\\n    \\\"],[8,[39,13],[[24,\\\"data-test-profit-margin-form-subcontractors-checkbox\\\",\\\"\\\"],[24,0,\\\"form-check-input ms-1 mb-1\\\"],[16,\\\"disabled\\\",[30,2]],[4,[38,14],[\\\"click\\\",[28,[37,15],[[30,0,[\\\"togglePercentageOverride\\\"]],[30,3],\\\"subcontractorsPercentage\\\"],null]],null]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"subcontractorIsOverridden\\\"]]]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"mb-3 form-text\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,16],[[30,5,[\\\"subcontractorsPercentage\\\",\\\"record\\\"]],\\\"canManageProfitMargin\\\"],null],[[[1,\\\"    \\\"],[8,[39,17],[[24,0,\\\"link ps-0\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[[30,5,[\\\"subcontractorsPercentage\\\",\\\"route\\\"]],[30,5,[\\\"subcontractorsPercentage\\\",\\\"model\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,5,[\\\"subcontractorsPercentage\\\",\\\"value\\\"]],[[[1,\\\"        \\\"],[1,[28,[35,1],[\\\"common.Default\\\"],null]],[1,\\\"\\\\n        \\\"],[1,[28,[35,18],[[30,5,[\\\"subcontractorsPercentage\\\",\\\"value\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]]],[1,\\\"\\\\n        \\\"],[1,[28,[35,8],[[30,5,[\\\"subcontractorsPercentage\\\",\\\"type\\\"]]],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[1,[28,[35,1],[\\\"components.profit-margin-form.setADefaultSubcontractorsProfitMargin\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[8,[39,19],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",true,\\\"sm\\\"]],null],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"d-flex\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"flex-grow-1 align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"sumsIsOverridden\\\"]],[[[1,\\\"      \\\"],[8,[39,4],[[24,\\\"data-test-profit-margin-form-sums-percentage-input\\\",\\\"\\\"],[16,\\\"disabled\\\",[28,[37,6],[[30,2],[28,[37,7],[[30,0,[\\\"sumsIsOverridden\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@containerClass\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@inputGroupText\\\"],[\\\"percentage\\\",[28,[37,1],[\\\"common.Sums\\\"],null],\\\"mb-1\\\",\\\"sumsPercentage\\\",[30,3],[30,4],[28,[37,8],[[30,3,[\\\"profitType\\\"]]],null]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,[28,[35,1],[\\\"common.Sums\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"input-group\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,10],null,[[\\\"@class\\\",\\\"@format\\\",\\\"@formatterOptions\\\",\\\"@number\\\",\\\"@disabled\\\"],[\\\"form-control\\\",\\\"percentage\\\",[28,[37,11],null,[[\\\"dashZero\\\"],[false]]],[28,[37,6],[[30,5,[\\\"sumsPercentage\\\",\\\"value\\\"]],0],null],true]],null],[1,\\\"\\\\n\\\"],[41,[30,5,[\\\"sumsPercentage\\\",\\\"type\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"input-group-text text-muted\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,8],[[30,5,[\\\"sumsPercentage\\\",\\\"type\\\"]]],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n  \\\"],[10,\\\"label\\\"],[14,0,\\\"mx-3 d-flex align-items-center mt-3\\\"],[12],[1,[28,[35,1],[\\\"common.Override\\\"],null]],[1,\\\" \\\\n    \\\"],[8,[39,13],[[24,\\\"data-test-profit-margin-form-sums-checkbox\\\",\\\"\\\"],[24,0,\\\"form-check-input ms-1 mb-1\\\"],[16,\\\"disabled\\\",[30,2]],[4,[38,14],[\\\"click\\\",[28,[37,15],[[30,0,[\\\"togglePercentageOverride\\\"]],[30,3],\\\"sumsPercentage\\\"],null]],null]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"sumsIsOverridden\\\"]]]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"form-text\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,16],[[30,5,[\\\"sumsPercentage\\\",\\\"record\\\"]],\\\"canManageProfitMargin\\\"],null],[[[1,\\\"    \\\"],[8,[39,17],[[24,0,\\\"link ps-0\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[[30,5,[\\\"sumsPercentage\\\",\\\"route\\\"]],[30,5,[\\\"sumsPercentage\\\",\\\"model\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,5,[\\\"sumsPercentage\\\",\\\"value\\\"]],[[[1,\\\"        \\\"],[1,[28,[35,1],[\\\"common.Default\\\"],null]],[1,\\\"\\\\n        \\\"],[1,[28,[35,18],[[30,5,[\\\"sumsPercentage\\\",\\\"value\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]]],[1,\\\"\\\\n        \\\"],[1,[28,[35,8],[[30,5,[\\\"sumsPercentage\\\",\\\"type\\\"]]],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[1,[28,[35,1],[\\\"components.profit-margin-form.Set a default sums profit margin\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[8,[39,19],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",true,\\\"sm\\\"]],null],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[13],[1,\\\"\\\\n\\\"]],[\\\"@description\\\",\\\"@disabled\\\",\\\"@profitMargin\\\",\\\"@forceValidationVisible\\\",\\\"@default\\\"],false,[\\\"h3\\\",\\\"t\\\",\\\"if\\\",\\\"p\\\",\\\"ptl-input\\\",\\\"div\\\",\\\"or\\\",\\\"not\\\",\\\"profit-type-label\\\",\\\"label\\\",\\\"formatted-input\\\",\\\"hash\\\",\\\"span\\\",\\\"input\\\",\\\"on\\\",\\\"fn\\\",\\\"includes-feature-flags\\\",\\\"link-to\\\",\\\"number-format\\\",\\\"fa-icon\\\"]]\",\n    \"moduleName\": \"portal/components/profit-margin-form.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor() {\n      super(...arguments);\n      // keep a reference to the original value\n      _initializerDefineProperty(this, \"labourPercentage\", _descriptor, this);\n      _initializerDefineProperty(this, \"additionalLabourMargin\", _descriptor2, this);\n      _initializerDefineProperty(this, \"materialsPercentage\", _descriptor3, this);\n      _initializerDefineProperty(this, \"subcontractorsPercentage\", _descriptor4, this);\n      _initializerDefineProperty(this, \"sumsPercentage\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _defineProperty(this, \"profitTypes\", [{\n        value: 'MARGIN',\n        label: this.intl.t('common.Margin')\n      }, {\n        value: 'MARKUP',\n        label: this.intl.t('common.Markup')\n      }]);\n      this.labourPercentage = this.args.profitMargin.labourPercentage;\n      this.additionalLabourMargin = this.args.profitMargin.additionalLabourMargin;\n      this.materialsPercentage = this.args.profitMargin.materialsPercentage;\n      this.subcontractorsPercentage = this.args.profitMargin.subcontractorsPercentage;\n      this.sumsPercentage = this.args.profitMargin.sumsPercentage;\n    }\n    // we need setters because the checkbox attempts to change the value\n    set labourIsOverridden(value) {}\n    get labourIsOverridden() {\n      return this.args.profitMargin.labourPercentage != null;\n    }\n    set additionalLabourIsOverridden(value) {}\n    get additionalLabourIsOverridden() {\n      return this.args.profitMargin.additionalLabourMargin != null;\n    }\n    set materialsIsOverridden(value) {}\n    get materialsIsOverridden() {\n      return this.args.profitMargin.materialsPercentage != null;\n    }\n    set subcontractorIsOverridden(value) {}\n    get subcontractorIsOverridden() {\n      return this.args.profitMargin.subcontractorsPercentage != null;\n    }\n    set sumsIsOverridden(value) {}\n    get sumsIsOverridden() {\n      return this.args.profitMargin.sumsPercentage != null;\n    }\n    async togglePercentageOverride(profitMarginModel, fieldName) {\n      // if we have a value, make the value null\n      // otherwise, set the value back to the original value (or 0)\n      const newValue = profitMarginModel[fieldName] != null ? null : Number(this[fieldName]); // we are casting null as a number which returns 0\n\n      profitMarginModel.set(fieldName, newValue);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"labourPercentage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"additionalLabourMargin\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"materialsPercentage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"subcontractorsPercentage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"sumsPercentage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"togglePercentageOverride\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"togglePercentageOverride\"), _class.prototype), _class));\n});","define(\"portal/components/project-card\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"ember-changeset\", \"@ember/object\", \"@ember/service\", \"@glimmer/tracking\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _emberChangeset, _object, _service, _tracking, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"ember-changeset\",0,\"@ember/object\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if @dsl.isDroppingAbove}}\n    <@dsl.Separator />\n  {{/if}}\n  <@dsl.Draggable class='py-2'>\n    {{#if (includes-feature-flags 'canUseProjectCopy')}}\n      <ContextMenu @disabled={{@dsl.isDragging}} as |cm|>\n        <LinkTo\n          @route='entity.builda-price.projects.project'\n          @model={{@item.id}}\n          class='project-card__card card shadow-sm text-dark p-3'\n          role='button'\n          data-test-project={{@item.id}}\n          context-menu={{cm.containerId}}\n          draggable={{and (not @disableDragging) (media 'isDesktop')}}\n        >\n          <div class='row align-items-center'>\n            {{#if (and (not @disableDragging) (not (media 'isDesktop')))}}\n              <@dsl.DragHandle class='col-1 me-3 fs-4'>\n                <FaIcon @icon='grip-vertical' @fixedWidth={{true}} @size='lg' />\n              </@dsl.DragHandle>\n            {{/if}}\n  \n            <div\n              class='col project-card__project-name fs-2'\n              data-test-project-card-name\n            >\n              {{@item.name}}\n            </div>\n  \n            {{#if (media 'isDesktop')}}\n              <div class='col-1 fs-5'>\n                {{#if @item.projectReference}}\n                  {{@item.projectReference}}\n                {{else}}\n                  —\n                {{/if}}\n              </div>\n  \n              <div class='col-3 fs-5'>\n                {{#if @item.address}}\n                  {{@item.address}}\n                {{else}}\n                  —\n                {{/if}}\n              </div>\n  \n              <div class='col-2 fs-5'>\n                {{#if @item.startDate}}\n                  {{moment-format @item.startDate (t 'date.shortWithWeekday')}}\n                {{else}}\n                  —\n                {{/if}}\n              </div>\n            {{/if}}\n            <div class='col-lg-2 col-3 d-flex justify-content-center'>\n              <span\n                class='badge rounded-pill fs-6 px-3 py-2\n                  {{if (eq @item.status \"OPEN\") \"bg-success\"}}\n                  {{if (eq @item.status \"CLOSED\") \"bg-danger\"}}\n                  {{if (eq @item.status \"HELD\") \"bg-warning text-dark\"}}\n                  {{if (eq @item.status \"ARCHIVED\") \"bg-secondary\"}}\n                  '\n              >\n                {{project-status-label @item.status}}\n              </span>\n            </div>\n  \n            <div\n              context-menu={{cm.buttonId}}\n              class='col-1 d-flex align-items-center justify-content-center'\n            >\n              <FaIcon @icon='ellipsis-h' class='fs-3' />\n            </div>\n          </div>\n  \n          <cm.Menu>\n            {{! template-lint-disable no-nested-interactive }}\n            <button\n              type='button'\n              class='dropdown-item text-nowrap py-2 px-3'\n              {{on 'click' this.openDuplicateProjectModal}}\n            >{{t 'common.Duplicate'}}</button>\n          </cm.Menu>\n        </LinkTo>\n      </ContextMenu>\n    {{else}}\n      <LinkTo\n        @route='entity.builda-price.projects.project'\n        @model={{@item.id}}\n        class='project-card__card card shadow-sm text-dark p-3'\n        role='button'\n        data-test-project={{@item.id}}\n        context-menu={{this.cm.containerId}}\n        draggable={{and (not @disableDragging) (media 'isDesktop')}}\n      >\n        <div class='row align-items-center'>\n          {{#if (and (not @disableDragging) (not (media 'isDesktop')))}}\n            <@dsl.DragHandle class='col-1 me-3 fs-4'>\n              <FaIcon @icon='grip-vertical' @fixedWidth={{true}} @size='lg' />\n            </@dsl.DragHandle>\n          {{/if}}\n  \n          <div\n            class='col project-card__project-name fs-2'\n            data-test-project-card-name\n          >\n            {{@item.name}}\n          </div>\n  \n          {{#if (media 'isDesktop')}}\n            <div class='col-2 fs-5'>\n              {{#if @item.projectReference}}\n                {{@item.projectReference}}\n              {{else}}\n                —\n              {{/if}}\n            </div>\n  \n            <div class='col-3 fs-5'>\n              {{#if @item.address}}\n                {{@item.address}}\n              {{else}}\n                —\n              {{/if}}\n            </div>\n  \n            <div class='col-2 fs-5'>\n              {{#if @item.startDate}}\n                {{moment-format @item.startDate (t 'date.shortWithWeekday')}}\n              {{else}}\n                —\n              {{/if}}\n            </div>\n          {{/if}}\n          <div class='col-lg-2 col-3 d-flex justify-content-center'>\n            <span\n              class='badge rounded-pill fs-6 px-3 py-2\n                {{if (eq @item.status \"OPEN\") \"bg-success\"}}\n                {{if (eq @item.status \"CLOSED\") \"bg-danger\"}}\n                {{if (eq @item.status \"HELD\") \"bg-warning text-dark\"}}\n                {{if (eq @item.status \"ARCHIVED\") \"bg-secondary\"}}\n                '\n            >\n              {{project-status-label @item.status}}\n            </span>\n          </div>\n        </div>\n      </LinkTo>\n    {{/if}}\n  </@dsl.Draggable>\n  \n  {{#if this.duplicateProjectChangeset}}\n    <ModalDialog\n      @onClose={{fn (mut this.duplicateProjectChangeset) null}}\n      @containerClass='modal-dialog'\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-content'>\n        <div class='modal-header'>\n          <h5 class='modal-title'>{{t 'common.Duplicate project'}}</h5>\n        </div>\n        <div class='modal-body'>\n          <PtlInput\n            @type='text'\n            @label={{t 'common.New project name'}}\n            @key='projectName'\n            placeholder={{@item.name}}\n            @model={{this.duplicateProjectChangeset}}\n            @required={{true}}\n            disabled={{this.duplicateProject.isRunning}}\n            @forceValidationVisible={{gt this.duplicateProject.performCount 0}}\n          />\n          <PtlInput\n            @type='checkbox'\n            @label={{t 'common.Copy the budget'}}\n            @key='copyBudget'\n            @model={{this.duplicateProjectChangeset}}\n            disabled={{this.duplicateProject.isRunning}}\n            @forceValidationVisible={{gt this.duplicateProject.performCount 0}}\n          />\n          <PtlInput\n            @type='checkbox'\n            @label={{t 'common.Copy the quote'}}\n            @key='copyQuote'\n            @model={{this.duplicateProjectChangeset}}\n            disabled={{this.duplicateProject.isRunning}}\n            @forceValidationVisible={{gt this.duplicateProject.performCount 0}}\n          />\n          <PtlInput\n            @type='checkbox'\n            @label={{t 'common.Copy the schedule'}}\n            @key='copySchedule'\n            @model={{this.duplicateProjectChangeset}}\n            disabled={{this.duplicateProject.isRunning}}\n            @forceValidationVisible={{gt this.duplicateProject.performCount 0}}\n          />\n          <PtlInput\n            @type='checkbox'\n            @label={{t 'common.Copy the products'}}\n            @key='copyProducts'\n            @model={{this.duplicateProjectChangeset}}\n            disabled={{this.duplicateProject.isRunning}}\n            @forceValidationVisible={{gt this.duplicateProject.performCount 0}}\n          />\n          <PtlInput\n            @type='checkbox'\n            @label={{t 'common.Copy assignments'}}\n            @description={{t 'common.copyAssignmentsExplanation'}}\n            @key='copyPeople'\n            @model={{this.duplicateProjectChangeset}}\n            disabled={{this.duplicateProject.isRunning}}\n            @forceValidationVisible={{gt this.duplicateProject.performCount 0}}\n          />\n        </div>\n        <div class='modal-footer text-right'>\n          {{#unless this.duplicateProject.isRunning}}\n            <button\n              class='btn btn-secondary'\n              type='button'\n              {{on 'click' (fn (mut this.duplicateProjectChangeset) null)}}\n            >\n              {{t 'common.Cancel'}}\n            </button>\n          {{/unless}}\n          <button\n            class='btn btn-primary'\n            type='button'\n            {{on 'click' (perform this.duplicateProject)}}\n            disabled={{this.duplicateProject.isRunning}}\n          >\n            {{#if this.duplicateProject.isRunning}}\n              {{t 'common.Duplicating'}}&hellip;\n            {{else}}\n              {{t 'common.Duplicate project'}}\n            {{/if}}\n          </button>\n        </div>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if @dsl.isDroppingBelow}}\n    <@dsl.Separator />\n  {{/if}}\n  */\n  {\n    \"id\": \"7tmXuYER\",\n    \"block\": \"[[[41,[30,1,[\\\"isDroppingAbove\\\"]],[[[1,\\\"  \\\"],[8,[30,1,[\\\"Separator\\\"]],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[8,[30,1,[\\\"Draggable\\\"]],[[24,0,\\\"py-2\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"canUseProjectCopy\\\"],null],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@disabled\\\"],[[30,1,[\\\"isDragging\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,3],[[24,0,\\\"project-card__card card shadow-sm text-dark p-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[16,\\\"data-test-project\\\",[30,3,[\\\"id\\\"]]],[16,\\\"context-menu\\\",[30,2,[\\\"containerId\\\"]]],[16,\\\"draggable\\\",[28,[37,4],[[28,[37,5],[[30,4]],null],[28,[37,6],[\\\"isDesktop\\\"],null]],null]]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.builda-price.projects.project\\\",[30,3,[\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"row align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[[28,[37,5],[[30,4]],null],[28,[37,5],[[28,[37,6],[\\\"isDesktop\\\"],null]],null]],null],[[[1,\\\"            \\\"],[8,[30,1,[\\\"DragHandle\\\"]],[[24,0,\\\"col-1 me-3 fs-4\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[8,[39,8],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"grip-vertical\\\",true,\\\"lg\\\"]],null],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"col project-card__project-name fs-2\\\"],[14,\\\"data-test-project-card-name\\\",\\\"\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[30,3,[\\\"name\\\"]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,6],[\\\"isDesktop\\\"],null],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"col-1 fs-5\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,3,[\\\"projectReference\\\"]],[[[1,\\\"                \\\"],[1,[30,3,[\\\"projectReference\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                —\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[10,0],[14,0,\\\"col-3 fs-5\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,3,[\\\"address\\\"]],[[[1,\\\"                \\\"],[1,[30,3,[\\\"address\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                —\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[10,0],[14,0,\\\"col-2 fs-5\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,3,[\\\"startDate\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,9],[[30,3,[\\\"startDate\\\"]],[28,[37,10],[\\\"date.shortWithWeekday\\\"],null]],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                —\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,0],[14,0,\\\"col-lg-2 col-3 d-flex justify-content-center\\\"],[12],[1,\\\"\\\\n            \\\"],[10,1],[15,0,[29,[\\\"badge rounded-pill fs-6 px-3 py-2\\\\n                \\\",[52,[28,[37,12],[[30,3,[\\\"status\\\"]],\\\"OPEN\\\"],null],\\\"bg-success\\\"],\\\"\\\\n                \\\",[52,[28,[37,12],[[30,3,[\\\"status\\\"]],\\\"CLOSED\\\"],null],\\\"bg-danger\\\"],\\\"\\\\n                \\\",[52,[28,[37,12],[[30,3,[\\\"status\\\"]],\\\"HELD\\\"],null],\\\"bg-warning text-dark\\\"],\\\"\\\\n                \\\",[52,[28,[37,12],[[30,3,[\\\"status\\\"]],\\\"ARCHIVED\\\"],null],\\\"bg-secondary\\\"],\\\"\\\\n                \\\"]]],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,13],[[30,3,[\\\"status\\\"]]],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[15,\\\"context-menu\\\",[30,2,[\\\"buttonId\\\"]]],[14,0,\\\"col-1 d-flex align-items-center justify-content-center\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,8],[[24,0,\\\"fs-3\\\"]],[[\\\"@icon\\\"],[\\\"ellipsis-h\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[8,[30,2,[\\\"Menu\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap py-2 px-3\\\"],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[30,0,[\\\"openDuplicateProjectModal\\\"]]],null],[12],[1,[28,[35,10],[\\\"common.Duplicate\\\"],null]],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"]],[2]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[8,[39,3],[[24,0,\\\"project-card__card card shadow-sm text-dark p-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[16,\\\"data-test-project\\\",[30,3,[\\\"id\\\"]]],[16,\\\"context-menu\\\",[30,0,[\\\"cm\\\",\\\"containerId\\\"]]],[16,\\\"draggable\\\",[28,[37,4],[[28,[37,5],[[30,4]],null],[28,[37,6],[\\\"isDesktop\\\"],null]],null]]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.builda-price.projects.project\\\",[30,3,[\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"row align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[[28,[37,5],[[30,4]],null],[28,[37,5],[[28,[37,6],[\\\"isDesktop\\\"],null]],null]],null],[[[1,\\\"          \\\"],[8,[30,1,[\\\"DragHandle\\\"]],[[24,0,\\\"col-1 me-3 fs-4\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[39,8],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"grip-vertical\\\",true,\\\"lg\\\"]],null],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col project-card__project-name fs-2\\\"],[14,\\\"data-test-project-card-name\\\",\\\"\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,3,[\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,6],[\\\"isDesktop\\\"],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"col-2 fs-5\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,3,[\\\"projectReference\\\"]],[[[1,\\\"              \\\"],[1,[30,3,[\\\"projectReference\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              —\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"col-3 fs-5\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,3,[\\\"address\\\"]],[[[1,\\\"              \\\"],[1,[30,3,[\\\"address\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              —\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"col-2 fs-5\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,3,[\\\"startDate\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,9],[[30,3,[\\\"startDate\\\"]],[28,[37,10],[\\\"date.shortWithWeekday\\\"],null]],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              —\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[10,0],[14,0,\\\"col-lg-2 col-3 d-flex justify-content-center\\\"],[12],[1,\\\"\\\\n          \\\"],[10,1],[15,0,[29,[\\\"badge rounded-pill fs-6 px-3 py-2\\\\n              \\\",[52,[28,[37,12],[[30,3,[\\\"status\\\"]],\\\"OPEN\\\"],null],\\\"bg-success\\\"],\\\"\\\\n              \\\",[52,[28,[37,12],[[30,3,[\\\"status\\\"]],\\\"CLOSED\\\"],null],\\\"bg-danger\\\"],\\\"\\\\n              \\\",[52,[28,[37,12],[[30,3,[\\\"status\\\"]],\\\"HELD\\\"],null],\\\"bg-warning text-dark\\\"],\\\"\\\\n              \\\",[52,[28,[37,12],[[30,3,[\\\"status\\\"]],\\\"ARCHIVED\\\"],null],\\\"bg-secondary\\\"],\\\"\\\\n              \\\"]]],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,13],[[30,3,[\\\"status\\\"]]],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]]]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"duplicateProjectChangeset\\\"]],[[[1,\\\"  \\\"],[8,[39,16],null,[[\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@overlayClass\\\",\\\"@translucentOverlay\\\"],[[28,[37,17],[[28,[37,18],[[30,0,[\\\"duplicateProjectChangeset\\\"]]],null],null],null],\\\"modal-dialog\\\",\\\"modal\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h5\\\"],[14,0,\\\"modal-title\\\"],[12],[1,[28,[35,10],[\\\"common.Duplicate project\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,20],[[16,\\\"placeholder\\\",[30,3,[\\\"name\\\"]]],[16,\\\"disabled\\\",[30,0,[\\\"duplicateProject\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,10],[\\\"common.New project name\\\"],null],\\\"projectName\\\",[30,0,[\\\"duplicateProjectChangeset\\\"]],true,[28,[37,21],[[30,0,[\\\"duplicateProject\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[8,[39,20],[[16,\\\"disabled\\\",[30,0,[\\\"duplicateProject\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,10],[\\\"common.Copy the budget\\\"],null],\\\"copyBudget\\\",[30,0,[\\\"duplicateProjectChangeset\\\"]],[28,[37,21],[[30,0,[\\\"duplicateProject\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[8,[39,20],[[16,\\\"disabled\\\",[30,0,[\\\"duplicateProject\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,10],[\\\"common.Copy the quote\\\"],null],\\\"copyQuote\\\",[30,0,[\\\"duplicateProjectChangeset\\\"]],[28,[37,21],[[30,0,[\\\"duplicateProject\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[8,[39,20],[[16,\\\"disabled\\\",[30,0,[\\\"duplicateProject\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,10],[\\\"common.Copy the schedule\\\"],null],\\\"copySchedule\\\",[30,0,[\\\"duplicateProjectChangeset\\\"]],[28,[37,21],[[30,0,[\\\"duplicateProject\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[8,[39,20],[[16,\\\"disabled\\\",[30,0,[\\\"duplicateProject\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,10],[\\\"common.Copy the products\\\"],null],\\\"copyProducts\\\",[30,0,[\\\"duplicateProjectChangeset\\\"]],[28,[37,21],[[30,0,[\\\"duplicateProject\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[8,[39,20],[[16,\\\"disabled\\\",[30,0,[\\\"duplicateProject\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,10],[\\\"common.Copy assignments\\\"],null],[28,[37,10],[\\\"common.copyAssignmentsExplanation\\\"],null],\\\"copyPeople\\\",[30,0,[\\\"duplicateProjectChangeset\\\"]],[28,[37,21],[[30,0,[\\\"duplicateProject\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"duplicateProject\\\",\\\"isRunning\\\"]]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[28,[37,17],[[28,[37,18],[[30,0,[\\\"duplicateProjectChangeset\\\"]]],null],null],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,10],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"duplicateProject\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[28,[37,23],[[30,0,[\\\"duplicateProject\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"duplicateProject\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,10],[\\\"common.Duplicating\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,10],[\\\"common.Duplicate project\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"isDroppingBelow\\\"]],[[[1,\\\"  \\\"],[8,[30,1,[\\\"Separator\\\"]],null,null,null],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@dsl\\\",\\\"cm\\\",\\\"@item\\\",\\\"@disableDragging\\\"],false,[\\\"if\\\",\\\"includes-feature-flags\\\",\\\"context-menu\\\",\\\"link-to\\\",\\\"and\\\",\\\"not\\\",\\\"media\\\",\\\"div\\\",\\\"fa-icon\\\",\\\"moment-format\\\",\\\"t\\\",\\\"span\\\",\\\"eq\\\",\\\"project-status-label\\\",\\\"button\\\",\\\"on\\\",\\\"modal-dialog\\\",\\\"fn\\\",\\\"mut\\\",\\\"h5\\\",\\\"ptl-input\\\",\\\"gt\\\",\\\"unless\\\",\\\"perform\\\"]]\",\n    \"moduleName\": \"portal/components/project-card.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _initializerDefineProperty(this, \"duplicateProjectChangeset\", _descriptor4, this);\n      _defineProperty(this, \"duplicateProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.duplicateProjectChangeset.validate();\n            if (this.duplicateProjectChangeset.isInvalid) {\n              this.notifications.warning('Please complete the form');\n              return;\n            }\n            this.duplicateProjectChangeset.execute();\n            const projectId = yield this.buildaPrice.duplicateProject(this.args.item.id, this.duplicateProjectChangeset.data);\n            this.duplicateProjectChangeset = null;\n            this.router.transitionTo('entity.builda-price.projects.project', projectId);\n          } catch (error) {\n            this.notifications.error({\n              message: 'Something went wrong while duplicating the project',\n              error\n            });\n          }\n        }\n      }), null, \"duplicateProject\", null));\n    }\n    validateBool(newValue, oldValue) {\n      const value = newValue ?? oldValue;\n      return typeof value === 'boolean' || 'Please provide a valid option';\n    }\n    validateName(newValue, oldValue) {\n      const name = (newValue ?? oldValue) || '';\n      return name.length > 1 || 'Please provide a valid project name';\n    }\n    openDuplicateProjectModal(e) {\n      e.preventDefault();\n      e.stopPropagation();\n      this.duplicateProjectChangeset = (0, _emberChangeset.Changeset)({\n        projectName: '',\n        copyBudget: true,\n        copyQuote: true,\n        copySchedule: true,\n        copyProducts: true,\n        copyPeople: true\n      }, ({\n        key,\n        newValue,\n        oldValue\n      }) => {\n        switch (key) {\n          case 'projectName':\n            return this.validateName(newValue, oldValue);\n          case 'copyBudget':\n            return this.validateBool(newValue, oldValue);\n          case 'copyQuote':\n            return this.validateBool(newValue, oldValue);\n          case 'copySchedule':\n            return this.validateBool(newValue, oldValue);\n          case 'copyProducts':\n            return this.validateBool(newValue, oldValue);\n          case 'copyPeople':\n            return this.validateBool(newValue, oldValue);\n        }\n      }, {\n        projectName: this.validateName,\n        copyBudget: this.validateBool,\n        copyQuote: this.validateBool,\n        copySchedule: this.validateBool,\n        copyProducts: this.validateBool,\n        copyPeople: this.validateBool\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"duplicateProjectChangeset\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"openDuplicateProjectModal\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openDuplicateProjectModal\"), _class.prototype), _class));\n});","define(\"portal/components/project-change-set-description\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='d-flex flex-column'>\n    {{! man hours }}\n    {{#unless @hideManHours}}\n      {{#if @changeSet.manHoursDiff}}\n        <div class='d-flex align-items-center fs-5 my-2'>\n          {{#if (or @version.manHours 0)}}\n            <div class='badge badge-pill bg-warning me-2'>\n              {{t 'common.Modify'}}\n            </div>\n          {{else}}\n            <div class='badge badge-pill bg-success me-2'>\n              {{t 'common.Create'}}\n            </div>\n          {{/if}}\n  \n          <span class='me-2'>\n            <b>{{t 'common.Labour hours'}}</b>\n          </span>\n          <span class='me-2'>\n            {{format-duration (or @version.manHours 0) emptyPlaceholder='0:00'}}\n          </span>\n          <span class='me-2'>\n            <FaIcon @icon='long-arrow-alt-right' @size='lg' />\n          </span>\n          {{format-duration\n            (math @changeSet.manHoursDiff '+' (or @version.manHours 0))\n            emptyPlaceholder='0:00'\n          }}\n        </div>\n      {{/if}}\n    {{/unless}}\n  \n    {{! labour }}\n    {{#if @changeSet.labourDiff}}\n      <div class='d-flex align-items-center fs-5 my-2'>\n        {{#if (or @version.labour 0)}}\n          <div class='badge badge-pill bg-warning me-2'>\n            {{t 'common.Modify'}}\n          </div>\n        {{else}}\n          <div class='badge badge-pill bg-success me-2'>\n            {{t 'common.Create'}}\n          </div>\n        {{/if}}\n  \n        <span class='me-2'>\n          <b>{{t 'common.Labour'}}</b>\n        </span>\n        <span class='me-2'>\n          {{number-format (or @version.labour 0) dashZero=false style='currency'}}\n        </span>\n        <span class='me-2'>\n          <FaIcon @icon='long-arrow-alt-right' @size='lg' />\n        </span>\n        {{number-format\n          (math @changeSet.labourDiff '+' (or @version.labour 0))\n          style='currency'\n          dashZero=false\n        }}\n      </div>\n    {{/if}}\n  \n    {{! materials }}\n    {{#if @changeSet.materialsDiff}}\n      <div class='d-flex align-items-center fs-5 my-2'>\n        {{#if (or @version.materials 0)}}\n          <div class='badge badge-pill bg-warning me-2'>\n            {{t 'common.Modify'}}\n          </div>\n        {{else}}\n          <div class='badge badge-pill bg-success me-2'>\n            {{t 'common.Create'}}\n          </div>\n        {{/if}}\n  \n        <span class='me-2'>\n          <b>{{t 'common.Materials'}}</b>\n        </span>\n        <span class='me-2'>\n          {{number-format\n            (or @version.materials 0)\n            style='currency'\n            dashZero=false\n          }}\n        </span>\n        <span class='me-2'>\n          <FaIcon @icon='long-arrow-alt-right' @size='lg' />\n        </span>\n        {{number-format\n          (math @changeSet.materialsDiff '+' (or @version.materials 0))\n          style='currency'\n          dashZero=false\n        }}\n      </div>\n    {{/if}}\n  \n    {{! subcontractors }}\n    {{#if @changeSet.subcontractorsDiff}}\n      <div class='d-flex align-items-center fs-5 my-2'>\n        {{#if (or @version.subcontractors 0)}}\n          <div class='badge badge-pill bg-warning me-2'>\n            {{t 'common.Modify'}}\n          </div>\n        {{else}}\n          <div class='badge badge-pill bg-success me-2'>\n            {{t 'common.Create'}}\n          </div>\n        {{/if}}\n  \n        <span class='me-2'>\n          <b>{{t 'common.Subcontractors'}}</b>\n        </span>\n        <span class='me-2'>\n          {{number-format\n            (or @version.subcontractors 0)\n            style='currency'\n            dashZero=false\n          }}\n        </span>\n        <span class='me-2'>\n          <FaIcon @icon='long-arrow-alt-right' @size='lg' />\n        </span>\n        {{number-format\n          (math @changeSet.subcontractorsDiff '+' (or @version.subcontractors 0))\n          style='currency'\n          dashZero=false\n        }}\n      </div>\n    {{/if}}\n  \n    {{! sums }}\n    {{#if @changeSet.sumsDiff}}\n      <div class='d-flex align-items-center fs-5 my-2'>\n        {{#if (or @version.sums 0)}}\n          <div class='badge badge-pill bg-warning me-2'>\n            {{t 'common.Modify'}}\n          </div>\n        {{else}}\n          <div class='badge badge-pill bg-success me-2'>\n            {{t 'common.Create'}}\n          </div>\n        {{/if}}\n  \n        <span class='me-2'>\n          <b>{{t 'common.Sums'}}</b>\n        </span>\n        <span class='me-2'>\n          {{number-format (or @version.sums 0) style='currency' dashZero=false}}\n        </span>\n        <span class='me-2'>\n          <FaIcon @icon='long-arrow-alt-right' @size='lg' />\n        </span>\n        {{number-format\n          (math @changeSet.sumsDiff '+' (or @version.sums 0))\n          style='currency'\n          dashZero=false\n        }}\n      </div>\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"L7pg55cp\",\n    \"block\": \"[[[10,0],[14,0,\\\"d-flex flex-column\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,1]],[[[41,[30,2,[\\\"manHoursDiff\\\"]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"d-flex align-items-center fs-5 my-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[[30,3,[\\\"manHours\\\"]],0],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"badge badge-pill bg-warning me-2\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"common.Modify\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"badge badge-pill bg-success me-2\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"common.Create\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"b\\\"],[12],[1,[28,[35,4],[\\\"common.Labour hours\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,7],[[28,[37,3],[[30,3,[\\\"manHours\\\"]],0],null]],[[\\\"emptyPlaceholder\\\"],[\\\"0:00\\\"]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,8],null,[[\\\"@icon\\\",\\\"@size\\\"],[\\\"long-arrow-alt-right\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[1,[28,[35,7],[[28,[37,9],[[30,2,[\\\"manHoursDiff\\\"]],\\\"+\\\",[28,[37,3],[[30,3,[\\\"manHours\\\"]],0],null]],null]],[[\\\"emptyPlaceholder\\\"],[\\\"0:00\\\"]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"labourDiff\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"d-flex align-items-center fs-5 my-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[[30,3,[\\\"labour\\\"]],0],null],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"badge badge-pill bg-warning me-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Modify\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"badge badge-pill bg-success me-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Create\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n      \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"b\\\"],[12],[1,[28,[35,4],[\\\"common.Labour\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,10],[[28,[37,3],[[30,3,[\\\"labour\\\"]],0],null]],[[\\\"dashZero\\\",\\\"style\\\"],[false,\\\"currency\\\"]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,8],null,[[\\\"@icon\\\",\\\"@size\\\"],[\\\"long-arrow-alt-right\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[1,[28,[35,10],[[28,[37,9],[[30,2,[\\\"labourDiff\\\"]],\\\"+\\\",[28,[37,3],[[30,3,[\\\"labour\\\"]],0],null]],null]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",false]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"materialsDiff\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"d-flex align-items-center fs-5 my-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[[30,3,[\\\"materials\\\"]],0],null],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"badge badge-pill bg-warning me-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Modify\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"badge badge-pill bg-success me-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Create\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n      \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"b\\\"],[12],[1,[28,[35,4],[\\\"common.Materials\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,10],[[28,[37,3],[[30,3,[\\\"materials\\\"]],0],null]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",false]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,8],null,[[\\\"@icon\\\",\\\"@size\\\"],[\\\"long-arrow-alt-right\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[1,[28,[35,10],[[28,[37,9],[[30,2,[\\\"materialsDiff\\\"]],\\\"+\\\",[28,[37,3],[[30,3,[\\\"materials\\\"]],0],null]],null]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",false]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"subcontractorsDiff\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"d-flex align-items-center fs-5 my-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[[30,3,[\\\"subcontractors\\\"]],0],null],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"badge badge-pill bg-warning me-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Modify\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"badge badge-pill bg-success me-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Create\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n      \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"b\\\"],[12],[1,[28,[35,4],[\\\"common.Subcontractors\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,10],[[28,[37,3],[[30,3,[\\\"subcontractors\\\"]],0],null]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",false]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,8],null,[[\\\"@icon\\\",\\\"@size\\\"],[\\\"long-arrow-alt-right\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[1,[28,[35,10],[[28,[37,9],[[30,2,[\\\"subcontractorsDiff\\\"]],\\\"+\\\",[28,[37,3],[[30,3,[\\\"subcontractors\\\"]],0],null]],null]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",false]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"sumsDiff\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"d-flex align-items-center fs-5 my-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[[30,3,[\\\"sums\\\"]],0],null],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"badge badge-pill bg-warning me-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Modify\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"badge badge-pill bg-success me-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Create\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n      \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"b\\\"],[12],[1,[28,[35,4],[\\\"common.Sums\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,10],[[28,[37,3],[[30,3,[\\\"sums\\\"]],0],null]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",false]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,8],null,[[\\\"@icon\\\",\\\"@size\\\"],[\\\"long-arrow-alt-right\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[1,[28,[35,10],[[28,[37,9],[[30,2,[\\\"sumsDiff\\\"]],\\\"+\\\",[28,[37,3],[[30,3,[\\\"sums\\\"]],0],null]],null]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",false]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[13]],[\\\"@hideManHours\\\",\\\"@changeSet\\\",\\\"@version\\\"],false,[\\\"div\\\",\\\"unless\\\",\\\"if\\\",\\\"or\\\",\\\"t\\\",\\\"span\\\",\\\"b\\\",\\\"format-duration\\\",\\\"fa-icon\\\",\\\"math\\\",\\\"number-format\\\"]]\",\n    \"moduleName\": \"portal/components/project-change-set-description.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component2.default {});\n});","define(\"portal/components/project-selector\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _tracking, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <PopUp\n    @visible={{this.showSelector}}\n    @onClose={{fn (mut this.showSelector) false}}\n    class='mb-3 project-selector__container'\n    as |pu|\n  >\n    <div\n      role='button'\n      class='project-selector__selector-dropdown border rounded bg-white px-3 pe-4 py-2 text-truncate'\n      {{on 'click' (fn (mut this.showSelector) true)}}\n      data-test-project-selector-dropdown-button\n    >\n      {{#if @selectedProjectIsLoading}}\n        {{t 'common.Loading project'}}&hellip;\n      {{else}}\n        {{@selectedProject.name}}\n      {{/if}}\n    </div>\n  \n    <pu.Content class='project-selector__content dropdown-menu'>\n      <LinkTo\n        @route={{@backToProjectsRoute}}\n        draggable={{false}}\n        class='dropdown-item text-nowrap bg-transparent text-dark fs-5 mt-2'\n      >\n        <FaIcon @icon='arrow-left' @fixedWidth={{true}} />&nbsp;&nbsp;{{t\n          'common.Back to projects'\n        }}\n      </LinkTo>\n  \n      {{#if @openProjectsIsLoading}}\n        <LoadingIcon @type='ripple' @class='p-2' />\n      {{else}}\n        <div class='dropdown-header fs-5'>{{t 'common.Open projects'}}</div>\n        {{#each @openProjects as |project|}}\n          <LinkTo\n            @route={{this.currentRouteName}}\n            @model={{project.id}}\n            draggable={{false}}\n            class='dropdown-item text-nowrap fs-5 text-truncate\n              {{if (eq @selectedProject.id project.id) \" active\"}}'\n            data-test-project-selector-project-link\n          >\n            <FaIcon\n              @icon='check'\n              class={{if\n                (eq @selectedProject.id project.id)\n                'visible'\n                'invisible'\n              }}\n            />\n            &nbsp;&nbsp;{{project.name}}\n          </LinkTo>\n        {{else}}\n          <p class='text-center' data-test-project-selector-no-projects>\n            {{t 'common.No open projects'}}\n          </p>\n        {{/each}}\n      {{/if}}\n    </pu.Content>\n  </PopUp>\n  */\n  {\n    \"id\": \"0SkMRzDr\",\n    \"block\": \"[[[8,[39,0],[[24,0,\\\"mb-3 project-selector__container\\\"]],[[\\\"@visible\\\",\\\"@onClose\\\"],[[30,0,[\\\"showSelector\\\"]],[28,[37,1],[[28,[37,2],[[30,0,[\\\"showSelector\\\"]]],null],false],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[11,0],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"project-selector__selector-dropdown border rounded bg-white px-3 pe-4 py-2 text-truncate\\\"],[24,\\\"data-test-project-selector-dropdown-button\\\",\\\"\\\"],[4,[38,4],[\\\"click\\\",[28,[37,1],[[28,[37,2],[[30,0,[\\\"showSelector\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,2],[[[1,\\\"      \\\"],[1,[28,[35,6],[\\\"common.Loading project\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[1,[30,3,[\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"Content\\\"]],[[24,0,\\\"project-selector__content dropdown-menu\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,7],[[16,\\\"draggable\\\",false],[24,0,\\\"dropdown-item text-nowrap bg-transparent text-dark fs-5 mt-2\\\"]],[[\\\"@route\\\"],[[30,4]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,8],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"arrow-left\\\",true]],null],[1,\\\"  \\\"],[1,[28,[35,6],[\\\"common.Back to projects\\\"],null]],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,5],[[[1,\\\"      \\\"],[8,[39,9],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"p-2\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"dropdown-header fs-5\\\"],[12],[1,[28,[35,6],[\\\"common.Open projects\\\"],null]],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,11],[[28,[37,11],[[30,6]],null]],null],null,[[[1,\\\"        \\\"],[8,[39,7],[[16,\\\"draggable\\\",false],[16,0,[29,[\\\"dropdown-item text-nowrap fs-5 text-truncate\\\\n            \\\",[52,[28,[37,12],[[30,3,[\\\"id\\\"]],[30,7,[\\\"id\\\"]]],null],\\\" active\\\"]]]],[24,\\\"data-test-project-selector-project-link\\\",\\\"\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[[30,0,[\\\"currentRouteName\\\"]],[30,7,[\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,8],[[16,0,[52,[28,[37,12],[[30,3,[\\\"id\\\"]],[30,7,[\\\"id\\\"]]],null],\\\"visible\\\",\\\"invisible\\\"]]],[[\\\"@icon\\\"],[\\\"check\\\"]],null],[1,\\\"\\\\n            \\\"],[1,[30,7,[\\\"name\\\"]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[7]],[[[1,\\\"        \\\"],[10,2],[14,0,\\\"text-center\\\"],[14,\\\"data-test-project-selector-no-projects\\\",\\\"\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"common.No open projects\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]]],[\\\"pu\\\",\\\"@selectedProjectIsLoading\\\",\\\"@selectedProject\\\",\\\"@backToProjectsRoute\\\",\\\"@openProjectsIsLoading\\\",\\\"@openProjects\\\",\\\"project\\\"],false,[\\\"pop-up\\\",\\\"fn\\\",\\\"mut\\\",\\\"div\\\",\\\"on\\\",\\\"if\\\",\\\"t\\\",\\\"link-to\\\",\\\"fa-icon\\\",\\\"loading-icon\\\",\\\"each\\\",\\\"-track-array\\\",\\\"eq\\\",\\\"p\\\"]]\",\n    \"moduleName\": \"portal/components/project-selector.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    get currentRouteName() {\n      const routeName = this.router.currentRouteName;\n\n      // if current route is inside addon, router is not able to determine where to go and is bugging out\n      if (routeName?.includes('oss-portal-addon')) {\n        return 'entity.builda-price.projects.project.health-and-safety';\n      } else if (routeName?.includes('estimates')) {\n        return 'entity.builda-price.projects.project.estimates';\n      }\n\n      // the only dynamic parameters we can keep are the entity and project ids\n      let node = this.router.currentRoute;\n      let target = null;\n      while (node) {\n        const hasUnsharedParam = node.paramNames.some(name => !['id', 'project_id'].includes(name));\n        if (hasUnsharedParam) {\n          target = node.parent;\n        }\n        node = node.parent;\n      }\n      return target ? `${target.name}.index` : routeName;\n    }\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n      _initializerDefineProperty(this, \"showSelector\", _descriptor2, this);\n      _defineProperty(this, \"routeWillChangeHandler\", () => {\n        this.showSelector = false;\n      });\n      this.router.on('routeWillChange', this.routeWillChangeHandler);\n    }\n    willDestroy() {\n      this.router.off('routeWillChange', this.routeWillChangeHandler);\n      super.willDestroy(...arguments);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"showSelector\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _class));\n});","define(\"portal/components/ptl-form\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='card p-3' ...attributes>\n    {{yield}}\n  </div>\n  */\n  {\n    \"id\": \"iBpUSK1c\",\n    \"block\": \"[[[11,0],[24,0,\\\"card p-3\\\"],[17,1],[12],[1,\\\"\\\\n  \\\"],[18,2,null],[1,\\\"\\\\n\\\"],[13]],[\\\"&attrs\\\",\\\"&default\\\"],false,[\\\"div\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"portal/components/ptl-form.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component2.default {});\n});","define(\"portal/components/ptl-input\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/object\", \"moment\", \"@ember/template-factory\"], function (_exports, _component, _component2, _tracking, _object, _moment, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"moment\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! TODO ember-cli-update --to 3.20 }}\n  {{! https://github.com/poteto/ember-changeset/issues/558 }}\n  {{#if (and (eq @type 'checkbox') (eq @role 'switch'))}}\n    <div class={{or @containerClass 'form-check form-switch mb-3'}}>\n      <Input\n        class='form-check-input\n          {{if (and (not this.validationHidden) this.isInvalid) \"is-invalid\"}}'\n        id={{@key}}\n        name={{@key}}\n        @type={{'checkbox'}}\n        role={{@role}}\n        @checked={{get @model @key}}\n        {{on 'blur' (fn (mut this.hasBlurred) true)}}\n        {{on 'change' (fn this.onChange (get @model @key))}}\n        autocomplete='off'\n        {{! '...attributes' automatically merges props }}\n        ...attributes\n        data-test-ptl-input-input\n      />\n      {{#if @label}}\n        <label class={{@labelClass}} for={{@key}} data-test-ptl-input-label>\n          {{@label}}\n          {{#if @required}}<sup class='text-danger'>*</sup>{{/if}}\n          {{! TODO fix this }}\n          {{#if @toolTip}}&nbsp;<InfoPopup @text={{@toolTip}} />{{/if}}\n        </label>\n      {{/if}}\n      {{#unless this.validationHidden}}\n        {{#each this.errors as |error|}}\n          <div class='invalid-feedback d-block' data-test-ptl-input-error>\n            {{html-safe error.validation}}\n          </div>\n        {{/each}}\n      {{/unless}}\n      {{#if @description}}\n        <div class='form-text text-muted' data-test-ptl-input-description>\n          {{@description}}\n        </div>\n      {{/if}}\n      {{#if @warningText}}\n        <div class='form-text alert alert-warning m-0 mt-1 p-0 pt-1 pb-1 ps-2'>\n          {{@warningText}}\n        </div>\n      {{/if}}\n    </div>\n  \n  {{else if (eq @type 'checkbox')}}\n    <div class={{or @containerClass 'form-check mb-3'}}>\n      <Input\n        class='form-check-input\n          {{if (and (not this.validationHidden) this.isInvalid) \"is-invalid\"}}'\n        id={{@key}}\n        name={{@key}}\n        @type={{@type}}\n        @checked={{or @checked (get @model @key)}}\n        {{on 'blur' (fn (mut this.hasBlurred) true)}}\n        {{on 'change' this.onCheckBoxChange}}\n        autocomplete='off'\n        {{! '...attributes' automatically merges props }}\n        ...attributes\n        data-test-ptl-input-input\n      />\n      {{#if @label}}\n        <label class={{@labelClass}} for={{@key}} data-test-ptl-input-label>\n          {{@label}}\n          {{#if @required}}<sup class='text-danger'>*</sup>{{/if}}\n          {{#if @toolTip}}&nbsp;<InfoPopup @text={{@toolTip}} />{{/if}}\n        </label>\n      {{/if}}\n      {{#unless this.validationHidden}}\n        {{#each this.errors as |error|}}\n          <div class='invalid-feedback d-block' data-test-ptl-input-error>\n            {{html-safe error.validation}}\n          </div>\n        {{/each}}\n      {{/unless}}\n      {{#if @description}}\n        <div class='form-text text-muted' data-test-ptl-input-description>\n          {{@description}}\n        </div>\n      {{/if}}\n      {{#if @warningText}}\n        <div class='form-text alert alert-warning m-0 mt-1 p-0 pt-1 pb-1 ps-2'>\n          {{@warningText}}\n        </div>\n      {{/if}}\n    </div>\n  {{else if (eq @type 'radio')}}\n    <div class={{or @containerClass 'form-check mb-3'}}>\n      <input\n        class='form-check-input\n          {{if (and (not this.validationHidden) this.isInvalid) \"is-invalid\"}}'\n        type='radio'\n        name={{@key}}\n        id={{@id}}\n        checked={{eq (get @model @key) @value}}\n        onchange={{fn this.onRadioInputChange @value}}\n        onblur={{fn (mut this.hasBlurred) true}}\n        value={{@value}}\n        autocomplete='off'\n        ...attributes\n        data-test-ptl-input-input\n      />\n      {{#if @label}}\n        <label\n          class={{or @labelClass 'mb-1'}}\n          for={{@id}}\n          data-test-ptl-input-label\n        >\n          {{@label}}\n          {{#if @required}}<sup class='text-danger'>*</sup>{{/if}}\n          {{#if @toolTip}}&nbsp;{{info-popup text=@toolTip}}{{/if}}\n        </label>\n      {{/if}}\n      {{#unless this.validationHidden}}\n        {{#each this.errors as |error|}}\n          <div class='invalid-feedback d-block' data-test-ptl-input-error>\n            {{html-safe error.validation}}\n          </div>\n        {{/each}}\n      {{/unless}}\n      {{#if @description}}\n        <div class='form-text text-muted' data-test-ptl-input-description>\n          {{@description}}\n        </div>\n      {{/if}}\n      {{#if @warningText}}\n        <div class='form-text alert alert-warning m-0 mt-1 p-0 pt-1 pb-1 ps-2'>\n          {{@warningText}}\n        </div>\n      {{/if}}\n    </div>\n  {{else if (eq @type 'range')}}\n    <div class={{or @containerClass 'mb-3'}}>\n      {{#if @label}}\n        <label\n          class={{or @labelClass 'form-label'}}\n          for={{@key}}\n          data-test-ptl-input-label\n        >\n          {{@label}}\n          {{#if @required}}<sup class='text-danger'>*</sup>{{/if}}\n          {{#if @toolTip}}&nbsp;<InfoPopup @text={{@toolTip}} />{{/if}}\n        </label>\n      {{/if}}\n      <Input\n        class='form-range\n          {{if (and (not this.validationHidden) this.isInvalid) \"is-invalid\"}}'\n        id={{@key}}\n        name={{@key}}\n        @type='range'\n        @value={{get @model @key}}\n        min={{@min}}\n        max={{@max}}\n        step={{@step}}\n        {{on 'blur' (fn (mut this.hasBlurred) true)}}\n        {{on 'change' (fn this.onChange (get @model @key))}}\n        autocomplete='off'\n        {{! '...attributes' automatically merges props }}\n        ...attributes\n        data-test-ptl-input-input\n      />\n      {{#unless this.validationHidden}}\n        {{#each this.errors as |error|}}\n          <div class='invalid-feedback d-block' data-test-ptl-input-error>\n            {{error.validation}}\n          </div>\n        {{/each}}\n      {{/unless}}\n      {{#if @description}}\n        <div\n          class='form-text text-muted'\n          data-test-ptl-input-description\n        >{{@description}}</div>\n      {{/if}}\n    </div>\n  {{else if (eq @type 'textarea')}}\n    <div class={{or @containerClass 'mb-3'}}>\n      {{#if @label}}\n        <label\n          class={{or @labelClass 'mb-1'}}\n          for={{@key}}\n          data-test-ptl-input-label\n        >\n          {{@label}}\n          {{#if @required}}<sup class='text-danger'>*</sup>{{/if}}\n          {{#if @toolTip}}&nbsp;<InfoPopup @text={{@toolTip}} />{{/if}}\n        </label>\n      {{/if}}\n      <Textarea\n        class='form-control\n          {{if (and (not this.validationHidden) this.isInvalid) \"is-invalid\"}}'\n        name={{@key}}\n        @value={{get @model @key}}\n        {{on 'blur' (fn (mut this.hasBlurred) true)}}\n        {{on 'change' (fn this.onChange (get @model @key))}}\n        autocomplete='off'\n        {{! '...attributes' automatically merges props }}\n        ...attributes\n        data-test-ptl-input-input\n      />\n      {{#unless this.validationHidden}}\n        {{#each this.errors as |error|}}\n          <div class='invalid-feedback d-block' data-test-ptl-input-error>\n            {{html-safe error.validation}}\n          </div>\n        {{/each}}\n      {{/unless}}\n      {{#if @description}}\n        <div\n          class='form-text text-muted'\n          data-test-ptl-input-description\n        >{{@description}}</div>\n      {{/if}}\n    </div>\n  {{else if (eq @type 'currency')}}\n    <div class={{or @containerClass 'mb-3'}}>\n      {{#if @label}}\n        <label\n          class={{or @labelClass 'mb-1'}}\n          for={{@key}}\n          data-test-ptl-input-label\n        >\n          {{@label}}\n          {{#if @required}}<sup class='text-danger'>*</sup>{{/if}}\n          {{#if @toolTip}}&nbsp;<InfoPopup @text={{@toolTip}} />{{/if}}\n        </label>\n      {{/if}}\n      <div class='input-group'>\n        <FormattedInput\n          @class='form-control {{if\n            (and (not this.validationHidden) this.isInvalid)\n            \" is-invalid\"\n          }}'\n          @name={{@key}}\n          @format='currency'\n          @formatterOptions={{@formatterOptions}}\n          @number={{get @model @key}}\n          @update={{this.onFormattedInputUpdate}}\n          autocomplete='off'\n          ...attributes\n          data-test-ptl-input-input\n          {{on 'blur' (fn (mut this.hasBlurred) true)}}\n        />\n        {{#if @inputGroupText}}\n          <span class='input-group-text text-muted'>{{@inputGroupText}}</span>\n        {{/if}}\n      </div>\n      {{#unless this.validationHidden}}\n        {{#each this.errors as |error|}}\n          <div class='invalid-feedback d-block' data-test-ptl-input-error>\n            {{html-safe error.validation}}\n          </div>\n        {{/each}}\n      {{/unless}}\n      {{#if @description}}\n        <div class='form-text text-muted' data-test-ptl-input-description>\n          {{@description}}\n        </div>\n      {{/if}}\n      {{#if @warningText}}\n        <div\n          class='form-text alert alert-warning m-0 mt-1 p-0 pt-1 pb-1 ps-2'\n          data-test-ptl-input-description\n        >\n          {{@warningText}}\n        </div>\n      {{/if}}\n    </div>\n  {{else if (eq @type 'percentage')}}\n    <div class={{or @containerClass 'mb-3'}}>\n      {{#if @label}}\n        <label\n          class={{or @labelClass 'mb-1'}}\n          for={{@key}}\n          data-test-ptl-input-label\n        >\n          {{@label}}\n          {{#if @required}}<sup class='text-danger'>*</sup>{{/if}}\n          {{#if @toolTip}}&nbsp;<InfoPopup @text={{@toolTip}} />{{/if}}\n        </label>\n      {{/if}}\n      <div class='input-group'>\n        <FormattedInput\n          @class='form-control {{if\n            (and (not this.validationHidden) this.isInvalid)\n            \"is-invalid\"\n          }}'\n          @name={{@key}}\n          @format='percentage'\n          @formatterOptions={{hash dashZero=false}}\n          @number={{get @model @key}}\n          @update={{this.onFormattedInputUpdate}}\n          autocomplete='off'\n          ...attributes\n          data-test-ptl-input-input\n          {{on 'blur' (fn (mut this.hasBlurred) true)}}\n        />\n        {{#if @inputGroupText}}\n          <span\n            class='input-group-text text-muted'\n          >{{@inputGroupText}}</span>{{/if}}\n      </div>\n      {{#unless this.validationHidden}}\n        {{#each this.errors as |error|}}\n          <div class='invalid-feedback d-block' data-test-ptl-input-error>\n            {{html-safe error.validation}}\n          </div>\n        {{/each}}\n      {{/unless}}\n      {{#if @description}}\n        <div class='form-text text-muted' data-test-ptl-input-description>\n          {{@description}}\n        </div>\n      {{/if}}\n      {{#if @warningText}}\n        <div class='form-text alert alert-warning m-0 mt-1 p-0 pt-1 pb-1 ps-2'>\n          {{@warningText}}\n        </div>\n      {{/if}}\n    </div>\n  {{else if (eq @type 'duration')}}\n    <div class={{or @containerClass 'mb-3'}}>\n      {{#if @label}}\n        <label\n          class={{or @labelClass 'mb-1'}}\n          for={{@key}}\n          data-test-ptl-input-label\n        >\n          {{@label}}\n          {{#if @required}}<sup class='text-danger'>*</sup>{{/if}}\n          {{#if @toolTip}}&nbsp;<InfoPopup @text={{@toolTip}} />{{/if}}\n        </label>\n      {{/if}}\n      <DurationInput\n        @duration={{get @model @key}}\n        @selectOnFocus={{true}}\n        @class='form-control {{if\n          (and (not this.validationHidden) this.isInvalid)\n          \" is-invalid\"\n        }}'\n        @onDurationChange={{this.onDurationInputChange}}\n        autocomplete='off'\n        ...attributes\n        data-test-ptl-input-input\n      />\n      {{#unless this.validationHidden}}\n        {{#each this.errors as |error|}}\n          <div class='invalid-feedback d-block' data-test-ptl-input-error>\n            {{html-safe error.validation}}\n          </div>\n        {{/each}}\n      {{/unless}}\n      {{#if @description}}\n        <div\n          class='form-text text-muted'\n          data-test-ptl-input-description\n        >{{@description}}</div>\n      {{/if}}\n      {{#if @warningText}}\n        <div class='form-text alert alert-warning m-0 mt-1 p-0 pt-1 pb-1 ps-2'>\n          {{@warningText}}\n        </div>\n      {{/if}}\n    </div>\n  {{else if (eq @type 'date')}}\n    <div class={{or @containerClass 'mb-3'}}>\n      {{#if @label}}\n        <label\n          class={{or @labelClass 'mb-1'}}\n          for={{@key}}\n          data-test-ptl-input-label\n        >\n          {{@label}}\n          {{#if @required}}<sup class='text-danger'>*</sup>{{/if}}\n          {{#if @toolTip}}&nbsp;<InfoPopup @text={{@toolTip}} />{{/if}}\n        </label>\n      {{/if}}\n      <div class='input-group'>\n        <input\n          class='form-control\n            {{if (and (not this.validationHidden) this.isInvalid) \"is-invalid\"}}'\n          name={{@key}}\n          type='date'\n          value={{this.formattedDate}}\n          {{on 'blur' (fn (mut this.hasBlurred) true)}}\n          {{on 'change' this.onDateInputChange}}\n          autocomplete='off'\n          {{! '...attributes' automatically merges props }}\n          ...attributes\n          data-test-ptl-input-input\n        />\n        {{#if @inputGroupText}}\n          <span class='input-group-text text-muted'>{{@inputGroupText}}</span>\n        {{/if}}\n      </div>\n      {{#unless this.validationHidden}}\n        {{#each this.errors as |error|}}\n          <div class='invalid-feedback d-block' data-test-ptl-input-error>\n            {{html-safe error.validation}}\n          </div>\n        {{/each}}\n      {{/unless}}\n      {{#if @description}}\n        <div class='form-text text-muted' data-test-ptl-input-description>\n          {{@description}}\n        </div>\n      {{/if}}\n      {{#if @warningText}}\n        <div class='form-text alert alert-warning m-0 mt-1 p-0 pt-1 pb-1 ps-2'>\n          {{@warningText}}\n        </div>\n      {{/if}}\n    </div>\n  {{else if (eq @type 'datetime')}}\n    <div class={{or @containerClass 'mb-3'}}>\n      {{#if @label}}\n        <label\n          class={{or @labelClass 'mb-1'}}\n          for={{@key}}\n          data-test-ptl-input-label\n        >\n          {{@label}}\n          {{#if @required}}<sup class='text-danger'>*</sup>{{/if}}\n          {{#if @toolTip}}&nbsp;<InfoPopup @text={{@toolTip}} />{{/if}}\n        </label>\n      {{/if}}\n      <div class='input-group'>\n        <input\n          class='form-control\n            {{if (and (not this.validationHidden) this.isInvalid) \"is-invalid\"}}'\n          name={{@key}}\n          type='datetime-local'\n          value={{this.formattedDateTime}}\n          {{on 'blur' (fn (mut this.hasBlurred) true)}}\n          {{on 'change' this.onDateInputChange}}\n          autocomplete='off'\n          {{! '...attributes' automatically merges props }}\n          ...attributes\n          data-test-ptl-input-input\n        />\n        {{#if @inputGroupText}}\n          <span class='input-group-text text-muted'>{{@inputGroupText}}</span>\n        {{/if}}\n      </div>\n      {{#unless this.validationHidden}}\n        {{#each this.errors as |error|}}\n          <div class='invalid-feedback d-block' data-test-ptl-input-error>\n            {{html-safe error.validation}}\n          </div>\n        {{/each}}\n      {{/unless}}\n      {{#if @description}}\n        <div class='form-text text-muted' data-test-ptl-input-description>\n          {{@description}}\n        </div>\n      {{/if}}\n      {{#if @warningText}}\n        <div class='form-text alert alert-warning m-0 mt-1 p-0 pt-1 pb-1 ps-2'>\n          {{@warningText}}\n        </div>\n      {{/if}}\n    </div>\n  {{else if (eq @type 'powerSelect')}}\n    <div class={{or @containerClass 'mb-3'}}>\n      {{#if @label}}\n        <label\n          class={{or @labelClass 'mb-1'}}\n          for={{@key}}\n          data-test-ptl-input-label\n        >\n          {{@label}}\n          {{#if @required}}<sup class='text-danger'>*</sup>{{/if}}\n          {{#if @toolTip}}&nbsp;<InfoPopup @text={{@toolTip}} />{{/if}}\n        </label>\n      {{/if}}\n  \n      <PowerSelect\n        {{! TODO this needs to work }}\n        {{!-- @class='form-control select-box d-block\n          {{if (and (not validationHidden) this.isInvalid) 'is-invalid'}}' --}}\n        @options={{@options}}\n        @selected={{get @model @key}}\n        @onBlur={{fn (mut this.hasBlurred) true}}\n        @onChange={{this.onPowerSelectorChange}}\n        @disabled={{@disabled}}\n        @searchEnabled={{@searchEnabled}}\n        @searchField={{@searchField}}\n        @placeholder={{@placeholder}}\n        @allowClear={{@allowClear}}\n        @afterOptionsComponent={{@afterOptionsComponent}}\n        data-test-ptl-input-power-select=''\n        autocomplete='off'\n        ...attributes\n        as |option|\n      >\n        {{#each @optionKeys as |key|}}\n          {{get option key}}\n        {{/each}}\n      </PowerSelect>\n  \n      {{#unless this.validationHidden}}\n        {{#each this.errors as |error|}}\n          <div class='invalid-feedback d-block' data-test-ptl-input-error>\n            {{html-safe error.validation}}\n          </div>\n        {{/each}}\n      {{/unless}}\n      {{#if @description}}\n        <div class='form-text text-muted' data-test-ptl-input-description>\n          {{@description}}\n        </div>\n      {{/if}}\n      {{#if @warningText}}\n        <div class='form-text alert alert-warning m-0 mt-1 p-0 pt-1 pb-1 ps-2'>\n          {{@warningText}}\n        </div>\n      {{/if}}\n    </div>\n  {{else if (eq @type 'powerSelectMultiple')}}\n    <div class={{or @containerClass 'mb-3'}}>\n      {{#if @label}}\n        <label\n          class={{or @labelClass 'mb-1'}}\n          for={{@key}}\n          data-test-ptl-input-label\n        >\n          {{@label}}\n          {{#if @required}}<sup class='text-danger'>*</sup>{{/if}}\n          {{#if @toolTip}}&nbsp;<InfoPopup @text={{@toolTip}} />{{/if}}\n        </label>\n      {{/if}}\n  \n      <PowerSelectMultiple\n        {{! TODO this needs to work }}\n        {{!-- @class='form-control select-box d-block\n          {{if (and (not this.validationHidden) this.isInvalid) 'is-invalid'}}' --}}\n        @options={{@options}}\n        @selected={{get @model @key}}\n        @onBlur={{fn (mut this.hasBlurred) true}}\n        @onChange={{this.onPowerSelectorChange}}\n        @disabled={{@disabled}}\n        @searchEnabled={{@searchEnabled}}\n        @searchField={{@searchField}}\n        @placeholder={{@placeholder}}\n        data-test-ptl-input-power-select-multiple=''\n        autocomplete='off'\n        ...attributes\n        as |option|\n      >\n        {{#each @optionKeys as |key|}}\n          {{get option key}}\n        {{/each}}\n      </PowerSelectMultiple>\n  \n      {{#unless this.validationHidden}}\n        {{#each this.errors as |error|}}\n          <div class='invalid-feedback d-block' data-test-ptl-input-error>\n            {{html-safe error.validation}}\n          </div>\n        {{/each}}\n      {{/unless}}\n      {{#if @description}}\n        <div class='form-text text-muted' data-test-ptl-input-description>\n          {{@description}}\n        </div>\n      {{/if}}\n      {{#if @warningText}}\n        <div class='form-text alert alert-warning m-0 mt-1 p-0 pt-1 pb-1 ps-2'>\n          {{@warningText}}\n        </div>\n      {{/if}}\n    </div>\n  {{else if (eq @type 'richtext')}}\n    <div class={{or @containerClass 'mb-3'}}>\n      {{#if @label}}\n        <label\n          class={{or @labelClass 'mb-1'}}\n          for={{@key}}\n          data-test-ptl-input-label\n        >\n          {{@label}}\n          {{#if @required}}<sup class='text-danger'>*</sup>{{/if}}\n          {{#if @toolTip}}&nbsp;<InfoPopup @text={{@toolTip}} />{{/if}}\n        </label>\n      {{/if}}\n  \n      <RichTextEditor\n        @content={{get @model @key}}\n        @readOnly={{@disabled}}\n        @onChange={{this._onRichTextChange}}\n        @onBlur={{fn (mut this.hasBlurred) true}}\n        @height={{@height}}\n      />\n  \n      {{#unless this.validationHidden}}\n        {{#each this.errors as |error|}}\n          <div class='invalid-feedback d-block'>\n            {{html-safe error.validation}}\n          </div>\n        {{/each}}\n      {{/unless}}\n  \n      {{#if @description}}\n        <div class='form-text text-muted'>{{@description}}</div>\n      {{/if}}\n      {{#if @warningText}}\n        <div class='form-text alert alert-warning m-0 mt-1 p-0 pt-1 pb-1 ps-2'>\n          {{@warningText}}\n        </div>\n      {{/if}}\n    </div>\n  {{else if (eq @type 'select')}}\n    <div class={{or @containerClass 'mb-3'}}>\n      {{#if @label}}\n        <label\n          class={{or @labelClass 'mb-1'}}\n          for={{@key}}\n          data-test-ptl-input-label\n        >\n          {{@label}}\n          {{#if @required}}<sup class='text-danger'>*</sup>{{/if}}\n          {{#if @toolTip}}&nbsp;<InfoPopup @text={{@toolTip}} />{{/if}}\n        </label>\n      {{/if}}\n  \n      <SelectInput\n        @value={{get @model @key}}\n        class='form-control select-box d-block\n          {{if (and (not this.validationHidden) this.isInvalid) \"is-invalid\"}}'\n        @action={{fn (mut (get @model @key))}}\n        name={{@key}}\n        {{on 'blur' (fn (mut this.hasBlurred) true)}}\n        {{on 'change' this.onChange}}\n        autocomplete='off'\n        ...attributes\n        data-test-ptl-input-select=''\n        as |si|\n      >\n        {{#unless @selectNoBlankOption}}\n          <option value=''></option>\n        {{/unless}}\n        {{#each @options as |option|}}\n          <si.option @value={{option.value}}>{{option.label}}</si.option>\n        {{/each}}\n      </SelectInput>\n  \n      {{#unless this.validationHidden}}\n        {{#each this.errors as |error|}}\n          <div class='invalid-feedback d-block' data-test-ptl-input-error>\n            {{html-safe error.validation}}\n          </div>\n        {{/each}}\n      {{/unless}}\n      {{#if @description}}\n        <div class='form-text text-muted' data-test-ptl-input-description>\n          {{@description}}\n        </div>\n      {{/if}}\n      {{#if @warningText}}\n        <div class='form-text alert alert-warning m-0 mt-1 p-0 pt-1 pb-1 ps-2'>\n          {{@warningText}}\n        </div>\n      {{/if}}\n    </div>\n  {{else}}\n    <div class={{or @containerClass 'mb-3'}}>\n      {{#if @label}}\n        <label\n          class={{or @labelClass 'mb-1'}}\n          for={{@key}}\n          data-test-ptl-input-label\n        >\n          {{@label}}\n          {{#if @required}}<sup class='text-danger'>*</sup>{{/if}}\n          {{#if @toolTip}}&nbsp;<InfoPopup @text={{@toolTip}} />{{/if}}\n        </label>\n      {{/if}}\n      <div class='input-group'>\n        <Input\n          class='form-control\n            {{if (and (not this.validationHidden) this.isInvalid) \"is-invalid\"}}'\n          name={{@key}}\n          @type={{@type}}\n          @value={{get @model @key}}\n          {{on 'blur' (fn (mut this.hasBlurred) true)}}\n          {{on 'change' (fn this.onChange (get @model @key))}}\n          autocomplete='off'\n          {{! '...attributes' automatically merges props }}\n          ...attributes\n          data-test-ptl-input-input\n        />\n        {{#if @inputGroupText}}\n          <span class='input-group-text text-muted'>{{@inputGroupText}}</span>\n        {{/if}}\n      </div>\n      {{#unless this.validationHidden}}\n        {{#each this.errors as |error|}}\n          <div class='invalid-feedback d-block' data-test-ptl-input-error>\n            {{html-safe error.validation}}\n          </div>\n        {{/each}}\n      {{/unless}}\n      {{#if @description}}\n        <div class='form-text text-muted' data-test-ptl-input-description>\n          {{@description}}\n        </div>\n      {{/if}}\n      {{#if @warningText}}\n        <div class='form-text alert alert-warning m-0 mt-1 p-0 pt-1 pb-1 ps-2'>\n          {{@warningText}}\n        </div>\n      {{/if}}\n    </div>\n  {{/if}}\n  */\n  {\n    \"id\": \"zPTgzuvg\",\n    \"block\": \"[[[41,[28,[37,1],[[28,[37,2],[[30,1],\\\"checkbox\\\"],null],[28,[37,2],[[30,2],\\\"switch\\\"],null]],null],[[[1,\\\"  \\\"],[10,0],[15,0,[28,[37,4],[[30,3],\\\"form-check form-switch mb-3\\\"],null]],[12],[1,\\\"\\\\n    \\\"],[8,[39,5],[[16,0,[29,[\\\"form-check-input\\\\n        \\\",[52,[28,[37,1],[[28,[37,6],[[30,0,[\\\"validationHidden\\\"]]],null],[30,0,[\\\"isInvalid\\\"]]],null],\\\"is-invalid\\\"]]]],[16,1,[30,4]],[16,3,[30,4]],[16,\\\"role\\\",[30,2]],[24,\\\"autocomplete\\\",\\\"off\\\"],[17,5],[24,\\\"data-test-ptl-input-input\\\",\\\"\\\"],[4,[38,8],[\\\"blur\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"hasBlurred\\\"]]],null],true],null]],null],[4,[38,8],[\\\"change\\\",[28,[37,9],[[30,0,[\\\"onChange\\\"]],[28,[37,7],[[30,6],[30,4]],null]],null]],null]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,7],[[30,6],[30,4]],null]]],null],[1,\\\"\\\\n\\\"],[41,[30,7],[[[1,\\\"      \\\"],[10,\\\"label\\\"],[15,0,[30,8]],[15,\\\"for\\\",[30,4]],[14,\\\"data-test-ptl-input-label\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,7]],[1,\\\"\\\\n        \\\"],[41,[30,9],[[[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13]],[]],null],[1,\\\"\\\\n\\\"],[1,\\\"        \\\"],[41,[30,10],[[[1,\\\" \\\"],[8,[39,13],null,[[\\\"@text\\\"],[[30,10]]],null]],[]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[51,[30,0,[\\\"validationHidden\\\"]]],[[[42,[28,[37,16],[[28,[37,16],[[30,0,[\\\"errors\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"invalid-feedback d-block\\\"],[14,\\\"data-test-ptl-input-error\\\",\\\"\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,17],[[30,11,[\\\"validation\\\"]]],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[11]],null]],[]],null],[41,[30,12],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[14,\\\"data-test-ptl-input-description\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,12]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,13],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"form-text alert alert-warning m-0 mt-1 p-0 pt-1 pb-1 ps-2\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,13]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[]],[[[41,[28,[37,2],[[30,1],\\\"checkbox\\\"],null],[[[1,\\\"  \\\"],[10,0],[15,0,[28,[37,4],[[30,3],\\\"form-check mb-3\\\"],null]],[12],[1,\\\"\\\\n    \\\"],[8,[39,5],[[16,0,[29,[\\\"form-check-input\\\\n        \\\",[52,[28,[37,1],[[28,[37,6],[[30,0,[\\\"validationHidden\\\"]]],null],[30,0,[\\\"isInvalid\\\"]]],null],\\\"is-invalid\\\"]]]],[16,1,[30,4]],[16,3,[30,4]],[24,\\\"autocomplete\\\",\\\"off\\\"],[17,5],[24,\\\"data-test-ptl-input-input\\\",\\\"\\\"],[4,[38,8],[\\\"blur\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"hasBlurred\\\"]]],null],true],null]],null],[4,[38,8],[\\\"change\\\",[30,0,[\\\"onCheckBoxChange\\\"]]],null]],[[\\\"@type\\\",\\\"@checked\\\"],[[30,1],[28,[37,4],[[30,14],[28,[37,7],[[30,6],[30,4]],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[30,7],[[[1,\\\"      \\\"],[10,\\\"label\\\"],[15,0,[30,8]],[15,\\\"for\\\",[30,4]],[14,\\\"data-test-ptl-input-label\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,7]],[1,\\\"\\\\n        \\\"],[41,[30,9],[[[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13]],[]],null],[1,\\\"\\\\n        \\\"],[41,[30,10],[[[1,\\\" \\\"],[8,[39,13],null,[[\\\"@text\\\"],[[30,10]]],null]],[]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[51,[30,0,[\\\"validationHidden\\\"]]],[[[42,[28,[37,16],[[28,[37,16],[[30,0,[\\\"errors\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"invalid-feedback d-block\\\"],[14,\\\"data-test-ptl-input-error\\\",\\\"\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,17],[[30,15,[\\\"validation\\\"]]],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[15]],null]],[]],null],[41,[30,12],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[14,\\\"data-test-ptl-input-description\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,12]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,13],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"form-text alert alert-warning m-0 mt-1 p-0 pt-1 pb-1 ps-2\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,13]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,2],[[30,1],\\\"radio\\\"],null],[[[1,\\\"  \\\"],[10,0],[15,0,[28,[37,4],[[30,3],\\\"form-check mb-3\\\"],null]],[12],[1,\\\"\\\\n    \\\"],[11,\\\"input\\\"],[16,0,[29,[\\\"form-check-input\\\\n        \\\",[52,[28,[37,1],[[28,[37,6],[[30,0,[\\\"validationHidden\\\"]]],null],[30,0,[\\\"isInvalid\\\"]]],null],\\\"is-invalid\\\"]]]],[24,4,\\\"radio\\\"],[16,3,[30,4]],[16,1,[30,16]],[16,\\\"checked\\\",[28,[37,2],[[28,[37,7],[[30,6],[30,4]],null],[30,17]],null]],[16,\\\"onchange\\\",[28,[37,9],[[30,0,[\\\"onRadioInputChange\\\"]],[30,17]],null]],[16,\\\"onblur\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"hasBlurred\\\"]]],null],true],null]],[16,2,[30,17]],[24,\\\"autocomplete\\\",\\\"off\\\"],[17,5],[24,\\\"data-test-ptl-input-input\\\",\\\"\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[30,7],[[[1,\\\"      \\\"],[10,\\\"label\\\"],[15,0,[28,[37,4],[[30,8],\\\"mb-1\\\"],null]],[15,\\\"for\\\",[30,16]],[14,\\\"data-test-ptl-input-label\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,7]],[1,\\\"\\\\n        \\\"],[41,[30,9],[[[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13]],[]],null],[1,\\\"\\\\n        \\\"],[41,[30,10],[[[1,\\\" \\\"],[1,[28,[35,13],null,[[\\\"text\\\"],[[30,10]]]]]],[]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[51,[30,0,[\\\"validationHidden\\\"]]],[[[42,[28,[37,16],[[28,[37,16],[[30,0,[\\\"errors\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"invalid-feedback d-block\\\"],[14,\\\"data-test-ptl-input-error\\\",\\\"\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,17],[[30,18,[\\\"validation\\\"]]],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[18]],null]],[]],null],[41,[30,12],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[14,\\\"data-test-ptl-input-description\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,12]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,13],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"form-text alert alert-warning m-0 mt-1 p-0 pt-1 pb-1 ps-2\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,13]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,2],[[30,1],\\\"range\\\"],null],[[[1,\\\"  \\\"],[10,0],[15,0,[28,[37,4],[[30,3],\\\"mb-3\\\"],null]],[12],[1,\\\"\\\\n\\\"],[41,[30,7],[[[1,\\\"      \\\"],[10,\\\"label\\\"],[15,0,[28,[37,4],[[30,8],\\\"form-label\\\"],null]],[15,\\\"for\\\",[30,4]],[14,\\\"data-test-ptl-input-label\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,7]],[1,\\\"\\\\n        \\\"],[41,[30,9],[[[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13]],[]],null],[1,\\\"\\\\n        \\\"],[41,[30,10],[[[1,\\\" \\\"],[8,[39,13],null,[[\\\"@text\\\"],[[30,10]]],null]],[]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[8,[39,5],[[16,0,[29,[\\\"form-range\\\\n        \\\",[52,[28,[37,1],[[28,[37,6],[[30,0,[\\\"validationHidden\\\"]]],null],[30,0,[\\\"isInvalid\\\"]]],null],\\\"is-invalid\\\"]]]],[16,1,[30,4]],[16,3,[30,4]],[16,\\\"min\\\",[30,19]],[16,\\\"max\\\",[30,20]],[16,\\\"step\\\",[30,21]],[24,\\\"autocomplete\\\",\\\"off\\\"],[17,5],[24,\\\"data-test-ptl-input-input\\\",\\\"\\\"],[4,[38,8],[\\\"blur\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"hasBlurred\\\"]]],null],true],null]],null],[4,[38,8],[\\\"change\\\",[28,[37,9],[[30,0,[\\\"onChange\\\"]],[28,[37,7],[[30,6],[30,4]],null]],null]],null]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"range\\\",[28,[37,7],[[30,6],[30,4]],null]]],null],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"validationHidden\\\"]]],[[[42,[28,[37,16],[[28,[37,16],[[30,0,[\\\"errors\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"invalid-feedback d-block\\\"],[14,\\\"data-test-ptl-input-error\\\",\\\"\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,22,[\\\"validation\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[22]],null]],[]],null],[41,[30,12],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[14,\\\"data-test-ptl-input-description\\\",\\\"\\\"],[12],[1,[30,12]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,2],[[30,1],\\\"textarea\\\"],null],[[[1,\\\"  \\\"],[10,0],[15,0,[28,[37,4],[[30,3],\\\"mb-3\\\"],null]],[12],[1,\\\"\\\\n\\\"],[41,[30,7],[[[1,\\\"      \\\"],[10,\\\"label\\\"],[15,0,[28,[37,4],[[30,8],\\\"mb-1\\\"],null]],[15,\\\"for\\\",[30,4]],[14,\\\"data-test-ptl-input-label\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,7]],[1,\\\"\\\\n        \\\"],[41,[30,9],[[[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13]],[]],null],[1,\\\"\\\\n        \\\"],[41,[30,10],[[[1,\\\" \\\"],[8,[39,13],null,[[\\\"@text\\\"],[[30,10]]],null]],[]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[8,[39,18],[[16,0,[29,[\\\"form-control\\\\n        \\\",[52,[28,[37,1],[[28,[37,6],[[30,0,[\\\"validationHidden\\\"]]],null],[30,0,[\\\"isInvalid\\\"]]],null],\\\"is-invalid\\\"]]]],[16,3,[30,4]],[24,\\\"autocomplete\\\",\\\"off\\\"],[17,5],[24,\\\"data-test-ptl-input-input\\\",\\\"\\\"],[4,[38,8],[\\\"blur\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"hasBlurred\\\"]]],null],true],null]],null],[4,[38,8],[\\\"change\\\",[28,[37,9],[[30,0,[\\\"onChange\\\"]],[28,[37,7],[[30,6],[30,4]],null]],null]],null]],[[\\\"@value\\\"],[[28,[37,7],[[30,6],[30,4]],null]]],null],[1,\\\"\\\"],[41,[51,[30,0,[\\\"validationHidden\\\"]]],[[[42,[28,[37,16],[[28,[37,16],[[30,0,[\\\"errors\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"invalid-feedback d-block\\\"],[14,\\\"data-test-ptl-input-error\\\",\\\"\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,17],[[30,23,[\\\"validation\\\"]]],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[23]],null]],[]],null],[41,[30,12],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[14,\\\"data-test-ptl-input-description\\\",\\\"\\\"],[12],[1,[30,12]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,2],[[30,1],\\\"currency\\\"],null],[[[1,\\\"  \\\"],[10,0],[15,0,[28,[37,4],[[30,3],\\\"mb-3\\\"],null]],[12],[1,\\\"\\\\n\\\"],[41,[30,7],[[[1,\\\"      \\\"],[10,\\\"label\\\"],[15,0,[28,[37,4],[[30,8],\\\"mb-1\\\"],null]],[15,\\\"for\\\",[30,4]],[14,\\\"data-test-ptl-input-label\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,7]],[1,\\\"\\\\n        \\\"],[41,[30,9],[[[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13]],[]],null],[1,\\\"\\\\n        \\\"],[41,[30,10],[[[1,\\\" \\\"],[8,[39,13],null,[[\\\"@text\\\"],[[30,10]]],null]],[]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[10,0],[14,0,\\\"input-group\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,19],[[24,\\\"autocomplete\\\",\\\"off\\\"],[17,5],[24,\\\"data-test-ptl-input-input\\\",\\\"\\\"],[4,[38,8],[\\\"blur\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"hasBlurred\\\"]]],null],true],null]],null]],[[\\\"@class\\\",\\\"@name\\\",\\\"@format\\\",\\\"@formatterOptions\\\",\\\"@number\\\",\\\"@update\\\"],[[29,[\\\"form-control \\\",[52,[28,[37,1],[[28,[37,6],[[30,0,[\\\"validationHidden\\\"]]],null],[30,0,[\\\"isInvalid\\\"]]],null],\\\" is-invalid\\\"]]],[30,4],\\\"currency\\\",[30,24],[28,[37,7],[[30,6],[30,4]],null],[30,0,[\\\"onFormattedInputUpdate\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[30,25],[[[1,\\\"        \\\"],[10,1],[14,0,\\\"input-group-text text-muted\\\"],[12],[1,[30,25]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"validationHidden\\\"]]],[[[42,[28,[37,16],[[28,[37,16],[[30,0,[\\\"errors\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"invalid-feedback d-block\\\"],[14,\\\"data-test-ptl-input-error\\\",\\\"\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,17],[[30,26,[\\\"validation\\\"]]],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[26]],null]],[]],null],[41,[30,12],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[14,\\\"data-test-ptl-input-description\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,12]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,13],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"form-text alert alert-warning m-0 mt-1 p-0 pt-1 pb-1 ps-2\\\"],[14,\\\"data-test-ptl-input-description\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,13]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,2],[[30,1],\\\"percentage\\\"],null],[[[1,\\\"  \\\"],[10,0],[15,0,[28,[37,4],[[30,3],\\\"mb-3\\\"],null]],[12],[1,\\\"\\\\n\\\"],[41,[30,7],[[[1,\\\"      \\\"],[10,\\\"label\\\"],[15,0,[28,[37,4],[[30,8],\\\"mb-1\\\"],null]],[15,\\\"for\\\",[30,4]],[14,\\\"data-test-ptl-input-label\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,7]],[1,\\\"\\\\n        \\\"],[41,[30,9],[[[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13]],[]],null],[1,\\\"\\\\n        \\\"],[41,[30,10],[[[1,\\\" \\\"],[8,[39,13],null,[[\\\"@text\\\"],[[30,10]]],null]],[]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[10,0],[14,0,\\\"input-group\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,19],[[24,\\\"autocomplete\\\",\\\"off\\\"],[17,5],[24,\\\"data-test-ptl-input-input\\\",\\\"\\\"],[4,[38,8],[\\\"blur\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"hasBlurred\\\"]]],null],true],null]],null]],[[\\\"@class\\\",\\\"@name\\\",\\\"@format\\\",\\\"@formatterOptions\\\",\\\"@number\\\",\\\"@update\\\"],[[29,[\\\"form-control \\\",[52,[28,[37,1],[[28,[37,6],[[30,0,[\\\"validationHidden\\\"]]],null],[30,0,[\\\"isInvalid\\\"]]],null],\\\"is-invalid\\\"]]],[30,4],\\\"percentage\\\",[28,[37,21],null,[[\\\"dashZero\\\"],[false]]],[28,[37,7],[[30,6],[30,4]],null],[30,0,[\\\"onFormattedInputUpdate\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[30,25],[[[1,\\\"        \\\"],[10,1],[14,0,\\\"input-group-text text-muted\\\"],[12],[1,[30,25]],[13]],[]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"validationHidden\\\"]]],[[[42,[28,[37,16],[[28,[37,16],[[30,0,[\\\"errors\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"invalid-feedback d-block\\\"],[14,\\\"data-test-ptl-input-error\\\",\\\"\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,17],[[30,27,[\\\"validation\\\"]]],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[27]],null]],[]],null],[41,[30,12],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[14,\\\"data-test-ptl-input-description\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,12]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,13],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"form-text alert alert-warning m-0 mt-1 p-0 pt-1 pb-1 ps-2\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,13]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,2],[[30,1],\\\"duration\\\"],null],[[[1,\\\"  \\\"],[10,0],[15,0,[28,[37,4],[[30,3],\\\"mb-3\\\"],null]],[12],[1,\\\"\\\\n\\\"],[41,[30,7],[[[1,\\\"      \\\"],[10,\\\"label\\\"],[15,0,[28,[37,4],[[30,8],\\\"mb-1\\\"],null]],[15,\\\"for\\\",[30,4]],[14,\\\"data-test-ptl-input-label\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,7]],[1,\\\"\\\\n        \\\"],[41,[30,9],[[[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13]],[]],null],[1,\\\"\\\\n        \\\"],[41,[30,10],[[[1,\\\" \\\"],[8,[39,13],null,[[\\\"@text\\\"],[[30,10]]],null]],[]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[8,[39,22],[[24,\\\"autocomplete\\\",\\\"off\\\"],[17,5],[24,\\\"data-test-ptl-input-input\\\",\\\"\\\"]],[[\\\"@duration\\\",\\\"@selectOnFocus\\\",\\\"@class\\\",\\\"@onDurationChange\\\"],[[28,[37,7],[[30,6],[30,4]],null],true,[29,[\\\"form-control \\\",[52,[28,[37,1],[[28,[37,6],[[30,0,[\\\"validationHidden\\\"]]],null],[30,0,[\\\"isInvalid\\\"]]],null],\\\" is-invalid\\\"]]],[30,0,[\\\"onDurationInputChange\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"validationHidden\\\"]]],[[[42,[28,[37,16],[[28,[37,16],[[30,0,[\\\"errors\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"invalid-feedback d-block\\\"],[14,\\\"data-test-ptl-input-error\\\",\\\"\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,17],[[30,28,[\\\"validation\\\"]]],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[28]],null]],[]],null],[41,[30,12],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[14,\\\"data-test-ptl-input-description\\\",\\\"\\\"],[12],[1,[30,12]],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,13],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"form-text alert alert-warning m-0 mt-1 p-0 pt-1 pb-1 ps-2\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,13]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,2],[[30,1],\\\"date\\\"],null],[[[1,\\\"  \\\"],[10,0],[15,0,[28,[37,4],[[30,3],\\\"mb-3\\\"],null]],[12],[1,\\\"\\\\n\\\"],[41,[30,7],[[[1,\\\"      \\\"],[10,\\\"label\\\"],[15,0,[28,[37,4],[[30,8],\\\"mb-1\\\"],null]],[15,\\\"for\\\",[30,4]],[14,\\\"data-test-ptl-input-label\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,7]],[1,\\\"\\\\n        \\\"],[41,[30,9],[[[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13]],[]],null],[1,\\\"\\\\n        \\\"],[41,[30,10],[[[1,\\\" \\\"],[8,[39,13],null,[[\\\"@text\\\"],[[30,10]]],null]],[]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[10,0],[14,0,\\\"input-group\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"input\\\"],[16,0,[29,[\\\"form-control\\\\n          \\\",[52,[28,[37,1],[[28,[37,6],[[30,0,[\\\"validationHidden\\\"]]],null],[30,0,[\\\"isInvalid\\\"]]],null],\\\"is-invalid\\\"]]]],[16,3,[30,4]],[24,4,\\\"date\\\"],[16,2,[30,0,[\\\"formattedDate\\\"]]],[24,\\\"autocomplete\\\",\\\"off\\\"],[17,5],[24,\\\"data-test-ptl-input-input\\\",\\\"\\\"],[4,[38,8],[\\\"blur\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"hasBlurred\\\"]]],null],true],null]],null],[4,[38,8],[\\\"change\\\",[30,0,[\\\"onDateInputChange\\\"]]],null],[12],[13],[1,\\\"\\\\n\\\"],[41,[30,25],[[[1,\\\"        \\\"],[10,1],[14,0,\\\"input-group-text text-muted\\\"],[12],[1,[30,25]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"validationHidden\\\"]]],[[[42,[28,[37,16],[[28,[37,16],[[30,0,[\\\"errors\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"invalid-feedback d-block\\\"],[14,\\\"data-test-ptl-input-error\\\",\\\"\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,17],[[30,29,[\\\"validation\\\"]]],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[29]],null]],[]],null],[41,[30,12],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[14,\\\"data-test-ptl-input-description\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,12]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,13],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"form-text alert alert-warning m-0 mt-1 p-0 pt-1 pb-1 ps-2\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,13]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,2],[[30,1],\\\"datetime\\\"],null],[[[1,\\\"  \\\"],[10,0],[15,0,[28,[37,4],[[30,3],\\\"mb-3\\\"],null]],[12],[1,\\\"\\\\n\\\"],[41,[30,7],[[[1,\\\"      \\\"],[10,\\\"label\\\"],[15,0,[28,[37,4],[[30,8],\\\"mb-1\\\"],null]],[15,\\\"for\\\",[30,4]],[14,\\\"data-test-ptl-input-label\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,7]],[1,\\\"\\\\n        \\\"],[41,[30,9],[[[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13]],[]],null],[1,\\\"\\\\n        \\\"],[41,[30,10],[[[1,\\\" \\\"],[8,[39,13],null,[[\\\"@text\\\"],[[30,10]]],null]],[]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[10,0],[14,0,\\\"input-group\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"input\\\"],[16,0,[29,[\\\"form-control\\\\n          \\\",[52,[28,[37,1],[[28,[37,6],[[30,0,[\\\"validationHidden\\\"]]],null],[30,0,[\\\"isInvalid\\\"]]],null],\\\"is-invalid\\\"]]]],[16,3,[30,4]],[24,4,\\\"datetime-local\\\"],[16,2,[30,0,[\\\"formattedDateTime\\\"]]],[24,\\\"autocomplete\\\",\\\"off\\\"],[17,5],[24,\\\"data-test-ptl-input-input\\\",\\\"\\\"],[4,[38,8],[\\\"blur\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"hasBlurred\\\"]]],null],true],null]],null],[4,[38,8],[\\\"change\\\",[30,0,[\\\"onDateInputChange\\\"]]],null],[12],[13],[1,\\\"\\\\n\\\"],[41,[30,25],[[[1,\\\"        \\\"],[10,1],[14,0,\\\"input-group-text text-muted\\\"],[12],[1,[30,25]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"validationHidden\\\"]]],[[[42,[28,[37,16],[[28,[37,16],[[30,0,[\\\"errors\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"invalid-feedback d-block\\\"],[14,\\\"data-test-ptl-input-error\\\",\\\"\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,17],[[30,30,[\\\"validation\\\"]]],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[30]],null]],[]],null],[41,[30,12],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[14,\\\"data-test-ptl-input-description\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,12]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,13],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"form-text alert alert-warning m-0 mt-1 p-0 pt-1 pb-1 ps-2\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,13]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,2],[[30,1],\\\"powerSelect\\\"],null],[[[1,\\\"  \\\"],[10,0],[15,0,[28,[37,4],[[30,3],\\\"mb-3\\\"],null]],[12],[1,\\\"\\\\n\\\"],[41,[30,7],[[[1,\\\"      \\\"],[10,\\\"label\\\"],[15,0,[28,[37,4],[[30,8],\\\"mb-1\\\"],null]],[15,\\\"for\\\",[30,4]],[14,\\\"data-test-ptl-input-label\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,7]],[1,\\\"\\\\n        \\\"],[41,[30,9],[[[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13]],[]],null],[1,\\\"\\\\n        \\\"],[41,[30,10],[[[1,\\\" \\\"],[8,[39,13],null,[[\\\"@text\\\"],[[30,10]]],null]],[]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n    \\\"],[8,[39,23],[[24,\\\"data-test-ptl-input-power-select\\\",\\\"\\\"],[24,\\\"autocomplete\\\",\\\"off\\\"],[17,5]],[[\\\"@options\\\",\\\"@selected\\\",\\\"@onBlur\\\",\\\"@onChange\\\",\\\"@disabled\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@allowClear\\\",\\\"@afterOptionsComponent\\\"],[[30,31],[28,[37,7],[[30,6],[30,4]],null],[28,[37,9],[[28,[37,10],[[30,0,[\\\"hasBlurred\\\"]]],null],true],null],[30,0,[\\\"onPowerSelectorChange\\\"]],[30,32],[30,33],[30,34],[30,35],[30,36],[30,37]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,16],[[28,[37,16],[[30,39]],null]],null],null,[[[1,\\\"        \\\"],[1,[28,[35,7],[[30,38],[30,40]],null]],[1,\\\"\\\\n\\\"]],[40]],null],[1,\\\"    \\\"]],[38]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"validationHidden\\\"]]],[[[42,[28,[37,16],[[28,[37,16],[[30,0,[\\\"errors\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"invalid-feedback d-block\\\"],[14,\\\"data-test-ptl-input-error\\\",\\\"\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,17],[[30,41,[\\\"validation\\\"]]],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[41]],null]],[]],null],[41,[30,12],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[14,\\\"data-test-ptl-input-description\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,12]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,13],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"form-text alert alert-warning m-0 mt-1 p-0 pt-1 pb-1 ps-2\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,13]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,2],[[30,1],\\\"powerSelectMultiple\\\"],null],[[[1,\\\"  \\\"],[10,0],[15,0,[28,[37,4],[[30,3],\\\"mb-3\\\"],null]],[12],[1,\\\"\\\\n\\\"],[41,[30,7],[[[1,\\\"      \\\"],[10,\\\"label\\\"],[15,0,[28,[37,4],[[30,8],\\\"mb-1\\\"],null]],[15,\\\"for\\\",[30,4]],[14,\\\"data-test-ptl-input-label\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,7]],[1,\\\"\\\\n        \\\"],[41,[30,9],[[[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13]],[]],null],[1,\\\"\\\\n        \\\"],[41,[30,10],[[[1,\\\" \\\"],[8,[39,13],null,[[\\\"@text\\\"],[[30,10]]],null]],[]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n    \\\"],[8,[39,24],[[24,\\\"data-test-ptl-input-power-select-multiple\\\",\\\"\\\"],[24,\\\"autocomplete\\\",\\\"off\\\"],[17,5]],[[\\\"@options\\\",\\\"@selected\\\",\\\"@onBlur\\\",\\\"@onChange\\\",\\\"@disabled\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\"],[[30,31],[28,[37,7],[[30,6],[30,4]],null],[28,[37,9],[[28,[37,10],[[30,0,[\\\"hasBlurred\\\"]]],null],true],null],[30,0,[\\\"onPowerSelectorChange\\\"]],[30,32],[30,33],[30,34],[30,35]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,16],[[28,[37,16],[[30,39]],null]],null],null,[[[1,\\\"        \\\"],[1,[28,[35,7],[[30,42],[30,43]],null]],[1,\\\"\\\\n\\\"]],[43]],null],[1,\\\"    \\\"]],[42]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"validationHidden\\\"]]],[[[42,[28,[37,16],[[28,[37,16],[[30,0,[\\\"errors\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"invalid-feedback d-block\\\"],[14,\\\"data-test-ptl-input-error\\\",\\\"\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,17],[[30,44,[\\\"validation\\\"]]],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[44]],null]],[]],null],[41,[30,12],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[14,\\\"data-test-ptl-input-description\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,12]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,13],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"form-text alert alert-warning m-0 mt-1 p-0 pt-1 pb-1 ps-2\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,13]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,2],[[30,1],\\\"richtext\\\"],null],[[[1,\\\"  \\\"],[10,0],[15,0,[28,[37,4],[[30,3],\\\"mb-3\\\"],null]],[12],[1,\\\"\\\\n\\\"],[41,[30,7],[[[1,\\\"      \\\"],[10,\\\"label\\\"],[15,0,[28,[37,4],[[30,8],\\\"mb-1\\\"],null]],[15,\\\"for\\\",[30,4]],[14,\\\"data-test-ptl-input-label\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,7]],[1,\\\"\\\\n        \\\"],[41,[30,9],[[[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13]],[]],null],[1,\\\"\\\\n        \\\"],[41,[30,10],[[[1,\\\" \\\"],[8,[39,13],null,[[\\\"@text\\\"],[[30,10]]],null]],[]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n    \\\"],[8,[39,25],null,[[\\\"@content\\\",\\\"@readOnly\\\",\\\"@onChange\\\",\\\"@onBlur\\\",\\\"@height\\\"],[[28,[37,7],[[30,6],[30,4]],null],[30,32],[30,0,[\\\"_onRichTextChange\\\"]],[28,[37,9],[[28,[37,10],[[30,0,[\\\"hasBlurred\\\"]]],null],true],null],[30,45]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"validationHidden\\\"]]],[[[42,[28,[37,16],[[28,[37,16],[[30,0,[\\\"errors\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"invalid-feedback d-block\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,17],[[30,46,[\\\"validation\\\"]]],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[46]],null]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,12],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,[30,12]],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,13],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"form-text alert alert-warning m-0 mt-1 p-0 pt-1 pb-1 ps-2\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,13]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,2],[[30,1],\\\"select\\\"],null],[[[1,\\\"  \\\"],[10,0],[15,0,[28,[37,4],[[30,3],\\\"mb-3\\\"],null]],[12],[1,\\\"\\\\n\\\"],[41,[30,7],[[[1,\\\"      \\\"],[10,\\\"label\\\"],[15,0,[28,[37,4],[[30,8],\\\"mb-1\\\"],null]],[15,\\\"for\\\",[30,4]],[14,\\\"data-test-ptl-input-label\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,7]],[1,\\\"\\\\n        \\\"],[41,[30,9],[[[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13]],[]],null],[1,\\\"\\\\n        \\\"],[41,[30,10],[[[1,\\\" \\\"],[8,[39,13],null,[[\\\"@text\\\"],[[30,10]]],null]],[]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n    \\\"],[8,[39,26],[[16,0,[29,[\\\"form-control select-box d-block\\\\n        \\\",[52,[28,[37,1],[[28,[37,6],[[30,0,[\\\"validationHidden\\\"]]],null],[30,0,[\\\"isInvalid\\\"]]],null],\\\"is-invalid\\\"]]]],[16,3,[30,4]],[24,\\\"autocomplete\\\",\\\"off\\\"],[17,5],[24,\\\"data-test-ptl-input-select\\\",\\\"\\\"],[4,[38,8],[\\\"blur\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"hasBlurred\\\"]]],null],true],null]],null],[4,[38,8],[\\\"change\\\",[30,0,[\\\"onChange\\\"]]],null]],[[\\\"@value\\\",\\\"@action\\\"],[[28,[37,7],[[30,6],[30,4]],null],[28,[37,9],[[28,[37,10],[[28,[37,7],[[30,6],[30,4]],null]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[51,[30,48]],[[[1,\\\"        \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[42,[28,[37,16],[[28,[37,16],[[30,31]],null]],null],null,[[[1,\\\"        \\\"],[8,[30,47,[\\\"option\\\"]],null,[[\\\"@value\\\"],[[30,49,[\\\"value\\\"]]]],[[\\\"default\\\"],[[[[1,[30,49,[\\\"label\\\"]]]],[]]]]],[1,\\\"\\\\n\\\"]],[49]],null],[1,\\\"    \\\"]],[47]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"validationHidden\\\"]]],[[[42,[28,[37,16],[[28,[37,16],[[30,0,[\\\"errors\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"invalid-feedback d-block\\\"],[14,\\\"data-test-ptl-input-error\\\",\\\"\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,17],[[30,50,[\\\"validation\\\"]]],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[50]],null]],[]],null],[41,[30,12],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[14,\\\"data-test-ptl-input-description\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,12]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,13],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"form-text alert alert-warning m-0 mt-1 p-0 pt-1 pb-1 ps-2\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,13]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[15,0,[28,[37,4],[[30,3],\\\"mb-3\\\"],null]],[12],[1,\\\"\\\\n\\\"],[41,[30,7],[[[1,\\\"      \\\"],[10,\\\"label\\\"],[15,0,[28,[37,4],[[30,8],\\\"mb-1\\\"],null]],[15,\\\"for\\\",[30,4]],[14,\\\"data-test-ptl-input-label\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,7]],[1,\\\"\\\\n        \\\"],[41,[30,9],[[[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13]],[]],null],[1,\\\"\\\\n        \\\"],[41,[30,10],[[[1,\\\" \\\"],[8,[39,13],null,[[\\\"@text\\\"],[[30,10]]],null]],[]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[10,0],[14,0,\\\"input-group\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,5],[[16,0,[29,[\\\"form-control\\\\n          \\\",[52,[28,[37,1],[[28,[37,6],[[30,0,[\\\"validationHidden\\\"]]],null],[30,0,[\\\"isInvalid\\\"]]],null],\\\"is-invalid\\\"]]]],[16,3,[30,4]],[24,\\\"autocomplete\\\",\\\"off\\\"],[17,5],[24,\\\"data-test-ptl-input-input\\\",\\\"\\\"],[4,[38,8],[\\\"blur\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"hasBlurred\\\"]]],null],true],null]],null],[4,[38,8],[\\\"change\\\",[28,[37,9],[[30,0,[\\\"onChange\\\"]],[28,[37,7],[[30,6],[30,4]],null]],null]],null]],[[\\\"@type\\\",\\\"@value\\\"],[[30,1],[28,[37,7],[[30,6],[30,4]],null]]],null],[1,\\\"\\\\n\\\"],[41,[30,25],[[[1,\\\"        \\\"],[10,1],[14,0,\\\"input-group-text text-muted\\\"],[12],[1,[30,25]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"validationHidden\\\"]]],[[[42,[28,[37,16],[[28,[37,16],[[30,0,[\\\"errors\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"invalid-feedback d-block\\\"],[14,\\\"data-test-ptl-input-error\\\",\\\"\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,17],[[30,51,[\\\"validation\\\"]]],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[51]],null]],[]],null],[41,[30,12],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[14,\\\"data-test-ptl-input-description\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,12]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,13],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"form-text alert alert-warning m-0 mt-1 p-0 pt-1 pb-1 ps-2\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,13]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]]],[\\\"@type\\\",\\\"@role\\\",\\\"@containerClass\\\",\\\"@key\\\",\\\"&attrs\\\",\\\"@model\\\",\\\"@label\\\",\\\"@labelClass\\\",\\\"@required\\\",\\\"@toolTip\\\",\\\"error\\\",\\\"@description\\\",\\\"@warningText\\\",\\\"@checked\\\",\\\"error\\\",\\\"@id\\\",\\\"@value\\\",\\\"error\\\",\\\"@min\\\",\\\"@max\\\",\\\"@step\\\",\\\"error\\\",\\\"error\\\",\\\"@formatterOptions\\\",\\\"@inputGroupText\\\",\\\"error\\\",\\\"error\\\",\\\"error\\\",\\\"error\\\",\\\"error\\\",\\\"@options\\\",\\\"@disabled\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@allowClear\\\",\\\"@afterOptionsComponent\\\",\\\"option\\\",\\\"@optionKeys\\\",\\\"key\\\",\\\"error\\\",\\\"option\\\",\\\"key\\\",\\\"error\\\",\\\"@height\\\",\\\"error\\\",\\\"si\\\",\\\"@selectNoBlankOption\\\",\\\"option\\\",\\\"error\\\",\\\"error\\\"],false,[\\\"if\\\",\\\"and\\\",\\\"eq\\\",\\\"div\\\",\\\"or\\\",\\\"input\\\",\\\"not\\\",\\\"get\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"label\\\",\\\"sup\\\",\\\"info-popup\\\",\\\"unless\\\",\\\"each\\\",\\\"-track-array\\\",\\\"html-safe\\\",\\\"textarea\\\",\\\"formatted-input\\\",\\\"span\\\",\\\"hash\\\",\\\"duration-input\\\",\\\"power-select\\\",\\\"power-select-multiple\\\",\\\"rich-text-editor\\\",\\\"select-input\\\",\\\"option\\\"]]\",\n    \"moduleName\": \"portal/components/ptl-input.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"hasBlurred\", _descriptor, this);\n      _initializerDefineProperty(this, \"_formattedDate\", _descriptor2, this);\n      _initializerDefineProperty(this, \"_formattedDateTime\", _descriptor3, this);\n    }\n    set formattedDate(value) {\n      this._formattedDate = value;\n    }\n    get formattedDate() {\n      if (!this._formattedDate && this.args.model[this.args.key]) return (0, _moment.default)(this.args.model[this.args.key]).format('YYYY-MM-DD');\n      return this._formattedDate;\n    }\n    set formattedDateTime(value) {\n      this._formattedDateTime = value;\n    }\n    get formattedDateTime() {\n      if (!this._formattedDateTime && this.args.model[this.args.key]) return (0, _moment.default)(this.args.model[this.args.key]).format('YYYY-MM-DDTHH:mm');\n      return this._formattedDateTime;\n    }\n    get errors() {\n      const errors = this.args.model.get('errors');\n      return errors.filter(er => er.key === this.args.key);\n    }\n    get validationHidden() {\n      if (this.args.forceValidationVisible) return false;\n      return !this.hasBlurred;\n    }\n    get isInvalid() {\n      return this.errors.length > 0;\n    }\n    updateSelector(event) {\n      this.args.model[this.args.key] = event.target.value;\n      this.onChange(event.target.value);\n    }\n    validateDependantValues() {\n      if (this.args.dependantValidationKeys?.length) this.args.dependantValidationKeys.forEach(key => this.args.model.validate(key));\n    }\n    onFormattedInputUpdate(value) {\n      // don't send null values back when we're modifying numbers\n      const safeValue = value != null ? value : 0;\n      this.args.model[this.args.key] = safeValue;\n      this.onChange(safeValue);\n    }\n    onRadioInputChange(e) {\n      this.args.model[this.args.key] = e;\n      this.onChange(e);\n    }\n    onDateInputChange(e) {\n      // the date input has been cleared\n      if (e.target.value === '') {\n        this.args.model[this.args.key] = undefined;\n        this.onChange(undefined);\n        return;\n      }\n      const date = new Date(e.target.value);\n      this.args.model[this.args.key] = date;\n      this.onChange(date);\n    }\n    onDurationInputChange(value) {\n      // don't send null values back when we're modifying numbers\n      const safeValue = value != null ? value : 0;\n      this.args.model[this.args.key] = safeValue;\n      this.onChange(safeValue);\n    }\n    onCheckBoxChange(event) {\n      event.preventDefault();\n      event.stopPropagation();\n      this.args.model[this.args.key] = !this.args.model[this.args.key];\n      this.onChange();\n    }\n    onChange() {\n      this.validateDependantValues();\n      if (this.args.onChange) this.args.onChange(...arguments);\n    }\n    onPowerSelectorChange(value) {\n      this.args.model[this.args.key] = value;\n      this.onChange(value);\n    }\n    _onRichTextChange(html) {\n      this.args.model[this.args.key] = html;\n      this.onChange(html);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"hasBlurred\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"_formattedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"_formattedDateTime\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"updateSelector\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"updateSelector\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"validateDependantValues\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"validateDependantValues\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onFormattedInputUpdate\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onFormattedInputUpdate\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onRadioInputChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onRadioInputChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onDateInputChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onDateInputChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onDurationInputChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onDurationInputChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onCheckBoxChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onCheckBoxChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onPowerSelectorChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onPowerSelectorChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_onRichTextChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"_onRichTextChange\"), _class.prototype), _class));\n});","define(\"portal/components/purchase-order-item-creator\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"@ember/object\", \"@glimmer/tracking\", \"ember-changeset\", \"@ember/service\", \"lodash\", \"portal/utils/search-filter\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _object, _tracking, _emberChangeset, _service, _lodash, _searchFilter, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"ember-changeset\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"lodash\",0,\"portal/utils/search-filter\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <ModalDialog\n    @containerClass='modal-content w-auto'\n    @translucentOverlay={{true}}\n    @overlayClass='modal'\n    @onClose={{@onClose}}\n  >\n    <div class='modal-header'>\n      <h3 class='modal-title'>\n        {{t 'components.purchase-order-item-creator.Add product from'}}\n        {{@selectedSupplier}}\n      </h3>\n    </div>\n  \n    {{#if this.initComponent.isRunning}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='modal-body'>\n        <form data-test-purchase-order-item-creator-form>\n          <div class='mb-3'>\n            <label class='mb-1'>{{t 'common.Product'}}\n              <sup class='text-danger'>*</sup>\n            </label>\n            <SearchSelector\n              @noDataMessage={{t 'shared.product.No products'}}\n              @key='product'\n              @optionKeys={{array 'description'}}\n              @model={{this.productChangeSet}}\n              @forceValidationVisible={{gt this.onCreateProduct.performCount 0}}\n              @onSelect={{this.setProduct}}\n              @onLoad={{this.loadProducts}}\n            />\n          </div>\n          <PtlInput\n            @type='powerSelect'\n            @label={{t 'common.Project'}}\n            @key='project'\n            @optionKeys={{array 'name'}}\n            @options={{this.groupedProjects}}\n            @required={{true}}\n            @model={{this.productChangeSet}}\n            @searchEnabled={{true}}\n            @searchField='name'\n            @onChange={{this.onProjectChange}}\n            @forceValidationVisible={{gt this.onCreateProduct.performCount 0}}\n          />\n          <div class='mb-3'>\n            <label class='mb-1'>\n              {{t 'common.Task'}}\n              <sup class='text-danger'>*</sup>\n            </label>\n            <PopUp\n              @visible={{this.showSelector}}\n              @onClose={{fn (mut this.showSelector) false}}\n              @scrollDivClass={{'.purchase-order-item-creator'}}\n              @disabled={{unless this.selectedProject true}}\n              as |p|\n            >\n              <div\n                role='button'\n                {{on 'click' this.openTaskSelector}}\n                class='purchase-order-item-creator__task-selector-dropdown form-control\n                  {{unless\n                    this.selectedProject\n                    \" purchase-order-item-creator__task-selector-dropdown-input-disabled\"\n                  }}'\n              >\n                {{#if this.selectedTask}}\n                  <TaskBreadcrumbs @task={{this.selectedTask}} />\n                {{/if}}\n              </div>\n              {{#each this.taskErrors as |error|}}\n                <div class='invalid-feedback d-block' data-test-ptl-input-error>\n                  {{error.validation}}\n                </div>\n              {{/each}}\n              <p.Content>\n                <TaskSelector\n                  @tasks={{this.selectedProject.activeTasks}}\n                  @selectedTask={{this.selectedTask}}\n                  @onCancel={{fn (mut this.showSelector) false}}\n                  @onSubmit={{this.onTaskSelect}}\n                />\n              </p.Content>\n            </PopUp>\n          </div>\n          {{#if this.priceList.length}}\n            <div class='product-editor__price-table-container'>\n              <table\n                class='table table-sm table-bordered product-editor__price-table'\n              >\n                <thead class='product-editor__price-table-thead'>\n                  <tr>\n                    <th>{{t 'common.Source'}}</th>\n                    <th>{{t 'common.Supplier'}}</th>\n                    <th class='text-right'>{{t 'common.Unit price'}}</th>\n                    <th></th>\n                  </tr>\n                </thead>\n                <tbody>\n                  {{#each this.priceList as |price|}}\n                    <tr>\n                      <td class='text-left align-middle'>{{price.source}}</td>\n                      <td class='text-left align-middle'>{{price.supplier}}</td>\n                      <td class='text-right align-middle'>\n                        {{number-format\n                          price.price\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                      <td class='text-center align-middle'>\n                        <button\n                          type='button'\n                          class='btn btn-link p-0'\n                          {{on 'click' (fn this.setPrice price)}}\n                        >\n                          {{t 'shared.product.Set price'}}\n                        </button>\n                      </td>\n                    </tr>\n                  {{/each}}\n                </tbody>\n              </table>\n            </div>\n          {{/if}}\n          <PtlInput\n            @type='currency'\n            @label={{t 'common.Unit price'}}\n            @key='unitPrice'\n            @model={{this.productChangeSet}}\n            @required={{true}}\n            disabled={{this.onCreateProduct.isRunning}}\n            @forceValidationVisible={{gt this.onCreateProduct.performCount 0}}\n          />\n          <PtlInput\n            @type='number'\n            @label={{t 'common.Quantity'}}\n            @key='quantity'\n            min='0'\n            max='100000'\n            @required={{true}}\n            @model={{this.productChangeSet}}\n            disabled={{this.onCreateProduct.isRunning}}\n            @forceValidationVisible={{gt this.onCreateProduct.performCount 0}}\n          />\n        </form>\n      </div>\n      <div class='modal-footer d-flex'>\n        <div class='d-flex align-items-center'>\n          <button\n            type='button'\n            class='btn btn-secondary text-white ms-2'\n            data-test-new-product-close-button\n            disabled={{this.onCreateProduct.isRunning}}\n            {{on 'click' @onClose}}\n          >{{t 'common.Cancel'}}</button>\n          <button\n            type='button'\n            class='btn btn-primary ms-2'\n            disabled={{this.onCreateProduct.isRunning}}\n            {{on 'click' (perform this.onCreateProduct this.productChangeSet)}}\n          >\n            {{#if this.onCreateProduct.isRunning}}\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t 'common.Adding'}}…\n            {{else}}\n              {{t 'common.Add'}}\n            {{/if}}\n          </button>\n        </div>\n      </div>\n    {{/if}}\n  </ModalDialog>\n  */\n  {\n    \"id\": \"UnmQo94g\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@containerClass\\\",\\\"@translucentOverlay\\\",\\\"@overlayClass\\\",\\\"@onClose\\\"],[\\\"modal-content w-auto\\\",true,\\\"modal\\\",[30,1]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h3\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,3],[\\\"components.purchase-order-item-creator.Add product from\\\"],null]],[1,\\\"\\\\n      \\\"],[1,[30,2]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"initComponent\\\",\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[8,[39,5],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"form\\\"],[14,\\\"data-test-purchase-order-item-creator-form\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,[28,[35,3],[\\\"common.Product\\\"],null]],[1,\\\"\\\\n            \\\"],[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[39,9],null,[[\\\"@noDataMessage\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@onSelect\\\",\\\"@onLoad\\\"],[[28,[37,3],[\\\"shared.product.No products\\\"],null],\\\"product\\\",[28,[37,10],[\\\"description\\\"],null],[30,0,[\\\"productChangeSet\\\"]],[28,[37,11],[[30,0,[\\\"onCreateProduct\\\",\\\"performCount\\\"]],0],null],[30,0,[\\\"setProduct\\\"]],[30,0,[\\\"loadProducts\\\"]]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,12],null,[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@options\\\",\\\"@required\\\",\\\"@model\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@onChange\\\",\\\"@forceValidationVisible\\\"],[\\\"powerSelect\\\",[28,[37,3],[\\\"common.Project\\\"],null],\\\"project\\\",[28,[37,10],[\\\"name\\\"],null],[30,0,[\\\"groupedProjects\\\"]],true,[30,0,[\\\"productChangeSet\\\"]],true,\\\"name\\\",[30,0,[\\\"onProjectChange\\\"]],[28,[37,11],[[30,0,[\\\"onCreateProduct\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,3],[\\\"common.Task\\\"],null]],[1,\\\"\\\\n            \\\"],[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[39,13],null,[[\\\"@visible\\\",\\\"@onClose\\\",\\\"@scrollDivClass\\\",\\\"@disabled\\\"],[[30,0,[\\\"showSelector\\\"]],[28,[37,14],[[28,[37,15],[[30,0,[\\\"showSelector\\\"]]],null],false],null],\\\".purchase-order-item-creator\\\",[52,[51,[30,0,[\\\"selectedProject\\\"]]],true]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[11,0],[24,\\\"role\\\",\\\"button\\\"],[16,0,[29,[\\\"purchase-order-item-creator__task-selector-dropdown form-control\\\\n                \\\",[52,[51,[30,0,[\\\"selectedProject\\\"]]],\\\" purchase-order-item-creator__task-selector-dropdown-input-disabled\\\"]]]],[4,[38,17],[\\\"click\\\",[30,0,[\\\"openTaskSelector\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"selectedTask\\\"]],[[[1,\\\"                \\\"],[8,[39,18],null,[[\\\"@task\\\"],[[30,0,[\\\"selectedTask\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,20],[[28,[37,20],[[30,0,[\\\"taskErrors\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,0],[14,0,\\\"invalid-feedback d-block\\\"],[14,\\\"data-test-ptl-input-error\\\",\\\"\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,4,[\\\"validation\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"            \\\"],[8,[30,3,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[8,[39,21],null,[[\\\"@tasks\\\",\\\"@selectedTask\\\",\\\"@onCancel\\\",\\\"@onSubmit\\\"],[[30,0,[\\\"selectedProject\\\",\\\"activeTasks\\\"]],[30,0,[\\\"selectedTask\\\"]],[28,[37,14],[[28,[37,15],[[30,0,[\\\"showSelector\\\"]]],null],false],null],[30,0,[\\\"onTaskSelect\\\"]]]],null],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n          \\\"]],[3]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"priceList\\\",\\\"length\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"product-editor__price-table-container\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-sm table-bordered product-editor__price-table\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"thead\\\"],[14,0,\\\"product-editor__price-table-thead\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,3],[\\\"common.Source\\\"],null]],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,3],[\\\"common.Supplier\\\"],null]],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"th\\\"],[14,0,\\\"text-right\\\"],[12],[1,[28,[35,3],[\\\"common.Unit price\\\"],null]],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"th\\\"],[12],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,20],[[28,[37,20],[[30,0,[\\\"priceList\\\"]]],null]],null],null,[[[1,\\\"                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-left align-middle\\\"],[12],[1,[30,5,[\\\"source\\\"]]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-left align-middle\\\"],[12],[1,[30,5,[\\\"supplier\\\"]]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right align-middle\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,28],[[30,5,[\\\"price\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-center align-middle\\\"],[12],[1,\\\"\\\\n                      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link p-0\\\"],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"setPrice\\\"]],[30,5]],null]],null],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[35,3],[\\\"shared.product.Set price\\\"],null]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[8,[39,12],[[16,\\\"disabled\\\",[30,0,[\\\"onCreateProduct\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"currency\\\",[28,[37,3],[\\\"common.Unit price\\\"],null],\\\"unitPrice\\\",[30,0,[\\\"productChangeSet\\\"]],true,[28,[37,11],[[30,0,[\\\"onCreateProduct\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[8,[39,12],[[24,\\\"min\\\",\\\"0\\\"],[24,\\\"max\\\",\\\"100000\\\"],[16,\\\"disabled\\\",[30,0,[\\\"onCreateProduct\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@required\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"number\\\",[28,[37,3],[\\\"common.Quantity\\\"],null],\\\"quantity\\\",true,[30,0,[\\\"productChangeSet\\\"]],[28,[37,11],[[30,0,[\\\"onCreateProduct\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer d-flex\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[24,\\\"data-test-new-product-close-button\\\",\\\"\\\"],[16,\\\"disabled\\\",[30,0,[\\\"onCreateProduct\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[30,1]],null],[12],[1,[28,[35,3],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"onCreateProduct\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[28,[37,30],[[30,0,[\\\"onCreateProduct\\\"]],[30,0,[\\\"productChangeSet\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"onCreateProduct\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,3],[\\\"common.Adding\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,3],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]]]]],[\\\"@onClose\\\",\\\"@selectedSupplier\\\",\\\"p\\\",\\\"error\\\",\\\"price\\\"],false,[\\\"modal-dialog\\\",\\\"div\\\",\\\"h3\\\",\\\"t\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"form\\\",\\\"label\\\",\\\"sup\\\",\\\"search-selector\\\",\\\"array\\\",\\\"gt\\\",\\\"ptl-input\\\",\\\"pop-up\\\",\\\"fn\\\",\\\"mut\\\",\\\"unless\\\",\\\"on\\\",\\\"task-breadcrumbs\\\",\\\"each\\\",\\\"-track-array\\\",\\\"task-selector\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"tbody\\\",\\\"td\\\",\\\"number-format\\\",\\\"button\\\",\\\"perform\\\",\\\"span\\\"]]\",\n    \"moduleName\": \"portal/components/purchase-order-item-creator.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    validateProduct(newValue, oldValue) {\n      const value = newValue || oldValue;\n      if (value && value?.description?.length) {\n        return true;\n      }\n      return this.intl.t('validation.Please provide a product name');\n    }\n    constructor(owner, args) {\n      super(owner, args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor3, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _initializerDefineProperty(this, \"priceList\", _descriptor6, this);\n      _initializerDefineProperty(this, \"productChangeSet\", _descriptor7, this);\n      _initializerDefineProperty(this, \"selectedTaskIds\", _descriptor8, this);\n      _initializerDefineProperty(this, \"selectedProject\", _descriptor9, this);\n      _initializerDefineProperty(this, \"selectedTask\", _descriptor0, this);\n      _initializerDefineProperty(this, \"showSelector\", _descriptor1, this);\n      _defineProperty(this, \"products\", []);\n      _defineProperty(this, \"productsPage\", void 0);\n      _defineProperty(this, \"productsSearchTerm\", void 0);\n      _defineProperty(this, \"recordPageSize\", 10);\n      _defineProperty(this, \"unitPageSize\", 100);\n      _defineProperty(this, \"validateLength\", (newValue, oldValue, key) => {\n        switch (key) {\n          case 'project':\n            return Boolean(newValue) || this.intl.t('validation.Please provide a project');\n          case 'task':\n            return Boolean(newValue) || this.intl.t('validation.Please provide a task');\n          case 'quantity':\n            return Boolean(newValue) || this.intl.t('validation.Please provide a quantity');\n          case 'unitPrice':\n            return Boolean(newValue) || this.intl.t('validation.Please provide a unit price');\n          default:\n            break;\n        }\n      });\n      _defineProperty(this, \"productValidator\", ({\n        key,\n        newValue,\n        oldValue\n      }) => {\n        if (key === 'product') {\n          return this.validateProduct(newValue, oldValue);\n        }\n        return this.validateLength(newValue, oldValue, key);\n      });\n      _defineProperty(this, \"validationMap\", {\n        project: this.validateLength,\n        task: this.validateLength,\n        quantity: this.validateLength,\n        unitPrice: this.validateLength,\n        product: this.validateProduct\n      });\n      _initializerDefineProperty(this, \"isReady\", _descriptor10, this);\n      _defineProperty(this, \"initComponent\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          this.selectedProject = this.args.selectedProject;\n          const product = {\n            product: null,\n            project: this.args.selectedProject,\n            task: null,\n            quantity: null,\n            unitPrice: null\n          };\n          this.productChangeSet = yield (0, _emberChangeset.Changeset)(product, this.productValidator, this.validationMap);\n        }\n      }), null, \"initComponent\", null));\n      _defineProperty(this, \"loadProducts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (searchTerm) {\n          try {\n            if (searchTerm !== this.productsSearchTerm) {\n              this.productsPage = undefined;\n              this.products = [];\n              this.productsSearchTerm = searchTerm;\n            }\n            const productFilter = {\n              and: [{\n                field: 'entity',\n                operator: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'supplierName',\n                operator: 'EQ',\n                value: this.args.selectedSupplier\n              }]\n            };\n            if (searchTerm?.length) {\n              productFilter.and.push((0, _searchFilter.default)(['description'], searchTerm, 'operator'));\n            }\n            const nextPageNumber = (this.productsPage?.currentPage || 0) + 1;\n            const nextPage = yield this.buildaPrice.searchProducts({\n              filter: productFilter,\n              pageSize: this.recordPageSize,\n              page: nextPageNumber\n            });\n            this.productsPage = nextPage.pagination;\n            this.products = [...this.products, ...nextPage.data];\n            return this.products;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongLoadingMoreProducts'),\n              error\n            });\n          }\n        }\n      }), {\n        restartable: true\n      }, \"loadProducts\", null));\n      _defineProperty(this, \"onCreateProduct\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.productChangeSet.validate();\n          if (this.productChangeSet.isValid) {\n            yield this.args.onCreateProduct.perform(this.productChangeSet);\n          }\n        }\n      }), null, \"onCreateProduct\", null));\n      _defineProperty(this, \"getProductPrices\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const product = this.productChangeSet.get('product');\n          const filter = {\n            and: [{\n              field: 'entity',\n              operator: 'EQ',\n              value: this.sessionData.entity.id\n            }, {\n              field: 'description',\n              operator: 'EQ',\n              value: product.description\n            }]\n          };\n          if (product.supplierName) filter.and.push({\n            field: 'supplierName',\n            operator: 'EQ',\n            value: product.supplierName\n          });\n          if (product.unit) filter.and.push({\n            field: 'unit',\n            operator: 'EQ',\n            value: product.unit\n          });\n          if (product.sku) filter.and.push({\n            field: 'sku',\n            operator: 'EQ',\n            value: product.sku\n          });\n          const prices = yield this.buildaPrice.searchProducts({\n            filter\n          });\n          this.priceList = prices.data.map(p => {\n            return {\n              supplier: p.supplierName ?? this.intl.t('common.No suppliers'),\n              price: p.unitPrice,\n              source: p.source\n            };\n          });\n          const price = this.priceList[0]?.price || product.unitPrice || 0;\n          this.productChangeSet.set('unitPrice', price);\n        }\n      }), null, \"getProductPrices\", null));\n      this.initComponent.perform();\n    }\n    onProjectChange(value) {\n      if (this.selectedProject?.id !== value.id) this.selectedTask = null;\n      this.selectedProject = value;\n    }\n    get groupedProjects() {\n      const output = [];\n      const groups = _lodash.default.groupBy(this.args.projects, 'status');\n      if (groups.OPEN) output.push({\n        groupName: this.intl.t('common.Open'),\n        options: groups.OPEN\n      });\n      if (groups.HELD) output.push({\n        groupName: this.intl.t('common.Held'),\n        options: groups.HELD\n      });\n      return output;\n    }\n    get taskErrors() {\n      const errors = this.productChangeSet.get('errors');\n      return errors.filter(er => er.key === 'task');\n    }\n    onTaskSelect(value) {\n      this.selectedTask = value;\n      this.productChangeSet.set('task', this.selectedTask);\n      this.showSelector = false;\n    }\n    openTaskSelector() {\n      if (this.selectedProject) this.showSelector = true;\n    }\n    setProduct(value) {\n      this.productChangeSet.set('product', value);\n      if (!value) {\n        this.productChangeSet.set('unitPrice', 0);\n        this.priceList = [];\n      } else {\n        this.getProductPrices.perform();\n      }\n    }\n    setPrice(value) {\n      this.productChangeSet.set('unitPrice', value.price);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"priceList\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"productChangeSet\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"selectedTaskIds\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"selectedProject\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"selectedTask\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"showSelector\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"isReady\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"onProjectChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onProjectChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onTaskSelect\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onTaskSelect\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openTaskSelector\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openTaskSelector\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setProduct\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setProduct\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setPrice\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setPrice\"), _class.prototype), _class));\n});","define(\"portal/components/purchase-order-item-selector\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/service\", \"lodash\", \"portal/helpers/chunk-callback\", \"portal/config/environment\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _object, _tracking, _service, _lodash, _chunkCallback, _environment, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"@ember/object\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"lodash\",0,\"portal/helpers/chunk-callback\",0,\"portal/config/environment\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <ModalDialog\n    @containerClass='modal-content purchase-order-item-selector__modal-dialog'\n    @translucentOverlay={{true}}\n    @overlayClass='modal'\n    @onClose={{@onClose}}\n  >\n    <div class='modal-header'>\n      <h3 class='modal-title'>\n        {{t 'components.purchase-order-item-selector.Add products from'}}\n        {{@purchaseOrder.supplier.name}}\n      </h3>\n    </div>\n  \n    {{#if this.initComponent.isRunning}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='modal-body'>\n        <div class='d-flex mb-3'>\n          <div class='me-3'>\n            <label class='mb-1'>\n              {{t 'common.Filter by project'}}\n            </label>\n            <div class='d-flex'>\n              <PowerSelect\n                @searchEnabled={{true}}\n                @options={{this.groupedProjects}}\n                @selected={{this.selectedProject}}\n                @searchField='name'\n                @placeholder=' – '\n                @onChange={{this.setProject}}\n                as |project|\n              >\n                {{project.name}}\n              </PowerSelect>\n              <button\n                class='text-button ms-3\n                  {{unless this.selectedProject \"invisible\"}}'\n                type='button'\n                {{on 'click' this.removeProjectFilter}}\n              >\n                <FaIcon @icon='times' />&nbsp;{{t 'common.Remove filter'}}\n              </button>\n            </div>\n          </div>\n          <div>\n            <label class='mb-1'>\n              {{t 'common.Filter by task'}}\n            </label>\n            <div class='d-flex'>\n              <MultiTaskSelectorInput\n                @showTaskPopUp={{this.showTaskPopUp}}\n                @selectedProject={{this.selectedProject}}\n                @selectedTasks={{this.selectedTasks}}\n                @setSelectedTasks={{this.setSelectedTasks}}\n                @removeSelectedTask={{this.removeSelectedTask}}\n                @disabled={{unless this.selectedProject true}}\n              />\n              <button\n                class='text-button ms-3\n                  {{unless this.selectedTasks.length \"invisible\"}}'\n                type='button'\n                {{on 'click' this.removeAllTaskFilters}}\n              >\n                <FaIcon @icon='times' />&nbsp;{{t 'common.Remove filter'}}\n              </button>\n            </div>\n          </div>\n        </div>\n        {{#if this.canAddProducts}}\n          <div class='d-flex mb-2 flex-row-reverse align-items-center'>\n            <div class='ms-auto'>{{t 'shared.product.canNotFindTheProduct'}}\n              <button\n                type='button'\n                class='btn btn-success text-white text-nowrap m-1'\n                {{on 'click' (fn (mut this.isCreatingProduct) true)}}\n              >\n                <FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Add new'}}\n              </button>\n            </div>\n          </div>\n        {{/if}}\n        <div class='purchase-order-item-selector__table-container mb-3'>\n          <PaginationTable\n            @tableHeader={{this.productHeader}}\n            @tableData={{this.productTableData}}\n            @noDataText={{t 'common.No data'}}\n            @pageSizes={{this.pageSizes}}\n            @pageSize={{this.pageSize}}\n            @pageIndex={{this.pageIndex}}\n            @onChangePageIndex={{this.onChangePageIndex}}\n            @onChangePageSize={{this.onChangePageSize}}\n            @isLoading={{this.getProducts.isRunning}}\n            @totalRecords={{this.totalRecords}}\n            @class='table-bordered'\n          />\n        </div>\n        <div class='modal-footer d-flex'>\n          <div class='d-flex align-items-center'>\n            <button\n              type='button'\n              class='btn btn-secondary text-white ms-2'\n              data-test-purchase-order-selector-close-button\n              disabled={{@onSavePurchaseOrderItems.isRunning}}\n              {{on 'click' @onClose}}\n            >{{t 'common.Cancel'}}</button>\n            <button\n              type='button'\n              class='btn btn-primary ms-2'\n              disabled={{or\n                @onSavePurchaseOrderItems.isRunning\n                (not this.hasOrderQuantity)\n              }}\n              {{on\n                'click'\n                (perform @onSavePurchaseOrderItems this.productTableData)\n              }}\n            >\n              {{#if @onSavePurchaseOrderItems.isRunning}}\n                <span\n                  class='spinner-border spinner-border-sm'\n                ></span>&nbsp;&nbsp;{{t 'common.Adding'}}&hellip;\n              {{else}}\n                {{t 'common.Add'}}\n              {{/if}}\n            </button>\n          </div>\n        </div>\n      </div>\n    {{/if}}\n  </ModalDialog>\n  \n  {{#if this.isCreatingProduct}}\n    <PurchaseOrderItemCreator\n      @projects={{@projects}}\n      @onClose={{fn (mut this.isCreatingProduct) false}}\n      @selectedProject={{this.selectedProject}}\n      @selectedSupplier={{get @purchaseOrder.supplier 'name'}}\n      @onCreateProduct={{this.onCreateProduct}}\n    />\n  {{/if}}\n  */\n  {\n    \"id\": \"pxOraew5\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@containerClass\\\",\\\"@translucentOverlay\\\",\\\"@overlayClass\\\",\\\"@onClose\\\"],[\\\"modal-content purchase-order-item-selector__modal-dialog\\\",true,\\\"modal\\\",[30,1]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h3\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,3],[\\\"components.purchase-order-item-selector.Add products from\\\"],null]],[1,\\\"\\\\n      \\\"],[1,[30,2,[\\\"supplier\\\",\\\"name\\\"]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"initComponent\\\",\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[8,[39,5],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex mb-3\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"me-3\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,3],[\\\"common.Filter by project\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"d-flex\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,7],null,[[\\\"@searchEnabled\\\",\\\"@options\\\",\\\"@selected\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@onChange\\\"],[true,[30,0,[\\\"groupedProjects\\\"]],[30,0,[\\\"selectedProject\\\"]],\\\"name\\\",\\\" – \\\",[30,0,[\\\"setProject\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[1,[30,3,[\\\"name\\\"]]],[1,\\\"\\\\n            \\\"]],[3]]]]],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"text-button ms-3\\\\n                \\\",[52,[51,[30,0,[\\\"selectedProject\\\"]]],\\\"invisible\\\"]]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"removeProjectFilter\\\"]]],null],[12],[1,\\\"\\\\n              \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\" \\\"],[1,[28,[35,3],[\\\"common.Remove filter\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,3],[\\\"common.Filter by task\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"d-flex\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,12],null,[[\\\"@showTaskPopUp\\\",\\\"@selectedProject\\\",\\\"@selectedTasks\\\",\\\"@setSelectedTasks\\\",\\\"@removeSelectedTask\\\",\\\"@disabled\\\"],[[30,0,[\\\"showTaskPopUp\\\"]],[30,0,[\\\"selectedProject\\\"]],[30,0,[\\\"selectedTasks\\\"]],[30,0,[\\\"setSelectedTasks\\\"]],[30,0,[\\\"removeSelectedTask\\\"]],[52,[51,[30,0,[\\\"selectedProject\\\"]]],true]]],null],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"text-button ms-3\\\\n                \\\",[52,[51,[30,0,[\\\"selectedTasks\\\",\\\"length\\\"]]],\\\"invisible\\\"]]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"removeAllTaskFilters\\\"]]],null],[12],[1,\\\"\\\\n              \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\" \\\"],[1,[28,[35,3],[\\\"common.Remove filter\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canAddProducts\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"d-flex mb-2 flex-row-reverse align-items-center\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"ms-auto\\\"],[12],[1,[28,[35,3],[\\\"shared.product.canNotFindTheProduct\\\"],null]],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,13],[[28,[37,14],[[30,0,[\\\"isCreatingProduct\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n              \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,3],[\\\"common.Add new\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[10,0],[14,0,\\\"purchase-order-item-selector__table-container mb-3\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,15],null,[[\\\"@tableHeader\\\",\\\"@tableData\\\",\\\"@noDataText\\\",\\\"@pageSizes\\\",\\\"@pageSize\\\",\\\"@pageIndex\\\",\\\"@onChangePageIndex\\\",\\\"@onChangePageSize\\\",\\\"@isLoading\\\",\\\"@totalRecords\\\",\\\"@class\\\"],[[30,0,[\\\"productHeader\\\"]],[30,0,[\\\"productTableData\\\"]],[28,[37,3],[\\\"common.No data\\\"],null],[30,0,[\\\"pageSizes\\\"]],[30,0,[\\\"pageSize\\\"]],[30,0,[\\\"pageIndex\\\"]],[30,0,[\\\"onChangePageIndex\\\"]],[30,0,[\\\"onChangePageSize\\\"]],[30,0,[\\\"getProducts\\\",\\\"isRunning\\\"]],[30,0,[\\\"totalRecords\\\"]],\\\"table-bordered\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-footer d-flex\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[24,\\\"data-test-purchase-order-selector-close-button\\\",\\\"\\\"],[16,\\\"disabled\\\",[30,4,[\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[30,1]],null],[12],[1,[28,[35,3],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[16,\\\"disabled\\\",[28,[37,16],[[30,4,[\\\"isRunning\\\"]],[28,[37,17],[[30,0,[\\\"hasOrderQuantity\\\"]]],null]],null]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,18],[[30,4],[30,0,[\\\"productTableData\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,4,[\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,3],[\\\"common.Adding\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,3],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isCreatingProduct\\\"]],[[[1,\\\"  \\\"],[8,[39,20],null,[[\\\"@projects\\\",\\\"@onClose\\\",\\\"@selectedProject\\\",\\\"@selectedSupplier\\\",\\\"@onCreateProduct\\\"],[[30,5],[28,[37,13],[[28,[37,14],[[30,0,[\\\"isCreatingProduct\\\"]]],null],false],null],[30,0,[\\\"selectedProject\\\"]],[28,[37,21],[[30,2,[\\\"supplier\\\"]],\\\"name\\\"],null],[30,0,[\\\"onCreateProduct\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@onClose\\\",\\\"@purchaseOrder\\\",\\\"project\\\",\\\"@onSavePurchaseOrderItems\\\",\\\"@projects\\\"],false,[\\\"modal-dialog\\\",\\\"div\\\",\\\"h3\\\",\\\"t\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"label\\\",\\\"power-select\\\",\\\"button\\\",\\\"unless\\\",\\\"on\\\",\\\"fa-icon\\\",\\\"multi-task-selector-input\\\",\\\"fn\\\",\\\"mut\\\",\\\"pagination-table\\\",\\\"or\\\",\\\"not\\\",\\\"perform\\\",\\\"span\\\",\\\"purchase-order-item-creator\\\",\\\"get\\\"]]\",\n    \"moduleName\": \"portal/components/purchase-order-item-selector.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(owner, args) {\n      super(owner, args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _initializerDefineProperty(this, \"portalApiV2\", _descriptor2, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor3, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor4, this);\n      _initializerDefineProperty(this, \"numberFormat\", _descriptor5, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor6, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor7, this);\n      _defineProperty(this, \"pristineProducts\", []);\n      _defineProperty(this, \"pageSizes\", [10, 25, 50]);\n      _initializerDefineProperty(this, \"pageSize\", _descriptor8, this);\n      _initializerDefineProperty(this, \"pageIndex\", _descriptor9, this);\n      _initializerDefineProperty(this, \"sortDirection\", _descriptor0, this);\n      _initializerDefineProperty(this, \"sortBy\", _descriptor1, this);\n      _initializerDefineProperty(this, \"totalRecords\", _descriptor10, this);\n      _initializerDefineProperty(this, \"products\", _descriptor11, this);\n      _initializerDefineProperty(this, \"selectedProject\", _descriptor12, this);\n      _initializerDefineProperty(this, \"showTaskPopUp\", _descriptor13, this);\n      _initializerDefineProperty(this, \"selectedTaskIds\", _descriptor14, this);\n      _initializerDefineProperty(this, \"isCreatingProduct\", _descriptor15, this);\n      _defineProperty(this, \"initComponent\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.getProducts.perform();\n        }\n      }), null, \"initComponent\", null));\n      _defineProperty(this, \"onCreateProduct\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeSet) {\n          const task = changeSet.get('task');\n          const product = changeSet.get('product');\n          const project = changeSet.get('project');\n          try {\n            yield this.store.createRecord('task-product', {\n              description: product.description,\n              supplierName: product.supplierName,\n              sku: product.sku,\n              unit: product.unit,\n              unitPrice: product.unitPrice,\n              quantity: changeSet.get('quantity'),\n              task,\n              entity: this.sessionData.entity\n            }).save();\n            this.selectedProject = project;\n            this.selectedTaskIds = [task.id];\n            this.isCreatingProduct = false;\n            this.getProducts.perform();\n          } catch (error) {\n            if (error.errors[0].status === '409') {\n              this.notifications.warning(this.intl.t('shared.notification.Product already exists'));\n            } else {\n              this.notifications.error({\n                message: this.intl.t('components.purchase-order-item-selector.somethingWentWrongWhileCreatingProduct'),\n                error\n              });\n            }\n          }\n        }\n      }), null, \"onCreateProduct\", null));\n      _defineProperty(this, \"getProducts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          let andFilters = [{\n            field: 'entity',\n            operator: 'EQ',\n            value: this.sessionData.entity.id\n          }, {\n            field: 'supplierName',\n            operator: 'EQ',\n            value: this.args.purchaseOrder.supplier.get('name')\n          }, {\n            field: 'taskStatus',\n            operator: 'IN',\n            value: ['ACTIVE', 'DRAFT_CREATED']\n          }, {\n            field: 'projectStatus',\n            operator: 'IN',\n            value: ['OPEN', 'HELD']\n          }];\n          if (this.newFeatureFlags.excludesFeatureFlags('canManagePurchaseOrders')) andFilters.push({\n            field: 'project',\n            operator: 'IN',\n            value: this.args.projects.map(p => p.id)\n          });\n          const taskProductIds = this.args.purchaseOrderItems?.map(item => item.belongsTo('taskProduct').id()).filter(Boolean) ?? [];\n          if (taskProductIds.length) {\n            andFilters.push({\n              field: '_id',\n              operator: 'NOT_IN',\n              value: taskProductIds\n            });\n          }\n          let orderBy;\n          switch (this.sortBy) {\n            case 'Product':\n              orderBy = 'description';\n              break;\n            case 'Supplier':\n              orderBy = 'supplierName';\n              break;\n            case 'SKU':\n              orderBy = 'sku';\n              break;\n            case 'Unit':\n              orderBy = 'unit';\n              break;\n            case 'Unit price':\n              orderBy = 'unitPrice';\n              break;\n            case 'Quantity':\n              orderBy = 'quantity';\n              break;\n            default:\n              break;\n          }\n          let products;\n          if (this.selectedTaskIds.length) {\n            andFilters.push({\n              field: 'task',\n              operator: 'IN',\n              value: this.selectedTaskIds\n            });\n          }\n          const filters = {\n            and: andFilters\n          };\n          if (this.selectedProject && !this.selectedTaskIds.length) {\n            products = yield (0, _chunkCallback.default)(this.selectedProject.activeTasks.toArray().map(task => task.id), _environment.default.chunkCallbackSize, ids => {\n              return this.store.query('task-product', {\n                filter: {\n                  and: [...andFilters, {\n                    field: 'task',\n                    operator: 'IN',\n                    value: ids\n                  }, {\n                    field: 'entity',\n                    operator: 'EQ',\n                    value: this.sessionData.entity.id\n                  }]\n                },\n                orderBy: orderBy || 'description',\n                orderByDirection: this.sortDirection || 'asc',\n                pageSize: this.pageSize,\n                page: this.pageIndex\n              });\n            });\n          } else {\n            products = yield this.store.query('task-product', {\n              filter: filters,\n              orderBy: orderBy || 'description',\n              orderByDirection: this.sortDirection || 'asc',\n              pageSize: this.pageSize,\n              page: this.pageIndex\n            });\n          }\n          this.products = products.map(p => {\n            return {\n              description: p.description,\n              sku: p.sku,\n              quantity: p.quantity,\n              unitPrice: p.unitPrice,\n              supplierName: p.supplierName,\n              unit: p.unit,\n              orderQty: 0,\n              remainingQty: p.quantity - p.orderedQuantity,\n              breadcrumbs: p.breadcrumbs,\n              taskProduct: p\n            };\n          }) || [];\n          this.pristineProducts = products.toArray();\n          this.totalRecords = products.meta?.totalRecords || 0;\n        }\n      }), null, \"getProducts\", null));\n      this.initComponent.perform();\n    }\n    get productHeader() {\n      return [{\n        value: this.intl.t('common.Path'),\n        textClass: 'text-left'\n      }, {\n        value: this.intl.t('common.Product'),\n        iconName: this.sortBy === 'Product' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left'\n      }, {\n        value: this.intl.t('common.SKU'),\n        iconName: this.sortBy === 'SKU' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left'\n      }, {\n        value: this.intl.t('common.Unit'),\n        iconName: this.sortBy === 'Unit' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left'\n      }, {\n        value: this.intl.t('common.Unit price'),\n        iconName: this.sortBy === 'Unit price' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-right'\n      }, {\n        value: this.intl.t('common.Quantity'),\n        iconName: this.sortBy === 'Quantity' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-right'\n      }, {\n        value: this.intl.t('shared.purchase-order.Remaining Qty'),\n        colClass: 'text-right'\n      }, {\n        value: this.intl.t('shared.purchase-order.Order Qty'),\n        colClass: 'text-right'\n      }, {\n        value: ''\n      }];\n    }\n    get productTableData() {\n      if (this.getProducts.isRunning) return [];\n      return this.products.map((product, index) => {\n        const productData = [{\n          colClass: 'text-left align-middle',\n          value: product.breadcrumbs,\n          taskProduct: product.taskProduct\n        }, {\n          colClass: 'align-middle',\n          value: product.description\n        }, {\n          colClass: 'text-left align-middle',\n          value: product.sku\n        }, {\n          colClass: 'text-left align-middle',\n          value: product.unit\n        }, {\n          colClass: 'text-right align-middle',\n          value: this.numberFormat.format(product.unitPrice, {\n            style: 'currency',\n            dashZero: true\n          })\n        }, {\n          colClass: 'text-right align-middle',\n          value: product.quantity || 0\n        }, {\n          colClass: 'text-right align-middle',\n          textClass: Number(product.remainingQty) < 0 ? 'text-danger' : '',\n          value: product.remainingQty || 0\n        }, {\n          type: 'NUMBER_INPUT',\n          colClass: 'text-right align-middle',\n          textClass: 'text-right',\n          min: '0',\n          value: product.orderQty || 0,\n          onInputChange: this.onChangeOrderQty,\n          extraData: {\n            index\n          }\n        }, {\n          type: 'BUTTON',\n          colClass: 'text-center align-middle',\n          textClass: 'btn btn-link',\n          onClickButton: this.addOrderQty,\n          value: this.intl.t('components.purchase-order-item-selector.Add all'),\n          extraData: {\n            index\n          }\n        }];\n        return {\n          rowData: productData\n        };\n      });\n    }\n    get canAddProducts() {\n      const canUseTasks = this.newFeatureFlags.includesFeatureFlags('canUseTasks');\n      const canManageProducts = this.args.projects.some(p => this.newFeatureFlags.includesFeatureFlags(p, 'canManageProducts'));\n      return canUseTasks && canManageProducts;\n    }\n\n    //   @action\n    //   addAllOrderQty() {\n    //     const products = this.products;\n    //     products.forEach((p) => {\n    //       if (p.remainingQty > 0) p.orderQty = p.remainingQty;\n    //     });\n    //     this.products = products;\n    //   }\n\n    addOrderQty(_row, col) {\n      const products = this.products;\n      const remainingQty = this.pristineProducts[col.extraData.index].quantity - this.pristineProducts[col.extraData.index].orderedQuantity;\n      if (remainingQty > 0) {\n        products[col.extraData.index].orderQty = remainingQty;\n        products[col.extraData.index].remainingQty = 0;\n        this.products = products;\n      }\n    }\n    onChangeOrderQty(_row, col, e) {\n      const products = this.products;\n      products[col.extraData.index].orderQty = Number(e.target.value);\n      const remainingQty = this.pristineProducts[col.extraData.index].quantity - this.pristineProducts[col.extraData.index].orderedQuantity;\n      products[col.extraData.index].remainingQty = remainingQty - Number(e.target.value);\n      this.products = products;\n    }\n    removeProjectFilter() {\n      this.selectedProject = undefined;\n      this.removeAllTaskFilters();\n    }\n    removeSelectedTask(task) {\n      this.showTaskPopUp = false;\n      const filteredSelectTasks = this.selectedTasks.filter(t => t.id !== task.id);\n      this.selectedTaskIds = filteredSelectTasks.map(t => t.id);\n      this.getProducts.perform();\n    }\n    setSelectedTasks(tasks) {\n      this.showTaskPopUp = false;\n      const taskIds = tasks.map(t => t.id);\n      const selectedTaskIds = this.selectedTaskIds;\n      if (_lodash.default.difference(taskIds, selectedTaskIds).length || _lodash.default.difference(selectedTaskIds, taskIds).length) {\n        this.selectedTaskIds = taskIds;\n        this.getProducts.perform();\n      }\n    }\n    setProject(value) {\n      this.selectedTaskIds = [];\n      this.selectedProject = value;\n      this.getProducts.perform();\n    }\n    onChangePageSize(pageSize) {\n      this.pageSize = pageSize;\n      this.getProducts.perform();\n    }\n    onChangePageIndex(pageIndex) {\n      this.pageIndex = pageIndex;\n      this.getProducts.perform();\n    }\n    removeAllTaskFilters() {\n      this.selectedTaskIds = [];\n      this.getProducts.perform();\n    }\n    sortColumn(_row, col) {\n      if (this.sortBy !== col.value) {\n        this.sortBy = col.value;\n        this.sortDirection = 'asc';\n      } else {\n        this.sortBy = col.value;\n        if (this.sortDirection === 'asc') {\n          this.sortDirection = 'desc';\n        } else if (this.sortDirection === 'desc') {\n          this.sortDirection = undefined;\n        } else {\n          this.sortDirection = 'asc';\n        }\n      }\n      this.getProducts.perform();\n    }\n    get hasOrderQuantity() {\n      const orderQuantityIndex = this.productHeader.findIndex(c => c.value === this.intl.t('shared.purchase-order.Order Qty'));\n      return this.productTableData.some(row => row.rowData[orderQuantityIndex].value);\n    }\n    get groupedProjects() {\n      const output = [];\n      const groups = _lodash.default.groupBy(this.args.projects, 'status');\n      if (groups.OPEN) output.push({\n        groupName: this.intl.t('common.Open'),\n        options: groups.OPEN\n      });\n      if (groups.HELD) output.push({\n        groupName: this.intl.t('common.Held'),\n        options: groups.HELD\n      });\n      return output;\n    }\n    get selectedTasks() {\n      if (!this.selectedTaskIds.length) return [];\n      return this.selectedProject.activeTasks.filter(t => this.selectedTaskIds.includes(t.id));\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"portalApiV2\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"numberFormat\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"pageSize\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.pageSizes[0];\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"pageIndex\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 1;\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"sortDirection\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"sortBy\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"totalRecords\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"products\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"selectedProject\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"showTaskPopUp\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"selectedTaskIds\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"isCreatingProduct\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"addOrderQty\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"addOrderQty\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onChangeOrderQty\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onChangeOrderQty\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeProjectFilter\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"removeProjectFilter\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeSelectedTask\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"removeSelectedTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setSelectedTasks\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setSelectedTasks\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setProject\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setProject\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onChangePageSize\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onChangePageSize\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onChangePageIndex\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onChangePageIndex\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeAllTaskFilters\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"removeAllTaskFilters\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"sortColumn\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"sortColumn\"), _class.prototype), _class));\n});","define(\"portal/components/radio-button\", [\"exports\", \"ember-radio-buttons/components/radio-button\"], function (_exports, _radioButton) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _radioButton.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-radio-buttons/components/radio-button\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/radio-slider\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object/internals\", \"@ember/template-factory\"], function (_exports, _component, _component2, _internals, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object/internals\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='radio-slider {{@class}}' ...attributes>\n    {{#each @options as |option i|}}\n      <RadioButton\n        @name={{concat 'radio-slider-option-' this.groupId '-' i}}\n        @checked={{@selected}}\n        @value={{option.value}}\n        @id={{concat 'radio-slider-option-' this.groupId '-' i}}\n      />\n      <label\n        for='{{concat \"radio-slider-option-\" this.groupId \"-\" i}}'\n      >{{option.label}}</label>\n    {{/each}}\n  </div>\n  */\n  {\n    \"id\": \"ctlA3WVo\",\n    \"block\": \"[[[11,0],[16,0,[29,[\\\"radio-slider \\\",[30,1]]]],[17,2],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,2],[[28,[37,2],[[30,3]],null]],null],null,[[[1,\\\"    \\\"],[8,[39,3],null,[[\\\"@name\\\",\\\"@checked\\\",\\\"@value\\\",\\\"@id\\\"],[[28,[37,4],[\\\"radio-slider-option-\\\",[30,0,[\\\"groupId\\\"]],\\\"-\\\",[30,5]],null],[30,6],[30,4,[\\\"value\\\"]],[28,[37,4],[\\\"radio-slider-option-\\\",[30,0,[\\\"groupId\\\"]],\\\"-\\\",[30,5]],null]]],null],[1,\\\"\\\\n    \\\"],[10,\\\"label\\\"],[15,\\\"for\\\",[29,[[28,[37,4],[\\\"radio-slider-option-\\\",[30,0,[\\\"groupId\\\"]],\\\"-\\\",[30,5]],null]]]],[12],[1,[30,4,[\\\"label\\\"]]],[13],[1,\\\"\\\\n\\\"]],[4,5]],null],[13]],[\\\"@class\\\",\\\"&attrs\\\",\\\"@options\\\",\\\"option\\\",\\\"i\\\",\\\"@selected\\\"],false,[\\\"div\\\",\\\"each\\\",\\\"-track-array\\\",\\\"radio-button\\\",\\\"concat\\\",\\\"label\\\"]]\",\n    \"moduleName\": \"portal/components/radio-slider.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      // Each slider needs its own radio group name and its own ids: radios sharing\n      // a name are mutually exclusive, and a label points at the first matching id\n      // in the document. This used to read this.elementId, which a Glimmer\n      // component does not have, so every slider named its options identically.\n      _defineProperty(this, \"groupId\", (0, _internals.guidFor)(this));\n    }\n  });\n});","define(\"portal/components/referral-promotion-button\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/object\", \"ember-local-storage\", \"@glimmer/tracking\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _object, _emberLocalStorage, _tracking, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/object\",0,\"ember-local-storage\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (includes-feature-flags 'entityIsCalStudent')}}\n    {{#if\n      (and\n        (includes-feature-flags 'userIsEntityAdmin')\n        (not this.referralPromotionIsDismissed)\n      )\n    }}\n      <div\n        role='button'\n        id='referral-promotion-button'\n        class='animate-flip-down'\n        {{on 'click' this.openPromotion}}\n        ...attributes\n      >\n        <div class='referral-promotion-button__content'>\n          <FaIcon @icon='gift' />\n  \n          <span class='referral-promotion-button__content-text'>\n            {{t 'components.referral-promotion-button.Click here'}}:\n            {{t\n              'components.referral-promotion-button.getAFriendToRegisterAndWeWillGiveYouAXPrezzyCard'\n            }}\n          </span>\n        </div>\n  \n        {{! template-lint-disable no-nested-interactive }}\n        <span\n          role='button'\n          class='referral-promotion-button__close'\n          {{on 'click' this.openDismissModal}}\n        >\n          <FaIcon @icon='times-circle' />\n        </span>\n      </div>\n    {{/if}}\n  \n    {{#if this.dismissModalVisible}}\n      <ModalDialog\n        @onClose={{fn (mut this.dismissModalVisible) false}}\n        @containerClass='modal-content w-auto'\n        @overlayClass='modal'\n        @translucentOverlay={{true}}\n      >\n        <div class='modal-header'>\n          <h3 class='modal-title'>\n            {{t 'components.referral-promotion-button.Referral offer'}}\n          </h3>\n        </div>\n        <div class='modal-body'>\n          <p>\n            {{t\n              'components.referral-promotion-button.areYouSureYouWantToDismissThisReferralOffer'\n            }}\n          </p>\n        </div>\n        <div class='modal-footer d-flex'>\n          <button\n            class='btn btn-secondary text-white ms-2'\n            type='button'\n            {{on 'click' (fn (mut this.dismissModalVisible) false)}}\n          >\n            {{t 'common.Cancel'}}\n          </button>\n          <button\n            class='btn btn-primary ms-2'\n            type='button'\n            {{on 'click' this.confirmReferralPromotionDismiss}}\n          >\n            {{t 'components.referral-promotion-button.Remove the offer'}}\n          </button>\n        </div>\n      </ModalDialog>\n    {{/if}}\n  {{/unless}}\n  */\n  {\n    \"id\": \"ecspgbLY\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"entityIsCalStudent\\\"],null]],[[[41,[28,[37,3],[[28,[37,1],[\\\"userIsEntityAdmin\\\"],null],[28,[37,4],[[30,0,[\\\"referralPromotionIsDismissed\\\"]]],null]],null],[[[1,\\\"    \\\"],[11,0],[24,\\\"role\\\",\\\"button\\\"],[24,1,\\\"referral-promotion-button\\\"],[24,0,\\\"animate-flip-down\\\"],[17,1],[4,[38,6],[\\\"click\\\",[30,0,[\\\"openPromotion\\\"]]],null],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"referral-promotion-button__content\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,7],null,[[\\\"@icon\\\"],[\\\"gift\\\"]],null],[1,\\\"\\\\n\\\\n        \\\"],[10,1],[14,0,\\\"referral-promotion-button__content-text\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,9],[\\\"components.referral-promotion-button.Click here\\\"],null]],[1,\\\":\\\\n          \\\"],[1,[28,[35,9],[\\\"components.referral-promotion-button.getAFriendToRegisterAndWeWillGiveYouAXPrezzyCard\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"      \\\"],[11,1],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"referral-promotion-button__close\\\"],[4,[38,6],[\\\"click\\\",[30,0,[\\\"openDismissModal\\\"]]],null],[12],[1,\\\"\\\\n        \\\"],[8,[39,7],null,[[\\\"@icon\\\"],[\\\"times-circle\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"dismissModalVisible\\\"]],[[[1,\\\"    \\\"],[8,[39,10],null,[[\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@overlayClass\\\",\\\"@translucentOverlay\\\"],[[28,[37,11],[[28,[37,12],[[30,0,[\\\"dismissModalVisible\\\"]]],null],false],null],\\\"modal-content w-auto\\\",\\\"modal\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,9],[\\\"components.referral-promotion-button.Referral offer\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n        \\\"],[10,2],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,9],[\\\"components.referral-promotion-button.areYouSureYouWantToDismissThisReferralOffer\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-footer d-flex\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,11],[[28,[37,12],[[30,0,[\\\"dismissModalVisible\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,9],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[30,0,[\\\"confirmReferralPromotionDismiss\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,9],[\\\"components.referral-promotion-button.Remove the offer\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[\\\"&attrs\\\"],false,[\\\"unless\\\",\\\"includes-feature-flags\\\",\\\"if\\\",\\\"and\\\",\\\"not\\\",\\\"div\\\",\\\"on\\\",\\\"fa-icon\\\",\\\"span\\\",\\\"t\\\",\\\"modal-dialog\\\",\\\"fn\\\",\\\"mut\\\",\\\"h3\\\",\\\"p\\\",\\\"button\\\"]]\",\n    \"moduleName\": \"portal/components/referral-promotion-button.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_dec = (0, _emberLocalStorage.storageFor)('settings'), _class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"persistedSettings\", _descriptor2, this);\n      _initializerDefineProperty(this, \"dismissModalVisible\", _descriptor3, this);\n    }\n    get referralPromotionIsDismissed() {\n      return (0, _object.get)(this.persistedSettings, 'moduleDashboard:referralPromotionIsDismissed');\n    }\n    set referralPromotionIsDismissed(value) {\n      (0, _object.set)(this.persistedSettings, 'moduleDashboard:referralPromotionIsDismissed', value);\n      return value;\n    }\n    get url() {\n      const entityName = this.sessionData.entity.name;\n      const userEmail = this.sessionData.user.email;\n      return encodeURI(`https://buildaprice.co.nz/refer-a-friend?your-business-name=${entityName}&your-email-address=${userEmail}`);\n    }\n    openPromotion() {\n      window.open(this.url, '_blank');\n    }\n    openDismissModal(event) {\n      this.dismissModalVisible = true;\n      event.stopPropagation();\n    }\n    confirmReferralPromotionDismiss() {\n      this.referralPromotionIsDismissed = true;\n      this.dismissModalVisible = false;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"persistedSettings\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"dismissModalVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"openPromotion\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openPromotion\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openDismissModal\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openDismissModal\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"confirmReferralPromotionDismiss\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"confirmReferralPromotionDismiss\"), _class.prototype), _class));\n});","define(\"portal/components/report-builder-pm/invoice-type-table\", [\"exports\", \"@ember/component\", \"@ember/template-factory\"], function (_exports, _component, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <thead>\n    {{#if this.title}}\n      <tr>\n        <th colspan='6'>{{this.title}}</th>\n      </tr>\n    {{/if}}\n    {{! Column headings for material invoices table }}\n    <tr>\n      <th\n        onclick={{action this.toggleAllSelected}}\n        class='report-builder__section-table-small-cell'\n      >\n        <Input\n          @type='checkbox'\n          @checked={{this.allSelected}}\n          indeterminate={{this.partSelected}}\n        />\n      </th>\n      <th>{{t 'common.Name'}}</th>\n      <th>{{t 'common.Issuer'}}</th>\n      <th>{{t 'common.Issue date'}}</th>\n      <th>{{t 'common.Total price'}}</th>\n      <th class='report-builder__section-table-small-cell'></th>\n    </tr>\n  </thead>\n  \n  <tbody>\n    {{#each this.invoices as |invoiceWrapper|}}\n      <tr>\n        {{! Each invoice is selectable }}\n        <td onclick={{action this.toggleResourceItemsSelected invoiceWrapper}}>\n          <Input\n            @type='checkbox'\n            @checked={{invoiceWrapper.allSelected}}\n            indeterminate={{invoiceWrapper.partSelected}}\n          />\n        </td>\n  \n        {{! Invoices are expandable }}\n        <td>\n          <span class='report-builder__name-and-label-wrapper'>\n            <a class='link' {{action this.toggleItemsVisible invoiceWrapper}}>\n              {{or\n                invoiceWrapper.invoice.billNumber\n                invoiceWrapper.invoice.reference\n              }}\n              <FaIcon\n                @icon={{if\n                  invoiceWrapper.itemsVisible\n                  'angle-down'\n                  'angle-right'\n                }}\n              />\n            </a>\n            {{#if invoiceWrapper.nReported}}\n              <span class='report-builder__reported-label'>\n                {{t 'common.Reported'}}\n                {{#unless invoiceWrapper.allReported}}\n                  ({{invoiceWrapper.nReported}}/{{invoiceWrapper.items.length}})\n                {{/unless}}\n                <span\n                  class='report-builder__reported-label-close'\n                  {{action this.setItemsReportedFalse invoiceWrapper.items}}\n                >\n                  <FaIcon @icon='times' />\n                </span>\n              </span>\n            {{/if}}\n          </span>\n        </td>\n  \n        <td>{{invoiceWrapper.invoice.issuer}}</td>\n        <td>{{moment-format\n            invoiceWrapper.invoice.issueDate\n            (t 'date.shortWithWeekday')\n          }}</td>\n        <td>\n          {{number-format\n            invoiceWrapper.totalPrice\n            style='currency'\n            dashZero=true\n          }}\n        </td>\n        <td>\n          {{! Edit button is a link to the invoice in the regular invoices UI }}\n          {{! TODO Change when we have a new invoice page ported}}\n          <LinkTo\n            @route='entity.builda-price.operations.incoming.bills.bill'\n            @model={{invoiceWrapper.invoice.id}}\n            @query={{hash browserBack='true'}}\n            class='link'\n          >\n            {{t 'components.report-builder-pm.invoice-type-table.View bill'}}\n          </LinkTo>\n        </td>\n      </tr>\n  \n      {{! A sub table for the items when the invoice is expanded }}\n      {{#if invoiceWrapper.itemsVisible}}\n        <tr>\n          <td></td>\n          <td colspan='5' class='report-builder__section-table-cell--no-padding'>\n            <table class='report-builder__section-table--sub-table'>\n              <thead>\n                {{! Headings for the items inside an invoice }}\n                <tr>\n                  <th class='report-builder__section-table-small-cell'></th>\n                  <th>{{t 'common.Name'}}</th>\n                  <th>{{t 'shared.report-builder.taskProject'}}</th>\n                  <th>{{t 'shared.report-builder.Product code'}}</th>\n                  <th>{{t 'common.Quantity'}}</th>\n                  <th>{{t 'common.Unit price'}}</th>\n                  <th>{{t 'common.Total price'}}</th>\n                </tr>\n              </thead>\n  \n              <tbody>\n                {{#each invoiceWrapper.items as |item|}}\n                  <tr>\n                    {{! Each item is selectable (works with the invoice level selection) }}\n                    <td onclick={{action this.toggleInvoiceItemSelected item}}>\n                      <Input @type='checkbox' @checked={{item.selected}} />\n                    </td>\n                    <td>\n                      <span class='report-builder__name-and-label-wrapper'>\n                        {{item.description}}\n                        {{#if item.reported}}\n                          <span class='report-builder__reported-label'>\n                            {{t 'common.Reported'}}\n                            <span\n                              class='report-builder__reported-label-close'\n                              {{action this.setItemReportedFalse item}}\n                            >\n                              <FaIcon @icon='times' />\n                            </span>\n                          </span>\n                        {{/if}}\n                      </span>\n                    </td>\n                    <td>{{item.assignment}}</td>\n                    <td>{{item.productCode}}</td>\n                    <td>{{item.quantity}}</td>\n                    <td>\n                      {{number-format\n                        item.unitPrice\n                        style='currency'\n                        dashZero=true\n                      }}\n                    </td>\n                    <td>\n                      {{number-format\n                        item.totalPrice\n                        style='currency'\n                        dashZero=true\n                      }}\n                    </td>\n                  </tr>\n                {{/each}}\n              </tbody>\n            </table>\n          </td>\n        </tr>\n      {{/if}}\n    {{/each}}\n  </tbody>\n  */\n  {\n    \"id\": \"N7oM/hAK\",\n    \"block\": \"[[[10,\\\"thead\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"title\\\"]],[[[1,\\\"    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"th\\\"],[14,\\\"colspan\\\",\\\"6\\\"],[12],[1,[30,0,[\\\"title\\\"]]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"th\\\"],[15,\\\"onclick\\\",[28,[37,4],[[30,0],[30,0,[\\\"toggleAllSelected\\\"]]],null]],[14,0,\\\"report-builder__section-table-small-cell\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,5],[[16,\\\"indeterminate\\\",[30,0,[\\\"partSelected\\\"]]]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"allSelected\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"common.Name\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"common.Issuer\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"common.Issue date\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"common.Total price\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[10,\\\"th\\\"],[14,0,\\\"report-builder__section-table-small-cell\\\"],[12],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[30,0,[\\\"invoices\\\"]]],null]],null],null,[[[1,\\\"    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"      \\\"],[10,\\\"td\\\"],[15,\\\"onclick\\\",[28,[37,4],[[30,0],[30,0,[\\\"toggleResourceItemsSelected\\\"]],[30,1]],null]],[12],[1,\\\"\\\\n        \\\"],[8,[39,5],[[16,\\\"indeterminate\\\",[30,1,[\\\"partSelected\\\"]]]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,1,[\\\"allSelected\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"      \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"report-builder__name-and-label-wrapper\\\"],[12],[1,\\\"\\\\n          \\\"],[11,3],[24,0,\\\"link\\\"],[4,[38,4],[[30,0],[30,0,[\\\"toggleItemsVisible\\\"]],[30,1]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,13],[[30,1,[\\\"invoice\\\",\\\"billNumber\\\"]],[30,1,[\\\"invoice\\\",\\\"reference\\\"]]],null]],[1,\\\"\\\\n            \\\"],[8,[39,14],null,[[\\\"@icon\\\"],[[52,[30,1,[\\\"itemsVisible\\\"]],\\\"angle-down\\\",\\\"angle-right\\\"]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"nReported\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"report-builder__reported-label\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"common.Reported\\\"],null]],[1,\\\"\\\\n\\\"],[41,[51,[30,1,[\\\"allReported\\\"]]],[[[1,\\\"                (\\\"],[1,[30,1,[\\\"nReported\\\"]]],[1,\\\"/\\\"],[1,[30,1,[\\\"items\\\",\\\"length\\\"]]],[1,\\\")\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[11,1],[24,0,\\\"report-builder__reported-label-close\\\"],[4,[38,4],[[30,0],[30,0,[\\\"setItemsReportedFalse\\\"]],[30,1,[\\\"items\\\"]]],null],[12],[1,\\\"\\\\n                \\\"],[8,[39,14],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"invoice\\\",\\\"issuer\\\"]]],[13],[1,\\\"\\\\n      \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,16],[[30,1,[\\\"invoice\\\",\\\"issueDate\\\"]],[28,[37,6],[\\\"date.shortWithWeekday\\\"],null]],null]],[13],[1,\\\"\\\\n      \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,17],[[30,1,[\\\"totalPrice\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"        \\\"],[8,[39,18],[[24,0,\\\"link\\\"]],[[\\\"@route\\\",\\\"@model\\\",\\\"@query\\\"],[\\\"entity.builda-price.operations.incoming.bills.bill\\\",[30,1,[\\\"invoice\\\",\\\"id\\\"]],[28,[37,19],null,[[\\\"browserBack\\\"],[\\\"true\\\"]]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"components.report-builder-pm.invoice-type-table.View bill\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,1,[\\\"itemsVisible\\\"]],[[[1,\\\"      \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"td\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"5\\\"],[14,0,\\\"report-builder__section-table-cell--no-padding\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"table\\\"],[14,0,\\\"report-builder__section-table--sub-table\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"              \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"th\\\"],[14,0,\\\"report-builder__section-table-small-cell\\\"],[12],[13],[1,\\\"\\\\n                \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"common.Name\\\"],null]],[13],[1,\\\"\\\\n                \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"shared.report-builder.taskProject\\\"],null]],[13],[1,\\\"\\\\n                \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"shared.report-builder.Product code\\\"],null]],[13],[1,\\\"\\\\n                \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"common.Quantity\\\"],null]],[13],[1,\\\"\\\\n                \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"common.Unit price\\\"],null]],[13],[1,\\\"\\\\n                \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"common.Total price\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[30,1,[\\\"items\\\"]]],null]],null],null,[[[1,\\\"                \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"                  \\\"],[10,\\\"td\\\"],[15,\\\"onclick\\\",[28,[37,4],[[30,0],[30,0,[\\\"toggleInvoiceItemSelected\\\"]],[30,2]],null]],[12],[1,\\\"\\\\n                    \\\"],[8,[39,5],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,2,[\\\"selected\\\"]]]],null],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,1],[14,0,\\\"report-builder__name-and-label-wrapper\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[30,2,[\\\"description\\\"]]],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"reported\\\"]],[[[1,\\\"                        \\\"],[10,1],[14,0,\\\"report-builder__reported-label\\\"],[12],[1,\\\"\\\\n                          \\\"],[1,[28,[35,6],[\\\"common.Reported\\\"],null]],[1,\\\"\\\\n                          \\\"],[11,1],[24,0,\\\"report-builder__reported-label-close\\\"],[4,[38,4],[[30,0],[30,0,[\\\"setItemReportedFalse\\\"]],[30,2]],null],[12],[1,\\\"\\\\n                            \\\"],[8,[39,14],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"td\\\"],[12],[1,[30,2,[\\\"assignment\\\"]]],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"td\\\"],[12],[1,[30,2,[\\\"productCode\\\"]]],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"td\\\"],[12],[1,[30,2,[\\\"quantity\\\"]]],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,17],[[30,2,[\\\"unitPrice\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,17],[[30,2,[\\\"totalPrice\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[1]],null],[13]],[\\\"invoiceWrapper\\\",\\\"item\\\"],false,[\\\"thead\\\",\\\"if\\\",\\\"tr\\\",\\\"th\\\",\\\"action\\\",\\\"input\\\",\\\"t\\\",\\\"tbody\\\",\\\"each\\\",\\\"-track-array\\\",\\\"td\\\",\\\"span\\\",\\\"a\\\",\\\"or\\\",\\\"fa-icon\\\",\\\"unless\\\",\\\"moment-format\\\",\\\"number-format\\\",\\\"link-to\\\",\\\"hash\\\",\\\"table\\\"]]\",\n    \"moduleName\": \"portal/components/report-builder-pm/invoice-type-table.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    tagName: 'table',\n    classNames: ['report-builder__section-table']\n  }));\n});","define(\"portal/components/report-builder-pm/manual-type-table\", [\"exports\", \"@ember/component\", \"@ember/template-factory\"], function (_exports, _component, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <thead>\n    {{#if this.title}}\n      <tr>\n        <th colspan='6'>{{this.title}}</th>\n      </tr>\n    {{/if}}\n    <tr>\n      <th class='report-builder__section-table-small-cell'></th>\n      <th colspan='2'>{{t 'common.Description'}}</th>\n      <th colspan='2'>{{t 'common.Total'}}</th>\n      <th>Edit</th>\n    </tr>\n  </thead>\n  \n  <tbody>\n    {{#each this.items as |manual|}}\n      <tr>\n        <td><Input @type='checkbox' @checked={{manual.selected}} /></td>\n        <td colspan='2'><Input\n            class='text-input'\n            @value={{manual.description}}\n            data-test-manual-desc\n          /></td>\n        <td colspan='2'>\n          <FormattedInput\n            @class='text-input'\n            @format='currency'\n            @number={{manual.total}}\n            @update={{fn (mut manual.total)}}\n            @placeholder='$0.00'\n            data-test-manual-amount\n          />\n        </td>\n        <td>\n          <button\n            class='text-button text-button--delete'\n            type='button'\n            {{action this.deleteItem this.manualKey manual}}\n          >\n            {{t 'common.Delete'}}\n          </button>\n        </td>\n      </tr>\n    {{/each}}\n  </tbody>\n  */\n  {\n    \"id\": \"rx5+94VA\",\n    \"block\": \"[[[10,\\\"thead\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"title\\\"]],[[[1,\\\"    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"th\\\"],[14,\\\"colspan\\\",\\\"6\\\"],[12],[1,[30,0,[\\\"title\\\"]]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"th\\\"],[14,0,\\\"report-builder__section-table-small-cell\\\"],[12],[13],[1,\\\"\\\\n    \\\"],[10,\\\"th\\\"],[14,\\\"colspan\\\",\\\"2\\\"],[12],[1,[28,[35,4],[\\\"common.Description\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[10,\\\"th\\\"],[14,\\\"colspan\\\",\\\"2\\\"],[12],[1,[28,[35,4],[\\\"common.Total\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[10,\\\"th\\\"],[12],[1,\\\"Edit\\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[30,0,[\\\"items\\\"]]],null]],null],null,[[[1,\\\"    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"td\\\"],[12],[8,[39,9],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,1,[\\\"selected\\\"]]]],null],[13],[1,\\\"\\\\n      \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"2\\\"],[12],[8,[39,9],[[24,0,\\\"text-input\\\"],[24,\\\"data-test-manual-desc\\\",\\\"\\\"]],[[\\\"@value\\\"],[[30,1,[\\\"description\\\"]]]],null],[13],[1,\\\"\\\\n      \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"2\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,10],[[24,\\\"data-test-manual-amount\\\",\\\"\\\"]],[[\\\"@class\\\",\\\"@format\\\",\\\"@number\\\",\\\"@update\\\",\\\"@placeholder\\\"],[\\\"text-input\\\",\\\"currency\\\",[30,1,[\\\"total\\\"]],[28,[37,11],[[28,[37,12],[[30,1,[\\\"total\\\"]]],null]],null],\\\"$0.00\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--delete\\\"],[24,4,\\\"button\\\"],[4,[38,14],[[30,0],[30,0,[\\\"deleteItem\\\"]],[30,0,[\\\"manualKey\\\"]],[30,1]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[13]],[\\\"manual\\\"],false,[\\\"thead\\\",\\\"if\\\",\\\"tr\\\",\\\"th\\\",\\\"t\\\",\\\"tbody\\\",\\\"each\\\",\\\"-track-array\\\",\\\"td\\\",\\\"input\\\",\\\"formatted-input\\\",\\\"fn\\\",\\\"mut\\\",\\\"button\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"portal/components/report-builder-pm/manual-type-table.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    tagName: 'table',\n    classNames: ['report-builder__section-table']\n  }));\n});","define(\"portal/components/report-builder-pm/timesheet-type-table\", [\"exports\", \"@ember/component\", \"@ember/template-factory\"], function (_exports, _component, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <thead>\n    {{#if this.title}}\n      <tr>\n        <th colspan='6'>{{this.title}}</th>\n      </tr>\n    {{/if}}\n    <tr>\n      <th\n        onclick={{action this.toggleTimesheetsSelected}}\n        class='report-builder__section-table-small-cell'\n      >\n        <Input\n          @type='checkbox'\n          @checked={{this.allTimesheetsSelected}}\n          indeterminate={{this.partTimesheetsSelected}}\n        />\n      </th>\n      <th>{{t 'common.Worker'}}</th>\n      <th>{{t 'common.Rate'}}</th>\n      <th>{{t 'common.Hours'}}</th>\n      <th>{{t 'common.Total'}}</th>\n    </tr>\n  </thead>\n  \n  <tbody>\n    {{! Timesheets are organised by worker }}\n    {{#each this.workers as |workerGroup|}}\n      <tr>\n        {{! Toggle to include all the timesheets for the worker }}\n        <td onclick={{action this.toggleWorkersTimesheetsSelected workerGroup}}>\n          <Input\n            @type='checkbox'\n            @checked={{workerGroup.allSelected}}\n            indeterminate={{workerGroup.partSelected}}\n          />\n        </td>\n  \n        {{! Each workerGroup can be expanded to show the individual timesheets }}\n        <td>\n          <span class='report-builder__name-and-label-wrapper'>\n            <a class='link' {{action this.toggleItemsVisible workerGroup}}>\n              {{workerGroup.worker.firstName}}\n              {{workerGroup.worker.lastName}}\n              <FaIcon\n                @icon={{if workerGroup.itemsVisible 'angle-down' 'angle-right'}}\n              />\n            </a>\n            <div class='report-builder__reported-label-wrapper'>\n              {{#if workerGroup.worker.isContractor}}\n                <span class='report-builder__reported-label'>\n                  {{t\n                    'components.report-builder-pm.timesheet-type-table.Contract worker'\n                  }}\n                </span>\n              {{/if}}\n              {{#if workerGroup.nReported}}\n                <span class='report-builder__reported-label'>\n                  {{t 'common.Reported'}}\n                  {{#unless workerGroup.allReported}}\n                    ({{workerGroup.nReported}}/{{workerGroup.timesheets.length}})\n                  {{/unless}}\n                  <span\n                    class='report-builder__reported-label-close'\n                    {{action this.setItemsReportedFalse workerGroup.timesheets}}\n                  >\n                    <FaIcon @icon='times' />\n                  </span>\n                </span>\n              {{/if}}\n            </div>\n          </span>\n        </td>\n  \n        {{! When using charge out rates, the rate for each workerGroup is editable }}\n        <td>\n          {{#if this.useChargeOutRates}}\n            <FormattedInput\n              @class='text-input'\n              @placeholder={{number-format\n                workerGroup.worker.chargeOutRate\n                style='currency'\n                dashZero=true\n              }}\n              @update={{fn (mut workerGroup.worker.currentChargeOutRate)}}\n              @number={{workerGroup.worker.currentChargeOutRate}}\n              @format='currency'\n              data-test-current-co-rate\n            />\n          {{else}}\n            {{number-format\n              workerGroup.worker.costRate\n              style='currency'\n              dashZero=false\n            }}\n          {{/if}}\n        </td>\n  \n        <td>\n          {{number-format\n            (or workerGroup.timesheetTotals.hours 0)\n            maximumFractionDigits=2\n            dashZero=false\n          }}\n        </td>\n        <td>\n          {{number-format\n            (or\n              (if\n                this.useChargeOutRates\n                workerGroup.timesheetTotals.chargeOut\n                workerGroup.timesheetTotals.cost\n              )\n              0\n            )\n            style='currency'\n            dashZero=false\n          }}\n        </td>\n      </tr>\n  \n      {{#if workerGroup.itemsVisible}}\n        <tr>\n          {{! Empty cell to give appearance of indentation }}\n          <td></td>\n          <td colspan='5' class='report-builder__section-table-cell--no-padding'>\n            {{! Sub table for individual timesheets when worker is expanded }}\n            <table class='report-builder__section-table--sub-table'>\n              <thead>\n                <th class='report-builder__section-table-small-cell'></th>\n                <th>{{t 'common.Date'}}</th>\n                <th>{{t 'shared.report-builder.taskProject'}}</th>\n                <th>{{t 'common.Rate'}}</th>\n                <th>{{t 'common.Hours'}}</th>\n                <th>{{t 'common.Total'}}</th>\n                <th>{{t 'common.Edit'}}</th>\n              </thead>\n  \n              {{#each workerGroup.timesheets as |timesheet|}}\n                <tbody>\n                  <td onclick={{action this.toggleTimesheetSelected timesheet}}>\n                    <Input @type='checkbox' @checked={{timesheet.selected}} />\n                  </td>\n                  <td>\n                    <span class='report-builder__name-and-label-wrapper'>\n                      {{moment-format timesheet.date (t 'date.shortWithWeekday')}}\n                      {{#if timesheet.reported}}\n                        <span class='report-builder__reported-label'>\n                          {{t 'common.Reported'}}\n                          <span\n                            class='report-builder__reported-label-close'\n                            {{action this.setItemReportedFalse timesheet}}\n                          >\n                            <FaIcon @icon='times' />\n                          </span>\n                        </span>\n                      {{/if}}\n                    </span>\n                  </td>\n                  <td>\n                    {{timesheet.task.breadcrumbs}}\n                    >\n                    {{timesheet.task.name}}</td>\n                  <td>\n                    {{#if this.useChargeOutRates}}\n                      {{! Use the manual charge out rate if present }}\n                      {{number-format\n                        (or\n                          workerGroup.currentChargeOutRate timesheet.chargeOutRate\n                        )\n                        style='currency'\n                        dashZero=false\n                      }}\n                    {{else}}\n                      {{number-format\n                        timesheet.costRate\n                        style='currency'\n                        dashZero=false\n                      }}\n                    {{/if}}\n                  </td>\n                  <td>\n                    {{number-format\n                      timesheet.hours\n                      maximumFractionDigits=2\n                      dashZero=true\n                    }}\n                  </td>\n                  <td>\n                    {{! If a manual charge out rate is set, we need to recalculate the labour price }}\n                    {{number-format\n                      (if\n                        this.useChargeOutRates\n                        (if\n                          workerGroup.currentChargeOutRate\n                          (math\n                            timesheet.hours '*' workerGroup.currentChargeOutRate\n                          )\n                          timesheet.totals.chargeOutTotal\n                        )\n                        timesheet.totals.costTotal\n                      )\n                      style='currency'\n                      dashZero=true\n                    }}\n                  </td>\n  \n                  <td>\n                    <LinkTo\n                      @route='entity.builda-price.operations.incoming.timesheets.timesheet'\n                      @query={{hash\n                        date=(moment-format timesheet.date 'YYYY-MM-DD')\n                        worker=timesheet.worker.id\n                      }}\n                      class='link'\n                    >\n                      {{t\n                        'components.report-builder-pm.timesheet-type-table.Edit timesheet'\n                      }}\n                    </LinkTo>\n                  </td>\n                </tbody>\n              {{/each}}\n            </table>\n          </td>\n        </tr>\n      {{/if}}\n    {{/each}}\n  </tbody>\n  */\n  {\n    \"id\": \"PXZgGBEQ\",\n    \"block\": \"[[[10,\\\"thead\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"title\\\"]],[[[1,\\\"    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"th\\\"],[14,\\\"colspan\\\",\\\"6\\\"],[12],[1,[30,0,[\\\"title\\\"]]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"th\\\"],[15,\\\"onclick\\\",[28,[37,4],[[30,0],[30,0,[\\\"toggleTimesheetsSelected\\\"]]],null]],[14,0,\\\"report-builder__section-table-small-cell\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,5],[[16,\\\"indeterminate\\\",[30,0,[\\\"partTimesheetsSelected\\\"]]]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"allTimesheetsSelected\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"common.Worker\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"common.Rate\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"common.Hours\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"common.Total\\\"],null]],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[30,0,[\\\"workers\\\"]]],null]],null],null,[[[1,\\\"    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"      \\\"],[10,\\\"td\\\"],[15,\\\"onclick\\\",[28,[37,4],[[30,0],[30,0,[\\\"toggleWorkersTimesheetsSelected\\\"]],[30,1]],null]],[12],[1,\\\"\\\\n        \\\"],[8,[39,5],[[16,\\\"indeterminate\\\",[30,1,[\\\"partSelected\\\"]]]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,1,[\\\"allSelected\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"      \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"report-builder__name-and-label-wrapper\\\"],[12],[1,\\\"\\\\n          \\\"],[11,3],[24,0,\\\"link\\\"],[4,[38,4],[[30,0],[30,0,[\\\"toggleItemsVisible\\\"]],[30,1]],null],[12],[1,\\\"\\\\n            \\\"],[1,[30,1,[\\\"worker\\\",\\\"firstName\\\"]]],[1,\\\"\\\\n            \\\"],[1,[30,1,[\\\"worker\\\",\\\"lastName\\\"]]],[1,\\\"\\\\n            \\\"],[8,[39,13],null,[[\\\"@icon\\\"],[[52,[30,1,[\\\"itemsVisible\\\"]],\\\"angle-down\\\",\\\"angle-right\\\"]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"report-builder__reported-label-wrapper\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"worker\\\",\\\"isContractor\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"report-builder__reported-label\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,6],[\\\"components.report-builder-pm.timesheet-type-table.Contract worker\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,1,[\\\"nReported\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"report-builder__reported-label\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,6],[\\\"common.Reported\\\"],null]],[1,\\\"\\\\n\\\"],[41,[51,[30,1,[\\\"allReported\\\"]]],[[[1,\\\"                  (\\\"],[1,[30,1,[\\\"nReported\\\"]]],[1,\\\"/\\\"],[1,[30,1,[\\\"timesheets\\\",\\\"length\\\"]]],[1,\\\")\\\\n\\\"]],[]],null],[1,\\\"                \\\"],[11,1],[24,0,\\\"report-builder__reported-label-close\\\"],[4,[38,4],[[30,0],[30,0,[\\\"setItemsReportedFalse\\\"]],[30,1,[\\\"timesheets\\\"]]],null],[12],[1,\\\"\\\\n                  \\\"],[8,[39,13],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"      \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"useChargeOutRates\\\"]],[[[1,\\\"          \\\"],[8,[39,16],[[24,\\\"data-test-current-co-rate\\\",\\\"\\\"]],[[\\\"@class\\\",\\\"@placeholder\\\",\\\"@update\\\",\\\"@number\\\",\\\"@format\\\"],[\\\"text-input\\\",[28,[37,17],[[30,1,[\\\"worker\\\",\\\"chargeOutRate\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]],[28,[37,18],[[28,[37,19],[[30,1,[\\\"worker\\\",\\\"currentChargeOutRate\\\"]]],null]],null],[30,1,[\\\"worker\\\",\\\"currentChargeOutRate\\\"]],\\\"currency\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,17],[[30,1,[\\\"worker\\\",\\\"costRate\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",false]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,17],[[28,[37,20],[[30,1,[\\\"timesheetTotals\\\",\\\"hours\\\"]],0],null]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[2,false]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,17],[[28,[37,20],[[52,[30,0,[\\\"useChargeOutRates\\\"]],[30,1,[\\\"timesheetTotals\\\",\\\"chargeOut\\\"]],[30,1,[\\\"timesheetTotals\\\",\\\"cost\\\"]]],0],null]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",false]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,1,[\\\"itemsVisible\\\"]],[[[1,\\\"      \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"        \\\"],[10,\\\"td\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"5\\\"],[14,0,\\\"report-builder__section-table-cell--no-padding\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"          \\\"],[10,\\\"table\\\"],[14,0,\\\"report-builder__section-table--sub-table\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"th\\\"],[14,0,\\\"report-builder__section-table-small-cell\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"common.Date\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"shared.report-builder.taskProject\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"common.Rate\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"common.Hours\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"common.Total\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"common.Edit\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[30,1,[\\\"timesheets\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"td\\\"],[15,\\\"onclick\\\",[28,[37,4],[[30,0],[30,0,[\\\"toggleTimesheetSelected\\\"]],[30,2]],null]],[12],[1,\\\"\\\\n                  \\\"],[8,[39,5],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,2,[\\\"selected\\\"]]]],null],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,1],[14,0,\\\"report-builder__name-and-label-wrapper\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,22],[[30,2,[\\\"date\\\"]],[28,[37,6],[\\\"date.shortWithWeekday\\\"],null]],null]],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"reported\\\"]],[[[1,\\\"                      \\\"],[10,1],[14,0,\\\"report-builder__reported-label\\\"],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[35,6],[\\\"common.Reported\\\"],null]],[1,\\\"\\\\n                        \\\"],[11,1],[24,0,\\\"report-builder__reported-label-close\\\"],[4,[38,4],[[30,0],[30,0,[\\\"setItemReportedFalse\\\"]],[30,2]],null],[12],[1,\\\"\\\\n                          \\\"],[8,[39,13],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[30,2,[\\\"task\\\",\\\"breadcrumbs\\\"]]],[1,\\\"\\\\n                  >\\\\n                  \\\"],[1,[30,2,[\\\"task\\\",\\\"name\\\"]]],[13],[1,\\\"\\\\n                \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"useChargeOutRates\\\"]],[[[1,\\\"                    \\\"],[1,[28,[35,17],[[28,[37,20],[[30,1,[\\\"currentChargeOutRate\\\"]],[30,2,[\\\"chargeOutRate\\\"]]],null]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",false]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                    \\\"],[1,[28,[35,17],[[30,2,[\\\"costRate\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",false]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,17],[[30,2,[\\\"hours\\\"]]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[2,true]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"                  \\\"],[1,[28,[35,17],[[52,[30,0,[\\\"useChargeOutRates\\\"]],[52,[30,1,[\\\"currentChargeOutRate\\\"]],[28,[37,23],[[30,2,[\\\"hours\\\"]],\\\"*\\\",[30,1,[\\\"currentChargeOutRate\\\"]]],null],[30,2,[\\\"totals\\\",\\\"chargeOutTotal\\\"]]],[30,2,[\\\"totals\\\",\\\"costTotal\\\"]]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\\n                \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                  \\\"],[8,[39,24],[[24,0,\\\"link\\\"]],[[\\\"@route\\\",\\\"@query\\\"],[\\\"entity.builda-price.operations.incoming.timesheets.timesheet\\\",[28,[37,25],null,[[\\\"date\\\",\\\"worker\\\"],[[28,[37,22],[[30,2,[\\\"date\\\"]],\\\"YYYY-MM-DD\\\"],null],[30,2,[\\\"worker\\\",\\\"id\\\"]]]]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                    \\\"],[1,[28,[35,6],[\\\"components.report-builder-pm.timesheet-type-table.Edit timesheet\\\"],null]],[1,\\\"\\\\n                  \\\"]],[]]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[1]],null],[13]],[\\\"workerGroup\\\",\\\"timesheet\\\"],false,[\\\"thead\\\",\\\"if\\\",\\\"tr\\\",\\\"th\\\",\\\"action\\\",\\\"input\\\",\\\"t\\\",\\\"tbody\\\",\\\"each\\\",\\\"-track-array\\\",\\\"td\\\",\\\"span\\\",\\\"a\\\",\\\"fa-icon\\\",\\\"div\\\",\\\"unless\\\",\\\"formatted-input\\\",\\\"number-format\\\",\\\"fn\\\",\\\"mut\\\",\\\"or\\\",\\\"table\\\",\\\"moment-format\\\",\\\"math\\\",\\\"link-to\\\",\\\"hash\\\"]]\",\n    \"moduleName\": \"portal/components/report-builder-pm/timesheet-type-table.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    tagName: 'table',\n    classNames: ['report-builder__section-table']\n  }));\n});","define(\"portal/components/report-engine-element-container\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='report-engine-element-container__container' ...attributes>\n    {{yield}}\n    {{#each @elements as |element|}}\n      <ReportEngineElement @element={{element}} @hideClass={{@hideClass}} />\n    {{/each}}\n  </div>\n  */\n  {\n    \"id\": \"mMXoya8X\",\n    \"block\": \"[[[11,0],[24,0,\\\"report-engine-element-container__container\\\"],[17,1],[12],[1,\\\"\\\\n  \\\"],[18,5,null],[1,\\\"\\\\n\\\"],[42,[28,[37,3],[[28,[37,3],[[30,2]],null]],null],null,[[[1,\\\"    \\\"],[8,[39,4],null,[[\\\"@element\\\",\\\"@hideClass\\\"],[[30,3],[30,4]]],null],[1,\\\"\\\\n\\\"]],[3]],null],[13]],[\\\"&attrs\\\",\\\"@elements\\\",\\\"element\\\",\\\"@hideClass\\\",\\\"&default\\\"],false,[\\\"div\\\",\\\"yield\\\",\\\"each\\\",\\\"-track-array\\\",\\\"report-engine-element\\\"]]\",\n    \"moduleName\": \"portal/components/report-engine-element-container.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component2.default {});\n});","define(\"portal/components/report-engine-element\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _component2, _tracking, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    class='rounded report-engine-element__container {{this.classes}}'\n    ...attributes\n  >\n    {{#if (or @element.name @element.searchEnabled)}}\n      <div class='position-relative'>\n        {{#if @element.name}}\n          <h3 class='text-center'>{{@element.name}}</h3>\n        {{/if}}\n        {{#if @element.searchEnabled}}\n          <span class='position-absolute top-0 end-0 {{@hideClass}}'>\n            <Input\n              class='form-control'\n              placeholder={{t 'common.Search'}}\n              aria-label='Search'\n              @type='text'\n              @value={{this.searchString}}\n            />\n          </span>\n        {{/if}}\n      </div>\n    {{/if}}\n  \n    {{#if (eq @element.elementType 'TABLE')}}\n      {{#if this.tableIsHeightConstrained}}\n        <div class='report-engine-table-container-overflow'>\n          <ReportEngineElement::Table\n            @parentContainerHasOverflow={{this.tableIsHeightConstrained}}\n            @values={{this.filterData}}\n            @thead={{@element.axes.thead}}\n            @tfoot={{@element.axes.tfoot}}\n          />\n        </div>\n      {{else}}\n        <ReportEngineElement::Table\n          @values={{this.filterData}}\n          @thead={{@element.axes.thead}}\n          @tfoot={{@element.axes.tfoot}}\n        />\n      {{/if}}\n    {{else if (eq @element.elementType 'PROJECTS_TABLE')}}\n      <ReportEngineElement::ProjectsTable\n        @values={{@element.values}}\n        @thead={{@element.axes.thead}}\n      />\n    {{else if (eq @element.elementType 'MULTI_GAUGE')}}\n      <ReportEngineElement::Gauge\n        @values={{@element.values}}\n        @x={{@element.axes.x}}\n      />\n    {{else if (eq @element.elementType 'BIG_TEXT')}}\n      <ReportEngineElement::BigText\n        @values={{@element.values}}\n        @label={{@element.axes.label}}\n      />\n    {{else if (eq @element.elementType 'PIE_CHART')}}\n      <ReportEngineElement::Pie @values={{@element.values}} />\n    {{else if (eq @element.elementType 'NOTE_TIMELINE')}}\n      <ReportEngineElement::NoteTimeline @values={{@element.values}} />\n    {{else}}\n      This should cause an error...\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"GaGfC/nZ\",\n    \"block\": \"[[[11,0],[16,0,[29,[\\\"rounded report-engine-element__container \\\",[30,0,[\\\"classes\\\"]]]]],[17,1],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,2],[[30,2,[\\\"name\\\"]],[30,2,[\\\"searchEnabled\\\"]]],null],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"position-relative\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"name\\\"]],[[[1,\\\"        \\\"],[10,\\\"h3\\\"],[14,0,\\\"text-center\\\"],[12],[1,[30,2,[\\\"name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,2,[\\\"searchEnabled\\\"]],[[[1,\\\"        \\\"],[10,1],[15,0,[29,[\\\"position-absolute top-0 end-0 \\\",[30,3]]]],[12],[1,\\\"\\\\n          \\\"],[8,[39,5],[[24,0,\\\"form-control\\\"],[16,\\\"placeholder\\\",[28,[37,6],[\\\"common.Search\\\"],null]],[24,\\\"aria-label\\\",\\\"Search\\\"]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[[30,2,[\\\"elementType\\\"]],\\\"TABLE\\\"],null],[[[41,[30,0,[\\\"tableIsHeightConstrained\\\"]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"report-engine-table-container-overflow\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,8],null,[[\\\"@parentContainerHasOverflow\\\",\\\"@values\\\",\\\"@thead\\\",\\\"@tfoot\\\"],[[30,0,[\\\"tableIsHeightConstrained\\\"]],[30,0,[\\\"filterData\\\"]],[30,2,[\\\"axes\\\",\\\"thead\\\"]],[30,2,[\\\"axes\\\",\\\"tfoot\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[8,[39,8],null,[[\\\"@values\\\",\\\"@thead\\\",\\\"@tfoot\\\"],[[30,0,[\\\"filterData\\\"]],[30,2,[\\\"axes\\\",\\\"thead\\\"]],[30,2,[\\\"axes\\\",\\\"tfoot\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[41,[28,[37,7],[[30,2,[\\\"elementType\\\"]],\\\"PROJECTS_TABLE\\\"],null],[[[1,\\\"    \\\"],[8,[39,9],null,[[\\\"@values\\\",\\\"@thead\\\"],[[30,2,[\\\"values\\\"]],[30,2,[\\\"axes\\\",\\\"thead\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,7],[[30,2,[\\\"elementType\\\"]],\\\"MULTI_GAUGE\\\"],null],[[[1,\\\"    \\\"],[8,[39,10],null,[[\\\"@values\\\",\\\"@x\\\"],[[30,2,[\\\"values\\\"]],[30,2,[\\\"axes\\\",\\\"x\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,7],[[30,2,[\\\"elementType\\\"]],\\\"BIG_TEXT\\\"],null],[[[1,\\\"    \\\"],[8,[39,11],null,[[\\\"@values\\\",\\\"@label\\\"],[[30,2,[\\\"values\\\"]],[30,2,[\\\"axes\\\",\\\"label\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,7],[[30,2,[\\\"elementType\\\"]],\\\"PIE_CHART\\\"],null],[[[1,\\\"    \\\"],[8,[39,12],null,[[\\\"@values\\\"],[[30,2,[\\\"values\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,7],[[30,2,[\\\"elementType\\\"]],\\\"NOTE_TIMELINE\\\"],null],[[[1,\\\"    \\\"],[8,[39,13],null,[[\\\"@values\\\"],[[30,2,[\\\"values\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    This should cause an error...\\\\n  \\\"]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]],[13]],[\\\"&attrs\\\",\\\"@element\\\",\\\"@hideClass\\\"],false,[\\\"div\\\",\\\"if\\\",\\\"or\\\",\\\"h3\\\",\\\"span\\\",\\\"input\\\",\\\"t\\\",\\\"eq\\\",\\\"report-engine-element/table\\\",\\\"report-engine-element/projects-table\\\",\\\"report-engine-element/gauge\\\",\\\"report-engine-element/big-text\\\",\\\"report-engine-element/pie\\\",\\\"report-engine-element/note-timeline\\\"]]\",\n    \"moduleName\": \"portal/components/report-engine-element.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_dec = (0, _object.computed)('args.element.height'), _dec2 = (0, _object.computed)('args.element.height'), _dec3 = (0, _object.computed)('args.element.width'), _dec4 = (0, _object.computed)('args.element.borderStyle'), _dec5 = (0, _object.computed)('heightClass', 'widthClass', 'borderClass'), _dec6 = (0, _object.computed)('args.element.values', 'searchString'), _class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"searchString\", _descriptor, this);\n    }\n    get tableIsHeightConstrained() {\n      if (!this.args.element.height) return false;\n      return true;\n    }\n    get heightClass() {\n      if (!this.args.element.height) return '';\n      if (this.args.element.height > 12 || this.args.element.height < 1) return '';\n      return `report-engine-element__container--height-${this.args.element.height}`;\n    }\n    get widthClass() {\n      if (!this.args.element.width) return '';\n      if (!this.args.element.width) return '';\n      if (this.args.element.width > 12 || this.args.element.width < 1) return '';\n      return `report-engine-element__container--width-${this.args.element.width}`;\n    }\n    get borderClass() {\n      if (!this.args.element.borderStyle) return '';\n      switch (this.args.element.borderStyle) {\n        case 'BORDER':\n          return 'border';\n        case 'BORDER_TOP':\n          return 'border-top';\n        case 'BORDER_LEFT':\n          return 'border-left';\n        case 'BORDER_RIGHT':\n          return 'border-right';\n        case 'BORDER_BOTTOM':\n          return 'border-bottom';\n        default:\n          return '';\n      }\n    }\n    get classes() {\n      return [this.heightClass, this.widthClass, this.borderClass].join(' ');\n    }\n    get filterData() {\n      const searchString = this.searchString.replace(/\\s/g, '').toLowerCase();\n      if (!searchString.length) return this.args.element.values;\n      const filteredData = [];\n      const filter = table => {\n        table.forEach(row => {\n          // check if row has table in it\n          let tableIndex = 0;\n          row.some((cell, index) => {\n            if (cell.length) {\n              tableIndex = index;\n              return true;\n            }\n          });\n          let filterValue = '';\n          for (let i = 0; i <= (tableIndex || row.length - 1); i++) {\n            filterValue += row[i].value;\n          }\n          if (filterValue.replace(/\\s/g, '').toLowerCase().includes(searchString)) {\n            if (tableIndex) {\n              filteredData.push(row.slice(0, tableIndex + 1));\n            } else {\n              filteredData.push(row);\n            }\n          }\n          if (tableIndex) {\n            filter(row.slice(tableIndex));\n          }\n        });\n      };\n      filter(this.args.element.values);\n      return filteredData;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"tableIsHeightConstrained\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"tableIsHeightConstrained\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"heightClass\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"heightClass\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"widthClass\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"widthClass\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"borderClass\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"borderClass\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"classes\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"classes\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"filterData\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"filterData\"), _class.prototype), _class));\n});","define(\"portal/components/report-engine-element/big-text\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.hasValue}}\n    <div class='text-center'>\n      <h1 class='m-0 p-0 display-6'>\n        <ReportEngineElement::Value @value={{this.value}} />\n      </h1>\n  \n      {{#if this.label}}\n        <span class='text-secondary'>{{this.label}}</span>\n      {{/if}}\n    </div>\n  {{else}}\n    <p class='text-center'>\n      {{t 'common.Not enough data'}}\n    </p>\n  {{/if}}\n  */\n  {\n    \"id\": \"ITUOqadq\",\n    \"block\": \"[[[41,[30,0,[\\\"hasValue\\\"]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h1\\\"],[14,0,\\\"m-0 p-0 display-6\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,3],null,[[\\\"@value\\\"],[[30,0,[\\\"value\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"label\\\"]],[[[1,\\\"      \\\"],[10,1],[14,0,\\\"text-secondary\\\"],[12],[1,[30,0,[\\\"label\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,2],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n    \\\"],[1,[28,[35,6],[\\\"common.Not enough data\\\"],null]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"div\\\",\\\"h1\\\",\\\"report-engine-element/value\\\",\\\"span\\\",\\\"p\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/components/report-engine-element/big-text.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component2.default {\n    get label() {\n      return this.args.label?.[0]?.[0].value;\n    }\n    get value() {\n      return this.args.values[0];\n    }\n    get hasValue() {\n      // this intentionally does not pass 0\n      return Boolean(this.value.value);\n    }\n  });\n});","define(\"portal/components/report-engine-element/card\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='card mb-3 w-100' style='break-inside: avoid;' ...attributes>\n    <div class='card-body'>\n      <div class='d-flex align-items-center mb-2'>\n        {{#if this.title}}\n          {{#each this.title as |title|}}\n            <h5 class='card-title m-0 me-1'>\n              <ReportEngineElement::Value @value={{title}} />\n            </h5>\n          {{/each}}\n        {{/if}}\n  \n        {{#if this.badge}}\n          {{#each this.badge as |badge|}}\n            <span class='badge bg-secondary'>\n              <ReportEngineElement::Value @value={{badge}} />\n            </span>\n          {{/each}}\n        {{/if}}\n      </div>\n  \n      {{#if this.subtitle}}\n        <h6 class='card-subtitle mb-2 text-muted'>\n          {{#each this.subtitle as |subtitle|}}\n            <ReportEngineElement::Value @value={{subtitle}} className='me-1' />\n          {{/each}}\n        </h6>\n      {{/if}}\n      {{#if this.body}}\n        {{#each this.body as |body|}}\n          <p class='card-text'>\n            <ReportEngineElement::Value @value={{body}} />\n          </p>\n        {{/each}}\n      {{/if}}\n      {{#if this.attachments.length}}\n        {{#each this.attachments as |attachments|}}\n          <ReportEngineElement::Value\n            @value={{attachments}}\n            class='d-grid gap-2 mb-2'\n            style='grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); grid-auto-rows: minmax(200px, auto);'\n          />\n        {{/each}}\n      {{/if}}\n  \n      {{#if this.linkOne}}\n        {{#each this.linkOne as |linkOne|}}\n          <ReportEngineElement::Value @value={{linkOne}} class='card-link' />\n        {{/each}}\n      {{/if}}\n    </div>\n  </div>\n  */\n  {\n    \"id\": \"9z53bMcK\",\n    \"block\": \"[[[11,0],[24,0,\\\"card mb-3 w-100\\\"],[24,5,\\\"break-inside: avoid;\\\"],[17,1],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"card-body\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center mb-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"title\\\"]],[[[42,[28,[37,3],[[28,[37,3],[[30,0,[\\\"title\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[10,\\\"h5\\\"],[14,0,\\\"card-title m-0 me-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,5],null,[[\\\"@value\\\"],[[30,2]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"badge\\\"]],[[[42,[28,[37,3],[[28,[37,3],[[30,0,[\\\"badge\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[10,1],[14,0,\\\"badge bg-secondary\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,5],null,[[\\\"@value\\\"],[[30,3]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],null]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"subtitle\\\"]],[[[1,\\\"      \\\"],[10,\\\"h6\\\"],[14,0,\\\"card-subtitle mb-2 text-muted\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,3],[[28,[37,3],[[30,0,[\\\"subtitle\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[8,[39,5],[[24,\\\"className\\\",\\\"me-1\\\"]],[[\\\"@value\\\"],[[30,4]]],null],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"body\\\"]],[[[42,[28,[37,3],[[28,[37,3],[[30,0,[\\\"body\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,2],[14,0,\\\"card-text\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,5],null,[[\\\"@value\\\"],[[30,5]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[5]],null]],[]],null],[41,[30,0,[\\\"attachments\\\",\\\"length\\\"]],[[[42,[28,[37,3],[[28,[37,3],[[30,0,[\\\"attachments\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[8,[39,5],[[24,0,\\\"d-grid gap-2 mb-2\\\"],[24,5,\\\"grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); grid-auto-rows: minmax(200px, auto);\\\"]],[[\\\"@value\\\"],[[30,6]]],null],[1,\\\"\\\\n\\\"]],[6]],null]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"linkOne\\\"]],[[[42,[28,[37,3],[[28,[37,3],[[30,0,[\\\"linkOne\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[8,[39,5],[[24,0,\\\"card-link\\\"]],[[\\\"@value\\\"],[[30,7]]],null],[1,\\\"\\\\n\\\"]],[7]],null]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"&attrs\\\",\\\"title\\\",\\\"badge\\\",\\\"subtitle\\\",\\\"body\\\",\\\"attachments\\\",\\\"linkOne\\\"],false,[\\\"div\\\",\\\"if\\\",\\\"each\\\",\\\"-track-array\\\",\\\"h5\\\",\\\"report-engine-element/value\\\",\\\"span\\\",\\\"h6\\\",\\\"p\\\"]]\",\n    \"moduleName\": \"portal/components/report-engine-element/card.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component2.default {\n    constructor(owner, args) {\n      super(owner, args);\n      _defineProperty(this, \"badge\", void 0);\n      _defineProperty(this, \"title\", void 0);\n      _defineProperty(this, \"subtitle\", void 0);\n      _defineProperty(this, \"body\", void 0);\n      _defineProperty(this, \"attachments\", void 0);\n      _defineProperty(this, \"linkOne\", void 0);\n      this.badge = this.initField(args.badgeIndex, args.value);\n      this.title = this.initField(args.titleIndex, args.value);\n      this.subtitle = this.initField(args.subtitleIndex, args.value);\n      this.body = this.initField(args.bodyIndex, args.value);\n      this.attachments = this.initField(args.attachmentsIndex, args.value);\n      this.linkOne = this.initField(args.linkOneIndex, args.value);\n    }\n    initField(index, source) {\n      // return undefined if index is missing\n      if (index === undefined) return undefined;\n      const value = source[index];\n      return Array.isArray(value) ? value : [value];\n    }\n  });\n});","define(\"portal/components/report-engine-element/gauge\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@amcharts/amcharts5\", \"@amcharts/amcharts5/radar\", \"@amcharts/amcharts5/xy\", \"portal/utils/am5-bp-theme\", \"@ember/service\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _component2, am5, _radar, _xy, _am5BpTheme, _service, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@amcharts/amcharts5\",0,\"@amcharts/amcharts5/radar\",0,\"@amcharts/amcharts5/xy\",0,\"portal/utils/am5-bp-theme\",0,\"@ember/service\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.hasData}}\n    <div\n      style='height: 100%; width: 100%;'\n      {{did-insert this.didInsert this.axesData this.valueData}}\n    ></div>\n  {{else}}\n    <p class='text-center'>\n      {{t 'common.Not enough data'}}\n    </p>\n  {{/if}}\n  */\n  {\n    \"id\": \"Y5/CJkDP\",\n    \"block\": \"[[[41,[30,0,[\\\"hasData\\\"]],[[[1,\\\"  \\\"],[11,0],[24,5,\\\"height: 100%; width: 100%;\\\"],[4,[38,2],[[30,0,[\\\"didInsert\\\"]],[30,0,[\\\"axesData\\\"]],[30,0,[\\\"valueData\\\"]]],null],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,2],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n    \\\"],[1,[28,[35,4],[\\\"common.Not enough data\\\"],null]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"div\\\",\\\"did-insert\\\",\\\"p\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/components/report-engine-element/gauge.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n    }\n    get axesData() {\n      return this.args.x.filter(([label, value]) => label.value && value.value).sort(([_aLabel, aValue], [_bLabel, bValue]) => aValue.value > bValue.value ? 1 : -1);\n    }\n    get valueData() {\n      return this.args.values[0];\n    }\n    get hasData() {\n      return Boolean(this.axesData.length > 0 && this.valueData);\n    }\n    didInsert(element, [axesData, valueData]) {\n      const axisMax = Math.max(...axesData.map(([_, a]) => a.value));\n      const [valueTitle, valueValue] = valueData;\n      const valueMax = Math.max(axisMax, valueValue.value);\n      const includeOverrun = valueValue.value / axisMax >= 0.8;\n      const includeLabels = includeOverrun || axesData.length > 1;\n      const overrunPercent = includeOverrun ? 0.2 : 0;\n      const third = 100 - 100 / 3;\n      const width = element.offsetWidth;\n      const height = element.offsetHeight;\n      const maxLabelWidth = width / (axesData.length + 1);\n\n      // use theme\n      const root = am5.Root.new(element);\n      root.setThemes([_am5BpTheme.default.new(root)]);\n\n      // set number formatter\n      if (axesData.some(([_, v]) => v.format !== valueValue.format)) throw new Error('Cannot combine formats in gauge chart');\n      let currency = 'NZD';\n      const percentageNumber = Math.round(valueValue.value / (axisMax || Infinity) * 100);\n      switch (valueValue.format) {\n        case 'CURRENCY':\n          if (this.sessionData.entity?.region === 'AUS') {\n            currency = 'AUD';\n          }\n          root.numberFormatter.set('numberFormat', {\n            style: 'currency',\n            currency,\n            minimumFractionDigits: 2\n          });\n          break;\n        case 'DURATION':\n          root.numberFormatter.set('numberFormat', {\n            style: 'unit',\n            unit: 'hour'\n          });\n          break;\n        case 'PERCENTAGE':\n          root.numberFormatter.set('numberFormat', {\n            style: 'percent',\n            dashZero: true,\n            maximumFractionDigits: 2\n          });\n          break;\n      }\n\n      // make the chart\n      const chart = root.container.children.push(_radar.default.RadarChart.new(root, {\n        panX: false,\n        panY: false,\n        startAngle: 160,\n        endAngle: 380,\n        layout: root.verticalLayout\n      }));\n      const axisRenderer = _radar.default.AxisRendererCircular.new(root, {\n        innerRadius: am5.percent(third)\n      });\n      axisRenderer.labels.template.set('visible', false);\n      axisRenderer.grid.template.set('visible', false);\n      const axis = chart.xAxes.push(_xy.default.ValueAxis.new(root, {\n        maxDeviation: 0,\n        min: 0,\n        max: valueMax,\n        strictMinMax: true,\n        extraMax: overrunPercent,\n        renderer: axisRenderer\n      }));\n      axesData.forEach(([title, value], index) => {\n        const color = chart.get('colors').next();\n        const lastValue = axesData[index - 1]?.[1]?.value || 0;\n        const axisRange = axis.createAxisRange(axis.makeDataItem({\n          value: lastValue,\n          endValue: value.value\n        }));\n        axisRange.get('axisFill').setAll({\n          tooltipText: title.value + ': {endValue.formatNumber()}[/]',\n          visible: true,\n          fill: am5.color(color)\n        });\n        if (includeLabels) axisRange.get('label').setAll({\n          visible: true,\n          text: title.value,\n          oversizedBehavior: 'truncate',\n          maxWidth: maxLabelWidth,\n          fontSize: '0.9em'\n        });\n      });\n      if (includeOverrun) {\n        const overrunRange = axis.createAxisRange(axis.makeDataItem({\n          value: axisMax,\n          endValue: valueMax * (1 + overrunPercent)\n        }));\n        overrunRange.get('axisFill').setAll({\n          visible: true,\n          fill: root.interfaceColors.get('negative')\n        });\n        overrunRange.get('label').setAll({\n          visible: true,\n          text: this.intl.t('common.Overrun'),\n          oversizedBehavior: 'truncate',\n          maxWidth: maxLabelWidth,\n          fontSize: '0.9em'\n        });\n      }\n      const label = chart.radarContainer.children.push(am5.Label.new(root, {\n        centerX: am5.percent(50),\n        textAlign: 'center',\n        centerY: am5.percent(50),\n        fontSize: '1em',\n        y: height / 4\n      }));\n      label.set('text', `${percentageNumber}%`);\n      // add the clock hand\n      // TODO I think this is causing browsers to crash\n      const clockHandDataItem = axis.makeDataItem({\n        value: valueValue.value\n      });\n      const clockHand = _radar.default.ClockHand.new(root, {\n        tooltipText: valueTitle.value + ': {value.formatNumber()}[/]',\n        pinRadius: am5.percent(100 / 3 / 2),\n        radius: am5.percent(100),\n        bottomWidth: 5,\n        fill: root.interfaceColors.get('alternativeBackground')\n      });\n      clockHandDataItem.set('bullet', _xy.default.AxisBullet.new(root, {\n        sprite: clockHand\n      }));\n      axis.createAxisRange(clockHandDataItem);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"didInsert\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"didInsert\"), _class.prototype), _class));\n});","define(\"portal/components/report-engine-element/note-timeline\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.sections.length}}\n    {{#each this.sections as |section|}}\n      {{#let (get section 0) as |date|}}\n        <div class='d-flex align-items-center'>\n          <div style='width: 9ch' class='text-right'>\n            {{moment-format date 'dddd'}}\n          </div>\n          <div\n            style='width: 50px; height: 50px;'\n            class='border rounded-circle mx-3 d-flex align-items-center justify-content-center'\n          >\n            <FaIcon @icon='calendar' @fixedWidth={{true}} @size='sm' />\n          </div>\n          <div>\n            {{moment-format date (t 'date.longWithoutWeekday')}}\n          </div>\n        </div>\n      {{/let}}\n  \n      <div class='border-start p-3' style='margin-left: 106px;'>\n        {{#each (get section 1) as |value|}}\n          <ReportEngineElement::Card\n            @badgeIndex={{5}}\n            @titleIndex={{1}}\n            @subtitleIndex={{2}}\n            @bodyIndex={{3}}\n            @attachmentsIndex={{4}}\n            @linkOneIndex={{6}}\n            @value={{value}}\n          />\n        {{/each}}\n      </div>\n    {{/each}}\n  {{else}}\n    <div class='text-center'>{{t 'common.Not enough data'}}</div>\n  {{/if}}\n  */\n  {\n    \"id\": \"xiRGSPcO\",\n    \"block\": \"[[[41,[30,0,[\\\"sections\\\",\\\"length\\\"]],[[[42,[28,[37,2],[[28,[37,2],[[30,0,[\\\"sections\\\"]]],null]],null],null,[[[44,[[28,[37,4],[[30,1],0],null]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,5,\\\"width: 9ch\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[[30,2],\\\"dddd\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,5,\\\"width: 50px; height: 50px;\\\"],[14,0,\\\"border rounded-circle mx-3 d-flex align-items-center justify-content-center\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,7],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"calendar\\\",true,\\\"sm\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[[30,2],[28,[37,8],[\\\"date.longWithoutWeekday\\\"],null]],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[2]]],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"border-start p-3\\\"],[14,5,\\\"margin-left: 106px;\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,2],[[28,[37,2],[[28,[37,4],[[30,1],1],null]],null]],null],null,[[[1,\\\"        \\\"],[8,[39,9],null,[[\\\"@badgeIndex\\\",\\\"@titleIndex\\\",\\\"@subtitleIndex\\\",\\\"@bodyIndex\\\",\\\"@attachmentsIndex\\\",\\\"@linkOneIndex\\\",\\\"@value\\\"],[5,1,2,3,4,6,[30,3]]],null],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,[28,[35,8],[\\\"common.Not enough data\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]]]],[\\\"section\\\",\\\"date\\\",\\\"value\\\"],false,[\\\"if\\\",\\\"each\\\",\\\"-track-array\\\",\\\"let\\\",\\\"get\\\",\\\"div\\\",\\\"moment-format\\\",\\\"fa-icon\\\",\\\"t\\\",\\\"report-engine-element/card\\\"]]\",\n    \"moduleName\": \"portal/components/report-engine-element/note-timeline.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _defineProperty(this, \"sections\", void 0);\n      const groupIndex = 0;\n      const sections = {};\n      for (const value of this.args.values) {\n        const groupValue = value[groupIndex]?.value;\n        const group = sections[groupValue] || [];\n        group.push(value);\n        sections[groupValue] = group;\n      }\n      this.sections = Object.entries(sections);\n    }\n  });\n});","define(\"portal/components/report-engine-element/pie\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@amcharts/amcharts5\", \"@amcharts/amcharts5/percent\", \"portal/utils/am5-bp-theme\", \"@ember/service\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _component2, am5, _percent, _am5BpTheme, _service, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@amcharts/amcharts5\",0,\"@amcharts/amcharts5/percent\",0,\"portal/utils/am5-bp-theme\",0,\"@ember/service\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.hasData}}\n    <div\n      style='height: 100%; width: 100%;'\n      {{did-insert this.didInsert this.values}}\n    ></div>\n  {{else}}\n    <p class='text-center'>\n      {{t 'common.Not enough data'}}\n    </p>\n  {{/if}}\n  */\n  {\n    \"id\": \"VNfzbbUh\",\n    \"block\": \"[[[41,[30,0,[\\\"hasData\\\"]],[[[1,\\\"  \\\"],[11,0],[24,5,\\\"height: 100%; width: 100%;\\\"],[4,[38,2],[[30,0,[\\\"didInsert\\\"]],[30,0,[\\\"values\\\"]]],null],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,2],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n    \\\"],[1,[28,[35,4],[\\\"common.Not enough data\\\"],null]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"div\\\",\\\"did-insert\\\",\\\"p\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/components/report-engine-element/pie.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n    }\n    get values() {\n      const values = [];\n      this.args.values.forEach(([label, value]) => {\n        if (label.value && value.value) values.push([label, value]);\n      });\n      return values;\n    }\n    get hasData() {\n      return Boolean(this.values.length);\n    }\n    didInsert(element, [values]) {\n      const showLegend = element.offsetHeight > 221;\n      // use theme\n      const root = am5.Root.new(element);\n      root.setThemes([_am5BpTheme.default.new(root)]);\n\n      // set number formatter\n      const format = values[0][1].format;\n      if (values.some(d => d[1].format !== format)) throw new Error('Cannot combine formats in gauge chart');\n      let currency = 'NZD';\n      switch (format) {\n        case 'CURRENCY':\n          if (this.sessionData.entity?.region === 'AUS') {\n            currency = 'AUD';\n          }\n          root.numberFormatter.set('numberFormat', {\n            style: 'currency',\n            currency,\n            minimumFractionDigits: 2\n          });\n          break;\n        case 'DURATION':\n          root.numberFormatter.set('numberFormat', {\n            style: 'unit',\n            unit: 'hour'\n          });\n          break;\n        case 'PERCENTAGE':\n          root.numberFormatter.set('numberFormat', {\n            style: 'percent',\n            minimumFractionDigits: 2,\n            maximumFractionDigits: 2\n          });\n          break;\n      }\n\n      // make the chart\n      const chart = root.container.children.push(_percent.default.PieChart.new(root, {\n        endAngle: 270,\n        layout: root.verticalLayout\n      }));\n      const series = chart.series.push(_percent.default.PieSeries.new(root, {\n        valueField: 'value',\n        categoryField: 'category',\n        endAngle: 270\n      }));\n      series.states.create('hidden', {\n        endAngle: -90\n      });\n      series.data.setAll(values.map(([label, value]) => ({\n        category: label.value,\n        value: value.value\n      })));\n      series.slices.template.set('tooltipText', '{value}');\n      series.labels.template.set('text', \"{category}: {valuePercentTotal.formatNumber('0.')}%[/]\");\n      if (showLegend) {\n        const legend = chart.children.push(am5.Legend.new(root, {\n          centerX: am5.percent(50),\n          x: am5.percent(50),\n          marginTop: 15,\n          marginBottom: 15\n        }));\n        legend.data.setAll(series.dataItems);\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"didInsert\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"didInsert\"), _class.prototype), _class));\n});","define(\"portal/components/report-engine-element/projects-table\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/template-factory\"], function (_exports, _component, _object, _component2, _tracking, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.sortedProjectsData.length}}\n    <div class='px-3'>\n      <div class='row'>\n        {{#each @thead as |head index|}}\n          {{#if head.value}}\n            <div\n              class={{head.class}}\n              role='button'\n              {{on\n                'click'\n                (pipe\n                  (fn (mut this.currentRowIndex) index)\n                  (fn this.onChangeSort this.currentSort)\n                )\n              }}\n            >\n              {{head.value}}\n              {{#if (eq this.currentRowIndex index)}}\n                <span\n                  class='report-engine-projects-table__sort-icon\n                    {{this.currentSort}}'\n                ></span>\n              {{/if}}\n            </div>\n          {{else}}\n            <div class={{head.class}}></div>\n          {{/if}}\n        {{/each}}\n      </div>\n    </div>\n    {{#each this.sortedProjectsData as |project|}}\n      <div class='py-2'>\n        <LinkTo\n          @route={{get project '0.linkTo.route'}}\n          @models={{get project '0.linkTo.models'}}\n          class='report-engine-projects-table__card card shadow-sm text-dark p-3'\n          role='button'\n          draggable={{false}}\n        >\n          <div class='row align-items-center'>\n            {{#each project as |col|}}\n              <div class={{col.class}}>\n                <span class='report-engine-table__col'>\n                  <ReportEngineElement::Value @value={{col}} />\n                </span>\n              </div>\n            {{/each}}\n          </div>\n        </LinkTo>\n      </div>\n    {{/each}}\n  {{else}}\n    <div class='error-page error-page--no-data'>\n      <h2 class='h2 error-page__icon'><FaIcon @icon='info-circle' /></h2>\n      <h3 class='h3 error-page__title'>{{t 'common.No projects'}}</h3>\n    </div>\n  {{/if}}\n  */\n  {\n    \"id\": \"7wHlygi6\",\n    \"block\": \"[[[41,[30,0,[\\\"sortedProjectsData\\\",\\\"length\\\"]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"px-3\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,3],[[28,[37,3],[[30,1]],null]],null],null,[[[41,[30,2,[\\\"value\\\"]],[[[1,\\\"          \\\"],[11,0],[16,0,[30,2,[\\\"class\\\"]]],[24,\\\"role\\\",\\\"button\\\"],[4,[38,4],[\\\"click\\\",[28,[37,5],[[28,[37,6],[[28,[37,7],[[30,0,[\\\"currentRowIndex\\\"]]],null],[30,3]],null],[28,[37,6],[[30,0,[\\\"onChangeSort\\\"]],[30,0,[\\\"currentSort\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[30,2,[\\\"value\\\"]]],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"currentRowIndex\\\"]],[30,3]],null],[[[1,\\\"              \\\"],[10,1],[15,0,[29,[\\\"report-engine-projects-table__sort-icon\\\\n                  \\\",[30,0,[\\\"currentSort\\\"]]]]],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,0],[15,0,[30,2,[\\\"class\\\"]]],[12],[13],[1,\\\"\\\\n\\\"]],[]]]],[2,3]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,3],[[28,[37,3],[[30,0,[\\\"sortedProjectsData\\\"]]],null]],null],null,[[[1,\\\"    \\\"],[10,0],[14,0,\\\"py-2\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,10],[[24,0,\\\"report-engine-projects-table__card card shadow-sm text-dark p-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[16,\\\"draggable\\\",false]],[[\\\"@route\\\",\\\"@models\\\"],[[28,[37,11],[[30,4],\\\"0.linkTo.route\\\"],null],[28,[37,11],[[30,4],\\\"0.linkTo.models\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"row align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,3],[[28,[37,3],[[30,4]],null]],null],null,[[[1,\\\"            \\\"],[10,0],[15,0,[30,5,[\\\"class\\\"]]],[12],[1,\\\"\\\\n              \\\"],[10,1],[14,0,\\\"report-engine-table__col\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,12],null,[[\\\"@value\\\"],[[30,5]]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],null]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"error-page error-page--no-data\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2 error-page__icon\\\"],[12],[8,[39,14],null,[[\\\"@icon\\\"],[\\\"info-circle\\\"]],null],[13],[1,\\\"\\\\n    \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3 error-page__title\\\"],[12],[1,[28,[35,16],[\\\"common.No projects\\\"],null]],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[\\\"@thead\\\",\\\"head\\\",\\\"index\\\",\\\"project\\\",\\\"col\\\"],false,[\\\"if\\\",\\\"div\\\",\\\"each\\\",\\\"-track-array\\\",\\\"on\\\",\\\"pipe\\\",\\\"fn\\\",\\\"mut\\\",\\\"eq\\\",\\\"span\\\",\\\"link-to\\\",\\\"get\\\",\\\"report-engine-element/value\\\",\\\"h2\\\",\\\"fa-icon\\\",\\\"h3\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/components/report-engine-element/projects-table.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_dec = (0, _object.computed)('args.values', 'currentSort', 'currentRowIndex'), _class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"currentSort\", _descriptor, this);\n      _initializerDefineProperty(this, \"currentRowIndex\", _descriptor2, this);\n      _initializerDefineProperty(this, \"rowIndex\", _descriptor3, this);\n    }\n    onChangeSort(currentSort) {\n      if (this.rowIndex !== this.currentRowIndex) {\n        (0, _object.set)(this, 'currentSort', 'desc');\n        this.rowIndex = this.currentRowIndex;\n        return;\n      }\n      if (currentSort === 'asc') {\n        (0, _object.set)(this, 'currentSort', null);\n        return;\n      }\n      if (currentSort === 'desc') {\n        (0, _object.set)(this, 'currentSort', 'asc');\n        return;\n      }\n      if (!currentSort) {\n        (0, _object.set)(this, 'currentSort', 'desc');\n        return;\n      }\n    }\n    get sortedProjectsData() {\n      const data = [...this.args.values];\n      if (!this.currentSort) return this.args.values;\n      const sortOrder = this.currentSort === 'desc' ? 1 : -1;\n      data.sort((a, b) => {\n        const valueA = a[this.currentRowIndex].value;\n        const valueB = b[this.currentRowIndex].value;\n        if (valueA < valueB) {\n          return sortOrder;\n        } else if (valueA > valueB) {\n          return -sortOrder;\n        } else {\n          return 0;\n        }\n      });\n      return data;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"currentSort\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"currentRowIndex\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"rowIndex\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"onChangeSort\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onChangeSort\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"sortedProjectsData\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"sortedProjectsData\"), _class.prototype), _class));\n});","define(\"portal/components/report-engine-element/table\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.hasData}}\n    {{#if @isNested}}\n      {{#if @thead}}\n        <ReportEngineElement::Table::Row\n          @row={{this.thead.row}}\n          @isHeader={{true}}\n          @thead={{this.thead.thead}}\n          @tfoot={{this.tfoot.tfoot}}\n        />\n      {{/if}}\n      {{#each @values as |row identifier|}}\n        <ReportEngineElement::Table::Row\n          @identifier={{identifier}}\n          @row={{row}}\n          @isHeader={{false}}\n          @thead={{this.thead.thead}}\n          @tfoot={{this.tfoot.tfoot}}\n          @isLastRow={{if (eq identifier this.rowLength) true false}}\n        />\n      {{/each}}\n      {{#if @tfoot}}\n        <ReportEngineElement::Table::Row\n          @row={{this.tfoot.row}}\n          @isHeader={{true}}\n          @thead={{this.thead.thead}}\n          @tfoot={{this.tfoot.tfoot}}\n        />\n      {{/if}}\n    {{else}}\n      <table class='table'>\n        {{#if @thead}}\n          <thead\n            class={{if\n              @parentContainerHasOverflow\n              'report-engine-table-header-sticky--table-container'\n              'report-engine-table-header-sticky--page'\n            }}\n          >\n            <ReportEngineElement::Table::Row\n              @row={{this.thead.row}}\n              @isHeader={{true}}\n              @thead={{this.thead.thead}}\n              @tfoot={{this.tfoot.tfoot}}\n            />\n          </thead>\n        {{/if}}\n        <tbody class='table-group-divider'>\n          {{#each @values as |row identifier|}}\n            <ReportEngineElement::Table::Row\n              @identifier={{identifier}}\n              @row={{row}}\n              @isHeader={{false}}\n              @thead={{this.thead.thead}}\n              @tfoot={{this.tfoot.tfoot}}\n            />\n          {{/each}}\n        </tbody>\n        {{#if @tfoot}}\n          <tfoot class='table-group-divider'>\n            {{#each @tfoot as |row identifier|}}\n              <ReportEngineElement::Table::Row\n                @identifier={{identifier}}\n                @row={{row}}\n                @isHeader={{true}}\n                @thead={{this.thead.thead}}\n                @tfoot={{this.tfoot.tfoot}}\n              />\n            {{/each}}\n          </tfoot>\n        {{/if}}\n      </table>\n    {{/if}}\n  {{else}}\n    <p class='text-center'>\n      {{t 'common.Not enough data'}}\n    </p>\n  {{/if}}\n  */\n  {\n    \"id\": \"RSQo4g7Y\",\n    \"block\": \"[[[41,[30,0,[\\\"hasData\\\"]],[[[41,[30,1],[[[41,[30,2],[[[1,\\\"      \\\"],[8,[39,1],null,[[\\\"@row\\\",\\\"@isHeader\\\",\\\"@thead\\\",\\\"@tfoot\\\"],[[30,0,[\\\"thead\\\",\\\"row\\\"]],true,[30,0,[\\\"thead\\\",\\\"thead\\\"]],[30,0,[\\\"tfoot\\\",\\\"tfoot\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[42,[28,[37,3],[[28,[37,3],[[30,3]],null]],null],null,[[[1,\\\"      \\\"],[8,[39,1],null,[[\\\"@identifier\\\",\\\"@row\\\",\\\"@isHeader\\\",\\\"@thead\\\",\\\"@tfoot\\\",\\\"@isLastRow\\\"],[[30,5],[30,4],false,[30,0,[\\\"thead\\\",\\\"thead\\\"]],[30,0,[\\\"tfoot\\\",\\\"tfoot\\\"]],[52,[28,[37,4],[[30,5],[30,0,[\\\"rowLength\\\"]]],null],true,false]]],null],[1,\\\"\\\\n\\\"]],[4,5]],null],[41,[30,6],[[[1,\\\"      \\\"],[8,[39,1],null,[[\\\"@row\\\",\\\"@isHeader\\\",\\\"@thead\\\",\\\"@tfoot\\\"],[[30,0,[\\\"tfoot\\\",\\\"row\\\"]],true,[30,0,[\\\"thead\\\",\\\"thead\\\"]],[30,0,[\\\"tfoot\\\",\\\"tfoot\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[1,\\\"    \\\"],[10,\\\"table\\\"],[14,0,\\\"table\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2],[[[1,\\\"        \\\"],[10,\\\"thead\\\"],[15,0,[52,[30,7],\\\"report-engine-table-header-sticky--table-container\\\",\\\"report-engine-table-header-sticky--page\\\"]],[12],[1,\\\"\\\\n          \\\"],[8,[39,1],null,[[\\\"@row\\\",\\\"@isHeader\\\",\\\"@thead\\\",\\\"@tfoot\\\"],[[30,0,[\\\"thead\\\",\\\"row\\\"]],true,[30,0,[\\\"thead\\\",\\\"thead\\\"]],[30,0,[\\\"tfoot\\\",\\\"tfoot\\\"]]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[10,\\\"tbody\\\"],[14,0,\\\"table-group-divider\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,3],[[28,[37,3],[[30,3]],null]],null],null,[[[1,\\\"          \\\"],[8,[39,1],null,[[\\\"@identifier\\\",\\\"@row\\\",\\\"@isHeader\\\",\\\"@thead\\\",\\\"@tfoot\\\"],[[30,9],[30,8],false,[30,0,[\\\"thead\\\",\\\"thead\\\"]],[30,0,[\\\"tfoot\\\",\\\"tfoot\\\"]]]],null],[1,\\\"\\\\n\\\"]],[8,9]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,6],[[[1,\\\"        \\\"],[10,\\\"tfoot\\\"],[14,0,\\\"table-group-divider\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,3],[[28,[37,3],[[30,6]],null]],null],null,[[[1,\\\"            \\\"],[8,[39,1],null,[[\\\"@identifier\\\",\\\"@row\\\",\\\"@isHeader\\\",\\\"@thead\\\",\\\"@tfoot\\\"],[[30,11],[30,10],true,[30,0,[\\\"thead\\\",\\\"thead\\\"]],[30,0,[\\\"tfoot\\\",\\\"tfoot\\\"]]]],null],[1,\\\"\\\\n\\\"]],[10,11]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[1,\\\"  \\\"],[10,2],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n    \\\"],[1,[28,[35,10],[\\\"common.Not enough data\\\"],null]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[\\\"@isNested\\\",\\\"@thead\\\",\\\"@values\\\",\\\"row\\\",\\\"identifier\\\",\\\"@tfoot\\\",\\\"@parentContainerHasOverflow\\\",\\\"row\\\",\\\"identifier\\\",\\\"row\\\",\\\"identifier\\\"],false,[\\\"if\\\",\\\"report-engine-element/table/row\\\",\\\"each\\\",\\\"-track-array\\\",\\\"eq\\\",\\\"table\\\",\\\"thead\\\",\\\"tbody\\\",\\\"tfoot\\\",\\\"p\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/components/report-engine-element/table.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component2.default {\n    get hasData() {\n      return this.args.values.length > 0;\n    }\n    get rowLength() {\n      return this.args.values.length - 1 || 0;\n    }\n    get thead() {\n      return this.args.thead?.reduce((data, col) => {\n        if (Array.isArray(col)) data.thead.push(...col);else data.row.push(col);\n        return data;\n      }, {\n        row: [],\n        thead: []\n      });\n    }\n    get tfoot() {\n      return this.args.tfoot?.reduce((data, col) => {\n        if (Array.isArray(col)) data.tfoot.push(...col);else data.row.push(col);\n        return data;\n      }, {\n        row: [],\n        tfoot: []\n      });\n    }\n  });\n});","define(\"portal/components/report-engine-element/table/row\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _component2, _tracking, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.data.table}}\n    <tr\n      class='{{if this.isActive \"table-active\"}} {{@identifier}}'\n      role='button'\n      {{on 'click' (fn (mut this.expanded) (not this.expanded))}}\n      {{on 'mouseenter' (fn (mut this.hovered) true)}}\n      {{on 'mouseleave' (fn (mut this.hovered) false)}}\n      data-test-report-table-row\n    >\n      {{#each this.data.row as |col index|}}\n        {{#if @isHeader}}\n          <th class={{col.class}}>\n            <ReportEngineElement::Value @value={{col}} />\n          </th>\n        {{else}}\n          <td\n            class='{{if @isLastRow \"report-engine-table__row \"}}{{col.class}}'\n            {{on 'click' (fn this.noop col)}}\n          >\n            {{#if (eq index this.firstVisibleRowIndex)}}\n              <FaIcon\n                @icon={{if this.expanded 'chevron-down' 'chevron-right'}}\n                class='me-1 text-dark'\n              />\n            {{/if}}\n            <ReportEngineElement::Value\n              @value={{col}}\n              @expanded={{this.expanded}}\n            />\n          </td>\n        {{/if}}\n      {{/each}}\n    </tr>\n  \n    {{#if this.expanded}}\n      <ReportEngineElement::Table\n        @values={{this.data.table}}\n        @thead={{@thead}}\n        @tfoot={{@tfoot}}\n        @isNested={{true}}\n      />\n    {{/if}}\n  {{else}}\n    <tr class={{@identifier}} data-test-report-table-row>\n      {{#each this.data.row as |col|}}\n        {{#if @isHeader}}\n          <th class={{col.class}}>\n            <ReportEngineElement::Value @value={{col}} />\n          </th>\n        {{else}}\n          <td class='{{if @isLastRow \"report-engine-table__row \"}}{{col.class}}'>\n            <ReportEngineElement::Value @value={{col}} />\n          </td>\n        {{/if}}\n      {{/each}}\n    </tr>\n  {{/if}}\n  */\n  {\n    \"id\": \"rawLHN/Y\",\n    \"block\": \"[[[41,[30,0,[\\\"data\\\",\\\"table\\\"]],[[[1,\\\"  \\\"],[11,\\\"tr\\\"],[16,0,[29,[[52,[30,0,[\\\"isActive\\\"]],\\\"table-active\\\"],\\\" \\\",[30,1]]]],[24,\\\"role\\\",\\\"button\\\"],[24,\\\"data-test-report-table-row\\\",\\\"\\\"],[4,[38,2],[\\\"click\\\",[28,[37,3],[[28,[37,4],[[30,0,[\\\"expanded\\\"]]],null],[28,[37,5],[[30,0,[\\\"expanded\\\"]]],null]],null]],null],[4,[38,2],[\\\"mouseenter\\\",[28,[37,3],[[28,[37,4],[[30,0,[\\\"hovered\\\"]]],null],true],null]],null],[4,[38,2],[\\\"mouseleave\\\",[28,[37,3],[[28,[37,4],[[30,0,[\\\"hovered\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[30,0,[\\\"data\\\",\\\"row\\\"]]],null]],null],null,[[[41,[30,4],[[[1,\\\"        \\\"],[10,\\\"th\\\"],[15,0,[30,2,[\\\"class\\\"]]],[12],[1,\\\"\\\\n          \\\"],[8,[39,9],null,[[\\\"@value\\\"],[[30,2]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[11,\\\"td\\\"],[16,0,[29,[[52,[30,5],\\\"report-engine-table__row \\\"],[30,2,[\\\"class\\\"]]]]],[4,[38,2],[\\\"click\\\",[28,[37,3],[[30,0,[\\\"noop\\\"]],[30,2]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[[30,3],[30,0,[\\\"firstVisibleRowIndex\\\"]]],null],[[[1,\\\"            \\\"],[8,[39,12],[[24,0,\\\"me-1 text-dark\\\"]],[[\\\"@icon\\\"],[[52,[30,0,[\\\"expanded\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[8,[39,9],null,[[\\\"@value\\\",\\\"@expanded\\\"],[[30,2],[30,0,[\\\"expanded\\\"]]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[2,3]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"expanded\\\"]],[[[1,\\\"    \\\"],[8,[39,13],null,[[\\\"@values\\\",\\\"@thead\\\",\\\"@tfoot\\\",\\\"@isNested\\\"],[[30,0,[\\\"data\\\",\\\"table\\\"]],[30,6],[30,7],true]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[1,\\\"  \\\"],[10,\\\"tr\\\"],[15,0,[30,1]],[14,\\\"data-test-report-table-row\\\",\\\"\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[30,0,[\\\"data\\\",\\\"row\\\"]]],null]],null],null,[[[41,[30,4],[[[1,\\\"        \\\"],[10,\\\"th\\\"],[15,0,[30,8,[\\\"class\\\"]]],[12],[1,\\\"\\\\n          \\\"],[8,[39,9],null,[[\\\"@value\\\"],[[30,8]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,\\\"td\\\"],[15,0,[29,[[52,[30,5],\\\"report-engine-table__row \\\"],[30,8,[\\\"class\\\"]]]]],[12],[1,\\\"\\\\n          \\\"],[8,[39,9],null,[[\\\"@value\\\"],[[30,8]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[8]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[\\\"@identifier\\\",\\\"col\\\",\\\"index\\\",\\\"@isHeader\\\",\\\"@isLastRow\\\",\\\"@thead\\\",\\\"@tfoot\\\",\\\"col\\\"],false,[\\\"if\\\",\\\"tr\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"not\\\",\\\"each\\\",\\\"-track-array\\\",\\\"th\\\",\\\"report-engine-element/value\\\",\\\"td\\\",\\\"eq\\\",\\\"fa-icon\\\",\\\"report-engine-element/table\\\"]]\",\n    \"moduleName\": \"portal/components/report-engine-element/table/row.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"expanded\", _descriptor, this);\n      _initializerDefineProperty(this, \"hovered\", _descriptor2, this);\n      _initializerDefineProperty(this, \"paddingLeft\", _descriptor3, this);\n    }\n    get isActive() {\n      return this.expanded || this.hovered;\n    }\n    get data() {\n      return this.args.row.reduce((data, col) => {\n        if (Array.isArray(col)) data.table.push(col);else data.row.push(col);\n        return data;\n      }, {\n        row: [],\n        table: []\n      });\n    }\n    get firstVisibleRowIndex() {\n      const noDisplayClasses = ['d-none'];\n      for (let index = 0; index < this.data.row.length; index++) {\n        const cell = this.data.row[index];\n        const notVisible = noDisplayClasses.includes(cell.class?.trim());\n        if (notVisible) continue;\n        return index;\n      }\n      return -1;\n    }\n    noop(col, e) {\n      if (!col.linkTo) return;\n      e.preventDefault();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"expanded\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"hovered\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"paddingLeft\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"noop\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"noop\"), _class.prototype), _class));\n});","define(\"portal/components/report-engine-element/value\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if (and @value.tooltip @value.linkTo)}}\n    {{#if @value.linkTo.queryParams}}\n      <LinkTo\n        @route={{@value.linkTo.route}}\n        @models={{this.linkToModels}}\n        @query={{@value.linkTo.queryParams}}\n      >\n        <LabelPopup @text={{@value.tooltip}}>\n          <span class={{this.className}} ...attributes>\n            {{#if @value.icon}}\n              <FaIcon @icon={{@value.icon}} />\n            {{/if}}\n            <ReportEngineElement::Value::Value\n              @value={{@value.value}}\n              @format={{@value.format}}\n              @dashZero={{@value.dashZero}}\n              @showPositiveNegativeIndicator={{@value.showPositiveNegativeIndicator}}\n            />\n          </span>\n        </LabelPopup>\n      </LinkTo>\n    {{else}}\n      <LinkTo @route={{@value.linkTo.route}} @models={{this.linkToModels}}>\n        <LabelPopup @text={{@value.tooltip}}>\n          <span class={{this.className}} ...attributes>\n            {{#if @value.icon}}\n              <FaIcon @icon={{@value.icon}} />\n            {{/if}}\n            <ReportEngineElement::Value::Value\n              @value={{@value.value}}\n              @format={{@value.format}}\n              @dashZero={{@value.dashZero}}\n              @showPositiveNegativeIndicator={{@value.showPositiveNegativeIndicator}}\n            />\n          </span>\n        </LabelPopup>\n      </LinkTo>\n    {{/if}}\n  {{else if @value.tooltip}}\n    <LabelPopup @text={{@value.tooltip}}>\n      <span class={{this.className}} ...attributes>\n        {{#if @value.icon}}\n          <FaIcon @icon={{@value.icon}} />\n        {{/if}}\n        <ReportEngineElement::Value::Value\n          @value={{@value.value}}\n          @format={{@value.format}}\n          @dashZero={{@value.dashZero}}\n          @showPositiveNegativeIndicator={{@value.showPositiveNegativeIndicator}}\n        />\n      </span>\n    </LabelPopup>\n  {{else if @value.linkTo}}\n    {{#if @value.linkTo.queryParams}}\n      <LinkTo\n        @route={{@value.linkTo.route}}\n        @models={{this.linkToModels}}\n        @query={{@value.linkTo.queryParams}}\n      >\n        <span class={{this.className}} ...attributes>\n          {{#if @value.icon}}\n            <FaIcon @icon={{@value.icon}} />\n          {{/if}}\n          <ReportEngineElement::Value::Value\n            @value={{@value.value}}\n            @format={{@value.format}}\n            @dashZero={{@value.dashZero}}\n            @showPositiveNegativeIndicator={{@value.showPositiveNegativeIndicator}}\n          />\n        </span>\n      </LinkTo>\n    {{else}}\n      <LinkTo @route={{@value.linkTo.route}} @models={{this.linkToModels}}>\n        <span class={{this.className}} ...attributes>\n          {{#if @value.icon}}\n            <FaIcon @icon={{@value.icon}} />\n          {{/if}}\n          <ReportEngineElement::Value::Value\n            @value={{@value.value}}\n            @format={{@value.format}}\n            @dashZero={{@value.dashZero}}\n            @showPositiveNegativeIndicator={{@value.showPositiveNegativeIndicator}}\n          />\n        </span>\n      </LinkTo>\n    {{/if}}\n  \n  {{else if (not-eq @value.value undefined)}}\n    <span class={{this.className}} ...attributes>\n      {{#if @value.icon}}\n        <FaIcon @icon={{@value.icon}} />\n      {{/if}}\n      <ReportEngineElement::Value::Value\n        @value={{@value.value}}\n        @format={{@value.format}}\n        @dashZero={{@value.dashZero}}\n        @showPositiveNegativeIndicator={{@value.showPositiveNegativeIndicator}}\n      />\n    </span>\n  {{else}}\n    {{this.value}}\n  {{/if}}\n  */\n  {\n    \"id\": \"4m6EuBxK\",\n    \"block\": \"[[[41,[28,[37,1],[[30,1,[\\\"tooltip\\\"]],[30,1,[\\\"linkTo\\\"]]],null],[[[41,[30,1,[\\\"linkTo\\\",\\\"queryParams\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@route\\\",\\\"@models\\\",\\\"@query\\\"],[[30,1,[\\\"linkTo\\\",\\\"route\\\"]],[30,0,[\\\"linkToModels\\\"]],[30,1,[\\\"linkTo\\\",\\\"queryParams\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,3],null,[[\\\"@text\\\"],[[30,1,[\\\"tooltip\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[11,1],[16,0,[30,0,[\\\"className\\\"]]],[17,2],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"icon\\\"]],[[[1,\\\"            \\\"],[8,[39,5],null,[[\\\"@icon\\\"],[[30,1,[\\\"icon\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[8,[39,6],null,[[\\\"@value\\\",\\\"@format\\\",\\\"@dashZero\\\",\\\"@showPositiveNegativeIndicator\\\"],[[30,1,[\\\"value\\\"]],[30,1,[\\\"format\\\"]],[30,1,[\\\"dashZero\\\"]],[30,1,[\\\"showPositiveNegativeIndicator\\\"]]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@route\\\",\\\"@models\\\"],[[30,1,[\\\"linkTo\\\",\\\"route\\\"]],[30,0,[\\\"linkToModels\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,3],null,[[\\\"@text\\\"],[[30,1,[\\\"tooltip\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[11,1],[16,0,[30,0,[\\\"className\\\"]]],[17,2],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"icon\\\"]],[[[1,\\\"            \\\"],[8,[39,5],null,[[\\\"@icon\\\"],[[30,1,[\\\"icon\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[8,[39,6],null,[[\\\"@value\\\",\\\"@format\\\",\\\"@dashZero\\\",\\\"@showPositiveNegativeIndicator\\\"],[[30,1,[\\\"value\\\"]],[30,1,[\\\"format\\\"]],[30,1,[\\\"dashZero\\\"]],[30,1,[\\\"showPositiveNegativeIndicator\\\"]]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[41,[30,1,[\\\"tooltip\\\"]],[[[1,\\\"  \\\"],[8,[39,3],null,[[\\\"@text\\\"],[[30,1,[\\\"tooltip\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[11,1],[16,0,[30,0,[\\\"className\\\"]]],[17,2],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"icon\\\"]],[[[1,\\\"        \\\"],[8,[39,5],null,[[\\\"@icon\\\"],[[30,1,[\\\"icon\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,6],null,[[\\\"@value\\\",\\\"@format\\\",\\\"@dashZero\\\",\\\"@showPositiveNegativeIndicator\\\"],[[30,1,[\\\"value\\\"]],[30,1,[\\\"format\\\"]],[30,1,[\\\"dashZero\\\"]],[30,1,[\\\"showPositiveNegativeIndicator\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,1,[\\\"linkTo\\\"]],[[[41,[30,1,[\\\"linkTo\\\",\\\"queryParams\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@route\\\",\\\"@models\\\",\\\"@query\\\"],[[30,1,[\\\"linkTo\\\",\\\"route\\\"]],[30,0,[\\\"linkToModels\\\"]],[30,1,[\\\"linkTo\\\",\\\"queryParams\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[11,1],[16,0,[30,0,[\\\"className\\\"]]],[17,2],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"icon\\\"]],[[[1,\\\"          \\\"],[8,[39,5],null,[[\\\"@icon\\\"],[[30,1,[\\\"icon\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[8,[39,6],null,[[\\\"@value\\\",\\\"@format\\\",\\\"@dashZero\\\",\\\"@showPositiveNegativeIndicator\\\"],[[30,1,[\\\"value\\\"]],[30,1,[\\\"format\\\"]],[30,1,[\\\"dashZero\\\"]],[30,1,[\\\"showPositiveNegativeIndicator\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@route\\\",\\\"@models\\\"],[[30,1,[\\\"linkTo\\\",\\\"route\\\"]],[30,0,[\\\"linkToModels\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[11,1],[16,0,[30,0,[\\\"className\\\"]]],[17,2],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"icon\\\"]],[[[1,\\\"          \\\"],[8,[39,5],null,[[\\\"@icon\\\"],[[30,1,[\\\"icon\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[8,[39,6],null,[[\\\"@value\\\",\\\"@format\\\",\\\"@dashZero\\\",\\\"@showPositiveNegativeIndicator\\\"],[[30,1,[\\\"value\\\"]],[30,1,[\\\"format\\\"]],[30,1,[\\\"dashZero\\\"]],[30,1,[\\\"showPositiveNegativeIndicator\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,7],[[30,1,[\\\"value\\\"]],[27]],null],[[[1,\\\"  \\\"],[11,1],[16,0,[30,0,[\\\"className\\\"]]],[17,2],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"icon\\\"]],[[[1,\\\"      \\\"],[8,[39,5],null,[[\\\"@icon\\\"],[[30,1,[\\\"icon\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[8,[39,6],null,[[\\\"@value\\\",\\\"@format\\\",\\\"@dashZero\\\",\\\"@showPositiveNegativeIndicator\\\"],[[30,1,[\\\"value\\\"]],[30,1,[\\\"format\\\"]],[30,1,[\\\"dashZero\\\"]],[30,1,[\\\"showPositiveNegativeIndicator\\\"]]]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[1,[30,0,[\\\"value\\\"]]],[1,\\\"\\\\n\\\"]],[]]]],[]]]],[]]]],[]]]],[\\\"@value\\\",\\\"&attrs\\\"],false,[\\\"if\\\",\\\"and\\\",\\\"link-to\\\",\\\"label-popup\\\",\\\"span\\\",\\\"fa-icon\\\",\\\"report-engine-element/value/value\\\",\\\"not-eq\\\"]]\",\n    \"moduleName\": \"portal/components/report-engine-element/value.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_dec = (0, _object.computed)('args.value.linkTo.models'), _dec2 = (0, _object.computed)('args.value.{value,upperLimit,lowerLimit}'), _class = class extends _component2.default {\n    get linkToModels() {\n      return this.args.value.linkTo?.models || [];\n    }\n    get className() {\n      const classes = [];\n      if (this.args.value.value && this.args.value.upperLimit != null && this.args.value.value > this.args.value.upperLimit) {\n        classes.push('text-danger');\n      }\n      if (this.args.value.value && this.args.value.lowerLimit != null && this.args.value.value < this.args.value.lowerLimit) {\n        classes.push('text-danger');\n      }\n      return classes.join(' ') || null;\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"linkToModels\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"linkToModels\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"className\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"className\"), _class.prototype), _class));\n});","define(\"portal/components/report-engine-element/value/value\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if (and @showPositiveNegativeIndicator this.value)}}\n    <FaIcon @icon={{if (gt @value 0) 'caret-up' 'caret-down'}} />\n  {{/if}}\n  {{#if (eq @format 'BOOLEAN')}}\n    <FaIcon @icon={{if this.value 'check' 'times'}} />\n  {{else if (eq @format 'CURRENCY')}}\n    {{number-format this.value style='currency' dashZero=@dashZero}}\n  {{else if (eq @format 'DURATION')}}\n    <FormatDurationWithUnit\n      @value={{this.value}}\n      @suffix={{' hrs'}}\n      @emptyPlaceholder='–'\n    />\n  {{else if (eq @format 'NUMBER')}}\n    {{number-format this.value maximumFractionDigits=2 dashZero=@dashZero}}\n  {{else if (eq @format 'PERCENTAGE')}}\n    {{number-format\n      this.value\n      style='percent'\n      dashZero=@dashZero\n      maximumFractionDigits=2\n      minimumFractionDigits=2\n    }}\n  {{else if (eq @format 'STRING')}}\n    {{#if\n      (or\n        (eq this.value 'Open')\n        (eq this.value 'Held')\n        (eq this.value 'Closed')\n        (eq this.value 'Archived')\n      )\n    }}\n      {{project-status-label this.value}}\n    {{else}}\n      {{#each this.stringParagraphs as |para|}}\n        {{para}}{{#if (and (gt this.stringParagraphs.length 1) (not @last))}}<br\n          />{{/if}}\n      {{/each}}\n    {{/if}}\n  {{else if (eq @format 'DATE')}}\n    {{moment-format this.value 'MMMM DD, YYYY h:mm:ss a'}}\n  {{else if (eq @format 'PG_DURATION')}}\n    {{this.formattedPgDuration}}\n  {{else if (eq @format 'FILE_URL_ARRAY')}}\n    {{! TODO this is WIP }}\n    {{! we need a attachment manager model to be opened from here }}\n    {{#each this.value as |url|}}\n      <img\n        role='button'\n        src={{url}}\n        style='width: 100%; height: 200px; object-fit: cover;'\n        {{on 'click' (fn this.openImgUrl url)}}\n      />\n    {{/each}}\n  {{/if}}\n  */\n  {\n    \"id\": \"EBToTicF\",\n    \"block\": \"[[[41,[28,[37,1],[[30,1],[30,0,[\\\"value\\\"]]],null],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@icon\\\"],[[52,[28,[37,3],[[30,2],0],null],\\\"caret-up\\\",\\\"caret-down\\\"]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,4],[[30,3],\\\"BOOLEAN\\\"],null],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"value\\\"]],\\\"check\\\",\\\"times\\\"]]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,4],[[30,3],\\\"CURRENCY\\\"],null],[[[1,\\\"  \\\"],[1,[28,[35,5],[[30,0,[\\\"value\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",[30,4]]]]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,4],[[30,3],\\\"DURATION\\\"],null],[[[1,\\\"  \\\"],[8,[39,6],null,[[\\\"@value\\\",\\\"@suffix\\\",\\\"@emptyPlaceholder\\\"],[[30,0,[\\\"value\\\"]],\\\" hrs\\\",\\\"–\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,4],[[30,3],\\\"NUMBER\\\"],null],[[[1,\\\"  \\\"],[1,[28,[35,5],[[30,0,[\\\"value\\\"]]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[2,[30,4]]]]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,4],[[30,3],\\\"PERCENTAGE\\\"],null],[[[1,\\\"  \\\"],[1,[28,[35,5],[[30,0,[\\\"value\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",[30,4],2,2]]]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,4],[[30,3],\\\"STRING\\\"],null],[[[41,[28,[37,7],[[28,[37,4],[[30,0,[\\\"value\\\"]],\\\"Open\\\"],null],[28,[37,4],[[30,0,[\\\"value\\\"]],\\\"Held\\\"],null],[28,[37,4],[[30,0,[\\\"value\\\"]],\\\"Closed\\\"],null],[28,[37,4],[[30,0,[\\\"value\\\"]],\\\"Archived\\\"],null]],null],[[[1,\\\"    \\\"],[1,[28,[35,8],[[30,0,[\\\"value\\\"]]],null]],[1,\\\"\\\\n\\\"]],[]],[[[42,[28,[37,10],[[28,[37,10],[[30,0,[\\\"stringParagraphs\\\"]]],null]],null],null,[[[1,\\\"      \\\"],[1,[30,5]],[41,[28,[37,1],[[28,[37,3],[[30,0,[\\\"stringParagraphs\\\",\\\"length\\\"]],1],null],[28,[37,11],[[30,6]],null]],null],[[[10,\\\"br\\\"],[12],[13]],[]],null],[1,\\\"\\\\n\\\"]],[5]],null]],[]]]],[]],[[[41,[28,[37,4],[[30,3],\\\"DATE\\\"],null],[[[1,\\\"  \\\"],[1,[28,[35,13],[[30,0,[\\\"value\\\"]],\\\"MMMM DD, YYYY h:mm:ss a\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,4],[[30,3],\\\"PG_DURATION\\\"],null],[[[1,\\\"  \\\"],[1,[30,0,[\\\"formattedPgDuration\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,4],[[30,3],\\\"FILE_URL_ARRAY\\\"],null],[[[42,[28,[37,10],[[28,[37,10],[[30,0,[\\\"value\\\"]]],null]],null],null,[[[1,\\\"    \\\"],[11,\\\"img\\\"],[24,\\\"role\\\",\\\"button\\\"],[16,\\\"src\\\",[30,7]],[24,5,\\\"width: 100%; height: 200px; object-fit: cover;\\\"],[4,[38,15],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"openImgUrl\\\"]],[30,7]],null]],null],[12],[13],[1,\\\"\\\\n\\\"]],[7]],null]],[]],null]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]]],[\\\"@showPositiveNegativeIndicator\\\",\\\"@value\\\",\\\"@format\\\",\\\"@dashZero\\\",\\\"para\\\",\\\"@last\\\",\\\"url\\\"],false,[\\\"if\\\",\\\"and\\\",\\\"fa-icon\\\",\\\"gt\\\",\\\"eq\\\",\\\"number-format\\\",\\\"format-duration-with-unit\\\",\\\"or\\\",\\\"project-status-label\\\",\\\"each\\\",\\\"-track-array\\\",\\\"not\\\",\\\"br\\\",\\\"moment-format\\\",\\\"img\\\",\\\"on\\\",\\\"fn\\\"]]\",\n    \"moduleName\": \"portal/components/report-engine-element/value/value.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_dec = (0, _object.computed)('args.{value,showPositiveNegativeIndicator}'), _dec2 = (0, _object.computed)('args.{format,value}'), _class = class extends _component2.default {\n    get value() {\n      // when the indicator is shown we don't need to show negative numbers\n      if (this.args.showPositiveNegativeIndicator) return Math.abs(this.args.value);\n      return this.args.value;\n    }\n    get formattedPgDuration() {\n      const {\n        value: duration\n      } = this.args;\n\n      // return null if the duration field is missing\n      if (!duration) return null;\n      const parts = [];\n\n      // append non-zero values to the parts array\n      if (duration.days) parts.push(`${duration.days}d`);\n      if (duration.hours) parts.push(`${duration.hours}h`);\n      if (duration.minutes) parts.push(`${duration.minutes}m`);\n      if (duration.seconds) parts.push(`${duration.seconds}s`);\n      return parts.join(' ') || '0s';\n    }\n    get stringParagraphs() {\n      if (this.args.format !== 'STRING') return undefined;\n\n      // new lines can't be rendered in html as \\n\n      return this.args.value.split('\\n');\n    }\n    openImgUrl(url) {\n      window.open(url, '_blank');\n    }\n    noop(e) {\n      e.preventDefault();\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"value\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"value\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"stringParagraphs\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"stringParagraphs\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openImgUrl\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openImgUrl\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"noop\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"noop\"), _class.prototype), _class));\n});","define(\"portal/components/report-exporter-pm\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\", \"moment\", \"portal/models/worker\", \"portal/models/task\", \"portal/config/environment\", \"ember-local-storage\", \"@ember/object/computed\", \"@ember/runloop\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _tracking, _object, _service, _moment, _worker, _task, _environment, _emberLocalStorage, _computed, _runloop, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"moment\",0,\"portal/models/worker\",0,\"portal/models/task\",0,\"portal/config/environment\",0,\"ember-local-storage\",0,\"@ember/object/computed\",0,\"@ember/runloop\",0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='pdf-export'>\n    <div class='pdf-export-options'>\n      <form class='grid-form box'>\n        <section class='box__section'>\n          <div class='box__section-desc'>\n            <h3>{{t 'shared.report-builder.Export options'}}</h3>\n            <p>\n              {{t\n                'shared.report-builder.chooseHowYouWouldLikeYourAttachmentsAndItemsHandled'\n              }}\n            </p>\n          </div>\n          <div class='box__section-content'>\n            <p>\n              <label>\n                {{t 'shared.report-builder.Include attachments with export'}}\n                <Input\n                  @type='checkbox'\n                  @checked={{this.includeAttachmentsOnExport}}\n                />\n              </label>\n            </p>\n            {{#if\n              (includes-feature-flags 'canManageTimesheets' 'canManageBills')\n            }}\n              <p>\n                <label>\n                  {{t\n                    'shared.report-builder.markSelectedItemsAsReportedOnExport'\n                  }}\n                  <Input\n                    @type='checkbox'\n                    @checked={{this.markReportedOnExport}}\n                  />\n                </label>\n              </p>\n            {{/if}}\n          </div>\n        </section>\n      </form>\n  \n      <form class='grid-form box'>\n        <section class='box__section'>\n          <div class='box__section-desc'>\n            <h3>{{t 'common.Logo'}}</h3>\n            <p>\n              {{t\n                'components.report-exporter-pm.jpegPngAndGifFilesAreSupportedMaxFileSizeIs5mb'\n              }}\n            </p>\n          </div>\n  \n          <div class='box__section-content'>\n            <label class='exporter__logo-uploader'>\n              {{#if this.options.companyLogoUrl}}\n                <img\n                  class='exporter__logo-preview'\n                  src={{this.options.companyLogoUrl}}\n                  alt='Company logo preview'\n                />\n              {{else}}\n                <div class='exporter__logo-placeholder'></div>\n              {{/if}}\n  \n              <input\n                type='file'\n                onchange={{action (perform this.updateLogo)}}\n                disabled={{this.updateLogo.isRunning}}\n                accept='.jpg, .jpeg, .png, .gif'\n              />\n            </label>\n  \n            {{#if this.options.companyLogoUrl}}\n              <button\n                class='button--spaced float-end'\n                type='submit'\n                {{on 'click' this.clearLogoSelection}}\n              >{{t 'common.Clear selection'}}</button>\n            {{/if}}\n  \n            {{#if\n              (or\n                this.setEntityDefaultLogo.isRunning\n                this.setJobOptionLogo.isRunning\n                (not-eq\n                  this.entityDefaultOptions.companyLogoUrl\n                  this.options.companyLogoUrl\n                )\n              )\n            }}\n              {{#if this.options.companyLogoUrl}}\n                <LoadingButton\n                  @class='float-end button--spaced'\n                  @isLoading={{this.setEntityDefaultLogo.isRunning}}\n                  @disabled={{this.setJobOptionLogo.isRunning}}\n                  @action={{perform\n                    this.setEntityDefaultLogo\n                    this.options.companyLogoUrl\n                  }}\n                  @buttonText={{t 'common.Make default'}}\n                />\n              {{/if}}\n              {{#if this.entityDefaultOptions.companyLogoUrl}}\n                <LoadingButton\n                  @class='float-end button--spaced'\n                  @isLoading={{this.setJobOptionLogo.isRunning}}\n                  @disabled={{this.setEntityDefaultLogo.isRunning}}\n                  @action={{perform\n                    this.setJobOptionLogo\n                    this.entityDefaultOptions.companyLogoUrl\n                  }}\n                  @buttonText={{t 'common.Use default'}}\n                />\n              {{/if}}\n            {{/if}}\n          </div>\n        </section>\n      </form>\n  \n      <form class='grid-form box'>\n        <section class='box__section'>\n          <div class='box__section-desc'>\n            <h3>{{t 'components.report-exporter-pm.Report text'}}</h3>\n            <p>\n              {{t\n                'components.report-exporter-pm.This text will appear on the report'\n              }}\n              <a\n                class='link'\n                target='_blank'\n                href='https://en.wikipedia.org/wiki/Markdown#Example'\n                rel='noopener noreferrer'\n              >{{t 'components.report-exporter-pm.Markdown'}}</a>\n              {{t 'components.report-exporter-pm.formatting is supported'}}\n            </p>\n          </div>\n  \n          <div class='box__section-content'>\n            <label class='exporter__label' for='name'><strong>{{t\n                  'common.Title'\n                }}</strong></label>\n            {{! template-lint-disable builtin-component-arguments }}\n            <Input\n              class='exporter__text-input'\n              type='text'\n              id='name'\n              @value={{this.options.title}}\n              {{on 'input' this.onChange}}\n            />\n  \n            <label class='exporter__label' for='introduction'><strong>{{t\n                  'common.Introduction'\n                }}</strong></label>\n            <Textarea\n              @value={{this.options.introduction}}\n              class='exporter__textarea'\n              id='introduction'\n              {{on 'input' this.onChange}}\n            />\n  \n            <label class='exporter__label' for='footnotes'><strong>{{t\n                  'common.Footnotes'\n                }}</strong></label>\n            <Textarea\n              @value={{this.options.footnotes}}\n              class='exporter__textarea'\n              id='footnotes'\n              {{on 'input' this.onChange}}\n            />\n          </div>\n        </section>\n      </form>\n  \n      <form class='grid-form box'>\n        <section class='box__section'>\n          <div class='box__section-desc'>\n            <h3>{{t 'components.report-exporter-pm.Section breakdowns'}}</h3>\n            <p>{{t\n                'components.report-exporter-pm.chooseHowMuchDetailShouldBeShownInTheQuote'\n              }}</p>\n          </div>\n  \n          <div class='box__section-content'>\n            <p><strong>{{t 'common.Materials'}}</strong></p>\n  \n            <label class='ember-radio-button'>\n              <input\n                type='radio'\n                name='materials-invoice-detail'\n                value='section'\n                checked={{eq this.options.materialsDetail 'section'}}\n                {{on 'change' (fn this.setOption 'materialsDetail')}}\n              />\n              <span>{{t 'components.report-exporter-pm.Total only'}}</span>\n            </label>\n            <label class='ember-radio-button'>\n              <input\n                type='radio'\n                name='materials-invoice-detail'\n                value='invoice'\n                checked={{eq this.options.materialsDetail 'invoice'}}\n                {{on 'change' (fn this.setOption 'materialsDetail')}}\n              />\n              <span>{{t 'common.Bill'}}</span>\n            </label>\n            <label class='ember-radio-button'>\n              <input\n                type='radio'\n                name='materials-invoice-detail'\n                value='item'\n                checked={{eq this.options.materialsDetail 'item'}}\n                {{on 'change' (fn this.setOption 'materialsDetail')}}\n              />\n              <span>{{t 'common.Bill items'}}</span>\n            </label>\n  \n            <p><strong>{{t 'common.Timesheets'}}</strong></p>\n  \n            <GroupingSelector\n              @groups={{this.timesheetGroupingOptions}}\n              @value={{this.options.projectTimesheetsDetail}}\n              @onChange={{pipe\n                (action (mut this.options.projectTimesheetsDetail))\n                (action (perform this.save))\n              }}\n              as |gs|\n            >\n              {{#each gs.axes as |axis i|}}\n                <label class='pdf-export-options__grouping-label'>\n                  {{#if (eq i 0)}}\n                    {{t 'shared.report-builder.First break down by'}}…\n                  {{else}}\n                    …{{t 'shared.report-builder.and then by'}}…\n                  {{/if}}\n                </label>\n  \n                <select\n                  class='pdf-export-options__grouping-control'\n                  {{on 'change' (action axis.update value='target.value')}}\n                >\n                  {{#each axis.options as |opt|}}\n                    <option\n                      value={{opt.key}}\n                      selected={{opt.isSelected}}\n                    >{{opt.name}}</option>\n                  {{/each}}\n                </select>\n                <br />\n              {{/each}}\n            </GroupingSelector>\n  \n            <p><strong>{{t 'shared.report-builder.Labour bills'}}</strong></p>\n  \n            <label class='ember-radio-button'>\n              <input\n                type='radio'\n                name='labour-invoice-detail'\n                value='section'\n                checked={{eq this.options.labourInvoicesDetail 'section'}}\n                {{on 'change' (fn this.setOption 'labourInvoicesDetail')}}\n              />\n              <span>{{t 'components.report-exporter-pm.Total only'}}</span>\n            </label>\n            <label class='ember-radio-button'>\n              <input\n                type='radio'\n                name='labour-invoice-detail'\n                value='invoice'\n                checked={{eq this.options.labourInvoicesDetail 'invoice'}}\n                {{on 'change' (fn this.setOption 'labourInvoicesDetail')}}\n              />\n              <span>{{t 'common.Bill'}}</span>\n            </label>\n            <label class='ember-radio-button'>\n              <input\n                type='radio'\n                name='labour-invoice-detail'\n                value='item'\n                checked={{eq this.options.labourInvoicesDetail 'item'}}\n                {{on 'change' (fn this.setOption 'labourInvoicesDetail')}}\n              />\n              <span>{{t 'common.Bill items'}}</span>\n            </label>\n  \n            <p><strong>{{t\n                  'shared.report-builder.Subcontractor bills'\n                }}</strong></p>\n  \n            <label class='ember-radio-button'>\n              <input\n                type='radio'\n                name='subcontractor-invoice-detail'\n                value='section'\n                checked={{eq this.options.subcontractorInvoicesDetail 'section'}}\n                {{on 'change' (fn this.setOption 'subcontractorInvoicesDetail')}}\n              />\n              <span>{{t 'components.report-exporter-pm.Total only'}}</span>\n            </label>\n            <label class='ember-radio-button'>\n              <input\n                type='radio'\n                name='subcontractor-invoice-detail'\n                value='invoice'\n                checked={{eq this.options.subcontractorInvoicesDetail 'invoice'}}\n                {{on 'change' (fn this.setOption 'subcontractorInvoicesDetail')}}\n              />\n              <span>{{t 'common.Bill'}}</span>\n            </label>\n            <label class='ember-radio-button'>\n              <input\n                type='radio'\n                name='subcontractor-invoice-detail'\n                value='item'\n                checked={{eq this.options.subcontractorInvoicesDetail 'item'}}\n                {{on 'change' (fn this.setOption 'subcontractorInvoicesDetail')}}\n              />\n              <span>{{t 'common.Bill items'}}</span>\n            </label>\n  \n            <p><strong>{{t\n                  'components.report-exporter-pm.marginMarkup'\n                }}</strong></p>\n  \n            <label class='ember-radio-button'>\n              <input\n                type='radio'\n                name='margin-type-detail'\n                value='total'\n                checked={{eq this.options.marginType 'total'}}\n                {{on 'change' (fn this.setOption 'marginType')}}\n              />\n              <span>{{t 'common.Total'}}</span>\n            </label>\n            <label class='ember-radio-button'>\n              <input\n                type='radio'\n                name='margin-type-detail'\n                value='pro-rata'\n                checked={{eq this.options.marginType 'pro-rata'}}\n                {{on 'change' (fn this.setOption 'marginType')}}\n              />\n              <span>{{t 'components.report-exporter-pm.Pro rata'}}</span>\n            </label>\n          </div>\n        </section>\n      </form>\n    </div>\n  \n    <div class='exporter__col box preview pdf-export-preview'>\n      <header class='preview__header'>\n        <div>\n          <h3 class='preview__h3'>\n            {{t 'common.Preview'}}\n            <span\n              class='exporter__status-label'\n              data-status={{if this.isLoading 'loading' 'live'}}\n            >{{t 'common.Live'}}</span>\n            {{#if this.isLoading}}\n              <svg\n                class='spinner subtle'\n                viewBox='0 0 100 100'\n                width='12'\n                height='12'\n              >\n                <circle cx='50' cy='50' r='42'></circle>\n              </svg>\n            {{/if}}\n          </h3>\n          <p class='preview__note'>{{t\n              'components.report-exporter-pm.layoutMayDifferSlightlyFromPDFVersion'\n            }}</p>\n        </div>\n      </header>\n  \n      <div class='pdf-wrapper'>\n        {{#let 12 as |fontSize|}}\n          {{! template-lint-disable no-forbidden-elements }}\n          <style>\n            table tfoot { display: table-row-group; } .pdf-wrapper { all: initial;\n            font:{{fontSize}}px/1.4 sans-serif; margin: 0; padding: 40pt;\n                                max-width: 595pt; overflow-y: auto; } .pdf-wrapper * { box-sizing:\n                                border-box; } .pdf-wrapper .metadata { display: flex; align-items:\n                                flex-start; } .pdf-wrapper .logo { margin-right: 2rem; max-width:\n                                100%; max-height: 90px; } .pdf-wrapper .addr { margin-left: 20px; }\n                                .pdf-wrapper section { margin-bottom: 2rem; } .pdf-wrapper h1 {\n                                font-size: 1.5rem; } .pdf-wrapper h2 { font-size: 1.1rem; break-after:\n                                avoid; } .pdf-wrapper table { width: 100%; border-collapse: collapse;\n                                font-variant-numeric: tabular-nums; } .pdf-wrapper th { text-align:\n                                left; font-size:{{fontSize}}px; } .pdf-wrapper td { border-top: 1px solid #ccc;\n                                border-bottom: 1px solid #ccc; word-break: break-word; font-size:{{fontSize}}px; } th, .pdf-wrapper td { padding: 0.5em 1em; }\n                                th:first-of-type, .pdf-wrapper td:first-of-type { padding-left: 0.5em;\n                                } th:last-of-type, .pdf-wrapper td:last-of-type { padding-right:\n                                0.5em; } .pdf-wrapper .r { text-align: right; } .pdf-wrapper .no-wrap\n                                { white-space: nowrap; } .pdf-wrapper th.num-col { width: 6rem; }\n                                .pdf-wrapper tfoot td { font-weight: bold; } .pdf-wrapper td.l2 {\n                                padding-left: 1.5em; } .pdf-wrapper td.l3 { padding-left: 3em; }\n                                .pdf-wrapper .note { color: #777; font-style: italic; } .pdf-wrapper\n                                @media print { .pdf-wrapper body { font-size: 10px; } }\n          </style>\n        {{/let}}\n        {{! Metadata }}\n        <header class='metadata'>\n  \n          {{! Logo }}\n          <div style='flex: 1;'>\n            {{#if this.options.companyLogoUrl}}\n              <p style='height: 90px;'><img\n                  class='logo'\n                  src='{{this.options.companyLogoUrl}}'\n                  alt='Company Logo'\n                /></p>\n            {{/if}}\n  \n            {{#if this.options.title}}\n              <p><h1>{{this.options.title}}</h1></p>\n            {{/if}}\n          </div>\n  \n          {{! Company Address and Date }}\n          <div class='addr'>\n            {{#if this.options.companyAddress}}\n              <p>\n                {{this.options.companyAddress}}\n              </p>\n  \n              <p>{{this.date}}</p>\n            {{else}}\n              <p class='r'>{{moment-format\n                  this.date\n                  (t 'date.longWithoutWeekday')\n                }}</p>\n            {{/if}}\n          </div>\n  \n        </header>\n  \n        {{! Introductory Text }}\n        {{#if this.options.introduction}}\n          <section>\n            <MarkdownToHtml\n              @simpleLineBreaks={{true}}\n              @markdown={{this.options.introduction}}\n            />\n          </section>\n        {{/if}}\n  \n        {{! Materials }}\n        {{#if (or @model.materialInvoices.length @model.manualMaterials)}}\n          <section>\n            <h2>Materials</h2>\n  \n            <table>\n              {{#unless (eq this.options.materialsDetail 'section')}}\n                <thead>\n                  <tr>\n                    <th>Invoice</th>\n                    <th>Issuer</th>\n                    <th>Issue Date</th>\n                    <th class='r num-col'>Price</th>\n                  </tr>\n                </thead>\n  \n                <tbody>\n                  {{#each @model.materialInvoices as |invoice|}}\n                    <tr>\n                      <td>{{invoice.invoice.billNumber}}</td>\n                      <td>{{invoice.invoice.issuer}}</td>\n                      <td>{{moment-format\n                          invoice.invoice.issueDate\n                          (t 'date.longWithoutWeekday')\n                        }}</td>\n                      <td class='r no-wrap'>\n                        {{#if (eq this.options.materialsDetail 'invoice')}}\n                          {{number-format\n                            (math\n                              invoice.selectedTotalPrice\n                              '*'\n                              this.proRataCoefMaterials\n                            )\n                            style='currency'\n                            dashZero=false\n                          }}\n                        {{/if}}\n                      </td>\n                    </tr>\n  \n                    {{#if (eq this.options.materialsDetail 'item')}}\n                      {{#each invoice.items as |item|}}\n                        {{#if item.selected}}\n                          <tr>\n                            <td colspan='3' style='text-indent: 1em;'>\n                              {{item.description}}\n                            </td>\n                            <td class='r num-col'>\n                              {{number-format\n                                (math\n                                  item.totalPrice '*' this.proRataCoefMaterials\n                                )\n                                style='currency'\n                                dashZero=true\n                              }}\n                            </td>\n                          </tr>\n                        {{/if}}\n                      {{/each}}\n                    {{/if}}\n                  {{/each}}\n  \n                  {{#each @model.manualMaterials as |invoice|}}\n                    <tr>\n                      <td colspan='3'>{{invoice.description}}</td>\n                      <td class='r no-wrap'>\n                        {{number-format\n                          (math invoice.total '*' this.proRataCoefMaterials)\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                    </tr>\n                  {{/each}}\n  \n                  {{#if\n                    (and\n                      (not this.useProRata) @model.computedTotals.invoice.margin\n                    )\n                  }}\n                    <tr>\n                      <td colspan='3'>Margin/markup</td>\n                      <td class='r no-wrap'>\n                        {{number-format\n                          @model.computedTotals.invoice.margin\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                    </tr>\n                  {{/if}}\n                </tbody>\n              {{/unless}}\n  \n              <tfoot>\n                <tr>\n                  <td colspan='3'>Total Materials</td>\n                  <td class='r no-wrap'>\n                    {{number-format\n                      @model.computedTotals.invoice.total\n                      style='currency'\n                      dashZero=true\n                    }}\n                  </td>\n                </tr>\n              </tfoot>\n            </table>\n          </section>\n        {{/if}}\n  \n        {{! Labour }}\n        {{#if\n          (or\n            @model.workers.length\n            @model.labourInvoices.length\n            @model.manualTimesheets.length\n          )\n        }}\n          <section>\n            <h2>Labour</h2>\n  \n            <table>\n              <thead>\n                <tr>\n                  <th></th>\n                  <th class='r num-col'>Man Hours</th>\n                  <th class='r num-col'>Rate</th>\n                  <th class='r num-col'>Total</th>\n                </tr>\n              </thead>\n  \n              <tbody>\n                {{#if this.groupedTimesheets.children}}\n                  {{#each this.groupedTimesheets.children as |group|}}\n                    <PdfExportTimesheetRow\n                      @coef={{this.proRataCoefLabour}}\n                      @group={{group}}\n                    />\n                  {{/each}}\n                {{else if this.groupedTimesheets.total}}\n                  <tr>\n                    <td>Timesheets</td>\n                    <td class='r no-wrap'>\n                      {{number-format\n                        this.groupedTimesheets.hours\n                        maximumFractionDigits=2\n                        dashZero=false\n                      }}\n                    </td>\n                    <td class='r no-wrap'></td>\n                    <td class='r no-wrap'>\n                      {{number-format\n                        (math\n                          this.groupedTimesheets.total '*' this.proRataCoefLabour\n                        )\n                        style='currency'\n                        dashZero=false\n                      }}\n                    </td>\n                  </tr>\n                {{/if}}\n  \n                {{#if\n                  (and\n                    (eq this.options.labourInvoicesDetail 'section')\n                    this.labourInvoicesTotal\n                  )\n                }}\n                  <tr>\n                    <td colspan='3'>{{t\n                        'shared.report-builder.Labour bills'\n                      }}</td>\n                    <td class='r num-col'>\n                      {{number-format\n                        this.labourInvoicesTotal\n                        style='currency'\n                        dashZero=false\n                      }}\n                    </td>\n                  </tr>\n                {{else}}\n                  {{#each @model.labourInvoices as |invoice|}}\n                    <tr>\n                      <td colspan='3'>Contractor: {{invoice.invoice.issuer}}</td>\n                      <td class='r num-col'>\n                        {{#if (eq this.options.labourInvoicesDetail 'invoice')}}\n                          {{number-format\n                            (math\n                              invoice.selectedTotalPrice\n                              '*'\n                              this.proRataCoefLabour\n                            )\n                            style='currency'\n                            dashZero=false\n                          }}\n                        {{/if}}\n                      </td>\n                    </tr>\n  \n                    {{#if (eq this.options.labourInvoicesDetail 'item')}}\n                      {{#each invoice.items as |item|}}\n                        {{#if item.selected}}\n                          <tr>\n                            <td\n                              colspan='3'\n                              style='text-indent: 1em;'\n                            >{{item.description}}</td>\n                            <td class='r num-col'>\n                              {{number-format\n                                (math item.totalPrice '*' this.proRataCoefLabour)\n                                style='currency'\n                                dashZero=false\n                              }}\n                            </td>\n                          </tr>\n                        {{/if}}\n                      {{/each}}\n                    {{/if}}\n                  {{/each}}\n                {{/if}}\n  \n                {{#each @model.manualTimesheets as |invoice|}}\n                  <tr>\n                    <td colspan='3'>{{invoice.description}}</td>\n                    <td class='r no-wrap'>\n                      {{number-format\n                        (math invoice.total '*' this.proRataCoefLabour)\n                        style='currency'\n                        dashZero=true\n                      }}\n                    </td>\n                  </tr>\n                {{/each}}\n  \n                {{#if\n                  (and\n                    (not this.useProRata) @model.computedTotals.timesheet.margin\n                  )\n                }}\n                  <tr>\n                    <td colspan='3'>Margin/markup</td>\n                    <td class='r no-wrap'>\n                      {{number-format\n                        @model.computedTotals.timesheet.margin\n                        style='currency'\n                        dashZero=true\n                      }}\n                    </td>\n                  </tr>\n                {{/if}}\n              </tbody>\n  \n              <tfoot>\n                <tr>\n                  <td>Total Labour</td>\n                  <td class='r no-wrap'>\n                    {{number-format\n                      this.groupedTimesheets.hours\n                      maximumFractionDigits=2\n                      dashZero=false\n                    }}\n                  </td>\n                  <td class='r no-wrap'></td>\n                  <td class='r no-wrap'>\n                    {{number-format\n                      @model.computedTotals.timesheet.total\n                      style='currency'\n                      dashZero=true\n                    }}\n                  </td>\n                </tr>\n              </tfoot>\n            </table>\n          </section>\n        {{/if}}\n  \n        {{! Subcontractors }}\n        {{#if (or @model.subcontractorInvoices @model.manualSubcontractors)}}\n          <section>\n            <h2>Subcontractors</h2>\n  \n            <table>\n              {{#unless (eq this.options.subcontractorInvoicesDetail 'section')}}\n                <thead>\n                  <tr>\n                    <th>Invoice Name</th>\n                    <th>Subcontractor</th>\n                    <th>Issue Date</th>\n                    <th class='r num-col'>Total</th>\n                  </tr>\n                </thead>\n  \n                <tbody>\n                  {{#each @model.subcontractorInvoices as |invoice|}}\n                    <tr>\n                      <td>{{invoice.invoice.billNumber}}</td>\n                      <td>{{invoice.invoice.issuer}}</td>\n                      <td>{{moment-format\n                          invoice.invoice.issueDate\n                          (t 'date.longWithoutWeekday')\n                        }}</td>\n                      <td class='r num-col'>\n                        {{#if\n                          (eq this.options.subcontractorInvoicesDetail 'invoice')\n                        }}\n                          {{number-format\n                            (math\n                              invoice.selectedTotalPrice\n                              '*'\n                              this.proRataCoefSubcontractors\n                            )\n                            style='currency'\n                            dashZero=false\n                          }}\n                        {{/if}}\n                      </td>\n                    </tr>\n  \n                    {{#if (eq this.options.subcontractorInvoicesDetail 'item')}}\n                      {{#each invoice.items as |item|}}\n                        {{#if item.selected}}\n                          <tr>\n                            <td\n                              colspan='3'\n                              style='text-indent: 1em;'\n                            >{{item.description}}</td>\n                            <td class='r num-col'>\n                              {{number-format\n                                (math\n                                  item.totalPrice\n                                  '*'\n                                  this.proRataCoefSubcontractors\n                                )\n                                style='currency'\n                                dashZero=false\n                              }}\n                            </td>\n                          </tr>\n                        {{/if}}\n                      {{/each}}\n                    {{/if}}\n                  {{/each}}\n  \n                  {{#each @model.manualSubcontractors as |invoice|}}\n                    <tr>\n                      <td colspan='3'>{{invoice.description}}</td>\n                      <td class='r no-wrap'>\n                        {{number-format\n                          (math invoice.total '*' this.proRataCoefSubcontractors)\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                    </tr>\n                  {{/each}}\n  \n                  {{#if\n                    (and\n                      (not this.useProRata)\n                      @model.computedTotals.subcontractor.margin\n                    )\n                  }}\n                    <tr>\n                      <td colspan='3'>Margin/markup</td>\n                      <td class='r no-wrap'>\n                        {{number-format\n                          @model.computedTotals.subcontractor.margin\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                    </tr>\n                  {{/if}}\n                </tbody>\n              {{/unless}}\n  \n              <tfoot>\n                <tr>\n                  <td colspan='3'>Total Subcontractor Bills</td>\n                  <td class='r no-wrap'>\n                    {{number-format\n                      @model.computedTotals.subcontractor.total\n                      style='currency'\n                      dashZero=false\n                    }}\n                  </td>\n                </tr>\n              </tfoot>\n            </table>\n          </section>\n        {{/if}}\n  \n        {{! Totals }}\n        <section>\n          <h2>Totals</h2>\n  \n          <table>\n            <tbody>\n              <tr>\n                <td>Total</td>\n                <td class='r no-wrap'>\n                  {{number-format\n                    @model.computedTotals.total.total\n                    style='currency'\n                    dashZero=true\n                  }}\n                </td>\n              </tr>\n            </tbody>\n          </table>\n        </section>\n  \n        {{! Footnotes }}\n        {{#if this.options.footnotes}}\n          <section>\n            <MarkdownToHtml\n              @simpleLineBreaks={{true}}\n              @markdown={{this.options.footnotes}}\n            />\n          </section>\n        {{/if}}\n      </div>\n    </div>\n  </div>\n  */\n  {\n    \"id\": \"kb222xFy\",\n    \"block\": \"[[[10,0],[14,0,\\\"pdf-export\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"pdf-export-options\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"form\\\"],[14,0,\\\"grid-form box\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"section\\\"],[14,0,\\\"box__section\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"box__section-desc\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h3\\\"],[12],[1,[28,[35,4],[\\\"shared.report-builder.Export options\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,2],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"shared.report-builder.chooseHowYouWouldLikeYourAttachmentsAndItemsHandled\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"box__section-content\\\"],[12],[1,\\\"\\\\n          \\\"],[10,2],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"shared.report-builder.Include attachments with export\\\"],null]],[1,\\\"\\\\n              \\\"],[8,[39,7],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"includeAttachmentsOnExport\\\"]]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,9],[\\\"canManageTimesheets\\\",\\\"canManageBills\\\"],null],[[[1,\\\"            \\\"],[10,2],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,4],[\\\"shared.report-builder.markSelectedItemsAsReportedOnExport\\\"],null]],[1,\\\"\\\\n                \\\"],[8,[39,7],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"markReportedOnExport\\\"]]]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"form\\\"],[14,0,\\\"grid-form box\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"section\\\"],[14,0,\\\"box__section\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"box__section-desc\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h3\\\"],[12],[1,[28,[35,4],[\\\"common.Logo\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,2],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"components.report-exporter-pm.jpegPngAndGifFilesAreSupportedMaxFileSizeIs5mb\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"box__section-content\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"exporter__logo-uploader\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"options\\\",\\\"companyLogoUrl\\\"]],[[[1,\\\"              \\\"],[10,\\\"img\\\"],[14,0,\\\"exporter__logo-preview\\\"],[15,\\\"src\\\",[30,0,[\\\"options\\\",\\\"companyLogoUrl\\\"]]],[14,\\\"alt\\\",\\\"Company logo preview\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"exporter__logo-placeholder\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n            \\\"],[10,\\\"input\\\"],[15,\\\"onchange\\\",[28,[37,11],[[30,0],[28,[37,12],[[30,0,[\\\"updateLogo\\\"]]],null]],null]],[15,\\\"disabled\\\",[30,0,[\\\"updateLogo\\\",\\\"isRunning\\\"]]],[14,\\\"accept\\\",\\\".jpg, .jpeg, .png, .gif\\\"],[14,4,\\\"file\\\"],[12],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"options\\\",\\\"companyLogoUrl\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"button--spaced float-end\\\"],[24,4,\\\"submit\\\"],[4,[38,14],[\\\"click\\\",[30,0,[\\\"clearLogoSelection\\\"]]],null],[12],[1,[28,[35,4],[\\\"common.Clear selection\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,15],[[30,0,[\\\"setEntityDefaultLogo\\\",\\\"isRunning\\\"]],[30,0,[\\\"setJobOptionLogo\\\",\\\"isRunning\\\"]],[28,[37,16],[[30,0,[\\\"entityDefaultOptions\\\",\\\"companyLogoUrl\\\"]],[30,0,[\\\"options\\\",\\\"companyLogoUrl\\\"]]],null]],null],[[[41,[30,0,[\\\"options\\\",\\\"companyLogoUrl\\\"]],[[[1,\\\"              \\\"],[8,[39,17],null,[[\\\"@class\\\",\\\"@isLoading\\\",\\\"@disabled\\\",\\\"@action\\\",\\\"@buttonText\\\"],[\\\"float-end button--spaced\\\",[30,0,[\\\"setEntityDefaultLogo\\\",\\\"isRunning\\\"]],[30,0,[\\\"setJobOptionLogo\\\",\\\"isRunning\\\"]],[28,[37,12],[[30,0,[\\\"setEntityDefaultLogo\\\"]],[30,0,[\\\"options\\\",\\\"companyLogoUrl\\\"]]],null],[28,[37,4],[\\\"common.Make default\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"entityDefaultOptions\\\",\\\"companyLogoUrl\\\"]],[[[1,\\\"              \\\"],[8,[39,17],null,[[\\\"@class\\\",\\\"@isLoading\\\",\\\"@disabled\\\",\\\"@action\\\",\\\"@buttonText\\\"],[\\\"float-end button--spaced\\\",[30,0,[\\\"setJobOptionLogo\\\",\\\"isRunning\\\"]],[30,0,[\\\"setEntityDefaultLogo\\\",\\\"isRunning\\\"]],[28,[37,12],[[30,0,[\\\"setJobOptionLogo\\\"]],[30,0,[\\\"entityDefaultOptions\\\",\\\"companyLogoUrl\\\"]]],null],[28,[37,4],[\\\"common.Use default\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"form\\\"],[14,0,\\\"grid-form box\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"section\\\"],[14,0,\\\"box__section\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"box__section-desc\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h3\\\"],[12],[1,[28,[35,4],[\\\"components.report-exporter-pm.Report text\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,2],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"components.report-exporter-pm.This text will appear on the report\\\"],null]],[1,\\\"\\\\n            \\\"],[10,3],[14,0,\\\"link\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,6,\\\"https://en.wikipedia.org/wiki/Markdown#Example\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[12],[1,[28,[35,4],[\\\"components.report-exporter-pm.Markdown\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"components.report-exporter-pm.formatting is supported\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"box__section-content\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"exporter__label\\\"],[14,\\\"for\\\",\\\"name\\\"],[12],[10,\\\"strong\\\"],[12],[1,[28,[35,4],[\\\"common.Title\\\"],null]],[13],[13],[1,\\\"\\\\n\\\"],[1,\\\"          \\\"],[8,[39,7],[[24,0,\\\"exporter__text-input\\\"],[24,1,\\\"name\\\"],[24,4,\\\"text\\\"],[4,[38,14],[\\\"input\\\",[30,0,[\\\"onChange\\\"]]],null]],[[\\\"@value\\\"],[[30,0,[\\\"options\\\",\\\"title\\\"]]]],null],[1,\\\"\\\\n\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"exporter__label\\\"],[14,\\\"for\\\",\\\"introduction\\\"],[12],[10,\\\"strong\\\"],[12],[1,[28,[35,4],[\\\"common.Introduction\\\"],null]],[13],[13],[1,\\\"\\\\n          \\\"],[8,[39,20],[[24,0,\\\"exporter__textarea\\\"],[24,1,\\\"introduction\\\"],[4,[38,14],[\\\"input\\\",[30,0,[\\\"onChange\\\"]]],null]],[[\\\"@value\\\"],[[30,0,[\\\"options\\\",\\\"introduction\\\"]]]],null],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"exporter__label\\\"],[14,\\\"for\\\",\\\"footnotes\\\"],[12],[10,\\\"strong\\\"],[12],[1,[28,[35,4],[\\\"common.Footnotes\\\"],null]],[13],[13],[1,\\\"\\\\n          \\\"],[8,[39,20],[[24,0,\\\"exporter__textarea\\\"],[24,1,\\\"footnotes\\\"],[4,[38,14],[\\\"input\\\",[30,0,[\\\"onChange\\\"]]],null]],[[\\\"@value\\\"],[[30,0,[\\\"options\\\",\\\"footnotes\\\"]]]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"form\\\"],[14,0,\\\"grid-form box\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"section\\\"],[14,0,\\\"box__section\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"box__section-desc\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h3\\\"],[12],[1,[28,[35,4],[\\\"components.report-exporter-pm.Section breakdowns\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,2],[12],[1,[28,[35,4],[\\\"components.report-exporter-pm.chooseHowMuchDetailShouldBeShownInTheQuote\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"box__section-content\\\"],[12],[1,\\\"\\\\n          \\\"],[10,2],[12],[10,\\\"strong\\\"],[12],[1,[28,[35,4],[\\\"common.Materials\\\"],null]],[13],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"ember-radio-button\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"input\\\"],[24,3,\\\"materials-invoice-detail\\\"],[24,2,\\\"section\\\"],[16,\\\"checked\\\",[28,[37,21],[[30,0,[\\\"options\\\",\\\"materialsDetail\\\"]],\\\"section\\\"],null]],[24,4,\\\"radio\\\"],[4,[38,14],[\\\"change\\\",[28,[37,22],[[30,0,[\\\"setOption\\\"]],\\\"materialsDetail\\\"],null]],null],[12],[13],[1,\\\"\\\\n            \\\"],[10,1],[12],[1,[28,[35,4],[\\\"components.report-exporter-pm.Total only\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"ember-radio-button\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"input\\\"],[24,3,\\\"materials-invoice-detail\\\"],[24,2,\\\"invoice\\\"],[16,\\\"checked\\\",[28,[37,21],[[30,0,[\\\"options\\\",\\\"materialsDetail\\\"]],\\\"invoice\\\"],null]],[24,4,\\\"radio\\\"],[4,[38,14],[\\\"change\\\",[28,[37,22],[[30,0,[\\\"setOption\\\"]],\\\"materialsDetail\\\"],null]],null],[12],[13],[1,\\\"\\\\n            \\\"],[10,1],[12],[1,[28,[35,4],[\\\"common.Bill\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"ember-radio-button\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"input\\\"],[24,3,\\\"materials-invoice-detail\\\"],[24,2,\\\"item\\\"],[16,\\\"checked\\\",[28,[37,21],[[30,0,[\\\"options\\\",\\\"materialsDetail\\\"]],\\\"item\\\"],null]],[24,4,\\\"radio\\\"],[4,[38,14],[\\\"change\\\",[28,[37,22],[[30,0,[\\\"setOption\\\"]],\\\"materialsDetail\\\"],null]],null],[12],[13],[1,\\\"\\\\n            \\\"],[10,1],[12],[1,[28,[35,4],[\\\"common.Bill items\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,2],[12],[10,\\\"strong\\\"],[12],[1,[28,[35,4],[\\\"common.Timesheets\\\"],null]],[13],[13],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,24],null,[[\\\"@groups\\\",\\\"@value\\\",\\\"@onChange\\\"],[[30,0,[\\\"timesheetGroupingOptions\\\"]],[30,0,[\\\"options\\\",\\\"projectTimesheetsDetail\\\"]],[28,[37,25],[[28,[37,11],[[30,0],[28,[37,26],[[30,0,[\\\"options\\\",\\\"projectTimesheetsDetail\\\"]]],null]],null],[28,[37,11],[[30,0],[28,[37,12],[[30,0,[\\\"save\\\"]]],null]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,28],[[28,[37,28],[[30,1,[\\\"axes\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,\\\"label\\\"],[14,0,\\\"pdf-export-options__grouping-label\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,21],[[30,3],0],null],[[[1,\\\"                  \\\"],[1,[28,[35,4],[\\\"shared.report-builder.First break down by\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                  …\\\"],[1,[28,[35,4],[\\\"shared.report-builder.and then by\\\"],null]],[1,\\\"…\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\\n              \\\"],[11,\\\"select\\\"],[24,0,\\\"pdf-export-options__grouping-control\\\"],[4,[38,14],[\\\"change\\\",[28,[37,11],[[30,0],[30,2,[\\\"update\\\"]]],[[\\\"value\\\"],[\\\"target.value\\\"]]]],null],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,28],[[28,[37,28],[[30,2,[\\\"options\\\"]]],null]],null],null,[[[1,\\\"                  \\\"],[10,\\\"option\\\"],[15,2,[30,4,[\\\"key\\\"]]],[15,\\\"selected\\\",[30,4,[\\\"isSelected\\\"]]],[12],[1,[30,4,[\\\"name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[2,3]],null],[1,\\\"          \\\"]],[1]]]]],[1,\\\"\\\\n\\\\n          \\\"],[10,2],[12],[10,\\\"strong\\\"],[12],[1,[28,[35,4],[\\\"shared.report-builder.Labour bills\\\"],null]],[13],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"ember-radio-button\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"input\\\"],[24,3,\\\"labour-invoice-detail\\\"],[24,2,\\\"section\\\"],[16,\\\"checked\\\",[28,[37,21],[[30,0,[\\\"options\\\",\\\"labourInvoicesDetail\\\"]],\\\"section\\\"],null]],[24,4,\\\"radio\\\"],[4,[38,14],[\\\"change\\\",[28,[37,22],[[30,0,[\\\"setOption\\\"]],\\\"labourInvoicesDetail\\\"],null]],null],[12],[13],[1,\\\"\\\\n            \\\"],[10,1],[12],[1,[28,[35,4],[\\\"components.report-exporter-pm.Total only\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"ember-radio-button\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"input\\\"],[24,3,\\\"labour-invoice-detail\\\"],[24,2,\\\"invoice\\\"],[16,\\\"checked\\\",[28,[37,21],[[30,0,[\\\"options\\\",\\\"labourInvoicesDetail\\\"]],\\\"invoice\\\"],null]],[24,4,\\\"radio\\\"],[4,[38,14],[\\\"change\\\",[28,[37,22],[[30,0,[\\\"setOption\\\"]],\\\"labourInvoicesDetail\\\"],null]],null],[12],[13],[1,\\\"\\\\n            \\\"],[10,1],[12],[1,[28,[35,4],[\\\"common.Bill\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"ember-radio-button\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"input\\\"],[24,3,\\\"labour-invoice-detail\\\"],[24,2,\\\"item\\\"],[16,\\\"checked\\\",[28,[37,21],[[30,0,[\\\"options\\\",\\\"labourInvoicesDetail\\\"]],\\\"item\\\"],null]],[24,4,\\\"radio\\\"],[4,[38,14],[\\\"change\\\",[28,[37,22],[[30,0,[\\\"setOption\\\"]],\\\"labourInvoicesDetail\\\"],null]],null],[12],[13],[1,\\\"\\\\n            \\\"],[10,1],[12],[1,[28,[35,4],[\\\"common.Bill items\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,2],[12],[10,\\\"strong\\\"],[12],[1,[28,[35,4],[\\\"shared.report-builder.Subcontractor bills\\\"],null]],[13],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"ember-radio-button\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"input\\\"],[24,3,\\\"subcontractor-invoice-detail\\\"],[24,2,\\\"section\\\"],[16,\\\"checked\\\",[28,[37,21],[[30,0,[\\\"options\\\",\\\"subcontractorInvoicesDetail\\\"]],\\\"section\\\"],null]],[24,4,\\\"radio\\\"],[4,[38,14],[\\\"change\\\",[28,[37,22],[[30,0,[\\\"setOption\\\"]],\\\"subcontractorInvoicesDetail\\\"],null]],null],[12],[13],[1,\\\"\\\\n            \\\"],[10,1],[12],[1,[28,[35,4],[\\\"components.report-exporter-pm.Total only\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"ember-radio-button\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"input\\\"],[24,3,\\\"subcontractor-invoice-detail\\\"],[24,2,\\\"invoice\\\"],[16,\\\"checked\\\",[28,[37,21],[[30,0,[\\\"options\\\",\\\"subcontractorInvoicesDetail\\\"]],\\\"invoice\\\"],null]],[24,4,\\\"radio\\\"],[4,[38,14],[\\\"change\\\",[28,[37,22],[[30,0,[\\\"setOption\\\"]],\\\"subcontractorInvoicesDetail\\\"],null]],null],[12],[13],[1,\\\"\\\\n            \\\"],[10,1],[12],[1,[28,[35,4],[\\\"common.Bill\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"ember-radio-button\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"input\\\"],[24,3,\\\"subcontractor-invoice-detail\\\"],[24,2,\\\"item\\\"],[16,\\\"checked\\\",[28,[37,21],[[30,0,[\\\"options\\\",\\\"subcontractorInvoicesDetail\\\"]],\\\"item\\\"],null]],[24,4,\\\"radio\\\"],[4,[38,14],[\\\"change\\\",[28,[37,22],[[30,0,[\\\"setOption\\\"]],\\\"subcontractorInvoicesDetail\\\"],null]],null],[12],[13],[1,\\\"\\\\n            \\\"],[10,1],[12],[1,[28,[35,4],[\\\"common.Bill items\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,2],[12],[10,\\\"strong\\\"],[12],[1,[28,[35,4],[\\\"components.report-exporter-pm.marginMarkup\\\"],null]],[13],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"ember-radio-button\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"input\\\"],[24,3,\\\"margin-type-detail\\\"],[24,2,\\\"total\\\"],[16,\\\"checked\\\",[28,[37,21],[[30,0,[\\\"options\\\",\\\"marginType\\\"]],\\\"total\\\"],null]],[24,4,\\\"radio\\\"],[4,[38,14],[\\\"change\\\",[28,[37,22],[[30,0,[\\\"setOption\\\"]],\\\"marginType\\\"],null]],null],[12],[13],[1,\\\"\\\\n            \\\"],[10,1],[12],[1,[28,[35,4],[\\\"common.Total\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"ember-radio-button\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"input\\\"],[24,3,\\\"margin-type-detail\\\"],[24,2,\\\"pro-rata\\\"],[16,\\\"checked\\\",[28,[37,21],[[30,0,[\\\"options\\\",\\\"marginType\\\"]],\\\"pro-rata\\\"],null]],[24,4,\\\"radio\\\"],[4,[38,14],[\\\"change\\\",[28,[37,22],[[30,0,[\\\"setOption\\\"]],\\\"marginType\\\"],null]],null],[12],[13],[1,\\\"\\\\n            \\\"],[10,1],[12],[1,[28,[35,4],[\\\"components.report-exporter-pm.Pro rata\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"exporter__col box preview pdf-export-preview\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"preview__header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"preview__h3\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Preview\\\"],null]],[1,\\\"\\\\n          \\\"],[10,1],[14,0,\\\"exporter__status-label\\\"],[15,\\\"data-status\\\",[52,[30,0,[\\\"isLoading\\\"]],\\\"loading\\\",\\\"live\\\"]],[12],[1,[28,[35,4],[\\\"common.Live\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"            \\\"],[10,\\\"svg\\\"],[14,0,\\\"spinner subtle\\\"],[14,\\\"viewBox\\\",\\\"0 0 100 100\\\"],[14,\\\"width\\\",\\\"12\\\"],[14,\\\"height\\\",\\\"12\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"circle\\\"],[14,\\\"cx\\\",\\\"50\\\"],[14,\\\"cy\\\",\\\"50\\\"],[14,\\\"r\\\",\\\"42\\\"],[12],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,2],[14,0,\\\"preview__note\\\"],[12],[1,[28,[35,4],[\\\"components.report-exporter-pm.layoutMayDifferSlightlyFromPDFVersion\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"pdf-wrapper\\\"],[12],[1,\\\"\\\\n\\\"],[44,[12],[[[1,\\\"        \\\"],[10,\\\"style\\\"],[12],[1,\\\"\\\\n          table tfoot { display: table-row-group; } .pdf-wrapper { all: initial;\\\\n          font:\\\"],[1,[30,5]],[1,\\\"px/1.4 sans-serif; margin: 0; padding: 40pt;\\\\n                              max-width: 595pt; overflow-y: auto; } .pdf-wrapper * { box-sizing:\\\\n                              border-box; } .pdf-wrapper .metadata { display: flex; align-items:\\\\n                              flex-start; } .pdf-wrapper .logo { margin-right: 2rem; max-width:\\\\n                              100%; max-height: 90px; } .pdf-wrapper .addr { margin-left: 20px; }\\\\n                              .pdf-wrapper section { margin-bottom: 2rem; } .pdf-wrapper h1 {\\\\n                              font-size: 1.5rem; } .pdf-wrapper h2 { font-size: 1.1rem; break-after:\\\\n                              avoid; } .pdf-wrapper table { width: 100%; border-collapse: collapse;\\\\n                              font-variant-numeric: tabular-nums; } .pdf-wrapper th { text-align:\\\\n                              left; font-size:\\\"],[1,[30,5]],[1,\\\"px; } .pdf-wrapper td { border-top: 1px solid #ccc;\\\\n                              border-bottom: 1px solid #ccc; word-break: break-word; font-size:\\\"],[1,[30,5]],[1,\\\"px; } th, .pdf-wrapper td { padding: 0.5em 1em; }\\\\n                              th:first-of-type, .pdf-wrapper td:first-of-type { padding-left: 0.5em;\\\\n                              } th:last-of-type, .pdf-wrapper td:last-of-type { padding-right:\\\\n                              0.5em; } .pdf-wrapper .r { text-align: right; } .pdf-wrapper .no-wrap\\\\n                              { white-space: nowrap; } .pdf-wrapper th.num-col { width: 6rem; }\\\\n                              .pdf-wrapper tfoot td { font-weight: bold; } .pdf-wrapper td.l2 {\\\\n                              padding-left: 1.5em; } .pdf-wrapper td.l3 { padding-left: 3em; }\\\\n                              .pdf-wrapper .note { color: #777; font-style: italic; } .pdf-wrapper\\\\n                              @media print { .pdf-wrapper body { font-size: 10px; } }\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[5]]],[1,\\\"      \\\"],[10,\\\"header\\\"],[14,0,\\\"metadata\\\"],[12],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"        \\\"],[10,0],[14,5,\\\"flex: 1;\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"options\\\",\\\"companyLogoUrl\\\"]],[[[1,\\\"            \\\"],[10,2],[14,5,\\\"height: 90px;\\\"],[12],[10,\\\"img\\\"],[14,0,\\\"logo\\\"],[15,\\\"src\\\",[29,[[30,0,[\\\"options\\\",\\\"companyLogoUrl\\\"]]]]],[14,\\\"alt\\\",\\\"Company Logo\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"options\\\",\\\"title\\\"]],[[[1,\\\"            \\\"],[10,2],[12],[10,\\\"h1\\\"],[12],[1,[30,0,[\\\"options\\\",\\\"title\\\"]]],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"        \\\"],[10,0],[14,0,\\\"addr\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"options\\\",\\\"companyAddress\\\"]],[[[1,\\\"            \\\"],[10,2],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"options\\\",\\\"companyAddress\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[10,2],[12],[1,[30,0,[\\\"date\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[10,2],[14,0,\\\"r\\\"],[12],[1,[28,[35,38],[[30,0,[\\\"date\\\"]],[28,[37,4],[\\\"date.longWithoutWeekday\\\"],null]],null]],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"options\\\",\\\"introduction\\\"]],[[[1,\\\"        \\\"],[10,\\\"section\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,39],null,[[\\\"@simpleLineBreaks\\\",\\\"@markdown\\\"],[true,[30,0,[\\\"options\\\",\\\"introduction\\\"]]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,15],[[30,6,[\\\"materialInvoices\\\",\\\"length\\\"]],[30,6,[\\\"manualMaterials\\\"]]],null],[[[1,\\\"        \\\"],[10,\\\"section\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h2\\\"],[12],[1,\\\"Materials\\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,\\\"table\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[28,[37,21],[[30,0,[\\\"options\\\",\\\"materialsDetail\\\"]],\\\"section\\\"],null]],[[[1,\\\"              \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"th\\\"],[12],[1,\\\"Invoice\\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"th\\\"],[12],[1,\\\"Issuer\\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"th\\\"],[12],[1,\\\"Issue Date\\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"th\\\"],[14,0,\\\"r num-col\\\"],[12],[1,\\\"Price\\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\\n              \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,28],[[28,[37,28],[[30,6,[\\\"materialInvoices\\\"]]],null]],null],null,[[[1,\\\"                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[1,[30,7,[\\\"invoice\\\",\\\"billNumber\\\"]]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[1,[30,7,[\\\"invoice\\\",\\\"issuer\\\"]]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,38],[[30,7,[\\\"invoice\\\",\\\"issueDate\\\"]],[28,[37,4],[\\\"date.longWithoutWeekday\\\"],null]],null]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"r no-wrap\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,21],[[30,0,[\\\"options\\\",\\\"materialsDetail\\\"]],\\\"invoice\\\"],null],[[[1,\\\"                        \\\"],[1,[28,[35,48],[[28,[37,49],[[30,7,[\\\"selectedTotalPrice\\\"]],\\\"*\\\",[30,0,[\\\"proRataCoefMaterials\\\"]]],null]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",false]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,21],[[30,0,[\\\"options\\\",\\\"materialsDetail\\\"]],\\\"item\\\"],null],[[[42,[28,[37,28],[[28,[37,28],[[30,7,[\\\"items\\\"]]],null]],null],null,[[[41,[30,8,[\\\"selected\\\"]],[[[1,\\\"                        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                          \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"3\\\"],[14,5,\\\"text-indent: 1em;\\\"],[12],[1,\\\"\\\\n                            \\\"],[1,[30,8,[\\\"description\\\"]]],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                          \\\"],[10,\\\"td\\\"],[14,0,\\\"r num-col\\\"],[12],[1,\\\"\\\\n                            \\\"],[1,[28,[35,48],[[28,[37,49],[[30,8,[\\\"totalPrice\\\"]],\\\"*\\\",[30,0,[\\\"proRataCoefMaterials\\\"]]],null]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[8]],null]],[]],null]],[7]],null],[1,\\\"\\\\n\\\"],[42,[28,[37,28],[[28,[37,28],[[30,6,[\\\"manualMaterials\\\"]]],null]],null],null,[[[1,\\\"                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"3\\\"],[12],[1,[30,9,[\\\"description\\\"]]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"r no-wrap\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,48],[[28,[37,49],[[30,9,[\\\"total\\\"]],\\\"*\\\",[30,0,[\\\"proRataCoefMaterials\\\"]]],null]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[9]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,50],[[28,[37,51],[[30,0,[\\\"useProRata\\\"]]],null],[30,6,[\\\"computedTotals\\\",\\\"invoice\\\",\\\"margin\\\"]]],null],[[[1,\\\"                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"3\\\"],[12],[1,\\\"Margin/markup\\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"r no-wrap\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,48],[[30,6,[\\\"computedTotals\\\",\\\"invoice\\\",\\\"margin\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n            \\\"],[10,\\\"tfoot\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"3\\\"],[12],[1,\\\"Total Materials\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"td\\\"],[14,0,\\\"r no-wrap\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,48],[[30,6,[\\\"computedTotals\\\",\\\"invoice\\\",\\\"total\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,15],[[30,6,[\\\"workers\\\",\\\"length\\\"]],[30,6,[\\\"labourInvoices\\\",\\\"length\\\"]],[30,6,[\\\"manualTimesheets\\\",\\\"length\\\"]]],null],[[[1,\\\"        \\\"],[10,\\\"section\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h2\\\"],[12],[1,\\\"Labour\\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,\\\"table\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"th\\\"],[12],[13],[1,\\\"\\\\n                \\\"],[10,\\\"th\\\"],[14,0,\\\"r num-col\\\"],[12],[1,\\\"Man Hours\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"th\\\"],[14,0,\\\"r num-col\\\"],[12],[1,\\\"Rate\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"th\\\"],[14,0,\\\"r num-col\\\"],[12],[1,\\\"Total\\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"groupedTimesheets\\\",\\\"children\\\"]],[[[42,[28,[37,28],[[28,[37,28],[[30,0,[\\\"groupedTimesheets\\\",\\\"children\\\"]]],null]],null],null,[[[1,\\\"                  \\\"],[8,[39,53],null,[[\\\"@coef\\\",\\\"@group\\\"],[[30,0,[\\\"proRataCoefLabour\\\"]],[30,10]]],null],[1,\\\"\\\\n\\\"]],[10]],null]],[]],[[[41,[30,0,[\\\"groupedTimesheets\\\",\\\"total\\\"]],[[[1,\\\"                \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"td\\\"],[12],[1,\\\"Timesheets\\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"td\\\"],[14,0,\\\"r no-wrap\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,48],[[30,0,[\\\"groupedTimesheets\\\",\\\"hours\\\"]]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[2,false]]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"td\\\"],[14,0,\\\"r no-wrap\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"td\\\"],[14,0,\\\"r no-wrap\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,48],[[28,[37,49],[[30,0,[\\\"groupedTimesheets\\\",\\\"total\\\"]],\\\"*\\\",[30,0,[\\\"proRataCoefLabour\\\"]]],null]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",false]]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"]],[]],null]],[]]],[1,\\\"\\\\n\\\"],[41,[28,[37,50],[[28,[37,21],[[30,0,[\\\"options\\\",\\\"labourInvoicesDetail\\\"]],\\\"section\\\"],null],[30,0,[\\\"labourInvoicesTotal\\\"]]],null],[[[1,\\\"                \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"3\\\"],[12],[1,[28,[35,4],[\\\"shared.report-builder.Labour bills\\\"],null]],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"td\\\"],[14,0,\\\"r num-col\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,48],[[30,0,[\\\"labourInvoicesTotal\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",false]]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[42,[28,[37,28],[[28,[37,28],[[30,6,[\\\"labourInvoices\\\"]]],null]],null],null,[[[1,\\\"                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"3\\\"],[12],[1,\\\"Contractor: \\\"],[1,[30,11,[\\\"invoice\\\",\\\"issuer\\\"]]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"r num-col\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,21],[[30,0,[\\\"options\\\",\\\"labourInvoicesDetail\\\"]],\\\"invoice\\\"],null],[[[1,\\\"                        \\\"],[1,[28,[35,48],[[28,[37,49],[[30,11,[\\\"selectedTotalPrice\\\"]],\\\"*\\\",[30,0,[\\\"proRataCoefLabour\\\"]]],null]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",false]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,21],[[30,0,[\\\"options\\\",\\\"labourInvoicesDetail\\\"]],\\\"item\\\"],null],[[[42,[28,[37,28],[[28,[37,28],[[30,11,[\\\"items\\\"]]],null]],null],null,[[[41,[30,12,[\\\"selected\\\"]],[[[1,\\\"                        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                          \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"3\\\"],[14,5,\\\"text-indent: 1em;\\\"],[12],[1,[30,12,[\\\"description\\\"]]],[13],[1,\\\"\\\\n                          \\\"],[10,\\\"td\\\"],[14,0,\\\"r num-col\\\"],[12],[1,\\\"\\\\n                            \\\"],[1,[28,[35,48],[[28,[37,49],[[30,12,[\\\"totalPrice\\\"]],\\\"*\\\",[30,0,[\\\"proRataCoefLabour\\\"]]],null]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",false]]]],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[12]],null]],[]],null]],[11]],null]],[]]],[1,\\\"\\\\n\\\"],[42,[28,[37,28],[[28,[37,28],[[30,6,[\\\"manualTimesheets\\\"]]],null]],null],null,[[[1,\\\"                \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"3\\\"],[12],[1,[30,13,[\\\"description\\\"]]],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"td\\\"],[14,0,\\\"r no-wrap\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,48],[[28,[37,49],[[30,13,[\\\"total\\\"]],\\\"*\\\",[30,0,[\\\"proRataCoefLabour\\\"]]],null]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[13]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,50],[[28,[37,51],[[30,0,[\\\"useProRata\\\"]]],null],[30,6,[\\\"computedTotals\\\",\\\"timesheet\\\",\\\"margin\\\"]]],null],[[[1,\\\"                \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"3\\\"],[12],[1,\\\"Margin/markup\\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"td\\\"],[14,0,\\\"r no-wrap\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,48],[[30,6,[\\\"computedTotals\\\",\\\"timesheet\\\",\\\"margin\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[10,\\\"tfoot\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"td\\\"],[12],[1,\\\"Total Labour\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"td\\\"],[14,0,\\\"r no-wrap\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,48],[[30,0,[\\\"groupedTimesheets\\\",\\\"hours\\\"]]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[2,false]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"td\\\"],[14,0,\\\"r no-wrap\\\"],[12],[13],[1,\\\"\\\\n                \\\"],[10,\\\"td\\\"],[14,0,\\\"r no-wrap\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,48],[[30,6,[\\\"computedTotals\\\",\\\"timesheet\\\",\\\"total\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,15],[[30,6,[\\\"subcontractorInvoices\\\"]],[30,6,[\\\"manualSubcontractors\\\"]]],null],[[[1,\\\"        \\\"],[10,\\\"section\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h2\\\"],[12],[1,\\\"Subcontractors\\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,\\\"table\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[28,[37,21],[[30,0,[\\\"options\\\",\\\"subcontractorInvoicesDetail\\\"]],\\\"section\\\"],null]],[[[1,\\\"              \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"th\\\"],[12],[1,\\\"Invoice Name\\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"th\\\"],[12],[1,\\\"Subcontractor\\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"th\\\"],[12],[1,\\\"Issue Date\\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"th\\\"],[14,0,\\\"r num-col\\\"],[12],[1,\\\"Total\\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\\n              \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,28],[[28,[37,28],[[30,6,[\\\"subcontractorInvoices\\\"]]],null]],null],null,[[[1,\\\"                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[1,[30,14,[\\\"invoice\\\",\\\"billNumber\\\"]]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[1,[30,14,[\\\"invoice\\\",\\\"issuer\\\"]]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,38],[[30,14,[\\\"invoice\\\",\\\"issueDate\\\"]],[28,[37,4],[\\\"date.longWithoutWeekday\\\"],null]],null]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"r num-col\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,21],[[30,0,[\\\"options\\\",\\\"subcontractorInvoicesDetail\\\"]],\\\"invoice\\\"],null],[[[1,\\\"                        \\\"],[1,[28,[35,48],[[28,[37,49],[[30,14,[\\\"selectedTotalPrice\\\"]],\\\"*\\\",[30,0,[\\\"proRataCoefSubcontractors\\\"]]],null]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",false]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,21],[[30,0,[\\\"options\\\",\\\"subcontractorInvoicesDetail\\\"]],\\\"item\\\"],null],[[[42,[28,[37,28],[[28,[37,28],[[30,14,[\\\"items\\\"]]],null]],null],null,[[[41,[30,15,[\\\"selected\\\"]],[[[1,\\\"                        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                          \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"3\\\"],[14,5,\\\"text-indent: 1em;\\\"],[12],[1,[30,15,[\\\"description\\\"]]],[13],[1,\\\"\\\\n                          \\\"],[10,\\\"td\\\"],[14,0,\\\"r num-col\\\"],[12],[1,\\\"\\\\n                            \\\"],[1,[28,[35,48],[[28,[37,49],[[30,15,[\\\"totalPrice\\\"]],\\\"*\\\",[30,0,[\\\"proRataCoefSubcontractors\\\"]]],null]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",false]]]],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[15]],null]],[]],null]],[14]],null],[1,\\\"\\\\n\\\"],[42,[28,[37,28],[[28,[37,28],[[30,6,[\\\"manualSubcontractors\\\"]]],null]],null],null,[[[1,\\\"                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"3\\\"],[12],[1,[30,16,[\\\"description\\\"]]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"r no-wrap\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,48],[[28,[37,49],[[30,16,[\\\"total\\\"]],\\\"*\\\",[30,0,[\\\"proRataCoefSubcontractors\\\"]]],null]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[16]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,50],[[28,[37,51],[[30,0,[\\\"useProRata\\\"]]],null],[30,6,[\\\"computedTotals\\\",\\\"subcontractor\\\",\\\"margin\\\"]]],null],[[[1,\\\"                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"3\\\"],[12],[1,\\\"Margin/markup\\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"r no-wrap\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,48],[[30,6,[\\\"computedTotals\\\",\\\"subcontractor\\\",\\\"margin\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n            \\\"],[10,\\\"tfoot\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"3\\\"],[12],[1,\\\"Total Subcontractor Bills\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"td\\\"],[14,0,\\\"r no-wrap\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,48],[[30,6,[\\\"computedTotals\\\",\\\"subcontractor\\\",\\\"total\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",false]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[1,\\\"      \\\"],[10,\\\"section\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h2\\\"],[12],[1,\\\"Totals\\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"table\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,\\\"Total\\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[14,0,\\\"r no-wrap\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,48],[[30,6,[\\\"computedTotals\\\",\\\"total\\\",\\\"total\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"options\\\",\\\"footnotes\\\"]],[[[1,\\\"        \\\"],[10,\\\"section\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,39],null,[[\\\"@simpleLineBreaks\\\",\\\"@markdown\\\"],[true,[30,0,[\\\"options\\\",\\\"footnotes\\\"]]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"gs\\\",\\\"axis\\\",\\\"i\\\",\\\"opt\\\",\\\"fontSize\\\",\\\"@model\\\",\\\"invoice\\\",\\\"item\\\",\\\"invoice\\\",\\\"group\\\",\\\"invoice\\\",\\\"item\\\",\\\"invoice\\\",\\\"invoice\\\",\\\"item\\\",\\\"invoice\\\"],false,[\\\"div\\\",\\\"form\\\",\\\"section\\\",\\\"h3\\\",\\\"t\\\",\\\"p\\\",\\\"label\\\",\\\"input\\\",\\\"if\\\",\\\"includes-feature-flags\\\",\\\"img\\\",\\\"action\\\",\\\"perform\\\",\\\"button\\\",\\\"on\\\",\\\"or\\\",\\\"not-eq\\\",\\\"loading-button\\\",\\\"a\\\",\\\"strong\\\",\\\"textarea\\\",\\\"eq\\\",\\\"fn\\\",\\\"span\\\",\\\"grouping-selector\\\",\\\"pipe\\\",\\\"mut\\\",\\\"each\\\",\\\"-track-array\\\",\\\"select\\\",\\\"option\\\",\\\"br\\\",\\\"header\\\",\\\"svg\\\",\\\"circle\\\",\\\"let\\\",\\\"style\\\",\\\"h1\\\",\\\"moment-format\\\",\\\"markdown-to-html\\\",\\\"h2\\\",\\\"table\\\",\\\"unless\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"tbody\\\",\\\"td\\\",\\\"number-format\\\",\\\"math\\\",\\\"and\\\",\\\"not\\\",\\\"tfoot\\\",\\\"pdf-export-timesheet-row\\\"]]\",\n    \"moduleName\": \"portal/components/report-exporter-pm.hbs\",\n    \"isStrictMode\": false\n  });\n  const MAX_FILE_SIZE = 1024 * 1024 * 5; // 5 MB\n  const ALLOWED_MIME_TYPES = ['image/png', 'image/jpeg', 'image/gif'];\n\n  /*\n  \n  If there's no grouping needed:\n  \n  {\n    attr: null,\n    hours: number,\n    total: number\n  }\n  \n  If there's one level of grouping needed:\n  \n  {\n    attr: null,\n    label: null,\n    hours: number,\n    total: number,\n    children: [{\n      attr: 'worker',\n      label: string\n      hours: number,\n      total: number\n    }]\n  }\n  \n  */\n  class TimesheetGroup {\n    constructor(children, intl, groupingAttr = null, groupingValue = null) {\n      _defineProperty(this, \"intl\", void 0);\n      this.intl = intl;\n      const isLeafNode = !(children[0] instanceof TimesheetGroup);\n      if (!isLeafNode) {\n        this.children = children;\n      }\n      this.hours = children.reduce((t, child) => t + child.hours, 0);\n      this.total = children.reduce((t, child) => t + child.total, 0);\n      this.rate = this.total / this.hours || 0;\n      this.attr = groupingAttr;\n      const labelKey = groupingValue instanceof _worker.default ? 'fullName' : 'name';\n      if (groupingValue !== null) {\n        this.label = this.attr === 'day' ? (0, _moment.default)(groupingValue).format(this.intl.t('date.slashDayFirst')) : (0, _object.get)(groupingValue, labelKey);\n        this.sortIndex = getSortIndex(groupingValue);\n      }\n    }\n\n    // Special case for root to ensure we always get a wrapping TimesheetGroup, even if there's no grouping required\n    static createGrouping(timesheets, attrs, intl) {\n      const children = attrs.length > 0 ? TimesheetGroup.sortTimesheetGroup(TimesheetGroup.createNonRootGrouping(timesheets, attrs, intl)) : timesheets;\n      return new TimesheetGroup(children, intl);\n    }\n    static sortTimesheetGroup(list) {\n      return list.sort(({\n        sortIndex: a\n      }, {\n        sortIndex: b\n      }) => {\n        if (typeof a === 'string' && typeof b === 'string') return a.localeCompare(b);\n        if (typeof a === 'number' && typeof b === 'number' || a) return a - b;\n        return 0;\n      });\n    }\n    static createNonRootGrouping(timesheets, attrs, intl) {\n      if (attrs.length === 0) return timesheets;\n      const [attr, ...remainingAttrs] = attrs;\n      const timesheetsKeyedByAttr = {};\n\n      // if the value is an object get the id otherwise return the value\n      const serialize = value => value && typeof value === 'object' ? (0, _object.get)(value, 'id') : value;\n      for (const ts of timesheets) {\n        if (!(attr in ts) || ts[attr] == null) {\n          console.warn(`Cannot serialise property '${attr}' on timesheet object`, ts);\n          continue;\n        }\n        const key = serialize(ts[attr]);\n        const existingForKey = timesheetsKeyedByAttr[key] ?? [];\n        timesheetsKeyedByAttr[key] = [...existingForKey, ts];\n      }\n      return Object.values(timesheetsKeyedByAttr).map(tsGroup => {\n        const children = remainingAttrs.length > 0 ? TimesheetGroup.createNonRootGrouping(tsGroup, remainingAttrs, intl) : tsGroup.map(ts => ({\n          ...ts,\n          sortIndex: getSortIndex(ts[attr])\n        }));\n        const sortedChildren = TimesheetGroup.sortTimesheetGroup(children);\n        return new TimesheetGroup(sortedChildren, intl, attr, tsGroup[0][attr]);\n      });\n    }\n  }\n  let ReportExporterComponent = _exports.default = (_dec = (0, _emberLocalStorage.storageFor)('settings'), _dec2 = (0, _computed.alias)('persistedSettings.reportBuilder:markReportedOnExport'), _dec3 = (0, _computed.alias)('persistedSettings.reportBuilder:includeAttachmentsOnExport'), _dec4 = (0, _object.computed)('options.marginType'), _dec5 = (0, _object.computed)('args.model', 'hours', 'model.workers', 'rate'), _dec6 = (0, _object.computed)('intl', 'normalisedTimesheets', 'options.projectTimesheetsDetail'), _class = class ReportExporterComponent extends _component2.default {\n    get useProRata() {\n      return this.options?.marginType === 'pro-rata';\n    }\n    get proRataCoefMaterials() {\n      if (!this.useProRata) return 1;\n      return 1 + (this.args.model.computedTotals.invoice.markupPercent || 0);\n    }\n    get proRataCoefLabour() {\n      if (!this.useProRata) return 1;\n      return 1 + (this.args.model.computedTotals.timesheet.markupPercent || 0);\n    }\n    get proRataCoefSubcontractors() {\n      if (!this.useProRata) return 1;\n      return 1 + (this.args.model.computedTotals.subcontractor.markupPercent || 0);\n    }\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"session\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _initializerDefineProperty(this, \"persistedSettings\", _descriptor6, this);\n      _initializerDefineProperty(this, \"markReportedOnExport\", _descriptor7, this);\n      _initializerDefineProperty(this, \"includeAttachmentsOnExport\", _descriptor8, this);\n      _defineProperty(this, \"date\", new Date());\n      _defineProperty(this, \"timesheetGroupingOptions\", [{\n        key: 'day',\n        name: this.intl.t('common.Day')\n      }, {\n        key: 'worker',\n        name: this.intl.t('common.Worker')\n      }, {\n        key: 'task',\n        name: this.intl.t('common.Task')\n      }]);\n      _initializerDefineProperty(this, \"optionsRecord\", _descriptor9, this);\n      _initializerDefineProperty(this, \"options\", _descriptor0, this);\n      _initializerDefineProperty(this, \"entityDefaultOptions\", _descriptor1, this);\n      _defineProperty(this, \"loadOptions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const entity = this.sessionData.entity;\n          const entityId = (0, _object.get)(entity, 'id');\n          const {\n            projectId\n          } = this.args.model;\n          const project = this.store.peekRecord('project', projectId);\n          const [projectOptions, entityDefaultOptions] = yield Promise.all([this.store.simpleQuery('report-export-option', {\n            isEntityDefault: false,\n            entity: entityId,\n            project: projectId\n          }).then(r => r.objectAt(0)), this.store.simpleQuery('report-export-option', {\n            isEntityDefault: true,\n            entity: entityId\n          }).then(r => r.objectAt(0))]);\n          this.entityDefaultOptions = entityDefaultOptions || this.store.createRecord('report-export-option', {\n            entity,\n            isEntityDefault: true\n          });\n          this.optionsRecord = projectOptions || this.store.createRecord('report-export-option', {\n            companyLogoUrl: this.entityDefaultOptions.companyLogoUrl,\n            title: this.entityDefaultOptions.title,\n            introduction: this.entityDefaultOptions.introduction,\n            footnotes: this.entityDefaultOptions.footnotes,\n            materialsDetail: this.entityDefaultOptions.materialsDetail,\n            projectTimesheetsDetail: this.entityDefaultOptions.projectTimesheetsDetail,\n            labourInvoicesDetail: this.entityDefaultOptions.labourInvoicesDetail,\n            subcontractorInvoicesDetail: this.entityDefaultOptions.subcontractorInvoicesDetail,\n            marginType: this.entityDefaultOptions.marginType,\n            entity,\n            project,\n            isEntityDefault: false\n          });\n          (0, _object.set)(this, 'options', {\n            isEntityDefault: this.optionsRecord.isEntityDefault,\n            companyLogoUrl: this.optionsRecord.companyLogoUrl,\n            title: this.optionsRecord.title,\n            introduction: this.optionsRecord.introduction,\n            footnotes: this.optionsRecord.footnotes,\n            materialsDetail: this.optionsRecord.materialsDetail,\n            projectTimesheetsDetail: this.optionsRecord.projectTimesheetsDetail,\n            labourInvoicesDetail: this.optionsRecord.labourInvoicesDetail,\n            subcontractorInvoicesDetail: this.optionsRecord.subcontractorInvoicesDetail,\n            marginType: this.optionsRecord.marginType\n          });\n        }\n      }), null, \"loadOptions\", null));\n      _defineProperty(this, \"setEntityDefaultLogo\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (url) {\n          try {\n            this.entityDefaultOptions.companyLogoUrl = url;\n            yield this.entityDefaultOptions.save();\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('components.report-exporter-pm.somethingWentWrongSettingTheDefaultLogo'),\n              error\n            });\n            return;\n          }\n        }\n      }), null, \"setEntityDefaultLogo\", null));\n      _defineProperty(this, \"setJobOptionLogo\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (url) {\n          try {\n            (0, _object.set)(this.options, 'companyLogoUrl', url);\n            yield this.save.perform();\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('components.report-exporter-pm.Something went wrong setting the logo'),\n              error\n            });\n            return;\n          }\n        }\n      }), null, \"setJobOptionLogo\", null));\n      _defineProperty(this, \"updateLogo\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (event) {\n          try {\n            const [file] = event.target.files;\n            if (!file) return;\n            if (!ALLOWED_MIME_TYPES.includes(file.type)) {\n              this.notifications.info(this.intl.t('components.report-exporter-pm.theSelectedLogoFileHasAnInvalidFormatCommonImageFormatsSuchAsJpegPngAndGifAreAccepted'));\n              return;\n            }\n            if (file.size > MAX_FILE_SIZE) {\n              this.notifications.info(this.intl.t('components.report-exporter-pm.theSelectedLogoFileIsXWhichExceedsTheLimitOfYPleaseSelectASmallerFile', {\n                size: this.formatBytes(file.size),\n                maxSize: this.formatBytes(MAX_FILE_SIZE)\n              }));\n              return;\n            }\n            const logoUrl = yield this.uploadLogo(file);\n            (0, _object.set)(this.options, 'companyLogoUrl', logoUrl);\n            yield this.save.perform();\n          } catch (error) {\n            this.notifications.error({\n              error\n            });\n            return;\n          } finally {\n            event.target.value = '';\n          }\n        }\n      }), null, \"updateLogo\", null));\n      _defineProperty(this, \"save\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          for (const key in this.options) {\n            (0, _object.set)(this.optionsRecord, key, this.options[key] != null ? this.options[key] : null);\n          }\n          yield this.optionsRecord.save();\n        }\n      }), {\n        keepLatest: true\n      }, \"save\", null));\n      this.loadOptions.perform();\n    }\n    async uploadLogo(file) {\n      const formData = new FormData();\n      formData.append('logo', file);\n      formData.append('entity', this.sessionData.entity.id);\n      formData.append('job', this.args.model.projectId);\n      const options = {\n        method: 'POST',\n        body: formData,\n        headers: {\n          Authorization: `Bearer ${this.session.data.authenticated.access_token}`\n        }\n      };\n      const response = await fetch(`${_environment.default.urls.api}${_environment.default.urls.apiV1Path}/uploads/job-report-logos`, options).then(res => res.json());\n      if (!response.success) throw new Error(response.message);\n      if (!response.logoUrl) throw new Error('Could not find file name');\n      return response.logoUrl;\n    }\n    get normalisedTimesheets() {\n      const {\n        workers = [],\n        useChargeOutRates\n      } = this.args.model;\n      const timesheets = [];\n      for (const worker of workers) {\n        const timesheetsForWorker = [];\n        for (const ts of worker.selectedTimesheets) {\n          const day = (0, _moment.default)(ts.date).startOf('day').valueOf();\n          const rate = useChargeOutRates ? worker.currentChargeOutRate ?? ts.chargeOutRate : ts.costRate;\n          const existingEntry = timesheetsForWorker.find(existing => existing.day === day && existing.task.get('id') === ts.task.get('id') && existing.rate === rate);\n          if (existingEntry) {\n            existingEntry.hours += ts.hours;\n          } else {\n            timesheetsForWorker.push({\n              worker: worker.worker,\n              day,\n              task: ts.task,\n              hours: ts.hours,\n              rate,\n              get total() {\n                return this.hours * this.rate;\n              }\n            });\n          }\n        }\n        timesheets.push(...timesheetsForWorker);\n      }\n      return timesheets;\n    }\n    get groupedTimesheets() {\n      if (!this.options?.projectTimesheetsDetail) return null;\n      return TimesheetGroup.createGrouping(this.normalisedTimesheets, this.options.projectTimesheetsDetail, this.intl);\n    }\n    get labourInvoicesTotal() {\n      return (this.args.model.labourInvoices || []).reduce((total, inv) => total + inv.selectedTotalPrice, 0) * this.proRataCoefLabour;\n    }\n    clearLogoSelection() {\n      (0, _object.set)(this, 'options.companyLogoUrl', null);\n      this.save.perform();\n    }\n    setOption(option, event) {\n      const value = event.target.value;\n      (0, _object.set)(this, `options.${option}`, value);\n      this.save.perform();\n    }\n    onChange(event) {\n      (0, _runloop.next)(() => {\n        if (event && event.target.value.trim().length === event.target.value.length) this.save.perform();\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"persistedSettings\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"markReportedOnExport\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"includeAttachmentsOnExport\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"optionsRecord\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"options\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"entityDefaultOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"useProRata\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"useProRata\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"normalisedTimesheets\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"normalisedTimesheets\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"groupedTimesheets\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"groupedTimesheets\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"clearLogoSelection\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"clearLogoSelection\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setOption\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setOption\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onChange\"), _class.prototype), _class);\n  function getSortIndex(value) {\n    if (typeof value === 'number') return value;\n    if (value instanceof _worker.default) return (0, _object.get)(value, 'fullName');\n    if (value instanceof _task.default) return (0, _object.get)(value, 'path');\n    return undefined;\n  }\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, ReportExporterComponent);\n});","define(\"portal/components/resource-history\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/service\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _tracking, _service, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div {{did-update this.onArgsChange @resourceId @resourceType}}>\n    <PaginationTable\n      @tableHeader={{this.historyEventsTableHeader}}\n      @tableData={{this.historyEventsTableContent}}\n      @noDataText={{t 'components.resource-history.No history yet'}}\n      @pageSizes={{this.pageSizes}}\n      @pageSize={{this.pageSize}}\n      @pageIndex={{this.pageIndex}}\n      @onChangePageIndex={{this.onChangePageIndex}}\n      @onChangePageSize={{this.onChangePageSize}}\n      @isLoading={{this.getEvents.isRunning}}\n      @hasNextPage={{this.hasNextEventPage}}\n      @class='table-bordered'\n    />\n  </div>\n  */\n  {\n    \"id\": \"66xON47S\",\n    \"block\": \"[[[11,0],[4,[38,1],[[30,0,[\\\"onArgsChange\\\"]],[30,1],[30,2]],null],[12],[1,\\\"\\\\n  \\\"],[8,[39,2],null,[[\\\"@tableHeader\\\",\\\"@tableData\\\",\\\"@noDataText\\\",\\\"@pageSizes\\\",\\\"@pageSize\\\",\\\"@pageIndex\\\",\\\"@onChangePageIndex\\\",\\\"@onChangePageSize\\\",\\\"@isLoading\\\",\\\"@hasNextPage\\\",\\\"@class\\\"],[[30,0,[\\\"historyEventsTableHeader\\\"]],[30,0,[\\\"historyEventsTableContent\\\"]],[28,[37,3],[\\\"components.resource-history.No history yet\\\"],null],[30,0,[\\\"pageSizes\\\"]],[30,0,[\\\"pageSize\\\"]],[30,0,[\\\"pageIndex\\\"]],[30,0,[\\\"onChangePageIndex\\\"]],[30,0,[\\\"onChangePageSize\\\"]],[30,0,[\\\"getEvents\\\",\\\"isRunning\\\"]],[30,0,[\\\"hasNextEventPage\\\"]],\\\"table-bordered\\\"]],null],[1,\\\"\\\\n\\\"],[13]],[\\\"@resourceId\\\",\\\"@resourceType\\\"],false,[\\\"div\\\",\\\"did-update\\\",\\\"pagination-table\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/components/resource-history.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"eventData\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _initializerDefineProperty(this, \"store\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _defineProperty(this, \"pageSizes\", [10, 25, 50]);\n      _initializerDefineProperty(this, \"pageSize\", _descriptor6, this);\n      _initializerDefineProperty(this, \"pageIndex\", _descriptor7, this);\n      _initializerDefineProperty(this, \"sortDirection\", _descriptor8, this);\n      _initializerDefineProperty(this, \"sort\", _descriptor9, this);\n      _defineProperty(this, \"getEvents\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          let andFilters = [{\n            field: 'entity',\n            op: 'EQ',\n            value: this.sessionData.entity.id\n          }];\n          if (this.args.resourceType) {\n            andFilters.push({\n              field: 'resourceType',\n              op: 'EQ',\n              value: this.args.resourceType\n            });\n          }\n          if (this.args.resourceId) {\n            andFilters.push({\n              field: 'resourceId',\n              op: 'EQ',\n              value: this.args.resourceId\n            });\n          }\n          const filters = {\n            and: andFilters\n          };\n          const eventData = yield this.store.query('resource-event', {\n            filter: filters,\n            sort: this.sort,\n            page: {\n              size: this.pageSize,\n              number: this.pageIndex\n            }\n          });\n          this.eventData = eventData;\n        }\n      }), null, \"getEvents\", null));\n      this.getEvents.perform();\n    }\n    onChangePageSize(pageSize) {\n      this.pageSize = pageSize;\n      this.getEvents.perform();\n    }\n    onChangePageIndex(pageIndex) {\n      this.pageIndex = pageIndex;\n      this.getEvents.perform();\n    }\n    get hasNextEventPage() {\n      return this.eventData?.meta?.currentPage < this.eventData?.meta?.totalPages;\n    }\n    onClickUserName({\n      rowData\n    }) {\n      const userId = rowData[2].extraData.user.id;\n      const workerId = rowData[2].extraData.worker.id;\n      let url;\n      if (userId) {\n        url = this.router.urlFor('entity.settings.people.users');\n      } else {\n        url = this.router.urlFor('entity.settings.people.workers');\n      }\n      window.open(`${url}/${userId || workerId}`, '_blank');\n    }\n    onArgsChange() {\n      this.pageIndex = 1;\n      this.getEvents.perform();\n    }\n    sortDateCreatedColumn() {\n      if (this.sortDirection === 'asc') {\n        this.sort = 'dateCreated';\n        this.sortDirection = 'desc';\n      } else if (this.sortDirection === 'desc') {\n        this.sort = undefined;\n        this.sortDirection = undefined;\n      } else {\n        this.sort = '-dateCreated';\n        this.sortDirection = 'asc';\n      }\n      this.getEvents.perform();\n    }\n    get historyEventsTableHeader() {\n      if (this.getEvents.isRunning) return [];\n      return [{\n        value: this.intl.t('common.Date'),\n        iconName: this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortDateCreatedColumn,\n        colClass: 'cursor-pointer text-left'\n      }, {\n        value: this.intl.t('common.Action'),\n        colClass: 'text-left'\n      }, {\n        value: this.intl.t('common.Description'),\n        colClass: 'text-left'\n      }, {\n        value: this.intl.t('common.Person'),\n        colClass: 'text-left'\n      }];\n    }\n    get historyEventsTableContent() {\n      if (this.getEvents.isRunning) return [];\n      return this.eventData.map(event => {\n        const eventData = [{\n          colClass: 'text-left align-middle',\n          value: this.intl.formatDate(event.dateCreated) ?? ' — '\n        }, {\n          colClass: 'text-left align-middle',\n          value: event?.action ?? ' — '\n        }, {\n          colClass: 'text-left align-middle',\n          value: event?.description ?? ' — '\n        }, {\n          colClass: 'text-left align-middle',\n          value: event?._meta.personName ?? ' — '\n        }];\n        return {\n          rowData: eventData\n        };\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"eventData\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"pageSize\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.pageSizes[0];\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"pageIndex\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 1;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"sortDirection\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"sort\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '-dateCreated';\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"onChangePageSize\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onChangePageSize\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onChangePageIndex\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onChangePageIndex\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onClickUserName\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onClickUserName\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onArgsChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onArgsChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"sortDateCreatedColumn\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"sortDateCreatedColumn\"), _class.prototype), _class));\n});","define(\"portal/components/rich-text-editor\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@glimmer/tracking\", \"portal/config/environment\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _tracking, _environment, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"portal/config/environment\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div {{did-insert this.setupEditor}}>\n  \n  </div>\n  */\n  {\n    \"id\": \"e7ANUCeU\",\n    \"block\": \"[[[11,0],[4,[38,1],[[30,0,[\\\"setupEditor\\\"]]],null],[12],[1,\\\"\\\\n\\\\n\\\"],[13]],[],false,[\\\"div\\\",\\\"did-insert\\\"]]\",\n    \"moduleName\": \"portal/components/rich-text-editor.hbs\",\n    \"isStrictMode\": false\n  });\n  let RichTextEditorComponent = _exports.default = (_class = class RichTextEditorComponent extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"quill\", _descriptor, this);\n      _initializerDefineProperty(this, \"textChangeHandler\", _descriptor2, this);\n      _initializerDefineProperty(this, \"blurHandler\", _descriptor3, this);\n    }\n    get editorHeight() {\n      return this.args.height;\n    }\n    async injectQuillAssets() {\n      if (typeof window.Quill === 'undefined') {\n        await new Promise((resolve, reject) => {\n          let script = document.createElement('script');\n          script.id = 'quill-js';\n          script.src = `${_environment.default.rootURL}assets/quill-c8d06576b13e0789d356aca20d46b024.js`;\n          script.onload = () => resolve();\n          script.onerror = () => reject(new Error('Failed to load quill-c8d06576b13e0789d356aca20d46b024.js'));\n          document.head.appendChild(script);\n        });\n      }\n    }\n    async setupEditor(element) {\n      await this.injectQuillAssets();\n      element.style.height = this.editorHeight;\n      this.quill = new window.Quill(element, {\n        theme: 'snow',\n        readOnly: this.args.readOnly ?? false,\n        scrollingContainer: element,\n        modules: {\n          toolbar: [[{\n            header: [1, 2, 3, 4, 5, false]\n          }], ['bold', 'italic', 'underline', 'clean'], [{\n            align: []\n          }], [{\n            list: 'ordered'\n          }, {\n            list: 'bullet'\n          }], ['image', 'link', 'video']]\n        }\n      });\n      this.quill.root.innerHTML = this.args.content || '';\n      this.textChangeListener = () => {\n        this.args.onChange?.(this.quill.root.innerHTML);\n      };\n      this.quill.on('text-change', this.textChangeListener);\n      this.blurListener = () => {\n        this.args.onBlur?.();\n      };\n      this.quill.root.addEventListener('blur', this.blurListener);\n    }\n    willDestroy() {\n      super.willDestroy(...arguments);\n      if (this.textChangeListener) {\n        this.quill.off('text-change', this.textChangeListener);\n        this.textChangeListener = null;\n      }\n      if (this.blurListener) {\n        this.quill.root.removeEventListener('blur', this.blurListener);\n        this.blurListener = null;\n      }\n      this.quill = null;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"quill\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"textChangeHandler\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"blurHandler\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"setupEditor\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setupEditor\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, RichTextEditorComponent);\n});","define(\"portal/components/search-select\", [\"exports\", \"@ember/component\", \"@ember/object\", \"jquery\", \"portal/components/search-select\", \"@ember/template-factory\"], function (_exports, _component, _object, _jquery, _searchSelect, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"jquery\",0,\"portal/components/search-select\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.finderVisible}}\n    <span class='search-select__search-icon'>\n      <FaIcon @icon='search' />\n    </span>\n  {{/if}}\n  \n  {{input\n    class=(or @class 'select-box')\n    name=(if this.finderVisible 'search-select__search-input')\n    type='text'\n    value=this.searchTerm\n    placeholder=(if\n      this.finderVisible (or @searchPlaceholder 'Type to search…') @placeholder\n    )\n    keyDown=(action 'keyDown' bubbles=false)\n    click=(action 'setFinderVisible' true bubbles=false)\n    focusIn=(action 'setFinderVisible' true bubbles=false)\n    autocomplete='off'\n  }}\n  \n  {{#if this.finderVisible}}\n    <div class='search-select__drop-down'>\n      {{#unless @isLoading}}\n        {{#if (and this.activeDisplayName this.filteredOptions.length)}}\n          <div\n            {{action 'clearValue' bubbles=false}}\n            class='search-select__drop-down__row search-select__drop-down__row--clear'\n          >\n            <b>Clear ({{this.activeDisplayName}})</b>\n            <FaIcon @icon='times' />\n          </div>\n        {{/if}}\n  \n        {{#each this.filteredOptions as |option index|}}\n          {{! template-lint-disable no-passed-in-event-handlers }}\n          {{search-select/item\n            option=option\n            keys=this._keys\n            separator=this.separator\n            getDisplayName=this.getDisplayName\n            class=(concat\n              'search-select__drop-down__row'\n              (if\n                (eq this.selectedRow index)\n                ' search-select__drop-down__row--selected'\n              )\n            )\n            mouseEnter=(action 'setSelectedRow' index bubbles=false)\n            mouseLeave=(action 'unSetHighlight' index bubbles=false)\n            click=(action 'setItem' index bubbles=false)\n            data-test-search-select-option=index\n          }}\n        {{else}}\n          <div\n            class='search-select__drop-down__row search-select__drop-down__row--empty'\n          >\n            <span class='text-button--spaced'>\n              {{or @emptyText 'No items found'}}\n            </span>\n  \n            {{#if @emptyButtonAction}}\n              <button\n                class='text-button text-button--spaced'\n                type='button'\n                {{action @emptyButtonAction bubbles=false}}\n              >\n                {{or @emptyButtonText 'Click to update'}}\n              </button>\n            {{/if}}\n          </div>\n        {{/each}}\n      {{else}}\n        <div\n          class='search-select__drop-down__row search-select__drop-down__row--loading'\n        >\n          <LoadingIcon @type='spinner' />\n        </div>\n      {{/unless}}\n    </div>\n  {{/if}}\n  */\n  {\n    \"id\": \"+NhN+M8g\",\n    \"block\": \"[[[41,[30,0,[\\\"finderVisible\\\"]],[[[1,\\\"  \\\"],[10,1],[14,0,\\\"search-select__search-icon\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,2],null,[[\\\"@icon\\\"],[\\\"search\\\"]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[1,[28,[35,3],null,[[\\\"class\\\",\\\"name\\\",\\\"type\\\",\\\"value\\\",\\\"placeholder\\\",\\\"keyDown\\\",\\\"click\\\",\\\"focusIn\\\",\\\"autocomplete\\\"],[[28,[37,4],[[30,1],\\\"select-box\\\"],null],[52,[30,0,[\\\"finderVisible\\\"]],\\\"search-select__search-input\\\"],\\\"text\\\",[30,0,[\\\"searchTerm\\\"]],[52,[30,0,[\\\"finderVisible\\\"]],[28,[37,4],[[30,2],\\\"Type to search…\\\"],null],[30,3]],[28,[37,5],[[30,0],\\\"keyDown\\\"],[[\\\"bubbles\\\"],[false]]],[28,[37,5],[[30,0],\\\"setFinderVisible\\\",true],[[\\\"bubbles\\\"],[false]]],[28,[37,5],[[30,0],\\\"setFinderVisible\\\",true],[[\\\"bubbles\\\"],[false]]],\\\"off\\\"]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"finderVisible\\\"]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"search-select__drop-down\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,4]],[[[41,[28,[37,8],[[30,0,[\\\"activeDisplayName\\\"]],[30,0,[\\\"filteredOptions\\\",\\\"length\\\"]]],null],[[[1,\\\"        \\\"],[11,0],[24,0,\\\"search-select__drop-down__row search-select__drop-down__row--clear\\\"],[4,[38,5],[[30,0],\\\"clearValue\\\"],[[\\\"bubbles\\\"],[false]]],[12],[1,\\\"\\\\n          \\\"],[10,\\\"b\\\"],[12],[1,\\\"Clear (\\\"],[1,[30,0,[\\\"activeDisplayName\\\"]]],[1,\\\")\\\"],[13],[1,\\\"\\\\n          \\\"],[8,[39,2],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[42,[28,[37,11],[[28,[37,11],[[30,0,[\\\"filteredOptions\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[1,[28,[35,12],null,[[\\\"option\\\",\\\"keys\\\",\\\"separator\\\",\\\"getDisplayName\\\",\\\"class\\\",\\\"mouseEnter\\\",\\\"mouseLeave\\\",\\\"click\\\",\\\"data-test-search-select-option\\\"],[[30,5],[30,0,[\\\"_keys\\\"]],[30,0,[\\\"separator\\\"]],[30,0,[\\\"getDisplayName\\\"]],[28,[37,13],[\\\"search-select__drop-down__row\\\",[52,[28,[37,14],[[30,0,[\\\"selectedRow\\\"]],[30,6]],null],\\\" search-select__drop-down__row--selected\\\"]],null],[28,[37,5],[[30,0],\\\"setSelectedRow\\\",[30,6]],[[\\\"bubbles\\\"],[false]]],[28,[37,5],[[30,0],\\\"unSetHighlight\\\",[30,6]],[[\\\"bubbles\\\"],[false]]],[28,[37,5],[[30,0],\\\"setItem\\\",[30,6]],[[\\\"bubbles\\\"],[false]]],[30,6]]]]],[1,\\\"\\\\n\\\"]],[5,6]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"search-select__drop-down__row search-select__drop-down__row--empty\\\"],[12],[1,\\\"\\\\n          \\\"],[10,1],[14,0,\\\"text-button--spaced\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[[30,7],\\\"No items found\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,8],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--spaced\\\"],[24,4,\\\"button\\\"],[4,[38,5],[[30,0],[30,8]],[[\\\"bubbles\\\"],[false]]],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[[30,9],\\\"Click to update\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"search-select__drop-down__row search-select__drop-down__row--loading\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,16],null,[[\\\"@type\\\"],[\\\"spinner\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@class\\\",\\\"@searchPlaceholder\\\",\\\"@placeholder\\\",\\\"@isLoading\\\",\\\"option\\\",\\\"index\\\",\\\"@emptyText\\\",\\\"@emptyButtonAction\\\",\\\"@emptyButtonText\\\"],false,[\\\"if\\\",\\\"span\\\",\\\"fa-icon\\\",\\\"input\\\",\\\"or\\\",\\\"action\\\",\\\"div\\\",\\\"unless\\\",\\\"and\\\",\\\"b\\\",\\\"each\\\",\\\"-track-array\\\",\\\"search-select/item\\\",\\\"concat\\\",\\\"eq\\\",\\\"button\\\",\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/components/search-select.hbs\",\n    \"isStrictMode\": false\n  });\n\n  // to lower case\n  function tlc(string) {\n    return String(string).toLowerCase();\n  }\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    layout: _searchSelect.default,\n    classNames: ['search-select'],\n    finderVisible: false,\n    selectedRow: 0,\n    searchTerm: '',\n    separator: ' - ',\n    // This will eventually be a computed property that will be generated in the didInsertElement hook.\n    activeDisplayName: null,\n    // Things that need to happen once, when the element is created\n    didInsertElement() {\n      this._super(...arguments);\n      // capture click events and check if they are for our component\n      // if they are not, we can close the drop down\n      const element = (0, _object.get)(this, 'elementId');\n      (0, _jquery.default)(window).on('click', event => {\n        if ((0, _object.get)(this, 'finderVisible') && (0, _jquery.default)(`#${element}`).has(event.target).length === 0 && !(0, _jquery.default)(`#${element}`).is(event.target)) {\n          (0, _object.set)(this, 'finderVisible', false);\n        }\n      });\n\n      // we need to set the value on the initial render\n      const activeValue = (0, _object.get)(this, 'activeDisplayName');\n      (0, _object.set)(this, 'searchTerm', activeValue);\n\n      // Generate the activeDisplayName, with dependent paths that are calculated from the passed in `keys` and `value` properties.\n      const updateKeys = (0, _object.get)(this, '_keys').map(k => 'value.' + k);\n      (0, _object.defineProperty)(this, 'activeDisplayName', (0, _object.computed)(...updateKeys, '_keys', 'options[]', 'separator', 'value', function () {\n        const value = (0, _object.get)(this, 'value');\n        const keys = (0, _object.get)(this, '_keys');\n        if (typeof value !== 'object') {\n          return value;\n        } else if (keys && (0, _object.get)(keys, 'length') && value) {\n          const separator = (0, _object.get)(this, 'separator');\n          return this.getDisplayName(keys, value, separator);\n        } else {\n          return '';\n        }\n      }));\n    },\n    // Things that need to happen once, when the element is destroyed\n    willDestroyElement() {\n      this._super(...arguments);\n      // remove our listener\n      (0, _jquery.default)(window).off('click');\n    },\n    // Things that need to happen every time the element is re-rendered\n    didRender() {\n      this._super(...arguments);\n      // for following renders we only want to set the value when the search is not being used and the value has changed\n      const finderNotVisible = !(0, _object.get)(this, 'finderVisible');\n      const activeValue = (0, _object.get)(this, 'activeDisplayName');\n      const searchTerm = (0, _object.get)(this, 'searchTerm');\n      if (finderNotVisible && activeValue !== searchTerm) {\n        (0, _object.set)(this, 'searchTerm', activeValue);\n      }\n    },\n    // we want to automatically clear the input when the input is search only\n    // ie when the input cannot create its own values\n    clearInputOnFocus: (0, _object.observer)('finderVisible', function () {\n      if ((0, _object.get)(this, 'finderVisible')) (0, _object.set)(this, 'searchTerm', '');\n    }),\n    _keys: (0, _object.computed)('keys', function () {\n      return (0, _object.get)(this, 'keys') && (0, _object.get)(this, 'keys').split(',').map(item => item.trim());\n    }),\n    filteredOptions: (0, _object.computed)('_keys', 'options', 'searchTerm', function () {\n      const keys = (0, _object.get)(this, '_keys');\n      const searchTerm = (0, _object.get)(this, 'searchTerm');\n      const options = (0, _object.get)(this, 'options');\n      if (searchTerm) {\n        return options.filter(option => {\n          if (typeof option === 'object') {\n            return keys.find(key => tlc((0, _object.get)(option, key)).includes(tlc(searchTerm)));\n          } else {\n            return tlc(option).includes(tlc(searchTerm));\n          }\n        });\n      }\n      return options;\n    }),\n    actions: {\n      setFinderVisible(visible) {\n        if ((0, _object.get)(this, 'finderVisible') !== visible) (0, _object.set)(this, 'finderVisible', visible);\n      },\n      setSelectedRow(index) {\n        (0, _object.set)(this, 'selectedRow', index);\n      },\n      keyDown(event) {\n        const selectedRow = (0, _object.get)(this, 'selectedRow');\n        switch (event.keyCode) {\n          // down arrow\n          case 38:\n            this.send('setFinderVisible', true);\n            if (selectedRow > 0) (0, _object.set)(this, 'selectedRow', selectedRow - 1);\n            break;\n          // up arrow\n          case 40:\n            this.send('setFinderVisible', true);\n            if (selectedRow + 1 < (0, _object.get)(this, 'filteredOptions.length')) (0, _object.set)(this, 'selectedRow', selectedRow + 1);\n            break;\n          // enter\n          case 13:\n            if ((0, _object.get)(this, 'finderVisible')) this.send('setItem', selectedRow);\n            break;\n          // tab\n          case 9:\n            this.send('setFinderVisible', false);\n            break;\n          // escape\n          case 27:\n            this.send('setFinderVisible', false);\n            break;\n          // any other key\n          default:\n            (0, _object.set)(this, 'selectedRow', -1);\n            this.send('setFinderVisible', true);\n            break;\n        }\n      },\n      unSetHighlight(index) {\n        if ((0, _object.get)(this, 'selectedRow') === index) (0, _object.set)(this, 'selectedRow', null);\n      },\n      setItem(index) {\n        const item = (0, _object.get)(this, 'filteredOptions').objectAt(index);\n\n        // eslint-disable-next-line ember/closure-actions\n        this.sendAction('onSelect', item);\n        this.send('setFinderVisible', false);\n      },\n      clearValue() {\n        (0, _object.set)(this, 'value', null);\n\n        // eslint-disable-next-line ember/closure-actions\n        this.sendAction('onSelect', null);\n        (0, _object.set)(this, 'finderVisible', false);\n      }\n    },\n    getDisplayName(keys, option, separator) {\n      // separator defaults to ' - '\n      // go through each key and build the display name by getting the values at the key\n      // If `option` is a Proxy Object, then the `get` function won't\n      const names = keys.map(key => (0, _object.get)(option, key)).filter(Boolean);\n      return names.join(separator);\n    }\n  }));\n});","define(\"portal/components/search-select/item\", [\"exports\", \"@ember/component\", \"@ember/object\", \"portal/components/search-select/item\", \"@ember/template-factory\"], function (_exports, _component, _object, _item, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"portal/components/search-select/item\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{@displayName}}\n  */\n  {\n    \"id\": \"mkfjLbA/\",\n    \"block\": \"[[[1,[30,1]]],[\\\"@displayName\\\"],false,[]]\",\n    \"moduleName\": \"portal/components/search-select/item.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    layout: _item.default,\n    displayName: (0, _object.computed)('option', 'keys', 'separator', function () {\n      const option = (0, _object.get)(this, 'option');\n      if (typeof option === 'string') return option;\n      const keys = (0, _object.get)(this, 'keys');\n      const separator = (0, _object.get)(this, 'separator');\n      return keys.map(key => (0, _object.get)(option, key)).join(separator);\n    })\n  }));\n});","define(\"portal/components/search-selector\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"@ember/object\", \"@glimmer/tracking\", \"ember-concurrency\", \"@ember/runloop\", \"portal/config/environment\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _object, _tracking, _emberConcurrency, _runloop, _environment, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"ember-concurrency\",0,\"ember-concurrency\",0,\"@ember/runloop\",0,\"portal/config/environment\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <PopUp\n    class='position-relative'\n    id={{this.elementId}}\n    @visible={{this.showPopUp}}\n    @onClose={{this.toggleShowPopUp}}\n    @disabled={{@disabled}}\n    as |pu|\n  >\n    <div\n      role='button'\n      class='form-control search-selector__selector\n        {{if (gt this.errors.length 0) \"is-invalid\"}}\n        {{if @disabled \"search-selector__selector--disabled\"}}'\n      data-test-task-div=''\n      {{on 'click' this.toggleShowPopUp}}\n      ...attributes\n    >\n      {{#if this.valueString}}\n        <div class='d-flex justify-content-between align-items-center'>\n          <span class='search-selector__value text-truncate d-block'>\n            {{this.valueString}}\n          </span>\n          {{! template-lint-disable no-nested-interactive }}\n          {{#unless @disabled}}\n            <button\n              type='button'\n              class='btn btn-close me-2'\n              {{on 'click' this.removeSelectedItem}}\n              aria-label='Close'\n            >\n            </button>\n          {{/unless}}\n        </div>\n        <span\n          class='search-selector__select-icon {{if this.showPopUp \"rotate\"}}'\n        ></span>\n      {{else if @placeholder}}\n        <span class='search-selector__placeholder'>{{@placeholder}}</span>\n      {{/if}}\n    </div>\n    {{#each this.errors as |error|}}\n      <div class='invalid-feedback d-block' data-test-ptl-input-error>\n        {{error.validation}}\n      </div>\n    {{/each}}\n    <pu.Content class='search-selector__content w-100'>\n      <div class='px-2 pt-3 pb-1 search-selector__input-container'>\n        <input\n          class='form-control search-selector__input'\n          type='text'\n          {{on 'input' (perform this.onChangeSearch)}}\n          {{on 'keyup' this.keyup}}\n        />\n      </div>\n      <div\n        class='w-100 search-selector__drop-down position-relative my-2'\n        {{did-insert this.initList}}\n        {{will-destroy this.destroySearch}}\n      >\n        {{#each this.list key=@key as |item index|}}\n          <div\n            class='search-selector__drop-down-row\n              {{if\n                (eq index this.selectedRow)\n                \"search-selector__drop-down-row--selected\"\n              }}\n              {{concat \"search-selector__drop-down-row--\" index}}'\n            {{on 'click' (pipe (fn this.onSelect item) this.toggleShowPopUp)}}\n          >\n            {{#each @optionKeys as |key index|}}\n              {{get item key}}\n              {{#if (not-eq index (math @optionKeys.length '-' 1))}}\n                -\n              {{/if}}\n            {{/each}}\n          </div>\n        {{else}}\n          {{#if (not this.isLoading)}}\n            <div class='px-3'>\n              {{#let (or @noDataMessage (t 'common.No data')) as |message|}}\n                {{#if @noDataAction}}\n                  <button\n                    type='button'\n                    class='btn btn-link p-0'\n                    {{on 'click' this.runNoDataAction}}\n                    data-test-search-selector-create-action\n                  >\n                    {{message}}\n                  </button>\n                {{else if @noDataRoute}}\n                  <LinkTo @route={{@noDataRoute}} @model='new'>\n                    {{message}}\n                    <FaIcon @icon='external-link-alt' @size='sm' />\n                  </LinkTo>\n                {{else}}\n                  {{message}}\n                {{/if}}\n              {{/let}}\n            </div>\n          {{/if}}\n        {{/each}}\n        {{#if this.showNoDataRouteAction}}\n          <div class='search-selector__action-row px-3 py-2'>\n            <LinkTo\n              @route={{@noDataRoute}}\n              @model='new'\n              class='search-selector__action-link'\n              data-test-search-selector-create-link\n            >\n              {{or @noDataMessage (t 'common.No data')}}\n              <FaIcon @icon='external-link-alt' @size='sm' />\n            </LinkTo>\n          </div>\n        {{/if}}\n        {{#if this.showNoDataAction}}\n          <div class='search-selector__action-row px-3 py-2'>\n            <button\n              type='button'\n              class='btn btn-link p-0 search-selector__action-link'\n              {{on 'click' this.runNoDataAction}}\n              data-test-search-selector-create-action\n            >\n              {{or @noDataMessage (t 'common.No data')}}\n            </button>\n          </div>\n        {{/if}}\n        {{#if this.isLoading}}\n          <div class='py-2 text-center'>\n            <LoadingIcon @type='spinner' />\n          </div>\n        {{/if}}\n      </div>\n    </pu.Content>\n  </PopUp>\n  */\n  {\n    \"id\": \"LPp1iOPK\",\n    \"block\": \"[[[8,[39,0],[[24,0,\\\"position-relative\\\"],[16,1,[30,0,[\\\"elementId\\\"]]]],[[\\\"@visible\\\",\\\"@onClose\\\",\\\"@disabled\\\"],[[30,0,[\\\"showPopUp\\\"]],[30,0,[\\\"toggleShowPopUp\\\"]],[30,1]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[11,0],[24,\\\"role\\\",\\\"button\\\"],[16,0,[29,[\\\"form-control search-selector__selector\\\\n      \\\",[52,[28,[37,3],[[30,0,[\\\"errors\\\",\\\"length\\\"]],0],null],\\\"is-invalid\\\"],\\\"\\\\n      \\\",[52,[30,1],\\\"search-selector__selector--disabled\\\"]]]],[24,\\\"data-test-task-div\\\",\\\"\\\"],[17,3],[4,[38,4],[\\\"click\\\",[30,0,[\\\"toggleShowPopUp\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"valueString\\\"]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"d-flex justify-content-between align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"search-selector__value text-truncate d-block\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"valueString\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,1]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-close me-2\\\"],[24,\\\"aria-label\\\",\\\"Close\\\"],[24,4,\\\"button\\\"],[4,[38,4],[\\\"click\\\",[30,0,[\\\"removeSelectedItem\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,1],[15,0,[29,[\\\"search-selector__select-icon \\\",[52,[30,0,[\\\"showPopUp\\\"]],\\\"rotate\\\"]]]],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,4],[[[1,\\\"      \\\"],[10,1],[14,0,\\\"search-selector__placeholder\\\"],[12],[1,[30,4]],[13],[1,\\\"\\\\n    \\\"]],[]],null]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[30,0,[\\\"errors\\\"]]],null]],null],null,[[[1,\\\"    \\\"],[10,0],[14,0,\\\"invalid-feedback d-block\\\"],[14,\\\"data-test-ptl-input-error\\\",\\\"\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[30,5,[\\\"validation\\\"]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"  \\\"],[8,[30,2,[\\\"Content\\\"]],[[24,0,\\\"search-selector__content w-100\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"px-2 pt-3 pb-1 search-selector__input-container\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control search-selector__input\\\"],[24,4,\\\"text\\\"],[4,[38,4],[\\\"input\\\",[28,[37,11],[[30,0,[\\\"onChangeSearch\\\"]]],null]],null],[4,[38,4],[\\\"keyup\\\",[30,0,[\\\"keyup\\\"]]],null],[12],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[11,0],[24,0,\\\"w-100 search-selector__drop-down position-relative my-2\\\"],[4,[38,12],[[30,0,[\\\"initList\\\"]]],null],[4,[38,13],[[30,0,[\\\"destroySearch\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[30,0,[\\\"list\\\"]]],null]],null],[30,6],[[[1,\\\"        \\\"],[11,0],[16,0,[29,[\\\"search-selector__drop-down-row\\\\n            \\\",[52,[28,[37,14],[[30,8],[30,0,[\\\"selectedRow\\\"]]],null],\\\"search-selector__drop-down-row--selected\\\"],\\\"\\\\n            \\\",[28,[37,15],[\\\"search-selector__drop-down-row--\\\",[30,8]],null]]]],[4,[38,4],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"onSelect\\\"]],[30,7]],null],[30,0,[\\\"toggleShowPopUp\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[30,9]],null]],null],null,[[[1,\\\"            \\\"],[1,[28,[35,18],[[30,7],[30,10]],null]],[1,\\\"\\\\n\\\"],[41,[28,[37,19],[[30,11],[28,[37,20],[[30,9,[\\\"length\\\"]],\\\"-\\\",1],null]],null],[[[1,\\\"              -\\\\n\\\"]],[]],null]],[10,11]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[7,8]],[[[41,[28,[37,21],[[30,0,[\\\"isLoading\\\"]]],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"px-3\\\"],[12],[1,\\\"\\\\n\\\"],[44,[[28,[37,23],[[30,12],[28,[37,24],[\\\"common.No data\\\"],null]],null]],[[[41,[30,14],[[[1,\\\"                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link p-0\\\"],[24,\\\"data-test-search-selector-create-action\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,4],[\\\"click\\\",[30,0,[\\\"runNoDataAction\\\"]]],null],[12],[1,\\\"\\\\n                  \\\"],[1,[30,13]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,15],[[[1,\\\"                \\\"],[8,[39,25],null,[[\\\"@route\\\",\\\"@model\\\"],[[30,15],\\\"new\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                  \\\"],[1,[30,13]],[1,\\\"\\\\n                  \\\"],[8,[39,26],null,[[\\\"@icon\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",\\\"sm\\\"]],null],[1,\\\"\\\\n                \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[30,13]],[1,\\\"\\\\n              \\\"]],[]]]],[]]]],[13]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[41,[30,0,[\\\"showNoDataRouteAction\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"search-selector__action-row px-3 py-2\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,25],[[24,0,\\\"search-selector__action-link\\\"],[24,\\\"data-test-search-selector-create-link\\\",\\\"\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[[30,15],\\\"new\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[28,[35,23],[[30,12],[28,[37,24],[\\\"common.No data\\\"],null]],null]],[1,\\\"\\\\n            \\\"],[8,[39,26],null,[[\\\"@icon\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",\\\"sm\\\"]],null],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"showNoDataAction\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"search-selector__action-row px-3 py-2\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link p-0 search-selector__action-link\\\"],[24,\\\"data-test-search-selector-create-action\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,4],[\\\"click\\\",[30,0,[\\\"runNoDataAction\\\"]]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,23],[[30,12],[28,[37,24],[\\\"common.No data\\\"],null]],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"py-2 text-center\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,27],null,[[\\\"@type\\\"],[\\\"spinner\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[2]]]]]],[\\\"@disabled\\\",\\\"pu\\\",\\\"&attrs\\\",\\\"@placeholder\\\",\\\"error\\\",\\\"@key\\\",\\\"item\\\",\\\"index\\\",\\\"@optionKeys\\\",\\\"key\\\",\\\"index\\\",\\\"@noDataMessage\\\",\\\"message\\\",\\\"@noDataAction\\\",\\\"@noDataRoute\\\"],false,[\\\"pop-up\\\",\\\"div\\\",\\\"if\\\",\\\"gt\\\",\\\"on\\\",\\\"span\\\",\\\"unless\\\",\\\"button\\\",\\\"each\\\",\\\"-track-array\\\",\\\"input\\\",\\\"perform\\\",\\\"did-insert\\\",\\\"will-destroy\\\",\\\"eq\\\",\\\"concat\\\",\\\"pipe\\\",\\\"fn\\\",\\\"get\\\",\\\"not-eq\\\",\\\"math\\\",\\\"not\\\",\\\"let\\\",\\\"or\\\",\\\"t\\\",\\\"link-to\\\",\\\"fa-icon\\\",\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/components/search-selector.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    get isLoading() {\n      return this.args.onLoad.isRunning || this.onChangeSearch.isRunning;\n    }\n    get errors() {\n      const errors = this.args.model.get('errors');\n      return errors.filter(er => er.key === this.args.key);\n    }\n    get list() {\n      // assume we are dumping the current list when the searchTerm changes\n      if (this.onChangeSearch.isRunning) return [];\n      return this.args.onLoad.lastSuccessful?.value || [];\n    }\n    get valueString() {\n      const modelKeyValue = this.args.model[this.args.key];\n      if (!modelKeyValue) return undefined;\n      if (typeof modelKeyValue === 'string') return modelKeyValue;\n      const values = [];\n      for (const key of this.args.optionKeys) {\n        values.push(modelKeyValue[key]);\n      }\n      return values.join(' – ');\n    }\n    get noDataQueryValue() {\n      return this.searchTerm?.trim?.() || this.args.initialSearchTerm?.trim?.();\n    }\n    get showNoDataRouteAction() {\n      return Boolean(this.args.showNoDataRouteWithResults && this.args.noDataRoute && this.list.length && this.noDataQueryValue);\n    }\n    get showNoDataAction() {\n      return Boolean(this.args.showNoDataActionWithResults && this.args.noDataAction && this.list.length && this.noDataQueryValue);\n    }\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"scrollHandler\", null);\n      _initializerDefineProperty(this, \"scrollableParent\", _descriptor, this);\n      _initializerDefineProperty(this, \"inputElement\", _descriptor2, this);\n      _initializerDefineProperty(this, \"selectedRow\", _descriptor3, this);\n      _initializerDefineProperty(this, \"showPopUp\", _descriptor4, this);\n      _initializerDefineProperty(this, \"searchTerm\", _descriptor5, this);\n      _defineProperty(this, \"debounce\", this.args.debounce || _environment.default.debounceTimeMs);\n      _defineProperty(this, \"lastElement\", void 0);\n      _defineProperty(this, \"renderMore\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.args.onLoad.perform(this.searchTerm);\n        }\n      }), null, \"renderMore\", null));\n      _defineProperty(this, \"onChangeSearch\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          this.searchTerm = e.target.value;\n          if (this.debounce) yield (0, _emberConcurrency.timeout)(this.debounce);\n          yield this.args.onLoad.perform(this.searchTerm.trim());\n        }\n      }), {\n        restartable: true\n      }, \"onChangeSearch\", null));\n      this.elementId = 'search-selector__' + Math.floor(Math.random() * 1e5);\n    }\n    initList() {\n      if (!this.valueString && this.args.initialSearchTerm?.trim?.()) {\n        this.searchTerm = this.args.initialSearchTerm.trim();\n      }\n      if (this.searchTerm || !this.list.length) {\n        this.args.onLoad.perform(this.searchTerm);\n      }\n      const parentElement = document.getElementById(this.elementId);\n      this.scrollableParent = parentElement.querySelector('.search-selector__drop-down');\n      this.findLastElement();\n      this.scrollHandler = this.checkVisible.bind(this);\n      this.scrollableParent.addEventListener('scroll', this.scrollHandler);\n      this.inputElement = parentElement.querySelector('.search-selector__input');\n      this.inputElement.value = this.searchTerm;\n      this.inputElement.focus();\n    }\n    destroySearch() {\n      if (document.getElementById(this.elementId)) {\n        window.removeEventListener('scroll', this.scrollHandler);\n      }\n    }\n    toggleShowPopUp() {\n      const hadSearchTerm = this.searchTerm.length > 0;\n      this.searchTerm = '';\n      this.showPopUp = !this.showPopUp;\n      if (hadSearchTerm) this.args.onLoad.perform('');\n    }\n    findLastElement() {\n      const element = Array.from(this.scrollableParent.querySelectorAll(`.search-selector__drop-down-row`)).pop();\n      return element;\n    }\n    async checkVisible() {\n      if (this.isLoading) return;\n      const element = this.findLastElement();\n      if (!element) return;\n\n      // we have already loaded more for this element\n      if (element === this.lastElement) return;\n      const scrollableParent = this.scrollableParent;\n      const screenHeight = scrollableParent.clientHeight;\n      const topOfElement = element.offsetTop;\n      const bottomOfElement = topOfElement + element.offsetHeight;\n      const topOfScreen = scrollableParent.scrollTop;\n      const bottomOfScreen = topOfScreen + screenHeight;\n      const padding = 20;\n      if (bottomOfScreen + padding > bottomOfElement) {\n        await this.renderMore.perform();\n        this.lastElement = element;\n\n        // Check again if we have rendered enough elements for our scroll position\n        (0, _runloop.next)(() => this.checkVisible());\n      }\n    }\n    keepSelectedRowVisible(selectedRowIndex) {\n      const $row = this.scrollableParent.querySelector('.search-selector__drop-down-row--' + selectedRowIndex);\n      const $container = this.scrollableParent;\n      if ($row && $container) {\n        const rowTop = $row.offsetTop;\n        const rowHeight = $row.offsetHeight;\n        const containerHeight = $container.clientHeight;\n        const containerScrollTop = $container.scrollTop;\n        if (rowTop + rowHeight > containerScrollTop + containerHeight) {\n          $container.scrollTop = rowTop + rowHeight - containerHeight;\n        } else if (rowTop < containerScrollTop) {\n          $container.scrollTop = rowTop;\n        }\n      }\n    }\n    keyup(event) {\n      // TODO: migrate this to ember-keyboard\n      if (this.isLoading) return;\n      const selectedRow = this.selectedRow;\n      switch (event.keyCode) {\n        // down arrow\n        case 38:\n          if (selectedRow > 0) {\n            const newSelectedRow = selectedRow - 1;\n            this.selectedRow = newSelectedRow;\n            this.keepSelectedRowVisible(newSelectedRow);\n          }\n          event.preventDefault();\n          break;\n        // up arrow\n        case 40:\n          if (selectedRow + 1 < this.list.length) {\n            const newSelectedRow = selectedRow + 1;\n            this.selectedRow = newSelectedRow;\n            this.keepSelectedRowVisible(newSelectedRow);\n          }\n          event.preventDefault();\n          break;\n        // enter\n        case 13:\n          this.onSelect(this.list[selectedRow]);\n          event.preventDefault();\n          break;\n        // tab\n        case 9:\n          this.selectedRow = -1;\n          break;\n        // escape\n        case 27:\n          break;\n        // any other key\n        default:\n          this.selectedRow = -1;\n          break;\n      }\n    }\n    onSelect(item) {\n      this.args.onSelect(item);\n    }\n    async runNoDataAction() {\n      await this.args.noDataAction?.(this.noDataQueryValue);\n      this.toggleShowPopUp();\n    }\n    removeSelectedItem(event) {\n      event.stopPropagation();\n      this.onSelect();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"scrollableParent\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"inputElement\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"selectedRow\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return -1;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"showPopUp\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"searchTerm\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"initList\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"initList\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"destroySearch\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"destroySearch\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleShowPopUp\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleShowPopUp\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"keyup\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"keyup\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSelect\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onSelect\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"runNoDataAction\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"runNoDataAction\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeSelectedItem\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"removeSelectedItem\"), _class.prototype), _class));\n});","define(\"portal/components/select-input\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <select\n    value={{@value}}\n    class={{@class}}\n    {{on 'change' this.updateValue}}\n    ...attributes\n  >\n    {{yield (hash option=(component 'select-input/option' selectedValue=@value))}}\n  </select>\n  */\n  {\n    \"id\": \"hDpo9gxY\",\n    \"block\": \"[[[11,\\\"select\\\"],[16,2,[30,1]],[16,0,[30,2]],[17,3],[4,[38,1],[\\\"change\\\",[30,0,[\\\"updateValue\\\"]]],null],[12],[1,\\\"\\\\n  \\\"],[18,4,[[28,[37,3],null,[[\\\"option\\\"],[[50,\\\"select-input/option\\\",0,null,[[\\\"selectedValue\\\"],[[30,1]]]]]]]]],[1,\\\"\\\\n\\\"],[13]],[\\\"@value\\\",\\\"@class\\\",\\\"&attrs\\\",\\\"&default\\\"],false,[\\\"select\\\",\\\"on\\\",\\\"yield\\\",\\\"hash\\\",\\\"component\\\"]]\",\n    \"moduleName\": \"portal/components/select-input.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _defineProperty(this, \"updateValue\", e => {\n        if (!this.args.action) return;\n        const value = e.target.value;\n        const [, type, id] = value.match(/<model::([^:]+):([^>]+)>/) || [];\n        if (type && id) {\n          this.args.action(this.store.peekRecord(type, id));\n        } else if (typeof this.args.value === 'number') {\n          this.args.action(Number(value));\n        } else if (typeof this.args.value === 'boolean') {\n          this.args.action(value === 'true');\n        } else {\n          this.args.action(value);\n        }\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class));\n});","define(\"portal/components/select-input/option\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <option\n    value={{this.value}}\n    selected={{eq this.selectedValue this.value}}\n    ...attributes\n  >\n    {{yield}}\n  </option>\n  */\n  {\n    \"id\": \"HHNlKofz\",\n    \"block\": \"[[[11,\\\"option\\\"],[16,2,[30,0,[\\\"value\\\"]]],[16,\\\"selected\\\",[28,[37,1],[[30,0,[\\\"selectedValue\\\"]],[30,0,[\\\"value\\\"]]],null]],[17,1],[12],[1,\\\"\\\\n  \\\"],[18,2,null],[1,\\\"\\\\n\\\"],[13]],[\\\"&attrs\\\",\\\"&default\\\"],false,[\\\"option\\\",\\\"eq\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"portal/components/select-input/option.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component2.default {\n    get value() {\n      return this.args.value ?? String(this.args.value);\n    }\n    get selectedValue() {\n      return this.args.selectedValue ?? String(this.args.selectedValue);\n    }\n  });\n});","define(\"portal/components/sidebar\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _component2, _tracking, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    class='bg-light border-end sidebar__container\n      {{if this.isCollapsed \"sidebar__container--collapsed\"}}'\n  >\n    <div class='d-flex flex-column flex-shrink-0 p-3 sidebar__sticky'>\n      <ul class='nav nav-pills flex-column'>\n        {{yield\n          (hash\n            Title=(component 'sidebar/title' isCollapsed=this.isCollapsed)\n            Item=(component 'sidebar/item' isCollapsed=this.isCollapsed)\n            Section=(component 'sidebar/section' isCollapsed=this.isCollapsed)\n            BackButton=(component 'sidebar/back-button')\n            EntitySelector=(component 'sidebar/entity-selector')\n            isCollapsed=this.isCollapsed\n          )\n        }}\n      </ul>\n  \n      {{#if (media 'isDesktop')}}\n        <ul class='nav nav-pills flex-column pt-3 mt-auto ms-auto'>\n          <FaIcon\n            @icon={{if this.isCollapsed 'angles-right' 'angles-left'}}\n            @size='lg'\n            class='text-secondary'\n            role='button'\n            {{on 'click' this.toggleCollapsed}}\n            data-test-sidebar-collapse-button\n          />\n        </ul>\n      {{/if}}\n    </div>\n  </div>\n  */\n  {\n    \"id\": \"0UeQ0f9a\",\n    \"block\": \"[[[10,0],[15,0,[29,[\\\"bg-light border-end sidebar__container\\\\n    \\\",[52,[30,0,[\\\"isCollapsed\\\"]],\\\"sidebar__container--collapsed\\\"]]]],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"d-flex flex-column flex-shrink-0 p-3 sidebar__sticky\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"ul\\\"],[14,0,\\\"nav nav-pills flex-column\\\"],[12],[1,\\\"\\\\n      \\\"],[18,1,[[28,[37,4],null,[[\\\"Title\\\",\\\"Item\\\",\\\"Section\\\",\\\"BackButton\\\",\\\"EntitySelector\\\",\\\"isCollapsed\\\"],[[50,\\\"sidebar/title\\\",0,null,[[\\\"isCollapsed\\\"],[[30,0,[\\\"isCollapsed\\\"]]]]],[50,\\\"sidebar/item\\\",0,null,[[\\\"isCollapsed\\\"],[[30,0,[\\\"isCollapsed\\\"]]]]],[50,\\\"sidebar/section\\\",0,null,[[\\\"isCollapsed\\\"],[[30,0,[\\\"isCollapsed\\\"]]]]],[50,\\\"sidebar/back-button\\\",0,null,null],[50,\\\"sidebar/entity-selector\\\",0,null,null],[30,0,[\\\"isCollapsed\\\"]]]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,6],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[10,\\\"ul\\\"],[14,0,\\\"nav nav-pills flex-column pt-3 mt-auto ms-auto\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,7],[[24,0,\\\"text-secondary\\\"],[24,\\\"role\\\",\\\"button\\\"],[24,\\\"data-test-sidebar-collapse-button\\\",\\\"\\\"],[4,[38,8],[\\\"click\\\",[30,0,[\\\"toggleCollapsed\\\"]]],null]],[[\\\"@icon\\\",\\\"@size\\\"],[[52,[30,0,[\\\"isCollapsed\\\"]],\\\"angles-right\\\",\\\"angles-left\\\"],\\\"lg\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"&default\\\"],false,[\\\"div\\\",\\\"if\\\",\\\"ul\\\",\\\"yield\\\",\\\"hash\\\",\\\"component\\\",\\\"media\\\",\\\"fa-icon\\\",\\\"on\\\"]]\",\n    \"moduleName\": \"portal/components/sidebar.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"isCollapsed\", _descriptor, this);\n    }\n    toggleCollapsed() {\n      this.isCollapsed = !this.isCollapsed;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"isCollapsed\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"toggleCollapsed\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleCollapsed\"), _class.prototype), _class));\n});","define(\"portal/components/sidebar/back-button\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <div class='my-2 fs-4' data-test-sidebar-back-button>\n      <div {{on 'click' this.goBack}} role='button'>\n        <FaIcon @icon='arrow-left' />&nbsp;&nbsp;{{@buttonText}}\n      </div>\n    </div>\n  {{/unless}}\n  */\n  {\n    \"id\": \"+0XWzJLB\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"my-2 fs-4\\\"],[14,\\\"data-test-sidebar-back-button\\\",\\\"\\\"],[12],[1,\\\"\\\\n    \\\"],[11,0],[24,\\\"role\\\",\\\"button\\\"],[4,[38,3],[\\\"click\\\",[30,0,[\\\"goBack\\\"]]],null],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],null,[[\\\"@icon\\\"],[\\\"arrow-left\\\"]],null],[1,\\\"  \\\"],[1,[30,1]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@buttonText\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"div\\\",\\\"on\\\",\\\"fa-icon\\\"]]\",\n    \"moduleName\": \"portal/components/sidebar/back-button.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"media\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n      _initializerDefineProperty(this, \"mobileMenu\", _descriptor3, this);\n    }\n    goBack() {\n      this.mobileMenu.closeMenu();\n      this.router.transitionTo(this.args.route);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"media\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"mobileMenu\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"goBack\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"goBack\"), _class.prototype), _class));\n});","define(\"portal/components/sidebar/entity-selector\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@ember/service\", \"@glimmer/tracking\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _service, _tracking, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    class='my-2 x-select ember-view form-control select-box d-block position-relative text-truncate'\n    {{on 'click' this.closeMobileMenu}}\n  >\n    {{this.sessionData.entity.name}}\n    {{#if this.orgSelectorOpen}}\n      <EntitySelector @onClose={{fn (mut this.orgSelectorOpen) false}} />\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"oGf3ijsc\",\n    \"block\": \"[[[11,0],[24,0,\\\"my-2 x-select ember-view form-control select-box d-block position-relative text-truncate\\\"],[4,[38,1],[\\\"click\\\",[30,0,[\\\"closeMobileMenu\\\"]]],null],[12],[1,\\\"\\\\n  \\\"],[1,[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"name\\\"]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"orgSelectorOpen\\\"]],[[[1,\\\"    \\\"],[8,[39,3],null,[[\\\"@onClose\\\"],[[28,[37,4],[[28,[37,5],[[30,0,[\\\"orgSelectorOpen\\\"]]],null],false],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[13]],[],false,[\\\"div\\\",\\\"on\\\",\\\"if\\\",\\\"entity-selector\\\",\\\"fn\\\",\\\"mut\\\"]]\",\n    \"moduleName\": \"portal/components/sidebar/entity-selector.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"mobileMenu\", _descriptor2, this);\n      _initializerDefineProperty(this, \"orgSelectorOpen\", _descriptor3, this);\n    }\n    changeEntity({\n      id\n    }) {\n      this.sessionData.changeEntity(id);\n    }\n    closeMobileMenu() {\n      this.orgSelectorOpen = true;\n      this.mobileMenu.closeMenu();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"mobileMenu\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"orgSelectorOpen\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"changeEntity\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"changeEntity\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeMobileMenu\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"closeMobileMenu\"), _class.prototype), _class));\n});","define(\"portal/components/sidebar/item\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <li\n    class='nav-item text-nowrap'\n    data-test-sidebar-item-is-collapsed='{{@isCollapsed}}'\n    data-test-sidebar-item\n  >\n    {{#if @isCollapsed}}\n      {{#if @href}}\n        <a\n          href={{@href}}\n          target='_blank'\n          rel='noopener noreferrer'\n          draggable={{false}}\n          class='nav-link link-secondary text-center\n            {{unless (media \"isDesktop\") \"mt-2 fs-4 py-2\"}}'\n          {{bootstrap-tooltip @title}}\n          data-bs-placement='right'\n        >\n          {{#if @icon}}\n            <FaIcon @icon={{@icon}} @fixedWidth={{true}} @size='lg' />\n          {{else}}\n            <span class='fs-3 text-uppercase'>{{this.displayWords}}</span>\n          {{/if}}\n  \n          {{#if @sup}}\n            <sup>{{@sup}}</sup>\n          {{/if}}\n        </a>\n      {{else if @model}}\n        <LinkTo\n          @route={{@route}}\n          @model={{@model}}\n          draggable={{false}}\n          class='nav-link link-secondary text-center\n            {{unless (media \"isDesktop\") \"mt-2 fs-4 py-2\"}}'\n          data-bs-placement='right'\n          {{bootstrap-tooltip @title}}\n        >\n          {{#if @icon}}\n            <FaIcon @icon={{@icon}} @fixedWidth={{true}} @size='lg' />\n          {{else}}\n            <span class='fs-3 text-uppercase'>{{this.displayWords}}</span>\n          {{/if}}\n  \n          {{#if @sup}}\n            <sup>{{@sup}}</sup>\n          {{/if}}\n        </LinkTo>\n      {{else}}\n        <LinkTo\n          @route={{@route}}\n          class='nav-link link-secondary text-center\n            {{unless (media \"isDesktop\") \"mt-2 fs-4 py-2\"}}'\n          draggable={{false}}\n          data-bs-placement='right'\n          {{bootstrap-tooltip @title}}\n        >\n          {{#if @icon}}\n            <FaIcon @icon={{@icon}} @fixedWidth={{true}} @size='lg' />\n          {{else}}\n            <span class='fs-3 text-uppercase'>{{this.displayWords}}</span>\n          {{/if}}\n  \n          {{#if @sup}}\n            <sup>{{@sup}}</sup>\n          {{/if}}\n        </LinkTo>\n      {{/if}}\n    {{else}}\n      {{#if @href}}\n        <a\n          href={{@href}}\n          target='_blank'\n          class='nav-link link-secondary\n            {{unless (media \"isDesktop\") \"mt-2 fs-4 py-2\"}}'\n          rel='noopener noreferrer'\n          {{on 'click' this.closeMobileMenu}}\n        >\n          {{#if @icon}}<FaIcon\n              @icon={{@icon}}\n              @fixedWidth={{true}}\n            />&nbsp;&nbsp;{{/if}}{{@title}}\n          {{#if @sup}}\n            <sup>{{@sup}}</sup>\n          {{/if}}\n        </a>\n      {{else if @model}}\n        <LinkTo\n          @route={{@route}}\n          @model={{@model}}\n          class='nav-link link-secondary\n            {{unless (media \"isDesktop\") \"mt-2 fs-4 py-2\"}}'\n          draggable={{false}}\n          {{on 'click' this.closeMobileMenu}}\n        >\n          {{#if @icon}}<FaIcon\n              @icon={{@icon}}\n              @fixedWidth={{true}}\n            />&nbsp;&nbsp;{{/if}}{{@title}}\n          {{#if @sup}}\n            <sup>{{@sup}}</sup>\n          {{/if}}\n        </LinkTo>\n      {{else}}\n        <LinkTo\n          @route={{@route}}\n          class='nav-link link-secondary\n            {{unless (media \"isDesktop\") \"mt-2 fs-4 py-2\"}}'\n          draggable={{false}}\n          {{on 'click' this.closeMobileMenu}}\n        >\n          {{#if @icon}}<FaIcon\n              @icon={{@icon}}\n              @fixedWidth={{true}}\n            />&nbsp;&nbsp;{{/if}}{{@title}}\n          {{#if @sup}}\n            <sup>{{@sup}}</sup>\n          {{/if}}\n        </LinkTo>\n      {{/if}}\n    {{/if}}\n  </li>\n  */\n  {\n    \"id\": \"B1WnJ3a8\",\n    \"block\": \"[[[10,\\\"li\\\"],[14,0,\\\"nav-item text-nowrap\\\"],[15,\\\"data-test-sidebar-item-is-collapsed\\\",[29,[[30,1]]]],[14,\\\"data-test-sidebar-item\\\",\\\"\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1],[[[41,[30,2],[[[1,\\\"      \\\"],[11,3],[16,6,[30,2]],[24,\\\"target\\\",\\\"_blank\\\"],[24,\\\"rel\\\",\\\"noopener noreferrer\\\"],[16,\\\"draggable\\\",false],[16,0,[29,[\\\"nav-link link-secondary text-center\\\\n          \\\",[52,[51,[28,[37,4],[\\\"isDesktop\\\"],null]],\\\"mt-2 fs-4 py-2\\\"]]]],[24,\\\"data-bs-placement\\\",\\\"right\\\"],[4,[38,5],[[30,3]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,4],[[[1,\\\"          \\\"],[8,[39,6],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[[30,4],true,\\\"lg\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,1],[14,0,\\\"fs-3 text-uppercase\\\"],[12],[1,[30,0,[\\\"displayWords\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,5],[[[1,\\\"          \\\"],[10,\\\"sup\\\"],[12],[1,[30,5]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,6],[[[1,\\\"      \\\"],[8,[39,9],[[16,\\\"draggable\\\",false],[16,0,[29,[\\\"nav-link link-secondary text-center\\\\n          \\\",[52,[51,[28,[37,4],[\\\"isDesktop\\\"],null]],\\\"mt-2 fs-4 py-2\\\"]]]],[24,\\\"data-bs-placement\\\",\\\"right\\\"],[4,[38,5],[[30,3]],null]],[[\\\"@route\\\",\\\"@model\\\"],[[30,7],[30,6]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,4],[[[1,\\\"          \\\"],[8,[39,6],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[[30,4],true,\\\"lg\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,1],[14,0,\\\"fs-3 text-uppercase\\\"],[12],[1,[30,0,[\\\"displayWords\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,5],[[[1,\\\"          \\\"],[10,\\\"sup\\\"],[12],[1,[30,5]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[8,[39,9],[[16,0,[29,[\\\"nav-link link-secondary text-center\\\\n          \\\",[52,[51,[28,[37,4],[\\\"isDesktop\\\"],null]],\\\"mt-2 fs-4 py-2\\\"]]]],[16,\\\"draggable\\\",false],[24,\\\"data-bs-placement\\\",\\\"right\\\"],[4,[38,5],[[30,3]],null]],[[\\\"@route\\\"],[[30,7]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,4],[[[1,\\\"          \\\"],[8,[39,6],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[[30,4],true,\\\"lg\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,1],[14,0,\\\"fs-3 text-uppercase\\\"],[12],[1,[30,0,[\\\"displayWords\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,5],[[[1,\\\"          \\\"],[10,\\\"sup\\\"],[12],[1,[30,5]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"]],[]]]],[]]]],[]],[[[41,[30,2],[[[1,\\\"      \\\"],[11,3],[16,6,[30,2]],[24,\\\"target\\\",\\\"_blank\\\"],[16,0,[29,[\\\"nav-link link-secondary\\\\n          \\\",[52,[51,[28,[37,4],[\\\"isDesktop\\\"],null]],\\\"mt-2 fs-4 py-2\\\"]]]],[24,\\\"rel\\\",\\\"noopener noreferrer\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"closeMobileMenu\\\"]]],null],[12],[1,\\\"\\\\n        \\\"],[41,[30,4],[[[8,[39,6],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[[30,4],true]],null],[1,\\\"  \\\"]],[]],null],[1,[30,3]],[1,\\\"\\\\n\\\"],[41,[30,5],[[[1,\\\"          \\\"],[10,\\\"sup\\\"],[12],[1,[30,5]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,6],[[[1,\\\"      \\\"],[8,[39,9],[[16,0,[29,[\\\"nav-link link-secondary\\\\n          \\\",[52,[51,[28,[37,4],[\\\"isDesktop\\\"],null]],\\\"mt-2 fs-4 py-2\\\"]]]],[16,\\\"draggable\\\",false],[4,[38,10],[\\\"click\\\",[30,0,[\\\"closeMobileMenu\\\"]]],null]],[[\\\"@route\\\",\\\"@model\\\"],[[30,7],[30,6]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[41,[30,4],[[[8,[39,6],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[[30,4],true]],null],[1,\\\"  \\\"]],[]],null],[1,[30,3]],[1,\\\"\\\\n\\\"],[41,[30,5],[[[1,\\\"          \\\"],[10,\\\"sup\\\"],[12],[1,[30,5]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[8,[39,9],[[16,0,[29,[\\\"nav-link link-secondary\\\\n          \\\",[52,[51,[28,[37,4],[\\\"isDesktop\\\"],null]],\\\"mt-2 fs-4 py-2\\\"]]]],[16,\\\"draggable\\\",false],[4,[38,10],[\\\"click\\\",[30,0,[\\\"closeMobileMenu\\\"]]],null]],[[\\\"@route\\\"],[[30,7]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[41,[30,4],[[[8,[39,6],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[[30,4],true]],null],[1,\\\"  \\\"]],[]],null],[1,[30,3]],[1,\\\"\\\\n\\\"],[41,[30,5],[[[1,\\\"          \\\"],[10,\\\"sup\\\"],[12],[1,[30,5]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"]],[]]]],[]]]],[]]],[13]],[\\\"@isCollapsed\\\",\\\"@href\\\",\\\"@title\\\",\\\"@icon\\\",\\\"@sup\\\",\\\"@model\\\",\\\"@route\\\"],false,[\\\"li\\\",\\\"if\\\",\\\"a\\\",\\\"unless\\\",\\\"media\\\",\\\"bootstrap-tooltip\\\",\\\"fa-icon\\\",\\\"span\\\",\\\"sup\\\",\\\"link-to\\\",\\\"on\\\"]]\",\n    \"moduleName\": \"portal/components/sidebar/item.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"mobileMenu\", _descriptor, this);\n      _initializerDefineProperty(this, \"media\", _descriptor2, this);\n    }\n    get displayWords() {\n      const words = this.args.title.split(' ');\n\n      // take the first two characters of the word\n      if (words.length === 1) return words[0].slice(0, 2);\n\n      // take the first characters from the first and last word\n      return `${words[0][0]}${words[words.length - 1][0]}`;\n    }\n    closeMobileMenu() {\n      if (!this.media.isDesktop) this.mobileMenu.closeMenu();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"mobileMenu\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"media\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"closeMobileMenu\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"closeMobileMenu\"), _class.prototype), _class));\n});","define(\"portal/components/sidebar/section\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _tracking, _object, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    class='text-uppercase text-secondary mx-3 mb-2 mt-3\n      {{unless (media \"isDesktop\") \"fs-4 \"}}'\n    data-test-sidebar-title\n  >\n    {{#if @isCollapsed}}\n      &nbsp;\n    {{else}}\n      {{#if (media 'isDesktop')}}\n        <div class='d-flex flex-column'>\n          <div class='text-truncate' style='max-width: 170px;'>\n            {{@title}}\n          </div>\n        </div>\n      {{else}}\n        <div\n          class='d-flex align-items-center'\n          role='button'\n          {{on\n            'click'\n            (fn\n              (mut this.showCollapsibleSection) (not this.showCollapsibleSection)\n            )\n          }}\n        >\n          <div class='d-flex flex-grow-1 justify-content-between'>\n            <div>\n              {{@title}}\n            </div>\n            <div>\n              <FaIcon\n                @icon={{if\n                  this.showCollapsibleSection\n                  'chevron-down'\n                  'chevron-right'\n                }}\n              />\n            </div>\n          </div>\n        </div>\n      {{/if}}\n    {{/if}}\n  </div>\n  \n  {{#if this.showCollapsibleSection}}\n    {{yield}}\n  {{/if}}\n  */\n  {\n    \"id\": \"A0eHPFP5\",\n    \"block\": \"[[[10,0],[15,0,[29,[\\\"text-uppercase text-secondary mx-3 mb-2 mt-3\\\\n    \\\",[52,[51,[28,[37,2],[\\\"isDesktop\\\"],null]],\\\"fs-4 \\\"]]]],[14,\\\"data-test-sidebar-title\\\",\\\"\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1],[[[1,\\\"     \\\\n\\\"]],[]],[[[41,[28,[37,2],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"d-flex flex-column\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"text-truncate\\\"],[14,5,\\\"max-width: 170px;\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,2]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[11,0],[24,0,\\\"d-flex align-items-center\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,4],[\\\"click\\\",[28,[37,5],[[28,[37,6],[[30,0,[\\\"showCollapsibleSection\\\"]]],null],[28,[37,7],[[30,0,[\\\"showCollapsibleSection\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 justify-content-between\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[12],[1,\\\"\\\\n            \\\"],[1,[30,2]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[12],[1,\\\"\\\\n            \\\"],[8,[39,8],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"showCollapsibleSection\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"showCollapsibleSection\\\"]],[[[1,\\\"  \\\"],[18,3,null],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@isCollapsed\\\",\\\"@title\\\",\\\"&default\\\"],false,[\\\"div\\\",\\\"unless\\\",\\\"media\\\",\\\"if\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"not\\\",\\\"fa-icon\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"portal/components/sidebar/section.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"media\", _descriptor, this);\n      _initializerDefineProperty(this, \"mobileMenu\", _descriptor2, this);\n      _initializerDefineProperty(this, \"showCollapsibleSection\", _descriptor3, this);\n    }\n    closeMobileMenu() {\n      if (!this.media.isDesktop) this.mobileMenu.closeMenu();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"media\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"mobileMenu\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"showCollapsibleSection\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.media.isDesktop;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"closeMobileMenu\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"closeMobileMenu\"), _class.prototype), _class));\n});","define(\"portal/components/sidebar/title\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    class='text-uppercase text-secondary mx-3 mb-2 mt-4\n      {{unless (media \"isDesktop\") \"fs-4 \"}}'\n    data-test-sidebar-title-is-collapsed='{{@isCollapsed}}'\n    data-test-sidebar-title\n  >\n    {{#if @isCollapsed}}\n      &nbsp;\n    {{else}}\n      <div class='d-flex flex-column'>\n        <div class='text-truncate' style='max-width: 170px;'>\n          {{@title}}\n        </div>\n      </div>\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"ihhCZLxd\",\n    \"block\": \"[[[10,0],[15,0,[29,[\\\"text-uppercase text-secondary mx-3 mb-2 mt-4\\\\n    \\\",[52,[51,[28,[37,2],[\\\"isDesktop\\\"],null]],\\\"fs-4 \\\"]]]],[15,\\\"data-test-sidebar-title-is-collapsed\\\",[29,[[30,1]]]],[14,\\\"data-test-sidebar-title\\\",\\\"\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1],[[[1,\\\"     \\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"d-flex flex-column\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"text-truncate\\\"],[14,5,\\\"max-width: 170px;\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,2]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"@isCollapsed\\\",\\\"@title\\\"],false,[\\\"div\\\",\\\"unless\\\",\\\"media\\\",\\\"if\\\"]]\",\n    \"moduleName\": \"portal/components/sidebar/title.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component2.default {});\n});","define(\"portal/components/skeleton-screens/table\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/template-factory\"], function (_exports, _component, _component2, _tracking, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <table class='table table-bordered skeleton-screens-table'>\n    <thead class='table-light'>\n      <tr>\n        {{! template-lint-disable no-unused-block-params }}\n        {{#each this.columns as |col|}}\n          <th>\n            <div class='skeleton-screens-table__line'></div>\n          </th>\n        {{/each}}\n      </tr>\n    </thead>\n    <tbody>\n      {{! template-lint-disable no-unused-block-params }}\n      {{#each this.rows as |row|}}\n        <tr>\n          {{#each this.columns as |col|}}\n            <td>\n              <div class='skeleton-screens-table__line'></div>\n            </td>\n          {{/each}}\n        </tr>\n      {{/each}}\n    </tbody>\n  </table>\n  */\n  {\n    \"id\": \"P0CKq2qt\",\n    \"block\": \"[[[10,\\\"table\\\"],[14,0,\\\"table table-bordered skeleton-screens-table\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"thead\\\"],[14,0,\\\"table-light\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,4],[[28,[37,4],[[30,0,[\\\"columns\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"skeleton-screens-table__line\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,4],[[28,[37,4],[[30,0,[\\\"rows\\\"]]],null]],null],null,[[[1,\\\"      \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,4],[[28,[37,4],[[30,0,[\\\"columns\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"skeleton-screens-table__line\\\"],[12],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"col\\\",\\\"row\\\",\\\"col\\\"],false,[\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"each\\\",\\\"-track-array\\\",\\\"th\\\",\\\"div\\\",\\\"tbody\\\",\\\"td\\\"]]\",\n    \"moduleName\": \"portal/components/skeleton-screens/table.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"columns\", _descriptor, this);\n      _initializerDefineProperty(this, \"rows\", _descriptor2, this);\n      this.columns = Array.from(new Array(this.args.columnLength), (x, i) => i + 1);\n      this.rows = Array.from(new Array(this.args.rowLength), (x, i) => i + 1);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"columns\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"rows\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _class));\n});","define(\"portal/components/sortable-list\", [\"exports\", \"@ember/component\", \"@ember/object/computed\", \"jquery\", \"@ember/object\", \"portal/components/sortable-list\", \"@ember/template-factory\"], function (_exports, _component, _computed, _jquery, _object, _sortableList, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object/computed\",0,\"@ember/component\",0,\"jquery\",0,\"@ember/object\",0,\"portal/components/sortable-list\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#each this.sortedContent as |item|}}\n    {{#if this.hasBlock}}\n      {{yield item}}\n    {{else}}\n      <li data-id={{item.id}}>{{get item this.property}}</li>\n    {{/if}}\n  {{/each}}\n  */\n  {\n    \"id\": \"JdfstljS\",\n    \"block\": \"[[[42,[28,[37,1],[[28,[37,1],[[30,0,[\\\"sortedContent\\\"]]],null]],null],null,[[[41,[30,0,[\\\"hasBlock\\\"]],[[[1,\\\"    \\\"],[18,2,[[30,1]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,\\\"li\\\"],[15,\\\"data-id\\\",[30,1,[\\\"id\\\"]]],[12],[1,[28,[35,5],[[30,1],[30,0,[\\\"property\\\"]]],null]],[13],[1,\\\"\\\\n\\\"]],[]]]],[1]],null]],[\\\"item\\\",\\\"&default\\\"],false,[\\\"each\\\",\\\"-track-array\\\",\\\"if\\\",\\\"yield\\\",\\\"li\\\",\\\"get\\\"]]\",\n    \"moduleName\": \"portal/components/sortable-list.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    layout: _sortableList.default,\n    tagName: 'ol',\n    classNames: ['sortable-list'],\n    content: null,\n    property: 'value',\n    index: 'sortIndex',\n    sortBy: (0, _object.computed)('index', function () {\n      return [(0, _object.get)(this, 'index')];\n    }),\n    // caution: array computed macros were removed in ember 4\n    sortedContent: (0, _computed.sort)('content', 'sortBy'),\n    sort() {\n      // scope the jquery find operation to the native element\n      (0, _jquery.default)(this.element).find('li').each((index, li) => {\n        const id = (0, _jquery.default)(li).attr('data-id');\n        const item = (0, _object.get)(this, 'content').findBy('id', id);\n        if (item) {\n          (0, _object.set)(item, 'sortIndex', index);\n        }\n      });\n    },\n    didInsertElement() {\n      this._super(...arguments);\n      (0, _jquery.default)(this.element).nativeSortable({\n        animation: 250,\n        onSort: () => this.sort()\n      });\n    }\n  }));\n});","define(\"portal/components/stage-payment-task-selector-row\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@ember/runloop\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _runloop, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/runloop\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! template-lint-disable no-nested-interactive }}\n  <@dsl.Draggable>\n    {{#if (media 'isDesktop')}}\n      <@dsl.DragHandle>\n        <div\n          role='treeitem'\n          class='stage-payment-task-selector-row__item-row'\n          {{on 'click' this.toggleExpanded}}\n          {{on 'mouseover' (fn (mut this.showReset) true)}}\n          {{on 'mouseout' (fn (mut this.showReset) false)}}\n        >\n          <div\n            style='min-height: 33.5px;'\n            class='d-flex justify-content-between align-items-center'\n          >\n            <div class='d-flex align-items-center'>\n              <div>\n                {{#if @item.children.length}}\n                  <FaIcon\n                    @icon={{if @item.expanded 'chevron-down' 'chevron-right'}}\n                    @fixedWidth={{true}}\n                  />\n                {{else}}\n                  <FaIcon @icon='minus' @fixedWidth={{true}} class='invisible' />\n                {{/if}}\n              </div>\n              <div class='mx-2'>\n                {{@item.task.name}}\n              </div>\n              {{#if this.isLinkedInOtherStages}}\n                <span class='badge bg-info' style='font-size: 11px;'>\n                  {{t\n                    'components.stage-payment-task-selector-row.In other stage'\n                  }}\n                </span>\n              {{/if}}\n              {{#if this.finishedTask}}\n                <div class='mx-2'>\n                  <FaIcon @icon='check-circle' class='text-success' />\n                </div>\n              {{/if}}\n            </div>\n            <div class='d-flex align-items-center'>\n              {{#unless @item.children.length}}\n                <div class='mx-2'>\n                  <FormattedInput\n                    @class='form-control'\n                    style='width: 75px'\n                    @format='percentage'\n                    autocomplete='off'\n                    @disabled={{@disabled}}\n                    @number={{this.completionPercentage}}\n                    @formatterOptions={{hash dashZero=false}}\n                    @update={{this.onProgressTaskUpdate}}\n                    {{on 'click' this.noop}}\n                  />\n                </div>\n              {{/unless}}\n              <div class='mx-2 d-flex align-items-center'>\n                <IndeterminateCheckbox\n                  @checked={{@item.checked}}\n                  @indeterminate={{@item.indeterminate}}\n                  @onChange={{this.selectTask}}\n                  disabled={{@disabled}}\n                  @class='md-size-checkbox m-0'\n                />\n              </div>\n              <div\n                class='mx-2\n                  {{if\n                    (and this.completionPercentageHasChanged this.showReset)\n                    \"visible\"\n                    \"invisible\"\n                  }}'\n              >\n                <FaIcon @icon='undo' role='button' {{on 'click' this.reset}} />\n              </div>\n            </div>\n          </div>\n        </div>\n      </@dsl.DragHandle>\n    {{/if}}\n    {{#if @item.expanded}}\n      <div class='ms-4'>\n        <@dsl.Children />\n        <StagePaymentTaskSelectorRow\n          @disabled={{@disabled}}\n          @currentStagePayment={{@currentStagePayment}}\n          @allStageLinkedTasks={{@allStageLinkedTasks}}\n        />\n      </div>\n    {{/if}}\n  </@dsl.Draggable>\n  */\n  {\n    \"id\": \"Vl5xTlAO\",\n    \"block\": \"[[[8,[30,1,[\\\"Draggable\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"DragHandle\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[11,0],[24,\\\"role\\\",\\\"treeitem\\\"],[24,0,\\\"stage-payment-task-selector-row__item-row\\\"],[4,[38,3],[\\\"click\\\",[30,0,[\\\"toggleExpanded\\\"]]],null],[4,[38,3],[\\\"mouseover\\\",[28,[37,4],[[28,[37,5],[[30,0,[\\\"showReset\\\"]]],null],true],null]],null],[4,[38,3],[\\\"mouseout\\\",[28,[37,4],[[28,[37,5],[[30,0,[\\\"showReset\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,5,\\\"min-height: 33.5px;\\\"],[14,0,\\\"d-flex justify-content-between align-items-center\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"children\\\",\\\"length\\\"]],[[[1,\\\"                \\\"],[8,[39,6],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[[52,[30,2,[\\\"expanded\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"],true]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[8,[39,6],[[24,0,\\\"invisible\\\"]],[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"minus\\\",true]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"mx-2\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,2,[\\\"task\\\",\\\"name\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLinkedInOtherStages\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"badge bg-info\\\"],[14,5,\\\"font-size: 11px;\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,8],[\\\"components.stage-payment-task-selector-row.In other stage\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"finishedTask\\\"]],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"mx-2\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,6],[[24,0,\\\"text-success\\\"]],[[\\\"@icon\\\"],[\\\"check-circle\\\"]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,2,[\\\"children\\\",\\\"length\\\"]]],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"mx-2\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,10],[[24,5,\\\"width: 75px\\\"],[24,\\\"autocomplete\\\",\\\"off\\\"],[4,[38,3],[\\\"click\\\",[30,0,[\\\"noop\\\"]]],null]],[[\\\"@class\\\",\\\"@format\\\",\\\"@disabled\\\",\\\"@number\\\",\\\"@formatterOptions\\\",\\\"@update\\\"],[\\\"form-control\\\",\\\"percentage\\\",[30,3],[30,0,[\\\"completionPercentage\\\"]],[28,[37,11],null,[[\\\"dashZero\\\"],[false]]],[30,0,[\\\"onProgressTaskUpdate\\\"]]]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,0],[14,0,\\\"mx-2 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,12],[[16,\\\"disabled\\\",[30,3]]],[[\\\"@checked\\\",\\\"@indeterminate\\\",\\\"@onChange\\\",\\\"@class\\\"],[[30,2,[\\\"checked\\\"]],[30,2,[\\\"indeterminate\\\"]],[30,0,[\\\"selectTask\\\"]],\\\"md-size-checkbox m-0\\\"]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[15,0,[29,[\\\"mx-2\\\\n                \\\",[52,[28,[37,13],[[30,0,[\\\"completionPercentageHasChanged\\\"]],[30,0,[\\\"showReset\\\"]]],null],\\\"visible\\\",\\\"invisible\\\"]]]],[12],[1,\\\"\\\\n              \\\"],[8,[39,6],[[24,\\\"role\\\",\\\"button\\\"],[4,[38,3],[\\\"click\\\",[30,0,[\\\"reset\\\"]]],null]],[[\\\"@icon\\\"],[\\\"undo\\\"]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,2,[\\\"expanded\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"ms-4\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[30,1,[\\\"Children\\\"]],null,null,null],[1,\\\"\\\\n      \\\"],[8,[39,14],null,[[\\\"@disabled\\\",\\\"@currentStagePayment\\\",\\\"@allStageLinkedTasks\\\"],[[30,3],[30,4],[30,5]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]]]]],[\\\"@dsl\\\",\\\"@item\\\",\\\"@disabled\\\",\\\"@currentStagePayment\\\",\\\"@allStageLinkedTasks\\\"],false,[\\\"if\\\",\\\"media\\\",\\\"div\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"fa-icon\\\",\\\"span\\\",\\\"t\\\",\\\"unless\\\",\\\"formatted-input\\\",\\\"hash\\\",\\\"indeterminate-checkbox\\\",\\\"and\\\",\\\"stage-payment-task-selector-row\\\"]]\",\n    \"moduleName\": \"portal/components/stage-payment-task-selector-row.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class extends _component2.default {\n    toggleExpanded(event) {\n      if (!this.args.item.children.length) return;\n      this.args.item.expanded = !this.args.item.expanded;\n      event.stopPropagation();\n      event.preventDefault();\n    }\n    get isLinkedInOtherStages() {\n      let {\n        allStageLinkedTasks,\n        currentStagePayment\n      } = this.args;\n      let taskId = this.args.item.task.id;\n      return (allStageLinkedTasks || []).some(link => link.belongsTo('task').id() === taskId && link.belongsTo('stagePayment').id() !== currentStagePayment.id);\n    }\n    noop(event) {\n      event.stopPropagation();\n      event.preventDefault();\n    }\n    onProgressTaskUpdate(value) {\n      let percentage = value;\n      if (value > 1) percentage = 1;\n      (0, _runloop.next)(() => {\n        this.args.item.completionPercentage = percentage;\n      });\n    }\n    get completionPercentage() {\n      if (this.args.item.completionPercentage !== null) return this.args.item.completionPercentage;\n      return this.args.item.completionPercentage || this.args.item.existingCompletionPercentage || this.args.item.defaultCompletionPercentage;\n    }\n    get directTask() {\n      return this.args.item.children[0];\n    }\n    get finishedTask() {\n      const isDirect = !this.args.item.children.length;\n      const isChecked = this.args.item.checked;\n      const isCompleted = Boolean(this.args.item.progress >= this.completionPercentage);\n      return isDirect && isChecked && isCompleted;\n    }\n    reset(event) {\n      event.stopPropagation();\n      event.preventDefault();\n      (0, _runloop.next)(() => {\n        const selectTaskOnChildren = item => {\n          item.completionPercentage = null;\n          if (item.children?.length) {\n            item.children.forEach(i => selectTaskOnChildren(i));\n          }\n        };\n        selectTaskOnChildren(this.args.item);\n      });\n    }\n    get completionPercentageHasChanged() {\n      if (this.args.item.completionPercentage === null) return false;\n      return this.args.item.completionPercentage !== this.args.item.defaultCompletionPercentage || this.args.item.completionPercentage !== this.args.item.existingCompletionPercentage;\n    }\n    selectTask(event) {\n      event.stopPropagation();\n      event.preventDefault();\n      let newIsSelected = !this.args.item.selected;\n      (0, _runloop.next)(() => {\n        const selectTaskOnChildren = item => {\n          if (!item.completionPercentage && newIsSelected) item.completionPercentage = 1;\n          if (!newIsSelected) item.completionPercentage = 0;\n          if (item.children?.length) {\n            item.children.forEach(i => selectTaskOnChildren(i));\n          }\n        };\n        selectTaskOnChildren(this.args.item);\n      });\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"toggleExpanded\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleExpanded\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"noop\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"noop\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onProgressTaskUpdate\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onProgressTaskUpdate\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"reset\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"reset\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"selectTask\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"selectTask\"), _class.prototype), _class));\n});","define(\"portal/components/stage-payment-task-selector\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/service\", \"@ember/array\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _tracking, _service, _array, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.TaskContainer = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _class2, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"@ember/array\",0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <ModalDialog\n    @containerClass='modal-content w-auto'\n    @translucentOverlay={{true}}\n    @onClose={{@onClose}}\n    @overlayClass='modal'\n  >\n    <div class='modal-header'>\n      <h3 class='modal-title'>\n        {{t 'components.stage-payment-task-selector.Select tasks'}}\n      </h3>\n    </div>\n  \n    <div class='modal-body' style='max-width: 768px'>\n      {{#if this.isLoading}}\n        <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n      {{else}}\n        <p class='mt-0'>\n          {{t 'components.stage-payment-task-selector.selectTasksExplanation'}}\n        </p>\n        <div\n          class='bg-white border rounded stage-payment-task-selector__task-container'\n        >\n          {{#if this.taskContainers.length}}\n            <DragSortList\n              @itemComponent={{component\n                'stage-payment-task-selector-row'\n                disabled=(not @editable)\n                allStageLinkedTasks=@allStageLinkedTasks\n                currentStagePayment=@stagePayment\n              }}\n              @disableDragging={{true}}\n              @list={{this.taskContainers}}\n            />\n          {{else}}\n            <div class='mt-5 d-flex flex-column align-items-center'>\n              <FaIcon @icon='tasks' @size='2x' class='mt-0 mb-3' />\n              <p class='fs-4 mt-0 mb-3'>\n                <b>\n                  {{t 'shared.progress.thisProjectDoesNotHaveAnyTasksYet'}}\n                </b>\n              </p>\n              <LinkTo\n                @route='entity.builda-price.projects.project.tasks'\n                @model={{@project.id}}\n                class='btn btn-primary'\n              >\n                {{t 'shared.progress.Create some tasks'}}\n              </LinkTo>\n            </div>\n          {{/if}}\n        </div>\n      {{/if}}\n    </div>\n  \n    <div class='modal-footer text-right'>\n      <button\n        type='button'\n        class='btn btn-secondary text-white text-nowrap m-1'\n        {{on 'click' @onClose}}\n        data-test-stage-payment-task-selector-cancel-button\n      >\n        {{t 'common.Cancel'}}\n      </button>\n  \n      {{#if @editable}}\n        <button\n          type='button'\n          disabled={{or this.isLoading this.isSaving}}\n          class='btn btn-primary text-nowrap m-1'\n          {{on 'click' (perform this.saveStagePaymentTasks)}}\n        >\n          {{#if this.isSaving}}\n            <span class='spinner-border spinner-border-sm'></span>&nbsp;&nbsp;{{t\n              'common.Saving'\n            }}&hellip;\n          {{else}}\n            {{t 'common.Save'}}\n          {{/if}}\n        </button>\n      {{/if}}\n    </div>\n  </ModalDialog>\n  */\n  {\n    \"id\": \"gTJ3cuJs\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@containerClass\\\",\\\"@translucentOverlay\\\",\\\"@onClose\\\",\\\"@overlayClass\\\"],[\\\"modal-content w-auto\\\",true,[30,1],\\\"modal\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h3\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,3],[\\\"components.stage-payment-task-selector.Select tasks\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"modal-body\\\"],[14,5,\\\"max-width: 768px\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"      \\\"],[8,[39,5],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,3],[\\\"components.stage-payment-task-selector.selectTasksExplanation\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"bg-white border rounded stage-payment-task-selector__task-container\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"taskContainers\\\",\\\"length\\\"]],[[[1,\\\"          \\\"],[8,[39,7],null,[[\\\"@itemComponent\\\",\\\"@disableDragging\\\",\\\"@list\\\"],[[50,\\\"stage-payment-task-selector-row\\\",0,null,[[\\\"disabled\\\",\\\"allStageLinkedTasks\\\",\\\"currentStagePayment\\\"],[[28,[37,9],[[30,2]],null],[30,3],[30,4]]]],true,[30,0,[\\\"taskContainers\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"mt-5 d-flex flex-column align-items-center\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,10],[[24,0,\\\"mt-0 mb-3\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"tasks\\\",\\\"2x\\\"]],null],[1,\\\"\\\\n            \\\"],[10,2],[14,0,\\\"fs-4 mt-0 mb-3\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"b\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,3],[\\\"shared.progress.thisProjectDoesNotHaveAnyTasksYet\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[8,[39,12],[[24,0,\\\"btn btn-primary\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.builda-price.projects.project.tasks\\\",[30,5,[\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[1,[28,[35,3],[\\\"shared.progress.Create some tasks\\\"],null]],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white text-nowrap m-1\\\"],[24,\\\"data-test-stage-payment-task-selector-cancel-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,14],[\\\"click\\\",[30,1]],null],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,3],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,2],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[16,\\\"disabled\\\",[28,[37,15],[[30,0,[\\\"isLoading\\\"]],[30,0,[\\\"isSaving\\\"]]],null]],[24,0,\\\"btn btn-primary text-nowrap m-1\\\"],[24,4,\\\"button\\\"],[4,[38,14],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"saveStagePaymentTasks\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isSaving\\\"]],[[[1,\\\"          \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,3],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,3],[\\\"common.Save\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]]]],[\\\"@onClose\\\",\\\"@editable\\\",\\\"@allStageLinkedTasks\\\",\\\"@stagePayment\\\",\\\"@project\\\"],false,[\\\"modal-dialog\\\",\\\"div\\\",\\\"h3\\\",\\\"t\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"p\\\",\\\"drag-sort-list\\\",\\\"component\\\",\\\"not\\\",\\\"fa-icon\\\",\\\"b\\\",\\\"link-to\\\",\\\"button\\\",\\\"on\\\",\\\"or\\\",\\\"perform\\\",\\\"span\\\"]]\",\n    \"moduleName\": \"portal/components/stage-payment-task-selector.hbs\",\n    \"isStrictMode\": false\n  });\n  let TaskContainer = _exports.TaskContainer = (_class = class TaskContainer {\n    get isEveryChildSelected() {\n      return function checkChildren(children = []) {\n        return children.every(child => {\n          if (!child.checked) return false;\n          if (child.children?.length) return checkChildren(child.children);\n          return true;\n        });\n      }(this.children);\n    }\n    get isSomeSelected() {\n      return function checkChildren(children = []) {\n        return children.some(child => {\n          if (child.checked) return true;\n          if (child.children?.length) return checkChildren(child.children);\n          return false;\n        });\n      }(this.children);\n    }\n    get selected() {\n      if (this.completionPercentage !== null) return Boolean(this.completionPercentage);\n      return Boolean(this.completionPercentage || this.existingCompletionPercentage);\n    }\n    get checked() {\n      if (this.children?.length) return this.isEveryChildSelected;\n      return this.selected;\n    }\n    get indeterminate() {\n      if (this.checked) return false;\n      if (!this.children?.length) return false;\n      return this.isSomeSelected;\n    }\n    constructor(store, stagePayment, latestStagePaymentTasks, task, isDirect) {\n      _defineProperty(this, \"task\", void 0);\n      _defineProperty(this, \"isDirect\", false);\n      _defineProperty(this, \"progress\", 0);\n      _initializerDefineProperty(this, \"children\", _descriptor, this);\n      _initializerDefineProperty(this, \"expanded\", _descriptor2, this);\n      _initializerDefineProperty(this, \"defaultCompletionPercentage\", _descriptor3, this);\n      _initializerDefineProperty(this, \"completionPercentage\", _descriptor4, this);\n      _initializerDefineProperty(this, \"existingCompletionPercentage\", _descriptor5, this);\n      _defineProperty(this, \"largestLinkTaskToStagePayment\", void 0);\n      _defineProperty(this, \"stagePayment\", void 0);\n      _defineProperty(this, \"store\", void 0);\n      this.task = task;\n      this.store = store;\n      this.stagePayment = stagePayment;\n      this.largestLinkTaskToStagePayment = latestStagePaymentTasks?.find(spt => spt.task === this.task.id);\n      if (this.largestLinkTaskToStagePayment) {\n        this.existingCompletionPercentage = this.largestLinkTaskToStagePayment.existingCompletionPercentage || 0;\n        this.defaultCompletionPercentage = this.largestLinkTaskToStagePayment.defaultCompletionPercentage || 0;\n        this.progress = this.largestLinkTaskToStagePayment.progress;\n      }\n      this.isDirect = isDirect;\n      if (task.activeChildren?.length && !isDirect) {\n        this.children = (0, _array.A)([new TaskContainer(this.store, this.stagePayment, latestStagePaymentTasks, task, true), ...task.activeChildren.sortBy('path').map(c => new TaskContainer(this.store, this.stagePayment, latestStagePaymentTasks, c))]);\n      }\n    }\n    save() {\n      // skip saving if this is a parent task or there's no change\n      if (this.children.length || this.completionPercentage === null) return;\n      const currentStageLink = this.store.peekAll('link-task-to-stage-payment')?.toArray().find(link => link.belongsTo('task').value() === this.task && link.belongsTo('stagePayment').value() === this.stagePayment);\n      if (currentStageLink) {\n        if (this.completionPercentage === 0) {\n          // remove link if completion is zero\n          return currentStageLink.destroyRecord();\n        }\n\n        // update existing link\n        currentStageLink.completionPercentage = this.completionPercentage;\n        return currentStageLink.save();\n      }\n      if (this.completionPercentage !== 0) {\n        // create new link if it doesn't exist and completion is non-zero\n        return this.store.createRecord('link-task-to-stage-payment', {\n          task: this.task,\n          stagePayment: this.stagePayment,\n          completionPercentage: this.completionPercentage\n        }).save();\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"children\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return (0, _array.A)([]);\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"expanded\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"defaultCompletionPercentage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"completionPercentage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"existingCompletionPercentage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _class);\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class2 = class _class2 extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor6, this);\n      _initializerDefineProperty(this, \"store\", _descriptor7, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor8, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor9, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor0, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor1, this);\n      _initializerDefineProperty(this, \"taskContainers\", _descriptor10, this);\n      _initializerDefineProperty(this, \"tasks\", _descriptor11, this);\n      _defineProperty(this, \"getProgressVersionValues\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const filter = {\n            and: [{\n              field: 'entity',\n              op: 'EQ',\n              value: this.sessionData.entity.id\n            }, {\n              field: 'version',\n              op: 'EQ',\n              value: this.args.project.belongsTo('currentProgressVersion').id()\n            }]\n          };\n          const progressVersionValues = yield this.store.query('progress-version-value', {\n            filter\n          });\n          return progressVersionValues;\n        }\n      }), null, \"getProgressVersionValues\", null));\n      _defineProperty(this, \"initTaskContainers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project) {\n          this.tasks = yield this.store.simpleQuery('task', {\n            project: project.id,\n            status: {\n              $in: ['ACTIVE', 'DRAFT_CREATED']\n            }\n          });\n          const progressVersionValues = yield this.getProgressVersionValues.perform();\n          const groupStageLinkedTasks = this.args.allStageLinkedTasks.reduce((acc, obj1) => {\n            const existing = acc.find(item => item.task === obj1.belongsTo('task').id());\n            if (existing) {\n              existing.defaultCompletionPercentage = Math.max(existing.defaultCompletionPercentage, obj1.completionPercentage);\n            } else {\n              const match = this.args.currentStageLinkedTasks.find(obj2 => obj2.belongsTo('task').id() === obj1.belongsTo('task').id());\n              const progressValue = progressVersionValues.find(pv => pv.belongsTo('task').id() === obj1.belongsTo('task').id());\n              acc.push({\n                defaultCompletionPercentage: obj1.completionPercentage,\n                task: obj1.belongsTo('task').id(),\n                progress: progressValue?.progress || 0,\n                existingCompletionPercentage: match?.completionPercentage || 0,\n                id: obj1.id\n              });\n            }\n            return acc;\n          }, []);\n          this.taskContainers = (0, _array.A)((this.tasks || []).filter(task => !task.belongsTo('parent').value()).sortBy('path').map(task => new TaskContainer(this.store, this.args.stagePayment, groupStageLinkedTasks, task)));\n        }\n      }), null, \"initTaskContainers\", null));\n      _defineProperty(this, \"saveStagePaymentTasks\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            const saveStagePaymentTasks = [];\n            (function getStagePaymentTasks(taskContainers) {\n              taskContainers.forEach(container => {\n                saveStagePaymentTasks.push(container.save());\n                if (container.children) getStagePaymentTasks(container.children);\n              });\n            })(this.taskContainers);\n            yield Promise.all(saveStagePaymentTasks);\n            yield this.getProgressVersionValues.perform();\n            this.args.onClose();\n            this.notifications.success(this.intl.t('components.stage-payment-task-selector.Successfully saved included tasks'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('components.stage-payment-task-selector.somethingWentWrongWhileSavingIncludedTasks'),\n              error\n            });\n          }\n        }\n      }), null, \"saveStagePaymentTasks\", null));\n      this.initTaskContainers.perform(this.args.project);\n    }\n    get isLoading() {\n      return this.initTaskContainers.isRunning;\n    }\n    get isSaving() {\n      return this.saveStagePaymentTasks.isRunning;\n    }\n  }, _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"taskContainers\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"tasks\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2));\n});","define(\"portal/components/sticky-top\", [\"exports\", \"@ember/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _component.default.extend({\n    classNames: ['sticky-top']\n  });\n});","define(\"portal/components/strategies-table\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@ember/utils\", \"@ember/template-factory\"], function (_exports, _component, _object, _utils, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"@ember/utils\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <thead>\n    <tr>\n      <th width='19%'>Name</th>\n      <th width='27%' colspan='2'>Current</th>\n      <th width='27%' colspan='2'>Target\n        <span class='strategies-table__heading-helper-text'>Click figures to edit</span></th>\n      <th width='27%' colspan='2'>Difference</th>\n      <th width='0' class='text-center'><FaIcon @icon='trash' /></th>\n    </tr>\n    <tr class='data-table__subheading-row'>\n      <th></th>\n      <th width='13.5%'>Month</th>\n      <th width='13.5%'>YTD</th>\n      <th width='13.5%'>Month</th>\n      <th width='13.5%'>YTD</th>\n      <th width='13.5%'>Month</th>\n      <th width='13.5%'>YTD</th>\n      <th></th>\n    </tr>\n  </thead>\n  \n  <tbody>\n    {{#each this.targets as |target|}}\n      <tr>\n        <td\n          class='strategies-table__target-name\n            {{if\n              target.hasBreakdown\n              \"strategies-table__target-name--has-breakdown\"\n            }}\n            {{if\n              target.breakdown.length\n              \"strategies-table__target-name--breakdown-not-empty\"\n            }}\n            '\n        >\n          {{#if target.hasBreakdown}}\n            <a class='link' {{action 'toggleBreakdownVisibility' target}}>\n              {{#if target.hasBreakdown}}\n                <FaIcon\n                  @icon={{if target.showBreakdown 'angle-down' 'angle-right'}}\n                />\n              {{/if}}\n              <span>{{target.name}}</span>\n            </a>\n          {{else}}\n            {{target.name}}\n          {{/if}}\n        </td>\n  \n        <td class='text-right' colspan='{{if target.showYtd 1 2}}'>\n          {{#if (eq target.metric.format 'CURRENCY')}}\n            {{number-format\n              target.monthActual\n              maximumFractionDigits=0\n              dashZero=true\n            }}\n          {{else}}\n            {{number-format\n              target.monthActual\n              style=(get this.formattedStyle target.metric.format)\n              dashZero=true\n              maximumFractionDigits=0\n            }}\n          {{/if}}\n        </td>\n  \n        {{#if target.showYtd}}\n          <td class='text-right'>\n            {{#if (eq target.metric.format 'CURRENCY')}}\n              {{number-format\n                target.ytdActual\n                dashZero=true\n                maximumFractionDigits=0\n              }}\n            {{else}}\n              {{number-format\n                target.ytdActual\n                style=(get this.formattedStyle target.metric.format)\n                dashZero=true\n                maximumFractionDigits=0\n              }}\n            {{/if}}\n          </td>\n        {{/if}}\n  \n        <td colspan='{{if target.showYtd 1 2}}'>\n          <FormattedInput\n            @class='data-table__cell-cover text-input text-right'\n            @number={{target.monthTarget}}\n            @format={{target.metric.format}}\n            @update={{fn (mut target.monthTarget)}}\n          />\n        </td>\n  \n        {{#if target.showYtd}}\n          <td>\n            <FormattedInput\n              @class='data-table__cell-cover text-input text-right'\n              @number={{target.ytdTarget}}\n              @format={{target.metric.format}}\n              @update={{fn (mut target.ytdTarget)}}\n            />\n          </td>\n        {{/if}}\n  \n        <td class='text-right' colspan='{{if target.showYtd 1 2}}'>\n          {{#unless (eq target.monthDifference null)}}\n            <ValueChangeIndicator\n              @difference={{target.monthDifference}}\n              @useColor={{target.isBalanceTarget}}\n              @increaseIsGood={{target.increaseIsGood}}\n            />\n            {{#if (eq target.metric.format 'CURRENCY')}}\n              {{number-format\n                target.monthDifference\n                dashZero=true\n                maximumFractionDigits=0\n              }}\n            {{else}}\n              {{number-format\n                target.monthDifference\n                style=(get this.formattedStyle target.metric.format)\n                dashZero=true\n                maximumFractionDigits=0\n              }}\n            {{/if}}\n          {{/unless}}\n        </td>\n  \n        {{#if target.showYtd}}\n          <td class='text-right'>\n            {{#unless (eq target.ytdDifference null)}}\n              <ValueChangeIndicator\n                @difference={{target.ytdDifference}}\n                @useColor={{target.isBalanceTarget}}\n                @increaseIsGood={{target.increaseIsGood}}\n              />\n              {{#if (eq target.metric.format 'CURRENCY')}}\n                {{number-format\n                  target.ytdDifference\n                  dashZero=true\n                  maximumFractionDigits=0\n                }}\n              {{else}}\n                {{number-format\n                  target.ytdDifference\n                  style=(get this.formattedStyle target.metric.format)\n                  dashZero=true\n                  maximumFractionDigits=0\n                }}\n              {{/if}}\n            {{/unless}}\n          </td>\n        {{/if}}\n  \n        <td class='text-center'>\n          <button\n            class='text-button text-button--plain data-table__cell-cover'\n            type='button'\n            {{action this.removeTarget target}}\n          ><FaIcon @icon='times' /></button>\n        </td>\n      </tr>\n  \n      {{#if (and target.hasBreakdown target.showBreakdown)}}\n        <tr>\n          <td\n            class='strategies-table__strategy-breakdown'\n            colspan='{{if target.showYtd 8 5}}'\n          >\n            <table class='data-table strategy-breakdown-table'>\n              <thead>\n                <tr class='data-table__subheading-row'>\n                  <th width='40%'>Description</th>\n                  <th width='10%'>Month value</th>\n                  <th width='10%'>YTD value</th>\n                  <th width='10%'>Percent complete</th>\n                  <th width='10%'>Assignee</th>\n                  <th width='10%'>Target date</th>\n                  <th width='10%'>Status</th>\n                  <th width='0' class='text-center'><FaIcon @icon='trash' /></th>\n                </tr>\n              </thead>\n              {{#each target.breakdown as |breakdownLine|}}\n                <tr>\n                  <td><Input\n                      class='text-input data-table__cell-cover'\n                      @value={{breakdownLine.description}}\n                    /></td>\n                  <td><Input\n                      class='text-input data-table__cell-cover'\n                      @value={{breakdownLine.monthValue}}\n                    /></td>\n                  <td><Input\n                      class='text-input data-table__cell-cover'\n                      @value={{breakdownLine.ytdValue}}\n                    /></td>\n                  <td><Input\n                      class='text-input data-table__cell-cover'\n                      @value={{breakdownLine.targetPercentage}}\n                    /></td>\n                  <td><Input\n                      class='text-input data-table__cell-cover'\n                      @value={{breakdownLine.personResponsible}}\n                    /></td>\n                  <td><Input\n                      class='text-input data-table__cell-cover'\n                      @value={{breakdownLine.targetDate}}\n                    /></td>\n                  <td><Input\n                      class='text-input data-table__cell-cover'\n                      @value={{breakdownLine.status}}\n                    /></td>\n                  <td class='text-center'>\n                    <button\n                      class='text-button text-button--plain data-table__cell-cover'\n                      type='button'\n                      {{action 'removeBreakdownLine' target breakdownLine}}\n                    >\n                      <FaIcon @icon='times' />\n                    </button>\n                    &nbsp;\n                    {{! prevents row height collapse }}\n                  </td>\n                </tr>\n              {{/each}}\n            </table>\n  \n            <div class='strategies-table__breakdown-actions'>\n              <button\n                class='text-button text-button--add'\n                type='button'\n                {{action 'addBreakdownLine' target}}\n              >Add New Strategic Component</button>\n            </div>\n          </td>\n        </tr>\n      {{/if}}\n    {{else}}\n      <tr>\n        <td colspan='8' class='placeholder-text text-center'>\n          <p>There aren't any targets set for this period yet.</p>\n        </td>\n      </tr>\n    {{/each}}\n  </tbody>\n  \n  {{#if this.addTarget}}\n    <tfoot>\n      <tr>\n        <td colspan='8' class='text-center'>\n          {{! TODO this is broken }}\n          {{!-- {{ember-select-guru\n            class=\"inline\"\n            placeholder='Click to select a new metric…'\n            options=metrics\n            value=value\n            onSelect=(action addTarget)}} --}}\n          <PowerSelect\n            @tagName='div'\n            class='inline'\n            @options={{this.metrics}}\n            @selected={{this.value}}\n            @searchEnabled={{true}}\n            @placeholder='Click to select a new metric…'\n            @searchField='name'\n            @onChange={{action this.addTarget}}\n            as |metric|\n          >\n            {{metric.name}}\n          </PowerSelect>\n        </td>\n      </tr>\n    </tfoot>\n  {{/if}}\n  */\n  {\n    \"id\": \"OOToNvw1\",\n    \"block\": \"[[[10,\\\"thead\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"19%\\\"],[12],[1,\\\"Name\\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"27%\\\"],[14,\\\"colspan\\\",\\\"2\\\"],[12],[1,\\\"Current\\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"27%\\\"],[14,\\\"colspan\\\",\\\"2\\\"],[12],[1,\\\"Target\\\\n      \\\"],[10,1],[14,0,\\\"strategies-table__heading-helper-text\\\"],[12],[1,\\\"Click figures to edit\\\"],[13],[13],[1,\\\"\\\\n    \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"27%\\\"],[14,\\\"colspan\\\",\\\"2\\\"],[12],[1,\\\"Difference\\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"0\\\"],[14,0,\\\"text-center\\\"],[12],[8,[39,4],null,[[\\\"@icon\\\"],[\\\"trash\\\"]],null],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[10,\\\"tr\\\"],[14,0,\\\"data-table__subheading-row\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"th\\\"],[12],[13],[1,\\\"\\\\n    \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"13.5%\\\"],[12],[1,\\\"Month\\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"13.5%\\\"],[12],[1,\\\"YTD\\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"13.5%\\\"],[12],[1,\\\"Month\\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"13.5%\\\"],[12],[1,\\\"YTD\\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"13.5%\\\"],[12],[1,\\\"Month\\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"13.5%\\\"],[12],[1,\\\"YTD\\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"th\\\"],[12],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[30,0,[\\\"targets\\\"]]],null]],null],null,[[[1,\\\"    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"strategies-table__target-name\\\\n          \\\",[52,[30,1,[\\\"hasBreakdown\\\"]],\\\"strategies-table__target-name--has-breakdown\\\"],\\\"\\\\n          \\\",[52,[30,1,[\\\"breakdown\\\",\\\"length\\\"]],\\\"strategies-table__target-name--breakdown-not-empty\\\"],\\\"\\\\n          \\\"]]],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"hasBreakdown\\\"]],[[[1,\\\"          \\\"],[11,3],[24,0,\\\"link\\\"],[4,[38,11],[[30,0],\\\"toggleBreakdownVisibility\\\",[30,1]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"hasBreakdown\\\"]],[[[1,\\\"              \\\"],[8,[39,4],null,[[\\\"@icon\\\"],[[52,[30,1,[\\\"showBreakdown\\\"]],\\\"angle-down\\\",\\\"angle-right\\\"]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,1],[12],[1,[30,1,[\\\"name\\\"]]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[15,\\\"colspan\\\",[29,[[52,[30,1,[\\\"showYtd\\\"]],1,2]]]],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,12],[[30,1,[\\\"metric\\\",\\\"format\\\"]],\\\"CURRENCY\\\"],null],[[[1,\\\"          \\\"],[1,[28,[35,13],[[30,1,[\\\"monthActual\\\"]]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,13],[[30,1,[\\\"monthActual\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\"],[[28,[37,14],[[30,0,[\\\"formattedStyle\\\"]],[30,1,[\\\"metric\\\",\\\"format\\\"]]],null],true,0]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,1,[\\\"showYtd\\\"]],[[[1,\\\"        \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,12],[[30,1,[\\\"metric\\\",\\\"format\\\"]],\\\"CURRENCY\\\"],null],[[[1,\\\"            \\\"],[1,[28,[35,13],[[30,1,[\\\"ytdActual\\\"]]],[[\\\"dashZero\\\",\\\"maximumFractionDigits\\\"],[true,0]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,13],[[30,1,[\\\"ytdActual\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\"],[[28,[37,14],[[30,0,[\\\"formattedStyle\\\"]],[30,1,[\\\"metric\\\",\\\"format\\\"]]],null],true,0]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[10,\\\"td\\\"],[15,\\\"colspan\\\",[29,[[52,[30,1,[\\\"showYtd\\\"]],1,2]]]],[12],[1,\\\"\\\\n        \\\"],[8,[39,15],null,[[\\\"@class\\\",\\\"@number\\\",\\\"@format\\\",\\\"@update\\\"],[\\\"data-table__cell-cover text-input text-right\\\",[30,1,[\\\"monthTarget\\\"]],[30,1,[\\\"metric\\\",\\\"format\\\"]],[28,[37,16],[[28,[37,17],[[30,1,[\\\"monthTarget\\\"]]],null]],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,1,[\\\"showYtd\\\"]],[[[1,\\\"        \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,15],null,[[\\\"@class\\\",\\\"@number\\\",\\\"@format\\\",\\\"@update\\\"],[\\\"data-table__cell-cover text-input text-right\\\",[30,1,[\\\"ytdTarget\\\"]],[30,1,[\\\"metric\\\",\\\"format\\\"]],[28,[37,16],[[28,[37,17],[[30,1,[\\\"ytdTarget\\\"]]],null]],null]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[15,\\\"colspan\\\",[29,[[52,[30,1,[\\\"showYtd\\\"]],1,2]]]],[12],[1,\\\"\\\\n\\\"],[41,[51,[28,[37,12],[[30,1,[\\\"monthDifference\\\"]],null],null]],[[[1,\\\"          \\\"],[8,[39,19],null,[[\\\"@difference\\\",\\\"@useColor\\\",\\\"@increaseIsGood\\\"],[[30,1,[\\\"monthDifference\\\"]],[30,1,[\\\"isBalanceTarget\\\"]],[30,1,[\\\"increaseIsGood\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,12],[[30,1,[\\\"metric\\\",\\\"format\\\"]],\\\"CURRENCY\\\"],null],[[[1,\\\"            \\\"],[1,[28,[35,13],[[30,1,[\\\"monthDifference\\\"]]],[[\\\"dashZero\\\",\\\"maximumFractionDigits\\\"],[true,0]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,13],[[30,1,[\\\"monthDifference\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\"],[[28,[37,14],[[30,0,[\\\"formattedStyle\\\"]],[30,1,[\\\"metric\\\",\\\"format\\\"]]],null],true,0]]]],[1,\\\"\\\\n\\\"]],[]]]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,1,[\\\"showYtd\\\"]],[[[1,\\\"        \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[28,[37,12],[[30,1,[\\\"ytdDifference\\\"]],null],null]],[[[1,\\\"            \\\"],[8,[39,19],null,[[\\\"@difference\\\",\\\"@useColor\\\",\\\"@increaseIsGood\\\"],[[30,1,[\\\"ytdDifference\\\"]],[30,1,[\\\"isBalanceTarget\\\"]],[30,1,[\\\"increaseIsGood\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,12],[[30,1,[\\\"metric\\\",\\\"format\\\"]],\\\"CURRENCY\\\"],null],[[[1,\\\"              \\\"],[1,[28,[35,13],[[30,1,[\\\"ytdDifference\\\"]]],[[\\\"dashZero\\\",\\\"maximumFractionDigits\\\"],[true,0]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,13],[[30,1,[\\\"ytdDifference\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\"],[[28,[37,14],[[30,0,[\\\"formattedStyle\\\"]],[30,1,[\\\"metric\\\",\\\"format\\\"]]],null],true,0]]]],[1,\\\"\\\\n\\\"]],[]]]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[10,\\\"td\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--plain data-table__cell-cover\\\"],[24,4,\\\"button\\\"],[4,[38,11],[[30,0],[30,0,[\\\"removeTarget\\\"]],[30,1]],null],[12],[8,[39,4],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,21],[[30,1,[\\\"hasBreakdown\\\"]],[30,1,[\\\"showBreakdown\\\"]]],null],[[[1,\\\"      \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"td\\\"],[14,0,\\\"strategies-table__strategy-breakdown\\\"],[15,\\\"colspan\\\",[29,[[52,[30,1,[\\\"showYtd\\\"]],8,5]]]],[12],[1,\\\"\\\\n          \\\"],[10,\\\"table\\\"],[14,0,\\\"data-table strategy-breakdown-table\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"tr\\\"],[14,0,\\\"data-table__subheading-row\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"40%\\\"],[12],[1,\\\"Description\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"Month value\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"YTD value\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"Percent complete\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"Assignee\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"Target date\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"Status\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"0\\\"],[14,0,\\\"text-center\\\"],[12],[8,[39,4],null,[[\\\"@icon\\\"],[\\\"trash\\\"]],null],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[30,1,[\\\"breakdown\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"td\\\"],[12],[8,[39,23],[[24,0,\\\"text-input data-table__cell-cover\\\"]],[[\\\"@value\\\"],[[30,2,[\\\"description\\\"]]]],null],[13],[1,\\\"\\\\n                \\\"],[10,\\\"td\\\"],[12],[8,[39,23],[[24,0,\\\"text-input data-table__cell-cover\\\"]],[[\\\"@value\\\"],[[30,2,[\\\"monthValue\\\"]]]],null],[13],[1,\\\"\\\\n                \\\"],[10,\\\"td\\\"],[12],[8,[39,23],[[24,0,\\\"text-input data-table__cell-cover\\\"]],[[\\\"@value\\\"],[[30,2,[\\\"ytdValue\\\"]]]],null],[13],[1,\\\"\\\\n                \\\"],[10,\\\"td\\\"],[12],[8,[39,23],[[24,0,\\\"text-input data-table__cell-cover\\\"]],[[\\\"@value\\\"],[[30,2,[\\\"targetPercentage\\\"]]]],null],[13],[1,\\\"\\\\n                \\\"],[10,\\\"td\\\"],[12],[8,[39,23],[[24,0,\\\"text-input data-table__cell-cover\\\"]],[[\\\"@value\\\"],[[30,2,[\\\"personResponsible\\\"]]]],null],[13],[1,\\\"\\\\n                \\\"],[10,\\\"td\\\"],[12],[8,[39,23],[[24,0,\\\"text-input data-table__cell-cover\\\"]],[[\\\"@value\\\"],[[30,2,[\\\"targetDate\\\"]]]],null],[13],[1,\\\"\\\\n                \\\"],[10,\\\"td\\\"],[12],[8,[39,23],[[24,0,\\\"text-input data-table__cell-cover\\\"]],[[\\\"@value\\\"],[[30,2,[\\\"status\\\"]]]],null],[13],[1,\\\"\\\\n                \\\"],[10,\\\"td\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                  \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--plain data-table__cell-cover\\\"],[24,4,\\\"button\\\"],[4,[38,11],[[30,0],\\\"removeBreakdownLine\\\",[30,1],[30,2]],null],[12],[1,\\\"\\\\n                    \\\"],[8,[39,4],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                   \\\\n\\\"],[1,\\\"                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"strategies-table__breakdown-actions\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--add\\\"],[24,4,\\\"button\\\"],[4,[38,11],[[30,0],\\\"addBreakdownLine\\\",[30,1]],null],[12],[1,\\\"Add New Strategic Component\\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[1]],[[[1,\\\"    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"8\\\"],[14,0,\\\"placeholder-text text-center\\\"],[12],[1,\\\"\\\\n        \\\"],[10,2],[12],[1,\\\"There aren't any targets set for this period yet.\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"addTarget\\\"]],[[[1,\\\"  \\\"],[10,\\\"tfoot\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"8\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"        \\\"],[8,[39,27],[[24,0,\\\"inline\\\"]],[[\\\"@tagName\\\",\\\"@options\\\",\\\"@selected\\\",\\\"@searchEnabled\\\",\\\"@placeholder\\\",\\\"@searchField\\\",\\\"@onChange\\\"],[\\\"div\\\",[30,0,[\\\"metrics\\\"]],[30,0,[\\\"value\\\"]],true,\\\"Click to select a new metric…\\\",\\\"name\\\",[28,[37,11],[[30,0],[30,0,[\\\"addTarget\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[30,3,[\\\"name\\\"]]],[1,\\\"\\\\n        \\\"]],[3]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"target\\\",\\\"breakdownLine\\\",\\\"metric\\\"],false,[\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"span\\\",\\\"fa-icon\\\",\\\"tbody\\\",\\\"each\\\",\\\"-track-array\\\",\\\"td\\\",\\\"if\\\",\\\"a\\\",\\\"action\\\",\\\"eq\\\",\\\"number-format\\\",\\\"get\\\",\\\"formatted-input\\\",\\\"fn\\\",\\\"mut\\\",\\\"unless\\\",\\\"value-change-indicator\\\",\\\"button\\\",\\\"and\\\",\\\"table\\\",\\\"input\\\",\\\"div\\\",\\\"p\\\",\\\"tfoot\\\",\\\"power-select\\\"]]\",\n    \"moduleName\": \"portal/components/strategies-table.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    tagName: 'table',\n    classNames: ['strategies-table', 'data-table'],\n    formattedStyle: {\n      PERCENTAGE: 'percent',\n      NUMBER: 'decimal',\n      CURRENCY: 'currency'\n    },\n    actions: {\n      addBreakdownLine(target) {\n        (0, _object.get)(target, 'breakdown').pushObject({\n          description: null,\n          monthValue: null,\n          ytdValue: null,\n          targetPercentage: null,\n          personResponsible: null,\n          targetDate: null,\n          status: null\n        });\n      },\n      removeBreakdownLine(target, line) {\n        (0, _object.get)(target, 'breakdown').removeObject(line);\n      },\n      toggleBreakdownVisibility(target) {\n        const visible = target.toggleProperty('showBreakdown');\n        if (visible && (0, _utils.isEmpty)((0, _object.get)(target, 'breakdown'))) {\n          this.send('addBreakdownLine', target);\n        } else {\n          this.purgeEmptyBreakdownLines(target);\n        }\n      }\n    }\n  }));\n});","define(\"portal/components/supplier-invoices-pm/invoice-item\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _object, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <td\n    class='supplier-invoice-pm__items-table-big-cell'\n    title={{this.computedName}}\n  >{{this.computedName}}</td>\n  \n  <td\n    class='supplier-invoice-pm__items-table-big-cell'\n    title='{{this.item.assignment}}'\n  >{{this.item.assignment}}</td>\n  \n  {{#if this.accountingPlatform.isActive}}\n    <td class='supplier-invoice-pm__items-table-big-cell'>\n      {{#if (eq this.accountingPlatform.activePlatform 'quickbooks')}}\n        {{or this.item.glAccount.name '–'}}\n      {{else}}\n        {{if\n          (and this.item.glAccount.code this.item.glAccount.name)\n          (concat this.item.glAccount.code ' – ' this.item.glAccount.name)\n          '–'\n        }}\n      {{/if}}\n    </td>\n  {{/if}}\n  <td\n    class='text-right supplier-invoice-pm__items-table-small-cell'\n  >{{this.item.quantity}}</td>\n  <td class='text-right supplier-invoice-pm__items-table-small-cell'>\n    {{number-format this.item.unitPrice style='currency' dashZero=true}}\n  </td>\n  <td class='text-right supplier-invoice-pm__items-table-small-cell'>\n    {{number-format this.item.totalPrice style='currency' dashZero=true}}\n  </td>\n  */\n  {\n    \"id\": \"LbpvM/p0\",\n    \"block\": \"[[[10,\\\"td\\\"],[14,0,\\\"supplier-invoice-pm__items-table-big-cell\\\"],[15,\\\"title\\\",[30,0,[\\\"computedName\\\"]]],[12],[1,[30,0,[\\\"computedName\\\"]]],[13],[1,\\\"\\\\n\\\\n\\\"],[10,\\\"td\\\"],[14,0,\\\"supplier-invoice-pm__items-table-big-cell\\\"],[15,\\\"title\\\",[29,[[30,0,[\\\"item\\\",\\\"assignment\\\"]]]]],[12],[1,[30,0,[\\\"item\\\",\\\"assignment\\\"]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"accountingPlatform\\\",\\\"isActive\\\"]],[[[1,\\\"  \\\"],[10,\\\"td\\\"],[14,0,\\\"supplier-invoice-pm__items-table-big-cell\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,2],[[30,0,[\\\"accountingPlatform\\\",\\\"activePlatform\\\"]],\\\"quickbooks\\\"],null],[[[1,\\\"      \\\"],[1,[28,[35,3],[[30,0,[\\\"item\\\",\\\"glAccount\\\",\\\"name\\\"]],\\\"–\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[1,[52,[28,[37,4],[[30,0,[\\\"item\\\",\\\"glAccount\\\",\\\"code\\\"]],[30,0,[\\\"item\\\",\\\"glAccount\\\",\\\"name\\\"]]],null],[28,[37,5],[[30,0,[\\\"item\\\",\\\"glAccount\\\",\\\"code\\\"]],\\\" – \\\",[30,0,[\\\"item\\\",\\\"glAccount\\\",\\\"name\\\"]]],null],\\\"–\\\"]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"td\\\"],[14,0,\\\"text-right supplier-invoice-pm__items-table-small-cell\\\"],[12],[1,[30,0,[\\\"item\\\",\\\"quantity\\\"]]],[13],[1,\\\"\\\\n\\\"],[10,\\\"td\\\"],[14,0,\\\"text-right supplier-invoice-pm__items-table-small-cell\\\"],[12],[1,\\\"\\\\n  \\\"],[1,[28,[35,6],[[30,0,[\\\"item\\\",\\\"unitPrice\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[10,\\\"td\\\"],[14,0,\\\"text-right supplier-invoice-pm__items-table-small-cell\\\"],[12],[1,\\\"\\\\n  \\\"],[1,[28,[35,6],[[30,0,[\\\"item\\\",\\\"totalPrice\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"td\\\",\\\"if\\\",\\\"eq\\\",\\\"or\\\",\\\"and\\\",\\\"concat\\\",\\\"number-format\\\"]]\",\n    \"moduleName\": \"portal/components/supplier-invoices-pm/invoice-item.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    tagName: 'tr',\n    classNames: 'supplier-invoice-pm__item',\n    classNameBindings: ['notMapped:supplier-invoice-pm__item--not-mapped'],\n    accountingPlatform: (0, _service.inject)(),\n    notMapped: (0, _object.computed)('item.{project.id,task.id,isMapped}', function () {\n      return !(0, _object.get)(this, 'item.isMapped') && !(0, _object.get)(this, 'item.project.id') && !(0, _object.get)(this, 'item.task.id');\n    }),\n    computedName: (0, _object.computed)('item.{description,productCode}', function () {\n      let name = (0, _object.get)(this, 'item.productCode') || '';\n      if ((0, _object.get)(this, 'item.description') && (0, _object.get)(this, 'item.productCode')) name += ' – ';\n      name += (0, _object.get)(this, 'item.description') || '';\n      return name;\n    })\n  }));\n});","define(\"portal/components/supplier-invoices-pm/invoice-row\", [\"exports\", \"@ember/component\", \"@ember/object/computed\", \"@ember/template-factory\"], function (_exports, _component, _computed, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object/computed\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <td {{action this.toggleProperty 'invoice.checked' bubbles=false}}>\n    <label\n      class='supplier-invoice-table-pm__row-checkbox-label'\n      for={{concat this.invoice.id this.invoice.issueDate}}\n    >\n      <Input\n        id={{concat this.invoice.id this.invoice.issueDate}}\n        @type='checkbox'\n        @checked={{this.invoice.checked}}\n      />\n    </label>\n  </td>\n  \n  <td>{{this.invoice.billNumber}}\n    {{#if @hasDuplicate}}\n      <span\n        class='invoice-editor__inputs-row-warning-triangle'\n        data-test-duplicate-warning=''\n      >\n        &nbsp;<InfoPopup\n          @iconName='exclamation-triangle'\n          class='text-danger'\n          @text={{t\n            'shared.bill.thisBillNumberHasAlreadyBeenUsedAndMayBeADuplicate'\n          }}\n        />\n      </span>\n    {{/if}}\n  </td>\n  <td class='text-wrap'>{{or this.invoice.issuer (t 'common.New bill')}}</td>\n  <td class='text-wrap'>{{this.invoice.reference}}</td>\n  <td>\n    {{#if (eq this.invoice.allocationType 'LABOUR')}}\n      {{t 'common.Labour'}}\n    {{else if (eq this.invoice.allocationType 'MATERIALS')}}\n      {{t 'common.Materials'}}\n    {{else if (eq this.invoice.allocationType 'SUBCONTRACTORS')}}\n      {{t 'common.Subcontractors'}}\n    {{/if}}\n  </td>\n  <td>\n    {{#if (eq this.invoice.status 'DRAFT')}}\n      {{t 'common.Draft'}}\n    {{else if (eq this.invoice.status 'ACCEPTED')}}\n      {{t 'common.Accepted'}}\n    {{else if (eq this.invoice.status 'ARCHIVED')}}\n      {{t 'common.Archived'}}\n    {{else if (eq this.invoice.status 'HELD')}}\n      {{t 'common.Held'}}\n    {{else if (eq this.invoice.status 'PAID')}}\n      {{t 'common.Paid'}}\n    {{/if}}\n  </td>\n  <td>{{if\n      this.invoice.issueDate\n      (moment-format this.invoice.issueDate (t 'date.dayMonthYearShort'))\n      '–'\n    }}</td>\n  <td>{{if\n      this.invoice.dueDate\n      (moment-format this.invoice.dueDate (t 'date.dayMonthYearShort'))\n      '–'\n    }}</td>\n  <td>\n    {{number-format this.invoice.totalPrice style='currency' dashZero=true}}\n  </td>\n  \n  {{#if this.showBadges}}\n    <td>\n      <div class='badge-set'>\n        {{! Denotes that this invoice originated from ITM (eAccounts) or Step Connect }}\n        {{#if (or this.invoice.eaccountsFileName this.invoice.ipsId)}}\n          <IntegrationIcon\n            @imported={{true}}\n            @title={{t 'shared.bill.This invoice was imported automatically'}}\n            data-test-edi-icon\n          />\n        {{/if}}\n  \n        {{! Denote that the invoice has been sent to Accounting platform }}\n        {{#if (or this.invoice.xeroLinked this.invoice.quickbooksLinked)}}\n          <IntegrationIcon\n            @exported={{true}}\n            @title={{t\n              'shared.bill.aCopyOfThisInvoiceHasBeenSentToYourAccountingPackage'\n            }}\n            data-test-xero-icon\n          />\n        {{/if}}\n  \n        {{#if this.invoice.isAutoMapped}}\n          <IntegrationIcon\n            @autoMapped={{true}}\n            @title={{t 'shared.bill.Invoice was auto mapped'}}\n          />\n        {{/if}}\n      </div>\n    </td>\n  {{/if}}\n  */\n  {\n    \"id\": \"UI5epBqg\",\n    \"block\": \"[[[11,\\\"td\\\"],[4,[38,1],[[30,0],[30,0,[\\\"toggleProperty\\\"]],\\\"invoice.checked\\\"],[[\\\"bubbles\\\"],[false]]],[12],[1,\\\"\\\\n  \\\"],[10,\\\"label\\\"],[14,0,\\\"supplier-invoice-table-pm__row-checkbox-label\\\"],[15,\\\"for\\\",[28,[37,3],[[30,0,[\\\"invoice\\\",\\\"id\\\"]],[30,0,[\\\"invoice\\\",\\\"issueDate\\\"]]],null]],[12],[1,\\\"\\\\n    \\\"],[8,[39,4],[[16,1,[28,[37,3],[[30,0,[\\\"invoice\\\",\\\"id\\\"]],[30,0,[\\\"invoice\\\",\\\"issueDate\\\"]]],null]]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"invoice\\\",\\\"checked\\\"]]]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,\\\"td\\\"],[12],[1,[30,0,[\\\"invoice\\\",\\\"billNumber\\\"]]],[1,\\\"\\\\n\\\"],[41,[30,1],[[[1,\\\"    \\\"],[10,1],[14,0,\\\"invoice-editor__inputs-row-warning-triangle\\\"],[14,\\\"data-test-duplicate-warning\\\",\\\"\\\"],[12],[1,\\\"\\\\n       \\\"],[8,[39,7],[[24,0,\\\"text-danger\\\"]],[[\\\"@iconName\\\",\\\"@text\\\"],[\\\"exclamation-triangle\\\",[28,[37,8],[\\\"shared.bill.thisBillNumberHasAlreadyBeenUsedAndMayBeADuplicate\\\"],null]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[13],[1,\\\"\\\\n\\\"],[10,\\\"td\\\"],[14,0,\\\"text-wrap\\\"],[12],[1,[28,[35,9],[[30,0,[\\\"invoice\\\",\\\"issuer\\\"]],[28,[37,8],[\\\"common.New bill\\\"],null]],null]],[13],[1,\\\"\\\\n\\\"],[10,\\\"td\\\"],[14,0,\\\"text-wrap\\\"],[12],[1,[30,0,[\\\"invoice\\\",\\\"reference\\\"]]],[13],[1,\\\"\\\\n\\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,10],[[30,0,[\\\"invoice\\\",\\\"allocationType\\\"]],\\\"LABOUR\\\"],null],[[[1,\\\"    \\\"],[1,[28,[35,8],[\\\"common.Labour\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,10],[[30,0,[\\\"invoice\\\",\\\"allocationType\\\"]],\\\"MATERIALS\\\"],null],[[[1,\\\"    \\\"],[1,[28,[35,8],[\\\"common.Materials\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,10],[[30,0,[\\\"invoice\\\",\\\"allocationType\\\"]],\\\"SUBCONTRACTORS\\\"],null],[[[1,\\\"    \\\"],[1,[28,[35,8],[\\\"common.Subcontractors\\\"],null]],[1,\\\"\\\\n  \\\"]],[]],null]],[]]]],[]]],[13],[1,\\\"\\\\n\\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,10],[[30,0,[\\\"invoice\\\",\\\"status\\\"]],\\\"DRAFT\\\"],null],[[[1,\\\"    \\\"],[1,[28,[35,8],[\\\"common.Draft\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,10],[[30,0,[\\\"invoice\\\",\\\"status\\\"]],\\\"ACCEPTED\\\"],null],[[[1,\\\"    \\\"],[1,[28,[35,8],[\\\"common.Accepted\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,10],[[30,0,[\\\"invoice\\\",\\\"status\\\"]],\\\"ARCHIVED\\\"],null],[[[1,\\\"    \\\"],[1,[28,[35,8],[\\\"common.Archived\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,10],[[30,0,[\\\"invoice\\\",\\\"status\\\"]],\\\"HELD\\\"],null],[[[1,\\\"    \\\"],[1,[28,[35,8],[\\\"common.Held\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,10],[[30,0,[\\\"invoice\\\",\\\"status\\\"]],\\\"PAID\\\"],null],[[[1,\\\"    \\\"],[1,[28,[35,8],[\\\"common.Paid\\\"],null]],[1,\\\"\\\\n  \\\"]],[]],null]],[]]]],[]]]],[]]]],[]]],[13],[1,\\\"\\\\n\\\"],[10,\\\"td\\\"],[12],[1,[52,[30,0,[\\\"invoice\\\",\\\"issueDate\\\"]],[28,[37,11],[[30,0,[\\\"invoice\\\",\\\"issueDate\\\"]],[28,[37,8],[\\\"date.dayMonthYearShort\\\"],null]],null],\\\"–\\\"]],[13],[1,\\\"\\\\n\\\"],[10,\\\"td\\\"],[12],[1,[52,[30,0,[\\\"invoice\\\",\\\"dueDate\\\"]],[28,[37,11],[[30,0,[\\\"invoice\\\",\\\"dueDate\\\"]],[28,[37,8],[\\\"date.dayMonthYearShort\\\"],null]],null],\\\"–\\\"]],[13],[1,\\\"\\\\n\\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n  \\\"],[1,[28,[35,12],[[30,0,[\\\"invoice\\\",\\\"totalPrice\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"showBadges\\\"]],[[[1,\\\"  \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"badge-set\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,9],[[30,0,[\\\"invoice\\\",\\\"eaccountsFileName\\\"]],[30,0,[\\\"invoice\\\",\\\"ipsId\\\"]]],null],[[[1,\\\"        \\\"],[8,[39,14],[[24,\\\"data-test-edi-icon\\\",\\\"\\\"]],[[\\\"@imported\\\",\\\"@title\\\"],[true,[28,[37,8],[\\\"shared.bill.This invoice was imported automatically\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,9],[[30,0,[\\\"invoice\\\",\\\"xeroLinked\\\"]],[30,0,[\\\"invoice\\\",\\\"quickbooksLinked\\\"]]],null],[[[1,\\\"        \\\"],[8,[39,14],[[24,\\\"data-test-xero-icon\\\",\\\"\\\"]],[[\\\"@exported\\\",\\\"@title\\\"],[true,[28,[37,8],[\\\"shared.bill.aCopyOfThisInvoiceHasBeenSentToYourAccountingPackage\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"invoice\\\",\\\"isAutoMapped\\\"]],[[[1,\\\"        \\\"],[8,[39,14],null,[[\\\"@autoMapped\\\",\\\"@title\\\"],[true,[28,[37,8],[\\\"shared.bill.Invoice was auto mapped\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@hasDuplicate\\\"],false,[\\\"td\\\",\\\"action\\\",\\\"label\\\",\\\"concat\\\",\\\"input\\\",\\\"if\\\",\\\"span\\\",\\\"info-popup\\\",\\\"t\\\",\\\"or\\\",\\\"eq\\\",\\\"moment-format\\\",\\\"number-format\\\",\\\"div\\\",\\\"integration-icon\\\"]]\",\n    \"moduleName\": \"portal/components/supplier-invoices-pm/invoice-row.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    tagName: ['tr'],\n    classNames: ['supplier-invoice-table-pm__row'],\n    classNameBindings: ['selected:supplier-invoice-table-pm__row--selected'],\n    selected: (0, _computed.alias)('invoice.checked'),\n    click: function () {\n      this.editInvoice();\n    }\n  }));\n});","define(\"portal/components/supplier-invoices-pm/invoice\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@ember/object/computed\", \"@ember/object/evented\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _object, _computed, _evented, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"@ember/object/computed\",0,\"@ember/object/evented\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='supplier-invoice-pm__header'>\n    {{! Checkbox }}\n    {{#if this.invoice.checked}}\n      <FaIcon\n        @icon='check-square'\n        @fixedWidth={{true}}\n        class={{concat\n          'supplier-invoice-pm__header-checkbox-label'\n          (if\n            this.invoice.checked ' supplier-invoice-pm__header-checkbox-checked'\n          )\n        }}\n      />\n    {{else}}\n      <FaIcon\n        @icon='square'\n        @prefix='far'\n        @fixedWidth={{true}}\n        class={{concat\n          'supplier-invoice-pm__header-checkbox-label'\n          (if\n            this.invoice.checked ' supplier-invoice-pm__header-checkbox-checked'\n          )\n        }}\n      />\n    {{/if}}\n  \n    {{! Title on invoice in the form \"<issuer> - <name>\" }}\n    <span class='supplier-invoice-pm__header-title'>\n      &nbsp;{{or this.invoice.issuer (t 'common.New bill')}}\n    </span>\n    <span class='supplier-invoice-pm__header-sub-title'>\n      {{if\n        this.invoice.reference\n        (html-safe (concat '&nbsp;-&nbsp;' this.invoice.reference))\n      }}\n    </span>\n  \n    {{#if @hasDuplicate}}\n      <span\n        class='invoice-editor__inputs-row-warning-triangle'\n        data-test-duplicate-warning=''\n      >\n        &nbsp;<InfoPopup\n          @iconName='exclamation-triangle'\n          class='text-danger'\n          @text={{t\n            'shared.bill.thisBillNumberHasAlreadyBeenUsedAndMayBeADuplicate'\n          }}\n        />\n      </span>\n    {{/if}}\n  \n    {{! Status label }}\n    {{#if (not-eq this.invoice.status 'ACCEPTED')}}\n      <span class='supplier-invoice-pm__header-status'>\n        {{#if (eq this.invoice.status 'DRAFT')}}\n          {{t 'common.Draft'}}\n        {{else if (eq this.invoice.status 'ACCEPTED')}}\n          {{t 'common.Accepted'}}\n        {{else if (eq this.invoice.status 'ARCHIVED')}}\n          {{t 'common.Archived'}}\n        {{else if (eq this.invoice.status 'HELD')}}\n          {{t 'common.Held'}}\n        {{else if (eq this.invoice.status 'PAID')}}\n          {{t 'common.Paid'}}\n        {{/if}}\n      </span>\n    {{/if}}\n  \n    {{#if (lt this.invoice.totalPrice 0)}}\n      <span class='supplier-invoice-pm__header-status'>\n        {{t 'shared.bill.Credit note'}}\n      </span>\n    {{/if}}\n  \n    {{! Type label }}\n    <span class='supplier-invoice-pm__header-status'>\n      {{#if (eq this.invoice.allocationType 'LABOUR')}}\n        {{t 'common.Labour'}}\n      {{else if (eq this.invoice.allocationType 'MATERIALS')}}\n        {{t 'common.Materials'}}\n      {{else if (eq this.invoice.allocationType 'SUBCONTRACTORS')}}\n        {{t 'common.Subcontractors'}}\n      {{/if}}\n    </span>\n  \n    {{! Link to details view }}\n    <div class='float-end'>\n      <button\n        class='button button--spaced'\n        data-test-edit-bill={{or this.invoice.id 'new'}}\n        type='button'\n        {{action this.editInvoice bubbles=false}}\n      >\n        {{t 'common.Details'}}\n      </button>\n    </div>\n  </div>\n  \n  <div class='supplier-invoice-pm__items'>\n    {{! Denotes that this invoice originated from ITM (eAccounts) or Step Connect }}\n    {{#if (or this.invoice.eaccountsFileName this.invoice.ipsId)}}\n      <IntegrationIcon\n        @imported={{true}}\n        @title={{t 'shared.bill.This invoice was imported automatically'}}\n        data-test-edi-icon\n      />\n    {{/if}}\n  \n    {{! Denote that the invoice has been sent to Accounting platform }}\n    {{#if (or this.invoice.xeroLinked this.invoice.quickbooksLinked)}}\n      <IntegrationIcon\n        @exported={{true}}\n        @title={{t\n          'shared.bill.aCopyOfThisInvoiceHasBeenSentToYourAccountingPackage'\n        }}\n        data-test-xero-icon\n      />\n    {{/if}}\n  \n    {{#if this.invoice.isAutoMapped}}\n      <IntegrationIcon\n        @autoMapped={{true}}\n        @title={{t 'shared.bill.Invoice was auto mapped'}}\n      />\n    {{/if}}\n  \n    <div class='float-end'>\n      <div class='supplier-invoice-pm__meta-container'>\n        {{! Issue date }}\n        <span class='supplier-invoice-pm__meta-item'>\n          <b>{{t 'common.Issued'}}</b>\n          {{#if this.invoice.issueDate}}{{moment-format\n              this.invoice.issueDate\n              (t 'date.dayMonthYearShort')\n            }}{{else}}—{{/if}}\n        </span>\n  \n        {{! Due date }}\n        <span class='supplier-invoice-pm__meta-item'>\n          <b>{{t 'common.Due'}}</b>\n          {{#if this.invoice.dueDate}}{{moment-format\n              this.invoice.dueDate\n              (t 'date.dayMonthYearShort')\n            }}{{else}}—{{/if}}\n        </span>\n  \n        {{! Invoice number }}\n        <span class='supplier-invoice-pm__meta-item'>\n          <b>{{t 'common.Number'}}</b>\n          {{#if\n            this.invoice.billNumber\n          }}{{this.invoice.billNumber}}{{else}}—{{/if}}\n        </span>\n  \n        {{! Total }}\n        <span class='supplier-invoice-pm__meta-item'>\n          <b>{{t 'common.Total'}}</b>\n          {{number-format this.invoice.totalPrice style='currency' dashZero=true}}\n        </span>\n      </div>\n  \n      {{! Expand items button }}\n      {{#if this.invoice.items.length}}\n        <button\n          class='text-button button--spaced'\n          data-test-expand-bill={{this.invoice.id}}\n          type='button'\n          {{action this.toggleProperty 'expanded' bubbles=false}}\n        >\n          {{if this.expanded (t 'common.Hide items') (t 'common.Show items')}}\n        </button>\n      {{else}}\n        <span class='button--spaced'>\n          {{t 'common.No items'}}\n        </span>\n      {{/if}}\n    </div>\n  </div>\n  \n  {{#if (and this.expanded this.invoice.items.length)}}\n    <table class='supplier-invoice-pm__items-table'>\n      <thead>\n        <tr>\n          <th class='supplier-invoice-pm__items-table-big-cell'>{{t\n              'common.Item'\n            }}</th>\n          <th class='supplier-invoice-pm__items-table-big-cell'>{{t\n              'common.Assigned'\n            }}</th>\n          {{#if this.accountingPlatform.isActive}}\n            <th class='supplier-invoice-pm__items-table-big-cell'>\n              {{concat this.accountingPlatform.label ' ' (t 'common.account')}}\n            </th>\n          {{/if}}\n          <th class='supplier-invoice-pm__items-table-small-cell'>{{t\n              'common.Qty'\n            }}</th>\n          <th class='supplier-invoice-pm__items-table-small-cell'>{{t\n              'common.Unit cost'\n            }}</th>\n          <th class='supplier-invoice-pm__items-table-small-cell'>{{t\n              'common.Total cost'\n            }}</th>\n        </tr>\n      </thead>\n      <tbody>\n        {{#each this.invoice.sortedItems as |item|}}\n          <SupplierInvoicesPm::InvoiceItem\n            @item={{item}}\n            data-test-bill-item={{item.id}}\n            @xeroReady={{this.xeroReady}}\n          />\n        {{/each}}\n      </tbody>\n    </table>\n  {{/if}}\n  */\n  {\n    \"id\": \"qCUW0svV\",\n    \"block\": \"[[[10,0],[14,0,\\\"supplier-invoice-pm__header\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"invoice\\\",\\\"checked\\\"]],[[[1,\\\"    \\\"],[8,[39,2],[[16,0,[28,[37,3],[\\\"supplier-invoice-pm__header-checkbox-label\\\",[52,[30,0,[\\\"invoice\\\",\\\"checked\\\"]],\\\" supplier-invoice-pm__header-checkbox-checked\\\"]],null]]],[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"check-square\\\",true]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[8,[39,2],[[16,0,[28,[37,3],[\\\"supplier-invoice-pm__header-checkbox-label\\\",[52,[30,0,[\\\"invoice\\\",\\\"checked\\\"]],\\\" supplier-invoice-pm__header-checkbox-checked\\\"]],null]]],[[\\\"@icon\\\",\\\"@prefix\\\",\\\"@fixedWidth\\\"],[\\\"square\\\",\\\"far\\\",true]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[1,\\\"  \\\"],[10,1],[14,0,\\\"supplier-invoice-pm__header-title\\\"],[12],[1,\\\"\\\\n     \\\"],[1,[28,[35,5],[[30,0,[\\\"invoice\\\",\\\"issuer\\\"]],[28,[37,6],[\\\"common.New bill\\\"],null]],null]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[10,1],[14,0,\\\"supplier-invoice-pm__header-sub-title\\\"],[12],[1,\\\"\\\\n    \\\"],[1,[52,[30,0,[\\\"invoice\\\",\\\"reference\\\"]],[28,[37,7],[[28,[37,3],[\\\"&nbsp;-&nbsp;\\\",[30,0,[\\\"invoice\\\",\\\"reference\\\"]]],null]],null]]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,1],[[[1,\\\"    \\\"],[10,1],[14,0,\\\"invoice-editor__inputs-row-warning-triangle\\\"],[14,\\\"data-test-duplicate-warning\\\",\\\"\\\"],[12],[1,\\\"\\\\n       \\\"],[8,[39,8],[[24,0,\\\"text-danger\\\"]],[[\\\"@iconName\\\",\\\"@text\\\"],[\\\"exclamation-triangle\\\",[28,[37,6],[\\\"shared.bill.thisBillNumberHasAlreadyBeenUsedAndMayBeADuplicate\\\"],null]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,9],[[30,0,[\\\"invoice\\\",\\\"status\\\"]],\\\"ACCEPTED\\\"],null],[[[1,\\\"    \\\"],[10,1],[14,0,\\\"supplier-invoice-pm__header-status\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,10],[[30,0,[\\\"invoice\\\",\\\"status\\\"]],\\\"DRAFT\\\"],null],[[[1,\\\"        \\\"],[1,[28,[35,6],[\\\"common.Draft\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,10],[[30,0,[\\\"invoice\\\",\\\"status\\\"]],\\\"ACCEPTED\\\"],null],[[[1,\\\"        \\\"],[1,[28,[35,6],[\\\"common.Accepted\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,10],[[30,0,[\\\"invoice\\\",\\\"status\\\"]],\\\"ARCHIVED\\\"],null],[[[1,\\\"        \\\"],[1,[28,[35,6],[\\\"common.Archived\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,10],[[30,0,[\\\"invoice\\\",\\\"status\\\"]],\\\"HELD\\\"],null],[[[1,\\\"        \\\"],[1,[28,[35,6],[\\\"common.Held\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,10],[[30,0,[\\\"invoice\\\",\\\"status\\\"]],\\\"PAID\\\"],null],[[[1,\\\"        \\\"],[1,[28,[35,6],[\\\"common.Paid\\\"],null]],[1,\\\"\\\\n      \\\"]],[]],null]],[]]]],[]]]],[]]]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[[30,0,[\\\"invoice\\\",\\\"totalPrice\\\"]],0],null],[[[1,\\\"    \\\"],[10,1],[14,0,\\\"supplier-invoice-pm__header-status\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,6],[\\\"shared.bill.Credit note\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[1,\\\"  \\\"],[10,1],[14,0,\\\"supplier-invoice-pm__header-status\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,10],[[30,0,[\\\"invoice\\\",\\\"allocationType\\\"]],\\\"LABOUR\\\"],null],[[[1,\\\"      \\\"],[1,[28,[35,6],[\\\"common.Labour\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,10],[[30,0,[\\\"invoice\\\",\\\"allocationType\\\"]],\\\"MATERIALS\\\"],null],[[[1,\\\"      \\\"],[1,[28,[35,6],[\\\"common.Materials\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,10],[[30,0,[\\\"invoice\\\",\\\"allocationType\\\"]],\\\"SUBCONTRACTORS\\\"],null],[[[1,\\\"      \\\"],[1,[28,[35,6],[\\\"common.Subcontractors\\\"],null]],[1,\\\"\\\\n    \\\"]],[]],null]],[]]]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"  \\\"],[10,0],[14,0,\\\"float-end\\\"],[12],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--spaced\\\"],[16,\\\"data-test-edit-bill\\\",[28,[37,5],[[30,0,[\\\"invoice\\\",\\\"id\\\"]],\\\"new\\\"],null]],[24,4,\\\"button\\\"],[4,[38,13],[[30,0],[30,0,[\\\"editInvoice\\\"]]],[[\\\"bubbles\\\"],[false]]],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,6],[\\\"common.Details\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,0],[14,0,\\\"supplier-invoice-pm__items\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[[30,0,[\\\"invoice\\\",\\\"eaccountsFileName\\\"]],[30,0,[\\\"invoice\\\",\\\"ipsId\\\"]]],null],[[[1,\\\"    \\\"],[8,[39,14],[[24,\\\"data-test-edi-icon\\\",\\\"\\\"]],[[\\\"@imported\\\",\\\"@title\\\"],[true,[28,[37,6],[\\\"shared.bill.This invoice was imported automatically\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[[30,0,[\\\"invoice\\\",\\\"xeroLinked\\\"]],[30,0,[\\\"invoice\\\",\\\"quickbooksLinked\\\"]]],null],[[[1,\\\"    \\\"],[8,[39,14],[[24,\\\"data-test-xero-icon\\\",\\\"\\\"]],[[\\\"@exported\\\",\\\"@title\\\"],[true,[28,[37,6],[\\\"shared.bill.aCopyOfThisInvoiceHasBeenSentToYourAccountingPackage\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"invoice\\\",\\\"isAutoMapped\\\"]],[[[1,\\\"    \\\"],[8,[39,14],null,[[\\\"@autoMapped\\\",\\\"@title\\\"],[true,[28,[37,6],[\\\"shared.bill.Invoice was auto mapped\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"float-end\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"supplier-invoice-pm__meta-container\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"      \\\"],[10,1],[14,0,\\\"supplier-invoice-pm__meta-item\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"b\\\"],[12],[1,[28,[35,6],[\\\"common.Issued\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[41,[30,0,[\\\"invoice\\\",\\\"issueDate\\\"]],[[[1,[28,[35,16],[[30,0,[\\\"invoice\\\",\\\"issueDate\\\"]],[28,[37,6],[\\\"date.dayMonthYearShort\\\"],null]],null]]],[]],[[[1,\\\"—\\\"]],[]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"      \\\"],[10,1],[14,0,\\\"supplier-invoice-pm__meta-item\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"b\\\"],[12],[1,[28,[35,6],[\\\"common.Due\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[41,[30,0,[\\\"invoice\\\",\\\"dueDate\\\"]],[[[1,[28,[35,16],[[30,0,[\\\"invoice\\\",\\\"dueDate\\\"]],[28,[37,6],[\\\"date.dayMonthYearShort\\\"],null]],null]]],[]],[[[1,\\\"—\\\"]],[]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"      \\\"],[10,1],[14,0,\\\"supplier-invoice-pm__meta-item\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"b\\\"],[12],[1,[28,[35,6],[\\\"common.Number\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[41,[30,0,[\\\"invoice\\\",\\\"billNumber\\\"]],[[[1,[30,0,[\\\"invoice\\\",\\\"billNumber\\\"]]]],[]],[[[1,\\\"—\\\"]],[]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"      \\\"],[10,1],[14,0,\\\"supplier-invoice-pm__meta-item\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"b\\\"],[12],[1,[28,[35,6],[\\\"common.Total\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[1,[28,[35,17],[[30,0,[\\\"invoice\\\",\\\"totalPrice\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"invoice\\\",\\\"items\\\",\\\"length\\\"]],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button button--spaced\\\"],[16,\\\"data-test-expand-bill\\\",[30,0,[\\\"invoice\\\",\\\"id\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[[30,0],[30,0,[\\\"toggleProperty\\\"]],\\\"expanded\\\"],[[\\\"bubbles\\\"],[false]]],[12],[1,\\\"\\\\n        \\\"],[1,[52,[30,0,[\\\"expanded\\\"]],[28,[37,6],[\\\"common.Hide items\\\"],null],[28,[37,6],[\\\"common.Show items\\\"],null]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,1],[14,0,\\\"button--spaced\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"common.No items\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,18],[[30,0,[\\\"expanded\\\"]],[30,0,[\\\"invoice\\\",\\\"items\\\",\\\"length\\\"]]],null],[[[1,\\\"  \\\"],[10,\\\"table\\\"],[14,0,\\\"supplier-invoice-pm__items-table\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"th\\\"],[14,0,\\\"supplier-invoice-pm__items-table-big-cell\\\"],[12],[1,[28,[35,6],[\\\"common.Item\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[10,\\\"th\\\"],[14,0,\\\"supplier-invoice-pm__items-table-big-cell\\\"],[12],[1,[28,[35,6],[\\\"common.Assigned\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"accountingPlatform\\\",\\\"isActive\\\"]],[[[1,\\\"          \\\"],[10,\\\"th\\\"],[14,0,\\\"supplier-invoice-pm__items-table-big-cell\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,3],[[30,0,[\\\"accountingPlatform\\\",\\\"label\\\"]],\\\" \\\",[28,[37,6],[\\\"common.account\\\"],null]],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[10,\\\"th\\\"],[14,0,\\\"supplier-invoice-pm__items-table-small-cell\\\"],[12],[1,[28,[35,6],[\\\"common.Qty\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[10,\\\"th\\\"],[14,0,\\\"supplier-invoice-pm__items-table-small-cell\\\"],[12],[1,[28,[35,6],[\\\"common.Unit cost\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[10,\\\"th\\\"],[14,0,\\\"supplier-invoice-pm__items-table-small-cell\\\"],[12],[1,[28,[35,6],[\\\"common.Total cost\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,25],[[28,[37,25],[[30,0,[\\\"invoice\\\",\\\"sortedItems\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[8,[39,26],[[16,\\\"data-test-bill-item\\\",[30,2,[\\\"id\\\"]]]],[[\\\"@item\\\",\\\"@xeroReady\\\"],[[30,2],[30,0,[\\\"xeroReady\\\"]]]],null],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@hasDuplicate\\\",\\\"item\\\"],false,[\\\"div\\\",\\\"if\\\",\\\"fa-icon\\\",\\\"concat\\\",\\\"span\\\",\\\"or\\\",\\\"t\\\",\\\"html-safe\\\",\\\"info-popup\\\",\\\"not-eq\\\",\\\"eq\\\",\\\"lt\\\",\\\"button\\\",\\\"action\\\",\\\"integration-icon\\\",\\\"b\\\",\\\"moment-format\\\",\\\"number-format\\\",\\\"and\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"tbody\\\",\\\"each\\\",\\\"-track-array\\\",\\\"supplier-invoices-pm/invoice-item\\\"]]\",\n    \"moduleName\": \"portal/components/supplier-invoices-pm/invoice.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    classNames: ['supplier-invoice-pm'],\n    classNameBindings: ['checked:supplier-invoice-pm--selected'],\n    accountingPlatform: (0, _service.inject)(),\n    checked: (0, _computed.alias)('invoice.checked'),\n    expandedByDefault: false,\n    setExpanded: (0, _evented.on)('init', function () {\n      (0, _object.set)(this, 'expanded', (0, _object.get)(this, 'expandedByDefault') === true);\n    }),\n    click: function () {\n      this.toggleProperty('invoice.checked');\n    }\n  }));\n});","define(\"portal/components/takeoff-uploader-modal\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _tracking, _object, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <ModalDialog\n    @onClose={{@onClose}}\n    @containerClass='modal-content w-auto'\n    @overlayClass='modal'\n    @translucentOverlay={{true}}\n  >\n    <div class='modal-header flex-column align-items-start'>\n      <h3 class='mb-1'>{{t 'shared.task.Add tasks from a file'}}</h3>\n      {{#if this.crumbStack}}\n        <div>\n          <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n        </div>\n      {{/if}}\n    </div>\n  \n    <div\n      class='modal-body overflow-auto'\n      id='takeoff-uploader-modal'\n      style='max-width: 95vw;'\n    >\n      {{#if (eq this.activePage 'upload')}}\n        <TakeoffUploaderModal::Upload\n          @onFileClear={{this.onFileClear}}\n          @onUploadComplete={{this.onUploadComplete}}\n          @takeoffFile={{this.takeoffFile}}\n        />\n      {{else if (eq this.activePage 'assign')}}\n        <TakeoffUploaderModal::Assign\n          @project={{@project}}\n          @takeoffFile={{this.takeoffFile}}\n          @takeoffItems={{this.takeoffItems}}\n          @onAssignComplete={{this.onAssignComplete}}\n          @onCancel={{this.onAssignCancel}}\n        />\n      {{else if (eq this.activePage 'map')}}\n        <TakeoffUploaderModal::Map\n          @project={{@project}}\n          @takeoffItems={{this.takeoffItems}}\n          @onMappingComplete={{this.onMappingComplete}}\n        />\n      {{/if}}\n    </div>\n  \n    <div class='modal-footer'>\n      <button\n        type='button'\n        class='btn btn-secondary'\n        disabled={{this.isLoading}}\n        {{on 'click' @onClose}}\n      >{{t 'common.Cancel'}}</button>\n    </div>\n  </ModalDialog>\n  */\n  {\n    \"id\": \"Prh6sX0v\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@overlayClass\\\",\\\"@translucentOverlay\\\"],[[30,1],\\\"modal-content w-auto\\\",\\\"modal\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"modal-header flex-column align-items-start\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-1\\\"],[12],[1,[28,[35,3],[\\\"shared.task.Add tasks from a file\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"crumbStack\\\"]],[[[1,\\\"      \\\"],[10,0],[12],[1,\\\"\\\\n        \\\"],[8,[39,5],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"modal-body overflow-auto\\\"],[14,1,\\\"takeoff-uploader-modal\\\"],[14,5,\\\"max-width: 95vw;\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[[30,0,[\\\"activePage\\\"]],\\\"upload\\\"],null],[[[1,\\\"      \\\"],[8,[39,7],null,[[\\\"@onFileClear\\\",\\\"@onUploadComplete\\\",\\\"@takeoffFile\\\"],[[30,0,[\\\"onFileClear\\\"]],[30,0,[\\\"onUploadComplete\\\"]],[30,0,[\\\"takeoffFile\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,6],[[30,0,[\\\"activePage\\\"]],\\\"assign\\\"],null],[[[1,\\\"      \\\"],[8,[39,8],null,[[\\\"@project\\\",\\\"@takeoffFile\\\",\\\"@takeoffItems\\\",\\\"@onAssignComplete\\\",\\\"@onCancel\\\"],[[30,2],[30,0,[\\\"takeoffFile\\\"]],[30,0,[\\\"takeoffItems\\\"]],[30,0,[\\\"onAssignComplete\\\"]],[30,0,[\\\"onAssignCancel\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,6],[[30,0,[\\\"activePage\\\"]],\\\"map\\\"],null],[[[1,\\\"      \\\"],[8,[39,9],null,[[\\\"@project\\\",\\\"@takeoffItems\\\",\\\"@onMappingComplete\\\"],[[30,2],[30,0,[\\\"takeoffItems\\\"]],[30,0,[\\\"onMappingComplete\\\"]]]],null],[1,\\\"\\\\n    \\\"]],[]],null]],[]]]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[30,1]],null],[12],[1,[28,[35,3],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]]]],[\\\"@onClose\\\",\\\"@project\\\"],false,[\\\"modal-dialog\\\",\\\"div\\\",\\\"h3\\\",\\\"t\\\",\\\"if\\\",\\\"page-title-breadcrumbs\\\",\\\"eq\\\",\\\"takeoff-uploader-modal/upload\\\",\\\"takeoff-uploader-modal/assign\\\",\\\"takeoff-uploader-modal/map\\\",\\\"button\\\",\\\"on\\\"]]\",\n    \"moduleName\": \"portal/components/takeoff-uploader-modal.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n      _defineProperty(this, \"uploadPage\", 'upload');\n      _defineProperty(this, \"assignPage\", 'assign');\n      _defineProperty(this, \"mapPage\", 'map');\n      _defineProperty(this, \"assignCrumbStack\", [{\n        pageTitle: this.intl.t('components.takeoff-uploader-modal.Upload file'),\n        onClick: () => this.activePage = this.uploadPage\n      }, {\n        pageTitle: this.intl.t('components.takeoff-uploader-modal.Assign items'),\n        lastCrumb: true\n      }]);\n      _defineProperty(this, \"mapCrumbStack\", [{\n        pageTitle: this.intl.t('components.takeoff-uploader-modal.Upload file'),\n        onClick: () => this.activePage = this.uploadPage\n      }, {\n        pageTitle: this.intl.t('components.takeoff-uploader-modal.Assign items'),\n        onClick: () => this.activePage = this.assignPage\n      }, {\n        pageTitle: this.intl.t('components.takeoff-uploader-modal.Map to tasks'),\n        lastCrumb: true\n      }]);\n      _initializerDefineProperty(this, \"activePage\", _descriptor2, this);\n      _initializerDefineProperty(this, \"takeoffFile\", _descriptor3, this);\n      _initializerDefineProperty(this, \"takeoffItems\", _descriptor4, this);\n      _defineProperty(this, \"onMappingComplete\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (mapItems) {\n          yield this.args.onLoadTakeoff(mapItems);\n          this.args.onClose();\n        }\n      }), null, \"onMappingComplete\", null));\n    }\n    get crumbStack() {\n      switch (this.activePage) {\n        case 'upload':\n          return null;\n        case 'assign':\n          return this.assignCrumbStack;\n        case 'map':\n          return this.mapCrumbStack;\n        default:\n          return null;\n      }\n    }\n    get isLoading() {\n      return this.onMappingComplete.isRunning;\n    }\n    onFileClear() {\n      this.takeoffItems = null;\n    }\n    onAssignCancel() {\n      this.takeoffFile = null;\n      this.activePage = this.uploadPage;\n    }\n    onUploadComplete(takeoffFile) {\n      this.takeoffFile = takeoffFile;\n      this.activePage = this.assignPage;\n    }\n    onAssignComplete(takeoffItems) {\n      this.takeoffItems = takeoffItems;\n      this.activePage = this.mapPage;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"activePage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.uploadPage;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"takeoffFile\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"takeoffItems\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"onFileClear\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onFileClear\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onAssignCancel\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onAssignCancel\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onUploadComplete\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onUploadComplete\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onAssignComplete\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onAssignComplete\"), _class.prototype), _class));\n});","define(\"portal/components/takeoff-uploader-modal/assign\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@ember/object\", \"@glimmer/component\", \"@glimmer/tracking\", \"string-similarity\", \"@ember/runloop\", \"@ember/array\", \"@ember/service\", \"portal/utils/parse-currency-string\", \"portal/utils/duration-input\", \"mathjs\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _object, _component2, _tracking, _stringSimilarity, _runloop, _array, _service, _parseCurrencyString, _durationInput, _mathjs, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _dec25, _dec26, _dec27, _dec28, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _dec29, _dec30, _dec31, _dec32, _dec33, _dec34, _dec35, _dec36, _dec37, _dec38, _dec39, _dec40, _dec41, _dec42, _class2, _descriptor24, _descriptor25, _descriptor26, _descriptor27, _descriptor28;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/object\",0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"string-similarity\",0,\"ember-concurrency\",0,\"@ember/runloop\",0,\"@ember/array\",0,\"@ember/service\",0,\"portal/utils/parse-currency-string\",0,\"portal/utils/duration-input\",0,\"mathjs\",0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='d-flex flex-column' style='max-width: 768px'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      {{#if this.takeoffItems.length}}\n        {{#if this.invalidRowMessage}}\n          <div class='alert alert-warning' role='alert'>\n            <FaIcon @icon='info-circle' @size='lg' class='me-2' />\n            <span class='me-2'>\n              {{this.invalidRowMessage}}\n            </span>\n          </div>\n        {{/if}}\n  \n        <label class='mb-1'>{{t\n            'components.takeoff-uploader-modal.assign.Group type actions'\n          }}</label>\n        <div class='d-flex align-items-center mb-2'>\n          <button\n            type='button'\n            class='btn btn-primary me-2'\n            {{on 'click' (fn this.onAllValueTypeClick 'budget')}}\n          >\n            {{t 'components.takeoff-uploader-modal.assign.All budget'}}\n          </button>\n          <button\n            type='button'\n            class='btn btn-primary me-2'\n            {{on 'click' (fn this.onAllValueTypeClick 'quote')}}\n          >\n            {{t 'components.takeoff-uploader-modal.assign.All quote'}}\n          </button>\n          <button\n            type='button'\n            class='btn btn-primary me-2'\n            {{on 'click' (fn this.onAllValueTypeClick 'labourHours')}}\n          >\n            {{t 'components.takeoff-uploader-modal.assign.All labour hours'}}\n          </button>\n        </div>\n  \n        <label class='mb-1'>{{t\n            'components.takeoff-uploader-modal.assign.Group proportion actions'\n          }}</label>\n        <div class='d-flex align-items-center mb-3'>\n          <button\n            type='button'\n            class='btn btn-primary me-2'\n            {{on 'click' (fn this.onAllFigureTypeClick 'labour')}}\n          >\n            {{t 'components.takeoff-uploader-modal.assign.All labour'}}\n          </button>\n          <button\n            type='button'\n            class='btn btn-primary me-2'\n            {{on 'click' (fn this.onAllFigureTypeClick 'materials')}}\n          >\n            {{t 'components.takeoff-uploader-modal.assign.All materials'}}\n          </button>\n          <button\n            type='button'\n            class='btn btn-primary me-2'\n            {{on 'click' (fn this.onAllFigureTypeClick 'subcontractors')}}\n          >\n            {{t 'components.takeoff-uploader-modal.assign.All subcontractors'}}\n          </button>\n          <button\n            type='button'\n            class='btn btn-primary me-2'\n            {{on 'click' (fn this.onAllFigureTypeClick 'sums')}}\n          >\n            {{t 'components.takeoff-uploader-modal.assign.All sums'}}\n          </button>\n          <button\n            type='button'\n            class='btn btn-primary me-2'\n            {{on 'click' (fn this.onAllFigureTypeClick 'labourHours')}}\n          >\n            {{t 'components.takeoff-uploader-modal.assign.All labour hours'}}\n          </button>\n        </div>\n  \n        <LazyEach\n          @items={{this.takeoffItems}}\n          @automatic={{true}}\n          @initialNumberOfItemsVisible='10'\n          @increment='10'\n          @windowSelector='#takeoff-uploader-modal'\n          as |item identifier index|\n        >\n          <PtlForm\n            class='mb-3 {{identifier}}'\n            id='takeoff-uploader-modal__assign--{{index}}'\n          >\n            {{#if item.collapsed}}\n              <div class='d-flex align-items-center'>\n                <h4\n                  role='button'\n                  class='h4 m-0 me-3 text-decoration-underline text-primary'\n                  {{on 'click' (fn (mut item.collapsed) false)}}\n                >{{or\n                    item.task\n                    (t 'components.takeoff-uploader-modal.assign.Unnamed item')\n                  }}</h4>\n                <h4 class='h4 m-0 ms-auto me-3'>\n                  {{#if item.isLabourHours}}\n                    {{format-duration item.computedTotal emptyPlaceholder='0:00'}}\n                  {{else}}\n                    {{number-format\n                      item.computedTotal\n                      style='currency'\n                      dashZero=true\n                    }}\n                  {{/if}}\n                </h4>\n              </div>\n            {{else}}\n              {{#if (or item.group item.task)}}\n                <div class='d-flex mb-3'>\n                  {{#if item.group}}\n                    <PtlInput\n                      @containerClass='w-50 me-3'\n                      @label={{t\n                        'components.takeoff-uploader-modal.assign.Group'\n                      }}\n                      @key='group'\n                      @model={{item}}\n                      @forceValidationVisible={{gt\n                        item.onAcceptItem.performCount\n                        0\n                      }}\n                      disabled={{true}}\n                    />\n                  {{/if}}\n                  {{#if item.task}}\n                    <PtlInput\n                      @containerClass={{if item.group 'w-50' 'w-100'}}\n                      @required={{true}}\n                      @selectNoBlankOption={{true}}\n                      @type='select'\n                      @label={{t 'common.Task'}}\n                      @key='task'\n                      @options={{get\n                        this.taskOptions\n                        (or item.group this.emptyTaskOptionsKey)\n                      }}\n                      @model={{item}}\n                      @forceValidationVisible={{gt\n                        item.onAcceptItem.performCount\n                        0\n                      }}\n                    />\n                  {{/if}}\n                </div>\n              {{/if}}\n              {{#if (or item.description item.sku)}}\n                <div class='d-flex mb-3'>\n                  {{#if item.description}}\n                    <PtlInput\n                      @containerClass='flex-grow-1 me-3'\n                      @label={{t 'shared.task.Product description'}}\n                      @key='description'\n                      @model={{item}}\n                      @forceValidationVisible={{gt\n                        item.onAcceptItem.performCount\n                        0\n                      }}\n                      disabled={{true}}\n                    />\n                  {{/if}}\n                  {{#if item.sku}}\n                    <PtlInput\n                      @containerClass='flex-grow-1'\n                      @label={{t 'common.SKU'}}\n                      @key='sku'\n                      @model={{item}}\n                      @forceValidationVisible={{gt\n                        item.onAcceptItem.performCount\n                        0\n                      }}\n                      disabled={{true}}\n                    />\n                  {{/if}}\n                </div>\n              {{/if}}\n              <div class='d-flex mb-3'>\n                <PtlInput\n                  @containerClass='me-3'\n                  @type='number'\n                  @label={{t 'common.Quantity'}}\n                  @min={{0}}\n                  @key='quantity'\n                  @model={{item}}\n                  @required={{true}}\n                  @forceValidationVisible={{gt item.onAcceptItem.performCount 0}}\n                  disabled={{this.continue.isRunning}}\n                />\n                <PtlInput\n                  @containerClass='flex-grow-1 me-3'\n                  @type={{if item.isLabourHours 'duration' 'currency'}}\n                  @label={{t 'common.Rate'}}\n                  @key='rate'\n                  @model={{item}}\n                  @required={{true}}\n                  @forceValidationVisible={{gt item.onAcceptItem.performCount 0}}\n                  disabled={{this.continue.isRunning}}\n                />\n                <PtlInput\n                  @containerClass='flex-grow-1'\n                  @type={{if item.isLabourHours 'duration' 'currency'}}\n                  @label={{t 'common.Total'}}\n                  @key='computedItemTotal'\n                  @model={{item}}\n                  @forceValidationVisible={{gt item.onAcceptItem.performCount 0}}\n                  disabled={{true}}\n                />\n              </div>\n              <PtlInput\n                @required={{true}}\n                @description={{item.valueTypeExplainerMessage}}\n                @selectNoBlankOption={{true}}\n                @type='select'\n                @label={{t 'common.Type'}}\n                @key='valueType'\n                @options={{item.valueTypes}}\n                @model={{item}}\n                @forceValidationVisible={{gt item.onAcceptItem.performCount 0}}\n              />\n  \n              <table class='table align-middle'>\n                <thead>\n                  <tr>\n                    <th>{{t 'common.Type'}}</th>\n                    <th>{{t\n                        'components.takeoff-uploader-modal.assign.Proportion'\n                      }}</th>\n                    <th>{{t 'common.Total'}}</th>\n                    <th></th>\n                  </tr>\n                </thead>\n                <tbody>\n                  {{! labour hours can only assign hours because we are dealing with a ratio of the item value }}\n                  {{#if item.isLabourHours}}\n                    <tr>\n                      <td>{{t 'common.Labour hours'}}</td>\n                      <td>\n                        <PtlInput\n                          @containerClass='m-0'\n                          @type='percentage'\n                          @key='labourHoursRatio'\n                          @model={{item}}\n                          @forceValidationVisible={{gt\n                            item.onAcceptItem.performCount\n                            0\n                          }}\n                          disabled={{this.continue.isRunning}}\n                        />\n                      </td>\n                      <td>\n                        <PtlInput\n                          @containerClass='m-0'\n                          @type='duration'\n                          @key='labourHoursTotal'\n                          @model={{item}}\n                          @forceValidationVisible={{gt\n                            item.onAcceptItem.performCount\n                            0\n                          }}\n                          disabled={{this.continue.isRunning}}\n                        />\n                      </td>\n                      <td>\n                        <button\n                          type='button'\n                          class='btn btn-link text-decoration-underline'\n                          {{on\n                            'click'\n                            (fn item.onAllFigureTypeClick 'labourHours')\n                          }}\n                        >\n                          {{t\n                            'components.takeoff-uploader-modal.assign.All labour hours'\n                          }}\n                        </button>\n                      </td>\n                    </tr>\n                  {{else}}\n                    <tr>\n                      <td>{{t 'common.Labour hours'}}</td>\n                      <td></td>\n                      <td>\n                        <PtlInput\n                          @containerClass='m-0'\n                          @type='duration'\n                          @key='labourHoursTotal'\n                          @model={{item}}\n                          @forceValidationVisible={{gt\n                            item.onAcceptItem.performCount\n                            0\n                          }}\n                          disabled={{this.continue.isRunning}}\n                        />\n                      </td>\n                      <td></td>\n                    </tr>\n                    <tr>\n                      <td>{{t 'common.Labour'}}</td>\n                      <td>\n                        <PtlInput\n                          @containerClass='m-0'\n                          @type='percentage'\n                          @key='labourRatio'\n                          @model={{item}}\n                          @forceValidationVisible={{gt\n                            item.onAcceptItem.performCount\n                            0\n                          }}\n                          disabled={{this.continue.isRunning}}\n                        />\n                      </td>\n                      <td>\n                        <PtlInput\n                          @containerClass='m-0'\n                          @type='currency'\n                          @key='labourTotal'\n                          @model={{item}}\n                          @forceValidationVisible={{gt\n                            item.onAcceptItem.performCount\n                            0\n                          }}\n                          disabled={{this.continue.isRunning}}\n                        />\n                      </td>\n                      <td>\n                        <button\n                          type='button'\n                          class='btn btn-link text-decoration-underline'\n                          {{on 'click' (fn item.onAllFigureTypeClick 'labour')}}\n                        >\n                          {{t\n                            'components.takeoff-uploader-modal.assign.All labour'\n                          }}\n                        </button>\n                      </td>\n                    </tr>\n                    <tr>\n                      <td>{{t 'common.Materials'}}</td>\n                      <td>\n                        <PtlInput\n                          @containerClass='m-0'\n                          @type='percentage'\n                          @key='materialsRatio'\n                          @model={{item}}\n                          @forceValidationVisible={{gt\n                            item.onAcceptItem.performCount\n                            0\n                          }}\n                          disabled={{this.continue.isRunning}}\n                        />\n                      </td>\n                      <td>\n                        <PtlInput\n                          @containerClass='m-0'\n                          @type='currency'\n                          @key='materialsTotal'\n                          @model={{item}}\n                          @forceValidationVisible={{gt\n                            item.onAcceptItem.performCount\n                            0\n                          }}\n                          disabled={{this.continue.isRunning}}\n                        />\n                      </td>\n                      <td>\n                        <button\n                          type='button'\n                          class='btn btn-link text-decoration-underline'\n                          {{on\n                            'click'\n                            (fn item.onAllFigureTypeClick 'materials')\n                          }}\n                        >\n                          {{t\n                            'components.takeoff-uploader-modal.assign.All materials'\n                          }}\n                        </button>\n                      </td>\n                    </tr>\n                    <tr>\n                      <td>{{t 'common.Subcontractors'}}</td>\n                      <td>\n                        <PtlInput\n                          @containerClass='m-0'\n                          @type='percentage'\n                          @key='subcontractorsRatio'\n                          @model={{item}}\n                          @forceValidationVisible={{gt\n                            item.onAcceptItem.performCount\n                            0\n                          }}\n                          disabled={{this.continue.isRunning}}\n                        />\n                      </td>\n                      <td>\n                        <PtlInput\n                          @containerClass='m-0'\n                          @type='currency'\n                          @key='subcontractorsTotal'\n                          @model={{item}}\n                          @forceValidationVisible={{gt\n                            item.onAcceptItem.performCount\n                            0\n                          }}\n                          disabled={{this.continue.isRunning}}\n                        />\n                      </td>\n                      <td>\n                        <button\n                          type='button'\n                          class='btn btn-link text-decoration-underline'\n                          {{on\n                            'click'\n                            (fn item.onAllFigureTypeClick 'subcontractors')\n                          }}\n                        >\n                          {{t\n                            'components.takeoff-uploader-modal.assign.All subcontractors'\n                          }}\n                        </button>\n                      </td>\n                    </tr>\n                    <tr>\n                      <td>{{t 'common.Sums'}}</td>\n                      <td>\n                        <PtlInput\n                          @containerClass='m-0'\n                          @type='percentage'\n                          @key='sumsRatio'\n                          @model={{item}}\n                          @forceValidationVisible={{gt\n                            item.onAcceptItem.performCount\n                            0\n                          }}\n                          disabled={{this.continue.isRunning}}\n                        />\n                      </td>\n                      <td>\n                        <PtlInput\n                          @containerClass='m-0'\n                          @type='currency'\n                          @key='sumsTotal'\n                          @model={{item}}\n                          @forceValidationVisible={{gt\n                            item.onAcceptItem.performCount\n                            0\n                          }}\n                          disabled={{this.continue.isRunning}}\n                        />\n                      </td>\n                      <td>\n                        <button\n                          type='button'\n                          class='btn btn-link text-decoration-underline'\n                          {{on 'click' (fn item.onAllFigureTypeClick 'sums')}}\n                        >\n                          {{t\n                            'components.takeoff-uploader-modal.assign.All sums'\n                          }}\n                        </button>\n                      </td>\n                    </tr>\n                  {{/if}}\n                  {{#if item.isLabourHours}}\n                    <tr>\n                      <td></td>\n                      <td>\n                        <div class='d-flex flex-column'>\n                          <span>\n                            <b>\n                              {{number-format\n                                item.computedTotalUsed\n                                style='percent'\n                                dashZero=false\n                                maximumFractionDigits=2\n                                minimumFractionDigits=2\n                              }}\n                            </b>\n                          </span>\n                          {{#if (not-eq item.computedTotalUsedRemaining 0)}}\n                            <span>\n                              {{number-format\n                                item.computedTotalUsedRemaining\n                                style='percent'\n                                dashZero=true\n                                maximumFractionDigits=2\n                                minimumFractionDigits=2\n                              }}\n                              {{if\n                                (gt item.computedTotalUsedRemaining 0)\n                                (t\n                                  'components.takeoff-uploader-modal.assign.remaining'\n                                )\n                                (t\n                                  'components.takeoff-uploader-modal.assign.over'\n                                )\n                              }}\n                            </span>\n                          {{/if}}\n                        </div>\n                      </td>\n                      <td>\n                        <div class='d-flex flex-column'>\n                          <span>\n                            <b>\n                              {{format-duration\n                                item.computedTotal\n                                emptyPlaceholder='0:00'\n                              }}\n                              {{t\n                                'components.takeoff-uploader-modal.assign.hours'\n                              }}\n                            </b>\n                          </span>\n                          {{#if (not-eq item.computedTotalRemaining 0)}}\n                            <span>\n                              {{format-duration\n                                item.computedTotalRemaining\n                                emptyPlaceholder='0:00'\n                              }}\n                              {{if\n                                (gt item.computedTotalRemaining 0)\n                                (t\n                                  'components.takeoff-uploader-modal.assign.remaining'\n                                )\n                                (t\n                                  'components.takeoff-uploader-modal.assign.over'\n                                )\n                              }}\n                            </span>\n                          {{/if}}\n                        </div>\n                      </td>\n                      <td></td>\n                    </tr>\n                  {{else}}\n                    <tr>\n                      <td></td>\n                      <td>\n                        <div class='d-flex flex-column'>\n                          <span>\n                            <b>\n                              {{number-format\n                                item.computedTotalUsed\n                                style='percent'\n                                dashZero=false\n                                maximumFractionDigits=2\n                                minimumFractionDigits=2\n                              }}\n                            </b>\n                          </span>\n                          {{#if (not-eq item.computedTotalUsedRemaining 0)}}\n                            <span>\n                              {{number-format\n                                item.computedTotalUsedRemaining\n                                style='percent'\n                                dashZero=true\n                                maximumFractionDigits=2\n                                minimumFractionDigits=2\n                              }}\n                              {{if\n                                (gt item.computedTotalUsedRemaining 0)\n                                (t\n                                  'components.takeoff-uploader-modal.assign.remaining'\n                                )\n                                (t\n                                  'components.takeoff-uploader-modal.assign.over'\n                                )\n                              }}\n                            </span>\n                          {{/if}}\n                        </div>\n                      </td>\n                      <td>\n                        <div class='d-flex flex-column'>\n                          <span>\n                            <b>\n                              {{number-format\n                                item.computedTotal\n                                style='currency'\n                                dashZero=false\n                              }}\n                            </b>\n                          </span>\n                          {{#if (not-eq item.computedTotalRemaining 0)}}\n                            <span>\n                              {{number-format\n                                item.computedTotalRemaining\n                                style='currency'\n                                dashZero=true\n                              }}\n                              {{if\n                                (gt item.computedTotalRemaining 0)\n                                (t\n                                  'components.takeoff-uploader-modal.assign.remaining'\n                                )\n                                (t\n                                  'components.takeoff-uploader-modal.assign.over'\n                                )\n                              }}\n                            </span>\n                          {{/if}}\n                        </div>\n                      </td>\n                      <td></td>\n                    </tr>\n                  {{/if}}\n                </tbody>\n              </table>\n  \n              {{#each item.generalInfoMessages as |message|}}\n                <div class='alert alert-info' role='alert'>\n                  <FaIcon @icon='info-circle' @size='lg' class='me-2' />\n                  <span class='me-2'>\n                    {{message.validation}}\n                  </span>\n                </div>\n              {{/each}}\n              {{#if (gt item.onAcceptItem.performCount 0)}}\n                {{#each item.generalErrorMessages as |message|}}\n                  <div class='alert alert-warning' role='alert'>\n                    <FaIcon @icon='exclamation-circle' @size='lg' class='me-2' />\n                    <span class='me-2'>\n                      {{message.validation}}\n                    </span>\n                  </div>\n                {{/each}}\n              {{/if}}\n              <div class='d-flex flex-grow-1'>\n                <button\n                  type='button'\n                  class='btn btn-link text-danger text-decoration-underline'\n                  {{on 'click' (fn item.onDelete item)}}\n                >{{t\n                    'components.takeoff-uploader-modal.assign.Remove item'\n                  }}</button>\n                <button\n                  type='button'\n                  class='btn btn-primary ms-auto'\n                  {{on 'click' (perform item.onAcceptItem index)}}\n                >{{t\n                    'components.takeoff-uploader-modal.assign.Accept item'\n                  }}</button>\n              </div>\n            {{/if}}\n          </PtlForm>\n        </LazyEach>\n  \n        <div\n          class='border-top bg-white m-n3 p-3'\n          {{! -1rem is equal to m-3 }}\n          style='position: sticky; bottom: -1rem; margin-top: 1rem!important; z-index: 1020;'\n        >\n          <table class='table'>\n            <thead>\n              <tr>\n                <th colspan='7'>{{t 'common.Summary'}}</th>\n              </tr>\n              <tr>\n                <th>{{t 'common.Type'}}</th>\n                <th>{{t 'common.Labour hours'}}</th>\n                <th>{{t 'common.Labour'}}</th>\n                <th>{{t 'common.Materials'}}</th>\n                <th>{{t 'common.Subcontractors'}}</th>\n                <th>{{t 'common.Sums'}}</th>\n                <th>{{t 'common.Total'}}</th>\n              </tr>\n            </thead>\n            <tbody>\n              <tr>\n                <td>{{t 'common.Budget'}}</td>\n                <td>\n                  {{format-duration this.totalManHoursBudget}}\n                </td>\n                <td>\n                  {{number-format\n                    this.totalLabourBudget\n                    style='currency'\n                    dashZero=true\n                  }}\n                </td>\n                <td>\n                  {{number-format\n                    this.totalMaterialsBudget\n                    style='currency'\n                    dashZero=true\n                  }}\n                </td>\n                <td>\n                  {{number-format\n                    this.totalSubcontractorsBudget\n                    style='currency'\n                    dashZero=true\n                  }}\n                </td>\n                <td>\n                  {{number-format\n                    this.totalSumsBudget\n                    style='currency'\n                    dashZero=true\n                  }}\n                </td>\n                <td>\n                  {{number-format\n                    this.totalBudget\n                    style='currency'\n                    dashZero=true\n                  }}\n                </td>\n              </tr>\n              <tr>\n                <td>{{t 'common.Quote'}}</td>\n                {{! technically the man hours quote exists but it is never shown to the user }}\n                <td></td>\n                <td>\n                  {{number-format\n                    this.totalLabourQuote\n                    style='currency'\n                    dashZero=true\n                  }}\n                </td>\n                <td>\n                  {{number-format\n                    this.totalMaterialsQuote\n                    style='currency'\n                    dashZero=true\n                  }}\n                </td>\n                <td>\n                  {{number-format\n                    this.totalSubcontractorsQuote\n                    style='currency'\n                    dashZero=true\n                  }}\n                </td>\n                <td>\n                  {{number-format\n                    this.totalSumsQuote\n                    style='currency'\n                    dashZero=true\n                  }}\n                </td>\n                <td>\n                  {{number-format this.totalQuote style='currency' dashZero=true}}\n                </td>\n              </tr>\n            </tbody>\n          </table>\n  \n          <div class='d-flex justify-content-end p-2'>\n            <button\n              class='btn btn-secondary me-2'\n              type='button'\n              {{on 'click' this.onAllAcceptItem}}\n            >{{t\n                'components.takeoff-uploader-modal.assign.Accept all items'\n              }}</button>\n            <button\n              class='btn btn-primary'\n              type='button'\n              disabled={{gt this.errors.length 0}}\n              {{on 'click' (fn (perform this.continue))}}\n            >{{t 'shared.task.Continue to next step'}}</button>\n          </div>\n        </div>\n      {{else}}\n        <p class='text-center'>\n          {{t\n            'components.takeoff-uploader-modal.assign.No items could be found in this file'\n          }}\n        </p>\n        <button\n          type='button'\n          class='btn btn-primary align-self-center mb-3'\n          {{on 'click' @onCancel}}\n        >\n          {{t\n            'components.takeoff-uploader-modal.assign.Try uploading another file'\n          }}\n        </button>\n      {{/if}}\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"5zK2gmo5\",\n    \"block\": \"[[[10,0],[14,0,\\\"d-flex flex-column\\\"],[14,5,\\\"max-width: 768px\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"takeoffItems\\\",\\\"length\\\"]],[[[41,[30,0,[\\\"invalidRowMessage\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"alert alert-warning\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,3],[[24,0,\\\"me-2\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"info-circle\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n          \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[30,0,[\\\"invalidRowMessage\\\"]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,[28,[35,6],[\\\"components.takeoff-uploader-modal.assign.Group type actions\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center mb-2\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary me-2\\\"],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[30,0,[\\\"onAllValueTypeClick\\\"]],\\\"budget\\\"],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"components.takeoff-uploader-modal.assign.All budget\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary me-2\\\"],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[30,0,[\\\"onAllValueTypeClick\\\"]],\\\"quote\\\"],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"components.takeoff-uploader-modal.assign.All quote\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary me-2\\\"],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[30,0,[\\\"onAllValueTypeClick\\\"]],\\\"labourHours\\\"],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"components.takeoff-uploader-modal.assign.All labour hours\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,[28,[35,6],[\\\"components.takeoff-uploader-modal.assign.Group proportion actions\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center mb-3\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary me-2\\\"],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[30,0,[\\\"onAllFigureTypeClick\\\"]],\\\"labour\\\"],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"components.takeoff-uploader-modal.assign.All labour\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary me-2\\\"],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[30,0,[\\\"onAllFigureTypeClick\\\"]],\\\"materials\\\"],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"components.takeoff-uploader-modal.assign.All materials\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary me-2\\\"],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[30,0,[\\\"onAllFigureTypeClick\\\"]],\\\"subcontractors\\\"],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"components.takeoff-uploader-modal.assign.All subcontractors\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary me-2\\\"],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[30,0,[\\\"onAllFigureTypeClick\\\"]],\\\"sums\\\"],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"components.takeoff-uploader-modal.assign.All sums\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary me-2\\\"],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[30,0,[\\\"onAllFigureTypeClick\\\"]],\\\"labourHours\\\"],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"components.takeoff-uploader-modal.assign.All labour hours\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,10],null,[[\\\"@items\\\",\\\"@automatic\\\",\\\"@initialNumberOfItemsVisible\\\",\\\"@increment\\\",\\\"@windowSelector\\\"],[[30,0,[\\\"takeoffItems\\\"]],true,\\\"10\\\",\\\"10\\\",\\\"#takeoff-uploader-modal\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[39,11],[[16,0,[29,[\\\"mb-3 \\\",[30,2]]]],[16,1,[29,[\\\"takeoff-uploader-modal__assign--\\\",[30,3]]]]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"collapsed\\\"]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n              \\\"],[11,\\\"h4\\\"],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"h4 m-0 me-3 text-decoration-underline text-primary\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,13],[[30,1,[\\\"collapsed\\\"]]],null],false],null]],null],[12],[1,[28,[35,14],[[30,1,[\\\"task\\\"]],[28,[37,6],[\\\"components.takeoff-uploader-modal.assign.Unnamed item\\\"],null]],null]],[13],[1,\\\"\\\\n              \\\"],[10,\\\"h4\\\"],[14,0,\\\"h4 m-0 ms-auto me-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"isLabourHours\\\"]],[[[1,\\\"                  \\\"],[1,[28,[35,15],[[30,1,[\\\"computedTotal\\\"]]],[[\\\"emptyPlaceholder\\\"],[\\\"0:00\\\"]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[28,[35,16],[[30,1,[\\\"computedTotal\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,14],[[30,1,[\\\"group\\\"]],[30,1,[\\\"task\\\"]]],null],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"d-flex mb-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"group\\\"]],[[[1,\\\"                  \\\"],[8,[39,17],[[16,\\\"disabled\\\",true]],[[\\\"@containerClass\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"w-50 me-3\\\",[28,[37,6],[\\\"components.takeoff-uploader-modal.assign.Group\\\"],null],\\\"group\\\",[30,1],[28,[37,18],[[30,1,[\\\"onAcceptItem\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,1,[\\\"task\\\"]],[[[1,\\\"                  \\\"],[8,[39,17],null,[[\\\"@containerClass\\\",\\\"@required\\\",\\\"@selectNoBlankOption\\\",\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[[52,[30,1,[\\\"group\\\"]],\\\"w-50\\\",\\\"w-100\\\"],true,true,\\\"select\\\",[28,[37,6],[\\\"common.Task\\\"],null],\\\"task\\\",[28,[37,19],[[30,0,[\\\"taskOptions\\\"]],[28,[37,14],[[30,1,[\\\"group\\\"]],[30,0,[\\\"emptyTaskOptionsKey\\\"]]],null]],null],[30,1],[28,[37,18],[[30,1,[\\\"onAcceptItem\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,14],[[30,1,[\\\"description\\\"]],[30,1,[\\\"sku\\\"]]],null],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"d-flex mb-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"description\\\"]],[[[1,\\\"                  \\\"],[8,[39,17],[[16,\\\"disabled\\\",true]],[[\\\"@containerClass\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"flex-grow-1 me-3\\\",[28,[37,6],[\\\"shared.task.Product description\\\"],null],\\\"description\\\",[30,1],[28,[37,18],[[30,1,[\\\"onAcceptItem\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,1,[\\\"sku\\\"]],[[[1,\\\"                  \\\"],[8,[39,17],[[16,\\\"disabled\\\",true]],[[\\\"@containerClass\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"flex-grow-1\\\",[28,[37,6],[\\\"common.SKU\\\"],null],\\\"sku\\\",[30,1],[28,[37,18],[[30,1,[\\\"onAcceptItem\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,0],[14,0,\\\"d-flex mb-3\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,17],[[16,\\\"disabled\\\",[30,0,[\\\"continue\\\",\\\"isRunning\\\"]]]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@label\\\",\\\"@min\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"me-3\\\",\\\"number\\\",[28,[37,6],[\\\"common.Quantity\\\"],null],0,\\\"quantity\\\",[30,1],true,[28,[37,18],[[30,1,[\\\"onAcceptItem\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n              \\\"],[8,[39,17],[[16,\\\"disabled\\\",[30,0,[\\\"continue\\\",\\\"isRunning\\\"]]]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"flex-grow-1 me-3\\\",[52,[30,1,[\\\"isLabourHours\\\"]],\\\"duration\\\",\\\"currency\\\"],[28,[37,6],[\\\"common.Rate\\\"],null],\\\"rate\\\",[30,1],true,[28,[37,18],[[30,1,[\\\"onAcceptItem\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n              \\\"],[8,[39,17],[[16,\\\"disabled\\\",true]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"flex-grow-1\\\",[52,[30,1,[\\\"isLabourHours\\\"]],\\\"duration\\\",\\\"currency\\\"],[28,[37,6],[\\\"common.Total\\\"],null],\\\"computedItemTotal\\\",[30,1],[28,[37,18],[[30,1,[\\\"onAcceptItem\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[8,[39,17],null,[[\\\"@required\\\",\\\"@description\\\",\\\"@selectNoBlankOption\\\",\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[true,[30,1,[\\\"valueTypeExplainerMessage\\\"]],true,\\\"select\\\",[28,[37,6],[\\\"common.Type\\\"],null],\\\"valueType\\\",[30,1,[\\\"valueTypes\\\"]],[30,1],[28,[37,18],[[30,1,[\\\"onAcceptItem\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n            \\\"],[10,\\\"table\\\"],[14,0,\\\"table align-middle\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"common.Type\\\"],null]],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"components.takeoff-uploader-modal.assign.Proportion\\\"],null]],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"common.Total\\\"],null]],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"th\\\"],[12],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"isLabourHours\\\"]],[[[1,\\\"                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,6],[\\\"common.Labour hours\\\"],null]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                      \\\"],[8,[39,17],[[16,\\\"disabled\\\",[30,0,[\\\"continue\\\",\\\"isRunning\\\"]]]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"m-0\\\",\\\"percentage\\\",\\\"labourHoursRatio\\\",[30,1],[28,[37,18],[[30,1,[\\\"onAcceptItem\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                      \\\"],[8,[39,17],[[16,\\\"disabled\\\",[30,0,[\\\"continue\\\",\\\"isRunning\\\"]]]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"m-0\\\",\\\"duration\\\",\\\"labourHoursTotal\\\",[30,1],[28,[37,18],[[30,1,[\\\"onAcceptItem\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-decoration-underline\\\"],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[30,1,[\\\"onAllFigureTypeClick\\\"]],\\\"labourHours\\\"],null]],null],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[35,6],[\\\"components.takeoff-uploader-modal.assign.All labour hours\\\"],null]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,6],[\\\"common.Labour hours\\\"],null]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                      \\\"],[8,[39,17],[[16,\\\"disabled\\\",[30,0,[\\\"continue\\\",\\\"isRunning\\\"]]]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"m-0\\\",\\\"duration\\\",\\\"labourHoursTotal\\\",[30,1],[28,[37,18],[[30,1,[\\\"onAcceptItem\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,6],[\\\"common.Labour\\\"],null]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                      \\\"],[8,[39,17],[[16,\\\"disabled\\\",[30,0,[\\\"continue\\\",\\\"isRunning\\\"]]]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"m-0\\\",\\\"percentage\\\",\\\"labourRatio\\\",[30,1],[28,[37,18],[[30,1,[\\\"onAcceptItem\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                      \\\"],[8,[39,17],[[16,\\\"disabled\\\",[30,0,[\\\"continue\\\",\\\"isRunning\\\"]]]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"m-0\\\",\\\"currency\\\",\\\"labourTotal\\\",[30,1],[28,[37,18],[[30,1,[\\\"onAcceptItem\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-decoration-underline\\\"],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[30,1,[\\\"onAllFigureTypeClick\\\"]],\\\"labour\\\"],null]],null],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[35,6],[\\\"components.takeoff-uploader-modal.assign.All labour\\\"],null]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,6],[\\\"common.Materials\\\"],null]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                      \\\"],[8,[39,17],[[16,\\\"disabled\\\",[30,0,[\\\"continue\\\",\\\"isRunning\\\"]]]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"m-0\\\",\\\"percentage\\\",\\\"materialsRatio\\\",[30,1],[28,[37,18],[[30,1,[\\\"onAcceptItem\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                      \\\"],[8,[39,17],[[16,\\\"disabled\\\",[30,0,[\\\"continue\\\",\\\"isRunning\\\"]]]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"m-0\\\",\\\"currency\\\",\\\"materialsTotal\\\",[30,1],[28,[37,18],[[30,1,[\\\"onAcceptItem\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-decoration-underline\\\"],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[30,1,[\\\"onAllFigureTypeClick\\\"]],\\\"materials\\\"],null]],null],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[35,6],[\\\"components.takeoff-uploader-modal.assign.All materials\\\"],null]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,6],[\\\"common.Subcontractors\\\"],null]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                      \\\"],[8,[39,17],[[16,\\\"disabled\\\",[30,0,[\\\"continue\\\",\\\"isRunning\\\"]]]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"m-0\\\",\\\"percentage\\\",\\\"subcontractorsRatio\\\",[30,1],[28,[37,18],[[30,1,[\\\"onAcceptItem\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                      \\\"],[8,[39,17],[[16,\\\"disabled\\\",[30,0,[\\\"continue\\\",\\\"isRunning\\\"]]]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"m-0\\\",\\\"currency\\\",\\\"subcontractorsTotal\\\",[30,1],[28,[37,18],[[30,1,[\\\"onAcceptItem\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-decoration-underline\\\"],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[30,1,[\\\"onAllFigureTypeClick\\\"]],\\\"subcontractors\\\"],null]],null],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[35,6],[\\\"components.takeoff-uploader-modal.assign.All subcontractors\\\"],null]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,6],[\\\"common.Sums\\\"],null]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                      \\\"],[8,[39,17],[[16,\\\"disabled\\\",[30,0,[\\\"continue\\\",\\\"isRunning\\\"]]]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"m-0\\\",\\\"percentage\\\",\\\"sumsRatio\\\",[30,1],[28,[37,18],[[30,1,[\\\"onAcceptItem\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                      \\\"],[8,[39,17],[[16,\\\"disabled\\\",[30,0,[\\\"continue\\\",\\\"isRunning\\\"]]]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"m-0\\\",\\\"currency\\\",\\\"sumsTotal\\\",[30,1],[28,[37,18],[[30,1,[\\\"onAcceptItem\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-decoration-underline\\\"],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[30,1,[\\\"onAllFigureTypeClick\\\"]],\\\"sums\\\"],null]],null],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[35,6],[\\\"components.takeoff-uploader-modal.assign.All sums\\\"],null]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[41,[30,1,[\\\"isLabourHours\\\"]],[[[1,\\\"                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,0],[14,0,\\\"d-flex flex-column\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,1],[12],[1,\\\"\\\\n                          \\\"],[10,\\\"b\\\"],[12],[1,\\\"\\\\n                            \\\"],[1,[28,[35,16],[[30,1,[\\\"computedTotalUsed\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",false,2,2]]]],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,27],[[30,1,[\\\"computedTotalUsedRemaining\\\"]],0],null],[[[1,\\\"                          \\\"],[10,1],[12],[1,\\\"\\\\n                            \\\"],[1,[28,[35,16],[[30,1,[\\\"computedTotalUsedRemaining\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]]],[1,\\\"\\\\n                            \\\"],[1,[52,[28,[37,18],[[30,1,[\\\"computedTotalUsedRemaining\\\"]],0],null],[28,[37,6],[\\\"components.takeoff-uploader-modal.assign.remaining\\\"],null],[28,[37,6],[\\\"components.takeoff-uploader-modal.assign.over\\\"],null]]],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,0],[14,0,\\\"d-flex flex-column\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,1],[12],[1,\\\"\\\\n                          \\\"],[10,\\\"b\\\"],[12],[1,\\\"\\\\n                            \\\"],[1,[28,[35,15],[[30,1,[\\\"computedTotal\\\"]]],[[\\\"emptyPlaceholder\\\"],[\\\"0:00\\\"]]]],[1,\\\"\\\\n                            \\\"],[1,[28,[35,6],[\\\"components.takeoff-uploader-modal.assign.hours\\\"],null]],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,27],[[30,1,[\\\"computedTotalRemaining\\\"]],0],null],[[[1,\\\"                          \\\"],[10,1],[12],[1,\\\"\\\\n                            \\\"],[1,[28,[35,15],[[30,1,[\\\"computedTotalRemaining\\\"]]],[[\\\"emptyPlaceholder\\\"],[\\\"0:00\\\"]]]],[1,\\\"\\\\n                            \\\"],[1,[52,[28,[37,18],[[30,1,[\\\"computedTotalRemaining\\\"]],0],null],[28,[37,6],[\\\"components.takeoff-uploader-modal.assign.remaining\\\"],null],[28,[37,6],[\\\"components.takeoff-uploader-modal.assign.over\\\"],null]]],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,0],[14,0,\\\"d-flex flex-column\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,1],[12],[1,\\\"\\\\n                          \\\"],[10,\\\"b\\\"],[12],[1,\\\"\\\\n                            \\\"],[1,[28,[35,16],[[30,1,[\\\"computedTotalUsed\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",false,2,2]]]],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,27],[[30,1,[\\\"computedTotalUsedRemaining\\\"]],0],null],[[[1,\\\"                          \\\"],[10,1],[12],[1,\\\"\\\\n                            \\\"],[1,[28,[35,16],[[30,1,[\\\"computedTotalUsedRemaining\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]]],[1,\\\"\\\\n                            \\\"],[1,[52,[28,[37,18],[[30,1,[\\\"computedTotalUsedRemaining\\\"]],0],null],[28,[37,6],[\\\"components.takeoff-uploader-modal.assign.remaining\\\"],null],[28,[37,6],[\\\"components.takeoff-uploader-modal.assign.over\\\"],null]]],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,0],[14,0,\\\"d-flex flex-column\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,1],[12],[1,\\\"\\\\n                          \\\"],[10,\\\"b\\\"],[12],[1,\\\"\\\\n                            \\\"],[1,[28,[35,16],[[30,1,[\\\"computedTotal\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",false]]]],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,27],[[30,1,[\\\"computedTotalRemaining\\\"]],0],null],[[[1,\\\"                          \\\"],[10,1],[12],[1,\\\"\\\\n                            \\\"],[1,[28,[35,16],[[30,1,[\\\"computedTotalRemaining\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                            \\\"],[1,[52,[28,[37,18],[[30,1,[\\\"computedTotalRemaining\\\"]],0],null],[28,[37,6],[\\\"components.takeoff-uploader-modal.assign.remaining\\\"],null],[28,[37,6],[\\\"components.takeoff-uploader-modal.assign.over\\\"],null]]],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,29],[[28,[37,29],[[30,1,[\\\"generalInfoMessages\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,0],[14,0,\\\"alert alert-info\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,3],[[24,0,\\\"me-2\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"info-circle\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n                \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[30,4,[\\\"validation\\\"]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],null],[41,[28,[37,18],[[30,1,[\\\"onAcceptItem\\\",\\\"performCount\\\"]],0],null],[[[42,[28,[37,29],[[28,[37,29],[[30,1,[\\\"generalErrorMessages\\\"]]],null]],null],null,[[[1,\\\"                \\\"],[10,0],[14,0,\\\"alert alert-warning\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n                  \\\"],[8,[39,3],[[24,0,\\\"me-2\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"exclamation-circle\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n                  \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[30,5,[\\\"validation\\\"]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[5]],null]],[]],null],[1,\\\"            \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1\\\"],[12],[1,\\\"\\\\n              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline\\\"],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[30,1,[\\\"onDelete\\\"]],[30,1]],null]],null],[12],[1,[28,[35,6],[\\\"components.takeoff-uploader-modal.assign.Remove item\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,30],[[30,1,[\\\"onAcceptItem\\\"]],[30,3]],null]],null],[12],[1,[28,[35,6],[\\\"components.takeoff-uploader-modal.assign.Accept item\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1,2,3]]]]],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"border-top bg-white m-n3 p-3\\\"],[14,5,\\\"position: sticky; bottom: -1rem; margin-top: 1rem!important; z-index: 1020;\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"table\\\"],[14,0,\\\"table\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"th\\\"],[14,\\\"colspan\\\",\\\"7\\\"],[12],[1,[28,[35,6],[\\\"common.Summary\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"common.Type\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"common.Labour hours\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"common.Labour\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"common.Materials\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"common.Subcontractors\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"common.Sums\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"common.Total\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,6],[\\\"common.Budget\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,15],[[30,0,[\\\"totalManHoursBudget\\\"]]],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,16],[[30,0,[\\\"totalLabourBudget\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,16],[[30,0,[\\\"totalMaterialsBudget\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,16],[[30,0,[\\\"totalSubcontractorsBudget\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,16],[[30,0,[\\\"totalSumsBudget\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,16],[[30,0,[\\\"totalBudget\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,6],[\\\"common.Quote\\\"],null]],[13],[1,\\\"\\\\n\\\"],[1,\\\"              \\\"],[10,\\\"td\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,16],[[30,0,[\\\"totalLabourQuote\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,16],[[30,0,[\\\"totalMaterialsQuote\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,16],[[30,0,[\\\"totalSubcontractorsQuote\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,16],[[30,0,[\\\"totalSumsQuote\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,16],[[30,0,[\\\"totalQuote\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"d-flex justify-content-end p-2\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary me-2\\\"],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[30,0,[\\\"onAllAcceptItem\\\"]]],null],[12],[1,[28,[35,6],[\\\"components.takeoff-uploader-modal.assign.Accept all items\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[28,[37,18],[[30,0,[\\\"errors\\\",\\\"length\\\"]],0],null]],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,30],[[30,0,[\\\"continue\\\"]]],null]],null]],null],[12],[1,[28,[35,6],[\\\"shared.task.Continue to next step\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,2],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"components.takeoff-uploader-modal.assign.No items could be found in this file\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary align-self-center mb-3\\\"],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[30,6]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"components.takeoff-uploader-modal.assign.Try uploading another file\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]],[13]],[\\\"item\\\",\\\"identifier\\\",\\\"index\\\",\\\"message\\\",\\\"message\\\",\\\"@onCancel\\\"],false,[\\\"div\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"fa-icon\\\",\\\"span\\\",\\\"label\\\",\\\"t\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"lazy-each\\\",\\\"ptl-form\\\",\\\"h4\\\",\\\"mut\\\",\\\"or\\\",\\\"format-duration\\\",\\\"number-format\\\",\\\"ptl-input\\\",\\\"gt\\\",\\\"get\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"tbody\\\",\\\"td\\\",\\\"b\\\",\\\"not-eq\\\",\\\"each\\\",\\\"-track-array\\\",\\\"perform\\\",\\\"p\\\"]]\",\n    \"moduleName\": \"portal/components/takeoff-uploader-modal/assign.hbs\",\n    \"isStrictMode\": false\n  });\n  const round = num => {\n    // assume anything 1 and smaller is a percentage - not ideal but meh\n    const sig = num <= 1 ? 4 : 2;\n    return (0, _mathjs.round)(num, sig);\n  };\n  const evaluate = eq => {\n    let result = round((0, _mathjs.evaluate)(eq));\n    if (Number.isNaN(result)) result = 0;\n    return result;\n  };\n  const parsePercentage = original => {\n    const value = (0, _parseCurrencyString.default)(original);\n    if (original.includes('%')) return value / 100;\n    return value;\n  };\n  const calculateQuoteValue = (profitType, value, percentage) => {\n    switch (profitType) {\n      case 'MARGIN':\n        // if margin check percentage is less that 1\n        if (percentage >= 1) return 0;\n        return evaluate(`${value} / ${1 - percentage || Infinity}`);\n      case 'MARKUP':\n        return evaluate(`${value} * ${percentage} + ${value}`);\n      default:\n        throw new Error(`Invalid profit type: ${profitType}`);\n    }\n  };\n\n  // NOTE: I found that adding the @computed property greatly increased the performance of this page\n  // tracked properties are not perfect yet\n  let TakeoffItem = (_dec = (0, _object.computed)('quantity', 'rate'), _dec2 = (0, _object.computed)('labourHoursTotal', 'computedItemTotal'), _dec3 = (0, _object.computed)('labourTotal', 'computedItemTotal'), _dec4 = (0, _object.computed)('materialsTotal', 'computedItemTotal'), _dec5 = (0, _object.computed)('subcontractorsTotal', 'computedItemTotal'), _dec6 = (0, _object.computed)('sumsTotal', 'computedItemTotal'), _dec7 = (0, _object.computed)('valueType'), _dec8 = (0, _object.computed)('isLabourHours', 'labourHours', 'labourHoursTotal', 'labourTotal', 'materialsTotal', 'subcontractorsTotal', 'sumsTotal'), _dec9 = (0, _object.computed)('computedItemTotal', 'computedTotal'), _dec0 = (0, _object.computed)('computedTotal', 'computedItemTotal'), _dec1 = (0, _object.computed)('computedTotalUsed'), _dec10 = (0, _object.computed)('profitMargin', 'translations', 'valueType', 'fileHasProfitMargin'), _dec11 = (0, _object.computed)('task', 'quantity', 'rate', 'profitMargin', 'total', 'contingency', 'fileHasProfitMargin'), _dec12 = (0, _object.computed)('computedItemTotal', 'computedTotal', 'task.length', 'translations'), _dec13 = (0, _object.computed)('computedItemTotal', 'isLabourHours', 'numberFormat', 'total'), _dec14 = (0, _object.computed)('computedItemTotal', 'computedTotal', 'translations'), _dec15 = (0, _object.computed)('project.effectiveProfitMargin'), _dec16 = (0, _object.computed)('profitType', 'profitMargin', 'fileHasProfitMargin', 'effectiveProfitMargin.{labourPercentage.type,labourPercentage.value,materialsPercentage.type,materialsPercentage.value,subcontractorsPercentage.type,subcontractorsPercentage.value,sumsPercentage.type,sumsPercentage.value}'), _dec17 = (0, _object.computed)('labourHoursTotal'), _dec18 = (0, _object.computed)('valueType', 'labourTotal', 'margins.labour.{budget,type}'), _dec19 = (0, _object.computed)('valueType', 'materialsTotal', 'margins.materials.{budget,type}'), _dec20 = (0, _object.computed)('valueType', 'subcontractorsTotal', 'margins.subcontractors.{budget,type}'), _dec21 = (0, _object.computed)('valueType', 'sumsTotal', 'margins.sums.{budget,type}'), _dec22 = (0, _object.computed)('labourBudget', 'materialsBudget', 'subcontractorsBudget', 'sumsBudget'), _dec23 = (0, _object.computed)('labourHoursTotal'), _dec24 = (0, _object.computed)('valueType', 'labourTotal', 'margins.labour.{quote,type}'), _dec25 = (0, _object.computed)('valueType', 'materialsTotal', 'margins.materials.{quote,type}'), _dec26 = (0, _object.computed)('valueType', 'subcontractorsTotal', 'margins.subcontractors.{quote,type}'), _dec27 = (0, _object.computed)('valueType', 'sumsTotal', 'margins.sums.{quote,type}'), _dec28 = (0, _object.computed)('labourQuote', 'materialsQuote', 'subcontractorsQuote', 'sumsQuote'), _class = class TakeoffItem {\n    get computedItemTotal() {\n      return evaluate(`${this.quantity} * ${this.rate}`);\n    }\n    get labourHoursRatio() {\n      return evaluate(`${this.labourHoursTotal} / ${this.computedItemTotal || 0}`);\n    }\n    set labourHoursRatio(value) {\n      (0, _object.set)(this, 'labourHoursTotal', evaluate(`${this.computedItemTotal} * ${value}`));\n    }\n    get labourRatio() {\n      return evaluate(`${this.labourTotal} / ${this.computedItemTotal || 0}`);\n    }\n    set labourRatio(value) {\n      (0, _object.set)(this, 'labourTotal', evaluate(`${this.computedItemTotal} * ${value}`));\n    }\n    get materialsRatio() {\n      return evaluate(`${this.materialsTotal} / ${this.computedItemTotal || 0}`);\n    }\n    set materialsRatio(value) {\n      (0, _object.set)(this, 'materialsTotal', evaluate(`${this.computedItemTotal} * ${value}`));\n    }\n    get subcontractorsRatio() {\n      return evaluate(`${this.subcontractorsTotal} / ${this.computedItemTotal || 0}`);\n    }\n    set subcontractorsRatio(value) {\n      (0, _object.set)(this, 'subcontractorsTotal', evaluate(`${this.computedItemTotal} * ${value}`));\n    }\n    get sumsRatio() {\n      return evaluate(`${this.sumsTotal} / ${this.computedItemTotal || 0}`);\n    }\n    set sumsRatio(value) {\n      (0, _object.set)(this, 'sumsTotal', evaluate(`${this.computedItemTotal} * ${value}`));\n    }\n    get valueTypes() {\n      return [{\n        label: this.translations['common.Budget'],\n        value: 'budget'\n      }, {\n        label: this.translations['common.Quote'],\n        value: 'quote'\n      }, {\n        label: this.translations['common.Labour hours'],\n        value: 'labourHours'\n      }];\n    }\n    // this is used to switch the value type from currency to hours\n    get isLabourHours() {\n      return this.valueType === 'labourHours';\n    }\n    get computedTotal() {\n      if (this.isLabourHours) return this.labourHoursTotal;\n      return round(this.labourTotal + this.materialsTotal + this.subcontractorsTotal + this.sumsTotal);\n    }\n    get computedTotalRemaining() {\n      return round(this.computedItemTotal - this.computedTotal);\n    }\n    get computedTotalUsed() {\n      return evaluate(`${this.computedTotal} / ${this.computedItemTotal || Infinity}`);\n    }\n    get computedTotalUsedRemaining() {\n      return round(1 - this.computedTotalUsed);\n    }\n    get fileHasProfitMargin() {\n      return Number.isFinite(this.profitMargin);\n    }\n    get valueTypeExplainerMessage() {\n      if (this.valueType === 'budget') {\n        const explainerMessage = this.fileHasProfitMargin ? this.translations['components.takeoff-uploader-modal.assign.quoteFiguresWillBeAutomaticallyGeneratedUsingTheMarginProvidedInTheFile'] : this.translations['components.takeoff-uploader-modal.assign.quoteFiguresWillBeAutomaticallyGeneratedUsingTheMarginsOnThisProject'];\n        return explainerMessage;\n      }\n      if (this.valueType === 'quote') {\n        const explainerMessage = this.fileHasProfitMargin ? this.translations['components.takeoff-uploader-modal.assign.budgetFiguresWillBeAutomaticallyGeneratedFromTheMarginProvidedInTheFile'] : this.translations['components.takeoff-uploader-modal.assign.budgetFiguresWillBeAutomaticallyGeneratedFromTheMarginsOnThisProject'];\n        return explainerMessage;\n      }\n      return null;\n    }\n\n    // used to identify if the item is worth assigning\n    get canBeAssigned() {\n      // anything that isn't just a task name\n      return Boolean(this.task && (this.quantity || this.rate || this.fileHasProfitMargin || this.total || this.contingency));\n    }\n    get(key) {\n      return this[key];\n    }\n    get errors() {\n      const errors = [];\n      const valueInputKeys = ['labourTotal', 'labourRatio', 'materialsTotal', 'materialsRatio', 'subcontractorsTotal', 'subcontractorsRatio', 'sumsTotal', 'sumsRatio'];\n      if (!this.task.length) {\n        errors.push({\n          key: 'task',\n          validation: this.translations['validation.You must provide a task name']\n        });\n      }\n\n      // you cant assign more than the value of your item\n      if (this.computedItemTotal < this.computedTotal) {\n        valueInputKeys.forEach(key => errors.push({\n          key\n        }));\n        errors.push({\n          key: 'general',\n          validation: this.translations['validation.youCanNotAssignMoreThanTheValueOfYourItem']\n        });\n      }\n\n      // you haven't assigned all your costs yet (you need to)\n      if (this.computedItemTotal > this.computedTotal) {\n        valueInputKeys.forEach(key => errors.push({\n          key\n        }));\n        errors.push({\n          key: 'general',\n          validation: this.translations['validation.youMustAssignAllTheValueOfYourItem']\n        });\n      }\n      return errors;\n    }\n    get generalInfoMessages() {\n      const errors = [];\n\n      // there is a difference between the imported document total and the computed total\n      if (this.total - this.computedItemTotal > 0.01) {\n        const formattedTotal = this.isLabourHours ? (0, _durationInput.formatDuration)([this.total]) : this.numberFormat.format(this.total, {\n          style: 'currency',\n          dashZero: true\n        });\n        errors.push({\n          key: 'general',\n          validation: `The original total provided in the file was ${formattedTotal}.`\n        });\n      }\n      return errors;\n    }\n    get generalErrorMessages() {\n      const errors = [];\n\n      // TODO you can actually do this - a contingency for example\n      // you cant assign more than the value of your item\n      if (this.computedItemTotal < this.computedTotal) {\n        errors.push({\n          key: 'general',\n          validation: this.translations['validation.youCanNotAssignMoreThanTheValueOfYourItem']\n        });\n      }\n\n      // you haven't assigned all your costs yet (you need to)\n      if (this.computedItemTotal > this.computedTotal) {\n        errors.push({\n          key: 'general',\n          validation: this.translations['validation.youMustAssignAllTheValueOfYourItem']\n        });\n      }\n      return errors;\n    }\n    get effectiveProfitMargin() {\n      return this.project.effectiveProfitMargin;\n    }\n    get margins() {\n      if (this.fileHasProfitMargin) {\n        return {\n          labour: {\n            budget: 1 - this.profitMargin,\n            quote: this.profitMargin,\n            type: this.profitType\n          },\n          materials: {\n            budget: 1 - this.profitMargin,\n            quote: this.profitMargin,\n            type: this.profitType\n          },\n          subcontractors: {\n            budget: 1 - this.profitMargin,\n            quote: this.profitMargin,\n            type: this.profitType\n          },\n          sums: {\n            budget: 1 - this.profitMargin,\n            quote: this.profitMargin,\n            type: this.profitType\n          }\n        };\n      }\n      const effectiveLabourMargin = this.effectiveProfitMargin.labourPercentage.value || 0;\n      const effectiveMaterialsMargin = this.effectiveProfitMargin.materialsPercentage.value || 0;\n      const effectiveSubcontractorsMargin = this.effectiveProfitMargin.subcontractorsPercentage.value || 0;\n      const effectiveSumsMargin = this.effectiveProfitMargin.sumsPercentage.value || 0;\n      return {\n        labour: {\n          budget: 1 - effectiveLabourMargin,\n          quote: effectiveLabourMargin,\n          type: this.effectiveProfitMargin.labourPercentage.type || 'MARGIN'\n        },\n        materials: {\n          budget: 1 - effectiveMaterialsMargin,\n          quote: effectiveMaterialsMargin,\n          type: this.effectiveProfitMargin.materialsPercentage.type || 'MARGIN'\n        },\n        subcontractors: {\n          budget: 1 - effectiveSubcontractorsMargin,\n          quote: effectiveSubcontractorsMargin,\n          type: this.effectiveProfitMargin.subcontractorsPercentage.type || 'MARGIN'\n        },\n        sums: {\n          budget: 1 - effectiveSumsMargin,\n          quote: effectiveSumsMargin,\n          type: this.effectiveProfitMargin.sumsPercentage.type || 'MARGIN'\n        }\n      };\n    }\n    get manHoursBudget() {\n      return this.labourHoursTotal;\n    }\n    get labourBudget() {\n      switch (this.valueType) {\n        case 'budget':\n          return this.labourTotal;\n        case 'quote':\n          return calculateQuoteValue(this.margins.labour.type, this.labourTotal, this.margins.labour.budget);\n        default:\n          return 0;\n      }\n    }\n    get materialsBudget() {\n      switch (this.valueType) {\n        case 'budget':\n          return this.materialsTotal;\n        case 'quote':\n          return calculateQuoteValue(this.margins.materials.type, this.materialsTotal, this.margins.materials.budget);\n        default:\n          return 0;\n      }\n    }\n    get subcontractorsBudget() {\n      switch (this.valueType) {\n        case 'budget':\n          return this.subcontractorsTotal;\n        case 'quote':\n          return calculateQuoteValue(this.margins.subcontractors.type, this.subcontractorsTotal, this.margins.subcontractors.budget);\n        default:\n          return 0;\n      }\n    }\n    get sumsBudget() {\n      switch (this.valueType) {\n        case 'budget':\n          return this.sumsTotal;\n        case 'quote':\n          return calculateQuoteValue(this.margins.sums.type, this.sumsTotal, this.margins.sums.budget);\n        default:\n          return 0;\n      }\n    }\n    get totalBudget() {\n      return this.labourBudget + this.materialsBudget + this.subcontractorsBudget + this.sumsBudget;\n    }\n    get manHoursQuote() {\n      return this.labourHoursTotal;\n    }\n    get labourQuote() {\n      switch (this.valueType) {\n        case 'budget':\n          return calculateQuoteValue(this.margins.labour.type, this.labourTotal, this.margins.labour.quote);\n        case 'quote':\n          return this.labourTotal;\n        default:\n          return 0;\n      }\n    }\n    get materialsQuote() {\n      switch (this.valueType) {\n        case 'budget':\n          return calculateQuoteValue(this.margins.materials.type, this.materialsTotal, this.margins.materials.quote);\n        case 'quote':\n          return this.materialsTotal;\n        default:\n          return 0;\n      }\n    }\n    get subcontractorsQuote() {\n      switch (this.valueType) {\n        case 'budget':\n          return calculateQuoteValue(this.margins.subcontractors.type, this.subcontractorsTotal, this.margins.subcontractors.quote);\n        case 'quote':\n          return this.subcontractorsTotal;\n        default:\n          return 0;\n      }\n    }\n    get sumsQuote() {\n      switch (this.valueType) {\n        case 'budget':\n          return calculateQuoteValue(this.margins.sums.type, this.sumsTotal, this.margins.sums.quote);\n        case 'quote':\n          return this.sumsTotal;\n        default:\n          return 0;\n      }\n    }\n    get totalQuote() {\n      return this.labourQuote + this.materialsQuote + this.subcontractorsQuote + this.sumsQuote;\n    }\n    constructor(columns, columnTypes, project, onDelete, numberFormat, intl) {\n      _initializerDefineProperty(this, \"translations\", _descriptor, this);\n      _initializerDefineProperty(this, \"project\", _descriptor2, this);\n      _initializerDefineProperty(this, \"collapsed\", _descriptor3, this);\n      _initializerDefineProperty(this, \"task\", _descriptor4, this);\n      _initializerDefineProperty(this, \"usage\", _descriptor5, this);\n      _initializerDefineProperty(this, \"supplier\", _descriptor6, this);\n      _initializerDefineProperty(this, \"description\", _descriptor7, this);\n      _initializerDefineProperty(this, \"sku\", _descriptor8, this);\n      _initializerDefineProperty(this, \"gtin\", _descriptor9, this);\n      _initializerDefineProperty(this, \"manufacturer\", _descriptor0, this);\n      _initializerDefineProperty(this, \"group\", _descriptor1, this);\n      _initializerDefineProperty(this, \"quantity\", _descriptor10, this);\n      _initializerDefineProperty(this, \"rate\", _descriptor11, this);\n      _initializerDefineProperty(this, \"total\", _descriptor12, this);\n      _initializerDefineProperty(this, \"unit\", _descriptor13, this);\n      _initializerDefineProperty(this, \"stage\", _descriptor14, this);\n      _initializerDefineProperty(this, \"numberFormat\", _descriptor15, this);\n      _initializerDefineProperty(this, \"taskType\", _descriptor16, this);\n      _initializerDefineProperty(this, \"labourHoursTotal\", _descriptor17, this);\n      _initializerDefineProperty(this, \"labourTotal\", _descriptor18, this);\n      _initializerDefineProperty(this, \"materialsTotal\", _descriptor19, this);\n      _initializerDefineProperty(this, \"subcontractorsTotal\", _descriptor20, this);\n      _initializerDefineProperty(this, \"sumsTotal\", _descriptor21, this);\n      _initializerDefineProperty(this, \"valueType\", _descriptor22, this);\n      _defineProperty(this, \"profitType\", 'MARGIN');\n      // only \"margin\" calculations are supported though the file at the moment\n      _initializerDefineProperty(this, \"profitMargin\", _descriptor23, this);\n      _defineProperty(this, \"onAcceptItem\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (index, scrollToNextItem = true) {\n          if (this.errors.length) return;\n          this.collapsed = true;\n          if (scrollToNextItem) (0, _runloop.next)(() => document.getElementById(`takeoff-uploader-modal__assign--${index + 1}`)?.scrollIntoView());\n        }\n      }), null, \"onAcceptItem\", null));\n      (0, _object.set)(this, 'project', project);\n      // setup the remove item callback\n      this.onDelete = onDelete;\n      (0, _object.set)(this, 'numberFormat', numberFormat);\n      this._initTakeoffItem(columns, columnTypes);\n      (0, _object.set)(this, 'translations', {\n        'common.Budget': intl.t('common.Budget'),\n        'common.Labour hours': intl.t('common.Labour hours'),\n        'common.Quote': intl.t('common.Quote'),\n        'components.takeoff-uploader-modal.assign.budgetFiguresWillBeAutomaticallyGeneratedFromTheMarginProvidedInTheFile': intl.t('components.takeoff-uploader-modal.assign.budgetFiguresWillBeAutomaticallyGeneratedFromTheMarginProvidedInTheFile'),\n        'components.takeoff-uploader-modal.assign.budgetFiguresWillBeAutomaticallyGeneratedFromTheMarginsOnThisProject': intl.t('components.takeoff-uploader-modal.assign.budgetFiguresWillBeAutomaticallyGeneratedFromTheMarginsOnThisProject'),\n        'components.takeoff-uploader-modal.assign.quoteFiguresWillBeAutomaticallyGeneratedUsingTheMarginProvidedInTheFile': intl.t('components.takeoff-uploader-modal.assign.quoteFiguresWillBeAutomaticallyGeneratedUsingTheMarginProvidedInTheFile'),\n        'components.takeoff-uploader-modal.assign.quoteFiguresWillBeAutomaticallyGeneratedUsingTheMarginsOnThisProject': intl.t('components.takeoff-uploader-modal.assign.quoteFiguresWillBeAutomaticallyGeneratedUsingTheMarginsOnThisProject'),\n        // TODO this requires a param and it can't be used outside the constructor\n        // i'm not sure how we should approach this\n        // 'validation.theOriginalTotalProvidedInTheFileWasX': intl.t(\n        //   'validation.theOriginalTotalProvidedInTheFileWasX'\n        // ),\n        'validation.youCanNotAssignMoreThanTheValueOfYourItem': intl.t('validation.youCanNotAssignMoreThanTheValueOfYourItem'),\n        'validation.youMustAssignAllTheValueOfYourItem': intl.t('validation.youMustAssignAllTheValueOfYourItem'),\n        'validation.You must provide a task name': intl.t('validation.You must provide a task name')\n      });\n    }\n    _extractAllocationTypeFromColumn(_column) {\n      const likenessThreshold = 0.8;\n      const column = _column.toLowerCase().trim();\n      const types = [{\n        value: 'labourHours',\n        matches: ['labourHours', 'labour-hours', 'labour hours', 'hours', 'time']\n      }, {\n        value: 'labour',\n        matches: ['labour']\n      }, {\n        value: 'materials',\n        matches: ['materials', 'building materials', 'landscape materials']\n      }, {\n        value: 'subcontractors',\n        matches: ['subcontractors']\n      }, {\n        value: 'sums',\n        matches: ['sums', 'sum', 'allowance', 'allowances']\n      }];\n      const winners = types.map(option => {\n        const scores = (0, _stringSimilarity.findBestMatch)(column, option.matches);\n\n        // we only care about the best match\n        return {\n          value: option.value,\n          rating: scores.bestMatch.rating\n        };\n      });\n\n      // find best matching column type\n      const bestMatch = winners.sort((a, b) => b.rating - a.rating).shift();\n\n      // only continue if the match passes the likeness threshold\n      if (bestMatch.rating < likenessThreshold) return;\n\n      // we have the best matching allocation type\n      return bestMatch.value;\n    }\n    convertTaskTypeToEnum(taskType) {\n      if (!taskType) return 'TASK';\n      const likenessThreshold = 0.8;\n      const enumMap = {\n        sums: 'SUMS',\n        subcontractor: 'SUBCONTRACTOR',\n        plant: 'PLANT',\n        milestone: 'MILESTONE',\n        'builders work': 'BUILDERS_WORK',\n        internal: 'INTERNAL',\n        general: 'TASK'\n      };\n      const scores = (0, _stringSimilarity.findBestMatch)(taskType.toLowerCase().trim().replace(/\\W+/g, ''), Object.keys(enumMap));\n      if (scores.bestMatch.rating < likenessThreshold) return 'TASK';\n      return enumMap[scores.bestMatch.target];\n    }\n    _initTakeoffItem(columns, columnTypes) {\n      let labourTotal;\n      let labourRatio;\n      let materialsTotal;\n      let materialsRatio;\n      let subcontractorsTotal;\n      let subcontractorsRatio;\n      let sumsTotal;\n      let sumsRatio;\n      let hasLabourHoursQuantity;\n      let contingencyPercentage;\n      let contingencyCurrency;\n      let quantity = 0;\n      let rate = 0;\n      let total = 0;\n      let labourHoursTotal = 0;\n      columns.forEach((column, index) => {\n        switch (columnTypes[index]) {\n          case 'do-not-import':\n            break;\n          case 'group':\n            this.group = column?.trim();\n            break;\n          case 'task':\n            (0, _object.set)(this, 'task', column?.trim());\n            break;\n          case 'taskType':\n            this.taskType = this.convertTaskTypeToEnum(column);\n            break;\n          case 'supplier':\n            this.supplier = column?.trim();\n            break;\n          case 'productDescription':\n            this.description = column?.trim();\n            break;\n          case 'usage':\n            this.usage = column?.trim();\n            break;\n          case 'sku':\n            this.sku = column?.trim();\n            break;\n          case 'stage':\n            this.stage = column?.trim();\n            break;\n          case 'gtin':\n            this.gtin = column?.trim();\n            break;\n          case 'manufacturer':\n            this.manufacturer = column?.trim();\n            break;\n          case 'quantity':\n            quantity = (0, _parseCurrencyString.default)(column);\n            break;\n          case 'unit':\n            {\n              this.unit = column?.trim();\n              const hoursTypes = ['duration', 'h', 'hour', 'hours', 'hr', 'hrs'];\n              const isHours = hoursTypes.includes(this.unit.toLowerCase());\n              if (isHours) hasLabourHoursQuantity = true;\n              break;\n            }\n          case 'rate':\n            rate = (0, _parseCurrencyString.default)(column);\n            break;\n          case 'margin':\n            {\n              if (column?.trim()) {\n                (0, _object.set)(this, 'profitMargin', parsePercentage(column));\n              }\n              break;\n            }\n          case 'total':\n            total = (0, _parseCurrencyString.default)(column);\n            break;\n          case 'labourHours':\n            labourHoursTotal = (0, _parseCurrencyString.default)(column);\n            break;\n          case 'contingencyCurrency':\n            {\n              contingencyCurrency = (0, _parseCurrencyString.default)(column);\n              break;\n            }\n          case 'contingencyPercentage':\n            {\n              contingencyPercentage = parsePercentage(column);\n              break;\n            }\n          case 'labourAllocationCurrency':\n            {\n              labourTotal = (0, _parseCurrencyString.default)(column);\n              break;\n            }\n          case 'labourAllocationPercentage':\n            {\n              labourRatio = parsePercentage(column);\n              break;\n            }\n          case 'materialsAllocationCurrency':\n            {\n              materialsTotal = (0, _parseCurrencyString.default)(column);\n              break;\n            }\n          case 'materialsAllocationPercentage':\n            {\n              materialsRatio = parsePercentage(column);\n              break;\n            }\n          case 'subcontractorsAllocationCurrency':\n            {\n              subcontractorsTotal = (0, _parseCurrencyString.default)(column);\n              break;\n            }\n          case 'subcontractorsAllocationPercentage':\n            {\n              subcontractorsRatio = parsePercentage(column);\n              break;\n            }\n          case 'sumsAllocationCurrency':\n            {\n              sumsTotal = (0, _parseCurrencyString.default)(column);\n              break;\n            }\n          case 'sumsAllocationPercentage':\n            {\n              sumsRatio = parsePercentage(column);\n              break;\n            }\n        }\n      });\n      let computedItemTotal = evaluate(`${quantity} * ${rate}`);\n      let finalLabourHoursTotal = labourHoursTotal;\n      let finalLabourTotal = 0;\n      let finalMaterialsTotal = 0;\n      let finalSubcontractorsTotal = 0;\n      let finalSumsTotal = 0;\n\n      // to add contingency without adding contingency concepts to the assigner we just add to the item rate\n      // modifying the original data is not ideal this could be improved\n      if (contingencyCurrency) {\n        const contingencyTotal = computedItemTotal + contingencyCurrency;\n        rate = contingencyTotal / quantity;\n        computedItemTotal = evaluate(`${quantity} * ${rate}`);\n        finalSumsTotal = contingencyCurrency;\n      }\n      if (contingencyPercentage) {\n        const contingencyTotal = (1 + contingencyPercentage) * computedItemTotal;\n        rate = contingencyTotal / quantity;\n        computedItemTotal = evaluate(`${quantity} * ${rate}`);\n        finalSumsTotal = contingencyPercentage * computedItemTotal;\n      }\n      const currentSumsRatio = evaluate(`${finalSumsTotal} / ${computedItemTotal || 0}`);\n\n      // if we had a hours unit we assume we're dealing with labour\n      if (hasLabourHoursQuantity) {\n        finalLabourHoursTotal = quantity;\n        finalLabourTotal = computedItemTotal;\n      }\n\n      // do this after the contingency has been applied\n      // at this stage the sumsTotal and sumsRatio is the calculated contingency for the file\n      if (labourTotal) {\n        finalLabourTotal = labourTotal * (1 + currentSumsRatio);\n      }\n      if (materialsTotal) {\n        finalMaterialsTotal = materialsTotal * (1 + currentSumsRatio);\n      }\n      if (subcontractorsTotal) {\n        finalSubcontractorsTotal = subcontractorsTotal * (1 + currentSumsRatio);\n      }\n      if (sumsTotal) {\n        finalSumsTotal = sumsTotal * (1 + currentSumsRatio);\n      }\n      if (labourRatio) {\n        finalLabourTotal = evaluate(`${computedItemTotal} * ${labourRatio - currentSumsRatio}`);\n      }\n      if (materialsRatio) {\n        finalMaterialsTotal = evaluate(`${computedItemTotal} * ${materialsRatio - currentSumsRatio}`);\n      }\n      if (subcontractorsRatio) {\n        finalSubcontractorsTotal = evaluate(`${computedItemTotal} * ${subcontractorsRatio - currentSumsRatio}`);\n      }\n      if (sumsRatio) {\n        finalSumsTotal = evaluate(`${computedItemTotal} * ${sumsRatio - currentSumsRatio}`);\n      }\n      (0, _object.set)(this, 'quantity', quantity);\n      (0, _object.set)(this, 'rate', rate);\n      (0, _object.set)(this, 'total', total);\n      (0, _object.set)(this, 'labourHoursTotal', finalLabourHoursTotal);\n      (0, _object.set)(this, 'labourTotal', finalLabourTotal);\n      (0, _object.set)(this, 'materialsTotal', finalMaterialsTotal);\n      (0, _object.set)(this, 'subcontractorsTotal', finalSubcontractorsTotal);\n      (0, _object.set)(this, 'sumsTotal', finalSumsTotal);\n    }\n    onAllFigureTypeClick(type) {\n      this.labourRatio = 0;\n      this.materialsRatio = 0;\n      this.subcontractorsRatio = 0;\n      this.sumsRatio = 0;\n      switch (type) {\n        case 'labour':\n          this.labourRatio = 1;\n          break;\n        case 'materials':\n          this.materialsRatio = 1;\n          break;\n        case 'subcontractors':\n          this.subcontractorsRatio = 1;\n          break;\n        case 'sums':\n          this.sumsRatio = 1;\n          break;\n        case 'labourHours':\n          this.labourHoursRatio = 1;\n          break;\n      }\n    }\n    toJSON() {\n      return {\n        collapsed: this.collapsed,\n        task: this.task?.toJSON({\n          includeId: true\n        }),\n        taskType: this.taskType,\n        supplier: this.supplier,\n        description: this.description,\n        usage: this.usage,\n        sku: this.sku,\n        gtin: this.gtin,\n        manufacturer: this.manufacturer,\n        quantity: this.quantity,\n        rate: this.rate,\n        stage: this.stage,\n        unit: this.unit,\n        total: this.total,\n        labourHoursTotal: this.labourHoursTotal,\n        labourTotal: this.labourTotal,\n        materialsTotal: this.materialsTotal,\n        subcontractorsTotal: this.subcontractorsTotal,\n        sumsTotal: this.sumsTotal,\n        valueType: this.valueType,\n        profitType: this.profitType,\n        profitMargin: this.profitMargin,\n        computedItemTotal: this.computedItemTotal,\n        labourHoursRatio: this.labourHoursRatio,\n        labourRatio: this.labourRatio,\n        materialsRatio: this.materialsRatio,\n        subcontractorsRatio: this.subcontractorsRatio,\n        sumsRatio: this.sumsRatio,\n        isLabourHours: this.isLabourHours,\n        computedTotal: this.computedTotal,\n        computedTotalRemaining: this.computedTotalRemaining,\n        computedTotalUsed: this.computedTotalUsed,\n        computedTotalUsedRemaining: this.computedTotalUsedRemaining,\n        valueTypeExplainerMessage: this.valueTypeExplainerMessage,\n        canBeAssigned: this.canBeAssigned,\n        errors: this.errors,\n        generalInfoMessages: this.generalInfoMessages,\n        generalErrorMessages: this.generalErrorMessages,\n        effectiveProfitMargin: this.effectiveProfitMargin,\n        margins: this.margins,\n        manHoursBudget: this.manHoursBudget,\n        labourBudget: this.labourBudget,\n        materialsBudget: this.materialsBudget,\n        subcontractorsBudget: this.subcontractorsBudget,\n        sumsBudget: this.sumsBudget,\n        totalBudget: this.totalBudget,\n        manHoursQuote: this.manHoursQuote,\n        labourQuote: this.labourQuote,\n        materialsQuote: this.materialsQuote,\n        subcontractorsQuote: this.subcontractorsQuote,\n        sumsQuote: this.sumsQuote,\n        totalQuote: this.totalQuote\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"translations\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"project\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"collapsed\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"task\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"usage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"supplier\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"description\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"sku\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"gtin\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"manufacturer\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"group\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"quantity\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"rate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"total\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"unit\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"stage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"numberFormat\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"taskType\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"computedItemTotal\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"computedItemTotal\"), _class.prototype), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, \"labourHoursTotal\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"labourHoursRatio\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"labourHoursRatio\"), _class.prototype), _descriptor18 = _applyDecoratedDescriptor(_class.prototype, \"labourTotal\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"labourRatio\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"labourRatio\"), _class.prototype), _descriptor19 = _applyDecoratedDescriptor(_class.prototype, \"materialsTotal\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"materialsRatio\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"materialsRatio\"), _class.prototype), _descriptor20 = _applyDecoratedDescriptor(_class.prototype, \"subcontractorsTotal\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"subcontractorsRatio\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"subcontractorsRatio\"), _class.prototype), _descriptor21 = _applyDecoratedDescriptor(_class.prototype, \"sumsTotal\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"sumsRatio\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"sumsRatio\"), _class.prototype), _descriptor22 = _applyDecoratedDescriptor(_class.prototype, \"valueType\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'budget';\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"isLabourHours\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"isLabourHours\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"computedTotal\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"computedTotal\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"computedTotalRemaining\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"computedTotalRemaining\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"computedTotalUsed\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"computedTotalUsed\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"computedTotalUsedRemaining\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"computedTotalUsedRemaining\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"valueTypeExplainerMessage\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"valueTypeExplainerMessage\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"canBeAssigned\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"canBeAssigned\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"errors\", [_dec12], Object.getOwnPropertyDescriptor(_class.prototype, \"errors\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"generalInfoMessages\", [_dec13], Object.getOwnPropertyDescriptor(_class.prototype, \"generalInfoMessages\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"generalErrorMessages\", [_dec14], Object.getOwnPropertyDescriptor(_class.prototype, \"generalErrorMessages\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"effectiveProfitMargin\", [_dec15], Object.getOwnPropertyDescriptor(_class.prototype, \"effectiveProfitMargin\"), _class.prototype), _descriptor23 = _applyDecoratedDescriptor(_class.prototype, \"profitMargin\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"margins\", [_dec16], Object.getOwnPropertyDescriptor(_class.prototype, \"margins\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"manHoursBudget\", [_dec17], Object.getOwnPropertyDescriptor(_class.prototype, \"manHoursBudget\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"labourBudget\", [_dec18], Object.getOwnPropertyDescriptor(_class.prototype, \"labourBudget\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"materialsBudget\", [_dec19], Object.getOwnPropertyDescriptor(_class.prototype, \"materialsBudget\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"subcontractorsBudget\", [_dec20], Object.getOwnPropertyDescriptor(_class.prototype, \"subcontractorsBudget\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"sumsBudget\", [_dec21], Object.getOwnPropertyDescriptor(_class.prototype, \"sumsBudget\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"totalBudget\", [_dec22], Object.getOwnPropertyDescriptor(_class.prototype, \"totalBudget\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"manHoursQuote\", [_dec23], Object.getOwnPropertyDescriptor(_class.prototype, \"manHoursQuote\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"labourQuote\", [_dec24], Object.getOwnPropertyDescriptor(_class.prototype, \"labourQuote\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"materialsQuote\", [_dec25], Object.getOwnPropertyDescriptor(_class.prototype, \"materialsQuote\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"subcontractorsQuote\", [_dec26], Object.getOwnPropertyDescriptor(_class.prototype, \"subcontractorsQuote\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"sumsQuote\", [_dec27], Object.getOwnPropertyDescriptor(_class.prototype, \"sumsQuote\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"totalQuote\", [_dec28], Object.getOwnPropertyDescriptor(_class.prototype, \"totalQuote\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onAllFigureTypeClick\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onAllFigureTypeClick\"), _class.prototype), _class);\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_dec29 = (0, _object.computed)('takeoffItems.@each.manHoursBudget'), _dec30 = (0, _object.computed)('takeoffItems.@each.labourBudget'), _dec31 = (0, _object.computed)('takeoffItems.@each.materialsBudget'), _dec32 = (0, _object.computed)('takeoffItems.@each.subcontractorsBudget'), _dec33 = (0, _object.computed)('takeoffItems.@each.sumsBudget'), _dec34 = (0, _object.computed)('takeoffItems.@each.manHoursQuote'), _dec35 = (0, _object.computed)('takeoffItems.@each.labourQuote'), _dec36 = (0, _object.computed)('takeoffItems.@each.materialsQuote'), _dec37 = (0, _object.computed)('takeoffItems.@each.subcontractorsQuote'), _dec38 = (0, _object.computed)('takeoffItems.@each.sumsQuote'), _dec39 = (0, _object.computed)('takeoffItems.@each.totalBudget'), _dec40 = (0, _object.computed)('takeoffItems.@each.totalQuote'), _dec41 = (0, _object.computed)('takeoffItems.@each.errors'), _dec42 = (0, _object.computed)('takeoffItems', 'emptyTaskOptionsKey'), _class2 = class _class2 extends _component2.default {\n    get isLoading() {\n      return this.load.isRunning;\n    }\n    get invalidRowMessage() {\n      if (!this.invalidRowIndexes?.length) return null;\n      return `${this.intl.t('validation.theFollowingRowNumbersDidNotContainEnoughInformationToBeImported')}: \"${this.invalidRowIndexes.join(', ')}\".`;\n    }\n    get totalManHoursBudget() {\n      return this.takeoffItems.reduce((total, item) => total += item.manHoursBudget, 0);\n    }\n    get totalLabourBudget() {\n      return this.takeoffItems.reduce((total, item) => total += item.labourBudget, 0);\n    }\n    get totalMaterialsBudget() {\n      return this.takeoffItems.reduce((total, item) => total += item.materialsBudget, 0);\n    }\n    get totalSubcontractorsBudget() {\n      return this.takeoffItems.reduce((total, item) => total += item.subcontractorsBudget, 0);\n    }\n    get totalSumsBudget() {\n      return this.takeoffItems.reduce((total, item) => total += item.sumsBudget, 0);\n    }\n    get totalManHoursQuote() {\n      return this.takeoffItems.reduce((total, item) => total += item.manHoursQuote, 0);\n    }\n    get totalLabourQuote() {\n      return this.takeoffItems.reduce((total, item) => total += item.labourQuote, 0);\n    }\n    get totalMaterialsQuote() {\n      return this.takeoffItems.reduce((total, item) => total += item.materialsQuote, 0);\n    }\n    get totalSubcontractorsQuote() {\n      return this.takeoffItems.reduce((total, item) => total += item.subcontractorsQuote, 0);\n    }\n    get totalSumsQuote() {\n      return this.takeoffItems.reduce((total, item) => total += item.sumsQuote, 0);\n    }\n    get totalBudget() {\n      return this.takeoffItems.reduce((total, item) => total += item.totalBudget, 0);\n    }\n    get totalQuote() {\n      return this.takeoffItems.reduce((total, item) => total += item.totalQuote, 0);\n    }\n    get errors() {\n      return this.takeoffItems.reduce((errors, item) => [...errors, ...item.errors], []);\n    }\n    get taskOptions() {\n      const groupedTasks = {};\n      this.takeoffItems.forEach(takeoffItem => {\n        const key = takeoffItem.group || this.emptyTaskOptionsKey;\n        if (!groupedTasks[key]) groupedTasks[key] = [];\n        if (groupedTasks[key].includes(takeoffItem.task)) return;\n        groupedTasks[key].push(takeoffItem.task);\n      });\n      const taskOptions = {};\n      for (const [group, tasks] of Object.entries(groupedTasks)) taskOptions[group] = tasks.map(task => ({\n        label: task,\n        value: task\n      }));\n      return taskOptions;\n    }\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"notifications\", _descriptor24, this);\n      _initializerDefineProperty(this, \"numberFormat\", _descriptor25, this);\n      _initializerDefineProperty(this, \"takeoffItems\", _descriptor26, this);\n      _initializerDefineProperty(this, \"invalidRowIndexes\", _descriptor27, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor28, this);\n      _defineProperty(this, \"load\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.args.project.loadProfitMargins();\n        }\n      }), null, \"load\", null));\n      _defineProperty(this, \"emptyTaskOptionsKey\", Math.random());\n      _defineProperty(this, \"continue\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          if (this.errors.length) {\n            this.notifications.warning(this.intl.t('components.takeoff-uploader-modal.assign.pleaseAssignAllTheItemsBeforeContinuing'));\n            return;\n          }\n          yield this.args.onAssignComplete(this.takeoffItems);\n        }\n      }), null, \"continue\", null));\n      this.load.perform();\n      if (this.args.takeoffItems) {\n        (0, _object.set)(this, 'takeoffItems', this.args.takeoffItems);\n        return;\n      }\n      const takeoffItems = (0, _array.A)([]);\n      const invalidRowIndexes = (0, _array.A)([]);\n      this.args.takeoffFile.csv.forEach((columns, index) => {\n        const item = new TakeoffItem(columns, this.args.takeoffFile.columnTypes, this.args.project, this.removeItem, this.numberFormat, this.intl);\n        if (item.canBeAssigned) {\n          takeoffItems.push(item);\n          return;\n        }\n        const rowNumber = index + 1;\n        invalidRowIndexes.push(rowNumber);\n      });\n      (0, _object.set)(this, 'takeoffItems', takeoffItems);\n      this.invalidRowIndexes = invalidRowIndexes;\n    }\n    removeItem(item) {\n      this.takeoffItems.removeObject(item);\n    }\n    onAllValueTypeClick(type) {\n      this.takeoffItems.forEach(i => i.valueType = type);\n    }\n    onAllFigureTypeClick(type) {\n      this.takeoffItems.forEach(i => i.onAllFigureTypeClick(type));\n    }\n    onAllAcceptItem() {\n      this.takeoffItems.forEach((item, i) => item.onAcceptItem.perform(i, false));\n    }\n  }, _descriptor24 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor25 = _applyDecoratedDescriptor(_class2.prototype, \"numberFormat\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor26 = _applyDecoratedDescriptor(_class2.prototype, \"takeoffItems\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor27 = _applyDecoratedDescriptor(_class2.prototype, \"invalidRowIndexes\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor28 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"totalManHoursBudget\", [_dec29], Object.getOwnPropertyDescriptor(_class2.prototype, \"totalManHoursBudget\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"totalLabourBudget\", [_dec30], Object.getOwnPropertyDescriptor(_class2.prototype, \"totalLabourBudget\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"totalMaterialsBudget\", [_dec31], Object.getOwnPropertyDescriptor(_class2.prototype, \"totalMaterialsBudget\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"totalSubcontractorsBudget\", [_dec32], Object.getOwnPropertyDescriptor(_class2.prototype, \"totalSubcontractorsBudget\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"totalSumsBudget\", [_dec33], Object.getOwnPropertyDescriptor(_class2.prototype, \"totalSumsBudget\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"totalManHoursQuote\", [_dec34], Object.getOwnPropertyDescriptor(_class2.prototype, \"totalManHoursQuote\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"totalLabourQuote\", [_dec35], Object.getOwnPropertyDescriptor(_class2.prototype, \"totalLabourQuote\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"totalMaterialsQuote\", [_dec36], Object.getOwnPropertyDescriptor(_class2.prototype, \"totalMaterialsQuote\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"totalSubcontractorsQuote\", [_dec37], Object.getOwnPropertyDescriptor(_class2.prototype, \"totalSubcontractorsQuote\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"totalSumsQuote\", [_dec38], Object.getOwnPropertyDescriptor(_class2.prototype, \"totalSumsQuote\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"totalBudget\", [_dec39], Object.getOwnPropertyDescriptor(_class2.prototype, \"totalBudget\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"totalQuote\", [_dec40], Object.getOwnPropertyDescriptor(_class2.prototype, \"totalQuote\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"errors\", [_dec41], Object.getOwnPropertyDescriptor(_class2.prototype, \"errors\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"taskOptions\", [_dec42], Object.getOwnPropertyDescriptor(_class2.prototype, \"taskOptions\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"removeItem\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"removeItem\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onAllValueTypeClick\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onAllValueTypeClick\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onAllFigureTypeClick\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onAllFigureTypeClick\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onAllAcceptItem\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onAllAcceptItem\"), _class2.prototype), _class2));\n});","define(\"portal/components/takeoff-uploader-modal/item-row\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@ember/service\", \"@glimmer/tracking\", \"@ember/runloop\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _service, _tracking, _runloop, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless @item.isDeleted}}\n    {{! template-lint-disable no-nested-interactive }}\n    {{#if @dsl.isDroppingAbove}}\n      <@dsl.Separator />\n    {{/if}}\n  \n    <@dsl.Draggable\n      class='takeoff-uploader-modal-item-row__item-container'\n      {{did-update this.onIsDroppingInto @dsl.isDroppingInto}}\n      {{on 'drop' this.onDrop}}\n    >\n      {{#if (media 'isDesktop')}}\n        <@dsl.DragHandle>\n          <div\n            role='treeitem'\n            class='takeoff-uploader-modal-item-row__item-row\n              {{if\n                this.hasTimeout\n                \"takeoff-uploader-modal-item-row__item-row--expanding\"\n              }}\n              {{if\n                @dsl.isDragging\n                \"takeoff-uploader-modal-item-row__item-row--dragging\"\n              }}\n              '\n            {{on 'click' this.toggleExpanded}}\n            data-test-takeoff-uploader-modal-item-row={{@item.name}}\n          >\n            <div>\n              {{#if @item.children.length}}\n                <FaIcon\n                  @icon={{if @item.expanded 'chevron-down' 'chevron-right'}}\n                  @fixedWidth={{true}}\n                />\n              {{else if @item.expanded}}\n                <FaIcon @icon='chevron-down' @fixedWidth={{true}} />\n              {{else}}\n                <FaIcon @icon='plus' @fixedWidth={{true}} />\n              {{/if}}\n            </div>\n  \n            <div class='mx-2'>\n              {{#if this.canEdit}}\n                <Input\n                  style='min-width: 33vw;'\n                  class='form-control'\n                  @type='text'\n                  @value={{@item.name}}\n                  disabled={{@disabled}}\n                  {{on 'click' this.onNameInputClick}}\n                />\n              {{else}}\n                {{@item.name}}\n              {{/if}}\n            </div>\n  \n            {{! slight abuse of this bool }}\n            {{#if this.canEdit}}\n              <div class='badge badge-pill bg-primary mx-2'>\n                {{t 'common.New'}}\n              </div>\n  \n              <div class='ms-auto'>\n                <button\n                  type='button'\n                  class='btn btn-link text-danger text-decoration-underline'\n                  disabled={{@disabled}}\n                  {{on 'click' (fn this.onDelete @item)}}\n                >\n                  <FaIcon @icon='times' />\n                </button>\n              </div>\n            {{/if}}\n          </div>\n        </@dsl.DragHandle>\n      {{else}}\n        <div\n          role='treeitem'\n          class='takeoff-uploader-modal-item-row__item-row\n            {{if\n              this.hasTimeout\n              \"takeoff-uploader-modal-item-row__item-row--expanding\"\n            }}\n            {{if\n              @dsl.isDragging\n              \"takeoff-uploader-modal-item-row__item-row--dragging\"\n            }}'\n          {{on 'click' this.toggleExpanded}}\n          data-test-takeoff-uploader-modal-item-row={{@item.name}}\n        >\n          <@dsl.DragHandle class='me-3'>\n            <FaIcon @icon='grip-vertical' @fixedWidth={{true}} @size='lg' />\n          </@dsl.DragHandle>\n  \n          <div>\n            {{#if @item.children.length}}\n              <FaIcon\n                @icon={{if @item.expanded 'chevron-down' 'chevron-right'}}\n                @fixedWidth={{true}}\n              />\n            {{else if @item.expanded}}\n              <FaIcon @icon='chevron-down' @fixedWidth={{true}} />\n            {{else}}\n              <FaIcon @icon='plus' @fixedWidth={{true}} />\n            {{/if}}\n          </div>\n  \n          <div class='mx-2'>\n            {{#if this.canEdit}}\n              <Input\n                style='min-width: 33vw;'\n                class='form-control'\n                @type='text'\n                @value={{@item.name}}\n                disabled={{@disabled}}\n                {{on 'click' this.onNameInputClick}}\n              />\n            {{else}}\n              {{@item.name}}\n            {{/if}}\n          </div>\n  \n          {{#if this.canEdit}}\n            <div class='badge badge-pill bg-primary mx-2'>\n              {{t 'common.New'}}\n            </div>\n  \n            <div class='ms-auto'>\n              <button\n                type='button'\n                class='btn btn-link text-danger text-decoration-underline'\n                disabled={{@disabled}}\n                {{on 'click' (fn this.onDelete @item)}}\n              >\n                <FaIcon @icon='times' />\n              </button>\n            </div>\n          {{/if}}\n        </div>\n  \n      {{/if}}\n  \n      {{#if @dsl.isDroppingInto}}\n        <div class='ms-5'>\n          <@dsl.Separator />\n        </div>\n      {{/if}}\n  \n      {{#if @item.expanded}}\n        <div class='ms-5'>\n          <@dsl.Children />\n  \n          <TakeoffUploaderModal::ItemRow::AddItem\n            class='me-2'\n            @inputId='takeoff-uploader-modal-item-row-name-input-{{this.internalId}}'\n            @onAdd={{this.onAdd}}\n            {{! the task must be saved before children can be added }}\n            @disabled={{or @disabled (and @item.isSaving @item.item.isNew)}}\n            @placeholder={{concat 'Add task for \"' @item.name '\"'}}\n          />\n        </div>\n      {{/if}}\n    </@dsl.Draggable>\n  \n    {{#if @dsl.isDroppingBelow}}\n      <@dsl.Separator />\n    {{/if}}\n  {{/unless}}\n  */\n  {\n    \"id\": \"FsEp5KJI\",\n    \"block\": \"[[[41,[51,[30,1,[\\\"isDeleted\\\"]]],[[[41,[30,2,[\\\"isDroppingAbove\\\"]],[[[1,\\\"    \\\"],[8,[30,2,[\\\"Separator\\\"]],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[8,[30,2,[\\\"Draggable\\\"]],[[24,0,\\\"takeoff-uploader-modal-item-row__item-container\\\"],[4,[38,2],[[30,0,[\\\"onIsDroppingInto\\\"]],[30,2,[\\\"isDroppingInto\\\"]]],null],[4,[38,3],[\\\"drop\\\",[30,0,[\\\"onDrop\\\"]]],null]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[8,[30,2,[\\\"DragHandle\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[11,0],[24,\\\"role\\\",\\\"treeitem\\\"],[16,0,[29,[\\\"takeoff-uploader-modal-item-row__item-row\\\\n            \\\",[52,[30,0,[\\\"hasTimeout\\\"]],\\\"takeoff-uploader-modal-item-row__item-row--expanding\\\"],\\\"\\\\n            \\\",[52,[30,2,[\\\"isDragging\\\"]],\\\"takeoff-uploader-modal-item-row__item-row--dragging\\\"],\\\"\\\\n            \\\"]]],[16,\\\"data-test-takeoff-uploader-modal-item-row\\\",[30,1,[\\\"name\\\"]]],[4,[38,3],[\\\"click\\\",[30,0,[\\\"toggleExpanded\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[10,0],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"children\\\",\\\"length\\\"]],[[[1,\\\"              \\\"],[8,[39,6],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[[52,[30,1,[\\\"expanded\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"],true]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,1,[\\\"expanded\\\"]],[[[1,\\\"              \\\"],[8,[39,6],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"chevron-down\\\",true]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[8,[39,6],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"plus\\\",true]],null],[1,\\\"\\\\n            \\\"]],[]]]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"mx-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canEdit\\\"]],[[[1,\\\"              \\\"],[8,[39,7],[[24,5,\\\"min-width: 33vw;\\\"],[24,0,\\\"form-control\\\"],[16,\\\"disabled\\\",[30,3]],[4,[38,3],[\\\"click\\\",[30,0,[\\\"onNameInputClick\\\"]]],null]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,1,[\\\"name\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"canEdit\\\"]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"badge badge-pill bg-primary mx-2\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,8],[\\\"common.New\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[10,0],[14,0,\\\"ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline\\\"],[16,\\\"disabled\\\",[30,3]],[24,4,\\\"button\\\"],[4,[38,3],[\\\"click\\\",[28,[37,10],[[30,0,[\\\"onDelete\\\"]],[30,1]],null]],null],[12],[1,\\\"\\\\n                \\\"],[8,[39,6],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[11,0],[24,\\\"role\\\",\\\"treeitem\\\"],[16,0,[29,[\\\"takeoff-uploader-modal-item-row__item-row\\\\n          \\\",[52,[30,0,[\\\"hasTimeout\\\"]],\\\"takeoff-uploader-modal-item-row__item-row--expanding\\\"],\\\"\\\\n          \\\",[52,[30,2,[\\\"isDragging\\\"]],\\\"takeoff-uploader-modal-item-row__item-row--dragging\\\"]]]],[16,\\\"data-test-takeoff-uploader-modal-item-row\\\",[30,1,[\\\"name\\\"]]],[4,[38,3],[\\\"click\\\",[30,0,[\\\"toggleExpanded\\\"]]],null],[12],[1,\\\"\\\\n        \\\"],[8,[30,2,[\\\"DragHandle\\\"]],[[24,0,\\\"me-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,6],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"grip-vertical\\\",true,\\\"lg\\\"]],null],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"children\\\",\\\"length\\\"]],[[[1,\\\"            \\\"],[8,[39,6],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[[52,[30,1,[\\\"expanded\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"],true]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,1,[\\\"expanded\\\"]],[[[1,\\\"            \\\"],[8,[39,6],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"chevron-down\\\",true]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[8,[39,6],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"plus\\\",true]],null],[1,\\\"\\\\n          \\\"]],[]]]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"mx-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canEdit\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[24,5,\\\"min-width: 33vw;\\\"],[24,0,\\\"form-control\\\"],[16,\\\"disabled\\\",[30,3]],[4,[38,3],[\\\"click\\\",[30,0,[\\\"onNameInputClick\\\"]]],null]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,1,[\\\"name\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"canEdit\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"badge badge-pill bg-primary mx-2\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,8],[\\\"common.New\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"ms-auto\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline\\\"],[16,\\\"disabled\\\",[30,3]],[24,4,\\\"button\\\"],[4,[38,3],[\\\"click\\\",[28,[37,10],[[30,0,[\\\"onDelete\\\"]],[30,1]],null]],null],[12],[1,\\\"\\\\n              \\\"],[8,[39,6],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"isDroppingInto\\\"]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"ms-5\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[30,2,[\\\"Separator\\\"]],null,null,null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"expanded\\\"]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"ms-5\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[30,2,[\\\"Children\\\"]],null,null,null],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,11],[[24,0,\\\"me-2\\\"]],[[\\\"@inputId\\\",\\\"@onAdd\\\",\\\"@disabled\\\",\\\"@placeholder\\\"],[[29,[\\\"takeoff-uploader-modal-item-row-name-input-\\\",[30,0,[\\\"internalId\\\"]]]],[30,0,[\\\"onAdd\\\"]],[28,[37,12],[[30,3],[28,[37,13],[[30,1,[\\\"isSaving\\\"]],[30,1,[\\\"item\\\",\\\"isNew\\\"]]],null]],null],[28,[37,14],[\\\"Add task for \\\\\\\"\\\",[30,1,[\\\"name\\\"]],\\\"\\\\\\\"\\\"],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,2,[\\\"isDroppingBelow\\\"]],[[[1,\\\"    \\\"],[8,[30,2,[\\\"Separator\\\"]],null,null,null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[\\\"@item\\\",\\\"@dsl\\\",\\\"@disabled\\\"],false,[\\\"unless\\\",\\\"if\\\",\\\"did-update\\\",\\\"on\\\",\\\"media\\\",\\\"div\\\",\\\"fa-icon\\\",\\\"input\\\",\\\"t\\\",\\\"button\\\",\\\"fn\\\",\\\"takeoff-uploader-modal/item-row/add-item\\\",\\\"or\\\",\\\"and\\\",\\\"concat\\\"]]\",\n    \"moduleName\": \"portal/components/takeoff-uploader-modal/item-row.hbs\",\n    \"isStrictMode\": false\n  });\n  const expandOnHoverMsTimeout = 500; // this is paired with .nested-task-card__task-row--expanding\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n      _initializerDefineProperty(this, \"timeout\", _descriptor2, this);\n      _initializerDefineProperty(this, \"hasTimeout\", _descriptor3, this);\n      _initializerDefineProperty(this, \"internalId\", _descriptor4, this);\n    }\n    get canEdit() {\n      return !this.args.item.task;\n    }\n    onIsDroppingInto() {\n      const {\n        item,\n        dsl\n      } = this.args;\n\n      // when we are not dropping into and there is an existing timeout, clear the timeout\n      if (!dsl.isDroppingInto && this.hasTimeout) {\n        clearTimeout(this.timeout);\n        this.hasTimeout = false;\n      }\n      const hasChildren = Boolean(item.children?.length);\n      const isCollapsed = !item.expanded;\n      if (!this.hasTimeout && dsl.isDroppingInto && hasChildren && isCollapsed) {\n        this.hasTimeout = true;\n        this.timeout = setTimeout(() => {\n          this.args.item.expanded = true; // expand the item\n          this.hasTimeout = false;\n        }, expandOnHoverMsTimeout);\n      }\n    }\n    onNameInputClick(event) {\n      event.stopPropagation();\n      event.preventDefault();\n    }\n    onDrop() {\n      // expand the item if something has been dropped inside\n      if (this.args.dsl.isDroppingInto && !this.args.item.expanded) this.args.item.expanded = true;\n    }\n    toggleExpanded(event) {\n      this.args.item.expanded = !this.args.item.expanded;\n      if (this.args.item.expanded) this.focusTaskNameInput();\n      event.stopPropagation();\n      event.preventDefault();\n    }\n    focusTaskNameInput() {\n      (0, _runloop.next)(() => {\n        document.getElementById(`takeoff-uploader-modal-item-row-name-input-${this.internalId}`).focus();\n      });\n    }\n    onAdd(name) {\n      return this.args.onAdd(name, this.args.item);\n    }\n    onDelete(item, event) {\n      event.stopPropagation();\n      event.preventDefault();\n      return this.args.onDelete(item, this.args.item.parent);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"timeout\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"hasTimeout\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"internalId\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return Math.random();\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"onIsDroppingInto\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onIsDroppingInto\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onNameInputClick\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onNameInputClick\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onDrop\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onDrop\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleExpanded\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleExpanded\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onAdd\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onAdd\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onDelete\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onDelete\"), _class.prototype), _class));\n});","define(\"portal/components/takeoff-uploader-modal/item-row/add-item\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"@ember/service\", \"@ember/object\", \"ember-changeset\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _service, _object, _emberChangeset, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/object\",0,\"ember-changeset\",0,\"ember-concurrency\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='takeoff-uploader-modal-item-row__add-item-container' ...attributes>\n    <FaIcon\n      @icon='plus'\n      @fixedWidth={{true}}\n      class='takeoff-uploader-modal-item-row__add-item-icon'\n    />\n  \n    <Input\n      @type='text'\n      @value={{this.changeset.name}}\n      id={{@inputId}}\n      class='takeoff-uploader-modal-item-row__add-item-input'\n      placeholder={{@placeholder}}\n      disabled={{@disabled}}\n      autofocus={{@autofocus}}\n      {{on 'keypress' this.onNameInputKeypress}}\n      {{! you need this to prevent drops onto the input }}\n      {{on 'drop' this.noop}}\n    />\n  \n    {{#if this.changeset.name.length}}\n      <button\n        type='button'\n        class='ms-2 text-light btn btn-secondary'\n        disabled={{@disabled}}\n        {{on 'click' this.saveItem}}\n      >{{t 'common.Add'}}</button>\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"JJudy5nA\",\n    \"block\": \"[[[11,0],[24,0,\\\"takeoff-uploader-modal-item-row__add-item-container\\\"],[17,1],[12],[1,\\\"\\\\n  \\\"],[8,[39,1],[[24,0,\\\"takeoff-uploader-modal-item-row__add-item-icon\\\"]],[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"plus\\\",true]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,2],[[16,1,[30,2]],[24,0,\\\"takeoff-uploader-modal-item-row__add-item-input\\\"],[16,\\\"placeholder\\\",[30,3]],[16,\\\"disabled\\\",[30,4]],[16,\\\"autofocus\\\",[30,5]],[4,[38,3],[\\\"keypress\\\",[30,0,[\\\"onNameInputKeypress\\\"]]],null],[4,[38,3],[\\\"drop\\\",[30,0,[\\\"noop\\\"]]],null]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"changeset\\\",\\\"name\\\"]]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"changeset\\\",\\\"name\\\",\\\"length\\\"]],[[[1,\\\"    \\\"],[11,\\\"button\\\"],[24,0,\\\"ms-2 text-light btn btn-secondary\\\"],[16,\\\"disabled\\\",[30,4]],[24,4,\\\"button\\\"],[4,[38,3],[\\\"click\\\",[30,0,[\\\"saveItem\\\"]]],null],[12],[1,[28,[35,6],[\\\"common.Add\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[13]],[\\\"&attrs\\\",\\\"@inputId\\\",\\\"@placeholder\\\",\\\"@disabled\\\",\\\"@autofocus\\\"],false,[\\\"div\\\",\\\"fa-icon\\\",\\\"input\\\",\\\"on\\\",\\\"if\\\",\\\"button\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/components/takeoff-uploader-modal/item-row/add-item.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _defineProperty(this, \"validateName\", (newValue, oldValue) => {\n        const name = newValue || oldValue;\n        return name.length > 0 || this.intl.t('validation.Please provide a name');\n      });\n      _defineProperty(this, \"itemValidator\", ({\n        key,\n        newValue,\n        oldValue\n      }) => {\n        switch (key) {\n          case 'name':\n            return this.validateName(newValue, oldValue);\n          default:\n            break;\n        }\n      });\n      _defineProperty(this, \"validationMap\", {\n        name: this.validateName\n      });\n      _defineProperty(this, \"changeset\", (0, _emberChangeset.Changeset)({\n        name: ''\n      }, this.itemValidator, this.validationMap));\n      _defineProperty(this, \"validateAndProcess\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.changeset.validate();\n          if (!this.changeset.isValid) {\n            this.notifications.warning(this.changeset.error.name.validation);\n            return;\n          }\n          this.args.onAdd(this.changeset.name);\n          this.changeset.name = '';\n        }\n      }), null, \"validateAndProcess\", null));\n    }\n    onNameInputKeypress(e) {\n      if (e.key === 'Enter') this.saveItem();\n    }\n    saveItem() {\n      this.validateAndProcess.perform();\n    }\n    noop(e) {\n      e.preventDefault();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"onNameInputKeypress\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onNameInputKeypress\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"saveItem\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"saveItem\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"noop\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"noop\"), _class.prototype), _class));\n});","define(\"portal/components/takeoff-uploader-modal/map\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/array\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _tracking, _array, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _class2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"ember-concurrency\",0,\"@ember/array\",0,\"@ember/service\",0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='d-flex flex-column' style='min-width: 85vw;'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      {{#if this.items.length}}\n        <div\n          class='border-bottom bg-white m-n3 p-3'\n          {{! -1rem is equal to m-3 }}\n          style='position: sticky; top: -1rem; margin-bottom: 1rem!important; z-index: 1020;'\n        >\n          <div class='d-flex justify-content-end p-2'>\n            <button\n              type='button'\n              class='btn btn-success align-self-end text-white text-nowrap'\n              disabled={{this.continue.isRunning}}\n              {{on 'click' (fn (mut this.addingTaskFromTemplate) true)}}\n            >\n              <FaIcon @icon='plus' />&nbsp;&nbsp;{{t\n                'shared.task.Add tasks from template'\n              }}\n            </button>\n          </div>\n        </div>\n  \n        <DragSortList\n          class='d-flex flex-column flex-grow-1'\n          @onUpdate={{perform this.onUpdateItems}}\n          @itemComponent={{component\n            'takeoff-uploader-modal/item-row'\n            onDelete=(perform this.onDeleteItem)\n            onAdd=(perform this.onAddItem)\n            disabled=this.continue.isRunning\n          }}\n          @list={{this.items}}\n        />\n  \n        <TakeoffUploaderModal::ItemRow::AddItem\n          class='me-2'\n          @onAdd={{perform this.onAddItem}}\n          @disabled={{this.continue.isRunning}}\n          @placeholder={{t 'shared.task.Add task'}}\n        />\n      {{/if}}\n  \n      <div\n        class='border-top bg-white m-n3 p-3'\n        {{! -1rem is equal to m-3 }}\n        style='position: sticky; bottom: -1rem; margin-top: 1rem!important; z-index: 1020;'\n      >\n        <div class='d-flex justify-content-end p-2'>\n          <button\n            class='btn btn-primary'\n            type='button'\n            disabled={{this.continue.isRunning}}\n            {{on 'click' (fn (perform this.continue))}}\n          >{{t 'components.takeoff-uploader-modal.map.Create tasks'}}</button>\n        </div>\n      </div>\n    {{/if}}\n  </div>\n  \n  {{#if this.addingTaskFromTemplate}}\n    <TaskTemplateModal\n      @onLoadTaskTemplate={{perform this.onLoadTaskTemplate}}\n      @onClose={{fn (mut this.addingTaskFromTemplate) false}}\n      @parentTasks={{this.tasks}}\n    />\n  {{/if}}\n  */\n  {\n    \"id\": \"ztFe4I0n\",\n    \"block\": \"[[[10,0],[14,0,\\\"d-flex flex-column\\\"],[14,5,\\\"min-width: 85vw;\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"items\\\",\\\"length\\\"]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"border-bottom bg-white m-n3 p-3\\\"],[14,5,\\\"position: sticky; top: -1rem; margin-bottom: 1rem!important; z-index: 1020;\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex justify-content-end p-2\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success align-self-end text-white text-nowrap\\\"],[16,\\\"disabled\\\",[30,0,[\\\"continue\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,4],[\\\"click\\\",[28,[37,5],[[28,[37,6],[[30,0,[\\\"addingTaskFromTemplate\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[8,[39,7],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,8],[\\\"shared.task.Add tasks from template\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,9],[[24,0,\\\"d-flex flex-column flex-grow-1\\\"]],[[\\\"@onUpdate\\\",\\\"@itemComponent\\\",\\\"@list\\\"],[[28,[37,10],[[30,0,[\\\"onUpdateItems\\\"]]],null],[50,\\\"takeoff-uploader-modal/item-row\\\",0,null,[[\\\"onDelete\\\",\\\"onAdd\\\",\\\"disabled\\\"],[[28,[37,10],[[30,0,[\\\"onDeleteItem\\\"]]],null],[28,[37,10],[[30,0,[\\\"onAddItem\\\"]]],null],[30,0,[\\\"continue\\\",\\\"isRunning\\\"]]]]],[30,0,[\\\"items\\\"]]]],null],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,12],[[24,0,\\\"me-2\\\"]],[[\\\"@onAdd\\\",\\\"@disabled\\\",\\\"@placeholder\\\"],[[28,[37,10],[[30,0,[\\\"onAddItem\\\"]]],null],[30,0,[\\\"continue\\\",\\\"isRunning\\\"]],[28,[37,8],[\\\"shared.task.Add task\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"border-top bg-white m-n3 p-3\\\"],[14,5,\\\"position: sticky; bottom: -1rem; margin-top: 1rem!important; z-index: 1020;\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex justify-content-end p-2\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"continue\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,4],[\\\"click\\\",[28,[37,5],[[28,[37,10],[[30,0,[\\\"continue\\\"]]],null]],null]],null],[12],[1,[28,[35,8],[\\\"components.takeoff-uploader-modal.map.Create tasks\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"addingTaskFromTemplate\\\"]],[[[1,\\\"  \\\"],[8,[39,13],null,[[\\\"@onLoadTaskTemplate\\\",\\\"@onClose\\\",\\\"@parentTasks\\\"],[[28,[37,10],[[30,0,[\\\"onLoadTaskTemplate\\\"]]],null],[28,[37,5],[[28,[37,6],[[30,0,[\\\"addingTaskFromTemplate\\\"]]],null],false],null],[30,0,[\\\"tasks\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[],false,[\\\"div\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"fa-icon\\\",\\\"t\\\",\\\"drag-sort-list\\\",\\\"perform\\\",\\\"component\\\",\\\"takeoff-uploader-modal/item-row/add-item\\\",\\\"task-template-modal\\\"]]\",\n    \"moduleName\": \"portal/components/takeoff-uploader-modal/map.hbs\",\n    \"isStrictMode\": false\n  });\n  let MapItem = (_class = class MapItem {\n    constructor(name, task, financials, products, parent, children, taskType) {\n      _defineProperty(this, \"name\", void 0);\n      _defineProperty(this, \"task\", void 0);\n      _defineProperty(this, \"taskType\", void 0);\n      _defineProperty(this, \"parent\", void 0);\n      _defineProperty(this, \"financials\", void 0);\n      _defineProperty(this, \"products\", []);\n      _initializerDefineProperty(this, \"children\", _descriptor, this);\n      _initializerDefineProperty(this, \"expanded\", _descriptor2, this);\n      this.name = name;\n      if (task) this.task = task;\n      if (taskType) this.taskType = taskType;\n      if (products) this.products = products;\n      if (financials) this.financials = financials;\n      if (parent) this.parent = parent;\n\n      // this isn't mutually exclusive flows but for this case it's okay\n      if (task?.activeChildren.length) {\n        this.children = (0, _array.A)([...task.activeChildren].sort((a, b) => a.path.localeCompare(b.path)).map(c => new MapItem(c.name, c, undefined, undefined, this)));\n      }\n      if (children?.length) {\n        this.children = (0, _array.A)(children);\n      }\n    }\n\n    // tracked properties don't work with the default toJSON\n    toJSON() {\n      return {\n        name: this.name,\n        task: this.task?.toJSON({\n          includeId: true\n        }),\n        taskType: this.taskType,\n        financials: this.financials,\n        products: this.products,\n        children: this.children.toArray()\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"children\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return (0, _array.A)([]);\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"expanded\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _class);\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class2 = class _class2 extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"notifications\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"tasks\", _descriptor5, this);\n      _initializerDefineProperty(this, \"items\", _descriptor6, this);\n      _initializerDefineProperty(this, \"addingTaskFromTemplate\", _descriptor7, this);\n      _defineProperty(this, \"_getTasks\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project) {\n          yield project.loadTasks();\n          this.tasks = project.activeTasks.filter(t => !t.belongsTo('parent').id()).sort((a, b) => a.path - b.path);\n        }\n      }), null, \"_getTasks\", null));\n      _defineProperty(this, \"_initTakeoffItems\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (tasks, takeoffItems) {\n          yield tasks;\n          const taskMapItems = this.tasks.map(task => new MapItem(task.name, task));\n          const groupedTakeoffItems = new Map();\n          for (const takeoffItem of takeoffItems) {\n            const parentTask = takeoffItem.group || undefined;\n            const task = takeoffItem.task;\n            if (!groupedTakeoffItems.has(parentTask)) {\n              groupedTakeoffItems.set(parentTask, new Map());\n            }\n            if (task) {\n              const taskGroup = groupedTakeoffItems.get(parentTask);\n              if (!taskGroup.has(task)) {\n                taskGroup.set(task, []);\n              }\n              taskGroup.get(task).push(takeoffItem);\n            }\n          }\n          const topMapItems = [];\n          for (const [parentTask, childTasks] of groupedTakeoffItems.entries()) {\n            const mapItems = [];\n            for (const [task, takeoffItems] of childTasks.entries()) {\n              const child = {\n                name: task,\n                financials: {\n                  labourBudget: 0,\n                  manHoursBudget: 0,\n                  materialsBudget: 0,\n                  subcontractorsBudget: 0,\n                  sumsBudget: 0,\n                  labourQuote: 0,\n                  manHoursQuote: 0,\n                  materialsQuote: 0,\n                  subcontractorsQuote: 0,\n                  sumsQuote: 0\n                },\n                products: [],\n                taskType: 'TASK'\n              };\n              const childTaskTypes = new Set();\n              for (const takeoffItem of takeoffItems) {\n                childTaskTypes.add(takeoffItem.taskType);\n\n                // this row has product information\n                if (takeoffItem.description) {\n                  child.products.push({\n                    supplier: takeoffItem.supplier,\n                    description: takeoffItem.description,\n                    usage: takeoffItem.usage,\n                    sku: takeoffItem.sku,\n                    gtin: takeoffItem.gtin,\n                    manufacturer: takeoffItem.manufacturer,\n                    quantity: takeoffItem.quantity,\n                    unitPrice: takeoffItem.rate,\n                    unit: takeoffItem.unit,\n                    stage: takeoffItem.stage\n                  });\n                }\n                child.financials.labourBudget += takeoffItem.labourBudget;\n                child.financials.manHoursBudget += takeoffItem.manHoursBudget;\n                child.financials.materialsBudget += takeoffItem.materialsBudget;\n                child.financials.subcontractorsBudget += takeoffItem.subcontractorsBudget;\n                child.financials.sumsBudget += takeoffItem.sumsBudget;\n                child.financials.labourQuote += takeoffItem.labourQuote;\n                child.financials.manHoursQuote += takeoffItem.manHoursQuote;\n                child.financials.materialsQuote += takeoffItem.materialsQuote;\n                child.financials.subcontractorsQuote += takeoffItem.subcontractorsQuote;\n                child.financials.sumsQuote += takeoffItem.sumsQuote;\n              }\n\n              // if there is only one kind of child, set the task type to that\n              if (childTaskTypes.size === 1) child.taskType = [...childTaskTypes][0];\n\n              // this is the direct child of a task\n              const childMapItem = new MapItem(child.name, undefined, child.financials, child.products, undefined, undefined, child.taskType);\n              mapItems.push(childMapItem);\n            }\n\n            // this is a ungrouped task\n            if (!parentTask) {\n              topMapItems.push(...mapItems);\n              continue;\n            }\n            const uniqueMapItemTaskTypes = new Set(mapItems.map(item => item.taskType));\n\n            // this constructs the parent\n            const parentMapItem = new MapItem(parentTask, undefined, undefined, undefined, undefined, mapItems, uniqueMapItemTaskTypes.size === 1 ? [...uniqueMapItemTaskTypes][0] : 'TASK');\n            topMapItems.push(parentMapItem);\n          }\n          this.items = (0, _array.A)([...taskMapItems, ...topMapItems]);\n        }\n      }), null, \"_initTakeoffItems\", null));\n      _defineProperty(this, \"onUpdateItems\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (items) {\n          this.items = (0, _array.A)(items);\n        }\n      }), null, \"onUpdateItems\", null));\n      _defineProperty(this, \"onDeleteItem\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (item, parent) {\n          if (parent) {\n            parent.children.removeObject(item);\n          } else {\n            this.items.removeObject(item);\n          }\n        }\n      }), null, \"onDeleteItem\", null));\n      _defineProperty(this, \"onAddItem\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (name, parent) {\n          if (!name || name.length < 1) {\n            this.notifications.warning(this.intl.t('shared.notification.Please provide a task name'));\n            return;\n          }\n          const newItem = new MapItem(name, undefined, undefined, undefined, parent);\n          if (parent) {\n            parent.children.pushObject(newItem);\n          } else {\n            this.items.pushObject(newItem);\n          }\n        }\n      }), null, \"onAddItem\", null));\n      _defineProperty(this, \"onLoadTaskTemplate\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (taskTemplate) {\n          this.addingTaskFromTemplate = false;\n\n          // convert the task template into map items\n          let templateMapItem;\n          yield async function loadItems(item, children, parentMapItem) {\n            const mapItem = new MapItem(item.name, undefined, undefined, undefined, parentMapItem);\n            if (parentMapItem) {\n              parentMapItem.children.pushObject(mapItem);\n            } else {\n              templateMapItem = mapItem;\n            }\n            if (children) await Promise.all(children.map(childItem => loadItems(childItem, childItem.hasMany('items').value()?.sortBy('path'), mapItem)));\n          }(taskTemplate, taskTemplate.hasMany('items').value()\n          // only top level children first\n          .filter(i => !i.belongsTo('parent').value()).sortBy('path'));\n          this.items.pushObject(templateMapItem);\n          this.notifications.success('Loaded template');\n        }\n      }), null, \"onLoadTaskTemplate\", null));\n      _defineProperty(this, \"continue\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.args.onMappingComplete.perform(this.items);\n        }\n      }), null, \"continue\", null));\n      const _tasks = this._getTasks.perform(this.args.project);\n      this._initTakeoffItems.perform(_tasks, this.args.takeoffItems);\n    }\n    get isLoading() {\n      return this._getTasks.isRunning || this._initTakeoffItems.isRunning || this.continue.isRunning;\n    }\n  }, _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"tasks\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"items\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"addingTaskFromTemplate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2));\n});","define(\"portal/components/takeoff-uploader-modal/upload\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"ember-changeset\", \"@glimmer/tracking\", \"@ember/service\", \"@ember/object\", \"string-similarity\", \"csv-parse/browser/esm\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _emberChangeset, _tracking, _service, _object, _stringSimilarity, _esm, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _class2, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"ember-changeset\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"@ember/object\",0,\"string-similarity\",0,\"ember-concurrency\",0,\"csv-parse/browser/esm\",0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.takeoff}}\n    <p>{{t 'shared.uploader.pleaseIdentifyTheColumnTypesIsInTheDocument'}}</p>\n    <div class='overflow-auto'>\n      <div class='table-responsive'>\n        <table class='table table-sm table-bordered'>\n          <thead>\n            <tr>\n              {{#each this.takeoff.columnTypes as |type index|}}\n                <th class='text-center align-top'>\n                  <PtlInput\n                    style='min-width: 205px;'\n                    @type='select'\n                    @label={{number-to-char index}}\n                    {{! the key needs to be a string }}\n                    @key={{concat index}}\n                    @options={{this.takeoff.columnTypeOptions}}\n                    @model={{this.takeoff.columnTypeForm}}\n                    @selectNoBlankOption={{true}}\n                    @forceValidationVisible={{gt this.continue.performCount 0}}\n                  />\n                </th>\n              {{/each}}\n            </tr>\n          </thead>\n          <tbody>\n            {{#each this.takeoff.sampleRows as |columns|}}\n              <tr>\n                {{#each columns as |column index|}}\n                  <td\n                    class='no-wrap text-truncate\n                      {{if\n                        (eq\n                          (get this.takeoff.columnTypeForm index) \"do-not-import\"\n                        )\n                        \"opacity-25\"\n                      }}'\n                    style='min-width: 205px; max-width: 250px;'\n                    title={{column}}\n                  >{{column}}</td>\n                {{/each}}\n              </tr>\n            {{/each}}\n          </tbody>\n        </table>\n      </div>\n    </div>\n  \n    <div class='d-flex justify-content-end p-2'>\n      <button\n        class='btn btn-secondary me-2'\n        type='button'\n        {{on 'click' this.onClear}}\n      >{{t 'shared.uploader.Upload a different file'}}</button>\n      <button\n        class='btn btn-primary'\n        type='button'\n        {{on 'click' (fn (perform this.continue))}}\n      >{{t 'shared.task.Continue to next step'}}</button>\n    </div>\n  {{else}}\n    <DragAndDropContainer\n      @onUploadComplete={{this.onUpload}}\n      @isDragAndDropVisible={{true}}\n    >\n      <p class='text-center'>\n        {{t\n          'components.takeoff-uploader-modal.upload.uploadYourCsvFileToGenerateTasksWithBudgetsAndQuotes'\n        }}\n        <br />\n        <br />\n        {{t\n          'components.takeoff-uploader-modal.upload.youCanUseThisToConvertYourTakeoffIntoTasksOrJustCreateTasksInBulk'\n        }}\n      </p>\n      <a\n        class='btn btn-link align-self-center mb-3'\n        href='/assets/example-task-file-5aa84b6c09acf5d359bc8a6141919c7d.csv'\n        download='example-task-file-5aa84b6c09acf5d359bc8a6141919c7d.csv'\n      >\n        <FaIcon @icon='download' />&nbsp;&nbsp;\n        {{t 'shared.uploader.Download example file'}}\n      </a>\n    </DragAndDropContainer>\n  {{/if}}\n  */\n  {\n    \"id\": \"IK0d0d83\",\n    \"block\": \"[[[41,[30,0,[\\\"takeoff\\\"]],[[[1,\\\"  \\\"],[10,2],[12],[1,[28,[35,2],[\\\"shared.uploader.pleaseIdentifyTheColumnTypesIsInTheDocument\\\"],null]],[13],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"overflow-auto\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"table-responsive\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-sm table-bordered\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,0,[\\\"takeoff\\\",\\\"columnTypes\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,\\\"th\\\"],[14,0,\\\"text-center align-top\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,10],[[24,5,\\\"min-width: 205px;\\\"]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@options\\\",\\\"@model\\\",\\\"@selectNoBlankOption\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",[28,[37,11],[[30,2]],null],[28,[37,12],[[30,2]],null],[30,0,[\\\"takeoff\\\",\\\"columnTypeOptions\\\"]],[30,0,[\\\"takeoff\\\",\\\"columnTypeForm\\\"]],true,[28,[37,13],[[30,0,[\\\"continue\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[1,2]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,0,[\\\"takeoff\\\",\\\"sampleRows\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,3]],null]],null],null,[[[1,\\\"                \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"no-wrap text-truncate\\\\n                    \\\",[52,[28,[37,16],[[28,[37,17],[[30,0,[\\\"takeoff\\\",\\\"columnTypeForm\\\"]],[30,5]],null],\\\"do-not-import\\\"],null],\\\"opacity-25\\\"]]]],[14,5,\\\"min-width: 205px; max-width: 250px;\\\"],[15,\\\"title\\\",[30,4]],[12],[1,[30,4]],[13],[1,\\\"\\\\n\\\"]],[4,5]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"d-flex justify-content-end p-2\\\"],[12],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary me-2\\\"],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[30,0,[\\\"onClear\\\"]]],null],[12],[1,[28,[35,2],[\\\"shared.uploader.Upload a different file\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,20],[[28,[37,21],[[30,0,[\\\"continue\\\"]]],null]],null]],null],[12],[1,[28,[35,2],[\\\"shared.task.Continue to next step\\\"],null]],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[8,[39,22],null,[[\\\"@onUploadComplete\\\",\\\"@isDragAndDropVisible\\\"],[[30,0,[\\\"onUpload\\\"]],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,2],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,2],[\\\"components.takeoff-uploader-modal.upload.uploadYourCsvFileToGenerateTasksWithBudgetsAndQuotes\\\"],null]],[1,\\\"\\\\n      \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n      \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n      \\\"],[1,[28,[35,2],[\\\"components.takeoff-uploader-modal.upload.youCanUseThisToConvertYourTakeoffIntoTasksOrJustCreateTasksInBulk\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,3],[14,0,\\\"btn btn-link align-self-center mb-3\\\"],[14,6,\\\"/assets/example-task-file-5aa84b6c09acf5d359bc8a6141919c7d.csv\\\"],[14,\\\"download\\\",\\\"example-task-file-5aa84b6c09acf5d359bc8a6141919c7d.csv\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,25],null,[[\\\"@icon\\\"],[\\\"download\\\"]],null],[1,\\\"  \\\\n      \\\"],[1,[28,[35,2],[\\\"shared.uploader.Download example file\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"type\\\",\\\"index\\\",\\\"columns\\\",\\\"column\\\",\\\"index\\\"],false,[\\\"if\\\",\\\"p\\\",\\\"t\\\",\\\"div\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"each\\\",\\\"-track-array\\\",\\\"th\\\",\\\"ptl-input\\\",\\\"number-to-char\\\",\\\"concat\\\",\\\"gt\\\",\\\"tbody\\\",\\\"td\\\",\\\"eq\\\",\\\"get\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"perform\\\",\\\"drag-and-drop-container\\\",\\\"br\\\",\\\"a\\\",\\\"fa-icon\\\"]]\",\n    \"moduleName\": \"portal/components/takeoff-uploader-modal/upload.hbs\",\n    \"isStrictMode\": false\n  });\n  const getColumnsFrom2dArray = (arr, col) => {\n    return arr.map(r => r[col]);\n  };\n\n  // why this library kept this API when making a browser build is beyond me\n  const parseCsvFromBase64 = base64 => {\n    const records = [];\n    const parser = (0, _esm.parse)({\n      bom: true,\n      skip_empty_lines: true,\n      trim: true\n    });\n    parser.on('readable', () => {\n      let record;\n      while ((record = parser.read()) !== null) {\n        records.push(record);\n      }\n    });\n    const csvText = atob(base64);\n    parser.write(csvText);\n    parser.end();\n    return records;\n  };\n  class ParserError extends Error {}\n  let TakeoffFile = (_class = class TakeoffFile {\n    get sampleRows() {\n      if (!this.csv) return null;\n      return this.csv.slice(0, 10);\n    }\n    get columnsLength() {\n      return this.csv[0].length;\n    }\n    constructor(csv, intl) {\n      _initializerDefineProperty(this, \"columnTypes\", _descriptor, this);\n      _initializerDefineProperty(this, \"columnTypeForm\", _descriptor2, this);\n      _initializerDefineProperty(this, \"csv\", _descriptor3, this);\n      this.columnTypeOptions = [{\n        label: '—',\n        value: 'do-not-import',\n        matches: [],\n        type: undefined\n      }, {\n        label: intl.t('components.takeoff-uploader-modal.upload.Task group'),\n        value: 'group',\n        matches: ['group task', 'group', 'section', 'task group'],\n        type: 'string'\n      }, {\n        label: intl.t('common.Task'),\n        value: 'task',\n        matches: ['task', 'name', 'item', 'subgroup', 'sub', 'sub group', 'subgroup task'],\n        type: 'string'\n      }, {\n        label: intl.t('common.Task type'),\n        value: 'taskType',\n        matches: ['task type', 'type'],\n        type: 'string'\n      }, {\n        label: intl.t('shared.task.Product description'),\n        value: 'productDescription',\n        matches: ['product description', 'product', 'product name'],\n        type: 'string'\n      }, {\n        label: intl.t('common.Supplier'),\n        value: 'supplier',\n        matches: ['supplier', 'supp'],\n        type: 'string'\n      }, {\n        label: intl.t('common.SKU'),\n        value: 'sku',\n        matches: ['sku'],\n        type: 'string'\n      }, {\n        label: intl.t('common.GTIN'),\n        value: 'gtin',\n        matches: ['gtin'],\n        type: 'string'\n      }, {\n        label: intl.t('common.Manufacturer'),\n        value: 'manufacturer',\n        matches: ['manufacture', 'manufacturer', 'mfr.', 'mfr'],\n        type: 'string'\n      }, {\n        label: intl.t('common.Quantity'),\n        value: 'quantity',\n        matches: ['qty', 'quantity', 'no'],\n        type: 'number'\n      }, {\n        label: intl.t('common.Unit'),\n        value: 'unit',\n        matches: ['type', 'unit'],\n        type: 'string'\n      }, {\n        label: `${intl.t('common.Rate')} ($)`,\n        value: 'rate',\n        matches: ['rate', 'price', 'price (ex gst)', 'price (inc gst)'],\n        type: 'currency'\n      }, {\n        label: intl.t('common.Usage'),\n        value: 'usage',\n        matches: ['usage'],\n        type: 'string'\n      }, {\n        label: `${intl.t('common.Margin')} (%)`,\n        value: 'margin',\n        matches: ['margin', 'markup'],\n        type: 'percentage'\n      }, {\n        label: intl.t('common.Labour hours'),\n        value: 'labourHours',\n        matches: [intl.t('common.Labour hours')],\n        type: 'number'\n      }, {\n        label: `${intl.t('common.Total')} ($)`,\n        value: 'total',\n        matches: ['total'],\n        type: 'currency'\n      }, {\n        label: `${intl.t('components.takeoff-uploader-modal.upload.Labour allocation')} (%)`,\n        value: 'labourAllocationPercentage',\n        matches: ['labour allocation', '(%) labour allocation', 'labour allocation (%)'],\n        type: 'percentage'\n      }, {\n        label: `${intl.t('components.takeoff-uploader-modal.upload.Labour allocation')} ($)`,\n        value: 'labourAllocationCurrency',\n        matches: ['labour allocation', '($) labour allocation', 'labour allocation ($)'],\n        type: 'currency'\n      }, {\n        label: `${intl.t('components.takeoff-uploader-modal.upload.Materials allocation')} (%)`,\n        value: 'materialsAllocationPercentage',\n        matches: ['materials allocation', '(%) materials allocation', 'materials allocation (%)'],\n        type: 'percentage'\n      }, {\n        label: `${intl.t('components.takeoff-uploader-modal.upload.Materials allocation')} ($)`,\n        value: 'materialsAllocationCurrency',\n        matches: ['materials allocation', '($) materials allocation', 'materials allocation ($)'],\n        type: 'currency'\n      }, {\n        label: `${intl.t('components.takeoff-uploader-modal.upload.Subcontractors allocation')} (%)`,\n        value: 'subcontractorsAllocationPercentage',\n        matches: ['subcontractors allocation', '(%) subcontractors allocation', 'subcontractors allocation (%)'],\n        type: 'percentage'\n      }, {\n        label: `${intl.t('components.takeoff-uploader-modal.upload.Subcontractors allocation')} ($)`,\n        value: 'subcontractorsAllocationCurrency',\n        matches: ['subcontractors allocation', '($) subcontractors allocation', 'subcontractors allocation ($)'],\n        type: 'currency'\n      }, {\n        label: `${intl.t('components.takeoff-uploader-modal.upload.Sums allocation')} (%)`,\n        value: 'sumsAllocationPercentage',\n        matches: ['sums allocation', '(%) sums allocation', 'sums allocation (%)'],\n        type: 'percentage'\n      }, {\n        label: `${intl.t('components.takeoff-uploader-modal.upload.Sums allocation')} ($)`,\n        value: 'sumsAllocationCurrency',\n        matches: ['sums allocation', '($) sums allocation', 'sums allocation ($)'],\n        type: 'currency'\n      }, {\n        label: `${intl.t('components.takeoff-uploader-modal.upload.Contingency')} (%)`,\n        value: 'contingencyPercentage',\n        matches: ['contingency', 'cont', '(%) contingency', 'contingency (%)', '(%) cont', 'cont (%)'],\n        type: 'percentage'\n      }, {\n        label: `${intl.t('components.takeoff-uploader-modal.upload.Contingency')} ($)`,\n        value: 'contingencyCurrency',\n        matches: ['contingency', 'cont', '($) contingency', '($) cont', 'contingency ($)', 'cont ($)'],\n        type: 'currency'\n      }];\n      this.csv = csv;\n      this.columnTypes = this._findLikelyColumnTypes();\n      this.columnTypeForm = this._generateColumnTypeForm(intl);\n    }\n    _generateColumnTypeForm(intl) {\n      const validator = ({\n        key: _key,\n        newValue,\n        oldValue,\n        changes,\n        content\n      }) => {\n        const current = {\n          ...content,\n          ...changes\n        };\n        const values = Object.values(current).filter(\n        // for some reason this has a save function in it\n        v => typeof v === 'string');\n        const value = newValue || oldValue;\n\n        // you need at least one of each of these to progress\n        const requiredValues = ['task'];\n        if (\n        // if you have chosen not to import this column\n        value === 'do-not-import' &&\n        // and there are still required values left\n        requiredValues.some(rv => !values.includes(rv))) return intl.t('validation.Task is required');\n\n        // no import is always valid\n        if (value === 'do-not-import') return true;\n\n        // you can't have duplicate selections\n        // for $/% columns, we don't want duplicates of the same kind\n        const ignoreRegex = /Currency|Percentage/;\n        if (values.filter(v => v.replace(ignoreRegex, '') === value.replace(ignoreRegex, '')).length > 1) return intl.t('validation.You can only select this column once');\n        return true;\n      };\n      const data = {\n        save: () => {\n          for (let i = 0; i < this.columnsLength; i++) {\n            this.columnTypes[i] = this.columnTypeForm.get(String(i));\n          }\n        }\n      };\n      const validatorMap = {};\n      for (let i = 0; i < this.columnsLength; i++) {\n        data[i] = this.columnTypes[i];\n        validatorMap[i] = validator;\n      }\n      return (0, _emberChangeset.Changeset)(data, validator, validatorMap);\n    }\n    _findLikelyColumnTypes() {\n      // TODO if there isn't a header row, we could try and assume from the data type of the columns\n      const likenessThreshold = 0.8;\n      // for each column iterate over each column type to find the closest matching column type\n      const results = [];\n      for (let i = 0; i < this.columnsLength; i++) {\n        const winners = this.columnTypeOptions.map(option => {\n          // get the entire column from the sample rows\n          const columns = getColumnsFrom2dArray(this.sampleRows, i).map(s => s.toLowerCase().trim());\n          // test the likeness of the columns against the matching strings\n          const scores = option.matches.map(m => (0, _stringSimilarity.findBestMatch)(m, columns));\n          // check if the best match is better than the threshold\n          const winner = scores.find(score => score.bestMatch.rating >= likenessThreshold);\n          return {\n            option,\n            rating: winner?.bestMatch?.rating || 0\n          };\n        });\n\n        // compute the highest rating\n        const bestRating = Math.max(...winners.map(winner => winner.rating));\n\n        // filter winners to get the best matches\n        const bestMatches = winners.filter(winner => winner.rating === bestRating);\n        if (bestMatches.length === 1) {\n          // we now have the closest matching column type for this column\n          results.push(bestMatches[0].option.value);\n          continue;\n        }\n\n        // if we have many matches try detect the type from the column values\n        const columns = getColumnsFrom2dArray(this.sampleRows, i);\n        const isCurrency = columns.some(col => col.includes('$'));\n        const bestTypeMatched = bestMatches.find(match => match.option.type === (isCurrency ? 'currency' : 'percentage'));\n        if (bestTypeMatched) {\n          results.push(bestTypeMatched.option.value);\n          continue;\n        }\n        results.push(bestMatches[0].option.value);\n      }\n      return results;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"columnTypes\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"columnTypeForm\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"csv\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class2 = class _class2 extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"notifications\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _initializerDefineProperty(this, \"takeoff\", _descriptor6, this);\n      _defineProperty(this, \"continue\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          this.takeoff.columnTypeForm.validate();\n          if (this.takeoff.columnTypeForm.isInvalid) {\n            this.notifications.warning(this.intl.t('shared.uploader.pleaseCompleteTheFormBeforeContinuing'));\n            return;\n          }\n          yield this.takeoff.columnTypeForm.save();\n          yield this.args.onUploadComplete(this.takeoff);\n        }\n      }), null, \"continue\", null));\n      _defineProperty(this, \"parseCsvFromAttachment\", attachment => {\n        // TODO windows does some funky shit with MIME types\n        if (attachment.fileType !== 'text/csv') throw new ParserError(this.intl.t('shared.uploader.Please upload a valid CSV file'));\n        const csv = parseCsvFromBase64(attachment.data);\n        return csv;\n      });\n      if (this.args.takeoffFile) this.takeoff = this.args.takeoffFile;\n    }\n    onClear() {\n      this.takeoff = null;\n      this.args.onFileClear();\n    }\n    onUpload(e) {\n      try {\n        if (!e.attachments.length) {\n          this.notifications.warning(this.intl.t('shared.uploader.Please upload a valid CSV file'));\n          return;\n        }\n        if (e.attachments.length > 1) this.notifications.warning(this.intl.t('shared.uploader.Please upload one file at a time'));\n        const attachment = e.attachments[0];\n        const csv = this.parseCsvFromAttachment(attachment);\n        this.takeoff = new TakeoffFile(csv, this.intl);\n      } catch (error) {\n        if (error instanceof ParserError) {\n          this.notifications.warning(error.message);\n          return;\n        }\n        this.notifications.error({\n          message: this.intl.t('shared.uploader.Something went wrong uploading the file'),\n          error\n        });\n      }\n    }\n  }, _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"takeoff\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"onClear\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onClear\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onUpload\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onUpload\"), _class2.prototype), _class2));\n});","define(\"portal/components/task-breadcrumbs\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{this.breadcrumbString}}\n  */\n  {\n    \"id\": \"cos6kqAs\",\n    \"block\": \"[[[1,[30,0,[\\\"breadcrumbString\\\"]]]],[],false,[]]\",\n    \"moduleName\": \"portal/components/task-breadcrumbs.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_dec = (0, _object.computed)('args.{showProject,task}', 'task'), _class = class extends _component2.default {\n    get breadcrumbString() {\n      return this.generateBreadcrumb();\n    }\n    get taskNameTree() {\n      const taskNameTree = [];\n      const addTask = task => {\n        taskNameTree.unshift((0, _object.get)(task, 'name'));\n        if ((0, _object.get)(task, 'parent.name')) {\n          addTask((0, _object.get)(task, 'parent'));\n        } else if (this.args.showProject && taskNameTree[0] !== (0, _object.get)(task, 'project.name')) {\n          taskNameTree.unshift((0, _object.get)(task, 'project.name'));\n        }\n      };\n      addTask(this.args.task);\n      return taskNameTree;\n    }\n    generateBreadcrumb(taskNameTree) {\n      const maxStringLength = this.args.maxLength ? this.args.maxLength : 100;\n      const localTaskNameTree = taskNameTree ? taskNameTree : this.taskNameTree;\n      const layers = localTaskNameTree.length >= 4 ? [...[localTaskNameTree[0], localTaskNameTree[1]], ...[localTaskNameTree[localTaskNameTree.length - 2], localTaskNameTree[localTaskNameTree.length - 1]]] : localTaskNameTree;\n      const lastElementLength = maxStringLength / (layers.length + 1) * 2;\n      // if actual tasks more than 4, '...' is display. So, it needs to take away from frontElementsLength\n      const frontElementsLength = localTaskNameTree.length > 4 ? maxStringLength - lastElementLength - 6 : maxStringLength - lastElementLength;\n      const estimiateAverageStringLength = frontElementsLength / (layers.length - 1);\n      // find the short string\n      const shortestString = layers.reduce((a, b) => a.length <= b.length ? a : b);\n      const displayFunction = ({\n        name,\n        length\n      }) => {\n        if (!name) return '';\n        if (name.length <= length) {\n          return name;\n        } else {\n          return `${name.slice(0, length - 3)}...`;\n        }\n      };\n      const layerMapper = layers.slice(0, -1).map(name => {\n        const bool = estimiateAverageStringLength > shortestString.length;\n        let length = estimiateAverageStringLength;\n        if (bool && name !== shortestString) {\n          length = (frontElementsLength - shortestString.length) / (layers.slice(0, -1).length - 1);\n        } else if (bool && name === shortestString) {\n          length = shortestString.length;\n        }\n        return {\n          name,\n          length,\n          display: displayFunction({\n            name,\n            length\n          })\n        };\n      });\n      const lastName = layers.pop();\n      layerMapper.push({\n        name: lastName,\n        length: lastElementLength,\n        display: displayFunction({\n          name: lastName,\n          length: lastElementLength\n        })\n      });\n      if (localTaskNameTree.length > 4) {\n        layerMapper.splice(2, 0, {\n          display: '...'\n        });\n      }\n      const textBreadcrumbs = layerMapper.map(layer => layer.display).join(' > ');\n      return textBreadcrumbs;\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"taskNameTree\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"taskNameTree\"), _class.prototype), _class));\n});","define(\"portal/components/task-detail-badge\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    class='task-detail-badge__circle\n      {{if\n        @hasDirectRecord\n        \"task-detail-badge__circle--black\"\n        \"task-detail-badge__circle--white\"\n      }}\n      '\n    ...attributes\n  >\n    <div class='task-detail-badge__content'>\n      {{#if @icon}}\n        <FaIcon @icon={{@icon}} />\n      {{else}}\n        {{@char}}\n      {{/if}}\n    </div>\n  </div>\n  */\n  {\n    \"id\": \"/60nOc0d\",\n    \"block\": \"[[[11,0],[16,0,[29,[\\\"task-detail-badge__circle\\\\n    \\\",[52,[30,1],\\\"task-detail-badge__circle--black\\\",\\\"task-detail-badge__circle--white\\\"],\\\"\\\\n    \\\"]]],[17,2],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"task-detail-badge__content\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,3],[[[1,\\\"      \\\"],[8,[39,2],null,[[\\\"@icon\\\"],[[30,3]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[1,[30,4]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"@hasDirectRecord\\\",\\\"&attrs\\\",\\\"@icon\\\",\\\"@char\\\"],false,[\\\"div\\\",\\\"if\\\",\\\"fa-icon\\\"]]\",\n    \"moduleName\": \"portal/components/task-detail-badge.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component2.default {});\n});","define(\"portal/components/task-progress-position-row\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    class='task-progress-position-row__item-row row flex-nowrap'\n    {{on 'click' this.toggleExpanded}}\n  >\n    <div class='d-flex align-items-center col'>\n      {{#unless (media 'isMobile')}}\n        {{#each this.depthArray}}\n          {{! ms-4 }}\n          <div style='width: 3rem;'></div>\n        {{/each}}\n      {{/unless}}\n  \n      <div>\n        {{#if @item.children.length}}\n          <FaIcon\n            @icon={{if @item.expanded 'chevron-down' 'chevron-right'}}\n            @fixedWidth={{true}}\n          />\n        {{else}}\n          <FaIcon @icon='plus' class='invisible' @fixedWidth={{true}} />\n        {{/if}}\n      </div>\n  \n      <div class='ms-3 d-flex flex-column flex-grow-1'>\n        <div class='fs-4 d-flex'>\n          {{@item.task.name}}\n  \n          {{#if @item.hasNoChildManHours}}\n            <div class='ms-2 badge text-secondary border border-secondary'>\n              {{t 'shared.timesheet.No timesheets'}}&nbsp;&nbsp;<FaIcon\n                @icon='exclamation-triangle'\n              />\n            </div>\n          {{/if}}\n          {{#if @item.hasNoManHours}}\n            <PopOver @direction='bottom-right' as |po|>\n              <div class='ms-2 badge bg-secondary'>\n                {{t 'shared.timesheet.No timesheets'}}&nbsp;&nbsp;<FaIcon\n                  @icon='exclamation-triangle'\n                />\n              </div>\n  \n              <po.Content class='p-2' style='width: 200px;'>\n                {{t\n                  'components.task-progress-position-row.progressSetOnTasksWithoutAnyTimesheetsWillNotBeUsedOnceATimesheetIsAdded'\n                }}\n              </po.Content>\n            </PopOver>\n          {{/if}}\n  \n          {{#if @item.hasChildrenProgressWithBudgetAndNoActual}}\n            <div class='ms-2 badge text-danger border border-danger'>\n              {{t\n                'components.task-progress-position-row.Progress mismatch'\n              }}&nbsp;&nbsp;<FaIcon @icon='exclamation-triangle' />\n            </div>\n          {{/if}}\n          {{#if @item.hasProgressWithBudgetAndNoActual}}\n            <PopOver @direction='bottom-right' as |po|>\n              <div class='ms-2 badge bg-danger'>\n                {{t\n                  'components.task-progress-position-row.Progress mismatch'\n                }}&nbsp;&nbsp;<FaIcon @icon='exclamation-triangle' />\n              </div>\n  \n              <po.Content class='p-2' style='width: 200px;'>\n                {{@item.hasProgressWithBudgetAndNoActual}}\n              </po.Content>\n            </PopOver>\n          {{/if}}\n  \n          {{#if @item.hasChildVersionDiff}}\n            <div class='ms-2 badge text-info border border-info'>\n              {{t\n                'components.task-progress-position-row.Estimated'\n              }}&nbsp;&nbsp;<FaIcon @icon='info-circle' />\n            </div>\n          {{/if}}\n          {{#if @item.hasVersionDiff}}\n            <PopOver @direction='bottom-right' {{on 'click' this.noop}} as |po|>\n              <div class='ms-2 badge bg-info'>\n                {{t\n                  'components.task-progress-position-row.Estimated'\n                }}&nbsp;&nbsp;<FaIcon @icon='info-circle' />\n              </div>\n  \n              <po.Content class='p-2' style='width: 200px;'>\n                {{@item.hasVersionDiff}}\n              </po.Content>\n            </PopOver>\n          {{/if}}\n          {{#if @item.hasChildrenMissingCosts}}\n            <div class='ms-2 badge text-danger border border-danger'>\n              {{t\n                'components.task-progress-position-row.Missing costs'\n              }}&nbsp;&nbsp;<FaIcon @icon='exclamation-triangle' />\n            </div>\n          {{/if}}\n          {{#if @item.hasMissingCosts}}\n            <PopOver @direction='bottom-right' {{on 'click' this.noop}} as |po|>\n              <div class='ms-2 badge bg-danger'>\n                {{t\n                  'components.task-progress-position-row.Missing costs'\n                }}&nbsp;&nbsp;<FaIcon @icon='question-circle' />\n              </div>\n  \n              <po.Content class='p-2' style='width: 200px;'>\n                {{@item.hasMissingCosts}}\n              </po.Content>\n            </PopOver>\n          {{/if}}\n  \n          {{#if @item.hasChildDiff}}\n            <div class='ms-2 badge text-info border border-info'>\n              {{t\n                'components.task-progress-position-row.Modified'\n              }}&nbsp;&nbsp;<FaIcon @icon='code-branch' />\n            </div>\n          {{/if}}\n          {{#if @item.hasDiff}}\n            <PopOver @direction='bottom-right' {{on 'click' this.noop}} as |po|>\n              <div class='ms-2 badge bg-info'>\n                {{t\n                  'components.task-progress-position-row.Modified'\n                }}&nbsp;&nbsp;<FaIcon @icon='code-branch' />\n              </div>\n  \n              <po.Content class='p-2' style='width: 200px;'>\n                {{@item.hasDiff}}\n                <button\n                  type='button'\n                  class='btn btn-link text-decoration-underline'\n                  {{on 'click' this.setForecastValue}}\n                >{{t\n                    'components.task-progress-position-row.Reset progress'\n                  }}</button>\n              </po.Content>\n            </PopOver>\n          {{/if}}\n        </div>\n  \n        <div class='d-flex align-items-center'>\n          <input\n            class='flex-grow-1 me-3'\n            style='max-width: 35vw;'\n            type='range'\n            value={{@item.progress}}\n            {{on 'change' this.onProgressRangeInputChange}}\n            {{on 'click' this.noop}}\n            min='0'\n            max='1'\n            step='0.01'\n            tabindex='-1'\n            disabled={{or (not this.isEditable) @isSaving}}\n          />\n          <FormattedInput\n            @class='form-control'\n            style='width: 75px'\n            @format='percentage'\n            @formatterOptions={{hash dashZero=false}}\n            @number={{@item.progress}}\n            autocomplete='off'\n            @disabled={{or (not this.isEditable) @isSaving}}\n            @update={{this.onProgressInputUpdate}}\n            {{on 'click' this.noop}}\n          />\n  \n        </div>\n      </div>\n    </div>\n  \n    {{#if @showCompleteColumn}}\n      <div class='col-1 text-center fs-4'>\n        <IndeterminateCheckbox\n          @checked={{@item.isComplete}}\n          @indeterminate={{@item.isPartiallyComplete}}\n          @onChange={{fn (mut @item.isComplete)}}\n          style='width: 20px; height: 20px;'\n          {{on 'click' this.stopPropagation}}\n          disabled={{or (not this.isEditable) @isSaving}}\n        />\n      </div>\n    {{/if}}\n  </div>\n  \n  {{#if @item.expanded}}\n    {{#each @item.children as |item|}}\n      <TaskProgressPositionRow\n        @item={{item}}\n        @isSaving={{@isSaving}}\n        @depth={{this.childrenDepth}}\n        @showCompleteColumn={{@showCompleteColumn}}\n      />\n    {{/each}}\n  {{/if}}\n  */\n  {\n    \"id\": \"MKXPizln\",\n    \"block\": \"[[[11,0],[24,0,\\\"task-progress-position-row__item-row row flex-nowrap\\\"],[4,[38,1],[\\\"click\\\",[30,0,[\\\"toggleExpanded\\\"]]],null],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"d-flex align-items-center col\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[28,[37,3],[\\\"isMobile\\\"],null]],[[[42,[28,[37,5],[[28,[37,5],[[30,0,[\\\"depthArray\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,5,\\\"width: 3rem;\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n    \\\"],[10,0],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"children\\\",\\\"length\\\"]],[[[1,\\\"        \\\"],[8,[39,7],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[[52,[30,1,[\\\"expanded\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"],true]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[8,[39,7],[[24,0,\\\"invisible\\\"]],[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"plus\\\",true]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"ms-3 d-flex flex-column flex-grow-1\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"fs-4 d-flex\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,1,[\\\"task\\\",\\\"name\\\"]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,1,[\\\"hasNoChildManHours\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"ms-2 badge text-secondary border border-secondary\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,8],[\\\"shared.timesheet.No timesheets\\\"],null]],[1,\\\"  \\\"],[8,[39,7],null,[[\\\"@icon\\\"],[\\\"exclamation-triangle\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,1,[\\\"hasNoManHours\\\"]],[[[1,\\\"          \\\"],[8,[39,9],null,[[\\\"@direction\\\"],[\\\"bottom-right\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"ms-2 badge bg-secondary\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,8],[\\\"shared.timesheet.No timesheets\\\"],null]],[1,\\\"  \\\"],[8,[39,7],null,[[\\\"@icon\\\"],[\\\"exclamation-triangle\\\"]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[8,[30,2,[\\\"Content\\\"]],[[24,0,\\\"p-2\\\"],[24,5,\\\"width: 200px;\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[1,[28,[35,8],[\\\"components.task-progress-position-row.progressSetOnTasksWithoutAnyTimesheetsWillNotBeUsedOnceATimesheetIsAdded\\\"],null]],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n          \\\"]],[2]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"hasChildrenProgressWithBudgetAndNoActual\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"ms-2 badge text-danger border border-danger\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,8],[\\\"components.task-progress-position-row.Progress mismatch\\\"],null]],[1,\\\"  \\\"],[8,[39,7],null,[[\\\"@icon\\\"],[\\\"exclamation-triangle\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,1,[\\\"hasProgressWithBudgetAndNoActual\\\"]],[[[1,\\\"          \\\"],[8,[39,9],null,[[\\\"@direction\\\"],[\\\"bottom-right\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"ms-2 badge bg-danger\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,8],[\\\"components.task-progress-position-row.Progress mismatch\\\"],null]],[1,\\\"  \\\"],[8,[39,7],null,[[\\\"@icon\\\"],[\\\"exclamation-triangle\\\"]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[8,[30,3,[\\\"Content\\\"]],[[24,0,\\\"p-2\\\"],[24,5,\\\"width: 200px;\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[1,[30,1,[\\\"hasProgressWithBudgetAndNoActual\\\"]]],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n          \\\"]],[3]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"hasChildVersionDiff\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"ms-2 badge text-info border border-info\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,8],[\\\"components.task-progress-position-row.Estimated\\\"],null]],[1,\\\"  \\\"],[8,[39,7],null,[[\\\"@icon\\\"],[\\\"info-circle\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,1,[\\\"hasVersionDiff\\\"]],[[[1,\\\"          \\\"],[8,[39,9],[[4,[38,1],[\\\"click\\\",[30,0,[\\\"noop\\\"]]],null]],[[\\\"@direction\\\"],[\\\"bottom-right\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,8],[\\\"components.task-progress-position-row.Estimated\\\"],null]],[1,\\\"  \\\"],[8,[39,7],null,[[\\\"@icon\\\"],[\\\"info-circle\\\"]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[8,[30,4,[\\\"Content\\\"]],[[24,0,\\\"p-2\\\"],[24,5,\\\"width: 200px;\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[1,[30,1,[\\\"hasVersionDiff\\\"]]],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n          \\\"]],[4]]]]],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,1,[\\\"hasChildrenMissingCosts\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"ms-2 badge text-danger border border-danger\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,8],[\\\"components.task-progress-position-row.Missing costs\\\"],null]],[1,\\\"  \\\"],[8,[39,7],null,[[\\\"@icon\\\"],[\\\"exclamation-triangle\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,1,[\\\"hasMissingCosts\\\"]],[[[1,\\\"          \\\"],[8,[39,9],[[4,[38,1],[\\\"click\\\",[30,0,[\\\"noop\\\"]]],null]],[[\\\"@direction\\\"],[\\\"bottom-right\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"ms-2 badge bg-danger\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,8],[\\\"components.task-progress-position-row.Missing costs\\\"],null]],[1,\\\"  \\\"],[8,[39,7],null,[[\\\"@icon\\\"],[\\\"question-circle\\\"]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[8,[30,5,[\\\"Content\\\"]],[[24,0,\\\"p-2\\\"],[24,5,\\\"width: 200px;\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[1,[30,1,[\\\"hasMissingCosts\\\"]]],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n          \\\"]],[5]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"hasChildDiff\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"ms-2 badge text-info border border-info\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,8],[\\\"components.task-progress-position-row.Modified\\\"],null]],[1,\\\"  \\\"],[8,[39,7],null,[[\\\"@icon\\\"],[\\\"code-branch\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,1,[\\\"hasDiff\\\"]],[[[1,\\\"          \\\"],[8,[39,9],[[4,[38,1],[\\\"click\\\",[30,0,[\\\"noop\\\"]]],null]],[[\\\"@direction\\\"],[\\\"bottom-right\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,8],[\\\"components.task-progress-position-row.Modified\\\"],null]],[1,\\\"  \\\"],[8,[39,7],null,[[\\\"@icon\\\"],[\\\"code-branch\\\"]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[8,[30,6,[\\\"Content\\\"]],[[24,0,\\\"p-2\\\"],[24,5,\\\"width: 200px;\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[1,[30,1,[\\\"hasDiff\\\"]]],[1,\\\"\\\\n              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-decoration-underline\\\"],[24,4,\\\"button\\\"],[4,[38,1],[\\\"click\\\",[30,0,[\\\"setForecastValue\\\"]]],null],[12],[1,[28,[35,8],[\\\"components.task-progress-position-row.Reset progress\\\"],null]],[13],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n          \\\"]],[6]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"input\\\"],[24,0,\\\"flex-grow-1 me-3\\\"],[24,5,\\\"max-width: 35vw;\\\"],[16,2,[30,1,[\\\"progress\\\"]]],[24,\\\"min\\\",\\\"0\\\"],[24,\\\"max\\\",\\\"1\\\"],[24,\\\"step\\\",\\\"0.01\\\"],[24,\\\"tabindex\\\",\\\"-1\\\"],[16,\\\"disabled\\\",[28,[37,12],[[28,[37,13],[[30,0,[\\\"isEditable\\\"]]],null],[30,7]],null]],[24,4,\\\"range\\\"],[4,[38,1],[\\\"change\\\",[30,0,[\\\"onProgressRangeInputChange\\\"]]],null],[4,[38,1],[\\\"click\\\",[30,0,[\\\"noop\\\"]]],null],[12],[13],[1,\\\"\\\\n        \\\"],[8,[39,14],[[24,5,\\\"width: 75px\\\"],[24,\\\"autocomplete\\\",\\\"off\\\"],[4,[38,1],[\\\"click\\\",[30,0,[\\\"noop\\\"]]],null]],[[\\\"@class\\\",\\\"@format\\\",\\\"@formatterOptions\\\",\\\"@number\\\",\\\"@disabled\\\",\\\"@update\\\"],[\\\"form-control\\\",\\\"percentage\\\",[28,[37,15],null,[[\\\"dashZero\\\"],[false]]],[30,1,[\\\"progress\\\"]],[28,[37,12],[[28,[37,13],[[30,0,[\\\"isEditable\\\"]]],null],[30,7]],null],[30,0,[\\\"onProgressInputUpdate\\\"]]]],null],[1,\\\"\\\\n\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,8],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"col-1 text-center fs-4\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,16],[[24,5,\\\"width: 20px; height: 20px;\\\"],[16,\\\"disabled\\\",[28,[37,12],[[28,[37,13],[[30,0,[\\\"isEditable\\\"]]],null],[30,7]],null]],[4,[38,1],[\\\"click\\\",[30,0,[\\\"stopPropagation\\\"]]],null]],[[\\\"@checked\\\",\\\"@indeterminate\\\",\\\"@onChange\\\"],[[30,1,[\\\"isComplete\\\"]],[30,1,[\\\"isPartiallyComplete\\\"]],[28,[37,17],[[28,[37,18],[[30,1,[\\\"isComplete\\\"]]],null]],null]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,1,[\\\"expanded\\\"]],[[[42,[28,[37,5],[[28,[37,5],[[30,1,[\\\"children\\\"]]],null]],null],null,[[[1,\\\"    \\\"],[8,[39,19],null,[[\\\"@item\\\",\\\"@isSaving\\\",\\\"@depth\\\",\\\"@showCompleteColumn\\\"],[[30,9],[30,7],[30,0,[\\\"childrenDepth\\\"]],[30,8]]],null],[1,\\\"\\\\n\\\"]],[9]],null]],[]],null]],[\\\"@item\\\",\\\"po\\\",\\\"po\\\",\\\"po\\\",\\\"po\\\",\\\"po\\\",\\\"@isSaving\\\",\\\"@showCompleteColumn\\\",\\\"item\\\"],false,[\\\"div\\\",\\\"on\\\",\\\"unless\\\",\\\"media\\\",\\\"each\\\",\\\"-track-array\\\",\\\"if\\\",\\\"fa-icon\\\",\\\"t\\\",\\\"pop-over\\\",\\\"button\\\",\\\"input\\\",\\\"or\\\",\\\"not\\\",\\\"formatted-input\\\",\\\"hash\\\",\\\"indeterminate-checkbox\\\",\\\"fn\\\",\\\"mut\\\",\\\"task-progress-position-row\\\"]]\",\n    \"moduleName\": \"portal/components/task-progress-position-row.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class extends _component2.default {\n    get childrenDepth() {\n      return (this.args.depth || 0) + 1;\n    }\n    get depthArray() {\n      const depth = this.args.depth || 0;\n      return new Array(depth).fill(null);\n    }\n    toggleExpanded(event) {\n      event.stopPropagation();\n      event.preventDefault();\n      this.args.item.expanded = !this.args.item.expanded;\n    }\n    get isEditable() {\n      return this.args.item.task.canManageTaskProgress;\n    }\n    noop(event) {\n      event.stopPropagation();\n      event.preventDefault();\n    }\n    stopPropagation(event) {\n      event.stopPropagation();\n    }\n    setItemProgress(progress) {\n      this.args.item.progress = progress;\n    }\n    setForecastValue() {\n      this.setItemProgress(this.args.item.latestVersionProgress);\n    }\n    onProgressRangeInputChange(e) {\n      this.setItemProgress(e.target.value);\n    }\n    onProgressInputUpdate(value) {\n      this.setItemProgress(value);\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"toggleExpanded\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleExpanded\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"noop\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"noop\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"stopPropagation\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"stopPropagation\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setItemProgress\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setItemProgress\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setForecastValue\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setForecastValue\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onProgressRangeInputChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onProgressRangeInputChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onProgressInputUpdate\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onProgressInputUpdate\"), _class.prototype), _class));\n});","define(\"portal/components/task-selector\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@glimmer/tracking\", \"portal/utils/tree-item\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _component2, _tracking, _treeItem, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"portal/utils/tree-item\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='task-selector__list'>\n    <ItemSelector\n      @items={{this.items}}\n      @selectedItem={{this.selectedItem}}\n      @onChange={{this.onChange}}\n      @nameKey='name'\n      @homeText={{t 'common.Tasks'}}\n      @noItemsMessage={{t 'common.No tasks'}}\n      @searchPlaceholder={{t 'common.Search for a task'}}\n      @noSearchItemsMessage={{t 'common.No tasks found'}}\n    />\n  </div>\n  \n  <div class='d-flex p-3 task-selector__footer border-top'>\n    <div class='flex-grow-1'>\n      <button\n        type='button'\n        class='btn btn-secondary text-white'\n        data-test-task-selector-clear\n        {{on 'click' (fn (mut this.selectedItem) null)}}\n      >\n        {{t 'common.Clear selection'}}\n      </button>\n    </div>\n    <button\n      type='button'\n      data-test-task-selector-cancel\n      {{on 'click' @onCancel}}\n      class='btn btn-secondary text-white me-2'\n    >\n      {{t 'common.Cancel'}}\n    </button>\n    <button\n      type='button'\n      {{on 'click' (fn @onSubmit this.selectedTask)}}\n      class='btn btn-primary text-white'\n      data-test-task-selector-ok-confirm\n    >\n      {{t 'common.OK'}}\n    </button>\n  </div>\n  */\n  {\n    \"id\": \"SjTC1FrO\",\n    \"block\": \"[[[10,0],[14,0,\\\"task-selector__list\\\"],[12],[1,\\\"\\\\n  \\\"],[8,[39,1],null,[[\\\"@items\\\",\\\"@selectedItem\\\",\\\"@onChange\\\",\\\"@nameKey\\\",\\\"@homeText\\\",\\\"@noItemsMessage\\\",\\\"@searchPlaceholder\\\",\\\"@noSearchItemsMessage\\\"],[[30,0,[\\\"items\\\"]],[30,0,[\\\"selectedItem\\\"]],[30,0,[\\\"onChange\\\"]],\\\"name\\\",[28,[37,2],[\\\"common.Tasks\\\"],null],[28,[37,2],[\\\"common.No tasks\\\"],null],[28,[37,2],[\\\"common.Search for a task\\\"],null],[28,[37,2],[\\\"common.No tasks found\\\"],null]]],null],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,0],[14,0,\\\"d-flex p-3 task-selector__footer border-top\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white\\\"],[24,\\\"data-test-task-selector-clear\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,4],[\\\"click\\\",[28,[37,5],[[28,[37,6],[[30,0,[\\\"selectedItem\\\"]]],null],null],null]],null],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,2],[\\\"common.Clear selection\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[11,\\\"button\\\"],[24,\\\"data-test-task-selector-cancel\\\",\\\"\\\"],[24,0,\\\"btn btn-secondary text-white me-2\\\"],[24,4,\\\"button\\\"],[4,[38,4],[\\\"click\\\",[30,1]],null],[12],[1,\\\"\\\\n    \\\"],[1,[28,[35,2],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary text-white\\\"],[24,\\\"data-test-task-selector-ok-confirm\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,4],[\\\"click\\\",[28,[37,5],[[30,2],[30,0,[\\\"selectedTask\\\"]]],null]],null],[12],[1,\\\"\\\\n    \\\"],[1,[28,[35,2],[\\\"common.OK\\\"],null]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"@onCancel\\\",\\\"@onSubmit\\\"],false,[\\\"div\\\",\\\"item-selector\\\",\\\"t\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\"]]\",\n    \"moduleName\": \"portal/components/task-selector.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"items\", _descriptor, this);\n      _initializerDefineProperty(this, \"selectedItem\", _descriptor2, this);\n      this.items = _treeItem.default.constructItemTreeFromTasks(this.args.tasks, this.args.hideInactiveTimesheetTasks, this.args.excludedTasks);\n      if (this.args.selectedTask) this.selectedItem = _treeItem.default.findItemInTree(this.items, this.args.selectedTask);\n    }\n    get selectedTask() {\n      return this.selectedItem?.item;\n    }\n    onChange(selectedTask) {\n      this.selectedItem = selectedTask;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"items\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"selectedItem\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"onChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onChange\"), _class.prototype), _class));\n});","define(\"portal/components/task-selector/bread-crumb\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if @isSelected}}\n    <span class='text-primary fw-bolder' data-test-task-selector-path>\n      {{yield}}\n    </span>\n  {{else}}\n    <span\n      role='button'\n      class='text-primary text-decoration-underline'\n      {{on 'click' @onClick}}\n      data-test-task-selector-path\n    >\n      {{yield}}\n    </span>\n    <FaIcon @icon={{or @icon 'chevron-right'}} class='mx-2' />\n  {{/if}}\n  */\n  {\n    \"id\": \"SUnxBIWU\",\n    \"block\": \"[[[41,[30,1],[[[1,\\\"  \\\"],[10,1],[14,0,\\\"text-primary fw-bolder\\\"],[14,\\\"data-test-task-selector-path\\\",\\\"\\\"],[12],[1,\\\"\\\\n    \\\"],[18,4,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[11,1],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"text-primary text-decoration-underline\\\"],[24,\\\"data-test-task-selector-path\\\",\\\"\\\"],[4,[38,3],[\\\"click\\\",[30,2]],null],[12],[1,\\\"\\\\n    \\\"],[18,4,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,4],[[24,0,\\\"mx-2\\\"]],[[\\\"@icon\\\"],[[28,[37,5],[[30,3],\\\"chevron-right\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]]]],[\\\"@isSelected\\\",\\\"@onClick\\\",\\\"@icon\\\",\\\"&default\\\"],false,[\\\"if\\\",\\\"span\\\",\\\"yield\\\",\\\"on\\\",\\\"fa-icon\\\",\\\"or\\\"]]\",\n    \"moduleName\": \"portal/components/task-selector/bread-crumb.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component2.default {});\n});","define(\"portal/components/task-template-item-row\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@ember/service\", \"@glimmer/tracking\", \"@ember/runloop\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _service, _tracking, _runloop, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless @item.isDeleted}}\n    {{! template-lint-disable no-nested-interactive }}\n    {{#if @dsl.isDroppingAbove}}\n      <@dsl.Separator />\n    {{/if}}\n  \n    <@dsl.Draggable\n      class='task-template-item-row__item-container'\n      {{did-update this.onIsDroppingInto @dsl.isDroppingInto}}\n      {{on 'drop' this.onDrop}}\n    >\n      {{#if (media 'isDesktop')}}\n        <@dsl.DragHandle>\n          <div\n            role='treeitem'\n            class='task-template-item-row__item-row\n              {{if this.hasTimeout \"task-template-item-row__item-row--expanding\"}}\n              {{if @dsl.isDragging \"task-template-item-row__item-row--dragging\"}}'\n            {{on 'click' this.toggleExpanded}}\n            data-test-task-template-item-row={{@item.item.name}}\n          >\n            <div>\n              {{#if @item.children.length}}\n                <FaIcon\n                  @icon={{if @item.expanded 'chevron-down' 'chevron-right'}}\n                  @fixedWidth={{true}}\n                />\n              {{else if @item.expanded}}\n                <FaIcon @icon='chevron-down' @fixedWidth={{true}} />\n              {{else}}\n                <FaIcon @icon='plus' @fixedWidth={{true}} />\n              {{/if}}\n            </div>\n  \n            <div class='mx-2'>\n              <Input\n                style='min-width: 33vw;'\n                class='form-control'\n                @type='text'\n                @value={{@item.item.name}}\n                disabled={{@disabled}}\n                {{on 'click' this.onNameInputClick}}\n              />\n            </div>\n  \n            <div class='ms-auto'>\n              <button\n                type='button'\n                class='btn btn-link text-danger text-decoration-underline'\n                disabled={{@disabled}}\n                {{on 'click' (fn this.onDelete @item)}}\n              >\n                <FaIcon @icon='times' />\n              </button>\n            </div>\n          </div>\n        </@dsl.DragHandle>\n      {{else}}\n        <div\n          role='treeitem'\n          class='task-template-item-row__item-row\n            {{if this.hasTimeout \"task-template-item-row__item-row--expanding\"}}\n            {{if @dsl.isDragging \"task-template-item-row__item-row--dragging\"}}'\n          {{on 'click' this.toggleExpanded}}\n          data-test-task-template-item-row={{@item.item.name}}\n        >\n          <@dsl.DragHandle class='me-3'>\n            <FaIcon @icon='grip-vertical' @fixedWidth={{true}} @size='lg' />\n          </@dsl.DragHandle>\n  \n          <div>\n            {{#if @item.children.length}}\n              <FaIcon\n                @icon={{if @item.expanded 'chevron-down' 'chevron-right'}}\n                @fixedWidth={{true}}\n              />\n            {{else if @item.expanded}}\n              <FaIcon @icon='chevron-down' @fixedWidth={{true}} />\n            {{else}}\n              <FaIcon @icon='plus' @fixedWidth={{true}} />\n            {{/if}}\n          </div>\n  \n          <div class='mx-2'>\n            <Input\n              class='form-control'\n              @type='text'\n              @value={{@item.item.name}}\n              disabled={{@disabled}}\n              {{on 'click' this.onNameInputClick}}\n            />\n          </div>\n  \n          <div class='ms-auto'>\n            <button\n              type='button'\n              class='btn btn-link text-danger text-decoration-underline'\n              disabled={{@disabled}}\n              {{on 'click' (fn @onDelete @item)}}\n            >\n              <FaIcon @icon='times' />\n            </button>\n          </div>\n        </div>\n  \n      {{/if}}\n  \n      {{#if @dsl.isDroppingInto}}\n        <div class='ms-5'>\n          <@dsl.Separator />\n        </div>\n      {{/if}}\n  \n      {{#if @item.expanded}}\n        <div class='ms-5'>\n          <@dsl.Children />\n  \n          <TaskTemplateItemRow::AddItem\n            class='me-2'\n            @inputId='task-template-item-row-name-input-{{this.internalId}}'\n            @saveNewTaskTemplateItem={{this.saveNewTaskTemplateItem}}\n            {{! the task must be saved before children can be added }}\n            @disabled={{or @disabled (and @item.item.isSaving @item.item.isNew)}}\n            @placeholder={{t\n              'components.task-template-item-row.addTaskForX'\n              taskName=@item.item.name\n            }}\n          />\n        </div>\n      {{/if}}\n    </@dsl.Draggable>\n  \n    {{#if @dsl.isDroppingBelow}}\n      <@dsl.Separator />\n    {{/if}}\n  {{/unless}}\n  */\n  {\n    \"id\": \"Zro+vxLY\",\n    \"block\": \"[[[41,[51,[30,1,[\\\"isDeleted\\\"]]],[[[41,[30,2,[\\\"isDroppingAbove\\\"]],[[[1,\\\"    \\\"],[8,[30,2,[\\\"Separator\\\"]],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[8,[30,2,[\\\"Draggable\\\"]],[[24,0,\\\"task-template-item-row__item-container\\\"],[4,[38,2],[[30,0,[\\\"onIsDroppingInto\\\"]],[30,2,[\\\"isDroppingInto\\\"]]],null],[4,[38,3],[\\\"drop\\\",[30,0,[\\\"onDrop\\\"]]],null]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[8,[30,2,[\\\"DragHandle\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[11,0],[24,\\\"role\\\",\\\"treeitem\\\"],[16,0,[29,[\\\"task-template-item-row__item-row\\\\n            \\\",[52,[30,0,[\\\"hasTimeout\\\"]],\\\"task-template-item-row__item-row--expanding\\\"],\\\"\\\\n            \\\",[52,[30,2,[\\\"isDragging\\\"]],\\\"task-template-item-row__item-row--dragging\\\"]]]],[16,\\\"data-test-task-template-item-row\\\",[30,1,[\\\"item\\\",\\\"name\\\"]]],[4,[38,3],[\\\"click\\\",[30,0,[\\\"toggleExpanded\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[10,0],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"children\\\",\\\"length\\\"]],[[[1,\\\"              \\\"],[8,[39,6],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[[52,[30,1,[\\\"expanded\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"],true]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,1,[\\\"expanded\\\"]],[[[1,\\\"              \\\"],[8,[39,6],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"chevron-down\\\",true]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[8,[39,6],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"plus\\\",true]],null],[1,\\\"\\\\n            \\\"]],[]]]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"mx-2\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,7],[[24,5,\\\"min-width: 33vw;\\\"],[24,0,\\\"form-control\\\"],[16,\\\"disabled\\\",[30,3]],[4,[38,3],[\\\"click\\\",[30,0,[\\\"onNameInputClick\\\"]]],null]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,1,[\\\"item\\\",\\\"name\\\"]]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"ms-auto\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline\\\"],[16,\\\"disabled\\\",[30,3]],[24,4,\\\"button\\\"],[4,[38,3],[\\\"click\\\",[28,[37,9],[[30,0,[\\\"onDelete\\\"]],[30,1]],null]],null],[12],[1,\\\"\\\\n              \\\"],[8,[39,6],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[11,0],[24,\\\"role\\\",\\\"treeitem\\\"],[16,0,[29,[\\\"task-template-item-row__item-row\\\\n          \\\",[52,[30,0,[\\\"hasTimeout\\\"]],\\\"task-template-item-row__item-row--expanding\\\"],\\\"\\\\n          \\\",[52,[30,2,[\\\"isDragging\\\"]],\\\"task-template-item-row__item-row--dragging\\\"]]]],[16,\\\"data-test-task-template-item-row\\\",[30,1,[\\\"item\\\",\\\"name\\\"]]],[4,[38,3],[\\\"click\\\",[30,0,[\\\"toggleExpanded\\\"]]],null],[12],[1,\\\"\\\\n        \\\"],[8,[30,2,[\\\"DragHandle\\\"]],[[24,0,\\\"me-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,6],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"grip-vertical\\\",true,\\\"lg\\\"]],null],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"children\\\",\\\"length\\\"]],[[[1,\\\"            \\\"],[8,[39,6],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[[52,[30,1,[\\\"expanded\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"],true]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,1,[\\\"expanded\\\"]],[[[1,\\\"            \\\"],[8,[39,6],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"chevron-down\\\",true]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[8,[39,6],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"plus\\\",true]],null],[1,\\\"\\\\n          \\\"]],[]]]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"mx-2\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,7],[[24,0,\\\"form-control\\\"],[16,\\\"disabled\\\",[30,3]],[4,[38,3],[\\\"click\\\",[30,0,[\\\"onNameInputClick\\\"]]],null]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,1,[\\\"item\\\",\\\"name\\\"]]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"ms-auto\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline\\\"],[16,\\\"disabled\\\",[30,3]],[24,4,\\\"button\\\"],[4,[38,3],[\\\"click\\\",[28,[37,9],[[30,4],[30,1]],null]],null],[12],[1,\\\"\\\\n            \\\"],[8,[39,6],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"isDroppingInto\\\"]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"ms-5\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[30,2,[\\\"Separator\\\"]],null,null,null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"expanded\\\"]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"ms-5\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[30,2,[\\\"Children\\\"]],null,null,null],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,10],[[24,0,\\\"me-2\\\"]],[[\\\"@inputId\\\",\\\"@saveNewTaskTemplateItem\\\",\\\"@disabled\\\",\\\"@placeholder\\\"],[[29,[\\\"task-template-item-row-name-input-\\\",[30,0,[\\\"internalId\\\"]]]],[30,0,[\\\"saveNewTaskTemplateItem\\\"]],[28,[37,11],[[30,3],[28,[37,12],[[30,1,[\\\"item\\\",\\\"isSaving\\\"]],[30,1,[\\\"item\\\",\\\"isNew\\\"]]],null]],null],[28,[37,13],[\\\"components.task-template-item-row.addTaskForX\\\"],[[\\\"taskName\\\"],[[30,1,[\\\"item\\\",\\\"name\\\"]]]]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,2,[\\\"isDroppingBelow\\\"]],[[[1,\\\"    \\\"],[8,[30,2,[\\\"Separator\\\"]],null,null,null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[\\\"@item\\\",\\\"@dsl\\\",\\\"@disabled\\\",\\\"@onDelete\\\"],false,[\\\"unless\\\",\\\"if\\\",\\\"did-update\\\",\\\"on\\\",\\\"media\\\",\\\"div\\\",\\\"fa-icon\\\",\\\"input\\\",\\\"button\\\",\\\"fn\\\",\\\"task-template-item-row/add-item\\\",\\\"or\\\",\\\"and\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/components/task-template-item-row.hbs\",\n    \"isStrictMode\": false\n  });\n  const expandOnHoverMsTimeout = 500; // this is paired with .nested-task-card__task-row--expanding\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n      _initializerDefineProperty(this, \"timeout\", _descriptor2, this);\n      _initializerDefineProperty(this, \"hasTimeout\", _descriptor3, this);\n      _initializerDefineProperty(this, \"internalId\", _descriptor4, this);\n    }\n    onIsDroppingInto() {\n      const {\n        item,\n        dsl\n      } = this.args;\n\n      // when we are not dropping into and there is an existing timeout, clear the timeout\n      if (!dsl.isDroppingInto && this.hasTimeout) {\n        clearTimeout(this.timeout);\n        this.hasTimeout = false;\n      }\n      const hasChildren = Boolean(item.children?.length);\n      const isCollapsed = !item.expanded;\n      if (!this.hasTimeout && dsl.isDroppingInto && hasChildren && isCollapsed) {\n        this.hasTimeout = true;\n        this.timeout = setTimeout(() => {\n          this.args.item.expanded = true; // expand the item\n          this.hasTimeout = false;\n        }, expandOnHoverMsTimeout);\n      }\n    }\n    onNameInputClick(event) {\n      event.stopPropagation();\n      event.preventDefault();\n    }\n    onDrop() {\n      // expand the item if something has been dropped inside\n      if (this.args.dsl.isDroppingInto && !this.args.item.expanded) this.args.item.expanded = true;\n    }\n    toggleExpanded(event) {\n      this.args.item.expanded = !this.args.item.expanded;\n      if (this.args.item.expanded) this.focusTaskNameInput();\n      event.stopPropagation();\n      event.preventDefault();\n    }\n    focusTaskNameInput() {\n      (0, _runloop.next)(() => {\n        document.getElementById(`task-template-item-row-name-input-${this.internalId}`).focus();\n      });\n    }\n    saveNewTaskTemplateItem(name) {\n      this.args.saveNewTaskTemplateItem.perform(name, this.args.item);\n    }\n    onDelete(item, event) {\n      event.stopPropagation();\n      event.preventDefault();\n      return this.args.onDelete(item);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"timeout\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"hasTimeout\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"internalId\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return Math.random();\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"onIsDroppingInto\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onIsDroppingInto\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onNameInputClick\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onNameInputClick\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onDrop\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onDrop\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleExpanded\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleExpanded\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"saveNewTaskTemplateItem\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"saveNewTaskTemplateItem\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onDelete\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onDelete\"), _class.prototype), _class));\n});","define(\"portal/components/task-template-item-row/add-item\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"@ember/service\", \"@ember/object\", \"ember-changeset\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _service, _object, _emberChangeset, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/object\",0,\"ember-changeset\",0,\"ember-concurrency\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    class='task-template-item-row__add-item-container'\n    data-test-task-template-modal-add-task\n    ...attributes\n  >\n    <FaIcon\n      @icon='plus'\n      @fixedWidth={{true}}\n      class='task-template-item-row__add-item-icon'\n    />\n  \n    <Input\n      @type='text'\n      @value={{this.changeset.name}}\n      id={{@inputId}}\n      class='task-template-item-row__add-item-input'\n      placeholder={{@placeholder}}\n      disabled={{@disabled}}\n      autofocus={{@autofocus}}\n      {{on 'keypress' this.onTaskNameInputKeypress}}\n      {{! you need this to prevent drops onto the input }}\n      {{on 'drop' this.noop}}\n    />\n  \n    {{#if this.changeset.name.length}}\n      <button\n        type='button'\n        class='ms-2 text-light btn btn-secondary'\n        disabled={{@disabled}}\n        {{on 'click' this.saveNewTaskTemplateItem}}\n      >{{t 'common.Add'}}</button>\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"rGy3fUmu\",\n    \"block\": \"[[[11,0],[24,0,\\\"task-template-item-row__add-item-container\\\"],[24,\\\"data-test-task-template-modal-add-task\\\",\\\"\\\"],[17,1],[12],[1,\\\"\\\\n  \\\"],[8,[39,1],[[24,0,\\\"task-template-item-row__add-item-icon\\\"]],[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"plus\\\",true]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,2],[[16,1,[30,2]],[24,0,\\\"task-template-item-row__add-item-input\\\"],[16,\\\"placeholder\\\",[30,3]],[16,\\\"disabled\\\",[30,4]],[16,\\\"autofocus\\\",[30,5]],[4,[38,3],[\\\"keypress\\\",[30,0,[\\\"onTaskNameInputKeypress\\\"]]],null],[4,[38,3],[\\\"drop\\\",[30,0,[\\\"noop\\\"]]],null]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"changeset\\\",\\\"name\\\"]]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"changeset\\\",\\\"name\\\",\\\"length\\\"]],[[[1,\\\"    \\\"],[11,\\\"button\\\"],[24,0,\\\"ms-2 text-light btn btn-secondary\\\"],[16,\\\"disabled\\\",[30,4]],[24,4,\\\"button\\\"],[4,[38,3],[\\\"click\\\",[30,0,[\\\"saveNewTaskTemplateItem\\\"]]],null],[12],[1,[28,[35,6],[\\\"common.Add\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[13]],[\\\"&attrs\\\",\\\"@inputId\\\",\\\"@placeholder\\\",\\\"@disabled\\\",\\\"@autofocus\\\"],false,[\\\"div\\\",\\\"fa-icon\\\",\\\"input\\\",\\\"on\\\",\\\"if\\\",\\\"button\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/components/task-template-item-row/add-item.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _defineProperty(this, \"validateName\", (newValue, oldValue) => {\n        const name = newValue || oldValue;\n        return name.length > 0 || this.intl.t('validation.Please provide a name');\n      });\n      _defineProperty(this, \"itemValidator\", ({\n        key,\n        newValue,\n        oldValue\n      }) => {\n        switch (key) {\n          case 'name':\n            return this.validateName(newValue, oldValue);\n          default:\n            break;\n        }\n      });\n      _defineProperty(this, \"validationMap\", {\n        name: this.validateName\n      });\n      _defineProperty(this, \"changeset\", (0, _emberChangeset.Changeset)({\n        name: ''\n      }, this.itemValidator, this.validationMap));\n      _defineProperty(this, \"validateAndProcess\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.changeset.validate();\n          if (!this.changeset.isValid) {\n            this.notifications.warning(this.changeset.error.name.validation);\n            return;\n          }\n          this.args.saveNewTaskTemplateItem(this.changeset.name);\n          this.changeset.name = '';\n        }\n      }), null, \"validateAndProcess\", null));\n    }\n    onTaskNameInputKeypress(e) {\n      if (e.key === 'Enter') this.saveNewTaskTemplateItem();\n    }\n    saveNewTaskTemplateItem() {\n      this.validateAndProcess.perform();\n    }\n    noop(e) {\n      e.preventDefault();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"onTaskNameInputKeypress\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onTaskNameInputKeypress\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"saveNewTaskTemplateItem\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"saveNewTaskTemplateItem\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"noop\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"noop\"), _class.prototype), _class));\n});","define(\"portal/components/task-template-modal\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"@ember/object\", \"@ember/array\", \"@glimmer/tracking\", \"@ember/service\", \"portal/utils/task-templates\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _object, _array, _tracking, _service, _taskTemplates, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _class2, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/array\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"portal/utils/task-templates\",0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <ModalDialog\n    @containerClass='modal-content w-auto'\n    @translucentOverlay={{true}}\n    @overlayClass='modal'\n    @onClose={{this.onClose}}\n  >\n    <div class='modal-body'>\n      <div class='d-flex align-items-center'>\n        <div class='flex-grow-1 me-2' data-test-task-template-power-select>\n          <PowerSelect\n            @tagName='div'\n            @searchEnabled={{true}}\n            @searchField='name'\n            @placeholder={{t\n              'components.task-template-modal.selectATemplateToLoadTasksFrom'\n            }}\n            @options={{this.options}}\n            @loadingMessage={{t 'common.Loading'}}\n            @selected={{this.selectedTaskTemplate}}\n            @onChange={{this.onSelectTaskTemplate}}\n            as |template|\n          >\n            {{or\n              template.name\n              (t 'components.task-template-modal.Unnamed template*')\n            }}\n          </PowerSelect>\n        </div>\n  \n        <button\n          type='button'\n          class='btn btn-success text-white text-nowrap m-1'\n          {{on 'click' this.createNewTemplate}}\n        >\n          <FaIcon @icon='plus' />&nbsp;&nbsp;{{t\n            'components.task-template-modal.Add new template'\n          }}\n        </button>\n      </div>\n  \n      {{#if this.selectedTaskTemplate}}\n        <div class='my-3'>\n          <label class='mb-1' for='selected-template-name'>\n            {{t 'common.Name'}}\n            <sup class='text-danger'>*</sup>\n          </label>\n          <Input\n            class='form-control'\n            id='selected-template-name'\n            @value={{this.selectedTaskTemplate.name}}\n            disabled={{this.isDefaultTemplate}}\n          />\n        </div>\n  \n        <div class='my-3'>\n          <label class='mb-1'>\n            {{t 'common.Tasks'}}\n            <sup class='text-danger'>*</sup>\n          </label>\n          <div\n            class='bg-white border rounded task-template-modal__task-container'\n          >\n            <DragSortList\n              @onUpdate={{perform this.onTaskTemplateItemsUpdate}}\n              @itemComponent={{component\n                'task-template-item-row'\n                saveNewTaskTemplateItem=this.saveNewTaskTemplateItem\n                onDelete=(perform this.onDelete)\n                disabled=this.isSaving\n              }}\n              @list={{this.taskTemplateItems}}\n            />\n            <TaskTemplateItemRow::AddItem\n              class='me-2'\n              @saveNewTaskTemplateItem={{perform this.saveNewTaskTemplateItem}}\n              @disabled={{this.isSaving}}\n              @autofocus={{true}}\n              @placeholder={{t 'common.Add task'}}\n              data-test-task-template-modal-add-task\n            />\n          </div>\n        </div>\n  \n        <div class='d-flex align-items-center'>\n          {{#if @parentTasks.length}}\n            <button\n              type='button'\n              disabled={{or this.isSaving}}\n              class='btn btn-success text-white text-nowrap m-1'\n              {{on 'click' this.onCopyExistingTasks}}\n            >\n              <FaIcon @icon='plus' />&nbsp;&nbsp;\n              {{t 'components.task-template-modal.Add tasks from project'}}\n            </button>\n          {{/if}}\n          <div class='ms-auto'>\n            {{#if this.canDelete}}\n              <button\n                type='button'\n                class='btn btn-link text-danger text-decoration-underline m-1'\n                disabled={{this.isSaving}}\n                {{on 'click' (perform this.deleteSelectedTemplate)}}\n              >\n                {{#if this.deleteSelectedTemplate.isRunning}}\n                  {{t 'components.task-template-modal.Deleting template'}}&hellip;\n                {{else}}\n                  {{t 'shared.task.Delete template'}}\n                {{/if}}\n              </button>\n            {{/if}}\n  \n            <button\n              type='button'\n              class='btn btn-primary text-nowrap m-1'\n              disabled={{or this.isSaving}}\n              {{on 'click' (perform this.saveSelectedTaskTemplate)}}\n            >\n              {{#if this.isDefaultTemplate}}\n                {{#if this.saveSelectedTaskTemplate.isRunning}}\n                  {{t 'components.task-template-modal.Creating template'}}&hellip;\n                {{else}}\n                  {{t\n                    'components.task-template-modal.Create new template from default'\n                  }}\n                {{/if}}\n              {{else}}\n                {{#if this.saveSelectedTaskTemplate.isRunning}}\n                  {{t 'components.task-template-modal.Saving template'}}&hellip;\n                {{else}}\n                  {{t 'components.task-template-modal.Save template'}}\n                {{/if}}\n              {{/if}}\n            </button>\n          </div>\n        </div>\n      {{/if}}\n    </div>\n    <div class='modal-footer'>\n      <button\n        type='button'\n        class='btn btn-secondary text-white text-nowrap m-1'\n        {{on 'click' this.onClose}}\n        data-test-template-modal-cancel-button\n      >\n        {{t 'common.Cancel'}}\n      </button>\n      {{#if this.selectedTaskTemplate}}\n        <button\n          type='button'\n          disabled={{or this.isSaving}}\n          class='ms-auto btn btn-primary text-nowrap m-1'\n          {{on\n            'click'\n            (fn\n              @onLoadTaskTemplate this.selectedTaskTemplate this.taskTemplateItems\n            )\n          }}\n        >\n          {{t 'components.task-template-modal.Load template'}}\n        </button>\n      {{/if}}\n    </div>\n  \n  </ModalDialog>\n  */\n  {\n    \"id\": \"PchXfjWP\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@containerClass\\\",\\\"@translucentOverlay\\\",\\\"@overlayClass\\\",\\\"@onClose\\\"],[\\\"modal-content w-auto\\\",true,\\\"modal\\\",[30,0,[\\\"onClose\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"flex-grow-1 me-2\\\"],[14,\\\"data-test-task-template-power-select\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,2],null,[[\\\"@tagName\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@options\\\",\\\"@loadingMessage\\\",\\\"@selected\\\",\\\"@onChange\\\"],[\\\"div\\\",true,\\\"name\\\",[28,[37,3],[\\\"components.task-template-modal.selectATemplateToLoadTasksFrom\\\"],null],[30,0,[\\\"options\\\"]],[28,[37,3],[\\\"common.Loading\\\"],null],[30,0,[\\\"selectedTaskTemplate\\\"]],[30,0,[\\\"onSelectTaskTemplate\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[[30,1,[\\\"name\\\"]],[28,[37,3],[\\\"components.task-template-modal.Unnamed template*\\\"],null]],null]],[1,\\\"\\\\n        \\\"]],[1]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[30,0,[\\\"createNewTemplate\\\"]]],null],[12],[1,\\\"\\\\n        \\\"],[8,[39,7],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,3],[\\\"components.task-template-modal.Add new template\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"selectedTaskTemplate\\\"]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"my-3\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[14,\\\"for\\\",\\\"selected-template-name\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,3],[\\\"common.Name\\\"],null]],[1,\\\"\\\\n          \\\"],[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,11],[[24,0,\\\"form-control\\\"],[24,1,\\\"selected-template-name\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isDefaultTemplate\\\"]]]],[[\\\"@value\\\"],[[30,0,[\\\"selectedTaskTemplate\\\",\\\"name\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"my-3\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,3],[\\\"common.Tasks\\\"],null]],[1,\\\"\\\\n          \\\"],[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"bg-white border rounded task-template-modal__task-container\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,12],null,[[\\\"@onUpdate\\\",\\\"@itemComponent\\\",\\\"@list\\\"],[[28,[37,13],[[30,0,[\\\"onTaskTemplateItemsUpdate\\\"]]],null],[50,\\\"task-template-item-row\\\",0,null,[[\\\"saveNewTaskTemplateItem\\\",\\\"onDelete\\\",\\\"disabled\\\"],[[30,0,[\\\"saveNewTaskTemplateItem\\\"]],[28,[37,13],[[30,0,[\\\"onDelete\\\"]]],null],[30,0,[\\\"isSaving\\\"]]]]],[30,0,[\\\"taskTemplateItems\\\"]]]],null],[1,\\\"\\\\n          \\\"],[8,[39,15],[[24,0,\\\"me-2\\\"],[24,\\\"data-test-task-template-modal-add-task\\\",\\\"\\\"]],[[\\\"@saveNewTaskTemplateItem\\\",\\\"@disabled\\\",\\\"@autofocus\\\",\\\"@placeholder\\\"],[[28,[37,13],[[30,0,[\\\"saveNewTaskTemplateItem\\\"]]],null],[30,0,[\\\"isSaving\\\"]],true,[28,[37,3],[\\\"common.Add task\\\"],null]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"length\\\"]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[16,\\\"disabled\\\",[28,[37,4],[[30,0,[\\\"isSaving\\\"]]],null]],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[30,0,[\\\"onCopyExistingTasks\\\"]]],null],[12],[1,\\\"\\\\n            \\\"],[8,[39,7],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\\n            \\\"],[1,[28,[35,3],[\\\"components.task-template-modal.Add tasks from project\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[10,0],[14,0,\\\"ms-auto\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canDelete\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isSaving\\\"]]],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"deleteSelectedTemplate\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteSelectedTemplate\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,3],[\\\"components.task-template-modal.Deleting template\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,3],[\\\"shared.task.Delete template\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary text-nowrap m-1\\\"],[16,\\\"disabled\\\",[28,[37,4],[[30,0,[\\\"isSaving\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"saveSelectedTaskTemplate\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isDefaultTemplate\\\"]],[[[41,[30,0,[\\\"saveSelectedTaskTemplate\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,3],[\\\"components.task-template-modal.Creating template\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,3],[\\\"components.task-template-modal.Create new template from default\\\"],null]],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[41,[30,0,[\\\"saveSelectedTaskTemplate\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,3],[\\\"components.task-template-modal.Saving template\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,3],[\\\"components.task-template-modal.Save template\\\"],null]],[1,\\\"\\\\n\\\"]],[]]]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white text-nowrap m-1\\\"],[24,\\\"data-test-template-modal-cancel-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[30,0,[\\\"onClose\\\"]]],null],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,3],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"selectedTaskTemplate\\\"]],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[16,\\\"disabled\\\",[28,[37,4],[[30,0,[\\\"isSaving\\\"]]],null]],[24,0,\\\"ms-auto btn btn-primary text-nowrap m-1\\\"],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,16],[[30,3],[30,0,[\\\"selectedTaskTemplate\\\"]],[30,0,[\\\"taskTemplateItems\\\"]]],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,3],[\\\"components.task-template-modal.Load template\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[]]]]]],[\\\"template\\\",\\\"@parentTasks\\\",\\\"@onLoadTaskTemplate\\\"],false,[\\\"modal-dialog\\\",\\\"div\\\",\\\"power-select\\\",\\\"t\\\",\\\"or\\\",\\\"button\\\",\\\"on\\\",\\\"fa-icon\\\",\\\"if\\\",\\\"label\\\",\\\"sup\\\",\\\"input\\\",\\\"drag-sort-list\\\",\\\"perform\\\",\\\"component\\\",\\\"task-template-item-row/add-item\\\",\\\"fn\\\"]]\",\n    \"moduleName\": \"portal/components/task-template-modal.hbs\",\n    \"isStrictMode\": false\n  });\n  let TaskTemplateItemContainer = (_class = class TaskTemplateItemContainer {\n    delete() {\n      this._isDeleted = true;\n      if (this.children) this.children.forEach(child => child.delete());\n    }\n    get isDeleted() {\n      return this.item.isDeleted;\n    }\n    toJSON() {\n      if (this.isDeleted) return undefined;\n      return {\n        item: this.item,\n        children: this.children?.filter(c => !c.isDeleted)\n      };\n    }\n    constructor(item) {\n      _defineProperty(this, \"item\", void 0);\n      _initializerDefineProperty(this, \"children\", _descriptor, this);\n      _initializerDefineProperty(this, \"expanded\", _descriptor2, this);\n      _initializerDefineProperty(this, \"_isDeleted\", _descriptor3, this);\n      this.item = item;\n      const childItems = item.hasMany('items').value() ?? [];\n      if (childItems.length) {\n        this.children = [...childItems].sortBy('path').map(c => new TaskTemplateItemContainer(c));\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"children\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"expanded\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"_isDeleted\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _class);\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class2 = class _class2 extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor6, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor7, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor8, this);\n      _initializerDefineProperty(this, \"taskTemplates\", _descriptor9, this);\n      _initializerDefineProperty(this, \"defaultTaskTemplates\", _descriptor0, this);\n      _initializerDefineProperty(this, \"selectedTaskTemplate\", _descriptor1, this);\n      _initializerDefineProperty(this, \"taskTemplateItems\", _descriptor10, this);\n      _initializerDefineProperty(this, \"options\", _descriptor11, this);\n      _defineProperty(this, \"initTaskTemplates\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const templates = yield this.store.simpleQuery('task-template', {\n            entity: this.sessionData.entity.id\n          }, {\n            include: 'items'\n          });\n\n          // if you have templates, use them\n          this.taskTemplates = (0, _array.A)(templates.toArray());\n\n          // and create some defaults\n          const initItems = (itemTemplates, parentItem, template) => {\n            itemTemplates.forEach((itemTemplate, i) => {\n              const newParentItem = this.store.createRecord('task-template-item', {\n                entity: this.sessionData.entity,\n                taskTemplate: template,\n                name: itemTemplate.name,\n                parent: parentItem,\n                path: parentItem ? `${parentItem.path}.${String(i).padStart(3, '0')}` : `${String(i).padStart(3, '0')}`\n              });\n              if (itemTemplate.items) initItems(itemTemplate.items, newParentItem, template);\n            });\n          };\n          this.defaultTaskTemplates = _taskTemplates.default.map(defaultTemplate => {\n            const template = this.store.createRecord('task-template', {\n              entity: this.sessionData.entity,\n              name: defaultTemplate.name\n            });\n            initItems(defaultTemplate.items, null, template);\n            return template;\n          });\n        }\n      }), null, \"initTaskTemplates\", null));\n      _defineProperty(this, \"onTaskTemplateItemsUpdate\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (newTaskTemplateItems) {\n          this.taskTemplateItems = newTaskTemplateItems;\n        }\n      }), null, \"onTaskTemplateItemsUpdate\", null));\n      _defineProperty(this, \"saveNewTaskTemplateItem\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (name, parent) {\n          if (!name || name.length < 1) {\n            this.notifications.warning(this.intl.t('shared.notification.Please provide a task name'));\n            return;\n          }\n          const newItem = this.store.createRecord('task-template-item', {\n            name,\n            taskTemplate: this.selectedTaskTemplate,\n            parent: parent?.item,\n            entity: this.sessionData.entity\n          });\n          this.addTaskTemplateItemToList(newItem, parent);\n        }\n      }), null, \"saveNewTaskTemplateItem\", null));\n      _defineProperty(this, \"onDelete\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (item) {\n          // delete the item record\n          yield item.delete();\n        }\n      }), null, \"onDelete\", null));\n      _defineProperty(this, \"deleteSelectedTemplate\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          if (!confirm(this.intl.t('components.task-template-modal.areYouSureYouWantToDeleteThisTaskTemplate'))) return;\n          yield this.selectedTaskTemplate.destroyRecord();\n          this.taskTemplates.removeObject(this.selectedTaskTemplate);\n          this.selectedTaskTemplate = null;\n        }\n      }), null, \"deleteSelectedTemplate\", null));\n      _defineProperty(this, \"saveSelectedTaskTemplate\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          if (this.selectedTaskTemplate.name.length < 2 || !this.selectedTaskTemplate.hasMany('items').value()?.length) {\n            this.notifications.warning(this.intl.t('components.task-template-modal.pleaseProvideAValidNameAndAtLeastOneTask'));\n            return;\n          }\n          if (this.selectedTaskTemplate.hasMany('items').value().toArray().some(item => item.name.length < 1)) {\n            this.notifications.warning(this.intl.t('components.task-template-modal.pleaseProvideAValidNameForAllTasks'));\n            return;\n          }\n          try {\n            yield this.selectedTaskTemplate.save();\n            const payload = {\n              taskTemplateItems: this.taskTemplateItems.filter(i => !i.isDeleted),\n              entityId: this.sessionData.entity.id,\n              taskTemplateId: this.selectedTaskTemplate.id\n            };\n            yield this.buildaPrice.updateTaskTemplate(payload);\n            this.store.unloadAll('task-template-item');\n            this.options = yield this.fetchOptions();\n            this.onSelectTaskTemplate(this.selectedTaskTemplate);\n          } catch (error) {\n            this.notifications.error(this.intl.t('components.task-template-modal.somethingWentWrongWhileSavingTaskTemplate'), error);\n          }\n        }\n      }), null, \"saveSelectedTaskTemplate\", null));\n    }\n    async fetchOptions() {\n      await this.initTaskTemplates.perform();\n      return [{\n        groupName: this.intl.t('components.task-template-modal.Your templates'),\n        options: this.taskTemplates\n      }, {\n        groupName: this.intl.t('components.task-template-modal.Default templates'),\n        options: this.defaultTaskTemplates\n      }];\n    }\n    get isSaving() {\n      return this.deleteSelectedTemplate.isRunning || this.saveSelectedTaskTemplate.isRunning;\n    }\n    get isDefaultTemplate() {\n      return this.defaultTaskTemplates.includes(this.selectedTaskTemplate);\n    }\n    get canDelete() {\n      return !this.isDefaultTemplate && this.taskTemplates?.length > 1;\n    }\n    createNewTemplate() {\n      this.selectedTaskTemplate = this.store.createRecord('task-template', {\n        entity: this.sessionData.entity,\n        name: ''\n      });\n      this.taskTemplateItems = [];\n      this.taskTemplates.pushObject(this.selectedTaskTemplate);\n    }\n    onSelectTaskTemplate(taskTemplate) {\n      this.selectedTaskTemplate = taskTemplate;\n      if (taskTemplate) this.taskTemplateItems = [...(taskTemplate.hasMany('items').value() ?? [])].filter(item => !item.belongsTo('parent').value()).sortBy('path').map(item => new TaskTemplateItemContainer(item));\n    }\n    addTaskTemplateItemToList(item, parent) {\n      const newItemContainer = new TaskTemplateItemContainer(item);\n\n      // if we don't have a parent push to the top level of the list\n      if (!parent) {\n        this.taskTemplateItems = [...this.taskTemplateItems, newItemContainer];\n        return;\n      }\n\n      // otherwise add to the parent container children\n      parent.children = [...(parent.children || []), newItemContainer];\n    }\n    onClose() {\n      this.args.onClose();\n    }\n    onCopyExistingTasks() {\n      const createTaskTemplateItems = (taskList = [], parentItemContainer) => {\n        taskList.forEach(task => {\n          const newItem = this.store.createRecord('task-template-item', {\n            name: task.name,\n            taskTemplate: this.selectedTaskTemplate,\n            parent: parentItemContainer?.item,\n            entity: this.sessionData.entity\n          });\n          const newItemContainer = new TaskTemplateItemContainer(newItem);\n          // if we don't have a parent push to the top level of the list\n          if (!parentItemContainer) {\n            this.taskTemplateItems = [...this.taskTemplateItems, newItemContainer];\n          } else {\n            parentItemContainer.children = [...(parentItemContainer.children || []), newItemContainer];\n          }\n          if (task.activeChildren?.length) {\n            createTaskTemplateItems(task.activeChildren.sortBy('path'), newItemContainer);\n          }\n        });\n      };\n      createTaskTemplateItems(this.args.parentTasks, null);\n    }\n  }, _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"taskTemplates\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return (0, _array.A)([]);\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"defaultTaskTemplates\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"selectedTaskTemplate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"taskTemplateItems\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"options\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.fetchOptions();\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"createNewTemplate\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"createNewTemplate\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onSelectTaskTemplate\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onSelectTaskTemplate\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onClose\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onClose\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onCopyExistingTasks\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onCopyExistingTasks\"), _class2.prototype), _class2));\n});","define(\"portal/components/task-transfer-selector\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _tracking, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <PopUp\n    @visible={{this.isTaskSelectorOpen}}\n    @onClose={{this.closeTaskSelector}}\n    as |popup|\n  >\n    <div\n      role='button'\n      class='form-control task-transfer-selector__input'\n      {{on 'click' this.openTaskSelector}}\n    >\n      {{#if @selectedTask}}\n        <TaskBreadcrumbs @task={{@selectedTask}} />\n      {{else}}\n        {{t 'common.Select a task'}}\n      {{/if}}\n    </div>\n  \n    <popup.Content>\n      <TaskSelector\n        @tasks={{@tasks}}\n        @excludedTasks={{@excludedTasks}}\n        @selectedTask={{@selectedTask}}\n        @onCancel={{this.closeTaskSelector}}\n        @onSubmit={{this.selectTask}}\n      />\n    </popup.Content>\n  </PopUp>\n  */\n  {\n    \"id\": \"NsVwldEv\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@visible\\\",\\\"@onClose\\\"],[[30,0,[\\\"isTaskSelectorOpen\\\"]],[30,0,[\\\"closeTaskSelector\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[11,0],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"form-control task-transfer-selector__input\\\"],[4,[38,2],[\\\"click\\\",[30,0,[\\\"openTaskSelector\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,2],[[[1,\\\"      \\\"],[8,[39,4],null,[[\\\"@task\\\"],[[30,2]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[1,[28,[35,5],[\\\"common.Select a task\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,6],null,[[\\\"@tasks\\\",\\\"@excludedTasks\\\",\\\"@selectedTask\\\",\\\"@onCancel\\\",\\\"@onSubmit\\\"],[[30,3],[30,4],[30,2],[30,0,[\\\"closeTaskSelector\\\"]],[30,0,[\\\"selectTask\\\"]]]],null],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]]],[\\\"popup\\\",\\\"@selectedTask\\\",\\\"@tasks\\\",\\\"@excludedTasks\\\"],false,[\\\"pop-up\\\",\\\"div\\\",\\\"on\\\",\\\"if\\\",\\\"task-breadcrumbs\\\",\\\"t\\\",\\\"task-selector\\\"]]\",\n    \"moduleName\": \"portal/components/task-transfer-selector.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"isTaskSelectorOpen\", _descriptor, this);\n    }\n    openTaskSelector() {\n      this.isTaskSelectorOpen = true;\n    }\n    closeTaskSelector() {\n      this.isTaskSelectorOpen = false;\n    }\n    selectTask(task) {\n      this.args.onSelectTask(task);\n      this.isTaskSelectorOpen = false;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"isTaskSelectorOpen\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"openTaskSelector\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openTaskSelector\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeTaskSelector\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"closeTaskSelector\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"selectTask\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"selectTask\"), _class.prototype), _class));\n});","define(\"portal/components/task-type-badge\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! TODO probably use new and better icons }}\n  {{#if (eq @type 'BUILDERS_WORK')}}\n    <div class='bg-info text-white task-type-badge__container' ...attributes>\n      {{t 'common.builderWork'}}\n      <FaIcon @icon='hammer' class='ms-2' />\n    </div>\n  {{else if (eq @type 'SUMS')}}\n    <div class='bg-success text-white task-type-badge__container' ...attributes>\n      {{t 'common.Sums'}}\n      <FaIcon @icon='money-bill' class='ms-2' />\n    </div>\n  {{else if (eq @type 'SUBCONTRACTOR')}}\n    <div class='bg-warning text-dark task-type-badge__container' ...attributes>\n      {{t 'common.Subcontractors'}}\n      <FaIcon @icon='user' class='ms-2' />\n    </div>\n  {{else if (eq @type 'PLANT')}}\n    <div class='bg-secondary text-white task-type-badge__container' ...attributes>\n      {{t 'common.Plant'}}\n      <FaIcon @icon='truck' class='ms-2' />\n    </div>\n  {{else if (eq @type 'INTERNAL')}}\n    <div class='bg-dark text-white task-type-badge__container' ...attributes>\n      {{t 'common.Internal'}}\n      <FaIcon @icon='eye' class='ms-2' />\n    </div>\n  {{else if (eq @type 'MILESTONE')}}\n    <div class='bg-primary text-white task-type-badge__container' ...attributes>\n      {{t 'common.Milestone'}}\n      <FaIcon @icon='crosshairs' class='ms-2' />\n    </div>\n  {{/if}}\n  */\n  {\n    \"id\": \"8R2D/pcX\",\n    \"block\": \"[[[41,[28,[37,1],[[30,1],\\\"BUILDERS_WORK\\\"],null],[[[1,\\\"  \\\"],[11,0],[24,0,\\\"bg-info text-white task-type-badge__container\\\"],[17,2],[12],[1,\\\"\\\\n    \\\"],[1,[28,[35,3],[\\\"common.builderWork\\\"],null]],[1,\\\"\\\\n    \\\"],[8,[39,4],[[24,0,\\\"ms-2\\\"]],[[\\\"@icon\\\"],[\\\"hammer\\\"]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,1],[[30,1],\\\"SUMS\\\"],null],[[[1,\\\"  \\\"],[11,0],[24,0,\\\"bg-success text-white task-type-badge__container\\\"],[17,2],[12],[1,\\\"\\\\n    \\\"],[1,[28,[35,3],[\\\"common.Sums\\\"],null]],[1,\\\"\\\\n    \\\"],[8,[39,4],[[24,0,\\\"ms-2\\\"]],[[\\\"@icon\\\"],[\\\"money-bill\\\"]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,1],[[30,1],\\\"SUBCONTRACTOR\\\"],null],[[[1,\\\"  \\\"],[11,0],[24,0,\\\"bg-warning text-dark task-type-badge__container\\\"],[17,2],[12],[1,\\\"\\\\n    \\\"],[1,[28,[35,3],[\\\"common.Subcontractors\\\"],null]],[1,\\\"\\\\n    \\\"],[8,[39,4],[[24,0,\\\"ms-2\\\"]],[[\\\"@icon\\\"],[\\\"user\\\"]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,1],[[30,1],\\\"PLANT\\\"],null],[[[1,\\\"  \\\"],[11,0],[24,0,\\\"bg-secondary text-white task-type-badge__container\\\"],[17,2],[12],[1,\\\"\\\\n    \\\"],[1,[28,[35,3],[\\\"common.Plant\\\"],null]],[1,\\\"\\\\n    \\\"],[8,[39,4],[[24,0,\\\"ms-2\\\"]],[[\\\"@icon\\\"],[\\\"truck\\\"]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,1],[[30,1],\\\"INTERNAL\\\"],null],[[[1,\\\"  \\\"],[11,0],[24,0,\\\"bg-dark text-white task-type-badge__container\\\"],[17,2],[12],[1,\\\"\\\\n    \\\"],[1,[28,[35,3],[\\\"common.Internal\\\"],null]],[1,\\\"\\\\n    \\\"],[8,[39,4],[[24,0,\\\"ms-2\\\"]],[[\\\"@icon\\\"],[\\\"eye\\\"]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,1],[[30,1],\\\"MILESTONE\\\"],null],[[[1,\\\"  \\\"],[11,0],[24,0,\\\"bg-primary text-white task-type-badge__container\\\"],[17,2],[12],[1,\\\"\\\\n    \\\"],[1,[28,[35,3],[\\\"common.Milestone\\\"],null]],[1,\\\"\\\\n    \\\"],[8,[39,4],[[24,0,\\\"ms-2\\\"]],[[\\\"@icon\\\"],[\\\"crosshairs\\\"]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]]],[]]]],[]]]],[]]]],[]]]],[\\\"@type\\\",\\\"&attrs\\\"],false,[\\\"if\\\",\\\"eq\\\",\\\"div\\\",\\\"t\\\",\\\"fa-icon\\\"]]\",\n    \"moduleName\": \"portal/components/task-type-badge.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component2.default {});\n});","define(\"portal/components/timeline-task-import-item-row\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@ember/service\", \"@glimmer/tracking\", \"@ember/runloop\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _service, _tracking, _runloop, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! template-lint-disable no-nested-interactive }}\n  {{#if @dsl.isDroppingAbove}}\n    <@dsl.Separator />\n  {{/if}}\n  \n  <@dsl.Draggable\n    class='timeline-task-import-item-row__item-container'\n    {{did-update this.onIsDroppingInto @dsl.isDroppingInto}}\n    {{on 'drop' this.onDrop}}\n  >\n    {{#if (media 'isDesktop')}}\n      <@dsl.DragHandle>\n        <div\n          role='treeitem'\n          class='timeline-task-import-item-row__item-row\n            {{if\n              this.hasTimeout\n              \"timeline-task-import-item-row__item-row--expanding\"\n            }}\n            {{if\n              @dsl.isDragging\n              \"timeline-task-import-item-row__item-row--dragging\"\n            }}'\n          {{on 'click' this.toggleExpanded}}\n          data-test-task-template-item-row={{@item.task.name}}\n        >\n          <div>\n            {{#if @item.children.length}}\n              <FaIcon\n                @icon={{if @item.expanded 'chevron-down' 'chevron-right'}}\n                @fixedWidth={{true}}\n              />\n            {{else}}\n              <FaIcon\n                @icon={{if @item.expanded 'chevron-down' 'plus'}}\n                @fixedWidth={{true}}\n              />\n            {{/if}}\n          </div>\n  \n          <div class='mx-2'>\n            <Input\n              style='min-width: 33vw;'\n              class='form-control'\n              @type='text'\n              @value={{@item.task.name}}\n              disabled={{@disabled}}\n              {{on 'click' this.onNameInputClick}}\n            />\n          </div>\n          <div class='ms-auto'>\n            <IndeterminateCheckbox\n              class='md-size-checkbox'\n              @checked={{@item.checked}}\n              @indeterminate={{@item.indeterminate}}\n              @onChange={{this.setIsTaskScheduling}}\n            />\n          </div>\n        </div>\n      </@dsl.DragHandle>\n    {{else}}\n      <div\n        role='treeitem'\n        class='timeline-task-import-item-row__item-row\n          {{if\n            this.hasTimeout\n            \"timeline-task-import-item-row__item-row--expanding\"\n          }}\n          {{if\n            @dsl.isDragging\n            \"timeline-task-import-item-row__item-row--dragging\"\n          }}'\n        {{on 'click' this.toggleExpanded}}\n        data-test-task-template-item-row={{@item.task.name}}\n      >\n        <@dsl.DragHandle class='me-3'>\n          <FaIcon @icon='grip-vertical' @fixedWidth={{true}} @size='lg' />\n        </@dsl.DragHandle>\n  \n        <div>\n          {{#if @item.children.length}}\n            <FaIcon\n              @icon={{if @item.expanded 'chevron-down' 'chevron-right'}}\n              @fixedWidth={{true}}\n            />\n          {{else}}\n            <FaIcon @icon='plus' @fixedWidth={{true}} />\n          {{/if}}\n        </div>\n  \n        <div class='mx-2'>\n          <Input\n            class='form-control'\n            @type='text'\n            @value={{@item.task.name}}\n            disabled={{@disabled}}\n            {{on 'click' this.onNameInputClick}}\n          />\n        </div>\n  \n        <div class='mx-2'>\n          <IndeterminateCheckbox\n            @checked={{@item.checked}}\n            @indeterminate={{@item.indeterminate}}\n            @onChange={{this.setIsTaskScheduling}}\n          />\n        </div>\n      </div>\n  \n    {{/if}}\n  \n    {{#if @dsl.isDroppingInto}}\n      <div class='ms-5'>\n        <@dsl.Separator />\n      </div>\n    {{/if}}\n  \n    {{#if @item.expanded}}\n      <div class='ms-5'>\n        <@dsl.Children />\n        <TimelineTaskImportItemRow::AddItem\n          @onAddItem={{this.addItem}}\n          @disabled={{@disabled}}\n        />\n      </div>\n    {{/if}}\n  </@dsl.Draggable>\n  \n  {{#if @dsl.isDroppingBelow}}\n    <@dsl.Separator />\n  {{/if}}\n  */\n  {\n    \"id\": \"FSLLBC23\",\n    \"block\": \"[[[41,[30,1,[\\\"isDroppingAbove\\\"]],[[[1,\\\"  \\\"],[8,[30,1,[\\\"Separator\\\"]],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[8,[30,1,[\\\"Draggable\\\"]],[[24,0,\\\"timeline-task-import-item-row__item-container\\\"],[4,[38,1],[[30,0,[\\\"onIsDroppingInto\\\"]],[30,1,[\\\"isDroppingInto\\\"]]],null],[4,[38,2],[\\\"drop\\\",[30,0,[\\\"onDrop\\\"]]],null]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[28,[37,3],[\\\"isDesktop\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"DragHandle\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[11,0],[24,\\\"role\\\",\\\"treeitem\\\"],[16,0,[29,[\\\"timeline-task-import-item-row__item-row\\\\n          \\\",[52,[30,0,[\\\"hasTimeout\\\"]],\\\"timeline-task-import-item-row__item-row--expanding\\\"],\\\"\\\\n          \\\",[52,[30,1,[\\\"isDragging\\\"]],\\\"timeline-task-import-item-row__item-row--dragging\\\"]]]],[16,\\\"data-test-task-template-item-row\\\",[30,2,[\\\"task\\\",\\\"name\\\"]]],[4,[38,2],[\\\"click\\\",[30,0,[\\\"toggleExpanded\\\"]]],null],[12],[1,\\\"\\\\n        \\\"],[10,0],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"children\\\",\\\"length\\\"]],[[[1,\\\"            \\\"],[8,[39,5],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[[52,[30,2,[\\\"expanded\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"],true]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[8,[39,5],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[[52,[30,2,[\\\"expanded\\\"]],\\\"chevron-down\\\",\\\"plus\\\"],true]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"mx-2\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,6],[[24,5,\\\"min-width: 33vw;\\\"],[24,0,\\\"form-control\\\"],[16,\\\"disabled\\\",[30,3]],[4,[38,2],[\\\"click\\\",[30,0,[\\\"onNameInputClick\\\"]]],null]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,2,[\\\"task\\\",\\\"name\\\"]]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"ms-auto\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,7],[[24,0,\\\"md-size-checkbox\\\"]],[[\\\"@checked\\\",\\\"@indeterminate\\\",\\\"@onChange\\\"],[[30,2,[\\\"checked\\\"]],[30,2,[\\\"indeterminate\\\"]],[30,0,[\\\"setIsTaskScheduling\\\"]]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[11,0],[24,\\\"role\\\",\\\"treeitem\\\"],[16,0,[29,[\\\"timeline-task-import-item-row__item-row\\\\n        \\\",[52,[30,0,[\\\"hasTimeout\\\"]],\\\"timeline-task-import-item-row__item-row--expanding\\\"],\\\"\\\\n        \\\",[52,[30,1,[\\\"isDragging\\\"]],\\\"timeline-task-import-item-row__item-row--dragging\\\"]]]],[16,\\\"data-test-task-template-item-row\\\",[30,2,[\\\"task\\\",\\\"name\\\"]]],[4,[38,2],[\\\"click\\\",[30,0,[\\\"toggleExpanded\\\"]]],null],[12],[1,\\\"\\\\n      \\\"],[8,[30,1,[\\\"DragHandle\\\"]],[[24,0,\\\"me-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[39,5],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"grip-vertical\\\",true,\\\"lg\\\"]],null],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"children\\\",\\\"length\\\"]],[[[1,\\\"          \\\"],[8,[39,5],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[[52,[30,2,[\\\"expanded\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"],true]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[8,[39,5],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"plus\\\",true]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"mx-2\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,6],[[24,0,\\\"form-control\\\"],[16,\\\"disabled\\\",[30,3]],[4,[38,2],[\\\"click\\\",[30,0,[\\\"onNameInputClick\\\"]]],null]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,2,[\\\"task\\\",\\\"name\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"mx-2\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,7],null,[[\\\"@checked\\\",\\\"@indeterminate\\\",\\\"@onChange\\\"],[[30,2,[\\\"checked\\\"]],[30,2,[\\\"indeterminate\\\"]],[30,0,[\\\"setIsTaskScheduling\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"isDroppingInto\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"ms-5\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[30,1,[\\\"Separator\\\"]],null,null,null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"expanded\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"ms-5\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[30,1,[\\\"Children\\\"]],null,null,null],[1,\\\"\\\\n      \\\"],[8,[39,8],null,[[\\\"@onAddItem\\\",\\\"@disabled\\\"],[[30,0,[\\\"addItem\\\"]],[30,3]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,1,[\\\"isDroppingBelow\\\"]],[[[1,\\\"  \\\"],[8,[30,1,[\\\"Separator\\\"]],null,null,null],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@dsl\\\",\\\"@item\\\",\\\"@disabled\\\"],false,[\\\"if\\\",\\\"did-update\\\",\\\"on\\\",\\\"media\\\",\\\"div\\\",\\\"fa-icon\\\",\\\"input\\\",\\\"indeterminate-checkbox\\\",\\\"timeline-task-import-item-row/add-item\\\"]]\",\n    \"moduleName\": \"portal/components/timeline-task-import-item-row.hbs\",\n    \"isStrictMode\": false\n  });\n  const expandOnHoverMsTimeout = 500; // this is paired with timeline-task-import-item-row__item-row--expanding\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"timeout\", _descriptor3, this);\n      _initializerDefineProperty(this, \"hasTimeout\", _descriptor4, this);\n    }\n    addItem(name) {\n      return this.args.onAddItem(name, this.args.item);\n    }\n    onIsDroppingInto() {\n      const {\n        item,\n        dsl\n      } = this.args;\n\n      // when we are not dropping into and there is an existing timeout, clear the timeout\n      if (!dsl.isDroppingInto && this.hasTimeout) {\n        clearTimeout(this.timeout);\n        this.hasTimeout = false;\n      }\n      const hasChildren = Boolean(item.children?.length);\n      const isCollapsed = !item.expanded;\n      if (!this.hasTimeout && dsl.isDroppingInto && hasChildren && isCollapsed) {\n        this.hasTimeout = true;\n        this.timeout = setTimeout(() => {\n          this.args.item.expanded = true; // expand the item\n          this.hasTimeout = false;\n        }, expandOnHoverMsTimeout);\n      }\n    }\n    onDrop() {\n      // expand the item if something has been dropped inside\n      if (this.args.dsl.isDroppingInto && !this.args.item.expanded) this.args.item.expanded = true;\n    }\n    onNameInputClick(event) {\n      event.stopPropagation();\n      event.preventDefault();\n    }\n    toggleExpanded(event) {\n      this.args.item.expanded = !this.args.item.expanded;\n      event.stopPropagation();\n      event.preventDefault();\n    }\n    setIsTaskScheduling(event) {\n      event.stopPropagation();\n      event.preventDefault();\n      (0, _runloop.next)(() => {\n        const newIsEnabled = !this.args.item.isSchedulingEnabled;\n        const setIsTaskSchedulingOnChildren = item => {\n          item.isSchedulingEnabled = newIsEnabled;\n          if (item.children?.length) {\n            item.children.forEach(i => setIsTaskSchedulingOnChildren(i));\n          }\n        };\n        setIsTaskSchedulingOnChildren(this.args.item);\n      });\n    }\n    saveNewTask(name) {\n      this.args.saveNewTask.perform(name, this.args.item.task);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"timeout\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"hasTimeout\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"addItem\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"addItem\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onIsDroppingInto\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onIsDroppingInto\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onDrop\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onDrop\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onNameInputClick\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onNameInputClick\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleExpanded\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleExpanded\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setIsTaskScheduling\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setIsTaskScheduling\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"saveNewTask\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"saveNewTask\"), _class.prototype), _class));\n});","define(\"portal/components/timeline-task-import-item-row/add-item\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"@ember/service\", \"@ember/object\", \"ember-changeset\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _service, _object, _emberChangeset, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/object\",0,\"ember-changeset\",0,\"ember-concurrency\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='timeline-task-import-item-row__add-item-container' ...attributes>\n    <FaIcon\n      @icon='plus'\n      @fixedWidth={{true}}\n      class='timeline-task-import-item-row__add-item-icon'\n    />\n  \n    <Input\n      @type='text'\n      @value={{this.changeset.name}}\n      class='timeline-task-import-item-row__add-item-input'\n      placeholder={{t 'shared.task.Add task'}}\n      disabled={{@disabled}}\n      {{on 'keypress' this.onTaskNameInputKeypress}}\n      {{! you need this to prevent drops onto the input }}\n      {{on 'drop' this.noop}}\n    />\n  \n    {{#if this.changeset.name.length}}\n      <button\n        type='button'\n        class='ms-2 text-light btn btn-secondary me-2'\n        disabled={{@disabled}}\n        {{on 'click' this.saveNewItem}}\n      >{{t 'common.Add'}}</button>\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"zx9FucuD\",\n    \"block\": \"[[[11,0],[24,0,\\\"timeline-task-import-item-row__add-item-container\\\"],[17,1],[12],[1,\\\"\\\\n  \\\"],[8,[39,1],[[24,0,\\\"timeline-task-import-item-row__add-item-icon\\\"]],[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"plus\\\",true]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,2],[[24,0,\\\"timeline-task-import-item-row__add-item-input\\\"],[16,\\\"placeholder\\\",[28,[37,3],[\\\"shared.task.Add task\\\"],null]],[16,\\\"disabled\\\",[30,2]],[4,[38,4],[\\\"keypress\\\",[30,0,[\\\"onTaskNameInputKeypress\\\"]]],null],[4,[38,4],[\\\"drop\\\",[30,0,[\\\"noop\\\"]]],null]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"changeset\\\",\\\"name\\\"]]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"changeset\\\",\\\"name\\\",\\\"length\\\"]],[[[1,\\\"    \\\"],[11,\\\"button\\\"],[24,0,\\\"ms-2 text-light btn btn-secondary me-2\\\"],[16,\\\"disabled\\\",[30,2]],[24,4,\\\"button\\\"],[4,[38,4],[\\\"click\\\",[30,0,[\\\"saveNewItem\\\"]]],null],[12],[1,[28,[35,3],[\\\"common.Add\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[13]],[\\\"&attrs\\\",\\\"@disabled\\\"],false,[\\\"div\\\",\\\"fa-icon\\\",\\\"input\\\",\\\"t\\\",\\\"on\\\",\\\"if\\\",\\\"button\\\"]]\",\n    \"moduleName\": \"portal/components/timeline-task-import-item-row/add-item.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _defineProperty(this, \"validateName\", (newValue, oldValue) => {\n        const name = newValue || oldValue;\n        return name.length > 0 || this.intl.t('validation.Please provide a name');\n      });\n      _defineProperty(this, \"itemValidator\", ({\n        key,\n        newValue,\n        oldValue\n      }) => {\n        switch (key) {\n          case 'name':\n            return this.validateName(newValue, oldValue);\n          default:\n            break;\n        }\n      });\n      _defineProperty(this, \"validationMap\", {\n        name: this.validateName\n      });\n      _defineProperty(this, \"changeset\", (0, _emberChangeset.Changeset)({\n        name: ''\n      }, this.itemValidator, this.validationMap));\n      _defineProperty(this, \"validateAndProcess\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.changeset.validate();\n          if (!this.changeset.isValid) {\n            this.notifications.warning(this.changeset.error.name.validation);\n            return;\n          }\n          this.args.onAddItem(this.changeset.name);\n          this.changeset.name = '';\n        }\n      }), null, \"validateAndProcess\", null));\n    }\n    onTaskNameInputKeypress(e) {\n      if (e.key === 'Enter') this.saveNewItem();\n    }\n    saveNewItem() {\n      this.validateAndProcess.perform();\n    }\n    noop(e) {\n      e.preventDefault();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"onTaskNameInputKeypress\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onTaskNameInputKeypress\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"saveNewItem\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"saveNewItem\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"noop\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"noop\"), _class.prototype), _class));\n});","define(\"portal/components/timeline-task-import-modal\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/service\", \"@ember/array\", \"portal/utils/task-templates\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _object, _tracking, _service, _array, _taskTemplates, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.TaskContainer = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _class2, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"@ember/object\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"@ember/array\",0,\"portal/utils/task-templates\",0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <ModalDialog\n    @containerClass='modal-content timeline-task-import-modal__modal-dialog'\n    @translucentOverlay={{true}}\n    @overlayClass='modal'\n    @onClose={{this.onClose}}\n  >\n    <div class='modal-header'>\n      <h3 class='modal-title'>\n        {{t 'components.timeline-task-import-modal.Import tasks for scheduling'}}\n      </h3>\n    </div>\n  \n    <div class='modal-body'>\n      <div class='mb-3'>\n        <p class='mt-0'>\n          {{t\n            'components.timeline-task-import-modal.hereYouCanEnableOrDisableTasksForSchedulingWhenATaskIsCheckedItWillBeDisplayedInTheSchedulingTimeline'\n          }}\n        </p>\n  \n        {{#if (gt @projects.length 1)}}\n          <label class='mb-1' for='project-selector'>\n            {{t 'common.Selected project'}}\n          </label>\n          <SelectInput\n            @value={{this.selectedProject}}\n            @action={{this.selectProject}}\n            id='project-selector'\n            class='form-control select-box d-block'\n            ...attributes\n            as |si|\n          >\n            {{#each @projects as |project|}}\n              <si.option @value={{project}}>{{project.name}}</si.option>\n            {{/each}}\n          </SelectInput>\n        {{/if}}\n  \n        <div\n          class='mt-3 d-flex align-items-center'\n          data-test-import-modal-task-template\n        >\n          <div class='flex-grow-1 me-2'>\n            <PowerSelect\n              @tagName='div'\n              @searchEnabled={{true}}\n              @searchField='name'\n              @placeholder={{t\n                'components.timeline-task-import-modal.selectATemplateToLoadTasksFrom'\n              }}\n              @options={{this.templateOptions}}\n              @loadingMessage={{t 'common.Loading'}}\n              @selected={{this.selectedTaskTemplate}}\n              @onChange={{this.selectTaskTemplate}}\n              @disabled={{or this.isLoading this.isSaving}}\n              as |template|\n            >\n              {{or\n                template.name\n                (t 'components.timeline-task-import-modal.Unnamed template*')\n              }}\n            </PowerSelect>\n          </div>\n          <button\n            type='button'\n            class='btn btn-success text-white text-nowrap m-1'\n            disabled={{or\n              this.isLoading\n              this.isSaving\n              (not this.selectedTaskTemplate)\n            }}\n            {{on 'click' this.addTasksFromTemplate}}\n            data-test-import-modal-add-template-button\n          >\n            <FaIcon @icon='plus' />&nbsp;&nbsp;{{t\n              'components.timeline-task-import-modal.Add tasks from template'\n            }}\n          </button>\n        </div>\n      </div>\n  \n      {{#if this.isLoading}}\n        <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n      {{else}}\n        <div\n          class='bg-white border rounded timeline-task-import-modal__task-container'\n        >\n          {{#if this.tasks.length}}\n            <DragSortList\n              @onUpdate={{perform this.onProjectUpdate}}\n              @itemComponent={{component\n                'timeline-task-import-item-row'\n                disabled=this.isSaving\n                onAddItem=this.addItem\n              }}\n              @list={{this.tasks}}\n            />\n            <TimelineTaskImportItemRow::AddItem\n              @disabled={{this.isSaving}}\n              @onAddItem={{this.addItem}}\n            />\n          {{else}}\n            <div class='mt-5 d-flex flex-column align-items-center'>\n              <FaIcon @icon='tasks' @size='2x' class='mt-0 mb-3' />\n              <p class='fs-4 mt-0 mb-3'>\n                <b>\n                  {{t\n                    'components.timeline-task-import-modal.thisProjectDoesnTHaveAnyTasksYet'\n                  }}\n                </b>\n              </p>\n              <LinkTo\n                @route='entity.builda-price.projects.project.tasks'\n                @model={{this.selectedProject.id}}\n                class='btn btn-primary'\n              >\n                {{t 'components.timeline-task-import-modal.Create some tasks'}}\n              </LinkTo>\n            </div>\n          {{/if}}\n        </div>\n      {{/if}}\n    </div>\n  \n    <div class='modal-footer text-right'>\n      <button\n        type='button'\n        class='btn btn-secondary text-white text-nowrap m-1'\n        {{on 'click' this.onClose}}\n        data-test-import-modal-cancel-button\n      >\n        {{t 'common.Cancel'}}\n      </button>\n      {{#if this.saveAndImportTasks.isRunning}}\n        <button type='button' class='btn btn-primary ms-2' disabled={{true}}>\n          <span class='spinner-border spinner-border-sm'></span>&nbsp;&nbsp;{{t\n            'components.timeline-task-import-modal.Saving tasks'\n          }}&hellip;\n        </button>\n      {{else}}\n        <button\n          type='button'\n          disabled={{or this.isLoading this.isSaving}}\n          class='btn btn-primary text-nowrap m-1'\n          {{on 'click' (perform this.saveAndImportTasks)}}\n        >\n          {{t 'components.timeline-task-import-modal.Save tasks for project'}}\n        </button>\n      {{/if}}\n    </div>\n  </ModalDialog>\n  */\n  {\n    \"id\": \"OJvc/iS2\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@containerClass\\\",\\\"@translucentOverlay\\\",\\\"@overlayClass\\\",\\\"@onClose\\\"],[\\\"modal-content timeline-task-import-modal__modal-dialog\\\",true,\\\"modal\\\",[30,0,[\\\"onClose\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h3\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,3],[\\\"components.timeline-task-import-modal.Import tasks for scheduling\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,3],[\\\"components.timeline-task-import-modal.hereYouCanEnableOrDisableTasksForSchedulingWhenATaskIsCheckedItWillBeDisplayedInTheSchedulingTimeline\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,6],[[30,1,[\\\"length\\\"]],1],null],[[[1,\\\"        \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[14,\\\"for\\\",\\\"project-selector\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,3],[\\\"common.Selected project\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,8],[[24,1,\\\"project-selector\\\"],[24,0,\\\"form-control select-box d-block\\\"],[17,2]],[[\\\"@value\\\",\\\"@action\\\"],[[30,0,[\\\"selectedProject\\\"]],[30,0,[\\\"selectProject\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[30,1]],null]],null],null,[[[1,\\\"            \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[[30,4]]],[[\\\"default\\\"],[[[[1,[30,4,[\\\"name\\\"]]]],[]]]]],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"        \\\"]],[3]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"mt-3 d-flex align-items-center\\\"],[14,\\\"data-test-import-modal-task-template\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"flex-grow-1 me-2\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,11],null,[[\\\"@tagName\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@options\\\",\\\"@loadingMessage\\\",\\\"@selected\\\",\\\"@onChange\\\",\\\"@disabled\\\"],[\\\"div\\\",true,\\\"name\\\",[28,[37,3],[\\\"components.timeline-task-import-modal.selectATemplateToLoadTasksFrom\\\"],null],[30,0,[\\\"templateOptions\\\"]],[28,[37,3],[\\\"common.Loading\\\"],null],[30,0,[\\\"selectedTaskTemplate\\\"]],[30,0,[\\\"selectTaskTemplate\\\"]],[28,[37,12],[[30,0,[\\\"isLoading\\\"]],[30,0,[\\\"isSaving\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[28,[35,12],[[30,5,[\\\"name\\\"]],[28,[37,3],[\\\"components.timeline-task-import-modal.Unnamed template*\\\"],null]],null]],[1,\\\"\\\\n          \\\"]],[5]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[16,\\\"disabled\\\",[28,[37,12],[[30,0,[\\\"isLoading\\\"]],[30,0,[\\\"isSaving\\\"]],[28,[37,14],[[30,0,[\\\"selectedTaskTemplate\\\"]]],null]],null]],[24,\\\"data-test-import-modal-add-template-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[30,0,[\\\"addTasksFromTemplate\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,3],[\\\"components.timeline-task-import-modal.Add tasks from template\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"      \\\"],[8,[39,17],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"bg-white border rounded timeline-task-import-modal__task-container\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"tasks\\\",\\\"length\\\"]],[[[1,\\\"          \\\"],[8,[39,18],null,[[\\\"@onUpdate\\\",\\\"@itemComponent\\\",\\\"@list\\\"],[[28,[37,19],[[30,0,[\\\"onProjectUpdate\\\"]]],null],[50,\\\"timeline-task-import-item-row\\\",0,null,[[\\\"disabled\\\",\\\"onAddItem\\\"],[[30,0,[\\\"isSaving\\\"]],[30,0,[\\\"addItem\\\"]]]]],[30,0,[\\\"tasks\\\"]]]],null],[1,\\\"\\\\n          \\\"],[8,[39,21],null,[[\\\"@disabled\\\",\\\"@onAddItem\\\"],[[30,0,[\\\"isSaving\\\"]],[30,0,[\\\"addItem\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"mt-5 d-flex flex-column align-items-center\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,16],[[24,0,\\\"mt-0 mb-3\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"tasks\\\",\\\"2x\\\"]],null],[1,\\\"\\\\n            \\\"],[10,2],[14,0,\\\"fs-4 mt-0 mb-3\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"b\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,3],[\\\"components.timeline-task-import-modal.thisProjectDoesnTHaveAnyTasksYet\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[8,[39,23],[[24,0,\\\"btn btn-primary\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.builda-price.projects.project.tasks\\\",[30,0,[\\\"selectedProject\\\",\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[1,[28,[35,3],[\\\"components.timeline-task-import-modal.Create some tasks\\\"],null]],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white text-nowrap m-1\\\"],[24,\\\"data-test-import-modal-cancel-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[30,0,[\\\"onClose\\\"]]],null],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,3],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveAndImportTasks\\\",\\\"isRunning\\\"]],[[[1,\\\"      \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary ms-2\\\"],[15,\\\"disabled\\\",true],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,3],[\\\"components.timeline-task-import-modal.Saving tasks\\\"],null]],[1,\\\"…\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[16,\\\"disabled\\\",[28,[37,12],[[30,0,[\\\"isLoading\\\"]],[30,0,[\\\"isSaving\\\"]]],null]],[24,0,\\\"btn btn-primary text-nowrap m-1\\\"],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"saveAndImportTasks\\\"]]],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,3],[\\\"components.timeline-task-import-modal.Save tasks for project\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]]]],[\\\"@projects\\\",\\\"&attrs\\\",\\\"si\\\",\\\"project\\\",\\\"template\\\"],false,[\\\"modal-dialog\\\",\\\"div\\\",\\\"h3\\\",\\\"t\\\",\\\"p\\\",\\\"if\\\",\\\"gt\\\",\\\"label\\\",\\\"select-input\\\",\\\"each\\\",\\\"-track-array\\\",\\\"power-select\\\",\\\"or\\\",\\\"button\\\",\\\"not\\\",\\\"on\\\",\\\"fa-icon\\\",\\\"loading-icon\\\",\\\"drag-sort-list\\\",\\\"perform\\\",\\\"component\\\",\\\"timeline-task-import-item-row/add-item\\\",\\\"b\\\",\\\"link-to\\\",\\\"span\\\"]]\",\n    \"moduleName\": \"portal/components/timeline-task-import-modal.hbs\",\n    \"isStrictMode\": false\n  });\n  let TaskContainer = _exports.TaskContainer = (_class = class TaskContainer {\n    get isEveryChildSchedulingEnabled() {\n      return function checkChildren(children = []) {\n        return children.every(child => {\n          if (!child.isSchedulingEnabled) return false;\n          if (child.children?.length) return checkChildren(child.children);\n          return true;\n        });\n      }(this.children);\n    }\n    get isSomeChildSchedulingEnabled() {\n      return function checkChildren(children = []) {\n        return children.some(child => {\n          if (child.isSchedulingEnabled) return true;\n          if (child.children?.length) return checkChildren(child.children);\n          return false;\n        });\n      }(this.children);\n    }\n    get isSchedulingEnabled() {\n      return this._isSchedulingEnabled || this.isSomeChildSchedulingEnabled;\n    }\n    set isSchedulingEnabled(value) {\n      this._isSchedulingEnabled = value;\n    }\n    get checked() {\n      return this.isSchedulingEnabled && this.isEveryChildSchedulingEnabled;\n    }\n    get indeterminate() {\n      if (this.checked) return false;\n      if (!this.children?.length) return false;\n      return this.isSchedulingEnabled && !this.isEveryChildSchedulingEnabled;\n    }\n    constructor(task) {\n      _defineProperty(this, \"task\", void 0);\n      _initializerDefineProperty(this, \"children\", _descriptor, this);\n      _initializerDefineProperty(this, \"expanded\", _descriptor2, this);\n      _initializerDefineProperty(this, \"_isSchedulingEnabled\", _descriptor3, this);\n      this.task = task;\n      this._isSchedulingEnabled = task.isSchedulingEnabled;\n      if (task.activeChildren?.length) {\n        this.children = (0, _array.A)(task.activeChildren.sortBy('path').map(c => new TaskContainer(c)));\n      }\n    }\n    toJSON() {\n      const project = this.task.id ? this.task.belongsTo('project').id() : this.task.project;\n      const parent = this.task.id ? this.task.belongsTo('parent').id() : this.task.parent;\n      const entity = this.task.id ? this.task.belongsTo('entity').id() : this.task.entity;\n      return {\n        task: {\n          id: this.task.id,\n          status: this.task.status,\n          name: this.task.name,\n          path: this.task.path,\n          entity,\n          project,\n          parent,\n          isSchedulingEnabled: this.isSchedulingEnabled\n        },\n        children: this.children?.toArray()\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"children\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return (0, _array.A)([]);\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"expanded\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"_isSchedulingEnabled\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _class);\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class2 = class _class2 extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor6, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor7, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor8, this);\n      _initializerDefineProperty(this, \"selectedProject\", _descriptor9, this);\n      _initializerDefineProperty(this, \"tasks\", _descriptor0, this);\n      _initializerDefineProperty(this, \"selectedTaskTemplate\", _descriptor1, this);\n      _defineProperty(this, \"initProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project) {\n          const tasks = yield this.store.simpleQuery('task', {\n            project: project.id,\n            status: {\n              $in: ['ACTIVE', 'DRAFT_CREATED']\n            }\n          });\n          this.tasks = (0, _array.A)((tasks || []).filter(task => !task.belongsTo('parent').value()).sortBy('path').map(task => new TaskContainer(task)));\n        }\n      }), null, \"initProject\", null));\n      _defineProperty(this, \"onProjectUpdate\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (newTasks) {\n          this.tasks = newTasks;\n        }\n      }), null, \"onProjectUpdate\", null));\n      _defineProperty(this, \"saveAndImportTasks\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          if (!this.tasks?.length) {\n            this.notifications.warning(this.intl.t('components.timeline-task-import-modal.Please provide at least one task'));\n            return;\n          }\n          try {\n            yield this.buildaPrice.updateTaskList(this.tasks);\n            yield this.args.onClose(true);\n            this.notifications.success(this.intl.t('components.timeline-task-import-modal.Successfully manage tasks'));\n          } catch (error) {\n            if (error.responseText?.includes('Your task list is out of date')) {\n              this.initProject.perform();\n            }\n            this.notifications.error({\n              message: this.intl.t('components.timeline-task-import-modal.Something went wrong while manage tasks'),\n              error\n            });\n          }\n        }\n      }), null, \"saveAndImportTasks\", null));\n      const firstProject = this.args.projects[0];\n      this.selectedProject = firstProject;\n      this.initProject.perform(firstProject);\n      this.templateOptions = this.fetchTemplateOptions();\n    }\n\n    // both kinds of template are reduced to the same { name, items } tree as the\n    // defaults, so adding one to the list doesn't need to know where it came from\n    async fetchTemplateOptions() {\n      let taskTemplates = [];\n      try {\n        const templates = await this.store.simpleQuery('task-template', {\n          entity: this.sessionData.entity.id\n        }, {\n          include: 'items'\n        });\n        const toTree = items => [...items].sortBy('path').map(item => ({\n          name: item.name,\n          items: toTree(item.hasMany('items').value() ?? [])\n        }));\n        taskTemplates = templates.toArray().map(template => ({\n          name: template.name,\n          items: toTree((template.hasMany('items').value() ?? []).filter(item => !item.belongsTo('parent').value()))\n        }));\n      } catch (error) {\n        this.notifications.error({\n          message: this.intl.t('components.timeline-task-import-modal.somethingWentWrongLoadingTaskTemplates'),\n          error\n        });\n      }\n      return [{\n        groupName: this.intl.t('components.timeline-task-import-modal.Your templates'),\n        options: taskTemplates\n      }, {\n        groupName: this.intl.t('components.timeline-task-import-modal.Default templates'),\n        options: _taskTemplates.default\n      }];\n    }\n    selectProject(project) {\n      this.selectedProject = project;\n      this.initProject.perform(project);\n    }\n    get isLoading() {\n      return this.initProject.isRunning;\n    }\n    get isSaving() {\n      return this.saveAndImportTasks.isRunning;\n    }\n    onClose() {\n      this.args.onClose();\n    }\n    addItem(name, parent) {\n      const task = {\n        name,\n        entity: this.sessionData.entity.id,\n        project: this.selectedProject.id,\n        isSchedulingEnabled: true\n      };\n      if (parent) {\n        task.parent = parent.task._id;\n        task.isSchedulingEnabled = parent.isSchedulingEnabled;\n      }\n      const newItem = new TaskContainer(task);\n      if (parent) parent.children.pushObject(newItem);else this.tasks.pushObject(newItem);\n      return newItem;\n    }\n    selectTaskTemplate(taskTemplate) {\n      this.selectedTaskTemplate = taskTemplate;\n    }\n    addTasksFromTemplate() {\n      if (!this.selectedTaskTemplate) return;\n      const addItems = (items = [], parent) => {\n        items.forEach(item => {\n          const newItem = this.addItem(item.name, parent);\n          addItems(item.items, newItem);\n        });\n      };\n      // matches the tasks page, which nests a template under a task of its name\n      addItems(this.selectedTaskTemplate.items, this.addItem(this.selectedTaskTemplate.name));\n      this.selectedTaskTemplate = null;\n      this.notifications.success(this.intl.t('components.timeline-task-import-modal.Loaded template'));\n    }\n  }, _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"selectedProject\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"tasks\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"selectedTaskTemplate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"selectProject\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"selectProject\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onClose\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onClose\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"addItem\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"addItem\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"selectTaskTemplate\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"selectTaskTemplate\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"addTasksFromTemplate\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"addTasksFromTemplate\"), _class2.prototype), _class2));\n});","define(\"portal/components/timesheet-line-pm\", [\"exports\", \"@ember/component\", \"@ember/object/evented\", \"@ember/object\", \"@ember/runloop\", \"jquery\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _evented, _object, _runloop, _jquery, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object/evented\",0,\"@ember/object\",0,\"@ember/runloop\",0,\"jquery\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <tr>\n    <td>\n      {{#if (and this.group.hasTasksToSelect (not this.disabled))}}\n        <PopUp\n          class='data-table__cell-cover'\n          @visible={{this.showSelector}}\n          @onClose={{fn (mut this.showSelector) false}}\n          @scrollDivClass={{'.timesheet'}}\n          as |p|\n        >\n          <div\n            role='button'\n            {{on 'click' (fn (mut this.showSelector) true)}}\n            class='timesheet-line-pm__selector-dropdown'\n          >\n            {{#if this.timesheet.task.name}}\n              <TaskBreadcrumbs @task={{this.timesheet.task}} />\n            {{else}}\n              {{t 'common.Select a Task'}}\n            {{/if}}\n          </div>\n          <p.Content>\n            <TaskSelector\n              @tasks={{this.group.project.activeTimesheetTasks}}\n              @selectedTask={{this.selectedTask}}\n              @onCancel={{fn (mut this.showSelector) false}}\n              @onSubmit={{action 'onTaskSelect'}}\n              @hideInactiveTimesheetTasks={{true}}\n            />\n          </p.Content>\n        </PopUp>\n      {{else}}\n        <span class='px-2'>{{this.timesheet.task.name}}</span>\n      {{/if}}\n    </td>\n  \n    <td width='60'>\n      <DurationInput\n        @duration={{this.timesheet.hours}}\n        @selectOnFocus={{true}}\n        @class='text-input text-right data-table__cell-cover timesheet-table__duration'\n        data-test-timesheet-duration={{or this.timesheet.id 'new'}}\n        @onDurationChange={{fn (mut this.timesheet.hours)}}\n        @disabled={{this.disabled}}\n      />\n    </td>\n  \n    {{#unless this.disabled}}\n      <td width='35' class='text-center'>\n        &#8203;\n        {{! zero-width space to maintain row height }}\n        <button\n          class='text-button text-button--plain data-table__cell-cover'\n          type='button'\n          {{action 'toggleShowNote'}}\n        >\n          {{#if (or this.timesheet.note this.showNote)}}\n            <FaIcon @icon='file-alt' />\n          {{else}}\n            <div><FaIcon @icon='file-alt' /></div>\n            {{! hacky. Font Awesome doesn't have a note with a plus on it }}\n            {{! the provided method for stacking produced all kinds of side effects }}\n            <div\n              style='position: absolute; left: 16px; top: 13px; font-size: 6px;'\n            ><FaIcon @icon='plus' /></div>\n          {{/if}}\n        </button>\n      </td>\n  \n      <td width='35' class='text-center'>\n        &#8203;\n        {{! zero-width space to maintain row height }}\n        <button\n          class='text-button text-button--plain data-table__cell-cover'\n          data-test-delete-timesheet\n          disabled={{this.disabled}}\n          type='button'\n          {{action 'onTimesheetDelete'}}\n        >\n          <FaIcon @icon='times' />\n        </button>\n      </td>\n    {{/unless}}\n  </tr>\n  {{#if (or this.timesheet.note this.showNote)}}\n    <tr>\n      <td colspan='4' class='timesheet-table-pm__text-input--td'>\n        <Textarea\n          @value={{this.timesheet.note}}\n          id={{concat this.index '-note'}}\n          class='timesheet-table__text-input text-input'\n          data-test-note='note'\n          placeholder={{t 'components.timesheet-line-pm.Notes for the task'}}\n          rows='4'\n          cols='37'\n          disabled={{this.disabled}}\n        />\n      </td>\n    </tr>\n  {{/if}}\n  */\n  {\n    \"id\": \"CmsWYkrH\",\n    \"block\": \"[[[10,\\\"tr\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[[30,0,[\\\"group\\\",\\\"hasTasksToSelect\\\"]],[28,[37,4],[[30,0,[\\\"disabled\\\"]]],null]],null],[[[1,\\\"      \\\"],[8,[39,5],[[24,0,\\\"data-table__cell-cover\\\"]],[[\\\"@visible\\\",\\\"@onClose\\\",\\\"@scrollDivClass\\\"],[[30,0,[\\\"showSelector\\\"]],[28,[37,6],[[28,[37,7],[[30,0,[\\\"showSelector\\\"]]],null],false],null],\\\".timesheet\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[11,0],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"timesheet-line-pm__selector-dropdown\\\"],[4,[38,9],[\\\"click\\\",[28,[37,6],[[28,[37,7],[[30,0,[\\\"showSelector\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"timesheet\\\",\\\"task\\\",\\\"name\\\"]],[[[1,\\\"            \\\"],[8,[39,10],null,[[\\\"@task\\\"],[[30,0,[\\\"timesheet\\\",\\\"task\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,11],[\\\"common.Select a Task\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,12],null,[[\\\"@tasks\\\",\\\"@selectedTask\\\",\\\"@onCancel\\\",\\\"@onSubmit\\\",\\\"@hideInactiveTimesheetTasks\\\"],[[30,0,[\\\"group\\\",\\\"project\\\",\\\"activeTimesheetTasks\\\"]],[30,0,[\\\"selectedTask\\\"]],[28,[37,6],[[28,[37,7],[[30,0,[\\\"showSelector\\\"]]],null],false],null],[28,[37,13],[[30,0],\\\"onTaskSelect\\\"],null],true]],null],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,1],[14,0,\\\"px-2\\\"],[12],[1,[30,0,[\\\"timesheet\\\",\\\"task\\\",\\\"name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"60\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,15],[[16,\\\"data-test-timesheet-duration\\\",[28,[37,16],[[30,0,[\\\"timesheet\\\",\\\"id\\\"]],\\\"new\\\"],null]]],[[\\\"@duration\\\",\\\"@selectOnFocus\\\",\\\"@class\\\",\\\"@onDurationChange\\\",\\\"@disabled\\\"],[[30,0,[\\\"timesheet\\\",\\\"hours\\\"]],true,\\\"text-input text-right data-table__cell-cover timesheet-table__duration\\\",[28,[37,6],[[28,[37,7],[[30,0,[\\\"timesheet\\\",\\\"hours\\\"]]],null]],null],[30,0,[\\\"disabled\\\"]]]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"disabled\\\"]]],[[[1,\\\"    \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"35\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n      ​\\\\n\\\"],[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--plain data-table__cell-cover\\\"],[24,4,\\\"button\\\"],[4,[38,13],[[30,0],\\\"toggleShowNote\\\"],null],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,16],[[30,0,[\\\"timesheet\\\",\\\"note\\\"]],[30,0,[\\\"showNote\\\"]]],null],[[[1,\\\"          \\\"],[8,[39,19],null,[[\\\"@icon\\\"],[\\\"file-alt\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,0],[12],[8,[39,19],null,[[\\\"@icon\\\"],[\\\"file-alt\\\"]],null],[13],[1,\\\"\\\\n\\\"],[1,\\\"          \\\"],[10,0],[14,5,\\\"position: absolute; left: 16px; top: 13px; font-size: 6px;\\\"],[12],[8,[39,19],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"35\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n      ​\\\\n\\\"],[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--plain data-table__cell-cover\\\"],[24,\\\"data-test-delete-timesheet\\\",\\\"\\\"],[16,\\\"disabled\\\",[30,0,[\\\"disabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[[30,0],\\\"onTimesheetDelete\\\"],null],[12],[1,\\\"\\\\n        \\\"],[8,[39,19],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,16],[[30,0,[\\\"timesheet\\\",\\\"note\\\"]],[30,0,[\\\"showNote\\\"]]],null],[[[1,\\\"  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"4\\\"],[14,0,\\\"timesheet-table-pm__text-input--td\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,20],[[16,1,[28,[37,21],[[30,0,[\\\"index\\\"]],\\\"-note\\\"],null]],[24,0,\\\"timesheet-table__text-input text-input\\\"],[24,\\\"data-test-note\\\",\\\"note\\\"],[16,\\\"placeholder\\\",[28,[37,11],[\\\"components.timesheet-line-pm.Notes for the task\\\"],null]],[24,\\\"rows\\\",\\\"4\\\"],[24,\\\"cols\\\",\\\"37\\\"],[16,\\\"disabled\\\",[30,0,[\\\"disabled\\\"]]]],[[\\\"@value\\\"],[[30,0,[\\\"timesheet\\\",\\\"note\\\"]]]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"p\\\"],false,[\\\"tr\\\",\\\"td\\\",\\\"if\\\",\\\"and\\\",\\\"not\\\",\\\"pop-up\\\",\\\"fn\\\",\\\"mut\\\",\\\"div\\\",\\\"on\\\",\\\"task-breadcrumbs\\\",\\\"t\\\",\\\"task-selector\\\",\\\"action\\\",\\\"span\\\",\\\"duration-input\\\",\\\"or\\\",\\\"unless\\\",\\\"button\\\",\\\"fa-icon\\\",\\\"textarea\\\",\\\"concat\\\"]]\",\n    \"moduleName\": \"portal/components/timesheet-line-pm.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    notifications: (0, _service.inject)(),\n    intl: (0, _service.inject)(),\n    tagName: '',\n    showSelector: false,\n    showNote: false,\n    initShowNote: (0, _evented.on)('init', function () {\n      const note = (0, _object.get)(this, 'timesheet.note');\n      (0, _object.set)(this, 'showNote', Boolean(note));\n    }),\n    selectedTask: (0, _object.computed)('timesheet.task', function () {\n      return (0, _object.get)(this, 'timesheet')?.belongsTo('task')?.value();\n    }),\n    actions: {\n      onTimesheetDelete() {\n        this.deleteTimesheet();\n      },\n      onTaskSelect(newTask) {\n        if (newTask === (0, _object.get)(this, 'timesheet.task')) {\n          (0, _object.set)(this, 'showSelector', false);\n          return;\n        }\n        if ((0, _object.get)(this, 'group.selectedTasks').includes(newTask)) {\n          (0, _object.get)(this, 'notifications').warning((0, _object.get)(this, 'intl').t('components.timesheet-line-pm.thereIsAlreadyATimesheetForThisTask'));\n          return;\n        }\n\n        // set the timesheet task\n        this.setTask(newTask);\n        (0, _object.set)(this, 'showSelector', false);\n      },\n      toggleShowNote() {\n        if (!(0, _object.get)(this, 'timesheet.note')) this.toggleProperty('showNote');\n        (0, _runloop.next)(() => (0, _jquery.default)(`#${(0, _object.get)(this, 'index')}-note`).focus());\n      }\n    }\n  }));\n});","define(\"portal/components/timesheets-table-pm\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LazyEach\n    @items={{@groupedTimesheetData}}\n    @automatic={{true}}\n    @initialNumberOfItemsVisible='5'\n    @increment='5'\n    @itemDisplayName={{t 'common.timesheets'}}\n    as |day identifier|\n  >\n    <div class='timesheets-table-pm__date-title'>\n      <h3 class='h3'><FaIcon @icon='calendar' />&ensp;{{moment-format\n          day.date\n          (t 'date.shortWithWeekday')\n        }}</h3>\n      <h3 class='h3'>{{day.orderedDayMetas.length}}\n        {{t 'common.Workers'}}&ensp;&ensp;{{format-duration day.totalTime}}\n        {{t 'common.Hours'}}</h3>\n    </div>\n    <div class='{{identifier}} timesheets-table-pm__card-container'>\n      {{#each day.orderedDayMetas as |dayMeta|}}\n        <div\n          data-test-timesheet-worker-card={{dayMeta.worker.id}}\n          class='timesheets-table-pm__card{{if\n              (and dayMeta.isSelected dayMeta.canBeForeman)\n              \" timesheets-table-pm__card--selected\"\n            }}{{if\n              dayMeta.canBeForeman\n              \" timesheets-table-pm__card--selectable\"\n            }}'\n          {{on 'click' (stop-propagation (fn @toggleGroupExpanded dayMeta))}}\n        >\n          <div class='timesheets-table-pm__card-items'>\n            {{#if dayMeta.canBeForeman}}\n              <span\n                class='timesheets-table-pm__card-toggle'\n                {{on\n                  'click'\n                  (stop-propagation (fn @toggleGroupSelected dayMeta))\n                }}\n              >\n                {{#if dayMeta.isSelected}}\n                  <FaIcon @icon='check-square' @fixedWidth={{true}} />\n                {{else}}\n                  <FaIcon @icon='square' @prefix='far' @fixedWidth={{true}} />\n                {{/if}}\n              </span>\n              &nbsp;\n            {{/if}}\n  \n            <div\n              class='timesheets-table-pm__card-title'\n              data-test-timesheet-worker-name\n            >\n              {{dayMeta.worker.fullName}}\n            </div>\n  \n            <div\n              class='timesheets-table-pm__total timesheets-table-pm__card-item'\n            >\n              {{format-duration dayMeta.totalTime}}\n            </div>\n  \n            <div class='timesheets-table-pm__card-item'>\n              <span class='button--spaced'>\n                {{pluralize dayMeta.projectMetas.length 'Project'}}\n              </span>\n  \n              {{#each dayMeta.projectMetas as |project|}}\n                {{#each project.timesheets as |timesheet|}}\n                  {{#if timesheet.note}}\n                    <span class='button--spaced'>\n                      &nbsp;\n                      <InfoPopup\n                        @iconName='sticky-note'\n                        @iconPrefix='far'\n                        @text={{concat\n                          timesheet.task.name\n                          ' ('\n                          (ellipsis-words timesheet.project.name 2)\n                          ') '\n                          (t 'common.note')\n                          ': '\n                          timesheet.note\n                        }}\n                      />\n                    </span>\n                  {{/if}}\n                {{/each}}\n              {{/each}}\n  \n              {{#let dayMeta.timesheetNote as |note|}}\n                {{#if note.body}}\n                  <span class='button--spaced'>\n                    &nbsp;<InfoPopup\n                      @iconName='sticky-note'\n                      @iconPrefix='far'\n                      @text={{concat\n                        (t 'components.timesheets-table-pm.workerSNote')\n                        ': '\n                        note.body\n                      }}\n                    />\n                  </span>\n                {{/if}}\n  \n                {{#if (and note.adminNote @showForemanControls)}}\n                  <span class='button--spaced'>\n                    &nbsp;<InfoPopup\n                      @iconName='sticky-note'\n                      @iconPrefix='far'\n                      @text={{concat\n                        (t 'components.timesheets-table-pm.adminSNote')\n                        ': '\n                        note.adminNote\n                      }}\n                    />\n                  </span>\n                {{/if}}\n              {{/let}}\n            </div>\n  \n            {{#if dayMeta.canBeForeman}}\n              <div class='timesheets-table-pm__card-item'>\n                <button\n                  class='timesheets-table-pm__card-button\n                    {{if\n                      dayMeta.timesheetNote.dayLocked\n                      \"timesheets-table-pm__card-button--accepted\"\n                    }}\n                    no-wrap'\n                  disabled={{@acceptingTimesheets}}\n                  type='button'\n                  {{on\n                    'click'\n                    (fn\n                      (if\n                        dayMeta.timesheetNote.dayLocked\n                        @undoAcceptAndLockTimesheet\n                        @acceptAndLockTimesheet\n                      )\n                      dayMeta\n                    )\n                  }}\n                >\n                  <FaIcon @icon='sync-alt' />&nbsp;&nbsp;{{if\n                    dayMeta.timesheetNote.dayLocked\n                    (t 'common.Accepted')\n                    (t 'common.Pending')\n                  }}\n                </button>\n              </div>\n            {{/if}}\n  \n            <div class='button--spaced timesheets-table-pm__card-expand'><FaIcon\n                @icon={{if dayMeta.isExpanded 'chevron-down' 'chevron-right'}}\n                @fixedWidth={{true}}\n              /></div>\n          </div>\n        </div>\n  \n        {{#if dayMeta.isExpanded}}\n          <div\n            class='timesheets-table-pm__entry-wrapper{{if\n                (and dayMeta.isSelected dayMeta.canBeForeman)\n                \" timesheets-table-pm__entry-wrapper--selected\"\n              }}'\n          >\n            {{#let dayMeta.timesheetNote as |note|}}\n              {{#if note.body}}\n                {{t 'components.timesheets-table-pm.workerSNote'}}:\n                <div class='timesheets-table-pm__entry-wrapper-note'>\n                  {{note.body}}\n                </div>\n              {{/if}}\n  \n              {{#if (and note.adminNote @showForemanControls)}}\n                {{t 'shared.timesheet.Admin note'}}:\n                <div class='timesheets-table-pm__entry-wrapper-note'>\n                  {{note.adminNote}}\n                </div>\n              {{/if}}\n            {{/let}}\n  \n            <div class='timesheets-table-pm__entry-container'>\n              {{#each dayMeta.projectMetas as |projectMeta|}}\n                <div\n                  class='timesheets-table-pm__entry\n                    {{if\n                      (and dayMeta.canBeForeman (not projectMeta.canBeForeman))\n                      \" timesheets-table-pm__entry--disabled\"\n                    }}'\n                >\n                  <div class='timesheets-table-pm__entry-title'>\n                    <div class='timesheets-table-pm__entry-title-text'>\n                      {{projectMeta.project.name}}\n                    </div>\n                    <div\n                      class='timesheets-table-pm__entry-status\n                        {{if\n                          (eq projectMeta.timesheetStatus.status \"accepted\")\n                          \" timesheets-table-pm__entry-status--accepted\"\n                        }}'\n                    >\n                      {{timesheet-status-label\n                        projectMeta.timesheetStatus.status\n                      }}\n                    </div>\n                  </div>\n  \n                  {{#if\n                    (or\n                      projectMeta.timesheetStatus.didEdit\n                      projectMeta.timesheetStatus.editNote\n                    )\n                  }}\n                    <div class='timesheets-table-pm__entry-note--edited'>\n                      <span><FaIcon @icon='exclamation-triangle' />\n                        {{t 'shared.timesheet.Edited by admin because'}}:</span>\n                      <br />\n                      {{or\n                        projectMeta.timesheetStatus.editNote\n                        (t 'shared.timesheet.No reason given')\n                      }}\n                    </div>\n                  {{/if}}\n  \n                  {{#each projectMeta.timesheets as |timesheet|}}\n                    <div class='timesheets-table-pm__entry-row'>\n                      <div>{{timesheet.task.name}}</div>\n                      <div>{{format-duration timesheet.hours}}</div>\n                    </div>\n                    {{#if timesheet.note}}\n                      <div class='timesheets-table-pm__entry-note'>\n                        {{timesheet.note}}\n                      </div>\n                    {{/if}}\n                  {{/each}}\n  \n                  {{#if\n                    (and dayMeta.canBeForeman (not projectMeta.canBeForeman))\n                  }}\n                    <div class='timesheets-table-pm__not-foreman-message'>\n                      {{t\n                        'components.timesheets-table-pm.youCannotAcceptTimesheetsForThisProject'\n                      }}\n                    </div>\n                  {{/if}}\n                </div>\n              {{/each}}\n            </div>\n            <div class='timesheets-table-pm__edit-button'>\n              <LinkTo\n                @route={{@link}}\n                @query={{hash\n                  worker=dayMeta.worker.id\n                  date=(moment-format day.date 'YYYY-MM-DD')\n                }}\n                class='text-button'\n              >\n                {{t 'components.timesheets-table-pm.Edit timesheets'}}\n              </LinkTo>\n            </div>\n          </div>\n        {{/if}}\n      {{/each}}\n    </div>\n  </LazyEach>\n  */\n  {\n    \"id\": \"xLsw0mkR\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@items\\\",\\\"@automatic\\\",\\\"@initialNumberOfItemsVisible\\\",\\\"@increment\\\",\\\"@itemDisplayName\\\"],[[30,1],true,\\\"5\\\",\\\"5\\\",[28,[37,1],[\\\"common.timesheets\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"timesheets-table-pm__date-title\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3\\\"],[12],[8,[39,4],null,[[\\\"@icon\\\"],[\\\"calendar\\\"]],null],[1,\\\" \\\"],[1,[28,[35,5],[[30,2,[\\\"date\\\"]],[28,[37,1],[\\\"date.shortWithWeekday\\\"],null]],null]],[13],[1,\\\"\\\\n    \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3\\\"],[12],[1,[30,2,[\\\"orderedDayMetas\\\",\\\"length\\\"]]],[1,\\\"\\\\n      \\\"],[1,[28,[35,1],[\\\"common.Workers\\\"],null]],[1,\\\"  \\\"],[1,[28,[35,6],[[30,2,[\\\"totalTime\\\"]]],null]],[1,\\\"\\\\n      \\\"],[1,[28,[35,1],[\\\"common.Hours\\\"],null]],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[10,0],[15,0,[29,[[30,3],\\\" timesheets-table-pm__card-container\\\"]]],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,2,[\\\"orderedDayMetas\\\"]]],null]],null],null,[[[1,\\\"      \\\"],[11,0],[16,\\\"data-test-timesheet-worker-card\\\",[30,4,[\\\"worker\\\",\\\"id\\\"]]],[16,0,[29,[\\\"timesheets-table-pm__card\\\",[52,[28,[37,10],[[30,4,[\\\"isSelected\\\"]],[30,4,[\\\"canBeForeman\\\"]]],null],\\\" timesheets-table-pm__card--selected\\\"],[52,[30,4,[\\\"canBeForeman\\\"]],\\\" timesheets-table-pm__card--selectable\\\"]]]],[4,[38,11],[\\\"click\\\",[28,[37,12],[[28,[37,13],[[30,5],[30,4]],null]],null]],null],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"timesheets-table-pm__card-items\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,4,[\\\"canBeForeman\\\"]],[[[1,\\\"            \\\"],[11,1],[24,0,\\\"timesheets-table-pm__card-toggle\\\"],[4,[38,11],[\\\"click\\\",[28,[37,12],[[28,[37,13],[[30,6],[30,4]],null]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,4,[\\\"isSelected\\\"]],[[[1,\\\"                \\\"],[8,[39,4],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"check-square\\\",true]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[8,[39,4],null,[[\\\"@icon\\\",\\\"@prefix\\\",\\\"@fixedWidth\\\"],[\\\"square\\\",\\\"far\\\",true]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n             \\\\n\\\"]],[]],null],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"timesheets-table-pm__card-title\\\"],[14,\\\"data-test-timesheet-worker-name\\\",\\\"\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[30,4,[\\\"worker\\\",\\\"fullName\\\"]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"timesheets-table-pm__total timesheets-table-pm__card-item\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[[30,4,[\\\"totalTime\\\"]]],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"timesheets-table-pm__card-item\\\"],[12],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"button--spaced\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,15],[[30,4,[\\\"projectMetas\\\",\\\"length\\\"]],\\\"Project\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,4,[\\\"projectMetas\\\"]]],null]],null],null,[[[42,[28,[37,8],[[28,[37,8],[[30,7,[\\\"timesheets\\\"]]],null]],null],null,[[[41,[30,8,[\\\"note\\\"]],[[[1,\\\"                  \\\"],[10,1],[14,0,\\\"button--spaced\\\"],[12],[1,\\\"\\\\n                     \\\\n                    \\\"],[8,[39,16],null,[[\\\"@iconName\\\",\\\"@iconPrefix\\\",\\\"@text\\\"],[\\\"sticky-note\\\",\\\"far\\\",[28,[37,17],[[30,8,[\\\"task\\\",\\\"name\\\"]],\\\" (\\\",[28,[37,18],[[30,8,[\\\"project\\\",\\\"name\\\"]],2],null],\\\") \\\",[28,[37,1],[\\\"common.note\\\"],null],\\\": \\\",[30,8,[\\\"note\\\"]]],null]]],null],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[8]],null]],[7]],null],[1,\\\"\\\\n\\\"],[44,[[30,4,[\\\"timesheetNote\\\"]]],[[[41,[30,9,[\\\"body\\\"]],[[[1,\\\"                \\\"],[10,1],[14,0,\\\"button--spaced\\\"],[12],[1,\\\"\\\\n                   \\\"],[8,[39,16],null,[[\\\"@iconName\\\",\\\"@iconPrefix\\\",\\\"@text\\\"],[\\\"sticky-note\\\",\\\"far\\\",[28,[37,17],[[28,[37,1],[\\\"components.timesheets-table-pm.workerSNote\\\"],null],\\\": \\\",[30,9,[\\\"body\\\"]]],null]]],null],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,10],[[30,9,[\\\"adminNote\\\"]],[30,10]],null],[[[1,\\\"                \\\"],[10,1],[14,0,\\\"button--spaced\\\"],[12],[1,\\\"\\\\n                   \\\"],[8,[39,16],null,[[\\\"@iconName\\\",\\\"@iconPrefix\\\",\\\"@text\\\"],[\\\"sticky-note\\\",\\\"far\\\",[28,[37,17],[[28,[37,1],[\\\"components.timesheets-table-pm.adminSNote\\\"],null],\\\": \\\",[30,9,[\\\"adminNote\\\"]]],null]]],null],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[9]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,4,[\\\"canBeForeman\\\"]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"timesheets-table-pm__card-item\\\"],[12],[1,\\\"\\\\n              \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"timesheets-table-pm__card-button\\\\n                  \\\",[52,[30,4,[\\\"timesheetNote\\\",\\\"dayLocked\\\"]],\\\"timesheets-table-pm__card-button--accepted\\\"],\\\"\\\\n                  no-wrap\\\"]]],[16,\\\"disabled\\\",[30,11]],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,13],[[52,[30,4,[\\\"timesheetNote\\\",\\\"dayLocked\\\"]],[30,12],[30,13]],[30,4]],null]],null],[12],[1,\\\"\\\\n                \\\"],[8,[39,4],null,[[\\\"@icon\\\"],[\\\"sync-alt\\\"]],null],[1,\\\"  \\\"],[1,[52,[30,4,[\\\"timesheetNote\\\",\\\"dayLocked\\\"]],[28,[37,1],[\\\"common.Accepted\\\"],null],[28,[37,1],[\\\"common.Pending\\\"],null]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"button--spaced timesheets-table-pm__card-expand\\\"],[12],[8,[39,4],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[[52,[30,4,[\\\"isExpanded\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"],true]],null],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,4,[\\\"isExpanded\\\"]],[[[1,\\\"        \\\"],[10,0],[15,0,[29,[\\\"timesheets-table-pm__entry-wrapper\\\",[52,[28,[37,10],[[30,4,[\\\"isSelected\\\"]],[30,4,[\\\"canBeForeman\\\"]]],null],\\\" timesheets-table-pm__entry-wrapper--selected\\\"]]]],[12],[1,\\\"\\\\n\\\"],[44,[[30,4,[\\\"timesheetNote\\\"]]],[[[41,[30,14,[\\\"body\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,1],[\\\"components.timesheets-table-pm.workerSNote\\\"],null]],[1,\\\":\\\\n              \\\"],[10,0],[14,0,\\\"timesheets-table-pm__entry-wrapper-note\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,14,[\\\"body\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,10],[[30,14,[\\\"adminNote\\\"]],[30,10]],null],[[[1,\\\"              \\\"],[1,[28,[35,1],[\\\"shared.timesheet.Admin note\\\"],null]],[1,\\\":\\\\n              \\\"],[10,0],[14,0,\\\"timesheets-table-pm__entry-wrapper-note\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,14,[\\\"adminNote\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[14]]],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"timesheets-table-pm__entry-container\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,4,[\\\"projectMetas\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,0],[15,0,[29,[\\\"timesheets-table-pm__entry\\\\n                  \\\",[52,[28,[37,10],[[30,4,[\\\"canBeForeman\\\"]],[28,[37,21],[[30,15,[\\\"canBeForeman\\\"]]],null]],null],\\\" timesheets-table-pm__entry--disabled\\\"]]]],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"timesheets-table-pm__entry-title\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"timesheets-table-pm__entry-title-text\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[30,15,[\\\"project\\\",\\\"name\\\"]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,0],[15,0,[29,[\\\"timesheets-table-pm__entry-status\\\\n                      \\\",[52,[28,[37,22],[[30,15,[\\\"timesheetStatus\\\",\\\"status\\\"]],\\\"accepted\\\"],null],\\\" timesheets-table-pm__entry-status--accepted\\\"]]]],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,23],[[30,15,[\\\"timesheetStatus\\\",\\\"status\\\"]]],null]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,24],[[30,15,[\\\"timesheetStatus\\\",\\\"didEdit\\\"]],[30,15,[\\\"timesheetStatus\\\",\\\"editNote\\\"]]],null],[[[1,\\\"                  \\\"],[10,0],[14,0,\\\"timesheets-table-pm__entry-note--edited\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,1],[12],[8,[39,4],null,[[\\\"@icon\\\"],[\\\"exclamation-triangle\\\"]],null],[1,\\\"\\\\n                      \\\"],[1,[28,[35,1],[\\\"shared.timesheet.Edited by admin because\\\"],null]],[1,\\\":\\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[1,[28,[35,24],[[30,15,[\\\"timesheetStatus\\\",\\\"editNote\\\"]],[28,[37,1],[\\\"shared.timesheet.No reason given\\\"],null]],null]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,15,[\\\"timesheets\\\"]]],null]],null],null,[[[1,\\\"                  \\\"],[10,0],[14,0,\\\"timesheets-table-pm__entry-row\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[12],[1,[30,16,[\\\"task\\\",\\\"name\\\"]]],[13],[1,\\\"\\\\n                    \\\"],[10,0],[12],[1,[28,[35,6],[[30,16,[\\\"hours\\\"]]],null]],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,16,[\\\"note\\\"]],[[[1,\\\"                    \\\"],[10,0],[14,0,\\\"timesheets-table-pm__entry-note\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[30,16,[\\\"note\\\"]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[16]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,10],[[30,4,[\\\"canBeForeman\\\"]],[28,[37,21],[[30,15,[\\\"canBeForeman\\\"]]],null]],null],[[[1,\\\"                  \\\"],[10,0],[14,0,\\\"timesheets-table-pm__not-foreman-message\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,1],[\\\"components.timesheets-table-pm.youCannotAcceptTimesheetsForThisProject\\\"],null]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[15]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"timesheets-table-pm__edit-button\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,26],[[24,0,\\\"text-button\\\"]],[[\\\"@route\\\",\\\"@query\\\"],[[30,17],[28,[37,27],null,[[\\\"worker\\\",\\\"date\\\"],[[30,4,[\\\"worker\\\",\\\"id\\\"]],[28,[37,5],[[30,2,[\\\"date\\\"]],\\\"YYYY-MM-DD\\\"],null]]]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[1,[28,[35,1],[\\\"components.timesheets-table-pm.Edit timesheets\\\"],null]],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[4]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[2,3]]]]]],[\\\"@groupedTimesheetData\\\",\\\"day\\\",\\\"identifier\\\",\\\"dayMeta\\\",\\\"@toggleGroupExpanded\\\",\\\"@toggleGroupSelected\\\",\\\"project\\\",\\\"timesheet\\\",\\\"note\\\",\\\"@showForemanControls\\\",\\\"@acceptingTimesheets\\\",\\\"@undoAcceptAndLockTimesheet\\\",\\\"@acceptAndLockTimesheet\\\",\\\"note\\\",\\\"projectMeta\\\",\\\"timesheet\\\",\\\"@link\\\"],false,[\\\"lazy-each\\\",\\\"t\\\",\\\"div\\\",\\\"h3\\\",\\\"fa-icon\\\",\\\"moment-format\\\",\\\"format-duration\\\",\\\"each\\\",\\\"-track-array\\\",\\\"if\\\",\\\"and\\\",\\\"on\\\",\\\"stop-propagation\\\",\\\"fn\\\",\\\"span\\\",\\\"pluralize\\\",\\\"info-popup\\\",\\\"concat\\\",\\\"ellipsis-words\\\",\\\"let\\\",\\\"button\\\",\\\"not\\\",\\\"eq\\\",\\\"timesheet-status-label\\\",\\\"or\\\",\\\"br\\\",\\\"link-to\\\",\\\"hash\\\"]]\",\n    \"moduleName\": \"portal/components/timesheets-table-pm.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"portal/components/title-bar-tabs\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='flex-grow-1 d-flex align-items-center justify-content-start h-100'>\n    {{#each @tabs as |tab|}}\n      <TitleBarTabs::Tab\n        @tabName={{tab.name}}\n        @sections={{tab.sections}}\n        @route={{tab.route}}\n        @sup={{tab.sup}}\n      />\n    {{/each}}\n  </div>\n  */\n  {\n    \"id\": \"x0jamoVH\",\n    \"block\": \"[[[10,0],[14,0,\\\"flex-grow-1 d-flex align-items-center justify-content-start h-100\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,2],[[28,[37,2],[[30,1]],null]],null],null,[[[1,\\\"    \\\"],[8,[39,3],null,[[\\\"@tabName\\\",\\\"@sections\\\",\\\"@route\\\",\\\"@sup\\\"],[[30,2,[\\\"name\\\"]],[30,2,[\\\"sections\\\"]],[30,2,[\\\"route\\\"]],[30,2,[\\\"sup\\\"]]]],null],[1,\\\"\\\\n\\\"]],[2]],null],[13]],[\\\"@tabs\\\",\\\"tab\\\"],false,[\\\"div\\\",\\\"each\\\",\\\"-track-array\\\",\\\"title-bar-tabs/tab\\\"]]\",\n    \"moduleName\": \"portal/components/title-bar-tabs.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component2.default {});\n});","define(\"portal/components/title-bar-tabs/tab\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@ember/runloop\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _runloop, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/runloop\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if @sections.length}}\n    <PopOver class='h-100' @direction='bottom-right' as |po|>\n      <LinkTo\n        @route={{@route}}\n        class='d-flex align-items-center px-2 text-nowrap fs-5 text-light title-bar-tab__button'\n        draggable={{false}}\n        data-test-title-bar-tab-dropdown-button\n        {{on 'click' this.noop capture=true}}\n      >\n        {{@tabName}}\n        {{#if @sup}}<sup>{{@sup}}</sup>{{/if}}\n      </LinkTo>\n      <po.Content\n        class='mt-1 border rounded dropdown__content'\n        style='min-width: 200px;'\n      >\n        {{#each @sections as |section|}}\n          {{#if section.topSeparator}}\n            <div class='dropdown-divider'></div>\n          {{/if}}\n          {{#if section.name}}\n            <div class='dropdown-header text-nowrap fs-5 py-2'>\n              {{section.name}}\n            </div>\n          {{/if}}\n          {{#each section.routes as |route|}}\n            <LinkTo\n              @route={{route.route}}\n              class='dropdown-item text-nowrap fs-5 py-2'\n              draggable={{false}}\n              data-test-title-bar-dropdown-content-button\n            >\n              <FaIcon\n                @icon={{route.icon}}\n                @size='md'\n                @fixedWidth={{true}}\n                class='me-1'\n              />\n              {{route.name}}\n              {{#if route.sup}}<sup>{{route.sup}}</sup>{{/if}}\n            </LinkTo>\n          {{/each}}\n        {{/each}}\n      </po.Content>\n    </PopOver>\n  {{else}}\n    <LinkTo\n      @route={{@route}}\n      class='d-flex align-items-center px-2 text-nowrap fs-5 text-light title-bar-tab__button'\n      draggable={{false}}\n      data-test-title-bar-tab-button\n    >\n      {{@tabName}}\n      {{#if @sup}}<sup>{{@sup}}</sup>{{/if}}\n    </LinkTo>\n  {{/if}}\n  */\n  {\n    \"id\": \"qGNJ59oa\",\n    \"block\": \"[[[41,[30,1,[\\\"length\\\"]],[[[1,\\\"  \\\"],[8,[39,1],[[24,0,\\\"h-100\\\"]],[[\\\"@direction\\\"],[\\\"bottom-right\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,2],[[24,0,\\\"d-flex align-items-center px-2 text-nowrap fs-5 text-light title-bar-tab__button\\\"],[16,\\\"draggable\\\",false],[24,\\\"data-test-title-bar-tab-dropdown-button\\\",\\\"\\\"],[4,[38,3],[\\\"click\\\",[30,0,[\\\"noop\\\"]]],[[\\\"capture\\\"],[true]]]],[[\\\"@route\\\"],[[30,3]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[1,[30,4]],[1,\\\"\\\\n      \\\"],[41,[30,5],[[[10,\\\"sup\\\"],[12],[1,[30,5]],[13]],[]],null],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n    \\\"],[8,[30,2,[\\\"Content\\\"]],[[24,0,\\\"mt-1 border rounded dropdown__content\\\"],[24,5,\\\"min-width: 200px;\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[30,1]],null]],null],null,[[[41,[30,6,[\\\"topSeparator\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"dropdown-divider\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,6,[\\\"name\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"dropdown-header text-nowrap fs-5 py-2\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[30,6,[\\\"name\\\"]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[42,[28,[37,6],[[28,[37,6],[[30,6,[\\\"routes\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[8,[39,2],[[24,0,\\\"dropdown-item text-nowrap fs-5 py-2\\\"],[16,\\\"draggable\\\",false],[24,\\\"data-test-title-bar-dropdown-content-button\\\",\\\"\\\"]],[[\\\"@route\\\"],[[30,7,[\\\"route\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[39,8],[[24,0,\\\"me-1\\\"]],[[\\\"@icon\\\",\\\"@size\\\",\\\"@fixedWidth\\\"],[[30,7,[\\\"icon\\\"]],\\\"md\\\",true]],null],[1,\\\"\\\\n            \\\"],[1,[30,7,[\\\"name\\\"]]],[1,\\\"\\\\n            \\\"],[41,[30,7,[\\\"sup\\\"]],[[[10,\\\"sup\\\"],[12],[1,[30,7,[\\\"sup\\\"]]],[13]],[]],null],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[7]],null]],[6]],null],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[2]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[8,[39,2],[[24,0,\\\"d-flex align-items-center px-2 text-nowrap fs-5 text-light title-bar-tab__button\\\"],[16,\\\"draggable\\\",false],[24,\\\"data-test-title-bar-tab-button\\\",\\\"\\\"]],[[\\\"@route\\\"],[[30,3]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[1,[30,4]],[1,\\\"\\\\n    \\\"],[41,[30,5],[[[10,\\\"sup\\\"],[12],[1,[30,5]],[13]],[]],null],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"@sections\\\",\\\"po\\\",\\\"@route\\\",\\\"@tabName\\\",\\\"@sup\\\",\\\"section\\\",\\\"route\\\"],false,[\\\"if\\\",\\\"pop-over\\\",\\\"link-to\\\",\\\"on\\\",\\\"sup\\\",\\\"each\\\",\\\"-track-array\\\",\\\"div\\\",\\\"fa-icon\\\"]]\",\n    \"moduleName\": \"portal/components/title-bar-tabs/tab.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class extends _component2.default {\n    open(dropdown) {\n      if (this.closeTimer) {\n        (0, _runloop.cancel)(this.closeTimer);\n        this.closeTimer = null;\n      } else {\n        dropdown.actions.open();\n      }\n    }\n    noop(event) {\n      event.stopPropagation();\n      event.preventDefault();\n    }\n    closeLater(dropdown) {\n      this.closeTimer = (0, _runloop.later)(() => {\n        this.closeTimer = null;\n        dropdown.actions.close();\n      }, 50);\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"open\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"open\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"noop\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"noop\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeLater\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"closeLater\"), _class.prototype), _class));\n});","define(\"portal/components/title-bar\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@glimmer/tracking\", \"ember-local-storage\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _tracking, _emberLocalStorage, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"ember-local-storage\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='title-bar__container px-4 d-flex align-items-center'>\n    {{#if this.canSeeModuleButton}}\n      <div class='me-4' data-test-title-bar-module-buttons>\n        <PopOver @direction='bottom-right' as |po|>\n          <FaIcon @icon='bars' class='link-light title-bar__icon' role='button' />\n          <po.Content style='min-width: 200px;'>\n            {{#unless this.adminConsoleIsActive}}\n              {{#if this.canSeeDashboardButton}}\n                <LinkTo\n                  @route='index'\n                  class='dropdown-item text-nowrap fs-5'\n                  data-test-dashboard-link\n                >\n                  <FaIcon\n                    @icon='external-link-alt'\n                    @fixedWidth={{true}}\n                  />&nbsp;&nbsp;{{t 'common.Go to dashboard'}}\n                </LinkTo>\n              {{/if}}\n              {{! do not show the org selector when in admin console }}\n              {{#if (gt this.sessionData.allowedEntities.length 1)}}\n                <button\n                  type='button'\n                  class='dropdown-item text-nowrap fs-5'\n                  {{on\n                    'click'\n                    (fn (mut this.orgSelectorOpen) (not this.orgSelectorOpen))\n                  }}\n                  data-test-change-organisation-button\n                >\n                  <FaIcon @icon='building' @fixedWidth={{true}} />&nbsp;&nbsp;{{t\n                    'common.Change company'\n                  }}\n                </button>\n              {{/if}}\n              {{#if this.orgSelectorOpen}}\n                <EntitySelector\n                  @onClose={{fn (mut this.orgSelectorOpen) false}}\n                />\n              {{/if}}\n  \n              {{#if this.modules.allowedModules.length}}\n                <div class='dropdown-header fs-5'>Modules</div>\n                {{#each this.modules.allowedModules as |module|}}\n                  {{#if module.outsideLink}}\n                    <a\n                      href={{module.outsideLink}}\n                      target='_blank'\n                      rel='noopener noreferrer'\n                      class='dropdown-item text-nowrap fs-5 d-flex align-items-center'\n                      data-test-outside-module={{module.slug}}\n                    >\n                      {{#if module.icon}}\n                        <FaIcon @icon={{module.icon}} @fixedWidth={{true}} />\n                        &nbsp;&nbsp;{{module.name}}\n                      {{else}}\n                        <img\n                          class='title-bar__logo-thumbnail'\n                          src={{module.logo}}\n                          alt={{module.name}}\n                        />&nbsp;&nbsp;{{module.name}}\n                      {{/if}}\n                    </a>\n                  {{else}}\n                    <LinkTo\n                      @route='entity.{{module.slug}}'\n                      @model={{this.sessionData.entity.id}}\n                      class='dropdown-item text-nowrap fs-5 d-flex align-items-center'\n                      data-test-module={{module.slug}}\n                    >\n                      {{#if module.icon}}\n                        <FaIcon @icon={{module.icon}} @fixedWidth={{true}} />\n                        &nbsp;&nbsp;{{module.name}}\n                      {{else}}\n                        <img\n                          class='title-bar__logo-thumbnail'\n                          src={{module.logo}}\n                          alt={{module.name}}\n                        />&nbsp;&nbsp;{{module.name}}\n                      {{/if}}\n                    </LinkTo>\n                  {{/if}}\n                {{/each}}\n              {{/if}}\n            {{/unless}}\n  \n            {{#if (includes-feature-flags 'userIsAdmin')}}\n              {{#unless this.adminConsoleIsActive}}\n                <div class='dropdown-header fs-5'>{{t 'common.Admin only'}}</div>\n  \n                {{#unless this.isUsingAdminMode}}\n                  <button\n                    type='button'\n                    class='dropdown-item text-nowrap fs-5'\n                    {{on 'click' this.sessionData.toggleAdminMode}}\n                  >\n                    <FaIcon @icon='unlock' @fixedWidth={{true}} />&nbsp;&nbsp;{{t\n                      'common.Admin mode'\n                    }}\n                  </button>\n                {{/unless}}\n              {{/unless}}\n  \n              {{#if this.adminConsoleIsActive}}\n                <LinkTo\n                  @route='index'\n                  class='dropdown-item text-nowrap fs-5'\n                  data-test-exit-admin-console-link\n                >\n                  <FaIcon\n                    @icon='external-link-alt'\n                    @fixedWidth={{true}}\n                  />&nbsp;&nbsp;{{t 'common.Exit admin console'}}\n                </LinkTo>\n              {{else}}\n                <LinkTo\n                  @route='admin'\n                  class='dropdown-item text-nowrap fs-5'\n                  data-test-admin-console-link\n                ><FaIcon @icon='user-lock' @fixedWidth={{true}} />&nbsp;&nbsp;{{t\n                    'common.Admin console'\n                  }}</LinkTo>\n              {{/if}}\n            {{/if}}\n          </po.Content>\n        </PopOver>\n      </div>\n    {{/if}}\n  \n    {{#if this.modules.currentModule}}\n      <LinkTo\n        class='me-4 d-flex align-items-center'\n        @route='entity.{{this.modules.currentModule.slug}}'\n        @model={{this.sessionData.entity.id}}\n      >\n        <img\n          class='title-bar__logo me-3'\n          src={{this.modules.currentModule.logo}}\n          alt='Logo'\n        />\n        <div>\n          <div\n            class='text-uppercase text-secondary lh-sm title-bar__logo-company-name'\n          >{{this.sessionData.entity.name}}</div>\n          <div\n            class='text-uppercase text-light fs-2 lh-sm'\n          >{{this.modules.currentModule.name}}</div>\n        </div>\n      </LinkTo>\n    {{else}}\n      <div class='me-4 d-flex align-items-center'>\n        <img\n          class='title-bar__logo me-3'\n          src={{this.platform.platform.logo}}\n          alt='Logo'\n        />\n        <div>\n          <div\n            class='text-uppercase text-secondary lh-sm title-bar__logo-company-name'\n          >{{this.sessionData.entity.name}}</div>\n          <div\n            class='text-uppercase text-light fs-2 lh-sm'\n          >{{this.platform.platform.name}}</div>\n        </div>\n      </div>\n    {{/if}}\n  \n    <div class='flex-grow-1 h-100'>\n      {{yield}}\n    </div>\n    {{! <PopOver @direction='bottom-left' as |no|>\n      <FaIcon @icon=\"bell\" class=\"link-light title-bar__icon mx-3\" role=\"button\" />\n      <no.Content>\n        <div class=\"dropdown-item text-nowrap fs-5\" role=\"button\">\n          <div class=\"d-flex w-100 justify-content-between\">\n            <div class=\"d-flex mb-1\">\n              <FaIcon @icon=\"user-circle\" class=\"link-light title-bar__icon me-2\" />\n              <h5 class=\"mb-1\">Tony changed a Task</h5>\n            </div>\n            <small>3 days ago</small>\n          </div>\n          <div class=\"mb-1\">Due to the shortage of the budget, we need cancel this task!</div>\n        </div>\n        <div class=\"dropdown-item text-nowrap fs-5\" role=\"button\">\n          <div class=\"d-flex w-100 justify-content-between\">\n            <div class=\"d-flex mb-1\">\n              <FaIcon @icon=\"user-circle\" class=\"link-light title-bar__icon me-2\" />\n              <h5 class=\"mb-1\">Nathan changed a Task</h5>\n            </div>\n            <small>4 days ago</small>\n          </div>\n          <div class=\"mb-1\">Due to the shortage of the budget, we need cancel this task!</div>\n        </div>\n        <div class=\"dropdown-item text-nowrap fs-5\" role=\"button\">\n         <div class=\"d-flex w-100 justify-content-between\">\n              <div class=\"d-flex mb-1\">\n              <FaIcon @icon=\"user-circle\" class=\"link-light title-bar__icon me-2\" />\n              <h5 class=\"mb-1\">Fraser changed a Task</h5>\n            </div>\n            <small>5 days ago</small>\n          </div>\n          <div class=\"mb-1\">Due to the shortage of the budget, we need cancel this task!</div>\n        </div>\n        <div class=\"dropdown-item text-nowrap fs-5\" role=\"button\">\n         <div class=\"d-flex w-100 justify-content-between\">\n           <div class=\"d-flex mb-1\">\n              <FaIcon @icon=\"user-circle\" class=\"link-light title-bar__icon me-2\" />\n              <h5 class=\"mb-1\">Rene changed a Task</h5>\n            </div>\n            <small>7 days ago</small>\n          </div>\n          <div class=\"mb-1\">Due to the shortage of the budget, we need cancel this task!</div>\n        </div>\n        <div class=\"dropdown-divider\"></div>\n        <button type=\"button\" class=\"dropdown-item text-nowrap fs-5\">Show more</button>\n      </no.Content>\n   </PopOver> }}\n  \n    {{! TODO implement notifications }}\n    {{! <FaIcon @icon=\"bell\" class=\"link-light title-bar__icon mx-3\" role=\"button\" /> }}\n  \n    <PopOver @direction='bottom-left' as |po|>\n      <FaIcon\n        @icon='user-circle'\n        class='link-light title-bar__icon title-bar__icon--lg'\n        role='button'\n      />\n      <po.Content style='min-width: 200px;'>\n        {{#unless this.adminConsoleIsActive}}\n          {{! workers don't currently have any use for this route }}\n          {{#unless (includes-feature-flags 'userIsWorker')}}\n            <LinkTo\n              @route='entity.settings'\n              @model={{this.sessionData.entity.id}}\n              class='dropdown-item text-nowrap fs-5'\n              data-test-settings-link\n            >{{t 'common.Settings'}}</LinkTo>\n          {{/unless}}\n  \n          {{#if\n            (or\n              (includes-feature-flags 'userIsAdmin')\n              (excludes-feature-flags 'userIsWorker')\n            )\n          }}\n            <div class='dropdown-divider'></div>\n          {{/if}}\n        {{/unless}}\n  \n        <button\n          type='button'\n          class='dropdown-item text-nowrap fs-5'\n          {{on 'click' this.logout}}\n          data-test-title-bar-logout-button\n        >{{t 'common.Sign out'}}</button>\n      </po.Content>\n    </PopOver>\n  </div>\n  */\n  {\n    \"id\": \"bzDCMvhz\",\n    \"block\": \"[[[10,0],[14,0,\\\"title-bar__container px-4 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canSeeModuleButton\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"me-4\\\"],[14,\\\"data-test-title-bar-module-buttons\\\",\\\"\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,2],null,[[\\\"@direction\\\"],[\\\"bottom-right\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[39,3],[[24,0,\\\"link-light title-bar__icon\\\"],[24,\\\"role\\\",\\\"button\\\"]],[[\\\"@icon\\\"],[\\\"bars\\\"]],null],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],[[24,5,\\\"min-width: 200px;\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"adminConsoleIsActive\\\"]]],[[[41,[30,0,[\\\"canSeeDashboardButton\\\"]],[[[1,\\\"              \\\"],[8,[39,5],[[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,\\\"data-test-dashboard-link\\\",\\\"\\\"]],[[\\\"@route\\\"],[\\\"index\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[8,[39,3],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"external-link-alt\\\",true]],null],[1,\\\"  \\\"],[1,[28,[35,6],[\\\"common.Go to dashboard\\\"],null]],[1,\\\"\\\\n              \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,7],[[30,0,[\\\"sessionData\\\",\\\"allowedEntities\\\",\\\"length\\\"]],1],null],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,\\\"data-test-change-organisation-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,9],[\\\"click\\\",[28,[37,10],[[28,[37,11],[[30,0,[\\\"orgSelectorOpen\\\"]]],null],[28,[37,12],[[30,0,[\\\"orgSelectorOpen\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n                \\\"],[8,[39,3],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"building\\\",true]],null],[1,\\\"  \\\"],[1,[28,[35,6],[\\\"common.Change company\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"orgSelectorOpen\\\"]],[[[1,\\\"              \\\"],[8,[39,13],null,[[\\\"@onClose\\\"],[[28,[37,10],[[28,[37,11],[[30,0,[\\\"orgSelectorOpen\\\"]]],null],false],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"modules\\\",\\\"allowedModules\\\",\\\"length\\\"]],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"dropdown-header fs-5\\\"],[12],[1,\\\"Modules\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,15],[[28,[37,15],[[30,0,[\\\"modules\\\",\\\"allowedModules\\\"]]],null]],null],null,[[[41,[30,2,[\\\"outsideLink\\\"]],[[[1,\\\"                  \\\"],[10,3],[15,6,[30,2,[\\\"outsideLink\\\"]]],[14,\\\"target\\\",\\\"_blank\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[14,0,\\\"dropdown-item text-nowrap fs-5 d-flex align-items-center\\\"],[15,\\\"data-test-outside-module\\\",[30,2,[\\\"slug\\\"]]],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"icon\\\"]],[[[1,\\\"                      \\\"],[8,[39,3],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[[30,2,[\\\"icon\\\"]],true]],null],[1,\\\"\\\\n                        \\\"],[1,[30,2,[\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                      \\\"],[10,\\\"img\\\"],[14,0,\\\"title-bar__logo-thumbnail\\\"],[15,\\\"src\\\",[30,2,[\\\"logo\\\"]]],[15,\\\"alt\\\",[30,2,[\\\"name\\\"]]],[12],[13],[1,\\\"  \\\"],[1,[30,2,[\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[8,[39,5],[[24,0,\\\"dropdown-item text-nowrap fs-5 d-flex align-items-center\\\"],[16,\\\"data-test-module\\\",[30,2,[\\\"slug\\\"]]]],[[\\\"@route\\\",\\\"@model\\\"],[[29,[\\\"entity.\\\",[30,2,[\\\"slug\\\"]]]],[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"icon\\\"]],[[[1,\\\"                      \\\"],[8,[39,3],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[[30,2,[\\\"icon\\\"]],true]],null],[1,\\\"\\\\n                        \\\"],[1,[30,2,[\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                      \\\"],[10,\\\"img\\\"],[14,0,\\\"title-bar__logo-thumbnail\\\"],[15,\\\"src\\\",[30,2,[\\\"logo\\\"]]],[15,\\\"alt\\\",[30,2,[\\\"name\\\"]]],[12],[13],[1,\\\"  \\\"],[1,[30,2,[\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]]]],[2]],null]],[]],null]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,18],[\\\"userIsAdmin\\\"],null],[[[41,[51,[30,0,[\\\"adminConsoleIsActive\\\"]]],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"dropdown-header fs-5\\\"],[12],[1,[28,[35,6],[\\\"common.Admin only\\\"],null]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"isUsingAdminMode\\\"]]],[[[1,\\\"                \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,9],[\\\"click\\\",[30,0,[\\\"sessionData\\\",\\\"toggleAdminMode\\\"]]],null],[12],[1,\\\"\\\\n                  \\\"],[8,[39,3],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"unlock\\\",true]],null],[1,\\\"  \\\"],[1,[28,[35,6],[\\\"common.Admin mode\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"adminConsoleIsActive\\\"]],[[[1,\\\"              \\\"],[8,[39,5],[[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,\\\"data-test-exit-admin-console-link\\\",\\\"\\\"]],[[\\\"@route\\\"],[\\\"index\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[8,[39,3],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"external-link-alt\\\",true]],null],[1,\\\"  \\\"],[1,[28,[35,6],[\\\"common.Exit admin console\\\"],null]],[1,\\\"\\\\n              \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[8,[39,5],[[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,\\\"data-test-admin-console-link\\\",\\\"\\\"]],[[\\\"@route\\\"],[\\\"admin\\\"]],[[\\\"default\\\"],[[[[8,[39,3],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"user-lock\\\",true]],null],[1,\\\"  \\\"],[1,[28,[35,6],[\\\"common.Admin console\\\"],null]]],[]]]]],[1,\\\"\\\\n\\\"]],[]]]],[]],null],[1,\\\"        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"modules\\\",\\\"currentModule\\\"]],[[[1,\\\"    \\\"],[8,[39,5],[[24,0,\\\"me-4 d-flex align-items-center\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[[29,[\\\"entity.\\\",[30,0,[\\\"modules\\\",\\\"currentModule\\\",\\\"slug\\\"]]]],[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"img\\\"],[14,0,\\\"title-bar__logo me-3\\\"],[15,\\\"src\\\",[30,0,[\\\"modules\\\",\\\"currentModule\\\",\\\"logo\\\"]]],[14,\\\"alt\\\",\\\"Logo\\\"],[12],[13],[1,\\\"\\\\n      \\\"],[10,0],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"text-uppercase text-secondary lh-sm title-bar__logo-company-name\\\"],[12],[1,[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"name\\\"]]],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"text-uppercase text-light fs-2 lh-sm\\\"],[12],[1,[30,0,[\\\"modules\\\",\\\"currentModule\\\",\\\"name\\\"]]],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"me-4 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"img\\\"],[14,0,\\\"title-bar__logo me-3\\\"],[15,\\\"src\\\",[30,0,[\\\"platform\\\",\\\"platform\\\",\\\"logo\\\"]]],[14,\\\"alt\\\",\\\"Logo\\\"],[12],[13],[1,\\\"\\\\n      \\\"],[10,0],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"text-uppercase text-secondary lh-sm title-bar__logo-company-name\\\"],[12],[1,[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"name\\\"]]],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"text-uppercase text-light fs-2 lh-sm\\\"],[12],[1,[30,0,[\\\"platform\\\",\\\"platform\\\",\\\"name\\\"]]],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"flex-grow-1 h-100\\\"],[12],[1,\\\"\\\\n    \\\"],[18,4,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[1,\\\"\\\\n\\\"],[1,\\\"\\\\n  \\\"],[8,[39,2],null,[[\\\"@direction\\\"],[\\\"bottom-left\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,3],[[24,0,\\\"link-light title-bar__icon title-bar__icon--lg\\\"],[24,\\\"role\\\",\\\"button\\\"]],[[\\\"@icon\\\"],[\\\"user-circle\\\"]],null],[1,\\\"\\\\n    \\\"],[8,[30,3,[\\\"Content\\\"]],[[24,5,\\\"min-width: 200px;\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"adminConsoleIsActive\\\"]]],[[[41,[51,[28,[37,18],[\\\"userIsWorker\\\"],null]],[[[1,\\\"          \\\"],[8,[39,5],[[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,\\\"data-test-settings-link\\\",\\\"\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.settings\\\",[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.Settings\\\"],null]]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[28,[37,18],[\\\"userIsAdmin\\\"],null],[28,[37,21],[\\\"userIsWorker\\\"],null]],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"dropdown-divider\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,\\\"data-test-title-bar-logout-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,9],[\\\"click\\\",[30,0,[\\\"logout\\\"]]],null],[12],[1,[28,[35,6],[\\\"common.Sign out\\\"],null]],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[3]]]]],[1,\\\"\\\\n\\\"],[13]],[\\\"po\\\",\\\"module\\\",\\\"po\\\",\\\"&default\\\"],false,[\\\"div\\\",\\\"if\\\",\\\"pop-over\\\",\\\"fa-icon\\\",\\\"unless\\\",\\\"link-to\\\",\\\"t\\\",\\\"gt\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"not\\\",\\\"entity-selector\\\",\\\"each\\\",\\\"-track-array\\\",\\\"a\\\",\\\"img\\\",\\\"includes-feature-flags\\\",\\\"yield\\\",\\\"or\\\",\\\"excludes-feature-flags\\\"]]\",\n    \"moduleName\": \"portal/components/title-bar.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_dec = (0, _emberLocalStorage.storageFor)('settings'), _class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"platform\", _descriptor2, this);\n      _initializerDefineProperty(this, \"modules\", _descriptor3, this);\n      _initializerDefineProperty(this, \"router\", _descriptor4, this);\n      _initializerDefineProperty(this, \"session\", _descriptor5, this);\n      _initializerDefineProperty(this, \"persistedSettings\", _descriptor6, this);\n      _initializerDefineProperty(this, \"orgSelectorOpen\", _descriptor7, this);\n    }\n    get isUsingAdminMode() {\n      return this.persistedSettings.get('adminMode');\n    }\n    get adminConsoleIsActive() {\n      return this.router.currentRouteName.includes('admin');\n    }\n    get settingsRouteIsActive() {\n      return this.router.currentRouteName.includes('entity.settings');\n    }\n    get canSeeDashboardButton() {\n      // we want this visible for people with no modules, and more than 1 module\n      return this.modules.allowedModules.length === 0 || this.modules.allowedModules.length > 1;\n    }\n    get canSeeModuleButton() {\n      return this.modules.allowedModules?.length > 1 || this.sessionData.entities?.length > 1 || this.adminConsoleIsActive || this.settingsRouteIsActive;\n    }\n    logout() {\n      // TODO dunno if this is the right approach, hard to bubble\n      // an action from here to application Route as was done before.\n      this.session.invalidate();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"platform\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"modules\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"persistedSettings\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"orgSelectorOpen\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"logout\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"logout\"), _class.prototype), _class));\n});","define(\"portal/components/to-elsewhere\", [\"exports\", \"ember-elsewhere/components/to-elsewhere\"], function (_exports, _toElsewhere) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _toElsewhere.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-elsewhere/components/to-elsewhere\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/usage-bar\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    class='usage-bar d-flex flex-nowrap gap-1'\n    role='progressbar'\n    aria-valuemin='0'\n    aria-valuemax={{this.limit}}\n    aria-valuenow={{this.value}}\n    ...attributes\n  >\n    {{#each this.segments key='end' as |segment|}}\n      <div class='usage-bar__track rounded-pill overflow-hidden flex-grow-1'>\n        <div\n          class='usage-bar__fill {{this.barBgClass}}'\n          style={{html-safe (concat 'width: ' segment.fill '%')}}\n        />\n      </div>\n    {{/each}}\n  </div>\n  */\n  {\n    \"id\": \"DjoCDxSd\",\n    \"block\": \"[[[11,0],[24,0,\\\"usage-bar d-flex flex-nowrap gap-1\\\"],[24,\\\"role\\\",\\\"progressbar\\\"],[24,\\\"aria-valuemin\\\",\\\"0\\\"],[16,\\\"aria-valuemax\\\",[30,0,[\\\"limit\\\"]]],[16,\\\"aria-valuenow\\\",[30,0,[\\\"value\\\"]]],[17,1],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,2],[[28,[37,2],[[30,0,[\\\"segments\\\"]]],null]],null],\\\"end\\\",[[[1,\\\"    \\\"],[10,0],[14,0,\\\"usage-bar__track rounded-pill overflow-hidden flex-grow-1\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[15,0,[29,[\\\"usage-bar__fill \\\",[30,0,[\\\"barBgClass\\\"]]]]],[15,5,[28,[37,3],[[28,[37,4],[\\\"width: \\\",[30,2,[\\\"fill\\\"]],\\\"%\\\"],null]],null]],[12],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[13]],[\\\"&attrs\\\",\\\"segment\\\"],false,[\\\"div\\\",\\\"each\\\",\\\"-track-array\\\",\\\"html-safe\\\",\\\"concat\\\"]]\",\n    \"moduleName\": \"portal/components/usage-bar.hbs\",\n    \"isStrictMode\": false\n  });\n  class UsageBar extends _component2.default {\n    get notches() {\n      const notches = (this.args.notches ?? []).map(Number).filter(notch => Number.isFinite(notch) && notch > 0);\n      return [...new Set(notches)].sort((a, b) => a - b);\n    }\n    get limit() {\n      return this.notches[this.notches.length - 1] ?? 0;\n    }\n    get value() {\n      const value = Number(this.args.value);\n      return Number.isFinite(value) ? Math.max(0, value) : 0;\n    }\n    get isAtLimit() {\n      return this.notches.length > 0 && this.value >= this.limit;\n    }\n    get barBgClass() {\n      return this.isAtLimit ? 'bg-danger' : 'bg-primary';\n    }\n\n    // each segment fills across its own span, not the whole bar\n    get segments() {\n      return this.notches.map((end, index) => {\n        const start = this.notches[index - 1] ?? 0;\n        const fill = (this.value - start) / (end - start) * 100;\n        return {\n          end,\n          fill: Math.min(100, Math.max(0, fill))\n        };\n      });\n    }\n  }\n  _exports.default = UsageBar;\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, UsageBar);\n});","define(\"portal/components/value-change-indicator\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <span class='value-change-indicator {{this.color}}' ...attributes>{{#if\n      this.icon\n    }}<FaIcon @icon={{this.icon}} />{{/if}}</span>\n  */\n  {\n    \"id\": \"iikinBKC\",\n    \"block\": \"[[[11,1],[16,0,[29,[\\\"value-change-indicator \\\",[30,0,[\\\"color\\\"]]]]],[17,1],[12],[41,[30,0,[\\\"icon\\\"]],[[[8,[39,2],null,[[\\\"@icon\\\"],[[30,0,[\\\"icon\\\"]]]],null]],[]],null],[13]],[\\\"&attrs\\\"],false,[\\\"span\\\",\\\"if\\\",\\\"fa-icon\\\"]]\",\n    \"moduleName\": \"portal/components/value-change-indicator.hbs\",\n    \"isStrictMode\": false\n  });\n  class ValueChangeIndicatorComponent extends _component2.default {\n    get diff() {\n      if (this.args.difference != null) {\n        return this.args.difference;\n      }\n      return this.args.to - this.args.from;\n    }\n    get useColor() {\n      return this.args.useColor ?? true;\n    }\n    get increaseIsGood() {\n      return this.args.increaseIsGood ?? true;\n    }\n    get positiveIcon() {\n      return this.args.positiveIcon ?? 'arrow-up';\n    }\n    get negativeIcon() {\n      return this.args.negativeIcon ?? 'arrow-down';\n    }\n    get color() {\n      const diff = this.diff;\n      if (!this.useColor) {\n        return null;\n      }\n      if (this.increaseIsGood && diff > 0 || !this.increaseIsGood && diff < 0) {\n        return 'value-change-indicator--good';\n      }\n      if (this.increaseIsGood && diff < 0 || !this.increaseIsGood && diff > 0) {\n        return 'value-change-indicator--bad';\n      }\n      return 'value-change-indicator--no-change';\n    }\n    get icon() {\n      const diff = this.diff;\n      if (diff > 0) {\n        return this.positiveIcon;\n      }\n      if (diff < 0) {\n        return this.negativeIcon;\n      }\n      return null;\n    }\n  }\n  _exports.default = ValueChangeIndicatorComponent;\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, ValueChangeIndicatorComponent);\n});","define(\"portal/components/worker-cost-calculator\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/array\", \"@ember/service\", \"portal/utils/labour-cost-calculator-fixtures\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _object, _tracking, _array, _service, _labourCostCalculatorFixtures, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/object\",0,\"@ember/component\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/array\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"portal/utils/labour-cost-calculator-fixtures\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.calculatorVisible}}\n    <ModalDialog\n      @translucentOverlay={{true}}\n      @overlayClass='modal'\n      @onClose={{fn (mut this.calculatorVisible) false}}\n      @containerClass='block-module worker-cost-calculator__container'\n    >\n      <p class='p'>\n        {{t\n          'components.worker-cost-calculator.workerPayRateCalculatorExplanation'\n        }}\n      </p>\n  \n      <div class='worker-cost-calculator__calculator'>\n        <div class='worker-cost-calculator__calculator-section'>\n          {{#if this.isEditing}}\n            <span class='worker-cost-calculator__calculator-section-title'>\n              {{t 'components.worker-cost-calculator.Template name'}}\n            </span>\n            <div class='worker-cost-calculator__calculator-section-row'>\n              <div class='worker-cost-calculator__calculator-section-item'>\n                <Input\n                  class='text-input'\n                  @value={{this.selectedCalculator.label}}\n                  data-test-worker-cost-calculator-template-name\n                />\n              </div>\n            </div>\n  \n          {{else}}\n  \n            <span class='worker-cost-calculator__calculator-section-title'>\n              {{t 'components.worker-cost-calculator.Select template'}}\n            </span>\n            <div class='worker-cost-calculator__calculator-section-row'>\n              <div class='worker-cost-calculator__calculator-section-item'>\n                <PowerSelect\n                  @tagName='div'\n                  class='data-test-worker-cost-calculator-select-labour-cost-calculator'\n                  @options={{this._labourCostCalculators}}\n                  @selected={{this.selectedCalculator}}\n                  @searchEnabled={{true}}\n                  @searchField='label'\n                  @onChange={{fn (mut this.selectedCalculator)}}\n                  as |labourCostCalculator|\n                >{{labourCostCalculator.label}}</PowerSelect>\n              </div>\n  \n              <div class='worker-cost-calculator__calculator-section-item'>\n                <button\n                  type='button'\n                  class='text-button text-button--add no-wrap'\n                  {{on 'click' this.addCalculator}}\n                  data-test-worker-cost-calculator-add-template=''\n                >{{t 'common.Add new'}}</button>\n              </div>\n            </div>\n            <div class='worker-cost-calculator__calculator-section-row'>\n              {{#unless (eq this.selectedCalculator this.entityDefault)}}\n                <div class='worker-cost-calculator__calculator-section-item'>\n                  <button\n                    type='button'\n                    class='text-button'\n                    {{on 'click' (perform this.setEntityDefault)}}\n                    data-test-worker-cost-calculator-make-org-default=''\n                  >{{t\n                      'components.worker-cost-calculator.Make company default'\n                    }}</button>\n                </div>\n              {{/unless}}\n  \n              <div class='worker-cost-calculator__calculator-section-item'>\n                <button\n                  class='text-button'\n                  disabled={{this.deleteCalculator.isRunning}}\n                  data-test-worker-cost-calculator-edit-template\n                  type='button'\n                  {{on 'click' (fn (mut this.isEditing) true)}}\n                >{{t 'components.worker-cost-calculator.Edit template'}}</button>\n              </div>\n  \n              {{#if (gt this._labourCostCalculators.length 1)}}\n                <div class='worker-cost-calculator__calculator-section-item'>\n                  <LoadingButton\n                    @class='text-button text-button--delete'\n                    @isLoading={{this.deleteCalculator.isRunning}}\n                    @action={{perform this.deleteCalculator}}\n                    @buttonText={{t 'shared.task.Delete template'}}\n                    data-test-worker-cost-calculator-delete-template\n                  />\n                </div>\n              {{/if}}\n            </div>\n          {{/if}}\n        </div>\n  \n        <table class='worker-cost-calculator-table'>\n          <tbody>\n            {{! Working Days Per Week }}\n            <tr\n              class={{if\n                this.isEditing\n                'worker-cost-calculator-table__line--alt'\n                'worker-cost-calculator-table__line'\n              }}\n            >\n              <td>\n                {{t 'components.worker-cost-calculator.Working days per week'}}\n              </td>\n              {{#if this.isEditing}}\n                <td>\n                  <FormattedInput\n                    @class='worker-cost-calculator__calculator-section-small-input'\n                    @format='integer'\n                    @number={{this.selectedCalculator.workingDaysPerWeek}}\n                    @update={{fn\n                      (mut this.selectedCalculator.workingDaysPerWeek)\n                    }}\n                    data-test-worker-cost-calculator-days-per-week\n                  />\n                  <span class='no-wrap'>\n                    {{t 'components.worker-cost-calculator.days per week'}}\n                  </span>\n                </td>\n              {{/if}}\n  \n              {{#unless this.isEditing}}\n                <td>\n                  {{number-format\n                    this.selectedCalculator.workingDaysPerWeek\n                    maximumFractionDigits=2\n                    dashZero=true\n                  }}\n                  {{t 'components.worker-cost-calculator.days per week'}}</td>\n              {{/unless}}\n            </tr>\n  \n            {{! Working Hours Per Day }}\n            <tr\n              class={{if\n                this.isEditing\n                'worker-cost-calculator-table__line--alt'\n                'worker-cost-calculator-table__line'\n              }}\n            >\n              <td>\n                {{t 'components.worker-cost-calculator.Working hours per day'}}\n              </td>\n              {{#if this.isEditing}}\n                <td>\n                  <DurationInput\n                    @class='worker-cost-calculator__calculator-section-small-input'\n                    @duration={{this.selectedCalculator.workingHoursPerDay}}\n                    @onDurationChange={{fn\n                      (mut this.selectedCalculator.workingHoursPerDay)\n                    }}\n                    data-test-worker-cost-calculator-hours-per-day\n                  />\n                  <span class='no-wrap'>\n                    {{t 'components.worker-cost-calculator.hours per day'}}\n                  </span>\n                </td>\n              {{/if}}\n  \n              {{#unless this.isEditing}}\n                <td>{{format-duration this.selectedCalculator.workingHoursPerDay}}\n                  {{t 'components.worker-cost-calculator.hours per day'}}</td>\n              {{/unless}}\n            </tr>\n          </tbody>\n        </table>\n  \n        <table class='worker-cost-calculator-table'>\n          <thead>\n            <tr class='worker-cost-calculator-table__line--alt'>\n              <th class='worker-cost-calculator-table__header text-left'>{{t\n                  'common.Cost'\n                }}</th>\n              {{#if this.isEditing}}\n                <th class='worker-cost-calculator-table__header text-center'>{{t\n                    'common.Enabled'\n                  }}</th>\n              {{/if}}\n              <th class='worker-cost-calculator-table__header text-left'>{{t\n                  'common.Value'\n                }}</th>\n              {{#if this.isEditing}}\n                <th class='worker-cost-calculator-table__header text-left'>{{t\n                    'common.Type'\n                  }}</th>\n              {{/if}}\n              <th class='worker-cost-calculator-table__header text-right'>%\n                {{t 'components.worker-cost-calculator.of pay rate'}}</th>\n              <th class='worker-cost-calculator-table__header text-right'>{{t\n                  'components.worker-cost-calculator.Cost per hour'\n                }}</th>\n              {{#if this.isEditing}}\n                <th\n                  style='width: 25px;'\n                  class='worker-cost-calculator__header'\n                ></th>\n              {{/if}}\n            </tr>\n          </thead>\n  \n          <tbody>\n            {{! Calculator items }}\n            {{#each this.selectedCalculator.sortedItems as |item index|}}\n              <tr\n                class={{if\n                  this.isEditing\n                  'worker-cost-calculator-table__line--alt'\n                  'worker-cost-calculator-table__line'\n                }}\n              >\n                {{#if this.isEditing}}\n                  <td data-test-worker-cost-calculator-item-label={{index}}>\n                    {{#if item.isSystem}}\n                      {{item.label}}\n                    {{else}}\n                      <Input\n                        class='worker-cost-calculator__calculator-section-input'\n                        @value={{item.label}}\n                        placeholder='Label'\n                        data-test-worker-cost-calculator-item-label-input={{index}}\n                      />\n                    {{/if}}\n                  </td>\n                  <td class='text-center'>\n                    <Input\n                      @type='checkbox'\n                      @checked={{item.enabled}}\n                      data-test-worker-cost-calculator-item-enabled={{index}}\n                    />\n                  </td>\n                  <td>\n                    {{! Value input }}\n                    {{#if\n                      (or\n                        (eq item.valueType 'minutesPerDay')\n                        (eq item.valueType 'daysPerYear')\n                      )\n                    }}\n                      <FormattedInput\n                        @class='worker-cost-calculator__calculator-section-small-input'\n                        @format='integer'\n                        @number={{item.value}}\n                        @disabled={{not item.enabled}}\n                        @update={{fn (mut item.value)}}\n                        data-test-worker-cost-calculator-item-value={{index}}\n                      />\n                    {{else if (eq item.valueType 'percentOfPayRate')}}\n                      <FormattedInput\n                        @class='worker-cost-calculator__calculator-section-small-input'\n                        @placeholder='0%'\n                        @update={{fn (mut item.value)}}\n                        @number={{item.value}}\n                        @format='percentage'\n                        @disabled={{not item.enabled}}\n                        data-test-worker-cost-calculator-item-value={{index}}\n                      />\n                    {{/if}}\n                  </td>\n                  <td data-test-worker-cost-calculator-item-value-type={{index}}>\n                    {{! Value type input }}\n                    {{#if item.isSystem}}\n                      {{#if (eq item.valueType 'minutesPerDay')}}\n                        {{t 'components.worker-cost-calculator.minutes per day'}}\n                      {{else if (eq item.valueType 'daysPerYear')}}\n                        {{t 'components.worker-cost-calculator.days per year'}}\n                      {{/if}}\n                    {{else}}\n                      <SelectInput\n                        @class='worker-cost-calculator__calculator-section-input'\n                        @value={{item.valueType}}\n                        @action={{fn\n                          (pipe (fn (mut item.valueType)) (fn (mut item.value) 0))\n                        }}\n                        @disabled={{not item.enabled}}\n                        data-test-worker-cost-calculator-item-value-type-input={{index}}\n                        as |si|\n                      >\n                        <si.option @value='percentOfPayRate'>{{t\n                            'components.worker-cost-calculator.percentage of pay rate'\n                          }}</si.option>\n                        <si.option @value='minutesPerDay'>{{t\n                            'components.worker-cost-calculator.minutes per day'\n                          }}</si.option>\n                        <si.option @value='daysPerYear'>{{t\n                            'components.worker-cost-calculator.days per year'\n                          }}</si.option>\n                      </SelectInput>\n                    {{/if}}\n                  </td>\n                  {{#if item.enabled}}\n                    <td\n                      class='text-right'\n                      data-test-worker-cost-calculator-item-percentage={{index}}\n                    >\n                      {{number-format\n                        item.percentage\n                        style='percent'\n                        dashZero=true\n                        maximumFractionDigits=2\n                        minimumFractionDigits=2\n                      }}\n                    </td>\n                    <td\n                      class='text-right'\n                      data-test-worker-cost-calculator-item-rate={{index}}\n                    >\n                      {{number-format\n                        (math item.percentage '*' this.payRate)\n                        style='currency'\n                        dashZero=true\n                      }}\n                    </td>\n                  {{else}}\n                    <td class='text-center' colspan='2'>{{t\n                        'components.worker-cost-calculator.Not applicable'\n                      }}</td>\n                    <td class='text-center'>\n                      {{#unless item.isSystem}}\n                        <button\n                          style='font-size: 110%;'\n                          class='text-button text-button--delete'\n                          data-test-worker-cost-calculator-item-delete={{index}}\n                          type='button'\n                          {{on 'click' (fn this.deleteItem item)}}\n                        ><FaIcon @icon='trash' /></button>\n                      {{/unless}}\n                    </td>\n                  {{/if}}\n                {{else}}\n                  <td>{{item.label}}</td>\n                  {{#if item.enabled}}\n                    <td>\n                      {{#if (eq item.valueType 'minutesPerDay')}}\n                        {{format-duration item.value}}\n                        {{t 'components.worker-cost-calculator.minutes per day'}}\n                      {{else if (eq item.valueType 'daysPerYear')}}\n                        {{item.value}}\n                        {{t 'components.worker-cost-calculator.days per year'}}\n                      {{else if (eq item.valueType 'percentOfPayRate')}}\n                        {{number-format\n                          item.value\n                          style='percent'\n                          dashZero=true\n                          maximumFractionDigits=2\n                          minimumFractionDigits=2\n                        }}\n                      {{/if}}\n                    </td>\n                    <td class='text-right'>\n                      {{number-format\n                        item.percentage\n                        style='percent'\n                        dashZero=true\n                        maximumFractionDigits=2\n                        minimumFractionDigits=2\n                      }}\n                    </td>\n                    <td class='text-right'>\n                      {{number-format\n                        (math item.percentage '*' this.payRate)\n                        style='currency'\n                        dashZero=true\n                      }}\n                    </td>\n                  {{else}}\n                    <td colspan='3' class='text-center'>{{t\n                        'components.worker-cost-calculator.Not applicable'\n                      }}</td>\n                  {{/if}}\n                {{/if}}\n              </tr>\n            {{/each}}\n            {{#if this.isEditing}}\n              <tr class='worker-cost-calculator-table__line--alt'>\n                <td class='text-center' colspan='7'>\n                  <button\n                    class='text-button text-button--add button--spaced'\n                    data-test-worker-cost-calculator-add-item\n                    type='button'\n                    {{on 'click' this.addItem}}\n                  >{{t 'common.Add item'}}</button>\n                </td>\n              </tr>\n            {{/if}}\n          </tbody>\n  \n          <tfoot>\n            <tr\n              class='worker-cost-calculator-table__line--alt worker-cost-calculator-table__footer'\n            >\n              <td colspan={{if this.isEditing '5' '3'}} class='text-right'>\n                {{number-format\n                  this.selectedCalculator.extraCostPercentage\n                  style='percent'\n                  dashZero=true\n                  maximumFractionDigits=2\n                  minimumFractionDigits=2\n                }}\n              </td>\n              <td class='text-right' data-test-worker-cost-calculator-extras-rate>\n                {{number-format this.extrasRate style='currency' dashZero=true}}\n              </td>\n              <td></td>\n            </tr>\n            <tr\n              class='worker-cost-calculator-table__summary worker-cost-calculator-table__line--alt'\n            >\n              <td colspan={{if this.isEditing '5' '3'}} class='text-right'>{{t\n                  'components.worker-cost-calculator.Worker pay rate'\n                }}:</td>\n              <td class='text-right'>\n                {{number-format this.payRate style='currency' dashZero=true}}\n              </td>\n              <td></td>\n            </tr>\n            <tr class='worker-cost-calculator-table__line--alt'>\n              <td colspan={{if this.isEditing '5' '3'}} class='text-right'>{{t\n                  'components.worker-cost-calculator.Calculated cost rate'\n                }}:</td>\n              <td class='text-right' data-test-worker-cost-calculator-cost-rate>\n                {{number-format\n                  this.calculatedCost\n                  style='currency'\n                  dashZero=true\n                }}\n              </td>\n              <td></td>\n            </tr>\n          </tfoot>\n        </table>\n  \n        <br />\n  \n        {{#unless this.isEditing}}\n          {{! Manual override }}\n          <div class='worker-cost-calculator__final-rate'>\n            <strong>\n              {{t 'components.worker-cost-calculator.Worker cost rate'}}\n            </strong>\n            &nbsp;\n            <FormattedInput\n              @class='worker-cost-calculator__calculator-section-small-input'\n              @format='currency'\n              @number={{this.workerCost}}\n              @update={{fn (mut this.workerCost)}}\n              data-test-worker-cost-calculator-cost-rate-input\n            />\n            {{#unless (eq this.workerCost this.calculatedCost)}}\n              &nbsp;\n              <button\n                class='text-button'\n                data-test-worker-cost-calculator-use-calculated\n                type='button'\n                {{on 'click' (fn (mut this.workerCost) this.calculatedCost)}}\n              >{{t 'components.worker-cost-calculator.Use calculated'}}</button>\n            {{/unless}}\n          </div>\n        {{/unless}}\n      </div>\n  \n      <footer class='block-module__footer'>\n        <button\n          class='button button--plain button--spaced'\n          data-test-worker-cost-calculator-cancel=''\n          type='button'\n          {{on 'click' (fn (mut this.calculatorVisible) false)}}\n        >{{t 'common.Cancel'}}</button>\n        {{#if this.isEditing}}\n          {{#unless\n            (and\n              (lte this._labourCostCalculators.length 1)\n              this.selectedCalculator.isNew\n            )\n          }}\n            <button\n              class='button button--plain button--spaced'\n              data-test-worker-cost-calculator-cancel-edit=''\n              type='button'\n              {{on 'click' this.cancelEditing}}\n            >{{t 'components.worker-cost-calculator.Cancel editing'}}</button>\n          {{/unless}}\n          <LoadingButton\n            @class='button float-end button--spaced'\n            @action={{perform this.saveCalculator}}\n            @isLoading={{this.saveCalculator.isRunning}}\n            @buttonText={{t 'components.worker-cost-calculator.Save calculator'}}\n            data-test-worker-cost-calculator-save-calculator\n          />\n        {{else}}\n          <button\n            class='button float-end button--spaced'\n            data-test-worker-cost-calculator-set-worker-cost=''\n            type='button'\n            {{on 'click' this.setWorkerCost}}\n          >{{t 'components.worker-cost-calculator.Set worker cost rate'}}</button>\n        {{/if}}\n      </footer>\n    </ModalDialog>\n  {{/if}}\n  \n  <button\n    type='button'\n    class='btn btn-link m-0 p-0 text-decoration-underline'\n    {{on 'click' (fn (mut this.calculatorVisible) true)}}\n    data-test-worker-cost-calculator-open-modal=''\n  ><FaIcon @icon='calculator' />&nbsp;{{t\n      'components.worker-cost-calculator.Use calculator'\n    }}</button>\n  */\n  {\n    \"id\": \"5/ab39hk\",\n    \"block\": \"[[[41,[30,0,[\\\"calculatorVisible\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@translucentOverlay\\\",\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\"],[true,\\\"modal\\\",[28,[37,2],[[28,[37,3],[[30,0,[\\\"calculatorVisible\\\"]]],null],false],null],\\\"block-module worker-cost-calculator__container\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,2],[14,0,\\\"p\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,5],[\\\"components.worker-cost-calculator.workerPayRateCalculatorExplanation\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"worker-cost-calculator__calculator\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"worker-cost-calculator__calculator-section\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEditing\\\"]],[[[1,\\\"          \\\"],[10,1],[14,0,\\\"worker-cost-calculator__calculator-section-title\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,5],[\\\"components.worker-cost-calculator.Template name\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"worker-cost-calculator__calculator-section-row\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"worker-cost-calculator__calculator-section-item\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,8],[[24,0,\\\"text-input\\\"],[24,\\\"data-test-worker-cost-calculator-template-name\\\",\\\"\\\"]],[[\\\"@value\\\"],[[30,0,[\\\"selectedCalculator\\\",\\\"label\\\"]]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[]],[[[1,\\\"\\\\n          \\\"],[10,1],[14,0,\\\"worker-cost-calculator__calculator-section-title\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,5],[\\\"components.worker-cost-calculator.Select template\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"worker-cost-calculator__calculator-section-row\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"worker-cost-calculator__calculator-section-item\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,9],[[24,0,\\\"data-test-worker-cost-calculator-select-labour-cost-calculator\\\"]],[[\\\"@tagName\\\",\\\"@options\\\",\\\"@selected\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@onChange\\\"],[\\\"div\\\",[30,0,[\\\"_labourCostCalculators\\\"]],[30,0,[\\\"selectedCalculator\\\"]],true,\\\"label\\\",[28,[37,2],[[28,[37,3],[[30,0,[\\\"selectedCalculator\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,[30,1,[\\\"label\\\"]]]],[1]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[10,0],[14,0,\\\"worker-cost-calculator__calculator-section-item\\\"],[12],[1,\\\"\\\\n              \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--add no-wrap\\\"],[24,\\\"data-test-worker-cost-calculator-add-template\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[30,0,[\\\"addCalculator\\\"]]],null],[12],[1,[28,[35,5],[\\\"common.Add new\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"worker-cost-calculator__calculator-section-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[28,[37,13],[[30,0,[\\\"selectedCalculator\\\"]],[30,0,[\\\"entityDefault\\\"]]],null]],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"worker-cost-calculator__calculator-section-item\\\"],[12],[1,\\\"\\\\n                \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,\\\"data-test-worker-cost-calculator-make-org-default\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"setEntityDefault\\\"]]],null]],null],[12],[1,[28,[35,5],[\\\"components.worker-cost-calculator.Make company default\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"worker-cost-calculator__calculator-section-item\\\"],[12],[1,\\\"\\\\n              \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteCalculator\\\",\\\"isRunning\\\"]]],[24,\\\"data-test-worker-cost-calculator-edit-template\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,2],[[28,[37,3],[[30,0,[\\\"isEditing\\\"]]],null],true],null]],null],[12],[1,[28,[35,5],[\\\"components.worker-cost-calculator.Edit template\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,15],[[30,0,[\\\"_labourCostCalculators\\\",\\\"length\\\"]],1],null],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"worker-cost-calculator__calculator-section-item\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,16],[[24,\\\"data-test-worker-cost-calculator-delete-template\\\",\\\"\\\"]],[[\\\"@class\\\",\\\"@isLoading\\\",\\\"@action\\\",\\\"@buttonText\\\"],[\\\"text-button text-button--delete\\\",[30,0,[\\\"deleteCalculator\\\",\\\"isRunning\\\"]],[28,[37,14],[[30,0,[\\\"deleteCalculator\\\"]]],null],[28,[37,5],[\\\"shared.task.Delete template\\\"],null]]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"table\\\"],[14,0,\\\"worker-cost-calculator-table\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"          \\\"],[10,\\\"tr\\\"],[15,0,[52,[30,0,[\\\"isEditing\\\"]],\\\"worker-cost-calculator-table__line--alt\\\",\\\"worker-cost-calculator-table__line\\\"]],[12],[1,\\\"\\\\n            \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,5],[\\\"components.worker-cost-calculator.Working days per week\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEditing\\\"]],[[[1,\\\"              \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,21],[[24,\\\"data-test-worker-cost-calculator-days-per-week\\\",\\\"\\\"]],[[\\\"@class\\\",\\\"@format\\\",\\\"@number\\\",\\\"@update\\\"],[\\\"worker-cost-calculator__calculator-section-small-input\\\",\\\"integer\\\",[30,0,[\\\"selectedCalculator\\\",\\\"workingDaysPerWeek\\\"]],[28,[37,2],[[28,[37,3],[[30,0,[\\\"selectedCalculator\\\",\\\"workingDaysPerWeek\\\"]]],null]],null]]],null],[1,\\\"\\\\n                \\\"],[10,1],[14,0,\\\"no-wrap\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,5],[\\\"components.worker-cost-calculator.days per week\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"isEditing\\\"]]],[[[1,\\\"              \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,22],[[30,0,[\\\"selectedCalculator\\\",\\\"workingDaysPerWeek\\\"]]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[2,true]]]],[1,\\\"\\\\n                \\\"],[1,[28,[35,5],[\\\"components.worker-cost-calculator.days per week\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"          \\\"],[10,\\\"tr\\\"],[15,0,[52,[30,0,[\\\"isEditing\\\"]],\\\"worker-cost-calculator-table__line--alt\\\",\\\"worker-cost-calculator-table__line\\\"]],[12],[1,\\\"\\\\n            \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,5],[\\\"components.worker-cost-calculator.Working hours per day\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEditing\\\"]],[[[1,\\\"              \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,23],[[24,\\\"data-test-worker-cost-calculator-hours-per-day\\\",\\\"\\\"]],[[\\\"@class\\\",\\\"@duration\\\",\\\"@onDurationChange\\\"],[\\\"worker-cost-calculator__calculator-section-small-input\\\",[30,0,[\\\"selectedCalculator\\\",\\\"workingHoursPerDay\\\"]],[28,[37,2],[[28,[37,3],[[30,0,[\\\"selectedCalculator\\\",\\\"workingHoursPerDay\\\"]]],null]],null]]],null],[1,\\\"\\\\n                \\\"],[10,1],[14,0,\\\"no-wrap\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,5],[\\\"components.worker-cost-calculator.hours per day\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"isEditing\\\"]]],[[[1,\\\"              \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,24],[[30,0,[\\\"selectedCalculator\\\",\\\"workingHoursPerDay\\\"]]],null]],[1,\\\"\\\\n                \\\"],[1,[28,[35,5],[\\\"components.worker-cost-calculator.hours per day\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"table\\\"],[14,0,\\\"worker-cost-calculator-table\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[14,0,\\\"worker-cost-calculator-table__line--alt\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[14,0,\\\"worker-cost-calculator-table__header text-left\\\"],[12],[1,[28,[35,5],[\\\"common.Cost\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEditing\\\"]],[[[1,\\\"              \\\"],[10,\\\"th\\\"],[14,0,\\\"worker-cost-calculator-table__header text-center\\\"],[12],[1,[28,[35,5],[\\\"common.Enabled\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"th\\\"],[14,0,\\\"worker-cost-calculator-table__header text-left\\\"],[12],[1,[28,[35,5],[\\\"common.Value\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEditing\\\"]],[[[1,\\\"              \\\"],[10,\\\"th\\\"],[14,0,\\\"worker-cost-calculator-table__header text-left\\\"],[12],[1,[28,[35,5],[\\\"common.Type\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"th\\\"],[14,0,\\\"worker-cost-calculator-table__header text-right\\\"],[12],[1,\\\"%\\\\n              \\\"],[1,[28,[35,5],[\\\"components.worker-cost-calculator.of pay rate\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[14,0,\\\"worker-cost-calculator-table__header text-right\\\"],[12],[1,[28,[35,5],[\\\"components.worker-cost-calculator.Cost per hour\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEditing\\\"]],[[[1,\\\"              \\\"],[10,\\\"th\\\"],[14,5,\\\"width: 25px;\\\"],[14,0,\\\"worker-cost-calculator__header\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,28],[[28,[37,28],[[30,0,[\\\"selectedCalculator\\\",\\\"sortedItems\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"tr\\\"],[15,0,[52,[30,0,[\\\"isEditing\\\"]],\\\"worker-cost-calculator-table__line--alt\\\",\\\"worker-cost-calculator-table__line\\\"]],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEditing\\\"]],[[[1,\\\"                \\\"],[10,\\\"td\\\"],[15,\\\"data-test-worker-cost-calculator-item-label\\\",[30,3]],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"isSystem\\\"]],[[[1,\\\"                    \\\"],[1,[30,2,[\\\"label\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                    \\\"],[8,[39,8],[[24,0,\\\"worker-cost-calculator__calculator-section-input\\\"],[24,\\\"placeholder\\\",\\\"Label\\\"],[16,\\\"data-test-worker-cost-calculator-item-label-input\\\",[30,3]]],[[\\\"@value\\\"],[[30,2,[\\\"label\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"td\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                  \\\"],[8,[39,8],[[16,\\\"data-test-worker-cost-calculator-item-enabled\\\",[30,3]]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,2,[\\\"enabled\\\"]]]],null],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,29],[[28,[37,13],[[30,2,[\\\"valueType\\\"]],\\\"minutesPerDay\\\"],null],[28,[37,13],[[30,2,[\\\"valueType\\\"]],\\\"daysPerYear\\\"],null]],null],[[[1,\\\"                    \\\"],[8,[39,21],[[16,\\\"data-test-worker-cost-calculator-item-value\\\",[30,3]]],[[\\\"@class\\\",\\\"@format\\\",\\\"@number\\\",\\\"@disabled\\\",\\\"@update\\\"],[\\\"worker-cost-calculator__calculator-section-small-input\\\",\\\"integer\\\",[30,2,[\\\"value\\\"]],[28,[37,30],[[30,2,[\\\"enabled\\\"]]],null],[28,[37,2],[[28,[37,3],[[30,2,[\\\"value\\\"]]],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,13],[[30,2,[\\\"valueType\\\"]],\\\"percentOfPayRate\\\"],null],[[[1,\\\"                    \\\"],[8,[39,21],[[16,\\\"data-test-worker-cost-calculator-item-value\\\",[30,3]]],[[\\\"@class\\\",\\\"@placeholder\\\",\\\"@update\\\",\\\"@number\\\",\\\"@format\\\",\\\"@disabled\\\"],[\\\"worker-cost-calculator__calculator-section-small-input\\\",\\\"0%\\\",[28,[37,2],[[28,[37,3],[[30,2,[\\\"value\\\"]]],null]],null],[30,2,[\\\"value\\\"]],\\\"percentage\\\",[28,[37,30],[[30,2,[\\\"enabled\\\"]]],null]]],null],[1,\\\"\\\\n                  \\\"]],[]],null]],[]]],[1,\\\"                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"td\\\"],[15,\\\"data-test-worker-cost-calculator-item-value-type\\\",[30,3]],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"isSystem\\\"]],[[[41,[28,[37,13],[[30,2,[\\\"valueType\\\"]],\\\"minutesPerDay\\\"],null],[[[1,\\\"                      \\\"],[1,[28,[35,5],[\\\"components.worker-cost-calculator.minutes per day\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,13],[[30,2,[\\\"valueType\\\"]],\\\"daysPerYear\\\"],null],[[[1,\\\"                      \\\"],[1,[28,[35,5],[\\\"components.worker-cost-calculator.days per year\\\"],null]],[1,\\\"\\\\n                    \\\"]],[]],null]],[]]]],[]],[[[1,\\\"                    \\\"],[8,[39,31],[[16,\\\"data-test-worker-cost-calculator-item-value-type-input\\\",[30,3]]],[[\\\"@class\\\",\\\"@value\\\",\\\"@action\\\",\\\"@disabled\\\"],[\\\"worker-cost-calculator__calculator-section-input\\\",[30,2,[\\\"valueType\\\"]],[28,[37,2],[[28,[37,32],[[28,[37,2],[[28,[37,3],[[30,2,[\\\"valueType\\\"]]],null]],null],[28,[37,2],[[28,[37,3],[[30,2,[\\\"value\\\"]]],null],0],null]],null]],null],[28,[37,30],[[30,2,[\\\"enabled\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                      \\\"],[8,[30,4,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"percentOfPayRate\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,5],[\\\"components.worker-cost-calculator.percentage of pay rate\\\"],null]]],[]]]]],[1,\\\"\\\\n                      \\\"],[8,[30,4,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"minutesPerDay\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,5],[\\\"components.worker-cost-calculator.minutes per day\\\"],null]]],[]]]]],[1,\\\"\\\\n                      \\\"],[8,[30,4,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"daysPerYear\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,5],[\\\"components.worker-cost-calculator.days per year\\\"],null]]],[]]]]],[1,\\\"\\\\n                    \\\"]],[4]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"enabled\\\"]],[[[1,\\\"                  \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[15,\\\"data-test-worker-cost-calculator-item-percentage\\\",[30,3]],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,22],[[30,2,[\\\"percentage\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[15,\\\"data-test-worker-cost-calculator-item-rate\\\",[30,3]],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,22],[[28,[37,33],[[30,2,[\\\"percentage\\\"]],\\\"*\\\",[30,0,[\\\"payRate\\\"]]],null]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[10,\\\"td\\\"],[14,0,\\\"text-center\\\"],[14,\\\"colspan\\\",\\\"2\\\"],[12],[1,[28,[35,5],[\\\"components.worker-cost-calculator.Not applicable\\\"],null]],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"td\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,2,[\\\"isSystem\\\"]]],[[[1,\\\"                      \\\"],[11,\\\"button\\\"],[24,5,\\\"font-size: 110%;\\\"],[24,0,\\\"text-button text-button--delete\\\"],[16,\\\"data-test-worker-cost-calculator-item-delete\\\",[30,3]],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,2],[[30,0,[\\\"deleteItem\\\"]],[30,2]],null]],null],[12],[8,[39,34],null,[[\\\"@icon\\\"],[\\\"trash\\\"]],null],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[1,\\\"                \\\"],[10,\\\"td\\\"],[12],[1,[30,2,[\\\"label\\\"]]],[13],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"enabled\\\"]],[[[1,\\\"                  \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,13],[[30,2,[\\\"valueType\\\"]],\\\"minutesPerDay\\\"],null],[[[1,\\\"                      \\\"],[1,[28,[35,24],[[30,2,[\\\"value\\\"]]],null]],[1,\\\"\\\\n                      \\\"],[1,[28,[35,5],[\\\"components.worker-cost-calculator.minutes per day\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,13],[[30,2,[\\\"valueType\\\"]],\\\"daysPerYear\\\"],null],[[[1,\\\"                      \\\"],[1,[30,2,[\\\"value\\\"]]],[1,\\\"\\\\n                      \\\"],[1,[28,[35,5],[\\\"components.worker-cost-calculator.days per year\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,13],[[30,2,[\\\"valueType\\\"]],\\\"percentOfPayRate\\\"],null],[[[1,\\\"                      \\\"],[1,[28,[35,22],[[30,2,[\\\"value\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]]],[1,\\\"\\\\n                    \\\"]],[]],null]],[]]]],[]]],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,22],[[30,2,[\\\"percentage\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,22],[[28,[37,33],[[30,2,[\\\"percentage\\\"]],\\\"*\\\",[30,0,[\\\"payRate\\\"]]],null]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"3\\\"],[14,0,\\\"text-center\\\"],[12],[1,[28,[35,5],[\\\"components.worker-cost-calculator.Not applicable\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[2,3]],null],[41,[30,0,[\\\"isEditing\\\"]],[[[1,\\\"            \\\"],[10,\\\"tr\\\"],[14,0,\\\"worker-cost-calculator-table__line--alt\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[14,0,\\\"text-center\\\"],[14,\\\"colspan\\\",\\\"7\\\"],[12],[1,\\\"\\\\n                \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--add button--spaced\\\"],[24,\\\"data-test-worker-cost-calculator-add-item\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[30,0,[\\\"addItem\\\"]]],null],[12],[1,[28,[35,5],[\\\"common.Add item\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"tfoot\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[14,0,\\\"worker-cost-calculator-table__line--alt worker-cost-calculator-table__footer\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"td\\\"],[15,\\\"colspan\\\",[52,[30,0,[\\\"isEditing\\\"]],\\\"5\\\",\\\"3\\\"]],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,22],[[30,0,[\\\"selectedCalculator\\\",\\\"extraCostPercentage\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[14,\\\"data-test-worker-cost-calculator-extras-rate\\\",\\\"\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,22],[[30,0,[\\\"extrasRate\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"td\\\"],[12],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[14,0,\\\"worker-cost-calculator-table__summary worker-cost-calculator-table__line--alt\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"td\\\"],[15,\\\"colspan\\\",[52,[30,0,[\\\"isEditing\\\"]],\\\"5\\\",\\\"3\\\"]],[14,0,\\\"text-right\\\"],[12],[1,[28,[35,5],[\\\"components.worker-cost-calculator.Worker pay rate\\\"],null]],[1,\\\":\\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,22],[[30,0,[\\\"payRate\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"td\\\"],[12],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[14,0,\\\"worker-cost-calculator-table__line--alt\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"td\\\"],[15,\\\"colspan\\\",[52,[30,0,[\\\"isEditing\\\"]],\\\"5\\\",\\\"3\\\"]],[14,0,\\\"text-right\\\"],[12],[1,[28,[35,5],[\\\"components.worker-cost-calculator.Calculated cost rate\\\"],null]],[1,\\\":\\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[14,\\\"data-test-worker-cost-calculator-cost-rate\\\",\\\"\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,22],[[30,0,[\\\"calculatedCost\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"td\\\"],[12],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"isEditing\\\"]]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"worker-cost-calculator__final-rate\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"strong\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,5],[\\\"components.worker-cost-calculator.Worker cost rate\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n           \\\\n          \\\"],[8,[39,21],[[24,\\\"data-test-worker-cost-calculator-cost-rate-input\\\",\\\"\\\"]],[[\\\"@class\\\",\\\"@format\\\",\\\"@number\\\",\\\"@update\\\"],[\\\"worker-cost-calculator__calculator-section-small-input\\\",\\\"currency\\\",[30,0,[\\\"workerCost\\\"]],[28,[37,2],[[28,[37,3],[[30,0,[\\\"workerCost\\\"]]],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[51,[28,[37,13],[[30,0,[\\\"workerCost\\\"]],[30,0,[\\\"calculatedCost\\\"]]],null]],[[[1,\\\"             \\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,\\\"data-test-worker-cost-calculator-use-calculated\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,2],[[28,[37,3],[[30,0,[\\\"workerCost\\\"]]],null],[30,0,[\\\"calculatedCost\\\"]]],null]],null],[12],[1,[28,[35,5],[\\\"components.worker-cost-calculator.Use calculated\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--plain button--spaced\\\"],[24,\\\"data-test-worker-cost-calculator-cancel\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,2],[[28,[37,3],[[30,0,[\\\"calculatorVisible\\\"]]],null],false],null]],null],[12],[1,[28,[35,5],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEditing\\\"]],[[[41,[51,[28,[37,39],[[28,[37,40],[[30,0,[\\\"_labourCostCalculators\\\",\\\"length\\\"]],1],null],[30,0,[\\\"selectedCalculator\\\",\\\"isNew\\\"]]],null]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--plain button--spaced\\\"],[24,\\\"data-test-worker-cost-calculator-cancel-edit\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[30,0,[\\\"cancelEditing\\\"]]],null],[12],[1,[28,[35,5],[\\\"components.worker-cost-calculator.Cancel editing\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[8,[39,16],[[24,\\\"data-test-worker-cost-calculator-save-calculator\\\",\\\"\\\"]],[[\\\"@class\\\",\\\"@action\\\",\\\"@isLoading\\\",\\\"@buttonText\\\"],[\\\"button float-end button--spaced\\\",[28,[37,14],[[30,0,[\\\"saveCalculator\\\"]]],null],[30,0,[\\\"saveCalculator\\\",\\\"isRunning\\\"]],[28,[37,5],[\\\"components.worker-cost-calculator.Save calculator\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"button float-end button--spaced\\\"],[24,\\\"data-test-worker-cost-calculator-set-worker-cost\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[30,0,[\\\"setWorkerCost\\\"]]],null],[12],[1,[28,[35,5],[\\\"components.worker-cost-calculator.Set worker cost rate\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link m-0 p-0 text-decoration-underline\\\"],[24,\\\"data-test-worker-cost-calculator-open-modal\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,2],[[28,[37,3],[[30,0,[\\\"calculatorVisible\\\"]]],null],true],null]],null],[12],[8,[39,34],null,[[\\\"@icon\\\"],[\\\"calculator\\\"]],null],[1,\\\" \\\"],[1,[28,[35,5],[\\\"components.worker-cost-calculator.Use calculator\\\"],null]],[13]],[\\\"labourCostCalculator\\\",\\\"item\\\",\\\"index\\\",\\\"si\\\"],false,[\\\"if\\\",\\\"modal-dialog\\\",\\\"fn\\\",\\\"mut\\\",\\\"p\\\",\\\"t\\\",\\\"div\\\",\\\"span\\\",\\\"input\\\",\\\"power-select\\\",\\\"button\\\",\\\"on\\\",\\\"unless\\\",\\\"eq\\\",\\\"perform\\\",\\\"gt\\\",\\\"loading-button\\\",\\\"table\\\",\\\"tbody\\\",\\\"tr\\\",\\\"td\\\",\\\"formatted-input\\\",\\\"number-format\\\",\\\"duration-input\\\",\\\"format-duration\\\",\\\"thead\\\",\\\"th\\\",\\\"each\\\",\\\"-track-array\\\",\\\"or\\\",\\\"not\\\",\\\"select-input\\\",\\\"pipe\\\",\\\"math\\\",\\\"fa-icon\\\",\\\"tfoot\\\",\\\"br\\\",\\\"strong\\\",\\\"footer\\\",\\\"and\\\",\\\"lte\\\"]]\",\n    \"moduleName\": \"portal/components/worker-cost-calculator.hbs\",\n    \"isStrictMode\": false\n  });\n  let WorkerCostCalculator = _exports.default = (_dec = (0, _object.computed)('payRate', 'selectedCalculator.extraCostPercentage', '_workerCost'), _dec2 = (0, _object.computed)('_labourCostCalculators', 'worker.entity'), _class = class WorkerCostCalculator extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"tagName\", '');\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"calculatorVisible\", _descriptor4, this);\n      _initializerDefineProperty(this, \"_labourCostCalculators\", _descriptor5, this);\n      _initializerDefineProperty(this, \"selectedCalculator\", _descriptor6, this);\n      _initializerDefineProperty(this, \"isEditing\", _descriptor7, this);\n      _initializerDefineProperty(this, \"_workerCost\", _descriptor8, this);\n      _defineProperty(this, \"saveCalculator\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.selectedCalculator.save();\n            // save the items after the calculator for relationship reasons\n            yield Promise.all(this.selectedCalculator.hasMany('items').value().toArray().map(item => item.save()));\n            this.notifications.success(this.intl.t('components.worker-cost-calculator.Calculator was saved successfully'));\n            this.isEditing = false;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('components.worker-cost-calculator.somethingWentWrongWhileSavingTheCalculator'),\n              error\n            });\n          }\n        }\n      }), null, \"saveCalculator\", null));\n      _defineProperty(this, \"setEntityDefault\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const entity = this.worker.belongsTo('entity').value();\n          entity.defaultLabourCostCalculator = this.selectedCalculator;\n          yield entity.save();\n        }\n      }), null, \"setEntityDefault\", null));\n      _defineProperty(this, \"deleteCalculator\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            this._labourCostCalculators.removeObject(this.selectedCalculator);\n            yield this.selectedCalculator.destroyRecord();\n            this.selectOrCreateDefault();\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('components.worker-cost-calculator.somethingWentWrongWhileDeletingTheTemplate'),\n              error\n            });\n          }\n        }\n      }), null, \"deleteCalculator\", null));\n    }\n    init() {\n      super.init(...arguments);\n      if (!['labourCostCalculators', 'worker'].every(attr => Object.keys(this.attrs).includes(attr))) {\n        throw new Error('You must provide [\"labourCostCalculators\", \"worker\"] props to this component');\n      }\n    }\n    get workerCost() {\n      const calculatedCost = this.payRate * (1 + this.selectedCalculator.extraCostPercentage);\n      const workerCost = this._workerCost ? this._workerCost : calculatedCost;\n      return Math.round(workerCost * 100) / 100;\n    }\n    set workerCost(rate) {\n      (0, _object.set)(this, '_workerCost', rate);\n      return rate;\n    }\n    get entityDefault() {\n      // the reference API does not work well with computed properties and glimmer tracking https://github.com/emberjs/data/issues/7102\n      const entity = (0, _object.get)(this, 'worker.entity');\n      return this._labourCostCalculators.findBy('id',\n      // the reference API does not work well with computed properties and glimmer tracking https://github.com/emberjs/data/issues/7102\n      (0, _object.get)(entity, 'defaultLabourCostCalculator.id'));\n    }\n    get calculatedCost() {\n      return this.payRate + this.extrasRate;\n    }\n    get extrasRate() {\n      const extrasRate = this.selectedCalculator.extraCostPercentage * this.payRate;\n      return Math.round(extrasRate * 100) / 100;\n    }\n    didInsertElement() {\n      super.didInsertElement(...arguments);\n      this._labourCostCalculators.push(...this.labourCostCalculators.toArray());\n      this.workerCost = this.worker.costRate;\n      this.selectOrCreateDefault();\n    }\n    selectOrCreateDefault() {\n      const entity = this.worker.belongsTo('entity').value();\n\n      // create entity cost rate if one does not exist\n      if (!this._labourCostCalculators.length) {\n        const newCalculator = this.createNewLabourCostCalculatorForRegion(entity);\n        (0, _object.set)(this, 'selectedCalculator', newCalculator);\n        this._labourCostCalculators.pushObject(this.selectedCalculator);\n        // force people to edit the new entity rate - you must save before continuing.\n        this.isEditing = true;\n      } else {\n        (0, _object.set)(this, 'selectedCalculator', this.worker.belongsTo('costCalculatorUsed').value() || this.entityDefault || this._labourCostCalculators[0]);\n      }\n    }\n    createNewLabourCostCalculatorForRegion(entity) {\n      let labourCostCalculator;\n      let labourCostCalculatorItems;\n      switch (entity.region) {\n        case 'NZL':\n          labourCostCalculator = _labourCostCalculatorFixtures.nzlLabourCostCalculator;\n          labourCostCalculatorItems = _labourCostCalculatorFixtures.nzlLabourCostCalculatorItems;\n          break;\n        case 'AUS':\n          labourCostCalculator = _labourCostCalculatorFixtures.ausLabourCostCalculator;\n          labourCostCalculatorItems = _labourCostCalculatorFixtures.ausLabourCostCalculatorItems;\n          break;\n        default:\n          labourCostCalculator = _labourCostCalculatorFixtures.defaultLabourCostCalculator;\n          labourCostCalculatorItems = _labourCostCalculatorFixtures.defaultLabourCostCalculatorItems;\n          break;\n      }\n\n      // create the new calculator\n      const newCalculator = this.store.createRecord('labour-cost-calculator', {\n        ...labourCostCalculator,\n        entity\n      });\n      // create the new calculator items\n      labourCostCalculatorItems.forEach(item => this.store.createRecord('labour-cost-calculator-item', {\n        ...item,\n        calculator: newCalculator,\n        entity\n      }));\n      return newCalculator;\n    }\n    cancelEditing() {\n      if (this.selectedCalculator.isNew) {\n        // discard the new record if it's not saved\n        this.selectedCalculator.hasMany('items').value().toArray().forEach(item => item.destroyRecord());\n        this.selectedCalculator.destroyRecord();\n        this._labourCostCalculators.removeObject(this.selectedCalculator);\n        this.selectOrCreateDefault();\n      } else {\n        // rollback the changes to the existing record\n        this.selectedCalculator.hasMany('items').value().toArray().forEach(item => item.rollbackAttributes());\n        this.selectedCalculator.rollbackAttributes();\n      }\n      this.isEditing = false;\n    }\n    addItem() {\n      this.store.createRecord('labour-cost-calculator-item', {\n        entity: this.worker.belongsTo('entity').value(),\n        calculator: this.selectedCalculator\n      });\n    }\n    toggleCalculatorProp(prop, event) {\n      this.selectedCalculator[prop] = !this.selectedCalculator[prop];\n      event.stopPropagation();\n    }\n    deleteItem(item) {\n      item.deleteRecord();\n    }\n    addCalculator() {\n      // This is a little hacky but seems to work ok as a way to clone all the attrs on\n      // an existing record.\n      const entity = this.worker.belongsTo('entity').value();\n      const clonedCalculator = {\n        label: this.selectedCalculator.label,\n        workingHoursPerDay: this.selectedCalculator.workingHoursPerDay,\n        workingDaysPerWeek: this.selectedCalculator.workingDaysPerWeek,\n        entity\n      };\n      const clonedItems = this.selectedCalculator.hasMany('items').value().toArray().map(item => ({\n        label: item.label,\n        valueType: item.valueType,\n        value: item.value,\n        enabled: item.enabled,\n        isSystem: item.isSystem,\n        entity\n      }));\n      const newCalculator = this.store.createRecord('labour-cost-calculator', {\n        ...clonedCalculator,\n        entity,\n        label: 'Labour cost calculator ' + (this._labourCostCalculators.length + 1)\n      });\n      clonedItems.forEach(item => {\n        this.store.createRecord('labour-cost-calculator-item', {\n          ...item,\n          calculator: newCalculator,\n          entity\n        });\n      });\n      this._labourCostCalculators.pushObject(newCalculator);\n      (0, _object.set)(this, 'selectedCalculator', newCalculator);\n      this.isEditing = true;\n    }\n    async setWorkerCost() {\n      this.worker.costRate = this.workerCost;\n      this.worker.costCalculatorUsed = this.selectedCalculator;\n      this.calculatorVisible = false;\n      if (typeof this.onSetWorkerCost === 'function') this.onSetWorkerCost();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"calculatorVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"_labourCostCalculators\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return (0, _array.A)([]);\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"selectedCalculator\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"isEditing\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"_workerCost\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"workerCost\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"workerCost\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"entityDefault\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"entityDefault\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"cancelEditing\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"cancelEditing\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addItem\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"addItem\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleCalculatorProp\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleCalculatorProp\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"deleteItem\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"deleteItem\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addCalculator\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"addCalculator\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setWorkerCost\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setWorkerCost\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, WorkerCostCalculator);\n});","define(\"portal/components/worker-project-allocation-modal\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/service\", \"ember-changeset\", \"moment\", \"portal/utils/profit-margin\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _object, _tracking, _service, _emberChangeset, _moment, _profitMargin, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _class2, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"@ember/object\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"ember-changeset\",0,\"moment\",0,\"portal/utils/profit-margin\",0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <ModalDialog\n    @translucentOverlay={{true}}\n    @onClose={{this.onClose}}\n    @overlayClass='modal'\n    @containerClass='block-module worker-project-allocation-modal__container'\n  >\n    <div {{did-insert (perform this.initWorkerProjectAllocations)}}></div>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <p>\n        {{t\n          'components.worker-project-allocation-modal.overrideWorkersChargeOutRateExplanation'\n        }}\n      </p>\n  \n      <div class='worker-project-allocation-modal__table-container'>\n        <table class='table'>\n          <thead>\n            <tr>\n              <th>{{t 'common.Worker'}}</th>\n              <th>\n                {{profit-type-label\n                  @project.effectiveProfitMargin.labourPercentage.type\n                  effective=true\n                }}\n              </th>\n              <th>{{t 'common.Charge-out rate'}}</th>\n              <th class='text-center'>{{t 'common.Action'}}</th>\n            </tr>\n          </thead>\n          <tbody class='table-group-divider'>\n            {{#each this.workerContainers as |wc|}}\n              {{! to avoid control jumping in edit mode }}\n              <tr style='height:57px'>\n                <td>{{wc.worker.fullName}}</td>\n                <td>\n                  {{number-format\n                    wc.effectiveProfitMargin\n                    style='percent'\n                    dashZero=false\n                    maximumFractionDigits=2\n                    minimumFractionDigits=2\n                  }}\n                  {{#if\n                    (and wc.hasActiveAllocation (not wc.worker.isContractor))\n                  }}\n                    <div>\n                      <button\n                        class='btn btn-link m-0 p-0 text-decoration-underline'\n                        {{on 'click' (fn this.setDefaultEffectiveMargin wc)}}\n                        type='button'\n                        style='font-size: 11px;'\n                      >\n                        {{concat\n                          (t 'common.Use default')\n                          ' '\n                          (number-format\n                            @project.effectiveProfitMargin.labourPercentage.value\n                            style='percent'\n                            dashZero=true\n                            maximumFractionDigits=2\n                            minimumFractionDigits=2\n                          )\n                        }}\n                      </button>\n                    </div>\n                  {{/if}}\n                </td>\n                <td>\n                  {{#if wc.hasActiveAllocation}}\n                    <FormattedInput\n                      @class='form-control'\n                      @format='currency'\n                      @number={{wc.allocation.chargeOutRate}}\n                      @update={{fn (mut wc.allocation.chargeOutRate)}}\n                    />\n                  {{else}}\n                    {{number-format\n                      wc.worker.chargeOutRate\n                      style='currency'\n                      dashZero=true\n                    }}\n                  {{/if}}\n                </td>\n                <td class='text-center'>\n                  {{#if wc.hasActiveAllocation}}\n                    <button\n                      type='button'\n                      class='btn btn-link'\n                      {{on 'click' (fn this.clearAllocation wc)}}\n                    >{{t 'common.Clear'}}</button>\n                  {{else}}\n                    <button\n                      type='button'\n                      class='btn btn-link'\n                      {{on 'click' (fn this.createAllocation wc)}}\n                    >{{t 'common.Override'}}</button>\n                  {{/if}}\n                </td>\n              </tr>\n            {{else}}\n              <tr>\n                <td class='text-center' colspan='4'>{{t\n                    'components.worker-project-allocation-modal.You have no active workers'\n                  }}</td>\n              </tr>\n            {{/each}}\n          </tbody>\n        </table>\n      </div>\n    {{/if}}\n  \n    <footer class='block-module__footer'>\n      <button\n        type='button'\n        class='btn btn-secondary text-white text-nowrap m-1'\n        {{on 'click' this.onClose}}\n        disabled={{this.isSaving}}\n      >\n        {{t 'common.Cancel'}}\n      </button>\n  \n      {{#unless this.isLoading}}\n        <div class='float-end d-flex align-items-center'>\n          <button\n            type='button'\n            class='btn btn-primary text-nowrap m-1'\n            {{on 'click' (perform this.save)}}\n            disabled={{this.isSaving}}\n          >\n            {{#if this.save.isRunning}}\n              {{t 'common.Saving'}}&hellip;\n            {{else}}\n              {{t 'common.Save'}}\n            {{/if}}\n          </button>\n          {{#if this.canApplyChargeOutRate}}\n            <button\n              type='button'\n              class='btn btn-primary text-nowrap m-1'\n              {{on 'click' this.initBackdateChangeset}}\n              disabled={{this.isSaving}}\n            >\n              {{t 'common.saveApply'}}\n            </button>\n          {{/if}}\n        </div>\n      {{/unless}}\n    </footer>\n  </ModalDialog>\n  \n  {{#if this.backdateChangeSet}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.backdateChangeSet) null}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body mt-2'>\n        <p>\n          {{t\n            'components.worker-project-allocation-modal.projectChangeChargeOutRateConfirm'\n          }}\n        </p>\n        <PtlInput\n          @type='date'\n          @key='startDate'\n          @label={{t\n            'components.worker-project-allocation-modal.Apply charge out rate from'\n          }}\n          @model={{this.backdateChangeSet}}\n          @forceValidationVisible={{gt this.saveAndApply.performCount 0}}\n          disabled={{this.saveAndApply.isRunning}}\n        />\n      </div>\n  \n      <div class='modal-footer d-flex'>\n        <div class='d-flex align-items-center'>\n          <button\n            class='btn btn-secondary text-white ms-2'\n            type='button'\n            disabled={{this.saveAndApply.isRunning}}\n            {{on 'click' (fn (mut this.backdateChangeSet) null)}}\n          >{{t 'common.Cancel'}}</button>\n          <button\n            type='button'\n            class='btn btn-primary ms-2'\n            disabled={{this.saveAndApply.isRunning}}\n            {{on 'click' (perform this.saveAndApply)}}\n          >\n            {{#if this.saveAndApply.isRunning}}\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t 'common.Applying'}}&hellip;\n            {{else}}\n              {{t 'common.Apply'}}\n            {{/if}}\n          </button>\n        </div>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"K+21SnWI\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@translucentOverlay\\\",\\\"@onClose\\\",\\\"@overlayClass\\\",\\\"@containerClass\\\"],[true,[30,0,[\\\"onClose\\\"]],\\\"modal\\\",\\\"block-module worker-project-allocation-modal__container\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[11,0],[4,[38,2],[[28,[37,3],[[30,0,[\\\"initWorkerProjectAllocations\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,5],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,2],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,7],[\\\"components.worker-project-allocation-modal.overrideWorkersChargeOutRateExplanation\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"worker-project-allocation-modal__table-container\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"table\\\"],[14,0,\\\"table\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,7],[\\\"common.Worker\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,12],[[30,1,[\\\"effectiveProfitMargin\\\",\\\"labourPercentage\\\",\\\"type\\\"]]],[[\\\"effective\\\"],[true]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,7],[\\\"common.Charge-out rate\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[14,0,\\\"text-center\\\"],[12],[1,[28,[35,7],[\\\"common.Action\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,\\\"tbody\\\"],[14,0,\\\"table-group-divider\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,15],[[28,[37,15],[[30,0,[\\\"workerContainers\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"tr\\\"],[14,5,\\\"height:57px\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,[30,2,[\\\"worker\\\",\\\"fullName\\\"]]],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,17],[[30,2,[\\\"effectiveProfitMargin\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",false,2,2]]]],[1,\\\"\\\\n\\\"],[41,[28,[37,18],[[30,2,[\\\"hasActiveAllocation\\\"]],[28,[37,19],[[30,2,[\\\"worker\\\",\\\"isContractor\\\"]]],null]],null],[[[1,\\\"                  \\\"],[10,0],[12],[1,\\\"\\\\n                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link m-0 p-0 text-decoration-underline\\\"],[24,5,\\\"font-size: 11px;\\\"],[24,4,\\\"button\\\"],[4,[38,21],[\\\"click\\\",[28,[37,22],[[30,0,[\\\"setDefaultEffectiveMargin\\\"]],[30,2]],null]],null],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,23],[[28,[37,7],[\\\"common.Use default\\\"],null],\\\" \\\",[28,[37,17],[[30,1,[\\\"effectiveProfitMargin\\\",\\\"labourPercentage\\\",\\\"value\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]]],null]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"hasActiveAllocation\\\"]],[[[1,\\\"                  \\\"],[8,[39,24],null,[[\\\"@class\\\",\\\"@format\\\",\\\"@number\\\",\\\"@update\\\"],[\\\"form-control\\\",\\\"currency\\\",[30,2,[\\\"allocation\\\",\\\"chargeOutRate\\\"]],[28,[37,22],[[28,[37,25],[[30,2,[\\\"allocation\\\",\\\"chargeOutRate\\\"]]],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[28,[35,17],[[30,2,[\\\"worker\\\",\\\"chargeOutRate\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"hasActiveAllocation\\\"]],[[[1,\\\"                  \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link\\\"],[24,4,\\\"button\\\"],[4,[38,21],[\\\"click\\\",[28,[37,22],[[30,0,[\\\"clearAllocation\\\"]],[30,2]],null]],null],[12],[1,[28,[35,7],[\\\"common.Clear\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link\\\"],[24,4,\\\"button\\\"],[4,[38,21],[\\\"click\\\",[28,[37,22],[[30,0,[\\\"createAllocation\\\"]],[30,2]],null]],null],[12],[1,[28,[35,7],[\\\"common.Override\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],[[[1,\\\"            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[14,0,\\\"text-center\\\"],[14,\\\"colspan\\\",\\\"4\\\"],[12],[1,[28,[35,7],[\\\"components.worker-project-allocation-modal.You have no active workers\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n  \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white text-nowrap m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isSaving\\\"]]],[24,4,\\\"button\\\"],[4,[38,21],[\\\"click\\\",[30,0,[\\\"onClose\\\"]]],null],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,7],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"isLoading\\\"]]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"float-end d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary text-nowrap m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isSaving\\\"]]],[24,4,\\\"button\\\"],[4,[38,21],[\\\"click\\\",[28,[37,3],[[30,0,[\\\"save\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"save\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,7],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,7],[\\\"common.Save\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canApplyChargeOutRate\\\"]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary text-nowrap m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isSaving\\\"]]],[24,4,\\\"button\\\"],[4,[38,21],[\\\"click\\\",[30,0,[\\\"initBackdateChangeset\\\"]]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,7],[\\\"common.saveApply\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"backdateChangeSet\\\"]],[[[1,\\\"  \\\"],[8,[39,0],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[28,[37,22],[[28,[37,25],[[30,0,[\\\"backdateChangeSet\\\"]]],null],null],null],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body mt-2\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,7],[\\\"components.worker-project-allocation-modal.projectChangeChargeOutRateConfirm\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,28],[[16,\\\"disabled\\\",[30,0,[\\\"saveAndApply\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@label\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"date\\\",\\\"startDate\\\",[28,[37,7],[\\\"components.worker-project-allocation-modal.Apply charge out rate from\\\"],null],[30,0,[\\\"backdateChangeSet\\\"]],[28,[37,29],[[30,0,[\\\"saveAndApply\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer d-flex\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveAndApply\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,21],[\\\"click\\\",[28,[37,22],[[28,[37,25],[[30,0,[\\\"backdateChangeSet\\\"]]],null],null],null]],null],[12],[1,[28,[35,7],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveAndApply\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,21],[\\\"click\\\",[28,[37,3],[[30,0,[\\\"saveAndApply\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveAndApply\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,7],[\\\"common.Applying\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,7],[\\\"common.Apply\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@project\\\",\\\"wc\\\"],false,[\\\"modal-dialog\\\",\\\"div\\\",\\\"did-insert\\\",\\\"perform\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"p\\\",\\\"t\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"profit-type-label\\\",\\\"tbody\\\",\\\"each\\\",\\\"-track-array\\\",\\\"td\\\",\\\"number-format\\\",\\\"and\\\",\\\"not\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"concat\\\",\\\"formatted-input\\\",\\\"mut\\\",\\\"footer\\\",\\\"unless\\\",\\\"ptl-input\\\",\\\"gt\\\",\\\"span\\\"]]\",\n    \"moduleName\": \"portal/components/worker-project-allocation-modal.hbs\",\n    \"isStrictMode\": false\n  });\n  let WorkerContainer = (_class = class WorkerContainer {\n    get hasActiveAllocation() {\n      return Boolean(this.allocation && !this.allocation.isDeleted);\n    }\n    constructor(worker, allocation, project) {\n      _initializerDefineProperty(this, \"worker\", _descriptor, this);\n      _initializerDefineProperty(this, \"allocation\", _descriptor2, this);\n      _initializerDefineProperty(this, \"project\", _descriptor3, this);\n      this.worker = worker;\n      this.allocation = allocation;\n      this.project = project;\n    }\n    get effectiveProfitMargin() {\n      const calculatedValue = (0, _profitMargin.calculatePercentage)(this.project.effectiveProfitMargin.labourPercentage.type, this.allocation?.costRate || this.worker.costRate, this.allocation?.chargeOutRate || this.worker.chargeOutRate);\n      return calculatedValue || this.project.effectiveProfitMargin.labourPercentage.value;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"worker\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"allocation\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"project\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class2 = class _class2 extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor4, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor5, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor6, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor7, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor8, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor9, this);\n      _initializerDefineProperty(this, \"workerContainers\", _descriptor0, this);\n      _initializerDefineProperty(this, \"backdateChangeSet\", _descriptor1, this);\n      _defineProperty(this, \"initWorkerProjectAllocations\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const [workers, allocations] = yield Promise.all([this.store.simpleQuery('worker', {\n            entity: this.sessionData.entity.id,\n            isActive: true\n          }).then(w => w.sortBy('fullName')).then(w => w.toArray()), this.store.simpleQuery('worker-job-allocation', {\n            project: this.args.project.id\n          }).then(a => a.toArray())]);\n          this.workerContainers = workers.map(worker => {\n            const allocation = allocations.find(a => a.belongsTo('worker').value() === worker);\n            return new WorkerContainer(worker, allocation, this.args.project);\n          });\n        }\n      }), null, \"initWorkerProjectAllocations\", null));\n      _defineProperty(this, \"validateContent\", ({\n        key,\n        newValue,\n        oldValue\n      }) => {\n        const value = newValue || oldValue;\n        if (key === 'startDate' && value) {\n          if (Date.parse(value) > Date.parse(new Date())) {\n            return this.intl.t('validation.startDateShouldBeBeforeToday');\n          }\n        }\n        return true;\n      });\n      _defineProperty(this, \"backdateMap\", {\n        startDate: this.validateContent,\n        endDate: this.validateContent\n      });\n      _defineProperty(this, \"save\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield Promise.all(this.workerContainers.map(wc => wc.allocation?.save()));\n            this.notifications.success(this.intl.t('components.worker-project-allocation-modal.Charge out rates saved'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('components.worker-project-allocation-modal.somethingWentWrongSavingChargeOutRates'),\n              error\n            });\n          }\n        }\n      }), null, \"save\", null));\n      _defineProperty(this, \"saveAndApply\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.backdateChangeSet.validate();\n            if (!this.backdateChangeSet.isValid) return;\n\n            // save the allocations first\n            const chargeOutRates = [];\n            yield Promise.all(this.workerContainers.map(async wc => {\n              if (!wc.allocation) return;\n              chargeOutRates.push({\n                workerId: wc.worker.id,\n                chargeOutRate: wc.allocation.chargeOutRate ?? wc.worker.chargeOutRate\n              });\n              // save the allocation\n              await wc.allocation.save();\n            }));\n\n            // perform the backdate\n            yield this.portalApi.authPost('/backdate-charge-out-rates', {\n              entityId: this.sessionData.entity.id,\n              projectIds: [this.args.project.id],\n              chargeOutRates,\n              startDate: this.backdateChangeSet.startDate ? (0, _moment.default)(this.backdateChangeSet.startDate).format('YYYY-MM-DD') : undefined\n            });\n            this.backdateChangeSet = null;\n            this.notifications.success(this.intl.t('components.worker-project-allocation-modal.Charge out rates saved and applied'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('components.worker-project-allocation-modal.somethingWentWrongApplyingChargeOutRates'),\n              error\n            });\n          }\n        }\n      }), null, \"saveAndApply\", null));\n    }\n    get canApplyChargeOutRate() {\n      return this.newFeatureFlags.includesFeatureFlags(this.args.project, 'canUseBackdateChargeOutRate');\n    }\n    get isLoading() {\n      return this.initWorkerProjectAllocations.isRunning;\n    }\n    get isSaving() {\n      return this.save.isRunning || this.saveAndApply.isRunning;\n    }\n    clearAllocation(wc) {\n      if (wc.allocation.isNew) {\n        const allocation = wc.allocation;\n        wc.allocation = null;\n        allocation.unloadRecord();\n        return;\n      }\n\n      // To trigger tracked property in WorkerContainer\n      wc.allocation.chargeOutRate = wc.worker.chargeOutRate;\n      wc.allocation.deleteRecord();\n    }\n    setDefaultEffectiveMargin(wc) {\n      const calculatedValue = (0, _profitMargin.calculateValue)(this.args.project.effectiveProfitMargin.labourPercentage.type, wc.worker.costRate, this.args.project.effectiveProfitMargin.labourPercentage.value);\n      wc.allocation.chargeOutRate = calculatedValue;\n    }\n    createAllocation(wc) {\n      if (wc.allocation?.isDeleted) {\n        wc.allocation.rollbackAttributes();\n        return;\n      }\n      if (!wc.allocation) wc.allocation = this.store.createRecord('worker-job-allocation', {\n        worker: wc.worker,\n        project: this.args.project,\n        chargeOutRate: wc.worker.chargeOutRate,\n        entity: this.sessionData.entity\n      });\n    }\n    onClose() {\n      this.workerContainers.forEach(wc => wc.allocation?.rollbackAttributes());\n      this.args.onClose();\n    }\n    initBackdateChangeset() {\n      this.backdateChangeSet = (0, _emberChangeset.Changeset)({\n        startDate: null\n      }, this.validateContent, this.backdateMap);\n    }\n  }, _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"workerContainers\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"backdateChangeSet\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"clearAllocation\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"clearAllocation\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setDefaultEffectiveMargin\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setDefaultEffectiveMargin\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"createAllocation\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"createAllocation\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onClose\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onClose\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"initBackdateChangeset\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"initBackdateChangeset\"), _class2.prototype), _class2));\n});","define(\"portal/controllers/admin\", [\"exports\", \"@ember/controller\"], function (_exports, _controller) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\"eaimeta@70e063a35619d71f\n  class _default extends _controller.default {}\n  _exports.default = _default;\n});","define(\"portal/controllers/admin/announcements\", [\"exports\", \"@ember/controller\"], function (_exports, _controller) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\"eaimeta@70e063a35619d71f\n  class _default extends _controller.default {}\n  _exports.default = _default;\n});","define(\"portal/controllers/admin/announcements/announcement\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"@glimmer/tracking\", \"@ember/object\", \"moment\"], function (_exports, _asyncArrowRuntime, _controller, _service, _tracking, _object, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"moment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n      _initializerDefineProperty(this, \"showPreviewModal\", _descriptor3, this);\n      _defineProperty(this, \"chargebeePlanOptions\", [{\n        name: 'Builda Price CAL Education',\n        id: 'builda-price-cal-education-AUD-Monthly'\n      }, {\n        name: 'Builda Price One Australia',\n        id: 'builda-price-one-aus-AUD-Monthly'\n      }, {\n        name: 'Builda Price One New Zealand',\n        id: 'builda-price-one-nzl-NZD-Monthly'\n      }, {\n        name: 'Builda Price One UK',\n        id: 'builda-price-one-uk-GBP-Monthly'\n      }, {\n        name: 'Builda Price One USA',\n        id: 'builda-price-one-USA-USD-Monthly'\n      }, {\n        name: 'Builda Price Pro Australia',\n        id: 'builda-price-pro-australia'\n      }, {\n        name: 'Builda Price Pro New Zealand',\n        id: 'Builda-Price-Pro-New-Zealand-NZD-Monthly'\n      }, {\n        name: 'Builda Price Pro TradiePad',\n        id: 'Builda-Price-Pro-TradiePad-Australia-AUD-Monthly'\n      }, {\n        name: 'Builda Price Pro UK',\n        id: 'Builda-Price-Pro-UK-GBP-Monthly'\n      }, {\n        name: 'Builda Price Pro USA',\n        id: 'builda-price-pro-usa-usd-monthly'\n      }, {\n        name: 'Builda Price Standard New Zealand',\n        id: 'Builda-Price-Standard-New-Zealand-NZD-Monthly'\n      }, {\n        name: 'Builda Price Student Australia',\n        id: 'Builda-Price-Education-AUS-AUD-Every-6-months'\n      }, {\n        name: 'Builda Price Subcontractor Australia',\n        id: 'Builda-Price-Subcontractor-Australia-AUD-Monthly'\n      }, {\n        name: 'Builda Price Subcontractor New Zealand',\n        id: 'Builda-Price-Subcontractor-New-Zealand-NZD-Monthly'\n      }]);\n      _defineProperty(this, \"languages\", [{\n        label: 'All languages',\n        value: null\n      }, {\n        label: 'English',\n        value: 'en'\n      }, {\n        label: 'Chinese',\n        value: 'zh'\n      }]);\n      _initializerDefineProperty(this, \"_entityAttributes\", _descriptor4, this);\n      _initializerDefineProperty(this, \"_userAttributes\", _descriptor5, this);\n      _initializerDefineProperty(this, \"_requiredChargebeePlans\", _descriptor6, this);\n      _initializerDefineProperty(this, \"_excludedChargebeePlans\", _descriptor7, this);\n      _defineProperty(this, \"saveAnnouncement\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          yield changeset.validate();\n          if (changeset.isInvalid) return;\n          const isValidAttributes = this.entityAttributes.length && this.userAttributes.length;\n          if (!isValidAttributes) {\n            this.notifications.warning('Please select at least one entity and user attribute.');\n            return;\n          }\n          try {\n            changeset.execute();\n            const isNew = this.announcement.isNew;\n            const entityAttributeIds = this.entityAttributes.map(item => item.id);\n            const userAttributeIds = this.userAttributes.map(item => item.id);\n            const requiredChargebeePlanIds = this.requiredChargebeePlans.map(item => item.id);\n            const excludedChargebeePlanIds = this.excludedChargebeePlans.map(item => item.id);\n            if (!changeset.validFrom) {\n              changeset.validFrom = (0, _moment.default)().toDate();\n            }\n            if (!changeset.validUntil) {\n              changeset.validUntil = (0, _moment.default)(changeset.validFrom).add(30, 'days').toDate();\n            }\n            changeset.entityAttributes = entityAttributeIds;\n            changeset.userAttributes = userAttributeIds;\n            changeset.excludedChargebeePlans = excludedChargebeePlanIds;\n            changeset.requiredChargebeePlans = requiredChargebeePlanIds;\n            const announcement = yield changeset.save();\n            if (isNew) {\n              this.router.transitionTo('admin.announcements.announcement', announcement.id);\n            }\n            this.notifications.success('Details saved successfully');\n          } catch (error) {\n            this.notifications.error({\n              message: 'Something went wrong saving the announcement',\n              error\n            });\n          }\n        }\n      }), null, \"saveAnnouncement\", null));\n      _defineProperty(this, \"deleteAnnouncement\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          try {\n            yield changeset.destroyRecord();\n            this.router.transitionTo('admin.announcements');\n            this.notifications.success('Announcement deleted successfully');\n          } catch (error) {\n            this.notifications.error('Something went wrong while deleting announcement', error);\n          }\n        }\n      }), null, \"deleteAnnouncement\", null));\n      _defineProperty(this, \"initProps\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          this.entityAttributes = (this.announcement.entityAttributes || []).map(id => this.model.entityAttributes.last.value.find(e => e.id === id));\n          this.userAttributes = (this.announcement.userAttributes || []).map(id => this.model.userAttributes.last.value.find(e => e.id === id));\n          this.requiredChargebeePlans = (this.announcement.requiredChargebeePlans || []).map(id => this.chargebeePlanOptions.find(e => e.id === id));\n          this.excludedChargebeePlans = (this.announcement.excludedChargebeePlans || []).map(id => this.chargebeePlanOptions.find(e => e.id === id));\n        }\n      }), null, \"initProps\", null));\n      _defineProperty(this, \"BUILDA_PRICE_PRESETS\", ['canUseBuildaPrice']);\n      _defineProperty(this, \"FINANCIAL_PORTAL_PRESETS\", ['canUseFinancialReporting']);\n      _defineProperty(this, \"ENTITY_MANAGER_PRESETS\", ['canManageEntity']);\n      _defineProperty(this, \"ENTITY_USER_PRESETS\", ['canViewEntity']);\n    }\n    get isLoading() {\n      return this.model.announcement.isRunning || this.model.announcementChangeset.isRunning || this.model.entityAttributes.isRunning || this.model.userAttributes.isRunning;\n    }\n    get sortedChargebeePlans() {\n      return this.chargebeePlanOptions.sort((a, b) => a.name.localeCompare(b.name));\n    }\n    get announcement() {\n      return this.model.announcement.last.value;\n    }\n    get announcementChangeset() {\n      return this.model.announcementChangeset.last.value;\n    }\n    get crumbStack() {\n      const paths = [{\n        route: 'admin.announcements',\n        pageTitle: 'Announcements'\n      }, {\n        route: this.model.basePath,\n        pageTitle: this.announcement.isNew ? 'New Announcement' : this.model.announcement.last.value.title\n      }];\n      return paths;\n    }\n    get entityAttributes() {\n      if (this._entityAttributes) return this._entityAttributes;\n      return this._entityAttributes?.length ? this.model.entityAttributes.last.value.filter(p => this._entityAttributes.includes(p.id)) : [];\n    }\n    set entityAttributes(value) {\n      this._entityAttributes = value;\n    }\n    get userAttributes() {\n      if (this._userAttributes) return this._userAttributes;\n      return this._userAttributes?.length ? this.model.userAttributes.last.value.filter(p => this._userAttributes.includes(p.id)) : [];\n    }\n    set userAttributes(value) {\n      this._userAttributes = value;\n    }\n    get requiredChargebeePlans() {\n      if (this._requiredChargebeePlans) return this._requiredChargebeePlans;\n      return this._requiredChargebeePlans?.length ? this.chargebeePlanOptions.filter(p => this._requiredChargebeePlans.includes(p.id)) : [];\n    }\n    set requiredChargebeePlans(value) {\n      this._requiredChargebeePlans = value;\n    }\n    get excludedChargebeePlans() {\n      if (this._excludedChargebeePlans) return this._excludedChargebeePlans;\n      return this._excludedChargebeePlans?.length ? this.chargebeePlanOptions.filter(p => this._excludedChargebeePlans.includes(p.id)) : [];\n    }\n    set excludedChargebeePlans(value) {\n      this._excludedChargebeePlans = value;\n    }\n    handleMessageChange(value) {\n      this.announcementChangeset.message = value;\n    }\n    get hasBuildaPriceFeatures() {\n      let ids = this.entityAttributes.map(a => a.id);\n      return this.BUILDA_PRICE_PRESETS.every(p => ids.includes(p));\n    }\n    get hasFinancialPortalFeatures() {\n      let ids = this.entityAttributes.map(a => a.id);\n      return this.FINANCIAL_PORTAL_PRESETS.every(p => ids.includes(p));\n    }\n    get hasEntityManagerFeatures() {\n      let ids = this.userAttributes.map(a => a.id);\n      return this.ENTITY_MANAGER_PRESETS.every(p => ids.includes(p));\n    }\n    get hasEntityUserFeatures() {\n      let ids = this.userAttributes.map(a => a.id);\n      return this.ENTITY_USER_PRESETS.every(p => ids.includes(p));\n    }\n    setBuildaPriceFeatures() {\n      let allAttributes = this.model.entityAttributes.last.value;\n      let attributesToAdd = allAttributes.filter(a => this.BUILDA_PRICE_PRESETS.includes(a.id) && !this.entityAttributes.find(u => u.id === a.id));\n      this.entityAttributes = [...this.entityAttributes, ...attributesToAdd];\n    }\n    setFinancialPortalFeatures() {\n      let allAttributes = this.model.entityAttributes.last.value;\n      let attributesToAdd = allAttributes.filter(a => this.FINANCIAL_PORTAL_PRESETS.includes(a.id) && !this.entityAttributes.find(u => u.id === a.id));\n      this.entityAttributes = [...this.entityAttributes, ...attributesToAdd];\n    }\n    setEntityManagerFeatures() {\n      let allAttributes = this.model.userAttributes.last.value;\n      let attributesToAdd = allAttributes.filter(a => this.ENTITY_MANAGER_PRESETS.includes(a.id) && !this.userAttributes.find(u => u.id === a.id));\n      this.userAttributes = [...this.userAttributes, ...attributesToAdd];\n    }\n    setEntityUserFeatures() {\n      let allAttributes = this.model.userAttributes.last.value;\n      let attributesToAdd = allAttributes.filter(a => this.ENTITY_USER_PRESETS.includes(a.id) && !this.userAttributes.find(u => u.id === a.id));\n      this.userAttributes = [...this.userAttributes, ...attributesToAdd];\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"showPreviewModal\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"_entityAttributes\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"_userAttributes\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"_requiredChargebeePlans\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_excludedChargebeePlans\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"handleMessageChange\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"handleMessageChange\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setBuildaPriceFeatures\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setBuildaPriceFeatures\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setFinancialPortalFeatures\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setFinancialPortalFeatures\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setEntityManagerFeatures\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setEntityManagerFeatures\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setEntityUserFeatures\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setEntityUserFeatures\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/admin/announcements/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/object\", \"@ember/service\", \"@glimmer/tracking\", \"portal/config/environment\", \"ember-concurrency\"], function (_exports, _asyncArrowRuntime, _controller, _object, _service, _tracking, _environment, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/object\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"portal/config/environment\",0,\"ember-concurrency\",0,\"ember-concurrency\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _initializerDefineProperty(this, \"pageNumber\", _descriptor3, this);\n      _initializerDefineProperty(this, \"pageSize\", _descriptor4, this);\n      _initializerDefineProperty(this, \"sortBy\", _descriptor5, this);\n      _initializerDefineProperty(this, \"sortDirection\", _descriptor6, this);\n      _initializerDefineProperty(this, \"searchTerm\", _descriptor7, this);\n      _defineProperty(this, \"queryParams\", ['pageSize', 'pageNumber', 'sortBy', 'sortDirection', 'searchTerm']);\n      _defineProperty(this, \"onChangeSearchTerm\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          yield (0, _emberConcurrency.timeout)(_environment.default.debounceTimeMs);\n          this.searchTerm = e.target.value.trim();\n          this.pageNumber = 1;\n        }\n      }), {\n        restartable: true\n      }, \"onChangeSearchTerm\", null));\n    }\n    get isLoading() {\n      return this.model.announcements.lastSuccessful === null && this.model.announcements.isRunning;\n    }\n    get totalRecords() {\n      return this.model.announcements.lastSuccessful.value.meta?.totalRecords || 0;\n    }\n    get announcementsTableHeader() {\n      if (this.model.announcements.isRunning) return [];\n      return [{\n        value: 'Title',\n        colClass: ' text-left'\n      }, {\n        value: 'Valid from',\n        colClass: 'text-left'\n      }, {\n        value: 'Valid until',\n        colClass: 'text-left'\n      }, {\n        value: 'Is visible',\n        colClass: 'text-center align-middle'\n      }];\n    }\n    get announcements() {\n      return this.model.announcements.lastSuccessful.value?.toArray() || [];\n    }\n    get announcementsTableData() {\n      if (this.model.announcements.isRunning) return [];\n      const todaysDate = new Date();\n      return this.announcements.map(announcement => {\n        const isCurrentlyVisible = (!announcement.validFrom || new Date(announcement.validFrom) <= todaysDate) && (!announcement.validUntil || new Date(announcement.validUntil) >= todaysDate);\n        const announcementsData = [{\n          type: 'BUTTON',\n          textClass: 'btn btn-link',\n          value: announcement.title,\n          onClickButton: this.onClickAnnouncement,\n          extraData: {\n            announcement\n          }\n        }, {\n          colClass: 'text-left align-middle',\n          value: announcement.validFrom ? this.intl.formatDate(announcement.validFrom, {\n            year: 'numeric',\n            month: '2-digit',\n            day: '2-digit',\n            hour: '2-digit',\n            minute: '2-digit',\n            hour12: false,\n            locale: 'en-NZ'\n          }) : '&mdash;'\n        }, {\n          colClass: 'text-left align-middle',\n          value: announcement.validUntil ? this.intl.formatDate(announcement.validUntil, {\n            year: 'numeric',\n            month: '2-digit',\n            day: '2-digit',\n            hour: '2-digit',\n            minute: '2-digit',\n            hour12: false,\n            locale: 'en-NZ'\n          }) : '&mdash;'\n        }, {\n          colClass: 'text-center align-middle',\n          value: isCurrentlyVisible ? 'Yes' : 'No',\n          class: 'text-muted'\n        }];\n        return {\n          rowData: announcementsData\n        };\n      });\n    }\n    onChangePage(pageNumber) {\n      this.pageNumber = pageNumber;\n    }\n    onChangePageSize(pageSize) {\n      this.pageSize = pageSize;\n    }\n    createNewAnnouncement() {\n      this.router.transitionTo('admin.announcements.announcement', 'new');\n    }\n    onClickAnnouncement(_row, col) {\n      this.router.transitionTo('admin.announcements.announcement', col.extraData.announcement.id);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"pageNumber\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"pageSize\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"sortBy\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"sortDirection\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"searchTerm\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"onChangePage\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onChangePage\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onChangePageSize\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onChangePageSize\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"createNewAnnouncement\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"createNewAnnouncement\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onClickAnnouncement\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onClickAnnouncement\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/admin/billing-report\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@glimmer/tracking\", \"@ember/service\", \"moment\"], function (_exports, _asyncArrowRuntime, _controller, _tracking, _service, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@glimmer/tracking\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"moment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor2, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor3, this);\n      _initializerDefineProperty(this, \"data\", _descriptor4, this);\n      _defineProperty(this, \"sites\", [{\n        label: 'Builda Price',\n        value: 'buildaPrice'\n      }, {\n        label: 'Step Up',\n        value: 'stepUp'\n      }]);\n      _defineProperty(this, \"validationMap\", {\n        startDate: this.validator.bind(this),\n        endDate: this.validator.bind(this)\n      });\n      _defineProperty(this, \"generateReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          yield changeset.validate();\n          if (changeset.isInvalid) return;\n          try {\n            changeset.execute();\n            yield this.buildaPrice.generateAdminBillingReport({\n              startDate: changeset.startDate,\n              endDate: changeset.endDate,\n              siteId: changeset.site\n            });\n            yield new Promise(resolve => setTimeout(resolve, 3000));\n            this.notifications.success({\n              message: 'Report being generated. Check your email soon.'\n            }, 5000);\n          } catch (err) {\n            this.notifications.error({\n              message: 'Failed to generate report.'\n            });\n          }\n        }\n      }), null, \"generateReport\", null));\n      this.data = {\n        site: 'buildaPrice',\n        startDate: undefined,\n        endDate: undefined\n      };\n    }\n    validator(key, newValue, oldValue, changes, content) {\n      if (key === 'startDate') {\n        const startDate = newValue || content.startDate;\n        if (!startDate) return 'Please provide a start date';\n        const endDate = changes.endDate || content.endDate;\n        if (!endDate) return true;\n        return (0, _moment.default)(newValue).isSameOrBefore(endDate) || 'Start date must be earlier than the end date';\n      }\n      if (key === 'endDate') {\n        const endDate = newValue || content.endDate;\n        if (!endDate) return 'Please provide an end date';\n        const startDate = changes.startDate || content.startDate;\n        if (!startDate) return true;\n        return (0, _moment.default)(newValue).isSameOrAfter(startDate) || 'End date must be after the start date';\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"data\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _class2);\n});","define(\"portal/controllers/admin/entities\", [\"exports\", \"@ember/controller\"], function (_exports, _controller) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\"eaimeta@70e063a35619d71f\n  class _default extends _controller.default {}\n  _exports.default = _default;\n});","define(\"portal/controllers/admin/entities/entity\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"@glimmer/tracking\", \"ember-changeset\", \"portal/utils/email-validator\", \"@ember/object\", \"portal/utils/platform\"], function (_exports, _asyncArrowRuntime, _controller, _service, _tracking, _emberChangeset, _emailValidator, _object, _platform) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"ember-changeset\",0,\"portal/utils/email-validator\",0,\"@ember/object\",0,\"portal/utils/platform\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const validateContent = ({\n    key,\n    newValue,\n    oldValue\n  }) => {\n    const value = newValue || oldValue;\n    switch (key) {\n      case 'firstName':\n        return value.length > 1 || 'Please provide a first name';\n      case 'lastName':\n        return value.length > 0 || 'Please provide a last name';\n      case 'email':\n        return (0, _emailValidator.default)(value) || 'Please provide a valid email';\n      case 'phoneNumber':\n        return true;\n      default:\n        break;\n    }\n  };\n  const userValidationMap = {\n    firstName: validateContent,\n    lastName: validateContent,\n    email: validateContent,\n    phoneNumber: validateContent\n  };\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"session\", _descriptor2, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor3, this);\n      _initializerDefineProperty(this, \"router\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n      _initializerDefineProperty(this, \"openInviteUserModal\", _descriptor6, this);\n      _initializerDefineProperty(this, \"userChangeSet\", _descriptor7, this);\n      _defineProperty(this, \"regions\", [{\n        value: 'AUS',\n        label: 'AUS'\n      }, {\n        value: 'GBR',\n        label: 'GBR'\n      }, {\n        value: 'NZL',\n        label: 'NZL'\n      }, {\n        value: 'USA',\n        label: 'USA'\n      }]);\n      _defineProperty(this, \"allFeatures\", ['canUseBills', 'canUseBudgetReport', 'canUseBuildaPrice', 'canUseCarters', 'canUseChargeupReport', 'canUseClientPortal', 'canUseClientReport', 'canUseCostReport', 'canUseCrystalPayroll', 'canUseCsvTaskFileUploader', 'canUseDashboards', 'canUseEstimates', 'canUseFileStorage', 'canUseFinancialReporting', 'canUseForecastReport', 'canUseGeofencing', 'canUseHealthAndSafety', 'canUseInvoicing', 'canUseInvoicingReport', 'canUseIPS', 'canUseKeypay', 'canUseLabourHoursReport', 'canUseNotes', 'canUsePlaceMakers', 'canUsePositionReport', 'canUseProducts', 'canUseProfitMarginsReport', 'canUseProjectFinancials', 'canUseProjectProgress', 'canUsePurchaseOrders', 'canUseQuoteReport', 'canUseScheduling', 'canUseSmartPayroll', 'canUseStagePayments', 'canUseStatements', 'canUseSupport', 'canUseTimesheets', 'canUseWIPReport']);\n      _initializerDefineProperty(this, \"_showBuildaPriceFeatures\", _descriptor8, this);\n      _initializerDefineProperty(this, \"_showFinancialPortalFeatures\", _descriptor9, this);\n      _initializerDefineProperty(this, \"_showGeneralFeatures\", _descriptor0, this);\n      _initializerDefineProperty(this, \"_showProjectFeatures\", _descriptor1, this);\n      _initializerDefineProperty(this, \"_showReportFeatures\", _descriptor10, this);\n      _initializerDefineProperty(this, \"_showAllocationsFeatures\", _descriptor11, this);\n      _initializerDefineProperty(this, \"_showSchedulingFeatures\", _descriptor12, this);\n      _defineProperty(this, \"initChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          this.userChangeSet = (0, _emberChangeset.Changeset)({\n            firstName: '',\n            lastName: '',\n            email: '',\n            phoneNumber: ''\n          }, validateContent, userValidationMap);\n        }\n      }), null, \"initChangeset\", null));\n      _defineProperty(this, \"inviteUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          yield changeset.validate();\n          if (changeset.isInvalid) return;\n          try {\n            const {\n              newUserId\n            } = yield this.buildaPrice.inviteUser({\n              firstName: changeset.firstName,\n              lastName: changeset.lastName,\n              email: changeset.email,\n              phoneNumber: changeset.phoneNumber,\n              entity: this.model.entity.last.value.id\n            }, this.featuresChangeset.canUseBuildaPrice, this.featuresChangeset.canUseFinancialReporting);\n            // make the user company admin\n            const [user, manageAttribute] = yield Promise.all([this.store.findRecord('user', newUserId), this.store.findRecord('user-attribute', 'canManageEntity')]);\n            yield this.store.createRecord('user-entity-attribute', {\n              entity: this.model.entity.last.value,\n              user,\n              attribute: manageAttribute\n            }).save();\n            this.openInviteUserModal = false;\n            this.notifications.success('Successfully invited user');\n          } catch (error) {\n            this.notifications.error({\n              message: 'Something went wrong while inviting user',\n              error\n            });\n          }\n        }\n      }), null, \"inviteUser\", null));\n      _defineProperty(this, \"saveFeatures\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeSet) {\n          changeSet.execute();\n          try {\n            yield this.buildaPrice.updateCompanyFeatures(this.model.entity.last.value.id, changeSet.data);\n            this.notifications.success('Successfully saved features');\n          } catch (error) {\n            this.notifications.error({\n              message: 'Something went wrong while updating features',\n              error\n            });\n          }\n        }\n      }), null, \"saveFeatures\", null));\n      _defineProperty(this, \"saveEntity\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          yield changeset.validate();\n          if (changeset.isInvalid) return;\n          try {\n            changeset.execute();\n            const isNew = this.entity.isNew;\n            const entity = yield changeset.save();\n            if (isNew) {\n              this.router.transitionTo('admin.entities.entity', entity.id);\n            }\n            this.notifications.success('Details saved successfully');\n          } catch (error) {\n            this.notifications.error({\n              message: 'Something went wrong saving the entity',\n              error\n            });\n          }\n        }\n      }), null, \"saveEntity\", null));\n    }\n    get brands() {\n      const brands = [];\n      for (const brand of Object.values(_platform.BRANDING)) if (brand.entityBrandEnum) brands.push({\n        value: brand.entityBrandEnum,\n        label: brand.brand\n      });\n      return brands;\n    }\n    get crumbStack() {\n      const paths = [{\n        route: 'admin.entities',\n        pageTitle: 'Entities'\n      }, {\n        route: this.model.basePath,\n        pageTitle: this.entity.isNew ? 'New Entity' : this.model.entity.last.value.name\n      }];\n      return paths;\n    }\n    get isLoading() {\n      return this.model.entity.isRunning || this.model.entityChangeset.isRunning || this.model.entities.isRunning || this.model.featuresChangeset.isRunning;\n    }\n    get entity() {\n      return this.model.entity.last.value;\n    }\n    get buildaPricePermissionsCount() {\n      let count = this.generalFeaturesCount + this.schedulingFeaturesCount + this.allocationsFeaturesCount + this.projectsFeaturesCount + this.reportsFeaturesCount;\n      if (this.featuresChangeset.canUseBuildaPrice) count = count + 1;\n      return count;\n    }\n    get FinancialPortalPermissionsCount() {\n      let count = 0;\n      if (this.featuresChangeset.canUseFinancialReporting) count = count + 1;\n      return count;\n    }\n    get showBuildaPriceFeatures() {\n      if (this._showBuildaPriceFeatures != null) return this._showBuildaPriceFeatures;\n      return this.featuresChangeset.canUseBuildaPrice;\n    }\n    set showBuildaPriceFeatures(value) {\n      this._showBuildaPriceFeatures = value;\n    }\n    get showFinancialPortalFeatures() {\n      if (this._showFinancialPortalFeatures != null) return this._showFinancialPortalFeatures;\n      return this.featuresChangeset.canUseFinancialReporting;\n    }\n    set showFinancialPortalFeatures(value) {\n      this._showFinancialPortalFeatures = value;\n    }\n    get featuresChangeset() {\n      return this.model.featuresChangeset.last.value;\n    }\n    get noFeatures() {\n      return !this.generalFeaturesCount && !this.schedulingFeaturesCount && !this.allocationsFeaturesCount && !this.projectsFeaturesCount && !this.reportsFeaturesCount && !this.featuresChangeset.canUseFinancialReporting && !this.featuresChangeset.canUseBuildaPrice;\n    }\n    clearAllFeatures() {\n      const changeSetData = this.featuresChangeset.get('pendingData');\n      Object.keys(changeSetData).forEach(key => {\n        this.featuresChangeset.set(key, false);\n      });\n    }\n    setAllFeatures() {\n      const changeSetData = this.featuresChangeset.get('pendingData');\n      Object.keys(changeSetData).forEach(key => {\n        if (this.allFeatures.includes(key)) {\n          this.featuresChangeset.set(key, true);\n        } else {\n          this.featuresChangeset.set(key, false);\n        }\n      });\n    }\n    get hasAllFeatures() {\n      const changeSetData = this.featuresChangeset.get('pendingData');\n      return Object.entries(changeSetData).every(([key, value]) => this.allFeatures.includes(key) && value || !this.allFeatures.includes(key) && !value);\n    }\n    get generalFeaturesCount() {\n      return [this.featuresChangeset.canUseDashboards, this.featuresChangeset.canUseFileStorage, this.featuresChangeset.canUseHealthAndSafety, this.featuresChangeset.canUseClientPortal, this.featuresChangeset.canUseIPS, this.featuresChangeset.canUsePlaceMakers, this.featuresChangeset.canUseCarters, this.featuresChangeset.canUseSupport, this.featuresChangeset.canUseGeofencing].filter(attribute => attribute).length;\n    }\n    get showGeneralFeatures() {\n      if (this._showGeneralFeatures != null) return this._showGeneralFeatures;\n      return this.generalFeaturesCount > 0;\n    }\n    set showGeneralFeatures(value) {\n      this._showGeneralFeatures = value;\n    }\n    get projectsFeaturesCount() {\n      return [this.featuresChangeset.canUseProjectFinancials, this.featuresChangeset.canUseProjectProgress, this.featuresChangeset.canUseCsvTaskFileUploader, this.featuresChangeset.canUseProducts, this.featuresChangeset.canUseEstimates, this.featuresChangeset.canUseStagePayments].filter(attribute => attribute).length;\n    }\n    get showProjectFeatures() {\n      if (this._showProjectFeatures != null) return this._showProjectFeatures;\n      return this.projectsFeaturesCount > 0;\n    }\n    set showProjectFeatures(value) {\n      this._showProjectFeatures = value;\n    }\n    get reportsFeaturesCount() {\n      return [this.featuresChangeset.canUseWIPReport, this.featuresChangeset.canUseForecastReport, this.featuresChangeset.canUseProfitMarginsReport, this.featuresChangeset.canUseLabourHoursReport, this.featuresChangeset.canUseBudgetReport, this.featuresChangeset.canUseQuoteReport, this.featuresChangeset.canUseCostReport, this.featuresChangeset.canUseChargeupReport, this.featuresChangeset.canUsePositionReport, this.featuresChangeset.canUseInvoicingReport, this.featuresChangeset.canUseClientReport].filter(attribute => attribute).length;\n    }\n    get showReportFeatures() {\n      if (this._showReportFeatures != null) return this._showReportFeatures;\n      return this.reportsFeaturesCount > 0;\n    }\n    set showReportFeatures(value) {\n      this._showReportFeatures = value;\n    }\n    get allocationsFeaturesCount() {\n      return [this.featuresChangeset.canUseTimesheets, this.featuresChangeset.canUseCrystalPayroll, this.featuresChangeset.canUseSmartPayroll, this.featuresChangeset.canUseKeypay, this.featuresChangeset.canUseNotes, this.featuresChangeset.canUseBills, this.featuresChangeset.canUseStatements, this.featuresChangeset.canUsePurchaseOrders, this.featuresChangeset.canUseInvoicing].filter(attribute => attribute).length;\n    }\n    get showAllocationFeatures() {\n      if (this._showAllocationsFeatures != null) return this._showAllocationsFeatures;\n      return this.allocationsFeaturesCount > 0;\n    }\n    set showAllocationFeatures(value) {\n      this._showAllocationsFeatures = value;\n    }\n    get schedulingFeaturesCount() {\n      return [this.featuresChangeset.canUseScheduling].filter(attribute => attribute).length;\n    }\n    get showSchedulingFeatures() {\n      if (this._showSchedulingFeatures != null) return this._showSchedulingFeatures;\n      return this.schedulingFeaturesCount > 0;\n    }\n    set showSchedulingFeatures(value) {\n      this._showSchedulingFeatures = value;\n    }\n    get parentEntityOptions() {\n      return this.model.entities.last.value.filter(e => e !== this.model.entity.last.value);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"openInviteUserModal\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"userChangeSet\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"_showBuildaPriceFeatures\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"_showFinancialPortalFeatures\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"clearAllFeatures\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"clearAllFeatures\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setAllFeatures\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setAllFeatures\"), _class2.prototype), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"_showGeneralFeatures\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"_showProjectFeatures\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"_showReportFeatures\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"_showAllocationsFeatures\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"_showSchedulingFeatures\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/controllers/admin/entities/index\", [\"exports\", \"@ember/controller\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\"], function (_exports, _controller, _tracking, _object, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor2, this);\n      _defineProperty(this, \"pageSizes\", [30, 50, 100]);\n      _initializerDefineProperty(this, \"pageSize\", _descriptor3, this);\n      _initializerDefineProperty(this, \"pageIndex\", _descriptor4, this);\n    }\n    goNewEntity() {\n      this.router.transitionTo('admin.entities.entity', 'new');\n    }\n    get isLoading() {\n      return this.model.entities.isRunning;\n    }\n    get entityTableHeader() {\n      if (this.model.entities.isRunning) return [];\n      const entityHeader = [{\n        value: 'Name',\n        colClass: ' text-left'\n      }, {\n        value: 'Parent company name',\n        colClass: ' text-left'\n      }, {\n        value: 'Region',\n        colClass: 'text-left'\n      }, {\n        value: 'Subscription plan',\n        colClass: 'text-left'\n      }, {\n        value: 'Brand',\n        colClass: 'text-left'\n      }];\n      return entityHeader;\n    }\n    get entityTableData() {\n      if (this.model.entities.isRunning) return [];\n      return this.paginationData.map(entity => {\n        const entityData = [{\n          type: 'BUTTON',\n          textClass: 'btn btn-link',\n          value: entity.name,\n          onClickButton: this.onClickEntityName,\n          extraData: {\n            entity\n          }\n        }, {\n          colClass: 'text-left align-middle',\n          value: entity?.belongsTo('parent')?.value()?.name ?? ' — '\n        }, {\n          colClass: 'text-left align-middle',\n          value: entity?.region ?? ' — '\n        }, {\n          colClass: 'text-left align-middle',\n          value: entity?.cbPlanId ?? ' — '\n        }, {\n          colClass: 'text-left align-middle',\n          value: entity?.brand ?? ' — '\n        }];\n        return {\n          rowData: entityData\n        };\n      });\n    }\n    onChangePageIndex(pageIndex) {\n      this.pageIndex = pageIndex;\n    }\n    onChangePageSize(pageSize) {\n      this.pageSize = pageSize;\n    }\n    get totalRecords() {\n      if (this.model.entities.isRunning) return 0;\n      return this.filteredEntities.length;\n    }\n    get entities() {\n      return this.model.entities.last.value || [];\n    }\n    get filteredEntities() {\n      const searchString = this.searchString;\n      const allEntities = this.entities;\n      if (!searchString.length) return allEntities;\n      const searchExp = new RegExp(this.searchString, 'i');\n      return allEntities.filter(entity => `${entity.name || ''}${entity.region || ''}\n        ${entity.cbPlanId || ''}${entity.brand || ''}\n        ${entity.belongsTo('parent')?.value()?.name || ''}`.match(searchExp));\n    }\n    get paginationData() {\n      const offset = Math.max(0, (this.pageIndex - 1) * this.pageSize);\n      const limit = offset + this.pageSize;\n      const paginationData = this.filteredEntities.slice(offset, limit);\n      return paginationData;\n    }\n    onClickEntityName(_row, col) {\n      this.router.transitionTo('admin.entities.entity', col.extraData.entity.id);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"pageSize\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.pageSizes[0];\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"pageIndex\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 1;\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"goNewEntity\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"goNewEntity\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onChangePageIndex\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onChangePageIndex\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onChangePageSize\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onChangePageSize\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onClickEntityName\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onClickEntityName\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/admin/licensees/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"@glimmer/tracking\", \"ember-changeset\", \"portal/utils/email-validator\", \"portal/config/environment\", \"@ember/object\"], function (_exports, _asyncArrowRuntime, _controller, _service, _tracking, _emberChangeset, _emailValidator, _environment, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"ember-concurrency\",0,\"ember-changeset\",0,\"portal/utils/email-validator\",0,\"portal/config/environment\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const validateContent = ({\n    key,\n    newValue,\n    oldValue\n  }) => {\n    const value = newValue || oldValue;\n    switch (key) {\n      case 'firstName':\n        return value.length > 1 || 'Please provide a first name';\n      case 'licenseeName':\n        return value.length > 3 || 'Please provide a licensee name';\n      case 'lastName':\n        return value.length > 0 || 'Please provide a last name';\n      case 'email':\n        return (0, _emailValidator.default)(value) || 'Please provide a valid email';\n      default:\n        break;\n    }\n  };\n  const licenseeValidationMap = {\n    firstName: validateContent,\n    lastName: validateContent,\n    email: validateContent,\n    licenseeName: validateContent\n  };\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"session\", _descriptor3, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor4, this);\n      _initializerDefineProperty(this, \"showCreateLicenseeModal\", _descriptor5, this);\n      _initializerDefineProperty(this, \"licenseeChangeset\", _descriptor6, this);\n      _initializerDefineProperty(this, \"userList\", _descriptor7, this);\n      _initializerDefineProperty(this, \"usersCurrentPage\", _descriptor8, this);\n      _initializerDefineProperty(this, \"hasNextUsersPage\", _descriptor9, this);\n      _initializerDefineProperty(this, \"userFilter\", _descriptor0, this);\n      _defineProperty(this, \"recordPageSize\", 10);\n      _defineProperty(this, \"debounceTime\", _environment.default.debounceTimeMs);\n      _defineProperty(this, \"initChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          this.licenseeChangeset = (0, _emberChangeset.Changeset)({\n            licenseeName: '',\n            firstName: '',\n            lastName: '',\n            email: '',\n            customers: ''\n          }, validateContent, licenseeValidationMap);\n\n          // Reset combo-box user search state\n          this.userList = [];\n          this.usersCurrentPage = 0;\n          this.hasNextUsersPage = false;\n        }\n      }), null, \"initChangeset\", null));\n      _defineProperty(this, \"createNewLicensee\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          const partnerFinancialPortalEntityId = '5f88bd41bcf03b06f0878ddd';\n          try {\n            yield changeset.validate();\n            if (!changeset.isValid) return;\n            yield changeset.execute();\n            const body = {\n              user: {\n                email: changeset.email,\n                firstName: changeset.firstName,\n                lastName: changeset.lastName\n              },\n              // the admin user pojo for the new partner entity\n              parentId: partnerFinancialPortalEntityId,\n              // the parent id for the new partner entity\n              partnerName: changeset.licenseeName,\n              // the name of the new partner entity\n              customerIds: (changeset?.customers || []).map(({\n                id\n              }) => id),\n              // the entity ids of each customer\n              callback: _environment.default.urls.app + '/reset-password',\n              // the callback url for the reset password route\n              appURL: _environment.default.urls.app // the base app url\n            };\n            const {\n              partnerId\n            } = yield registerPartnerAjax(body, this.session.data.authenticated.access_token);\n            this.notifications.success('Successfully created new Licensee.');\n            this.router.transitionTo('admin.licensees.licensee', partnerId);\n            this.showCreateLicenseeModal = false;\n            this.licenseeChangeset = null;\n          } catch (error) {\n            this.notifications.error('Something went wrong while creating licensee', error);\n          }\n        }\n      }), null, \"createNewLicensee\", null));\n      _defineProperty(this, \"fetchUsers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const isFirstPageFetch = this.usersCurrentPage === 0;\n          try {\n            const users = yield this.store.query('user', {\n              filter: this.userFilter,\n              page: {\n                size: this.recordPageSize,\n                number: this.usersCurrentPage + 1\n              },\n              orderBy: 'firstName,lastName'\n            });\n            const current = users?.meta?.currentPage ?? 1;\n            const total = users?.meta?.totalPages ?? 1;\n            const payload = users?.toArray ? users.toArray() : users?.data || [];\n            this.usersCurrentPage = current;\n            this.hasNextUsersPage = current < total;\n            if (isFirstPageFetch) {\n              this.userList = payload;\n            } else {\n              this.userList = [...this.userList, ...payload];\n            }\n          } catch (error) {\n            this.usersCurrentPage = 0;\n            this.hasNextUsersPage = false;\n            this.userList = [];\n            this.notifications.error('Something went wrong loading more users', error);\n          }\n        }\n      }), null, \"fetchUsers\", null));\n      _defineProperty(this, \"onSearchUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (searchTerm) {\n          // Reset paging and list on a new search term\n          this.usersCurrentPage = 0;\n          this.userList = [];\n          if (searchTerm.length) {\n            this.userFilter.or = [{\n              field: 'firstName',\n              op: 'ILIKE',\n              value: searchTerm\n            }, {\n              field: 'lastName',\n              op: 'ILIKE',\n              value: searchTerm\n            }, {\n              field: 'email',\n              op: 'ILIKE',\n              value: searchTerm\n            }];\n          } else {\n            this.userFilter.or = [];\n          }\n          yield this.fetchUsers.perform();\n        }\n      }), null, \"onSearchUser\", null));\n    }\n    get isLoading() {\n      return this.model.entities.lastSuccessful === null && this.model.entities.isRunning;\n    }\n    get entities() {\n      return this.model.entities.lastSuccessful?.value || [];\n    }\n    get unclaimedEntities() {\n      const entities = this.entities;\n      return entities.filter(item => !item.belongsTo('partner').id() && !entityIsPartner(item) && !entityIsClaimed(item));\n    }\n    get tableHeader() {\n      return [{\n        value: 'Licensee',\n        colClass: ' text-left'\n      }, {\n        value: 'Customers',\n        colClass: 'text-left'\n      }];\n    }\n    get tableData() {\n      const licensees = [];\n      const customerNamesByLicensee = new Map();\n      for (const e of this.entities) {\n        const pid = e.belongsTo('partner').id();\n        if (pid) {\n          if (!customerNamesByLicensee.has(pid)) customerNamesByLicensee.set(pid, []);\n          customerNamesByLicensee.get(pid).push(e.name);\n        } else if (entityIsPartner(e)) {\n          licensees.push(e);\n          if (!customerNamesByLicensee.has(e.id)) customerNamesByLicensee.set(e.id, []);\n        }\n      }\n      licensees.sort((a, b) => a.name.localeCompare(b.name));\n      return licensees.map(licensee => {\n        const customersList = (customerNamesByLicensee.get(licensee.id) || []).join(', ');\n        const licenseeData = [{\n          type: 'BUTTON',\n          textClass: 'btn btn-link text-nowrap',\n          value: licensee.name,\n          onClickButton: this.onClickLicenseeName,\n          extraData: {\n            licensee\n          }\n        }, {\n          colClass: 'text-left align-middle',\n          value: customersList.length ? customersList : '&mdash;'\n        }];\n        return {\n          rowData: licenseeData\n        };\n      });\n    }\n    onClickLicenseeName(_row, col) {\n      this.router.transitionTo('admin.licensees.licensee', col.extraData.licensee.id);\n    }\n    setUser(user) {\n      this.licenseeChangeset.set('email', user.email || '');\n      this.licenseeChangeset.set('email', user.firstName || '');\n      this.licenseeChangeset.set('email', user.lastName || '');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"showCreateLicenseeModal\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"licenseeChangeset\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"userList\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"usersCurrentPage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"hasNextUsersPage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"userFilter\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return {\n        and: [{\n          field: 'role',\n          op: 'NE',\n          value: 'admin'\n        }]\n      };\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"onClickLicenseeName\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onClickLicenseeName\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setUser\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setUser\"), _class2.prototype), _class2);\n  function entityIsPartner(entity) {\n    return entity.includesClaims('canUsePartner');\n  }\n  function entityIsClaimed(entity) {\n    return Boolean(entity.belongsTo('partner').value());\n  }\n  async function registerPartnerAjax(payload, token) {\n    const url = `${_environment.default.urls.api}${_environment.default.urls.apiV1Path}/partner-registrations`;\n    const response = await fetch(url, {\n      method: 'POST',\n      headers: {\n        'Content-Type': 'application/json',\n        Authorization: `Bearer ${token}`\n      },\n      body: JSON.stringify(payload)\n    });\n    if (!response.ok) {\n      return response.json().then(err => {\n        throw err;\n      });\n    }\n    return response.json();\n  }\n});","define(\"portal/controllers/admin/licensees/licensee\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@glimmer/tracking\", \"@ember/service\", \"@ember/object\", \"ember-changeset\", \"portal/utils/email-validator\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _tracking, _service, _object, _emberChangeset, _emailValidator, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"@ember/object\",0,\"ember-changeset\",0,\"portal/utils/email-validator\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const validateContent = ({\n    key,\n    newValue,\n    oldValue\n  }) => {\n    const value = newValue || oldValue;\n    switch (key) {\n      case 'firstName':\n        return value.length > 1 || 'Please provide a first name';\n      case 'lastName':\n        return value.length > 0 || 'Please provide a last name';\n      case 'email':\n        return (0, _emailValidator.default)(value) || 'Please provide a valid email';\n      default:\n        break;\n    }\n  };\n  const licenseeValidationMap = {\n    firstName: validateContent,\n    lastName: validateContent,\n    email: validateContent\n  };\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor3, this);\n      _initializerDefineProperty(this, \"session\", _descriptor4, this);\n      _initializerDefineProperty(this, \"showAddNewCustomerModal\", _descriptor5, this);\n      _initializerDefineProperty(this, \"newCustomersToAdd\", _descriptor6, this);\n      _initializerDefineProperty(this, \"showAddNewLicenseeModal\", _descriptor7, this);\n      _initializerDefineProperty(this, \"licenseeChangeset\", _descriptor8, this);\n      _initializerDefineProperty(this, \"selectedUser\", _descriptor9, this);\n      _initializerDefineProperty(this, \"userList\", _descriptor0, this);\n      _initializerDefineProperty(this, \"usersCurrentPage\", _descriptor1, this);\n      _initializerDefineProperty(this, \"hasNextUsersPage\", _descriptor10, this);\n      _initializerDefineProperty(this, \"userFilter\", _descriptor11, this);\n      _defineProperty(this, \"recordPageSize\", 10);\n      _defineProperty(this, \"debounceTime\", _environment.default.debounceTimeMs);\n      _defineProperty(this, \"initChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          this.licenseeChangeset = (0, _emberChangeset.Changeset)({\n            licenseeName: '',\n            firstName: '',\n            lastName: '',\n            email: '',\n            customers: ''\n          }, validateContent, licenseeValidationMap);\n        }\n      }), null, \"initChangeset\", null));\n      _defineProperty(this, \"addNewCustomerToLicensee\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield Promise.all(this.newCustomersToAdd.map(item => {\n              item.partner = this.model.licensee.lastSuccessful.value;\n              return item.save();\n            }));\n            yield this.model.entities.perform();\n            this.showAddNewCustomerModal = false;\n            this.newCustomersToAdd = null;\n            this.notifications.success('Successfully associated new customer/s.');\n          } catch (error) {\n            this.notifications.error('Something went wrong while associating customers', error);\n          }\n        }\n      }), null, \"addNewCustomerToLicensee\", null));\n      _defineProperty(this, \"fetchUsers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const isFirstPageFetch = this.usersCurrentPage === 0;\n          try {\n            const users = yield this.store.query('user', {\n              filter: this.userFilter,\n              page: {\n                size: this.recordPageSize,\n                number: this.usersCurrentPage + 1\n              },\n              orderBy: 'firstName,lastName'\n            });\n            const current = users?.meta?.currentPage ?? 1;\n            const total = users?.meta?.totalPages ?? 1;\n            const payload = users?.toArray ? users.toArray() : users?.data || [];\n            this.usersCurrentPage = current;\n            this.hasNextUsersPage = current < total;\n            if (isFirstPageFetch) {\n              this.userList = payload;\n            } else {\n              this.userList = [...this.userList, ...payload];\n            }\n          } catch (error) {\n            this.usersCurrentPage = 0;\n            this.hasNextUsersPage = false;\n            this.userList = [];\n            this.notifications.error('Something went wrong loading users', error);\n          }\n        }\n      }), null, \"fetchUsers\", null));\n      _defineProperty(this, \"onSearchUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (searchTerm) {\n          // Reset paging and list on a new search term\n          this.usersCurrentPage = 0;\n          this.userList = [];\n          if (searchTerm.length) {\n            this.userFilter.or = [{\n              field: 'firstName',\n              op: 'ILIKE',\n              value: searchTerm\n            }, {\n              field: 'lastName',\n              op: 'ILIKE',\n              value: searchTerm\n            }, {\n              field: 'email',\n              op: 'ILIKE',\n              value: searchTerm\n            }];\n          } else {\n            this.userFilter.or = [];\n          }\n          yield this.fetchUsers.perform();\n        }\n      }), null, \"onSearchUser\", null));\n      _defineProperty(this, \"addNewLicenseeUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.licenseeChangeset.validate();\n            if (!this.licenseeChangeset.isValid) return;\n            yield this.licenseeChangeset.execute();\n            const {\n              email,\n              firstName,\n              lastName\n            } = this.licenseeChangeset;\n            const activeUser = this.selectedUser ? this.selectedUser : yield this.store.createRecord('user', {\n              email,\n              firstName,\n              lastName,\n              role: 'partner'\n            }).save();\n            const attribute = yield this.store.findRecord('user-attribute', 'canManageEntity');\n            yield this.store.createRecord('user-entity-attribute', {\n              entity: this.model.licensee.lastSuccessful.value,\n              user: activeUser,\n              attribute\n            }).save();\n            activeUser.role = 'partner';\n            yield activeUser.save();\n            if (!this.selectedUser) {\n              const accessToken = this.session.data.authenticated.access_token;\n              yield sendPartnerInviteAjax({\n                firstName,\n                lastName,\n                email,\n                entity: this.model.licensee.lastSuccessful.value.id\n              }, accessToken);\n            }\n            this.notifications.success('Successfully added a new user');\n            yield this.model.users.perform(this.model.licensee.lastSuccessful.value.id);\n            this.showAddNewLicenseeModal = false;\n            this.licenseeChangeset = null;\n            this.selectedUser = null;\n          } catch (error) {\n            this.notifications.error({\n              message: 'Something went wrong while adding the user',\n              error\n            });\n          }\n        }\n      }), null, \"addNewLicenseeUser\", null));\n    }\n    get isLoading() {\n      return this.model.licensee.lastSuccessful === null && this.model.licensee.isRunning || this.model.entities.lastSuccessful === null && this.model.entities.isRunning || this.model.users.lastSuccessful === null && this.model.users.isRunning;\n    }\n    get crumbStack() {\n      const paths = [{\n        route: 'admin.licensees',\n        pageTitle: 'Licensees'\n      }, {\n        route: this.model.basePath,\n        pageTitle: this.model.licensee.lastSuccessful.value.name\n      }];\n      return paths;\n    }\n    get tableHeader() {\n      return [{\n        value: 'Company name',\n        colClass: 'text-left col-11'\n      }, {\n        value: '',\n        colClass: 'col-1'\n      }];\n    }\n    get tableData() {\n      const currentLicenseeCustomers = this.model.entities.lastSuccessful.value.filter(item => item.belongsTo('partner').id() === this.model.licensee.lastSuccessful.value.id);\n      return currentLicenseeCustomers.map(entity => {\n        const licenseeData = [{\n          colClass: 'text-left align-middle text-nowrap col-11',\n          value: entity.name\n        }, {\n          type: 'BUTTON',\n          textClass: 'btn btn-link text-danger text-nowrap text-decoration-underline',\n          value: 'Remove',\n          onClickButton: this.removeCustomerFromLicensee,\n          extraData: {\n            entity\n          }\n        }];\n        return {\n          rowData: licenseeData\n        };\n      });\n    }\n    get usersTableHeader() {\n      return [{\n        value: 'Email',\n        colClass: 'text-left col-11'\n      }, {\n        value: '',\n        colClass: 'col-1'\n      }];\n    }\n    get usersTableData() {\n      return this.model.users.lastSuccessful.value.map(user => {\n        const userData = [{\n          colClass: 'text-left align-middle text-nowrap col-11',\n          value: user.email\n        }, {\n          type: 'BUTTON',\n          textClass: 'btn btn-link text-danger text-nowrap text-decoration-underline',\n          value: 'Remove',\n          onClickButton: this.removeLicenseeUser,\n          extraData: {\n            user\n          }\n        }];\n        return {\n          rowData: userData\n        };\n      });\n    }\n    get unclaimedEntities() {\n      const entities = this.model.entities.lastSuccessful.value;\n      return entities.filter(item => !item.belongsTo('partner').id() && !entityIsPartner(item) && !entityIsClaimed(item));\n    }\n    async removeCustomerFromLicensee(_row, col) {\n      try {\n        const entity = col.extraData.entity;\n        entity.partner = null;\n        await entity.save();\n        await this.model.entities.perform();\n        this.notifications.success('Successfully removed customer.');\n      } catch (error) {\n        this.notifications.error('Something went wrong while removing customer', error);\n      }\n    }\n    setUser(user) {\n      this.licenseeChangeset.set('email', user.email || '');\n      this.licenseeChangeset.set('firstName', user.firstName || '');\n      this.licenseeChangeset.set('lastName', user.lastName || '');\n      this.selectedUser = user;\n    }\n    async removeLicenseeUser(_row, col) {\n      try {\n        const parterEntityAttribute = await this.store.query('user-entity-attribute', {\n          filter: {\n            and: [{\n              field: 'user',\n              op: 'EQ',\n              value: col.extraData.user.id\n            }, {\n              field: 'attribute',\n              op: 'EQ',\n              value: 'canManageEntity'\n            }, {\n              field: 'entity',\n              op: 'EQ',\n              value: this.model.licensee.lastSuccessful.value.id\n            }]\n          }\n        });\n        if (parterEntityAttribute.length) await parterEntityAttribute.toArray()[0].destroyRecord();\n        this.notifications.success('User removed successfully');\n        await this.model.users.perform(this.model.licensee.lastSuccessful.value.id);\n      } catch (error) {\n        this.notifications.error({\n          message: 'Something went wrong while removing the user',\n          error\n        });\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"showAddNewCustomerModal\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"newCustomersToAdd\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"showAddNewLicenseeModal\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"licenseeChangeset\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"selectedUser\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"userList\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"usersCurrentPage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"hasNextUsersPage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"userFilter\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return {\n        and: [{\n          field: 'role',\n          op: 'NE',\n          value: 'admin'\n        }]\n      };\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"removeCustomerFromLicensee\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"removeCustomerFromLicensee\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setUser\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setUser\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"removeLicenseeUser\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"removeLicenseeUser\"), _class2.prototype), _class2);\n  function entityIsPartner(entity) {\n    return entity.includesClaims('canUsePartner');\n  }\n  function entityIsClaimed(entity) {\n    return Boolean(entity.belongsTo('partner').value());\n  }\n  async function sendPartnerInviteAjax(payload, token) {\n    const url = `${_environment.default.urls.api}${_environment.default.urls.apiV1Path}/invite-user/partner`;\n    const response = await fetch(url, {\n      method: 'POST',\n      headers: {\n        'Content-Type': 'application/json',\n        Authorization: `Bearer ${token}`\n      },\n      body: JSON.stringify({\n        ...payload,\n        callback: `${_environment.default.urls.app}/reset-password`,\n        appURL: _environment.default.urls.app\n      })\n    });\n    if (!response.ok) {\n      return response.json().then(err => {\n        throw err;\n      });\n    }\n    return response.json();\n  }\n});","define(\"portal/controllers/application\", [\"exports\", \"@ember/controller\", \"@ember/service\"], function (_exports, _controller, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let ApplicationController = _exports.default = (_class = class ApplicationController extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"chargebee\", _descriptor3, this);\n      _initializerDefineProperty(this, \"invoicedCosts\", _descriptor4, this);\n    }\n    init() {\n      super.init(...arguments);\n      window.addEventListener('message', this.notifications.handleWindowMessage, false);\n    }\n    willDestroyElement() {\n      window.removeEventListener('message', this.notifications.handleWindowMessage, false);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"chargebee\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"invoicedCosts\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"portal/controllers/complete-registration-cb\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"@ember/object\", \"@glimmer/tracking\", \"jquery\", \"portal/config/environment\", \"portal/utils/email-validator\"], function (_exports, _asyncArrowRuntime, _controller, _service, _object, _tracking, _jquery, _environment, _emailValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"ember-concurrency\",0,\"jquery\",0,\"portal/config/environment\",0,\"portal/utils/email-validator\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const APP_ADDRESS = _environment.default.urls.app;\n  const SERVER_REGISTRATION_ENDPOINT = `${_environment.default.urls.api}${_environment.default.urls.apiV2Path}/chargebee/complete-registration-cb`;\n  const SERVER_RESEND_EMAIL = `${_environment.default.urls.api}${_environment.default.urls.apiV2Path}/chargebee/resend-email-registration-cb`;\n  const SERVER_CHANGE_EMAIL = `${_environment.default.urls.api}${_environment.default.urls.apiV2Path}/chargebee/change-email-registration-cb`;\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"platform\", _descriptor2, this);\n      _initializerDefineProperty(this, \"confirmEmailCode\", _descriptor3, this);\n      _initializerDefineProperty(this, \"password\", _descriptor4, this);\n      _initializerDefineProperty(this, \"passwordCheck\", _descriptor5, this);\n      _initializerDefineProperty(this, \"showValidation\", _descriptor6, this);\n      _initializerDefineProperty(this, \"registrationError\", _descriptor7, this);\n      _initializerDefineProperty(this, \"registrationComplete\", _descriptor8, this);\n      _initializerDefineProperty(this, \"showChangeEmailModal\", _descriptor9, this);\n      _initializerDefineProperty(this, \"showNewEmailValidation\", _descriptor0, this);\n      _initializerDefineProperty(this, \"newEmail\", _descriptor1, this);\n      _defineProperty(this, \"resendEmail\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            const payload = {\n              appAddress: APP_ADDRESS,\n              token: this.token\n            };\n            yield new Promise((resolve, reject) => {\n              // eslint-disable-next-line ember/no-jquery\n              _jquery.default.ajax({\n                url: SERVER_RESEND_EMAIL,\n                method: 'POST',\n                contentType: 'application/json',\n                data: JSON.stringify(payload)\n              }).then(resolve, reject);\n            });\n            this.notifications.success('Success, please check your inbox in a few moments');\n          } catch (error) {\n            this.notifications.error({\n              error,\n              message: 'Something went wrong, please contact support.'\n            });\n          }\n        }\n      }), {\n        drop: true\n      }, \"resendEmail\", null));\n      _defineProperty(this, \"changeEmail\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            if (!this.newEmailIsValid) {\n              this.notifications.info('You must supply a valid address');\n              this.showNewEmailValidation = true;\n              return;\n            }\n            if (this.newEmail.toLowerCase() === this.model.registrationData.value.email.toLowerCase()) {\n              this.notifications.info('New address must be different to the existing address.');\n              return;\n            }\n            const payload = {\n              appAddress: APP_ADDRESS,\n              token: this.token,\n              email: this.newEmail\n            };\n            yield new Promise((resolve, reject) => {\n              // eslint-disable-next-line ember/no-jquery\n              _jquery.default.ajax({\n                url: SERVER_CHANGE_EMAIL,\n                method: 'POST',\n                contentType: 'application/json',\n                data: JSON.stringify(payload)\n              }).then(resolve, reject);\n            });\n            this.notifications.success('Success, please check your inbox in a few moments');\n            this.showChangeEmailModal = false;\n            this.newEmail = '';\n            this.send('refreshRegistrationData');\n          } catch (error) {\n            this.notifications.error({\n              error,\n              message: 'Something went wrong. Please contact support.'\n            });\n          }\n        }\n      }), {\n        drop: true\n      }, \"changeEmail\", null));\n      _defineProperty(this, \"sendPasswordReset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const url = _environment.default.urls.api + _environment.default.urls.apiV1Path + '/auth/initiate-password-reset';\n          const callback = _environment.default.urls.app + '/reset-password';\n          const payload = {\n            callback,\n            email: this.model.registrationData.value.email.toLowerCase()\n          };\n          yield new Promise((resolve, reject) => {\n            // eslint-disable-next-line ember/no-jquery\n            _jquery.default.ajax({\n              contentType: 'application/json',\n              method: 'POST',\n              url,\n              data: JSON.stringify(payload)\n            }).then(resolve, reject);\n          });\n          return true;\n        }\n      }), {\n        drop: true\n      }, \"sendPasswordReset\", null));\n      _defineProperty(this, \"submit\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          if (this.anyInvalid) {\n            this.showValidation = true;\n            return;\n          }\n          const payload = {\n            token: this.token,\n            confirmEmailCode: this.confirmEmailCode,\n            email: this.model.registrationData.value.email,\n            password: this.password,\n            cbHostedPageId: this.cbHostedPageId\n          };\n          try {\n            yield new Promise((resolve, reject) => {\n              // eslint-disable-next-line ember/no-jquery\n              _jquery.default.ajax({\n                url: SERVER_REGISTRATION_ENDPOINT,\n                method: 'POST',\n                data: JSON.stringify(payload),\n                accepts: 'application/json',\n                contentType: 'application/json'\n              }).then(resolve, reject);\n            });\n            this.registrationComplete = true;\n          } catch (error) {\n            if (!error.responseJSON?.errors?.[0]) {\n              this.notifications.error({\n                message: 'Something went wrong!',\n                error,\n                customData: [`registrationToken: ${this.token}`]\n              });\n            } else if (error.responseJSON.errors[0].code === 'UNKNOWN_EMAIL_CODE') {\n              this.notifications.warning({\n                message: 'The email confirmation code was incorrect.',\n                customData: [`registrationToken: ${this.token}`]\n              });\n            } else {\n              this.notifications.error({\n                error,\n                customData: [`registrationToken: ${this.token}`]\n              });\n              this.registrationError = error.responseJSON.errors[0];\n            }\n          }\n        }\n      }), {\n        drop: true\n      }, \"submit\", null));\n    }\n    get newEmailIsValid() {\n      return (0, _emailValidator.default)(this.newEmail);\n    }\n    get anyInvalid() {\n      return this.passwordInvalid || this.passwordCheckInvalid;\n    }\n    get passwordCheckInvalid() {\n      return this.password !== this.passwordCheck;\n    }\n    get passwordInvalid() {\n      // registrationData is null when the route was hit without a token\n      const {\n        userExists\n      } = this.model.registrationData?.value ?? {};\n      if (userExists && !this.password) return false;\n      if (!this.password || this.password.length < 10) return true;\n      return false;\n    }\n    openEmailChangeModal() {\n      this.showChangeEmailModal = true;\n      this.showNewEmailValidation = false;\n      this.newEmail = '';\n    }\n    closeEmailChangeModal() {\n      this.showChangeEmailModal = false;\n      this.newEmail = '';\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"platform\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"confirmEmailCode\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"password\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"passwordCheck\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"showValidation\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"registrationError\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"registrationComplete\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"showChangeEmailModal\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"showNewEmailValidation\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"newEmail\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"openEmailChangeModal\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"openEmailChangeModal\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"closeEmailChangeModal\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"closeEmailChangeModal\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity-loading\", [\"exports\", \"portal/controllers/entity\"], function (_exports, _entity) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _entity.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"portal/controllers/entity\"eaimeta@70e063a35619d71f\n});","define(\"portal/controllers/entity\", [\"exports\", \"@ember/controller\", \"@ember/service\"], function (_exports, _controller, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"systemAnnouncements\", _descriptor, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"systemAnnouncements\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/controllers/entity/builda-price\", [\"exports\", \"@ember/controller\", \"@ember/service\"], function (_exports, _controller, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n    }\n    get tabs() {\n      const tabs = [];\n      const canUseDashboard = this.newFeatureFlags.includesFeatureFlags('canUseDashboardReport');\n      if (canUseDashboard) tabs.push({\n        name: this.intl.t('common.Dashboard'),\n        route: 'entity.builda-price.dashboard',\n        icon: 'tachometer-alt',\n        model: this.sessionData.entity.id\n      });\n\n      // you can view the projects tab if you can manage projects\n      // or if you can view projects and manage estimates\n      // TODO this will need to be extended when we add non-management features\n      // to the project details pages (for example file storage)\n      if (this.newFeatureFlags.includesSomeFeatureFlags('canUseProjects', 'canManageEstimates')) tabs.push({\n        name: this.intl.t('common.Projects'),\n        route: 'entity.builda-price.projects',\n        model: this.sessionData.entity.id,\n        icon: 'building'\n      });\n      if (this.newFeatureFlags.includesSomeFeatureFlags('canUseScheduling')) tabs.push({\n        name: this.intl.t('common.Scheduling'),\n        route: 'entity.builda-price.scheduling',\n        model: this.sessionData.entity.id,\n        icon: 'calendar-alt'\n      });\n      const operationsTab = {\n        name: this.intl.t('common.Operations'),\n        route: 'entity.builda-price.operations',\n        sections: []\n      };\n      const canUseTimesheets = this.newFeatureFlags.includesFeatureFlags('canUseTimesheets');\n      const canUseBills = this.newFeatureFlags.includesFeatureFlags('canUseBills');\n      const canUseStatements = this.newFeatureFlags.includesFeatureFlags('canUseStatements');\n      const canUseLegacyBills = this.newFeatureFlags.includesFeatureFlags('canUseLegacyBills');\n      const canUsePayroll = this.newFeatureFlags.includesFeatureFlags('canUsePayroll');\n      const canUseReportBuilder = this.newFeatureFlags.includesFeatureFlags('canUseReportBuilder');\n      const canUsePurchaseOrders = this.newFeatureFlags.includesFeatureFlags('canUsePurchaseOrders');\n      const canUseInvoices = this.newFeatureFlags.includesFeatureFlags('canUseInvoices');\n      const canUseDocuments = this.newFeatureFlags.includesFeatureFlags('canUseDocumentsPage');\n      const canUseProducts = this.newFeatureFlags.includesFeatureFlags('canUseProducts');\n      const documentsSection = {\n        name: '',\n        routes: []\n      };\n      const incomingSection = {\n        name: this.intl.t('common.Incoming'),\n        routes: []\n      };\n      const outgoingSection = {\n        name: this.intl.t('common.Outgoing'),\n        routes: []\n      };\n      if (this.newFeatureFlags.includesSomeFeatureFlags('canUseDocumentsPage', 'entityCanUseProducts')) {\n        if (canUseDocuments) documentsSection.routes.push({\n          name: this.intl.t('common.Documents'),\n          route: 'entity.builda-price.operations.documents',\n          icon: 'paperclip'\n        });\n        if (canUseProducts) documentsSection.routes.push({\n          name: this.intl.t('common.Products'),\n          route: 'entity.builda-price.operations.products',\n          icon: 'cubes'\n        });\n\n        // Sort the routes by name\n        documentsSection.routes = documentsSection.routes.sort((a, b) => a.name.localeCompare(b.name));\n        operationsTab.sections.push(documentsSection);\n      }\n      if (this.newFeatureFlags.includesSomeFeatureFlags('canUseTimesheets', 'canUseBills', 'entityCanUseStatements')) {\n        if (canUseTimesheets) incomingSection.routes.push({\n          name: this.intl.t('common.Timesheets'),\n          route: 'entity.builda-price.operations.incoming.timesheets',\n          icon: 'clock'\n        });\n        if (canUseBills) {\n          incomingSection.routes.push({\n            name: this.intl.t('common.Bills'),\n            route: 'entity.builda-price.operations.incoming.bills',\n            icon: 'file-invoice-dollar'\n          });\n          if (canUseLegacyBills) incomingSection.routes.push({\n            name: this.intl.t('common.Bills'),\n            route: 'entity.builda-price.operations.incoming.bills-legacy',\n            icon: 'file-invoice-dollar',\n            sup: 'LEGACY'\n          });\n        }\n        if (canUseStatements) {\n          incomingSection.routes.push({\n            name: this.intl.t('common.Statements'),\n            route: 'entity.builda-price.operations.incoming.statements',\n            icon: 'file-lines'\n          });\n        }\n\n        // Sort the routes by name\n        incomingSection.routes = incomingSection.routes.sort((a, b) => a.name.localeCompare(b.name));\n        if (operationsTab.sections.length) incomingSection.topSeparator = true;\n        operationsTab.sections.push(incomingSection);\n      }\n      if (this.newFeatureFlags.includesSomeFeatureFlags('canUsePayroll', 'canUseReportBuilder', 'canUsePurchaseOrders', 'canUseInvoices')) {\n        if (canUsePayroll) outgoingSection.routes.push({\n          name: this.intl.t('common.Payroll'),\n          route: 'entity.builda-price.operations.outgoing.payroll',\n          icon: 'money-bill'\n        });\n        if (canUsePurchaseOrders) outgoingSection.routes.push({\n          name: this.intl.t('common.Purchase orders'),\n          route: 'entity.builda-price.operations.outgoing.purchase-orders',\n          icon: 'shopping-cart'\n        });\n        if (canUseInvoices) outgoingSection.routes.push({\n          name: this.intl.t('common.Invoices'),\n          route: 'entity.builda-price.operations.outgoing.invoices',\n          icon: 'file-invoice-dollar'\n        });\n        if (canUseReportBuilder) outgoingSection.routes.push({\n          name: this.intl.t('common.Report builder'),\n          route: 'entity.builda-price.operations.outgoing.report-builder',\n          icon: 'file-invoice'\n        });\n\n        // Sort the routes by name\n        outgoingSection.routes = outgoingSection.routes.sort((a, b) => a.name.localeCompare(b.name));\n        if (operationsTab.sections.length) outgoingSection.topSeparator = true;\n        operationsTab.sections.push(outgoingSection);\n      }\n      if (this.newFeatureFlags.includesSomeFeatureFlags('canUseDocumentsPage', 'canUseTimesheets', 'canUseBills', 'entityCanUseStatements', 'canUsePayroll', 'canUseReportBuilder', 'canUseNotes', 'canUseProducts', 'canUsePurchaseOrders', 'canUseInvoices')) tabs.push(operationsTab);\n      const canUsePositionReports = this.newFeatureFlags.includesFeatureFlags('canUseEntityPositionReport');\n      const canUseProfitMarginsReport = this.newFeatureFlags.includesFeatureFlags('canUseEntityProfitMarginReport');\n      const canUseLabourHourReports = this.newFeatureFlags.includesFeatureFlags('canUseEntityLabourHourReport');\n      const canUseForecastReports = this.newFeatureFlags.includesFeatureFlags('canUseEntityForecastReport');\n      const canUseWIPReport = this.newFeatureFlags.includesFeatureFlags('canUseEntityWIPReport');\n      const canUseReportProjectPage = this.newFeatureFlags.includesFeatureFlags('canUseReportProjectPage');\n      const reportsTab = {\n        name: this.intl.t('common.Reports'),\n        route: 'entity.builda-price.reports',\n        sections: []\n      };\n      if (canUseReportProjectPage) {\n        const projectReportsSections = {\n          name: this.intl.t('common.Project reports'),\n          routes: []\n        };\n        projectReportsSections.routes.push({\n          name: this.intl.t('common.Projects'),\n          route: 'entity.builda-price.reports.projects',\n          icon: 'building'\n        });\n        reportsTab.sections.push(projectReportsSections);\n      }\n      const companyReportsSections = {\n        name: this.intl.t('common.Company reports'),\n        routes: []\n      };\n      if (canUseWIPReport || canUsePositionReports || canUseLabourHourReports || canUseForecastReports || canUseProfitMarginsReport) {\n        if (canUsePositionReports) {\n          companyReportsSections.routes.push({\n            name: this.intl.t('common.Position'),\n            route: 'entity.builda-price.reports.company.position',\n            icon: 'tasks'\n          });\n        }\n        if (canUseLabourHourReports) {\n          companyReportsSections.routes.push({\n            name: this.intl.t('common.Labour hours'),\n            route: 'entity.builda-price.reports.company.labour-hours',\n            icon: 'user-clock'\n          });\n        }\n        if (canUseForecastReports) {\n          companyReportsSections.routes.push({\n            name: this.intl.t('shared.report.Forecast breakdown'),\n            route: 'entity.builda-price.reports.company.forecast-breakdown',\n            icon: 'chart-line'\n          });\n        }\n        if (canUseProfitMarginsReport) {\n          companyReportsSections.routes.push({\n            name: this.intl.t('entity.builda-price.Profit margin'),\n            route: 'entity.builda-price.reports.company.profit-margins',\n            icon: 'hand-holding-usd'\n          });\n        }\n        if (this.newFeatureFlags.includesFeatureFlags('canUseEntityInvoicingReport')) {\n          companyReportsSections.routes.push({\n            name: this.intl.t('common.Invoicing'),\n            route: 'entity.builda-price.reports.company.invoicing',\n            icon: 'file-invoice-dollar'\n          });\n        }\n        if (this.newFeatureFlags.includesFeatureFlags('canUseTimesheets')) {\n          companyReportsSections.routes.push({\n            name: this.intl.t('common.Notes'),\n            route: 'entity.builda-price.reports.company.notes',\n            icon: 'sticky-note'\n          });\n        }\n        if (canUseWIPReport) {\n          companyReportsSections.routes.push({\n            name: this.intl.t('shared.report.Work in progress'),\n            route: 'entity.builda-price.reports.company.wip',\n            icon: 'balance-scale'\n          });\n        }\n        if (reportsTab.sections.length) companyReportsSections.topSeparator = true;\n        reportsTab.sections.push(companyReportsSections);\n      }\n      if (reportsTab.sections.length) tabs.push(reportsTab);\n      return tabs;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/controllers/entity/builda-price/company/documents/project-file/task-file\", [\"exports\", \"@ember/controller\", \"@ember/object\", \"@ember/service\", \"@glimmer/tracking\", \"portal/utils/download\", \"portal/config/environment\", \"jquery\", \"portal/routes/entity/builda-price/operations/documents\"], function (_exports, _controller, _object, _service, _tracking, _download, _environment, _jquery, _documents) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/object\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"portal/utils/download\",0,\"portal/config/environment\",0,\"jquery\",0,\"portal/routes/entity/builda-price/operations/documents\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor2, this);\n      _initializerDefineProperty(this, \"uploadModalVisible\", _descriptor3, this);\n    }\n    get path() {\n      if (this.model.basePath.includes('embed')) return 'embed.documents';\n      return 'entity.builda-price.operations.documents';\n    }\n    get isLoading() {\n      return this.model.file.isRunning || this.model.users.isRunning;\n    }\n    get crumbStack() {\n      const paths = [];\n      const makePaths = task => {\n        const taskIds = [];\n        (function getTaskIds(task) {\n          taskIds.unshift(task.id);\n          if (task.belongsTo('parent').id()) getTaskIds(task.belongsTo('parent').value());\n        })(task);\n        const model = taskIds.join(':');\n        paths.unshift({\n          pageTitle: task.name,\n          route: `${this.path}.project-file.task-file`,\n          model\n        });\n        if (task.belongsTo('parent').id()) makePaths(task.belongsTo('parent').value());\n      };\n      makePaths(this.model.task.last.value);\n      paths.unshift({\n        route: `${this.path}.project-file`,\n        pageTitle: this.model.task.last.value.belongsTo('project').value().name,\n        model: this.model.task.last.value.belongsTo('project').id()\n      });\n      paths.unshift({\n        route: this.path,\n        pageTitle: 'Company'\n      });\n      return paths;\n    }\n    get tableData() {\n      if (!this.searchString.length) {\n        return this.model.file.last.value;\n      }\n      return this.onSearch(this.searchString);\n    }\n    onSearch(searchString) {\n      const matchedAttachments = this.model.task.last.value.allAttachments.filter(attachment => {\n        const matchString = `${attachment.filename}`.replace(/\\s/g, '').toLowerCase();\n        return matchString.includes(searchString.replace(/\\s/g, '').toLowerCase());\n      });\n      const matchedTasks = this.model.task.last.value.allActiveChildren.filter(task => {\n        const matchString = `${task.name}`.replace(/\\s/g, '').toLowerCase();\n        return matchString.includes(searchString.replace(/\\s/g, '').toLowerCase());\n      });\n      return new _documents.DocumentData([], matchedTasks, matchedAttachments, this.model.basePath);\n    }\n    async downloadAttachments(file, event) {\n      try {\n        event.preventDefault();\n\n        // we are only downloading one file\n        if (file.href) {\n          (0, _download.downloadUrl)(file);\n          return;\n        }\n\n        // we are downloading all the files\n        const documents = function findHrefs(file) {\n          const document = {\n            name: file.name,\n            contents: file.myAttachments.map(a => a.href)\n          };\n          if (file.activeChildren?.length) {\n            const contents = file.activeChildren.filter(f => f.myAttachments?.length).map(f => findHrefs(f));\n            document.contents.push(...contents);\n          }\n          return document;\n        }(file.value);\n        const zipBlob = await this.getZipBlob(documents);\n        (0, _download.download)(zipBlob, `${file.name}_documents`, 'application/zip');\n      } catch (error) {\n        this.notifications.error({\n          message: this.intl.t('shared.notification.somethingWentWrongWhileDownloadingAttachment'),\n          error: error\n        });\n      }\n    }\n    async onUploadComplete({\n      attachments,\n      validationErrors,\n      error\n    }) {\n      try {\n        if (error) throw error;\n\n        // save the new attachments\n        await Promise.all(attachments.map(async a => {\n          a.tasks = [this.model.task.last.value];\n          await a.save({\n            adapterOptions: {\n              meta: {\n                data: a.data\n              }\n            }\n          });\n        }));\n        // put the on the project and save the project\n        this.model.file.last.value.addAttachments(attachments);\n        validationErrors.forEach(error => this.notifications.error(error));\n        if (!validationErrors.length) {\n          this.notifications.success(this.intl.t('shared.notification.Successfully uploaded documents'));\n          this.uploadModalVisible = false;\n        }\n      } catch (error) {\n        this.notifications.error({\n          message: this.intl.t('shared.notification.somethingWentWrongWhileSavingAttachments'),\n          error: error\n        });\n      }\n    }\n    get project() {\n      return this.model.task.last.value.belongsTo('project').value();\n    }\n    getZipBlob(archiveDescription) {\n      return new Promise((resolve, reject) => _jquery.default.ajax({\n        url: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/attachments/zip',\n        method: 'POST',\n        data: JSON.stringify(archiveDescription),\n        contentType: 'application/json',\n        xhr() {\n          // This seems to be the only way to set the response type to blob.\n          // This will allow js to leave the file as a bytestream rather than trying to parse it.\n          const xhr = new XMLHttpRequest();\n          xhr.responseType = 'blob';\n          return xhr;\n        }\n      }).then(resolve, reject));\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"uploadModalVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"downloadAttachments\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"downloadAttachments\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onUploadComplete\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onUploadComplete\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/dashboard\", [\"exports\", \"@ember/controller\", \"@ember/service\"], function (_exports, _controller, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _service.inject)(), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/controllers/entity/builda-price/dashboard/index\", [\"exports\", \"@ember/controller\", \"@ember/service\", \"ember-local-storage\"], function (_exports, _controller, _service, _emberLocalStorage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\",0,\"ember-local-storage\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _emberLocalStorage.storageFor)('settings'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor2, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor3, this);\n      _initializerDefineProperty(this, \"persistedSettings\", _descriptor4, this);\n    }\n    get isLoading() {\n      return this.model.dashboardReport.isRunning;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"persistedSettings\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/controllers/entity/builda-price/operations/documents/index\", [\"exports\", \"@ember/controller\", \"@ember/object\", \"@ember/service\", \"@glimmer/tracking\", \"portal/utils/download\", \"portal/config/environment\", \"jquery\", \"portal/routes/entity/builda-price/operations/documents\"], function (_exports, _controller, _object, _service, _tracking, _download, _environment, _jquery, _documents) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/object\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"portal/utils/download\",0,\"portal/config/environment\",0,\"jquery\",0,\"portal/routes/entity/builda-price/operations/documents\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"store\", _descriptor4, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor5, this);\n      _initializerDefineProperty(this, \"uploadModalVisible\", _descriptor6, this);\n    }\n    get isLoading() {\n      return this.model.users.isRunning || this.model.file.isRunning;\n    }\n    async downloadAttachments(file, event) {\n      try {\n        event.preventDefault();\n        // we are only downloading one file\n        if (file.href) {\n          (0, _download.downloadUrl)(file);\n          return;\n        }\n\n        // we are downloading all the files\n        const documents = function findHrefs(file) {\n          const document = {\n            name: file.name,\n            contents: file.myAttachments.map(a => a.href)\n          };\n          if (file.activeTasks?.length) {\n            const contents = file.activeTasks.filter(f => f.myAttachments?.length).map(f => findHrefs(f));\n            document.contents.push(...contents);\n          }\n          if (file.activeChildren?.length) {\n            const contents = file.activeChildren.filter(f => f.myAttachments?.length).map(f => findHrefs(f));\n            document.contents.push(...contents);\n          }\n          return document;\n        }(file.value);\n        const zipBlob = await this.getZipBlob(documents);\n        (0, _download.download)(zipBlob, `${file.name}_documents`, 'application/zip');\n      } catch (error) {\n        this.notifications.error({\n          message: this.intl.t('shared.notification.somethingWentWrongWhileDownloadingAttachment'),\n          error: error\n        });\n      }\n    }\n    get tableData() {\n      if (!this.searchString.length) {\n        return this.model.file.last.value;\n      }\n      return this.onSearch(this.searchString);\n    }\n    onSearch(searchString) {\n      const matchedAttachments = this.sessionData.entity.allAttachments.filter(attachment => {\n        const matchString = `${attachment.filename}`.replace(/\\s/g, '').toLowerCase();\n        return matchString.includes(searchString.replace(/\\s/g, '').toLowerCase());\n      });\n      const matchedProjects = this.model.projects.last.value.filter(project => {\n        const matchString = `${project.name}`.replace(/\\s/g, '').toLowerCase();\n        return matchString.includes(searchString.replace(/\\s/g, '').toLowerCase());\n      });\n      const matchedTasks = this.model.tasks.last.value.filter(task => {\n        const matchString = `${task.name}`.replace(/\\s/g, '').toLowerCase();\n        return matchString.includes(searchString.replace(/\\s/g, '').toLowerCase());\n      });\n      return new _documents.DocumentData(matchedProjects, matchedTasks, matchedAttachments, this.model.documentPath);\n    }\n    async onUploadComplete({\n      attachments,\n      validationErrors,\n      error\n    }) {\n      try {\n        if (error) throw error;\n        const attachmentResults = await Promise.all(attachments.map(a => a.save({\n          adapterOptions: {\n            meta: {\n              data: a.data\n            }\n          }\n        })));\n        await Promise.all(attachmentResults.map(async attachment => {\n          this.store.createRecord('link-attachment-to-entity', {\n            entity: this.sessionData.entity,\n            attachment\n          }).save();\n        }));\n        this.model.file.last.value.addAttachments(attachments);\n        validationErrors.forEach(error => this.notifications.error(error));\n        if (!validationErrors.length) {\n          this.notifications.success(this.intl.t('shared.notification.Successfully uploaded documents'));\n          this.uploadModalVisible = false;\n        }\n      } catch (error) {\n        this.notifications.error({\n          message: this.intl.t('shared.notification.somethingWentWrongWhileSavingAttachments'),\n          error: error\n        });\n      }\n    }\n    getZipBlob(archiveDescription) {\n      return new Promise((resolve, reject) => _jquery.default.ajax({\n        url: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/attachments/zip',\n        method: 'POST',\n        data: JSON.stringify(archiveDescription),\n        contentType: 'application/json',\n        xhr() {\n          // This seems to be the only way to set the response type to blob.\n          // This will allow js to leave the file as a bytestream rather than trying to parse it.\n          const xhr = new XMLHttpRequest();\n          xhr.responseType = 'blob';\n          return xhr;\n        }\n      }).then(resolve, reject));\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"uploadModalVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"downloadAttachments\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"downloadAttachments\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onUploadComplete\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onUploadComplete\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/operations/documents/project-file/index\", [\"exports\", \"@ember/controller\", \"@ember/object\", \"@ember/service\", \"@glimmer/tracking\", \"portal/utils/download\", \"portal/config/environment\", \"jquery\", \"portal/routes/entity/builda-price/operations/documents\"], function (_exports, _controller, _object, _service, _tracking, _download, _environment, _jquery, _documents) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/object\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"portal/utils/download\",0,\"portal/config/environment\",0,\"jquery\",0,\"portal/routes/entity/builda-price/operations/documents\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor4, this);\n      _initializerDefineProperty(this, \"uploadModalVisible\", _descriptor5, this);\n    }\n    get isLoading() {\n      return this.model.file.isRunning || this.model.users.isRunning;\n    }\n    get crumbStack() {\n      return [{\n        route: this.model.documentPath,\n        pageTitle: this.intl.t('common.Company')\n      }, {\n        pageTitle: this.model.project.last.value?.name\n      }];\n    }\n    get tableData() {\n      if (!this.searchString.length) {\n        return this.model.file.last.value;\n      }\n      return this.onSearch(this.searchString);\n    }\n    onSearch(searchString) {\n      const matchedAttachments = this.model.project.last.value.allAttachments.filter(attachment => {\n        const matchString = `${attachment.filename}`.replace(/\\s/g, '').toLowerCase();\n        return matchString.includes(searchString.replace(/\\s/g, '').toLowerCase());\n      });\n      const matchedTasks = this.model.project.last.value.activeTasks.filter(task => {\n        const matchString = `${task.name}`.replace(/\\s/g, '').toLowerCase();\n        return matchString.includes(searchString.replace(/\\s/g, '').toLowerCase());\n      });\n      return new _documents.DocumentData([], matchedTasks, matchedAttachments, this.model.documentPath);\n    }\n    async downloadAttachments(file, event) {\n      try {\n        event.preventDefault();\n\n        // we are only downloading one file\n        if (file.href) {\n          (0, _download.downloadUrl)(file);\n          return;\n        }\n\n        // we are downloading all the files\n        const documents = function findHrefs(file) {\n          const document = {\n            name: file.name,\n            contents: file.myAttachments?.map(a => a.href)\n          };\n          if (file.activeChildren?.length) {\n            const contents = file.activeChildren.filter(f => f.myAttachments?.length).map(f => findHrefs(f));\n            document.contents.push(...contents);\n          }\n          return document;\n        }(file.value);\n        const zipBlob = await this.getZipBlob(documents);\n        (0, _download.download)(zipBlob, `${file.name}_documents`, 'application/zip');\n      } catch (error) {\n        this.notifications.error({\n          message: this.intl.t('shared.notification.somethingWentWrongWhileDownloadingAttachment'),\n          error: error\n        });\n      }\n    }\n    async onUploadComplete({\n      attachments,\n      validationErrors,\n      error\n    }) {\n      try {\n        if (error) throw error;\n        const attachmentResults = await Promise.all(attachments.map(a => a.save({\n          adapterOptions: {\n            meta: {\n              data: a.data\n            }\n          }\n        })));\n        await Promise.all(attachmentResults.map(async attachment => {\n          this.store.createRecord('link-attachment-to-project', {\n            project: this.model.project.last.value,\n            attachment\n          }).save();\n        }));\n\n        // put the on the project and save the project\n        this.model.file.last.value.addAttachments(attachments);\n        validationErrors.forEach(error => this.notifications.error(error));\n        if (!validationErrors.length) {\n          this.notifications.success(this.intl.t('shared.notification.Successfully uploaded documents'));\n          this.uploadModalVisible = false;\n        }\n      } catch (error) {\n        this.notifications.error({\n          message: this.intl.t('shared.notification.somethingWentWrongWhileSavingAttachments'),\n          error: error\n        });\n      }\n    }\n\n    /* eslint-disable ember/no-jquery */\n    getZipBlob(archiveDescription) {\n      return new Promise((resolve, reject) => _jquery.default.ajax({\n        url: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/attachments/zip',\n        method: 'POST',\n        data: JSON.stringify(archiveDescription),\n        contentType: 'application/json',\n        xhr() {\n          // This seems to be the only way to set the response type to blob.\n          // This will allow js to leave the file as a bytestream rather than trying to parse it.\n          const xhr = new XMLHttpRequest();\n          xhr.responseType = 'blob';\n          return xhr;\n        }\n      }).then(resolve, reject));\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"uploadModalVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"downloadAttachments\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"downloadAttachments\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onUploadComplete\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onUploadComplete\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/operations/documents/project-file/task-file\", [\"exports\", \"@ember/controller\", \"@ember/object\", \"@ember/service\", \"@glimmer/tracking\", \"portal/utils/download\", \"portal/config/environment\", \"jquery\", \"portal/routes/entity/builda-price/operations/documents\"], function (_exports, _controller, _object, _service, _tracking, _download, _environment, _jquery, _documents) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/object\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"portal/utils/download\",0,\"portal/config/environment\",0,\"jquery\",0,\"portal/routes/entity/builda-price/operations/documents\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor4, this);\n      _initializerDefineProperty(this, \"uploadModalVisible\", _descriptor5, this);\n    }\n    get isLoading() {\n      return this.model.file.isRunning || this.model.users.isRunning;\n    }\n    get crumbStack() {\n      const paths = [];\n      const makePaths = task => {\n        const taskIds = [];\n        (function getTaskIds(task) {\n          taskIds.unshift(task.id);\n          if (task.belongsTo('parent').id()) getTaskIds(task.belongsTo('parent').value());\n        })(task);\n        const model = taskIds.join(':');\n        paths.unshift({\n          pageTitle: task.name,\n          route: `${this.model.documentPath}.project-file.task-file`,\n          model\n        });\n        if (task.belongsTo('parent').id()) makePaths(task.belongsTo('parent').value());\n      };\n      makePaths(this.model.task.last.value);\n      paths.unshift({\n        route: `${this.model.documentPath}.project-file`,\n        pageTitle: this.model.task.last.value.belongsTo('project').value().name,\n        model: this.model.task.last.value.belongsTo('project').id()\n      });\n      paths.unshift({\n        route: this.model.documentPath,\n        pageTitle: this.intl.t('common.Company')\n      });\n      return paths;\n    }\n    get tableData() {\n      if (!this.searchString.length) {\n        return this.model.file.last.value;\n      }\n      return this.onSearch(this.searchString);\n    }\n    onSearch(searchString) {\n      const matchedAttachments = this.model.task.last.value.allAttachments.filter(attachment => {\n        const matchString = `${attachment.filename}`.replace(/\\s/g, '').toLowerCase();\n        return matchString.includes(searchString.replace(/\\s/g, '').toLowerCase());\n      });\n      const matchedTasks = this.model.task.last.value.allActiveChildren.filter(task => {\n        const matchString = `${task.name}`.replace(/\\s/g, '').toLowerCase();\n        return matchString.includes(searchString.replace(/\\s/g, '').toLowerCase());\n      });\n      return new _documents.DocumentData([], matchedTasks, matchedAttachments, this.model.documentPath);\n    }\n    async downloadAttachments(file, event) {\n      try {\n        event.preventDefault();\n        // we are only downloading one file\n        if (file.href) {\n          (0, _download.downloadUrl)(file);\n          return;\n        }\n\n        // we are downloading all the files\n        const documents = function findHrefs(file) {\n          const document = {\n            name: file.name,\n            contents: file.myAttachments.map(a => a.href)\n          };\n          if (file.activeChildren?.length) {\n            const contents = file.activeChildren.filter(f => f.myAttachments?.length).map(f => findHrefs(f));\n            document.contents.push(...contents);\n          }\n          return document;\n        }(file.value);\n        const zipBlob = await this.getZipBlob(documents);\n        (0, _download.download)(zipBlob, `${file.name}_documents`, 'application/zip');\n      } catch (error) {\n        this.notifications.error({\n          message: this.intl.t('shared.notification.somethingWentWrongWhileDownloadingAttachment'),\n          error: error\n        });\n      }\n    }\n    async onUploadComplete({\n      attachments,\n      validationErrors,\n      error\n    }) {\n      try {\n        if (error) throw error;\n        const attachmentResults = await Promise.all(attachments.map(a => a.save({\n          adapterOptions: {\n            meta: {\n              data: a.data\n            }\n          }\n        })));\n        await Promise.all(attachmentResults.map(async attachment => {\n          this.store.createRecord('link-attachment-to-task', {\n            task: this.model.task.last.value,\n            attachment\n          }).save();\n        }));\n        this.model.file.last.value.addAttachments(attachments);\n        validationErrors.forEach(error => this.notifications.error(error));\n        if (!validationErrors.length) {\n          this.notifications.success(this.intl.t('shared.notification.Successfully uploaded documents'));\n          this.uploadModalVisible = false;\n        }\n      } catch (error) {\n        this.notifications.error({\n          message: this.intl.t('shared.notification.somethingWentWrongWhileSavingAttachments'),\n          error: error\n        });\n      }\n    }\n    get project() {\n      return this.model.task.last.value.belongsTo('project').value();\n    }\n    getZipBlob(archiveDescription) {\n      return new Promise((resolve, reject) => _jquery.default.ajax({\n        url: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/attachments/zip',\n        method: 'POST',\n        data: JSON.stringify(archiveDescription),\n        contentType: 'application/json',\n        xhr() {\n          // This seems to be the only way to set the response type to blob.\n          // This will allow js to leave the file as a bytestream rather than trying to parse it.\n          const xhr = new XMLHttpRequest();\n          xhr.responseType = 'blob';\n          return xhr;\n        }\n      }).then(resolve, reject));\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"uploadModalVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"downloadAttachments\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"downloadAttachments\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onUploadComplete\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onUploadComplete\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/operations/incoming/bills-legacy\", [\"exports\", \"@ember/controller\", \"@ember/runloop\", \"@ember/service\", \"@ember/object\", \"@ember/array\", \"@ember/object/computed\", \"portal/utils/bill-parsers/csv\", \"portal/utils/bill-parsers/placemakers\", \"portal/utils/bill-parsers/xero\", \"portal/utils/bill-parsers/carters\", \"portal/utils/bill-parsers/mitre\", \"portal/utils/bill-parsers/bunnings\", \"rsvp\", \"moment\", \"lodash\", \"ember-local-storage\", \"@ember/object/evented\", \"portal/utils/auto-map\", \"portal/config/environment\"], function (_exports, _controller, _runloop, _service, _object, _array, _computed, _csv, _placemakers, _xero, _carters, _mitre, _bunnings, _rsvp, _moment, _lodash, _emberLocalStorage, _evented, _autoMap, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/runloop\",0,\"@ember/service\",0,\"@ember/object\",0,\"@ember/array\",0,\"@ember/object/computed\",0,\"portal/utils/bill-parsers/csv\",0,\"portal/utils/bill-parsers/placemakers\",0,\"portal/utils/bill-parsers/xero\",0,\"portal/utils/bill-parsers/carters\",0,\"portal/utils/bill-parsers/mitre\",0,\"portal/utils/bill-parsers/bunnings\",0,\"rsvp\",0,\"moment\",0,\"lodash\",0,\"ember-local-storage\",0,\"@ember/object/evented\",0,\"portal/utils/auto-map\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({\n    intl: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    notifications: (0, _service.inject)(),\n    newFeatureFlags: (0, _service.inject)(),\n    xeroIntegration: (0, _service.inject)(),\n    buildaPrice: (0, _service.inject)(),\n    quickbooks: (0, _service.inject)(),\n    router: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    invoicedCosts: (0, _service.inject)(),\n    persistedSettings: (0, _emberLocalStorage.storageFor)('settings'),\n    queryParams: ['sortBy', 'filterByDate', 'startDate', 'endDate', 'status', 'unallocatedOnly', 'search'],\n    status: 'ALL',\n    unallocatedOnly: false,\n    search: '',\n    invoices: (0, _object.computed)('model.invoices.@each.{status,issueDate,fullyMapped,isMapped}', 'status', 'filterByDate', 'startDate', 'endDate', 'search', 'unallocatedOnly', function () {\n      let invoices = (0, _object.get)(this, 'model.invoices')?.toArray() || [];\n\n      // get all query params\n      const status = (0, _object.get)(this, 'status');\n      const startDate = (0, _object.get)(this, 'startDate');\n      const endDate = (0, _object.get)(this, 'endDate');\n      const filterByDate = Boolean((0, _object.get)(this, 'filterByDate'));\n      const searchText = ((0, _object.get)(this, 'search') || '').trim().toLowerCase();\n      const unallocatedOnly = Boolean((0, _object.get)(this, 'unallocatedOnly'));\n      const filterByStatus = status && status !== 'ALL';\n      const filterBySearch = Boolean(searchText);\n      const startMoment = filterByDate && startDate ? (0, _moment.default)(startDate).startOf('day') : null;\n      const endMoment = filterByDate && endDate ? (0, _moment.default)(endDate).endOf('day') : null;\n      const results = [];\n      for (const inv of invoices) {\n        if (filterByStatus && (0, _object.get)(inv, 'status') !== status) continue;\n        if (filterByDate) {\n          const issueDate = (0, _moment.default)((0, _object.get)(inv, 'issueDate'));\n          if (!issueDate.isValid()) continue;\n          if (startMoment && issueDate.isBefore(startMoment)) continue;\n          if (endMoment && issueDate.isAfter(endMoment)) continue;\n        }\n        if (filterBySearch) {\n          const matched = ['reference', 'billNumber', 'issuer'].some(field => {\n            const fieldValue = (0, _object.get)(inv, field);\n            return fieldValue && fieldValue.toLowerCase().includes(searchText);\n          });\n          if (!matched) continue;\n        }\n        if (unallocatedOnly && (0, _object.get)(inv, 'fullyMapped')) continue;\n        results.push(inv);\n      }\n      return (0, _array.A)(results);\n    }),\n    sortBy: '-issuedDate,issuer,billNumber',\n    sortedBy: (0, _object.computed)('sortBy', {\n      get() {\n        const sorts = this.sortBy.split(',').map(s => {\n          let sort = s.trim();\n          if (sort.startsWith('-')) sort = `${sort.replace('-', '')}:desc`;else sort = `${sort}:asc`;\n          return sort;\n        });\n        return sorts;\n      },\n      set(_key, [value]) {\n        let sortBy = value;\n        if (sortBy.endsWith(':asc')) sortBy = sortBy.replace(':asc', '');else if (sortBy.endsWith(':desc')) sortBy = `-${sortBy.replace(':desc', '')}`;\n        (0, _object.set)(this, 'sortBy', sortBy);\n        return [value];\n      }\n    }),\n    filterByDate: true,\n    startDate: (0, _moment.default)().subtract(1, 'month').startOf('day').toDate(),\n    endDate: (0, _moment.default)().endOf('day').toDate(),\n    jsFilterByDate: (0, _object.computed)('filterByDate', {\n      get() {\n        return (0, _object.get)(this, 'filterByDate') ?? true;\n      },\n      set(key, value) {\n        (0, _object.set)(this, 'filterByDate', value);\n        return value;\n      }\n    }),\n    jsEndDate: (0, _object.computed)('endDate', {\n      get() {\n        const savedDate = (0, _object.get)(this, 'endDate') || (0, _moment.default)().endOf('isoWeek');\n        return (0, _moment.default)(savedDate).toDate();\n      },\n      set(key, value) {\n        (0, _object.set)(this, 'endDate', (0, _moment.default)(value).format('YYYY-MM-DD'));\n        return value;\n      }\n    }),\n    jsStartDate: (0, _object.computed)('startDate', {\n      get() {\n        const start = (0, _object.get)(this, 'startDate') || (0, _moment.default)().startOf('isoWeek').subtract(1, 'months');\n        return (0, _moment.default)(start).toDate();\n      },\n      set(key, value) {\n        (0, _object.set)(this, 'startDate', (0, _moment.default)(value).format('YYYY-MM-DD'));\n        return value;\n      }\n    }),\n    invoiceResponses: [],\n    invoiceTypeResponseHandlerVisible: false,\n    doNotWarnForUnmappedInvoice: (0, _computed.alias)('persistedSettings.invoices:doNotWarnForUnmappedInvoice'),\n    allInvoicesSelected: (0, _object.computed)('invoices.length', 'selectedInvoices.length', function () {\n      return (0, _object.get)(this, 'invoices.length') === (0, _object.get)(this, 'selectedInvoices.length');\n    }),\n    showBadgesColumn: (0, _object.computed)('invoices.@each.{eaccountsFileName,xeroLinked}', function () {\n      return (0, _object.get)(this, 'invoices').find(invoice => (0, _object.get)(invoice, 'eaccountsFileName') || (0, _object.get)(invoice, 'xeroLinked'));\n    }),\n    tableColumns: (0, _object.computed)('invoices', 'showBadgesColumn', function () {\n      const columns = [{\n        name: (0, _object.get)(this, 'intl').t('common.Selected'),\n        width: 1\n      }, {\n        name: (0, _object.get)(this, 'intl').t('common.Number'),\n        key: 'billNumber',\n        width: 10\n      }, {\n        name: (0, _object.get)(this, 'intl').t('common.Issuer'),\n        key: 'issuer',\n        width: 10\n      }, {\n        name: (0, _object.get)(this, 'intl').t('common.Reference'),\n        key: 'reference',\n        width: 10\n      }, {\n        name: (0, _object.get)(this, 'intl').t('common.Type'),\n        key: 'allocationType',\n        width: 10\n      }, {\n        name: (0, _object.get)(this, 'intl').t('common.Status'),\n        key: 'status',\n        width: 10\n      }, {\n        name: (0, _object.get)(this, 'intl').t('common.Issued'),\n        key: 'issueDate',\n        width: 10\n      }, {\n        name: (0, _object.get)(this, 'intl').t('common.Due'),\n        key: 'dueDate',\n        width: 10\n      }, {\n        name: (0, _object.get)(this, 'intl').t('common.Total'),\n        width: 10\n      }];\n\n      // find if we should add the integration icon column\n      if ((0, _object.get)(this, 'showBadgesColumn')) {\n        columns.push({\n          name: (0, _object.get)(this, 'intl').t('common.Integrations'),\n          width: 1\n        });\n      }\n      return columns;\n    }),\n    deleteConfirmText: (0, _object.computed)('selectedInvoices', function () {\n      const selectedInvoices = (0, _object.get)(this, 'selectedInvoices');\n      if (selectedInvoices.length > 1) return `delete ${selectedInvoices.length} bills`;\n      return null;\n    }),\n    groupedInvoices: (0, _object.computed)('invoices.[]', function () {\n      const groupsMap = _lodash.default.groupBy((0, _object.get)(this, 'invoices'), invoice => (0, _object.get)(invoice, 'issuer'));\n      const groupsArray = Object.entries(groupsMap).map(([issuer, invoices]) => ({\n        issuer,\n        invoices\n      }));\n      return groupsArray;\n    }),\n    // Is aliased from a value in local storage that survives refreshes and logouts\n    // In test mode, local storage is ignored for consistency\n    condensedView: _environment.default.environment === 'test' ? false : (0, _computed.alias)('persistedSettings.invoices:condensedView'),\n    setCondensedOnInit: (0, _evented.on)('init', function () {\n      // Ensures that the local storage value is set\n      if ((0, _object.get)(this, 'condensedView') == null) (0, _object.set)(this, 'condensedView', false);\n    }),\n    isSaving: false,\n    isDeleting: false,\n    isXeroLoading: false,\n    isQuickbooksLoading: false,\n    isAllocating: false,\n    isAllocatingAndAccepting: false,\n    isAllocatingAcceptingAndSendingToXero: false,\n    invoiceDeleteConfirmModalVisible: false,\n    unmappedInvoiceWarningModalVisible: false,\n    unmappedInvoicesToConfirm: null,\n    parsers: {\n      csv: _csv.default,\n      placemakers: _placemakers.default,\n      xero: _xero.default,\n      carters: _carters.default,\n      mitre: _mitre.default,\n      bunnings: _bunnings.default\n    },\n    importedInvoices: null,\n    deleteMessages: (0, _object.computed)('deleteConfirmText', function () {\n      if ((0, _object.get)(this, 'deleteConfirmText')) return [(0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.bills-legacy.Do you want to delete these bills')];\n      return [(0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.bills-legacy.Do you want to delete this bill')];\n    }),\n    // this computed key is wrong but this only needs to run once\n    hasWriteLevel: (0, _object.computed)('newFeatureFlags', function () {\n      return this.newFeatureFlags.includesFeatureFlags('canManageBills');\n    }),\n    selectedInvoices: (0, _computed.filterBy)('invoices', 'checked'),\n    selectedInvoiceItems: (0, _object.computed)('selectedInvoices', function () {\n      return (0, _object.get)(this, 'selectedInvoices').reduce((arr, invoice) => [...arr, ...invoice.hasMany('items').value().toArray()], []);\n    }),\n    isSecondaryAllocating: (0, _object.computed)('isAllocatingAndAccepting', 'isAllocatingAcceptingAndSendingToXero', function () {\n      return (0, _object.get)(this, 'isAllocatingAndAccepting') || (0, _object.get)(this, 'isAllocatingAcceptingAndSendingToXero');\n    }),\n    _commitSearch(value) {\n      (0, _object.set)(this, 'search', value);\n    },\n    actions: {\n      transitionToBill(route, id) {\n        this.router.transitionTo(route, id);\n      },\n      setFocus(e) {\n        (0, _runloop.next)(() => {\n          e.focus();\n        });\n      },\n      onSearchInput(event) {\n        (0, _runloop.debounce)(this, this._commitSearch, event.target.value, 1200);\n      },\n      setDateRange(dates) {\n        const {\n          startDate,\n          endDate\n        } = dates;\n        if (startDate) (0, _object.set)(this, 'jsStartDate', startDate);\n        if (endDate) (0, _object.set)(this, 'jsEndDate', endDate);\n      },\n      async autoMapSelected() {\n        const notifications = (0, _object.get)(this, 'notifications');\n        const selected = (0, _object.get)(this, 'selectedInvoices');\n        const count = (0, _object.get)(selected, 'length');\n        if (!(0, _object.get)(selected, 'length')) return;\n        try {\n          const invoiceItems = [];\n          (0, _object.set)(this, 'isAutoMapping', true);\n          let successes = 0;\n          const promises = [];\n          selected.forEach(invoice => {\n            const autoMapSuccessful = this.autoMap(invoice);\n            if (autoMapSuccessful) {\n              invoice.hasMany('items').value().forEach(item => invoiceItems.push(item.toJSON({\n                includeId: true\n              })));\n              promises.push(invoice.save());\n              successes++;\n            }\n          });\n          promises.push(this.buildaPrice.updateInvoiceItems(invoiceItems));\n          await _rsvp.default.all(promises);\n          notifications.success(`${successes} out of ${count} bill${count > 1 ? 's' : ''} were successfully mapped`);\n        } catch (error) {\n          notifications.error({\n            error,\n            message: (0, _object.get)(this, 'intl').t('shared.notification.There was an error while auto mapping')\n          });\n        } finally {\n          (0, _object.set)(this, 'isAutoMapping', false);\n        }\n      },\n      async sendSelectedInvoicesToXero(unmappedPolicy) {\n        const notifications = (0, _object.get)(this, 'notifications');\n\n        // Check that there are invoices selected\n        let invoices = (0, _object.get)(this, 'selectedInvoices');\n        if (!invoices.length) {\n          notifications.info((0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.bills-legacy.youHaveNotSelectedAnyInvoicesToSendToXero'));\n          return;\n        }\n\n        // Check that all selected invoices are ready to send\n        const draftCount = invoices.filterBy('status', 'DRAFT').length;\n        if (draftCount) {\n          notifications.info((0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.bills-legacy.thereAreXSelectedDraftInvoiceInvoicesMustBeAcceptedBeforeBeingSentToXero', {\n            draftCount: draftCount,\n            be: draftCount > 1 ? 'are' : 'is',\n            invoice: draftCount > 1 ? 'invoices' : 'invoice'\n          }));\n          return;\n        }\n\n        // Sort invoices into unsent and sent, if there are no unsent invoices then bail out and inform the user.\n        const sortedInvoices = this.sortXeroInvoicesForSending(invoices);\n        if (!(0, _object.get)(sortedInvoices, 'unsent.length')) {\n          notifications.info(`All ${invoices.length} are already in Xero.`);\n          return;\n        }\n\n        // Check that all credit notes have Xero account codes\n        const creditNotes = invoices.filterBy('isCreditNote');\n        if (!creditNotes.every(invoice => (invoice.hasMany('items').value()?.toArray() || []).every(item => item.belongsTo('glAccount').value()))) {\n          notifications.info((0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.bills-legacy.allCreditNoteItemsMustHaveAXeroAccountBeforeBeingSentToXero'));\n          return;\n        }\n        if (unmappedPolicy === 'all') {\n          // Just continue\n        } else if (unmappedPolicy === 'mapped') {\n          // Only send the mapped ones\n          invoices = invoices.filterBy('fullyMapped');\n        } else {\n          // Make user confirm if any are unmapped\n          const unmappedInvoices = invoices.rejectBy('fullyMapped');\n          if (unmappedInvoices.length) {\n            (0, _object.set)(this, 'unmappedInvoicesToConfirm', unmappedInvoices);\n            return;\n          }\n        }\n        try {\n          (0, _object.set)(this, 'isXeroLoading', true);\n          const xero = (0, _object.get)(this, 'xeroIntegration');\n\n          // If there are sendable invoices send them\n          if (sortedInvoices.unsent.length) {\n            const allResponses = await xero.sendBills(sortedInvoices.unsent, false);\n            const validResponses = allResponses.filter(Boolean);\n            const hasRejection = validResponses.some(resp => resp.attachments?.some(resp => resp.rejected));\n            if (hasRejection) {\n              (0, _object.set)(this, 'invoiceResponses', validResponses);\n              (0, _object.set)(this, 'invoiceTypeResponseHandlerVisible', true);\n            } else {\n              // Create the Xero outcome message\n              const message = this.makeSendInvoicesToXeroOutcomeMessage(sortedInvoices);\n              notifications.success({\n                message\n              }, 7500);\n            }\n          }\n        } catch (error) {\n          this.send('error', error);\n        } finally {\n          (0, _object.set)(this, 'unmappedInvoicesToConfirm', null);\n          (0, _object.set)(this, 'isXeroLoading', false);\n        }\n      },\n      async sendSelectedInvoicesToQuickbooks(unmappedPolicy) {\n        const notifications = (0, _object.get)(this, 'notifications');\n\n        // Check that there are invoices selected\n        let invoices = (0, _object.get)(this, 'selectedInvoices');\n        if (!invoices.length) {\n          notifications.info((0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.bills-legacy.youHaveNotSelectedAnyInvoicesToSendToQuickBooks'));\n          return;\n        }\n\n        // Check that all selected invoices are ready to send\n        const draftCount = invoices.filterBy('status', 'DRAFT').length;\n        if (draftCount) {\n          const be = draftCount > 1 ? 'are' : 'is';\n          const invoice = draftCount > 1 ? 'invoices' : 'invoice';\n          notifications.info(`There ${be} ${draftCount} selected draft ${invoice}. Invoices must be accepted before being sent to QuickBooks.`);\n          return;\n        }\n\n        // Sort invoices into unsent and sent, if there are no unsent invoices then bail out and inform the user.\n        const sortedInvoices = this.sortQuickbooksInvoicesForSending(invoices);\n        if (!(0, _object.get)(sortedInvoices, 'unsent.length')) {\n          notifications.info(`All ${invoices.length} are already in QuickBooks.`);\n          return;\n        }\n\n        // Check that all credit notes have Xero account codes\n        const creditNotes = invoices.filterBy('isCreditNote');\n        if (!creditNotes.every(invoice => (invoice.hasMany('items').value()?.toArray() || []).every(item => item.belongsTo('xeroAccount').value()))) {\n          notifications.info('All credit note items must have a QuickBooks account before being sent to QuickBooks.');\n          return;\n        }\n        if (unmappedPolicy === 'all') {\n          // Just continue\n        } else if (unmappedPolicy === 'mapped') {\n          // Only send the mapped ones\n          invoices = invoices.filterBy('fullyMapped');\n        } else {\n          // Make user confirm if any are unmapped\n          const unmappedInvoices = invoices.rejectBy('fullyMapped');\n          if (unmappedInvoices.length) {\n            (0, _object.set)(this, 'unmappedInvoicesToConfirm', unmappedInvoices);\n            return;\n          }\n        }\n        try {\n          (0, _object.set)(this, 'isQuickbooksLoading', true);\n          const quickbooks = (0, _object.get)(this, 'quickbooks');\n\n          // If there are sendable invoices send them\n          if (sortedInvoices.unsent.length) {\n            const response = await quickbooks.sendBills(sortedInvoices.unsent, false);\n            const filterResponses = (response || []).filter(r => Boolean(r));\n            if (filterResponses?.length) {\n              (0, _object.set)(this, 'invoiceResponses', [response]);\n              (0, _object.set)(this, 'invoiceTypeResponseHandlerVisible', true);\n            } else {\n              (0, _object.get)(this, 'notifications').success((0, _object.get)(this, 'intl').t('shared.notification.Sent bill to QuickBooks'));\n            }\n          }\n        } catch (error) {\n          this.send('error', error);\n        } finally {\n          (0, _object.set)(this, 'unmappedInvoicesToConfirm', null);\n          (0, _object.set)(this, 'isQuickbooksLoading', false);\n        }\n      },\n      onInvoiceTypeResponseHandlerCancel() {\n        (0, _object.set)(this, 'invoiceResponses', []);\n        (0, _object.set)(this, 'invoiceTypeResponseHandlerVisible', false);\n      },\n      async acceptSelectedInvoices() {\n        const notifications = (0, _object.get)(this, 'notifications');\n        const invoices = (0, _object.get)(this, 'selectedInvoices').filter(invoice => (0, _object.get)(invoice, 'status') === 'DRAFT');\n\n        // Check that invoices are valid for acceptance\n        const invoicesNotValidMessage = this.checkInvoiceIsValid(invoices);\n        if (invoicesNotValidMessage) return notifications.info(invoicesNotValidMessage);\n        const invoiceItems = invoices.reduce((invoiceItems, invoice) => {\n          return [...invoiceItems, ...(invoice.hasMany('items').value()?.toArray() || [])];\n        }, []);\n        const hasUnmapped = invoiceItems.some(i => !i.belongsTo('project').id() && !i.belongsTo('task').id());\n        if (!(0, _object.get)(this, 'doNotWarnForUnmappedInvoice') && hasUnmapped) {\n          const confirmed = await this.confirmInvoiceWarnings();\n          if (!confirmed) return;\n        }\n\n        // Change status and save each invoice\n        (0, _object.set)(this, 'isSaving', true);\n        try {\n          await _rsvp.default.all(invoices.map(invoice => this.acceptAndSaveInvoice(invoice)));\n          notifications.success((0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.bills-legacy.Successfully accepted and saved invoices'));\n          // remove from ember data\n          this._postFilterBillsOnClient(invoices);\n        } catch (error) {\n          notifications.error({\n            error,\n            message: (0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.bills-legacy.One or more invoices failed to save')\n          });\n        } finally {\n          (0, _object.set)(this, 'isSaving', false);\n        }\n      },\n      async archiveSelectedInvoices() {\n        const notifications = (0, _object.get)(this, 'notifications');\n        const invoices = (0, _object.get)(this, 'selectedInvoices').filter(invoice => (0, _object.get)(invoice, 'status') !== 'ARCHIVED');\n        if (!invoices.length) {\n          return notifications.info((0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.bills-legacy.allTheSelectedBillsAreAlreadyArchived'));\n        }\n\n        // Change status and save each invoice\n        (0, _object.set)(this, 'isSaving', true);\n        try {\n          await _rsvp.default.all(invoices.map(invoice => this.archiveAndSaveInvoice(invoice)));\n          notifications.success((0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.bills-legacy.Successfully archived and saved invoices'));\n          // remove from ember data\n          this._postFilterBillsOnClient(invoices);\n        } catch (error) {\n          notifications.error({\n            error,\n            message: (0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.bills-legacy.One or more invoices failed to save')\n          });\n        } finally {\n          (0, _object.set)(this, 'isSaving', false);\n        }\n      },\n      async deleteSelectedInvoices() {\n        const hasOneBill = (0, _object.get)(this, 'selectedInvoices.length') === 1;\n        const isInvoiced = (0, _object.get)(this, 'selectedInvoices').some(i => i._meta?.isInvoiced);\n        this.invoicedCosts.requestDelete.perform({\n          isInvoiced,\n          title: (0, _object.get)(this, 'intl').t(hasOneBill ? 'services.invoiced-costs.Delete linked bill' : 'services.invoiced-costs.Delete linked bills'),\n          message: (0, _object.get)(this, 'intl').t(hasOneBill ? 'services.invoiced-costs.billMessage' : 'services.invoiced-costs.billsMessage'),\n          deleteCb: async () => {\n            const invoices = (0, _object.get)(this, 'selectedInvoices');\n            if (!invoices.length) return (0, _object.get)(this, 'notifications').info((0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.bills-legacy.youHaveNotSelectedAnyInvoicesToDelete'));\n            (0, _object.set)(this, 'isDeleting', true);\n            try {\n              await _rsvp.default.all(invoices.map(inv => inv.destroyRecord()));\n              (0, _object.get)(this, 'model.invoices').removeObjects(invoices);\n              (0, _object.get)(this, 'notifications').success((0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.bills-legacy.Successfully deleted invoices'));\n            } finally {\n              (0, _object.set)(this, 'isDeleting', false);\n              (0, _object.set)(this, 'invoiceDeleteConfirmModalVisible', false);\n            }\n          }\n        });\n      },\n      async handleImportInvoices(data) {\n        const {\n          invoices\n        } = data;\n        const entityId = (0, _object.get)(this, 'sessionData.entity.id');\n        const uniqueBillNumbers = Array.from(new Set((invoices || []).map(inv => (inv.billNumber || '').trim()).filter(billNumber => billNumber)));\n        let existingInvoices = (0, _object.get)(this, 'model.invoices') || [];\n        if (uniqueBillNumbers.length) {\n          try {\n            existingInvoices = await this.store.query('bill', {\n              filter: {\n                and: [{\n                  field: 'entity',\n                  op: 'EQ',\n                  value: entityId\n                }, {\n                  field: 'billNumber',\n                  op: 'IN',\n                  value: uniqueBillNumbers\n                }]\n              },\n              sort: 'issuer',\n              fields: {\n                bills: '_meta.hasDuplicate'\n              }\n            }).then(res => res.toArray ? res.toArray() : res);\n          } catch (_e) {\n            // ignore\n          }\n        }\n        const importedInvoices = invoices.reduce((grouped, invoice) => {\n          const {\n            billNumber,\n            issuer\n          } = invoice;\n          const invoiceIsExisting = existingInvoices.find(existingInvoice => (0, _object.get)(existingInvoice, 'billNumber') === billNumber && (0, _object.get)(existingInvoice, 'issuer') === issuer);\n          if (invoiceIsExisting) {\n            grouped.existing.push(invoice);\n          } else {\n            grouped.new.push(invoice);\n          }\n          return grouped;\n        }, {\n          new: [],\n          existing: [],\n          invoices\n        });\n        if (importedInvoices.existing.length) {\n          (0, _object.set)(this, 'importedInvoices', importedInvoices);\n          return;\n        } else {\n          this.send('importInvoices', invoices);\n        }\n      },\n      async importInvoices(invoices) {\n        const store = (0, _object.get)(this, 'store');\n        const entity = (0, _object.get)(this, 'sessionData.entity');\n\n        // Create the new invoice(s)\n        const newInvoices = invoices.map(inv => {\n          // Create invoice record\n          const invoice = store.createRecord('bill', Object.assign({\n            allocationType: 'MATERIALS'\n          }, inv, {\n            entity,\n            items: []\n          }));\n          // Create item records and add them to the invoice\n          (inv.items || []).forEach(it => store.createRecord('bill-item', {\n            ...it,\n            entity: (0, _object.get)(this, 'sessionData.entity'),\n            bill: invoice\n          }));\n          // Run the autoMapper on the invoice\n          this.autoMap(invoice);\n          // Return the invoice\n          return invoice;\n        });\n        try {\n          await _rsvp.default.all(newInvoices.map(async invoice => {\n            await invoice.save();\n            await _rsvp.default.all(invoice.hasMany('items').value().map(item => item.save()));\n\n            // Notify the parent route that a new invoice needs to be added to the list.\n            this.send('invoiceAdded', invoice);\n          }));\n          (0, _object.set)(this, 'importedInvoices', null);\n          (0, _object.get)(this, 'notifications').success((0, _object.get)(this, 'intl').t('shared.notification.Saved successfully'));\n          this.send('refreshModel');\n        } catch (error) {\n          (0, _object.get)(this, 'notifications').error({\n            error,\n            message: (0, _object.get)(this, 'intl').t('shared.notification.Something went wrong while saving')\n          });\n        }\n      },\n      /**\n       * Applies the allocation to the selectedItems, saves the items,\n       * and refreshes any totals records that may have been affected.\n       * @param {Object} allocation - Contains project and task.\n       * @param {Object} xeroAccountOverride - Contains the xero account override from the allocate modal.\n       * @returns {void}\n       */\n      async allocateSelected(allocation, xeroAccountOverride) {\n        const notifications = (0, _object.get)(this, 'notifications');\n        try {\n          (0, _object.set)(this, 'isAllocating', true);\n          const selectedInvoiceItems = (0, _object.get)(this, 'selectedInvoiceItems');\n\n          // Allocate and save the invoice items\n          await this.allocateAndSaveInvoiceItems(selectedInvoiceItems, allocation, xeroAccountOverride);\n          notifications.success((0, _object.get)(this, 'intl').t('shared.notification.Items successfully allocated'));\n          // remove from ember data\n          this._postFilterBillsOnClient((0, _object.get)(this, 'selectedInvoices'));\n        } catch (error) {\n          notifications.error({\n            error,\n            message: (0, _object.get)(this, 'intl').t('shared.notification.somethingWentWrongWhileAllocatingItems')\n          });\n        } finally {\n          // Close the allocating dialog\n          (0, _object.set)(this, 'allocatingItems', false);\n          (0, _object.set)(this, 'isAllocating', false);\n        }\n      },\n      async allocateAndAcceptSelected(allocation, xeroAccountOverride) {\n        const notifications = (0, _object.get)(this, 'notifications');\n        const invoices = (0, _object.get)(this, 'selectedInvoices');\n\n        // Check that invoices are valid for acceptance\n        const invoicesNotValidMessage = this.checkInvoiceIsValid(invoices);\n        if (invoicesNotValidMessage) return notifications.info(invoicesNotValidMessage);\n        if (!(0, _object.get)(this, 'doNotWarnForUnmappedInvoice') && !allocation) {\n          const confirmed = await this.confirmInvoiceWarnings();\n          if (!confirmed) return;\n        }\n        try {\n          (0, _object.set)(this, 'isAllocatingAndAccepting', true);\n          const selectedInvoiceItems = (0, _object.get)(this, 'selectedInvoiceItems');\n\n          // Allocate and save the invoice items\n          await this.allocateAndSaveInvoiceItems(selectedInvoiceItems, allocation, xeroAccountOverride);\n\n          // Accept and save the invoices\n          await _rsvp.default.all(invoices.map(invoice => this.acceptAndSaveInvoice(invoice)));\n          notifications.success((0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.bills-legacy.itemsSuccessfullyAllocatedAndAccepted'));\n          // remove from ember data\n          this._postFilterBillsOnClient(invoices);\n        } catch (error) {\n          notifications.error({\n            error,\n            message: (0, _object.get)(this, 'intl').t('shared.notification.somethingWentWrongWhileAllocatingAndAcceptingBill')\n          });\n        } finally {\n          // Close the allocating dialog\n          (0, _object.set)(this, 'allocatingItems', false);\n          (0, _object.set)(this, 'isAllocatingAndAccepting', false);\n        }\n      },\n      async allocateAcceptAndSendToXeroSelected(allocation, xeroAccountOverride) {\n        const notifications = (0, _object.get)(this, 'notifications');\n        const invoices = (0, _object.get)(this, 'selectedInvoices');\n\n        // Check that invoices are valid for acceptance\n        const invoicesNotValidMessage = this.checkInvoiceIsValid(invoices);\n        if (invoicesNotValidMessage) return notifications.info(invoicesNotValidMessage);\n        if (!(0, _object.get)(this, 'doNotWarnForUnmappedInvoice') && !allocation) {\n          const confirmed = await this.confirmInvoiceWarnings();\n          if (!confirmed) return;\n        }\n        try {\n          (0, _object.set)(this, 'isAllocatingAcceptingAndSendingToXero', true);\n          const xero = (0, _object.get)(this, 'xeroIntegration');\n          const selectedInvoiceItems = (0, _object.get)(this, 'selectedInvoiceItems');\n\n          // Allocate and save the invoice items\n          await this.allocateAndSaveInvoiceItems(selectedInvoiceItems, allocation, xeroAccountOverride);\n\n          // Accept and save the invoices\n          await _rsvp.default.all(invoices.map(invoice => this.acceptAndSaveInvoice(invoice)));\n\n          // Sort invoices into unsent and sent\n          const sortedInvoices = this.sortXeroInvoicesForSending(invoices);\n\n          // If there are sendable invoices send them\n          if (sortedInvoices.unsent.length) {\n            const responses = await xero.sendBills(sortedInvoices.unsent, false);\n            const hasRejection = responses.find(resp => resp.attachments.find(resp => resp.rejected));\n            if (hasRejection) {\n              (0, _object.set)(this, 'invoiceResponses', responses);\n              (0, _object.set)(this, 'invoiceTypeResponseHandlerVisible', true);\n            } else {\n              // Create the Xero outcome message\n              const xeroMessage = this.makeSendInvoicesToXeroOutcomeMessage(sortedInvoices);\n              notifications.success({\n                message: `${(0, _object.get)(this, 'intl').t('shared.notification.billsSuccessfullyAllocatedAndAccepted')} ${xeroMessage}`\n              }, 7500);\n            }\n          } else {\n            notifications.info(`${(0, _object.get)(this, 'intl').t('shared.notification.billsSuccessfullyAllocatedAndAccepted')} ${(0, _object.get)(this, 'intl').t('shared.notification.The bills were already sent to Xero')}`);\n          }\n          // remove from ember data\n          this._postFilterBillsOnClient(invoices);\n        } catch (error) {\n          notifications.error({\n            error,\n            message: (0, _object.get)(this, 'intl').t('shared.notification.thereWasAProblemAllocatingAcceptingOrSendingTheInvoicesToXero')\n          });\n        } finally {\n          // Close the allocating dialog\n          (0, _object.set)(this, 'allocatingItems', false);\n          (0, _object.set)(this, 'isAllocatingAcceptingAndSendingToXero', false);\n        }\n      },\n      async updateXeroAccounts() {\n        const xero = (0, _object.get)(this, 'xeroIntegration');\n        const entity = (0, _object.get)(this, 'sessionData.entity');\n        (0, _object.set)(this, 'xeroFetching', true);\n        // Update accounts and get results\n        let results;\n        try {\n          results = await xero.getAccounts(entity);\n        } catch (error) {\n          // Abort the action\n          (0, _object.set)(this, 'xeroFetching', false);\n          return;\n        }\n\n        // Apply results to what has been loaded already\n        try {\n          const {\n            created = [],\n            updated = [],\n            removed = []\n          } = results;\n          // Fetch any newly created accounts\n          if (created.length) {\n            await this.handleNewAccounts(created, (0, _object.get)(entity, 'id'));\n          }\n          // Reload any updated accounts\n          if (updated.length) {\n            await this.handleUpdatedAccounts(updated);\n          }\n          // Unload any removed accounts\n          if (removed.length) {\n            await this.handleRemovedAccounts(removed);\n          }\n        } catch (error) {\n          this.send('error', error);\n        } finally {\n          (0, _object.set)(this, 'xeroFetching', false);\n        }\n      },\n      async updateQuickbooksAccounts() {\n        const quickbooks = (0, _object.get)(this, 'quickbooks');\n        const entity = (0, _object.get)(this, 'sessionData.entity');\n        (0, _object.set)(this, 'quickbooksFetching', true);\n        // Update accounts and get results\n        let results;\n        try {\n          results = await quickbooks.getAccounts(entity);\n        } catch (error) {\n          // Abort the action\n          (0, _object.set)(this, 'quickbooksFetching', false);\n          return;\n        }\n\n        // Apply results to what has been loaded already\n        try {\n          const {\n            created = [],\n            updated = [],\n            removed = []\n          } = results;\n          // Fetch any newly created accounts\n          if (created.length) {\n            await this.handleNewQuickbooksAccounts(created, (0, _object.get)(entity, 'id'));\n          }\n          // Reload any updated accounts\n          if (updated.length) {\n            await this.handleUpdatedQuickbooksAccounts(updated);\n          }\n          // Unload any removed accounts\n          if (removed.length) {\n            await this.handleRemovedQuickbooksAccounts(removed);\n          }\n        } catch (error) {\n          this.send('error', error);\n        } finally {\n          (0, _object.set)(this, 'quickbooksFetching', false);\n        }\n      },\n      toggleInvoicesSelected() {\n        const checked = (0, _object.get)(this, 'allInvoicesSelected');\n        (0, _object.get)(this, 'invoices').forEach(invoice => (0, _object.set)(invoice, 'checked', !checked));\n      }\n    },\n    _postFilterBillsOnClient(changedInvoices = []) {\n      const statusFilter = (0, _object.get)(this, 'status');\n      const unallocatedOnly = (0, _object.get)(this, 'unallocatedOnly');\n      if (statusFilter === 'ALL' && !unallocatedOnly) return;\n      const list = (0, _object.get)(this, 'model.invoices');\n      if (!list || !changedInvoices.length) return;\n      const toRemove = changedInvoices.filter(inv => {\n        if (statusFilter !== 'ALL' && (0, _object.get)(inv, 'status') !== statusFilter) return true;\n        if (unallocatedOnly && (0, _object.get)(inv, 'fullyMapped')) return true;\n        return false;\n      });\n      if (toRemove.length) list.removeObjects(toRemove);\n    },\n    async allocateAndSaveInvoiceItems(selectedInvoiceItems, allocation, xeroAccountOverride) {\n      if (!allocation) return this._clearInvoiceItemsAllocation(selectedInvoiceItems, xeroAccountOverride);\n      const allocationIsProject = (0, _object.get)(this, 'model.projects').find(p => p === allocation);\n      if (allocationIsProject) {\n        return this._allocateInvoiceItemsToProject(selectedInvoiceItems, allocation, xeroAccountOverride);\n      } else {\n        return this._allocateInvoiceItemsToTask(selectedInvoiceItems, allocation, xeroAccountOverride);\n      }\n    },\n    async _allocateInvoiceItemsToProject(items, allocation, xeroAccountOverride) {\n      const invoiceItems = items.map(item => {\n        // always clear the other allocation type\n        (0, _object.set)(item, 'project', allocation);\n        (0, _object.set)(item, 'task', null);\n        (0, _object.set)(item, 'glAccount', xeroAccountOverride || allocation.effectivePurchasesGlAccount);\n        return item.toJSON({\n          includeId: true\n        });\n      });\n      await this.buildaPrice.updateInvoiceItems(invoiceItems);\n      return invoiceItems;\n    },\n    async _allocateInvoiceItemsToTask(items, allocation, xeroAccountOverride) {\n      const invoiceItems = items.map(item => {\n        // always clear the other allocation type\n        (0, _object.set)(item, 'task', allocation);\n        (0, _object.set)(item, 'project', null);\n        (0, _object.set)(item, 'glAccount', xeroAccountOverride || allocation.effectivePurchasesGlAccount);\n        return item.toJSON({\n          includeId: true\n        });\n      });\n      await this.buildaPrice.updateInvoiceItems(invoiceItems);\n      return invoiceItems;\n    },\n    async _clearInvoiceItemsAllocation(items, xeroAccountOverride) {\n      const invoiceItems = items.map(item => {\n        (0, _object.set)(item, 'task', null);\n        (0, _object.set)(item, 'project', null);\n        // in this scenario we know all the items are no longer mapped - overwrite the api compted value\n        (0, _object.set)(item, 'isMapped', false);\n        if (xeroAccountOverride) (0, _object.set)(item, 'xeroAccount', xeroAccountOverride);\n        return item.toJSON({\n          includeId: true\n        });\n      });\n      await this.buildaPrice.updateInvoiceItems(invoiceItems);\n      return invoiceItems;\n    },\n    checkInvoiceIsValid(invoices) {\n      // Check all the invoices are valid\n      if (invoices.some(i => !(0, _object.get)(i, 'isValid'))) {\n        return (0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.bills-legacy.oneOrMoreInvoicesIsNotCompleteAndCannotBeAccepted');\n      }\n      return false;\n    },\n    confirmInvoiceWarnings() {\n      return new Promise(resolve => {\n        const confirmCallback = confirmed => resolve(confirmed);\n        (0, _object.set)(this, 'confirmCallback', confirmCallback);\n        (0, _object.set)(this, 'unmappedInvoiceWarningModalVisible', true);\n      }).then(confirmed => {\n        (0, _object.set)(this, 'unmappedInvoiceWarningModalVisible', false);\n        return confirmed;\n      });\n    },\n    sortXeroInvoicesForSending(invoices) {\n      const unsent = [];\n      const sent = [];\n\n      // If an invoice has already been sent to Xero, push to unsent\n      invoices.forEach(invoice => (0, _object.get)(invoice, 'xeroLinked') ? sent.push(invoice) : unsent.push(invoice));\n      return {\n        unsent,\n        sent\n      };\n    },\n    sortQuickbooksInvoicesForSending(invoices) {\n      const unsent = [];\n      const sent = [];\n\n      // If an invoice has already been sent to quickbooks, push to unsent\n      invoices.forEach(invoice => (0, _object.get)(invoice, 'quickbooksLinked') ? sent.push(invoice) : unsent.push(invoice));\n      return {\n        unsent,\n        sent\n      };\n    },\n    makeSendInvoicesToXeroOutcomeMessage({\n      sent: previouslySent,\n      unsent: previouslyUnsent\n    }) {\n      let message = '';\n      const prevSentCount = (0, _object.get)(previouslySent, 'length');\n      const prevUnsentCount = (0, _object.get)(previouslyUnsent, 'length');\n      if (prevUnsentCount) message += (0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.bills-legacy.successfullySentXInvoiceToXero', {\n        count: prevUnsentCount,\n        invoice: prevUnsentCount > 1 ? 'invoices' : 'invoice'\n      });\n      if (prevSentCount) message += ` ${(0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.bills-legacy.xInvoiceWereAlreadyImportedToXero', {\n        count: prevSentCount,\n        invoice: prevSentCount > 1 ? 'invoices' : 'invoice'\n      })}`;\n      return message.trim();\n    },\n    makeSendInvoicesToQuickbooksOutcomeMessage({\n      sent: previouslySent,\n      unsent: previouslyUnsent\n    }) {\n      let message = '';\n      const prevSentCount = (0, _object.get)(previouslySent, 'length');\n      const prevUnsentCount = (0, _object.get)(previouslyUnsent, 'length');\n      if (prevUnsentCount) message += `Successfully sent ${prevUnsentCount} ${prevUnsentCount > 1 ? 'invoices' : 'invoice'} to QuickBooks`;\n      if (prevSentCount) message += ` There {be} ${prevSentCount} ${prevSentCount > 1 ? 'invoices' : 'invoice'} already imported to QuickBooks`;\n      return message.trim();\n    },\n    /**\n     * Looks for a project to map to, then either applys the auto mapping and returns true,\n     * or does nothing and returns false.\n     * @param {Object} invoice - The invoice to automap (mutated).\n     * @returns {Boolean} True if changes were made\n     */\n    autoMap(invoice) {\n      // Make sure that there are directives to choose from\n      const allDirectives = (0, _object.get)(this, 'model.directives');\n      if (!(0, _object.get)(allDirectives, 'length')) return false;\n\n      // Get directive from algorithm\n      const directive = (0, _autoMap.default)(invoice, allDirectives);\n\n      // Only attempt a map if we have a directive and something to map to\n      if (directive && directive.belongsTo('project').id()) {\n        (0, _object.set)(invoice, 'isAutoMapped', true);\n        (0, _object.set)(invoice, 'directiveUsed', directive);\n        const project = directive.belongsTo('project').value();\n        invoice.hasMany('items').value().forEach(item => {\n          // Unmap task if we are going to be changing the project\n          if (item.belongsTo('project').id() !== (0, _object.get)(project, 'id')) {\n            (0, _object.set)(item, 'task', null);\n          }\n          // Map the item to the correct project\n          (0, _object.set)(item, 'project', project);\n        });\n        return true;\n      } else {\n        return false;\n      }\n    },\n    async acceptAndSaveInvoice(invoice) {\n      const originalStatus = (0, _object.get)(invoice, 'status');\n      try {\n        (0, _object.set)(invoice, 'status', 'ACCEPTED');\n        await invoice.save();\n      } catch (error) {\n        (0, _object.set)(invoice, 'status', originalStatus);\n        throw error;\n      }\n    },\n    async archiveAndSaveInvoice(invoice) {\n      const originalStatus = (0, _object.get)(invoice, 'status');\n      try {\n        (0, _object.set)(invoice, 'status', 'ARCHIVED');\n        await invoice.save();\n      } catch (error) {\n        (0, _object.set)(invoice, 'status', originalStatus);\n        throw error;\n      }\n    },\n    uncheckInvoices(invoices) {\n      if (!invoices.length) return;\n      for (const invoice of invoices) {\n        (0, _object.set)(invoice, 'checked', false);\n      }\n    },\n    async handleNewAccounts(accounts, entityId) {\n      const newAccounts = await this.store.simpleQuery('gl-account', {\n        entity: entityId,\n        _id: {\n          $in: accounts\n        }\n      });\n      (0, _object.get)(this, 'model.xeroAccounts').pushObjects(newAccounts.toArray().sortBy('code'));\n    },\n    async handleUpdatedAccounts(accounts) {\n      const existingAccounts = (0, _object.get)(this, 'model.xeroAccounts') || [];\n      await _rsvp.default.all(accounts.map(id => {\n        const existingRecord = existingAccounts.find(a => (0, _object.get)(a, 'id') === id);\n        return existingRecord && existingRecord.reload();\n      }));\n    },\n    async handleRemovedAccounts(accounts) {\n      const existingAccounts = (0, _object.get)(this, 'model.xeroAccounts') || [];\n      for (const id of accounts) {\n        const account = existingAccounts.find(a => (0, _object.get)(a, 'id') === id);\n        if (account) {\n          // unload the record\n          existingAccounts.removeObject(account);\n          this.store.unloadRecord(account);\n        }\n      }\n    },\n    async handleNewQuickbooksAccounts(accounts, entityId) {\n      const newAccounts = await this.store.simpleQuery('gl-account', {\n        entity: entityId,\n        _id: {\n          $in: accounts\n        }\n      });\n      (0, _object.get)(this, 'model.quickbooksAccounts').pushObjects(newAccounts.toArray().sortBy('code'));\n    },\n    async handleUpdatedQuickbooksAccounts(accounts) {\n      const existingAccounts = (0, _object.get)(this, 'model.quickbooksAccounts') || [];\n      await _rsvp.default.all(accounts.map(id => {\n        const existingRecord = existingAccounts.find(a => (0, _object.get)(a, 'id') === id);\n        return existingRecord && existingRecord.reload();\n      }));\n    },\n    async handleRemovedQuickbooksAccounts(accounts) {\n      const existingAccounts = (0, _object.get)(this, 'model.quickbooksAccounts') || [];\n      for (const id of accounts) {\n        const account = existingAccounts.find(a => (0, _object.get)(a, 'id') === id);\n        if (account) {\n          // unload the record\n          existingAccounts.removeObject(account);\n          this.store.unloadRecord(account);\n        }\n      }\n    }\n  });\n});","define(\"portal/controllers/entity/builda-price/operations/incoming/bills-legacy/bill\", [\"exports\", \"@ember/controller\", \"@ember/object\", \"rsvp\", \"@ember/service\", \"@ember/object/computed\", \"ember-local-storage\", \"portal/utils/auto-map\", \"lodash\", \"portal/models/attachment\"], function (_exports, _controller, _object, _rsvp, _service, _computed, _emberLocalStorage, _autoMap, _lodash, _attachment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/object\",0,\"rsvp\",0,\"@ember/service\",0,\"@ember/object/computed\",0,\"ember-local-storage\",0,\"portal/utils/auto-map\",0,\"lodash\",0,\"portal/models/attachment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({\n    intl: (0, _service.inject)(),\n    notifications: (0, _service.inject)(),\n    xeroIntegration: (0, _service.inject)(),\n    quickbooks: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    buildaPrice: (0, _service.inject)(),\n    router: (0, _service.inject)(),\n    persistedSettings: (0, _emberLocalStorage.storageFor)('settings'),\n    doNotWarnForUnmappedInvoice: (0, _computed.alias)('persistedSettings.invoices:doNotWarnForUnmappedInvoice'),\n    isEditing: false,\n    isSaving: false,\n    isAccepting: false,\n    isAllocating: false,\n    isAllocatingAndAccepting: false,\n    isAllocatingAcceptingAndSendingToXero: false,\n    selectedItems: null,\n    dirtyRels: null,\n    deletedItems: null,\n    invoiceResponses: [],\n    invoiceTypeResponseHandlerVisible: false,\n    unmappedInvoiceWarningModalVisible: false,\n    acceptedMimeTypes: [..._attachment.shortcutsToMime.image, ..._attachment.shortcutsToMime.text, ..._attachment.shortcutsToMime.document, ..._attachment.shortcutsToMime.archive],\n    pageTitle: (0, _object.computed)('model.invoice.isNew', 'isEditing', 'model.invoice.totalPrice', function () {\n      if ((0, _object.get)(this, 'model.invoice.isNew')) {\n        return (0, _object.get)(this, 'intl').t('common.New bill');\n      } else if ((0, _object.get)(this, 'isEditing') && !(0, _object.get)(this, 'model.invoice.isNew')) {\n        return (0, _object.get)(this, 'intl').t('common.Editing');\n      } else if ((0, _object.get)(this, 'model.invoice.totalPrice') < 0) {\n        return (0, _object.get)(this, 'intl').t('shared.bill.Credit note');\n      } else {\n        return (0, _object.get)(this, 'intl').t('common.Bill');\n      }\n    }),\n    crumbStack: (0, _object.computed)('pageTitle', function () {\n      return [{\n        route: 'entity.builda-price.operations.incoming.bills-legacy.index',\n        pageTitle: (0, _object.get)(this, 'intl').t('common.Bills')\n      }, {\n        pageTitle: (0, _object.get)(this, 'pageTitle')\n      }];\n    }),\n    isDueDateInvalid: (0, _object.computed)('showValidations', 'model.invoice.dueDate', function () {\n      return (0, _object.get)(this, 'showValidations') && !(0, _object.get)(this, 'model.invoice.dueDate');\n    }),\n    isIssueDateInvalid: (0, _object.computed)('showValidations', 'model.invoice.issueDate', function () {\n      return (0, _object.get)(this, 'showValidations') && !(0, _object.get)(this, 'model.invoice.issueDate');\n    }),\n    entityXeroCompanyId: (0, _computed.alias)('xeroIntegration.companyId'),\n    references: (0, _object.computed)('model.invoices.@each.reference', function () {\n      const invoices = (0, _object.get)(this, 'model.invoices').uniqBy('reference').filter(invoice => !(0, _object.get)(invoice, 'hasDirtyAttributes') && (0, _object.get)(invoice, 'reference'));\n      return invoices.sortBy('reference');\n    }),\n    issuerGroupedInvoiceItems: (0, _object.computed)('model.invoice.id', 'model.invoices', function () {\n      const thisInvoiceId = (0, _object.get)(this, 'model.invoice.id');\n      return (0, _object.get)(this, 'model.invoices').reduce((obj, invoice) => {\n        if ((0, _object.get)(invoice, 'id') === thisInvoiceId) return obj;\n        const issuer = (0, _object.get)(invoice, 'issuer') ? (0, _object.get)(invoice, 'issuer').trim() : '';\n        const items = ((0, _object.get)(invoice, 'items').content?.toArray() || []).filter(item => (0, _object.get)(item, 'description'));\n        const existingInvoiceItems = obj[issuer] || [];\n        obj[issuer] = [...existingInvoiceItems, ...items];\n        return obj;\n      }, {});\n    }),\n    names: (0, _object.computed)('issuerGroupedInvoiceItems', 'model.invoice.issuer', function () {\n      const issuer = ((0, _object.get)(this, 'model.invoice.issuer') || '').trim();\n      const items = (0, _object.get)(this, 'issuerGroupedInvoiceItems')[issuer] || [];\n      const uniqueItems = _lodash.default.uniqBy(items, item => (0, _object.get)(item, 'description').trim());\n      const sortedItems = _lodash.default.sortBy(uniqueItems, item => (0, _object.get)(item, 'description').trim());\n      return sortedItems;\n    }),\n    nextInvoice: (0, _object.computed)('model.{invoice,invoices}', function () {\n      const invoices = (0, _object.get)(this, 'model.invoices');\n      const index = invoices.findIndex(invoice => invoice === (0, _object.get)(this, 'model.invoice'));\n      const next = invoices.objectAt(index + 1);\n      const previous = invoices.objectAt(index - 1);\n      return {\n        next: next && (0, _object.get)(next, 'id'),\n        previous: previous && (0, _object.get)(previous, 'id')\n      };\n    }),\n    issuers: (0, _object.computed)('model.suppliers', function () {\n      const suppliers = (0, _object.get)(this, 'model.suppliers');\n      return suppliers.sortBy('name');\n    }),\n    /**\n     * Returns an object who's keys are the indices of the invoice items and values are booleans\n     * which indicate whether that item is selected. e.g.\n     * {\n     *   '0': true,\n     *   '1': false,\n     * }\n     * This is useful for use in the template e.g. {{get isSelected index}}\n     * @type {Object}\n     */\n    isSelected: (0, _object.computed)('model.invoice.sortedItems.[]', 'selectedItems.[]', function () {\n      const selected = (0, _object.get)(this, 'selectedItems');\n      return (0, _object.get)(this, 'model.invoice.sortedItems').reduce((result, item, index) => Object.assign(result, {\n        [index]: selected.includes(item)\n      }), {});\n    }),\n    /**\n     * True if there is at least one item AND all items are selected\n     */\n    allSelected: (0, _object.computed)('model.invoice.activeItems.[]', 'model.invoice.items.[]', 'model.invoice.items.@each.isDeleted', 'selectedItems.length', function () {\n      const itemsCount = (0, _object.get)(this, 'model.invoice.activeItems.length');\n      const selectedCount = (0, _object.get)(this, 'selectedItems.length');\n      return itemsCount && itemsCount === selectedCount;\n    }),\n    invoiceIsValid: (0, _object.computed)('model.invoice.isValid', 'model.invoice.activeItems.[]', 'model.invoice.items.[]', 'model.invoice.items.@each.{isDeleted,isValid}', function () {\n      const invoice = (0, _object.get)(this, 'model.invoice');\n      return (0, _object.get)(invoice, 'isValid') && (0, _object.get)(invoice, 'activeItems').every(i => (0, _object.get)(i, 'isValid'));\n    }),\n    isSecondaryAllocating: (0, _object.computed)('isAllocatingAndAccepting', 'isAllocatingAcceptingAndSendingToXero', function () {\n      return (0, _object.get)(this, 'isAllocatingAndAccepting') || (0, _object.get)(this, 'isAllocatingAcceptingAndSendingToXero');\n    }),\n    actions: {\n      transitionTo(route, id) {\n        this.router.transitionTo(route, id);\n      },\n      setInvoiceIssuer(issuer) {\n        (0, _object.set)(this, 'model.invoice.issuer', issuer);\n        const supplier = ((0, _object.get)(this, 'model.suppliers') || []).find(item => (0, _object.get)(item, 'name') === issuer);\n        const defaultBillAllocationType = supplier ? (0, _object.get)(supplier, 'defaultBillAllocationType') : null;\n        if (defaultBillAllocationType) {\n          (0, _object.set)(this, 'model.invoice.allocationType', defaultBillAllocationType);\n        }\n\n        // If we find a matching supplier with payment terms apply the payment terms to the invoice\n\n        // If we find a matching supplier with payment terms apply the payment terms to the invoice\n        const suppliersWithPaymentTermsHash = (0, _object.get)(this, 'model.suppliersWithPaymentTermsHash') || {};\n        const paymentTermSupplier = suppliersWithPaymentTermsHash[issuer];\n        if (paymentTermSupplier) {\n          const dueDate = paymentTermSupplier.getBillDueDate((0, _object.get)(this, 'model.invoice.issueDate'));\n          (0, _object.set)(this, 'model.invoice.dueDate', dueDate);\n        }\n      },\n      async deleteAttachment(attachment) {\n        try {\n          const billAttachments = (0, _object.get)(this, 'model.invoice').hasMany('attachments').value();\n          const attachmentToBeDeleted = billAttachments.find(item => item.id === attachment.id);\n          await attachmentToBeDeleted?.destroyRecord();\n        } catch (error) {\n          this.notifications.error({\n            error,\n            message: (0, _object.get)(this, 'intl').t('shared.notification.somethingWentWrongWhileDeletingTheAttachment')\n          });\n        }\n      },\n      async attachmentsUploadComplete({\n        attachments,\n        validationErrors,\n        error\n      }) {\n        try {\n          if (error) throw error;\n          await Promise.all(attachments.map(async attachment => {\n            return this.store.createRecord('bill-attachment', {\n              bill: this.model.invoice,\n              entity: this.sessionData.entity\n            }).save({\n              adapterOptions: {\n                meta: {\n                  data: attachment.data,\n                  filename: attachment.filename,\n                  fileType: attachment.fileType,\n                  extension: attachment.extension\n                }\n              }\n            });\n          }));\n          validationErrors.forEach(error => this.notifications.error(error));\n        } catch (error) {\n          this.notifications.error({\n            error,\n            message: (0, _object.get)(this, 'intl').t('shared.notification.somethingWentWrongWhileSavingAttachments')\n          });\n        }\n      },\n      downloadAttachment(record) {\n        window.open(record.href, '_blank');\n      },\n      /* ---------------------------------- Xero Actions ---------------------------------- */\n      viewInvoiceInXero(entityXeroCompanyId, xeroDeeplinkPath) {\n        window.open(`https://go.xero.com/organisationlogin/default.aspx?shortcode=${entityXeroCompanyId}${xeroDeeplinkPath}`, '_blank');\n      },\n      viewBillInQuickbooks(quickbooksDeeplinkPath) {\n        window.open(quickbooksDeeplinkPath, '_blank');\n      },\n      setItemXeroAccount(item, account) {\n        (0, _object.get)(this, 'dirtyRels').pushObject(item);\n        (0, _object.set)(item, 'glAccount', account);\n      },\n      setItemQuickbooksAccount(item, account) {\n        (0, _object.get)(this, 'dirtyRels').pushObject(item);\n        (0, _object.set)(item, 'glAccount', account);\n      },\n      async updateXeroAccounts() {\n        const xero = (0, _object.get)(this, 'xeroIntegration');\n        const entity = (0, _object.get)(this, 'sessionData.entity');\n        (0, _object.set)(this, 'xeroFetching', true);\n        // Update accounts and get results\n        let results;\n        try {\n          results = await xero.getAccounts(entity);\n        } catch (error) {\n          // Abort the action\n          (0, _object.set)(this, 'xeroFetching', false);\n          return;\n        }\n\n        // Apply results to what has been loaded already\n        try {\n          const {\n            created = [],\n            updated = [],\n            removed = []\n          } = results;\n          // Fetch any newly created accounts\n          if (created.length) {\n            await this.handleNewAccounts(created, (0, _object.get)(entity, 'id'));\n          }\n          // Reload any updated accounts\n          if (updated.length) {\n            await this.handleUpdatedAccounts(updated);\n          }\n          // Unload any removed accounts\n          if (removed.length) {\n            await this.handleRemovedAccounts(removed);\n          }\n        } catch (error) {\n          this.send('error', error);\n        } finally {\n          (0, _object.set)(this, 'xeroFetching', false);\n        }\n      },\n      async updateQuickbooksAccounts() {\n        const quickbooks = (0, _object.get)(this, 'quickbooks');\n        const entity = (0, _object.get)(this, 'sessionData.entity');\n        (0, _object.set)(this, 'quickbooksFetching', true);\n        // Update accounts and get results\n        let results;\n        try {\n          results = await quickbooks.getAccounts(entity);\n        } catch (error) {\n          // Abort the action\n          (0, _object.set)(this, 'quickbooksFetching', false);\n          return;\n        }\n\n        // Apply results to what has been loaded already\n        try {\n          const {\n            created = [],\n            updated = [],\n            removed = []\n          } = results;\n          // Fetch any newly created accounts\n          if (created.length) {\n            await this.handleNewQuickbooksAccounts(created, (0, _object.get)(entity, 'id'));\n          }\n          // Reload any updated accounts\n          if (updated.length) {\n            await this.handleUpdatedQuickbooksAccounts(updated);\n          }\n          // Unload any removed accounts\n          if (removed.length) {\n            await this.handleRemovedQuickbooksAccounts(removed);\n          }\n        } catch (error) {\n          this.send('error', error);\n        } finally {\n          (0, _object.set)(this, 'quickbooksFetching', false);\n        }\n      },\n      async sendToXero(acceptedCreditNoteMessage) {\n        const xero = (0, _object.get)(this, 'xeroIntegration');\n        const invoice = (0, _object.get)(this, 'model.invoice');\n        if ((0, _object.get)(invoice, 'totalPrice') < 0 && !acceptedCreditNoteMessage) {\n          (0, _object.set)(this, 'showCreditNoteMessage', true);\n          return;\n        }\n        (0, _object.set)(this, 'loadingXero', true);\n        try {\n          const response = await xero.sendBill(invoice);\n          const hasRejection = response?.attachments?.some(resp => resp.rejected);\n          if (hasRejection) {\n            (0, _object.set)(this, 'invoiceResponses', [response]);\n            (0, _object.set)(this, 'invoiceTypeResponseHandlerVisible', true);\n          } else if (response) {\n            (0, _object.get)(this, 'notifications').success((0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.bills-legacy.bill.Sent bill to Xero'));\n          }\n          (0, _object.set)(this, 'showCreditNoteMessage', false);\n        } finally {\n          (0, _object.set)(this, 'loadingXero', false);\n        }\n      },\n      async sendToQuickBooks(acceptedCreditNoteMessage) {\n        const quickbooks = (0, _object.get)(this, 'quickbooks');\n        const invoice = (0, _object.get)(this, 'model.invoice');\n        if ((0, _object.get)(invoice, 'totalPrice') < 0 && !acceptedCreditNoteMessage) {\n          (0, _object.set)(this, 'showCreditNoteMessage', true);\n          return;\n        }\n        (0, _object.set)(this, 'loadingQuickbooks', true);\n        try {\n          const response = await quickbooks.sendBill(invoice);\n          const filterResponses = (response || []).filter(r => Boolean(r));\n          if (filterResponses?.length) {\n            (0, _object.set)(this, 'invoiceResponses', [filterResponses]);\n            (0, _object.set)(this, 'invoiceTypeResponseHandlerVisible', true);\n          } else {\n            (0, _object.get)(this, 'notifications').success((0, _object.get)(this, 'intl').t('shared.notification.Sent bill to QuickBooks'));\n          }\n          (0, _object.set)(this, 'showCreditNoteMessage', false);\n        } finally {\n          (0, _object.set)(this, 'loadingQuickbooks', false);\n        }\n      },\n      async acceptInvoiceAndSendToXero(confirmUnmappedItems) {\n        const invoice = (0, _object.get)(this, 'model.invoice');\n        const notifications = (0, _object.get)(this, 'notifications');\n        try {\n          (0, _object.set)(this, 'unmappedInvoiceWarningModalVisible', false);\n          (0, _object.set)(this, 'continueActionAfterUnmappedWarning', null);\n          if ((0, _object.get)(invoice, 'status') === 'ACCEPTED') {\n            await this.actions.sendToXero.call(this);\n            return;\n          }\n          await this.actions.acceptInvoice.call(this, confirmUnmappedItems);\n          if ((0, _object.get)(this, 'unmappedInvoiceWarningModalVisible')) {\n            (0, _object.set)(this, 'continueActionAfterUnmappedWarning', 'acceptAndSend');\n            return;\n          }\n          if ((0, _object.get)(invoice, 'status') === 'ACCEPTED') {\n            await this.actions.sendToXero.call(this);\n          }\n        } catch (error) {\n          notifications.error({\n            error,\n            message: (0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.bills-legacy.bill.errorWhileSendingToXero')\n          });\n        } finally {\n          if (!(0, _object.get)(this, 'unmappedInvoiceWarningModalVisible')) {\n            (0, _object.set)(this, 'continueActionAfterUnmappedWarning', null);\n          }\n        }\n      },\n      async acceptInvoiceAndSendToQuickbooks(confirmUnmappedItems) {\n        const invoice = (0, _object.get)(this, 'model.invoice');\n        const notifications = (0, _object.get)(this, 'notifications');\n        try {\n          (0, _object.set)(this, 'unmappedInvoiceWarningModalVisible', false);\n          (0, _object.set)(this, 'continueActionAfterUnmappedWarning', null);\n          if ((0, _object.get)(invoice, 'status') === 'ACCEPTED') {\n            await this.actions.sendToQuickBooks.call(this);\n            return;\n          }\n          await this.actions.acceptInvoice.call(this, confirmUnmappedItems);\n          if ((0, _object.get)(this, 'unmappedInvoiceWarningModalVisible')) {\n            (0, _object.set)(this, 'continueActionAfterUnmappedWarning', 'acceptAndSend');\n            return;\n          }\n          if ((0, _object.get)(invoice, 'status') === 'ACCEPTED') {\n            await this.actions.sendToQuickBooks.call(this);\n          }\n        } catch (error) {\n          notifications.error({\n            error,\n            message: 'There was an error while accepting or sending the bill to QuickBooks'\n          });\n        } finally {\n          if (!(0, _object.get)(this, 'unmappedInvoiceWarningModalVisible')) {\n            (0, _object.set)(this, 'continueActionAfterUnmappedWarning', null);\n          }\n        }\n      },\n      /* ---------------------------------- Manage Page State ---------------------------------- */\n      nextStep() {\n        (0, _object.set)(this, 'newInvoiceStep', (0, _object.get)(this, 'newInvoiceStep') + 1);\n      },\n      toggleSelectItem(item, event) {\n        // Get selected\n        const selected = (0, _object.get)(this, 'selectedItems');\n\n        // Check whether item is selected\n        if (selected.includes(item)) {\n          selected.removeObject(item);\n        } else {\n          selected.pushObject(item);\n        }\n\n        // Stop event propogation to disable native checkbox behaviour\n        event.stopPropagation();\n      },\n      toggleSelectAll(event) {\n        // Set selectedItems to a copy of the ivoice's items array\n        if ((0, _object.get)(this, 'allSelected')) {\n          (0, _object.set)(this, 'selectedItems', []);\n        } else {\n          (0, _object.set)(this, 'selectedItems', [...(0, _object.get)(this, 'model.invoice.activeItems')]);\n        }\n\n        // Stop event propogation to disable native checkbox behaviour\n        event.stopPropagation();\n      },\n      cancel() {\n        const invoice = (0, _object.get)(this, 'model.invoice');\n        const invoiceWasNew = (0, _object.get)(invoice, 'isNew');\n\n        // Drop any changes (including entire records if they are new)\n        (0, _object.get)(this, 'deletedItems').forEach(item => item.rollbackAttributes());\n        ((0, _object.get)(invoice, 'items').content?.toArray() || []).forEach(item => item.rollbackAttributes());\n        invoice.rollbackAttributes();\n        (0, _object.set)(this, 'dirtyRels', []);\n        (0, _object.set)(this, 'deletedItems', []);\n        (0, _object.set)(this, 'selectedItems', ((0, _object.get)(invoice, 'items').content?.toArray() || []).filter(item => !(0, _object.get)(item, 'isDeleted')));\n\n        // If the invoice hadn't been saved yet. Then we have no reason to be on this page any more\n        if (invoiceWasNew) {\n          this.router.transitionTo('entity.builda-price.operations.incoming.bills-legacy');\n        } else {\n          // Put the page back in the non editing state\n          (0, _object.set)(this, 'isEditing', false);\n        }\n      },\n      onInvoiceTypeResponseHandlerCancel() {\n        (0, _object.set)(this, 'invoiceResponses', []);\n        (0, _object.set)(this, 'invoiceTypeResponseHandlerVisible', false);\n      },\n      /* ---------------------------------- Manage Invoice ---------------------------------- */\n      async autoMap() {\n        const notifications = (0, _object.get)(this, 'notifications');\n        const invoice = (0, _object.get)(this, 'model.invoice');\n        const didMakeChanges = this.autoMap(invoice);\n        if (!didMakeChanges) {\n          notifications.info('Auto mapping had no effect');\n          return;\n        }\n        (0, _object.set)(this, 'isAutoMapping', true);\n        try {\n          const invoiceItems = [];\n          const promises = [];\n          promises.push(invoice.save());\n          invoice.hasMany('items').value().forEach(item => invoiceItems.push(item.toJSON({\n            includeId: true\n          })));\n          promises.push(this.buildaPrice.updateInvoiceItems(invoiceItems));\n          await _rsvp.default.all(promises);\n          notifications.success((0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.bills-legacy.bill.Auto mapping successful'));\n        } catch (error) {\n          notifications.error({\n            error,\n            message: (0, _object.get)(this, 'intl').t('shared.notification.There was an error while auto mapping')\n          });\n        } finally {\n          (0, _object.set)(this, 'isAutoMapping', false);\n        }\n      },\n      async acceptInvoice(confirmUnmappedItems) {\n        const invoice = (0, _object.get)(this, 'model.invoice');\n        const notifications = (0, _object.get)(this, 'notifications');\n        const invoiceItems = (0, _object.get)(invoice, 'activeItems') || [];\n        const unmappedItems = invoiceItems.filter(item => !item.belongsTo('project').id() && !item.belongsTo('task').id());\n        try {\n          // Check invoice is valid for acceptance\n          const invalidInvoiceMessage = this.checkInvoiceIsValid(invoice);\n          if (invalidInvoiceMessage) {\n            notifications.warning(invalidInvoiceMessage);\n            (0, _object.set)(this, 'showValidations', true);\n            return;\n          }\n          // Warn user the invoice is unmapped\n          if (unmappedItems.length && !confirmUnmappedItems && !(0, _object.get)(this, 'doNotWarnForUnmappedInvoice')) {\n            (0, _object.set)(this, 'unmappedInvoiceWarningModalVisible', true);\n            return;\n          } else {\n            (0, _object.set)(this, 'unmappedInvoiceWarningModalVisible', false);\n          }\n          (0, _object.set)(this, 'isAccepting', true);\n          (0, _object.set)(invoice, 'status', 'ACCEPTED');\n          await this.saveInvoice(invoice);\n          notifications.success('Successfully accepted bill');\n        } catch (error) {\n          (0, _object.get)(this, 'notifications').error({\n            error,\n            message: (0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.bills-legacy.bill.thereWasAnErrorWhileAcceptingTheBill')\n          });\n        } finally {\n          (0, _object.set)(this, 'isAccepting', false);\n        }\n      },\n      changeStatus(status) {\n        (0, _object.set)(this, 'model.invoice.status', status);\n        (0, _object.get)(this, 'model.invoice').save();\n      },\n      addItem() {\n        this.store.createRecord('bill-item', {\n          bill: (0, _object.get)(this, 'model.invoice'),\n          unitPrice: 0,\n          entity: (0, _object.get)(this, 'sessionData.entity')\n        });\n      },\n      deleteItem(item) {\n        (0, _object.get)(this, 'selectedItems')?.removeObject(item);\n        if (!(0, _object.get)(item, 'isNew')) {\n          (0, _object.get)(this, 'deletedItems').addObject(item);\n        }\n        item.deleteRecord();\n      },\n      async save() {\n        const notifications = (0, _object.get)(this, 'notifications');\n        const invoice = (0, _object.get)(this, 'model.invoice');\n\n        // Abort if the invoice is not valid\n        const invalidInvoiceMessage = this.checkInvoiceIsValid(invoice);\n        if (invalidInvoiceMessage) {\n          notifications.warning(invalidInvoiceMessage);\n          (0, _object.set)(this, 'showValidations', true);\n          return;\n        }\n        (0, _object.set)(this, 'isSaving', true);\n        try {\n          const invoiceWasNew = (0, _object.get)(invoice, 'isNew');\n          const numberOfSaves = await this.saveInvoice(invoice);\n          (0, _object.set)(this, 'selectedItems', ((0, _object.get)(invoice, 'items').content.toArray() || []).filter(item => !(0, _object.get)(item, 'isDeleted')));\n          (0, _object.set)(this, 'dirtyRels', []);\n          (0, _object.set)(this, 'deletedItems', []);\n          if (numberOfSaves) {\n            notifications.success((0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.bills-legacy.bill.Bill successfully saved'));\n          } else {\n            notifications.info((0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.bills-legacy.bill.Nothing to save'));\n          }\n\n          // if the issuer is not found in suppliers, save the supplier, then ask the user if they would like add any information\n          if (this.checkForNewSupplier(invoice)) {\n            const name = (0, _object.get)(invoice, 'issuer');\n            const entity = (0, _object.get)(this, 'sessionData.entity');\n            const newSupplier = await this.store.createRecord('contact', {\n              name,\n              entity\n            });\n            await newSupplier.save();\n            (0, _object.get)(this, 'model.suppliers').pushObject(newSupplier);\n            (0, _object.set)(this, 'nextNewSupplier', newSupplier);\n            (0, _object.set)(this, 'newSupplierUpdateVisible', true);\n          }\n          (0, _object.set)(this, 'showValidations', false);\n\n          // Tidy up. If the invoice was new, this means transitioning to its unique URL.\n          // If not, then this means putting the page back in the non editing state.\n          if (invoiceWasNew) {\n            await this.store.query('bill', {\n              filter: {\n                and: [{\n                  field: 'entity',\n                  op: 'EQ',\n                  value: (0, _object.get)(this, 'sessionData.entity.id')\n                }, {\n                  field: 'billNumber',\n                  op: 'EQ',\n                  value: (0, _object.get)(invoice, 'billNumber')\n                }]\n              },\n              fields: {\n                bills: '_meta.hasDuplicate'\n              }\n            });\n            this.send('invoiceAdded', invoice);\n            this.router.transitionTo('entity.builda-price.operations.incoming.bills-legacy.bill', (0, _object.get)(invoice, 'id'));\n          } else {\n            (0, _object.set)(this, 'isEditing', false);\n          }\n        } catch (error) {\n          notifications.error({\n            error,\n            message: (0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.bills-legacy.bill.There was an error while saving the bill')\n          });\n        } finally {\n          (0, _object.set)(this, 'isSaving', false);\n        }\n      },\n      /**\n       * Applies the allocation to the selectedItems, saves the items,\n       * and refreshes any totals records that may have been affected.\n       * @param {Object} allocation - Contains project and task.\n       * @param {Object} xeroAccountOverride - Contains the xero account override from the allocate modal.\n       * @returns {void}\n       */\n      async allocateSelected(allocation, xeroAccountOverride) {\n        const notifications = (0, _object.get)(this, 'notifications');\n        try {\n          (0, _object.set)(this, 'isAllocating', true);\n          const selectedItems = (0, _object.get)(this, 'selectedItems');\n\n          // Allocate and save the invoice items\n          await this.allocateAndSaveInvoiceItems(selectedItems, allocation, xeroAccountOverride);\n          notifications.success((0, _object.get)(this, 'intl').t('shared.notification.Items successfully allocated'));\n        } catch (error) {\n          notifications.error({\n            error,\n            message: (0, _object.get)(this, 'intl').t('shared.notification.somethingWentWrongWhileAllocatingItems')\n          });\n        } finally {\n          // Close the allocating dialog\n          (0, _object.set)(this, 'allocatingItems', false);\n          (0, _object.set)(this, 'isAllocating', false);\n        }\n      },\n      async allocateAndAcceptSelected(allocation, xeroAccountOverride) {\n        const notifications = (0, _object.get)(this, 'notifications');\n        const invoice = (0, _object.get)(this, 'model.invoice');\n\n        // If invoice is not valid, it can't be accepted\n        const invalidInvoiceMessage = this.checkInvoiceIsValid(invoice);\n        if (invalidInvoiceMessage) {\n          notifications.warning(invalidInvoiceMessage);\n          (0, _object.set)(this, 'showValidations', true);\n          return;\n        }\n        try {\n          const selectedItems = (0, _object.get)(this, 'selectedItems');\n          (0, _object.set)(this, 'isAllocatingAndAccepting', true);\n\n          // Allocate and save the invoice items\n          await this.allocateAndSaveInvoiceItems(selectedItems, allocation, xeroAccountOverride);\n\n          // Accept and save the invoices\n          (0, _object.set)(invoice, 'status', 'ACCEPTED');\n          await this.saveInvoice(invoice);\n          notifications.success((0, _object.get)(this, 'intl').t('shared.notification.billsSuccessfullyAllocatedAndAccepted'));\n        } catch (error) {\n          notifications.error({\n            error,\n            message: (0, _object.get)(this, 'intl').t('shared.notification.somethingWentWrongWhileAllocatingAndAcceptingBill')\n          });\n        } finally {\n          // Close the allocating dialog\n          (0, _object.set)(this, 'isAllocatingAndAccepting', false);\n          (0, _object.set)(this, 'allocatingItems', false);\n        }\n      },\n      async allocateAcceptAndSendToXeroSelected(allocation, xeroAccountOverride) {\n        const notifications = (0, _object.get)(this, 'notifications');\n        const xero = (0, _object.get)(this, 'xeroIntegration');\n        const invoice = (0, _object.get)(this, 'model.invoice');\n\n        // If invoice is not valid, it can't be accepted\n        const invalidInvoiceMessage = this.checkInvoiceIsValid(invoice);\n        if (invalidInvoiceMessage) {\n          notifications.warning(invalidInvoiceMessage);\n          (0, _object.set)(this, 'showValidations', true);\n          return;\n        }\n        try {\n          const selectedItems = (0, _object.get)(this, 'selectedItems');\n          (0, _object.set)(this, 'isAllocatingAcceptingAndSendingToXero', true);\n\n          // Allocate and save the invoice items\n          await this.allocateAndSaveInvoiceItems(selectedItems, allocation, xeroAccountOverride);\n\n          // Accept and save the invoices\n          (0, _object.set)(invoice, 'status', 'ACCEPTED');\n          await this.saveInvoice(invoice);\n          if ((0, _object.get)(invoice, 'xeroLinked')) {\n            notifications.info(`${(0, _object.get)(this, 'intl').t('shared.notification.billsSuccessfullyAllocatedAndAccepted')} ${(0, _object.get)(this, 'intl').t('shared.notification.The bills were already sent to Xero')}`);\n            return;\n          }\n          const response = await xero.sendBill(invoice);\n          const hasRejection = response?.attachments?.some(resp => resp.rejected);\n          if (hasRejection) {\n            (0, _object.set)(this, 'invoiceResponses', [response]);\n            (0, _object.set)(this, 'invoiceTypeResponseHandlerVisible', true);\n          } else if (response) {\n            notifications.success((0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.bills-legacy.bill.Sent bill to Xero'));\n          }\n\n          // Xero integration will handle its own errors and notifications\n        } catch (error) {\n          if (error === 'xero-company-error') {\n            // Notify the user of the company error by pulling up the modal\n            (0, _object.set)(this, 'wrongXeroCompanyModalVisible', true);\n          } else {\n            // Xero integration will handle its own errors and notifications\n            notifications.error({\n              error,\n              message: (0, _object.get)(this, 'intl').t('shared.notification.thereWasAProblemAllocatingAcceptingOrSendingTheInvoicesToXero')\n            });\n          }\n        } finally {\n          // Close the allocating dialog\n          (0, _object.set)(this, 'allocatingItems', false);\n          (0, _object.set)(this, 'isAllocatingAcceptingAndSendingToXero', false);\n        }\n      },\n      /* ---------------------------------- Supplier ---------------------------------- */\n      async updateNewSupplier(supplier) {\n        if (!supplier) return;\n        (0, _object.set)(this, 'isSaving', true);\n        try {\n          await supplier.save();\n          (0, _object.get)(this, 'notifications').success((0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.bills-legacy.bill.successfullyUpdatedSupplierName', {\n            name: (0, _object.get)(supplier, 'name')\n          }));\n        } catch (err) {\n          this._handleError(err);\n        } finally {\n          (0, _object.set)(this, 'newSupplierUpdateVisible', false);\n          (0, _object.set)(this, 'newSupplierIsBeingUpdated', false);\n          (0, _object.set)(this, 'isSaving', false);\n        }\n      }\n    },\n    async allocateAndSaveInvoiceItems(selectedItems, allocation, xeroAccountOverride) {\n      if (!allocation) return this._clearInvoiceItemsAllocation(selectedItems, xeroAccountOverride);\n      const allocationIsProject = (0, _object.get)(this, 'model.projects').find(p => p === allocation);\n      if (allocationIsProject) {\n        return this._allocateInvoiceItemsToProject(selectedItems, allocation, xeroAccountOverride);\n      } else {\n        return this._allocateInvoiceItemsToTask(selectedItems, allocation, xeroAccountOverride);\n      }\n    },\n    async _allocateInvoiceItemsToProject(items, allocation, xeroAccountOverride) {\n      const invoiceItems = items.map(item => {\n        // always clear the other allocation type\n        (0, _object.set)(item, 'project', allocation);\n        (0, _object.set)(item, 'task', null);\n        (0, _object.set)(item, 'glAccount', xeroAccountOverride || allocation.effectivePurchasesGlAccount);\n        return item.toJSON({\n          includeId: true\n        });\n      });\n      await this.buildaPrice.updateInvoiceItems(invoiceItems);\n      return invoiceItems;\n    },\n    async _allocateInvoiceItemsToTask(items, allocation, xeroAccountOverride) {\n      const invoiceItems = items.map(item => {\n        // always clear the other allocation type\n        (0, _object.set)(item, 'task', allocation);\n        (0, _object.set)(item, 'project', null);\n        (0, _object.set)(item, 'glAccount', xeroAccountOverride || allocation.effectivePurchasesGlAccount);\n        return item.toJSON({\n          includeId: true\n        });\n      });\n      await this.buildaPrice.updateInvoiceItems(invoiceItems);\n      return invoiceItems;\n    },\n    async _clearInvoiceItemsAllocation(items, xeroAccountOverride) {\n      const invoiceItems = items.map(item => {\n        (0, _object.set)(item, 'task', null);\n        (0, _object.set)(item, 'project', null);\n        // in this scenario we know all the items are no longer mapped - overwrite the api compted value\n        (0, _object.set)(item, 'isMapped', false);\n        if (xeroAccountOverride) (0, _object.set)(item, 'glAccount', xeroAccountOverride);\n        return item.toJSON({\n          includeId: true\n        });\n      });\n      await this.buildaPrice.updateInvoiceItems(invoiceItems);\n      return invoiceItems;\n    },\n    async handleNewAccounts(accounts, entityId) {\n      const newAccounts = await this.store.simpleQuery('gl-account', {\n        entity: entityId,\n        _id: {\n          $in: accounts\n        }\n      });\n      (0, _object.get)(this, 'model.xeroAccounts').pushObjects(newAccounts.toArray().sortBy('code'));\n    },\n    async handleUpdatedAccounts(accounts) {\n      const existingAccounts = (0, _object.get)(this, 'model.xeroAccounts') || [];\n      await _rsvp.default.all(accounts.map(id => {\n        const existingRecord = existingAccounts.find(a => (0, _object.get)(a, 'id') === id);\n        return existingRecord && existingRecord.reload();\n      }));\n    },\n    async handleRemovedAccounts(accounts) {\n      const existingAccounts = (0, _object.get)(this, 'model.xeroAccounts') || [];\n      for (const id of accounts) {\n        const account = existingAccounts.find(a => (0, _object.get)(a, 'id') === id);\n        if (account) {\n          // unload the record\n          existingAccounts.removeObject(account);\n          this.store.unloadRecord(account);\n        }\n      }\n    },\n    async handleNewQuickbooksAccounts(accounts, entityId) {\n      const newAccounts = await this.store.simpleQuery('gl-account', {\n        entity: entityId,\n        _id: {\n          $in: accounts\n        }\n      });\n      (0, _object.get)(this, 'model.quickbooksAccounts').pushObjects(newAccounts.toArray().sortBy('code'));\n    },\n    async handleUpdatedQuickbooksAccounts(accounts) {\n      const existingAccounts = (0, _object.get)(this, 'model.quickbooksAccounts') || [];\n      await _rsvp.default.all(accounts.map(id => {\n        const existingRecord = existingAccounts.find(a => (0, _object.get)(a, 'id') === id);\n        return existingRecord && existingRecord.reload();\n      }));\n    },\n    async handleRemovedQuickbooksAccounts(accounts) {\n      const existingAccounts = (0, _object.get)(this, 'model.quickbooksAccounts') || [];\n      for (const id of accounts) {\n        const account = existingAccounts.find(a => (0, _object.get)(a, 'id') === id);\n        if (account) {\n          // unload the record\n          existingAccounts.removeObject(account);\n          this.store.unloadRecord(account);\n        }\n      }\n    },\n    /**\n     * Looks for a project to map to, then either applys the auto mapping and returns true,\n     * or does nothing and returns false.\n     * @param {Object} invoice - The invoice to automap (mutated).\n     * @returns {Boolean} True if changes were made\n     */\n    autoMap(invoice) {\n      // Make sure that there are directives to choose from\n      const allDirectives = (0, _object.get)(this, 'model.directives');\n      if (!(0, _object.get)(allDirectives, 'length')) return false;\n\n      // Get directive from algorithm\n      const directive = (0, _autoMap.default)(invoice, allDirectives);\n\n      // Only attempt a map if we have a directive and something to map to\n      if (directive && directive.belongsTo('project').id()) {\n        (0, _object.set)(invoice, 'isAutoMapped', true);\n        (0, _object.set)(invoice, 'directiveUsed', directive);\n        const project = directive.belongsTo('project').value();\n        invoice.hasMany('items').value().forEach(item => {\n          // Unmap task if we are going to be changing the project\n          if (item.belongsTo('project').id() !== (0, _object.get)(project, 'id')) {\n            (0, _object.set)(item, 'task', null);\n          }\n          // Map the item to the correct project\n          (0, _object.set)(item, 'autoMappedToPm', project);\n          (0, _object.set)(item, 'project', project);\n        });\n        return true;\n      } else {\n        return false;\n      }\n    },\n    /**\n     * Performs the save (including items), does not do any validation\n     * @param {SupplierInvoice} invoice\n     * @returns {Promise<Number>} - Resolves to the number of saves completed\n     */\n    saveInvoice(invoice) {\n      // If the invoice is new, save it first so that we have its id for the relationship\n      const saveInvoice = (0, _object.get)(invoice, 'isNew') ? invoice.save() : _rsvp.default.resolve();\n\n      // Only save each of the items and the invoice,\n      // only if they have dirty attributes.\n      return saveInvoice.then(() => {\n        const invoiceItems = (0, _object.get)(invoice, 'items').content?.toArray() || [];\n        const deletedItems = (0, _object.get)(this, 'deletedItems').filter(record => !invoiceItems.includes(record));\n        return _rsvp.default.all([invoice, ...invoiceItems, ...deletedItems].reduce((saves, record) => {\n          if ((0, _object.get)(record, 'isDeleted') || (0, _object.get)(record, 'hasDirtyAttributes') || (0, _object.get)(this, 'dirtyRels').includes(record)) {\n            return [...saves, record.save()];\n          } else {\n            return saves;\n          }\n        }, [])).then(saves => saves.length);\n      });\n    },\n    /**\n     * checks the invoice for a new supplier.\n     * @param {SupplierInvoice} invoice - The invoice to check\n     * @returns {Boolean} returns \"is the supplier new\"\n     */\n    checkForNewSupplier(invoice) {\n      const issuer = (0, _object.get)(invoice, 'issuer');\n      if (!issuer) return false;\n      const suppliers = (0, _object.get)(this, 'model.suppliers');\n      const supplier = suppliers.find(supplier => (0, _object.get)(supplier, 'name') === issuer);\n      if (supplier) return false;\n      return true;\n    },\n    checkInvoiceIsValid(invoice) {\n      // If invoice is not valid, it can't be accepted\n      if (!(0, _object.get)(invoice, 'isValid')) {\n        return (0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.bills-legacy.bill.pleaseCompleteTheRequiredFieldsBeforeAcceptingTheBill');\n      }\n      return false;\n    }\n  });\n});","define(\"portal/controllers/entity/builda-price/operations/incoming/bills\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/runloop\", \"@glimmer/tracking\", \"@ember/service\", \"portal/config/environment\", \"@ember/object\"], function (_exports, _asyncArrowRuntime, _controller, _runloop, _tracking, _service, _environment, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"ember-concurrency\",0,\"@ember/runloop\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"portal/config/environment\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let EntityBuildaPriceOperationsIncomingBillsController = _exports.default = (_class = class EntityBuildaPriceOperationsIncomingBillsController extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"billsData\", _descriptor, this);\n      _initializerDefineProperty(this, \"ips\", _descriptor2, this);\n      _defineProperty(this, \"queryParams\", ['search', 'status', 'sort', 'startDate', 'endDate']);\n      _initializerDefineProperty(this, \"search\", _descriptor3, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor4, this);\n      _initializerDefineProperty(this, \"status\", _descriptor5, this);\n      _initializerDefineProperty(this, \"billType\", _descriptor6, this);\n      _initializerDefineProperty(this, \"allocationType\", _descriptor7, this);\n      _initializerDefineProperty(this, \"sort\", _descriptor8, this);\n      _initializerDefineProperty(this, \"startDate\", _descriptor9, this);\n      _initializerDefineProperty(this, \"endDate\", _descriptor0, this);\n      _initializerDefineProperty(this, \"showPdfUploader\", _descriptor1, this);\n      _initializerDefineProperty(this, \"showBillsUploader\", _descriptor10, this);\n      _initializerDefineProperty(this, \"condensedView\", _descriptor11, this);\n      _defineProperty(this, \"onChangeSearchTerm\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSearchTerm, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onChangeSearchTerm\", null));\n    }\n    updateSearchTerm(value) {\n      this.search = value;\n    }\n    onFromDateChange(e) {\n      this.startDate = e.target.value;\n    }\n    onToDateChange(e) {\n      this.endDate = e.target.value;\n    }\n    get humanReadableStatusPill() {\n      switch (this.status) {\n        case 'DRAFT':\n          return 'Draft';\n        case 'ACCEPTED':\n          return 'Accepted';\n        case 'ARCHIVED':\n          return 'Archived';\n        case 'HELD':\n          return 'Held';\n        case 'PAID':\n          return 'Paid';\n      }\n      return null;\n    }\n    get humanReadableBillTypePill() {\n      switch (this.billType) {\n        case 'BILL':\n          return 'Bill';\n        case 'CREDIT_NOTE':\n          return 'Credit Note';\n      }\n      return '';\n    }\n    get humanReadableAllocationTypePill() {\n      switch (this.allocationType) {\n        case 'LABOUR':\n          return 'Labour';\n        case 'MATERIALS':\n          return 'Materials';\n        case 'SUBCONTRACTORS':\n          return 'Subcontractors';\n      }\n      return '';\n    }\n    async onUploadBillsCSV() {\n      await this.billsData.loadBills.perform(this.model.filter, this.model.fields, this.model.sort, this.model.pageSize);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"billsData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"ips\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.search;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"status\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'DRAFT';\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"billType\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"allocationType\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"sort\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '-dateCreated';\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"startDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"endDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"showPdfUploader\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"showBillsUploader\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"condensedView\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"onFromDateChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onFromDateChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onToDateChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onToDateChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onUploadBillsCSV\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onUploadBillsCSV\"), _class.prototype), _class);\n});","define(\"portal/controllers/entity/builda-price/operations/incoming/statements\", [\"exports\", \"@ember/controller\", \"@ember/service\", \"@glimmer/tracking\", \"portal/config/environment\"], function (_exports, _controller, _service, _tracking, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const STATEMENTS_URL = `${_environment.default.urls.statementReconciliationUrl}/statements`;\n  let EntityBuildaPriceStatementsController = _exports.default = (_class = class EntityBuildaPriceStatementsController extends _controller.default {\n    refreshIframeSrc() {\n      this.iframeSrc = this.buildIframeUrl();\n    }\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"ips\", _descriptor2, this);\n      _initializerDefineProperty(this, \"session\", _descriptor3, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor4, this);\n      // Snapshot of the embed url, refreshed by the route on every entry. It is\n      // deliberately not a getter: a background token refresh (or another tab\n      // refreshing it, which replaces `session.content` wholesale) would otherwise\n      // rewrite `src` and reload the embed while the user is working in it. Token\n      // expiry is handled in place by the message handler below.\n      _initializerDefineProperty(this, \"iframeSrc\", _descriptor5, this);\n      _defineProperty(this, \"handleEmbedAuthExpired\", event => {\n        if (event.origin !== new URL(STATEMENTS_URL).origin || event.data?.type !== 'portal-embed-auth-expired' || !event.source) {\n          return;\n        }\n        event.source.location = this.buildIframeUrl();\n      });\n      window.addEventListener('message', this.handleEmbedAuthExpired);\n    }\n    willDestroy() {\n      window.removeEventListener('message', this.handleEmbedAuthExpired);\n      super.willDestroy(...arguments);\n    }\n    buildIframeUrl() {\n      const url = new URL(STATEMENTS_URL);\n      url.searchParams.set('access_token', this.session.data.authenticated.access_token);\n      url.searchParams.set('access_token_expiry_date', this.session.data.authenticated.expires_at);\n      url.searchParams.set('entity', this.sessionData.entity.id);\n\n      // the embed is told what the host allows, not why\n      url.searchParams.set('can_upload_statements', this.ips.ready ? '1' : '0');\n      url.searchParams.set('upload_statements_disabled', this.ips.canSubmitDocuments ? '0' : '1');\n      return url.toString();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"ips\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"iframeSrc\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"portal/controllers/entity/builda-price/operations/incoming/timesheets\", [\"exports\", \"@ember/controller\", \"@ember/object\", \"@ember/object/computed\", \"moment\", \"ember-local-storage\", \"@ember/service\", \"rsvp\"], function (_exports, _controller, _object, _computed, _moment, _emberLocalStorage, _service, _rsvp) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.TimesheetProjectMeta = _exports.TimesheetDayMeta = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/object\",0,\"@ember/object/computed\",0,\"moment\",0,\"ember-local-storage\",0,\"@ember/service\",0,\"rsvp\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({\n    notifications: (0, _service.inject)(),\n    newFeatureFlags: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    intl: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    acceptingTimesheets: false,\n    allGroupsSelected: false,\n    selectedTimesheetStatus: 'all',\n    persistedSettings: (0, _emberLocalStorage.storageFor)('settings'),\n    startDate: (0, _computed.alias)('persistedSettings.timesheets:startDate'),\n    endDate: (0, _computed.alias)('persistedSettings.timesheets:endDate'),\n    jsEndDate: (0, _object.computed)('endDate', {\n      get() {\n        const savedDate = (0, _object.get)(this, 'endDate') || (0, _moment.default)().endOf('isoWeek');\n        return (0, _moment.default)(savedDate).toDate();\n      },\n      set(key, value) {\n        (0, _object.set)(this, 'endDate', (0, _moment.default)(value).format('YYYY-MM-DD'));\n        this.send('refreshModel');\n        return value;\n      }\n    }),\n    jsStartDate: (0, _object.computed)('startDate', {\n      get() {\n        const start = (0, _object.get)(this, 'startDate') || (0, _moment.default)().startOf('isoWeek').subtract(1, 'weeks');\n        return (0, _moment.default)(start).toDate();\n      },\n      set(key, value) {\n        (0, _object.set)(this, 'startDate', (0, _moment.default)(value).format('YYYY-MM-DD'));\n        this.send('refreshModel');\n        return value;\n      }\n    }),\n    searchString: '',\n    filteredTimesheets: (0, _object.computed)('model.timesheets.[]', 'searchString', function () {\n      const searchStrings = (0, _object.get)(this, 'searchString').split(' ');\n      const timesheets = (0, _object.get)(this, 'model.timesheets');\n      if (searchStrings[0].length) {\n        return timesheets.filter(timesheet => searchStrings.every(string => {\n          const searchString = new RegExp(string, 'ig');\n          const timesheetString = `\n            ${(0, _object.get)(timesheet, 'worker.firstName') === undefined ? '' : (0, _object.get)(timesheet, 'worker.firstName')}\n            ${(0, _object.get)(timesheet, 'worker.lastName') === undefined ? '' : (0, _object.get)(timesheet, 'worker.lastName')}\n            ${(0, _object.get)(timesheet, 'project.name') === undefined ? '' : (0, _object.get)(timesheet, 'project.name')}\n            ${(0, _object.get)(timesheet, 'project.address') === undefined ? '' : (0, _object.get)(timesheet, 'project.address')}\n            ${(0, _object.get)(timesheet, 'task.name') === undefined ? '' : (0, _object.get)(timesheet, 'task.name')}\n          }`;\n          return timesheetString.match(searchString);\n        }));\n      } else {\n        return timesheets;\n      }\n    }),\n    /*\n     * [{\n     *   date: Date,\n     *   allSelected: Boolean,\n     *   dayMetas: [{\n     *     date: Date,\n     *     worker: Worker,\n     *     timesheetNote: TimesheetNote,\n     *     totalTime: Number,\n     *     isSelected: Boolean,\n     *     projectMetas: [{\n     *       date: Date,\n     *       worker: Worker,\n     *       project: project,\n     *       timesheetStatus: TimesheetStatus,\n     *       totalTime: Number,\n     *       isSelected: Boolean,\n     *       timesheets: [Timesheet]\n     *     }]\n     *   }]\n     * }]\n     */\n    groupedTimesheets: (0, _object.computed)('filteredTimesheets.[]', 'model.timesheetNotes.[]', 'model.timesheetStatuses.[]', 'selectedTimesheetStatus', function () {\n      return buildMetas((0, _object.get)(this, 'model.timesheetNotes'), (0, _object.get)(this, 'model.timesheetStatuses'), (0, _object.get)(this, 'filteredTimesheets'), (0, _object.get)(this, 'selectedTimesheetStatus'), this.newFeatureFlags);\n    }),\n    anySelected: (0, _object.computed)('filteredTimesheets.@each.isSelected', function () {\n      return (0, _object.get)(this, 'filteredTimesheets').some(s => (0, _object.get)(s, 'isSelected'));\n    }),\n    allSelected: (0, _object.computed)('groupedTimesheets.@each.allSelected', function () {\n      return (0, _object.get)(this, 'groupedTimesheets').every(g => (0, _object.get)(g, 'allSelected'));\n    }),\n    nSelected: (0, _object.computed)('groupedTimesheets.@each.nSelected', function () {\n      return (0, _object.get)(this, 'groupedTimesheets').reduce((total, day) => total + (0, _object.get)(day, 'nSelected'), 0);\n    }),\n    showForemanControls: (0, _object.computed)('model.timesheets.@each.project', function () {\n      if (this.newFeatureFlags.includesFeatureFlags('canManageTimesheets')) return true;\n\n      // check if the user has permission to manage timesheets on any projects\n      const projects = [...new Set((0, _object.get)(this, 'model.timesheets').map(timesheet => (0, _object.get)(timesheet, 'project')))];\n      return projects.some(project => this.newFeatureFlags.includesFeatureFlags(project, 'canManageTimesheets'));\n    }),\n    actions: {\n      setDateRange(dates) {\n        const {\n          startDate,\n          endDate\n        } = dates;\n        if (startDate) (0, _object.set)(this, 'jsStartDate', startDate);\n        if (endDate) (0, _object.set)(this, 'jsEndDate', endDate);\n      },\n      toggleGroupSelected(dayMeta) {\n        if (!(0, _object.get)(this, 'showForemanControls') || !(0, _object.get)(dayMeta, 'canBeForeman')) return;\n        const wasSelected = (0, _object.get)(dayMeta, 'isSelected');\n        (0, _object.get)(dayMeta, 'projectMetas').forEach(jm => (0, _object.get)(jm, 'timesheets').forEach(t => (0, _object.set)(t, 'isSelected', !wasSelected)));\n      },\n      toggleGroupExpanded(dayMeta) {\n        const projectMetas = (0, _object.get)(dayMeta, 'projectMetas');\n        const timesheets = projectMetas.reduce((timesheets, meta) => timesheets.concat((0, _object.get)(meta, 'timesheets')), []);\n        const wasExpanded = timesheets.every(({\n          isExpanded\n        }) => isExpanded);\n        timesheets.forEach(ts => (0, _object.set)(ts, 'isExpanded', !wasExpanded));\n      },\n      toggleGroupsSelected() {\n        const wasAllSelected = (0, _object.get)(this, 'allSelected');\n        (0, _object.get)(this, 'model.timesheets').forEach(t => (0, _object.set)(t, 'isSelected', !wasAllSelected));\n      },\n      async acceptSelectedTimesheets() {\n        const notifications = (0, _object.get)(this, 'notifications');\n        try {\n          (0, _object.set)(this, 'acceptingTimesheets', true);\n          const dayMetas = (0, _object.get)(this, 'groupedTimesheets').reduce((dayMetas, day) => dayMetas.concat(day.dayMetas), []);\n          const selectedDayMetas = dayMetas.filter(m => (0, _object.get)(m, 'isSelected') && (0, _object.get)(m, 'canBeForeman'));\n          const projectMetas = selectedDayMetas.reduce((projectMetas, dayMeta) => projectMetas.concat(dayMeta.projectMetas), []);\n          await this._acceptTimesheets(projectMetas);\n          await _rsvp.Promise.all(selectedDayMetas.map(dayMeta => this._lockDay(dayMeta)));\n          const count = selectedDayMetas.length;\n          notifications.success(`${count} timesheet${count === 1 ? '' : 's'} accepted`);\n        } catch (error) {\n          notifications.error({\n            message: (0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.timesheets.somethingWentWrongWhileAcceptingTheTimesheets'),\n            error\n          });\n        } finally {\n          (0, _object.set)(this, 'acceptingTimesheets', false);\n        }\n      },\n      async acceptAndLockTimesheet(dayMeta) {\n        const notifications = (0, _object.get)(this, 'notifications');\n        try {\n          (0, _object.set)(this, 'acceptingTimesheets', true);\n          await this._acceptTimesheets(dayMeta.projectMetas);\n          await this._lockDay(dayMeta);\n          notifications.success('Timesheet accepted');\n        } catch (error) {\n          notifications.error({\n            message: (0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.timesheets.somethingWentWrongWhileAcceptingTheTimesheets'),\n            error\n          });\n        } finally {\n          (0, _object.set)(this, 'acceptingTimesheets', false);\n        }\n      },\n      async undoAcceptAndLockTimesheet(dayMeta) {\n        const notifications = (0, _object.get)(this, 'notifications');\n        try {\n          const projectMetas = (0, _object.get)(dayMeta, 'projectMetas');\n          const timesheetNote = dayMeta.timesheetNote;\n          if (timesheetNote) {\n            (0, _object.set)(timesheetNote, 'dayLocked', false);\n            await timesheetNote.save();\n          }\n          await _rsvp.Promise.all(projectMetas.map(projectMeta => {\n            const timesheetStatus = (0, _object.get)(projectMeta, 'timesheetStatus');\n            if (timesheetStatus && (0, _object.get)(projectMeta, 'canBeForeman')) {\n              (0, _object.set)(timesheetStatus, 'status', 'pending');\n              return timesheetStatus.save();\n            } else {\n              return _rsvp.Promise.resolve();\n            }\n          }));\n          notifications.success((0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.timesheets.Timesheet returned to pending'));\n        } catch (error) {\n          notifications.error({\n            message: (0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.timesheets.somethingWentWrongWhileSavingTimesheetStatus'),\n            error\n          });\n        }\n      },\n      async acceptTimesheet(dayMeta) {\n        const notifications = (0, _object.get)(this, 'notifications');\n        try {\n          (0, _object.set)(this, 'acceptingTimesheets', true);\n          await this._acceptTimesheets(dayMeta.projectMetas);\n          notifications.success('Timesheet accepted');\n        } catch (error) {\n          notifications.error({\n            message: (0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.timesheets.somethingWentWrongWhileAcceptingTheTimesheets'),\n            error\n          });\n        } finally {\n          (0, _object.set)(this, 'acceptingTimesheets', false);\n        }\n      },\n      async undoAcceptSelectedTimesheets() {\n        const notifications = (0, _object.get)(this, 'notifications');\n        try {\n          (0, _object.set)(this, 'acceptingTimesheets', true);\n          const notifications = (0, _object.get)(this, 'notifications');\n          const dayMetas = (0, _object.get)(this, 'groupedTimesheets').reduce((dayMetas, day) => dayMetas.concat(day.dayMetas), []);\n          const selectedDayMetas = dayMetas.filter(m => (0, _object.get)(m, 'isSelected') && (0, _object.get)(m, 'canBeForeman'));\n          const projectMetas = selectedDayMetas.reduce((projectMetas, dayMeta) => projectMetas.concat((0, _object.get)(dayMeta, 'projectMetas')), []);\n          await _rsvp.Promise.all(projectMetas.map(projectMeta => {\n            const timesheetStatus = (0, _object.get)(projectMeta, 'timesheetStatus');\n            if (timesheetStatus && (0, _object.get)(projectMeta, 'canBeForeman')) {\n              (0, _object.set)(timesheetStatus, 'status', 'pending');\n              return timesheetStatus.save();\n            } else {\n              return _rsvp.Promise.resolve();\n            }\n          }), selectedDayMetas.map(dayMeta => {\n            const timesheetNote = dayMeta.timesheetNote;\n            if (timesheetNote) {\n              (0, _object.set)(timesheetNote, 'dayLocked', false);\n              return timesheetNote.save();\n            } else {\n              return _rsvp.Promise.resolve();\n            }\n          }));\n          const count = projectMetas.length;\n          notifications.success((0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.timesheets.xReturnedToPending', {\n            number: count,\n            timesheet: count === 1 ? 'timesheet' : 'timesheets'\n          }));\n        } catch (error) {\n          notifications.error({\n            message: (0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.timesheets.somethingWentWrongWhilePendingTimesheets'),\n            error\n          });\n        } finally {\n          (0, _object.set)(this, 'acceptingTimesheets', false);\n        }\n      },\n      async undoAcceptTimesheet(dayMeta) {\n        const notifications = (0, _object.get)(this, 'notifications');\n        try {\n          const projectMetas = (0, _object.get)(dayMeta, 'projectMetas');\n          await _rsvp.Promise.all(projectMetas.map(projectMeta => {\n            const timesheetStatus = (0, _object.get)(projectMeta, 'timesheetStatus');\n            if (timesheetStatus && (0, _object.get)(projectMeta, 'canBeForeman')) {\n              (0, _object.set)(timesheetStatus, 'status', 'pending');\n              return timesheetStatus.save();\n            } else {\n              return _rsvp.Promise.resolve();\n            }\n          }));\n          notifications.success((0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.timesheets.Timesheet returned to pending'));\n        } catch (error) {\n          notifications.error({\n            message: (0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.timesheets.somethingWentWrongWhileSavingTimesheetStatus'),\n            error\n          });\n        }\n      }\n    },\n    _lockDay(dayMeta) {\n      let timesheetNote = (0, _object.get)(dayMeta, 'timesheetNote');\n      if (!timesheetNote) {\n        const worker = (0, _object.get)(dayMeta, 'worker');\n        const entity = (0, _object.get)(this, 'sessionData.entity');\n        timesheetNote = (0, _object.get)(this, 'store').createRecord('timesheet-note', {\n          date: dayMeta.date,\n          worker: worker?.content || worker,\n          dayLocked: true,\n          entity: entity?.content || entity\n        });\n        // make it part of the source that buildMetas reads\n        (0, _object.get)(this, 'model.timesheetNotes').pushObject(timesheetNote);\n        (0, _object.set)(dayMeta, 'timesheetNote', timesheetNote);\n      }\n      (0, _object.set)(timesheetNote, 'dayLocked', true);\n      return (0, _object.get)(timesheetNote, 'hasDirtyAttributes') ? timesheetNote.save() : null;\n    },\n    _acceptTimesheets(projectMetas) {\n      return _rsvp.Promise.all(projectMetas.map(projectMeta => {\n        // Do nothing if the user cannot act as a foreman for the day/project/worker\n        if (!(0, _object.get)(projectMeta, 'canBeForeman')) return _rsvp.Promise.resolve();\n\n        // Get the timesheet-status record from the projectMeta\n        let timesheetStatus = projectMeta.timesheetStatus;\n\n        // If no timesheet-status record exists, then create one\n        if (!timesheetStatus) {\n          const project = (0, _object.get)(projectMeta, 'project');\n          const worker = (0, _object.get)(projectMeta, 'worker');\n          const entity = (0, _object.get)(this, 'sessionData.entity');\n          timesheetStatus = (0, _object.get)(this, 'store').createRecord('timesheet-status', {\n            date: projectMeta.date,\n            // If it's a proxy, use its ID directly to bypass WarpDrive relationship strictness\n            project: project?.content || project,\n            entity: entity?.content || entity\n          });\n          (0, _object.set)(projectMeta, 'timesheetStatus', timesheetStatus);\n          // No idea why but this seems to want to be out here. It was originally in the `createRecord`\n          // but that caused the worker to be null when the status was saved...\n          (0, _object.set)(timesheetStatus, 'worker', worker?.content || worker);\n          // Add the new record to the model\n          this.send('addTimesheetStatuses', [timesheetStatus]);\n        }\n\n        // Set the status to accepted\n        (0, _object.set)(timesheetStatus, 'status', 'accepted');\n        // Save the timesheet-status record if it has been altered\n        return (0, _object.get)(timesheetStatus, 'hasDirtyAttributes') ? timesheetStatus.save() : null;\n      }));\n    }\n  });\n  const TimesheetProjectMeta = _exports.TimesheetProjectMeta = _object.default.extend({\n    newFeatureFlags: null,\n    // a passed in service\n    timesheetStatus: null,\n    project: null,\n    date: null,\n    worker: null,\n    timesheets: null,\n    isSelected: (0, _object.computed)('timesheets.@each.isSelected', function () {\n      return (0, _object.get)(this, 'timesheets').every(m => (0, _object.get)(m, 'isSelected'));\n    }),\n    isExpanded: (0, _object.computed)('timesheets.@each.isExpanded', function () {\n      return (0, _object.get)(this, 'timesheets').every(m => (0, _object.get)(m, 'isExpanded'));\n    }),\n    totalTime: (0, _object.computed)('timesheets.@each.hours', function () {\n      return (0, _object.get)(this, 'timesheets').reduce((total, s) => total + (0, _object.get)(s, 'hours'), 0);\n    }),\n    canBeForeman: (0, _object.computed)('project', function () {\n      // entity admins can do anything\n      if (this.newFeatureFlags.includesFeatureFlags('canManageTimesheets')) return true;\n\n      // check if user has permission to this project\n      if (this.newFeatureFlags.includesFeatureFlags((0, _object.get)(this, 'project'), 'canManageTimesheets')) return true;\n      return false;\n    }),\n    isSelf: (0, _object.computed)('worker', function () {\n      return this.newFeatureFlags.includesFeatureFlags((0, _object.get)(this, 'worker'), 'canManageTimesheets');\n    }),\n    allTimesheetsAreDeleted: (0, _object.computed)('timesheets.@each.isDeleted', function () {\n      return (0, _object.get)(this, 'timesheets').every(timesheet => timesheet.isDeleted);\n    }),\n    hasTasksToSelect: (0, _object.computed)('project.activeTasks.length', 'selectedTasks.length', function () {\n      return (0, _object.get)(this, 'project.activeTasks.length') > (0, _object.get)(this, 'selectedTasks.length');\n    }),\n    timesheetsAreAltered: (0, _object.computed)('timesheets.@each.hasDirtyAttributes', function () {\n      return (0, _object.get)(this, 'timesheets').some(s => (0, _object.get)(s, 'hasDirtyAttributes'));\n    }),\n    isAccepted: (0, _computed.equal)('timesheetStatus.status', 'accepted'),\n    selectedTasks: (0, _object.computed)('project.tasks', 'timesheets.@each.{task,isDeleted}', function () {\n      return ((0, _object.get)(this, 'project.tasks').content?.toArray() || []).filter(t => {\n        return (0, _object.get)(this, 'timesheets').some(ts => {\n          return !(0, _object.get)(ts, 'isDeleted') && ts.belongsTo('task').value() === t;\n        });\n      });\n    })\n  });\n  const TimesheetDayMeta = _exports.TimesheetDayMeta = _object.default.extend({\n    isSelected: (0, _object.computed)('projectMetas.@each.isSelected', function () {\n      return (0, _object.get)(this, 'projectMetas').every(m => (0, _object.get)(m, 'isSelected'));\n    }),\n    isExpanded: (0, _object.computed)('projectMetas.@each.isExpanded', function () {\n      return (0, _object.get)(this, 'projectMetas').every(m => (0, _object.get)(m, 'isExpanded'));\n    }),\n    totalTime: (0, _object.computed)('projectMetas.@each.totalTime', function () {\n      return (0, _object.get)(this, 'projectMetas').reduce((total, m) => total + (0, _object.get)(m, 'totalTime'), 0);\n    }),\n    canBeForeman: (0, _object.computed)('projectMetas.@each.canBeForeman', function () {\n      return (0, _object.get)(this, 'projectMetas').some(m => (0, _object.get)(m, 'canBeForeman'));\n    }),\n    isSelf: (0, _object.computed)('projectMetas', function () {\n      return (0, _object.get)(this, 'projectMetas').every(m => (0, _object.get)(m, 'isSelf'));\n    }),\n    allAccepted: (0, _object.computed)('projectMetas.@each.{isAccepted,canBeForeman}', function () {\n      return (0, _object.get)(this, 'projectMetas').every(m => (0, _object.get)(m, 'isAccepted') || !(0, _object.get)(m, 'canBeForeman'));\n    })\n  });\n  const Day = _object.default.extend({\n    nSelected: (0, _object.computed)('dayMetas.@each.isSelected', function () {\n      // In js, a Number plus a Boolean works like: n + true === n + 1, n + false === n\n      return (0, _object.get)(this, 'dayMetas').reduce((total, m) => total + Boolean((0, _object.get)(m, 'isSelected')), 0);\n    }),\n    allSelected: (0, _object.computed)('dayMetas.@each.isSelected', function () {\n      return (0, _object.get)(this, 'dayMetas').every(m => (0, _object.get)(m, 'isSelected'));\n    }),\n    orderedDayMetas: (0, _object.computed)('dayMetas', function () {\n      return (0, _object.get)(this, 'dayMetas').sortBy('worker.firstName');\n    }),\n    totalTime: (0, _object.computed)('dayMetas.@each.totalTime', function () {\n      return (0, _object.get)(this, 'dayMetas').reduce((total, m) => total + (0, _object.get)(m, 'totalTime'), 0);\n    })\n  });\n  const buildKeyFromValues = (...args) => args.join(':');\n  function buildMetas(_timesheetNotes, _timesheetStatuses, timesheets, selectedStatus, newFeatureFlags) {\n    const timesheetNotes = _timesheetNotes.reduce((notes, note) => {\n      const key = buildKeyFromValues((0, _object.get)(note, 'worker.id'), (0, _object.get)(note, 'date'));\n      return {\n        ...notes,\n        [key]: note\n      };\n    }, {});\n    const timesheetStatuses = _timesheetStatuses.reduce((statuses, status) => {\n      const key = buildKeyFromValues((0, _object.get)(status, 'project.id'), (0, _object.get)(status, 'worker.id'), (0, _object.get)(status, 'date'));\n      return {\n        ...statuses,\n        [key]: status\n      };\n    }, {});\n    const projectMetas = timesheets.reduce((metas, sheet) => {\n      const key = buildKeyFromValues((0, _object.get)(sheet, 'project.id'), (0, _object.get)(sheet, 'worker.id'), (0, _object.get)(sheet, 'date'));\n      const existingMeta = metas[key];\n      if (existingMeta) {\n        (0, _object.get)(existingMeta, 'timesheets').pushObject(sheet);\n        return metas;\n      } else {\n        const timesheetStatus = timesheetStatuses[key];\n        const status = timesheetStatus ? (0, _object.get)(timesheetStatus, 'status') : 'pending';\n        if (selectedStatus !== 'all' && status !== selectedStatus) return metas;\n        return {\n          ...metas,\n          [key]: TimesheetProjectMeta.create({\n            timesheetStatus,\n            project: (0, _object.get)(sheet, 'project'),\n            date: (0, _object.get)(sheet, 'date'),\n            worker: (0, _object.get)(sheet, 'worker'),\n            timesheets: [sheet],\n            newFeatureFlags\n          })\n        };\n      }\n    }, {});\n    const dayMetas = Object.values(projectMetas).reduce((metas, projectMeta) => {\n      const key = buildKeyFromValues((0, _object.get)(projectMeta, 'worker.id'), (0, _object.get)(projectMeta, 'date'));\n      const existingDayMeta = metas[key];\n      if (existingDayMeta) {\n        (0, _object.get)(existingDayMeta, 'projectMetas').pushObject(projectMeta);\n        return metas;\n      } else {\n        const timesheetNote = timesheetNotes[key];\n        return {\n          ...metas,\n          [key]: TimesheetDayMeta.create({\n            timesheetNote,\n            date: (0, _object.get)(projectMeta, 'date'),\n            worker: (0, _object.get)(projectMeta, 'worker'),\n            projectMetas: [projectMeta],\n            newFeatureFlags\n          })\n        };\n      }\n    }, {});\n    const days = Object.values(dayMetas).reduce((days, dayMeta) => {\n      const key = buildKeyFromValues((0, _object.get)(dayMeta, 'date'));\n      const existingDay = days[key];\n      if (existingDay) {\n        (0, _object.get)(existingDay, 'dayMetas').pushObject(dayMeta);\n        return days;\n      } else {\n        return {\n          ...days,\n          [key]: Day.create({\n            date: (0, _object.get)(dayMeta, 'date'),\n            dayMetas: [dayMeta]\n          })\n        };\n      }\n    }, {});\n    return Object.values(days).sortBy('date').reverse();\n  }\n});","define(\"portal/controllers/entity/builda-price/operations/incoming/timesheets/timesheet\", [\"exports\", \"@ember/controller\", \"rsvp\", \"@ember/object\", \"@ember/service\", \"moment\", \"portal/controllers/entity/builda-price/operations/incoming/timesheets\"], function (_exports, _controller, _rsvp, _object, _service, _moment, _timesheets) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"rsvp\",0,\"@ember/object\",0,\"@ember/service\",0,\"moment\",0,\"portal/controllers/entity/builda-price/operations/incoming/timesheets\"eaimeta@70e063a35619d71f\n  // async relationship reads return a proxy, which WarpDrive rejects as a relationship value.\n  const unwrap = value => value?.content || value;\n  var _default = _exports.default = _controller.default.extend({\n    newFeatureFlags: (0, _service.inject)(),\n    notifications: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    intl: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    invoicedCosts: (0, _service.inject)(),\n    router: (0, _service.inject)(),\n    queryParams: ['worker', 'date'],\n    worker: null,\n    date: null,\n    isSaving: false,\n    statuses: (0, _object.computed)('intl.locale', function () {\n      return [{\n        value: 'pending',\n        label: this.intl.t('common.Pending')\n      }, {\n        value: 'accepted',\n        label: this.intl.t('common.Accepted')\n      }];\n    }),\n    _selectedTasks: null,\n    selectedTasks: (0, _object.computed)('_selectedTasks', 'model.timesheets', {\n      set(_key, value) {\n        (0, _object.set)(this, '_selectedTasks', value);\n        return value;\n      },\n      get() {\n        if ((0, _object.get)(this, '_selectedTasks')) return (0, _object.get)(this, '_selectedTasks');\n        const timesheetTaskIds = (0, _object.get)(this, 'model.timesheets').map(timesheet => timesheet.belongsTo('task').id());\n        return timesheetTaskIds;\n      }\n    }),\n    selectedWorker: (0, _object.computed)('worker', 'workers', function () {\n      return (0, _object.get)(this, 'workers').findBy('id', (0, _object.get)(this, 'worker'));\n    }),\n    selectedDate: (0, _object.computed)('date', {\n      get() {\n        return (0, _moment.default)((0, _object.get)(this, 'date')).format('YYYY-MM-DD');\n      },\n      set(key, event) {\n        (0, _object.set)(this, 'date', event.target.value);\n      }\n    }),\n    timesheetsByProject: (0, _object.computed)('date', 'model.note', 'model.statuses.[]', 'model.timesheets.[]', 'selectedWorker', function () {\n      const timesheets = (0, _object.get)(this, 'model.timesheets') || [];\n      const projects = timesheets.mapBy('project').filter(p => p).uniqBy('id');\n      const statuses = (0, _object.get)(this, 'model.statuses') || [];\n      const projectMetas = projects.map(project => _timesheets.TimesheetProjectMeta.create({\n        project,\n        date: (0, _object.get)(this, 'date'),\n        worker: (0, _object.get)(this, 'selectedWorker'),\n        timesheets: timesheets.filterBy('project.id', (0, _object.get)(project, 'id')),\n        timesheetStatus: statuses.findBy('project.id', (0, _object.get)(project, 'id')),\n        newFeatureFlags: this.newFeatureFlags\n      }));\n      return _timesheets.TimesheetDayMeta.create({\n        projectMetas,\n        date: (0, _object.get)(this, 'date'),\n        worker: (0, _object.get)(this, 'selectedWorker'),\n        timesheetNote: (0, _object.get)(this, 'model.note'),\n        newFeatureFlags: this.newFeatureFlags\n      });\n    }),\n    filteredProjectMetas: (0, _object.computed)('timesheetsByProject.projectMetas.@each.allTimesheetsAreDeleted', function () {\n      return (0, _object.get)(this, 'timesheetsByProject.projectMetas').rejectBy('allTimesheetsAreDeleted');\n    }),\n    workerIsSelf: (0, _object.computed)('selectedWorker', function () {\n      return this.newFeatureFlags.includesFeatureFlags((0, _object.get)(this, 'selectedWorker'), 'canManageTimesheets');\n    }),\n    hasWriteLevel: (0, _object.computed)('newFeatureFlags.userIsEntityAdmin', function () {\n      return this.newFeatureFlags.includesFeatureFlags('userIsEntityAdmin');\n    }),\n    foremanFor: (0, _object.computed)('model.projects', 'hasWriteLevel', function () {\n      const allProjects = (0, _object.get)(this, 'model.projects');\n      const hasWriteLevel = (0, _object.get)(this, 'hasWriteLevel');\n      if (hasWriteLevel) {\n        return allProjects;\n      } else {\n        return allProjects.filter(j => this.newFeatureFlags.includesFeatureFlags(j, 'canManageTimesheets'));\n      }\n    }),\n    canCurrentlyBeForeman: (0, _object.computed)('timesheetsByProject.projectMetas.@each.canBeForman', function () {\n      const projectMetas = (0, _object.get)(this, 'timesheetsByProject.projectMetas') || [];\n      return projectMetas.some(projectMeta => (0, _object.get)(projectMeta, 'canBeForeman'));\n    }),\n    remainingProjects: (0, _object.computed)('filteredProjectMetas.@each.{allTimesheetsAreDeleted,project}', 'hasWriteLevel', 'model.projects', 'model.note', 'workerIsSelf', function () {\n      const projects = (0, _object.get)(this, 'model.projects');\n      const note = (0, _object.get)(this, 'model.note');\n      const usedIds = (0, _object.get)(this, 'filteredProjectMetas').mapBy('project.id');\n      const canAlwaysLogForWorker = (0, _object.get)(this, 'workerIsSelf') || (0, _object.get)(this, 'hasWriteLevel');\n      let remainingProjects = projects.reject(project => usedIds.includes((0, _object.get)(project, 'id')));\n      if (!canAlwaysLogForWorker || note.dayLocked) {\n        remainingProjects = remainingProjects.filter(j => this.newFeatureFlags.includesFeatureFlags(j, 'canManageTimesheets'));\n      }\n      return remainingProjects.sortBy('sortIndex');\n    }),\n    actions: {\n      clear() {\n        const records = [];\n        if ((0, _object.get)(this, 'model.note')) records.push((0, _object.get)(this, 'model.note'));\n        if ((0, _object.get)(this, 'model.statuses')) records.push(...(0, _object.get)(this, 'model.statuses'));\n        if ((0, _object.get)(this, 'model.timesheets')) records.push(...(0, _object.get)(this, 'model.timesheets'));\n        records.forEach(record => {\n          // if the record is dirty rollback the changes\n          if ((0, _object.get)(record, 'hasDirtyAttributes')) record.rollbackAttributes();\n\n          // special timesheet case\n          // you can not rollback relationship changes so do it manually\n          if ((0, _object.get)(record, 'taskHasChanged')) {\n            (0, _object.set)(record, 'task', unwrap((0, _object.get)(record, 'originalTask')));\n            (0, _object.set)(record, 'taskHasChanged', false);\n            (0, _object.set)(record, 'originalTask', null);\n          }\n        });\n        this.router.transitionTo({\n          queryParams: {\n            worker: null,\n            date: null\n          }\n        });\n      },\n      setWorker(workerId) {\n        const worker = (0, _object.get)(this, 'workers').findBy('id', workerId);\n        (0, _object.set)(this, 'model.timesheet.worker', worker);\n      },\n      setTask(timesheet, newTask) {\n        (0, _object.get)(timesheet, 'project.tasks').then(tasks => {\n          const task = newTask ? tasks.findBy('id', (0, _object.get)(newTask, 'id')) : undefined;\n\n          // Handle for relationship rollback\n          if (!(0, _object.get)(timesheet, 'taskHasChanged')) {\n            (0, _object.set)(timesheet, 'taskHasChanged', true);\n            (0, _object.set)(timesheet, 'originalTask', (0, _object.get)(timesheet, 'task'));\n          }\n          (0, _object.set)(timesheet, 'task', task);\n        });\n      },\n      setNextProject(project) {\n        if (!project) return;\n        this.send('addTask', project);\n      },\n      addTask(projectPromise) {\n        _rsvp.default.resolve(projectPromise).then(project => {\n          const date = (0, _object.get)(this, 'date');\n          const worker = (0, _object.get)(this, 'selectedWorker');\n          const payRate = (0, _object.get)(worker, 'payRate');\n          const costRate = (0, _object.get)(worker, 'costRate');\n          const entity = (0, _object.get)(this, 'sessionData.entity');\n          const timesheet = (0, _object.get)(this, 'store').createRecord('timesheet', {\n            project,\n            entity,\n            worker,\n            date,\n            payRate,\n            costRate\n          });\n          const timesheets = (0, _object.get)(this, 'model.timesheets');\n          timesheets.pushObject(timesheet);\n        });\n      },\n      deleteTimesheet(timesheet) {\n        this.invoicedCosts.requestDelete.perform({\n          isInvoiced: timesheet._meta?.isInvoiced,\n          title: (0, _object.get)(this, 'intl').t('services.invoiced-costs.Delete linked timesheet'),\n          message: (0, _object.get)(this, 'intl').t('services.invoiced-costs.timesheetMessage'),\n          deleteCb: () => {\n            if ((0, _object.get)(timesheet, 'isNew')) {\n              (0, _object.get)(this, 'model.timesheets').removeObject(timesheet);\n              timesheet.unloadRecord();\n              return;\n            }\n            timesheet.deleteRecord();\n          }\n        });\n      },\n      async save(didGiveReason) {\n        // Force user to give reasons if they have edited someone else's timesheets\n        if (!didGiveReason && !(0, _object.get)(this, 'workerIsSelf')) {\n          const didEdit = (0, _object.get)(this, 'timesheetsByProject.projectMetas').some(projectMeta => (0, _object.get)(projectMeta, 'timesheets').some(timesheet => (0, _object.get)(timesheet, 'hasDirtyAttributes')));\n          if (didEdit) return this.send('triggerAccept');\n        }\n        const notifications = (0, _object.get)(this, 'notifications');\n        try {\n          (0, _object.set)(this, 'isSaving', true);\n          await this._save();\n          notifications.success('Saved timesheet');\n        } catch (error) {\n          notifications.warning({\n            message: (0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.timesheets.timesheet.pleaseCompleteTheTimesheetBeforeSaving'),\n            error\n          });\n        } finally {\n          (0, _object.set)(this, 'isSaving', false);\n          (0, _object.set)(this, 'showReasonDialog', false);\n        }\n      },\n      triggerAccept() {\n        // Defer to 'save' action if the worker is yourself as no reasons are necessary.\n        if ((0, _object.get)(this, 'workerIsSelf')) return this.send('save');\n\n        // Ensure all of the projectMetas have a timesheetStatus\n        const projectMetas = (0, _object.get)(this, 'timesheetsByProject.projectMetas');\n        projectMetas.forEach(projectMeta => {\n          if ((0, _object.get)(projectMeta, 'canBeForeman') && !(0, _object.get)(projectMeta, 'timesheetStatus')) {\n            (0, _object.set)(projectMeta, 'timesheetStatus', (0, _object.get)(this, 'store').createRecord('timesheet-status', {\n              worker: unwrap(projectMeta.worker),\n              date: projectMeta.date,\n              entity: unwrap((0, _object.get)(this, 'sessionData.entity')),\n              project: unwrap(projectMeta.project),\n              didEdit: true\n            }));\n          }\n        });\n        (0, _object.set)(this, 'showReasonDialog', true);\n      },\n      changeStatus(projectMeta, status) {\n        let timesheetStatus = (0, _object.get)(projectMeta, 'timesheetStatus');\n        if (!timesheetStatus) {\n          // Create a new TimesheetStatus record if one doesn't already exist\n          timesheetStatus = (0, _object.get)(this, 'store').createRecord('timesheet-status', {\n            worker: unwrap(projectMeta.worker),\n            date: projectMeta.date,\n            project: unwrap(projectMeta.project),\n            entity: unwrap((0, _object.get)(this, 'sessionData.entity'))\n          });\n\n          // Put the new record in the projectMeta to keep it up to date\n          (0, _object.set)(projectMeta, 'timesheetStatus', timesheetStatus);\n        }\n        if (status === 'pending') {\n          const note = (0, _object.get)(this, 'model.note');\n          if (note) (0, _object.set)(note, 'dayLocked', false);\n        }\n        // Set the status on the old or newly created record\n        (0, _object.set)(timesheetStatus, 'status', status);\n      }\n    },\n    async _save() {\n      const note = (0, _object.get)(this, 'model.note');\n      const saveNote = note.save();\n      const projectMetas = (0, _object.get)(this, 'timesheetsByProject.projectMetas');\n\n      // Reduce timesheets from projectMetas, skip timesheets you can't save.\n      const timesheets = (0, _object.get)(this, 'timesheetsByProject.projectMetas').reduce((allTimesheets, projectMeta) => {\n        // Skip all timesheets if you can't be the foreman for the project and can't otherwise log for the worker\n        if (!(0, _object.get)(projectMeta, 'isSelf') && !(0, _object.get)(projectMeta, 'canBeForeman')) {\n          return allTimesheets;\n        } else {\n          // Skip timesheets that don't need saving\n          return allTimesheets.concat((0, _object.get)(projectMeta, 'timesheets')); // TODO filter to things that have been updated (including relationships)\n        }\n      }, []);\n      const timesheetStatuses = projectMetas.filter(projectMeta => (0, _object.get)(projectMeta, 'canBeForeman') && (0, _object.get)(projectMeta, 'timesheetStatus')).mapBy('timesheetStatus');\n      const saveTimesheetStatuses = timesheetStatuses.map(timesheetStatus => (0, _object.get)(timesheetStatus, 'hasDirtyAttributes') ? timesheetStatus.save() : Promise.resolve());\n      const saveTimesheets = timesheets.map(async timesheet => {\n        const timesheetWasDeleted = Boolean(timesheet.isDeleted);\n        await timesheet.save();\n        if (timesheetWasDeleted) {\n          // Send an action to the parent route to remove the timesheet from the list.\n          this.send('removeTimesheet', timesheet);\n        }\n      });\n      const newTimesheets = timesheets.filterBy('isNew');\n      const newTimesheetStatuses = timesheetStatuses.filterBy('isNew');\n      await _rsvp.default.all([...saveTimesheetStatuses, ...saveTimesheets, saveNote]);\n      this.send('addTimesheetStatuses', newTimesheetStatuses);\n      this.send('addTimesheets', newTimesheets);\n    }\n  });\n});","define(\"portal/controllers/entity/builda-price/operations/outgoing/invoices/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"@glimmer/tracking\", \"moment\", \"@ember/object\", \"ember-changeset\", \"ember-concurrency\", \"portal/config/environment\", \"portal/utils/csv-builder\", \"portal/helpers/pagination-callback\", \"portal/utils/search-filter\"], function (_exports, _asyncArrowRuntime, _controller, _service, _tracking, _moment, _object, _emberChangeset, _emberConcurrency, _environment, _csvBuilder, _paginationCallback, _searchFilter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"moment\",0,\"@ember/object\",0,\"ember-changeset\",0,\"ember-concurrency\",0,\"ember-concurrency\",0,\"portal/config/environment\",0,\"portal/utils/csv-builder\",0,\"portal/helpers/pagination-callback\",0,\"portal/utils/search-filter\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor3, this);\n      _initializerDefineProperty(this, \"router\", _descriptor4, this);\n      _initializerDefineProperty(this, \"numberFormat\", _descriptor5, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor6, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor7, this);\n      _initializerDefineProperty(this, \"store\", _descriptor8, this);\n      _initializerDefineProperty(this, \"quickbooks\", _descriptor9, this);\n      _initializerDefineProperty(this, \"xeroIntegration\", _descriptor0, this);\n      _defineProperty(this, \"queryParams\", ['searchTerm', 'startDate', 'endDate', 'status', 'invoiceType', 'sortBy', 'sortDirection', 'contact']);\n      _initializerDefineProperty(this, \"startDate\", _descriptor1, this);\n      _initializerDefineProperty(this, \"endDate\", _descriptor10, this);\n      _initializerDefineProperty(this, \"invoiceType\", _descriptor11, this);\n      _initializerDefineProperty(this, \"sortBy\", _descriptor12, this);\n      _initializerDefineProperty(this, \"sortDirection\", _descriptor13, this);\n      _initializerDefineProperty(this, \"status\", _descriptor14, this);\n      _initializerDefineProperty(this, \"contact\", _descriptor15, this);\n      _initializerDefineProperty(this, \"invoiceChangeSet\", _descriptor16, this);\n      _initializerDefineProperty(this, \"searchTerm\", _descriptor17, this);\n      _initializerDefineProperty(this, \"invoiceSearchTerm\", _descriptor18, this);\n      _defineProperty(this, \"completedInvoices\", []);\n      _defineProperty(this, \"completedInvoicesPage\", void 0);\n      _defineProperty(this, \"completedInvoicesSearchTerm\", void 0);\n      _defineProperty(this, \"contacts\", []);\n      _defineProperty(this, \"contactsPage\", void 0);\n      _defineProperty(this, \"contactsSearchTerm\", void 0);\n      _initializerDefineProperty(this, \"showDownloadCsvModal\", _descriptor19, this);\n      _initializerDefineProperty(this, \"showInvoicesUploader\", _descriptor20, this);\n      _defineProperty(this, \"invoiceTypes\", [{\n        value: 'INVOICE',\n        label: this.intl.t('common.Invoice')\n      }, {\n        value: 'CREDIT_NOTE',\n        label: this.intl.t('common.Credit note')\n      }]);\n      _initializerDefineProperty(this, \"fromDate\", _descriptor21, this);\n      _initializerDefineProperty(this, \"toDate\", _descriptor22, this);\n      _defineProperty(this, \"onLoadMoreInvoices\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.model.invoices.perform(this.startDate, this.endDate, this.status, this.searchTerm, this.invoiceType, this.sortBy, this.sortDirection);\n        }\n      }), {\n        drop: true\n      }, \"onLoadMoreInvoices\", null));\n      _defineProperty(this, \"loadCompletedInvoices\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (searchTerm) {\n          try {\n            if (searchTerm !== this.completedInvoicesSearchTerm) {\n              this.completedInvoicesPage = undefined;\n              this.completedInvoices = [];\n              this.completedInvoicesSearchTerm = searchTerm;\n            }\n            const invoiceFilter = {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'status',\n                op: 'EQ',\n                value: 'COMPLETED'\n              }, {\n                field: 'invoiceType',\n                op: 'EQ',\n                value: 'INVOICE'\n              }]\n            };\n            if (searchTerm?.length) invoiceFilter.and.push((0, _searchFilter.default)(['toContact.name', 'invoiceNumber'], searchTerm));\n            const nextPageNumber = (this.completedInvoicesPage?.currentPage || 0) + 1;\n            const nextPage = yield this.store.query('invoice', {\n              filter: invoiceFilter,\n              sort: '-dateCreated',\n              page: {\n                size: 10,\n                number: nextPageNumber\n              }\n            });\n            this.completedInvoicesPage = nextPage.meta;\n            this.completedInvoices = [...this.completedInvoices, ...nextPage.toArray()];\n            return this.completedInvoices;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.operations.outgoing.invoices.somethingWentWrongLoadingMoreInvoices'),\n              error\n            });\n          }\n        }\n      }), {\n        restartable: true\n      }, \"loadCompletedInvoices\", null));\n      _defineProperty(this, \"onSaveInvoice\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeSet) {\n          yield changeSet.validate();\n          if (changeSet.isInvalid) {\n            this.notifications.warning(this.intl.t('shared.notification.Please complete the information'));\n            return;\n          }\n          try {\n            changeSet.execute();\n            if (changeSet.referencedInvoice) {\n              const creditNote = yield this.buildaPrice.createCreditNoteFromInvoice({\n                entity: this.sessionData.entity.id,\n                invoice: changeSet.referencedInvoice.id,\n                creditNoteNumber: changeSet.invoiceNumber\n              });\n              yield this.store.findRecord('invoice', creditNote.id, {\n                include: 'items',\n                reload: true\n              });\n              this.router.transitionTo(`entity.builda-price.operations.outgoing.invoices.invoice`, creditNote.id);\n              return;\n            }\n            const invoice = yield changeSet.save();\n            this.router.transitionTo(`entity.builda-price.operations.outgoing.invoices.invoice`, invoice.id);\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.operations.outgoing.invoices.creatingInvoiceError'),\n              error\n            });\n          } finally {\n            this.onClose();\n          }\n        }\n      }), null, \"onSaveInvoice\", null));\n      _defineProperty(this, \"_validateInvoiceNumber\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (invoiceNumber) {\n          yield (0, _emberConcurrency.timeout)(1000); // delay the api call for validation\n\n          const response = yield this.buildaPrice.validateInvoiceNumber({\n            entity: this.sessionData.entity.id,\n            invoiceNumber\n          });\n          return response;\n        }\n      }), {\n        restartable: true\n      }, \"_validateInvoiceNumber\", null));\n      _defineProperty(this, \"loadContacts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (searchTerm) {\n          try {\n            if (searchTerm !== this.contactsSearchTerm) {\n              this.contactsPage = undefined;\n              this.contacts = [];\n              this.contactsSearchTerm = searchTerm;\n            }\n            const contactFilter = {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }]\n            };\n            if (searchTerm?.length) contactFilter.and.push((0, _searchFilter.default)(['name'], searchTerm));\n            const nextPageNumber = (this.contactsPage?.currentPage || 0) + 1;\n            const nextPage = yield this.store.query('contact', {\n              filter: contactFilter,\n              sort: 'name',\n              page: {\n                size: 10,\n                number: nextPageNumber\n              }\n            });\n            this.contactsPage = nextPage.meta;\n            this.contacts = [...this.contacts, ...nextPage.toArray()];\n            return this.contacts;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongLoadingMoreContacts'),\n              error\n            });\n          }\n        }\n      }), {\n        restartable: true\n      }, \"loadContacts\", null));\n      _defineProperty(this, \"onChangeInvoiceSearchTerm\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          yield (0, _emberConcurrency.timeout)(_environment.default.debounceTimeMs);\n          const {\n            value\n          } = e.target;\n\n          // the invoiceSearchTerm is already directly set by the input\n          // set the searchTerm param and reload the invoices\n          this.searchTerm = value === '' ? undefined : value;\n        }\n      }), null, \"onChangeInvoiceSearchTerm\", null));\n      _defineProperty(this, \"invoiceValidationMap\", {\n        invoiceNumber: this.validateInvoiceNumber,\n        invoiceType: this.validateInvoiceType,\n        toContact: this.validateToContact\n      });\n      _defineProperty(this, \"invoiceValidator\", async ({\n        key,\n        newValue,\n        oldValue\n      }) => {\n        const value = newValue || oldValue;\n        switch (key) {\n          case 'invoiceNumber':\n            return await this.validateInvoiceNumber(value, newValue);\n          case 'invoiceType':\n            return this.validateInvoiceType(newValue);\n          case 'toContact':\n            return this.validateToContact(value);\n          default:\n            return true;\n        }\n      });\n      _defineProperty(this, \"downloadAsCSV\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            // TODO not sure which field dateCreated or issueDate\n            const invoiceFilter = {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'dateCreated',\n                op: 'GE',\n                value: (0, _moment.default)(this.fromDate).startOf('day').toISOString()\n              }, {\n                field: 'dateCreated',\n                op: 'LE',\n                value: (0, _moment.default)(this.toDate).endOf('day').toISOString()\n              }],\n              sort: '-dateCreated'\n            };\n            const invoicesInDateRange = yield (0, _paginationCallback.default)(page => this.store.query('invoice', {\n              filter: invoiceFilter,\n              include: 'items',\n              page: {\n                size: 1000,\n                number: page\n              }\n            }));\n            const buyerDetails = `${this.sessionData.entity.name}${this.sessionData.entity.address ? `, ${this.sessionData.entity.address}` : ''}`;\n            const exportedItemsData = (invoicesInDateRange.filter(item => item.totalPrice) || []).flatMap(invoice => {\n              const invoiceItems = invoice.hasMany('items').value().toArray();\n              const contact = invoice.belongsTo('toContact').value();\n              const toContact = contact ? `${contact.name}` : '';\n              const issueDate = invoice.issueDate ? (0, _moment.default)(invoice.issueDate).format(this.intl.t('date.dashDayFirst')) : '';\n              const dueDate = invoice.dueDate ? (0, _moment.default)(invoice.dueDate).format(this.intl.t('date.dashDayFirst')) : '';\n              return invoiceItems.map(invoiceItem => [invoice.invoiceNumber, invoice.statusLabel, `${buyerDetails}`, `${toContact}`, issueDate, dueDate, `${invoiceItem.code ? invoiceItem.code : ''}`, `${invoiceItem.description}`, this.numberFormat.format(invoiceItem.unitPrice, {\n                style: 'currency'\n              }), invoiceItem.quantity, this.numberFormat.format(invoiceItem.taxRate, {\n                style: 'percent',\n                maximumSignificantDigits: 4\n              }), this.numberFormat.format(invoiceItem.unitPrice * invoiceItem.quantity, {\n                style: 'currency'\n              })]);\n            });\n            const table = [[this.intl.t('common.Invoice number'), this.intl.t('common.Status'), this.intl.t('common.From'), this.intl.t('common.To'), this.intl.t('common.Issue date'), this.intl.t('common.Due date'), this.intl.t('common.Code'), this.intl.t('common.Description'), this.intl.t('common.Unit price'), this.intl.t('common.Quantity'), `${this.intl.t('common.Tax')} (%)`, `${this.intl.t('common.Line total')} (excl)`], ...exportedItemsData];\n            const fileName = `Invoices_${(0, _moment.default)(this.fromDate).format(this.intl.t('date.dashDayFirst'))}_to_${(0, _moment.default)(this.toDate).format(this.intl.t('date.dashDayFirst'))}`;\n            (0, _csvBuilder.downloadCSV)(table, fileName);\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.operations.outgoing.invoices.somethingWentWrongWhileDownloadInvoices'),\n              error\n            });\n          } finally {\n            this.showDownloadCsvModal = false;\n          }\n        }\n      }), null, \"downloadAsCSV\", null));\n    }\n    // TODO do not copy this code!\n    // we need a paginated search component that doesn't require ember-changeset - when done refactor this\n    get contactFilterModel() {\n      return {\n        contact: this.contact,\n        get: () => []\n      };\n    }\n    setFilterContact(contact) {\n      this.contact = contact?.name;\n    }\n    clearFilterContact() {\n      this.contact = undefined;\n    }\n    get isLoading() {\n      return this.model.invoices.lastSuccessful === null && this.model.invoices.isRunning || this.model.invoiceOptions.lastSuccessful === null && this.model.invoiceOptions.isRunning;\n    }\n    get jsStartDate() {\n      const start = this.startDate || (0, _moment.default)().startOf('isoWeek').subtract(1, 'months');\n      return (0, _moment.default)(start).toDate();\n    }\n    set jsStartDate(value) {\n      this.startDate = (0, _moment.default)(value).format('YYYY-MM-DD');\n      return value;\n    }\n    get jsEndDate() {\n      const end = this.endDate || (0, _moment.default)().endOf('isoWeek');\n      return (0, _moment.default)(end).toDate();\n    }\n    set jsEndDate(value) {\n      this.endDate = (0, _moment.default)(value).format('YYYY-MM-DD');\n      return value;\n    }\n    get nextInvoiceNumber() {\n      const invoiceOptions = this.model.invoiceOptions.last.value;\n      const invoicePrefix = invoiceOptions.invoicePrefix;\n      const nextInvoiceNumber = invoiceOptions.nextInvoiceNumber;\n      const invoiceNumber = invoicePrefix ? `${invoicePrefix}${nextInvoiceNumber}` : nextInvoiceNumber;\n      return invoiceNumber;\n    }\n    get invoiceNumberIconName() {\n      return this.sortBy === 'invoiceNumber' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined;\n    }\n    get toContactIconName() {\n      return this.sortBy === 'toContact' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined;\n    }\n    get issueDateIconName() {\n      return this.sortBy === 'issueDate' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined;\n    }\n    get dateCreatedIconName() {\n      return this.sortBy === 'dateCreated' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined;\n    }\n    get statusIconName() {\n      return this.sortBy === 'status' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined;\n    }\n    get jsExportFromDate() {\n      const from = this.fromDate || (0, _moment.default)().startOf('isoWeek').subtract(1, 'months');\n      return (0, _moment.default)(from).toDate();\n    }\n    set jsExportFromDate(value) {\n      this.fromDate = (0, _moment.default)(value).format('YYYY-MM-DD');\n      return value;\n    }\n    get jsExportToDate() {\n      const to = this.toDate || (0, _moment.default)().endOf('isoWeek');\n      return (0, _moment.default)(to).toDate();\n    }\n    set jsExportToDate(value) {\n      this.toDate = (0, _moment.default)(value).format('YYYY-MM-DD');\n      return value;\n    }\n    sortColumn(columnName) {\n      if (this.sortBy !== columnName) {\n        this.sortBy = columnName;\n        this.sortDirection = 'asc';\n        return;\n      }\n      this.sortBy = columnName;\n      if (this.sortDirection === 'asc') {\n        this.sortDirection = 'desc';\n      } else if (this.sortDirection === 'desc') {\n        this.sortDirection = undefined;\n        this.sortBy = undefined;\n      } else {\n        this.sortDirection = 'asc';\n      }\n    }\n    setReferencedInvoice(value) {\n      this.invoiceChangeSet.set('referencedInvoice', value || null);\n    }\n    setDateRange(dates) {\n      const {\n        startDate,\n        endDate\n      } = dates;\n      if (startDate) this.jsStartDate = startDate;\n      if (endDate) this.jsEndDate = endDate;\n    }\n    onClose() {\n      this.invoiceChangeSet = null;\n      this.completedInvoices = [];\n      this.completedInvoicesPage = undefined;\n      this.completedInvoicesSearchTerm = undefined;\n      this.contacts = [];\n      this.contactsPage = undefined;\n      this.contactsSearchTerm = undefined;\n    }\n    setToContact(contact) {\n      this.invoiceChangeSet.set('toContact', contact);\n    }\n    onChangeInvoiceType(typeOrEvent) {\n      const selectedType = typeOrEvent?.target?.value ?? typeOrEvent;\n      const {\n        invoicePrefix,\n        creditNotePrefix,\n        nextInvoiceNumber,\n        nextCreditNoteNumber\n      } = this.model.invoiceOptions.last.value;\n      if (selectedType && this.invoiceChangeSet.get('invoiceType') !== selectedType) {\n        this.invoiceChangeSet.set('invoiceType', selectedType);\n      }\n      const currentInvoiceNumber = this.invoiceChangeSet.get('invoiceNumber') || '';\n      if (currentInvoiceNumber.startsWith(invoicePrefix) || currentInvoiceNumber.startsWith(creditNotePrefix)) {\n        this.invoiceChangeSet.set('invoiceNumber', selectedType === 'INVOICE' ? `${invoicePrefix}${nextInvoiceNumber}` : `${creditNotePrefix}${nextCreditNoteNumber}`);\n      }\n    }\n    openNewInvoiceForm() {\n      const invoiceNumber = this.nextInvoiceNumber;\n      const invoice = this.store.createRecord('invoice', {\n        entity: this.sessionData.entity,\n        invoiceNumber\n      });\n      this.invoiceChangeSet = (0, _emberChangeset.Changeset)(invoice, this.invoiceValidator, this.invoiceValidationMap);\n    }\n    async validateInvoiceNumber(value, newValue) {\n      try {\n        const {\n          isUnique,\n          nextInvoiceNumber\n        } = await this._validateInvoiceNumber.perform(value);\n        if (!isUnique) return `${this.intl.t('validation.Invoice number already exists, use')} ${nextInvoiceNumber ? nextInvoiceNumber : this.intl.t('shared.purchase-order.a different one')}`;\n        return newValue && newValue.length > 0 && isUnique || this.intl.t('validation.Please provide a invoice number');\n      } catch (e) {\n        if (!(0, _emberConcurrency.didCancel)(e)) {\n          throw Error('Error validating invoice number');\n        }\n      }\n      return;\n    }\n    validateInvoiceType(newValue) {\n      return newValue && newValue.length > 0 || this.intl.t('validation.Please select an invoice type');\n    }\n    validateToContact(value) {\n      return Boolean(value.name) || this.intl.t('validation.Please select a contact');\n    }\n    setExportDateRange(dates) {\n      const {\n        startDate,\n        endDate\n      } = dates;\n      if (startDate) this.jsExportFromDate = startDate;\n      if (endDate) this.jsExportToDate = endDate;\n    }\n    clearDateRange() {\n      this.startDate = null;\n      this.endDate = null;\n    }\n    async onUploadInvoiceCSV() {\n      await this.model.invoices.perform();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"numberFormat\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"quickbooks\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"xeroIntegration\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"startDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"endDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"invoiceType\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'ALL';\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"sortBy\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'dateCreated';\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"sortDirection\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'desc';\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"status\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'ALL';\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, \"contact\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, \"invoiceChangeSet\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, \"searchTerm\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, \"invoiceSearchTerm\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.searchTerm != null ? String(this.searchTerm) : '';\n    }\n  }), _descriptor19 = _applyDecoratedDescriptor(_class2.prototype, \"showDownloadCsvModal\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor20 = _applyDecoratedDescriptor(_class2.prototype, \"showInvoicesUploader\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"setFilterContact\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setFilterContact\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"clearFilterContact\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"clearFilterContact\"), _class2.prototype), _descriptor21 = _applyDecoratedDescriptor(_class2.prototype, \"fromDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return (0, _moment.default)().startOf('isoWeek').subtract(3, 'months').toDate();\n    }\n  }), _descriptor22 = _applyDecoratedDescriptor(_class2.prototype, \"toDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return (0, _moment.default)().endOf('isoWeek').toDate();\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"sortColumn\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"sortColumn\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setReferencedInvoice\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setReferencedInvoice\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setDateRange\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setDateRange\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onClose\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onClose\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setToContact\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setToContact\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onChangeInvoiceType\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onChangeInvoiceType\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"openNewInvoiceForm\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"openNewInvoiceForm\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setExportDateRange\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setExportDateRange\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"clearDateRange\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"clearDateRange\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onUploadInvoiceCSV\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onUploadInvoiceCSV\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/operations/outgoing/invoices/invoice\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/service\", \"lodash\", \"portal/utils/csv-builder\", \"moment\", \"portal/utils/search-filter\", \"ember-changeset\", \"portal/utils/download\", \"@ember/runloop\", \"portal/models/entity-invoice-option\"], function (_exports, _asyncArrowRuntime, _controller, _object, _tracking, _service, _lodash, _csvBuilder, _moment, _searchFilter, _emberChangeset, _download, _runloop, _entityInvoiceOption) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/object\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"lodash\",0,\"portal/utils/csv-builder\",0,\"moment\",0,\"portal/utils/search-filter\",0,\"ember-changeset\",0,\"portal/utils/download\",0,\"@ember/runloop\",0,\"portal/models/entity-invoice-option\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor4, this);\n      _initializerDefineProperty(this, \"numberFormat\", _descriptor5, this);\n      _initializerDefineProperty(this, \"router\", _descriptor6, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor7, this);\n      _initializerDefineProperty(this, \"accountingPlatform\", _descriptor8, this);\n      _initializerDefineProperty(this, \"store\", _descriptor9, this);\n      _initializerDefineProperty(this, \"currentInvoiceItem\", _descriptor0, this);\n      _initializerDefineProperty(this, \"isDeletingInvoice\", _descriptor1, this);\n      _initializerDefineProperty(this, \"isCreatingCreditNote\", _descriptor10, this);\n      _initializerDefineProperty(this, \"isEditingInvoice\", _descriptor11, this);\n      _initializerDefineProperty(this, \"showConfigureBreakdownOptionsModal\", _descriptor12, this);\n      _initializerDefineProperty(this, \"isRevertCompletedToDraftInvoice\", _descriptor13, this);\n      _initializerDefineProperty(this, \"selectedItemIndexes\", _descriptor14, this);\n      _initializerDefineProperty(this, \"sortBy\", _descriptor15, this);\n      _initializerDefineProperty(this, \"sortDirection\", _descriptor16, this);\n      _initializerDefineProperty(this, \"exportOptions\", _descriptor17, this);\n      _defineProperty(this, \"validateInvoiceItemsSafeToDelete\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (invoiceItems) {\n          if (!invoiceItems.length) {\n            return true;\n          }\n          try {\n            // get all the unique project ids on the items\n            const linkedProjectIds = [...new Set(invoiceItems.flatMap(item => {\n              const links = item.hasMany('projects').value()?.toArray();\n              return links.map(link => link.belongsTo('project').id());\n            }))];\n            if (!linkedProjectIds.length) {\n              return true;\n            }\n            const toContactId = this.invoice.belongsTo('toContact').id();\n            const invoiceItemIds = invoiceItems.map(item => item.id);\n\n            // find approved invoice items that aren't these for the projects and contact\n            const relatedInvoiceItems = yield this.store.query('invoice-item', {\n              filter: {\n                and: [{\n                  field: 'entity',\n                  op: 'EQ',\n                  value: this.sessionData.entity.id\n                }, toContactId ? {\n                  field: 'invoice.toContact',\n                  op: 'EQ',\n                  value: toContactId\n                } : {\n                  field: 'invoice.toContact',\n                  op: 'IS_NULL',\n                  value: null\n                }, {\n                  field: 'invoice.status',\n                  op: 'IN',\n                  value: ['APPROVED', 'COMPLETED']\n                }, {\n                  field: 'invoice.dateCreated',\n                  op: 'GT',\n                  value: (0, _moment.default)(this.invoice.dateCreated).toISOString()\n                }, {\n                  field: '_id',\n                  op: 'NOT_IN',\n                  value: invoiceItemIds\n                }]\n              }\n            });\n            const relatedInvoiceItemIds = (relatedInvoiceItems?.toArray() || []).map(item => item.id);\n            if (!relatedInvoiceItemIds.length) {\n              return true;\n            }\n\n            // check if any of those items are linked to the same projects\n            const overlappingLinks = yield this.store.query('link-invoice-item-to-project', {\n              filter: {\n                and: [{\n                  field: 'invoiceItem',\n                  op: 'IN',\n                  value: relatedInvoiceItemIds\n                }, {\n                  field: 'project',\n                  op: 'IN',\n                  value: linkedProjectIds\n                }]\n              },\n              page: {\n                size: 1,\n                number: 1\n              }\n            });\n            return !overlappingLinks?.length;\n          } catch (error) {\n            return false;\n          }\n        }\n      }), null, \"validateInvoiceItemsSafeToDelete\", null));\n      _defineProperty(this, \"validateInvoiceSafeToDelete\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.model.invoice.last;\n            const currentInvoiceItems = this.invoice.hasMany('items').value()?.toArray() || [];\n            if (!currentInvoiceItems.length) {\n              return true;\n            }\n            return this.validateInvoiceItemsSafeToDelete.perform(currentInvoiceItems);\n          } catch (error) {\n            return false;\n          }\n        }\n      }), null, \"validateInvoiceSafeToDelete\", null));\n      _defineProperty(this, \"invoiceEditButtonId\", 'invoice-edit-button');\n      _defineProperty(this, \"contacts\", []);\n      _defineProperty(this, \"contactsPage\", void 0);\n      _defineProperty(this, \"contactsSearchTerm\", void 0);\n      _defineProperty(this, \"crumbStack\", [{\n        route: 'entity.builda-price.operations.outgoing.invoices.index',\n        pageTitle: this.intl.t('common.Invoices')\n      }, {\n        pageTitle: this.intl.t('common.Invoice')\n      }]);\n      _initializerDefineProperty(this, \"_invoiceItems\", _descriptor18, this);\n      _defineProperty(this, \"loadContacts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (searchTerm) {\n          try {\n            if (searchTerm !== this.contactsSearchTerm) {\n              this.contactsPage = undefined;\n              this.contacts = [];\n              this.contactsSearchTerm = searchTerm;\n            }\n            const contactFilter = {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }]\n            };\n            if (searchTerm?.length) contactFilter.and.push((0, _searchFilter.default)(['name'], searchTerm));\n            const nextPageNumber = (this.contactsPage?.currentPage || 0) + 1;\n            const nextPage = yield this.store.query('contact', {\n              filter: contactFilter,\n              sort: 'name',\n              page: {\n                size: 10,\n                number: nextPageNumber\n              }\n            });\n            this.contactsPage = nextPage.meta;\n            this.contacts = [...this.contacts, ...nextPage.toArray()];\n            return this.contacts;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongLoadingMoreContacts'),\n              error\n            });\n          }\n        }\n      }), {\n        restartable: true\n      }, \"loadContacts\", null));\n      _defineProperty(this, \"saveInvoice\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.invoiceChangeSet.validate();\n            if (this.invoiceChangeSet.isInvalid) {\n              // highlight the edit invoice button\n              if (!this.isEditingInvoice) document.getElementById(this.invoiceEditButtonId).focus();\n              this.notifications.warning(this.intl.t('entity.builda-price.operations.outgoing.invoices.invoice.Please complete the invoice information'));\n              return;\n            }\n\n            //TODO need find a way to use changeSet to save the record\n            this.invoiceChangeSet.changes.forEach(({\n              key,\n              value\n            }) => {\n              let safeValue = value;\n              if (value && typeof value === 'object' && 'content' in value) {\n                safeValue = value.content;\n              }\n              this.invoice.set(key, safeValue);\n            });\n            yield this.invoice.save();\n            this.invoiceChangeSet.rollback();\n            this.isEditingInvoice = false;\n            this.notifications.success(this.intl.t('entity.builda-price.operations.outgoing.invoices.invoice.Successfully saved invoice'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.operations.outgoing.invoices.invoice.somethingWentWrongWhileSavingInvoice'),\n              error\n            });\n          }\n        }\n      }), null, \"saveInvoice\", null));\n      _defineProperty(this, \"onDeleteInvoice\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.model.invoice.last.value.destroyRecord();\n            this._invoiceItems = null;\n            this.isDeletingInvoice = false;\n            this.router.transitionTo(`entity.builda-price.operations.outgoing.invoices`);\n            this.notifications.success(this.intl.t('entity.builda-price.operations.outgoing.invoices.invoice.Successfully deleted invoice'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.operations.outgoing.invoices.invoice.somethingWentWrongWhileDeletingInvoice'),\n              error\n            });\n          }\n        }\n      }), null, \"onDeleteInvoice\", null));\n      _defineProperty(this, \"deleteInvoiceItem\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (item) {\n          try {\n            const invoiceCanBeSafelyDeleted = yield this.validateInvoiceItemsSafeToDelete.perform([item]);\n            if (!invoiceCanBeSafelyDeleted && !confirm(this.intl.t('entity.builda-price.operations.outgoing.invoices.invoice.deleteInvoiceItemCalculationDependencyWarning'))) return;\n            yield item.destroyRecord();\n            const index = this.invoiceItems.indexOf(item);\n            if (index !== -1) {\n              this.invoiceItems.removeObject(item);\n            }\n\n            // TODO it is unsafe to keep these after this\n            // this set should be a set of items, not indexes\n            // refactor if you don't want to do this\n            this.selectedItemIndexes = new Set();\n            this.closeInvoiceItemEditor();\n            this.notifications.success(this.intl.t('entity.builda-price.operations.outgoing.invoices.invoice.Successfully deleted item'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.operations.outgoing.invoices.invoice.Something went wrong deleting item'),\n              error: error\n            });\n          }\n        }\n      }), null, \"deleteInvoiceItem\", null));\n      _defineProperty(this, \"deleteInvoiceItems\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            const itemsToDelete = Array.from(this.selectedItemIndexes).map(index => this.invoiceItems[index]).filter(Boolean);\n            const invoiceCanBeSafelyDeleted = yield this.validateInvoiceItemsSafeToDelete.perform(itemsToDelete);\n            if (!invoiceCanBeSafelyDeleted && !confirm(this.intl.t('entity.builda-price.operations.outgoing.invoices.invoice.deleteInvoiceItemCalculationDependencyWarning'))) return;\n            yield Promise.all(itemsToDelete.map(item => item.destroyRecord()));\n            this.invoiceItems.removeObjects(itemsToDelete);\n            this.selectedItemIndexes = new Set();\n            this.notifications.success(this.intl.t('entity.builda-price.operations.outgoing.invoices.invoice.Successfully deleted items'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.operations.outgoing.invoices.invoice.Something went wrong deleting items'),\n              error: error\n            });\n          }\n        }\n      }), null, \"deleteInvoiceItems\", null));\n      _initializerDefineProperty(this, \"downloadInvoice\", _descriptor19, this);\n      _defineProperty(this, \"downloadAttachments\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            const zipBlob = yield this.buildaPrice.getInvoiceBillAttachmentsZip({\n              entity: this.sessionData.entity.id,\n              invoice: this.invoice.id\n            });\n            if (!zipBlob) return;\n            (0, _download.download)(zipBlob, `${this.invoice.invoiceNumber}_bill_documents`, 'application/zip');\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongWhileDownloadingAttachment'),\n              error: error\n            });\n          }\n        }\n      }), null, \"downloadAttachments\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          // WIP\n          const exportedItemsData = this.exportedData.items.map(item => {\n            return [`${this.invoice.invoiceNumber}`, `${this.exportedData.status}`, `${this.exportedData.fromDetails}`, `${this.exportedData.contactDetails}`, `${this.exportedData.issueDate}`, `${this.exportedData.dueDate}`, `${item.code ? item.code : ''}`, `${item.description}`, `${this.numberFormat.format(item.unitPrice, {\n              style: 'currency',\n              dashZero: true\n            })}`, `${item.quantity}`, `${this.numberFormat.format(item.unitPrice * item.quantity, {\n              style: 'currency'\n            })}`];\n          });\n          const table = [[this.intl.t('common.Invoice number'), this.intl.t('common.Status'), this.intl.t('common.From'), this.intl.t('common.To'), this.intl.t('common.Issue date'), this.intl.t('common.Due date'), this.intl.t('common.Code'), this.intl.t('common.Description'), this.intl.t('common.Unit price'), this.intl.t('common.Quantity'), this.intl.t('common.Line total'), this.intl.t('common.Subtotal'), this.intl.t('common.Tax'), this.intl.t('common.Total')], ...exportedItemsData, ['', '', '', '', '', '', '', '', '', '', '', this.numberFormat.format(this.exportedData.subtotal, {\n            style: 'currency',\n            dashZero: true\n          }), this.numberFormat.format(this.exportedData.taxValue, {\n            style: 'currency',\n            dashZero: true\n          }), this.numberFormat.format(this.exportedData.totalWithTax, {\n            style: 'currency',\n            dashZero: true\n          })]];\n          (0, _csvBuilder.downloadCSV)(table, this.filename);\n        }\n      }), null, \"downloadAsCsv\", null));\n      _defineProperty(this, \"downloadAsExcel\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const report = [];\n          report.push({\n            lineType: 'subtitle',\n            data: [this.intl.t('common.Invoice number'), this.invoice.invoiceNumber]\n          });\n          report.push({\n            lineType: 'subtitle',\n            data: [this.intl.t('common.Status'), this.exportedData.status]\n          });\n          report.push({\n            lineType: 'subtitle',\n            data: [this.intl.t('common.Issue date'), this.exportedData.issueDate]\n          });\n          report.push({\n            lineType: 'subtitle',\n            data: [this.intl.t('common.Due date'), this.exportedData.dueDate]\n          });\n          report.push({\n            lineType: 'subtitle',\n            data: [this.intl.t('common.From'), this.exportedData.fromDetails]\n          });\n          report.push({\n            lineType: 'subtitle',\n            data: [this.intl.t('common.To'), this.exportedData.contactDetails]\n          });\n          report.push({\n            lineType: 'blank',\n            data: null\n          });\n          report.push({\n            lineType: 'invoiceHeading',\n            data: [this.intl.t('common.Description'), this.intl.t('common.Unit price'), this.intl.t('common.Quantity'), this.intl.t('common.Total')]\n          });\n          this.exportedData.items.map(item => {\n            report.push({\n              lineType: 'invoiceItemRow',\n              data: [item.description, Number(item.unitPrice), item.quantity, item.unitPrice * item.quantity]\n            });\n          });\n          report.push({\n            lineType: 'blank',\n            data: null\n          });\n          report.push({\n            lineType: 'invoiceItemTotalRow',\n            data: ['', '', this.intl.t('common.Subtotal'), this.exportedData.subtotal]\n          });\n          report.push({\n            lineType: 'invoiceTaxRow',\n            data: ['', '', this.intl.t('common.Tax'), this.exportedData.taxValue]\n          });\n          report.push({\n            lineType: 'invoiceItemTotalRow',\n            data: ['', '', this.intl.t('common.Total'), this.exportedData.totalWithTax]\n          });\n          report.push({\n            lineType: 'blank',\n            data: null\n          });\n          report.push({\n            lineType: 'blank',\n            data: null\n          });\n          report.push({\n            lineType: 'invoiceFooterRow',\n            data: [this.model.invoiceOption.last.value.footerNotes]\n          });\n          yield this.buildaPrice.downloadExcel(this.filename, {\n            data: report,\n            reportType: 'invoice'\n          });\n        }\n      }), null, \"downloadAsExcel\", null));\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.buildaPrice.downloadInvoicePDF(this.filename, {\n              entity: this.sessionData.entity.id,\n              invoice: this.model.invoice.last.value.id\n            });\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongWhileDownloadingThePDF'),\n              error\n            });\n          }\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadBreakdownAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.buildaPrice.downloadInvoiceBreakdownPDF(this.invoiceBreakdownFileName, {\n              entity: this.sessionData.entity.id,\n              invoice: this.model.invoice.last.value.id\n            });\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongWhileDownloadingThePDF'),\n              error\n            });\n          }\n        }\n      }), null, \"downloadBreakdownAsPdf\", null));\n      _defineProperty(this, \"changeStatus\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (status, syncToAccountingPackage) {\n          try {\n            yield this.invoiceChangeSet.validate();\n            if (this.invoiceChangeSet.isInvalid) {\n              // highlight the edit invoice button\n              if (!this.isEditingInvoice) document.getElementById(this.invoiceEditButtonId).focus();\n              this.notifications.warning(this.intl.t('entity.builda-price.operations.outgoing.invoices.invoice.Please complete the invoice information'));\n              return;\n            }\n            if (!this.isRevertCompletedToDraftInvoice && status === 'DRAFT' && this.invoiceChangeSet.status === 'COMPLETED') {\n              this.isRevertCompletedToDraftInvoice = true;\n              return;\n            }\n            if (syncToAccountingPackage) {\n              yield this.syncToAccountingPackage.perform();\n            }\n            if (status) {\n              yield new Promise(resolve => setTimeout(resolve, 1000));\n              this.invoiceChangeSet.status = status;\n              yield this.saveInvoice.perform();\n            }\n            this.isRevertCompletedToDraftInvoice = false;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.Something went wrong changing status'),\n              error\n            });\n            this.isRevertCompletedToDraftInvoice = false;\n          }\n        }\n      }), null, \"changeStatus\", null));\n      _defineProperty(this, \"syncToAccountingPackage\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const platform = this.accountingPlatform.activePlatform;\n          if (!platform) return;\n          this.setDownloadInvoice(platform);\n        }\n      }), null, \"syncToAccountingPackage\", null));\n      _defineProperty(this, \"viewInAccountingPackage\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.accountingPlatform.viewInvoice(this.invoice);\n        }\n      }), null, \"viewInAccountingPackage\", null));\n      _defineProperty(this, \"createCreditNote\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            const invoice = this.model.invoice.last.value;\n            const creditNote = yield this.buildaPrice.createCreditNoteFromInvoice({\n              entity: this.sessionData.entity.id,\n              invoice: invoice.id\n            });\n            this.router.transitionTo(`entity.builda-price.operations.outgoing.invoices.invoice`, creditNote.id);\n            this.notifications.success(this.intl.t('entity.builda-price.operations.outgoing.invoices.invoice.Successfully created credit note'));\n            this.isCreatingCreditNote = false;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.operations.outgoing.invoices.invoice.createCreditNoteFailureMessage'),\n              error\n            });\n          }\n        }\n      }), null, \"createCreditNote\", null));\n      _defineProperty(this, \"viewRelatedDocument\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (invoiceId) {\n          const url = this.router.urlFor('entity.builda-price.operations.outgoing.invoices.invoice', invoiceId);\n          window.open(url, '_blank');\n        }\n      }), null, \"viewRelatedDocument\", null));\n      _initializerDefineProperty(this, \"invoiceBreakdownOptions\", _descriptor20, this);\n      _defineProperty(this, \"initInvoiceBreakdown\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            let invoiceOptions;\n            const invoiceInvoiceOptions = yield this.store.query('invoice-invoice-option', {\n              filter: {\n                and: [{\n                  field: 'invoice',\n                  op: 'EQ',\n                  value: this.invoice.id\n                }]\n              }\n            });\n            if (!invoiceInvoiceOptions.length) {\n              const entityInvoiceOptions = yield this.store.query('entity-invoice-option', {\n                filter: {\n                  and: [{\n                    field: 'entity',\n                    op: 'EQ',\n                    value: this.sessionData.entity.id\n                  }]\n                }\n              });\n              invoiceOptions = this.store.createRecord('invoice-invoice-option', {\n                invoice: this.invoice,\n                entity: this.sessionData.entity,\n                firstGroupBy: entityInvoiceOptions[0] ? entityInvoiceOptions[0].firstGroupBy : 'TASK',\n                materialsDetail: entityInvoiceOptions[0] ? entityInvoiceOptions[0].materialsDetail : 'TOTAL',\n                labourDetail: entityInvoiceOptions[0] ? entityInvoiceOptions[0].labourDetail : 'TOTAL',\n                subcontractorsDetail: entityInvoiceOptions[0] ? entityInvoiceOptions[0].subcontractorsDetail : 'TOTAL',\n                timesheetDetails: entityInvoiceOptions[0] ? entityInvoiceOptions[0].timesheetDetails : [],\n                includeLabourBillsProfitMargins: entityInvoiceOptions.firstObject ? entityInvoiceOptions.firstObject.includeLabourBillsProfitMargins : false,\n                includeMaterialBillsProfitMargins: entityInvoiceOptions.firstObject ? entityInvoiceOptions.firstObject.includeMaterialBillsProfitMargins : false,\n                includeSubcontractorBillsProfitMargins: entityInvoiceOptions.firstObject ? entityInvoiceOptions.firstObject.includeSubcontractorBillsProfitMargins : false,\n                includeTimesheetsProfitMargins: entityInvoiceOptions.firstObject ? entityInvoiceOptions.firstObject.includeTimesheetsProfitMargins : false,\n                includeTimesheetsCostMargins: entityInvoiceOptions.firstObject ? entityInvoiceOptions.firstObject.includeTimesheetsCostMargins : false,\n                includeBillable: entityInvoiceOptions[0] ? entityInvoiceOptions[0].includeBillable : false,\n                includeInvoiced: entityInvoiceOptions[0] ? entityInvoiceOptions[0].includeInvoiced : false\n              });\n            } else {\n              invoiceOptions = invoiceInvoiceOptions[0];\n            }\n            this.invoiceBreakdownOptions = (0, _emberChangeset.Changeset)(invoiceOptions);\n            yield this.getInvoiceBreakdownHtml.perform();\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.operations.outgoing.invoices.invoice.loadBreakdownOptionsError'),\n              error\n            });\n          }\n        }\n      }), null, \"initInvoiceBreakdown\", null));\n      _defineProperty(this, \"getInvoiceBreakdownHtml\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          if (!this.invoiceItems.length) return;\n          return this.buildaPrice.getInvoiceBreakdownHTML(this.filename, {\n            entity: this.sessionData.entity.id,\n            invoice: this.model.invoice.last.value.id,\n            firstGroupBy: this.invoiceBreakdownOptions.firstGroupBy,\n            materialsDetail: this.invoiceBreakdownOptions.materialsDetail,\n            labourDetail: this.invoiceBreakdownOptions.labourDetail,\n            subcontractorsDetail: this.invoiceBreakdownOptions.subcontractorsDetail,\n            breakdownNotes: this.invoiceBreakdownOptions.breakdownNotes,\n            timesheetDetails: this.invoiceBreakdownOptions.timesheetDetails,\n            includeLabourBillsProfitMargins: this.invoiceBreakdownOptions.includeLabourBillsProfitMargins,\n            includeMaterialBillsProfitMargins: this.invoiceBreakdownOptions.includeMaterialBillsProfitMargins,\n            includeSubcontractorBillsProfitMargins: this.invoiceBreakdownOptions.includeSubcontractorBillsProfitMargins,\n            includeTimesheetsProfitMargins: this.invoiceBreakdownOptions.includeTimesheetsProfitMargins,\n            includeTimesheetsCostMargins: this.invoiceBreakdownOptions.includeTimesheetsCostMargins,\n            includeBillable: this.invoiceBreakdownOptions.includeBillable,\n            includeInvoiced: this.invoiceBreakdownOptions.includeInvoiced\n          });\n        }\n      }), null, \"getInvoiceBreakdownHtml\", null));\n      _defineProperty(this, \"saveBreakdownOptions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.invoiceBreakdownOptions.save();\n            this.showConfigureBreakdownOptionsModal = false;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.operations.outgoing.invoices.invoice.saveBreakdownOptionsError'),\n              error\n            });\n          }\n        }\n      }), null, \"saveBreakdownOptions\", null));\n      _defineProperty(this, \"saveBreakdownOptionsAsCompanyDefault\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            const companyOptions = this.companyInvoiceOptions || _entityInvoiceOption.default.defaultOptionsRecord(this.store, this.sessionData.entity);\n            companyOptions.setProperties({\n              breakdownNotes: this.invoiceBreakdownOptions.breakdownNotes,\n              firstGroupBy: this.invoiceBreakdownOptions.firstGroupBy,\n              materialsDetail: this.invoiceBreakdownOptions.materialsDetail,\n              labourDetail: this.invoiceBreakdownOptions.labourDetail,\n              subcontractorsDetail: this.invoiceBreakdownOptions.subcontractorsDetail,\n              // If the invoice is already grouped by task, don't group the timesheets by task again.\n              timesheetDetails: this.invoiceBreakdownOptions.firstGroupBy === 'TASK' ? this.invoiceBreakdownOptions.timesheetDetails.filter(option => option !== 'TASK') : this.invoiceBreakdownOptions.timesheetDetails,\n              includeLabourBillsProfitMargins: this.invoiceBreakdownOptions.includeLabourBillsProfitMargins,\n              includeMaterialBillsProfitMargins: this.invoiceBreakdownOptions.includeMaterialBillsProfitMargins,\n              includeSubcontractorBillsProfitMargins: this.invoiceBreakdownOptions.includeSubcontractorBillsProfitMargins,\n              includeTimesheetsProfitMargins: this.invoiceBreakdownOptions.includeTimesheetsProfitMargins,\n              includeBillable: this.invoiceBreakdownOptions.includeBillable,\n              includeInvoiced: this.invoiceBreakdownOptions.includeInvoiced\n            });\n            yield companyOptions.save();\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.operations.outgoing.invoices.invoice.saveBreakdownOptionsAsCompanyDefaultError'),\n              error\n            });\n          }\n        }\n      }), null, \"saveBreakdownOptionsAsCompanyDefault\", null));\n    }\n    get invoiceItemEditorHeader() {\n      return this.currentInvoiceItem?.isNew ? this.intl.t('common.Add item') : this.intl.t('entity.builda-price.operations.outgoing.invoices.invoice.Edit item');\n    }\n    get canManageInvoices() {\n      return this.model.invoicePermissions.last.value?.canManageInvoices;\n    }\n    get canApproveInvoices() {\n      return this.model.invoicePermissions.last.value?.canApproveInvoices;\n    }\n    get canUseFileStorage() {\n      return this.model.invoicePermissions.last.value?.canUseFileStorage;\n    }\n    get canManageFileStorage() {\n      return this.model.invoicePermissions.last.value?.canUseFileStorage;\n    }\n    get invoiceActions() {\n      const actions = {\n        primaryAction: undefined,\n        secondaryActions: []\n      };\n      if (!this.canManageInvoices && !this.invoiceItems.length) return actions;\n\n      // nothing to move along until the total is corrected\n      if (this.isInvoiceTotalInvalid) return actions;\n      if (this.status === 'DRAFT') {\n        actions.primaryAction = {\n          name: this.intl.t('entity.builda-price.operations.outgoing.invoices.invoice.Submit for approval'),\n          action: this.changeStatus,\n          targetStatus: 'AWAITING_APPROVAL'\n        };\n        if (this.canApproveInvoices) actions.secondaryActions.push({\n          name: this.intl.t('common.Approve'),\n          action: this.changeStatus,\n          targetStatus: 'APPROVED'\n        });\n        if (this.canApproveInvoices) actions.secondaryActions.push({\n          name: this.intl.t('common.Complete'),\n          action: this.changeStatus,\n          syncToAccountingPackage: false,\n          targetStatus: 'COMPLETED'\n        });\n        if (this.accountingPlatform.isActive && this.canApproveInvoices) actions.secondaryActions.push({\n          name: `${this.intl.t('entity.builda-price.operations.outgoing.invoices.invoice.completeSyncTo')} ${this.accountingPlatform.label}`,\n          action: this.changeStatus,\n          syncToAccountingPackage: true,\n          targetStatus: 'COMPLETED'\n        });\n      } else if (this.canApproveInvoices && this.status === 'AWAITING_APPROVAL') {\n        actions.primaryAction = {\n          name: this.intl.t('common.Approve'),\n          action: this.changeStatus,\n          targetStatus: 'APPROVED'\n        };\n        actions.secondaryActions.push({\n          name: this.intl.t('common.Complete'),\n          action: this.changeStatus,\n          syncToAccountingPackage: false,\n          targetStatus: 'COMPLETED'\n        });\n        if (this.accountingPlatform.isActive) actions.secondaryActions.push({\n          name: `${this.intl.t('entity.builda-price.operations.outgoing.invoices.invoice.completeSyncTo')} ${this.accountingPlatform.label}`,\n          action: this.changeStatus,\n          syncToAccountingPackage: true,\n          targetStatus: 'COMPLETED'\n        });\n      } else if (this.status === 'APPROVED') {\n        if (this.accountingPlatform.isActive) {\n          actions.primaryAction = {\n            name: `${this.intl.t('entity.builda-price.operations.outgoing.invoices.invoice.completeSyncTo')} ${this.accountingPlatform.label}`,\n            action: this.changeStatus,\n            syncToAccountingPackage: true,\n            targetStatus: 'COMPLETED'\n          };\n          actions.secondaryActions.push({\n            name: this.intl.t('common.Complete'),\n            action: this.changeStatus,\n            syncToAccountingPackage: false,\n            targetStatus: 'COMPLETED'\n          });\n        } else {\n          actions.primaryAction = {\n            name: this.intl.t('common.Complete'),\n            action: this.changeStatus,\n            syncToAccountingPackage: false,\n            targetStatus: 'COMPLETED'\n          };\n        }\n      }\n\n      // sync to account package is always an option\n      if (this.accountingPlatform.isActive) {\n        if (actions.primaryAction) {\n          actions.secondaryActions.push({\n            name: `${this.intl.t('entity.builda-price.operations.outgoing.invoices.invoice.Sync to')} ${this.accountingPlatform.label}`,\n            action: this.syncToAccountingPackage\n          });\n        } else {\n          actions.primaryAction = {\n            name: `${this.intl.t('entity.builda-price.operations.outgoing.invoices.invoice.Sync to')} ${this.accountingPlatform.label}`,\n            action: this.syncToAccountingPackage\n          };\n        }\n      }\n      if (actions.primaryAction) {\n        if (this.status !== 'DRAFT' && this.status !== 'COMPLETED') {\n          actions.secondaryActions.push({\n            name: this.intl.t('entity.builda-price.operations.outgoing.invoices.invoice.Revert to draft'),\n            action: this.changeStatus,\n            syncToAccountingPackage: false,\n            targetStatus: 'DRAFT'\n          });\n        }\n      }\n      return actions;\n    }\n    get invoice() {\n      return this.model.invoice.last.value;\n    }\n    get invoiceChangeSet() {\n      return this.model.invoiceChangeSet.last.value;\n    }\n    showConfigureBreakdownOptionsModalDialog() {\n      this.showConfigureBreakdownOptionsModal = true;\n      this.initInvoiceBreakdown.perform();\n    }\n    get invoiceItems() {\n      if (this._invoiceItems) return this._invoiceItems;\n      return this.model.invoiceItems.last.value || [];\n    }\n    set invoiceItems(value) {\n      this._invoiceItems = value;\n    }\n    get lastSortIndex() {\n      const highestSortOrderItem = this.invoiceItems.sortBy('sortIndex').reverse()[0];\n      return highestSortOrderItem?.sortIndex || 0;\n    }\n    get isActionsRunning() {\n      return this.invoiceActions.secondaryActions.some(action => action.action.isRunning) || this.invoiceActions.primaryAction.action.isRunning;\n    }\n    get isInvoiceTotalInvalid() {\n      const {\n        invoiceType,\n        totalPrice\n      } = this.invoice;\n      return this.status === 'DRAFT' && (invoiceType === 'CREDIT_NOTE' && totalPrice > 0 || invoiceType === 'INVOICE' && totalPrice < 0);\n    }\n    get invoiceTotalError() {\n      if (!this.isInvoiceTotalInvalid) return undefined;\n      return this.intl.t(this.invoice.invoiceType === 'CREDIT_NOTE' ? 'entity.builda-price.operations.outgoing.invoices.invoice.A credit note total cannot be positive' : 'entity.builda-price.operations.outgoing.invoices.invoice.An invoice total cannot be negative');\n    }\n    get status() {\n      return this.model.invoice.last.value.status;\n    }\n    get isLoading() {\n      return this.model.invoice.isRunning || this.model.invoiceItems.isRunning || this.model.suppliers.isRunning || this.model.invoiceChangeSet.isRunning || this.model.invoicePermissions.isRunning || this.model.relatedInvoices.isRunning;\n    }\n    get relatedDocuments() {\n      const related = this.model.relatedInvoices.last.value || [];\n      const relatedInvoices = related.map(invoice => ({\n        id: invoice.id,\n        action: this.viewRelatedDocument,\n        label: `${this.intl.t('common.View')} ${invoice.invoiceNumber}`\n      }));\n      const referencedInvoice = this.invoice.belongsTo('referencedInvoice').value();\n      if (referencedInvoice && !relatedInvoices.some(doc => doc.id === referencedInvoice.id)) {\n        relatedInvoices.unshift({\n          id: referencedInvoice.id,\n          action: this.viewRelatedDocument,\n          label: `${this.intl.t('common.View')} ${referencedInvoice.invoiceNumber}`\n        });\n      }\n      return relatedInvoices;\n    }\n    get totalFooter() {\n      if (!this.invoiceItems.length) return null;\n      const {\n        subtotal,\n        tax\n      } = this.invoiceItems.reduce((acc, item) => {\n        const itemSubtotal = item.unitPrice * item.quantity;\n        const itemTax = itemSubtotal * (item.taxRate || 0);\n        acc.subtotal += itemSubtotal;\n        acc.tax += itemTax;\n        return acc;\n      }, {\n        subtotal: 0,\n        tax: 0\n      });\n      const total = subtotal + tax;\n      return {\n        subtotal: this.numberFormat.format(subtotal, {\n          style: 'currency',\n          dashZero: true\n        }),\n        tax: this.numberFormat.format(tax, {\n          style: 'currency',\n          dashZero: true\n        }),\n        total: this.numberFormat.format(total, {\n          style: 'currency',\n          dashZero: true\n        })\n      };\n    }\n    get itemTableData() {\n      return this.invoiceItems.map((item, index) => {\n        const itemData = [{\n          type: 'BUTTON',\n          textClass: 'btn btn-link',\n          onClickButton: () => this.editInvoiceItem(item),\n          value: item.description\n        }, {\n          colClass: 'text-right align-middle',\n          textClass: 'text-right',\n          value: this.numberFormat.format(item.unitPrice, {\n            style: 'currency',\n            dashZero: true\n          })\n        }, {\n          colClass: 'text-right align-middle',\n          textClass: 'text-right',\n          min: '0',\n          max: '1000000',\n          value: item.quantity || 0\n        }, {\n          colClass: 'text-right align-middle',\n          textClass: 'text-nowrap',\n          value: this.numberFormat.format(item.unitPrice * item.quantity, {\n            style: 'currency',\n            dashZero: true\n          })\n        }, {\n          colClass: 'text-right align-middle',\n          textClass: 'text-right',\n          value: this.numberFormat.format(item.taxRate, {\n            style: 'percent',\n            dashZero: true,\n            maximumSignificantDigits: 4\n          })\n        }, {\n          colClass: 'text-right align-middle',\n          textClass: 'text-nowrap',\n          value: this.numberFormat.format(item.unitPrice * item.quantity * (1 + item.taxRate || 0), {\n            style: 'currency',\n            dashZero: true\n          })\n        }];\n        if (this.canEdit) {\n          itemData.unshift({\n            type: 'CHECKBOX_INPUT',\n            colClass: 'text-center align-middle',\n            value: this.selectedItemIndexes.has(index),\n            onInputChange: this.selectItem,\n            extraData: {\n              index\n            },\n            disabled: Boolean(item.belongsTo('stagePayment').id())\n          });\n        }\n        return {\n          rowData: itemData\n        };\n      });\n    }\n    get itemTableHeader() {\n      const itemHeader = [{\n        value: this.intl.t('common.Description'),\n        iconName: this.sortBy === 'Description' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left text-nowrap w-50'\n      }, {\n        value: this.intl.t('common.Unit price'),\n        iconName: this.sortBy === 'Unit price' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-right text-nowrap'\n      }, {\n        value: this.intl.t('common.Qty'),\n        iconName: this.sortBy === 'Qty' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-right text-nowrap'\n      }, {\n        value: this.intl.t('common.Subtotal'),\n        iconName: this.sortBy === 'Subtotal' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-right text-nowrap'\n      }, {\n        value: this.intl.t('common.Tax'),\n        iconName: this.sortBy === 'Tax' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-right text-nowrap'\n      }, {\n        colClass: 'text-right text-nowrap',\n        value: this.intl.t('common.Total')\n      }];\n      if (this.canEdit && this.invoiceItems.length) {\n        const selectableInvoiceItemLength = this.invoiceItems.reduce((i, ii) => i + (ii.belongsTo('stagePayment').id() ? 0 : 1), 0);\n        itemHeader.unshift({\n          type: 'CHECKBOX_INPUT',\n          colClass: 'text-center align-middle',\n          value: Boolean(selectableInvoiceItemLength && this.selectedItemIndexes.size === selectableInvoiceItemLength),\n          isPartiallySelected: Boolean(this.selectedItemIndexes.size && this.selectedItemIndexes.size !== selectableInvoiceItemLength),\n          onInputChange: this.onSelectCurrentPageItems\n        });\n      }\n      return itemHeader;\n    }\n    get canEdit() {\n      return (this.canManageInvoices || this.canApproveInvoices) && !['COMPLETED', 'APPROVED'].includes(this.status);\n    }\n    get canManageOrApproveInvoice() {\n      return this.canManageInvoices || this.canApproveInvoices;\n    }\n    get canAllocate() {\n      return this.canEdit;\n    }\n    get canAddItems() {\n      const canUseProjects = this.newFeatureFlags.includesFeatureFlags('canUseProjects', 'canUseTasks');\n      return canUseProjects;\n    }\n    get filename() {\n      const currentDate = new Date();\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${this.invoice.invoiceNumber}_${year}-${month}-${day}`;\n    }\n    get invoiceBreakdownFileName() {\n      const currentDate = new Date();\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${this.invoice.invoiceNumber}_breakdown_${year}-${month}-${day}`;\n    }\n    get exportedData() {\n      const contact = this.invoice.belongsTo('toContact').value();\n      const contactDetails = contact?.name ? `${contact.name}${contact.address ? `, ${contact.address}` : ''}` : '';\n      const items = this.invoice.hasMany('items').value()?.toArray() || [];\n      const {\n        subtotal,\n        subtotalWithTax\n      } = (items || []).reduce((acc, item) => {\n        const quantity = item.quantity ?? 0;\n        const unitPrice = item.unitPrice ?? 0;\n        const taxRate = item.taxRate ?? 0;\n        const totalPrice = quantity * unitPrice;\n        const taxAmount = totalPrice * taxRate;\n        acc.subtotal += totalPrice;\n        acc.subtotalWithTax += totalPrice + taxAmount;\n        return acc;\n      }, {\n        subtotal: 0,\n        subtotalWithTax: 0\n      });\n      const issueDate = this.invoice.issueDate ? (0, _moment.default)(this.invoice.issueDate).format(this.intl.t('date.dashDayFirst')) : '';\n      const dueDate = this.invoice.dueDate ? (0, _moment.default)(this.invoice.dueDate).format(this.intl.t('date.dashDayFirst')) : '';\n      const taxValue = subtotalWithTax - subtotal;\n      const totalWithTax = subtotalWithTax;\n      const fromDetails = `${this.sessionData.entity.name}${this.sessionData.entity.address ? `, ${this.sessionData.entity.address}` : ''}`;\n      return {\n        fromDetails,\n        contactDetails,\n        status: this.invoice.statusLabel,\n        items,\n        subtotal,\n        taxValue,\n        subtotalWithTax,\n        totalWithTax,\n        issueDate,\n        dueDate\n      };\n    }\n    setToContact(contact) {\n      this.invoiceChangeSet.set('toContact', contact);\n    }\n    closeInvoiceEditModal() {\n      this.invoiceChangeSet.rollback();\n      this.isEditingInvoice = false;\n    }\n    editInvoiceItem(item) {\n      this.currentInvoiceItem = item;\n    }\n    async saveInvoiceItem(item, allocations, allocationDate, contractType) {\n      try {\n        await item.save({\n          adapterOptions: {\n            meta: {\n              allocations,\n              startDate: undefined,\n              endDate: allocationDate,\n              contractType\n            }\n          }\n        });\n        const itemIndex = this.invoiceItems.indexOf(item);\n        if (itemIndex > -1) this.invoiceItems[itemIndex] = item;else this.invoiceItems = [...this.invoiceItems, item];\n        this.closeInvoiceItemEditor();\n        this.notifications.success(this.intl.t('entity.builda-price.operations.outgoing.invoices.invoice.Successfully saved item'));\n      } catch (error) {\n        this.notifications.error({\n          message: this.intl.t('entity.builda-price.operations.outgoing.invoices.invoice.Something went wrong saving item'),\n          error: error\n        });\n      }\n    }\n    addInvoiceItem() {\n      this.currentInvoiceItem = this.store.createRecord('invoice-item', {\n        entity: this.sessionData.entity,\n        invoice: this.model.invoice.last.value,\n        quantity: this.invoice.invoiceType === 'INVOICE' ? 1 : -1,\n        taxRate: this.sessionData.entity.gst,\n        sortIndex: this.lastSortIndex + 1\n      });\n    }\n    closeInvoiceItemEditor() {\n      this.currentInvoiceItem = undefined;\n\n      // closing allocation model leaves the unsaved record in store\n      const invoiceItems = this.store.peekAll('invoice-item');\n      invoiceItems.filter(item => item?.isNew).map(item => item.unloadRecord());\n    }\n    sortColumn(_row, col) {\n      this.sortBy = col.value;\n      if (this.sortBy !== col.value) {\n        this.sortDirection = 'asc';\n      } else {\n        if (this.sortDirection === 'asc') {\n          this.sortDirection = 'desc';\n        } else if (this.sortDirection === 'desc') {\n          this.sortDirection = undefined;\n        } else {\n          this.sortDirection = 'asc';\n        }\n      }\n      let orderBy;\n      if (!this.sortDirection) {\n        orderBy = 'sortIndex';\n      } else {\n        switch (col.value) {\n          case 'Description':\n            orderBy = 'description';\n            break;\n          case 'Tax':\n            orderBy = 'taxRate';\n            break;\n          case 'Unit price':\n            orderBy = 'unitPrice';\n            break;\n          case 'Qty':\n            orderBy = 'quantity';\n            break;\n          default:\n            break;\n        }\n      }\n      this.invoiceItems = _lodash.default.orderBy(this.invoiceItems, orderBy, this.sortDirection);\n    }\n    goToSupplier() {\n      window.open(this.router.urlFor('entity.settings.contacts.contact', this.invoiceChangeSet.toContact.id), '_blank');\n    }\n    onSelectCurrentPageItems(_row, col, e) {\n      const selectedItemIndexes = new Set();\n      if (e.target.checked) {\n        this.invoiceItems.forEach((ii, index) => {\n          if (!ii.belongsTo('stagePayment').id()) selectedItemIndexes.add(index);\n        });\n      }\n      this.selectedItemIndexes = selectedItemIndexes;\n    }\n    selectItem(_row, col, e) {\n      if (e.target.checked) {\n        this.selectedItemIndexes.add(col.extraData.index);\n      } else {\n        this.selectedItemIndexes.delete(col.extraData.index);\n      }\n\n      // set is not supported by tracked\n      // eslint-disable-next-line no-self-assign\n      this.selectedItemIndexes = this.selectedItemIndexes;\n    }\n    async attachmentsUploadComplete({\n      attachments,\n      validationErrors,\n      error\n    }) {\n      try {\n        if (error) throw error;\n        await Promise.all(attachments.map(async attachment => {\n          this.store.createRecord('invoice-attachment', {\n            invoice: this.model.invoice.last.value,\n            entity: this.sessionData.entity,\n            data: attachment.data,\n            filename: attachment.filename,\n            fileType: attachment.fileType,\n            extension: attachment.extension\n          }).save();\n        }));\n        validationErrors.forEach(error => this.notifications.error(error));\n      } catch (error) {\n        this.notifications.error({\n          message: this.intl.t('shared.notification.somethingWentWrongWhileSavingAttachments'),\n          error: error\n        });\n      }\n    }\n    async deleteAttachment(attachment) {\n      try {\n        const invoiceAttachments = this.model.invoice.last.value.hasMany('attachments').value();\n        const attachmentToBeDeleted = invoiceAttachments.find(item => item.id === attachment.id);\n\n        // first we need to delete the link record\n        await attachmentToBeDeleted?.destroyRecord();\n      } catch (error) {\n        this.notifications.error({\n          error,\n          message: this.intl.t('shared.notification.somethingWentWrongWhileDeletingTheAttachment')\n        });\n      }\n    }\n    downloadAttachment(record) {\n      window.open(record.href, '_blank');\n    }\n    download(type) {\n      switch (type) {\n        case 'csv':\n          this.downloadAsCsv.perform();\n          break;\n        case 'excel':\n          this.downloadAsExcel.perform();\n          break;\n        case 'pdf':\n          this.downloadAsPdf.perform();\n          break;\n      }\n    }\n    setDownloadInvoice(type) {\n      if (!this.invoiceItems.length && (type !== 'xero' || type !== 'quickbooks')) {\n        this.download(type);\n        return;\n      }\n      this.exportOptions = [{\n        key: 'includeBreakdown',\n        name: 'Include breakdown',\n        value: false\n      }, {\n        key: 'includeOriginalBills',\n        name: 'Include original bills',\n        value: false\n      }];\n      this.downloadInvoice = async () => {\n        if (type === 'xero' || type === 'quickbooks') {\n          const options = {};\n          this.exportOptions.map(opt => options[opt.key] = opt.value);\n          await this.accountingPlatform.sendInvoice.perform(this.invoice, options);\n          this.downloadInvoice = null;\n          return;\n        }\n        this.download(type);\n        for (const opt of this.exportOptions) {\n          if (!opt.value) continue;\n          if (opt.key === 'includeBreakdown') {\n            await this.downloadBreakdownAsPdf.perform();\n          } else if (opt.key === 'includeOriginalBills') {\n            await this.downloadAttachments.perform();\n          }\n        }\n        this.downloadInvoice = null;\n      };\n    }\n    get isDownloadingInvoice() {\n      return this.downloadAsCsv.isRunning || this.downloadAsExcel.isRunning || this.downloadAsPdf.isRunning || this.downloadAttachments.isRunning || this.downloadBreakdownAsPdf.isRunning || this.accountingPlatform.sendInvoice.isRunning;\n    }\n    toggleProperty(propertyName) {\n      this[propertyName] = !this[propertyName];\n    }\n    onChangeBreakdownOptionCheckbox() {\n      (0, _runloop.next)(() => {\n        this.getInvoiceBreakdownHtml.perform();\n      });\n    }\n    onToggleTimesheetMargin(thisKey, otherKey) {\n      (0, _runloop.next)(() => {\n        if (this.invoiceBreakdownOptions.get(thisKey)) {\n          this.invoiceBreakdownOptions.set(otherKey, false);\n        }\n        this.getInvoiceBreakdownHtml.perform();\n      });\n    }\n    onChangeFirstGroupBy() {\n      if (this.invoiceBreakdownOptions.firstGroupBy === 'TASK') {\n        this.invoiceBreakdownOptions.timesheetDetails = this.invoiceBreakdownOptions.timesheetDetails.filter(option => option !== 'TASK');\n      }\n      this.getInvoiceBreakdownHtml.perform();\n    }\n    get timesheetGroupingOptions() {\n      if (!this.invoiceBreakdownOptions) return [];\n      const options = [{\n        key: 'DAY',\n        name: this.intl.t('common.Day')\n      }, {\n        key: 'WORKER',\n        name: this.intl.t('common.Worker')\n      }];\n      if (this.invoiceBreakdownOptions.firstGroupBy !== 'TASK') options.push({\n        key: 'TASK',\n        name: this.intl.t('common.Task')\n      });\n      return options;\n    }\n    get companyInvoiceOptions() {\n      return this.store.peekAll('entity-invoice-option').find(option => option.belongsTo('entity').id() === this.sessionData.entity.id);\n    }\n    get hasCompanyBreakdownOptionChanges() {\n      if (!this.invoiceBreakdownOptions) return false;\n      if (!this.companyInvoiceOptions) return true;\n      return ['breakdownNotes', 'firstGroupBy', 'materialsDetail', 'labourDetail', 'subcontractorsDetail', 'timesheetDetails', 'includeLabourBillsProfitMargins', 'includeMaterialBillsProfitMargins', 'includeSubcontractorBillsProfitMargins', 'includeTimesheetsProfitMargins', 'includeBillable', 'includeInvoiced'].some(field => !_lodash.default.isEqual(this.invoiceBreakdownOptions[field], this.companyInvoiceOptions[field]));\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"numberFormat\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"accountingPlatform\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"currentInvoiceItem\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"isDeletingInvoice\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"isCreatingCreditNote\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"isEditingInvoice\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"showConfigureBreakdownOptionsModal\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"isRevertCompletedToDraftInvoice\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"selectedItemIndexes\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return new Set();\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, \"sortBy\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, \"sortDirection\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, \"exportOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"showConfigureBreakdownOptionsModalDialog\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"showConfigureBreakdownOptionsModalDialog\"), _class2.prototype), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, \"_invoiceItems\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"setToContact\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setToContact\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"closeInvoiceEditModal\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"closeInvoiceEditModal\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"editInvoiceItem\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"editInvoiceItem\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"saveInvoiceItem\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"saveInvoiceItem\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"addInvoiceItem\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"addInvoiceItem\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"closeInvoiceItemEditor\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"closeInvoiceItemEditor\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"sortColumn\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"sortColumn\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"goToSupplier\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"goToSupplier\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onSelectCurrentPageItems\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onSelectCurrentPageItems\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"selectItem\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"selectItem\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"attachmentsUploadComplete\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"attachmentsUploadComplete\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"deleteAttachment\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"deleteAttachment\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"downloadAttachment\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"downloadAttachment\"), _class2.prototype), _descriptor19 = _applyDecoratedDescriptor(_class2.prototype, \"downloadInvoice\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"setDownloadInvoice\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setDownloadInvoice\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"toggleProperty\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"toggleProperty\"), _class2.prototype), _descriptor20 = _applyDecoratedDescriptor(_class2.prototype, \"invoiceBreakdownOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"onChangeBreakdownOptionCheckbox\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onChangeBreakdownOptionCheckbox\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onToggleTimesheetMargin\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onToggleTimesheetMargin\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onChangeFirstGroupBy\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onChangeFirstGroupBy\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/operations/outgoing/payroll\", [\"exports\", \"@ember/controller\", \"@ember/object\", \"@ember/service\", \"@ember/object/computed\", \"lodash\", \"moment\", \"jquery\", \"portal/utils/csv-builder\", \"portal/utils/crystal-csv-generator\", \"portal/utils/smart-payroll-csv-generator\", \"portal/config/environment\"], function (_exports, _controller, _object, _service, _computed, _lodash, _moment, _jquery, _csvBuilder, _crystalCsvGenerator, _smartPayrollCsvGenerator, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/object/computed\",0,\"lodash\",0,\"moment\",0,\"jquery\",0,\"portal/utils/csv-builder\",0,\"portal/utils/crystal-csv-generator\",0,\"portal/utils/smart-payroll-csv-generator\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({\n    intl: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    newFeatureFlags: (0, _service.inject)(),\n    session: (0, _service.inject)(),\n    portalApiToken: (0, _computed.alias)('session.data.authenticated.access_token'),\n    xeroIntegration: (0, _service.inject)(),\n    notifications: (0, _service.inject)(),\n    isSyncingToXero: false,\n    isSyncingToQuickbooks: false,\n    portalApiV2: (0, _service.inject)(),\n    skipDayLocking: false,\n    quickbooks: (0, _service.inject)(),\n    queryParams: ['endDate', 'startDate'],\n    // Report defaults to 1 week ending today.\n    jsEndDate: (0, _object.computed)('endDate', {\n      get() {\n        return (0, _moment.default)((0, _object.get)(this, 'endDate')).toDate();\n      },\n      set(key, value) {\n        (0, _object.set)(this, 'endDate', (0, _moment.default)(value).format('YYYY-MM-DD'));\n        return value;\n      }\n    }),\n    jsStartDate: (0, _object.computed)('startDate', {\n      get() {\n        return (0, _moment.default)((0, _object.get)(this, 'startDate')).toDate();\n      },\n      set(key, value) {\n        (0, _object.set)(this, 'startDate', (0, _moment.default)(value).format('YYYY-MM-DD'));\n        return value;\n      }\n    }),\n    activeWorkers: (0, _object.computed)('model.workers.@each.isActive', function () {\n      return (0, _object.get)(this, 'model.workers').filterBy('isActive');\n    }),\n    selectedWorker: null,\n    /**\n     * Creates an array with a Date for each day in the report\n     */\n    reportDays: (0, _object.computed)('startDate', 'endDate', function () {\n      const days = [];\n      const end = (0, _object.get)(this, 'endDate');\n      const day = (0, _moment.default)((0, _object.get)(this, 'startDate')).startOf('day');\n      do {\n        days.push(day.format('YYYY-MM-DD'));\n        day.add(1, 'd');\n      } while (day.format('YYYY-MM-DD') <= end); // eslint-disable-line no-unmodified-loop-condition\n\n      return days;\n    }),\n    /*\n    {\n      [workerId]: {\n        [projectId]: {\n          [dateKey]: TimesheetStatus\n        }\n      }\n    }\n    */\n    statuses: (0, _object.computed)('model.timesheetStatuses', 'model.workers', 'model.timesheets', function () {\n      const workers = (0, _object.get)(this, 'model.workers').toArray();\n      const workerTimesheets = _lodash.default.groupBy((0, _object.get)(this, 'model.timesheets').toArray(), ts => ts.belongsTo('worker').id());\n      const workerStatuses = _lodash.default.groupBy((0, _object.get)(this, 'model.timesheetStatuses').toArray(), st => st.belongsTo('worker').id());\n      return workers.reduce((workerProjectStatuses, worker) => {\n        const workerId = (0, _object.get)(worker, 'id');\n        const workersStatuses = workerStatuses[workerId] || [];\n        const workersTimesheets = workerTimesheets[workerId] || [];\n        return {\n          ...workerProjectStatuses,\n          [workerId]: workersTimesheets.reduce((projects, timesheet) => {\n            const projectId = timesheet.belongsTo('project').id();\n            const date = (0, _object.get)(timesheet, 'date');\n            const existingProjectStatuses = projects[projectId] || {};\n            const status = workersStatuses.find(st => st.belongsTo('project').id() === projectId && (0, _moment.default)((0, _object.get)(st, 'date')).isSame(date, 'day')) || {\n              status: 'pending'\n            }; // use a placeholder pending status\n\n            return {\n              ...projects,\n              [projectId]: {\n                ...existingProjectStatuses,\n                [date]: status\n              }\n            };\n          }, {})\n        };\n      }, {});\n    }),\n    unacceptedStatusesMessage: (0, _object.computed)('model.{timesheetStatuses,timesheets,timesheetNotes}', 'selectedWorker.id', function () {\n      const unacceptedDates = new Set();\n      const selectedWorkerId = (0, _object.get)(this, 'selectedWorker.id');\n      const filteredStatus = selectedWorkerId ? (0, _object.get)(this, 'model.timesheetStatuses').filter(status => status.belongsTo('worker').id() === selectedWorkerId) : (0, _object.get)(this, 'model.timesheetStatuses');\n      const filteredTimesheets = selectedWorkerId ? (0, _object.get)(this, 'model.timesheets').filter(timesheet => timesheet.belongsTo('worker').id() === selectedWorkerId) : (0, _object.get)(this, 'model.timesheets');\n      const statuses = filteredStatus.reduce((obj, status) => {\n        const workerId = status.belongsTo('worker').id();\n        const dateKey = (0, _moment.default)((0, _object.get)(status, 'date')).endOf('day').unix();\n        const projectId = status.belongsTo('project').id();\n        const existingWorkerStatuses = obj[workerId] || {};\n        const existingWorkerDateStatuses = obj[workerId] && obj[workerId][dateKey] || {};\n        return Object.assign({}, obj, {\n          [workerId]: {\n            ...existingWorkerStatuses,\n            [dateKey]: {\n              ...existingWorkerDateStatuses,\n              [projectId]: status\n            }\n          }\n        });\n      }, {});\n      filteredTimesheets.sortBy('date').forEach(timesheet => {\n        const workerId = timesheet.belongsTo('worker').id();\n        const date = (0, _moment.default)((0, _object.get)(timesheet, 'date')).endOf('day');\n        const dateKey = date.unix();\n        const projectId = timesheet.belongsTo('project').id();\n        const status = statuses[workerId] && statuses[workerId][dateKey] && statuses[workerId][dateKey][projectId];\n        if (status && (0, _object.get)(status, 'status') === 'accepted') return;\n        unacceptedDates.add(date.format((0, _object.get)(this, 'intl').t('date.dayMonthAbbr')));\n      });\n      if (unacceptedDates.size) {\n        return `${(0, _object.get)(this, 'intl').t('entity.builda-price.operations.outgoing.payroll.thereAreUnacceptedTimesheetsOnTheFollowingDays')}: ${Array.from(unacceptedDates).join(', ')}.`;\n      }\n      return null;\n    }),\n    /**\n     * Creates a report with row attributes.\n     * Each report element represents a row in the table and looks like the following:\n     * ```\n     * {\n     *   totalHours: Number,\n     *   totalPay: Number,\n     *   dayTotals: Number.[],\n     *   worker: Object, // Optional\n     *   project: Object, // Optional\n     *   task: Object, // Optional\n     * }\n     * ```\n     * Where worker, project, and task reference what you want to appear\n     * in the corresponding columns for each row.\n     */\n    report: (0, _object.computed)('endDate', 'model.{tasks,workers.@each.currentChargeOutRate}', 'reportDays', 'selectedWorker', 'startDate', 'statuses', function () {\n      const selectedWorker = (0, _object.get)(this, 'selectedWorker');\n      const workers = selectedWorker ? [selectedWorker] : (0, _object.get)(this, 'model.workers');\n      const reportDays = (0, _object.get)(this, 'reportDays');\n      const tasksByProject = (0, _object.get)(this, 'model.tasks').reduce((group, task) => {\n        const project = (0, _object.get)(task, 'project.id');\n        if (!group[project]) group[project] = [];\n        group[project].push(task);\n        return group;\n      }, {});\n      const report = [];\n\n      // Each worker gets their own part of the table built up.\n      workers.forEach(worker => {\n        // Get all the projects and tasks that this worker has contributed to.\n        const timesheets = (0, _object.get)(worker, 'timesheets').content?.toArray() || [];\n        const projects = timesheets.map(timesheet => timesheet.project).filter(Boolean);\n        const projectsForWorker = [...new Map(projects.map(p => [p.id, p])).values()];\n        const workerStatuses = (0, _object.get)(this, 'statuses')[(0, _object.get)(worker, 'id')];\n        const workerQuery = {\n          start: (0, _object.get)(this, 'startDate'),\n          end: (0, _object.get)(this, 'endDate')\n        };\n\n        // Calculate the work done by the worker over the whole period.\n        const workerReportRow = buildReportRow({\n          worker,\n          query: workerQuery,\n          days: reportDays\n        });\n        (0, _object.set)(workerReportRow, 'worker', worker);\n\n        // If the worker didnt submit any hours, move on to the next one before adding any rows\n        if (!((0, _object.get)(workerReportRow, 'totalHours') || (0, _object.get)(workerReportRow, 'totalPay'))) return;\n\n        // Create a report row to appear in the table, this corresponds to the total\n        // for the worker over the time period.\n        report.push(workerReportRow);\n\n        // Make a project scoped row for each project, very similar to worker row.\n        projectsForWorker.forEach(project => {\n          const projectQuery = {\n            start: (0, _object.get)(this, 'startDate'),\n            end: (0, _object.get)(this, 'endDate'),\n            project\n          };\n          const projectReportRow = buildReportRow({\n            worker,\n            query: projectQuery,\n            days: reportDays,\n            workerStatuses\n          });\n          if (!((0, _object.get)(projectReportRow, 'totalHours') || (0, _object.get)(projectReportRow, 'totalPay'))) return;\n          report.push(projectReportRow);\n\n          // Make a task scoped row for each task, very similar to worker and project rows.\n          const projectTasks = tasksByProject[(0, _object.get)(project, 'id')] || [];\n          projectTasks.forEach(task => {\n            const taskQuery = {\n              start: (0, _object.get)(this, 'startDate'),\n              end: (0, _object.get)(this, 'endDate'),\n              task\n            };\n            const taskReportRow = buildReportRow({\n              worker,\n              query: taskQuery,\n              days: reportDays\n            });\n            if (!((0, _object.get)(taskReportRow, 'totalHours') || (0, _object.get)(taskReportRow, 'totalPay'))) return;\n            report.push(taskReportRow);\n          });\n        });\n      });\n      return report;\n    }),\n    payRateClashNote: (0, _object.computed)('report', function () {\n      const reports = (0, _object.get)(this, 'report').filter(report => (0, _object.get)(report, 'worker'));\n      const clashes = [];\n      let note;\n      for (const report of reports) {\n        const payRate = (0, _object.get)(report, 'worker.payRate');\n        const currentPay = (0, _object.get)(report, 'totalHours') * payRate;\n        if (currentPay !== (0, _object.get)(report, 'totalPay')) {\n          clashes.push((0, _object.get)(report, 'worker'));\n        }\n      }\n      if (clashes.length) {\n        note = '';\n        clashes.forEach((worker, index) => {\n          const name = (0, _object.get)(worker, 'firstName') + ' ' + (0, _object.get)(worker, 'lastName');\n          const and = clashes.length > 1 && index + 1 !== clashes.length ? ` ${(0, _object.get)(this, 'intl').t('common.and')} ` : '';\n          note += name + and;\n        });\n        note += ` ${(0, _object.get)(this, 'intl').t('entity.builda-price.operations.outgoing.payroll.hadTheirPayRateChangedTheReportedTotalsMayNotBalanceAgainstTheCurrentPayRate')}`;\n      }\n      return note;\n    }),\n    actions: {\n      shiftDays(n) {\n        const newStartDate = (0, _moment.default)((0, _object.get)(this, 'startDate')).add(n, 'd').format('YYYY-MM-DD');\n        const newEndDate = (0, _moment.default)((0, _object.get)(this, 'endDate')).add(n, 'd').format('YYYY-MM-DD');\n        (0, _object.set)(this, 'startDate', newStartDate);\n        (0, _object.set)(this, 'endDate', newEndDate);\n      },\n      setDateRange(dates) {\n        const {\n          startDate,\n          endDate\n        } = dates;\n        if (startDate) (0, _object.set)(this, 'jsStartDate', startDate);\n        if (endDate) (0, _object.set)(this, 'jsEndDate', endDate);\n      },\n      async exportAsCSV(skipValidation) {\n        if (!skipValidation && (0, _object.get)(this, 'unacceptedStatusesMessage')) {\n          return (0, _object.set)(this, 'confirmExportActionName', 'exportAsCSV');\n        } else {\n          (0, _object.set)(this, 'confirmExportActionName', null);\n        }\n        const startDate = (0, _moment.default)((0, _object.get)(this, 'startDate')).format((0, _object.get)(this, 'intl').t('date.dashDayFirst'));\n        const endDate = (0, _moment.default)((0, _object.get)(this, 'endDate')).format((0, _object.get)(this, 'intl').t('date.dashDayFirst'));\n        const entityName = (0, _object.get)(this, 'sessionData.entity.name');\n        const userName = (0, _object.get)(this, 'sessionData.user.email');\n        const days = (0, _object.get)(this, 'reportDays').map(d => (0, _moment.default)(d).format((0, _object.get)(this, 'intl').t('date.dashDayFirst')));\n        // TODO change permissions when new permission is implemented\n        const canSeePayRate = this.newFeatureFlags.includesFeatureFlags('canManagePayroll');\n\n        // Create a 2d array that represents a spreadsheet\n        const headings = [(0, _object.get)(this, 'intl').t('common.Name')];\n        if (canSeePayRate) headings.push((0, _object.get)(this, 'intl').t('entity.builda-price.operations.outgoing.payroll.Pay rate'));\n        headings.push((0, _object.get)(this, 'intl').t('entity.builda-price.operations.outgoing.payroll.Total hours'));\n        if (canSeePayRate) headings.push((0, _object.get)(this, 'intl').t('entity.builda-price.operations.outgoing.payroll.Total pay'));\n        headings.push((0, _object.get)(this, 'intl').t('common.project'), (0, _object.get)(this, 'intl').t('common.task'), ...days);\n        const table = [\n        // Report metadata\n        [(0, _object.get)(this, 'intl').t('entity.builda-price.operations.outgoing.payroll.Payroll report')], [`${(0, _object.get)(this, 'intl').t('entity.builda-price.operations.outgoing.payroll.Report for')}:`, entityName], [`${(0, _object.get)(this, 'intl').t('entity.builda-price.operations.outgoing.payroll.Generated by')}:`, userName], [`${(0, _object.get)(this, 'intl').t('common.From')}:`, startDate, `${(0, _object.get)(this, 'intl').t('common.to')}:`, endDate], ['', ''],\n        // Table Headings\n        headings,\n        // Table data\n        ...(0, _object.get)(this, 'report').map(row => {\n          const rowArray = [(0, _object.get)(row, 'worker.fullName')];\n          if (canSeePayRate) rowArray.push((0, _object.get)(row, 'worker.payRate'));\n          rowArray.push((0, _object.get)(row, 'totalHours'));\n          if (canSeePayRate) rowArray.push((0, _object.get)(row, 'totalPay'));\n          rowArray.push((0, _object.get)(row, 'project.name'), (0, _object.get)(row, 'task.name'), ...(0, _object.get)(row, 'dayTotals').mapBy('totalHours'));\n          return rowArray;\n        })];\n        if ((0, _object.get)(this, 'payRateClashNote')) table.splice(4, 0, [(0, _object.get)(this, 'payRateClashNote')]);\n        if (!(0, _object.get)(this, 'skipDayLocking')) {\n          await this.acceptAndLockDays();\n        }\n        if ((0, _object.get)(this, 'unacceptedStatusesMessage')) (0, _object.get)(this, 'model.refresh')();\n        const fileName = `payroll-${startDate}-to-${endDate}.csv`;\n        (0, _csvBuilder.downloadCSV)(table, fileName);\n      },\n      async exportAsCrystalCSV(skipValidation) {\n        if (!skipValidation && (0, _object.get)(this, 'unacceptedStatusesMessage')) {\n          return (0, _object.set)(this, 'confirmExportActionName', 'exportAsCrystalCSV');\n        } else {\n          (0, _object.set)(this, 'confirmExportActionName', null);\n        }\n        const canUseCrystalPayroll = this.newFeatureFlags.includesFeatureFlags('entityCanUseCrystalPayroll');\n        const canSeePayRate = this.newFeatureFlags.includesFeatureFlags('canManagePayroll');\n        if (!canSeePayRate || !canUseCrystalPayroll) throw new Error('You do not have the correct permissions to export payroll information');\n\n        /* eslint-disable max-len */\n        if (!confirm((0, _object.get)(this, 'intl').t('entity.builda-price.operations.outgoing.payroll.crystalPayrollExpectWorkerNamesToMatchExactlyAsIsInTheirSystemWouldYouLikeToContinue'))) return; // eslint-disable-line no-alert\n\n        const startDate = (0, _moment.default)((0, _object.get)(this, 'startDate')).format((0, _object.get)(this, 'intl').t('date.dashDayFirst'));\n        const endDate = (0, _moment.default)((0, _object.get)(this, 'endDate')).format((0, _object.get)(this, 'intl').t('date.dashDayFirst'));\n        const workers = (0, _object.get)(this, 'model.workers');\n        const reportDays = (0, _object.get)(this, 'reportDays');\n        const workerQuery = {\n          start: (0, _object.get)(this, 'startDate'),\n          end: (0, _object.get)(this, 'endDate')\n        };\n        const workersWithComputedHours = workers.map(worker => {\n          return {\n            fullName: `${(0, _object.get)(worker, 'firstName')} ${(0, _object.get)(worker, 'lastName')}`,\n            totals: getHoursByDay({\n              worker,\n              query: workerQuery,\n              days: reportDays\n            }),\n            payRate: (0, _object.get)(worker, 'payRate')\n          };\n        });\n        const crystalCSV = (0, _crystalCsvGenerator.generateCrystalCSV)(workersWithComputedHours, reportDays);\n        if (!(0, _object.get)(this, 'skipDayLocking')) {\n          await this.acceptAndLockDays();\n        }\n        if ((0, _object.get)(this, 'unacceptedStatusesMessage')) (0, _object.get)(this, 'model.refresh')();\n        const fileName = `crystal-payroll-${startDate}-to-${endDate}.csv`;\n        (0, _csvBuilder.downloadCSVCrystal)(crystalCSV, fileName);\n      },\n      async exportAsSmartPayrollCSV(skipValidation) {\n        if (!skipValidation && (0, _object.get)(this, 'unacceptedStatusesMessage')) {\n          return (0, _object.set)(this, 'confirmExportActionName', 'exportAsSmartPayrollCSV');\n        } else {\n          (0, _object.set)(this, 'confirmExportActionName', null);\n        }\n        const canUseSmartPayroll = this.newFeatureFlags.includesFeatureFlags('entityCanUseSmartPayroll');\n        const canSeePayRate = this.newFeatureFlags.includesFeatureFlags('canManagePayroll');\n        if (!canSeePayRate || !canUseSmartPayroll) throw new Error('You do not have the correct permissions to export payroll information');\n        const workerQuery = {\n          start: (0, _object.get)(this, 'startDate'),\n          end: (0, _object.get)(this, 'endDate')\n        };\n        const workerReportData = (0, _object.get)(this, 'model.workers').map(worker => ({\n          smartPayrollEmployeeCode: worker.smartPayrollEmployeeCode,\n          smartPayrollEmployeeDepartmentCode: worker.smartPayrollEmployeeDepartmentCode,\n          dayTotals: getHoursByDay({\n            worker,\n            query: workerQuery,\n            days: (0, _object.get)(this, 'reportDays')\n          })\n        })).filter(({\n          dayTotals\n        }) => dayTotals.find(({\n          totalHours\n        }) => totalHours));\n        const workerReportDataWithCodes = workerReportData.filter(({\n          smartPayrollEmployeeCode\n        }) => smartPayrollEmployeeCode);\n        if (workerReportDataWithCodes.length !== workerReportData.length && !confirm((0, _object.get)(this, 'intl').t('entity.builda-price.operations.outgoing.payroll.xOfYWorkersDoNotHaveEmployeeCodesAndWillNotBeExportedDoYouWishToContinue', {\n          x: workerReportData.length - workerReportDataWithCodes.length,\n          y: workerReportData.length\n        })) // eslint-disable-line no-alert\n        ) return;\n        const table = (0, _smartPayrollCsvGenerator.generateSmartPayrollCSV)(workerReportDataWithCodes);\n        if (!(0, _object.get)(this, 'skipDayLocking')) {\n          await this.acceptAndLockDays();\n        }\n        const fileName = `payroll-${(0, _moment.default)((0, _object.get)(this, 'startDate')).format((0, _object.get)(this, 'intl').t('date.dashDayFirst'))}-to-${(0, _moment.default)((0, _object.get)(this, 'endDate')).format((0, _object.get)(this, 'intl').t('date.dashDayFirst'))}.csv`;\n        (0, _csvBuilder.downloadCSV)(table, fileName, {\n          includeBOM: false,\n          quoteValues: false\n        });\n        if ((0, _object.get)(this, 'unacceptedStatusesMessage')) (0, _object.get)(this, 'model.refresh')();\n      },\n      // eslint-disable-next-line complexity\n      async exportForXero(skipValidation) {\n        if (!skipValidation && (0, _object.get)(this, 'unacceptedStatusesMessage')) {\n          return (0, _object.set)(this, 'confirmExportActionName', 'exportForXero');\n        } else {\n          (0, _object.set)(this, 'confirmExportActionName', null);\n        }\n        (0, _object.set)(this, 'isSyncingToXero', true);\n        const xero = (0, _object.get)(this, 'xeroIntegration');\n        const entityId = (0, _object.get)(this, 'sessionData.entity.id');\n        const startDate = (0, _object.get)(this, 'startDate');\n        const endDate = (0, _object.get)(this, 'endDate');\n        const selectedProjectId = (0, _object.get)(this, 'selectedProject.id');\n        const selectedWorkerId = (0, _object.get)(this, 'selectedWorker.id');\n        const workers = (0, _object.get)(this, 'model.workers');\n        try {\n          const query = {\n            startDate,\n            endDate,\n            entityId,\n            projectId: selectedProjectId,\n            workerId: selectedWorkerId\n          };\n          const responseData = await xero.createXeroTimesheets(query);\n          const {\n            message,\n            completed,\n            failures,\n            success\n          } = responseData;\n          if (completed && !failures.length) {\n            return (0, _object.get)(this, 'notifications').success(message);\n          }\n          const failuresByWorker = _lodash.default.groupBy(failures, 'worker');\n          const successByWorker = _lodash.default.groupBy(success, 'worker');\n          const workerIds = [...new Set([...Object.keys(failuresByWorker), ...Object.keys(successByWorker)])];\n          const workerSummaries = workerIds.map(workerId => ({\n            worker: workers.findBy('id', workerId),\n            success: successByWorker[workerId] || [],\n            failures: failuresByWorker[workerId] || []\n          }));\n          if (!(0, _object.get)(this, 'skipDayLocking')) {\n            await this.acceptAndLockDays();\n          }\n          if ((0, _object.get)(this, 'unacceptedStatusesMessage')) (0, _object.get)(this, 'model.refresh')();\n          if (completed) (0, _object.get)(this, 'notifications').success((0, _object.get)(this, 'intl').t('entity.builda-price.operations.outgoing.payroll.Timesheets synced with Xero'));else (0, _object.get)(this, 'notifications').error((0, _object.get)(this, 'intl').t('entity.builda-price.operations.outgoing.payroll.Timesheets were not synced with Xero'));\n          (0, _object.set)(this, 'xeroTimesheetsResponseData', {\n            ...responseData,\n            workerSummaries\n          });\n        } catch (error) {\n          if (error.status === 429) return; // error is handled\n          this.send('error', error);\n        } finally {\n          (0, _object.set)(this, 'isSyncingToXero', false);\n        }\n      },\n      async exportForQuickbooks(skipValidation) {\n        if (!skipValidation && (0, _object.get)(this, 'unacceptedStatusesMessage')) {\n          return (0, _object.set)(this, 'confirmExportActionName', 'exportForQuickbooks');\n        } else {\n          (0, _object.set)(this, 'confirmExportActionName', null);\n        }\n        (0, _object.set)(this, 'isSyncingToQuickbooks', true);\n        const quickbooks = (0, _object.get)(this, 'quickbooks');\n        const entityId = (0, _object.get)(this, 'sessionData.entity.id');\n        const startDate = (0, _object.get)(this, 'startDate');\n        const endDate = (0, _object.get)(this, 'endDate');\n        const selectedProjectId = (0, _object.get)(this, 'selectedProject.id');\n        const selectedWorkerId = (0, _object.get)(this, 'selectedWorker.id');\n        const workers = (0, _object.get)(this, 'model.workers');\n        try {\n          const query = {\n            startDate,\n            endDate,\n            entityId,\n            projectId: selectedProjectId,\n            workerId: selectedWorkerId\n          };\n          const responseData = await quickbooks.createTimesheets(query);\n          const {\n            message,\n            completed,\n            failures,\n            success\n          } = responseData;\n          if (completed && !failures.length) {\n            return (0, _object.get)(this, 'notifications').success(message);\n          }\n          const failuresByWorker = _lodash.default.groupBy(failures, 'worker');\n          const successByWorker = _lodash.default.groupBy(success, 'worker');\n          const workerIds = [...new Set([...Object.keys(failuresByWorker), ...Object.keys(successByWorker)])];\n          const workerSummaries = workerIds.map(workerId => ({\n            worker: workers.findBy('id', workerId),\n            success: successByWorker[workerId] || [],\n            failures: failuresByWorker[workerId] || []\n          }));\n          if (!(0, _object.get)(this, 'skipDayLocking')) {\n            await this.acceptAndLockDays();\n          }\n          if ((0, _object.get)(this, 'unacceptedStatusesMessage')) (0, _object.get)(this, 'model.refresh')();\n          if (completed) (0, _object.get)(this, 'notifications').success('Timesheets synced with QuickBooks');else (0, _object.get)(this, 'notifications').error('Timesheets were not synced with QuickBooks');\n          (0, _object.set)(this, 'quickbooksTimesheetsResponseData', {\n            ...responseData,\n            workerSummaries\n          });\n        } catch (error) {\n          if (error.status === 429) return; // error is handled\n          this.send('error', error);\n        } finally {\n          (0, _object.set)(this, 'isSyncingToQuickbooks', false);\n        }\n      },\n      async exportAsExcel(skipValidation) {\n        if (!skipValidation && (0, _object.get)(this, 'unacceptedStatusesMessage')) {\n          return (0, _object.set)(this, 'confirmExportActionName', 'exportAsExcel');\n        } else {\n          (0, _object.set)(this, 'confirmExportActionName', null);\n        }\n        const report = [];\n        const startDate = (0, _moment.default)((0, _object.get)(this, 'startDate')).format((0, _object.get)(this, 'intl').t('date.dashDayFirst'));\n        const endDate = (0, _moment.default)((0, _object.get)(this, 'endDate')).format((0, _object.get)(this, 'intl').t('date.dashDayFirst'));\n        const entityName = (0, _object.get)(this, 'sessionData.entity.name');\n        const userName = (0, _object.get)(this, 'sessionData.user.email');\n        const days = (0, _object.get)(this, 'reportDays').map(d => (0, _moment.default)(d).format((0, _object.get)(this, 'intl').t('date.dashDayFirst')));\n        const canSeePayRate = this.newFeatureFlags.includesFeatureFlags('canManagePayroll');\n        report.push({\n          lineType: 'title',\n          data: [(0, _object.get)(this, 'intl').t('entity.builda-price.operations.outgoing.payroll.Payroll report')]\n        });\n        report.push({\n          lineType: 'subtitle',\n          data: [`${(0, _object.get)(this, 'intl').t('entity.builda-price.operations.outgoing.payroll.Report for')}:`, entityName]\n        });\n        report.push({\n          lineType: 'subtitle',\n          data: [`${(0, _object.get)(this, 'intl').t('entity.builda-price.operations.outgoing.payroll.Generated by')}:`, userName]\n        });\n        report.push({\n          lineType: 'subtitle',\n          data: [`${(0, _object.get)(this, 'intl').t('common.Date range')}:`, `${(0, _object.get)(this, 'intl').t('common.From')} ${startDate} ${(0, _object.get)(this, 'intl').t('common.to')} ${endDate}`]\n        });\n        report.push({\n          lineType: 'blank',\n          data: null\n        });\n        if ((0, _object.get)(this, 'payRateClashNote')) {\n          report.push({\n            lineType: 'subtitle',\n            data: [`${(0, _object.get)(this, 'intl').t('entity.builda-price.operations.outgoing.payroll.Please note')}:`, (0, _object.get)(this, 'payRateClashNote')]\n          });\n          report.push({\n            lineType: 'blank',\n            data: null\n          });\n        }\n        const payRollData = [`${(0, _object.get)(this, 'intl').t('common.Worker')}`, (0, _object.get)(this, 'intl').t('common.Hours')];\n        if (canSeePayRate) {\n          payRollData.push((0, _object.get)(this, 'intl').t('entity.builda-price.operations.outgoing.payroll.Pay rate'));\n          payRollData.push((0, _object.get)(this, 'intl').t('entity.builda-price.operations.outgoing.payroll.Total pay'));\n        }\n        payRollData.push((0, _object.get)(this, 'intl').t('common.Project'), (0, _object.get)(this, 'intl').t('common.Task'), ...days);\n        report.push({\n          lineType: 'payrollHeading',\n          data: payRollData\n        });\n        (0, _object.get)(this, 'report').forEach(row => {\n          const rowArray = [(0, _object.get)(row, 'worker.fullName'), (0, _object.get)(row, 'totalHours')];\n          if (canSeePayRate) {\n            rowArray.push((0, _object.get)(row, 'worker.payRate'));\n            rowArray.push((0, _object.get)(row, 'totalPay'));\n          }\n          rowArray.push((0, _object.get)(row, 'project.name'), (0, _object.get)(row, 'task.name'), ...(0, _object.get)(row, 'dayTotals').mapBy('totalHours'));\n          if ((0, _object.get)(row, 'project.name') === 'All Projects') {\n            report.push({\n              lineType: 'payrollTotalRow',\n              data: rowArray\n            });\n          } else if ((0, _object.get)(row, 'project.name')) {\n            report.push({\n              lineType: 'payrollJobTotalRow',\n              data: rowArray\n            });\n          } else {\n            report.push({\n              lineType: 'payrollCostCenterRow',\n              data: rowArray\n            });\n          }\n        });\n        if (!(0, _object.get)(this, 'skipDayLocking')) {\n          await this.acceptAndLockDays();\n        }\n        return new Promise((resolve, reject) => {\n          _jquery.default.ajax({\n            url: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/generate-xlsx',\n            method: 'POST',\n            xhr() {\n              // This seems to be the only way to set the response type to blob.\n              // This will allow js to leave the file as a bytestream rather than trying to parse it.\n              const xhr = new XMLHttpRequest();\n              xhr.responseType = 'blob';\n              return xhr;\n            },\n            headers: {\n              Authorization: `Bearer ${(0, _object.get)(this, 'portalApiToken')}`\n            },\n            data: JSON.stringify({\n              data: report,\n              reportType: 'payroll'\n            }),\n            contentType: 'application/json',\n            accept: 'application/vnd.ms-excel'\n          }).then(resolve, reject);\n        }).then(response => {\n          if ((0, _object.get)(this, 'unacceptedStatusesMessage')) (0, _object.get)(this, 'model.refresh')();\n          const fileName = `payroll-${startDate}-to-${endDate}.xlsx`;\n          return (0, _csvBuilder.downloadXlsx)(response, fileName);\n        });\n      },\n      async exportAsKeypay(skipValidation) {\n        if (!skipValidation && (0, _object.get)(this, 'unacceptedStatusesMessage')) {\n          return (0, _object.set)(this, 'confirmExportActionName', 'exportAsKeypay');\n        } else {\n          (0, _object.set)(this, 'confirmExportActionName', null);\n        }\n\n        // https://support.yourpayroll.com.au/hc/en-nz/articles/211012203-Importing-a-Pay-Run\n        // about half way \"Pay run import file\"\n        const startDate = (0, _moment.default)((0, _object.get)(this, 'startDate')).format((0, _object.get)(this, 'intl').t('date.dashDayFirst'));\n        const endDate = (0, _moment.default)((0, _object.get)(this, 'endDate')).format((0, _object.get)(this, 'intl').t('date.dashDayFirst'));\n        const workers = (0, _object.get)(this, 'model.workers');\n        const csv = [];\n        csv.push(['Employee Name',\n        // the name\n        'EmployeeId',\n        // should be on the worker\n        'LocationId',\n        // either leave blank OR add it to the project/task model and group lines by worker and location\n        'PayCategoryId',\n        // leave blank OR save on worker if worker specific. Otherwise it could be saved to the project or task.\n        'Units',\n        // the hours\n        'Rate',\n        // the pay rate\n        'StartDateTime',\n        // start date of the period\n        'EndDateTime' // end date of the period\n        ]);\n\n        // filter workers that are only keypayEmployeeCode and active\n        const filteredWorkers = workers.filter(worker => worker.keypayEmployeeCode && worker.isActive);\n        for (const worker of filteredWorkers) {\n          const {\n            hours,\n            pay\n          } = worker.calculateWorkForProject({\n            start: (0, _object.get)(this, 'startDate'),\n            end: (0, _object.get)(this, 'endDate')\n          });\n          // due to the inaccuracy of this report we average the rate\n          const rate = hours / (pay || Infinity);\n          const startDateTime = (0, _moment.default)((0, _object.get)(this, 'startDate')).format((0, _object.get)(this, 'intl').t('date.slashDayFirst'));\n          const endDateTime = (0, _moment.default)((0, _object.get)(this, 'endDate')).format((0, _object.get)(this, 'intl').t('date.slashDayFirst'));\n          csv.push([worker.fullName, worker.keypayEmployeeCode, '', '', hours, rate, startDateTime, endDateTime]);\n        }\n        if (!(0, _object.get)(this, 'skipDayLocking')) {\n          await this.acceptAndLockDays();\n        }\n        const fileName = `payroll-${startDate}-to-${endDate}.csv`;\n        (0, _csvBuilder.downloadCSV)(csv, fileName);\n        if ((0, _object.get)(this, 'unacceptedStatusesMessage')) (0, _object.get)(this, 'model.refresh')();\n      }\n    },\n    acceptAndLockDays: async function () {\n      const startDate = (0, _object.get)(this, 'startDate');\n      const endDate = (0, _object.get)(this, 'endDate');\n      const selectedWorker = (0, _object.get)(this, 'selectedWorker');\n      const workers = selectedWorker ? [selectedWorker] : (0, _object.get)(this, 'activeWorkers');\n      const workerIds = workers.map(x => x.id);\n      await this.portalApiV2.authPost('/timesheets/accept', {\n        startDate,\n        endDate,\n        workerIds\n      });\n      if (this.newFeatureFlags.includesSomeFeatureFlags('canManageEntity', 'canManageTimesheets', 'canManageNotes')) {\n        await this.portalApiV2.authPost('/timesheets/lock', {\n          startDate,\n          endDate,\n          workerIds\n        });\n      }\n    }\n  });\n  function buildReportRow({\n    worker,\n    query,\n    days,\n    workerStatuses\n  }) {\n    const totals = worker.calculateWorkForProject(query);\n    const project = (0, _object.get)(query, 'project');\n    let projectStatuses = {};\n    if (project && workerStatuses) {\n      projectStatuses = workerStatuses[(0, _object.get)(project, 'id')] || {};\n    }\n    let taskBreadcrumbs = '';\n    if ((0, _object.get)(query, 'task.breadcrumbs')) {\n      taskBreadcrumbs += (0, _object.get)(query, 'task.breadcrumbs') + ' > ' + (0, _object.get)(query, 'task.name');\n    }\n    return {\n      project,\n      task: (0, _object.get)(query, 'task'),\n      taskBreadcrumbs,\n      totalHours: (0, _object.get)(totals, 'hours'),\n      totalPay: (0, _object.get)(totals, 'pay'),\n      dayTotals: getHoursByDay({\n        worker,\n        query,\n        days,\n        projectStatuses\n      })\n    };\n  }\n  function getHoursByDay({\n    worker,\n    query,\n    days,\n    projectStatuses = {}\n  }) {\n    return days.map(day => {\n      query.start = day;\n      query.end = day;\n      const dayTotals = worker.calculateWorkForProject(query);\n      const dayInfo = {\n        totalHours: (0, _object.get)(dayTotals, 'hours')\n      };\n      const projectStatus = projectStatuses[day];\n      if (projectStatus) dayInfo.status = projectStatus;\n      return dayInfo;\n    });\n  }\n});","define(\"portal/controllers/entity/builda-price/operations/outgoing/purchase-orders/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"moment\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\", \"portal/config/environment\", \"ember-changeset\", \"@ember/runloop\", \"ember-concurrency\", \"portal/utils/search-filter\"], function (_exports, _asyncArrowRuntime, _controller, _moment, _tracking, _object, _service, _environment, _emberChangeset, _runloop, _emberConcurrency, _searchFilter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"moment\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"portal/config/environment\",0,\"ember-changeset\",0,\"@ember/runloop\",0,\"ember-concurrency\",0,\"portal/utils/search-filter\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor3, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor6, this);\n      _initializerDefineProperty(this, \"store\", _descriptor7, this);\n      _initializerDefineProperty(this, \"status\", _descriptor8, this);\n      _initializerDefineProperty(this, \"purchaseOrderChangeSet\", _descriptor9, this);\n      _initializerDefineProperty(this, \"purchaseOrderForm\", _descriptor0, this);\n      _initializerDefineProperty(this, \"addressList\", _descriptor1, this);\n      _initializerDefineProperty(this, \"startDate\", _descriptor10, this);\n      _initializerDefineProperty(this, \"endDate\", _descriptor11, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor12, this);\n      _initializerDefineProperty(this, \"searchTerm\", _descriptor13, this);\n      _initializerDefineProperty(this, \"sortBy\", _descriptor14, this);\n      _initializerDefineProperty(this, \"sortDirection\", _descriptor15, this);\n      _defineProperty(this, \"queryParams\", ['searchTerm', 'startDate', 'endDate', 'status']);\n      _defineProperty(this, \"suppliers\", []);\n      _defineProperty(this, \"suppliersPage\", void 0);\n      _defineProperty(this, \"suppliersSearchTerm\", void 0);\n      _defineProperty(this, \"onChangeSearchTerm\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSearchTerm, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onChangeSearchTerm\", null));\n      _defineProperty(this, \"loadSuppliers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (searchTerm) {\n          try {\n            if (searchTerm !== this.suppliersSearchTerm) {\n              this.suppliersPage = undefined;\n              this.suppliers = [];\n              this.suppliersSearchTerm = searchTerm;\n            }\n            const supplierFilter = {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }]\n            };\n            if (searchTerm?.length) supplierFilter.and.push((0, _searchFilter.default)(['name'], searchTerm));\n            const nextPageNumber = (this.suppliersPage?.currentPage || 0) + 1;\n            const nextPage = yield this.store.query('contact', {\n              filter: supplierFilter,\n              sort: 'name',\n              page: {\n                size: 10,\n                number: nextPageNumber\n              }\n            });\n            this.suppliersPage = nextPage.meta;\n            this.suppliers = [...this.suppliers, ...nextPage.toArray()];\n            return this.suppliers;\n          } catch (e) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongLoadingMoreSuppliers'),\n              e\n            });\n          }\n        }\n      }), {\n        restartable: true\n      }, \"loadSuppliers\", null));\n      _defineProperty(this, \"onSearchAddress\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (searchTerm) {\n          this.addressList = this.model.projects.last.value.filter(u => {\n            if (u.address) {\n              const matchString = `${u.address}`.replace(/\\s/g, '').toLowerCase();\n              return matchString.includes(searchTerm.replace(/\\s/g, '').toLowerCase());\n            }\n          });\n        }\n      }), null, \"onSearchAddress\", null));\n      _defineProperty(this, \"onSavePurchaseOrder\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeSet) {\n          yield changeSet.validate();\n          if (!changeSet.isValid) return;\n          const purchaseOrder = yield changeSet.save();\n          this.onClose();\n          this.router.transitionTo(`entity.builda-price.operations.outgoing.purchase-orders.purchase-order`, purchaseOrder.id);\n        }\n      }), null, \"onSavePurchaseOrder\", null));\n      _defineProperty(this, \"_validatePurchaseOrderNumber\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (purchaseOrderNumber) {\n          yield (0, _emberConcurrency.timeout)(1000); // delay the api call for validation\n\n          const response = yield this.buildaPrice.validatePurchaseOrderNumber({\n            entity: this.sessionData.entity.id,\n            purchaseOrderNumber\n          });\n          return response;\n        }\n      }), {\n        restartable: true\n      }, \"_validatePurchaseOrderNumber\", null));\n      _defineProperty(this, \"purchaseOrderValidateMap\", {\n        purchaseOrderNumber: this.purchaseOrderNumberValidator,\n        supplier: this.supplierNameValidator\n      });\n      _defineProperty(this, \"purchaseOrderValidator\", async ({\n        key,\n        newValue,\n        oldValue\n      }) => {\n        const value = newValue || oldValue;\n        switch (key) {\n          case 'purchaseOrderNumber':\n            return await this.purchaseOrderNumberValidator(value, newValue);\n          case 'supplier':\n            return this.supplierNameValidator(value);\n          default:\n            return true;\n        }\n      });\n    }\n    get isLoading() {\n      return this.model.purchaseOrders.lastSuccessful === null && this.model.purchaseOrders.isRunning || this.model.projects.lastSuccessful === null && this.model.projects.isRunning || this.model.purchaseOrderOptions.lastSuccessful === null && this.model.purchaseOrderOptions.isRunning;\n    }\n    get jsStartDate() {\n      const start = this.startDate || (0, _moment.default)().startOf('isoWeek').subtract(1, 'months');\n      return (0, _moment.default)(start).toDate();\n    }\n    set jsStartDate(value) {\n      this.startDate = (0, _moment.default)(value).format('YYYY-MM-DD');\n      return value;\n    }\n    get jsEndDate() {\n      const end = this.endDate || (0, _moment.default)().endOf('isoWeek');\n      return (0, _moment.default)(end).toDate();\n    }\n    set jsEndDate(value) {\n      this.endDate = (0, _moment.default)(value).format('YYYY-MM-DD');\n      return value;\n    }\n    updateSearchTerm(value) {\n      this.searchTerm = value;\n    }\n    sortColumn(columnName) {\n      if (this.sortBy !== columnName) {\n        this.sortBy = columnName;\n        this.sortDirection = 'asc';\n        return;\n      }\n      this.sortBy = columnName;\n      if (this.sortDirection === 'asc') {\n        this.sortDirection = 'desc';\n      } else if (this.sortDirection === 'desc') {\n        this.sortDirection = undefined;\n      } else {\n        this.sortDirection = 'asc';\n      }\n    }\n    setSupplier(supplier) {\n      this.purchaseOrderChangeSet.set('supplier', supplier);\n    }\n    get filteredPurchaseOrders() {\n      if (this.sortDirection === 'desc') return this.model.purchaseOrders.last.value.sortBy(this.sortBy).reverse();\n      if (this.sortDirection === 'asc') return this.model.purchaseOrders.last.value.sortBy(this.sortBy);\n      return this.model.purchaseOrders.last.value;\n    }\n    get purchaseOrderNumberIconName() {\n      return this.sortBy === 'purchaseOrderNumber' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined;\n    }\n    get supplierIconName() {\n      return this.sortBy === 'supplier.name' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined;\n    }\n    get dateOrderPlacedIconName() {\n      return this.sortBy === 'dateOrderPlaced' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined;\n    }\n    get dateCreatedIconName() {\n      return this.sortBy === 'dateCreated' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined;\n    }\n    get statusIconName() {\n      return this.sortBy === 'status' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined;\n    }\n    get deliveryStatusIconName() {\n      return this.sortBy === 'deliveryStatus' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined;\n    }\n    setDateRange(dates) {\n      const {\n        startDate,\n        endDate\n      } = dates;\n      if (startDate) this.jsStartDate = startDate;\n      if (endDate) this.jsEndDate = endDate;\n    }\n    get nextPurchaseOrderNumber() {\n      const purchaseOrderOptions = this.model.purchaseOrderOptions.last.value;\n      const purchaseOrderNumber = purchaseOrderOptions.prefix ? `${purchaseOrderOptions.prefix}${purchaseOrderOptions.nextPurchaseOrderNumber}` : purchaseOrderOptions.nextPurchaseOrderNumber;\n      return purchaseOrderNumber;\n    }\n    openNewPOForm() {\n      const purchaseOrderNumber = this.nextPurchaseOrderNumber;\n      const purchaseOrder = this.store.createRecord('purchase-order', {\n        entity: this.sessionData.entity,\n        purchaseOrderNumber\n      });\n      this.purchaseOrderChangeSet = (0, _emberChangeset.Changeset)(purchaseOrder, this.purchaseOrderValidator, this.purchaseOrderValidateMap);\n    }\n    setAddress(value) {\n      this.purchaseOrderChangeSet.set('address', value.address);\n    }\n    onClose() {\n      this.purchaseOrderChangeSet = null;\n      this.suppliersCurrentPage = 1;\n    }\n    async purchaseOrderNumberValidator(value, newValue) {\n      try {\n        const {\n          isUnique,\n          nextPoNumber\n        } = await this._validatePurchaseOrderNumber.perform(value);\n        if (!isUnique) return `${this.intl.t('validation.purchaseOrderNumberAlreadyExists')} ${nextPoNumber ? nextPoNumber : this.intl.t('shared.purchase-order.a different one')}`;\n        return newValue && newValue.length > 0 && isUnique || this.intl.t('validation.Please provide a purchase order number');\n      } catch (e) {\n        if (!(0, _emberConcurrency.didCancel)(e)) {\n          throw Error('Error validating purchase order number');\n        }\n      }\n      return;\n    }\n    supplierNameValidator(supplierValue) {\n      return supplierValue.name && supplierValue.name.length > 0 || this.intl.t('validation.Please select a supplier');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"status\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'ALL';\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"purchaseOrderChangeSet\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"purchaseOrderForm\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"addressList\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"startDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return (0, _moment.default)().startOf('isoWeek').subtract(1, 'months').toDate();\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"endDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return (0, _moment.default)().endOf('isoWeek').toDate();\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.searchTerm;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"searchTerm\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"sortBy\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'dateCreated';\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, \"sortDirection\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'desc';\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"sortColumn\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"sortColumn\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setSupplier\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setSupplier\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setDateRange\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setDateRange\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"openNewPOForm\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"openNewPOForm\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setAddress\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setAddress\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onClose\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onClose\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/operations/outgoing/purchase-orders/purchase-order\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/service\", \"lodash\", \"portal/models/attachment\", \"portal/utils/csv-builder\", \"moment\", \"@ember/runloop\"], function (_exports, _asyncArrowRuntime, _controller, _object, _tracking, _service, _lodash, _attachment, _csvBuilder, _moment, _runloop) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/object\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"lodash\",0,\"portal/models/attachment\",0,\"portal/utils/csv-builder\",0,\"moment\",0,\"@ember/runloop\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor4, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor5, this);\n      _initializerDefineProperty(this, \"numberFormat\", _descriptor6, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor7, this);\n      _initializerDefineProperty(this, \"store\", _descriptor8, this);\n      _initializerDefineProperty(this, \"sortDirection\", _descriptor9, this);\n      _initializerDefineProperty(this, \"sortBy\", _descriptor0, this);\n      _initializerDefineProperty(this, \"selectedItemIndexes\", _descriptor1, this);\n      _initializerDefineProperty(this, \"isAddingProducts\", _descriptor10, this);\n      _initializerDefineProperty(this, \"isDeletingProducts\", _descriptor11, this);\n      _initializerDefineProperty(this, \"isDeletingPurchaseOrder\", _descriptor12, this);\n      _initializerDefineProperty(this, \"isCreatingProducts\", _descriptor13, this);\n      _initializerDefineProperty(this, \"itemCreatorSelectedProject\", _descriptor14, this);\n      _initializerDefineProperty(this, \"itemCreatorSelectedTasks\", _descriptor15, this);\n      _initializerDefineProperty(this, \"itemSelectorSelectedProject\", _descriptor16, this);\n      _initializerDefineProperty(this, \"isApproveAndSendEmail\", _descriptor17, this);\n      _initializerDefineProperty(this, \"isSendEmail\", _descriptor18, this);\n      _initializerDefineProperty(this, \"includeAllAttachmentsInSubmissionEmail\", _descriptor19, this);\n      _initializerDefineProperty(this, \"deletedPurchaseOrderItems\", _descriptor20, this);\n      _initializerDefineProperty(this, \"addressList\", _descriptor21, this);\n      _defineProperty(this, \"acceptedMimeTypes\", [..._attachment.shortcutsToMime.image, ..._attachment.shortcutsToMime.text, ..._attachment.shortcutsToMime.document, ..._attachment.shortcutsToMime.archive]);\n      _initializerDefineProperty(this, \"_purchaseOrderItems\", _descriptor22, this);\n      _defineProperty(this, \"crumbStack\", [{\n        route: 'entity.builda-price.operations.outgoing.purchase-orders.index',\n        pageTitle: this.intl.t('common.Purchase orders')\n      }, {\n        pageTitle: this.intl.t('common.Purchase order')\n      }]);\n      _defineProperty(this, \"onSearchAddress\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (searchTerm) {\n          this.addressList = this.model.projects.last.value.filter(p => {\n            if (p.address) {\n              const matchString = `${p.address}`.replace(/\\s/g, '').toLowerCase();\n              return matchString.includes(searchTerm.replace(/\\s/g, '').toLowerCase());\n            }\n          });\n        }\n      }), null, \"onSearchAddress\", null));\n      _defineProperty(this, \"onSavePurchaseOrder\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.purchaseOrderChangeSet.validate('purchaseOrderNumber');\n            if (!this.purchaseOrderChangeSet.isValid) return;\n            this.purchaseOrderChangeSet.taxFreightCharges = (1 + this.gst) * (this.purchaseOrderChangeSet.freightCharges ?? 0); // set gst tax value\n\n            yield this.purchaseOrderChangeSet.save();\n            yield Promise.all([...this.purchaseOrderItems.map(i => {\n              if (i.isDeleted) return;\n              i.taxTotal = (1 + this.gst) * (i.unitPrice ?? 0) * (i.quantity ?? 0); // set gst taxTotal column value\n\n              i.save();\n            }), ...this.deletedPurchaseOrderItems.map(item => item.save())]);\n            this.deletedPurchaseOrderItems = [];\n            this.notifications.success(this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Successfully saved purchase order'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.somethingWentWrongWhileSavingPurchaseOrder'),\n              error\n            });\n          }\n        }\n      }), null, \"onSavePurchaseOrder\", null));\n      _defineProperty(this, \"onDeletePurchaseOrder\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.model.purchaseOrder.last.value.destroyRecord();\n            this._purchaseOrderItems = null;\n            this.isDeletingPurchaseOrder = false;\n            this.router.transitionTo(`entity.builda-price.operations.outgoing.purchase-orders`);\n            this.notifications.success(this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Successfully deleted purchase order'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.somethingWentWrongWhileDeletingPurchaseOrder'),\n              error\n            });\n          }\n        }\n      }), null, \"onDeletePurchaseOrder\", null));\n      _defineProperty(this, \"onSavePurchaseOrderItems\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (data) {\n          const lastSortIndex = this.purchaseOrderItems.length;\n          const newPurchaseOrderItems = [];\n          data.forEach((row, index) => {\n            const taskProduct = row.rowData[0].taskProduct;\n            const orderQty = row.rowData[7].value;\n            if (orderQty) {\n              newPurchaseOrderItems.push(this.store.createRecord('purchase-order-item', {\n                entity: this.sessionData.entity,\n                task: taskProduct.belongsTo('task').value(),\n                purchaseOrder: this.model.purchaseOrder.last.value,\n                taskProduct: taskProduct,\n                sku: taskProduct.sku,\n                description: taskProduct.description,\n                unitPrice: taskProduct.unitPrice,\n                unit: taskProduct.unit,\n                quantity: orderQty,\n                sortIndex: index + lastSortIndex\n              }));\n            }\n          });\n          this.purchaseOrderItems = [...this.purchaseOrderItems, ...newPurchaseOrderItems];\n          (0, _runloop.next)(() => {\n            this.isAddingProducts = false;\n          });\n        }\n      }), null, \"onSavePurchaseOrderItems\", null));\n      _defineProperty(this, \"deleteProducts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          [...this.selectedItemIndexes].forEach(index => {\n            this.purchaseOrderItems[index].deleteRecord();\n          });\n          this.deletedPurchaseOrderItems = this.purchaseOrderItems.filter(p => p.isDeleted);\n          this.purchaseOrderItems = this.purchaseOrderItems.filter(p => !p.isDeleted);\n          this.selectedItemIndexes = new Set();\n        }\n      }), null, \"deleteProducts\", null));\n      _defineProperty(this, \"updateProductPrices\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          [...this.selectedItemIndexes].forEach(index => {\n            if (this.purchaseOrderItems[index].latestUnitPrice) this.purchaseOrderItems[index].unitPrice = this.purchaseOrderItems[index].latestUnitPrice;\n          });\n          this.selectedItemIndexes = new Set();\n        }\n      }), null, \"updateProductPrices\", null));\n      _defineProperty(this, \"updateDeliveryStatus\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          [...this.selectedItemIndexes].forEach(index => {\n            this.purchaseOrderItems[index].deliveredQuantity = this.purchaseOrderItems[index].quantity;\n          });\n          this.selectedItemIndexes = new Set();\n        }\n      }), null, \"updateDeliveryStatus\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const exportedItemsData = this.exportedData.items.map(item => {\n            return [`${this.purchaseOrder.purchaseOrderNumber}`, `${this.exportedData.status}`, `${this.exportedData.buyer}`, `${this.exportedData.seller}`, `${this.exportedData.orderSubmittedDate}`, `${this.exportedData.orderNote}`, `${this.exportedData.requestedDeliveryDate}`, `${this.exportedData.deliveryNote}`, `${this.exportedData.deliveryAddress}`, `${item.sku}`, `${item.description}`, `${item.unit}`, `${item.quantity}`, `${this.numberFormat.format(item.unitPrice, {\n              style: 'currency',\n              dashZero: true\n            })}`, `${this.numberFormat.format(item.unitPrice * item.quantity, {\n              style: 'currency',\n              dashZero: true\n            })}`];\n          });\n          const table = [[this.intl.t('shared.purchase-order.Purchase order number'), this.intl.t('common.Status'), this.intl.t('common.Buyer'), this.intl.t('common.Seller'), this.intl.t('shared.purchase-order.Order submitted date'), this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Order note'), this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Delivery requested date'), this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Delivery note'), this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Delivery address'), this.intl.t('common.SKU'), this.intl.t('shared.task.Product description'), this.intl.t('common.Unit'), this.intl.t('common.Quantity'), this.intl.t('common.Unit price'), this.intl.t('common.Line total'), this.intl.t('common.Subtotal'), this.intl.t('common.Freight'), this.intl.t('common.Tax'), this.intl.t('common.Total')], ...exportedItemsData, ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '', this.numberFormat.format(this.exportedData.subtotal, {\n            style: 'currency',\n            dashZero: true\n          }), this.numberFormat.format(this.exportedData.freightCharges, {\n            style: 'currency',\n            dashZero: true\n          }), this.numberFormat.format(this.exportedData.taxValue, {\n            style: 'currency',\n            dashZero: true\n          }), this.numberFormat.format(this.exportedData.totalWithTax, {\n            style: 'currency',\n            dashZero: true\n          })]];\n          (0, _csvBuilder.downloadCSV)(table, this.filename);\n        }\n      }), null, \"downloadAsCsv\", null));\n      _defineProperty(this, \"downloadAsExcel\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const report = [];\n          report.push({\n            lineType: 'subtitle',\n            data: [this.intl.t('shared.purchase-order.Purchase order number'), this.purchaseOrder.purchaseOrderNumber]\n          });\n          report.push({\n            lineType: 'subtitle',\n            data: [this.intl.t('common.Status'), this.exportedData.status]\n          });\n          report.push({\n            lineType: 'subtitle',\n            data: [this.intl.t('shared.purchase-order.Order submitted date'), this.exportedData.orderSubmittedDate]\n          });\n          report.push({\n            lineType: 'subtitle',\n            data: [this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Delivery requested date'), this.exportedData.requestedDeliveryDate]\n          });\n          report.push({\n            lineType: 'subtitle',\n            data: [this.intl.t('common.Buyer'), this.exportedData.buyer]\n          });\n          report.push({\n            lineType: 'subtitle',\n            data: [this.intl.t('common.Seller'), this.exportedData.seller]\n          });\n          report.push({\n            lineType: 'subtitle',\n            data: [this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Delivery address'), this.purchaseOrder.address]\n          });\n          report.push({\n            lineType: 'subtitle',\n            data: [this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Delivery note'), this.exportedData.deliveryNote]\n          });\n          report.push({\n            lineType: 'subtitle',\n            data: [this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Order note'), this.exportedData.orderNote]\n          });\n          report.push({\n            lineType: 'blank',\n            data: null\n          });\n          report.push({\n            lineType: 'purchaseOrderHeading',\n            data: [this.intl.t('common.SKU'), this.intl.t('shared.task.Product description'), this.intl.t('common.Unit'), this.intl.t('common.Quantity'), this.intl.t('common.Unit price'), this.intl.t('common.Total')]\n          });\n          this.exportedData.items.map(item => {\n            report.push({\n              lineType: 'purchaseOrderItemRow',\n              data: [item.sku, item.description, item.unit, item.quantity, Number(item.unitPrice), item.unitPrice * item.quantity]\n            });\n          });\n          report.push({\n            lineType: 'blank',\n            data: null\n          });\n          report.push({\n            lineType: 'purchaseOrderItemTotalRow',\n            data: ['', '', '', '', this.intl.t('common.Subtotal'), this.exportedData.subtotal]\n          });\n          report.push({\n            lineType: 'purchaseOrderItemTotalRow',\n            data: ['', '', '', '', this.intl.t('common.Freight'), this.exportedData.freightCharges]\n          });\n          report.push({\n            lineType: 'purchaseOrderTaxRow',\n            data: ['', '', '', '', this.intl.t('common.Tax'), this.exportedData.taxValue]\n          });\n          report.push({\n            lineType: 'purchaseOrderItemTotalRow',\n            data: ['', '', '', '', this.intl.t('common.Total'), this.exportedData.totalWithTax]\n          });\n          report.push({\n            lineType: 'blank',\n            data: null\n          });\n          report.push({\n            lineType: 'blank',\n            data: null\n          });\n          report.push({\n            lineType: 'purchaseOrderFooterRow',\n            data: [this.model.purchaseOrderOption.last.value.footerNotes]\n          });\n          yield this.buildaPrice.downloadExcel(this.filename, {\n            data: report,\n            reportType: 'purchaseOrder'\n          });\n        }\n      }), null, \"downloadAsExcel\", null));\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.buildaPrice.downloadPurchaseOrderPDF(this.filename, {\n              entity: this.sessionData.entity.id,\n              purchaseOrder: this.model.purchaseOrder.last.value.id\n            });\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongWhileDownloadingThePDF'),\n              error\n            });\n          }\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"approveAndSend\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.onSavePurchaseOrder.perform();\n            yield this.buildaPrice.sendPurchaseOrder({\n              entity: this.sessionData.entity.id,\n              purchaseOrder: this.model.purchaseOrder.last.value.id,\n              includeAllAttachments: this.includeAllAttachmentsInSubmissionEmail\n            });\n\n            // change status and set order submitted date\n            this.purchaseOrderChangeSet.status = 'SENT';\n            this.purchaseOrderChangeSet.dateOrderPlaced = new Date();\n            yield this.purchaseOrderChangeSet.save();\n            this.notifications.success(this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.successfullyApprovedAndSubmittedToSupplier'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.somethingWentWrongWhileApprovingAndSending'),\n              error\n            });\n          } finally {\n            this.isApproveAndSendEmail = false;\n          }\n        }\n      }), null, \"approveAndSend\", null));\n      _defineProperty(this, \"sendEmail\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.onSavePurchaseOrder.perform();\n            yield this.buildaPrice.sendPurchaseOrder({\n              entity: this.sessionData.entity.id,\n              purchaseOrder: this.model.purchaseOrder.last.value.id,\n              includeAllAttachments: this.includeAllAttachmentsInSubmissionEmail\n            });\n\n            // change status and set order submitted date\n            this.purchaseOrderChangeSet.status = 'SENT';\n            this.purchaseOrderChangeSet.dateOrderPlaced = new Date();\n            yield this.purchaseOrderChangeSet.save();\n            this.notifications.success(this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Successfully sent to supplier'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Something went wrong while sending'),\n              error\n            });\n          } finally {\n            this.isSendEmail = false;\n          }\n        }\n      }), null, \"sendEmail\", null));\n      _defineProperty(this, \"changeStatus\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (status) {\n          try {\n            this.purchaseOrderChangeSet.status = status;\n            if (status === 'SENT') {\n              this.purchaseOrderChangeSet.dateOrderPlaced = new Date();\n            }\n            yield new Promise(resolve => setTimeout(resolve, 1000));\n            yield this.onSavePurchaseOrder.perform();\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.Something went wrong changing status'),\n              error\n            });\n          }\n        }\n      }), null, \"changeStatus\", null));\n      _defineProperty(this, \"openApproveAndSendModal\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          this.isApproveAndSendEmail = true;\n        }\n      }), null, \"openApproveAndSendModal\", null));\n      _defineProperty(this, \"openSendModal\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          this.isSendEmail = true;\n        }\n      }), null, \"openSendModal\", null));\n    }\n    get canManagePurchaseOrders() {\n      return this.model.purchaseOrderPermissions.last.value?.canManagePurchaseOrders;\n    }\n    get canApprovePurchaseOrders() {\n      return this.model.purchaseOrderPermissions.last.value?.canApprovePurchaseOrders;\n    }\n    get canUseFileStorage() {\n      return this.model.purchaseOrderPermissions.last.value?.canUseFileStorage;\n    }\n    get canManageFileStorage() {\n      return this.model.purchaseOrderPermissions.last.value?.canUseFileStorage;\n    }\n    get poActions() {\n      const actions = {};\n      actions.secondaryActions = [];\n      if (this.status === 'DRAFT') {\n        if (this.canManagePurchaseOrders && this.purchaseOrderItems.length) actions.primaryAction = {\n          name: this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Submit for approval'),\n          action: this.changeStatus,\n          targetStatus: 'AWAITING_APPROVAL'\n        };\n        if (this.canApprovePurchaseOrders && this.purchaseOrderItems.length) {\n          actions.secondaryActions.push({\n            name: this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.approveAndSubmit'),\n            action: this.openApproveAndSendModal\n          }, {\n            name: this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Approve only'),\n            action: this.changeStatus,\n            targetStatus: 'APPROVED'\n          });\n        }\n      } else if (this.status === 'AWAITING_APPROVAL') {\n        if (this.canApprovePurchaseOrders && this.purchaseOrderItems.length) {\n          actions.primaryAction = {\n            name: this.intl.t('common.Approve'),\n            action: this.changeStatus,\n            targetStatus: 'APPROVED'\n          };\n          actions.secondaryActions.push({\n            name: this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.approveSend'),\n            action: this.openApproveAndSendModal\n          });\n        }\n      } else if (this.status === 'APPROVED') {\n        if (this.canManagePurchaseOrders && this.purchaseOrderItems.length) {\n          actions.primaryAction = {\n            name: this.intl.t('common.Send'),\n            action: this.openSendModal\n          };\n          actions.secondaryActions.push({\n            name: this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Mark as sent'),\n            action: this.changeStatus,\n            targetStatus: 'SENT'\n          });\n        }\n      } else if (this.status === 'SENT') {\n        if (this.canManagePurchaseOrders && this.purchaseOrderItems.length) {\n          actions.primaryAction = {\n            name: this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Resend'),\n            action: this.openSendModal\n          };\n        }\n      }\n      return actions;\n    }\n    get purchaseOrder() {\n      return this.model.purchaseOrder.last.value;\n    }\n    get purchaseOrderChangeSet() {\n      return this.model.purchaseOrderChangeSet.last.value;\n    }\n    get purchaseOrderItems() {\n      if (this._purchaseOrderItems) return this._purchaseOrderItems;\n      return this.model.purchaseOrderItems.last.value || [];\n    }\n    set purchaseOrderItems(value) {\n      this._purchaseOrderItems = value;\n    }\n    get isActionsRunning() {\n      return this.poActions.secondaryActions.some(action => action.action.isRunning) || this.poActions.primaryAction.action.isRunning;\n    }\n    get status() {\n      return this.model.purchaseOrder.last.value.status;\n    }\n    get isLoading() {\n      return this.model.purchaseOrder.isRunning || this.model.purchaseOrderItems.isRunning || this.model.tasks.isRunning || this.model.projects.isRunning || this.model.purchaseOrderChangeSet.isRunning || this.model.purchaseOrderPermissions.isRunning;\n    }\n    get attachmentsCount() {\n      return this.model.purchaseOrder.last.value.attachments.length;\n    }\n    setAddress(value) {\n      this.purchaseOrderChangeSet.set('address', value.address);\n    }\n    get showUpdatePriceButton() {\n      return this.purchaseOrderItems.some(item => {\n        if (item.latestUnitPrice) return item.unitPrice !== item.latestUnitPrice;\n      });\n    }\n    sortColumn(_row, col) {\n      this.sortBy = col.value;\n      if (this.sortBy !== col.value) {\n        this.sortDirection = 'asc';\n      } else {\n        if (this.sortDirection === 'asc') {\n          this.sortDirection = 'desc';\n        } else if (this.sortDirection === 'desc') {\n          this.sortDirection = undefined;\n        } else {\n          this.sortDirection = 'asc';\n        }\n      }\n      let orderBy;\n      if (!this.sortDirection) {\n        orderBy = 'sortIndex';\n      } else {\n        switch (col.value) {\n          case 'Product':\n            orderBy = 'description';\n            break;\n          case 'Total Qty':\n            orderBy = 'taskProductQuantity';\n            break;\n          case 'SKU':\n            orderBy = 'sku';\n            break;\n          case 'Unit':\n            orderBy = 'unit';\n            break;\n          case 'Unit price':\n            orderBy = 'unitPrice';\n            break;\n          case 'Order Qty':\n            orderBy = 'quantity';\n            break;\n          case 'Delivered Qty':\n            orderBy = 'deliveredQuantity';\n            break;\n          case 'Remaining Qty':\n            orderBy = 'remainingQuantity';\n            break;\n          case 'Path':\n            orderBy = 'breadcrumbs';\n            break;\n          default:\n            break;\n        }\n      }\n      this.purchaseOrderItems = _lodash.default.orderBy(this.purchaseOrderItems, orderBy, this.sortDirection);\n    }\n    get totalPriceFooter() {\n      if (!this.purchaseOrderItems.length) return null;\n      const totalPrice = this.purchaseOrderItems.filter(i => !i.isDeleted).reduce((a, b) => a += b.unitPrice * b.quantity, 0);\n      return this.numberFormat.format(totalPrice, {\n        style: 'currency',\n        dashZero: true\n      });\n    }\n    get gst() {\n      return this.model.purchaseOrder.last.value.belongsTo('entity').value()?.gst;\n    }\n    get supplierContactDetailsExists() {\n      const supplier = this.model.purchaseOrder.last.value.belongsTo('supplier').value();\n      return Boolean(supplier?.contactEmail?.length);\n    }\n    onChangeUnitPrice(_row, col, e) {\n      const purchaseOrderItems = this.purchaseOrderItems;\n      purchaseOrderItems[col.extraData.index].unitPrice = Number(e.target.value.replace(/[^0-9.-]+/g, ''));\n      this.purchaseOrderItems = purchaseOrderItems;\n    }\n    onChangeOrderQty(_row, col, e) {\n      const purchaseOrderItems = this.purchaseOrderItems;\n      const remainingQty = this.purchaseOrderItems[col.extraData.index].remainingQuantity;\n      const remainingQuantity = remainingQty + purchaseOrderItems[col.extraData.index].quantity - Number(e.target.value);\n      if (e.target.value.toString().includes('.')) {\n        const toFixNumber = e.target.value.toString().split('.')[1].length;\n        purchaseOrderItems[col.extraData.index].remainingQuantity = remainingQuantity.toFixed(toFixNumber);\n      } else {\n        purchaseOrderItems[col.extraData.index].remainingQuantity = remainingQuantity;\n      }\n      purchaseOrderItems[col.extraData.index].quantity = Number(e.target.value);\n      this.purchaseOrderItems = purchaseOrderItems;\n    }\n    onChangeDeliveredQty(_row, col, e) {\n      const purchaseOrderItems = this.purchaseOrderItems;\n      purchaseOrderItems[col.extraData.index].deliveredQuantity = Number(e.target.value);\n      this.purchaseOrderItems = purchaseOrderItems;\n    }\n    get productTableData() {\n      return this.purchaseOrderItems.filter(i => !i.isDeleted).map((item, index) => {\n        const itemData = [{\n          colClass: 'align-middle',\n          value: item.breadcrumbs\n        }, {\n          colClass: 'align-middle',\n          value: item.description\n        }, {\n          colClass: 'text-left align-middle',\n          value: item.sku\n        }, {\n          colClass: 'text-left align-middle',\n          value: item.unit\n        }, {\n          colClass: 'text-right align-middle',\n          value: item.taskProductQuantity\n        }, {\n          colClass: 'text-right align-middle',\n          textClass: Number(item.remainingQuantity) < 0 ? 'text-danger' : '',\n          value: item.remainingQuantity\n        }, {\n          type: 'NUMBER_INPUT',\n          colClass: 'text-right align-middle',\n          textClass: 'text-right',\n          min: '0',\n          max: '1000000',\n          disabled: !this.isEditable,\n          value: item.quantity || 0,\n          onInputChange: this.onChangeOrderQty,\n          extraData: {\n            index\n          }\n        }, {\n          type: 'TEXT_INPUT',\n          colClass: 'text-right align-middle',\n          textClass: 'text-right',\n          disabled: !this.isEditable,\n          value: this.numberFormat.format(item.unitPrice, {\n            style: 'currency',\n            dashZero: true\n          }),\n          onInputChange: this.onChangeUnitPrice,\n          extraData: {\n            index\n          }\n        }, {\n          colClass: 'text-right align-middle',\n          textClass: 'text-nowrap',\n          value: this.numberFormat.format(item.unitPrice * item.quantity, {\n            style: 'currency',\n            dashZero: true\n          })\n        }];\n        if (this.purchaseOrder.status === 'SENT') {\n          itemData.push({\n            type: 'NUMBER_INPUT',\n            colClass: 'text-right align-middle',\n            textClass: 'text-right',\n            min: '0',\n            max: '1000000',\n            disabled: !this.isEditable,\n            value: item.deliveredQuantity || 0,\n            onInputChange: this.onChangeDeliveredQty,\n            extraData: {\n              index\n            }\n          });\n        }\n        if (this.isEditable) {\n          itemData.unshift({\n            type: 'CHECKBOX_INPUT',\n            colClass: 'text-center align-middle',\n            value: this.selectedItemIndexes.has(index),\n            onInputChange: this.onSelectProduct,\n            extraData: {\n              index\n            }\n          });\n        }\n        return {\n          rowData: itemData\n        };\n      });\n    }\n    get productTableHeader() {\n      const productHeader = [{\n        value: this.intl.t('common.Path'),\n        iconName: this.sortBy === 'Path' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left text-nowrap'\n      }, {\n        value: this.intl.t('common.Product'),\n        iconName: this.sortBy === 'Product' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left text-nowrap'\n      }, {\n        value: this.intl.t('common.SKU'),\n        iconName: this.sortBy === 'SKU' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left text-nowrap'\n      }, {\n        value: this.intl.t('common.Unit'),\n        iconName: this.sortBy === 'Unit' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left text-nowrap'\n      }, {\n        value: this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Total Qty'),\n        iconName: this.sortBy === 'Total Qty' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-right text-nowrap'\n      }, {\n        value: this.intl.t('shared.purchase-order.Remaining Qty'),\n        iconName: this.sortBy === 'Remaining Qty' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-right text-nowrap'\n      }, {\n        value: this.intl.t('shared.purchase-order.Order Qty'),\n        iconName: this.sortBy === 'Order Qty' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-right text-nowrap'\n      }, {\n        value: this.intl.t('common.Unit price'),\n        iconName: this.sortBy === 'Unit price' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-right text-nowrap'\n      }, {\n        colClass: 'text-right text-nowrap',\n        value: this.intl.t('common.Total')\n      }];\n      if (this.purchaseOrder.status === 'SENT') {\n        productHeader.push({\n          iconName: this.sortBy === 'Delivered Qty' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n          onClickCol: this.sortColumn,\n          colClass: 'cursor-pointer text-right text-nowrap',\n          value: this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Delivered Qty')\n        });\n      }\n      if (this.isEditable && this.purchaseOrderItems.length) productHeader.unshift({\n        type: 'CHECKBOX_INPUT',\n        colClass: 'text-center align-middle',\n        value: Boolean(this.selectedItemIndexes.size === this.purchaseOrderItems.length),\n        isPartiallySelected: Boolean(this.selectedItemIndexes.size && this.selectedItemIndexes.size !== this.purchaseOrderItems.length),\n        onInputChange: this.onSelectCurrentPageProducts\n      });\n      return productHeader;\n    }\n    onSelectCurrentPageProducts(_row, col, e) {\n      const selectedItemIndexes = new Set();\n      if (e.target.checked) {\n        this.purchaseOrderItems.forEach((_p, index) => {\n          selectedItemIndexes.add(index);\n        });\n      }\n      this.selectedItemIndexes = selectedItemIndexes;\n    }\n    onSelectProduct(_row, col, e) {\n      if (e.target.checked) {\n        this.selectedItemIndexes.add(col.extraData.index);\n      } else {\n        this.selectedItemIndexes.delete(col.extraData.index);\n      }\n\n      // Set is not supported by tracked\n      // eslint-disable-next-line no-self-assign\n      this.selectedItemIndexes = this.selectedItemIndexes;\n    }\n    get isEditable() {\n      return this.canManagePurchaseOrders;\n    }\n    get canAddProducts() {\n      const canUseProjects = this.newFeatureFlags.includesFeatureFlags('canUseProjects', 'canUseTasks');\n      const canUseProducts = this.model.projects.last.value.some(p => this.newFeatureFlags.includesFeatureFlags(p, 'canUseProducts'));\n      return canUseProjects && canUseProducts;\n    }\n    get canManagePurchaseOrderProjects() {\n      return this.model.projects.last.value.filter(p => this.newFeatureFlags.includesFeatureFlags('canManagePurchaseOrders', p));\n    }\n    async attachmentsUploadComplete({\n      attachments,\n      validationErrors,\n      error\n    }) {\n      try {\n        if (error) throw error;\n        const attachmentResults = await Promise.all(attachments.map(a => a.save({\n          adapterOptions: {\n            meta: {\n              data: a.data\n            }\n          }\n        })));\n        await Promise.all(attachmentResults.map(async attachment => {\n          this.store.createRecord('link-attachment-to-purchase-order', {\n            purchaseOrder: this.model.purchaseOrder.last.value,\n            attachment\n          }).save();\n        }));\n        validationErrors.forEach(error => this.notifications.error(error));\n      } catch (error) {\n        this.notifications.error({\n          message: this.intl.t('shared.notification.somethingWentWrongWhileSavingAttachments'),\n          error: error\n        });\n      }\n    }\n    async deleteAttachment(attachment) {\n      try {\n        const linkAttachmentsToPurchaseOrders = this.model.purchaseOrder.last.value.hasMany('attachments').value();\n        const linkRecord = linkAttachmentsToPurchaseOrders.find(item => item.belongsTo('attachment').id() === attachment.id);\n\n        // first we need to delete the link record\n        await linkRecord.destroyRecord();\n        await attachment.destroyRecord();\n      } catch (error) {\n        this.notifications.error({\n          error,\n          message: this.intl.t('shared.notification.somethingWentWrongWhileDeletingTheAttachment')\n        });\n      }\n    }\n    downloadAttachment(record) {\n      window.open(record.href, '_blank');\n    }\n    get filename() {\n      const currentDate = new Date();\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${this.purchaseOrder.purchaseOrderNumber}_${year}-${month}-${day}`;\n    }\n    toggleProperty(propertyName) {\n      this[propertyName] = !this[propertyName];\n    }\n    get exportedData() {\n      const seller = this.purchaseOrder.belongsTo('supplier').value();\n      let status;\n      switch (this.status) {\n        case 'AWAITING_APPROVAL':\n          {\n            status = 'Awaiting approval';\n            break;\n          }\n        case 'DRAFT':\n          {\n            status = 'Draft';\n            break;\n          }\n        case 'APPROVED':\n          {\n            status = 'Approved';\n            break;\n          }\n        case 'SENT':\n          {\n            status = 'Sent';\n            break;\n          }\n      }\n      const buyerDetails = `${this.sessionData.entity.name}${this.sessionData.entity.address ? `, ${this.sessionData.entity.address}` : ''}`;\n      const sellerDetails = `${seller.name}${seller.address ? `, ${seller.address}` : ''}`;\n      const orderSubmittedDate = this.purchaseOrder.dateOrderPlaced ? (0, _moment.default)(this.purchaseOrder.dateOrderPlaced).format(this.intl.t('date.dashDayFirstWithTime')) : '';\n      const requestedDeliveryDate = this.purchaseOrder.requestedDeliveryDate ? (0, _moment.default)(this.purchaseOrder.requestedDeliveryDate).format(this.intl.t('date.dashDayFirstWithTime')) : '';\n      const _items = this.purchaseOrder.hasMany('items').value()?.toArray() || [];\n      const items = Object.values(groupPurchaseOrderItems(_items));\n      const {\n        subtotal,\n        subtotalWithTax\n      } = (items || []).reduce((acc, item) => {\n        const totalPrice = item.quantity === null || item.unitPrice === null ? 0 : item.quantity * item.unitPrice;\n        acc.subtotal += totalPrice;\n        acc.subtotalWithTax += item.taxTotal;\n        return acc;\n      }, {\n        subtotal: 0,\n        subtotalWithTax: 0\n      });\n      const freightCharges = this.purchaseOrder?.freightCharges || 0;\n      const freightChargesWithTax = this.purchaseOrder.taxFreightCharges || 0;\n      const taxValue = subtotalWithTax + freightChargesWithTax - (subtotal + freightCharges);\n      const orderNote = this.purchaseOrder.orderNote || '';\n      const deliveryNote = this.purchaseOrder.deliveryNote || '';\n      const deliveryAddress = this.purchaseOrder.address || '';\n      const totalWithTax = subtotalWithTax + freightChargesWithTax;\n      return {\n        seller: sellerDetails,\n        buyer: buyerDetails,\n        status,\n        orderSubmittedDate,\n        requestedDeliveryDate,\n        items,\n        freightCharges,\n        freightChargesWithTax,\n        subtotal,\n        subtotalWithTax,\n        taxValue,\n        orderNote,\n        deliveryNote,\n        deliveryAddress,\n        totalWithTax\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"numberFormat\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"sortDirection\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"sortBy\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"selectedItemIndexes\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return new Set();\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"isAddingProducts\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"isDeletingProducts\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"isDeletingPurchaseOrder\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"isCreatingProducts\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"itemCreatorSelectedProject\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, \"itemCreatorSelectedTasks\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, \"itemSelectorSelectedProject\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, \"isApproveAndSendEmail\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, \"isSendEmail\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor19 = _applyDecoratedDescriptor(_class2.prototype, \"includeAllAttachmentsInSubmissionEmail\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor20 = _applyDecoratedDescriptor(_class2.prototype, \"deletedPurchaseOrderItems\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor21 = _applyDecoratedDescriptor(_class2.prototype, \"addressList\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor22 = _applyDecoratedDescriptor(_class2.prototype, \"_purchaseOrderItems\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"setAddress\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setAddress\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"sortColumn\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"sortColumn\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onChangeUnitPrice\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onChangeUnitPrice\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onChangeOrderQty\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onChangeOrderQty\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onChangeDeliveredQty\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onChangeDeliveredQty\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onSelectCurrentPageProducts\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onSelectCurrentPageProducts\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onSelectProduct\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onSelectProduct\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"attachmentsUploadComplete\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"attachmentsUploadComplete\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"deleteAttachment\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"deleteAttachment\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"downloadAttachment\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"downloadAttachment\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"toggleProperty\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"toggleProperty\"), _class2.prototype), _class2);\n  function groupPurchaseOrderItems(items) {\n    return items.reduce((acc, item) => {\n      // Create a unique key using SKU, description, and unit\n      const key = `${item.sku}-${item.description}-${item.unit}`;\n      if (!acc[key]) {\n        acc[key] = {\n          description: item.description,\n          sku: item.sku,\n          unit: item.unit,\n          quantity: item.quantity,\n          unitPrice: item.unitPrice,\n          totalPrice: item.unitPrice * item.quantity,\n          taxTotal: item.taxTotal\n        };\n      } else {\n        acc[key].quantity += item.quantity;\n        acc[key].totalPrice += item.unitPrice * item.quantity;\n        acc[key].taxTotal += item.taxTotal;\n      }\n      return acc;\n    }, {});\n  }\n});","define(\"portal/controllers/entity/builda-price/operations/outgoing/report-builder/csv\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"moment\", \"ember-local-storage\", \"@ember/object/computed\", \"@glimmer/tracking\", \"portal/utils/csv-builder\", \"lodash\", \"@ember/service\", \"portal/utils/report-builder-attachments-bundle\", \"portal/utils/report-builder-mark-as-reported\", \"portal/utils/report-builder\", \"portal/routes/entity/builda-price/operations/outgoing/report-builder\"], function (_exports, _asyncArrowRuntime, _controller, _moment, _emberLocalStorage, _computed, _tracking, _csvBuilder, _lodash, _service, _reportBuilderAttachmentsBundle, _reportBuilderMarkAsReported, _reportBuilder, _reportBuilder2) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"moment\",0,\"ember-local-storage\",0,\"@ember/object/computed\",0,\"@glimmer/tracking\",0,\"portal/utils/csv-builder\",0,\"ember-concurrency\",0,\"lodash\",0,\"@ember/service\",0,\"portal/utils/report-builder-attachments-bundle\",0,\"portal/utils/report-builder-mark-as-reported\",0,\"portal/utils/report-builder\",0,\"portal/routes/entity/builda-price/operations/outgoing/report-builder\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _emberLocalStorage.storageFor)('settings'), _dec2 = (0, _computed.alias)('persistedSettings.reportBuilder:markReportedOnExport'), _dec3 = (0, _computed.alias)('persistedSettings.reportBuilder:includeAttachmentsOnExport'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"session\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"persistedSettings\", _descriptor5, this);\n      _initializerDefineProperty(this, \"markReportedOnExport\", _descriptor6, this);\n      _initializerDefineProperty(this, \"includeAttachmentsOnExport\", _descriptor7, this);\n      _initializerDefineProperty(this, \"downloaded\", _descriptor8, this);\n      _defineProperty(this, \"download\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          if (this.markReportedOnExport) {\n            const ok = (0, _reportBuilderMarkAsReported.confirmMarkAsReported)(this.model);\n            if (!ok) return;\n          }\n\n          // do this first otherwise people might leave the tab once the CSV is downloaded\n          if (this.markReportedOnExport) yield (0, _reportBuilderMarkAsReported.markSelectedItemsAsReported)(this.model, this.notifications);\n          const actions = [];\n          actions.push(this.generateAndDownloadCsv(this.model, this.groupReportByCostCenter));\n          if (this.includeAttachmentsOnExport) actions.push((0, _reportBuilderAttachmentsBundle.default)(this.model));\n          yield Promise.all(actions);\n          this.downloaded = true;\n        }\n      }), null, \"download\", null));\n      _defineProperty(this, \"crumbStack\", [{\n        route: 'entity.builda-price.operations.outgoing.report-builder',\n        pageTitle: this.intl.t('common.Report builder')\n      }, {\n        pageTitle: this.intl.t('entity.builda-price.operations.outgoing.report-builder.csv.CSV export')\n      }]);\n    }\n    generateAndDownloadCsv(reportData) {\n      const report = [];\n      const {\n        projectName,\n        endDate,\n        startDate,\n        useChargeOutRates,\n        workers,\n        materialInvoices,\n        labourInvoices,\n        subcontractorInvoices,\n        computedTotals,\n        manualMaterials,\n        manualTimesheets,\n        manualSubcontractors\n      } = reportData;\n      const materialsMarkup = computedTotals.invoice.markupPercent;\n      const labourMarkup = computedTotals.timesheet.markupPercent;\n      const subcontractorMarkup = computedTotals.subcontractor.markupPercent;\n      const groupedMaterialInvoices = groupInvoiceGroupsByTask(materialInvoices);\n      const groupedSubcontractorInvoices = groupInvoiceGroupsByTask(subcontractorInvoices);\n      const groupedLabourInvoices = groupInvoiceGroupsByTask(labourInvoices);\n      const groupedWorkers = groupWorkerGroupsByTask(workers);\n\n      // get the list of tasks from our groups\n      const tasks = getTasks(groupedMaterialInvoices, groupedSubcontractorInvoices, groupedLabourInvoices, groupedWorkers);\n      // add the header row\n      report.push(...generateHeaderRows(this.intl));\n\n      // add the task rows\n      tasks.forEach(taskId => {\n        const task = this.store.peekRecord('task', taskId);\n        const materialInvoiceGroups = groupedMaterialInvoices[taskId];\n        const subcontractorInvoiceGroups = groupedSubcontractorInvoices[taskId];\n        const labourInvoiceGroups = groupedLabourInvoices[taskId];\n        const workerGroups = groupedWorkers[taskId];\n        if (materialInvoiceGroups) report.push(...generateInvoiceTypeRows(this.intl.t('common.Materials'), task, materialInvoiceGroups, materialsMarkup));\n        if (subcontractorInvoiceGroups) report.push(...generateInvoiceTypeRows(this.intl.t('common.Subcontractors'), task, subcontractorInvoiceGroups, subcontractorMarkup));\n        if (labourInvoiceGroups) report.push(...generateInvoiceTypeRows(this.intl.t('common.Labour'), task, labourInvoiceGroups, labourMarkup));\n        if (workerGroups) report.push(...generateLabourTypeRows(this.intl, this.intl.t('common.Labour'), task, workerGroups, useChargeOutRates, labourMarkup));\n        report.push(...generateTaskTotalRows(this.intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Task total'), task, useChargeOutRates, computedTotals, materialInvoiceGroups, subcontractorInvoiceGroups, labourInvoiceGroups, workerGroups));\n      });\n\n      // add the manual items\n      if (manualMaterials) report.push(...generateManualTypeRows(this.intl.t('common.Materials'), manualMaterials, materialsMarkup));\n      if (manualTimesheets) report.push(...generateManualTypeRows(this.intl.t('common.Labour'), manualTimesheets, labourMarkup));\n      if (manualSubcontractors) report.push(...generateManualTypeRows(this.intl.t('common.Subcontractors'), manualSubcontractors, subcontractorMarkup));\n\n      // add the report totals\n      report.push(...generateTotalRows(this.intl.t('shared.report-builder.Report total'), computedTotals));\n      const fileName = `${projectName}_${(0, _moment.default)(startDate).format(this.intl.t('date.slashDayFirst'))}-${(0, _moment.default)(endDate).format(this.intl.t('date.slashDayFirst'))}.csv`;\n      (0, _csvBuilder.downloadCSV)(report, fileName);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"persistedSettings\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"markReportedOnExport\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"includeAttachmentsOnExport\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"downloaded\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _class2);\n  function generateHeaderRows(intl) {\n    return [[intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Row type'), intl.t('common.Task'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Invoice issuer'), intl.t('common.Invoice number'), intl.t('entity.builda-price.operations.outgoing.report-builder.Invoice reference'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Item description'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Item product code'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Item quantity'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Item unit price'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Item subtotal'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Item margin total'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Item total'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Timesheet worker'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Timesheet date'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Timesheet hours'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Timesheet rate'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Timesheet subtotal'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Timesheet margin total'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Timesheet total'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Manual item description'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Manual item subtotal'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Manual item margin total'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Manual item total'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Task labour hours total'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Task subtotal'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Task margin total'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Task total'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Report labour hours total'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Report subtotal'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Report margin total'), intl.t('shared.report-builder.Report total')]];\n  }\n  function generateInvoiceTypeRows(type, task, invoiceGroups, markupPercent) {\n    const rows = [];\n    invoiceGroups.forEach(({\n      invoice,\n      items\n    }) => {\n      items.forEach(invoiceItem => {\n        const subtotal = invoiceItem.totalPrice;\n        const marginTotal = subtotal * markupPercent;\n        const total = subtotal + marginTotal;\n        rows.push([type, task?.name || 'Not assigned', invoice.issuer, invoice.billNumber, invoice.reference, invoiceItem.description, invoiceItem.productCode, invoiceItem.quantity, invoiceItem.unitPrice, subtotal, marginTotal, total]);\n      });\n    });\n    return rows;\n  }\n  function generateLabourTypeRows(intl, type, task, workerGroups, useChargeOutRates, markupPercent) {\n    const rows = [];\n    workerGroups.forEach(({\n      timesheets,\n      worker\n    }) => {\n      timesheets.forEach(timesheet => {\n        const rate = useChargeOutRates ?\n        // Timesheets charge our rate should be used unless there is a current\n        // one present, a current charge out rate of zero should be respected\n        worker.currentChargeOutRate != null ? worker.currentChargeOutRate : timesheet.chargeOutRate : timesheet.costRate;\n        const subtotal = (0, _reportBuilder.getTimesheetTotal)(timesheet, useChargeOutRates, worker.currentChargeOutRate);\n        const marginTotal = subtotal * markupPercent;\n        const total = subtotal + marginTotal;\n        rows.push([type, task.name, '', '', '', '', '', '', '', '', '', '', timesheet.belongsTo('worker').value().fullName, (0, _moment.default)(timesheet.date).format(intl.t('date.shortWithWeekday')), timesheet.hours, rate, subtotal, marginTotal, total]);\n      });\n    });\n    return rows;\n  }\n  function generateTaskTotalRows(type, task, useChargeOutRates, computedTotals, invoiceGroups = [], subcontractorGroups = [], labourInvoiceGroups = [], timesheetGroups = []) {\n    const invoiceSubtotal = _lodash.default.sumBy(invoiceGroups, group => group.selectedTotalPrice);\n    const invoiceMargin = invoiceSubtotal * computedTotals.invoice.markupPercent;\n    const invoiceTotal = invoiceSubtotal + invoiceMargin;\n    const subcontractorSubtotal = _lodash.default.sumBy(subcontractorGroups, group => group.selectedTotalPrice);\n    const subcontractorMargin = subcontractorSubtotal * computedTotals.subcontractor.markupPercent;\n    const subcontractorTotal = subcontractorSubtotal + subcontractorMargin;\n    const labourInvoiceSubtotal = _lodash.default.sumBy(labourInvoiceGroups, group => group.selectedTotalPrice);\n    const timesheetsSubtotal = _lodash.default.sumBy(timesheetGroups, group => _lodash.default.sumBy(group.selectedTimesheets, timesheet => (0, _reportBuilder.getTimesheetTotal)(timesheet, useChargeOutRates, group.currentChargeOutRate)));\n    const timesheetsManHoursTotal = _lodash.default.sumBy(timesheetGroups, group => _lodash.default.sumBy(group.selectedTimesheets, timesheet => timesheet.hours));\n    const labourSubtotal = labourInvoiceSubtotal + timesheetsSubtotal;\n    const labourMargin = labourSubtotal * computedTotals.timesheet.markupPercent;\n    const labourTotal = labourSubtotal + labourMargin;\n    const taskSubtotal = invoiceSubtotal + subcontractorSubtotal + labourSubtotal;\n    const taskMargin = invoiceMargin + subcontractorMargin + labourMargin;\n    const taskTotal = invoiceTotal + subcontractorTotal + labourTotal;\n    const taskManHoursTotal = timesheetsManHoursTotal;\n    return [[type, task?.name || 'Not assigned', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', taskManHoursTotal, taskSubtotal, taskMargin, taskTotal]];\n  }\n  function generateManualTypeRows(type, items, markupPercent) {\n    const rows = [];\n    items.forEach(item => {\n      const subtotal = item.total;\n      const marginTotal = item.total * markupPercent;\n      const total = subtotal + marginTotal;\n      rows.push([type, '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', item.description, subtotal, marginTotal, total, '', '', '', '', '', '', '', '']);\n    });\n    return rows;\n  }\n  function generateTotalRows(type, computedTotals) {\n    return [[type, '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', computedTotals.timesheet.manHoursTotal, computedTotals.total.subtotal, computedTotals.total.margin, computedTotals.total.total]];\n  }\n  function groupInvoiceGroupsByTask(invoiceGroups) {\n    return invoiceGroups.reduce((group, container) => {\n      const {\n        invoice,\n        items\n      } = container;\n      const selectedItems = items.filter(item => item.selected);\n      const groupedItems = _lodash.default.groupBy(selectedItems, item => item.belongsTo('task').id());\n      Object.entries(groupedItems).forEach(([task, items]) => {\n        const sortedItems = _lodash.default.sortBy(items, item => item.belongsTo('task').value()?.name);\n        const newItem = _reportBuilder2.InvoiceGroup.create({\n          invoice,\n          items: sortedItems\n        });\n        if (group[task]) group[task].push(newItem);else group[task] = [newItem];\n      });\n      return group;\n    }, {});\n  }\n  function groupWorkerGroupsByTask(workerGroups) {\n    return workerGroups.reduce((group, container) => {\n      const {\n        selectedTimesheets,\n        worker,\n        startDate,\n        endDate,\n        project\n      } = container;\n      const groupedTimesheets = _lodash.default.groupBy(selectedTimesheets, timesheet => timesheet.belongsTo('task').id());\n      Object.entries(groupedTimesheets).forEach(([task, timesheets]) => {\n        const newTimesheet = _reportBuilder2.WorkerGroup.create({\n          worker,\n          timesheets,\n          startDate,\n          endDate,\n          project,\n          task: timesheets[0].belongsTo('task').value()\n        });\n        if (group[task]) group[task].push(newTimesheet);else group[task] = [newTimesheet];\n      });\n      return group;\n    }, {});\n  }\n  function getTasks() {\n    return new Set([...arguments].reduce((arr, arg) => [...arr, ...Object.keys(arg)], []));\n  }\n});","define(\"portal/controllers/entity/builda-price/operations/outgoing/report-builder/excel\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"moment\", \"jquery\", \"ember-local-storage\", \"@ember/controller\", \"@ember/object\", \"portal/utils/csv-builder\", \"@ember/service\", \"@ember/object/computed\", \"@glimmer/tracking\", \"portal/utils/report-builder-attachments-bundle\", \"portal/utils/report-builder-mark-as-reported\", \"portal/utils/report-builder\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _moment, _jquery, _emberLocalStorage, _controller, _object, _csvBuilder, _service, _computed, _tracking, _reportBuilderAttachmentsBundle, _reportBuilderMarkAsReported, _reportBuilder, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"moment\",0,\"jquery\",0,\"ember-local-storage\",0,\"@ember/controller\",0,\"@ember/object\",0,\"portal/utils/csv-builder\",0,\"@ember/service\",0,\"@ember/object/computed\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"portal/utils/report-builder-attachments-bundle\",0,\"portal/utils/report-builder-mark-as-reported\",0,\"portal/utils/report-builder\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _emberLocalStorage.storageFor)('settings'), _dec2 = (0, _computed.alias)('persistedSettings.reportBuilder:markReportedOnExport'), _dec3 = (0, _computed.alias)('persistedSettings.reportBuilder:includeAttachmentsOnExport'), _dec4 = (0, _computed.alias)('session.data.authenticated.access_token'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"session\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"persistedSettings\", _descriptor4, this);\n      _initializerDefineProperty(this, \"markReportedOnExport\", _descriptor5, this);\n      _initializerDefineProperty(this, \"includeAttachmentsOnExport\", _descriptor6, this);\n      _initializerDefineProperty(this, \"_portalApiToken\", _descriptor7, this);\n      _initializerDefineProperty(this, \"downloaded\", _descriptor8, this);\n      _defineProperty(this, \"crumbStack\", [{\n        route: 'entity.builda-price.operations.outgoing.report-builder',\n        pageTitle: this.intl.t('common.Report builder')\n      }, {\n        pageTitle: this.intl.t('entity.builda-price.operations.outgoing.report-builder.excel.Excel export')\n      }]);\n      _defineProperty(this, \"download\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          if (this.markReportedOnExport) {\n            const ok = (0, _reportBuilderMarkAsReported.confirmMarkAsReported)(this.model);\n            if (!ok) return;\n          }\n\n          // do this first otherwise people might leave the tab once the spreadsheet is downloaded\n          if (this.markReportedOnExport) yield (0, _reportBuilderMarkAsReported.markSelectedItemsAsReported)(this.model, this.notifications);\n          const actions = [];\n          actions.push(generateAndDownloadXlsx(this.model, this.intl));\n          if (this.includeAttachmentsOnExport) actions.push((0, _reportBuilderAttachmentsBundle.default)(this.model));\n          yield Promise.all(actions);\n          this.downloaded = true;\n        }\n      }), null, \"download\", null));\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"persistedSettings\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"markReportedOnExport\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"includeAttachmentsOnExport\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_portalApiToken\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"downloaded\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _class2);\n  /* eslint-disable max-len */\n  /* eslint-disable complexity */\n  function generateAndDownloadXlsx({\n    materialInvoices,\n    workers,\n    labourInvoices,\n    subcontractorInvoices,\n    entityName,\n    projectName,\n    endDate,\n    startDate,\n    computedTotals,\n    useChargeOutRates,\n    manualMaterials,\n    manualTimesheets,\n    manualSubcontractors\n  }, intl, portalApiToken) {\n    const report = [];\n    report.push({\n      lineType: 'title',\n      data: [`${entityName} Report`]\n    });\n    report.push({\n      lineType: 'blank',\n      data: null\n    });\n    report.push({\n      lineType: 'subtitle',\n      data: [intl.t('common.Project'), projectName]\n    });\n    report.push({\n      lineType: 'subtitle',\n      data: [intl.t('common.Date'), (0, _moment.default)().format('LLLL')]\n    });\n    report.push({\n      lineType: 'subtitle',\n      data: [intl.t('entity.builda-price.operations.outgoing.report-builder.excel.Report range'), `${(0, _moment.default)(startDate).format(intl.t('date.shortWithWeekday'))} to ${(0, _moment.default)(endDate).format(intl.t('date.shortWithWeekday'))}`]\n    });\n    report.push({\n      lineType: 'blank',\n      data: null\n    });\n    if ((0, _object.get)(materialInvoices, 'length') || (0, _object.get)(manualMaterials, 'length')) {\n      report.push({\n        lineType: 'sectionTitle',\n        data: [intl.t('common.Materials')]\n      });\n      report.push({\n        lineType: 'invoiceTypeHeader',\n        data: [intl.t('common.Issuer'), intl.t('entity.builda-price.operations.outgoing.report-builder.Invoice reference'), intl.t('common.Invoice number')]\n      });\n      report.push({\n        lineType: 'invoiceTypeItemHeader',\n        data: [intl.t('common.Description'), intl.t('common.Task'), intl.t('shared.report-builder.Product code'), intl.t('common.Quantity'), intl.t('common.Unit price'), intl.t('common.Total')]\n      });\n      materialInvoices.forEach((invoice, index) => {\n        const invoiceTotal = (0, _object.get)(invoice, 'selectedTotalPrice');\n        const items = (0, _object.get)(invoice, 'items').filter(item => (0, _object.get)(item, 'selected'));\n        report.push({\n          lineType: 'invoice',\n          data: [(0, _object.get)(invoice, 'invoice.issuer'), (0, _object.get)(invoice, 'invoice.reference'), (0, _object.get)(invoice, 'invoice.billNumber')]\n        });\n        items.forEach(item => {\n          report.push({\n            lineType: 'invoiceItem',\n            data: [(0, _object.get)(item, 'description'), (0, _object.get)(item, 'task.name'), (0, _object.get)(item, 'productCode'), (0, _object.get)(item, 'quantity'), (0, _object.get)(item, 'unitPrice'), (0, _object.get)(item, 'totalPrice')]\n          });\n        });\n        if (materialInvoices.length === index - 1) {\n          report.push({\n            lineType: 'invoiceTotalLast',\n            data: [invoiceTotal]\n          });\n        } else {\n          report.push({\n            lineType: 'invoiceTotal',\n            data: [invoiceTotal]\n          });\n        }\n      });\n      if ((0, _object.get)(manualMaterials, 'length')) {\n        report.push({\n          lineType: 'blank',\n          data: null\n        });\n        report.push({\n          lineType: 'sectionTitle',\n          data: [intl.t('entity.builda-price.operations.outgoing.report-builder.excel.Extra materials')]\n        });\n        manualMaterials.forEach(manual => {\n          report.push({\n            lineType: 'extraItem',\n            data: [(0, _object.get)(manual, 'description'), (0, _object.get)(manual, 'total')]\n          });\n        });\n      }\n      report.push({\n        lineType: 'blank',\n        data: null\n      });\n      report.push({\n        lineType: 'sectionTotal',\n        data: [intl.t('shared.report-builder.Materials subtotal'), computedTotals.invoice.subtotal]\n      });\n      report.push({\n        lineType: 'sectionTotal',\n        data: [intl.t('entity.builda-price.operations.outgoing.report-builder.excel.Materials margin'), computedTotals.invoice.margin]\n      });\n      report.push({\n        lineType: 'sectionTotalLast',\n        data: [intl.t('shared.report-builder.Materials total'), computedTotals.invoice.total]\n      });\n      report.push({\n        lineType: 'blank',\n        data: null\n      });\n    }\n    if (workers.length || (0, _object.get)(manualTimesheets, 'length') || (0, _object.get)(labourInvoices, 'length')) {\n      report.push({\n        lineType: 'sectionTitle',\n        data: [intl.t('common.Labour')]\n      });\n      if (workers.length) {\n        report.push({\n          lineType: 'timesheetTypeHeader',\n          data: [intl.t('common.Worker')]\n        });\n        report.push({\n          lineType: 'timesheetTypeItemHeader',\n          data: [intl.t('common.Date'), intl.t('common.Task'), intl.t('common.Hours'), intl.t('common.Rate'), intl.t('common.Total')]\n        });\n        workers.forEach((workerWrapper, index) => {\n          let totalWorkerHours = 0;\n          let totalWorkerCost = 0;\n          const worker = (0, _object.get)(workerWrapper, 'worker');\n          const workerCurrentChargeOutRate = (0, _object.get)(worker, 'currentChargeOutRate');\n          report.push({\n            lineType: 'timesheet',\n            data: [`${(0, _object.get)(worker, 'firstName')} ${(0, _object.get)(worker, 'lastName')}`]\n          });\n          (0, _object.get)(workerWrapper, 'selectedTimesheets').forEach(timesheet => {\n            const rate = useChargeOutRates ?\n            // Timesheets charge our rate should be used unless there is a current one present, a current charge out rate of zero should be respected\n            workerCurrentChargeOutRate != null ? workerCurrentChargeOutRate : (0, _object.get)(timesheet, 'chargeOutRate') : (0, _object.get)(timesheet, 'costRate');\n            const hours = (0, _object.get)(timesheet, 'hours');\n            const timesheetTotal = (0, _reportBuilder.getTimesheetTotal)(timesheet, useChargeOutRates, workerWrapper.currentChargeOutRate);\n            report.push({\n              lineType: 'timesheetItem',\n              data: [(0, _moment.default)((0, _object.get)(timesheet, 'date')).format(intl.t('date.shortWithWeekday')), (0, _object.get)(timesheet, 'task.name'), hours, rate, timesheetTotal]\n            });\n            totalWorkerHours += hours;\n            totalWorkerCost += timesheetTotal;\n          });\n          if (workers.length === index - 1) {\n            report.push({\n              lineType: 'timesheetTotalLast',\n              data: [totalWorkerHours, totalWorkerCost / (totalWorkerHours || Infinity), totalWorkerCost]\n            });\n          } else {\n            report.push({\n              lineType: 'timesheetTotal',\n              data: [totalWorkerHours, totalWorkerCost / (totalWorkerHours || Infinity), totalWorkerCost]\n            });\n          }\n        });\n      }\n      if ((0, _object.get)(labourInvoices, 'length')) {\n        report.push({\n          lineType: 'invoiceTypeHeader',\n          data: [intl.t('common.Issuer'), intl.t('entity.builda-price.operations.outgoing.report-builder.Invoice reference'), intl.t('common.Invoice number')]\n        });\n        report.push({\n          lineType: 'invoiceTypeItemHeader',\n          data: [intl.t('common.Description'), intl.t('common.Task'), intl.t('shared.report-builder.Product code'), intl.t('common.Quantity'), intl.t('common.Unit price'), intl.t('common.Total')]\n        });\n        labourInvoices.forEach((invoice, index) => {\n          const invoiceTotal = (0, _object.get)(invoice, 'selectedTotalPrice');\n          const items = (0, _object.get)(invoice, 'items').filter(item => (0, _object.get)(item, 'selected'));\n          report.push({\n            lineType: 'invoice',\n            data: [(0, _object.get)(invoice, 'invoice.issuer'), (0, _object.get)(invoice, 'invoice.reference'), (0, _object.get)(invoice, 'invoice.billNumber')]\n          });\n          items.forEach(item => {\n            report.push({\n              lineType: 'invoiceItem',\n              data: [(0, _object.get)(item, 'description'), (0, _object.get)(item, 'task.name'), (0, _object.get)(item, 'productCode'), (0, _object.get)(item, 'quantity'), (0, _object.get)(item, 'unitPrice'), (0, _object.get)(item, 'totalPrice')]\n            });\n          });\n          if (materialInvoices.length === index - 1) {\n            report.push({\n              lineType: 'invoiceTotalLast',\n              data: [invoiceTotal]\n            });\n          } else {\n            report.push({\n              lineType: 'invoiceTotal',\n              data: [invoiceTotal]\n            });\n          }\n        });\n      }\n      if ((0, _object.get)(manualTimesheets, 'length')) {\n        report.push({\n          lineType: 'blank',\n          data: null\n        });\n        report.push({\n          lineType: 'sectionTitle',\n          data: [intl.t('entity.builda-price.operations.outgoing.report-builder.excel.Extra labour')]\n        });\n        manualTimesheets.forEach(manual => {\n          report.push({\n            lineType: 'extraItem',\n            data: [(0, _object.get)(manual, 'description'), (0, _object.get)(manual, 'total')]\n          });\n        });\n      }\n      report.push({\n        lineType: 'blank',\n        data: null\n      });\n      report.push({\n        lineType: 'sectionTotalManHours',\n        data: [intl.t('entity.builda-price.operations.outgoing.report-builder.excel.Man hours'), computedTotals.timesheet.manHoursTotal]\n      });\n      report.push({\n        lineType: 'sectionTotal',\n        data: [intl.t('shared.report-builder.Labour subtotal'), computedTotals.timesheet.subtotal]\n      });\n      report.push({\n        lineType: 'sectionTotal',\n        data: [intl.t('entity.builda-price.operations.outgoing.report-builder.excel.Labour margin'), computedTotals.timesheet.margin]\n      });\n      report.push({\n        lineType: 'sectionTotalLast',\n        data: [intl.t('shared.report-builder.Labour total'), computedTotals.timesheet.total]\n      });\n      report.push({\n        lineType: 'blank',\n        data: null\n      });\n    }\n    if ((0, _object.get)(subcontractorInvoices, 'length') || (0, _object.get)(manualSubcontractors, 'length')) {\n      report.push({\n        lineType: 'sectionTitle',\n        data: [intl.t('common.Subcontractors')]\n      });\n      report.push({\n        lineType: 'invoiceTypeHeader',\n        data: [intl.t('common.Issuer'), intl.t('entity.builda-price.operations.outgoing.report-builder.Invoice reference'), intl.t('common.Invoice number')]\n      });\n      report.push({\n        lineType: 'invoiceTypeItemHeader',\n        data: [intl.t('common.Description'), intl.t('common.Task'), intl.t('shared.report-builder.Product code'), intl.t('common.Quantity'), intl.t('common.Unit price'), intl.t('common.Total')]\n      });\n      subcontractorInvoices.forEach((invoice, index) => {\n        const invoiceTotal = (0, _object.get)(invoice, 'selectedTotalPrice');\n        const items = (0, _object.get)(invoice, 'items').filter(item => (0, _object.get)(item, 'selected'));\n        report.push({\n          lineType: 'invoice',\n          data: [(0, _object.get)(invoice, 'invoice.issuer'), (0, _object.get)(invoice, 'invoice.reference'), (0, _object.get)(invoice, 'invoice.billNumber')]\n        });\n        items.forEach(item => {\n          report.push({\n            lineType: 'invoiceItem',\n            data: [(0, _object.get)(item, 'description'), (0, _object.get)(item, 'task.name'), (0, _object.get)(item, 'productCode'), (0, _object.get)(item, 'quantity'), (0, _object.get)(item, 'unitPrice'), (0, _object.get)(item, 'totalPrice')]\n          });\n        });\n        if (subcontractorInvoices.length === index - 1) {\n          report.push({\n            lineType: 'invoiceTotalLast',\n            data: [invoiceTotal]\n          });\n        } else {\n          report.push({\n            lineType: 'invoiceTotal',\n            data: [invoiceTotal]\n          });\n        }\n      });\n      if ((0, _object.get)(manualSubcontractors, 'length')) {\n        report.push({\n          lineType: 'blank',\n          data: null\n        });\n        report.push({\n          lineType: 'sectionTitle',\n          data: [intl.t('entity.builda-price.operations.outgoing.report-builder.excel.Extra subcontractors')]\n        });\n        manualSubcontractors.forEach(manual => {\n          report.push({\n            lineType: 'extraItem',\n            data: [(0, _object.get)(manual, 'description'), (0, _object.get)(manual, 'total')]\n          });\n        });\n      }\n      report.push({\n        lineType: 'blank',\n        data: null\n      });\n      report.push({\n        lineType: 'sectionTotal',\n        data: [intl.t('entity.builda-price.operations.outgoing.report-builder.excel.Subcontractor subtotal'), computedTotals.subcontractor.subtotal]\n      });\n      report.push({\n        lineType: 'sectionTotal',\n        data: [intl.t('entity.builda-price.operations.outgoing.report-builder.excel.Subcontractor margin'), computedTotals.subcontractor.margin]\n      });\n      report.push({\n        lineType: 'sectionTotalLast',\n        data: [intl.t('entity.builda-price.operations.outgoing.report-builder.excel.Subcontractor total'), computedTotals.subcontractor.total]\n      });\n      report.push({\n        lineType: 'blank',\n        data: null\n      });\n    }\n    report.push({\n      lineType: 'sectionTitle',\n      data: [intl.t('common.Total')]\n    });\n    report.push({\n      lineType: 'reportTotalManHours',\n      data: [intl.t('entity.builda-price.operations.outgoing.report-builder.excel.Man hours'), computedTotals.timesheet.manHoursTotal]\n    });\n    report.push({\n      lineType: 'reportTotal',\n      data: [intl.t('common.Total'), computedTotals.total.subtotal]\n    });\n    report.push({\n      lineType: 'reportTotal',\n      data: [intl.t('entity.builda-price.operations.outgoing.report-builder.excel.Total margin'), computedTotals.total.margin]\n    });\n    report.push({\n      lineType: 'reportTotalLast',\n      data: [intl.t('entity.builda-price.operations.outgoing.report-builder.excel.Grand total'), computedTotals.total.total]\n    });\n    return new Promise((resolve, reject) => {\n      _jquery.default.ajax({\n        url: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/generate-xlsx',\n        method: 'POST',\n        xhr() {\n          // This seems to be the only way to set the response type to blob.\n          // This will allow js to leave the file as a bytestream rather than trying to parse it.\n          const xhr = new XMLHttpRequest();\n          xhr.responseType = 'blob';\n          return xhr;\n        },\n        headers: {\n          Authorization: `Bearer ${portalApiToken}`\n        },\n        data: JSON.stringify({\n          data: report\n        }),\n        contentType: 'application/json',\n        accept: 'application/vnd.ms-excel'\n      }).then(resolve, reject);\n    }).then(response => {\n      const fileName = `${projectName}_${(0, _moment.default)(startDate).format(intl.t('date.slashDayFirst'))}-${(0, _moment.default)(endDate).format(intl.t('date.slashDayFirst'))}.xlsx`;\n      return (0, _csvBuilder.downloadXlsx)(response, fileName);\n    });\n  }\n  /* eslint-enable max-len */\n});","define(\"portal/controllers/entity/builda-price/operations/outgoing/report-builder/index\", [\"exports\", \"@ember/controller\", \"@ember/object\", \"@ember/object/computed\", \"@ember/service\", \"portal/utils/report-builder\", \"moment\", \"rsvp\", \"lodash\", \"ember-local-storage\"], function (_exports, _controller, _object, _computed, _service, _reportBuilder, _moment, _rsvp, _lodash, _emberLocalStorage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/object\",0,\"@ember/object/computed\",0,\"@ember/service\",0,\"portal/utils/report-builder\",0,\"moment\",0,\"rsvp\",0,\"lodash\",0,\"ember-local-storage\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({\n    sessionData: (0, _service.inject)(),\n    intl: (0, _service.inject)(),\n    notifications: (0, _service.inject)(),\n    session: (0, _service.inject)(),\n    router: (0, _service.inject)(),\n    persistedSettings: (0, _emberLocalStorage.storageFor)('settings'),\n    markReportedOnExport: (0, _computed.alias)('persistedSettings.reportBuilder:markReportedOnExport'),\n    includeAttachmentsOnExport: (0, _computed.alias)('persistedSettings.reportBuilder:includeAttachmentsOnExport'),\n    _portalApiToken: (0, _computed.alias)('session.data.authenticated.access_token'),\n    materialsSectionExpanded: true,\n    labourSectionExpanded: true,\n    subcontractorsSectionExpanded: true,\n    groupedProjects: (0, _object.computed)('model.projects', function () {\n      const output = [];\n      const groups = _lodash.default.groupBy((0, _object.get)(this, 'model.projects'), 'status');\n      if (groups.OPEN) output.push({\n        groupName: (0, _object.get)(this, 'intl').t('common.Open'),\n        options: groups.OPEN\n      });\n      if (groups.HELD) output.push({\n        groupName: (0, _object.get)(this, 'intl').t('common.Held'),\n        options: groups.HELD\n      });\n      if (groups.CLOSED) output.push({\n        groupName: (0, _object.get)(this, 'intl').t('common.Closed'),\n        options: groups.CLOSED\n      });\n      return output;\n    }),\n    showTaskPopUp: false,\n    queryParams: ['endDate', 'startDate', 'selectedProjectId', 'filterByDate'],\n    filterByDate: true,\n    endDate: (0, _moment.default)().endOf('month').format('YYYY-MM-DD'),\n    jsEndDate: (0, _object.computed)('endDate', {\n      get: function () {\n        return (0, _moment.default)((0, _object.get)(this, 'endDate')).toDate();\n      },\n      set: function (key, value) {\n        (0, _object.set)(this, 'endDate', (0, _moment.default)(value).format('YYYY-MM-DD'));\n        return value;\n      }\n    }),\n    startDate: (0, _moment.default)().startOf('month').format('YYYY-MM-DD'),\n    jsStartDate: (0, _object.computed)('startDate', {\n      get: function () {\n        return (0, _moment.default)((0, _object.get)(this, 'startDate')).toDate();\n      },\n      set: function (key, value) {\n        (0, _object.set)(this, 'startDate', (0, _moment.default)(value).format('YYYY-MM-DD'));\n        return value;\n      }\n    }),\n    selectedProject: (0, _object.computed)('selectedProjectId', 'model.projects', {\n      get() {\n        return (0, _object.get)(this, 'model.projects').findBy('id', (0, _object.get)(this, 'selectedProjectId'));\n      },\n      set(key, value) {\n        (0, _object.set)(this, 'selectedProjectId', value ? (0, _object.get)(value, 'id') : undefined);\n        return value;\n      }\n    }),\n    selectedTaskIds: [],\n    selectedTasks: (0, _object.computed)('selectedTaskIds', 'selectedProject.tasks', function () {\n      if (!(0, _object.get)(this, 'selectedTaskIds')) return [];\n      return ((0, _object.get)(this, 'selectedProject.tasks').content?.toArray() || []).filter(t => (0, _object.get)(this, 'selectedTaskIds').includes((0, _object.get)(t, 'id')));\n    }),\n    manualMaterials: [],\n    materialInvoices: (0, _computed.alias)('model.materialInvoices'),\n    manualLabour: [],\n    labourInvoices: (0, _computed.alias)('model.labourInvoices'),\n    manualTimesheets: [],\n    workers: (0, _computed.alias)('model.workers'),\n    manualSubcontractors: [],\n    subcontractorInvoices: (0, _computed.alias)('model.subcontractorInvoices'),\n    invoiceProfit: 0,\n    invoiceProfitType: 'margin',\n    invoiceDollarProfit: generateDollarProfit('invoiceProfit', 'invoiceProfitType', 'subtotals.invoice'),\n    invoiceMargin: generateMargin('invoiceProfit', 'invoiceProfitType', 'subtotals.invoice'),\n    invoiceMarkup: generateMarkup('invoiceProfit', 'invoiceProfitType', 'subtotals.invoice'),\n    timesheetProfit: 0,\n    timesheetProfitType: 'margin',\n    timesheetDollarProfit: generateDollarProfit('timesheetProfit', 'timesheetProfitType', 'subtotals.timesheet'),\n    timesheetMargin: generateMargin('timesheetProfit', 'timesheetProfitType', 'subtotals.timesheet'),\n    timesheetMarkup: generateMarkup('timesheetProfit', 'timesheetProfitType', 'subtotals.timesheet'),\n    subcontractorProfit: 0,\n    subcontractorProfitType: 'margin',\n    subcontractorDollarProfit: generateDollarProfit('subcontractorProfit', 'subcontractorProfitType', 'subtotals.subcontractor'),\n    subcontractorMargin: generateMargin('subcontractorProfit', 'subcontractorProfitType', 'subtotals.subcontractor'),\n    subcontractorMarkup: generateMarkup('subcontractorProfit', 'subcontractorProfitType', 'subtotals.subcontractor'),\n    computedTotals: (0, _object.computed)('invoiceDollarProfit', 'invoiceMarkup', 'invoiceProfit', 'invoiceProfitType', 'subcontractorDollarProfit', 'subcontractorMarkup', 'subcontractorProfit', 'subcontractorProfitType', 'subtotals', 'timesheetDollarProfit', 'timesheetMarkup', 'timesheetProfit', 'timesheetProfitType', function () {\n      const invoiceDollarProfit = (0, _object.get)(this, 'invoiceDollarProfit');\n      const timesheetDollarProfit = (0, _object.get)(this, 'timesheetDollarProfit');\n      const subcontractorDollarProfit = (0, _object.get)(this, 'subcontractorDollarProfit');\n      const {\n        invoice,\n        timesheet,\n        manHoursTotal,\n        subcontractor,\n        total\n      } = (0, _object.getProperties)((0, _object.get)(this, 'subtotals'), 'invoice', 'timesheet', 'manHoursTotal', 'subcontractor', 'total');\n      return {\n        invoice: {\n          subtotal: invoice,\n          margin: invoiceDollarProfit,\n          total: invoice + invoiceDollarProfit,\n          markupPercent: this.invoiceMarkup\n        },\n        timesheet: {\n          manHoursTotal,\n          subtotal: timesheet,\n          margin: timesheetDollarProfit,\n          total: timesheet + timesheetDollarProfit,\n          markupPercent: this.timesheetMarkup\n        },\n        subcontractor: {\n          subtotal: subcontractor,\n          margin: subcontractorDollarProfit,\n          total: subcontractor + subcontractorDollarProfit,\n          markupPercent: this.subcontractorMarkup\n        },\n        total: {\n          margin: invoiceDollarProfit + timesheetDollarProfit + subcontractorDollarProfit,\n          subtotal: total,\n          total: total + invoiceDollarProfit + timesheetDollarProfit + subcontractorDollarProfit\n        }\n      };\n    }),\n    subtotals: (0, _object.computed)('manualMaterials.@each.{total,selected}', 'manualTimesheets.@each.{total,selected}', 'manualSubcontractors.@each.{total,selected}', 'materialInvoices.@each.{allSelected,partSelected}', 'materialInvoices.items.@each.{selected,reported}', 'labourInvoices.@each.{allSelected,partSelected}', 'labourInvoices.items.@each.{selected,reported}', 'subcontractorInvoices.@each.{allSelected,partSelected}', 'subcontractorInvoices.items.@each.{selected,reported}', 'workers.@each.{allSelected,partSelected,currentChargeOutRate}', 'workers.timesheets.@each.{selected,reported}', 'useChargeOutRates', function () {\n      const materialInvoices = (0, _object.get)(this, 'materialInvoices');\n      const subcontractorInvoices = (0, _object.get)(this, 'subcontractorInvoices');\n      const labourInvoices = (0, _object.get)(this, 'labourInvoices');\n      const workers = (0, _object.get)(this, 'workers');\n      const manualMaterials = (0, _object.get)(this, 'manualMaterials').filter(manual => (0, _object.get)(manual, 'selected'));\n      const manualTimesheets = (0, _object.get)(this, 'manualTimesheets').filter(manual => (0, _object.get)(manual, 'selected'));\n      const manualSubcontractors = (0, _object.get)(this, 'manualSubcontractors').filter(manual => (0, _object.get)(manual, 'selected'));\n      const useChargeOutRates = (0, _object.get)(this, 'useChargeOutRates');\n      const manualInvoiceTotalPrice = manualMaterials.reduce((total, manual) => total += (0, _object.get)(manual, 'total'), 0);\n      const invoiceTotalPrice = materialInvoices.reduce((total, invoice) => total += (0, _object.get)(invoice, 'selectedTotalPrice'), 0);\n      const manualTimesheetTotalPrice = manualTimesheets.reduce((total, manual) => total += (0, _object.get)(manual, 'total'), 0);\n      const timesheetTotalPrice = workers.reduce((total, workerWrapper) => {\n        return total += workerWrapper.selectedTimesheets.reduce((total, timesheet) => total += (0, _reportBuilder.getTimesheetTotal)(timesheet, useChargeOutRates, workerWrapper.currentChargeOutRate), 0);\n      }, 0);\n      const labourInvoicePrice = labourInvoices.reduce((total, invoice) => total += (0, _object.get)(invoice, 'selectedTotalPrice'), 0);\n      const timesheetTotalManHours = workers.reduce((total, workerWrapper) => {\n        return total += workerWrapper.selectedTimesheets.reduce((total, timesheet) => total += (0, _object.get)(timesheet, 'duration'), 0);\n      }, 0);\n      const manualSubcontractorTotalPrice = manualSubcontractors.reduce((total, manual) => total += (0, _object.get)(manual, 'total'), 0);\n      const subcontractorTotalPrice = subcontractorInvoices.reduce((total, invoice) => total += (0, _object.get)(invoice, 'selectedTotalPrice'), 0);\n      return {\n        invoice: invoiceTotalPrice + manualInvoiceTotalPrice,\n        timesheet: timesheetTotalPrice + labourInvoicePrice + manualTimesheetTotalPrice,\n        manHoursTotal: timesheetTotalManHours / 60,\n        subcontractor: subcontractorTotalPrice + manualSubcontractorTotalPrice,\n        total: invoiceTotalPrice + manualInvoiceTotalPrice + timesheetTotalPrice + labourInvoicePrice + manualTimesheetTotalPrice + subcontractorTotalPrice + manualSubcontractorTotalPrice\n      };\n    }),\n    useChargeOutRates: true,\n    allMaterialsSelected: (0, _object.computed)('materialInvoices.@each.allSelected', function () {\n      return (0, _object.get)(this, 'materialInvoices').every(invoiceWrapper => (0, _object.get)(invoiceWrapper, 'allSelected'));\n    }),\n    partMaterialsSelected: (0, _object.computed)('allMaterialsSelected', 'materialInvoices.@each.partSelected', function () {\n      return !(0, _object.get)(this, 'allMaterialsSelected') && (0, _object.get)(this, 'materialInvoices').some(invoiceWrapper => (0, _object.get)(invoiceWrapper, 'allSelected') || (0, _object.get)(invoiceWrapper, 'partSelected'));\n    }),\n    allTimesheetsSelected: (0, _object.computed)('workers.@each.allSelected', function () {\n      return (0, _object.get)(this, 'workers').every(workerWrapper => (0, _object.get)(workerWrapper, 'allSelected'));\n    }),\n    partTimesheetsSelected: (0, _object.computed)('allTimesheetsSelected', 'workers.@each.partSelected', function () {\n      return !(0, _object.get)(this, 'allTimesheetsSelected') && (0, _object.get)(this, 'workers').some(workerWrapper => (0, _object.get)(workerWrapper, 'allSelected') || (0, _object.get)(workerWrapper, 'partSelected'));\n    }),\n    allSubcontractorsSelected: (0, _object.computed)('subcontractorInvoices.@each.allSelected', function () {\n      return (0, _object.get)(this, 'subcontractorInvoices').every(subcontractorWrapper => (0, _object.get)(subcontractorWrapper, 'allSelected'));\n    }),\n    partSubcontractorsSelected: (0, _object.computed)('allSubcontractorsSelected', 'subcontractorInvoices.@each.partSelected', function () {\n      return !(0, _object.get)(this, 'allSubcontractorsSelected') && (0, _object.get)(this, 'subcontractorInvoices').some(subcontractorWrapper => (0, _object.get)(subcontractorWrapper, 'allSelected') || (0, _object.get)(subcontractorWrapper, 'partSelected'));\n    }),\n    allLabourSelected: (0, _object.computed)('labourInvoices.@each.allSelected', function () {\n      return (0, _object.get)(this, 'labourInvoices').every(labourWrapper => (0, _object.get)(labourWrapper, 'allSelected'));\n    }),\n    partLabourSelected: (0, _object.computed)('allLabourSelected', 'labourInvoices.@each.partSelected', function () {\n      return !(0, _object.get)(this, 'allLabourSelected') && (0, _object.get)(this, 'labourInvoices').some(labourWrapper => (0, _object.get)(labourWrapper, 'allSelected') || (0, _object.get)(labourWrapper, 'partSelected'));\n    }),\n    reportData: (0, _object.computed)('computedTotals', 'endDate', 'labourInvoices', 'manualMaterials', 'manualSubcontractors', 'manualTimesheets', 'materialInvoices', 'selectedProject.{id,name}', 'sessionData.entity.name', 'startDate', 'subcontractorInvoices', 'useChargeOutRates', 'workers', function () {\n      const projectId = (0, _object.get)(this, 'selectedProject.id');\n      const entityName = (0, _object.get)(this, 'sessionData.entity.name');\n      const projectName = (0, _object.get)(this, 'selectedProject.name');\n      const endDate = (0, _object.get)(this, 'endDate');\n      const startDate = (0, _object.get)(this, 'startDate');\n      const computedTotals = (0, _object.get)(this, 'computedTotals');\n      const useChargeOutRates = (0, _object.get)(this, 'useChargeOutRates');\n      const materialInvoices = (0, _object.get)(this, 'materialInvoices').filter(invoiceWrapper => (0, _object.get)(invoiceWrapper, 'allSelected') || (0, _object.get)(invoiceWrapper, 'partSelected'));\n      const manualMaterials = (0, _object.get)(this, 'manualMaterials');\n      const workers = (0, _object.get)(this, 'workers').filter(workerWrapper => (0, _object.get)(workerWrapper, 'allSelected') || (0, _object.get)(workerWrapper, 'partSelected'));\n      const labourInvoices = (0, _object.get)(this, 'labourInvoices').filter(labourWrapper => (0, _object.get)(labourWrapper, 'allSelected') || (0, _object.get)(labourWrapper, 'partSelected'));\n      const manualTimesheets = (0, _object.get)(this, 'manualTimesheets');\n      const subcontractorInvoices = (0, _object.get)(this, 'subcontractorInvoices').filter(subcontractorWrapper => (0, _object.get)(subcontractorWrapper, 'allSelected') || (0, _object.get)(subcontractorWrapper, 'partSelected'));\n      const manualSubcontractors = (0, _object.get)(this, 'manualSubcontractors');\n      return {\n        projectId,\n        materialInvoices,\n        workers,\n        labourInvoices,\n        subcontractorInvoices,\n        entityName,\n        projectName,\n        endDate,\n        startDate,\n        computedTotals,\n        useChargeOutRates,\n        manualMaterials,\n        manualTimesheets,\n        manualSubcontractors\n      };\n    }),\n    actions: {\n      removeSelectedTask(task) {\n        (0, _object.set)(this, 'showTaskPopUp', false);\n        const filteredSelectTasks = (0, _object.get)(this, 'selectedTasks').filter(t => t.id !== task.id);\n        (0, _object.set)(this, 'selectedTaskIds', filteredSelectTasks.map(t => t.id));\n        (0, _object.get)(this, 'model.refresh')();\n      },\n      setProject(value) {\n        (0, _object.set)(this, 'selectedTaskIds', []);\n        (0, _object.set)(this, 'selectedProject', value);\n      },\n      removeAllTaskFilters() {\n        (0, _object.set)(this, 'selectedTaskIds', []);\n        (0, _object.get)(this, 'model.refresh')();\n      },\n      setSelectedTasks(tasks) {\n        (0, _object.set)(this, 'showTaskPopUp', false);\n        const taskIds = tasks.map(t => t.id);\n        const selectedTaskIds = (0, _object.get)(this, 'selectedTaskIds');\n        if (_lodash.default.difference(taskIds, selectedTaskIds).length || _lodash.default.difference(selectedTaskIds, taskIds).length) {\n          (0, _object.set)(this, 'selectedTaskIds', taskIds);\n          (0, _object.get)(this, 'model.refresh')();\n        }\n      },\n      toggleFilter() {\n        (0, _object.set)(this, 'filterByDate', !(0, _object.get)(this, 'filterByDate'));\n      },\n      setProfitType(groupKey, profitType) {\n        switch (profitType) {\n          case 'dollar':\n            (0, _object.set)(this, `${groupKey}Profit`, (0, _object.get)(this, `${groupKey}DollarProfit`));\n            break;\n          case 'margin':\n            (0, _object.set)(this, `${groupKey}Profit`, (0, _object.get)(this, `${groupKey}Margin`));\n            break;\n          case 'markup':\n            (0, _object.set)(this, `${groupKey}Profit`, (0, _object.get)(this, `${groupKey}Markup`));\n            break;\n          default:\n            throw new Error('Unknown `profitType` provided');\n        }\n        (0, _object.set)(this, `${groupKey}ProfitType`, profitType);\n      },\n      setDateRange(dates) {\n        const {\n          startDate,\n          endDate\n        } = dates;\n        if (startDate) (0, _object.set)(this, 'jsStartDate', startDate);\n        if (endDate) (0, _object.set)(this, 'jsEndDate', endDate);\n      },\n      toggleItemsVisible(resource) {\n        (0, _object.set)(resource, 'itemsVisible', !(0, _object.get)(resource, 'itemsVisible'));\n      },\n      toggleTimesheetsSelected(event) {\n        const selected = (0, _object.get)(this, 'allTimesheetsSelected');\n        (0, _object.get)(this, 'workers').forEach(workerWrapper => (0, _object.get)(workerWrapper, 'timesheets').forEach(timesheet => (0, _object.set)(timesheet, 'selected', !selected)));\n        // Stop event propagation to disable native checkbox behaviour\n        event.stopPropagation();\n      },\n      toggleWorkersTimesheetsSelected(workerWrapper, event) {\n        const selected = (0, _object.get)(workerWrapper, 'timesheets').every(timesheet => (0, _object.get)(timesheet, 'selected'));\n        (0, _object.get)(workerWrapper, 'timesheets').forEach(timesheet => (0, _object.set)(timesheet, 'selected', !selected));\n        // Stop event propagation to disable native checkbox behaviour\n        event.stopPropagation();\n      },\n      toggleTimesheetSelected(timesheet, event) {\n        timesheet.toggleProperty('selected');\n        // Stop event propagation to disable native checkbox behaviour\n        event.stopPropagation();\n      },\n      toggleMaterialsSelected(event) {\n        const selected = (0, _object.get)(this, 'allMaterialsSelected');\n        (0, _object.get)(this, 'materialInvoices').forEach(invoiceWrapper => (0, _object.get)(invoiceWrapper, 'items').forEach(item => (0, _object.set)(item, 'selected', !selected)));\n        // Stop event propagation to disable native checkbox behaviour\n        event.stopPropagation();\n      },\n      toggleSubcontractorsSelected(event) {\n        const selected = (0, _object.get)(this, 'allSubcontractorsSelected');\n        (0, _object.get)(this, 'subcontractorInvoices').forEach(subcontractorWrapper => (0, _object.get)(subcontractorWrapper, 'items').forEach(item => (0, _object.set)(item, 'selected', !selected)));\n        // Stop event propagation to disable native checkbox behaviour\n        event.stopPropagation();\n      },\n      toggleLabourSelected(event) {\n        const selected = (0, _object.get)(this, 'allLabourSelected');\n        (0, _object.get)(this, 'labourInvoices').forEach(labourWrapper => (0, _object.get)(labourWrapper, 'items').forEach(item => (0, _object.set)(item, 'selected', !selected)));\n        // Stop event propagation to disable native checkbox behaviour\n        event.stopPropagation();\n      },\n      toggleTimesheetsReportedSelected() {\n        (0, _object.get)(this, 'workers').forEach(workerWrapper => {\n          (0, _object.get)(workerWrapper, 'timesheets').forEach(timesheet => {\n            if (!(0, _object.get)(timesheet, 'reported')) (0, _object.set)(timesheet, 'selected', true);\n          });\n        });\n        (0, _object.get)(this, 'labourInvoices').forEach(invoiceWrapper => {\n          (0, _object.get)(invoiceWrapper, 'items').forEach(item => {\n            if (!(0, _object.get)(item, 'reported')) (0, _object.set)(item, 'selected', true);\n          });\n        });\n      },\n      toggleMaterialsReportedSelected() {\n        (0, _object.get)(this, 'materialInvoices').forEach(invoiceWrapper => {\n          (0, _object.get)(invoiceWrapper, 'items').forEach(item => {\n            if (!(0, _object.get)(item, 'reported')) (0, _object.set)(item, 'selected', true);\n          });\n        });\n      },\n      toggleSubcontractorsReportedSelected() {\n        (0, _object.get)(this, 'subcontractorInvoices').forEach(subcontractorWrapper => (0, _object.get)(subcontractorWrapper, 'items').forEach(item => {\n          if (!(0, _object.get)(item, 'reported')) (0, _object.set)(item, 'selected', true);\n        }));\n      },\n      toggleResourceItemsSelected(resource, event) {\n        const selected = (0, _object.get)(resource, 'items').every(item => (0, _object.get)(item, 'selected'));\n        (0, _object.get)(resource, 'items').forEach(item => (0, _object.set)(item, 'selected', !selected));\n        // Stop event propagation to disable native checkbox behaviour\n        event.stopPropagation();\n      },\n      toggleInvoiceItemSelected(item, event) {\n        item.toggleProperty('selected');\n        // Stop event propagation to disable native checkbox behaviour\n        event.stopPropagation();\n      },\n      addManualItem(type) {\n        const newManualItem = {\n          manual: true,\n          selected: true,\n          description: '',\n          total: 0\n        };\n        switch (type) {\n          case 'material':\n            (0, _object.get)(this, 'manualMaterials').pushObject(newManualItem);\n            break;\n          case 'timesheet':\n            (0, _object.get)(this, 'manualTimesheets').pushObject(newManualItem);\n            break;\n          case 'subcontractor':\n            (0, _object.get)(this, 'manualSubcontractors').pushObject(newManualItem);\n            break;\n        }\n      },\n      deleteManualItem(type, resource) {\n        switch (type) {\n          case 'material':\n            (0, _object.get)(this, 'manualMaterials').removeObject(resource);\n            break;\n          case 'timesheet':\n            (0, _object.get)(this, 'manualTimesheets').removeObject(resource);\n            break;\n          case 'subcontractor':\n            (0, _object.get)(this, 'manualSubcontractors').removeObject(resource);\n            break;\n        }\n      },\n      async downloadReport(type) {\n        switch (type) {\n          case 'pdf':\n            this.router.transitionTo('entity.builda-price.operations.outgoing.report-builder.pdf', this.reportData);\n            break;\n          case 'csv':\n            this.router.transitionTo('entity.builda-price.operations.outgoing.report-builder.csv', this.reportData);\n            break;\n          case 'excel':\n            this.router.transitionTo('entity.builda-price.operations.outgoing.report-builder.excel', this.reportData);\n            break;\n          default:\n            break;\n        }\n      },\n      setItemReportedFalse(item) {\n        (0, _object.set)(item, 'reported', false);\n        // if the items is an invoice trigger the computed property\n        item.save();\n      },\n      setItemsReportedFalse(items) {\n        // Set all the items marked as reported back to false and save them\n        _rsvp.default.all(items.map(item => {\n          if ((0, _object.get)(item, 'reported')) {\n            (0, _object.set)(item, 'reported', false);\n            return item.save();\n          } else {\n            return null;\n          }\n        }));\n      }\n    },\n    resetPageOverrides() {\n      (0, _object.set)(this, 'invoiceProfit', 0);\n      (0, _object.set)(this, 'timesheetProfit', 0);\n      (0, _object.set)(this, 'subcontractorProfit', 0);\n      (0, _object.set)(this, 'manualMaterials', []);\n      (0, _object.set)(this, 'manualTimesheets', []);\n      (0, _object.set)(this, 'manualSubcontractors', []);\n      (0, _object.get)(this, 'model.workers').forEach(worker => (0, _object.set)(worker, 'currentChargeOutRate', null));\n    }\n  });\n  function generateDollarProfit(profitKey, profitTypeKey, subtotalKey) {\n    return (0, _object.computed)(profitKey, profitTypeKey, subtotalKey, function () {\n      const profit = (0, _object.get)(this, profitKey);\n      const profitType = (0, _object.get)(this, profitTypeKey);\n      const subtotal = (0, _object.get)(this, subtotalKey);\n      switch (profitType) {\n        case 'dollar':\n          return profit;\n        case 'margin':\n          return profit * subtotal / (1 - profit);\n        case 'markup':\n          return profit * subtotal;\n        default:\n          return 0;\n      }\n    });\n  }\n  function generateMargin(profitKey, profitTypeKey, subtotalKey) {\n    return (0, _object.computed)(profitKey, profitTypeKey, subtotalKey, function () {\n      const profit = (0, _object.get)(this, profitKey);\n      const profitType = (0, _object.get)(this, profitTypeKey);\n      const subtotal = (0, _object.get)(this, subtotalKey);\n      switch (profitType) {\n        case 'dollar':\n          return profit / (profit + subtotal) || 0;\n        case 'margin':\n          return profit;\n        case 'markup':\n          return 1 - 1 / (profit + 1);\n        default:\n          return 0;\n      }\n    });\n  }\n  function generateMarkup(profitKey, profitTypeKey, subtotalKey) {\n    return (0, _object.computed)(profitKey, profitTypeKey, subtotalKey, function () {\n      const profit = (0, _object.get)(this, profitKey);\n      const profitType = (0, _object.get)(this, profitTypeKey);\n      const subtotal = (0, _object.get)(this, subtotalKey);\n      switch (profitType) {\n        case 'dollar':\n          return profit / subtotal;\n        case 'margin':\n          return profit / (1 - profit);\n        case 'markup':\n          return profit;\n        default:\n          return 0;\n      }\n    });\n  }\n});","define(\"portal/controllers/entity/builda-price/operations/outgoing/report-builder/pdf\", [\"exports\", \"@ember/controller\", \"@ember/object\", \"@ember/object/computed\", \"ember-local-storage\", \"@glimmer/tracking\", \"portal/utils/download\", \"@ember/service\", \"portal/utils/report-builder-attachments-bundle\", \"portal/utils/report-builder-mark-as-reported\", \"portal/config/environment\"], function (_exports, _controller, _object, _computed, _emberLocalStorage, _tracking, _download, _service, _reportBuilderAttachmentsBundle, _reportBuilderMarkAsReported, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/object\",0,\"@ember/object/computed\",0,\"ember-local-storage\",0,\"@glimmer/tracking\",0,\"portal/utils/download\",0,\"@ember/service\",0,\"portal/utils/report-builder-attachments-bundle\",0,\"portal/utils/report-builder-mark-as-reported\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const HTML_TO_PDF_SERVICE_URL = _environment.default.urls.htmlToPdfService;\n  let PdfController = _exports.default = (_dec = (0, _emberLocalStorage.storageFor)('settings'), _dec2 = (0, _computed.alias)('persistedSettings.reportBuilder:markReportedOnExport'), _dec3 = (0, _computed.alias)('persistedSettings.reportBuilder:includeAttachmentsOnExport'), _dec4 = (0, _computed.alias)('session.data.authenticated.access_token'), _class = class PdfController extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"session\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"isDownloading\", _descriptor4, this);\n      _initializerDefineProperty(this, \"downloaded\", _descriptor5, this);\n      _initializerDefineProperty(this, \"persistedSettings\", _descriptor6, this);\n      _initializerDefineProperty(this, \"markReportedOnExport\", _descriptor7, this);\n      _initializerDefineProperty(this, \"includeAttachmentsOnExport\", _descriptor8, this);\n      _initializerDefineProperty(this, \"_portalApiToken\", _descriptor9, this);\n      _defineProperty(this, \"crumbStack\", [{\n        route: 'entity.builda-price.operations.outgoing.report-builder',\n        pageTitle: this.intl.t('common.Report builder')\n      }, {\n        pageTitle: this.intl.t('entity.builda-price.operations.outgoing.report-builder.pdf.PDF export')\n      }]);\n    }\n    async download() {\n      try {\n        if (this.markReportedOnExport) {\n          const ok = (0, _reportBuilderMarkAsReported.confirmMarkAsReported)(this.model);\n          if (!ok) return;\n        }\n        this.isDownloading = true;\n        const htmlContent = document.querySelector('.pdf-wrapper').outerHTML;\n        const body = {\n          htmlContent,\n          includeMargins: true\n        };\n        const options = {\n          method: 'POST',\n          body: JSON.stringify(body),\n          headers: {\n            Accept: 'application/pdf',\n            'Content-Type': 'application/json'\n          }\n        };\n        const res = await fetch(HTML_TO_PDF_SERVICE_URL, options);\n        const blob = await res.blob();\n\n        // do this first otherwise people might leave the tab once the PDF is downloaded\n        if (this.markReportedOnExport) await (0, _reportBuilderMarkAsReported.markSelectedItemsAsReported)(this.model, this.notifications);\n        const actions = [];\n        actions.push((0, _download.download)(blob, 'report.pdf', 'application/pdf'));\n        if (this.includeAttachmentsOnExport) {\n          actions.push((0, _reportBuilderAttachmentsBundle.default)(this.model));\n        }\n        await Promise.all(actions);\n        this.downloaded = true;\n      } catch (error) {\n        throw error;\n      } finally {\n        this.isDownloading = false;\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"isDownloading\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"downloaded\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"persistedSettings\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"markReportedOnExport\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"includeAttachmentsOnExport\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"_portalApiToken\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"download\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"download\"), _class.prototype), _class);\n});","define(\"portal/controllers/entity/builda-price/operations/products\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\", \"@ember/runloop\", \"portal/config/environment\", \"ember-changeset\", \"portal/utils/search-filter\"], function (_exports, _asyncArrowRuntime, _controller, _tracking, _object, _service, _runloop, _environment, _emberChangeset, _searchFilter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"@ember/runloop\",0,\"portal/config/environment\",0,\"ember-changeset\",0,\"portal/utils/search-filter\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor4, this);\n      _initializerDefineProperty(this, \"portalApiV2\", _descriptor5, this);\n      _initializerDefineProperty(this, \"numberFormat\", _descriptor6, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor7, this);\n      _initializerDefineProperty(this, \"isAddingProduct\", _descriptor8, this);\n      _initializerDefineProperty(this, \"isDeletingProducts\", _descriptor9, this);\n      _initializerDefineProperty(this, \"isEditingProduct\", _descriptor0, this);\n      _initializerDefineProperty(this, \"pageIndex\", _descriptor1, this);\n      _initializerDefineProperty(this, \"pageSize\", _descriptor10, this);\n      _initializerDefineProperty(this, \"productChangeSet\", _descriptor11, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor12, this);\n      _initializerDefineProperty(this, \"searchTerm\", _descriptor13, this);\n      _initializerDefineProperty(this, \"selectProductIds\", _descriptor14, this);\n      _initializerDefineProperty(this, \"selectedProductId\", _descriptor15, this);\n      _initializerDefineProperty(this, \"sortBy\", _descriptor16, this);\n      _initializerDefineProperty(this, \"sortDirection\", _descriptor17, this);\n      _initializerDefineProperty(this, \"supplier\", _descriptor18, this);\n      _defineProperty(this, \"suppliers\", []);\n      _defineProperty(this, \"suppliersFilter\", undefined);\n      _defineProperty(this, \"suppliersPage\", undefined);\n      _defineProperty(this, \"suppliersPageSize\", 10);\n      _defineProperty(this, \"queryParams\", ['pageSize', 'pageIndex', 'sortBy', 'sortDirection', 'searchTerm', 'supplier']);\n      _defineProperty(this, \"onChangeSearchTerm\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSearchTerm, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onChangeSearchTerm\", null));\n      _defineProperty(this, \"onAddProduct\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (product) {\n          try {\n            yield this.store.createRecord('entity-product', {\n              ...product,\n              entity: this.sessionData.entity\n            }).save();\n            this.isAddingProduct = false;\n            yield this.updateProductList.perform();\n          } catch (error) {\n            if (error.errors[0].status === '409') this.notifications.warning(this.intl.t('shared.notification.Product already exists'));\n          }\n        }\n      }), null, \"onAddProduct\", null));\n      _defineProperty(this, \"onSaveProduct\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (productChangeSet) {\n          try {\n            yield productChangeSet.save();\n            this.isEditingProduct = false;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongWhileSavingProduct'),\n              error\n            });\n          }\n          yield this.updateProductList.perform();\n        }\n      }), null, \"onSaveProduct\", null));\n      _defineProperty(this, \"updateProductList\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.model.products.perform(Number(this.model.pageSize), Number(this.model.pageIndex), this.model.sortBy, this.model.sortDirection, this.model.searchTerm);\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongWhileReloadProducts'),\n              error\n            });\n          }\n        }\n      }), null, \"updateProductList\", null));\n      _defineProperty(this, \"deleteProducts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.store.adapterFor('entity-product').deleteBulk('entity-product', [...this.selectProductIds]);\n            this.isDeletingProducts = false;\n            this.selectProductIds = new Set();\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongWhileDeletingProducts'),\n              error\n            });\n          }\n          yield this.updateProductList.perform();\n        }\n      }), null, \"deleteProducts\", null));\n      _defineProperty(this, \"loadMoreSuppliers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (searchTerm) {\n          try {\n            const suppliersFilter = {\n              and: [{\n                field: 'entity',\n                operator: 'EQ',\n                value: this.sessionData.entity.id\n              }]\n            };\n            if (searchTerm?.length) {\n              suppliersFilter.and.push((0, _searchFilter.default)(['name'], searchTerm, 'operator'));\n            }\n            if (JSON.stringify(suppliersFilter) !== JSON.stringify(this.suppliersFilter)) {\n              this.suppliersPage = undefined;\n              this.suppliersFilter = suppliersFilter;\n              this.suppliers = [];\n            }\n            if (this.suppliersPage && !this.suppliersPage?.hasNextPage) return this.suppliers;\n            const nextPageNumber = (this.suppliersPage?.currentPage || 0) + 1;\n            const nextPage = yield this.portalApiV2.authGet('/search-suppliers', {\n              filter: suppliersFilter,\n              pageSize: this.suppliersPageSize,\n              page: nextPageNumber,\n              orderBy: 'name',\n              orderByDirection: 'desc'\n            });\n            this.suppliersPage = nextPage.pagination;\n            this.suppliers = [...this.suppliers, ...nextPage.data];\n            return this.suppliers;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongLoadingMoreSuppliers'),\n              error\n            });\n          }\n        }\n      }), {\n        restartable: true\n      }, \"loadMoreSuppliers\", null));\n    }\n    get products() {\n      return this.model.products.last.value || [];\n    }\n    get isLoading() {\n      return this.model.products.isRunning || this.deleteProducts.isRunning || this.onSaveProduct.isRunning;\n    }\n    get supplierChangeSet() {\n      return (0, _emberChangeset.Changeset)({\n        supplierName: this.supplier\n      });\n    }\n    updateSearchTerm(value) {\n      this.selectProductIds = new Set();\n      this.pageIndex = 1;\n      this.searchTerm = value;\n    }\n    onChangePageIndex(pageIndex) {\n      this.pageIndex = pageIndex;\n    }\n    onChangePageSize(pageSize) {\n      this.pageSize = pageSize;\n    }\n    setPrice(price) {\n      this.productChangeSet.set('unitPrice', price);\n    }\n    get totalRecords() {\n      if (this.model.products.isRunning) return 0;\n      return this.products.meta.totalRecords;\n    }\n    onSelectProduct(_row, col, e) {\n      if (e.target.checked) {\n        this.selectProductIds.add(col.extraData.productId);\n      } else {\n        this.selectProductIds.delete(col.extraData.productId);\n      }\n\n      // Set is not supported by tracked\n      // eslint-disable-next-line no-self-assign\n      this.selectProductIds = this.selectProductIds;\n    }\n    onClickProductName(_row, col) {\n      this.selectedProductId = col.extraData.productId;\n      this.isEditingProduct = true;\n    }\n    onSelectCurrentPageProducts(_row, col, e) {\n      const selectedProductIds = new Set();\n      if (e.target.checked) {\n        this.products.forEach(p => {\n          selectedProductIds.add(p.id);\n        });\n      }\n      this.selectProductIds = selectedProductIds;\n    }\n    onCreateProduct() {\n      this.selectedProductId = null;\n      this.isEditingProduct = true;\n    }\n    sortColumn(_row, col) {\n      if (this.sortBy !== col.value) {\n        this.sortBy = col.value;\n        this.sortDirection = 'asc';\n        return;\n      }\n      this.sortBy = col.value;\n      if (this.sortDirection === 'asc') {\n        this.sortDirection = 'desc';\n      } else if (this.sortDirection === 'desc') {\n        this.sortDirection = undefined;\n      } else {\n        this.sortDirection = 'asc';\n      }\n    }\n    get productTableHeader() {\n      if (this.model.products.isRunning) return [];\n      const productHeader = [{\n        value: this.intl.t('common.Product'),\n        iconName: this.sortBy === 'Product' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left'\n      }, {\n        value: this.intl.t('common.Supplier'),\n        iconName: this.sortBy === 'Supplier' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left'\n      }, {\n        value: this.intl.t('common.SKU'),\n        iconName: this.sortBy === 'SKU' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left'\n      }, {\n        value: this.intl.t('common.Unit'),\n        iconName: this.sortBy === 'Unit' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left'\n      }, {\n        value: this.intl.t('common.Unit price'),\n        iconName: this.sortBy === 'Unit price' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-right'\n      }];\n      if (this.isEditable && this.products.length) productHeader.unshift({\n        type: 'CHECKBOX_INPUT',\n        colClass: 'text-center align-middle',\n        value: Boolean(this.selectProductIds.size === this.products.length),\n        isPartiallySelected: Boolean(this.selectProductIds.size && this.selectProductIds.size !== this.products.length),\n        onInputChange: this.onSelectCurrentPageProducts\n      });\n      return productHeader;\n    }\n    get showFilters() {\n      return this.productTableData?.length || this.supplierChangeSet.get('supplierName') || this.searchTerm?.length;\n    }\n    get productTableData() {\n      if (this.model.products.isRunning) return [];\n      return this.products.map(product => {\n        const productData = [{\n          colClass: 'text-left align-middle',\n          value: product.supplierName\n        }, {\n          colClass: 'text-left align-middle',\n          value: product.sku\n        }, {\n          colClass: 'text-left align-middle',\n          value: product.unit\n        }, {\n          colClass: 'text-right align-middle',\n          value: this.numberFormat.format(product.unitPrice, {\n            style: 'currency',\n            dashZero: true\n          })\n        }];\n        if (this.isEditable) {\n          productData.unshift({\n            type: 'BUTTON',\n            textClass: 'btn btn-link',\n            value: product.description,\n            onClickButton: this.onClickProductName,\n            extraData: {\n              productId: product.id\n            }\n          });\n          productData.unshift({\n            type: 'CHECKBOX_INPUT',\n            colClass: 'text-center align-middle',\n            value: this.selectProductIds.has(product.id),\n            onInputChange: this.onSelectProduct,\n            extraData: {\n              productId: product.id\n            }\n          });\n        } else {\n          productData.unshift({\n            colClass: 'align-middle',\n            value: product.description\n          });\n        }\n        return {\n          rowData: productData\n        };\n      });\n    }\n    get isEditable() {\n      return this.newFeatureFlags.includesFeatureFlags(this.model.entity, 'canManageProducts');\n    }\n    setSupplier(value) {\n      const supplierName = value?.supplierName;\n      this.supplier = supplierName;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"portalApiV2\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"numberFormat\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"isAddingProduct\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"isDeletingProducts\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"isEditingProduct\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"pageIndex\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"pageSize\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"productChangeSet\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.searchTerm;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"searchTerm\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"selectProductIds\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return new Set();\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, \"selectedProductId\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, \"sortBy\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, \"sortDirection\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, \"supplier\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"onChangePageIndex\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onChangePageIndex\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onChangePageSize\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onChangePageSize\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setPrice\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setPrice\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onSelectProduct\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onSelectProduct\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onClickProductName\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onClickProductName\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onSelectCurrentPageProducts\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onSelectCurrentPageProducts\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onCreateProduct\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onCreateProduct\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"sortColumn\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"sortColumn\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setSupplier\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setSupplier\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects\", [\"exports\", \"@ember/controller\", \"@ember/service\"], function (_exports, _controller, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _service.inject)(), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _controller, _tracking, _object, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('searchString', 'model.projects.value.@each.sortIndex'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor2, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor3, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor4, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _initializerDefineProperty(this, \"store\", _descriptor7, this);\n      _initializerDefineProperty(this, \"portalApiV2\", _descriptor8, this);\n      _defineProperty(this, \"queryParams\", ['status']);\n      _defineProperty(this, \"status\", 'OPEN');\n      _defineProperty(this, \"attentionSafetyLogoSrc\", '/assets/images/logos/attention-safety-full-50259a0b942c7c43389c731ad3822e2f.svg');\n      _defineProperty(this, \"projectValidationMap\", {\n        name: (_key, val) => val.length > 3 || this.intl.t('validation.Name'),\n        startDate: (_key, val) => Boolean(val) || this.intl.t('validation.Start date'),\n        contractType: (_key, val) => Boolean(val) || this.intl.t('validation.Please select a contract type')\n      });\n      _defineProperty(this, \"contractType\", [{\n        value: 'COST_PLUS',\n        label: this.intl.t('shared.task.Cost plus')\n      }, {\n        value: 'FIXED_PRICE',\n        label: this.intl.t('shared.task.Fixed price')\n      }]);\n      _initializerDefineProperty(this, \"newProjectData\", _descriptor9, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor0, this);\n      _initializerDefineProperty(this, \"addressSuggestions\", _descriptor1, this);\n      _defineProperty(this, \"onAddressChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (val) {\n          if (!val.trim().length) {\n            this.addressSuggestions = [];\n            return;\n          }\n          try {\n            this.addressSuggestions = yield this.portalApiV2.authPost('/places/search', {\n              input: val\n            });\n          } catch {\n            this.addressSuggestions = [];\n          }\n        }\n      }), null, \"onAddressChange\", null));\n      _defineProperty(this, \"onProjectListUpdate\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projectList) {\n          try {\n            const body = [];\n            projectList.forEach((project, index) => {\n              body.push({\n                projectId: project.id,\n                sortIndex: index\n              });\n              project.sortIndex = index;\n            });\n            yield this.buildaPrice.updateProjectList(body);\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.Something went wrong ordering projects'),\n              error\n            });\n          }\n        }\n      }), {\n        restartable: true\n      }, \"onProjectListUpdate\", null));\n      _defineProperty(this, \"createProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projectChangeset) {\n          yield projectChangeset.validate();\n          if (projectChangeset.isInvalid) {\n            this.notifications.warning(this.intl.t('shared.notification.Please complete the project information'));\n            return;\n          }\n          try {\n            // commit the changes\n            projectChangeset.execute();\n            const project = this.store.createRecord('project', {\n              entity: this.sessionData.entity,\n              sortIndex: 0,\n              status: 'OPEN',\n              name: this.newProjectData.name,\n              projectReference: this.newProjectData.projectReference,\n              address: this.newProjectData.address,\n              lat: this.newProjectData.lat,\n              lng: this.newProjectData.lng,\n              description: this.newProjectData.description,\n              contractType: this.newProjectData.contractType,\n              startDate: this.newProjectData.startDate ? new Date(this.newProjectData.startDate) : new Date()\n            });\n            yield project.save();\n            const body = [];\n            this.model.projects.value.forEach(project => {\n              const sortIndex = project.sortIndex + 1;\n              body.push({\n                projectId: project.id,\n                sortIndex\n              });\n              project.sortIndex = sortIndex;\n            });\n            yield this.buildaPrice.updateProjectList(body);\n            this.notifications.success(this.intl.t('entity.builda-price.projects.Successfully created new a project'));\n            if (this.newProjectData.openAndSave) {\n              this.closeNewProjectForm();\n              this.router.transitionTo('entity.builda-price.projects.project', project.id);\n              return;\n            }\n            (0, _object.set)(this, 'model.projects.value', [project, ...this.model.projects.value]);\n            this.closeNewProjectForm();\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.somethingWentWrongWhileCreatingAProject'),\n              error\n            });\n          }\n        }\n      }), null, \"createProject\", null));\n    }\n    openNewProjectForm() {\n      this.addressSuggestions = [];\n      this.newProjectData = {\n        name: '',\n        address: '',\n        lat: null,\n        lng: null,\n        projectReference: '',\n        description: '',\n        startDate: '',\n        // being passed to \"date\" input\n        contractType: 'COST_PLUS',\n        openAndSave: false\n      };\n    }\n    get canManageProjects() {\n      return this.newFeatureFlags.includesFeatureFlags('canManageProjects');\n    }\n    closeNewProjectForm() {\n      this.newProjectData = null;\n      this.addressSuggestions = [];\n    }\n    async setAddress(projectModel, suggestion) {\n      this.addressSuggestions = [];\n      if (!suggestion) return;\n      const {\n        address,\n        id\n      } = suggestion;\n      projectModel.address = address;\n      try {\n        const {\n          latitude,\n          longitude\n        } = await this.portalApiV2.authGet(`/places/location/${id}`);\n        projectModel.lat = latitude;\n        projectModel.lng = longitude;\n      } catch {\n        projectModel.lat = null;\n        projectModel.lng = null;\n      }\n    }\n    get filteredProjects() {\n      return this.model.projects.value?.filter(project => {\n        const matchString = ((project.name || '') + (project.address || '') + (project.status || '') + (project.projectReference || '')).toLowerCase();\n        return matchString.includes(this.searchString.toLowerCase());\n      }).sort((a, b) => a.sortIndex - b.sortIndex) || [];\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"portalApiV2\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"newProjectData\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"addressSuggestions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"openNewProjectForm\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"openNewProjectForm\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"closeNewProjectForm\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"closeNewProjectForm\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setAddress\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setAddress\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"filteredProjects\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"filteredProjects\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/documents\", [\"exports\", \"@ember/controller\", \"@ember/object\", \"@ember/service\"], function (_exports, _controller, _object, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/object\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"store\", _descriptor4, this);\n    }\n    get isLoading() {\n      return this.model.project.isRunning || this.model.attachments.isRunning;\n    }\n    get project() {\n      return this.model.project.last.value;\n    }\n    get isEditable() {\n      return this.newFeatureFlags.includesFeatureFlags(this.project, 'canManageFileStorage');\n    }\n    get attachments() {\n      // if you can edit the attachments use the relationship directly instead of the model result\n      if (this.isEditable) return this.model.project.last.value.myAttachments;\n      return this.model.attachments.last.value;\n    }\n    async onUploadComplete({\n      attachments,\n      validationErrors,\n      error\n    }) {\n      try {\n        if (error) throw error;\n        const attachmentResults = await Promise.all(attachments.map(a => a.save({\n          adapterOptions: {\n            meta: {\n              data: a.data\n            }\n          }\n        })));\n        await Promise.all(attachmentResults.map(async attachment => {\n          this.store.createRecord('link-attachment-to-project', {\n            project: this.project,\n            attachment\n          }).save();\n        }));\n        validationErrors.forEach(error => this.notifications.error(error));\n      } catch (error) {\n        this.notifications.error({\n          message: this.intl.t('shared.notification.somethingWentWrongWhileSavingAttachments'),\n          error: error\n        });\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"onUploadComplete\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onUploadComplete\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/estimates\", [\"exports\", \"@ember/controller\"], function (_exports, _controller) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\"eaimeta@70e063a35619d71f\n  class _default extends _controller.default {}\n  _exports.default = _default;\n});","define(\"portal/controllers/entity/builda-price/projects/project/estimates/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\", \"portal/services/pricing\"], function (_exports, _asyncArrowRuntime, _controller, _tracking, _object, _service, _pricing) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25, _descriptor26, _descriptor27, _descriptor28;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"portal/services/pricing\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('model.estimates.last.value.[]', 'searchString'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _initializerDefineProperty(this, \"pricing\", _descriptor4, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _initializerDefineProperty(this, \"store\", _descriptor7, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor8, this);\n      _initializerDefineProperty(this, \"deletingEstimateData\", _descriptor9, this);\n      _initializerDefineProperty(this, \"newEstimateData\", _descriptor0, this);\n      _initializerDefineProperty(this, \"editingEstimateData\", _descriptor1, this);\n      _initializerDefineProperty(this, \"duplicateEstimateData\", _descriptor10, this);\n      _initializerDefineProperty(this, \"merchantList\", _descriptor11, this);\n      _initializerDefineProperty(this, \"importTemplateData\", _descriptor12, this);\n      _initializerDefineProperty(this, \"templates\", _descriptor13, this);\n      _initializerDefineProperty(this, \"selectedTemplates\", _descriptor14, this);\n      _initializerDefineProperty(this, \"importMaterialsData\", _descriptor15, this);\n      _initializerDefineProperty(this, \"quotes\", _descriptor16, this);\n      _initializerDefineProperty(this, \"selectedQuote\", _descriptor17, this);\n      _initializerDefineProperty(this, \"estimateForGenerateTasks\", _descriptor18, this);\n      _defineProperty(this, \"queryParams\", ['filter']);\n      _initializerDefineProperty(this, \"selectedUnlinkedEstimates\", _descriptor19, this);\n      _initializerDefineProperty(this, \"showUnlinkedEstimatesDialog\", _descriptor20, this);\n      _initializerDefineProperty(this, \"groupLabourAndMaterialBySubheading\", _descriptor21, this);\n      _initializerDefineProperty(this, \"groupSubcontractorsBySubheading\", _descriptor22, this);\n      _initializerDefineProperty(this, \"groupMiscBySubheading\", _descriptor23, this);\n      _initializerDefineProperty(this, \"groupMiscByHeading\", _descriptor24, this);\n      _initializerDefineProperty(this, \"groupMiscByItems\", _descriptor25, this);\n      _initializerDefineProperty(this, \"groupOverheadBySubheading\", _descriptor26, this);\n      _initializerDefineProperty(this, \"groupOverheadByHeading\", _descriptor27, this);\n      _initializerDefineProperty(this, \"groupOverheadByItems\", _descriptor28, this);\n      _defineProperty(this, \"status\", [{\n        value: 'DRAFT',\n        label: this.intl.t('common.Draft')\n      }, {\n        value: 'APPROVED',\n        label: this.intl.t('common.Approved')\n      }, {\n        value: 'REJECTED',\n        label: this.intl.t('common.Rejected')\n      }, {\n        value: 'IMPORTED',\n        label: this.intl.t('common.Imported')\n      }]);\n      _defineProperty(this, \"createNewEstimateValidationMap\", {\n        name: (_key, val) => val.length > 3 || this.intl.t('validation.Please provide a name for the estimate'),\n        merchant: (_key, val) => Boolean(val) || this.intl.t('validation.estimateMerchant')\n      });\n      _defineProperty(this, \"editEstimateValidationMap\", {\n        name: (_key, val) => val.length > 3 || this.intl.t('validation.Please provide a name for the estimate'),\n        status: (_key, val) => Boolean(val) || this.intl.t('validation.Please provide a status for the estimate')\n      });\n      _defineProperty(this, \"openNewEstimateForm\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          this.newEstimateData = {\n            name: '',\n            merchant: '',\n            dateCreated: '',\n            openAndSave: false\n          };\n          try {\n            const {\n              merchantList\n            } = yield this.pricing.getMerchantList();\n            this.merchantList = merchantList.map(merchant => ({\n              value: `${merchant.id}_${merchant.cdeptname}`,\n              label: merchant.cdeptname\n            }));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.estimates.Something went wrong loading merchants'),\n              error\n            });\n          }\n        }\n      }), null, \"openNewEstimateForm\", null));\n      _defineProperty(this, \"createEstimate\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (estimateChangeset) {\n          yield estimateChangeset.validate();\n          if (estimateChangeset.isInvalid) {\n            this.notifications.warning(this.intl.t('entity.builda-price.projects.project.estimates.Please complete the estimate information'));\n            return;\n          }\n          try {\n            estimateChangeset.execute();\n            const [pricingMerchantId, pricingMerchantName] = this.newEstimateData.merchant.split('_');\n            const result = yield this.pricing.createPrice({\n              name: this.newEstimateData.name,\n              address: this.model.project.last.value.address,\n              status: 'DRAFT',\n              projectId: this.model.project.last.value.id,\n              pricingMerchantId: pricingMerchantId,\n              pricingMerchantName: pricingMerchantName,\n              entityId: this.sessionData.entity.id\n            });\n            const newEstimate = yield this.store.findRecord('estimate', result.id);\n            this.model.estimates.last.value.pushObject(newEstimate);\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.estimates.Successfully created new estimate'));\n            if (this.newEstimateData.openAndSave) {\n              this.onEstimateRowClick(newEstimate.id);\n            }\n            this.newEstimateData = null;\n          } catch (error) {\n            let message = this.intl.t('entity.builda-price.projects.project.estimates.somethingWentWrongCreatingTheEstimate');\n            if (error instanceof _pricing.PortalPricingError) {\n              message = error.message;\n            }\n            this.notifications.error({\n              message,\n              error\n            });\n          }\n        }\n      }), null, \"createEstimate\", null));\n      _defineProperty(this, \"editEstimate\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (estimateChangeset) {\n          yield estimateChangeset.validate();\n          if (estimateChangeset.isInvalid) {\n            this.notifications.warning(this.intl.t('entity.builda-price.projects.project.estimates.Please complete the estimate information'));\n            return;\n          }\n          try {\n            estimateChangeset.execute();\n            yield this.pricing.editPrice({\n              name: this.editingEstimateData.name,\n              address: this.model.project.last.value.address,\n              status: this.editingEstimateData.status,\n              pricingJobId: this.editingEstimateData.pricingJobId,\n              estimateId: this.editingEstimateData.id,\n              projectId: this.model.project.last.value.id\n            });\n            yield this.store.findRecord('estimate', this.editingEstimateData.id);\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.estimates.Edited estimate successfully'));\n            this.editingEstimateData = null;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.estimates.somethingWentWrongEditingTheEstimate'),\n              error\n            });\n          }\n        }\n      }), null, \"editEstimate\", null));\n      _defineProperty(this, \"duplicateEstimate\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            const result = yield this.pricing.duplicatePrice({\n              pricingJobId: this.duplicateEstimateData.pricingJobId,\n              estimateId: this.duplicateEstimateData.id,\n              name: this.duplicateEstimateData.name + '_copy',\n              attachToProject: Boolean(this.attachToProject)\n            });\n            if (this.attachToProject) {\n              const duplicatedEstimate = yield this.store.findRecord('estimate', result.id);\n              this.model.estimates.last.value.pushObject(duplicatedEstimate);\n            } else {\n              this.model.unlinkedEstimates.perform();\n            }\n            yield this.notifications.success(this.intl.t('entity.builda-price.projects.project.estimates.Duplicated estimate successfully'));\n            this.duplicateEstimateData = null;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.estimates.somethingWentWrongDuplicatingTheEstimate'),\n              error\n            });\n          }\n        }\n      }), null, \"duplicateEstimate\", null));\n      _defineProperty(this, \"deleteEstimate\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.pricing.deletePrice({\n              pricingJobId: this.deletingEstimateData.pricingJobId,\n              estimateId: this.deletingEstimateData.id,\n              projectId: this.model.project.last.value.id\n            });\n            this.store.unloadRecord(this.deletingEstimateData);\n            this.model.estimates.last.value.removeObject(this.deletingEstimateData);\n            yield this.notifications.success(this.intl.t('entity.builda-price.projects.project.estimates.Deleted estimate successfully'));\n            this.deletingEstimateData = null;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.estimates.somethingWentWrongDeletingTheEstimate'),\n              error\n            });\n          }\n        }\n      }), null, \"deleteEstimate\", null));\n      _defineProperty(this, \"getTemplateOptions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (estimate) {\n          try {\n            this.importTemplateData = estimate;\n            const status = yield this.pricing.getImportStatus({\n              pricingJobId: estimate.pricingJobId\n            });\n            if (!status.canImport) {\n              this.notifications.warning(this.intl.t('entity.builda-price.projects.project.estimates.youCannotImportTemplatesForDuplicatedEstimates'));\n              this.importTemplateData = null;\n              return;\n            }\n            const result = yield this.pricing.getTemplates({\n              merchantId: estimate.pricingMerchantId\n            });\n            if (result) {\n              this.templates = result;\n            }\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.estimates.somethingWentWrongWhileLoadingTemplates'),\n              error\n            });\n          }\n        }\n      }), null, \"getTemplateOptions\", null));\n      _defineProperty(this, \"importSelectedUnlinkedEstimates\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            if (!this.selectedUnlinkedEstimates) {\n              this.notifications.warning(this.intl.t('entity.builda-price.projects.project.estimates.Please select a template'));\n              return;\n            }\n            yield Promise.all(this.selectedUnlinkedEstimates.map(async estimate => {\n              let status = estimate.status?.toUpperCase() || 'DRAFT';\n              if (estimate.status?.toUpperCase() === 'SUBMITTED') status = 'APPROVED';\n              if (estimate.status?.toUpperCase() === 'CLOSED') status = 'REJECTED';\n              const newEstimate = this.store.createRecord('estimate', {\n                pricingMerchantName: estimate.pricingMerchantName,\n                pricingMerchantId: estimate.pricingMerchantId,\n                name: estimate.name,\n                project: this.model.project.last.value,\n                entity: this.sessionData.entity,\n                status,\n                pricingJobId: estimate.pricingJobId\n              });\n              await newEstimate.save();\n              this.model.estimates.last.value.pushObject(newEstimate);\n            }));\n\n            // reload the not imported estimates\n            yield this.model.unlinkedEstimates.perform(this.model.project.last.value.id);\n            this.destroyImportUnlinkedEstimatesData();\n            yield this.notifications.success(this.intl.t('entity.builda-price.projects.project.estimates.Imported estimates successfully'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.estimates.somethingWentWrongWhileImportingEstimates'),\n              error\n            });\n          }\n        }\n      }), null, \"importSelectedUnlinkedEstimates\", null));\n      _defineProperty(this, \"importTemplates\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            if (!this.selectedTemplates) {\n              this.notifications.warning(this.intl.t('entity.builda-price.projects.project.estimates.Please select a template'));\n              return;\n            }\n            const selectedTemplatesString = this.selectedTemplates.map(selectedItem => selectedItem.id).join(',');\n            yield this.pricing.addTemplates({\n              merchantId: this.importTemplateData.pricingMerchantId,\n              pricingJobId: this.importTemplateData.pricingJobId,\n              selectedTemplateIds: selectedTemplatesString\n            });\n            this.selectedTemplates = null;\n            this.importTemplateData = null;\n            yield this.notifications.success(this.intl.t('entity.builda-price.projects.project.estimates.Imported templates successfully'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.estimates.somethingWentWrongWhileImportingTemplates'),\n              error\n            });\n          }\n        }\n      }), null, \"importTemplates\", null));\n      _defineProperty(this, \"getPreloadedQuotes\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (estimate) {\n          try {\n            this.importMaterialsData = estimate;\n            const status = yield this.pricing.getImportStatus({\n              pricingJobId: estimate.pricingJobId\n            });\n            if (!status.canImport) {\n              this.notifications.warning(this.intl.t('entity.builda-price.projects.project.estimates.youCannotImportMaterialsForDuplicatedEstimates'));\n              this.importMaterialsData = null;\n              return;\n            }\n            const result = yield this.pricing.getPreloadedQuotes({\n              pricingJobId: this.importMaterialsData.pricingJobId\n            });\n            if (result) {\n              this.quotes = result;\n            }\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.estimates.somethingWentWrongWhileLoadingQuotes'),\n              error\n            });\n          }\n        }\n      }), null, \"getPreloadedQuotes\", null));\n      _defineProperty(this, \"importMaterials\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            if (!this.selectedQuote) {\n              this.notifications.warning(this.intl.t('entity.builda-price.projects.project.estimates.pleaseSelectExistingQuoteOrUploadANewFile'));\n              return;\n            }\n\n            // make sure the file is less that 2MB, 2000000 is in bytes\n            if (this.selectedQuote.file) {\n              if (this.selectedQuote.file.size > 2000000) {\n                this.notifications.error(this.intl.t('entity.builda-price.projects.project.estimates.Please upload a file less than 2MB'));\n                return;\n              }\n            }\n\n            //check the file has been uploaded, else proceed with preloaded quotes\n            if (this.selectedQuote.file) {\n              const base64File = yield this.fileToBase64(this.selectedQuote.file);\n              yield this.pricing.importMaterialsFromFile({\n                pricingJobId: this.importMaterialsData.pricingJobId,\n                pricingMerchantId: this.importMaterialsData.pricingMerchantId,\n                pricingMerchantName: this.importMaterialsData.pricingMerchantName.toUpperCase(),\n                jobFile: base64File,\n                jobFileName: this.selectedQuote.file.name,\n                jobFileType: this.selectedQuote.file.type\n              });\n            } else {\n              yield this.pricing.importMaterialsFromQuote({\n                pricingJobId: this.importMaterialsData.pricingJobId,\n                quoteId: this.selectedQuote.id\n              });\n            }\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.estimates.Imported materials successfully'));\n            this.destroyImportMaterialsModal();\n          } catch (error) {\n            this.destroyImportMaterialsModal();\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.estimates.somethingWentWrongWhileImportingMaterials'),\n              error\n            });\n          }\n        }\n      }), null, \"importMaterials\", null));\n      _defineProperty(this, \"generateTasks\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.pricing.createTasksFromEstimate({\n              entityId: this.sessionData.entity.id,\n              pricingJobId: this.estimateForGenerateTasks.pricingJobId,\n              projectId: this.model.project.last.value.id,\n              supplier: this.estimateForGenerateTasks.pricingMerchantName,\n              groupLabourAndMaterialBySubheading: this.groupLabourAndMaterialBySubheading,\n              groupSubcontractorsBySubheading: this.groupSubcontractorsBySubheading,\n              groupMiscByHeading: this.groupMiscByHeading,\n              groupMiscBySubheading: this.groupMiscBySubheading,\n              groupOverheadBySubheading: this.groupOverheadBySubheading,\n              groupOverheadByHeading: this.groupOverheadByHeading\n            });\n            this.estimateForGenerateTasks.status = 'IMPORTED';\n            this.estimateForGenerateTasks.save();\n\n            // reference to the current draft project budget etc may have changed - reload the project\n            yield this.model.project.last.value.reload();\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.estimates.Generated tasks successfully'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.estimates.somethingWentWrongWhileGeneratingTasks'),\n              error\n            });\n          } finally {\n            this.closeGenerateTasks();\n          }\n        }\n      }), null, \"generateTasks\", null));\n    }\n    get deleteMessages() {\n      return [this.intl.t('entity.builda-price.projects.project.estimates.Do you want to delete this estimate')];\n    }\n    get filteredEstimates() {\n      return this.model?.estimates?.last?.value?.filter(estimate => {\n        const matchString = `${estimate.name}${estimate.status}`.toLowerCase();\n        return matchString.includes(this.searchString.toLowerCase());\n      }) || [];\n    }\n    get supportedFileFormats() {\n      return this.importMaterialsData?.pricingMerchantName.toLowerCase() === 'carters' ? '.csv, .xlsx' : '.csv';\n    }\n    noop(event) {\n      event.stopPropagation();\n      event.preventDefault();\n    }\n    onEstimateRowClick(estimateId) {\n      if (this.newFeatureFlags.includesFeatureFlags(this.model.project.last.value, 'canManageEstimates')) {\n        this.router.transitionTo('entity.builda-price.projects.project.estimates.estimate', estimateId);\n      }\n    }\n    openEditEstimateForm(estimate) {\n      this.editingEstimateData = {\n        name: estimate.name,\n        status: estimate.status,\n        pricingJobId: estimate.pricingJobId,\n        id: estimate.id,\n        estimate: estimate\n      };\n    }\n    closeDeleteModal(estimate) {\n      this.deletingEstimateData = null;\n      this.openEditEstimateForm(estimate);\n    }\n    openDeleteModal(estimate) {\n      this.deletingEstimateData = estimate;\n      this.editingEstimateData = null;\n    }\n    onFileUpload(file) {\n      this.selectedQuote = {\n        id: '',\n        quoteNumber: file.name,\n        dateCreated: null,\n        file\n      };\n\n      // close the power-select\n      const element = document.getElementById('labelForImportMaterials');\n      element.click();\n    }\n    async fileToBase64(file) {\n      return new Promise((resolve, reject) => {\n        const reader = new FileReader();\n        reader.readAsDataURL(file);\n        reader.onload = () => resolve(reader.result.split(',').pop());\n        reader.onerror = e => reject(e);\n      });\n    }\n    destroyImportMaterialsModal() {\n      this.importMaterialsData = null;\n      this.selectedQuote = null;\n    }\n    destroyImportUnlinkedEstimatesData() {\n      this.selectedUnlinkedEstimates = null;\n      this.showUnlinkedEstimatesDialog = null;\n    }\n    closeGenerateTasks() {\n      this.estimateForGenerateTasks = false;\n      this.groupLabourAndMaterialBySubheading = false;\n      this.groupSubcontractorsBySubheading = false;\n      this.groupMiscBySubheading = false;\n      this.groupMiscByHeading = false;\n      this.groupMiscByItems = true;\n      this.groupOverheadBySubheading = false;\n      this.groupOverheadByHeading = false;\n      this.groupOverheadByItems = true;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"pricing\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"deletingEstimateData\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"newEstimateData\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"editingEstimateData\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"duplicateEstimateData\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"merchantList\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"importTemplateData\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"templates\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"selectedTemplates\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, \"importMaterialsData\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, \"quotes\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, \"selectedQuote\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, \"estimateForGenerateTasks\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor19 = _applyDecoratedDescriptor(_class2.prototype, \"selectedUnlinkedEstimates\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor20 = _applyDecoratedDescriptor(_class2.prototype, \"showUnlinkedEstimatesDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor21 = _applyDecoratedDescriptor(_class2.prototype, \"groupLabourAndMaterialBySubheading\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor22 = _applyDecoratedDescriptor(_class2.prototype, \"groupSubcontractorsBySubheading\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor23 = _applyDecoratedDescriptor(_class2.prototype, \"groupMiscBySubheading\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor24 = _applyDecoratedDescriptor(_class2.prototype, \"groupMiscByHeading\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor25 = _applyDecoratedDescriptor(_class2.prototype, \"groupMiscByItems\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor26 = _applyDecoratedDescriptor(_class2.prototype, \"groupOverheadBySubheading\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor27 = _applyDecoratedDescriptor(_class2.prototype, \"groupOverheadByHeading\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor28 = _applyDecoratedDescriptor(_class2.prototype, \"groupOverheadByItems\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"filteredEstimates\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"filteredEstimates\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"noop\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"noop\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onEstimateRowClick\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onEstimateRowClick\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"openEditEstimateForm\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"openEditEstimateForm\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"closeDeleteModal\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"closeDeleteModal\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"openDeleteModal\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"openDeleteModal\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onFileUpload\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onFileUpload\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"destroyImportMaterialsModal\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"destroyImportMaterialsModal\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"destroyImportUnlinkedEstimatesData\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"destroyImportUnlinkedEstimatesData\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"closeGenerateTasks\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"closeGenerateTasks\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/financials\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@glimmer/tracking\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _controller, _tracking, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@glimmer/tracking\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"creatingBudgetVersion\", _descriptor5, this);\n      _initializerDefineProperty(this, \"creatingQuoteVersion\", _descriptor6, this);\n      _defineProperty(this, \"createBudgetVersion\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.model.project.last.value.commit({\n              commitBudget: true,\n              commitQuote: false,\n              commitProgress: false,\n              commitScheduling: false\n            });\n            yield this.model.project.last.value.loadBudget();\n            this.creatingBudgetVersion = false;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.financials.somethingWentWrongCreatingABudgetVersion'),\n              error\n            });\n          }\n        }\n      }), null, \"createBudgetVersion\", null));\n      _defineProperty(this, \"createQuoteVersion\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.model.project.last.value.commit({\n              commitBudget: false,\n              commitQuote: true,\n              commitProgress: false,\n              commitScheduling: false\n            });\n            yield this.model.project.last.value.loadQuote();\n            this.creatingQuoteVersion = false;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.financials.somethingWentWrongCreatingAQuoteVersion'),\n              error\n            });\n          }\n        }\n      }), null, \"createQuoteVersion\", null));\n    }\n    get isLoadingBudget() {\n      return this.model.loadBudget.isRunning || this.createBudgetVersion.isRunning;\n    }\n    get isLoadingQuote() {\n      return this.model.loadQuote.isRunning || this.createQuoteVersion.isRunning;\n    }\n    get canManageBudgetVersions() {\n      return this.newFeatureFlags.includesFeatureFlags(this.model.project.last.value, 'canManageBudgetVersions');\n    }\n    get canManageQuoteVersions() {\n      return this.newFeatureFlags.includesFeatureFlags(this.model.project.last.value, 'canManageQuoteVersions');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"creatingBudgetVersion\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"creatingQuoteVersion\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/health-and-safety\", [\"exports\", \"@ember/controller\"], function (_exports, _controller) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\"eaimeta@70e063a35619d71f\n  class _default extends _controller.default {}\n  _exports.default = _default;\n});","define(\"portal/controllers/entity/builda-price/projects/project/people\", [\"exports\", \"@ember/controller\", \"@ember/service\"], function (_exports, _controller, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n    }\n    get canManageProject() {\n      return this.newFeatureFlags.includesFeatureFlags(this.model.project.last.value, 'canManageProjects');\n    }\n    get tabs() {\n      const tabsArray = [];\n      if (this.newFeatureFlags.includesFeatureFlags(this.model.project.last.value, 'canUseUsers')) {\n        tabsArray.push({\n          name: this.intl.t('common.Users'),\n          route: 'entity.builda-price.projects.project.people.users',\n          icon: 'user'\n        });\n      }\n      if (this.newFeatureFlags.includesFeatureFlags(this.model.project.last.value, 'canUseClientPortal', 'canUseUsers')) {\n        tabsArray.push({\n          name: this.intl.t('common.Clients'),\n          route: 'entity.builda-price.projects.project.people.clients',\n          icon: 'user-tie'\n        });\n      }\n      if (this.newFeatureFlags.includesFeatureFlags(this.model.project.last.value, 'canUseSubcontractors')) {\n        tabsArray.push({\n          name: this.intl.t('common.Subcontractors'),\n          route: 'entity.builda-price.projects.project.people.subcontractors',\n          icon: 'hard-hat'\n        });\n      }\n      if (this.newFeatureFlags.includesFeatureFlags(this.model.project.last.value, 'canUseWorkers')) {\n        tabsArray.push({\n          name: this.intl.t('common.Workers'),\n          route: 'entity.builda-price.projects.project.people.workers',\n          icon: 'users'\n        });\n      }\n      return tabsArray;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/people/clients/client\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"@glimmer/tracking\", \"@ember/object\", \"portal/routes/entity/builda-price/projects/project/people/clients/client\"], function (_exports, _asyncArrowRuntime, _controller, _service, _tracking, _object, _client) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.canViewQuotesAttributes = _exports.canViewProgressAttributes = _exports.canViewFileStorageAttributes = _exports.canViewBudgetsAttributes = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"portal/routes/entity/builda-price/projects/project/people/clients/client\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const canViewBudgetsAttributes = _exports.canViewBudgetsAttributes = ['canViewTaskBudgets'];\n  const canViewProgressAttributes = _exports.canViewProgressAttributes = ['canViewTaskProgress'];\n  const canViewQuotesAttributes = _exports.canViewQuotesAttributes = ['canViewTaskQuotes'];\n  const canViewFileStorageAttributes = _exports.canViewFileStorageAttributes = ['canViewFileStorage'];\n  let _class = _exports.default = (_dec = (0, _object.computed)('intl', 'model.basePath', 'model.client.last.value.{fullName,id}'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _initializerDefineProperty(this, \"router\", _descriptor4, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _defineProperty(this, \"permissionSupersededMessage\", this.intl.t('shared.notification.thisOptionIsSupersededByACompanyPermission'));\n      _initializerDefineProperty(this, \"_projectPermissionsVisible\", _descriptor7, this);\n      _initializerDefineProperty(this, \"_schedulingPermissionsVisible\", _descriptor8, this);\n      _initializerDefineProperty(this, \"_reportsPermissionsVisible\", _descriptor9, this);\n      _defineProperty(this, \"deleteClient\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            if (!confirm(this.intl.t('entity.builda-price.projects.project.people.clients.client.removeClientFromProjectConfirm'))) return;\n            // remove all the project and task permissions\n            const taskIds = this.model.project.last.value.hasMany('tasks').ids();\n            const [projectAttributes, taskAttributes] = yield Promise.all([this.store.simpleQuery('user-project-attribute', {\n              user: this.model.client.last.value.id,\n              project: this.model.project.last.value.id\n            }), this.store.simpleQuery('user-task-attribute', {\n              user: this.model.client.last.value.id\n            }).then(utas => utas.toArray().filter(uta => taskIds.includes(uta.belongsTo('task').id())))]);\n            yield Promise.all([...projectAttributes.map(pa => pa.destroyRecord()), ...taskAttributes.map(ta => ta.destroyRecord())]);\n            this.router.transitionTo(`${this.model.basePath}.clients`);\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.people.clients.client.Removed client from project'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.Something went wrong removing the client'),\n              error\n            });\n          }\n        }\n      }), null, \"deleteClient\", null));\n      _defineProperty(this, \"savePermissions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          try {\n            yield changeset.validate();\n            if (changeset.isInvalid) return;\n            const attributesToAdd = new Set();\n            const attributesToRemove = new Set();\n            if (changeset.canViewBudgetFinancialReports) {\n              _client.canViewBudgetReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _client.canViewBudgetReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewBudgetLabourHourReports) {\n              _client.canViewBudgetLabourHourReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _client.canViewBudgetLabourHourReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewChargeupReports) {\n              _client.canViewChargeupReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _client.canViewChargeupReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewCostFinancialReports) {\n              _client.canViewCostReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _client.canViewCostReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewCostLabourHourReports) {\n              _client.canViewCostLabourHourReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _client.canViewCostLabourHourReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewProgressReports) {\n              _client.canViewProgressReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _client.canViewProgressReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewQuoteReports) {\n              _client.canViewQuoteReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _client.canViewQuoteReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewSchedulingReports) {\n              _client.canViewSchedulingReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _client.canViewSchedulingReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewTasks) {\n              _client.canViewTasksAttributes.forEach(attributesToAdd.add, attributesToAdd);\n\n              // if can view task is selected, we need to delete all visibility checks of tasks\n              changeset.set('taskAttributes', []);\n            } else {\n              _client.canViewTasksAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewInvoicingReports) {\n              _client.canViewInvoicingReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _client.canViewInvoicingReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewClientReports) {\n              _client.canViewClientReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _client.canViewClientReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.taskAttributes) {\n              const originalIds = (changeset._content.taskAttributes || []).map(ta => ta.attr.id);\n              const newIds = (changeset.taskAttributes || []).map(ta => ta.attr.id);\n              const toAdd = newIds.filter(id => !originalIds.includes(id));\n              const toRemove = originalIds.filter(id => !newIds.includes(id));\n              toAdd.forEach(attributesToAdd.add, attributesToAdd);\n              toRemove.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            yield this.handleAttributesForClients([...attributesToAdd], [...attributesToRemove]);\n            this.notifications.success(this.intl.t('shared.notification.Successfully saved permissions'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongSavingThePermissions'),\n              error\n            });\n          }\n        }\n      }), null, \"savePermissions\", null));\n    }\n    get isRunning() {\n      return this.model.project.isRunning || this.model.client.isRunning || this.model.permissionsChangeset.isRunning || this.model.taskVisibilityOptions.isRunning || this.model.attributes.isRunning;\n    }\n    get permissionsChangeset() {\n      // The template reads the derived counts before the task has a value, so\n      // degrade to an empty set of permissions rather than throwing.\n      return this.model.permissionsChangeset.last?.value ?? {};\n    }\n    get canViewReports() {\n      const reports = {\n        [this.intl.t('common.Budget')]: [this.permissionsChangeset.canViewBudgetFinancialReports, this.permissionsChangeset.canViewCostFinancialReports],\n        [this.intl.t('common.Chargeup')]: [this.permissionsChangeset.canViewChargeupReports, this.permissionsChangeset.canViewProgressReports, this.permissionsChangeset.canViewQuoteReports],\n        [this.intl.t('shared.report.Forecast breakdown')]: [this.permissionsChangeset.canViewBudgetFinancialReports, this.permissionsChangeset.canViewCostFinancialReports, this.permissionsChangeset.canViewProgressReports, this.permissionsChangeset.canViewQuoteReports],\n        [this.intl.t('common.Labour hours')]: [this.permissionsChangeset.canViewBudgetLabourHourReports, this.permissionsChangeset.canViewCostLabourHourReports, this.permissionsChangeset.canViewProgressReports],\n        [this.intl.t('common.Position')]: [this.permissionsChangeset.canViewBudgetFinancialReports, this.permissionsChangeset.canViewBudgetLabourHourReports, this.permissionsChangeset.canViewCostFinancialReports, this.permissionsChangeset.canViewCostLabourHourReports, this.permissionsChangeset.canViewProgressReports, this.permissionsChangeset.canViewQuoteReports, this.permissionsChangeset.canViewChargeupReports],\n        [this.intl.t('common.Profit margins')]: [this.permissionsChangeset.canViewBudgetFinancialReports, this.permissionsChangeset.canViewCostFinancialReports, this.permissionsChangeset.canViewProgressReports, this.permissionsChangeset.canViewChargeupReports],\n        [this.intl.t('common.Quote')]: [this.permissionsChangeset.canViewQuoteReports, this.permissionsChangeset.canViewChargeupReports],\n        [this.intl.t('shared.report.Work in progress')]: [this.permissionsChangeset.canViewBudgetFinancialReports, this.permissionsChangeset.canViewCostFinancialReports, this.permissionsChangeset.canViewProgressReports, this.permissionsChangeset.canViewQuoteReports],\n        [this.intl.t('common.Invoicing')]: [this.permissionsChangeset.canViewQuoteReports],\n        [this.intl.t('common.Cost to complete')]: [this.permissionsChangeset.canViewClientReports || this.permissionsChangeset.canViewQuoteReports && this.permissionsChangeset.canViewProgressReports && this.permissionsChangeset.canViewChargeupReports && this.permissionsChangeset.canViewInvoicingReports]\n      };\n      const allowedReports = Object.keys(reports).filter(key => reports[key].every(p => p));\n      if (!allowedReports.length) return '';\n      return allowedReports.join(', ');\n    }\n    get crumbStack() {\n      const paths = [{\n        route: `${this.model.basePath}.clients`,\n        pageTitle: this.intl.t('common.Clients')\n      }, {\n        route: `${this.model.basePath}.clients`,\n        model: this.model.client.last.value.id,\n        pageTitle: this.model.client.last.value.fullName\n      }];\n      return paths;\n    }\n    get projectPermissionsCount() {\n      return [this.permissionsChangeset.canViewTasks].filter(attribute => attribute).length + (this.permissionsChangeset.taskAttributes?.length || 0);\n    }\n    get projectPermissionsVisible() {\n      if (this._projectPermissionsVisible != null) return this._projectPermissionsVisible;\n      return this.projectPermissionsCount;\n    }\n    set projectPermissionsVisible(value) {\n      this._projectPermissionsVisible = value;\n    }\n    get canSeeTaskVisibilityChecks() {\n      return this.permissionsChangeset.canViewTasks;\n    }\n    get schedulingPermissionsCount() {\n      return [this.permissionsChangeset.canViewSchedulingReports].filter(attribute => attribute).length;\n    }\n    get schedulingPermissionsVisible() {\n      if (this._schedulingPermissionsVisible != null) return this._schedulingPermissionsVisible;\n      return this.schedulingPermissionsCount > 0;\n    }\n    set schedulingPermissionsVisible(value) {\n      this._schedulingPermissionsVisible = value;\n    }\n    get reportsPermissionsCount() {\n      return [this.permissionsChangeset.canViewBudgetFinancialReports, this.permissionsChangeset.canViewBudgetLabourHourReports, this.permissionsChangeset.canViewChargeupReports, this.permissionsChangeset.canViewCostFinancialReports, this.permissionsChangeset.canViewCostLabourHourReports, this.permissionsChangeset.canViewQuoteReports, this.permissionsChangeset.canViewProgressReports, this.permissionsChangeset.canViewInvoicingReports, this.permissionsChangeset.canViewClientReports].filter(attribute => attribute).length;\n    }\n    get reportsPermissionsVisible() {\n      if (this._reportsPermissionsVisible != null) return this._reportsPermissionsVisible;\n      return this.reportsPermissionsCount > 0;\n    }\n    set reportsPermissionsVisible(value) {\n      this._reportsPermissionsVisible = value;\n    }\n    async handleAttributesForClients(attributesToAdd, _attributesToRemove) {\n      // don't bother removing attributes we're going to add later\n      const attributesToRemove = _attributesToRemove.filter(ar => !attributesToAdd.includes(ar));\n      const existingAttributes = await this.store.simpleQuery('user-project-attribute', {\n        user: this.model.client.last.value.id,\n        project: this.model.project.last.value.id\n      }).then(r => r.toArray());\n      // add and remove entity attribute from the user\n      await this.store.findAll('user-attribute');\n      await Promise.all([Promise.all(attributesToRemove.map(async ea => {\n        const matchingExistingAttributes = existingAttributes.filter(a => a.belongsTo('attribute').id() === ea);\n        // only remove the attribute if it exists\n        // this can be a singular check once the db constraints are fixed\n        if (matchingExistingAttributes.length) await Promise.all(matchingExistingAttributes.map(a => a.destroyRecord()));\n      })), Promise.all(attributesToAdd.map(async ea => {\n        // don't add if it's already there\n        if (existingAttributes.some(a => a.belongsTo('attribute').id() === ea)) return;\n        // fetch and check attribute is valid\n        const attribute = await this.store.peekRecord('user-attribute', ea);\n        if (!attribute) throw new Error('Tried to create a non-existent attribute');\n        // create the relationship\n        await this.store.createRecord('user-project-attribute', {\n          entity: this.sessionData.entity,\n          project: this.model.project.last.value,\n          user: this.model.client.last.value,\n          attribute\n        }).save();\n      }))]);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"crumbStack\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"crumbStack\"), _class2.prototype), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_projectPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"_schedulingPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"_reportsPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/people/clients/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@glimmer/tracking\", \"@ember/service\", \"@ember/object\"], function (_exports, _asyncArrowRuntime, _controller, _tracking, _service, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"@ember/object\",0,\"ember-concurrency\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const addToProjectAttributes = ['canViewProjects', 'hasClientRole'];\n  let _class = _exports.default = (_dec = (0, _object.computed)('filteredClients', 'model.clients.last.value.projectClients', 'searchString.length'), _dec2 = (0, _object.computed)('model.clients.last.value.unassignedClients'), _dec3 = (0, _object.computed)('model.clients.last.value.projectClients'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor3, this);\n      _initializerDefineProperty(this, \"store\", _descriptor4, this);\n      _initializerDefineProperty(this, \"router\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _initializerDefineProperty(this, \"isAddingUserToProject\", _descriptor7, this);\n      _initializerDefineProperty(this, \"clientToAddToProject\", _descriptor8, this);\n      _initializerDefineProperty(this, \"isAddingClientToProject\", _descriptor9, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor0, this);\n      _defineProperty(this, \"addClientToProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.handleAttributesForClients(this.clientToAddToProject, addToProjectAttributes, []);\n            yield Promise.all([this.model.clients.perform(this.model.project)]);\n            this.isAddingClientToProject = false;\n            this.clientToAddToProject = null;\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.people.clients.Added client to project'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.Something went wrong adding client'),\n              error\n            });\n          }\n        }\n      }), null, \"addClientToProject\", null));\n    }\n    get isLoading() {\n      return this.model.project.isRunning || this.model.clients.isRunning;\n    }\n    get filteredClients() {\n      const result = this.model.clients.last.value.projectClients?.filter(client => {\n        const matchString = `${client.firstName}${client.lastName}${client.email}${client.phoneNumber}`.toLowerCase();\n        return matchString.includes(this.searchString.replace(/\\s/g, '').toLowerCase());\n      }).sort((a, b) => a.sortIndex - b.sortIndex) || [];\n      return result;\n    }\n    get unassignedClients() {\n      if (!this.model.clients.last.value) return [];\n      return this.model.clients.last.value.unassignedClients;\n    }\n    get projectClients() {\n      if (!this.model.clients.last.value) return [];\n      return this.model.clients.last.value.projectClients;\n    }\n    async handleAttributesForClients(client, attributesToAdd, _attributesToRemove) {\n      // don't bother removing attributes we're going to add later\n      const attributesToRemove = _attributesToRemove.filter(ar => !attributesToAdd.includes(ar));\n      const existingAttributes = await this.store.simpleQuery('user-project-attribute', {\n        user: client.id,\n        project: this.model.project.last.value.id\n      }).then(r => r.toArray());\n      await this.store.findAll('user-attribute');\n      // add and remove entity attribute from the user\n      await Promise.all([Promise.all(attributesToRemove.map(async ea => {\n        const matchingExistingAttributes = existingAttributes.filter(a => a.belongsTo('attribute').id() === ea);\n        // only remove the attribute if it exists\n        // this can be a singular check once the db constraints are fixed\n        if (matchingExistingAttributes.length) await Promise.all(matchingExistingAttributes.map(a => a.destroyRecord()));\n      })), Promise.all(attributesToAdd.map(async ea => {\n        // don't add if it's already there\n        if (existingAttributes.some(a => a.belongsTo('attribute').id() === ea)) return;\n        // fetch and check attribute is valid\n        const attribute = await this.store.peekRecord('user-attribute', ea);\n        if (!attribute) throw new Error('Tried to create a non-existent attribute');\n        // create the relationship\n        await this.store.createRecord('user-project-attribute', {\n          entity: this.sessionData.entity,\n          project: this.model.project.last.value,\n          user: client,\n          attribute\n        }).save();\n      }))]);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"isAddingUserToProject\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"clientToAddToProject\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"isAddingClientToProject\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"filteredClients\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"filteredClients\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"unassignedClients\", [_dec2], Object.getOwnPropertyDescriptor(_class2.prototype, \"unassignedClients\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"projectClients\", [_dec3], Object.getOwnPropertyDescriptor(_class2.prototype, \"projectClients\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/people/subcontractors/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _controller, _object, _tracking, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const addToProjectAttributes = ['canViewProjects', 'hasSubcontractorRole'];\n  let _class = _exports.default = (_dec = (0, _object.computed)('filteredSubcontractors', 'model.subcontractors.last.value.projectSubcontractors', 'searchString.length'), _dec2 = (0, _object.computed)('model.subcontractors.last.value.unassignedSubcontractors'), _dec3 = (0, _object.computed)('model.subcontractors.last.value.projectSubcontractors'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor3, this);\n      _initializerDefineProperty(this, \"store\", _descriptor4, this);\n      _initializerDefineProperty(this, \"router\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _initializerDefineProperty(this, \"isAddingSubcontractorToProject\", _descriptor7, this);\n      _initializerDefineProperty(this, \"subcontractorToAddToProject\", _descriptor8, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor9, this);\n      _defineProperty(this, \"addSubcontractorToProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.handleAttributesForSubcontractor(this.subcontractorToAddToProject, addToProjectAttributes, []);\n            yield Promise.all([this.model.subcontractors.perform(this.model.project)]);\n            this.isAddingSubcontractorToProject = false;\n            this.subcontractorToAddToProject = null;\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.people.subcontractors.Added subcontractor to project'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.people.subcontractors.somethingWentWrongAddingSubcontractor'),\n              error\n            });\n          }\n        }\n      }), null, \"addSubcontractorToProject\", null));\n    }\n    get filteredSubcontractors() {\n      const result = this.model.subcontractors.last.value.projectSubcontractors?.filter(subcontractor => {\n        const matchString = `${subcontractor.firstName}${subcontractor.lastName}${subcontractor.email}${subcontractor.phoneNumber}`.toLowerCase();\n        return matchString.includes(this.searchString.replace(/\\s/g, '').toLowerCase());\n      }).sort((a, b) => a.sortIndex - b.sortIndex) || [];\n      return result;\n    }\n    get isLoading() {\n      return this.model.project.isRunning || this.model.subcontractors.isRunning;\n    }\n    get unassignedSubcontractors() {\n      if (!this.model.subcontractors.last.value) return [];\n      return this.model.subcontractors.last.value.unassignedSubcontractors;\n    }\n    get projectSubcontractors() {\n      if (!this.model.subcontractors.last.value) return [];\n      return this.model.subcontractors.last.value.projectSubcontractors;\n    }\n    async handleAttributesForSubcontractor(subcontractor, attributesToAdd, _attributesToRemove) {\n      // don't bother removing attributes we're going to add later\n      const attributesToRemove = _attributesToRemove.filter(ar => !attributesToAdd.includes(ar));\n      const existingAttributes = await this.store.simpleQuery('user-project-attribute', {\n        user: subcontractor.id,\n        project: this.model.project.last.value.id\n      }).then(r => r.toArray());\n      await this.store.findAll('user-attribute');\n      // add and remove entity attribute from the user\n      await Promise.all([Promise.all(attributesToRemove.map(async ea => {\n        const matchingExistingAttributes = existingAttributes.filter(a => a.belongsTo('attribute').id() === ea);\n\n        // only remove the attribute if it exists\n        // this can be a singular check once the db constraints are fixed\n        if (matchingExistingAttributes.length) await Promise.all(matchingExistingAttributes.map(a => a.destroyRecord()));\n      })), Promise.all(attributesToAdd.map(async ea => {\n        // don't add if it's already there\n        if (existingAttributes.some(a => a.belongsTo('attribute').id() === ea)) return;\n\n        // fetch and check attribute is valid\n        const attribute = await this.store.peekRecord('user-attribute', ea);\n        if (!attribute) throw new Error('Tried to create a non-existent attribute');\n\n        // create the relationship\n        await this.store.createRecord('user-project-attribute', {\n          entity: this.sessionData.entity,\n          project: this.model.project.last.value,\n          user: subcontractor,\n          attribute\n        }).save();\n      }))]);\n    }\n    get userIsYou() {\n      return this._user === this.sessionData.user;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"isAddingSubcontractorToProject\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"subcontractorToAddToProject\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"filteredSubcontractors\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"filteredSubcontractors\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"unassignedSubcontractors\", [_dec2], Object.getOwnPropertyDescriptor(_class2.prototype, \"unassignedSubcontractors\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"projectSubcontractors\", [_dec3], Object.getOwnPropertyDescriptor(_class2.prototype, \"projectSubcontractors\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/people/subcontractors/subcontractor\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"@glimmer/tracking\", \"@ember/object\", \"portal/routes/entity/builda-price/projects/project/people/subcontractors/subcontractor\", \"portal/routes/entity/settings/people/subcontractors/subcontractor\"], function (_exports, _asyncArrowRuntime, _controller, _service, _tracking, _object, _subcontractor, _subcontractor2) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"portal/routes/entity/builda-price/projects/project/people/subcontractors/subcontractor\",0,\"portal/routes/entity/settings/people/subcontractors/subcontractor\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('intl', 'model.basePath', 'model.subcontractor.last.value.{fullName,id}'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _initializerDefineProperty(this, \"router\", _descriptor4, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _initializerDefineProperty(this, \"_projectPermissionsVisible\", _descriptor7, this);\n      _initializerDefineProperty(this, \"_schedulingPermissionsVisible\", _descriptor8, this);\n      _initializerDefineProperty(this, \"_allocationsPermissionsVisible\", _descriptor9, this);\n      _initializerDefineProperty(this, \"_reportsPermissionsVisible\", _descriptor0, this);\n      _initializerDefineProperty(this, \"_healthAndSafetyPermissionsVisible\", _descriptor1, this);\n      _defineProperty(this, \"permissionSupersededMessage\", this.intl.t('shared.notification.thisOptionIsSupersededByACompanyPermission'));\n      _defineProperty(this, \"savePermissions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          try {\n            yield changeset.validate();\n            if (changeset.isInvalid) return;\n            const attributesToAdd = new Set();\n            const attributesToRemove = new Set();\n            if (changeset.canManageBudgets) {\n              _subcontractor.canManageBudgetsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canManageBudgetsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageEstimates) {\n              _subcontractor.canManageEstimatesAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canManageEstimatesAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageProducts) {\n              _subcontractor.canManageProductsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canManageProductsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageFileStorage) {\n              _subcontractor.canManageFileStorageAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canManageFileStorageAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageProjects) {\n              _subcontractor.canManageProjectsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canManageProjectsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageQuotes) {\n              _subcontractor.canManageQuotesAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canManageQuotesAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageSchedulingReports) {\n              _subcontractor.canManageSchedulingReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canManageSchedulingReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageTasks) {\n              _subcontractor.canManageTasksAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canManageTasksAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageTimesheets) {\n              _subcontractor.canManageTimesheetsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canManageTimesheetsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewBudgetFinancialReports) {\n              _subcontractor.canViewBudgetReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewBudgetReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewBudgetLabourHourReports) {\n              _subcontractor.canViewBudgetLabourHourReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewBudgetLabourHourReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewBudgets) {\n              _subcontractor.canViewBudgetsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewBudgetsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewProgress) {\n              _subcontractor.canViewProgressAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewProgressAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageProgress) {\n              _subcontractor.canManageProgressAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canManageProgressAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewChargeupReports) {\n              _subcontractor.canViewChargeupReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewChargeupReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewCostFinancialReports) {\n              _subcontractor.canViewCostReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewCostReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewCostLabourHourReports) {\n              _subcontractor.canViewCostLabourHourReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewCostLabourHourReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewProducts) {\n              _subcontractor.canViewProductsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewProductsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewFileStorage) {\n              _subcontractor.canViewFileStorageAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewFileStorageAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewProgressReports) {\n              _subcontractor.canViewProgressReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewProgressReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewQuoteReports) {\n              _subcontractor.canViewQuoteReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewQuoteReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewQuotes) {\n              _subcontractor.canViewQuotesAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewQuotesAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewSchedulingReports) {\n              _subcontractor.canViewSchedulingReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewSchedulingReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewTasks) {\n              _subcontractor.canViewTasksAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewTasksAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canCreateHealthAndSafety) {\n              _subcontractor.canCreateHealthAndSafetyAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canCreateHealthAndSafetyAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageHealthAndSafety) {\n              _subcontractor.canManageHealthAndSafetyAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canManageHealthAndSafetyAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewInvoicingReports) {\n              _subcontractor.canViewInvoicingReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewInvoicingReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            yield this.handleAttributesForSubcontractor([...attributesToAdd], [...attributesToRemove]);\n            this.notifications.success(this.intl.t('shared.notification.Successfully saved permissions'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongSavingThePermissions'),\n              error\n            });\n          }\n        }\n      }), null, \"savePermissions\", null));\n      _defineProperty(this, \"deleteUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            if (!confirm(this.intl.t('entity.builda-price.projects.project.people.subcontractors.subcontractor.removeSubcontractorFromProjectConfirm'))) return;\n\n            // remove all the project and task permissions\n            const taskIds = this.model.project.last.value.hasMany('tasks').ids();\n            const [projectAttributes, taskAttributes] = yield Promise.all([this.store.simpleQuery('user-project-attribute', {\n              user: this.model.subcontractor.last.value.id,\n              project: this.model.project.last.value.id\n            }), this.store.simpleQuery('user-task-attribute', {\n              user: this.model.subcontractor.last.value.id\n            }).then(utas => utas.toArray().filter(uta => taskIds.includes(uta.belongsTo('task').id())))]);\n            yield Promise.all([...projectAttributes.map(pa => pa.destroyRecord()), ...taskAttributes.map(ta => ta.destroyRecord())]);\n            this.router.transitionTo(`${this.model.basePath}.subcontractors`);\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.people.subcontractors.subcontractor.Removed subcontractor from project'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.people.subcontractors.subcontractor.somethingWentWrongRemovingTheSubcontractor'),\n              error\n            });\n          }\n        }\n      }), null, \"deleteUser\", null));\n    }\n    get isRunning() {\n      return this.model.project.isRunning || this.model.subcontractor.isRunning || this.model.permissionsChangeset.isRunning;\n    }\n    get permissionsChangeset() {\n      return this.model.permissionsChangeset.last.value;\n    }\n    get canViewReports() {\n      const reports = {\n        [this.intl.t('common.Budget')]: [this.entityCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.entityCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports],\n        [this.intl.t('common.Chargeup')]: [this.entityCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports, this.entityCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.entityCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports],\n        [this.intl.t('common.Costs')]: [(this.entityCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports) && (this.entityCanViewBills || this.entityCanManageBills) && (this.entityCanManageTimesheets || this.entityCanViewTimesheets || this.permissionsChangeset.canManageTimesheets)],\n        [this.intl.t('shared.report.Forecast breakdown')]: [this.entityCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.entityCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports, this.entityCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.entityCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports],\n        [this.intl.t('common.Labour hours')]: [this.entityCanViewBudgetLabourHourReports || this.permissionsChangeset.canViewBudgetLabourHourReports, this.entityCanViewCostLabourHourReports || this.permissionsChangeset.canViewCostLabourHourReports, this.entityCanViewProgressReports || this.permissionsChangeset.canViewProgressReports],\n        [this.intl.t('common.Position')]: [this.entityCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.entityCanViewBudgetLabourHourReports || this.permissionsChangeset.canViewBudgetLabourHourReports, this.entityCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports, this.entityCanViewCostLabourHourReports || this.permissionsChangeset.canViewCostLabourHourReports, this.entityCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.entityCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports, this.entityCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports],\n        [this.intl.t('common.Profit margins')]: [this.entityCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.entityCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports, this.entityCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.entityCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports],\n        [this.intl.t('common.Quote')]: [this.entityCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports, this.entityCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports],\n        [this.intl.t('shared.report.Work in progress')]: [this.entityCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.entityCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports, this.entityCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.entityCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports],\n        [this.intl.t('common.Invoicing')]: [this.entityCanViewInvoicingReports || this.permissionsChangeset.canViewInvoicingReports],\n        [this.intl.t('common.Cost to complete')]: [this.entityCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports, this.entityCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.entityCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports, this.entityCanViewInvoicingReports || this.permissionsChangeset.canViewInvoicingReports]\n      };\n      const allowedReports = Object.keys(reports).filter(key => reports[key].every(p => p));\n      if (!allowedReports.length) return '';\n      return allowedReports.join(', ');\n    }\n    get crumbStack() {\n      const paths = [{\n        route: `${this.model.basePath}.subcontractors`,\n        pageTitle: this.intl.t('common.Subcontractors')\n      }, {\n        route: `${this.model.basePath}.subcontractors`,\n        model: this.model.subcontractor.last.value.id,\n        pageTitle: this.model.subcontractor.last.value.fullName\n      }];\n      return paths;\n    }\n    get projectPermissionsCount() {\n      return [this.permissionsChangeset.canManageBudgets, this.permissionsChangeset.canManageEstimates, this.permissionsChangeset.canManageFileStorage, this.permissionsChangeset.canManageProducts, this.permissionsChangeset.canManageProjects, this.permissionsChangeset.canManageQuotes, this.permissionsChangeset.canManageTasks, this.permissionsChangeset.canViewQuotes, this.permissionsChangeset.canViewBudgets, this.permissionsChangeset.canManageProgress, this.permissionsChangeset.canViewProgress, this.permissionsChangeset.canViewFileStorage, this.permissionsChangeset.canViewProducts, this.permissionsChangeset.canViewTasks].filter(attribute => attribute).length;\n    }\n    get projectPermissionsVisible() {\n      if (this._projectPermissionsVisible != null) return this._projectPermissionsVisible;\n      return this.projectPermissionsCount > 0;\n    }\n    set projectPermissionsVisible(value) {\n      this._projectPermissionsVisible = value;\n    }\n    get schedulingPermissionsCount() {\n      return [this.permissionsChangeset.canManageSchedulingReports, this.permissionsChangeset.canViewSchedulingReports].filter(attribute => attribute).length;\n    }\n    get schedulingPermissionsVisible() {\n      if (this._schedulingPermissionsVisible != null) return this._schedulingPermissionsVisible;\n      return this.schedulingPermissionsCount > 0;\n    }\n    set schedulingPermissionsVisible(value) {\n      this._schedulingPermissionsVisible = value;\n    }\n    get allocationsPermissionsCount() {\n      return [this.permissionsChangeset.canManageTimesheets].filter(attribute => attribute).length;\n    }\n    get allocationsPermissionsVisible() {\n      if (this._allocationsPermissionsVisible != null) return this._allocationsPermissionsVisible;\n      return this.allocationsPermissionsCount > 0;\n    }\n    set allocationsPermissionsVisible(value) {\n      this._allocationsPermissionsVisible = value;\n    }\n    get reportsPermissionsCount() {\n      return [this.permissionsChangeset.canViewBudgetFinancialReports, this.permissionsChangeset.canViewBudgetLabourHourReports, this.permissionsChangeset.canViewChargeupReports, this.permissionsChangeset.canViewCostFinancialReports, this.permissionsChangeset.canViewCostLabourHourReports, this.permissionsChangeset.canViewQuoteReports, this.permissionsChangeset.canViewProgressReports, this.permissionsChangeset.canViewInvoicingReports].filter(attribute => attribute).length;\n    }\n    get reportsPermissionsVisible() {\n      if (this._reportsPermissionsVisible != null) return this._reportsPermissionsVisible;\n      return this.reportsPermissionsCount > 0;\n    }\n    set reportsPermissionsVisible(value) {\n      this._reportsPermissionsVisible = value;\n    }\n    get healthAndSafetyPermissionsCount() {\n      return [this.permissionsChangeset.canCreateHealthAndSafety, this.permissionsChangeset.canManageHealthAndSafety].filter(attribute => attribute).length;\n    }\n    get healthAndSafetyPermissionsVisible() {\n      if (this._healthAndSafetyPermissionsVisible != null) return this._healthAndSafetyPermissionsVisible;\n      return this.healthAndSafetyPermissionsCount > 0;\n    }\n    set healthAndSafetyPermissionsVisible(value) {\n      this._healthAndSafetyPermissionsVisible = value;\n    }\n    get userIsEntityAdmin() {\n      return this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, 'canManageEntity');\n    }\n    get entityCanManageTimesheets() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canManageTimesheetsAttributes);\n    }\n    get entityCanViewTimesheets() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canViewTimesheetsAttributes);\n    }\n    get entityCanViewBills() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canViewBillsAttributes);\n    }\n    get entityCanManageBills() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canManageBillsAttributes);\n    }\n    get entityCanManageProjects() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canManageProjectsAttributes);\n    }\n    get entityCanViewTasks() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canViewTasksAttributes);\n    }\n    get entityCanManageTasks() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canManageTasksAttributes);\n    }\n    get entityCanViewBudgets() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canViewBudgetsAttributes);\n    }\n    get entityCanViewProgress() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canViewProgressAttributes);\n    }\n    get entityCanManageProgress() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canManageProgressAttributes);\n    }\n    get entityCanManageBudgets() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canManageBudgetsAttributes);\n    }\n    get entityCanViewQuotes() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canViewQuotesAttributes);\n    }\n    get entityCanManageQuotes() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canManageQuotesAttributes);\n    }\n    get entityCanViewInvoicingReports() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canViewInvoicingReportsAttributes);\n    }\n    get entityCanViewProducts() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canViewProductsAttributes);\n    }\n    get entityCanManageProducts() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canManageProductsAttributes);\n    }\n    get entityCanViewFileStorage() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canViewFileStorageAttributes);\n    }\n    get entityCanManageFileStorage() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canManageFileStorageAttributes);\n    }\n    get entityCanViewBudgetReports() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canViewBudgetReportsAttributes);\n    }\n    get entityCanViewBudgetLabourHourReports() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canViewBudgetLabourHourReportsAttributes);\n    }\n    get entityCanViewQuoteReports() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canViewQuoteReportsAttributes);\n    }\n    get entityCanViewCostReports() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canViewCostReportsAttributes);\n    }\n    get entityCanViewCostLabourHourReports() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canViewCostLabourHourReportsAttributes);\n    }\n    get entityCanViewChargeupReports() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canViewChargeupReportsAttributes);\n    }\n    get entityCanViewProgressReports() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canViewProgressReportsAttributes);\n    }\n    get entityCanViewSchedulingReports() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canViewSchedulingReportsAttributes);\n    }\n    get entityCanManageSchedulingReports() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canManageSchedulingReportsAttributes);\n    }\n    get entityCanManageEstimates() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canManageEstimatesAttributes);\n    }\n    get entityCanCreateHealthAndSafety() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canCreateHealthAndSafetyAttributes);\n    }\n    get entityCanManageHealthAndSafety() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canManageHealthAndSafetyAttributes);\n    }\n    async handleAttributesForSubcontractor(attributesToAdd, _attributesToRemove) {\n      // don't bother removing attributes we're going to add later\n      const attributesToRemove = _attributesToRemove.filter(ar => !attributesToAdd.includes(ar));\n      const existingAttributes = await this.store.simpleQuery('user-project-attribute', {\n        user: this.model.subcontractor.last.value.id,\n        project: this.model.project.last.value.id\n      }).then(r => r.toArray());\n      await this.store.findAll('user-attribute');\n      // add and remove entity attribute from the user\n      await Promise.all([Promise.all(attributesToRemove.map(async ea => {\n        const matchingExistingAttributes = existingAttributes.filter(a => a.belongsTo('attribute').id() === ea);\n\n        // only remove the attribute if it exists\n        // this can be a singular check once the db constraints are fixed\n        if (matchingExistingAttributes.length) await Promise.all(matchingExistingAttributes.map(a => a.destroyRecord()));\n      })), Promise.all(attributesToAdd.map(async ea => {\n        // don't add if it's already there\n        if (existingAttributes.some(a => a.belongsTo('attribute').id() === ea)) return;\n\n        // fetch and check attribute is valid\n        const attribute = await this.store.peekRecord('user-attribute', ea);\n        if (!attribute) throw new Error('Tried to create a non-existent attribute');\n\n        // create the relationship\n        await this.store.createRecord('user-project-attribute', {\n          entity: this.sessionData.entity,\n          project: this.model.project.last.value,\n          user: this.model.subcontractor.last.value,\n          attribute\n        }).save();\n      }))]);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"crumbStack\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"crumbStack\"), _class2.prototype), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_projectPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"_schedulingPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"_allocationsPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"_reportsPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"_healthAndSafetyPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/people/users/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _controller, _object, _tracking, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const addToProjectAttributes = ['canViewProjects'];\n  let _class = _exports.default = (_dec = (0, _object.computed)('filteredUsers', 'model.users.last.value.projectUsers', 'searchString.length'), _dec2 = (0, _object.computed)('model.users.last.value.unassignedUsers'), _dec3 = (0, _object.computed)('model.users.last.value.projectUsers'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor3, this);\n      _initializerDefineProperty(this, \"store\", _descriptor4, this);\n      _initializerDefineProperty(this, \"router\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _initializerDefineProperty(this, \"isAddingUserToProject\", _descriptor7, this);\n      _initializerDefineProperty(this, \"userToAddToProject\", _descriptor8, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor9, this);\n      _defineProperty(this, \"addUserToProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.handleAttributesForUser(this.userToAddToProject, addToProjectAttributes, []);\n            yield Promise.all([this.model.users.perform(this.model.project)]);\n            this.isAddingUserToProject = false;\n            this.userToAddToProject = null;\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.people.users.Added user to project'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.Something went wrong adding user'),\n              error\n            });\n          }\n        }\n      }), null, \"addUserToProject\", null));\n    }\n    get filteredUsers() {\n      const result = this.model.users.last.value.projectUsers?.filter(user => {\n        const matchString = `${user.firstName}${user.lastName}${user.email}${user.phoneNumber}`.toLowerCase();\n        return matchString.includes(this.searchString.replace(/\\s/g, '').toLowerCase());\n      }).sort((a, b) => a.sortIndex - b.sortIndex) || [];\n      return result;\n    }\n    get isLoading() {\n      return this.model.project.isRunning || this.model.users.isRunning;\n    }\n    get unassignedUsers() {\n      if (!this.model.users.last.value) return [];\n      return this.model.users.last.value.unassignedUsers;\n    }\n    get projectUsers() {\n      if (!this.model.users.last.value) return [];\n      return this.model.users.last.value.projectUsers;\n    }\n    async handleAttributesForUser(user, attributesToAdd, _attributesToRemove) {\n      // don't bother removing attributes we're going to add later\n      const attributesToRemove = _attributesToRemove.filter(ar => !attributesToAdd.includes(ar));\n      const existingAttributes = await this.store.simpleQuery('user-project-attribute', {\n        user: user.id,\n        project: this.model.project.last.value.id\n      }).then(r => r.toArray());\n      await this.store.findAll('user-attribute');\n      // add and remove entity attribute from the user\n      await Promise.all([Promise.all(attributesToRemove.map(async ea => {\n        const matchingExistingAttributes = existingAttributes.filter(a => a.belongsTo('attribute').id() === ea);\n\n        // only remove the attribute if it exists\n        // this can be a singular check once the db constraints are fixed\n        if (matchingExistingAttributes.length) await Promise.all(matchingExistingAttributes.map(a => a.destroyRecord()));\n      })), Promise.all(attributesToAdd.map(async ea => {\n        // don't add if it's already there\n        if (existingAttributes.some(a => a.belongsTo('attribute').id() === ea)) return;\n\n        // fetch and check attribute is valid\n        const attribute = await this.store.peekRecord('user-attribute', ea);\n        if (!attribute) throw new Error('Tried to create a non-existent attribute');\n\n        // create the relationship\n        await this.store.createRecord('user-project-attribute', {\n          entity: this.sessionData.entity,\n          project: this.model.project.last.value,\n          user,\n          attribute\n        }).save();\n      }))]);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"isAddingUserToProject\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"userToAddToProject\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"filteredUsers\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"filteredUsers\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"unassignedUsers\", [_dec2], Object.getOwnPropertyDescriptor(_class2.prototype, \"unassignedUsers\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"projectUsers\", [_dec3], Object.getOwnPropertyDescriptor(_class2.prototype, \"projectUsers\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/people/users/user\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"@glimmer/tracking\", \"portal/routes/entity/builda-price/projects/project/people/users/user\", \"portal/routes/entity/settings/people/users/user\", \"@ember/object\"], function (_exports, _asyncArrowRuntime, _controller, _service, _tracking, _user, _user2, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"portal/routes/entity/builda-price/projects/project/people/users/user\",0,\"portal/routes/entity/settings/people/users/user\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('intl', 'model.basePath', 'model.user.last.value.{fullName,id}'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _initializerDefineProperty(this, \"router\", _descriptor4, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _initializerDefineProperty(this, \"_projectPermissionsVisible\", _descriptor7, this);\n      _initializerDefineProperty(this, \"_schedulingPermissionsVisible\", _descriptor8, this);\n      _initializerDefineProperty(this, \"_allocationsPermissionsVisible\", _descriptor9, this);\n      _initializerDefineProperty(this, \"_reportsPermissionsVisible\", _descriptor0, this);\n      _initializerDefineProperty(this, \"_healthAndSafetyPermissionsVisible\", _descriptor1, this);\n      _defineProperty(this, \"permissionSupersededMessage\", this.intl.t('shared.notification.thisOptionIsSupersededByACompanyPermission'));\n      _defineProperty(this, \"deleteUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            if (!confirm(this.intl.t('entity.builda-price.projects.project.people.users.user.removeUserFromProjectConfirm'))) return;\n\n            // remove all the project and task permissions\n            const taskIds = this.model.project.last.value.hasMany('tasks').ids();\n            const [projectAttributes, taskAttributes] = yield Promise.all([this.store.simpleQuery('user-project-attribute', {\n              user: this.model.user.last.value.id,\n              project: this.model.project.last.value.id\n            }), this.store.simpleQuery('user-task-attribute', {\n              user: this.model.user.last.value.id\n              // task: { $in: taskIds }, // this would be better but the request could get too large\n            }).then(utas => utas.toArray().filter(uta => taskIds.includes(uta.belongsTo('task').id())))]);\n            yield Promise.all([...projectAttributes.map(pa => pa.destroyRecord()), ...taskAttributes.map(ta => ta.destroyRecord())]);\n            this.router.transitionTo(`${this.model.basePath}.users`);\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.people.users.user.Removed user from project'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.Something went wrong removing the user'),\n              error\n            });\n          }\n        }\n      }), null, \"deleteUser\", null));\n      _defineProperty(this, \"savePermissions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          try {\n            yield changeset.validate();\n            if (changeset.isInvalid) return;\n            const attributesToAdd = new Set();\n            const attributesToRemove = new Set();\n            if (changeset.canManageBudgets) {\n              _user.canManageBudgetsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canManageBudgetsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageEstimates) {\n              _user.canManageEstimatesAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canManageEstimatesAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageProducts) {\n              _user.canManageProductsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canManageProductsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageFileStorage) {\n              _user.canManageFileStorageAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canManageFileStorageAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageProjects) {\n              _user.canManageProjectsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canManageProjectsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageQuotes) {\n              _user.canManageQuotesAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canManageQuotesAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageSchedulingReports) {\n              _user.canManageSchedulingReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canManageSchedulingReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewAccessReports) {\n              _user.canViewAccessReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewAccessReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageTasks) {\n              _user.canManageTasksAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canManageTasksAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageTimesheets) {\n              _user.canManageTimesheetsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canManageTimesheetsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewBudgetFinancialReports) {\n              _user.canViewBudgetReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewBudgetReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewBudgetLabourHourReports) {\n              _user.canViewBudgetLabourHourReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewBudgetLabourHourReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewBudgets) {\n              _user.canViewBudgetsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewBudgetsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewProgress) {\n              _user.canViewProgressAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewProgressAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageProgress) {\n              _user.canManageProgressAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canManageProgressAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewChargeupReports) {\n              _user.canViewChargeupReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewChargeupReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewCostFinancialReports) {\n              _user.canViewCostReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewCostReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewCostLabourHourReports) {\n              _user.canViewCostLabourHourReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewCostLabourHourReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewProducts) {\n              _user.canViewProductsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewProductsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewFileStorage) {\n              _user.canViewFileStorageAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewFileStorageAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewProgressReports) {\n              _user.canViewProgressReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewProgressReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewQuoteReports) {\n              _user.canViewQuoteReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewQuoteReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewQuotes) {\n              _user.canViewQuotesAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewQuotesAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewSchedulingReports) {\n              _user.canViewSchedulingReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewSchedulingReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewTasks) {\n              _user.canViewTasksAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewTasksAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canCreateHealthAndSafety) {\n              _user.canCreateHealthAndSafetyAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canCreateHealthAndSafetyAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageHealthAndSafety) {\n              _user.canManageHealthAndSafetyAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canManageHealthAndSafetyAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewInvoices) {\n              _user.canViewInvoicesAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewInvoicesAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageInvoices) {\n              _user.canManageInvoicesAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canManageInvoicesAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canApproveInvoices) {\n              _user.canApproveInvoicesAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canApproveInvoicesAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewStagePayments) {\n              _user.canViewStagePaymentsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewStagePaymentsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageStagePayments) {\n              _user.canManageStagePaymentsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canManageStagePaymentsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewPurchaseOrders) {\n              _user.canViewPurchaseOrdersAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewPurchaseOrdersAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManagePurchaseOrders) {\n              _user.canManagePurchaseOrdersAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canManagePurchaseOrdersAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canApprovePurchaseOrders) {\n              _user.canApprovePurchaseOrdersAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canApprovePurchaseOrdersAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewInvoicingReports) {\n              _user.canViewInvoicingReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewInvoicingReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            yield this.handleAttributes([...attributesToAdd], [...attributesToRemove]);\n            this.notifications.success(this.intl.t('shared.notification.Successfully saved permissions'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongSavingThePermissions'),\n              error\n            });\n          }\n        }\n      }), null, \"savePermissions\", null));\n    }\n    get crumbStack() {\n      const paths = [{\n        route: `${this.model.basePath}.users`,\n        pageTitle: this.intl.t('common.Users')\n      }, {\n        route: `${this.model.basePath}.users`,\n        model: this.model.user.last.value.id,\n        pageTitle: this.model.user.last.value.fullName\n      }];\n      return paths;\n    }\n    get permissionsChangeset() {\n      return this.model.permissionsChangeset.last.value;\n    }\n    get canViewReports() {\n      const reports = {\n        [this.intl.t('common.Budget')]: [this.entityCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.entityCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports],\n        [this.intl.t('common.Chargeup')]: [this.entityCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports, this.entityCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.entityCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports],\n        [this.intl.t('common.Costs')]: [(this.entityCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports) && (this.entityCanViewBills || this.entityCanManageBills) && (this.entityCanManageTimesheets || this.entityCanViewTimesheets || this.permissionsChangeset.canManageTimesheets)],\n        [this.intl.t('shared.report.Forecast breakdown')]: [this.entityCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.entityCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports, this.entityCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.entityCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports],\n        [this.intl.t('common.Labour hours')]: [this.entityCanViewBudgetLabourHourReports || this.permissionsChangeset.canViewBudgetLabourHourReports, this.entityCanViewCostLabourHourReports || this.permissionsChangeset.canViewCostLabourHourReports, this.entityCanViewProgressReports || this.permissionsChangeset.canViewProgressReports],\n        [this.intl.t('common.Position')]: [this.entityCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.entityCanViewBudgetLabourHourReports || this.permissionsChangeset.canViewBudgetLabourHourReports, this.entityCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports, this.entityCanViewCostLabourHourReports || this.permissionsChangeset.canViewCostLabourHourReports, this.entityCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.entityCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports, this.entityCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports],\n        [this.intl.t('common.Profit margins')]: [this.entityCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.entityCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports, this.entityCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.entityCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports],\n        [this.intl.t('common.Quote')]: [this.entityCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports, this.entityCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports],\n        [this.intl.t('shared.report.Work in progress')]: [this.entityCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.entityCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports, this.entityCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.entityCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports],\n        [this.intl.t('common.Invoicing')]: [this.entityCanViewInvoicingReports || this.permissionsChangeset.canViewInvoicingReports],\n        [this.intl.t('common.Cost to complete')]: [this.entityCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports, this.entityCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.entityCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports, this.entityCanViewInvoicingReports || this.permissionsChangeset.canViewInvoicingReports],\n        ['Access']: [this.entityCanViewAccessReports || this.permissionsChangeset.canViewAccessReports]\n      };\n      const allowedReports = Object.keys(reports).filter(key => reports[key].every(p => p));\n      if (!allowedReports.length) return '';\n      return allowedReports.join(', ');\n    }\n    get projectPermissionsCount() {\n      return [this.permissionsChangeset.canManageBudgets, this.permissionsChangeset.canManageEstimates, this.permissionsChangeset.canManageFileStorage, this.permissionsChangeset.canManageProducts, this.permissionsChangeset.canManageProjects, this.permissionsChangeset.canManageQuotes, this.permissionsChangeset.canManageTasks, this.permissionsChangeset.canManageProgress, this.permissionsChangeset.canViewQuotes, this.permissionsChangeset.canViewBudgets, this.permissionsChangeset.canViewProgress, this.permissionsChangeset.canViewFileStorage, this.permissionsChangeset.canViewProducts, this.permissionsChangeset.canViewTasks].filter(attribute => attribute).length;\n    }\n    get projectPermissionsVisible() {\n      if (this._projectPermissionsVisible != null) return this._projectPermissionsVisible;\n      return this.projectPermissionsCount > 0;\n    }\n    set projectPermissionsVisible(value) {\n      this._projectPermissionsVisible = value;\n    }\n    get schedulingPermissionsCount() {\n      return [this.permissionsChangeset.canManageSchedulingReports, this.permissionsChangeset.canViewSchedulingReports].filter(attribute => attribute).length;\n    }\n    get schedulingPermissionsVisible() {\n      if (this._schedulingPermissionsVisible != null) return this._schedulingPermissionsVisible;\n      return this.schedulingPermissionsCount > 0;\n    }\n    set schedulingPermissionsVisible(value) {\n      this._schedulingPermissionsVisible = value;\n    }\n    get allocationsPermissionsCount() {\n      return [this.permissionsChangeset.canManageTimesheets, this.permissionsChangeset.canViewInvoices, this.permissionsChangeset.canManageInvoices, this.permissionsChangeset.canApproveInvoices, this.permissionsChangeset.canViewPurchaseOrders, this.permissionsChangeset.canManagePurchaseOrders, this.permissionsChangeset.canApprovePurchaseOrders, this.permissionsChangeset.canViewStagePayments, this.permissionsChangeset.canManageStagePayments].filter(attribute => attribute).length;\n    }\n    get allocationsPermissionsVisible() {\n      if (this._allocationsPermissionsVisible != null) return this._allocationsPermissionsVisible;\n      return this.allocationsPermissionsCount > 0;\n    }\n    set allocationsPermissionsVisible(value) {\n      this._allocationsPermissionsVisible = value;\n    }\n    get reportsPermissionsCount() {\n      return [this.permissionsChangeset.canViewBudgetFinancialReports, this.permissionsChangeset.canViewBudgetLabourHourReports, this.permissionsChangeset.canViewChargeupReports, this.permissionsChangeset.canViewCostFinancialReports, this.permissionsChangeset.canViewCostLabourHourReports, this.permissionsChangeset.canViewQuoteReports, this.permissionsChangeset.canViewProgressReports, this.permissionsChangeset.canViewInvoicingReports, this.permissionsChangeset.canViewAccessReports].filter(attribute => attribute).length;\n    }\n    get reportsPermissionsVisible() {\n      if (this._reportsPermissionsVisible != null) return this._reportsPermissionsVisible;\n      return this.reportsPermissionsCount > 0;\n    }\n    set reportsPermissionsVisible(value) {\n      this._reportsPermissionsVisible = value;\n    }\n    get healthAndSafetyPermissionsCount() {\n      return [this.permissionsChangeset.canCreateHealthAndSafety, this.permissionsChangeset.canManageHealthAndSafety].filter(attribute => attribute).length;\n    }\n    get healthAndSafetyPermissionsVisible() {\n      if (this._healthAndSafetyPermissionsVisible != null) return this._healthAndSafetyPermissionsVisible;\n      return this.healthAndSafetyPermissionsCount > 0;\n    }\n    set healthAndSafetyPermissionsVisible(value) {\n      this._healthAndSafetyPermissionsVisible = value;\n    }\n    get isRunning() {\n      return this.model.project.isRunning || this.model.user.isRunning || this.model.permissionsChangeset.isRunning;\n    }\n    get userIsEntityAdmin() {\n      return this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, 'canManageEntity');\n    }\n    get entityCanManageTimesheets() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canManageTimesheetsAttributes);\n    }\n    get entityCanViewTimesheets() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canViewTimesheetsAttributes);\n    }\n    get entityCanViewBills() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canViewBillsAttributes);\n    }\n    get entityCanManageBills() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canManageBillsAttributes);\n    }\n    get entityCanManageProjects() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canManageProjectsAttributes);\n    }\n    get entityCanViewTasks() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canViewTasksAttributes);\n    }\n    get entityCanManageTasks() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canManageTasksAttributes);\n    }\n    get entityCanViewBudgets() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canViewBudgetsAttributes);\n    }\n    get entityCanViewProgress() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canViewProgressAttributes);\n    }\n    get entityCanManageProgress() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canManageProgressAttributes);\n    }\n    get entityCanManageBudgets() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canManageBudgetsAttributes);\n    }\n    get entityCanViewQuotes() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canViewQuotesAttributes);\n    }\n    get entityCanManageQuotes() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canManageQuotesAttributes);\n    }\n    get entityCanViewProducts() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canViewProductsAttributes);\n    }\n    get entityCanManageProducts() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canManageProductsAttributes);\n    }\n    get entityCanViewFileStorage() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canViewFileStorageAttributes);\n    }\n    get entityCanManageFileStorage() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canManageFileStorageAttributes);\n    }\n    get entityCanViewBudgetReports() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canViewBudgetReportsAttributes);\n    }\n    get entityCanViewBudgetLabourHourReports() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canViewBudgetLabourHourReportsAttributes);\n    }\n    get entityCanViewQuoteReports() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canViewQuoteReportsAttributes);\n    }\n    get entityCanViewInvoicingReports() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canViewInvoicingReportsAttributes);\n    }\n    get entityCanViewCostReports() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canViewCostReportsAttributes);\n    }\n    get entityCanViewCostLabourHourReports() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canViewCostLabourHourReportsAttributes);\n    }\n    get entityCanViewChargeupReports() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canViewChargeupReportsAttributes);\n    }\n    get entityCanViewProgressReports() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canViewProgressReportsAttributes);\n    }\n    get entityCanViewSchedulingReports() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canViewSchedulingReportsAttributes);\n    }\n    get entityCanManageSchedulingReports() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canManageSchedulingReportsAttributes);\n    }\n    get entityCanViewAccessReports() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canViewAccessReportsAttributes);\n    }\n    get entityCanManageEstimates() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canManageEstimatesAttributes);\n    }\n    get entityCanCreateHealthAndSafety() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canCreateHealthAndSafetyAttributes);\n    }\n    get entityCanManageHealthAndSafety() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canManageHealthAndSafetyAttributes);\n    }\n    get entityCanViewInvoices() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canViewInvoicesAttributes);\n    }\n    get entityCanViewStagePayments() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canViewStagePaymentsAttributes);\n    }\n    get entityCanManageInvoices() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canManageInvoicesAttributes);\n    }\n    get entityCanManageStagePayments() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canManageStagePaymentsAttributes);\n    }\n    get entityCanApproveInvoices() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canApproveInvoicesAttributes);\n    }\n    get entityCanViewPurchaseOrders() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canViewPurchaseOrdersAttributes);\n    }\n    get entityCanManagePurchaseOrders() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canManagePurchaseOrdersAttributes);\n    }\n    get entityCanApprovePurchaseOrders() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canApprovePurchaseOrdersAttributes);\n    }\n    async handleAttributes(attributesToAdd, _attributesToRemove) {\n      // don't bother removing attributes we're going to add later\n      const attributesToRemove = _attributesToRemove.filter(ar => !attributesToAdd.includes(ar));\n      const existingAttributes = await this.store.simpleQuery('user-project-attribute', {\n        user: this.model.user.last.value.id,\n        project: this.model.project.last.value.id\n      }).then(r => r.toArray());\n      await this.store.findAll('user-attribute');\n      // add and remove entity attribute from the user\n      await Promise.all([Promise.all(attributesToRemove.map(async ea => {\n        const matchingExistingAttributes = existingAttributes.filter(a => a.belongsTo('attribute').id() === ea);\n\n        // only remove the attribute if it exists\n        // this can be a singular check once the db constraints are fixed\n        if (matchingExistingAttributes.length) await Promise.all(matchingExistingAttributes.map(a => a.destroyRecord()));\n      })), Promise.all(attributesToAdd.map(async ea => {\n        // don't add if it's already there\n        if (existingAttributes.some(a => a.belongsTo('attribute').id() === ea)) return;\n\n        // fetch and check attribute is valid\n        const attribute = await this.store.peekRecord('user-attribute', ea);\n        if (!attribute) throw new Error('Tried to create a non-existent attribute');\n\n        // create the relationship\n        await this.store.createRecord('user-project-attribute', {\n          entity: this.sessionData.entity,\n          project: this.model.project.last.value,\n          user: this.model.user.last.value,\n          attribute\n        }).save();\n      }))]);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"crumbStack\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"crumbStack\"), _class2.prototype), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_projectPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"_schedulingPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"_allocationsPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"_reportsPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"_healthAndSafetyPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/people/workers/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/service\", \"lodash\", \"portal/routes/entity/builda-price/projects/project/people/workers\"], function (_exports, _asyncArrowRuntime, _controller, _object, _tracking, _service, _lodash, _workers) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"lodash\",0,\"portal/routes/entity/builda-price/projects/project/people/workers\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('filteredWorkers', 'model.workers.last.value.projectWorkers', 'searchString.length'), _dec2 = (0, _object.computed)('model.workers.last.value.projectWorkers'), _dec3 = (0, _object.computed)('model.workers.last.value.unassignedWorkers'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _initializerDefineProperty(this, \"store\", _descriptor6, this);\n      _initializerDefineProperty(this, \"_worker\", _descriptor7, this);\n      _initializerDefineProperty(this, \"permissionsChangeset\", _descriptor8, this);\n      _initializerDefineProperty(this, \"isAddingWorkerToProject\", _descriptor9, this);\n      _initializerDefineProperty(this, \"workerToAddToProject\", _descriptor0, this);\n      _initializerDefineProperty(this, \"workerPermissionModal\", _descriptor1, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor10, this);\n      _defineProperty(this, \"permissionSupersededMessage\", this.intl.t('shared.notification.thisOptionIsSupersededByACompanyPermission'));\n      _initializerDefineProperty(this, \"_workersToAddToProject\", _descriptor11, this);\n      _defineProperty(this, \"addWorkerToProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.handleWorkerProjectAttributes(this.workerToAddToProject, _workers.workerAttributes, []);\n            yield Promise.all([this.model.workers.perform(this.model.project)]);\n            this.isAddingWorkerToProject = false;\n            this.workerToAddToProject = null;\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.people.workers.Added worker to project'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.Something went wrong adding worker'),\n              error\n            });\n          }\n        }\n      }), null, \"addWorkerToProject\", null));\n    }\n    get isLoading() {\n      return this.model.project.isRunning || this.model.workers.isRunning;\n    }\n    get filteredWorkers() {\n      const result = this.model.workers.last.value.projectWorkers?.filter(worker => {\n        const matchString = `${worker.firstName}${worker.lastName}${worker.email}${worker.phoneNumber}`.toLowerCase();\n        return matchString.includes(this.searchString.replace(/\\s/g, '').toLowerCase());\n      }).sort((a, b) => a.sortIndex - b.sortIndex) || [];\n      return result;\n    }\n    get projectWorkers() {\n      if (!this.model.workers.last.value) return [];\n      return this.model.workers.last.value.projectWorkers;\n    }\n    get unassignedWorkers() {\n      if (!this.model.workers.last.value) return [];\n      return this.model.workers.last.value.unassignedWorkers;\n    }\n    get workersToAddToProject() {\n      if (this._workersToAddToProject) return this._workersToAddToProject;\n      return this.projectWorkers;\n    }\n    set workersToAddToProject(value) {\n      this._workersToAddToProject = value;\n    }\n    get workersToRemoveFromProject() {\n      return _lodash.default.difference(this.projectWorkers, this.workersToAddToProject);\n    }\n    get canManageProject() {\n      return this.newFeatureFlags.includesFeatureFlags(this.model.project.last.value, 'canManageProjects');\n    }\n    get canManageWorkers() {\n      return this.newFeatureFlags.includesFeatureFlags('canManageWorkers');\n    }\n    async handleWorkerProjectAttributes(worker, projectAttributesToAdd, _projectAttributesToRemove) {\n      // don't bother removing attributes we're going to add later\n      const projectAttributesToRemove = _projectAttributesToRemove.filter(ar => !projectAttributesToAdd.includes(ar));\n      const existingProjectAttributes = await this.store.simpleQuery('worker-project-attribute', {\n        worker: worker.id,\n        project: this.model.project.last.value.id\n      }).then(r => r.toArray());\n      await this.store.findAll('worker-attribute');\n      // add and remove entity attribute from the worker\n      await Promise.all([Promise.all(projectAttributesToRemove.map(async ea => {\n        const matchingExistingAttributes = existingProjectAttributes.filter(a => a.belongsTo('attribute').id() === ea);\n\n        // only remove the attribute if it exists\n        // this can be a singular check once the db constraints are fixed\n        if (matchingExistingAttributes.length) await Promise.all(matchingExistingAttributes.map(a => a.destroyRecord()));\n      })), Promise.all(projectAttributesToAdd.map(async ea => {\n        // don't add if it's already there\n        if (existingProjectAttributes.some(a => a.belongsTo('attribute').id() === ea)) return;\n\n        // fetch and check attribute is valid\n        const attribute = await this.store.peekRecord('worker-attribute', ea);\n        if (!attribute) throw new Error('Tried to create a non-existent attribute');\n\n        // create the relationship\n        await this.store.createRecord('worker-project-attribute', {\n          entity: this.sessionData.entity,\n          project: this.model.project.last.value,\n          worker,\n          attribute\n        }).save();\n      }))]);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_worker\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"permissionsChangeset\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"isAddingWorkerToProject\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"workerToAddToProject\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"workerPermissionModal\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"filteredWorkers\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"filteredWorkers\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"projectWorkers\", [_dec2], Object.getOwnPropertyDescriptor(_class2.prototype, \"projectWorkers\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"unassignedWorkers\", [_dec3], Object.getOwnPropertyDescriptor(_class2.prototype, \"unassignedWorkers\"), _class2.prototype), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"_workersToAddToProject\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/people/workers/worker\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/service\", \"portal/routes/entity/builda-price/projects/project/people/workers/worker\", \"portal/routes/entity/settings/people/workers/worker\"], function (_exports, _asyncArrowRuntime, _controller, _object, _tracking, _service, _worker, _worker2) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"portal/routes/entity/builda-price/projects/project/people/workers/worker\",0,\"portal/routes/entity/settings/people/workers/worker\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('intl', 'model.basePath', 'model.worker.last.value.{fullName,id}'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _initializerDefineProperty(this, \"router\", _descriptor4, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _defineProperty(this, \"permissionSupersededMessage\", this.intl.t('shared.notification.thisOptionIsSupersededByACompanyPermission'));\n      _initializerDefineProperty(this, \"_projectPermissionsVisible\", _descriptor7, this);\n      _initializerDefineProperty(this, \"_healthAndSafetyPermissionsVisible\", _descriptor8, this);\n      _defineProperty(this, \"saveWorkerPermissions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          try {\n            yield changeset.validate();\n            if (changeset.isInvalid) return;\n            const attributesToAdd = new Set();\n            const attributesToRemove = new Set();\n            if (changeset.canViewTasks) {\n              _worker.canViewTaskAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _worker.canViewTaskAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canCreateHealthAndSafety) {\n              _worker.canCreateHealthAndSafetyAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _worker.canCreateHealthAndSafetyAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            yield this.handleWorkerProjectAttributes([...attributesToAdd], [...attributesToRemove]);\n            this.notifications.success(this.intl.t('shared.notification.Successfully saved permissions'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongSavingThePermissions'),\n              error\n            });\n          }\n        }\n      }), null, \"saveWorkerPermissions\", null));\n      _defineProperty(this, \"deleteWorker\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            if (!confirm(this.intl.t('entity.builda-price.projects.project.people.workers.worker.removeWorkerFromProjectConfirm'))) return;\n\n            // remove all the project and task permissions\n            const taskIds = this.model.project.last.value.hasMany('tasks').ids();\n            const [projectAttributes, taskAttributes] = yield Promise.all([this.store.simpleQuery('worker-project-attribute', {\n              worker: this.model.worker.last.value.id,\n              project: this.model.project.last.value.id\n            }), this.store.simpleQuery('worker-task-attribute', {\n              worker: this.model.worker.last.value.id\n            }).then(utas => utas.toArray().filter(uta => taskIds.includes(uta.belongsTo('task').id())))]);\n            yield Promise.all([...projectAttributes.map(pa => pa.destroyRecord()), ...taskAttributes.map(ta => ta.destroyRecord())]);\n            this.router.transitionTo(`${this.model.basePath}.workers`);\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.people.workers.worker.Removed worker from project'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.Something went wrong removing the worker'),\n              error\n            });\n          }\n        }\n      }), null, \"deleteWorker\", null));\n    }\n    get isRunning() {\n      return this.model.project.isRunning || this.model.worker.isRunning || this.model.permissionsChangeset.isRunning;\n    }\n    get crumbStack() {\n      const paths = [{\n        route: `${this.model.basePath}.workers`,\n        pageTitle: this.intl.t('common.Workers')\n      }, {\n        route: `${this.model.basePath}.workers`,\n        model: this.model.worker.last.value.id,\n        pageTitle: this.model.worker.last.value.fullName\n      }];\n      return paths;\n    }\n    get entityCanViewTasks() {\n      return this.userIsEntityAdmin || this.model.worker.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, 'canViewTasks');\n    }\n    get projectPermissionsCount() {\n      return [_worker.canViewTaskAttributes].filter(attrs => this.model.worker.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ...attrs)).length;\n    }\n    get projectPermissionsVisible() {\n      if (this._projectPermissionsVisible != null) return this._projectPermissionsVisible;\n      return this.projectPermissionsCount > 0;\n    }\n    set projectPermissionsVisible(value) {\n      this._projectPermissionsVisible = value;\n    }\n    get healthAndSafetyPermissionsCount() {\n      return [_worker.canCreateHealthAndSafetyAttributes].filter(attrs => this.model.worker.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ...attrs)).length;\n    }\n    get healthAndSafetyPermissionsVisible() {\n      if (this._healthAndSafetyPermissionsVisible != null) return this._healthAndSafetyPermissionsVisible;\n      return this.healthAndSafetyPermissionsCount > 0;\n    }\n    set healthAndSafetyPermissionsVisible(value) {\n      this._healthAndSafetyPermissionsVisible = value;\n    }\n    get entityCanCreateHealthAndSafety() {\n      return this.model.worker.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._worker2.workerHealthAndSafetyAttributes);\n    }\n    async handleWorkerProjectAttributes(projectAttributesToAdd, _projectAttributesToRemove) {\n      // don't bother removing attributes we're going to add later\n      const projectAttributesToRemove = _projectAttributesToRemove.filter(ar => !projectAttributesToAdd.includes(ar));\n      const existingProjectAttributes = await this.store.simpleQuery('worker-project-attribute', {\n        worker: this.model.worker.last.value.id,\n        project: this.model.project.last.value.id\n      }).then(r => r.toArray());\n      await this.store.findAll('worker-attribute');\n      // add and remove entity attribute from the worker\n      await Promise.all([Promise.all(projectAttributesToRemove.map(async ea => {\n        const matchingExistingAttributes = existingProjectAttributes.filter(a => a.belongsTo('attribute').id() === ea);\n\n        // only remove the attribute if it exists\n        // this can be a singular check once the db constraints are fixed\n        if (matchingExistingAttributes.length) await Promise.all(matchingExistingAttributes.map(a => a.destroyRecord()));\n      })), Promise.all(projectAttributesToAdd.map(async ea => {\n        // don't add if it's already there\n        if (existingProjectAttributes.some(a => a.belongsTo('attribute').id() === ea)) return;\n\n        // fetch and check attribute is valid\n        const attribute = await this.store.peekRecord('worker-attribute', ea);\n        if (!attribute) throw new Error('Tried to create a non-existent attribute');\n\n        // create the relationship\n        await this.store.createRecord('worker-project-attribute', {\n          entity: this.sessionData.entity,\n          project: this.model.project.last.value,\n          worker: this.model.worker.last.value,\n          attribute\n        }).save();\n      }))]);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"crumbStack\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"crumbStack\"), _class2.prototype), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_projectPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"_healthAndSafetyPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/products\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\", \"@ember/runloop\", \"portal/config/environment\", \"ember-changeset\", \"portal/utils/search-filter\"], function (_exports, _asyncArrowRuntime, _controller, _tracking, _object, _service, _runloop, _environment, _emberChangeset, _searchFilter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"@ember/runloop\",0,\"portal/config/environment\",0,\"ember-changeset\",0,\"portal/utils/search-filter\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor4, this);\n      _initializerDefineProperty(this, \"portalApiV2\", _descriptor5, this);\n      _initializerDefineProperty(this, \"numberFormat\", _descriptor6, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor7, this);\n      _initializerDefineProperty(this, \"isAddingProduct\", _descriptor8, this);\n      _initializerDefineProperty(this, \"isDeletingProducts\", _descriptor9, this);\n      _initializerDefineProperty(this, \"isEditingProduct\", _descriptor0, this);\n      _initializerDefineProperty(this, \"pageIndex\", _descriptor1, this);\n      _initializerDefineProperty(this, \"pageSize\", _descriptor10, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor11, this);\n      _initializerDefineProperty(this, \"searchTerm\", _descriptor12, this);\n      _initializerDefineProperty(this, \"selectProductIds\", _descriptor13, this);\n      _initializerDefineProperty(this, \"selectedProductId\", _descriptor14, this);\n      _initializerDefineProperty(this, \"sortBy\", _descriptor15, this);\n      _initializerDefineProperty(this, \"sortDirection\", _descriptor16, this);\n      _initializerDefineProperty(this, \"supplier\", _descriptor17, this);\n      _defineProperty(this, \"suppliers\", []);\n      _defineProperty(this, \"suppliersFilter\", undefined);\n      _defineProperty(this, \"suppliersPage\", undefined);\n      _defineProperty(this, \"suppliersPageSize\", 10);\n      _defineProperty(this, \"queryParams\", ['pageSize', 'pageIndex', 'sortBy', 'sortDirection', 'searchTerm', 'supplier']);\n      _defineProperty(this, \"onChangeSearchTerm\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSearchTerm, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onChangeSearchTerm\", null));\n      _defineProperty(this, \"onAddProduct\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (product) {\n          try {\n            yield this.store.createRecord('project-product', {\n              ...product,\n              project: this.model.project.last.value,\n              entity: this.sessionData.entity\n            }).save();\n            this.isAddingProduct = false;\n            yield this.updateProductList.perform();\n          } catch (error) {\n            if (error.errors[0].status === '409') this.notifications.warning(this.intl.t('shared.notification.Product already exists'));\n          }\n        }\n      }), null, \"onAddProduct\", null));\n      _defineProperty(this, \"onSaveProduct\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (productChangeSet) {\n          try {\n            yield productChangeSet.save();\n            this.isEditingProduct = false;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongWhileSavingProduct'),\n              error\n            });\n          }\n          yield this.updateProductList.perform();\n        }\n      }), null, \"onSaveProduct\", null));\n      _defineProperty(this, \"updateProductList\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.model.products.perform(this.model.project, Number(this.model.pageSize), Number(this.model.pageIndex), this.model.sortBy, this.model.sortDirection, this.model.searchTerm);\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongWhileReloadProducts'),\n              error\n            });\n          }\n        }\n      }), null, \"updateProductList\", null));\n      _defineProperty(this, \"deleteProducts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.store.adapterFor('project-product').deleteBulk('project-product', [...this.selectProductIds]);\n            this.isDeletingProducts = false;\n            this.selectProductIds = new Set();\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongWhileDeletingProducts'),\n              error\n            });\n          }\n          yield this.updateProductList.perform();\n        }\n      }), null, \"deleteProducts\", null));\n      _defineProperty(this, \"loadMoreSuppliers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (searchTerm) {\n          try {\n            const suppliersFilter = {\n              and: [{\n                field: 'entity',\n                operator: 'EQ',\n                value: this.sessionData.entity.id\n              }]\n            };\n            if (searchTerm?.length) {\n              suppliersFilter.and.push((0, _searchFilter.default)(['name'], searchTerm, 'operator'));\n            }\n            if (JSON.stringify(suppliersFilter) !== JSON.stringify(this.suppliersFilter)) {\n              this.suppliersPage = undefined;\n              this.suppliersFilter = suppliersFilter;\n              this.suppliers = [];\n            }\n            if (this.suppliersPage && !this.suppliersPage?.hasNextPage) return this.suppliers;\n            const nextPageNumber = (this.suppliersPage?.currentPage || 0) + 1;\n            const nextPage = yield this.portalApiV2.authGet('/search-suppliers', {\n              filter: suppliersFilter,\n              pageSize: this.suppliersPageSize,\n              page: nextPageNumber,\n              orderBy: 'name',\n              orderByDirection: 'desc'\n            });\n            this.suppliersPage = nextPage.pagination;\n            this.suppliers = [...this.suppliers, ...nextPage.data];\n            return this.suppliers;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongLoadingMoreSuppliers'),\n              error\n            });\n          }\n        }\n      }), {\n        restartable: true\n      }, \"loadMoreSuppliers\", null));\n    }\n    get products() {\n      return this.model.products.last.value || [];\n    }\n    get supplierChangeSet() {\n      return (0, _emberChangeset.Changeset)({\n        supplierName: this.supplier\n      });\n    }\n    get isLoading() {\n      return this.model.products.isRunning || this.deleteProducts.isRunning || this.onSaveProduct.isRunning;\n    }\n    updateSearchTerm(value) {\n      this.selectProductIds = new Set();\n      this.pageIndex = 1;\n      this.searchTerm = value;\n    }\n    onChangePageIndex(pageIndex) {\n      this.pageIndex = pageIndex;\n    }\n    onChangePageSize(pageSize) {\n      this.pageSize = pageSize;\n    }\n    get totalRecords() {\n      if (this.model.products.isRunning) return 0;\n      return this.products.meta.totalRecords;\n    }\n    onSelectProduct(_row, col, e) {\n      if (e.target.checked) {\n        this.selectProductIds.add(col.extraData.productId);\n      } else {\n        this.selectProductIds.delete(col.extraData.productId);\n      }\n\n      // Set is not supported by tracked\n      // eslint-disable-next-line no-self-assign\n      this.selectProductIds = this.selectProductIds;\n    }\n    onClickProductName(_row, col) {\n      this.selectedProductId = col.extraData.productId;\n      this.isEditingProduct = true;\n    }\n    onSelectCurrentPageProducts(_row, col, e) {\n      const selectedProductIds = new Set();\n      if (e.target.checked) {\n        this.products.forEach(p => {\n          selectedProductIds.add(p.id);\n        });\n      }\n      this.selectProductIds = selectedProductIds;\n    }\n    onCreateProduct() {\n      this.selectedProductId = null;\n      this.isEditingProduct = true;\n    }\n    sortColumn(_row, col) {\n      if (this.sortBy !== col.value) {\n        this.sortBy = col.value;\n        this.sortDirection = 'asc';\n        return;\n      }\n      this.sortBy = col.value;\n      if (this.sortDirection === 'asc') {\n        this.sortDirection = 'desc';\n      } else if (this.sortDirection === 'desc') {\n        this.sortDirection = undefined;\n      } else {\n        this.sortDirection = 'asc';\n      }\n    }\n    get showFilters() {\n      return this.productTableData?.length || this.supplierChangeSet.get('supplierName') || this.searchTerm?.length;\n    }\n    get productTableHeader() {\n      if (this.model.products.isRunning) return [];\n      const productHeader = [{\n        value: this.intl.t('common.Product'),\n        iconName: this.sortBy === 'Product' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left'\n      }, {\n        value: this.intl.t('common.Supplier'),\n        iconName: this.sortBy === 'Supplier' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left'\n      }, {\n        value: this.intl.t('common.SKU'),\n        iconName: this.sortBy === 'SKU' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left'\n      }, {\n        value: this.intl.t('common.Unit'),\n        iconName: this.sortBy === 'Unit' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left'\n      }, {\n        value: this.intl.t('common.Unit price'),\n        iconName: this.sortBy === 'Unit price' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-right'\n      }];\n      if (this.isEditable && this.products.length) productHeader.unshift({\n        type: 'CHECKBOX_INPUT',\n        colClass: 'text-center align-middle',\n        value: Boolean(this.selectProductIds.size === this.products.length),\n        isPartiallySelected: Boolean(this.selectProductIds.size && this.selectProductIds.size !== this.products.length),\n        onInputChange: this.onSelectCurrentPageProducts\n      });\n      return productHeader;\n    }\n    get productTableData() {\n      if (this.model.products.isRunning) return [];\n      return this.products.map(product => {\n        const productData = [{\n          colClass: 'text-left align-middle',\n          value: product.supplierName\n        }, {\n          colClass: 'text-left align-middle',\n          value: product.sku\n        }, {\n          colClass: 'text-left align-middle',\n          value: product.unit\n        }, {\n          colClass: 'text-right align-middle',\n          value: this.numberFormat.format(product.unitPrice, {\n            style: 'currency',\n            dashZero: true\n          })\n        }];\n        if (this.isEditable) {\n          productData.unshift({\n            type: 'BUTTON',\n            textClass: 'btn btn-link',\n            value: product.description,\n            onClickButton: this.onClickProductName,\n            extraData: {\n              productId: product.id\n            }\n          });\n          productData.unshift({\n            type: 'CHECKBOX_INPUT',\n            colClass: 'text-center align-middle',\n            value: this.selectProductIds.has(product.id),\n            onInputChange: this.onSelectProduct,\n            extraData: {\n              productId: product.id\n            }\n          });\n        } else {\n          productData.unshift({\n            colClass: 'align-middle',\n            value: product.description\n          });\n        }\n        return {\n          rowData: productData\n        };\n      });\n    }\n    get isEditable() {\n      return this.newFeatureFlags.includesFeatureFlags(this.model.project.last.value, 'canManageProducts');\n    }\n    setSupplier(value) {\n      const supplierName = value?.supplierName;\n      this.supplier = supplierName;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"portalApiV2\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"numberFormat\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"isAddingProduct\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"isDeletingProducts\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"isEditingProduct\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"pageIndex\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"pageSize\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.searchTerm;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"searchTerm\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"selectProductIds\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return new Set();\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"selectedProductId\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, \"sortBy\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, \"sortDirection\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, \"supplier\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"onChangePageIndex\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onChangePageIndex\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onChangePageSize\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onChangePageSize\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onSelectProduct\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onSelectProduct\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onClickProductName\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onClickProductName\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onSelectCurrentPageProducts\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onSelectCurrentPageProducts\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onCreateProduct\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onCreateProduct\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"sortColumn\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"sortColumn\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setSupplier\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setSupplier\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/progress\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"@glimmer/tracking\", \"@ember/object\"], function (_exports, _asyncArrowRuntime, _controller, _service, _tracking, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('progressList.@each.{children,isDifferentFromLastVersion}'), _dec2 = (0, _object.computed)('model.project.last.value', 'newFeatureFlags'), _dec3 = (0, _object.computed)('model.progressList.last.value'), _dec4 = (0, _object.computed)('isSaving', 'isLoading', 'model.progressList.last.value.length'), _dec5 = (0, _object.computed)('model.progressList.last.value'), _dec6 = (0, _object.computed)('model.{project.last.value.draftProgressChangeSet,progressList.last.value.@each.isDirty}'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor2, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor3, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _initializerDefineProperty(this, \"showCommitProgressModal\", _descriptor6, this);\n      _defineProperty(this, \"saveDraftProgress\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            const manageableProjectList = this.progressList.filter(p => p.task.canManageTaskProgress || p.children);\n            const promises = [this.buildaPrice.updateDraftProgressPosition(manageableProjectList)];\n            if (this.canCompleteTasks) {\n              const taskList = function makeTasks(containers) {\n                const tasks = [];\n                for (const container of containers) {\n                  // only send real tasks\n                  if (container.isDirect) continue;\n                  const task = {\n                    task: {\n                      id: container.task.id,\n                      path: container.task.path,\n                      status: container.task.status,\n                      parent: container.task.belongsTo('parent').id(),\n                      isComplete: container.isComplete,\n                      entity: container.task.belongsTo('entity').id()\n                    }\n                  };\n                  if (container.children) task.children = makeTasks(container.children);\n                  tasks.push(task);\n                }\n                return tasks;\n              }(manageableProjectList);\n\n              // this must be done before the commit because the task status changes from draft to active\n              promises.push(this.buildaPrice.updateTaskList(taskList));\n            }\n            yield Promise.all(promises);\n            yield this.model.project.last.value.reload();\n            yield this.model.progressList.perform(this.model.project);\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.progress.Successfully saved progress draft'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.progress.somethingWentWrongWhileSavingProgressDraft'),\n              error\n            });\n          }\n        }\n      }), null, \"saveDraftProgress\", null));\n      _defineProperty(this, \"commitProgressVersion\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            const projectId = this.model.project.last.value.id;\n            const manageableProjectList = this.progressList.filter(p => p.task.canManageTaskProgress || p.children);\n            const promises = [this.buildaPrice.updateDraftProgressPosition(manageableProjectList)];\n            if (this.canCompleteTasks) {\n              const taskList = function makeTasks(containers) {\n                const tasks = [];\n                for (const container of containers) {\n                  // only send real tasks\n                  if (container.isDirect) continue;\n                  const task = {\n                    task: {\n                      id: container.task.id,\n                      path: container.task.path,\n                      status: container.task.status,\n                      parent: container.task.belongsTo('parent').id(),\n                      isComplete: container.isComplete,\n                      entity: container.task.belongsTo('entity').id()\n                    }\n                  };\n                  if (container.children) task.children = makeTasks(container.children);\n                  tasks.push(task);\n                }\n                return tasks;\n              }(manageableProjectList);\n\n              // this must be done before the commit because the task status changes from draft to active\n              promises.push(this.buildaPrice.updateTaskList(taskList));\n            }\n            yield Promise.all(promises);\n            yield this.buildaPrice.commitProject(projectId, {\n              commitBudget: false,\n              commitQuote: false,\n              commitProgress: true,\n              commitScheduling: false\n            });\n            this.showCommitProgressModal = false;\n            (0, _object.set)(this, 'model.project.last.value.draftProgressChangeSet', null);\n            yield this.model.project.last.value.reload();\n            yield this.model.progressList.perform(this.model.project);\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.progress.Successfully made progress version'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.progress.somethingWentWrongWhileMakingTheProgressVersion'),\n              error\n            });\n          }\n        }\n      }), null, \"commitProgressVersion\", null));\n    }\n    get isSaving() {\n      return this.saveDraftProgress.isRunning || this.commitProgressVersion.isRunning;\n    }\n    get isLoading() {\n      return this.model.progressList.isRunning;\n    }\n    get canCompleteTasks() {\n      return this.newFeatureFlags.includesFeatureFlags(this.model.project.last.value, 'canManageTasks');\n    }\n    get numberOfChanges() {\n      let count = 0;\n      (function countChanges(containers) {\n        containers.forEach(container => {\n          if (!container.children && container.isDifferentFromLastVersion) count++;\n          if (container.children) countChanges(container.children);\n        });\n      })(this.progressList);\n      return count;\n    }\n    get canSeeCreateVersionButton() {\n      if (!this.model.project.last.value) return true;\n      return this.newFeatureFlags.includesFeatureFlags(this.model.project.last.value, 'canManageProgressVersions');\n    }\n    get canSeeSaveDraftButton() {\n      if (!this.model.progressList.last.value) return true;\n      const findCanManageTaskProgress = list => {\n        if (list.some(pl => pl.task.canManageTaskProgress)) return true;\n        if (list.children?.length) return findCanManageTaskProgress(list.children);\n      };\n      return findCanManageTaskProgress(this.model.progressList.last.value);\n    }\n    get showTaskControls() {\n      if (this.isSaving) return true;\n      if (this.isLoading) return true;\n      if (this.model.progressList.last.value?.length) return true;\n      return false;\n    }\n    get progressList() {\n      return this.model.progressList.last.value;\n    }\n    get latestVersion() {\n      return this.model.project.last.value?.currentProgressVersion;\n    }\n    get isDraft() {\n      return Boolean(this.model.project.last.value?.belongsTo('draftProgressChangeSet').id() || this.model.progressList.last.value?.some(tc => tc.isDirty));\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"showCommitProgressModal\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"numberOfChanges\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"numberOfChanges\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"canSeeCreateVersionButton\", [_dec2], Object.getOwnPropertyDescriptor(_class2.prototype, \"canSeeCreateVersionButton\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"canSeeSaveDraftButton\", [_dec3], Object.getOwnPropertyDescriptor(_class2.prototype, \"canSeeSaveDraftButton\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"showTaskControls\", [_dec4], Object.getOwnPropertyDescriptor(_class2.prototype, \"showTaskControls\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"progressList\", [_dec5], Object.getOwnPropertyDescriptor(_class2.prototype, \"progressList\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"isDraft\", [_dec6], Object.getOwnPropertyDescriptor(_class2.prototype, \"isDraft\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/settings\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"ember-changeset\", \"@ember/service\", \"@glimmer/tracking\", \"@ember/object\"], function (_exports, _asyncArrowRuntime, _controller, _emberChangeset, _service, _tracking, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"ember-changeset\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/object\",0,\"ember-concurrency\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('model.xeroTrackingOptions.last.value.length'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"portalApiV2\", _descriptor2, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor3, this);\n      _initializerDefineProperty(this, \"router\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _initializerDefineProperty(this, \"accountingPlatform\", _descriptor6, this);\n      _initializerDefineProperty(this, \"xeroIntegration\", _descriptor7, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor8, this);\n      _initializerDefineProperty(this, \"store\", _descriptor9, this);\n      _initializerDefineProperty(this, \"isArchivingProject\", _descriptor0, this);\n      _initializerDefineProperty(this, \"isDeletingProject\", _descriptor1, this);\n      _initializerDefineProperty(this, \"addressSuggestions\", _descriptor10, this);\n      _defineProperty(this, \"googleMapAddressFinder\", (0, _emberChangeset.Changeset)({\n        address: null\n      }));\n      _defineProperty(this, \"status\", [{\n        value: 'OPEN',\n        label: this.intl.t('common.Open')\n      }, {\n        value: 'HELD',\n        label: this.intl.t('common.Held')\n      }, {\n        value: 'CLOSED',\n        label: this.intl.t('common.Closed')\n      }, {\n        value: 'ARCHIVED',\n        label: this.intl.t('common.Archived')\n      }]);\n      _defineProperty(this, \"contractType\", [{\n        value: 'COST_PLUS',\n        label: this.intl.t('shared.task.Cost plus')\n      }, {\n        value: 'FIXED_PRICE',\n        label: this.intl.t('shared.task.Fixed price')\n      }]);\n      _defineProperty(this, \"syncXeroTrackingCategoryOptions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            const {\n              removed\n            } = yield this.xeroIntegration.getTrackingCategoryOptions(this.sessionData.entity);\n            const storeTrackingOptions = this.store.peekAll('xero-tracking-option');\n            if (removed.length) {\n              for (const id of removed) {\n                const option = storeTrackingOptions.find(a => a.id === id);\n                if (option) {\n                  // unload the record\n                  this.store.unloadRecord(option);\n                }\n              }\n            }\n            yield this.model.xeroTrackingOptions.perform();\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.settings.Successfully synced tracking categories'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.settings.somethingWentWrongReloadingTrackingCategories'),\n              error\n            });\n          }\n        }\n      }), null, \"syncXeroTrackingCategoryOptions\", null));\n      _defineProperty(this, \"onAddressChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (val) {\n          if (val.trim().length > 0) {\n            const addressSuggestions = yield this.portalApiV2.authPost('/places/search', {\n              input: val\n            });\n            this.addressSuggestions = addressSuggestions;\n          }\n        }\n      }), null, \"onAddressChange\", null));\n      _defineProperty(this, \"deleteProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.model.project.last.value.delete();\n            this.isDeletingProject = false;\n            this.router.transitionTo('entity.builda-price.projects');\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.settings.Successfully deleted the project'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.settings.projectsWithAllocatedCostsOrPurchaseOrdersCanNotBeDeletedInsteadSetTheProjectToArchived'),\n              error\n            }, 5000);\n          }\n        }\n      }), null, \"deleteProject\", null));\n      _defineProperty(this, \"archiveProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          this.model.project.last.value.status = 'ARCHIVED';\n          try {\n            yield this.model.project.last.value.save();\n            this.isArchivingProject = false;\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.settings.Successfully archived the project'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.settings.somethingWentWrongArchivingTheProject'),\n              error\n            });\n          }\n        }\n      }), null, \"archiveProject\", null));\n      _defineProperty(this, \"saveProfitMargin\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projectChangeset, profitMarginChangeset) {\n          if (this.canManageProject) {\n            projectChangeset.validate();\n            if (projectChangeset.isInvalid) {\n              this.notifications.warning(this.intl.t('shared.notification.Please complete the project information'));\n              return;\n            }\n          }\n\n          // because the profit type changing modifies the percentage validation\n          // we need to force a validate on all fields (including pristine)\n          if (this.canManageProfitMargin) {\n            profitMarginChangeset.validate('profitType', 'labourPercentage', 'materialsPercentage', 'subcontractorsPercentage', 'sumsPercentage');\n            if (profitMarginChangeset.saveProfitMargin) {\n              this.notifications.warning(this.intl.t('shared.notification.pleaseCompleteTheProfitMarginInformation'));\n              return;\n            }\n          }\n          try {\n            // commit the changes\n            if (this.canManageProfitMargin) {\n              profitMarginChangeset.execute();\n              yield profitMarginChangeset.save();\n            }\n            if (this.canManageProject) {\n              projectChangeset.execute();\n              yield projectChangeset.save();\n            }\n            this.notifications.success('Saved successfully');\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongSavingTheProfitMargins'),\n              error\n            });\n          }\n        }\n      }), null, \"saveProfitMargin\", null));\n      _defineProperty(this, \"saveProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projectChangeset) {\n          if (this.canManageProject) {\n            projectChangeset.validate('startDate', 'completionDate', 'name', 'status');\n            if (projectChangeset.isInvalid) {\n              this.notifications.warning(this.intl.t('shared.notification.Please complete the project information'));\n              return;\n            }\n          }\n          try {\n            const promises = [];\n            if (this.canManageProject) {\n              projectChangeset.execute();\n              promises.push(projectChangeset.save());\n            }\n            yield Promise.all(promises);\n            this.notifications.success(this.intl.t('shared.notification.Saved successfully'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.settings.Something went wrong saving the project'),\n              error\n            });\n          }\n        }\n      }), null, \"saveProject\", null));\n    }\n    clearAddressSuggestions() {\n      this.addressSuggestions = [];\n      this.googleMapAddressFinder.address = null;\n    }\n    get isLoading() {\n      return this.model.project.isRunning || this.model.loadProjectProfitMargin.isRunning || this.model.glAccounts.isRunning;\n    }\n    get canDelete() {\n      return this.model.project.last.value.canDelete;\n    }\n    get canManageProject() {\n      return this.newFeatureFlags.includesFeatureFlags(this.model.project.last.value, 'canManageProjects');\n    }\n    get canManageProfitMargin() {\n      return this.newFeatureFlags.includesFeatureFlags(this.model.project.last.value, 'canManageProfitMargin');\n    }\n    get projectClientsString() {\n      return this.model.projectClients.last.value?.map(c => c.fullName).join(', ') || null;\n    }\n    set purchasesGlAccountIsOverridden(value) {}\n    get purchasesGlAccountIsOverridden() {\n      const currentValue = this.model.projectChangeset.last.value.purchasesGlAccount;\n      return currentValue !== null;\n    }\n    set salesGlAccountIsOverridden(value) {}\n    get salesGlAccountIsOverridden() {\n      const currentValue = this.model.projectChangeset.last.value.salesGlAccount;\n      return currentValue !== null;\n    }\n    togglePurchasesGlAccountOverride(projectModel) {\n      const currentValue = projectModel.purchasesGlAccount;\n      const effectivePurchasesGlAccount = this.model.project.lastSuccessful.value.defaultPurchasesGlAccount || this.model.glAccounts.lastSuccessful.value.toArray()[0] || undefined;\n      const newValue = currentValue !== null ? null : effectivePurchasesGlAccount;\n      projectModel.set('purchasesGlAccount', newValue);\n    }\n    toggleSalesGlAccountOverride(projectModel) {\n      const currentValue = projectModel.salesGlAccount;\n      const effectiveSalesGlAccount = this.model.project.lastSuccessful.value.defaultSalesGlAccount || this.model.glAccounts.lastSuccessful.value.toArray()[0] || undefined;\n      const newValue = currentValue !== null ? null : effectiveSalesGlAccount;\n      projectModel.set('salesGlAccount', newValue);\n    }\n    get deleteMessages() {\n      return [this.intl.t('entity.builda-price.projects.project.settings.Do you want to delete this project')];\n    }\n    // power select component options loading state wants a promise\n    get xeroTrackingOptions() {\n      return (async () => {\n        const value = await this.model.xeroTrackingOptions.last;\n        return value;\n      })();\n    }\n    onRadiusChange(rad) {\n      this.model.projectChangeset.last.value.rad = rad;\n    }\n    async setGoogleMapAddress(suggestion) {\n      this.addressSuggestions = [];\n\n      // enter with nothing highlighted selects nothing, the typed text stands\n      if (!suggestion) return;\n      const {\n        address,\n        id\n      } = suggestion;\n      this.googleMapAddressFinder.address = address;\n      const {\n        latitude,\n        longitude\n      } = await this.portalApiV2.authGet(`/places/location/${id}`);\n      this.model.projectChangeset.last.value.lat = latitude;\n      this.model.projectChangeset.last.value.lng = longitude;\n    }\n    async setAddress(suggestion) {\n      this.addressSuggestions = [];\n      if (!suggestion) return;\n      const {\n        address,\n        id\n      } = suggestion;\n      this.model.projectChangeset.last.value.address = address;\n      const {\n        latitude,\n        longitude\n      } = await this.portalApiV2.authGet(`/places/location/${id}`);\n      this.model.projectChangeset.last.value.lat = latitude;\n      this.model.projectChangeset.last.value.lng = longitude;\n    }\n    onClickMap(lat, lng) {\n      this.model.projectChangeset.last.value.lat = lat;\n      this.model.projectChangeset.last.value.lng = lng;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"portalApiV2\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"accountingPlatform\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"xeroIntegration\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"isArchivingProject\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"isDeletingProject\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"addressSuggestions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"clearAddressSuggestions\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"clearAddressSuggestions\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"togglePurchasesGlAccountOverride\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"togglePurchasesGlAccountOverride\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"toggleSalesGlAccountOverride\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"toggleSalesGlAccountOverride\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"xeroTrackingOptions\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"xeroTrackingOptions\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onRadiusChange\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onRadiusChange\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setGoogleMapAddress\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setGoogleMapAddress\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setAddress\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setAddress\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onClickMap\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onClickMap\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/stage-payments\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\", \"ember-changeset\", \"portal/models/entity-invoice-option\", \"lodash\"], function (_exports, _asyncArrowRuntime, _controller, _tracking, _object, _service, _emberChangeset, _entityInvoiceOption, _lodash) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25, _descriptor26, _descriptor27, _descriptor28, _descriptor29, _descriptor30, _descriptor31, _descriptor32, _descriptor33;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"ember-changeset\",0,\"portal/models/entity-invoice-option\",0,\"lodash\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let StagePaymentsController = _exports.default = (_class = class StagePaymentsController extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"numberFormat\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor5, this);\n      _initializerDefineProperty(this, \"router\", _descriptor6, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor7, this);\n      _initializerDefineProperty(this, \"store\", _descriptor8, this);\n      _initializerDefineProperty(this, \"showCreateStagesModal\", _descriptor9, this);\n      _initializerDefineProperty(this, \"numberOfStages\", _descriptor0, this);\n      _initializerDefineProperty(this, \"showNameEditor\", _descriptor1, this);\n      _initializerDefineProperty(this, \"showDateEditor\", _descriptor10, this);\n      _initializerDefineProperty(this, \"showValueEditor\", _descriptor11, this);\n      _initializerDefineProperty(this, \"pageSize\", _descriptor12, this);\n      _initializerDefineProperty(this, \"pageNumber\", _descriptor13, this);\n      _initializerDefineProperty(this, \"sortBy\", _descriptor14, this);\n      _initializerDefineProperty(this, \"sortDirection\", _descriptor15, this);\n      _initializerDefineProperty(this, \"showChecklistModal\", _descriptor16, this);\n      _initializerDefineProperty(this, \"showTaskSelectorModal\", _descriptor17, this);\n      _initializerDefineProperty(this, \"selectedStages\", _descriptor18, this);\n      _initializerDefineProperty(this, \"showBulkDeleteStagesModal\", _descriptor19, this);\n      _initializerDefineProperty(this, \"showDeleteStageModal\", _descriptor20, this);\n      _initializerDefineProperty(this, \"currentStageLinkedTasks\", _descriptor21, this);\n      _initializerDefineProperty(this, \"currentChecklist\", _descriptor22, this);\n      _initializerDefineProperty(this, \"allStageLinkedTasks\", _descriptor23, this);\n      _initializerDefineProperty(this, \"remainingQuoteValue\", _descriptor24, this);\n      _initializerDefineProperty(this, \"useValueFromTasks\", _descriptor25, this);\n      _initializerDefineProperty(this, \"currentStagePayment\", _descriptor26, this);\n      _initializerDefineProperty(this, \"showBulkActionsModal\", _descriptor27, this);\n      _initializerDefineProperty(this, \"showProjectLevelContractTermsModal\", _descriptor28, this);\n      _initializerDefineProperty(this, \"showDownloadOptions\", _descriptor29, this);\n      _initializerDefineProperty(this, \"includeTasks\", _descriptor30, this);\n      _initializerDefineProperty(this, \"includeCheckListItems\", _descriptor31, this);\n      _defineProperty(this, \"status\", 'ALL');\n      _defineProperty(this, \"queryParams\", ['pageSize', 'pageNumber', 'sortBy', 'status', 'sortDirection']);\n      _defineProperty(this, \"stagePaymentValidationMap\", {\n        name: (_key, val) => {\n          if (val?.length > 255) {\n            return this.intl.t('validation.pleaseInputANameLessThan255Characters');\n          }\n          return true;\n        },\n        stageNumber: (_key, val) => {\n          const stageNumber = Number(val);\n          return stageNumber >= 1 && Number.isInteger(stageNumber) && stageNumber <= this.totalRecords || this.intl.t('entity.builda-price.projects.project.stage-payments.stageNumberMustBeGreaterIntThanZeroAndLessThanMaxStageNumber', {\n            max: this.totalRecords\n          });\n        },\n        retention: (_key, val) => {\n          if (typeof val !== 'number') return true;\n\n          // null is valid\n          if (val === null) return true;\n          return val <= 1 || this.intl.t('validation.Please input a value less than 100');\n        }\n      });\n      _defineProperty(this, \"stagePaymentsOptionsValidationMap\", {});\n      _defineProperty(this, \"addNewQuestion\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (title) {\n          const newQuestion = yield this.store.createRecord('stage-payment-question', {\n            title: title,\n            complete: false,\n            entity: this.sessionData.entity,\n            stagePayment: this.currentStagePayment\n          }).save();\n          this.currentChecklist = [...this.currentChecklist, newQuestion];\n        }\n      }), null, \"addNewQuestion\", null));\n      _defineProperty(this, \"deleteQuestion\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (questionId) {\n          const question = this.store.peekRecord('stage-payment-question', questionId);\n          yield question.destroyRecord();\n          this.currentChecklist = this.currentChecklist.filter(item => item.id !== questionId);\n        }\n      }), null, \"deleteQuestion\", null));\n      _defineProperty(this, \"loadDataForValueModal\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            this.remainingQuoteValue = 0;\n            this.useValueFromTasks = 0;\n            const {\n              allStages,\n              quoteVersionValues,\n              allStagesLinkedTasks\n            } = yield this.loadDataForEffectivePercentage();\n            const usedQuote = (allStages || []).reduce((acc, stage) => acc + stage.value, 0);\n            const totalQuoteValue = (quoteVersionValues || []).reduce((acc, quote) => acc + quote.labour + quote.materials + quote.subcontractors + quote.sums, 0);\n            this.remainingQuoteValue = Math.max(totalQuoteValue - usedQuote, 0);\n            let useValueFromTasks = 0;\n            const linksByTask = _lodash.default.groupBy(allStagesLinkedTasks, link => link.belongsTo('task').id());\n            for (let taskId of Object.keys(linksByTask)) {\n              const items = linksByTask[taskId];\n              const effectivePercentage = calculateEffectivePercentage(items, this.currentStagePayment);\n              const currentTaskQuote = quoteVersionValues.find(qvv => qvv.belongsTo('task').id() === taskId);\n              const currentTaskShare = effectivePercentage * ((currentTaskQuote?.labour || 0) + (currentTaskQuote?.materials || 0) + (currentTaskQuote?.subcontractors || 0) + (currentTaskQuote?.sums || 0));\n              useValueFromTasks += currentTaskShare || 0;\n            }\n            this.useValueFromTasks = useValueFromTasks;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.stage-payments.Something went wrong while fetching data'),\n              error\n            });\n          }\n        }\n      }), null, \"loadDataForValueModal\", null));\n      _defineProperty(this, \"addStagePayments\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (stagesCount) {\n          try {\n            for (let i = 1; i <= stagesCount; i++) {\n              yield this.store.createRecord('stage-payment', {\n                entity: this.sessionData.entity,\n                project: this.model.project.lastSuccessful.value\n              }).save();\n            }\n            yield Promise.all([this.model.stagePayments.perform(this.model.project, this.model.pageNumber, this.model.pageSize, this.model.sortBy, this.model.sortByDirection, this.model.status), this.model.stagePaymentsValues.perform(this.model.project)]);\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.stage-payments.successfullyAddedStages', {\n              stage: stagesCount > 1 ? 'stages' : 'stage'\n            }));\n            this.numberOfStages = null;\n            this.showCreateStagesModal = false;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.stage-payments.somethingWentWrongWhileAddingStages', {\n                stage: stagesCount > 1 ? 'stages' : 'stage'\n              }),\n              error\n            });\n          }\n        }\n      }), null, \"addStagePayments\", null));\n      _defineProperty(this, \"saveCurrentStage\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          try {\n            yield changeset.validate();\n            if (!changeset.isValid) return;\n            yield changeset.execute();\n            yield changeset.save();\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.stage-payments.Successfully saved stage'));\n            yield this.model.stagePaymentsValues.perform(this.model.project);\n            yield this.model.stagePayments.perform(this.model.project, this.model.pageNumber, this.model.pageSize, this.model.sortBy, this.model.sortByDirection, this.model.status);\n            this.showNameEditor = false;\n            this.showValueEditor = false;\n            this.showDateEditor = false;\n            this.currentStagePayment = null;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.stage-payments.Something went wrong while saving stage'),\n              error\n            });\n          }\n        }\n      }), null, \"saveCurrentStage\", null));\n      _defineProperty(this, \"deleteStages\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            const invoiceLinks = [];\n            for (const record of this.selectedStages) {\n              const invoices = this.model.invoices.lastSuccessful.value.filter(i => i.belongsTo('stagePayment').value() === record);\n              if (invoices.length) {\n                const links = invoices.map(inv => {\n                  const url = this.router.urlFor('entity.builda-price.operations.outgoing.invoices.invoice', inv.id);\n                  return `<a target=\"_blank\" href=\"${url}\">${inv.invoiceNumber}</a>`;\n                });\n                invoiceLinks.push(...links);\n              }\n            }\n            if (invoiceLinks.length) {\n              const joinedLinks = invoiceLinks.join(', ');\n              this.notifications.warning({\n                message: `${this.intl.t('entity.builda-price.projects.project.stage-payments.stagePaymentWithInvoicesDeleteWarn')} ${joinedLinks}`,\n                clearDuration: 10000\n              });\n              return;\n            }\n            const actions = [];\n            for (const record of this.selectedStages) {\n              actions.push(record.destroyRecord());\n            }\n            yield Promise.all(actions);\n            yield Promise.all([this.model.stagePayments.perform(this.model.project, this.model.pageNumber, this.model.pageSize, this.model.sortBy, this.model.sortByDirection, this.model.status), this.model.stagePaymentsValues.perform(this.model.project)]);\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.stage-payments.successfullyDeletedStage', {\n              stage: this.selectedStages.size > 1 ? 'stages' : 'stage'\n            }));\n            this.showBulkDeleteStagesModal = false;\n            this.selectedStages = new Set();\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.stage-payments.somethingWentWrongWhileDeletingStage', {\n                stage: this.selectedStages.size > 1 ? 'stages' : 'stage'\n              }),\n              error\n            });\n          }\n        }\n      }), null, \"deleteStages\", null));\n      _initializerDefineProperty(this, \"_bulkActionsStageValue\", _descriptor32, this);\n      _initializerDefineProperty(this, \"_computedRemainingQuoteValue\", _descriptor33, this);\n      _defineProperty(this, \"saveBulkActionDistributeValue\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            const actions = [];\n            const fixedValue = this.bulkActionsStageValue;\n            this.selectedStages.forEach(record => {\n              record.value = fixedValue;\n              actions.push(record.save());\n            });\n            yield Promise.all(actions);\n            yield this.model.stagePaymentsValues.perform(this.model.project);\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.stage-payments.successfullyAppliedTheValuesAcrossStage', {\n              stage: this.selectedStages.size > 1 ? 'stages' : 'stage'\n            }));\n            this.selectedStages = new Set();\n            this.bulkActionsStageValue = null;\n            this.showBulkActionsModal = false;\n            this._computedRemainingQuoteValue = null;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.stage-payments.somethingWentWrongWhileApplyingValues'),\n              error\n            });\n          }\n        }\n      }), null, \"saveBulkActionDistributeValue\", null));\n      _defineProperty(this, \"setRemainingQuoteValue\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          changeset.set('value', this.remainingQuoteValue);\n        }\n      }), null, \"setRemainingQuoteValue\", null));\n      _defineProperty(this, \"setUseValueFromTasks\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          changeset.set('value', this.useValueFromTasks);\n        }\n      }), null, \"setUseValueFromTasks\", null));\n      _defineProperty(this, \"saveStagePaymentOptions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (stagePaymentOption) {\n          if (stagePaymentOption.isInvalid) return;\n          try {\n            stagePaymentOption.execute();\n            const wasNew = Boolean(stagePaymentOption.isNew);\n            yield stagePaymentOption.save();\n\n            // if the record was new, we need to setup the relationship with the project\n            if (wasNew) {\n              const project = this.model.project.last.value;\n              yield project.save();\n            }\n            this.showProjectLevelContractTermsModal = false;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.stage-payments.somethingWentWrongUpdatingProjectNotes'),\n              error\n            });\n          }\n        }\n      }), null, \"saveStagePaymentOptions\", null));\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.buildaPrice.downloadStagePaymentsPDF(this.filename, {\n              entity: this.sessionData.entity.id,\n              project: this.model.project.last.value.id,\n              includeTasks: this.includeTasks,\n              includeCheckListItems: this.includeCheckListItems\n            });\n            this.closeDownloadOptions();\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongWhileDownloadingThePDF'),\n              error\n            });\n          }\n        }\n      }), null, \"downloadAsPdf\", null));\n    }\n    onChangePage(pageNumber) {\n      this.pageNumber = pageNumber;\n    }\n    onChangePageSize(pageSize) {\n      this.pageSize = pageSize;\n    }\n    get pageIsLoading() {\n      return this.model.stagePayments.lastSuccessful === null && this.model.stagePayments.isRunning || this.model.progressVersionValues.lastSuccessful === null && this.model.progressVersionValues.isRunning || this.model.stagePaymentsValues.lastSuccessful === null && this.model.stagePaymentsValues.isRunning || this.model.invoices.lastSuccessful === null && this.model.invoices.isRunning || this.model.stagePaymentOptions.lastSuccessful === null && this.model.stagePaymentOptions.isRunning;\n    }\n    get stagePaymentOption() {\n      return this.model.project.last.value.belongsTo('stagePaymentOption').value();\n    }\n    get tableIsLoading() {\n      return this.model.stagePayments.isRunning;\n    }\n    get isEditable() {\n      return this.newFeatureFlags.includesFeatureFlags(this.model.project.lastSuccessful.value, 'canManageStagePayments');\n    }\n    openNameEditor(_row, col, _e) {\n      this.currentStagePayment = col.currentStagePayment;\n      this.showNameEditor = true;\n    }\n    openDateEditor(_row, col, _e) {\n      this.currentStagePayment = col.currentStagePayment;\n      this.showDateEditor = true;\n    }\n    openValueEditor(_row, col, _e) {\n      this.currentStagePayment = col.currentStagePayment;\n      this.showValueEditor = true;\n    }\n    get totalRecords() {\n      return this.model.stagePayments.lastSuccessful.value.meta?.totalRecords || 0;\n    }\n    get stagePayments() {\n      return this.model.stagePayments.lastSuccessful.value?.toArray() || [];\n    }\n    get progressVersionValues() {\n      return this.model.progressVersionValues.lastSuccessful.value?.toArray() || [];\n    }\n    get selectedStagesValue() {\n      return Array.from(this.selectedStages).reduce((acc, stage) => {\n        return acc += stage.value || 0;\n      }, 0);\n    }\n    openTaskSelector(_row, col) {\n      this.currentStageLinkedTasks = col.currentStageLinkedTasks;\n      this.allStageLinkedTasks = this.store.peekAll('link-task-to-stage-payment').filter(stagePaymentTask => stagePaymentTask.belongsTo('task').value().belongsTo('project').id() === this.model.project.lastSuccessful.value.id);\n      this.currentStagePayment = col.currentStagePayment;\n      this.showTaskSelectorModal = true;\n    }\n    openChecklist(_row, col) {\n      this.currentChecklist = col.currentStageLinkedQuestions;\n      this.currentStagePayment = col.currentStagePayment;\n      this.showChecklistModal = true;\n    }\n    get tableHeader() {\n      return [{\n        type: 'CHECKBOX_INPUT',\n        colClass: 'text-center align-middle col',\n        onInputChange: this.onSelectAllStages,\n        value: this.selectedStages.size,\n        isPartiallySelected: Boolean(this.selectedStages.size && this.selectedStages.size < this.stagePayments.filter(item => item.status !== 'CLAIMED').length)\n      }, {\n        value: this.intl.t('entity.builda-price.projects.project.stage-payments.Stage'),\n        iconName: this.getSortIcon('Stage'),\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-center col'\n      }, {\n        value: this.intl.t('common.Name'),\n        iconName: this.getSortIcon('Name'),\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left col-5'\n      }, {\n        value: this.intl.t('common.Due date'),\n        iconName: this.getSortIcon('Due date'),\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left col'\n      }, {\n        value: this.intl.t('entity.builda-price.projects.project.stage-payments.Included tasks'),\n        colClass: 'text-left col'\n      }, {\n        value: this.intl.t('common.Checklist'),\n        colClass: 'text-left col'\n      }, {\n        value: this.intl.t('common.Value'),\n        iconName: this.getSortIcon('Value'),\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-right col'\n      }, {\n        value: this.intl.t('common.Status'),\n        iconName: this.getSortIcon('Status'),\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left col'\n      }, {\n        value: this.intl.t('common.Actions'),\n        colClass: 'text-center col'\n      }];\n    }\n    get tableData() {\n      const allStageLinkedTasks = this.store.peekAll('link-task-to-stage-payment').filter(task => task.belongsTo('task').value().belongsTo('project').id() === this.model.project.lastSuccessful.value.id);\n      return this.stagePayments.map(payment => {\n        const stageStatus = payment.status === 'CLAIMED' ? this.intl.t('common.Claimed') : this.intl.t('common.Unclaimed');\n        const currentStageInvoices = this.model.invoices.lastSuccessful.value.filter(item => item.belongsTo('stagePayment').id() === payment.id);\n        const currentStageLinkedTasks = allStageLinkedTasks.filter(task => task.belongsTo('stagePayment').id() === payment.id);\n        const completedTaskIds = currentStageLinkedTasks.reduce((completedTaskIds, task) => {\n          const progress = this.progressVersionValues.find(pvv => pvv.belongsTo('task').id() === task.belongsTo('task').id());\n          if (progress && progress.progress >= task.completionPercentage) return [...completedTaskIds, task.id];\n          return completedTaskIds;\n        }, []);\n        const currentStageLinkedQuestions = this.store.peekAll('stage-payment-question').filter(question => question.belongsTo('stagePayment').id() === payment.id).sortBy('dateCreated');\n        const completedQuestions = currentStageLinkedQuestions.filter(question => question.complete).length;\n        const dueDate = payment.dueDate ? this.intl.formatDate(payment.dueDate) : null;\n        const value = this.numberFormat.format(payment.value, {\n          style: 'currency'\n        });\n        const hasDueDate = !!payment.dueDate;\n        const hasTasks = currentStageLinkedTasks.length > 0;\n        const hasQuestions = currentStageLinkedQuestions.length > 0;\n        const dueDateCondition = hasDueDate ? new Date(payment.dueDate) < new Date() : true;\n        const tasksCondition = hasTasks ? currentStageLinkedTasks.length === completedTaskIds.length : true;\n        const questionsCondition = hasQuestions ? currentStageLinkedQuestions.length === completedQuestions : true;\n\n        // Ensure all present conditions are satisfied\n        const allConditionsMet = (!hasDueDate || dueDateCondition) && (!hasTasks || tasksCondition) && (!hasQuestions || questionsCondition);\n        const isReadyToBeClaimed = (hasDueDate || hasTasks || hasQuestions) && payment.value > 0 && payment.status !== 'CLAIMED' && allConditionsMet;\n        const taskTooltip = currentStageLinkedTasks.sort((a, b) => a.belongsTo('task').value()?.path > b.belongsTo('task').value()?.path ? 1 : -1).map(link => `${link.belongsTo('task').value()?.name} (${this.numberFormat.format(link.completionPercentage, {\n          style: 'percent',\n          dashZero: false,\n          maximumSignificantDigits: 4\n        })})`).join(', ');\n        const checklistTooltip = currentStageLinkedQuestions.map(question => question.title).join(', ');\n        const rowData = [{\n          colClass: 'text-center align-middle col',\n          value: payment.stageNumber\n        }, {\n          colClass: 'text-left align-middle col-5',\n          value: payment.name,\n          badgeValue: isReadyToBeClaimed ? this.intl.t('entity.builda-price.projects.project.stage-payments.Ready to be claimed') : null,\n          badgeClass: isReadyToBeClaimed ? 'badge bg-primary fs-8' : null\n        }, {\n          colClass: `text-left align-middle col ${payment.status !== 'CLAIMED' && payment.dueDate && new Date(payment.dueDate) < new Date() ? 'text-danger' : ''}`,\n          value: dueDate || '&mdash;'\n        }, {\n          tooltip: taskTooltip,\n          colClass: 'text-left align-middle col',\n          value: currentStageLinkedTasks.length ? this.intl.t('entity.builda-price.projects.project.stage-payments.xOfYComplete', {\n            complete: completedTaskIds.length,\n            total: currentStageLinkedTasks.length\n          }) : '&mdash;'\n        }, {\n          tooltip: checklistTooltip,\n          colClass: 'text-left align-middle col',\n          value: currentStageLinkedQuestions.length ? this.intl.t('entity.builda-price.projects.project.stage-payments.xOfYComplete', {\n            complete: completedQuestions,\n            total: currentStageLinkedQuestions.length\n          }) : '&mdash;'\n        }, {\n          colClass: 'text-right align-middle col',\n          value: value,\n          onClickButton: this.openValueEditor,\n          currentStagePayment: payment\n        }, {\n          colClass: 'text-left align-middle col',\n          value: stageStatus\n        }];\n        const popOverActions = {\n          primary: {\n            iconName: 'ellipsis-h'\n          },\n          secondary: []\n        };\n        if (payment.status === 'UNCLAIMED' && this.isEditable) {\n          popOverActions.secondary.push({\n            items: [{\n              name: this.intl.t('entity.builda-price.projects.project.stage-payments.Claim stage'),\n              iconName: 'check',\n              onClickButton: this.toggleStageStatus\n            }]\n          });\n          if (!currentStageInvoices.length && this.newFeatureFlags.includesFeatureFlags(this.model.project.lastSuccessful.value, 'canManageInvoices')) {\n            popOverActions.secondary.push({\n              items: [{\n                name: this.intl.t('entity.builda-price.projects.project.stage-payments.claimAndInvoice'),\n                iconName: 'check',\n                onClickButton: this.claimAndInvoiceStage\n              }]\n            });\n          }\n        }\n\n        // Edit details\n        if (payment.status !== 'CLAIMED') {\n          popOverActions.secondary.push({\n            items: [{\n              name: this.isEditable ? this.intl.t('entity.builda-price.projects.project.stage-payments.Edit details') : this.intl.t('entity.builda-price.projects.project.stage-payments.View details'),\n              iconName: 'pen',\n              onClickButton: this.openNameEditor\n            }]\n          });\n        }\n\n        // Constraints section\n        const constraintItems = [];\n        if (this.isEditable && payment.status !== 'CLAIMED') {\n          constraintItems.push({\n            name: this.intl.t('entity.builda-price.projects.project.stage-payments.Edit value'),\n            iconName: 'dollar-sign',\n            onClickButton: this.openValueEditor\n          }, {\n            name: this.intl.t('entity.builda-price.projects.project.stage-payments.Edit due date'),\n            iconName: 'calendar',\n            onClickButton: this.openDateEditor\n          });\n        }\n        constraintItems.push({\n          name: this.isEditable ? this.intl.t('entity.builda-price.projects.project.stage-payments.Edit included tasks') : this.intl.t('entity.builda-price.projects.project.stage-payments.View included tasks'),\n          iconName: 'tasks',\n          onClickButton: this.openTaskSelector\n        });\n        if (this.isEditable || currentStageLinkedQuestions.length) {\n          constraintItems.push({\n            name: this.isEditable ? this.intl.t('entity.builda-price.projects.project.stage-payments.Edit checklist') : this.intl.t('entity.builda-price.projects.project.stage-payments.View checklist'),\n            iconName: 'tasks',\n            onClickButton: this.openChecklist\n          });\n        }\n        if (this.isEditable && payment.status !== 'CLAIMED') {\n          constraintItems.push({\n            name: this.intl.t('entity.builda-price.projects.project.stage-payments.Delete stage'),\n            iconName: 'trash',\n            onClickButton: this.deleteIndividualStage\n          });\n        }\n        if (constraintItems.length) {\n          popOverActions.secondary.push({\n            items: constraintItems\n          });\n        }\n\n        // CLAIMED + editable actions\n        if (payment.status === 'CLAIMED' && this.isEditable) {\n          popOverActions.secondary.push({\n            sectionName: '',\n            items: [{\n              name: this.intl.t('entity.builda-price.projects.project.stage-payments.Revert to unclaimed'),\n              iconName: 'undo',\n              onClickButton: this.toggleStageStatus\n            }]\n          });\n          if (this.newFeatureFlags.includesFeatureFlags(this.model.project.lastSuccessful.value, 'canManageInvoices')) popOverActions.secondary.push({\n            sectionName: '',\n            items: [{\n              name: this.intl.t('entity.builda-price.projects.project.stage-payments.createInvoice'),\n              iconName: 'file-invoice',\n              onClickButton: this.claimAndInvoiceStage\n            }]\n          });\n        }\n        const invoices = currentStageInvoices.map(invoice => {\n          const navigateToInvoice = (_row, _col) => {\n            const url = this.router.urlFor('entity.builda-price.operations.outgoing.invoices.invoice', invoice.id);\n            window.open(url, '_blank');\n          };\n          return {\n            name: this.intl.t(invoice.invoiceType === 'INVOICE' ? 'entity.builda-price.projects.project.stage-payments.viewInvoiceNumber' : 'entity.builda-price.projects.project.stage-payments.viewCreditNoteInvoiceNumber', {\n              invoiceNumber: invoice.invoiceNumber\n            }),\n            iconName: 'file-invoice',\n            onClickButton: navigateToInvoice\n          };\n        });\n        if (invoices.length && this.newFeatureFlags.includesFeatureFlags(this.model.project.lastSuccessful.value, 'canUseInvoices')) {\n          popOverActions.secondary.push({\n            sectionName: '',\n            items: invoices\n          });\n        }\n        // Add main popover row\n        rowData.push({\n          type: 'POPOVER',\n          currentStagePayment: payment,\n          invoices: currentStageInvoices,\n          currentStageLinkedTasks,\n          currentStageLinkedQuestions,\n          popOverActions,\n          value: payment.status === 'CLAIMED' ? this.intl.t('common.Rollback') : this.intl.t('common.Complete'),\n          colClass: 'align-middle col'\n        });\n\n        // Add checkbox or empty column\n        if (payment.status !== 'CLAIMED') {\n          rowData.unshift({\n            type: 'CHECKBOX_INPUT',\n            colClass: 'text-center align-middle col',\n            onInputChange: this.onSelectStage,\n            currentStagePayment: payment,\n            disabled: !this.isEditable,\n            value: this.selectedStages.has(payment)\n          });\n        } else {\n          rowData.unshift({\n            value: '',\n            colClass: 'col'\n          });\n        }\n        return {\n          rowData,\n          rowClass: payment.status === 'CLAIMED' ? 'table-light' : ''\n        };\n      });\n    }\n    get bulkActionsStageValue() {\n      return this._bulkActionsStageValue ?? this.selectedStagesValue / this.selectedStages.size;\n    }\n    set bulkActionsStageValue(value) {\n      this._bulkActionsStageValue = value;\n    }\n    get remainingQuote() {\n      return this.model.stagePaymentsValues.lastSuccessful.value?.remainingQuote || 0;\n    }\n    get remainingQuoteValueInContextWithStages() {\n      if (this._computedRemainingQuoteValue !== null) {\n        return this._computedRemainingQuoteValue;\n      }\n      const eachRecordValue = this.remainingQuote / this.selectedStages.size;\n      const stagesValue = this.selectedStagesValue;\n      const adjustedSelectedStagesValue = stagesValue / this.selectedStages.size;\n      return eachRecordValue + adjustedSelectedStagesValue;\n    }\n    distributeRemainingQuoteAcrossStages() {\n      if (!this.remainingQuote || !this.selectedStages.size) return;\n      this._computedRemainingQuoteValue = this.remainingQuoteValueInContextWithStages;\n      this.bulkActionsStageValue = this._computedRemainingQuoteValue;\n    }\n    async toggleStageStatus(_row, col, _e) {\n      const changeset = (0, _emberChangeset.Changeset)(col.currentStagePayment, undefined, this.stagePaymentValidationMap);\n      if (col.currentStagePayment.status === 'CLAIMED') {\n        changeset.set('status', 'UNCLAIMED');\n      } else {\n        changeset.set('status', 'CLAIMED');\n        this.selectedStages.delete(col.currentStagePayment);\n      }\n      await this.saveCurrentStage.perform(changeset);\n    }\n    onSelectStage(_row, col, e) {\n      if (e.target.checked) {\n        this.selectedStages.add(col.currentStagePayment);\n      } else {\n        this.selectedStages.delete(col.currentStagePayment);\n      }\n\n      // eslint-disable-next-line no-self-assign\n      this.selectedStages = this.selectedStages;\n    }\n\n    // this is triggered when you select top level checkbox\n    onSelectAllStages(_row, col, e) {\n      if (e.target.checked) {\n        this.stagePayments.forEach(stage => {\n          if (stage.status !== 'CLAIMED') this.selectedStages.add(stage);\n        });\n      } else {\n        this.stagePayments.forEach(stage => {\n          if (stage.status !== 'CLAIMED') this.selectedStages.delete(stage);\n        });\n      }\n\n      // eslint-disable-next-line no-self-assign\n      this.selectedStages = this.selectedStages;\n    }\n    sortColumn(_row, col) {\n      if (this.sortBy !== col.value) {\n        this.sortBy = col.value;\n        this.sortDirection = 'asc';\n      } else {\n        if (this.sortDirection === 'asc') {\n          this.sortDirection = 'desc';\n        } else if (this.sortDirection === 'desc') {\n          this.sortBy = undefined;\n          this.sortDirection = undefined;\n        } else {\n          this.sortDirection = 'asc';\n        }\n      }\n    }\n    getSortIcon(column) {\n      if (this.sortBy === column && this.sortDirection) {\n        return this.sortDirection === 'desc' ? 'sort-down' : 'sort-up';\n      }\n      return undefined;\n    }\n    preventNegative(event) {\n      let value = event.target.value;\n      if (value <= 0) {\n        event.target.value = 1;\n      }\n    }\n    async deleteIndividualStage(_row, col, _e) {\n      try {\n        if (col.invoices.length) {\n          const links = col.invoices.map(inv => {\n            const url = this.router.urlFor('entity.builda-price.operations.outgoing.invoices.invoice', inv.id);\n            return `<a target=\"_blank\" href=\"${url}\">${inv.invoiceNumber}</a>`;\n          });\n          const joinedLinks = links.join(', ');\n          this.notifications.warning({\n            message: `${this.intl.t('entity.builda-price.projects.project.stage-payments.stagePaymentWithInvoicesDeleteWarn')} ${joinedLinks}`,\n            clearDuration: 5000\n          });\n          return;\n        }\n        await col.currentStagePayment.destroyRecord();\n        await Promise.all([this.model.stagePayments.perform(this.model.project, this.model.pageNumber, this.model.pageSize, this.model.sortBy, this.model.sortByDirection, this.model.status), this.model.stagePaymentsValues.perform(this.model.project)]);\n        this.notifications.success(this.intl.t('entity.builda-price.projects.project.stage-payments.successfullyDeletedStage', {\n          stage: 'stage'\n        }));\n      } catch (error) {\n        this.notifications.error({\n          message: this.intl.t('entity.builda-price.projects.project.stage-payments.somethingWentWrongWhileDeletingStage', {\n            stage: 'stage'\n          }),\n          error\n        });\n      }\n    }\n    get filename() {\n      const currentDate = new Date();\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${this.model.project.last.value.name}_${year}-${month}-${day}`;\n    }\n    toggleProperty(propertyName) {\n      this[propertyName] = !this[propertyName];\n    }\n    closeDownloadOptions() {\n      this.showDownloadOptions = false;\n      this.includeCheckListItems = false;\n      this.includeTasks = false;\n    }\n    async loadDataForEffectivePercentage() {\n      try {\n        const stagesFilter = {\n          and: [{\n            field: 'project',\n            op: 'EQ',\n            value: this.model.project.lastSuccessful.value.id\n          }, {\n            field: 'entity',\n            op: 'EQ',\n            value: this.sessionData.entity.id\n          }]\n        };\n        const quoteVersionValueFilter = {\n          and: [{\n            field: 'entity',\n            op: 'EQ',\n            value: this.sessionData.entity.id\n          }, {\n            field: 'version',\n            op: 'EQ',\n            value: this.model.project.lastSuccessful.value.belongsTo('currentQuoteVersion').id()\n          }]\n        };\n        const [allStages, quoteVersionValues] = await Promise.all([this.store.query('stage-payment', {\n          filter: stagesFilter\n        }), this.store.query('quote-version-value', {\n          filter: quoteVersionValueFilter\n        })]);\n        const linkTaskToStagePaymentsFilter = {\n          and: [{\n            field: 'stagePayment',\n            op: 'IN',\n            value: allStages.map(stage => stage.id)\n          }]\n        };\n        const allStagesLinkedTasks = await this.store.query('link-task-to-stage-payment', {\n          filter: linkTaskToStagePaymentsFilter,\n          include: 'task'\n        }).then(res => res?.toArray());\n        return {\n          allStages,\n          quoteVersionValues,\n          allStagesLinkedTasks\n        };\n      } catch {\n        //\n      }\n    }\n    async claimAndInvoiceStage(_row, col, _e) {\n      try {\n        let glAccount = undefined;\n        const linkedTasks = this.store.peekAll('link-task-to-stage-payment').filter(link => link.belongsTo('stagePayment').id() === col.currentStagePayment.id);\n        let [invoiceOption, {\n          allStagesLinkedTasks\n        }] = await Promise.all([this.store.query('entity-invoice-option', {\n          filter: {\n            and: [{\n              field: 'entity',\n              op: 'EQ',\n              value: this.sessionData.entity.id\n            }]\n          }\n        }).then(res => res[0]), this.loadDataForEffectivePercentage(), this.store.query('gl-account', {\n          filter: {\n            and: [{\n              field: 'entity',\n              op: 'EQ',\n              value: this.sessionData.entity.id\n            }]\n          }\n        })]);\n        if (!invoiceOption) invoiceOption = await _entityInvoiceOption.default.defaultOptionsRecord(this.store, this.sessionData.entity).save();\n        const invoice = await this.store.createRecord('invoice', {\n          invoiceNumber: `${invoiceOption.invoicePrefix}${invoiceOption.nextInvoiceNumber}`,\n          entity: this.sessionData.entity,\n          stagePayment: col.currentStagePayment\n        }).save();\n        const allocations = [];\n        const linksByTask = _lodash.default.groupBy(allStagesLinkedTasks, link => link.belongsTo('task').id());\n        const stageLinks = allStagesLinkedTasks.filter(link => link.belongsTo('stagePayment').id() === col.currentStagePayment.id);\n        for (let link of stageLinks) {\n          const taskId = link.belongsTo('task').id();\n          const allocationPercentage = calculateEffectivePercentage(linksByTask[taskId], col.currentStagePayment);\n          allocations.push({\n            type: 'task',\n            id: taskId,\n            allocation: 'all',\n            checked: true,\n            indeterminate: false,\n            allocationPercentage\n          });\n        }\n        if (!linkedTasks.length) {\n          allocations.push({\n            type: 'project',\n            id: col.currentStagePayment.belongsTo('project').id(),\n            allocation: 'all',\n            checked: true,\n            indeterminate: false\n          });\n          glAccount = col.currentStagePayment.belongsTo('project').value().effectiveSalesGlAccount;\n        } else if (linkedTasks.length === 1) {\n          glAccount = linkedTasks[0].belongsTo('task').value().effectiveSalesGlAccount;\n        } else {\n          const tasks = linkedTasks.map(l => l.belongsTo('task').value());\n\n          // build parents for each task as array [[1, 1.1, 1.1.1], [2, 2.1, 2.1.1]]\n          const tasksParents = tasks.map(t => {\n            let currentTask = t;\n            const currentHierarchy = [];\n            while (currentTask) {\n              currentHierarchy.push(currentTask);\n              currentTask = currentTask.belongsTo('parent').value();\n            }\n            return currentHierarchy;\n          });\n\n          // Iterate each first task's hierarchy and check if every other task's hierarchy also contains that same parent.\n          // If no common parent is found, we'll fall back to the project's GL account.\n          let commonParent = null;\n          for (let task of tasksParents[0]) {\n            if (tasksParents.every(c => c.includes(task))) {\n              commonParent = task;\n              break;\n            }\n          }\n          if (commonParent) {\n            glAccount = commonParent.effectiveSalesGlAccount;\n          } else {\n            // fallback to project GL\n            glAccount = col.currentStagePayment.belongsTo('project').value().effectiveSalesGlAccount;\n          }\n        }\n        let description = `${col.currentStagePayment.belongsTo('project').value().name}:`;\n        description += ` Stage ${col.currentStagePayment.stageNumber}`;\n        if (col.currentStagePayment.name) description += ` - ${col.currentStagePayment.name}`;\n        await this.store.createRecord('invoice-item', {\n          description,\n          unitPrice: col.currentStagePayment.value,\n          quantity: 1,\n          entity: this.sessionData.entity,\n          taxRate: this.sessionData.entity.gst,\n          project: col.currentStagePayment.belongsTo('project').value(),\n          invoice,\n          sortIndex: 0,\n          glAccount,\n          stagePayment: col.currentStagePayment,\n          contractType: 'FIXED_PRICE'\n        }).save({\n          adapterOptions: {\n            meta: {\n              allocations,\n              contractType: 'FIXED_PRICE'\n            }\n          }\n        });\n\n        // change stage status to CLAIMED\n        col.currentStagePayment.status = 'CLAIMED';\n        await col.currentStagePayment.save();\n        this.router.transitionTo('entity.builda-price.operations.outgoing.invoices.invoice', invoice.id);\n      } catch (error) {\n        this.notifications.error({\n          message: 'Something went wrong while creating invoice',\n          error\n        });\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"numberFormat\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"showCreateStagesModal\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"numberOfStages\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"showNameEditor\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"showDateEditor\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"showValueEditor\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"pageSize\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"pageNumber\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"sortBy\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"sortDirection\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"showChecklistModal\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, \"showTaskSelectorModal\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor18 = _applyDecoratedDescriptor(_class.prototype, \"selectedStages\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return new Set();\n    }\n  }), _descriptor19 = _applyDecoratedDescriptor(_class.prototype, \"showBulkDeleteStagesModal\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor20 = _applyDecoratedDescriptor(_class.prototype, \"showDeleteStageModal\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor21 = _applyDecoratedDescriptor(_class.prototype, \"currentStageLinkedTasks\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor22 = _applyDecoratedDescriptor(_class.prototype, \"currentChecklist\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor23 = _applyDecoratedDescriptor(_class.prototype, \"allStageLinkedTasks\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor24 = _applyDecoratedDescriptor(_class.prototype, \"remainingQuoteValue\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _descriptor25 = _applyDecoratedDescriptor(_class.prototype, \"useValueFromTasks\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _descriptor26 = _applyDecoratedDescriptor(_class.prototype, \"currentStagePayment\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor27 = _applyDecoratedDescriptor(_class.prototype, \"showBulkActionsModal\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor28 = _applyDecoratedDescriptor(_class.prototype, \"showProjectLevelContractTermsModal\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor29 = _applyDecoratedDescriptor(_class.prototype, \"showDownloadOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor30 = _applyDecoratedDescriptor(_class.prototype, \"includeTasks\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor31 = _applyDecoratedDescriptor(_class.prototype, \"includeCheckListItems\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"onChangePage\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onChangePage\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onChangePageSize\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onChangePageSize\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openNameEditor\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openNameEditor\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openDateEditor\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openDateEditor\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openValueEditor\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openValueEditor\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openTaskSelector\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openTaskSelector\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openChecklist\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openChecklist\"), _class.prototype), _descriptor32 = _applyDecoratedDescriptor(_class.prototype, \"_bulkActionsStageValue\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor33 = _applyDecoratedDescriptor(_class.prototype, \"_computedRemainingQuoteValue\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"distributeRemainingQuoteAcrossStages\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"distributeRemainingQuoteAcrossStages\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleStageStatus\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleStageStatus\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSelectStage\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onSelectStage\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSelectAllStages\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onSelectAllStages\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"sortColumn\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"sortColumn\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"preventNegative\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"preventNegative\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"deleteIndividualStage\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"deleteIndividualStage\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleProperty\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleProperty\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeDownloadOptions\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"closeDownloadOptions\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"claimAndInvoiceStage\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"claimAndInvoiceStage\"), _class.prototype), _class);\n  function calculateEffectivePercentage(linkedTasks, currentStagePayment) {\n    const data = linkedTasks.map(item => ({\n      percentage: item.completionPercentage,\n      stageId: item.belongsTo('stagePayment').id(),\n      dateCreated: item.belongsTo('stagePayment').value().dateCreated\n    })).sort((a, b) => b.percentage - a.percentage || new Date(b.dateCreated) - new Date(a.dateCreated));\n    const targetIndex = data.findIndex(d => d.stageId === currentStagePayment.id);\n    if (targetIndex === -1) return 0;\n    const currentPercentage = data[targetIndex].percentage;\n    const nextHighestPercentage = data[targetIndex + 1]?.percentage || 0;\n    return currentPercentage - nextHighestPercentage;\n  }\n});","define(\"portal/controllers/entity/builda-price/projects/project/tasks\", [\"exports\", \"@ember/controller\"], function (_exports, _controller) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\"eaimeta@70e063a35619d71f\n  class _default extends _controller.default {}\n  _exports.default = _default;\n});","define(\"portal/controllers/entity/builda-price/projects/project/tasks/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/service\", \"portal/routes/entity/builda-price/projects/project/tasks/index\"], function (_exports, _asyncArrowRuntime, _controller, _object, _tracking, _service, _index) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"portal/routes/entity/builda-price/projects/project/tasks/index\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor2, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor3, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor4, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _initializerDefineProperty(this, \"addingTasksFromTakeoff\", _descriptor7, this);\n      _initializerDefineProperty(this, \"addingTaskFromTemplate\", _descriptor8, this);\n      _initializerDefineProperty(this, \"firstTaskName\", _descriptor9, this);\n      _initializerDefineProperty(this, \"_taskList\", _descriptor0, this);\n      _defineProperty(this, \"saveNewTask\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (taskName, parentTask) {\n          try {\n            if (!taskName) {\n              this.notifications.warning(this.intl.t('shared.notification.Please provide a task name'));\n              return;\n            }\n            const newTask = this.store.createRecord('task', {\n              name: taskName,\n              project: this.model.project.last.value,\n              entity: this.sessionData.entity,\n              taskType: 'TASK'\n            });\n            if (parentTask) {\n              const childrenLength = parentTask.activeChildren.length;\n              newTask.parent = parentTask;\n              newTask.timesheetStatus = parentTask.timesheetStatus;\n              newTask.path = `${parentTask.path}.${String(childrenLength).padStart(3, '0')}`;\n              newTask.taskType = parentTask.taskType;\n            } else {\n              newTask.path = String(this.taskList.length).padStart(3, '0');\n            }\n            this.addTaskToList(newTask);\n            yield newTask.save();\n            this.firstTaskName = ''; // this only needs to happen rarely\n\n            return newTask;\n          } catch (error) {\n            this.reloadTasks();\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.tasks.Something went wrong creating a task'),\n              error\n            });\n          }\n        }\n      }), null, \"saveNewTask\", null));\n      _defineProperty(this, \"onTaskListUpdate\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (newTaskList) {\n          try {\n            this.taskList = newTaskList;\n            yield this.buildaPrice.updateTaskList(newTaskList);\n\n            // once the JSON:API is fixed we can remove this code\n            const newTasks = function getTasksFromItems(items, tasks = []) {\n              items.forEach(item => {\n                tasks.push(item.task);\n                if (item.children?.length) getTasksFromItems(item.children, tasks);\n              });\n              return tasks;\n            }(newTaskList);\n            yield Promise.all(newTasks.map(async task => {\n              // clear the relationships manually\n              task.parent = null;\n              task.children = [];\n              // reload the relationships\n              await this.store.findRecord('task', task.id, {\n                reload: true\n              });\n            }));\n          } catch (error) {\n            this.reloadTasks();\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.tasks.Something went wrong updating tasks'),\n              error\n            });\n          }\n        }\n      }), {\n        keepLatest: true\n      }, \"onTaskListUpdate\", null));\n      _defineProperty(this, \"onLoadTaskTemplate\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (taskTemplate, taskTemplateItems) {\n          this.addingTaskFromTemplate = false;\n          try {\n            yield this.buildaPrice.addTasksFromTemplate(this.model.project.last.value.id, {\n              name: taskTemplate.name,\n              items: taskTemplateItems.filter(t => !t.isDeleted)\n            });\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.tasks.Loaded template'));\n            this.taskList = yield this.model.taskList.perform(this.model.project.last.value.id);\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.tasks.somethingWentWrongCreatingTasksFromATemplate'),\n              error\n            });\n          }\n        }\n      }), null, \"onLoadTaskTemplate\", null));\n      _defineProperty(this, \"onLoadTakeoff\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (items) {\n          try {\n            yield this.buildaPrice.addTasksFromFile(this.model.project.last.value.id, items);\n            const [parentTasks, _project] = yield Promise.all([this.store.query('task', {\n              filter: {\n                and: [{\n                  field: 'entity',\n                  op: 'EQ',\n                  value: this.sessionData.entity.id\n                }, {\n                  field: 'project',\n                  op: 'EQ',\n                  value: this.model.project.last.value.id\n                }, {\n                  field: 'status',\n                  op: 'IN',\n                  value: ['ACTIVE', 'DRAFT_CREATED']\n                }]\n              },\n              fields: {\n                tasks: '_meta.hasBudget,_meta.hasQuote,_meta.hasProducts,_meta.hasAttachments'\n              }\n            }).then(tasks => tasks.toArray().filter(t => !t.belongsTo('parent').id()).sort((a, b) => a.path - b.path)), this.store.findRecord('project', this.model.project.last.value.id, {\n              reload: true\n            })]);\n            yield this.model.project.last.value.loadTaskChanges();\n            const newTaskContainers = parentTasks.map(t => new _index.TaskContainer(t));\n            this.taskList = newTaskContainers;\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.tasks.Successfully imported tasks'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.tasks.Something went wrong importing tasks'),\n              error\n            });\n          }\n        }\n      }), null, \"onLoadTakeoff\", null));\n    }\n    set taskList(value) {\n      this._taskList = value;\n    }\n    get taskList() {\n      if (this._taskList) return this._taskList;\n      return this.model.taskList.last.value;\n    }\n    get parentTasks() {\n      if (this.taskList.length <= 0) return [];\n      const parentTasks = this.taskList.map(container => container.task).sortBy('path');\n      return parentTasks;\n    }\n    get isLoading() {\n      return this.model.project.isRunning || this.model.taskList.isRunning;\n    }\n    get canManageTasks() {\n      return this.newFeatureFlags.includesFeatureFlags(this.model.project.last.value, 'canManageTasks');\n    }\n    addTaskToList(task) {\n      const newTaskContainer = new _index.TaskContainer(task);\n\n      // if we don't have a parent push to the top level of the list\n      if (!task.belongsTo('parent').value()) {\n        this.taskList.pushObject(newTaskContainer);\n        return;\n      }\n      const parentTaskId = task.belongsTo('parent').id();\n      let parentTc;\n      const findParentTc = taskList => {\n        taskList.forEach(container => {\n          if (container.task.id === parentTaskId) {\n            parentTc = container;\n          } else if (container.children) {\n            findParentTc(container.children);\n          }\n        });\n      };\n      findParentTc(this.taskList);\n      parentTc.children = [...(parentTc?.children || []), newTaskContainer];\n\n      // this commits the computed property to state - strange but ok\n      this._taskList = this.taskList;\n    }\n    onTaskNameInputKeypress(e) {\n      if (e.key === 'Enter') {\n        this.saveNewTask.perform(this.firstTaskName);\n      }\n    }\n    reloadTasks() {\n      this.taskList = null;\n\n      // unloadAll is very slow for some reason\n      const tasks = this.store.peekAll('task');\n      tasks.forEach(task => task.unloadRecord());\n      this.model.refresh();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"addingTasksFromTakeoff\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"addingTaskFromTemplate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"firstTaskName\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"_taskList\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"onTaskNameInputKeypress\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onTaskNameInputKeypress\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/tasks/task\", [\"exports\", \"@ember/controller\", \"@ember/object\", \"@ember/service\"], function (_exports, _controller, _object, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/object\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('intl', 'model.task.last.value.{id,name}'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n    }\n    get tabs() {\n      const tabs = [];\n      if (this.newFeatureFlags.includesSomeFeatureFlags(this.model.task.last.value, 'canUseTaskBudgets', 'canUseTaskQuotes')) tabs.push({\n        name: this.intl.t('common.Financials'),\n        route: 'entity.builda-price.projects.project.tasks.task.financials'\n      });\n      tabs.push({\n        name: this.intl.t('common.Settings'),\n        route: 'entity.builda-price.projects.project.tasks.task.settings'\n      });\n      if (this.newFeatureFlags.includesSomeFeatureFlags(this.model.task.last.value, 'canUseUsers', 'canUseWorkers', 'canUseSubcontractors')) tabs.push({\n        name: this.intl.t('common.People'),\n        route: 'entity.builda-price.projects.project.tasks.task.people'\n      });\n      if (this.newFeatureFlags.includesFeatureFlags(this.model.task.last.value, 'canUseFileStorage')) tabs.push({\n        name: this.intl.t('common.Documents'),\n        route: 'entity.builda-price.projects.project.tasks.task.documents'\n      });\n      if (this.newFeatureFlags.includesSomeFeatureFlags(this.model.task.last.value, 'canUseProducts')) tabs.push({\n        name: this.intl.t('common.Products'),\n        route: 'entity.builda-price.projects.project.tasks.task.products'\n      });\n      return tabs;\n    }\n    get crumbStack() {\n      const paths = [{\n        route: 'entity.builda-price.projects.project.tasks',\n        pageTitle: this.intl.t('common.Tasks')\n      }];\n      const taskList = [];\n      (function generatePathsFromTask(task) {\n        if (task.belongsTo('parent').value()) {\n          taskList.unshift({\n            route: 'entity.builda-price.projects.project.tasks.task',\n            model: task.belongsTo('parent').id(),\n            pageTitle: task.belongsTo('parent').value().name\n          });\n          generatePathsFromTask(task.belongsTo('parent').value());\n        }\n      })(this.model.task.last.value);\n      taskList.push({\n        route: 'entity.builda-price.projects.project.tasks.task',\n        model: this.model.task.last.value.id,\n        pageTitle: this.model.task.last.value.name\n      });\n      return paths.concat(taskList);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"crumbStack\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"crumbStack\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/tasks/task/documents\", [\"exports\", \"@ember/controller\", \"@ember/object\", \"@ember/service\"], function (_exports, _controller, _object, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/object\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"store\", _descriptor4, this);\n    }\n    get isLoading() {\n      return this.model.task.last.isRunning || this.model.attachments.isRunning;\n    }\n    get task() {\n      return this.model.task.last.value;\n    }\n    get project() {\n      return this.task?.belongsTo('project').value();\n    }\n    get isEditable() {\n      return this.newFeatureFlags.includesFeatureFlags(this.task, 'canManageFileStorage');\n    }\n    get attachments() {\n      // if you can edit the attachments use the relationship directly instead of the model result\n      if (this.isEditable) return this.model.task.last.value.myAttachments;\n      return this.model.attachments.last.value;\n    }\n    async onUploadComplete({\n      attachments,\n      validationErrors,\n      error\n    }) {\n      try {\n        if (error) throw error;\n        const attachmentResults = await Promise.all(attachments.map(a => a.save({\n          adapterOptions: {\n            meta: {\n              data: a.data\n            }\n          }\n        })));\n        await Promise.all(attachmentResults.map(async attachment => {\n          this.store.createRecord('link-attachment-to-task', {\n            task: this.task,\n            attachment\n          }).save();\n        }));\n        validationErrors.forEach(error => this.notifications.error(error));\n      } catch (error) {\n        this.notifications.error({\n          message: this.intl.t('shared.notification.somethingWentWrongWhileSavingAttachments'),\n          error: error\n        });\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"onUploadComplete\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onUploadComplete\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/tasks/task/financials\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@glimmer/tracking\", \"@ember/service\", \"@ember/object\", \"portal/utils/profit-margin\"], function (_exports, _asyncArrowRuntime, _controller, _tracking, _service, _object, _profitMargin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"@ember/object\",0,\"portal/utils/profit-margin\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      // this validator is to validate only profit percentages on Quote data\n      _defineProperty(this, \"validatePercentages\", currentPercentages => (key, newVal, oldVal, _changes, _content) => {\n        if (currentPercentages[key].type === 'MARGIN') {\n          const percentage = newVal || oldVal;\n          if (percentage === null) return true;\n          return percentage < 1 || this.intl.t('validation.Please input a value less than 100');\n        }\n        return true;\n      });\n      // this validator can be used when at least one of any of the form inputs are required\n      _defineProperty(this, \"validateContent\", (_key, newVal, _oldVal, changes, content) => {\n        if (content.labour === 0 && !changes.labour && content.materials === 0 && !changes.materials && content.subcontractors === 0 && !changes.subcontractors && content.sums === 0 && !changes.sums) {\n          // man hours is only on the budget form\n          if (content.manHours != null) {\n            if (content.manHours === 0 && !changes.manHours) return this.intl.t('validation.Please enter a value');\n          } else {\n            return this.intl.t('validation.Please enter a value');\n          }\n        }\n      });\n      _initializerDefineProperty(this, \"updateBudgetData\", _descriptor4, this);\n      _defineProperty(this, \"budgetValidationMap\", {\n        materials: this.validateContent,\n        subcontractors: this.validateContent,\n        labour: this.validateContent,\n        sums: this.validateContent,\n        manHours: this.validateContent\n      });\n      _initializerDefineProperty(this, \"updateQuoteData\", _descriptor5, this);\n      _defineProperty(this, \"updateBudget\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (budgetChangeset) {\n          try {\n            yield budgetChangeset.validate();\n            if (budgetChangeset.isInvalid) {\n              this.notifications.warning(this.intl.t('entity.builda-price.projects.project.tasks.task.financials.Please complete the budget information'));\n              return;\n            }\n            budgetChangeset.execute();\n            const diff = Object.entries(this.updateBudgetData).reduce((diff, [key, value]) => ({\n              ...diff,\n              [`${key}Diff`]: value - (this.task.budget?.[key] || 0)\n            }), {});\n            yield this.task.update({\n              budget: diff\n            });\n            this.updateBudgetData = null;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.tasks.task.financials.Something went wrong updating the budget'),\n              error\n            });\n          }\n        }\n      }), null, \"updateBudget\", null));\n      _defineProperty(this, \"updateQuote\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (quoteChangeset) {\n          try {\n            yield quoteChangeset.validate();\n            if (quoteChangeset.isInvalid) {\n              this.notifications.warning(this.intl.t('entity.builda-price.projects.project.tasks.task.financials.Please complete the quote information'));\n              return;\n            }\n            quoteChangeset.execute();\n            const quoteData = {\n              manHours: this.task.draftBudget.manHours,\n              labour: this.updateQuoteData.labour,\n              materials: this.updateQuoteData.materials,\n              subcontractors: this.updateQuoteData.subcontractors,\n              sums: this.updateQuoteData.sums\n            };\n            const diff = Object.entries(quoteData).reduce((diff, [key, value]) => ({\n              ...diff,\n              [`${key}Diff`]: (value || 0) - (this.task.quote?.[key] || 0)\n            }), {});\n            yield this.task.update({\n              quote: diff\n            });\n            this.updateQuoteData = null;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.tasks.task.financials.Something went wrong updating the quote'),\n              error\n            });\n          }\n        }\n      }), null, \"updateQuote\", null));\n    }\n    get isLoading() {\n      return this.model.task.isRunning || this.model.loadQuote.isRunning || this.model.loadBudget.isRunning || this.model.loadProfitMargins.isRunning;\n    }\n    get task() {\n      return this.model.task.last.value;\n    }\n    get hasDraftBudgetChanges() {\n      return Boolean(this.task.draftBudgetChange);\n    }\n    get hasDraftQuoteChanges() {\n      return Boolean(this.task.draftQuoteChange);\n    }\n    get hasBothDraftBudgetAndQuoteChanges() {\n      return this.hasDraftBudgetChanges && this.hasDraftQuoteChanges;\n    }\n    get hasBudget() {\n      return [this.task.totalDraftBudgetManHours, this.task.totalDraftBudgetLabour, this.task.totalDraftBudgetMaterials, this.task.totalDraftBudgetSubcontractors, this.task.totalDraftBudgetSums].some(x => x);\n    }\n    get project() {\n      return this.model.task.last.value?.belongsTo('project').value();\n    }\n    get canManageProjectBudgetAndQuote() {\n      return this.newFeatureFlags.includesFeatureFlags(this.project, 'canManageBudgetVersions', 'canManageQuoteVersions');\n    }\n    get canManageProjectBudget() {\n      return this.newFeatureFlags.includesFeatureFlags(this.project, 'canManageBudgetVersions');\n    }\n    get canManageProjectQuote() {\n      return this.newFeatureFlags.includesFeatureFlags(this.project, 'canManageQuoteVersions');\n    }\n    get canManageBudget() {\n      return this.newFeatureFlags.includesFeatureFlags(this.model.task.last.value, 'canManageTaskBudgets');\n    }\n    get canManageQuote() {\n      return this.newFeatureFlags.includesFeatureFlags(this.model.task.last.value, 'canManageTaskQuotes');\n    }\n    get canViewBudget() {\n      return this.newFeatureFlags.includesFeatureFlags(this.model.task.last.value, 'canUseTaskBudgets');\n    }\n    get canViewQuote() {\n      return this.newFeatureFlags.includesFeatureFlags(this.model.task.last.value, 'canUseTaskQuotes');\n    }\n    get totalDraftBudgetCurrency() {\n      return this.task.draftBudgetLabour + this.task.draftBudgetMaterials + this.task.draftBudgetSubcontractors + this.task.draftBudgetSums || 0;\n    }\n    get totalDraftChildrenBudgetCurrency() {\n      return this.task.childrenDraftBudgetLabour + this.task.childrenDraftBudgetMaterials + this.task.childrenDraftBudgetSubcontractors + this.task.childrenDraftBudgetSums || 0;\n    }\n    get totalTotalDraftBudgetCurrency() {\n      return this.task.totalDraftBudgetLabour + this.task.totalDraftBudgetMaterials + this.task.totalDraftBudgetSubcontractors + this.task.totalDraftBudgetSums || 0;\n    }\n    get totalDraftQuoteCurrency() {\n      return this.task.draftQuoteLabour + this.task.draftQuoteMaterials + this.task.draftQuoteSubcontractors + this.task.draftQuoteSums || 0;\n    }\n    get totalDraftChildrenQuoteCurrency() {\n      return this.task.childrenDraftQuoteLabour + this.task.childrenDraftQuoteMaterials + this.task.childrenDraftQuoteSubcontractors + this.task.childrenDraftQuoteSums || 0;\n    }\n    get totalTotalDraftQuoteCurrency() {\n      return this.task.totalDraftQuoteLabour + this.task.totalDraftQuoteMaterials + this.task.totalDraftQuoteSubcontractors + this.task.totalDraftQuoteSums || 0;\n    }\n    get totalProductCurrency() {\n      let totalAmount = 0;\n      this.task.totalProducts.forEach(p => {\n        if (p.unitPrice && p.quantity) totalAmount += p.unitPrice * p.quantity;\n      });\n      return totalAmount;\n    }\n    setMaterialBudgetFromProducts(budgetModel) {\n      budgetModel.set('materials', this.totalProductCurrency);\n      budgetModel.set(`materialsTotal`, this.totalProductCurrency);\n      const total = budgetModel.labourTotal + budgetModel.materialsTotal + budgetModel.subcontractorsTotal + budgetModel.sumsTotal;\n      budgetModel.set('total', total);\n    }\n    openUpdateBudgetForm() {\n      const manHoursTotal = this.task.totalDraftBudgetManHours;\n      const labourTotal = this.task.totalDraftBudgetLabour;\n      const materialsTotal = this.task.totalDraftBudgetMaterials;\n      const subcontractorsTotal = this.task.totalDraftBudgetSubcontractors;\n      const sumsTotal = this.task.totalDraftBudgetSums;\n\n      // TODO refactor this to not pass state to the ember-changeset\n      this.updateBudgetData = {\n        manHours: this.task.draftBudget.manHours,\n        manHoursTotal,\n        labour: this.task.draftBudget.labour,\n        labourTotal,\n        materials: this.task.draftBudget.materials,\n        materialsTotal,\n        subcontractors: this.task.draftBudget.subcontractors,\n        subcontractorsTotal,\n        sums: this.task.draftBudget.sums,\n        sumsTotal,\n        total: labourTotal + materialsTotal + subcontractorsTotal + sumsTotal\n      };\n    }\n    budgetValueChanged(budgetModel, fieldName, value) {\n      const lineTotal = value + this.task.childrenDraftBudget[fieldName];\n      budgetModel.set(`${fieldName}Total`, lineTotal);\n      const total = budgetModel.labourTotal + budgetModel.materialsTotal + budgetModel.subcontractorsTotal + budgetModel.sumsTotal;\n      budgetModel.set('total', total);\n    }\n    get hasQuote() {\n      return [this.task.totalDraftQuoteManHours, this.task.totalDraftQuoteLabour, this.task.totalDraftQuoteMaterials, this.task.totalDraftQuoteSubcontractors, this.task.totalDraftQuoteSums].some(x => x);\n    }\n    openUpdateQuoteForm() {\n      const labourTotal = this.task.totalDraftQuoteLabour;\n      const materialsTotal = this.task.totalDraftQuoteMaterials;\n      const subcontractorsTotal = this.task.totalDraftQuoteSubcontractors;\n      const sumsTotal = this.task.totalDraftQuoteSums;\n\n      // TODO refactor this to not pass state to the ember-changeset\n      this.updateQuoteData = {\n        labour: this.calculateInitialQuoteValues('labour'),\n        labourTotal,\n        materials: this.calculateInitialQuoteValues('materials'),\n        materialsTotal,\n        subcontractors: this.calculateInitialQuoteValues('subcontractors'),\n        subcontractorsTotal,\n        sums: this.calculateInitialQuoteValues('sums'),\n        sumsTotal,\n        labourPercentage: this.calculateInitialProfitPercentages('labour'),\n        materialsPercentage: this.calculateInitialProfitPercentages('materials'),\n        subcontractorsPercentage: this.calculateInitialProfitPercentages('subcontractors'),\n        sumsPercentage: this.calculateInitialProfitPercentages('sums'),\n        total: labourTotal + materialsTotal + subcontractorsTotal + sumsTotal\n      };\n    }\n    get quoteValidationMap() {\n      return {\n        materials: this.validateContent,\n        subcontractors: this.validateContent,\n        labour: this.validateContent,\n        sums: this.validateContent,\n        labourPercentage: this.validatePercentages(this.task.effectiveProfitMargin),\n        materialsPercentage: this.validatePercentages(this.task.effectiveProfitMargin),\n        subcontractorsPercentage: this.validatePercentages(this.task.effectiveProfitMargin),\n        sumsPercentage: this.validatePercentages(this.task.effectiveProfitMargin)\n      };\n    }\n    // calculate quotes values based on profit type & percentages\n    async profitMarginChanged(quoteModel, fieldName, value) {\n      const draftBudget = this.task.draftBudget;\n      const expectedProfitType = this.task.effectiveProfitMargin[`${fieldName}Percentage`];\n      const calculatedValue = (0, _profitMargin.calculateValue)(expectedProfitType.type, draftBudget[fieldName], Number(value));\n      quoteModel.set(fieldName, calculatedValue);\n      const lineTotal = calculatedValue + this.task.childrenDraftQuote[fieldName];\n      quoteModel.set(`${fieldName}Total`, lineTotal);\n      const total = quoteModel.labourTotal + quoteModel.materialsTotal + quoteModel.subcontractorsTotal + quoteModel.sumsTotal;\n      quoteModel.set('total', total);\n    }\n\n    // calculate percentages values based on quote value & profit type\n    async quoteValueChanged(quoteModel, fieldName, value) {\n      // first: update line total and quote total\n      const lineTotal = value + this.task.childrenDraftQuote[fieldName];\n      quoteModel.set(`${fieldName}Total`, lineTotal);\n      const total = quoteModel.labourTotal + quoteModel.materialsTotal + quoteModel.subcontractorsTotal + quoteModel.sumsTotal;\n      quoteModel.set('total', total);\n\n      // second: update margin value\n      const draftBudget = this.task.draftBudget;\n      const expectedProfitType = this.task.effectiveProfitMargin[`${fieldName}Percentage`];\n\n      // if budget or input value is zero, set value to zero\n      if (!draftBudget?.[fieldName]) {\n        quoteModel.set(`${fieldName}Percentage`, 0);\n        return;\n      }\n      const calculatedValue = (0, _profitMargin.calculatePercentage)(expectedProfitType.type, draftBudget[fieldName], Number(value));\n      quoteModel.set(`${fieldName}Percentage`, calculatedValue);\n    }\n\n    // calculate quote values when opening modal\n    calculateInitialQuoteValues(fieldName) {\n      const draftQuote = this.task.draftQuote;\n      const draftBudget = this.task.draftBudget;\n      const expectedProfitType = this.task.effectiveProfitMargin[`${fieldName}Percentage`];\n\n      // if quote value is there return quote value\n      if (draftQuote?.[fieldName]) return draftQuote[fieldName];\n\n      // if budget is not there return zero\n      if (!draftBudget?.[fieldName]) return 0;\n      return (0, _profitMargin.calculateValue)(expectedProfitType.type, draftBudget[fieldName], expectedProfitType.value);\n    }\n\n    // calculate percentages when opening modal\n    calculateInitialProfitPercentages(fieldName) {\n      const draftQuote = this.task.draftQuote;\n      const draftBudget = this.task.draftBudget;\n      const profitMargin = this.task.belongsTo('profitMargin').value();\n      const defaultProfitMargin = this.task.defaultPercentageValues;\n      const expectedProfitType = this.task.effectiveProfitMargin[`${fieldName}Percentage`];\n\n      // if budget is not there return 0\n      if (!draftBudget?.[fieldName]) return 0;\n\n      // if quote value exists calculate percentages\n      if (draftQuote[fieldName]) {\n        return (0, _profitMargin.calculatePercentage)(expectedProfitType.type, draftBudget[fieldName], draftQuote[fieldName]);\n      }\n      return profitMargin?.[`${fieldName}Percentage`] || defaultProfitMargin?.[`${fieldName}Percentage`].value;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"setMaterialBudgetFromProducts\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setMaterialBudgetFromProducts\"), _class2.prototype), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"updateBudgetData\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"openUpdateBudgetForm\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"openUpdateBudgetForm\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"budgetValueChanged\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"budgetValueChanged\"), _class2.prototype), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"updateQuoteData\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"openUpdateQuoteForm\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"openUpdateQuoteForm\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"profitMarginChanged\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"profitMarginChanged\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"quoteValueChanged\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"quoteValueChanged\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/tasks/task/people\", [\"exports\", \"@ember/controller\", \"@ember/service\"], function (_exports, _controller, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n    }\n    get canManageTask() {\n      return this.newFeatureFlags.includesFeatureFlags(this.model.task.last.value, 'canManageTasks');\n    }\n    get tabs() {\n      const tabsArray = [];\n      if (this.newFeatureFlags.includesFeatureFlags(this.model.task.last.value, 'canUseUsers')) {\n        tabsArray.push({\n          name: this.intl.t('common.Users'),\n          route: 'entity.builda-price.projects.project.tasks.task.people.users',\n          icon: 'user'\n        });\n      }\n      if (this.newFeatureFlags.includesFeatureFlags(this.model.task.last.value, 'canUseClientPortal', 'canUseUsers')) {\n        tabsArray.push({\n          name: this.intl.t('common.Clients'),\n          route: 'entity.builda-price.projects.project.tasks.task.people.clients',\n          icon: 'user-tie'\n        });\n      }\n      if (this.newFeatureFlags.includesFeatureFlags(this.model.task.last.value, 'canUseSubcontractors')) {\n        tabsArray.push({\n          name: this.intl.t('common.Subcontractors'),\n          route: 'entity.builda-price.projects.project.tasks.task.people.subcontractors',\n          icon: 'hard-hat'\n        });\n      }\n      if (this.newFeatureFlags.includesFeatureFlags(this.model.task.last.value, 'canUseWorkers')) {\n        tabsArray.push({\n          name: this.intl.t('common.Workers'),\n          route: 'entity.builda-price.projects.project.tasks.task.people.workers',\n          icon: 'users'\n        });\n      }\n      return tabsArray;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/tasks/task/people/clients/client\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"@ember/object\", \"@glimmer/tracking\", \"portal/routes/entity/builda-price/projects/project/tasks/task/people/clients/client\", \"portal/routes/entity/builda-price/projects/project/people/clients/client\"], function (_exports, _asyncArrowRuntime, _controller, _service, _object, _tracking, _client, _client2) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9; // import { tracked } from '@glimmer/tracking';\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"@ember/object\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"portal/routes/entity/builda-price/projects/project/tasks/task/people/clients/client\",0,\"portal/routes/entity/builda-price/projects/project/people/clients/client\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('intl', 'model.basePath', 'model.client.last.value.{fullName,id}'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor3, this);\n      _initializerDefineProperty(this, \"store\", _descriptor4, this);\n      _initializerDefineProperty(this, \"router\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _defineProperty(this, \"permissionSupersededMessage\", this.intl.t('shared.notification.thisOptionIsSupersededByATaskProjectOrCompanyPermission'));\n      _initializerDefineProperty(this, \"_taskPermissionsVisible\", _descriptor7, this);\n      _initializerDefineProperty(this, \"_schedulingPermissionsVisible\", _descriptor8, this);\n      _initializerDefineProperty(this, \"_reportsPermissionsVisible\", _descriptor9, this);\n      _defineProperty(this, \"deleteUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            if (!confirm(this.intl.t('entity.builda-price.projects.project.tasks.task.people.clients.client.removeClientFromTaskConfirm'))) return;\n\n            // remove all permissions for this user and this task\n            const taskAttributes = yield this.store.simpleQuery('user-task-attribute', {\n              user: this.model.client.last.value.id,\n              task: this.model.task.last.value.id\n            }).then(utas => utas.toArray());\n            yield Promise.all([...taskAttributes.map(ta => ta.destroyRecord())]);\n            this.router.transitionTo(`${this.model.basePath}.clients`);\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.tasks.task.people.clients.client.Removed client from task'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.Something went wrong removing the client'),\n              error\n            });\n          }\n        }\n      }), null, \"deleteUser\", null));\n      _defineProperty(this, \"savePermissions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          try {\n            yield changeset.validate();\n            if (changeset.isInvalid) return;\n            const attributesToAdd = new Set();\n            const attributesToRemove = new Set();\n            if (changeset.canViewBudgetFinancialReports) {\n              _client.canViewBudgetReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _client.canViewBudgetReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewBudgetLabourHourReports) {\n              _client.canViewBudgetLabourHourReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _client.canViewBudgetLabourHourReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewBudgets) {\n              _client.canViewBudgetsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _client.canViewBudgetsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewChargeupReports) {\n              _client.canViewChargeupReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _client.canViewChargeupReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewCostFinancialReports) {\n              _client.canViewCostReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _client.canViewCostReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewCostLabourHourReports) {\n              _client.canViewCostLabourHourReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _client.canViewCostLabourHourReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewFileStorage) {\n              _client.canViewFileStorageAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _client.canViewFileStorageAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewProgressReports) {\n              _client.canViewProgressReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _client.canViewProgressReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewQuoteReports) {\n              _client.canViewQuoteReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _client.canViewQuoteReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewQuotes) {\n              _client.canViewQuotesAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _client.canViewQuotesAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewProgress) {\n              _client.canViewProgressAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _client.canViewProgressAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewSchedulingReports) {\n              _client.canViewSchedulingReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _client.canViewSchedulingReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewInvoicingReports) {\n              _client.canViewInvoicingReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _client.canViewInvoicingReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewClientReports) {\n              _client.canViewClientReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _client.canViewClientReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            yield this.handleAttributes([...attributesToAdd], [...attributesToRemove]);\n            this.notifications.success(this.intl.t('shared.notification.Successfully saved permissions'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongSavingThePermissions'),\n              error\n            });\n          }\n        }\n      }), null, \"savePermissions\", null));\n    }\n    get isRunning() {\n      return this.model.project.isRunning || this.model.task.isRunning || this.model.client.isRunning || this.model.permissionsChangeset.isRunning;\n    }\n    get permissionsChangeset() {\n      return this.model.permissionsChangeset.last.value;\n    }\n    get canViewReports() {\n      const reports = {\n        [this.intl.t('common.Budget')]: [this.projectCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.projectCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports],\n        [this.intl.t('common.Chargeup')]: [this.projectCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports, this.projectCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.projectCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports],\n        [this.intl.t('shared.report.Forecast breakdown')]: [this.projectCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.projectCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports, this.projectCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.projectCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports],\n        [this.intl.t('common.Labour hours')]: [this.projectCanViewBudgetLabourHourReports || this.permissionsChangeset.canViewBudgetLabourHourReports, this.projectCanViewCostLabourHourReports || this.permissionsChangeset.canViewCostLabourHourReports, this.projectCanViewProgressReports || this.permissionsChangeset.canViewProgressReports],\n        [this.intl.t('common.Position')]: [this.projectCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.projectCanViewBudgetLabourHourReports || this.permissionsChangeset.canViewBudgetLabourHourReports, this.projectCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports, this.projectCanViewCostLabourHourReports || this.permissionsChangeset.canViewCostLabourHourReports, this.projectCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.projectCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports, this.projectCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports],\n        [this.intl.t('common.Profit margins')]: [this.projectCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.projectCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports, this.projectCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.projectCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports],\n        [this.intl.t('common.Quote')]: [this.projectCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports, this.projectCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports],\n        [this.intl.t('shared.report.Work in progress')]: [this.projectCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.projectCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports, this.projectCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.projectCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports],\n        [this.intl.t('common.Invoicing')]: [this.projectCanViewInvoicingReports || this.permissionsChangeset.canViewInvoicingReports],\n        [this.intl.t('common.Cost to complete')]: [this.projectCanViewClientReports || this.permissionsChangeset.canViewClientReports || (this.projectCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports) && (this.projectCanViewProgressReports || this.permissionsChangeset.canViewProgressReports) && (this.projectCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports) && (this.projectCanViewInvoicingReports || this.permissionsChangeset.canViewInvoicingReports)]\n      };\n      const allowedReports = Object.keys(reports).filter(key => reports[key].every(p => p));\n      if (!allowedReports.length) return '';\n      return allowedReports.join(', ');\n    }\n    get crumbStack() {\n      const paths = [{\n        route: `${this.model.basePath}.clients`,\n        pageTitle: this.intl.t('common.Clients')\n      }, {\n        route: `${this.model.basePath}.clients`,\n        model: this.model.client.last.value.id,\n        pageTitle: this.model.client.last.value.fullName\n      }];\n      return paths;\n    }\n    get taskPermissionsCount() {\n      return [this.permissionsChangeset.canViewBudgets, this.permissionsChangeset.canViewFileStorage, this.permissionsChangeset.canViewQuotes, this.permissionsChangeset.canViewProgress].filter(attribute => attribute).length;\n    }\n    get taskPermissionsVisible() {\n      if (this._taskPermissionsVisible != null) return this._taskPermissionsVisible;\n      return this.taskPermissionsCount > 0;\n    }\n    set taskPermissionsVisible(value) {\n      this._taskPermissionsVisible = value;\n    }\n    get schedulingPermissionsCount() {\n      return [this.permissionsChangeset.canViewSchedulingReports].filter(attribute => attribute).length;\n    }\n    get schedulingPermissionsVisible() {\n      if (this._schedulingPermissionsVisible != null) return this._schedulingPermissionsVisible;\n      return this.schedulingPermissionsCount > 0;\n    }\n    set schedulingPermissionsVisible(value) {\n      this._schedulingPermissionsVisible = value;\n    }\n    get reportsPermissionsCount() {\n      return [this.permissionsChangeset.canViewBudgetFinancialReports, this.permissionsChangeset.canViewBudgetLabourHourReports, this.permissionsChangeset.canViewChargeupReports, this.permissionsChangeset.canViewCostFinancialReports, this.permissionsChangeset.canViewCostLabourHourReports, this.permissionsChangeset.canViewQuoteReports, this.permissionsChangeset.canViewProgressReports, this.permissionsChangeset.canViewInvoicingReports, this.permissionsChangeset.canViewClientReports].filter(attribute => attribute).length;\n    }\n    get reportsPermissionsVisible() {\n      if (this._reportsPermissionsVisible != null) return this._reportsPermissionsVisible;\n      return this.reportsPermissionsCount > 0;\n    }\n    set reportsPermissionsVisible(value) {\n      this._reportsPermissionsVisible = value;\n    }\n    get _parentTaskIds() {\n      if (!this.model.task.last.value) return [];\n      const ids = [];\n      const getTaskId = task => {\n        // not loaded yet\n        if (!task) return;\n        ids.push(task.id);\n        if (task.belongsTo('parent').value()) getTaskId(task.belongsTo('parent').value());\n      };\n      getTaskId(this.model.task.last.value.belongsTo('parent').value());\n      return ids;\n    }\n    get projectCanViewTasks() {\n      const projectCan = this.model.client.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._client2.canViewTasksAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.client.last.value.includesClaimsAboutTask(id, ..._client.canViewTasksAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewBudgets() {\n      const projectCan = this.model.client.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._client2.canViewBudgetsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.client.last.value.includesClaimsAboutTask(id, ..._client.canViewBudgetsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewQuotes() {\n      const projectCan = this.model.client.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._client2.canViewQuotesAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.client.last.value.includesClaimsAboutTask(id, ..._client.canViewQuotesAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewProgress() {\n      const projectCan = this.model.client.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._client2.canViewProgressAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.client.last.value.includesClaimsAboutTask(id, ..._client.canViewProgressAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewFileStorage() {\n      const projectCan = this.model.client.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._client2.canViewFileStorageAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.client.last.value.includesClaimsAboutTask(id, ..._client.canViewFileStorageAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewBudgetReports() {\n      const projectCan = this.model.client.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._client2.canViewBudgetReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.client.last.value.includesClaimsAboutTask(id, ..._client.canViewBudgetReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewBudgetLabourHourReports() {\n      const projectCan = this.model.client.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._client2.canViewBudgetLabourHourReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.client.last.value.includesClaimsAboutTask(id, ..._client.canViewBudgetLabourHourReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewQuoteReports() {\n      const projectCan = this.model.client.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._client2.canViewQuoteReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.client.last.value.includesClaimsAboutTask(id, ..._client.canViewQuoteReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewCostReports() {\n      const projectCan = this.model.client.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._client2.canViewCostReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.client.last.value.includesClaimsAboutTask(id, ..._client.canViewCostReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewCostLabourHourReports() {\n      const projectCan = this.model.client.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._client2.canViewCostLabourHourReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.client.last.value.includesClaimsAboutTask(id, ..._client.canViewCostLabourHourReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewChargeupReports() {\n      const projectCan = this.model.client.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._client2.canViewChargeupReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.client.last.value.includesClaimsAboutTask(id, ..._client.canViewChargeupReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewProgressReports() {\n      const projectCan = this.model.client.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._client2.canViewProgressReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.client.last.value.includesClaimsAboutTask(id, ..._client.canViewProgressReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewInvoicingReports() {\n      const projectCan = this.model.client.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._client2.canViewInvoicingReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.client.last.value.includesClaimsAboutTask(id, ..._client.canViewInvoicingReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewClientReports() {\n      const projectCan = this.model.client.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._client2.canViewClientReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.client.last.value.includesClaimsAboutTask(id, ..._client.canViewClientReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewSchedulingReports() {\n      const projectCan = this.model.client.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._client2.canViewSchedulingReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.client.last.value.includesClaimsAboutTask(id, ..._client.canViewSchedulingReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    async handleAttributes(attributesToAdd, _attributesToRemove) {\n      // don't bother removing attributes we're going to add later\n      const attributesToRemove = _attributesToRemove.filter(ar => !attributesToAdd.includes(ar));\n      const existingAttributes = await this.store.simpleQuery('user-task-attribute', {\n        user: this.model.client.last.value.id,\n        task: this.model.task.last.value.id\n      }).then(r => r.toArray());\n      await this.store.findAll('user-attribute');\n      // add and remove entity attribute from the user\n      await Promise.all([Promise.all(attributesToRemove.map(async ea => {\n        const matchingExistingAttributes = existingAttributes.filter(a => a.belongsTo('attribute').id() === ea);\n\n        // only remove the attribute if it exists\n        // this can be a singular check once the db constraints are fixed\n        if (matchingExistingAttributes.length) await Promise.all(matchingExistingAttributes.map(a => a.destroyRecord()));\n      })), Promise.all(attributesToAdd.map(async ea => {\n        // don't add if it's already there\n        if (existingAttributes.some(a => a.belongsTo('attribute').id() === ea)) return;\n\n        // fetch and check attribute is valid\n        const attribute = await this.store.peekRecord('user-attribute', ea);\n        if (!attribute) throw new Error('Tried to create a non-existent attribute');\n\n        // create the relationship\n        await this.store.createRecord('user-task-attribute', {\n          entity: this.sessionData.entity,\n          task: this.model.task.last.value,\n          user: this.model.client.last.value,\n          attribute\n        }).save();\n      }))]);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"crumbStack\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"crumbStack\"), _class2.prototype), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_taskPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"_schedulingPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"_reportsPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/tasks/task/people/clients/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@glimmer/tracking\", \"@ember/service\", \"@ember/object\"], function (_exports, _asyncArrowRuntime, _controller, _tracking, _service, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"@ember/object\",0,\"ember-concurrency\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const addToTaskAttributes = ['canViewTasks', 'hasClientRole'];\n  let _class = _exports.default = (_dec = (0, _object.computed)('filteredClients', 'model.clients.last.value.taskClients', 'searchString.length'), _dec2 = (0, _object.computed)('model.clients.last.value.unassignedClients'), _dec3 = (0, _object.computed)('model.clients.last.value.taskClients'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor3, this);\n      _initializerDefineProperty(this, \"store\", _descriptor4, this);\n      _initializerDefineProperty(this, \"router\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor7, this);\n      _initializerDefineProperty(this, \"isAddingClientToTask\", _descriptor8, this);\n      _initializerDefineProperty(this, \"clientToAddToTask\", _descriptor9, this);\n      _defineProperty(this, \"permissionSupersededMessage\", this.intl.t('shared.notification.thisOptionIsSupersededByATaskProjectOrCompanyPermission'));\n      _defineProperty(this, \"addClientToTask\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.handleAttributesForClient(this.clientToAddToTask, addToTaskAttributes, []);\n            this.isAddingClientToTask = false;\n            this.clientToAddToTask = null;\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.tasks.task.people.clients.Added client to task'));\n            yield Promise.all([this.model.clients.perform(this.model.task)]);\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.Something went wrong adding client'),\n              error\n            });\n          }\n        }\n      }), null, \"addClientToTask\", null));\n    }\n    get isLoading() {\n      return this.model.task.isRunning || this.model.clients.isRunning || this.model.project.isRunning;\n    }\n    get filteredClients() {\n      const result = this.model.clients.last.value.taskClients?.filter(user => {\n        const matchString = `${user.firstName}${user.lastName}${user.email}${user.phoneNumber}`.toLowerCase();\n        return matchString.includes(this.searchString.replace(/\\s/g, '').toLowerCase());\n      }).sort((a, b) => a.sortIndex - b.sortIndex) || [];\n      return result;\n    }\n    get unassignedClients() {\n      if (!this.model.clients.last.value) return [];\n      return this.model.clients.last.value.unassignedClients;\n    }\n    get taskClients() {\n      if (!this.model.clients.last.value) return [];\n      return this.model.clients.last.value.taskClients;\n    }\n    async handleAttributesForClient(client, attributesToAdd, _attributesToRemove) {\n      // don't bother removing attributes we're going to add later\n      const attributesToRemove = _attributesToRemove.filter(ar => !attributesToAdd.includes(ar));\n      const existingAttributes = await this.store.simpleQuery('user-task-attribute', {\n        user: client.id,\n        task: this.model.task.last.value.id\n      }).then(r => r.toArray());\n      await this.store.findAll('user-attribute');\n      // add and remove entity attribute from the user\n      await Promise.all([Promise.all(attributesToRemove.map(async ea => {\n        const matchingExistingAttributes = existingAttributes.filter(a => a.belongsTo('attribute').id() === ea);\n\n        // only remove the attribute if it exists\n        // this can be a singular check once the db constraints are fixed\n        if (matchingExistingAttributes.length) await Promise.all(matchingExistingAttributes.map(a => a.destroyRecord()));\n      })), Promise.all(attributesToAdd.map(async ea => {\n        // don't add if it's already there\n        if (existingAttributes.some(a => a.belongsTo('attribute').id() === ea)) return;\n\n        // fetch and check attribute is valid\n        const attribute = await this.store.peekRecord('user-attribute', ea);\n        if (!attribute) throw new Error('Tried to create a non-existent attribute');\n\n        // create the relationship\n        await this.store.createRecord('user-task-attribute', {\n          entity: this.sessionData.entity,\n          task: this.model.task.last.value,\n          user: client,\n          attribute\n        }).save();\n      }))]);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"isAddingClientToTask\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"clientToAddToTask\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"filteredClients\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"filteredClients\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"unassignedClients\", [_dec2], Object.getOwnPropertyDescriptor(_class2.prototype, \"unassignedClients\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"taskClients\", [_dec3], Object.getOwnPropertyDescriptor(_class2.prototype, \"taskClients\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/tasks/task/people/subcontractors/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _controller, _object, _tracking, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"ember-concurrency\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const addToTaskAttributes = ['canViewTasks', 'hasSubcontractorRole'];\n  let _class = _exports.default = (_dec = (0, _object.computed)('filteredSubcontractors', 'model.subcontractors.last.value.taskSubcontractors', 'searchString.length'), _dec2 = (0, _object.computed)('model.subcontractors.last.value.unassignedSubcontractors'), _dec3 = (0, _object.computed)('model.subcontractors.last.value.taskSubcontractors'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor3, this);\n      _initializerDefineProperty(this, \"store\", _descriptor4, this);\n      _initializerDefineProperty(this, \"router\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor7, this);\n      _initializerDefineProperty(this, \"isAddingSubcontractorToTask\", _descriptor8, this);\n      _initializerDefineProperty(this, \"subcontractorToAddToTask\", _descriptor9, this);\n      _defineProperty(this, \"addSubcontractorToTask\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.handleAttributesForSubcontractor(this.subcontractorToAddToTask, addToTaskAttributes, []);\n            this.isAddingSubcontractorToTask = false;\n            this.subcontractorToAddToTask = null;\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.tasks.task.people.subcontractors.Added subcontractor to task'));\n            yield Promise.all([this.model.subcontractors.perform(this.model.task)]);\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.Something went wrong adding user'),\n              error\n            });\n          }\n        }\n      }), null, \"addSubcontractorToTask\", null));\n    }\n    get isLoading() {\n      return this.model.task.isRunning || this.model.subcontractors.isRunning || this.model.project.isRunning;\n    }\n    get filteredSubcontractors() {\n      const result = this.model.subcontractors.last.value.taskSubcontractors?.filter(subcontractor => {\n        const matchString = `${subcontractor.firstName}${subcontractor.lastName}${subcontractor.email}${subcontractor.phoneNumber}`.toLowerCase();\n        return matchString.includes(this.searchString.replace(/\\s/g, '').toLowerCase());\n      }).sort((a, b) => a.sortIndex - b.sortIndex) || [];\n      return result;\n    }\n    get unassignedSubcontractors() {\n      if (!this.model.subcontractors.last.value) return [];\n      return this.model.subcontractors.last.value.unassignedSubcontractors;\n    }\n    get taskSubcontractors() {\n      if (!this.model.subcontractors.last.value) return [];\n      return this.model.subcontractors.last.value.taskSubcontractors;\n    }\n    async handleAttributesForSubcontractor(subcontractor, attributesToAdd, _attributesToRemove) {\n      // don't bother removing attributes we're going to add later\n      const attributesToRemove = _attributesToRemove.filter(ar => !attributesToAdd.includes(ar));\n      const existingAttributes = await this.store.simpleQuery('user-task-attribute', {\n        user: subcontractor.id,\n        task: this.model.task.last.value.id\n      }).then(r => r.toArray());\n      await this.store.findAll('user-attribute');\n      // add and remove entity attribute from the user\n      await Promise.all([Promise.all(attributesToRemove.map(async ea => {\n        const matchingExistingAttributes = existingAttributes.filter(a => a.belongsTo('attribute').id() === ea);\n\n        // only remove the attribute if it exists\n        // this can be a singular check once the db constraints are fixed\n        if (matchingExistingAttributes.length) await Promise.all(matchingExistingAttributes.map(a => a.destroyRecord()));\n      })), Promise.all(attributesToAdd.map(async ea => {\n        // don't add if it's already there\n        if (existingAttributes.some(a => a.belongsTo('attribute').id() === ea)) return;\n\n        // fetch and check attribute is valid\n        const attribute = await this.store.peekRecord('user-attribute', ea);\n        if (!attribute) throw new Error('Tried to create a non-existent attribute');\n\n        // create the relationship\n        await this.store.createRecord('user-task-attribute', {\n          entity: this.sessionData.entity,\n          task: this.model.task.last.value,\n          user: subcontractor,\n          attribute\n        }).save();\n      }))]);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"isAddingSubcontractorToTask\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"subcontractorToAddToTask\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"filteredSubcontractors\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"filteredSubcontractors\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"unassignedSubcontractors\", [_dec2], Object.getOwnPropertyDescriptor(_class2.prototype, \"unassignedSubcontractors\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"taskSubcontractors\", [_dec3], Object.getOwnPropertyDescriptor(_class2.prototype, \"taskSubcontractors\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/tasks/task/people/subcontractors/subcontractor\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/service\", \"portal/routes/entity/builda-price/projects/project/tasks/task/people/subcontractors/subcontractor\", \"portal/routes/entity/builda-price/projects/project/people/subcontractors/subcontractor\", \"portal/routes/entity/settings/people/subcontractors/subcontractor\"], function (_exports, _asyncArrowRuntime, _controller, _object, _tracking, _service, _subcontractor, _subcontractor2, _subcontractor3) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"portal/routes/entity/builda-price/projects/project/tasks/task/people/subcontractors/subcontractor\",0,\"portal/routes/entity/builda-price/projects/project/people/subcontractors/subcontractor\",0,\"portal/routes/entity/settings/people/subcontractors/subcontractor\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('model.basePath', 'model.subcontractor.last.value.{id,fullName}'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _initializerDefineProperty(this, \"router\", _descriptor4, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _defineProperty(this, \"permissionSupersededMessage\", this.intl.t('shared.notification.thisOptionIsSupersededByATaskProjectOrCompanyPermission'));\n      _initializerDefineProperty(this, \"_taskPermissionsVisible\", _descriptor7, this);\n      _initializerDefineProperty(this, \"_schedulingPermissionsVisible\", _descriptor8, this);\n      _initializerDefineProperty(this, \"_allocationsPermissionsVisible\", _descriptor9, this);\n      _initializerDefineProperty(this, \"_reportsPermissionsVisible\", _descriptor0, this);\n      _defineProperty(this, \"savePermissions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          try {\n            yield changeset.validate();\n            if (changeset.isInvalid) return;\n            const attributesToAdd = new Set();\n            const attributesToRemove = new Set();\n            if (changeset.canManageBudgets) {\n              _subcontractor.canManageBudgetsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canManageBudgetsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageProducts) {\n              _subcontractor.canManageProductsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canManageProductsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageFileStorage) {\n              _subcontractor.canManageFileStorageAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canManageFileStorageAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageQuotes) {\n              _subcontractor.canManageQuotesAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canManageQuotesAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageProgress) {\n              _subcontractor.canManageProgressAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canManageProgressAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageSchedulingReports) {\n              _subcontractor.canManageSchedulingReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canManageSchedulingReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageTasks) {\n              _subcontractor.canManageTasksAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canManageTasksAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageTimesheets) {\n              _subcontractor.canManageTimesheetsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canManageTimesheetsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewBudgetFinancialReports) {\n              _subcontractor.canViewBudgetReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewBudgetReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewBudgetLabourHourReports) {\n              _subcontractor.canViewBudgetLabourHourReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewBudgetLabourHourReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewBudgets) {\n              _subcontractor.canViewBudgetsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewBudgetsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewChargeupReports) {\n              _subcontractor.canViewChargeupReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewChargeupReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewCostFinancialReports) {\n              _subcontractor.canViewCostReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewCostReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewCostLabourHourReports) {\n              _subcontractor.canViewCostLabourHourReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewCostLabourHourReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewProducts) {\n              _subcontractor.canViewProductsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewProductsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewFileStorage) {\n              _subcontractor.canViewFileStorageAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewFileStorageAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewProgressReports) {\n              _subcontractor.canViewProgressReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewProgressReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewQuoteReports) {\n              _subcontractor.canViewQuoteReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewQuoteReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewQuotes) {\n              _subcontractor.canViewQuotesAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewQuotesAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewProgress) {\n              _subcontractor.canViewProgressAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewProgressAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewSchedulingReports) {\n              _subcontractor.canViewSchedulingReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewSchedulingReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewInvoicingReports) {\n              _subcontractor.canViewInvoicingReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewInvoicingReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            yield this.handleAttributes([...attributesToAdd], [...attributesToRemove]);\n            this.notifications.success(this.intl.t('shared.notification.Successfully saved permissions'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongSavingThePermissions'),\n              error\n            });\n          }\n        }\n      }), null, \"savePermissions\", null));\n      _defineProperty(this, \"deleteUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            if (!confirm(this.intl.t('entity.builda-price.projects.project.tasks.task.people.subcontractors.subcontractor.removeSubcontractorFromTaskConfirm'))) return;\n\n            // remove all permissions for this user and this task\n            const taskAttributes = yield this.store.simpleQuery('user-task-attribute', {\n              user: this.model.subcontractor.last.value.id,\n              task: this.model.task.last.value.id\n            }).then(utas => utas.toArray());\n            yield Promise.all([...taskAttributes.map(ta => ta.destroyRecord())]);\n            this.router.transitionTo(`${this.model.basePath}.subcontractors`);\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.tasks.task.people.subcontractors.subcontractor.Removed subcontractors from task'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.tasks.task.people.subcontractors.subcontractor.somethingWentWrongRemovingTheSubcontractors'),\n              error\n            });\n          }\n        }\n      }), null, \"deleteUser\", null));\n    }\n    get isRunning() {\n      return this.model.project.isRunning || this.model.task.isRunning || this.model.subcontractor.isRunning || this.model.permissionsChangeset.isRunning;\n    }\n    get permissionsChangeset() {\n      return this.model.permissionsChangeset.last.value;\n    }\n    get canViewReports() {\n      const reports = {\n        [this.intl.t('common.Budget')]: [this.projectCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.projectCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports],\n        [this.intl.t('common.Chargeup')]: [this.projectCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports, this.projectCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.projectCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports],\n        [this.intl.t('common.Costs')]: [(this.projectCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports) && (this.projectCanManageTimesheets || this.permissionsChangeset.canManageTimesheets) && (this.entityCanViewBills || this.entityCanManageBills)],\n        [this.intl.t('shared.report.Forecast breakdown')]: [this.projectCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.projectCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports, this.projectCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.projectCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports],\n        [this.intl.t('common.Labour hours')]: [this.projectCanViewBudgetLabourHourReports || this.permissionsChangeset.canViewBudgetLabourHourReports, this.projectCanViewCostLabourHourReports || this.permissionsChangeset.canViewCostLabourHourReports, this.projectCanViewProgressReports || this.permissionsChangeset.canViewProgressReports],\n        [this.intl.t('common.Position')]: [this.projectCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.projectCanViewBudgetLabourHourReports || this.permissionsChangeset.canViewBudgetLabourHourReports, this.projectCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports, this.projectCanViewCostLabourHourReports || this.permissionsChangeset.canViewCostLabourHourReports, this.projectCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.projectCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports, this.projectCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports],\n        [this.intl.t('common.Profit margins')]: [this.projectCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.projectCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports, this.projectCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.projectCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports],\n        [this.intl.t('common.Quote')]: [this.projectCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports, this.projectCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports],\n        [this.intl.t('shared.report.Work in progress')]: [this.projectCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.projectCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports, this.projectCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.projectCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports],\n        [this.intl.t('common.Invoicing')]: [this.projectCanViewInvoicingReports || this.permissionsChangeset.canViewInvoicingReports],\n        [this.intl.t('common.Cost to complete')]: [this.projectCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports, this.projectCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.projectCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports, this.projectCanViewInvoicingReports || this.permissionsChangeset.canViewInvoicingReports]\n      };\n      const allowedReports = Object.keys(reports).filter(key => reports[key].every(p => p));\n      if (!allowedReports.length) return '';\n      return allowedReports.join(', ');\n    }\n    get crumbStack() {\n      const paths = [{\n        route: `${this.model.basePath}.subcontractors`,\n        pageTitle: 'Subcontractor'\n      }, {\n        route: `${this.model.basePath}.subcontractors`,\n        model: this.model.subcontractor.last.value.id,\n        pageTitle: this.model.subcontractor.last.value.fullName\n      }];\n      return paths;\n    }\n    get taskPermissionsCount() {\n      return [this.permissionsChangeset.canManageBudgets, this.permissionsChangeset.canManageFileStorage, this.permissionsChangeset.canManageProducts, this.permissionsChangeset.canManageQuotes, this.permissionsChangeset.canManageProgress, this.permissionsChangeset.canManageTasks, this.permissionsChangeset.canViewBudgets, this.permissionsChangeset.canViewFileStorage, this.permissionsChangeset.canViewProducts, this.permissionsChangeset.canViewQuotes, this.permissionsChangeset.canViewProgress].filter(attribute => attribute).length;\n    }\n    get taskPermissionsVisible() {\n      if (this._taskPermissionsVisible != null) return this._taskPermissionsVisible;\n      return this.taskPermissionsCount > 0;\n    }\n    set taskPermissionsVisible(value) {\n      this._taskPermissionsVisible = value;\n    }\n    get schedulingPermissionsCount() {\n      return [this.permissionsChangeset.canManageSchedulingReports, this.permissionsChangeset.canViewSchedulingReports].filter(attribute => attribute).length;\n    }\n    get schedulingPermissionsVisible() {\n      if (this._schedulingPermissionsVisible != null) return this._schedulingPermissionsVisible;\n      return this.schedulingPermissionsCount > 0;\n    }\n    set schedulingPermissionsVisible(value) {\n      this._schedulingPermissionsVisible = value;\n    }\n    get allocationsPermissionsCount() {\n      return [this.permissionsChangeset.canManageTimesheets].filter(attribute => attribute).length;\n    }\n    get allocationsPermissionsVisible() {\n      if (this._allocationsPermissionsVisible != null) return this._allocationsPermissionsVisible;\n      return this.allocationsPermissionsCount > 0;\n    }\n    set allocationsPermissionsVisible(value) {\n      this._allocationsPermissionsVisible = value;\n    }\n    get reportsPermissionsCount() {\n      return [this.permissionsChangeset.canViewBudgetFinancialReports, this.permissionsChangeset.canViewBudgetLabourHourReports, this.permissionsChangeset.canViewChargeupReports, this.permissionsChangeset.canViewCostFinancialReports, this.permissionsChangeset.canViewCostLabourHourReports, this.permissionsChangeset.canViewQuoteReports, this.permissionsChangeset.canViewProgressReports, this.permissionsChangeset.canViewInvoicingReports].filter(attribute => attribute).length;\n    }\n    get reportsPermissionsVisible() {\n      if (this._reportsPermissionsVisible != null) return this._reportsPermissionsVisible;\n      return this.reportsPermissionsCount > 0;\n    }\n    set reportsPermissionsVisible(value) {\n      this._reportsPermissionsVisible = value;\n    }\n    get _parentTaskIds() {\n      if (!this.model.task.last.value) return [];\n      const ids = [];\n      const getTaskId = task => {\n        // not loaded yet\n        if (!task) return;\n        ids.push(task.id);\n        if (task.belongsTo('parent').value()) getTaskId(task.belongsTo('parent').value());\n      };\n      getTaskId(this.model.task.last.value.belongsTo('parent').value());\n      return ids;\n    }\n    get entityCanViewBills() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canViewBillsAttributes);\n    }\n    get entityCanManageBills() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canManageBillsAttributes);\n    }\n    get projectCanManageTimesheets() {\n      const entityCan = this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canManageTimesheetsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.subcontractor.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._subcontractor2.canManageTimesheetsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.subcontractor.last.value.includesClaimsAboutTask(id, ..._subcontractor.canManageTimesheetsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewTasks() {\n      const entityCan = this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canViewTasksAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.subcontractor.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._subcontractor2.canViewTasksAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.subcontractor.last.value.includesClaimsAboutTask(id, ..._subcontractor.canViewTasksAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanManageTasks() {\n      const entityCan = this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canManageTasksAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.subcontractor.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._subcontractor2.canManageTasksAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.subcontractor.last.value.includesClaimsAboutTask(id, ..._subcontractor.canManageTasksAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewBudgets() {\n      const entityCan = this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canViewBudgetsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.subcontractor.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._subcontractor2.canViewBudgetsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.subcontractor.last.value.includesClaimsAboutTask(id, ..._subcontractor.canViewBudgetsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanManageBudgets() {\n      const entityCan = this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canManageBudgetsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.subcontractor.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._subcontractor2.canManageBudgetsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.subcontractor.last.value.includesClaimsAboutTask(id, ..._subcontractor.canManageBudgetsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewQuotes() {\n      const entityCan = this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canViewQuotesAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.subcontractor.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._subcontractor2.canViewQuotesAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.subcontractor.last.value.includesClaimsAboutTask(id, ..._subcontractor.canViewQuotesAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewProgress() {\n      const entityCan = this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canViewProgressAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.subcontractor.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._subcontractor2.canViewProgressAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.subcontractor.last.value.includesClaimsAboutTask(id, ..._subcontractor.canViewProgressAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanManageProgress() {\n      const entityCan = this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canManageProgressAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.subcontractor.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._subcontractor2.canManageProgressAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.subcontractor.last.value.includesClaimsAboutTask(id, ..._subcontractor.canManageProgressAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanManageQuotes() {\n      const entityCan = this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canManageQuotesAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.subcontractor.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._subcontractor2.canManageQuotesAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.subcontractor.last.value.includesClaimsAboutTask(id, ..._subcontractor.canManageQuotesAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewProducts() {\n      const entityCan = this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canViewProductsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.subcontractor.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._subcontractor2.canViewProductsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.subcontractor.last.value.includesClaimsAboutTask(id, ..._subcontractor.canViewProductsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewFileStorage() {\n      const entityCan = this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canViewFileStorageAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.subcontractor.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._subcontractor2.canViewFileStorageAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.subcontractor.last.value.includesClaimsAboutTask(id, ..._subcontractor.canViewFileStorageAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanManageProducts() {\n      const entityCan = this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canManageProductsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.subcontractor.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._subcontractor2.canManageProductsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.subcontractor.last.value.includesClaimsAboutTask(id, ..._subcontractor.canViewProductsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanManageFileStorage() {\n      const entityCan = this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canManageFileStorageAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.subcontractor.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._subcontractor2.canManageFileStorageAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.subcontractor.last.value.includesClaimsAboutTask(id, ..._subcontractor.canViewFileStorageAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewBudgetReports() {\n      const entityCan = this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canViewBudgetReportsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.subcontractor.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._subcontractor2.canViewBudgetReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.subcontractor.last.value.includesClaimsAboutTask(id, ..._subcontractor.canViewBudgetReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewBudgetLabourHourReports() {\n      const entityCan = this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canViewBudgetLabourHourReportsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.subcontractor.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._subcontractor2.canViewBudgetLabourHourReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.subcontractor.last.value.includesClaimsAboutTask(id, ..._subcontractor.canViewBudgetLabourHourReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewQuoteReports() {\n      const entityCan = this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canViewQuoteReportsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.subcontractor.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._subcontractor2.canViewQuoteReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.subcontractor.last.value.includesClaimsAboutTask(id, ..._subcontractor.canViewQuoteReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewCostReports() {\n      const entityCan = this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canViewCostReportsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.subcontractor.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._subcontractor2.canViewCostReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.subcontractor.last.value.includesClaimsAboutTask(id, ..._subcontractor.canViewCostReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewCostLabourHourReports() {\n      const entityCan = this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canViewCostLabourHourReportsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.subcontractor.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._subcontractor2.canViewCostLabourHourReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.subcontractor.last.value.includesClaimsAboutTask(id, ..._subcontractor.canViewCostLabourHourReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewChargeupReports() {\n      const entityCan = this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canViewChargeupReportsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.subcontractor.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._subcontractor2.canViewChargeupReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.subcontractor.last.value.includesClaimsAboutTask(id, ..._subcontractor.canViewChargeupReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewProgressReports() {\n      const entityCan = this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canViewProgressReportsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.subcontractor.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._subcontractor2.canViewProgressReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.subcontractor.last.value.includesClaimsAboutTask(id, ..._subcontractor.canViewProgressReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewSchedulingReports() {\n      const entityCan = this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canViewSchedulingReportsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.subcontractor.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._subcontractor2.canViewSchedulingReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.subcontractor.last.value.includesClaimsAboutTask(id, ..._subcontractor.canViewSchedulingReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewInvoicingReports() {\n      const entityCan = this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canViewInvoicingReportsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.subcontractor.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._subcontractor2.canViewInvoicingReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.subcontractor.last.value.includesClaimsAboutTask(id, ..._subcontractor.canViewInvoicingReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanManageSchedulingReports() {\n      const entityCan = this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canManageSchedulingReportsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.subcontractor.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._subcontractor2.canManageSchedulingReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.subcontractor.last.value.includesClaimsAboutTask(id, ..._subcontractor.canManageSchedulingReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    async handleAttributes(attributesToAdd, _attributesToRemove) {\n      // don't bother removing attributes we're going to add later\n      const attributesToRemove = _attributesToRemove.filter(ar => !attributesToAdd.includes(ar));\n      const existingAttributes = await this.store.simpleQuery('user-task-attribute', {\n        user: this.model.subcontractor.last.value.id,\n        task: this.model.task.last.value.id\n      }).then(r => r.toArray());\n      await this.store.findAll('user-attribute');\n      // add and remove entity attribute from the user\n      await Promise.all([Promise.all(attributesToRemove.map(async ea => {\n        const matchingExistingAttributes = existingAttributes.filter(a => a.belongsTo('attribute').id() === ea);\n\n        // only remove the attribute if it exists\n        // this can be a singular check once the db constraints are fixed\n        if (matchingExistingAttributes.length) await Promise.all(matchingExistingAttributes.map(a => a.destroyRecord()));\n      })), Promise.all(attributesToAdd.map(async ea => {\n        // don't add if it's already there\n        if (existingAttributes.some(a => a.belongsTo('attribute').id() === ea)) return;\n\n        // fetch and check attribute is valid\n        const attribute = await this.store.peekRecord('user-attribute', ea);\n        if (!attribute) throw new Error('Tried to create a non-existent attribute');\n\n        // create the relationship\n        await this.store.createRecord('user-task-attribute', {\n          entity: this.sessionData.entity,\n          task: this.model.task.last.value,\n          user: this.model.subcontractor.last.value,\n          attribute\n        }).save();\n      }))]);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"crumbStack\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"crumbStack\"), _class2.prototype), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_taskPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"_schedulingPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"_allocationsPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"_reportsPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/tasks/task/people/users/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _controller, _object, _tracking, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"ember-concurrency\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const addToTaskAttributes = ['canViewTasks'];\n  let _class = _exports.default = (_dec = (0, _object.computed)('filteredUsers', 'model.users.last.value.taskUsers', 'searchString.length'), _dec2 = (0, _object.computed)('model.users.last.value.unassignedUsers'), _dec3 = (0, _object.computed)('model.users.last.value.taskUsers'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor3, this);\n      _initializerDefineProperty(this, \"store\", _descriptor4, this);\n      _initializerDefineProperty(this, \"router\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor7, this);\n      _initializerDefineProperty(this, \"isAddingUserToTask\", _descriptor8, this);\n      _initializerDefineProperty(this, \"userToAddToTask\", _descriptor9, this);\n      _defineProperty(this, \"addUserToTask\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.handleAttributesForUser(this.userToAddToTask, addToTaskAttributes, []);\n            this.isAddingUserToTask = false;\n            this.userToAddToTask = null;\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.tasks.task.people.users.Added user to task'));\n            yield Promise.all([this.model.users.perform(this.model.task)]);\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.Something went wrong adding user'),\n              error\n            });\n          }\n        }\n      }), null, \"addUserToTask\", null));\n    }\n    get filteredUsers() {\n      const result = this.model.users.last.value.taskUsers?.filter(user => {\n        const matchString = `${user.firstName}${user.lastName}${user.email}${user.phoneNumber}`.toLowerCase();\n        return matchString.includes(this.searchString.replace(/\\s/g, '').toLowerCase());\n      }).sort((a, b) => a.sortIndex - b.sortIndex) || [];\n      return result;\n    }\n    get unassignedUsers() {\n      if (!this.model.users.last.value) return [];\n      return this.model.users.last.value.unassignedUsers;\n    }\n    get taskUsers() {\n      if (!this.model.users.last.value) return [];\n      return this.model.users.last.value.taskUsers;\n    }\n    get isLoading() {\n      return this.model.task.isRunning || this.model.users.isRunning || this.model.project.isRunning;\n    }\n    async handleAttributesForUser(user, attributesToAdd, _attributesToRemove) {\n      // don't bother removing attributes we're going to add later\n      const attributesToRemove = _attributesToRemove.filter(ar => !attributesToAdd.includes(ar));\n      const existingAttributes = await this.store.simpleQuery('user-task-attribute', {\n        user: user.id,\n        task: this.model.task.last.value.id\n      }).then(r => r.toArray());\n      await this.store.findAll('user-attribute');\n      // add and remove entity attribute from the user\n      await Promise.all([Promise.all(attributesToRemove.map(async ea => {\n        const matchingExistingAttributes = existingAttributes.filter(a => a.belongsTo('attribute').id() === ea);\n\n        // only remove the attribute if it exists\n        // this can be a singular check once the db constraints are fixed\n        if (matchingExistingAttributes.length) await Promise.all(matchingExistingAttributes.map(a => a.destroyRecord()));\n      })), Promise.all(attributesToAdd.map(async ea => {\n        // don't add if it's already there\n        if (existingAttributes.some(a => a.belongsTo('attribute').id() === ea)) return;\n\n        // fetch and check attribute is valid\n        const attribute = await this.store.peekRecord('user-attribute', ea);\n        if (!attribute) throw new Error('Tried to create a non-existent attribute');\n\n        // create the relationship\n        await this.store.createRecord('user-task-attribute', {\n          entity: this.sessionData.entity,\n          task: this.model.task.last.value,\n          user,\n          attribute\n        }).save();\n      }))]);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"isAddingUserToTask\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"userToAddToTask\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"filteredUsers\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"filteredUsers\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"unassignedUsers\", [_dec2], Object.getOwnPropertyDescriptor(_class2.prototype, \"unassignedUsers\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"taskUsers\", [_dec3], Object.getOwnPropertyDescriptor(_class2.prototype, \"taskUsers\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/tasks/task/people/users/user\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"@glimmer/tracking\", \"@ember/object\", \"portal/routes/entity/builda-price/projects/project/tasks/task/people/users/user\", \"portal/routes/entity/builda-price/projects/project/people/users/user\", \"portal/routes/entity/settings/people/users/user\"], function (_exports, _asyncArrowRuntime, _controller, _service, _tracking, _object, _user, _user2, _user3) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"portal/routes/entity/builda-price/projects/project/tasks/task/people/users/user\",0,\"portal/routes/entity/builda-price/projects/project/people/users/user\",0,\"portal/routes/entity/settings/people/users/user\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('intl', 'model.basePath', 'model.user.last.value.{fullName,id}'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _initializerDefineProperty(this, \"router\", _descriptor4, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _initializerDefineProperty(this, \"_taskPermissionsVisible\", _descriptor7, this);\n      _initializerDefineProperty(this, \"_schedulingPermissionsVisible\", _descriptor8, this);\n      _initializerDefineProperty(this, \"_allocationsPermissionsVisible\", _descriptor9, this);\n      _initializerDefineProperty(this, \"_reportsPermissionsVisible\", _descriptor0, this);\n      _defineProperty(this, \"permissionSupersededMessage\", this.intl.t('shared.notification.thisOptionIsSupersededByATaskProjectOrCompanyPermission'));\n      _defineProperty(this, \"deleteUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            if (!confirm(this.intl.t('entity.builda-price.projects.project.tasks.task.people.users.user.removeUserFromTaskConfirm'))) return;\n\n            // remove all permissions for this user and this task\n            const taskAttributes = yield this.store.simpleQuery('user-task-attribute', {\n              user: this.model.user.last.value.id,\n              task: this.model.task.last.value.id\n            }).then(utas => utas.toArray());\n            yield Promise.all([...taskAttributes.map(ta => ta.destroyRecord())]);\n            this.router.transitionTo(`${this.model.basePath}.users`);\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.tasks.task.people.users.user.Removed user from task'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.Something went wrong removing the user'),\n              error\n            });\n          }\n        }\n      }), null, \"deleteUser\", null));\n      _defineProperty(this, \"savePermissions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          try {\n            yield changeset.validate();\n            if (changeset.isInvalid) return;\n            const attributesToAdd = new Set();\n            const attributesToRemove = new Set();\n            if (changeset.canManageBudgets) {\n              _user.canManageBudgetsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canManageBudgetsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageProducts) {\n              _user.canManageProductsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canManageProductsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageFileStorage) {\n              _user.canManageFileStorageAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canManageFileStorageAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageQuotes) {\n              _user.canManageQuotesAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canManageQuotesAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageSchedulingReports) {\n              _user.canManageSchedulingReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canManageSchedulingReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageTasks) {\n              _user.canManageTasksAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canManageTasksAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageTimesheets) {\n              _user.canManageTimesheetsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canManageTimesheetsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewBudgetFinancialReports) {\n              _user.canViewBudgetReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewBudgetReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewBudgetLabourHourReports) {\n              _user.canViewBudgetLabourHourReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewBudgetLabourHourReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewBudgets) {\n              _user.canViewBudgetsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewBudgetsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewProgress) {\n              _user.canViewProgressAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewProgressAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageProgress) {\n              _user.canManageProgressAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canManageProgressAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewChargeupReports) {\n              _user.canViewChargeupReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewChargeupReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewCostFinancialReports) {\n              _user.canViewCostReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewCostReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewCostLabourHourReports) {\n              _user.canViewCostLabourHourReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewCostLabourHourReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewProducts) {\n              _user.canViewProductsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewProductsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewFileStorage) {\n              _user.canViewFileStorageAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewFileStorageAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewProgressReports) {\n              _user.canViewProgressReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewProgressReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewQuoteReports) {\n              _user.canViewQuoteReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewQuoteReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewQuotes) {\n              _user.canViewQuotesAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewQuotesAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewSchedulingReports) {\n              _user.canViewSchedulingReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewSchedulingReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewInvoicingReports) {\n              _user.canViewInvoicingReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewInvoicingReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            yield this.handleAttributes([...attributesToAdd], [...attributesToRemove]);\n            this.notifications.success(this.intl.t('shared.notification.Successfully saved permissions'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongSavingThePermissions'),\n              error\n            });\n          }\n        }\n      }), null, \"savePermissions\", null));\n    }\n    get crumbStack() {\n      const paths = [{\n        route: `${this.model.basePath}.users`,\n        pageTitle: this.intl.t('common.Users')\n      }, {\n        route: `${this.model.basePath}.users`,\n        model: this.model.user.last.value.id,\n        pageTitle: this.model.user.last.value.fullName\n      }];\n      return paths;\n    }\n    get permissionsChangeset() {\n      return this.model.permissionsChangeset.last.value;\n    }\n    get canViewReports() {\n      const reports = {\n        [this.intl.t('common.Budget')]: [this.projectCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.projectCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports],\n        [this.intl.t('common.Chargeup')]: [this.projectCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports, this.projectCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.projectCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports],\n        [this.intl.t('common.Costs')]: [(this.projectCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports) && (this.projectCanManageTimesheets || this.permissionsChangeset.canManageTimesheets) && (this.entityCanViewBills || this.entityCanManageBills)],\n        [this.intl.t('shared.report.Forecast breakdown')]: [this.projectCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.projectCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports, this.projectCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.projectCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports],\n        [this.intl.t('common.Labour hours')]: [this.projectCanViewBudgetLabourHourReports || this.permissionsChangeset.canViewBudgetLabourHourReports, this.projectCanViewCostLabourHourReports || this.permissionsChangeset.canViewCostLabourHourReports, this.projectCanViewProgressReports || this.permissionsChangeset.canViewProgressReports],\n        [this.intl.t('common.Position')]: [this.projectCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.projectCanViewBudgetLabourHourReports || this.permissionsChangeset.canViewBudgetLabourHourReports, this.projectCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports, this.projectCanViewCostLabourHourReports || this.permissionsChangeset.canViewCostLabourHourReports, this.projectCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.projectCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports, this.projectCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports],\n        [this.intl.t('common.Profit margins')]: [this.projectCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.projectCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports, this.projectCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.projectCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports],\n        [this.intl.t('common.Quote')]: [this.projectCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports, this.projectCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports],\n        [this.intl.t('shared.report.Work in progress')]: [this.projectCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.projectCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports, this.projectCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.projectCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports],\n        [this.intl.t('common.Invoicing')]: [this.projectCanViewInvoicingReports || this.permissionsChangeset.canViewInvoicingReports],\n        [this.intl.t('common.Cost to complete')]: [this.projectCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports, this.projectCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.projectCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports, this.projectCanViewInvoicingReports || this.permissionsChangeset.canViewInvoicingReports]\n      };\n      const allowedReports = Object.keys(reports).filter(key => reports[key].every(p => p));\n      if (!allowedReports.length) return '';\n      return allowedReports.join(', ');\n    }\n    get taskPermissionsCount() {\n      return [this.permissionsChangeset.canManageBudgets, this.permissionsChangeset.canManageFileStorage, this.permissionsChangeset.canManageProducts, this.permissionsChangeset.canManageQuotes, this.permissionsChangeset.canManageTasks, this.permissionsChangeset.canManageProgress, this.permissionsChangeset.canViewBudgets, this.permissionsChangeset.canViewProducts, this.permissionsChangeset.canViewFileStorage, this.permissionsChangeset.canViewQuotes, this.permissionsChangeset.canViewProgress].filter(attribute => attribute).length;\n    }\n    get taskPermissionsVisible() {\n      if (this._taskPermissionsVisible != null) return this._taskPermissionsVisible;\n      return this.taskPermissionsCount > 0;\n    }\n    set taskPermissionsVisible(value) {\n      this._taskPermissionsVisible = value;\n    }\n    get schedulingPermissionsCount() {\n      return [this.permissionsChangeset.canManageSchedulingReports, this.permissionsChangeset.canViewSchedulingReports].filter(attribute => attribute).length;\n    }\n    get schedulingPermissionsVisible() {\n      if (this._schedulingPermissionsVisible != null) return this._schedulingPermissionsVisible;\n      return this.schedulingPermissionsCount > 0;\n    }\n    set schedulingPermissionsVisible(value) {\n      this._schedulingPermissionsVisible = value;\n    }\n    get allocationsPermissionsCount() {\n      return [this.permissionsChangeset.canManageTimesheets].filter(attribute => attribute).length;\n    }\n    get allocationsPermissionsVisible() {\n      if (this._allocationsPermissionsVisible != null) return this._allocationsPermissionsVisible;\n      return this.allocationsPermissionsCount > 0;\n    }\n    set allocationsPermissionsVisible(value) {\n      this._allocationsPermissionsVisible = value;\n    }\n    get reportsPermissionsCount() {\n      return [this.permissionsChangeset.canViewBudgetFinancialReports, this.permissionsChangeset.canViewBudgetLabourHourReports, this.permissionsChangeset.canViewChargeupReports, this.permissionsChangeset.canViewCostFinancialReports, this.permissionsChangeset.canViewCostLabourHourReports, this.permissionsChangeset.canViewQuoteReports, this.permissionsChangeset.canViewProgressReports, this.permissionsChangeset.canViewInvoicingReports].filter(attribute => attribute).length;\n    }\n    get reportsPermissionsVisible() {\n      if (this._reportsPermissionsVisible != null) return this._reportsPermissionsVisible;\n      return this.reportsPermissionsCount > 0;\n    }\n    set reportsPermissionsVisible(value) {\n      this._reportsPermissionsVisible = value;\n    }\n    get isRunning() {\n      return this.model.project.isRunning || this.model.task.isRunning || this.model.user.isRunning || this.model.permissionsChangeset.isRunning;\n    }\n    get _parentTaskIds() {\n      if (!this.model.task.last.value) return [];\n      const ids = [];\n      const getTaskId = task => {\n        // not loaded yet\n        if (!task) return;\n        ids.push(task.id);\n        if (task.belongsTo('parent').value()) getTaskId(task.belongsTo('parent').value());\n      };\n      getTaskId(this.model.task.last.value.belongsTo('parent').value());\n      return ids;\n    }\n    get userIsEntityAdmin() {\n      return this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, 'canManageEntity');\n    }\n    get projectCanManageTimesheets() {\n      const entityCan = this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canManageTimesheetsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.user.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._user2.canManageTimesheetsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.user.last.value.includesClaimsAboutTask(id, ..._user.canManageTimesheetsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get entityCanViewBills() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canViewBillsAttributes);\n    }\n    get entityCanManageBills() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canManageBillsAttributes);\n    }\n    get projectCanViewTasks() {\n      const entityCan = this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canViewTasksAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.user.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._user2.canViewTasksAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.user.last.value.includesClaimsAboutTask(id, ..._user.canViewTasksAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanManageTasks() {\n      const entityCan = this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canManageTasksAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.user.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._user2.canManageTasksAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.user.last.value.includesClaimsAboutTask(id, ..._user.canManageTasksAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewBudgets() {\n      const entityCan = this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canViewBudgetsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.user.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._user2.canViewBudgetsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.user.last.value.includesClaimsAboutTask(id, ..._user.canViewBudgetsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewProgress() {\n      const entityCan = this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canViewProgressAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.user.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._user2.canViewProgressAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.user.last.value.includesClaimsAboutTask(id, ..._user.canViewProgressAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanManageProgress() {\n      const entityCan = this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canManageProgressAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.user.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._user2.canManageProgressAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.user.last.value.includesClaimsAboutTask(id, ..._user.canManageProgressAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanManageBudgets() {\n      const entityCan = this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canManageBudgetsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.user.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._user2.canManageBudgetsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.user.last.value.includesClaimsAboutTask(id, ..._user.canManageBudgetsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewQuotes() {\n      const entityCan = this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canViewQuotesAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.user.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._user2.canViewQuotesAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.user.last.value.includesClaimsAboutTask(id, ..._user.canViewQuotesAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanManageQuotes() {\n      const entityCan = this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canManageQuotesAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.user.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._user2.canManageQuotesAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.user.last.value.includesClaimsAboutTask(id, ..._user.canManageQuotesAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewProducts() {\n      const entityCan = this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canViewProductsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.user.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._user2.canViewProductsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.user.last.value.includesClaimsAboutTask(id, ..._user.canViewProductsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanManageProducts() {\n      const entityCan = this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canManageProductsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.user.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._user2.canManageProductsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.user.last.value.includesClaimsAboutTask(id, ..._user.canViewProductsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewFileStorage() {\n      const entityCan = this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canViewFileStorageAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.user.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._user2.canViewFileStorageAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.user.last.value.includesClaimsAboutTask(id, ..._user.canViewFileStorageAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanManageFileStorage() {\n      const entityCan = this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canManageFileStorageAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.user.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._user2.canManageFileStorageAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.user.last.value.includesClaimsAboutTask(id, ..._user.canViewFileStorageAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewBudgetReports() {\n      const entityCan = this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canViewBudgetReportsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.user.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._user2.canViewBudgetReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.user.last.value.includesClaimsAboutTask(id, ..._user.canViewBudgetReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewBudgetLabourHourReports() {\n      const entityCan = this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canViewBudgetLabourHourReportsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.user.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._user2.canViewBudgetLabourHourReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.user.last.value.includesClaimsAboutTask(id, ..._user.canViewBudgetLabourHourReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewQuoteReports() {\n      const entityCan = this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canViewQuoteReportsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.user.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._user2.canViewQuoteReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.user.last.value.includesClaimsAboutTask(id, ..._user.canViewQuoteReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewCostReports() {\n      const entityCan = this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canViewCostReportsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.user.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._user2.canViewCostReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.user.last.value.includesClaimsAboutTask(id, ..._user.canViewCostReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewCostLabourHourReports() {\n      const entityCan = this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canViewCostLabourHourReportsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.user.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._user2.canViewCostLabourHourReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.user.last.value.includesClaimsAboutTask(id, ..._user.canViewCostLabourHourReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewChargeupReports() {\n      const entityCan = this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canViewChargeupReportsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.user.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._user2.canViewChargeupReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.user.last.value.includesClaimsAboutTask(id, ..._user.canViewChargeupReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewInvoicingReports() {\n      const entityCan = this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canViewInvoicingReportsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.user.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._user2.canViewInvoicingReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.user.last.value.includesClaimsAboutTask(id, ..._user.canViewInvoicingReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewProgressReports() {\n      const entityCan = this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canViewProgressReportsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.user.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._user2.canViewProgressReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.user.last.value.includesClaimsAboutTask(id, ..._user.canViewProgressReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewSchedulingReports() {\n      const entityCan = this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canViewSchedulingReportsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.user.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._user2.canViewSchedulingReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.user.last.value.includesClaimsAboutTask(id, ..._user.canViewSchedulingReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanManageSchedulingReports() {\n      const entityCan = this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canManageSchedulingReportsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.user.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._user2.canManageSchedulingReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.user.last.value.includesClaimsAboutTask(id, ..._user.canManageSchedulingReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    async handleAttributes(attributesToAdd, _attributesToRemove) {\n      // don't bother removing attributes we're going to add later\n      const attributesToRemove = _attributesToRemove.filter(ar => !attributesToAdd.includes(ar));\n      const existingAttributes = await this.store.simpleQuery('user-task-attribute', {\n        user: this.model.user.last.value.id,\n        task: this.model.task.last.value.id\n      }).then(r => r.toArray());\n      await this.store.findAll('user-attribute');\n      // add and remove entity attribute from the user\n      await Promise.all([Promise.all(attributesToRemove.map(async ea => {\n        const matchingExistingAttributes = existingAttributes.filter(a => a.belongsTo('attribute').id() === ea);\n\n        // only remove the attribute if it exists\n        // this can be a singular check once the db constraints are fixed\n        if (matchingExistingAttributes.length) await Promise.all(matchingExistingAttributes.map(a => a.destroyRecord()));\n      })), Promise.all(attributesToAdd.map(async ea => {\n        // don't add if it's already there\n        if (existingAttributes.some(a => a.belongsTo('attribute').id() === ea)) return;\n\n        // fetch and check attribute is valid\n        const attribute = await this.store.peekRecord('user-attribute', ea);\n        if (!attribute) throw new Error('Tried to create a non-existent attribute');\n\n        // create the relationship\n        await this.store.createRecord('user-task-attribute', {\n          entity: this.sessionData.entity,\n          task: this.model.task.last.value,\n          user: this.model.user.last.value,\n          attribute\n        }).save();\n      }))]);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"crumbStack\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"crumbStack\"), _class2.prototype), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_taskPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"_schedulingPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"_allocationsPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"_reportsPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/tasks/task/people/workers/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/service\", \"lodash\", \"portal/routes/entity/builda-price/projects/project/tasks/task/people/workers\"], function (_exports, _asyncArrowRuntime, _controller, _object, _tracking, _service, _lodash, _workers) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"lodash\",0,\"ember-concurrency\",0,\"portal/routes/entity/builda-price/projects/project/tasks/task/people/workers\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('filteredWorkers', 'model.workers.last.value.taskWorkers', 'searchString.length'), _dec2 = (0, _object.computed)('model.workers.last.value.taskWorkers'), _dec3 = (0, _object.computed)('model.workers.last.value.unassignedWorkers'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _initializerDefineProperty(this, \"store\", _descriptor6, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor7, this);\n      _initializerDefineProperty(this, \"isAddingWorkerToTask\", _descriptor8, this);\n      _initializerDefineProperty(this, \"_workerToAddToTask\", _descriptor9, this);\n      _defineProperty(this, \"addWorkerToTask\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.handleWorkerTaskAttributes(this.workerToAddToTask, [..._workers.workerTaskAttributes], []);\n            yield this.handleWorkerProjectAttributes(this.workerToAddToTask, [..._workers.workerProjectAttributes], []);\n            yield Promise.all([this.model.workers.perform(this.model.task)]);\n            this.isAddingWorkerToTask = false;\n            this.workerToAddToTask = null;\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.tasks.task.people.workers.Added worker to task'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.Something went wrong adding worker'),\n              error\n            });\n          }\n        }\n      }), null, \"addWorkerToTask\", null));\n    }\n    get isLoading() {\n      return this.model.task.isRunning || this.model.workers.isRunning;\n    }\n    get filteredWorkers() {\n      const result = this.model.workers.last.value.taskWorkers?.filter(worker => {\n        const matchString = `${worker.firstName}${worker.lastName}${worker.email}${worker.phoneNumber}`.toLowerCase();\n        return matchString.includes(this.searchString.replace(/\\s/g, '').toLowerCase());\n      }).sort((a, b) => a.sortIndex - b.sortIndex) || [];\n      return result;\n    }\n    get projectWorkers() {\n      if (!this.model.workers.last.value) return [];\n      return this.model.workers.last.value.taskWorkers;\n    }\n    get unassignedWorkers() {\n      if (!this.model.workers.last.value) return [];\n      return this.model.workers.last.value.unassignedWorkers;\n    }\n    get workerToAddToTask() {\n      if (this._workerToAddToTask) return this._workerToAddToTask;\n      return this.taskWorkers;\n    }\n    set workerToAddToTask(value) {\n      this._workerToAddToTask = value;\n    }\n    get workerToRemoveFromTask() {\n      return _lodash.default.difference(this.taskWorkers, this.workerToAddToTask);\n    }\n    async handleWorkerProjectAttributes(worker, projectAttributesToAdd, _projectAttributesToRemove) {\n      const project = this.model.task.last.value.belongsTo('project').value();\n      // don't bother removing attributes we're going to add later\n      const projectAttributesToRemove = _projectAttributesToRemove.filter(ar => !projectAttributesToAdd.includes(ar));\n      const existingProjectAttributes = await this.store.simpleQuery('worker-project-attribute', {\n        worker: worker.id,\n        project: project.id\n      }).then(r => r.toArray());\n      await this.store.findAll('worker-attribute');\n      // add and remove entity attribute from the worker\n      await Promise.all([Promise.all(projectAttributesToRemove.map(async ea => {\n        const matchingExistingAttributes = existingProjectAttributes.filter(a => a.belongsTo('attribute').id() === ea);\n\n        // only remove the attribute if it exists\n        // this can be a singular check once the db constraints are fixed\n        if (matchingExistingAttributes.length) await Promise.all(matchingExistingAttributes.map(a => a.destroyRecord()));\n      })), Promise.all(projectAttributesToAdd.map(async ea => {\n        // don't add if it's already there\n        if (existingProjectAttributes.some(a => a.belongsTo('attribute').id() === ea)) return;\n\n        // fetch and check attribute is valid\n        const attribute = await this.store.peekRecord('worker-attribute', ea);\n        if (!attribute) throw new Error('Tried to create a non-existent attribute');\n\n        // create the relationship\n        await this.store.createRecord('worker-project-attribute', {\n          entity: this.sessionData.entity,\n          project,\n          worker,\n          attribute\n        }).save();\n      }))]);\n    }\n    async handleWorkerTaskAttributes(worker, taskAttributesToAdd, _taskAttributesToRemove) {\n      // don't bother removing attributes we're going to add later\n      const taskAttributesToRemove = _taskAttributesToRemove.filter(ar => !taskAttributesToAdd.includes(ar));\n      const existingProjectAttributes = await this.store.simpleQuery('worker-task-attribute', {\n        worker: worker.id,\n        task: this.model.task.last.value.id\n      }).then(r => r.toArray());\n      await this.store.findAll('worker-attribute');\n      // add and remove entity attribute from the worker\n      await Promise.all([Promise.all(taskAttributesToRemove.map(async ea => {\n        const matchingExistingAttributes = existingProjectAttributes.filter(a => a.belongsTo('attribute').id() === ea);\n\n        // only remove the attribute if it exists\n        // this can be a singular check once the db constraints are fixed\n        if (matchingExistingAttributes.length) await Promise.all(matchingExistingAttributes.map(a => a.destroyRecord()));\n      })), Promise.all(taskAttributesToAdd.map(async ea => {\n        // don't add if it's already there\n        if (existingProjectAttributes.some(a => a.belongsTo('attribute').id() === ea)) return;\n\n        // fetch and check attribute is valid\n        const attribute = await this.store.peekRecord('worker-attribute', ea);\n        if (!attribute) throw new Error('Tried to create a non-existent attribute');\n\n        // create the relationship\n        await this.store.createRecord('worker-task-attribute', {\n          entity: this.sessionData.entity,\n          task: this.model.task.last.value,\n          worker,\n          attribute\n        }).save();\n      }))]);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"isAddingWorkerToTask\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"filteredWorkers\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"filteredWorkers\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"projectWorkers\", [_dec2], Object.getOwnPropertyDescriptor(_class2.prototype, \"projectWorkers\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"unassignedWorkers\", [_dec3], Object.getOwnPropertyDescriptor(_class2.prototype, \"unassignedWorkers\"), _class2.prototype), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"_workerToAddToTask\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/tasks/task/people/workers/worker\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"@ember/object\"], function (_exports, _asyncArrowRuntime, _controller, _service, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6; // import { tracked } from '@glimmer/tracking';\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"@ember/object\",0,\"ember-concurrency\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('intl', 'model.basePath', 'model.worker.last.value.{fullName,id}'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor3, this);\n      _initializerDefineProperty(this, \"store\", _descriptor4, this);\n      _initializerDefineProperty(this, \"router\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _defineProperty(this, \"deleteWorker\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            if (!confirm(this.intl.t('entity.builda-price.projects.project.tasks.task.people.workers.worker.removeWorkerFromTaskConfirm'))) return;\n            const taskAttributes = yield this.store.simpleQuery('worker-task-attribute', {\n              worker: this.model.worker.last.value.id,\n              entity: this.sessionData.entity.id,\n              task: this.model.task.last.value.id\n            });\n            yield Promise.all([...taskAttributes.map(ta => ta.destroyRecord())]);\n            this.router.transitionTo(`${this.model.basePath}.workers`);\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.tasks.task.people.workers.worker.Removed worker from task'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.Something went wrong removing the worker'),\n              error\n            });\n          }\n        }\n      }), null, \"deleteWorker\", null));\n    }\n    get isRunning() {\n      return this.model.project.isRunning || this.model.task.isRunning || this.model.worker.isRunning;\n    }\n    get crumbStack() {\n      const paths = [{\n        route: `${this.model.basePath}.workers`,\n        pageTitle: this.intl.t('common.Workers')\n      }, {\n        route: `${this.model.basePath}.workers`,\n        model: this.model.worker.last.value.id,\n        pageTitle: this.model.worker.last.value.fullName\n      }];\n      return paths;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"crumbStack\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"crumbStack\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/tasks/task/products\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\", \"@ember/runloop\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _tracking, _object, _service, _runloop, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"@ember/runloop\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor4, this);\n      _initializerDefineProperty(this, \"numberFormat\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _initializerDefineProperty(this, \"searchTerm\", _descriptor7, this);\n      _initializerDefineProperty(this, \"productChangeSet\", _descriptor8, this);\n      _initializerDefineProperty(this, \"pageSize\", _descriptor9, this);\n      _initializerDefineProperty(this, \"pageIndex\", _descriptor0, this);\n      _initializerDefineProperty(this, \"sortBy\", _descriptor1, this);\n      _initializerDefineProperty(this, \"sortDirection\", _descriptor10, this);\n      _initializerDefineProperty(this, \"selectProductIds\", _descriptor11, this);\n      _initializerDefineProperty(this, \"selectedProductId\", _descriptor12, this);\n      _initializerDefineProperty(this, \"isAddingProduct\", _descriptor13, this);\n      _initializerDefineProperty(this, \"isEditingProduct\", _descriptor14, this);\n      _initializerDefineProperty(this, \"isDeletingProducts\", _descriptor15, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor16, this);\n      _defineProperty(this, \"queryParams\", ['pageSize', 'pageIndex', 'sortBy', 'sortDirection', 'searchTerm']);\n      _defineProperty(this, \"onChangeSearchTerm\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSearchTerm, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onChangeSearchTerm\", null));\n      _defineProperty(this, \"onAddProduct\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (product) {\n          try {\n            yield this.store.createRecord('task-product', {\n              ...product,\n              task: this.model.task.last.value,\n              entity: this.sessionData.entity\n            }).save();\n            this.isAddingProduct = false;\n            yield this.updateProductList.perform();\n          } catch (error) {\n            if (error.errors[0].status === '409') this.notifications.warning(this.intl.t('shared.notification.Product already exists'));\n          }\n        }\n      }), null, \"onAddProduct\", null));\n      _defineProperty(this, \"onSaveProduct\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (productChangeSet) {\n          try {\n            yield productChangeSet.save();\n            this.isEditingProduct = false;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongWhileSavingProduct'),\n              error\n            });\n          }\n          yield this.updateProductList.perform();\n        }\n      }), null, \"onSaveProduct\", null));\n      _defineProperty(this, \"updateProductList\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.model.products.perform(this.model.task, Number(this.model.pageSize), Number(this.model.pageIndex), this.model.sortBy, this.model.sortDirection, this.model.searchTerm);\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongWhileReloadProducts'),\n              error\n            });\n          }\n        }\n      }), null, \"updateProductList\", null));\n      _defineProperty(this, \"deleteProducts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.store.adapterFor('task-product').deleteBulk('task-product', [...this.selectProductIds]);\n            this.isDeletingProducts = false;\n            this.selectProductIds = new Set();\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongWhileDeletingProducts'),\n              error\n            });\n          }\n          yield this.updateProductList.perform();\n        }\n      }), null, \"deleteProducts\", null));\n    }\n    get products() {\n      return this.model.products.last.value || [];\n    }\n    updateSearchTerm(value) {\n      this.selectProductIds = new Set();\n      this.pageIndex = 1;\n      this.searchTerm = value;\n    }\n    onChangePageIndex(pageIndex) {\n      this.pageIndex = pageIndex;\n    }\n    onChangePageSize(pageSize) {\n      this.pageSize = pageSize;\n    }\n    setPrice(price) {\n      this.productChangeSet.set('unitPrice', price);\n    }\n    onSelectProduct(_row, col, e) {\n      if (e.target.checked) {\n        this.selectProductIds.add(col.extraData.productId);\n      } else {\n        this.selectProductIds.delete(col.extraData.productId);\n      }\n      // Set is not supported by tracked\n      // eslint-disable-next-line no-self-assign\n      this.selectProductIds = this.selectProductIds;\n    }\n    onClickProductName(_row, col) {\n      this.selectedProductId = col.extraData.productId;\n      this.isEditingProduct = true;\n    }\n    onSelectCurrentPageProducts(_row, col, e) {\n      const selectedProductIds = new Set();\n      if (e.target.checked) {\n        this.products.forEach(p => {\n          selectedProductIds.add(p.id);\n        });\n      }\n      this.selectProductIds = selectedProductIds;\n    }\n    onCreateProduct() {\n      this.selectedProductId = null;\n      this.isEditingProduct = true;\n    }\n    sortColumn(_row, col) {\n      if (this.sortBy !== col.value) {\n        this.sortBy = col.value;\n        this.sortDirection = 'asc';\n        return;\n      }\n      this.sortBy = col.value;\n      if (this.sortDirection === 'asc') {\n        this.sortDirection = 'desc';\n      } else if (this.sortDirection === 'desc') {\n        this.sortDirection = undefined;\n      } else {\n        this.sortDirection = 'asc';\n      }\n    }\n    onChangeProductQuantity(_row, col, e) {\n      try {\n        const products = this.products.toArray();\n        products[col.extraData.index].quantity = Number(e.target.value);\n        products[col.extraData.index].save();\n      } catch (error) {\n        this.notifications.error({\n          message: this.intl.t('entity.builda-price.projects.project.tasks.task.products.somethingWentWrongWhileSavingTheProductQuantity'),\n          error\n        });\n      }\n    }\n    get showFilters() {\n      return this.productTableData?.length || this.searchTerm?.length;\n    }\n    get productTableHeader() {\n      if (this.model.products.isRunning) return [];\n      const productHeader = [{\n        value: this.intl.t('common.Product'),\n        iconName: this.sortBy === 'Product' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left'\n      }, {\n        value: this.intl.t('common.Supplier'),\n        iconName: this.sortBy === 'Supplier' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left'\n      }, {\n        value: this.intl.t('common.SKU'),\n        iconName: this.sortBy === 'SKU' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left'\n      }, {\n        value: this.intl.t('common.Unit'),\n        iconName: this.sortBy === 'Unit' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left'\n      }, {\n        value: this.intl.t('common.Unit price'),\n        iconName: this.sortBy === 'Unit price' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-right'\n      }, {\n        value: this.intl.t('common.Quantity'),\n        iconName: this.sortBy === 'Quantity' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-right'\n      }, {\n        colClass: 'text-right',\n        value: 'Total'\n      }];\n      if (this.isEditable && this.products.length) productHeader.unshift({\n        type: 'CHECKBOX_INPUT',\n        colClass: 'text-center align-middle',\n        value: Boolean(this.selectProductIds.size === this.products.length),\n        isPartiallySelected: Boolean(this.selectProductIds.size && this.selectProductIds.size !== this.products.length),\n        onInputChange: this.onSelectCurrentPageProducts\n      });\n      return productHeader;\n    }\n    get totalRecords() {\n      if (this.model.products.isRunning) return 0;\n      return this.products.meta.totalRecords;\n    }\n    get productTableData() {\n      if (this.model.products.isRunning) return [];\n      return this.products.map((product, index) => {\n        const productData = [{\n          colClass: 'text-left align-middle',\n          value: product.supplierName\n        }, {\n          colClass: 'text-left align-middle',\n          value: product.sku\n        }, {\n          colClass: 'text-left align-middle',\n          value: product.unit\n        }, {\n          colClass: 'text-right align-middle',\n          value: this.numberFormat.format(product.unitPrice, {\n            style: 'currency',\n            dashZero: true\n          })\n        }, {\n          colClass: 'text-right align-middle',\n          value: this.numberFormat.format(product.unitPrice * product.quantity, {\n            style: 'currency',\n            dashZero: true\n          })\n        }];\n        if (this.isEditable) {\n          productData.unshift({\n            type: 'BUTTON',\n            textClass: 'btn btn-link',\n            value: product.description,\n            onClickButton: this.onClickProductName,\n            extraData: {\n              productId: product.id\n            }\n          });\n          productData.unshift({\n            type: 'CHECKBOX_INPUT',\n            colClass: 'text-center align-middle',\n            value: this.selectProductIds.has(product.id),\n            onInputChange: this.onSelectProduct,\n            extraData: {\n              productId: product.id\n            }\n          });\n          productData.splice(productData.length - 1, 0, {\n            type: 'NUMBER_INPUT',\n            colClass: 'text-right align-middle',\n            textClass: 'text-right entity-products__quantity-width',\n            min: '0',\n            max: '1000000',\n            value: product.quantity,\n            onInputChange: this.onChangeProductQuantity,\n            extraData: {\n              index\n            }\n          });\n        } else {\n          productData.unshift({\n            colClass: 'align-middle',\n            value: product.description\n          });\n          productData.splice(productData.length - 1, 0, {\n            colClass: 'text-right align-middle',\n            value: product.quantity\n          });\n        }\n        return {\n          rowData: productData\n        };\n      });\n    }\n    get isEditable() {\n      return this.newFeatureFlags.includesFeatureFlags(this.model.task.last.value, 'canManageProducts');\n    }\n    get isLoading() {\n      return this.model.task.last.isRunning;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"numberFormat\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"searchTerm\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"productChangeSet\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"pageSize\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"pageIndex\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"sortBy\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"sortDirection\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"selectProductIds\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return new Set();\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"selectedProductId\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"isAddingProduct\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"isEditingProduct\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, \"isDeletingProducts\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.searchTerm;\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"onChangePageIndex\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onChangePageIndex\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onChangePageSize\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onChangePageSize\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setPrice\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setPrice\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onSelectProduct\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onSelectProduct\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onClickProductName\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onClickProductName\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onSelectCurrentPageProducts\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onSelectCurrentPageProducts\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onCreateProduct\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onCreateProduct\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"sortColumn\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"sortColumn\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onChangeProductQuantity\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onChangeProductQuantity\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/tasks/task/settings\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"@glimmer/tracking\", \"@ember/object\"], function (_exports, _asyncArrowRuntime, _controller, _service, _tracking, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _initializerDefineProperty(this, \"store\", _descriptor6, this);\n      _initializerDefineProperty(this, \"accountingPlatform\", _descriptor7, this);\n      _initializerDefineProperty(this, \"isDeletingTask\", _descriptor8, this);\n      _initializerDefineProperty(this, \"isDependencyTransferModalOpen\", _descriptor9, this);\n      _initializerDefineProperty(this, \"dependencyTransferDestinationTask\", _descriptor0, this);\n      _defineProperty(this, \"timesheetStatus\", [{\n        value: 'ACTIVE',\n        label: this.intl.t('common.Active')\n      }, {\n        value: 'INACTIVE',\n        label: this.intl.t('common.Inactive')\n      }]);\n      _defineProperty(this, \"taskTypes\", [{\n        value: 'TASK',\n        label: this.intl.t('common.General')\n      }, {\n        value: 'BUILDERS_WORK',\n        label: this.intl.t('common.builderWork')\n      }, {\n        value: 'SUMS',\n        label: this.intl.t('common.Sums')\n      }, {\n        value: 'SUBCONTRACTOR',\n        label: this.intl.t('common.Subcontractors')\n      }, {\n        value: 'PLANT',\n        label: this.intl.t('common.Plant')\n      }, {\n        value: 'INTERNAL',\n        label: this.intl.t('common.Internal')\n      }, {\n        value: 'MILESTONE',\n        label: this.intl.t('common.Milestone')\n      }]);\n      _defineProperty(this, \"contractType\", [{\n        value: 'COST_PLUS',\n        label: this.intl.t('shared.task.Cost plus')\n      }, {\n        value: 'FIXED_PRICE',\n        label: this.intl.t('shared.task.Fixed price')\n      }]);\n      _defineProperty(this, \"deleteTask\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (dependencyTransferDestinationTask) {\n          const taskToDelete = this.model.task.last.value;\n          try {\n            yield taskToDelete.delete(dependencyTransferDestinationTask?.id);\n            this.isDeletingTask = false;\n            this.isDependencyTransferModalOpen = false;\n            this.dependencyTransferDestinationTask = undefined;\n            yield this.router.transitionTo('entity.builda-price.projects.project.tasks');\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.tasks.task.settings.Successfully deleted task'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.tasks.task.settings.Something went wrong deleting the task'),\n              error\n            });\n          }\n        }\n      }), null, \"deleteTask\", null));\n      _defineProperty(this, \"saveProfitMargin\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (taskChangeset, profitMarginChangeset) {\n          if (this.canManageTask) {\n            taskChangeset.validate();\n            if (taskChangeset.isInvalid) {\n              this.notifications.warning(this.intl.t('entity.builda-price.projects.project.tasks.task.settings.Please complete the task information'));\n              return;\n            }\n          }\n          if (this.canManageProfitMargin) {\n            profitMarginChangeset.validate('profitType', 'labourPercentage', 'materialsPercentage', 'subcontractorsPercentage', 'sumsPercentage');\n            if (profitMarginChangeset.isInvalid) {\n              this.notifications.warning(this.intl.t('shared.notification.pleaseCompleteTheProfitMarginInformation'));\n              return;\n            }\n          }\n          try {\n            if (this.canManageProfitMargin) {\n              profitMarginChangeset.execute();\n              yield profitMarginChangeset.save();\n            }\n            const promises = [];\n            if (this.canManageTask) {\n              taskChangeset.execute();\n              promises.push(taskChangeset.save());\n            }\n            yield Promise.all(promises);\n            this.notifications.success(this.intl.t('shared.notification.Saved successfully'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongSavingTheProfitMargins'),\n              error\n            });\n          }\n        }\n      }), null, \"saveProfitMargin\", null));\n      _defineProperty(this, \"saveTask\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (taskChangeset) {\n          if (this.canManageTask) {\n            taskChangeset.validate();\n            if (taskChangeset.isInvalid) {\n              this.notifications.warning(this.intl.t('entity.builda-price.projects.project.tasks.task.settings.Please complete the task information'));\n              return;\n            }\n          }\n          try {\n            const promises = [];\n            if (this.canManageTask) {\n              taskChangeset.execute();\n              promises.push(taskChangeset.save());\n            }\n            yield Promise.all(promises);\n            this.notifications.success(this.intl.t('shared.notification.Saved successfully'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.tasks.task.settings.Something went wrong saving the task'),\n              error\n            });\n          }\n        }\n      }), null, \"saveTask\", null));\n    }\n    get isLoading() {\n      return this.model.task.isRunning || this.model.loadTaskProfitMargin.isRunning || this.model.glAccounts.isRunning;\n    }\n    get hasInactiveParents() {\n      return this.model.task.last.value.hasInactiveParents;\n    }\n    get profitMargin() {\n      return this.model.task.last.value.belongsTo('profitMargin').value();\n    }\n    set contractTypeIsOverridden(value) {}\n    get contractTypeIsOverridden() {\n      return this.model.taskChangeset.last.value.contractType != null;\n    }\n    set purchasesGlAccountIsOverridden(value) {}\n    get purchasesGlAccountIsOverridden() {\n      const currentValue = this.model.taskChangeset.last.value.purchasesGlAccount;\n      return currentValue !== null;\n    }\n    set salesGlAccountIsOverridden(value) {}\n    get salesGlAccountIsOverridden() {\n      const currentValue = this.model.taskChangeset.last.value.salesGlAccount;\n      return currentValue !== null;\n    }\n    get canManageTask() {\n      return this.newFeatureFlags.includesFeatureFlags(this.model.task.last.value, 'canManageTasks');\n    }\n    get canManageProfitMargin() {\n      return this.newFeatureFlags.includesFeatureFlags(this.model.task.last.value, 'canManageProfitMargin');\n    }\n    get canManageWorkers() {\n      return this.newFeatureFlags.includesFeatureFlags(this.model.task.last.value, 'canManageWorkers');\n    }\n    get taskHasDependencies() {\n      return this.model.task.last.value.taskHasDependencies;\n    }\n    get deleteConfirmText() {\n      if (this.model.task.last.value.children.length > 1) return this.intl.t('entity.builda-price.projects.project.tasks.task.settings.deleteXTasks', {\n        // total: itself add its children\n        number: this.model.task.last.value.children.length + 1\n      });\n      if (this.model.task.last.value.children.length === 1 || this.taskHasDependencies) return this.intl.t('entity.builda-price.projects.project.tasks.task.settings.notification.deleteTask');\n      return null;\n    }\n    get deleteMessages() {\n      const messages = [this.intl.t('entity.builda-price.projects.project.tasks.task.settings.doYouWantToDeleteThisTask')];\n      if (this.model.task.last.value.children.length >= 1) {\n        messages.push(this.intl.t('entity.builda-price.projects.project.tasks.task.settings.willDeleteSubtasks', {\n          subtaskNumber: this.model.task.last.value.children.length\n        }));\n      }\n      if (this.taskHasDependencies) {\n        messages.push(this.intl.t('entity.builda-price.projects.project.tasks.task.settings.hasCostAssignedInTask'));\n      }\n      return messages;\n    }\n    get availableDependencyTransferDestinationTasks() {\n      const taskProject = this.model.task.last.value.belongsTo('project').value();\n      return taskProject?.activeTasks || [];\n    }\n    openDeleteModal() {\n      if (!this.taskHasDependencies) {\n        this.isDeletingTask = true;\n        return;\n      }\n      this.isDependencyTransferModalOpen = true;\n    }\n    selectDependencyTransferDestination(destinationTask) {\n      this.dependencyTransferDestinationTask = destinationTask;\n    }\n    closeDependencyTransferModal() {\n      this.dependencyTransferDestinationTask = undefined;\n      this.isDependencyTransferModalOpen = false;\n    }\n    async handleWorkerProjectAttributes(worker, projectAttributesToAdd, _projectAttributesToRemove) {\n      const project = this.model.task.last.value.belongsTo('project').value();\n      // don't bother removing attributes we're going to add later\n      const projectAttributesToRemove = _projectAttributesToRemove.filter(ar => !projectAttributesToAdd.includes(ar));\n      const existingProjectAttributes = await this.store.simpleQuery('worker-project-attribute', {\n        worker: worker.id,\n        project: project.id\n      }).then(r => r.toArray());\n      await this.store.findAll('worker-attribute');\n      // add and remove entity attribute from the worker\n      await Promise.all([Promise.all(projectAttributesToRemove.map(async ea => {\n        const matchingExistingAttributes = existingProjectAttributes.filter(a => a.belongsTo('attribute').id() === ea);\n\n        // only remove the attribute if it exists\n        // this can be a singular check once the db constraints are fixed\n        if (matchingExistingAttributes.length) await Promise.all(matchingExistingAttributes.map(a => a.destroyRecord()));\n      })), Promise.all(projectAttributesToAdd.map(async ea => {\n        // don't add if it's already there\n        if (existingProjectAttributes.some(a => a.belongsTo('attribute').id() === ea)) return;\n\n        // fetch and check attribute is valid\n        const attribute = await this.store.peekRecord('worker-attribute', ea);\n        if (!attribute) throw new Error('Tried to create a non-existent attribute');\n\n        // create the relationship\n        await this.store.createRecord('worker-project-attribute', {\n          entity: this.sessionData.entity,\n          project,\n          worker,\n          attribute\n        }).save();\n      }))]);\n    }\n    async handleWorkerTaskAttributes(worker, taskAttributesToAdd, _taskAttributesToRemove) {\n      // don't bother removing attributes we're going to add later\n      const taskAttributesToRemove = _taskAttributesToRemove.filter(ar => !taskAttributesToAdd.includes(ar));\n      const existingProjectAttributes = await this.store.simpleQuery('worker-task-attribute', {\n        worker: worker.id,\n        task: this.model.task.last.value.id\n      }).then(r => r.toArray());\n\n      // add and remove entity attribute from the worker\n      await this.store.findAll('worker-attribute');\n      await Promise.all([Promise.all(taskAttributesToRemove.map(async ea => {\n        const matchingExistingAttributes = existingProjectAttributes.filter(a => a.belongsTo('attribute').id() === ea);\n\n        // only remove the attribute if it exists\n        // this can be a singular check once the db constraints are fixed\n        if (matchingExistingAttributes.length) await Promise.all(matchingExistingAttributes.map(a => a.destroyRecord()));\n      })), Promise.all(taskAttributesToAdd.map(async ea => {\n        // don't add if it's already there\n        if (existingProjectAttributes.some(a => a.belongsTo('attribute').id() === ea)) return;\n\n        // fetch and check attribute is valid\n        const attribute = await this.store.peekRecord('worker-attribute', ea);\n        if (!attribute) throw new Error('Tried to create a non-existent attribute');\n\n        // create the relationship\n        await this.store.createRecord('worker-task-attribute', {\n          entity: this.sessionData.entity,\n          task: this.model.task.last.value,\n          worker,\n          attribute\n        }).save();\n      }))]);\n    }\n    get humanReadableContractType() {\n      const type = this.model.taskChangeset.last.value.contractType || this.model.task.last.value.effectiveContractType;\n      switch (type) {\n        case 'COST_PLUS':\n          return this.intl.t('shared.task.Cost plus');\n        case 'FIXED_PRICE':\n          return this.intl.t('shared.task.Fixed price');\n        default:\n          return type;\n      }\n    }\n    toggleContractTypeOverride(taskModel) {\n      const currentValue = taskModel.contractType;\n      const newValue = currentValue != null ? null : this.model.task.last.value.effectiveContractType;\n      taskModel.set('contractType', newValue);\n    }\n    togglePurchasesGlAccountOverride(taskModel) {\n      const currentValue = taskModel.purchasesGlAccount;\n      const effectivePurchasesGlAccount = this.model.task.lastSuccessful.value.defaultPurchasesGlAccount || this.model.glAccounts.lastSuccessful.value.toArray()[0] || undefined;\n      const newValue = currentValue !== null ? null : effectivePurchasesGlAccount;\n      taskModel.set('purchasesGlAccount', newValue);\n    }\n    toggleSalesGlAccountOverride(taskModel) {\n      const currentValue = taskModel.salesGlAccount;\n      const effectiveSalesGlAccount = this.model.task.lastSuccessful.value.defaultSalesGlAccount || this.model.glAccounts.lastSuccessful.value.toArray()[0] || undefined;\n      const newValue = currentValue !== null ? null : effectiveSalesGlAccount;\n      taskModel.set('salesGlAccount', newValue);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"accountingPlatform\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"isDeletingTask\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"isDependencyTransferModalOpen\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"dependencyTransferDestinationTask\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"openDeleteModal\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"openDeleteModal\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"selectDependencyTransferDestination\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"selectDependencyTransferDestination\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"closeDependencyTransferModal\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"closeDependencyTransferModal\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"toggleContractTypeOverride\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"toggleContractTypeOverride\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"togglePurchasesGlAccountOverride\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"togglePurchasesGlAccountOverride\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"toggleSalesGlAccountOverride\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"toggleSalesGlAccountOverride\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/company/forecast-breakdown\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/object\"], function (_exports, _asyncArrowRuntime, _controller, _service, _moment, _tracking, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"moment\",0,\"@glimmer/tracking\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"pdfExport\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor3, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'forecast-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['selectedDate', 'excludedProjectIds', 'status']);\n      _initializerDefineProperty(this, \"_selectedDate\", _descriptor6, this);\n      _initializerDefineProperty(this, \"_excludedProjectIds\", _descriptor7, this);\n      _initializerDefineProperty(this, \"_status\", _descriptor8, this);\n      _initializerDefineProperty(this, \"_controllerDate\", _descriptor9, this);\n      _initializerDefineProperty(this, \"_excludedProjects\", _descriptor0, this);\n      _initializerDefineProperty(this, \"_controllerStatus\", _descriptor1, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          }, this.sessionData.entity);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (saveResource) {\n          const thead = this.model.forecastTable.last.value.elements[0].axes.thead.map(i => i.value);\n          const tfoot = this.model.forecastTable.last.value.elements[0].axes.tfoot;\n          yield this.reportsDownload.downloadAsCsv(this.filename, thead, tfoot, this.title, this.model.forecastTable.last.value.elements[0].values, saveResource ? this.sessionData.entity : null);\n        }\n      }), null, \"downloadAsCsv\", null));\n    }\n    get selectedDate() {\n      return this._selectedDate;\n    }\n    set selectedDate(value) {\n      this._selectedDate = value;\n    }\n    get excludedProjectIds() {\n      return this._excludedProjectIds;\n    }\n    set excludedProjectIds(value) {\n      this._excludedProjectIds = value;\n    }\n    get status() {\n      return this._status;\n    }\n    set status(value) {\n      this._status = value;\n    }\n    get controllerDate() {\n      if (this._controllerDate) return this._controllerDate;\n      return this.selectedDate || (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    set controllerDate(value) {\n      this._controllerDate = value;\n    }\n    get excludedProjects() {\n      if (this._excludedProjects) return this._excludedProjects;\n      return this.excludedProjectIds.length ? this.model.projects.last.value.filter(p => this.excludedProjectIds.includes(p.id)) : [];\n    }\n    set excludedProjects(value) {\n      this._excludedProjects = value;\n    }\n    get controllerStatus() {\n      if (this._controllerStatus) return this._controllerStatus;\n      return this.status || 'OPEN';\n    }\n    set controllerStatus(value) {\n      this._controllerStatus = value;\n    }\n    get hasFilters() {\n      if (!this.selectedDate && !this.excludedProjectIds.length && !this.status) return false;\n      return this.status !== 'OPEN' || this.excludedProjectIds.length || this.selectedDate !== (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    removeFilter() {\n      this.controllerDate = (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n      this.controllerStatus = 'OPEN';\n      this.excludedProjects = [];\n      this.selectedDate = this.controllerDate;\n      this.status = this.controllerStatus;\n      this.excludedProjectIds = [];\n    }\n    applyFilter() {\n      this.selectedDate = this.controllerDate;\n      this.excludedProjectIds = this.excludedProjects.map(p => p.id);\n      this.status = this.controllerStatus;\n    }\n    filterStatus(value) {\n      this.controllerStatus = value;\n      if (value !== 'ALL') {\n        this.excludedProjects = this.excludedProjects.filter(project => project.status === value);\n      }\n    }\n    get filteredProjects() {\n      if (this.controllerStatus === 'ALL') return this.model.projects.last.value || [];\n      return (this.model.projects.last.value || []).filter(p => p.status === this.controllerStatus);\n    }\n    get isLoading() {\n      return this.model.forecastTable.isRunning || this.model.projects.isRunning;\n    }\n    onDateChange(e) {\n      this.controllerDate = e.target.value;\n    }\n    get title() {\n      return `${this.sessionData.entity.name} forecast report on ${(0, _moment.default)(this.controllerDate).format(this.intl.t('date.slashDayFirst'))}`;\n    }\n    get filename() {\n      const currentDate = new Date();\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_forecast-report`;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"pdfExport\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_excludedProjectIds\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"_status\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"_controllerDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"_excludedProjects\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"_controllerStatus\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"removeFilter\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"removeFilter\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"applyFilter\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"applyFilter\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"filterStatus\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"filterStatus\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onDateChange\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onDateChange\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/company/invoicing\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/object\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/runloop\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _object, _service, _moment, _tracking, _runloop, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/object\",0,\"@ember/service\",0,\"moment\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"csvExportOptions\", _descriptor5, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'invoice-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['selectedDate']);\n      _initializerDefineProperty(this, \"_selectedDate\", _descriptor6, this);\n      _initializerDefineProperty(this, \"_csvOptions\", _descriptor7, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            scale: 0.5\n          }, this.sessionData.entity);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (csvOptions, saveResource) {\n          const reportElements = this.model.invoiceTable.last.value.elements;\n          for (const option of csvOptions) {\n            if (!option.value) continue;\n            const element = reportElements[option.index - 1];\n            const tableName = element.name;\n            const values = element.values;\n            const thead = element.axes.thead?.map(i => i.value);\n            const tfoot = element.axes.tfoot;\n            yield this.reportsDownload.downloadAsCsv(`${this.filename}-${tableName}`, thead, tfoot, `${this.title}-${tableName}`, values, saveResource ? this.model.sessionData.entity : null);\n          }\n          this.csvExportOptions = false;\n        }\n      }), null, \"downloadAsCsv\", null));\n      _defineProperty(this, \"onDateChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSelectedDate, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onDateChange\", null));\n    }\n    get selectedDate() {\n      if (this._selectedDate) return this._selectedDate;\n      return (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    set selectedDate(value) {\n      this._selectedDate = value;\n      return value;\n    }\n    get csvOptions() {\n      if (this._csvOptions) return this._csvOptions;\n      return this.model.invoiceTable.last.value.elements.filter(e => e.elementType === 'TABLE').map(i => {\n        return {\n          name: i.name,\n          value: false,\n          index: i.index\n        };\n      });\n    }\n    set csvOptions(value) {\n      this._csvOptions = value;\n      return value;\n    }\n    get isExportDisabled() {\n      return this.downloadAsCsv.isRunning || !this.csvOptions.some(item => item.value);\n    }\n    toggleCsvOption(optionIndex, event) {\n      this.csvOptions = this.csvOptions.map((option, index) => {\n        if (index !== optionIndex) return option;\n        return {\n          ...option,\n          value: event.target.checked\n        };\n      });\n    }\n    get filename() {\n      const currentDate = new Date();\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_invoicing-report`;\n    }\n    get title() {\n      return `${this.sessionData.entity.name} invoicing report on ${(0, _moment.default)(new Date(this.selectedDate)).format(this.intl.t('date.slashDayFirst'))}`;\n    }\n    get isLoading() {\n      return this.model.invoiceTable.isRunning;\n    }\n    updateSelectedDate(value) {\n      this.selectedDate = value;\n    }\n    closeCSVExport() {\n      this.csvExportOptions = false;\n      this.csvOptions = this.csvOptions.map(i => {\n        return {\n          ...i,\n          value: false\n        };\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"csvExportOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_csvOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"toggleCsvOption\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"toggleCsvOption\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"closeCSVExport\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"closeCSVExport\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/company/labour-hours\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/runloop\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _service, _moment, _tracking, _runloop, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"moment\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"pdfExport\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor3, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'labour-hours-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['status', 'selectedDate']);\n      _defineProperty(this, \"status\", 'OPEN');\n      _initializerDefineProperty(this, \"_selectedDate\", _descriptor6, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          }, this.sessionData.entity);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"onDateChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSelectedDate, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onDateChange\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (csvOptions, saveResource) {\n          const thead = this.model.entityLevelReport.last.value.elements[2].axes.thead.map(i => i.value);\n          const tfoot = this.model.entityLevelReport.last.value.elements[2].axes.tfoot;\n          yield this.reportsDownload.downloadAsCsv(this.filename, thead, tfoot, this.title, this.model.entityLevelReport.last.value.elements[2].values, saveResource ? this.sessionData.entity : null);\n        }\n      }), null, \"downloadAsCsv\", null));\n    }\n    get showDownloadButton() {\n      return !this.model.basePath?.includes('embed');\n    }\n    get selectedDate() {\n      if (this._selectedDate) return this._selectedDate;\n      return (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    set selectedDate(value) {\n      this._selectedDate = value;\n      return value;\n    }\n    get title() {\n      return `${this.sessionData.entity.name} labour hours report on ${(0, _moment.default)(this.selectedDate).format(this.intl.t('date.slashDayFirst'))}`;\n    }\n    get filename() {\n      const currentDate = new Date();\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_labour-hours-report`;\n    }\n    get isLoading() {\n      return this.model.entityLevelReport.isRunning;\n    }\n    updateSelectedDate(value) {\n      this.selectedDate = value;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"pdfExport\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/company/notes\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/object\"], function (_exports, _asyncArrowRuntime, _controller, _service, _moment, _tracking, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"moment\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor3, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'cost-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['startDate', 'endDate', 'filterByDate', 'projectIds', 'workerIds', 'invoiceId']);\n      _initializerDefineProperty(this, \"invoiceId\", _descriptor6, this);\n      _initializerDefineProperty(this, \"filterByDate\", _descriptor7, this);\n      _initializerDefineProperty(this, \"workerIds\", _descriptor8, this);\n      _initializerDefineProperty(this, \"startDate\", _descriptor9, this);\n      _initializerDefineProperty(this, \"endDate\", _descriptor0, this);\n      _initializerDefineProperty(this, \"projectIds\", _descriptor1, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: false,\n            scale: 0.75\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: false,\n            scale: 0.75\n          }, this.sessionData.entity);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (saveResource) {\n          const thead = ['date', 'worker name', 'project name', 'task name', 'hours', 'note', 'note type'];\n          const tbody = [];\n          if (this.model.noteReport.last?.value?.elements?.[0]?.values) {\n            this.model.noteReport.last.value.elements[0].values.forEach(_row => {\n              let row = [];\n              _row.forEach((cell, index) => {\n                const attachmentsIndex = 4;\n                const linkIndex = 6;\n                const taskProjectNameIndex = 2;\n                if ([attachmentsIndex, linkIndex].includes(index)) return;\n                if (index === taskProjectNameIndex) {\n                  const [projectName, taskName, duration] = cell;\n                  row.push({\n                    format: 'TEXT',\n                    value: projectName.value\n                  });\n                  row.push({\n                    format: 'TEXT',\n                    value: taskName.value\n                  });\n                  row.push({\n                    format: 'TEXT',\n                    value: duration.value\n                  });\n                  return;\n                }\n                row.push(cell);\n              });\n              tbody.push(row);\n            });\n          }\n          yield this.reportsDownload.downloadAsCsv(this.filename, thead, undefined, this.title, tbody, saveResource ? this.sessionData.entity : null);\n        }\n      }), null, \"downloadAsCsv\", null));\n    }\n    get showDownloadButton() {\n      return !this.model.basePath?.includes('embed');\n    }\n    get selectedWorkers() {\n      if (!this.workerIds) return null;\n      return (this.model.getWorkers.last?.value?.toArray() || []).filter(w => this.workerIds.includes(w.id));\n    }\n    set selectedWorkers(value) {\n      if (!value?.length) {\n        this.workerIds = null;\n        return;\n      }\n      this.workerIds = value.map(w => w.id);\n    }\n    get selectedProjects() {\n      if (!this.projectIds) return null;\n      return (this.model.getProjects.last?.value?.toArray() || []).filter(p => this.projectIds.includes(p.id));\n    }\n    set selectedProjects(value) {\n      if (!value?.length) {\n        this.projectIds = null;\n        return;\n      }\n      this.projectIds = value.map(p => p.id);\n    }\n    setFilterByDate(e) {\n      this.filterByDate = e.target.checked;\n    }\n    setDateRange(dates) {\n      const {\n        startDate,\n        endDate\n      } = dates;\n      if (startDate) this.startDate = (0, _moment.default)(startDate).format('YYYY-MM-DD');\n      if (endDate) this.endDate = (0, _moment.default)(endDate).format('YYYY-MM-DD');\n    }\n    get dateRangeSelectorEndDate() {\n      return (0, _moment.default)(this.endDate).toDate();\n    }\n    get dateRangeSelectorStartDate() {\n      return (0, _moment.default)(this.startDate).toDate();\n    }\n    get title() {\n      if (this.filterByDate) {\n        return `Notes report between ${(0, _moment.default)(this.startDate).format(this.intl.t('date.slashDayFirst'))} - ${(0, _moment.default)(this.endDate).format(this.intl.t('date.slashDayFirst'))}`;\n      }\n      return 'Notes report';\n    }\n    get filename() {\n      const currentDate = new Date();\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0');\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_notes-report`;\n    }\n    get isLoading() {\n      return this.model.noteReport.isRunning || this.model.getProjects.isRunning || this.model.getWorkers.isRunning;\n    }\n    removeAllProjectFilters() {\n      this.projectIds = null;\n      this.invoiceId = null;\n    }\n    removeAllWorkerFilters() {\n      this.workerIds = null;\n      this.invoiceId = null;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"invoiceId\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"filterByDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"workerIds\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"startDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return (0, _moment.default)().startOf('isoWeek').subtract(1, 'weeks').format('YYYY-MM-DD');\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"endDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return (0, _moment.default)().endOf('isoWeek').format('YYYY-MM-DD');\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"projectIds\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"setFilterByDate\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setFilterByDate\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setDateRange\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setDateRange\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"removeAllProjectFilters\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"removeAllProjectFilters\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"removeAllWorkerFilters\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"removeAllWorkerFilters\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/company/position\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/runloop\", \"portal/config/environment\", \"@ember/object\"], function (_exports, _asyncArrowRuntime, _controller, _service, _moment, _tracking, _runloop, _environment, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"moment\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"portal/config/environment\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"pdfExport\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor3, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'position-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['status', 'selectedDate']);\n      _defineProperty(this, \"status\", 'OPEN');\n      _initializerDefineProperty(this, \"csvExportOptions\", _descriptor6, this);\n      _initializerDefineProperty(this, \"_selectedDate\", _descriptor7, this);\n      _initializerDefineProperty(this, \"_csvOptions\", _descriptor8, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          }, this.sessionData.entity);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"onDateChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSelectedDate, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onDateChange\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (csvOptions, saveResource) {\n          const reportElements = this.model.entityLevelReport.last.value.elements;\n          for (const option of csvOptions) {\n            if (!option.value) continue;\n            const element = reportElements[option.index - 1];\n            const tableName = element.name;\n            const values = element.values;\n            const thead = element.axes.thead ? element.axes.thead.map(i => i.value) : undefined;\n            if (option.name === this.intl.t('common.Labour hours') || option.name === this.intl.t('shared.reports.Financial breakdown')) {\n              yield this.reportsDownload.downloadAsCsv(`${this.filename}-${tableName}`, thead, undefined, `${this.title}-${tableName}`, values, saveResource ? this.sessionData.entity : null);\n            } else {\n              const tfoot = element.axes.tfoot;\n              yield this.reportsDownload.downloadAsCsv(`${this.filename}-${tableName}`, thead, tfoot, `${this.title}-${tableName}`, values, saveResource ? this.sessionData.entity : null);\n            }\n          }\n          this.csvExportOptions = false;\n        }\n      }), null, \"downloadAsCsv\", null));\n    }\n    get showDownloadButton() {\n      return !this.model.basePath?.includes('embed');\n    }\n    get selectedDate() {\n      if (this._selectedDate) return this._selectedDate;\n      return (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    set selectedDate(value) {\n      this._selectedDate = value;\n      return value;\n    }\n    get csvOptions() {\n      if (this._csvOptions) return this._csvOptions;\n      return this.model.entityLevelReport.last.value.elements.filter(e => e.name === this.intl.t('shared.reports.Financial breakdown') || e.name === this.intl.t('common.Projects') || e.name === this.intl.t('common.Labour hours')).map(i => {\n        return {\n          name: i.name,\n          value: false,\n          index: i.index\n        };\n      });\n    }\n    set csvOptions(value) {\n      this._csvOptions = value;\n      return value;\n    }\n    get isExportDisabled() {\n      return this.downloadAsCsv.isRunning || !this.csvOptions.some(item => item.value);\n    }\n    toggleCsvOption(optionIndex, event) {\n      this.csvOptions = this.csvOptions.map((option, index) => {\n        if (index !== optionIndex) return option;\n        return {\n          ...option,\n          value: event.target.checked\n        };\n      });\n    }\n    get title() {\n      return `${this.sessionData.entity.name} position report on ${(0, _moment.default)(this.selectedDate).format(this.intl.t('date.slashDayFirst'))}`;\n    }\n    get filename() {\n      const currentDate = new Date();\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_position-report`;\n    }\n    get isLoading() {\n      return this.model.entityLevelReport.isRunning;\n    }\n    updateSelectedDate(value) {\n      this.selectedDate = value;\n    }\n    closeCSVExport() {\n      this.csvExportOptions = false;\n      this.csvOptions = this.csvOptions.map(i => {\n        return {\n          ...i,\n          value: false\n        };\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"pdfExport\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"csvExportOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"_csvOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"toggleCsvOption\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"toggleCsvOption\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"closeCSVExport\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"closeCSVExport\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/company/profit-margins\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/object\"], function (_exports, _asyncArrowRuntime, _controller, _service, _moment, _tracking, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"moment\",0,\"@glimmer/tracking\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"pdfExport\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor3, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'profit-margins-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['selectedDate', 'excludedProjectIds', 'status']);\n      _initializerDefineProperty(this, \"_selectedDate\", _descriptor6, this);\n      _initializerDefineProperty(this, \"_excludedProjectIds\", _descriptor7, this);\n      _initializerDefineProperty(this, \"_status\", _descriptor8, this);\n      _initializerDefineProperty(this, \"_controllerDate\", _descriptor9, this);\n      _initializerDefineProperty(this, \"_excludedProjects\", _descriptor0, this);\n      _initializerDefineProperty(this, \"_controllerStatus\", _descriptor1, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          }, this.sessionData.entity);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (saveResource) {\n          const thead = this.model.profitMarginsTable.last.value.elements[0].axes.thead.map(i => i.value);\n          const tfoot = this.model.profitMarginsTable.last.value.elements[0].axes.tfoot;\n          yield this.reportsDownload.downloadAsCsv(this.filename, thead, tfoot, this.title, this.model.profitMarginsTable.last.value.elements[0].values, false, saveResource ? this.sessionData.entity : null);\n        }\n      }), null, \"downloadAsCsv\", null));\n    }\n    get showDownloadButton() {\n      return !this.model.basePath?.includes('embed');\n    }\n    get selectedDate() {\n      return this._selectedDate;\n    }\n    set selectedDate(value) {\n      this._selectedDate = value;\n    }\n    get excludedProjectIds() {\n      return this._excludedProjectIds;\n    }\n    set excludedProjectIds(value) {\n      this._excludedProjectIds = value;\n    }\n    get status() {\n      return this._status;\n    }\n    set status(value) {\n      this._status = value;\n    }\n    get controllerDate() {\n      if (this._controllerDate) return this._controllerDate;\n      return this.selectedDate || (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    set controllerDate(value) {\n      this._controllerDate = value;\n    }\n    get excludedProjects() {\n      if (this._excludedProjects) return this._excludedProjects;\n      return this.excludedProjectIds.length ? this.model.projects.last.value.filter(p => this.excludedProjectIds.includes(p.id)) : [];\n    }\n    set excludedProjects(value) {\n      this._excludedProjects = value;\n    }\n    get controllerStatus() {\n      if (this._controllerStatus) return this._controllerStatus;\n      return this.status || 'OPEN';\n    }\n    set controllerStatus(value) {\n      this._controllerStatus = value;\n    }\n    get hasFilters() {\n      if (!this.selectedDate && !this.excludedProjectIds.length && !this.status) return false;\n      return this.status !== 'OPEN' || this.excludedProjectIds.length || this.selectedDate !== (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    removeFilter() {\n      this.controllerDate = (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n      this.controllerStatus = 'OPEN';\n      this.excludedProjects = [];\n      this.selectedDate = this.controllerDate;\n      this.status = this.controllerStatus;\n      this.excludedProjectIds = [];\n    }\n    applyFilter() {\n      this.selectedDate = this.controllerDate;\n      this.excludedProjectIds = this.excludedProjects.map(p => p.id);\n      this.status = this.controllerStatus;\n    }\n    filterStatus(value) {\n      this.controllerStatus = value;\n      if (value !== 'ALL') {\n        this.excludedProjects = this.excludedProjects.filter(project => project.status === value);\n      }\n    }\n    get filteredProjects() {\n      if (this.controllerStatus === 'ALL') return this.model.projects.last.value || [];\n      return (this.model.projects.last.value || []).filter(p => p.status === this.controllerStatus);\n    }\n    get isLoading() {\n      return this.model.profitMarginsTable.isRunning || this.model.projects.isRunning;\n    }\n    get title() {\n      return `${this.sessionData.entity.name} profit margins report on ${(0, _moment.default)(this._selectedDate).format(this.intl.t('date.slashDayFirst'))}`;\n    }\n    get filename() {\n      const currentDate = new Date();\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_profit-margins-report`;\n    }\n    onDateChange(e) {\n      this.controllerDate = e.target.value;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"pdfExport\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_excludedProjectIds\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"_status\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"_controllerDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"_excludedProjects\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"_controllerStatus\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"removeFilter\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"removeFilter\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"applyFilter\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"applyFilter\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"filterStatus\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"filterStatus\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onDateChange\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onDateChange\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/company/wip\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/object\"], function (_exports, _asyncArrowRuntime, _controller, _service, _moment, _tracking, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"moment\",0,\"@glimmer/tracking\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"pdfExport\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor3, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'wip-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['selectedDate', 'excludedProjectIds', 'status']);\n      _initializerDefineProperty(this, \"_selectedDate\", _descriptor6, this);\n      _initializerDefineProperty(this, \"_excludedProjectIds\", _descriptor7, this);\n      _initializerDefineProperty(this, \"_status\", _descriptor8, this);\n      _initializerDefineProperty(this, \"_controllerDate\", _descriptor9, this);\n      _initializerDefineProperty(this, \"_excludedProjects\", _descriptor0, this);\n      _initializerDefineProperty(this, \"_controllerStatus\", _descriptor1, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          }, this.sessionData.entity);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (saveResource) {\n          const thead = this.model.wipReportTable.last.value.elements[0].axes.thead.map(i => i.value);\n          const tfoot = this.model.wipReportTable.last.value.elements[0].axes.tfoot;\n          yield this.reportsDownload.downloadAsCsv(this.filename, thead, tfoot, this.title, this.model.wipReportTable.last.value.elements[0].values, saveResource ? this.sessionData.entity : null);\n        }\n      }), null, \"downloadAsCsv\", null));\n    }\n    get selectedDate() {\n      return this._selectedDate;\n    }\n    set selectedDate(value) {\n      this._selectedDate = value;\n    }\n    get excludedProjectIds() {\n      return this._excludedProjectIds;\n    }\n    set excludedProjectIds(value) {\n      this._excludedProjectIds = value;\n    }\n    get status() {\n      return this._status;\n    }\n    set status(value) {\n      this._status = value;\n    }\n    get controllerDate() {\n      if (this._controllerDate) return this._controllerDate;\n      return this.selectedDate || (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    set controllerDate(value) {\n      this._controllerDate = value;\n    }\n    get excludedProjects() {\n      if (this._excludedProjects) return this._excludedProjects;\n      return this.excludedProjectIds.length ? this.model.projects.last.value.filter(p => this.excludedProjectIds.includes(p.id)) : [];\n    }\n    set excludedProjects(value) {\n      this._excludedProjects = value;\n    }\n    get controllerStatus() {\n      if (this._controllerStatus) return this._controllerStatus;\n      return this.status || 'OPEN';\n    }\n    set controllerStatus(value) {\n      this._controllerStatus = value;\n    }\n    get hasFilters() {\n      if (!this.selectedDate && !this.excludedProjectIds.length && !this.status) return false;\n      return this.status !== 'OPEN' || this.excludedProjectIds.length || this.selectedDate !== (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    removeFilter() {\n      this.controllerDate = (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n      this.controllerStatus = 'OPEN';\n      this.excludedProjects = [];\n      this.selectedDate = this.controllerDate;\n      this.status = this.controllerStatus;\n      this.excludedProjectIds = [];\n    }\n    applyFilter() {\n      this.selectedDate = this.controllerDate;\n      this.excludedProjectIds = this.excludedProjects.map(p => p.id);\n      this.status = this.controllerStatus;\n    }\n    filterStatus(value) {\n      this.controllerStatus = value;\n      if (value !== 'ALL') {\n        this.excludedProjects = this.excludedProjects.filter(project => project.status === value);\n      }\n    }\n    get filteredProjects() {\n      const hasValueProjects = this.model.projects.last.value.filter(project => project.belongsTo('currentBudgetVersion').id() || project.belongsTo('currentQuoteVersion').id());\n      if (this.controllerStatus === 'ALL') return hasValueProjects || [];\n      return (hasValueProjects || []).filter(p => p.status === this.controllerStatus);\n    }\n    get isLoading() {\n      return this.model.wipReportTable.isRunning || this.model.projects.isRunning;\n    }\n    onDateChange(e) {\n      this.controllerDate = e.target.value;\n    }\n    get title() {\n      return `${this.sessionData.entity.name} work in progress for ${(0, _moment.default)(this.balanceDate).format(this.intl.t('date.slashDayFirst'))}`;\n    }\n    get filename() {\n      const currentDate = new Date();\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_wip-report`;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"pdfExport\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_excludedProjectIds\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"_status\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"_controllerDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"_excludedProjects\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"_controllerStatus\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"removeFilter\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"removeFilter\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"applyFilter\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"applyFilter\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"filterStatus\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"filterStatus\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onDateChange\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onDateChange\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/projects/index\", [\"exports\", \"@ember/controller\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\", \"portal/utils/platform\"], function (_exports, _controller, _tracking, _object, _service, _platform) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/service\",0,\"portal/utils/platform\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('model.projectsData.last.value.elements', 'searchString'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor2, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor3, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor4, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor5, this);\n      _defineProperty(this, \"queryParams\", ['status']);\n      _defineProperty(this, \"status\", 'OPEN');\n      _initializerDefineProperty(this, \"searchString\", _descriptor6, this);\n    }\n    get projectsData() {\n      const values = this.model.projectsData.last.value.elements[0].values.filter(row => {\n        const matchString = (row[0].value || '').toLowerCase();\n        return matchString.includes(this.searchString.toLowerCase());\n      });\n      return {\n        ...this.model.projectsData.last.value.elements[0],\n        values\n      };\n    }\n    get attentionSafetyLogoSrc() {\n      return _platform.BRANDING.ATTENTION_SAFETY.logo;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"projectsData\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"projectsData\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/projects/project\", [\"exports\", \"@ember/controller\"], function (_exports, _controller) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\"eaimeta@70e063a35619d71f\n  class _default extends _controller.default {}\n  _exports.default = _default;\n});","define(\"portal/controllers/entity/builda-price/reports/projects/project/access\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/runloop\", \"@ember/object\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _service, _moment, _tracking, _runloop, _object, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"moment\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"@ember/object\",0,\"portal/config/environment\",0,\"ember-concurrency\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor3, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _initializerDefineProperty(this, \"filterByDate\", _descriptor6, this);\n      _initializerDefineProperty(this, \"workerIds\", _descriptor7, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'cost-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['startDate', 'endDate', 'filterByDate', 'workerIds']);\n      _initializerDefineProperty(this, \"endDate\", _descriptor8, this);\n      _initializerDefineProperty(this, \"startDate\", _descriptor9, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: false,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: false,\n            scale: 0.5\n          }, this.model.project.last.value);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (saveResource) {\n          const thead = ['Name', 'Entry time', 'Exit time', 'Time on site'];\n          const tbody = this.model.report.last.value.elements[1].values;\n          this.reportsDownload.downloadAsCsv(this.filename, thead, undefined, this.title, tbody, saveResource ? this.model.project.last.value : null);\n        }\n      }), null, \"downloadAsCsv\", null));\n      _defineProperty(this, \"onDateChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSelectedDate, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onDateChange\", null));\n    }\n    get selectedWorkers() {\n      if (!this.workerIds) return [];\n      const workerIds = this.workerIds.split(',');\n      return (this.model.workers.last?.value?.toArray() || []).filter(worker => workerIds.includes(worker.id));\n    }\n    set selectedWorkers(workers) {\n      this.workerIds = workers.length ? workers.map(worker => worker.id).join(',') : null;\n    }\n    removeAllWorkerFilters() {\n      this.workerIds = null;\n    }\n    setDateRange(dates) {\n      const {\n        startDate,\n        endDate\n      } = dates;\n      if (startDate) this.startDate = (0, _moment.default)(startDate).format('YYYY-MM-DD');\n      if (endDate) this.endDate = (0, _moment.default)(endDate).format('YYYY-MM-DD');\n    }\n    get dateRangeSelectorEndDate() {\n      return (0, _moment.default)(this.endDate).toDate();\n    }\n    get dateRangeSelectorStartDate() {\n      return (0, _moment.default)(this.startDate).toDate();\n    }\n    get title() {\n      let title = `${this.model.project.last.value.name} access report`;\n      if (this.filterByDate) {\n        title += ` between ${(0, _moment.default)(this.startDate).format(this.intl.t('date.slashDayFirst'))} - ${(0, _moment.default)(this.endDate).format(this.intl.t('date.slashDayFirst'))}`;\n      }\n      return title;\n    }\n    get filename() {\n      const currentDate = new Date();\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_access-report`;\n    }\n    get isLoading() {\n      return this.model.report.isRunning || this.model.project.isRunning || this.model.workers.isRunning;\n    }\n    updateSelectedDate(value) {\n      this.selectedDate = value;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"filterByDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"workerIds\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"removeAllWorkerFilters\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"removeAllWorkerFilters\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setDateRange\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setDateRange\"), _class2.prototype), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"endDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return (0, _moment.default)().endOf('isoWeek').format('YYYY-MM-DD');\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"startDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return (0, _moment.default)().startOf('isoWeek').subtract(1, 'weeks').format('YYYY-MM-DD');\n    }\n  }), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/projects/project/budget/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/runloop\", \"@ember/object\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _service, _moment, _tracking, _runloop, _object, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"moment\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"@ember/object\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'budget-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['selectedDate']);\n      _initializerDefineProperty(this, \"csvExportOptions\", _descriptor5, this);\n      _initializerDefineProperty(this, \"_selectedDate\", _descriptor6, this);\n      _initializerDefineProperty(this, \"_csvOptions\", _descriptor7, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            scale: 0.5\n          }, this.model.project.last.value);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (csvOptions, saveResource) {\n          const reportElements = this.model.budgetTable.last.value.elements;\n          for (const option of csvOptions) {\n            if (!option.value) continue;\n            const element = reportElements[option.index - 1];\n            const tableName = element.name;\n            const values = element.values;\n            const thead = element.axes.thead.map(i => i.value);\n            const tfoot = element.axes.tfoot;\n            yield this.reportsDownload.downloadAsCsv(`${this.filename}-${tableName}`, thead, tfoot, `${this.title}-${tableName}`, values, saveResource ? this.model.project.last.value : null);\n          }\n          this.csvExportOptions = false;\n        }\n      }), null, \"downloadAsCsv\", null));\n      _defineProperty(this, \"onDateChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSelectedDate, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onDateChange\", null));\n    }\n    get csvOptions() {\n      if (this._csvOptions) return this._csvOptions;\n      return this.model.budgetTable.last.value.elements.filter(e => e.elementType === 'TABLE').map(i => {\n        return {\n          name: i.name,\n          value: false,\n          index: i.index\n        };\n      });\n    }\n    set csvOptions(value) {\n      this._csvOptions = value;\n      return value;\n    }\n    get isExportDisabled() {\n      return this.downloadAsCsv.isRunning || !this.csvOptions.some(item => item.value);\n    }\n    toggleCsvOption(optionIndex, event) {\n      this.csvOptions = this.csvOptions.map((option, index) => {\n        if (index !== optionIndex) return option;\n        return {\n          ...option,\n          value: event.target.checked\n        };\n      });\n    }\n    get selectedDate() {\n      if (this._selectedDate) return this._selectedDate;\n      return (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    set selectedDate(value) {\n      this._selectedDate = value;\n      return value;\n    }\n    get filename() {\n      const currentDate = new Date();\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_budget-hours-report`;\n    }\n    get title() {\n      return `${this.model.project.last.value.name} budget report on ${(0, _moment.default)(new Date(this.selectedDate)).format(this.intl.t('date.slashDayFirst'))}`;\n    }\n    get isLoading() {\n      return this.model.budgetTable.isRunning || this.model.project.isRunning;\n    }\n    updateSelectedDate(value) {\n      this.selectedDate = value;\n    }\n    closeCSVExport() {\n      this.csvExportOptions = false;\n      this.csvOptions = this.csvOptions.map(i => {\n        return {\n          ...i,\n          value: false\n        };\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"csvExportOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_csvOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"toggleCsvOption\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"toggleCsvOption\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"closeCSVExport\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"closeCSVExport\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/projects/project/budget/task/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/object\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/runloop\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _object, _service, _moment, _tracking, _runloop, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"ember-concurrency\",0,\"@ember/object\",0,\"@ember/service\",0,\"moment\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('model.basePath', 'model.task.last.value.{id,name}'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'budget-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['selectedDate']);\n      _initializerDefineProperty(this, \"_selectedDate\", _descriptor5, this);\n      _initializerDefineProperty(this, \"csvExportOptions\", _descriptor6, this);\n      _initializerDefineProperty(this, \"_csvOptions\", _descriptor7, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            scale: 0.5,\n            landscape: true\n          }, this.model.task.last.value);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (csvOptions, saveResource) {\n          const reportElements = this.model.budgetTable.last.value.elements;\n          for (const option of csvOptions) {\n            if (!option.value) continue;\n            const element = reportElements[option.index - 1];\n            const tableName = element.name;\n            const values = element.values;\n            const thead = element.axes.thead.map(i => i.value);\n            const tfoot = element.axes.tfoot;\n            yield this.reportsDownload.downloadAsCsv(`${this.filename}-${tableName}`, thead, tfoot, `${this.title}-${tableName}`, values, saveResource ? this.model.task.last.value : null);\n          }\n          this.csvExportOptions = false;\n        }\n      }), null, \"downloadAsCsv\", null));\n      _defineProperty(this, \"onDateChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSelectedDate, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onDateChange\", null));\n    }\n    get selectedDate() {\n      if (this._selectedDate) return this._selectedDate;\n      return (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    get csvOptions() {\n      if (this._csvOptions) return this._csvOptions;\n      return this.model.budgetTable.last.value.elements.filter(e => e.elementType === 'TABLE').map(i => {\n        return {\n          name: i.name,\n          value: false,\n          index: i.index\n        };\n      });\n    }\n    set csvOptions(value) {\n      this._csvOptions = value;\n      return value;\n    }\n    get isExportDisabled() {\n      return this.downloadAsCsv.isRunning || !this.csvOptions.some(item => item.value);\n    }\n    toggleCsvOption(optionIndex, event) {\n      this.csvOptions = this.csvOptions.map((option, index) => {\n        if (index !== optionIndex) return option;\n        return {\n          ...option,\n          value: event.target.checked\n        };\n      });\n    }\n    set selectedDate(value) {\n      this._selectedDate = value;\n      return value;\n    }\n    get title() {\n      return `${this.model.task.last.value.name} budget report on ${(0, _moment.default)(this.selectedDate).format(this.intl.t('date.slashDayFirst'))}`;\n    }\n    get filename() {\n      const currentDate = new Date(this.selectedDate);\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_budget-report`;\n    }\n    get crumbStack() {\n      const projectPath = this.model.basePath.split('.task')[0];\n      const basePath = this.model.basePath;\n      const paths = [{\n        route: projectPath,\n        model: this.model.task.last.value.belongsTo('project').id(),\n        pageTitle: this.model.task.last.value.belongsTo('project').value()?.name\n      }];\n      const taskList = [];\n      (function generatePathsFromTask(task) {\n        if (task.belongsTo('parent').value()) {\n          taskList.unshift({\n            route: basePath,\n            model: task.belongsTo('parent').id(),\n            pageTitle: task.belongsTo('parent').value()?.name\n          });\n          generatePathsFromTask(task.belongsTo('parent').value());\n        }\n      }).bind(this)(this.model.task.last.value);\n      taskList.push({\n        route: this.model.basePath,\n        model: this.model.task.last.value.id,\n        pageTitle: this.model.task.last.value.name\n      });\n      return paths.concat(taskList);\n    }\n    get isLoading() {\n      return this.model.budgetTable.isRunning || this.model.task.isRunning || this.model.parentTasks.isRunning;\n    }\n    updateSelectedDate(value) {\n      this.selectedDate = value;\n    }\n    closeCSVExport() {\n      this.csvExportOptions = false;\n      this.csvOptions = this.csvOptions.map(i => {\n        return {\n          ...i,\n          value: false\n        };\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"csvExportOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_csvOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"toggleCsvOption\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"toggleCsvOption\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"crumbStack\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"crumbStack\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"closeCSVExport\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"closeCSVExport\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/projects/project/chargeup/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/runloop\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _service, _moment, _tracking, _runloop, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"moment\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'chargeup-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['selectedDate']);\n      _initializerDefineProperty(this, \"_selectedDate\", _descriptor5, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            scale: 0.5\n          }, this.model.project.last.value);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (saveResource) {\n          const thead = this.model.chargeupReport.last.value.elements[2].axes.thead.map(i => i.value);\n          const tfoot = this.model.chargeupReport.last.value.elements[2].axes.tfoot;\n          yield this.reportsDownload.downloadAsCsv(this.filename, thead, tfoot, this.title, this.model.chargeupReport.last.value.elements[2].values, saveResource ? this.model.project.last.value : null);\n        }\n      }), null, \"downloadAsCsv\", null));\n      _defineProperty(this, \"onDateChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSelectedDate, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onDateChange\", null));\n    }\n    get selectedDate() {\n      if (this._selectedDate) return this._selectedDate;\n      return (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    set selectedDate(value) {\n      this._selectedDate = value;\n      return value;\n    }\n    get filename() {\n      const currentDate = new Date();\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_chargeup-report`;\n    }\n    get title() {\n      return `${this.model.project.last.value.name} chargeup report on ${(0, _moment.default)(new Date(this.selectedDate)).format(this.intl.t('date.slashDayFirst'))}`;\n    }\n    get isLoading() {\n      return this.model.chargeupReport.isRunning || this.model.project.isRunning;\n    }\n    updateSelectedDate(value) {\n      this.selectedDate = value;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/projects/project/chargeup/task/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/object\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/runloop\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _object, _service, _moment, _tracking, _runloop, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/object\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"moment\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('model.basePath', 'model.task.last.value.{id,name}'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"csvExportOptions\", _descriptor5, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'chargeup-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['selectedDate']);\n      _initializerDefineProperty(this, \"_selectedDate\", _descriptor6, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            scale: 0.5,\n            landscape: true\n          }, this.model.task.last.value);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (saveResource) {\n          const thead = this.model.chargeupReport.last.value.elements[2].axes.thead.map(i => i.value);\n          const tfoot = this.model.chargeupReport.last.value.elements[2].axes.tfoot;\n          yield this.reportsDownload.downloadAsCsv(this.filename, thead, tfoot, this.title, this.model.chargeupReport.last.value.elements[2].values, saveResource ? this.model.task.last.value : null);\n        }\n      }), null, \"downloadAsCsv\", null));\n      _defineProperty(this, \"onDateChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSelectedDate, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onDateChange\", null));\n    }\n    get selectedDate() {\n      if (this._selectedDate) return this._selectedDate;\n      return (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    set selectedDate(value) {\n      this._selectedDate = value;\n      return value;\n    }\n    get csvOptions() {\n      return this.model.quoteTable.last.value.elements.filter(e => e.elementType === 'TABLE').map(i => {\n        return {\n          name: i.name,\n          value: false,\n          index: i.index\n        };\n      });\n    }\n    get title() {\n      return `${this.model.task.last.value.name} chargeup report on ${(0, _moment.default)(this.selectedDate).format(this.intl.t('date.slashDayFirst'))}`;\n    }\n    get filename() {\n      const currentDate = new Date(this.selectedDate);\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_chargeup-report`;\n    }\n    get crumbStack() {\n      const projectPath = this.model.basePath.split('.task')[0];\n      const basePath = this.model.basePath;\n      const paths = [{\n        route: projectPath,\n        model: this.model.task.last.value.belongsTo('project').id(),\n        pageTitle: this.model.task.last.value.belongsTo('project').value()?.name\n      }];\n      const taskList = [];\n      (function generatePathsFromTask(task) {\n        if (task.belongsTo('parent').value()) {\n          taskList.unshift({\n            route: basePath,\n            model: task.belongsTo('parent').id(),\n            pageTitle: task.belongsTo('parent').value()?.name\n          });\n          generatePathsFromTask(task.belongsTo('parent').value());\n        }\n      }).bind(this)(this.model.task.last.value);\n      taskList.push({\n        route: this.model.basePath,\n        model: this.model.task.last.value.id,\n        pageTitle: this.model.task.last.value.name\n      });\n      return paths.concat(taskList);\n    }\n    get isLoading() {\n      return this.model.chargeupReport.isRunning || this.model.task.isRunning || this.model.parentTasks.isRunning;\n    }\n    updateSelectedDate(value) {\n      this.selectedDate = value;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"csvExportOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"crumbStack\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"crumbStack\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/projects/project/cost-to-complete/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/runloop\", \"@ember/object\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _service, _moment, _tracking, _runloop, _object, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"moment\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"@ember/object\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'client-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['selectedDate']);\n      _initializerDefineProperty(this, \"csvExportOptions\", _descriptor5, this);\n      _initializerDefineProperty(this, \"_selectedDate\", _descriptor6, this);\n      _initializerDefineProperty(this, \"_csvOptions\", _descriptor7, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            scale: 0.5,\n            landscape: true\n          }, this.model.project.last.value);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (csvOptions, saveResource) {\n          const reportElements = this.model.projectLevelReport.last.value.elements;\n          for (const option of csvOptions) {\n            if (!option.value) continue;\n            const element = reportElements[option.index - 1];\n            const tableName = element.name;\n            const values = element.values;\n            const thead = element.axes.thead ? element.axes.thead.map(i => i.value) : undefined;\n            if (option.name === this.intl.t('common.Tasks')) {\n              const tfoot = element.axes.tfoot;\n              yield this.reportsDownload.downloadAsCsv(`${this.filename}-${tableName}`, thead, tfoot, `${this.title}-${tableName}`, values, saveResource ? this.model.project.last.value : null);\n            }\n            if (option.name === this.intl.t('common.Summary')) {\n              yield this.reportsDownload.downloadAsCsv(`${this.filename}-${tableName}`, thead, undefined, `${this.title}-${tableName}`, values, saveResource ? this.model.project.last.value : null);\n            }\n          }\n          this.csvExportOptions = false;\n        }\n      }), null, \"downloadAsCsv\", null));\n      _defineProperty(this, \"onDateChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSelectedDate, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onDateChange\", null));\n    }\n    get selectedDate() {\n      if (this._selectedDate) return this._selectedDate;\n      return (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    set selectedDate(value) {\n      this._selectedDate = value;\n      return value;\n    }\n    get csvOptions() {\n      if (this._csvOptions) return this._csvOptions;\n      return this.model.projectLevelReport.last.value.elements.filter(e => e.name === this.intl.t('common.Summary') || e.name === this.intl.t('common.Tasks')).map(i => {\n        return {\n          name: i.name,\n          value: false,\n          index: i.index\n        };\n      });\n    }\n    set csvOptions(value) {\n      this._csvOptions = value;\n      return value;\n    }\n    get isExportDisabled() {\n      return this.downloadAsCsv.isRunning || !this.csvOptions.some(item => item.value);\n    }\n    toggleCsvOption(optionIndex, event) {\n      this.csvOptions = this.csvOptions.map((option, index) => {\n        if (index !== optionIndex) return option;\n        return {\n          ...option,\n          value: event.target.checked\n        };\n      });\n    }\n    get title() {\n      return `${this.model.project.last.value.name} cost to complete report on ${(0, _moment.default)(this.selectedDate).format(this.intl.t('date.slashDayFirst'))}`;\n    }\n    get filename() {\n      const currentDate = new Date(this.selectedDate);\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_cost-to-complete-report`;\n    }\n    get isLoading() {\n      return this.model.projectLevelReport.isRunning || this.model.project.isRunning;\n    }\n    updateSelectedDate(value) {\n      this.selectedDate = value;\n    }\n    closeCSVExport() {\n      this.csvExportOptions = false;\n      this.csvOptions = this.csvOptions.map(i => {\n        return {\n          ...i,\n          value: false\n        };\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"csvExportOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_csvOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"toggleCsvOption\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"toggleCsvOption\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"closeCSVExport\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"closeCSVExport\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/projects/project/cost-to-complete/task/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/object\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/runloop\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _object, _service, _moment, _tracking, _runloop, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"ember-concurrency\",0,\"@ember/object\",0,\"@ember/service\",0,\"moment\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('model.basePath', 'model.task.last.value.{id,name}'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'client-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['selectedDate']);\n      _initializerDefineProperty(this, \"csvExportOptions\", _descriptor5, this);\n      _initializerDefineProperty(this, \"_selectedDate\", _descriptor6, this);\n      _initializerDefineProperty(this, \"_csvOptions\", _descriptor7, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            scale: 0.5,\n            landscape: true\n          }, this.model.task.last.value);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (csvOptions, saveResource) {\n          const reportElements = this.model.taskLevelReport.last.value.elements;\n          for (const option of csvOptions) {\n            if (!option.value) continue;\n            const element = reportElements[option.index - 1];\n            const tableName = element.name;\n            const values = element.values;\n            const thead = element.axes.thead ? element.axes.thead.map(i => i.value) : undefined;\n            if (option.name === this.intl.t('common.Tasks')) {\n              const tfoot = element.axes.tfoot;\n              yield this.reportsDownload.downloadAsCsv(`${this.filename}-${tableName}`, thead, tfoot, `${this.title}-${tableName}`, values, saveResource ? this.model.task.last.value : null);\n            }\n            if (option.name === this.intl.t('common.Summary')) {\n              yield this.reportsDownload.downloadAsCsv(`${this.filename}-${tableName}`, thead, undefined, `${this.title}-${tableName}`, values, saveResource ? this.model.task.last.value : null);\n            }\n          }\n          this.csvExportOptions = false;\n        }\n      }), null, \"downloadAsCsv\", null));\n      _defineProperty(this, \"onDateChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSelectedDate, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onDateChange\", null));\n    }\n    get selectedDate() {\n      if (this._selectedDate) return this._selectedDate;\n      return (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    set selectedDate(value) {\n      this._selectedDate = value;\n      return value;\n    }\n    get csvOptions() {\n      if (this._csvOptions) return this._csvOptions;\n      return this.model.taskLevelReport.last.value.elements.filter(e => e.name === this.intl.t('common.Summary') || e.name === this.intl.t('common.Tasks')).map(i => {\n        return {\n          name: i.name,\n          value: false,\n          index: i.index\n        };\n      });\n    }\n    set csvOptions(value) {\n      this._csvOptions = value;\n      return value;\n    }\n    get isExportDisabled() {\n      return this.downloadAsCsv.isRunning || !this.csvOptions.some(item => item.value);\n    }\n    toggleCsvOption(optionIndex, event) {\n      this.csvOptions = this.csvOptions.map((option, index) => {\n        if (index !== optionIndex) return option;\n        return {\n          ...option,\n          value: event.target.checked\n        };\n      });\n    }\n    get title() {\n      return `${this.model.task.last.value.name} cost to complete report on ${(0, _moment.default)(this.selectedDate).format(this.intl.t('date.slashDayFirst'))}`;\n    }\n    get filename() {\n      const currentDate = new Date(this.selectedDate);\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_cost-to-complete-report`;\n    }\n    get crumbStack() {\n      const projectPath = this.model.basePath.split('.task')[0];\n      const basePath = this.model.basePath;\n      const paths = [{\n        route: projectPath,\n        model: this.model.task.last.value.belongsTo('project').id(),\n        pageTitle: this.model.task.last.value.belongsTo('project').value()?.name\n      }];\n      const taskList = [];\n      (function generatePathsFromTask(task) {\n        if (task.belongsTo('parent').value()) {\n          taskList.unshift({\n            route: basePath,\n            model: task.belongsTo('parent').id(),\n            pageTitle: task.belongsTo('parent').value()?.name\n          });\n          generatePathsFromTask(task.belongsTo('parent').value());\n        }\n      }).bind(this)(this.model.task.last.value);\n      taskList.push({\n        route: this.model.basePath,\n        model: this.model.task.last.value.id,\n        pageTitle: this.model.task.last.value.name\n      });\n      return paths.concat(taskList);\n    }\n    get isLoading() {\n      return this.model.taskLevelReport.isRunning || this.model.task.isRunning || this.model.parentTasks.isRunning;\n    }\n    updateSelectedDate(value) {\n      this.selectedDate = value;\n    }\n    closeCSVExport() {\n      this.csvExportOptions = false;\n      this.csvOptions = this.csvOptions.map(i => {\n        return {\n          ...i,\n          value: false\n        };\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"csvExportOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_csvOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"toggleCsvOption\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"toggleCsvOption\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"crumbStack\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"crumbStack\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"closeCSVExport\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"closeCSVExport\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/projects/project/cost\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/runloop\", \"@ember/object\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _service, _moment, _tracking, _runloop, _object, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"moment\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"@ember/object\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor3, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _initializerDefineProperty(this, \"csvExportOptions\", _descriptor6, this);\n      _initializerDefineProperty(this, \"showTaskPopUp\", _descriptor7, this);\n      _initializerDefineProperty(this, \"parentId\", _descriptor8, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'cost-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['startDate', 'endDate', 'costType', 'parentId', 'allocationType']);\n      _initializerDefineProperty(this, \"costType\", _descriptor9, this);\n      _initializerDefineProperty(this, \"allocationType\", _descriptor0, this);\n      _initializerDefineProperty(this, \"_filterByDate\", _descriptor1, this);\n      _initializerDefineProperty(this, \"endDate\", _descriptor10, this);\n      _initializerDefineProperty(this, \"startDate\", _descriptor11, this);\n      _initializerDefineProperty(this, \"_selectedTasks\", _descriptor12, this);\n      _initializerDefineProperty(this, \"_csvOptions\", _descriptor13, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          }, this.model.project.last.value);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (csvOptions, saveResource) {\n          csvOptions.forEach(o => {\n            if (o.value) {\n              const thead = this.model.costTable.last.value.elements[o.index - 1].axes.thead.map(i => i.value);\n              const tfoot = this.model.costTable.last.value.elements[o.index - 1].axes.tfoot;\n              const tableName = this.model.costTable.last.value.elements[o.index - 1].name;\n              this.reportsDownload.downloadAsCsv(`${this.filename}-${tableName}`, thead, tfoot, `${this.title}-${tableName}`, this.model.costTable.last.value.elements[o.index - 1].values, saveResource ? this.model.project.last.value : null);\n            }\n          });\n          this.csvExportOptions = false;\n        }\n      }), null, \"downloadAsCsv\", null));\n      _defineProperty(this, \"onDateChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSelectedDate, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onDateChange\", null));\n    }\n    get showAllocationTypeFilter() {\n      return this.allocationType && this.costType !== 'TIMESHEETS';\n    }\n    get allocationTypeLabel() {\n      switch (this.allocationType) {\n        case 'LABOUR':\n          return this.intl.t('common.Labour');\n        case 'MATERIALS':\n          return this.intl.t('common.Materials');\n        case 'SUBCONTRACTORS':\n          return this.intl.t('common.Subcontractors');\n      }\n      return '';\n    }\n    setCostType(costType) {\n      this.costType = costType;\n      if (costType === 'TIMESHEETS') this.allocationType = null;\n    }\n    get filterByDate() {\n      return this._filterByDate;\n    }\n    set filterByDate(value) {\n      this._filterByDate = value;\n      return value;\n    }\n    setFilterByDate(e) {\n      this.filterByDate = e.target.checked;\n      const selectedTasks = this.selectedTasks.map(t => t.id).length ? this.selectedTasks.map(t => t.id) : null;\n      this.model.costTable.perform(this.model.project, this.costType, this.startDate, this.endDate, this.model.selectedTaskIds, this.filterByDate, this.parentId, selectedTasks, this.allocationType);\n    }\n    setDateRange(dates) {\n      const {\n        startDate,\n        endDate\n      } = dates;\n      if (startDate) this.startDate = (0, _moment.default)(startDate).format('YYYY-MM-DD');\n      if (endDate) this.endDate = (0, _moment.default)(endDate).format('YYYY-MM-DD');\n    }\n    get dateRangeSelectorEndDate() {\n      return (0, _moment.default)(this.endDate).toDate();\n    }\n    get dateRangeSelectorStartDate() {\n      return (0, _moment.default)(this.startDate).toDate();\n    }\n    set selectedTasks(value) {\n      this._selectedTasks = value;\n    }\n    get selectedTasks() {\n      const hasParentSelected = Boolean(this.parentId);\n      if (hasParentSelected) {\n        return this.model.selectedTaskIds.last.value.map(taskId => this.store.peekRecord('task', taskId));\n      }\n      return this._selectedTasks || [];\n    }\n    get title() {\n      if (this.filterByDate) {\n        return `${this.model.project.last.value.name} cost report between ${(0, _moment.default)(this.startDate).format(this.intl.t('date.slashDayFirst'))} - ${(0, _moment.default)(this.endDate).format(this.intl.t('date.slashDayFirst'))}`;\n      }\n      return `${this.model.project.last.value.name} cost report`;\n    }\n    get csvOptions() {\n      if (this._csvOptions) return this._csvOptions;\n      return this.model.costTable.last.value.elements.filter(e => e.elementType === 'TABLE').map(i => {\n        return {\n          name: i.name,\n          value: false,\n          index: i.index\n        };\n      });\n    }\n    set csvOptions(value) {\n      this._csvOptions = value;\n      return value;\n    }\n    get isExportDisabled() {\n      return this.downloadAsCsv.isRunning || !this.csvOptions.some(item => item.value);\n    }\n    toggleCsvOption(optionIndex, event) {\n      this.csvOptions = this.csvOptions.map((option, index) => {\n        if (index !== optionIndex) return option;\n        return {\n          ...option,\n          value: event.target.checked\n        };\n      });\n    }\n    get filename() {\n      const currentDate = new Date();\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_cost-report-report`;\n    }\n    get isLoading() {\n      return this.model.costTable.isRunning || this.model.project.isRunning || this.model.tasks.isRunning || this.model.selectedTaskIds.isRunning;\n    }\n    setSelectedTasks(tasks) {\n      this.showTaskPopUp = false;\n      this.selectedTasks = tasks;\n      const taskIds = tasks.map(t => t.id);\n      this.model.costTable.perform(this.model.project, this.costType, this.startDate, this.endDate, this.model.selectedTaskIds, this.filterByDate, null, taskIds, this.allocationType);\n      this.parentId = null;\n    }\n    removeSelectedTask(task) {\n      this.showTaskPopUp = false;\n      const selectedTasks = this.selectedTasks.filter(t => t.id !== task.id);\n      this.selectedTasks = selectedTasks;\n      const selectedTaskIds = selectedTasks.map(t => t.id).length ? selectedTasks.map(t => t.id) : null;\n      this.model.costTable.perform(this.model.project, this.costType, this.startDate, this.endDate, this.model.selectedTaskIds, this.filterByDate, null, selectedTaskIds, this.allocationType);\n\n      // do this at the end so the getter for selectedTasks still returns the parent tasks while we need it\n      this.parentId = null;\n    }\n    removeAllTaskFilters() {\n      this.selectedTasks = null;\n      this.model.costTable.perform(this.model.project, this.costType, this.startDate, this.endDate, this.model.selectedTaskIds, this.filterByDate, null, undefined, this.allocationType);\n      this.parentId = null;\n    }\n    updateSelectedDate(value) {\n      this.selectedDate = value;\n    }\n    closeCSVExport() {\n      this.csvExportOptions = false;\n      this.csvOptions = this.csvOptions.map(i => {\n        return {\n          ...i,\n          value: false\n        };\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"csvExportOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"showTaskPopUp\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"parentId\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"costType\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'TIMESHEETS';\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"allocationType\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"setCostType\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setCostType\"), _class2.prototype), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"_filterByDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"setFilterByDate\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setFilterByDate\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setDateRange\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setDateRange\"), _class2.prototype), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"endDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return (0, _moment.default)().endOf('isoWeek').format('YYYY-MM-DD');\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"startDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return (0, _moment.default)().startOf('isoWeek').subtract(1, 'weeks').format('YYYY-MM-DD');\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedTasks\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"_csvOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"toggleCsvOption\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"toggleCsvOption\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setSelectedTasks\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setSelectedTasks\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"removeSelectedTask\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"removeSelectedTask\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"removeAllTaskFilters\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"removeAllTaskFilters\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"closeCSVExport\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"closeCSVExport\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/projects/project/forecast-breakdown/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/runloop\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _service, _moment, _tracking, _runloop, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"moment\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'forecast-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['selectedDate']);\n      _initializerDefineProperty(this, \"_selectedDate\", _descriptor5, this);\n      _defineProperty(this, \"onDateChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSelectedDate, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onDateChange\", null));\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          }, this.model.project.last.value);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (saveResource) {\n          const thead = this.model.forecastTable.last.value.elements[0].axes.thead.map(i => i.value);\n          const tfoot = this.model.forecastTable.last.value.elements[0].axes.tfoot;\n          yield this.reportsDownload.downloadAsCsv(this.filename, thead, tfoot, this.title, this.model.forecastTable.last.value.elements[0].values, saveResource ? this.model.project.last.value : null);\n        }\n      }), null, \"downloadAsCsv\", null));\n    }\n    get title() {\n      return `${this.model.project.last.value.name} forecast report on ${(0, _moment.default)(this.selectedDate).format(this.intl.t('date.slashDayFirst'))}`;\n    }\n    get filename() {\n      const currentDate = new Date(this.selectedDate);\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_forecast-report`;\n    }\n    get selectedDate() {\n      if (this._selectedDate) return this._selectedDate;\n      return (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    set selectedDate(value) {\n      this._selectedDate = value;\n      return value;\n    }\n    get isLoading() {\n      return this.model.forecastTable.isRunning || this.model.project.isRunning;\n    }\n    updateSelectedDate(value) {\n      this.selectedDate = value;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/projects/project/forecast-breakdown/task/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/object\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/runloop\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _object, _service, _moment, _tracking, _runloop, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/object\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"moment\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('model.basePath', 'model.task.last.value.{id,name}'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'forecast-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['selectedDate']);\n      _initializerDefineProperty(this, \"_selectedDate\", _descriptor5, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          }, this.model.task.last.value);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (saveResource) {\n          const thead = this.model.forecastTable.last.value.elements[0].axes.thead.map(i => i.value);\n          const tfoot = this.model.forecastTable.last.value.elements[0].axes.tfoot;\n          yield this.reportsDownload.downloadAsCsv(this.filename, thead, tfoot, this.title, this.model.forecastTable.last.value.elements[0].values, saveResource ? this.model.task.last.value : null);\n        }\n      }), null, \"downloadAsCsv\", null));\n      _defineProperty(this, \"onDateChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSelectedDate, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onDateChange\", null));\n    }\n    get selectedDate() {\n      if (this._selectedDate) return this._selectedDate;\n      return (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    set selectedDate(value) {\n      this._selectedDate = value;\n      return value;\n    }\n    get title() {\n      return `${this.model.task.last.value.name}forecast report on ${(0, _moment.default)(this.selectedDate).format(this.intl.t('date.slashDayFirst'))}`;\n    }\n    get filename() {\n      const currentDate = new Date(this.selectedDate);\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_forecast-report`;\n    }\n    get crumbStack() {\n      const projectPath = this.model.basePath.split('.task')[0];\n      const basePath = this.model.basePath;\n      const paths = [{\n        route: projectPath,\n        model: this.model.task.last.value.belongsTo('project').id(),\n        pageTitle: this.model.task.last.value.belongsTo('project').value()?.name\n      }];\n      const taskList = [];\n      (function generatePathsFromTask(task) {\n        if (task.belongsTo('parent').value()) {\n          taskList.unshift({\n            route: basePath,\n            model: task.belongsTo('parent').id(),\n            pageTitle: task.belongsTo('parent').value()?.name\n          });\n          generatePathsFromTask(task.belongsTo('parent').value());\n        }\n      }).bind(this)(this.model.task.last.value);\n      taskList.push({\n        route: this.model.basePath,\n        model: this.model.task.last.value.id,\n        pageTitle: this.model.task.last.value.name\n      });\n      return paths.concat(taskList);\n    }\n    get isLoading() {\n      return this.model.forecastTable.isRunning || this.model.task.isRunning || this.model.parentTasks.isRunning;\n    }\n    updateSelectedDate(value) {\n      this.selectedDate = value;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"crumbStack\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"crumbStack\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/projects/project/invoicing/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/runloop\", \"@ember/object\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _service, _moment, _tracking, _runloop, _object, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"moment\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"@ember/object\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"csvExportOptions\", _descriptor5, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'invoice-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['selectedDate']);\n      _initializerDefineProperty(this, \"_selectedDate\", _descriptor6, this);\n      _initializerDefineProperty(this, \"_csvOptions\", _descriptor7, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            scale: 0.5\n          }, this.model.project.last.value);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (csvOptions, saveResource) {\n          const reportElements = this.model.invoiceTable.last.value.elements;\n          for (const option of csvOptions) {\n            if (!option.value) continue;\n            const element = reportElements[option.index - 1];\n            const tableName = element.name;\n            const values = element.values;\n            const thead = element.axes.thead.map(i => i.value);\n            const tfoot = element.axes.tfoot;\n            yield this.reportsDownload.downloadAsCsv(`${this.filename}-${tableName}`, thead, tfoot, `${this.title}-${tableName}`, values, saveResource ? this.model.project.last.value : null);\n          }\n          this.csvExportOptions = false;\n        }\n      }), null, \"downloadAsCsv\", null));\n      _defineProperty(this, \"onDateChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSelectedDate, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onDateChange\", null));\n    }\n    get selectedDate() {\n      if (this._selectedDate) return this._selectedDate;\n      return (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    set selectedDate(value) {\n      this._selectedDate = value;\n      return value;\n    }\n    get csvOptions() {\n      if (this._csvOptions) return this._csvOptions;\n      return this.model.invoiceTable.last.value.elements.filter(e => e.elementType === 'TABLE').map(i => {\n        return {\n          name: i.name,\n          value: false,\n          index: i.index\n        };\n      });\n    }\n    set csvOptions(value) {\n      this._csvOptions = value;\n      return value;\n    }\n    get isExportDisabled() {\n      return this.downloadAsCsv.isRunning || !this.csvOptions.some(item => item.value);\n    }\n    toggleCsvOption(optionIndex, event) {\n      this.csvOptions = this.csvOptions.map((option, index) => {\n        if (index !== optionIndex) return option;\n        return {\n          ...option,\n          value: event.target.checked\n        };\n      });\n    }\n    get filename() {\n      const currentDate = new Date();\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_invoicing-report`;\n    }\n    get title() {\n      return `${this.model.project.last.value.name} invoicing report on ${(0, _moment.default)(new Date(this.selectedDate)).format(this.intl.t('date.slashDayFirst'))}`;\n    }\n    get isLoading() {\n      return this.model.invoiceTable.isRunning || this.model.project.isRunning;\n    }\n    updateSelectedDate(value) {\n      this.selectedDate = value;\n    }\n    closeCSVExport() {\n      this.csvExportOptions = false;\n      this.csvOptions = this.csvOptions.map(i => {\n        return {\n          ...i,\n          value: false\n        };\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"csvExportOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_csvOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"toggleCsvOption\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"toggleCsvOption\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"closeCSVExport\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"closeCSVExport\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/projects/project/invoicing/task/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/object\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/runloop\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _object, _service, _moment, _tracking, _runloop, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"ember-concurrency\",0,\"@ember/object\",0,\"@ember/service\",0,\"moment\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('model.basePath', 'model.task.last.value.{id,name}'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"csvExportOptions\", _descriptor5, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'invoice-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['selectedDate']);\n      _initializerDefineProperty(this, \"_selectedDate\", _descriptor6, this);\n      _initializerDefineProperty(this, \"_csvOptions\", _descriptor7, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            scale: 0.5,\n            landscape: true\n          }, this.model.task.last.value);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (csvOptions, saveResource) {\n          const reportElements = this.model.invoiceTable.last.value.elements;\n          for (const option of csvOptions) {\n            if (!option.value) continue;\n            const element = reportElements[option.index - 1];\n            const tableName = element.name;\n            const values = element.values;\n            const thead = element.axes.thead.map(i => i.value);\n            const tfoot = element.axes.tfoot;\n            yield this.reportsDownload.downloadAsCsv(`${this.filename}-${tableName}`, thead, tfoot, `${this.title}-${tableName}`, values, saveResource ? this.model.task.last.value : null);\n          }\n          this.csvExportOptions = false;\n        }\n      }), null, \"downloadAsCsv\", null));\n      _defineProperty(this, \"onDateChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSelectedDate, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onDateChange\", null));\n    }\n    get selectedDate() {\n      if (this._selectedDate) return this._selectedDate;\n      return (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    set selectedDate(value) {\n      this._selectedDate = value;\n      return value;\n    }\n    get csvOptions() {\n      if (this._csvOptions) return this._csvOptions;\n      return this.model.invoiceTable.last.value.elements.filter(e => e.elementType === 'TABLE').map(i => {\n        return {\n          name: i.name,\n          value: false,\n          index: i.index\n        };\n      });\n    }\n    set csvOptions(value) {\n      this._csvOptions = value;\n      return value;\n    }\n    get isExportDisabled() {\n      return this.downloadAsCsv.isRunning || !this.csvOptions.some(item => item.value);\n    }\n    toggleCsvOption(optionIndex, event) {\n      this.csvOptions = this.csvOptions.map((option, index) => {\n        if (index !== optionIndex) return option;\n        return {\n          ...option,\n          value: event.target.checked\n        };\n      });\n    }\n    get title() {\n      return `${this.model.task.last.value.name} invoicing report on ${(0, _moment.default)(this.selectedDate).format(this.intl.t('date.slashDayFirst'))}`;\n    }\n    get filename() {\n      const currentDate = new Date(this.selectedDate);\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_invoicing-report`;\n    }\n    get crumbStack() {\n      const projectPath = this.model.basePath.split('.task')[0];\n      const basePath = this.model.basePath;\n      const paths = [{\n        route: projectPath,\n        model: this.model.task.last.value.belongsTo('project').id(),\n        pageTitle: this.model.task.last.value.belongsTo('project').value()?.name\n      }];\n      const taskList = [];\n      (function generatePathsFromTask(task) {\n        if (task.belongsTo('parent').value()) {\n          taskList.unshift({\n            route: basePath,\n            model: task.belongsTo('parent').id(),\n            pageTitle: task.belongsTo('parent').value()?.name\n          });\n          generatePathsFromTask(task.belongsTo('parent').value());\n        }\n      }).bind(this)(this.model.task.last.value);\n      taskList.push({\n        route: this.model.basePath,\n        model: this.model.task.last.value.id,\n        pageTitle: this.model.task.last.value.name\n      });\n      return paths.concat(taskList);\n    }\n    get isLoading() {\n      return this.model.invoiceTable.isRunning || this.model.task.isRunning || this.model.parentTasks.isRunning;\n    }\n    updateSelectedDate(value) {\n      this.selectedDate = value;\n    }\n    closeCSVExport() {\n      this.csvExportOptions = false;\n      this.csvOptions = this.csvOptions.map(i => {\n        return {\n          ...i,\n          value: false\n        };\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"csvExportOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_csvOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"toggleCsvOption\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"toggleCsvOption\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"crumbStack\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"crumbStack\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"closeCSVExport\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"closeCSVExport\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/projects/project/labour-hours/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/runloop\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _service, _moment, _tracking, _runloop, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"moment\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"pdfExport\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor3, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'labour-hours-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['selectedDate']);\n      _initializerDefineProperty(this, \"_selectedDate\", _descriptor6, this);\n      _defineProperty(this, \"onDateChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSelectedDate, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onDateChange\", null));\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), {\n        restartable: true\n      }, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            scale: 0.5\n          }, this.model.project.last.value);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (saveResource) {\n          const thead = this.model.labourHoursTable.last.value.elements[2].axes.thead.map(i => i.value);\n          const tfoot = this.model.labourHoursTable.last.value.elements[2].axes.tfoot;\n          yield this.reportsDownload.downloadAsCsv(this.filename, thead, tfoot, this.title, this.model.labourHoursTable.last.value.elements[2].values, saveResource ? this.model.project.last.value : null);\n        }\n      }), null, \"downloadAsCsv\", null));\n    }\n    get selectedDate() {\n      if (this._selectedDate) return this._selectedDate;\n      return (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    set selectedDate(value) {\n      this._selectedDate = value;\n      return value;\n    }\n    get filename() {\n      const currentDate = new Date();\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_labour-hours-report`;\n    }\n    get title() {\n      return `${this.model.project.last.value.name} labour hours report on ${(0, _moment.default)(new Date(this.selectedDate)).format(this.intl.t('date.slashDayFirst'))}`;\n    }\n    get isLoading() {\n      return this.model.labourHoursTable.isRunning || this.model.project.isRunning;\n    }\n    updateSelectedDate(value) {\n      this.selectedDate = value;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"pdfExport\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/projects/project/labour-hours/task/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/object\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/runloop\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _object, _service, _moment, _tracking, _runloop, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/object\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"moment\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('model.basePath', 'model.task.last.value.{id,name}'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'position-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['selectedDate']);\n      _initializerDefineProperty(this, \"_selectedDate\", _descriptor5, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            scale: 0.5,\n            landscape: true\n          }, this.model.task.last.value);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (saveResource) {\n          const thead = this.model.taskLevelReport.last.value.elements[2].axes.thead.map(i => i.value);\n          const tfoot = this.model.taskLevelReport.last.value.elements[2].axes.tfoot;\n          yield this.reportsDownload.downloadAsCsv(this.filename, thead, tfoot, this.title, this.model.taskLevelReport.last.value.elements[2].values, saveResource ? this.model.task.last.value : null);\n        }\n      }), null, \"downloadAsCsv\", null));\n      _defineProperty(this, \"onDateChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSelectedDate, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onDateChange\", null));\n    }\n    get selectedDate() {\n      if (this._selectedDate) return this._selectedDate;\n      return (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    set selectedDate(value) {\n      this._selectedDate = value;\n      return value;\n    }\n    get title() {\n      return `${this.model.task.last.value.name} labour hours report on ${(0, _moment.default)(this.selectedDate).format(this.intl.t('date.slashDayFirst'))}`;\n    }\n    get filename() {\n      const currentDate = new Date(this.selectedDate);\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_labour-hours-report`;\n    }\n    get crumbStack() {\n      const projectPath = this.model.basePath.split('.task')[0];\n      const basePath = this.model.basePath;\n      const paths = [{\n        route: projectPath,\n        model: this.model.task.last.value.belongsTo('project').id(),\n        pageTitle: this.model.task.last.value.belongsTo('project').value()?.name\n      }];\n      const taskList = [];\n      (function generatePathsFromTask(task) {\n        if (task.belongsTo('parent').value()) {\n          taskList.unshift({\n            route: basePath,\n            model: task.belongsTo('parent').id(),\n            pageTitle: task.belongsTo('parent').value()?.name\n          });\n          generatePathsFromTask(task.belongsTo('parent').value());\n        }\n      }).bind(this)(this.model.task.last.value);\n      taskList.push({\n        route: this.model.basePath,\n        model: this.model.task.last.value.id,\n        pageTitle: this.model.task.last.value.name\n      });\n      return paths.concat(taskList);\n    }\n    get isLoading() {\n      return this.model.taskLevelReport.isRunning || this.model.task.isRunning || this.model.parentTasks.isRunning;\n    }\n    updateSelectedDate(value) {\n      this.selectedDate = value;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"crumbStack\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"crumbStack\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/projects/project/notes\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/runloop\", \"@ember/object\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _service, _moment, _tracking, _runloop, _object, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"moment\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"@ember/object\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor3, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _defineProperty(this, \"queryParams\", ['startDate', 'endDate', 'filterByDate', 'invoiceId', 'workerIds']);\n      _defineProperty(this, \"pdfExportTargetId\", 'cost-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _initializerDefineProperty(this, \"showTaskPopUp\", _descriptor6, this);\n      _initializerDefineProperty(this, \"selectedTasks\", _descriptor7, this);\n      _initializerDefineProperty(this, \"startDate\", _descriptor8, this);\n      _initializerDefineProperty(this, \"endDate\", _descriptor9, this);\n      _initializerDefineProperty(this, \"filterByDate\", _descriptor0, this);\n      _initializerDefineProperty(this, \"invoiceId\", _descriptor1, this);\n      _initializerDefineProperty(this, \"workerIds\", _descriptor10, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: false,\n            scale: 0.75\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: false,\n            scale: 0.75\n          }, this.model.project.last.value);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (saveResource) {\n          if (!this.model.noteReport.last?.value) return;\n          const thead = ['date', 'worker name', 'task name', 'hours', 'note', 'note type'];\n          const tbody = [];\n          const elements = this.model.noteReport.last.value.elements;\n          if (elements && elements[0] && elements[0].values) {\n            elements[0].values.forEach(_row => {\n              let row = [];\n              _row.forEach((cell, index) => {\n                const attachmentsIndex = 4;\n                const linkIndex = 6;\n                const taskDurationIndex = 2;\n                if ([attachmentsIndex, linkIndex].includes(index)) return;\n                if (index === taskDurationIndex) {\n                  const [taskName, duration] = cell;\n                  row.push({\n                    format: 'TEXT',\n                    value: taskName.value\n                  });\n                  row.push({\n                    format: 'TEXT',\n                    value: duration.value\n                  });\n                  return;\n                }\n                row.push(cell);\n              });\n              tbody.push(row);\n            });\n          }\n          yield this.reportsDownload.downloadAsCsv(this.filename, thead, undefined, this.title, tbody, saveResource ? this.model.project.last.value : null);\n        }\n      }), null, \"downloadAsCsv\", null));\n      _defineProperty(this, \"onDateChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateStartDateInput, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onDateChange\", null));\n    }\n    get selectedWorkers() {\n      if (!this.workerIds) return null;\n      const ids = typeof this.workerIds === 'string' ? this.workerIds.split(',') : this.workerIds;\n      return (this.model.getWorkers.last.value?.toArray() || []).filter(w => ids.includes(w.id));\n    }\n    set selectedWorkers(value) {\n      if (!value?.length) {\n        this.workerIds = null;\n      } else {\n        this.workerIds = value.map(w => w.id);\n      }\n      this.refreshReport();\n    }\n    refreshReport() {\n      const currentSelectedTaskIds = this.selectedTasks.length ? this.selectedTasks.map(t => t.id) : null;\n      const workerIds = typeof this.workerIds === 'string' ? this.workerIds.split(',') : this.workerIds;\n      this.model.noteReport.perform(this.model.project, this.startDate, this.endDate, this.filterByDate, currentSelectedTaskIds, workerIds, this.invoiceId);\n    }\n    setFilterByDate(e) {\n      this.filterByDate = e.target.checked;\n      this.refreshReport();\n    }\n    setDateRange(dates) {\n      const {\n        startDate,\n        endDate\n      } = dates;\n      if (startDate) this.startDate = (0, _moment.default)(startDate).format('YYYY-MM-DD');\n      if (endDate) this.endDate = (0, _moment.default)(endDate).format('YYYY-MM-DD');\n      this.refreshReport();\n    }\n    setSelectedTasks(tasks) {\n      this.showTaskPopUp = false;\n      this.selectedTasks = tasks;\n      this.refreshReport();\n    }\n    removeSelectedTask(task) {\n      this.showTaskPopUp = false;\n      const selectedTasks = this.selectedTasks.filter(t => t.id !== task.id);\n      this.selectedTasks = selectedTasks;\n      this.refreshReport();\n    }\n    removeAllTaskFilters() {\n      this.selectedTasks = [];\n      if (this.invoiceId) {\n        this.invoiceId = null;\n      }\n      this.refreshReport();\n    }\n    removeAllWorkerFilters() {\n      this.workerIds = null;\n      if (this.invoiceId) this.invoiceId = null;\n      this.refreshReport();\n    }\n    get dateRangeSelectorEndDate() {\n      return (0, _moment.default)(this.endDate).toDate();\n    }\n    get dateRangeSelectorStartDate() {\n      return (0, _moment.default)(this.startDate).toDate();\n    }\n    get title() {\n      if (!this.model.project.last?.value) return '';\n      if (this.filterByDate) {\n        return `${this.model.project.last.value.name} notes report between ${(0, _moment.default)(this.startDate).format(this.intl.t('date.slashDayFirst'))} - ${(0, _moment.default)(this.endDate).format(this.intl.t('date.slashDayFirst'))}`;\n      }\n      return `${this.model.project.last.value.name} notes`;\n    }\n    get filename() {\n      const currentDate = new Date();\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0');\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_notes-report`;\n    }\n    get isLoading() {\n      return this.model.noteReport.isRunning || this.model.project.isRunning || this.model.tasks.isRunning;\n    }\n    updateStartDateInput(value) {\n      this.startDate = value;\n      this.refreshReport();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"showTaskPopUp\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"selectedTasks\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"startDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return (0, _moment.default)().startOf('isoWeek').subtract(1, 'weeks').format('YYYY-MM-DD');\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"endDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return (0, _moment.default)().endOf('isoWeek').format('YYYY-MM-DD');\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"filterByDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"invoiceId\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"workerIds\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"setFilterByDate\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setFilterByDate\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setDateRange\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setDateRange\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setSelectedTasks\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setSelectedTasks\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"removeSelectedTask\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"removeSelectedTask\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"removeAllTaskFilters\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"removeAllTaskFilters\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"removeAllWorkerFilters\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"removeAllWorkerFilters\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/projects/project/position/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/runloop\", \"@ember/object\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _service, _moment, _tracking, _runloop, _object, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"moment\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"@ember/object\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'position-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['selectedDate']);\n      _initializerDefineProperty(this, \"csvExportOptions\", _descriptor5, this);\n      _initializerDefineProperty(this, \"_selectedDate\", _descriptor6, this);\n      _initializerDefineProperty(this, \"_csvOptions\", _descriptor7, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            scale: 0.5,\n            landscape: true\n          }, this.model.project.last.value);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (csvOptions, saveResource) {\n          const reportElements = this.model.projectLevelReport.last.value.elements;\n          for (const option of csvOptions) {\n            if (!option.value) continue;\n            const element = reportElements[option.index - 1];\n            const tableName = element.name;\n            const values = element.values;\n            const thead = element.axes.thead ? element.axes.thead.map(i => i.value) : undefined;\n            if (option.name === this.intl.t('common.Tasks')) {\n              const tfoot = element.axes.tfoot;\n              yield this.reportsDownload.downloadAsCsv(`${this.filename}-${tableName}`, thead, tfoot, `${this.title}-${tableName}`, values, saveResource ? this.model.project.last.value : null);\n            }\n            if (option.name === this.intl.t('shared.reports.Financial breakdown') || option.name === this.intl.t('common.Labour hours')) {\n              yield this.reportsDownload.downloadAsCsv(`${this.filename}-${tableName}`, thead, undefined, `${this.title}-${tableName}`, values, saveResource ? this.model.project.last.value : null);\n            }\n          }\n          this.csvExportOptions = false;\n        }\n      }), null, \"downloadAsCsv\", null));\n      _defineProperty(this, \"onDateChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSelectedDate, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onDateChange\", null));\n    }\n    get selectedDate() {\n      if (this._selectedDate) return this._selectedDate;\n      return (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    set selectedDate(value) {\n      this._selectedDate = value;\n      return value;\n    }\n    get csvOptions() {\n      if (this._csvOptions) return this._csvOptions;\n      return this.model.projectLevelReport.last.value.elements.filter(e => e.name === this.intl.t('shared.reports.Financial breakdown') || e.name === this.intl.t('common.Tasks') || e.name === this.intl.t('common.Labour hours')).map(i => {\n        return {\n          name: i.name,\n          value: false,\n          index: i.index\n        };\n      });\n    }\n    set csvOptions(value) {\n      this._csvOptions = value;\n      return value;\n    }\n    get isExportDisabled() {\n      return this.downloadAsCsv.isRunning || !this.csvOptions.some(item => item.value);\n    }\n    toggleCsvOption(optionIndex, event) {\n      this.csvOptions = this.csvOptions.map((option, index) => {\n        if (index !== optionIndex) return option;\n        return {\n          ...option,\n          value: event.target.checked\n        };\n      });\n    }\n    get title() {\n      return `${this.model.project.last.value.name} position  report on ${(0, _moment.default)(this.selectedDate).format(this.intl.t('date.slashDayFirst'))}`;\n    }\n    get filename() {\n      const currentDate = new Date(this.selectedDate);\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_position-report`;\n    }\n    get isLoading() {\n      return this.model.projectLevelReport.isRunning || this.model.project.isRunning;\n    }\n    updateSelectedDate(value) {\n      this.selectedDate = value;\n    }\n    closeCSVExport() {\n      this.csvExportOptions = false;\n      this.csvOptions = this.csvOptions.map(i => {\n        return {\n          ...i,\n          value: false\n        };\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"csvExportOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_csvOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"toggleCsvOption\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"toggleCsvOption\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"closeCSVExport\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"closeCSVExport\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/projects/project/position/task/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/object\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/runloop\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _object, _service, _moment, _tracking, _runloop, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"ember-concurrency\",0,\"@ember/object\",0,\"@ember/service\",0,\"moment\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('model.basePath', 'model.task.last.value.{id,name}'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'position-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['selectedDate']);\n      _initializerDefineProperty(this, \"csvExportOptions\", _descriptor5, this);\n      _initializerDefineProperty(this, \"_selectedDate\", _descriptor6, this);\n      _initializerDefineProperty(this, \"_csvOptions\", _descriptor7, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            scale: 0.5,\n            landscape: true\n          }, this.model.task.last.value);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (csvOptions, saveResource) {\n          const reportElements = this.model.taskLevelReport.last.value.elements;\n          for (const option of csvOptions) {\n            if (!option.value) continue;\n            const element = reportElements[option.index - 1];\n            const tableName = element.name;\n            const values = element.values;\n            const thead = element.axes.thead.map(i => i.value);\n            if (option.name === this.intl.t('common.Tasks')) {\n              const tfoot = element.axes.tfoot;\n              yield this.reportsDownload.downloadAsCsv(`${this.filename}-${tableName}`, thead, tfoot, `${this.title}-${tableName}`, values, saveResource ? this.model.task.last.value : null);\n            }\n            if (option.name === this.intl.t('shared.reports.Financial breakdown') || option.name === this.intl.t('common.Labour hours')) {\n              yield this.reportsDownload.downloadAsCsv(`${this.filename}-${tableName}`, thead, undefined, `${this.title}-${tableName}`, values, saveResource ? this.model.task.last.value : null);\n            }\n          }\n          this.csvExportOptions = false;\n        }\n      }), null, \"downloadAsCsv\", null));\n      _defineProperty(this, \"onDateChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSelectedDate, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onDateChange\", null));\n    }\n    get selectedDate() {\n      if (this._selectedDate) return this._selectedDate;\n      return (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    set selectedDate(value) {\n      this._selectedDate = value;\n      return value;\n    }\n    get csvOptions() {\n      if (this._csvOptions) return this._csvOptions;\n      return this.model.taskLevelReport.last.value.elements.filter(e => e.name === this.intl.t('shared.reports.Financial breakdown') || e.name === this.intl.t('common.Tasks') || e.name === this.intl.t('common.Labour hours')).map(i => {\n        return {\n          name: i.name,\n          value: false,\n          index: i.index\n        };\n      });\n    }\n    set csvOptions(value) {\n      this._csvOptions = value;\n      return value;\n    }\n    get isExportDisabled() {\n      return this.downloadAsCsv.isRunning || !this.csvOptions.some(item => item.value);\n    }\n    toggleCsvOption(optionIndex, event) {\n      this.csvOptions = this.csvOptions.map((option, index) => {\n        if (index !== optionIndex) return option;\n        return {\n          ...option,\n          value: event.target.checked\n        };\n      });\n    }\n    get title() {\n      return `${this.model.task.last.value.name} position report on ${(0, _moment.default)(this.selectedDate).format(this.intl.t('date.slashDayFirst'))}`;\n    }\n    get filename() {\n      const currentDate = new Date(this.selectedDate);\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_position-report`;\n    }\n    get crumbStack() {\n      const projectPath = this.model.basePath.split('.task')[0];\n      const basePath = this.model.basePath;\n      const paths = [{\n        route: projectPath,\n        model: this.model.task.last.value.belongsTo('project').id(),\n        pageTitle: this.model.task.last.value.belongsTo('project').value()?.name\n      }];\n      const taskList = [];\n      (function generatePathsFromTask(task) {\n        if (task.belongsTo('parent').value()) {\n          taskList.unshift({\n            route: basePath,\n            model: task.belongsTo('parent').id(),\n            pageTitle: task.belongsTo('parent').value()?.name\n          });\n          generatePathsFromTask(task.belongsTo('parent').value());\n        }\n      }).bind(this)(this.model.task.last.value);\n      taskList.push({\n        route: this.model.basePath,\n        model: this.model.task.last.value.id,\n        pageTitle: this.model.task.last.value.name\n      });\n      return paths.concat(taskList);\n    }\n    get isLoading() {\n      return this.model.taskLevelReport.isRunning || this.model.task.isRunning || this.model.parentTasks.isRunning;\n    }\n    updateSelectedDate(value) {\n      this.selectedDate = value;\n    }\n    closeCSVExport() {\n      this.csvExportOptions = false;\n      this.csvOptions = this.csvOptions.map(i => {\n        return {\n          ...i,\n          value: false\n        };\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"csvExportOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_csvOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"toggleCsvOption\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"toggleCsvOption\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"crumbStack\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"crumbStack\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"closeCSVExport\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"closeCSVExport\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/projects/project/profit-margins/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/runloop\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _service, _moment, _tracking, _runloop, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"moment\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'profit-margins-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['selectedDate']);\n      _initializerDefineProperty(this, \"_selectedDate\", _descriptor5, this);\n      _defineProperty(this, \"onDateChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSelectedDate, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onDateChange\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (saveResource) {\n          const thead = this.model.profitMarginsTable.last.value.elements[0].axes.thead.map(i => i.value);\n          const tfoot = this.model.profitMarginsTable.last.value.elements[0].axes.tfoot;\n          yield this.reportsDownload.downloadAsCsv(this.filename, thead, tfoot, this.title, this.model.profitMarginsTable.last.value.elements[0].values, saveResource ? this.model.project.last.value : null);\n        }\n      }), null, \"downloadAsCsv\", null));\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          }, this.model.project.last.value);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n    }\n    get title() {\n      return `${this.model.project.last.value.name} profit margins report on ${(0, _moment.default)(this.selectedDate).format(this.intl.t('date.slashDayFirst'))}`;\n    }\n    get filename() {\n      const currentDate = new Date(this.selectedDate);\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_profit-margins-report`;\n    }\n    get selectedDate() {\n      if (this._selectedDate) return this._selectedDate;\n      return (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    set selectedDate(value) {\n      this._selectedDate = value;\n      return value;\n    }\n    get isLoading() {\n      return this.model.profitMarginsTable.isRunning || this.model.project.isRunning;\n    }\n    updateSelectedDate(value) {\n      this.selectedDate = value;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/projects/project/profit-margins/task/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/object\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/runloop\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _object, _service, _moment, _tracking, _runloop, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/object\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"moment\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('model.basePath', 'model.task.last.value.{id,name}'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'position-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['selectedDate']);\n      _initializerDefineProperty(this, \"_selectedDate\", _descriptor5, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          }, this.model.task.last.value);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (saveResource) {\n          const thead = this.model.profitMarginsTable.last.value.elements[0].axes.thead.map(i => i.value);\n          const tfoot = this.model.profitMarginsTable.last.value.elements[0].axes.tfoot;\n          yield this.reportsDownload.downloadAsCsv(this.filename, thead, tfoot, this.title, this.model.profitMarginsTable.last.value.elements[0].values, saveResource ? this.model.task.last.value : null);\n        }\n      }), null, \"downloadAsCsv\", null));\n      _defineProperty(this, \"onDateChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSelectedDate, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onDateChange\", null));\n    }\n    get selectedDate() {\n      if (this._selectedDate) return this._selectedDate;\n      return (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    set selectedDate(value) {\n      this._selectedDate = value;\n      return value;\n    }\n    get title() {\n      return `${this.model.task.last.value.name} profit margins report on ${(0, _moment.default)(this.selectedDate).format(this.intl.t('date.slashDayFirst'))}`;\n    }\n    get filename() {\n      const currentDate = new Date(this.selectedDate);\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_profit-margins-report`;\n    }\n    get crumbStack() {\n      const projectPath = this.model.basePath.split('.task')[0];\n      const basePath = this.model.basePath;\n      const paths = [{\n        route: projectPath,\n        model: this.model.task.last.value.belongsTo('project').id(),\n        pageTitle: this.model.task.last.value.belongsTo('project').value()?.name\n      }];\n      const taskList = [];\n      (function generatePathsFromTask(task) {\n        if (task.belongsTo('parent').value()) {\n          taskList.unshift({\n            route: basePath,\n            model: task.belongsTo('parent').id(),\n            pageTitle: task.belongsTo('parent').value()?.name\n          });\n          generatePathsFromTask(task.belongsTo('parent').value());\n        }\n      }).bind(this)(this.model.task.last.value);\n      taskList.push({\n        route: this.model.basePath,\n        model: this.model.task.last.value.id,\n        pageTitle: this.model.task.last.value.name\n      });\n      return paths.concat(taskList);\n    }\n    get isLoading() {\n      return this.model.profitMarginsTable.isRunning || this.model.task.isRunning || this.model.parentTasks.isRunning;\n    }\n    updateSelectedDate(value) {\n      this.selectedDate = value;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"crumbStack\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"crumbStack\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/projects/project/quote/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/runloop\", \"@ember/object\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _service, _moment, _tracking, _runloop, _object, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"moment\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"@ember/object\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"csvExportOptions\", _descriptor5, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'quote-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['selectedDate']);\n      _initializerDefineProperty(this, \"_selectedDate\", _descriptor6, this);\n      _initializerDefineProperty(this, \"_csvOptions\", _descriptor7, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            scale: 0.5\n          }, this.model.project.last.value);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (csvOptions, saveResource) {\n          const reportElements = this.model.quoteTable.last.value.elements;\n          for (const option of csvOptions) {\n            if (!option.value) continue;\n            const element = reportElements[option.index - 1];\n            const tableName = element.name;\n            const values = element.values;\n            const thead = element.axes.thead.map(i => i.value);\n            const tfoot = element.axes.tfoot;\n            yield this.reportsDownload.downloadAsCsv(`${this.filename}-${tableName}`, thead, tfoot, `${this.title}-${tableName}`, values, saveResource ? this.model.project.last.value : null);\n          }\n          this.csvExportOptions = false;\n        }\n      }), null, \"downloadAsCsv\", null));\n      _defineProperty(this, \"onDateChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSelectedDate, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onDateChange\", null));\n    }\n    get selectedDate() {\n      if (this._selectedDate) return this._selectedDate;\n      return (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    set selectedDate(value) {\n      this._selectedDate = value;\n      return value;\n    }\n    get csvOptions() {\n      if (this._csvOptions) return this._csvOptions;\n      return this.model.quoteTable.last.value.elements.filter(e => e.elementType === 'TABLE').map(i => {\n        return {\n          name: i.name,\n          value: false,\n          index: i.index\n        };\n      });\n    }\n    set csvOptions(value) {\n      this._csvOptions = value;\n      return value;\n    }\n    get isExportDisabled() {\n      return this.downloadAsCsv.isRunning || !this.csvOptions.some(item => item.value);\n    }\n    toggleCsvOption(optionIndex, event) {\n      this.csvOptions = this.csvOptions.map((option, index) => {\n        if (index !== optionIndex) return option;\n        return {\n          ...option,\n          value: event.target.checked\n        };\n      });\n    }\n    get filename() {\n      const currentDate = new Date();\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_quote-report`;\n    }\n    get title() {\n      return `${this.model.project.last.value.name} quote report on ${(0, _moment.default)(new Date(this.selectedDate)).format(this.intl.t('date.slashDayFirst'))}`;\n    }\n    get isLoading() {\n      return this.model.quoteTable.isRunning || this.model.project.isRunning;\n    }\n    updateSelectedDate(value) {\n      this.selectedDate = value;\n    }\n    closeCSVExport() {\n      this.csvExportOptions = false;\n      this.csvOptions = this.csvOptions.map(i => {\n        return {\n          ...i,\n          value: false\n        };\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"csvExportOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_csvOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"toggleCsvOption\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"toggleCsvOption\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"closeCSVExport\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"closeCSVExport\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/projects/project/quote/task/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/object\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/runloop\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _object, _service, _moment, _tracking, _runloop, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"ember-concurrency\",0,\"@ember/object\",0,\"@ember/service\",0,\"moment\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('model.basePath', 'model.task.last.value.{id,name}'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"csvExportOptions\", _descriptor5, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'position-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['selectedDate']);\n      _initializerDefineProperty(this, \"_selectedDate\", _descriptor6, this);\n      _initializerDefineProperty(this, \"_csvOptions\", _descriptor7, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            scale: 0.5,\n            landscape: true\n          }, this.model.task.last.value);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (csvOptions, saveResource) {\n          const reportElements = this.model.quoteTable.last.value.elements;\n          for (const option of csvOptions) {\n            if (!option.value) continue;\n            const element = reportElements[option.index - 1];\n            const tableName = element.name;\n            const values = element.values;\n            const thead = element.axes.thead.map(i => i.value);\n            const tfoot = element.axes.tfoot;\n            yield this.reportsDownload.downloadAsCsv(`${this.filename}-${tableName}`, thead, tfoot, `${this.title}-${tableName}`, values, saveResource ? this.model.task.last.value : null);\n          }\n          this.csvExportOptions = false;\n        }\n      }), null, \"downloadAsCsv\", null));\n      _defineProperty(this, \"onDateChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSelectedDate, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onDateChange\", null));\n    }\n    get selectedDate() {\n      if (this._selectedDate) return this._selectedDate;\n      return (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    set selectedDate(value) {\n      this._selectedDate = value;\n      return value;\n    }\n    get csvOptions() {\n      if (this._csvOptions) return this._csvOptions;\n      return this.model.quoteTable.last.value.elements.filter(e => e.elementType === 'TABLE').map(i => {\n        return {\n          name: i.name,\n          value: false,\n          index: i.index\n        };\n      });\n    }\n    set csvOptions(value) {\n      this._csvOptions = value;\n      return value;\n    }\n    get isExportDisabled() {\n      return this.downloadAsCsv.isRunning || !this.csvOptions.some(item => item.value);\n    }\n    toggleCsvOption(optionIndex, event) {\n      this.csvOptions = this.csvOptions.map((option, index) => {\n        if (index !== optionIndex) return option;\n        return {\n          ...option,\n          value: event.target.checked\n        };\n      });\n    }\n    get title() {\n      return `${this.model.task.last.value.name} quote report on ${(0, _moment.default)(this.selectedDate).format(this.intl.t('date.slashDayFirst'))}`;\n    }\n    get filename() {\n      const currentDate = new Date(this.selectedDate);\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_quote-report`;\n    }\n    get crumbStack() {\n      const projectPath = this.model.basePath.split('.task')[0];\n      const basePath = this.model.basePath;\n      const paths = [{\n        route: projectPath,\n        model: this.model.task.last.value.belongsTo('project').id(),\n        pageTitle: this.model.task.last.value.belongsTo('project').value()?.name\n      }];\n      const taskList = [];\n      (function generatePathsFromTask(task) {\n        if (task.belongsTo('parent').value()) {\n          taskList.unshift({\n            route: basePath,\n            model: task.belongsTo('parent').id(),\n            pageTitle: task.belongsTo('parent').value()?.name\n          });\n          generatePathsFromTask(task.belongsTo('parent').value());\n        }\n      }).bind(this)(this.model.task.last.value);\n      taskList.push({\n        route: this.model.basePath,\n        model: this.model.task.last.value.id,\n        pageTitle: this.model.task.last.value.name\n      });\n      return paths.concat(taskList);\n    }\n    get isLoading() {\n      return this.model.quoteTable.isRunning || this.model.task.isRunning || this.model.parentTasks.isRunning;\n    }\n    updateSelectedDate(value) {\n      this.selectedDate = value;\n    }\n    closeCSVExport() {\n      this.csvExportOptions = false;\n      this.csvOptions = this.csvOptions.map(i => {\n        return {\n          ...i,\n          value: false\n        };\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"csvExportOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_csvOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"toggleCsvOption\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"toggleCsvOption\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"crumbStack\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"crumbStack\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"closeCSVExport\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"closeCSVExport\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/scheduling\", [\"exports\", \"@ember/controller\", \"@ember/service\"], function (_exports, _controller, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _service.inject)(), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/controllers/entity/builda-price/scheduling/timeline\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/object\", \"@ember/controller\", \"@bryntum/gantt\", \"@ember/service\", \"portal/config/environment\", \"@ember/runloop\", \"@glimmer/tracking\", \"ember-local-storage\", \"@bryntum/gantt/locales/gantt.locale.ZhCn.js\"], function (_exports, _asyncArrowRuntime, _object, _controller, _gantt, _service, _environment, _runloop, _tracking, _emberLocalStorage, _ganttLocaleZhCn) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/object\",0,\"@ember/controller\",0,\"@bryntum/gantt\",0,\"@ember/service\",0,\"@ember/object\",0,\"portal/config/environment\",0,\"@ember/runloop\",0,\"@glimmer/tracking\",0,\"ember-local-storage\",0,\"ember-concurrency\",0,\"@bryntum/gantt/locales/gantt.locale.ZhCn.js\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _emberLocalStorage.storageFor)('settings'), _dec2 = (0, _object.computed)('selected_projects', 'model.projects.last.value', 'projectsById'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"session\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"router\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor6, this);\n      _initializerDefineProperty(this, \"persistedSettings\", _descriptor7, this);\n      _initializerDefineProperty(this, \"ganttChart\", _descriptor8, this);\n      _initializerDefineProperty(this, \"taskImportModalVisible\", _descriptor9, this);\n      _initializerDefineProperty(this, \"searchFilterRegex\", _descriptor0, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor1, this);\n      _initializerDefineProperty(this, \"undoCount\", _descriptor10, this);\n      _initializerDefineProperty(this, \"redoCount\", _descriptor11, this);\n      _initializerDefineProperty(this, \"ganttIsLoading\", _descriptor12, this);\n      _defineProperty(this, \"queryParams\", ['selected_projects']);\n      _initializerDefineProperty(this, \"selected_projects\", _descriptor13, this);\n      _initializerDefineProperty(this, \"_ganttFillTicksEnabled\", _descriptor14, this);\n      _initializerDefineProperty(this, \"_ganttSubGridConfigsEnabled\", _descriptor15, this);\n      _initializerDefineProperty(this, \"_ganttTableCollapsed\", _descriptor16, this);\n      _initializerDefineProperty(this, \"_ganttDependenciesEnabled\", _descriptor17, this);\n      _initializerDefineProperty(this, \"_ganttLabelsEnabled\", _descriptor18, this);\n      _initializerDefineProperty(this, \"_ganttCriticalPathsEnabled\", _descriptor19, this);\n      _initializerDefineProperty(this, \"_ganttNonWorkingTimeEnabled\", _descriptor20, this);\n      _initializerDefineProperty(this, \"_ganttColumnLinesEnabled\", _descriptor21, this);\n      _initializerDefineProperty(this, \"_ganttRollupsEnabled\", _descriptor22, this);\n      _initializerDefineProperty(this, \"_ganttProgressLineEnabled\", _descriptor23, this);\n      _initializerDefineProperty(this, \"_ganttParentAreaEnabled\", _descriptor24, this);\n      _defineProperty(this, \"onSyncGantt\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            this.ganttChart.readOnly = true;\n            yield this.ganttChart.project.sync();\n            this.ganttChart.project.stm.resetQueue();\n            this.ganttChart.project.stm.disable();\n            this.ganttChart.project.stm.enable();\n          } catch (error) {\n            yield this.ganttChart.project.doAutoLoad();\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.scheduling.timeline.somethingWentWrongSyncingTheTimeline'),\n              error\n            });\n          } finally {\n            this.ganttChart.readOnly = false;\n          }\n        }\n      }), null, \"onSyncGantt\", null));\n      _defineProperty(this, \"initializeGanttChart\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const projectIds = this.selectedProjects?.map(p => p.id);\n          if (!projectIds?.length) {\n            this.ganttChart = null;\n            return;\n          }\n\n          // don't create the gantt chart again if we already have one\n          if (this.ganttChart) {\n            yield this.ganttChart.project.load({\n              request: {\n                params: {\n                  subjectEntityId: this.sessionData.entity.id,\n                  entityIds: [this.sessionData.entity.id],\n                  projectIds\n                }\n              }\n            });\n            return;\n          }\n          const _this = this;\n          const hasSchedulingTask = this.selectedProjects.every(p => p.isSchedulingEnabled());\n          if (!hasSchedulingTask) {\n            this.ganttChart = null;\n            return;\n          }\n          const canManageUsersAndWorkers = this.selectedProjects.every(p => this.newFeatureFlags.includesFeatureFlags(p, 'canManageWorkers', 'canManageUsers'));\n          const canViewUsersAndWorkers = canManageUsersAndWorkers || this.selectedProjects.every(p => this.newFeatureFlags.includesFeatureFlags(p, 'canUseWorkers', 'canUseUsers'));\n          const canUseProgress = this.selectedProjects.every(p => this.newFeatureFlags.includesFeatureFlags(p, 'canUseProgressPage'));\n          const columns = [{\n            type: 'name',\n            width: 250\n          }, {\n            type: 'startdate'\n          }, {\n            type: 'enddate',\n            hidden: true\n          }, {\n            type: 'duration'\n          }];\n          if (canViewUsersAndWorkers) {\n            columns.push({\n              type: 'resourceassignment',\n              width: 120,\n              showAvatars: true\n            });\n          } else if (canManageUsersAndWorkers) {\n            columns.push({\n              type: 'resourceassignment',\n              width: 120,\n              showAvatars: true,\n              readOnly: true,\n              editor: {\n                readOnly: true,\n                picker: false\n              }\n            });\n          }\n          if (canUseProgress) columns.push({\n            type: 'percentdone',\n            showCircle: true,\n            readOnly: true,\n            width: 70\n          });\n          const taskMenu = {\n            items: {\n              cut: false,\n              copy: false,\n              paste: false,\n              add: false,\n              indent: false,\n              outdent: false\n            }\n          };\n          if (canUseProgress) taskMenu.items.progress = {\n            separator: true,\n            text: this.intl.t('entity.builda-price.scheduling.timeline.Set progress'),\n            icon: 'fa fa-percent',\n            onItem({\n              taskRecord\n            }) {\n              window.open(_this.router.urlFor('entity.builda-price.projects.project.progress', taskRecord.data.project), '_blank');\n            }\n          };\n          if (this.model.user.last.value?.language?.toLowerCase().startsWith('zh')) {\n            _gantt.LocaleManager.applyLocale('ZhCN', _ganttLocaleZhCn.default);\n          } else {\n            _gantt.LocaleManager.applyLocale('En', {\n              DateHelper: {\n                locale: 53 // http://www.iana.org/assignments/language-subtag-registry/language-subtag-registry\n              },\n              ProjectLines: {\n                'Project Start': 'Start Date',\n                'Project End': 'End Date'\n              }\n            });\n          }\n          (0, _runloop.next)(() => {\n            this.ganttChart = new _gantt.Gantt({\n              smoothZoom: true,\n              visibleDate: {\n                date: new Date(),\n                block: 'center'\n              },\n              appendTo: 'gantt-chart-container',\n              scrollTaskIntoViewOnCellClick: {\n                block: 'start',\n                animate: true,\n                highlight: true\n              },\n              columns,\n              project: {\n                autoLoad: true,\n                autoSync: false,\n                trackProjectSettings: false,\n                listeners: {\n                  loadStart: () => this.ganttIsLoading = true,\n                  load: () => this.ganttIsLoading = false,\n                  loadFail: () => this.ganttIsLoading = false,\n                  loadCanceled: () => this.ganttIsLoading = false\n                },\n                stm: {\n                  autoRecord: true,\n                  listeners: {\n                    recordingstop: ({\n                      stm\n                    }) => {\n                      this.redoCount = stm.length - stm.position;\n                      this.undoCount = stm.position;\n                    },\n                    restoringstop: ({\n                      stm\n                    }) => {\n                      this.redoCount = stm.length - stm.position;\n                      this.undoCount = stm.position;\n                    },\n                    queueReset: () => {\n                      this.redoCount = 0;\n                      this.undoCount = 0;\n                    }\n                  }\n                },\n                resetUndoRedoQueuesAfterLoad: true,\n                silenceInitialCommit: false,\n                // https://bryntum.com/products/schedulerpro/docs/api/Scheduler/model/ProjectModel#config-silenceInitialCommit\n                autoCalculatePercentDoneForParentTasks: false,\n                transport: {\n                  load: {\n                    url: `${_environment.default.urls.api}${_environment.default.urls.apiV1Path}/gantt-chart/get-data`,\n                    method: 'GET',\n                    mode: 'cors',\n                    cache: 'no-cache',\n                    credentials: 'same-origin',\n                    referrerPolicy: 'no-referrer',\n                    params: {\n                      subjectEntityId: this.sessionData.entity.id,\n                      entityIds: [this.sessionData.entity.id],\n                      projectIds\n                    },\n                    headers: {\n                      'Content-Type': 'application/json',\n                      Authorization: `Bearer ${this.session.data.authenticated.access_token}`\n                    }\n                  },\n                  sync: {\n                    url: `${_environment.default.urls.api}${_environment.default.urls.apiV1Path}/gantt-chart/sync-data`,\n                    method: 'POST',\n                    mode: 'cors',\n                    cache: 'no-cache',\n                    credentials: 'same-origin',\n                    referrerPolicy: 'no-referrer',\n                    params: {\n                      subjectEntityId: this.sessionData.entity.id\n                    },\n                    headers: {\n                      'Content-Type': 'application/json',\n                      Authorization: `Bearer ${this.session.data.authenticated.access_token}`\n                    }\n                  }\n                }\n              },\n              /* start feature flags */\n              fillTicks: this.ganttFillTicksEnabled,\n              subGridConfigs: {\n                locked: {\n                  collapsed: this.ganttTableCollapsed && !this.ganttSubGridConfigsEnabled\n                },\n                normal: {\n                  collapsed: this.ganttSubGridConfigsEnabled\n                }\n              },\n              listeners: {\n                subGridCollapse: event => this.syncSubGridSetting(event, true),\n                subGridExpand: event => this.syncSubGridSetting(event, false)\n              },\n              showTaskColorPickers: true,\n              features: {\n                filter: true,\n                cellEdit: {\n                  addNewAtEnd: false // https://bryntum.com/products/grid/docs/#Grid/feature/CellEdit#config-addNewAtEnd\n                },\n                dependencyEdit: true,\n                // enable double clicking of dependency to edit to enable or disable dependencies\n                dependencies: {\n                  disabled: !this.ganttDependenciesEnabled\n                },\n                labels: {\n                  disabled: !this.ganttLabelsEnabled,\n                  left: {\n                    field: 'name'\n                  }\n                },\n                criticalPaths: {\n                  disabled: !this.ganttCriticalPathsEnabled\n                },\n                nonWorkingTime: {\n                  disabled: !this.ganttNonWorkingTimeEnabled\n                },\n                columnLines: {\n                  disabled: !this.ganttColumnLinesEnabled\n                },\n                rollups: {\n                  disabled: !this.ganttRollupsEnabled\n                },\n                progressLine: {\n                  disabled: !this.ganttProgressLineEnabled\n                },\n                parentArea: {\n                  disabled: !this.ganttParentAreaEnabled\n                },\n                /* start custom feature config */\n                timeRanges: {\n                  showCurrentTimeLine: {\n                    name: 'Today',\n                    cls: 'fa fa-flag'\n                  }\n                },\n                projectLines: {\n                  'Project Start': 'start date',\n                  'Project End': 'end date'\n                },\n                percentBar: {\n                  allowResize: false\n                },\n                rowReorder: false,\n                pdfExport: {\n                  exportDialog: {\n                    items: {\n                      orientationField: {\n                        value: 'landscape'\n                      },\n                      rowsRangeField: {\n                        hidden: true\n                      },\n                      scheduleRangeField: {\n                        hidden: true\n                      }\n                    }\n                  },\n                  exportServer: _environment.default.urls.ganttExportServer,\n                  clientURL: window.location.origin,\n                  translateURLsToAbsolute: window.location.origin,\n                  sendAsBinary: true\n                  // Docker run locally\n                  // translateURLsToAbsolute: 'http://192.168.210.XX:4200/',\n                },\n                taskMenu,\n                taskEdit: {\n                  items: {\n                    generalTab: {\n                      items: {\n                        percentDone: {\n                          readOnly: true\n                        },\n                        startDate: {\n                          format: this.intl.t('date.slashDayFirst')\n                        },\n                        endDate: {\n                          format: this.intl.t('date.slashDayFirst')\n                        },\n                        effort: {\n                          readOnly: true\n                        }\n                      }\n                    },\n                    resourcesTab: {\n                      items: {\n                        toolbar: {\n                          items: {\n                            add: {\n                              disabled: !canManageUsersAndWorkers\n                            },\n                            remove: {\n                              disabled: !canManageUsersAndWorkers\n                            }\n                          }\n                        }\n                      }\n                    },\n                    advancedTab: {\n                      items: {\n                        constraintDateField: {\n                          format: this.intl.t('date.slashDayFirst')\n                        }\n                      }\n                    }\n                  }\n                }\n              }\n            });\n            this.ganttChart.project.stm.enable();\n          });\n        }\n      }), {\n        keepLatest: true\n      }, \"initializeGanttChart\", null));\n    }\n    get projectsById() {\n      if (!this.model.projects.last.value) return {};\n      return this.model.projects.last.value.reduce((projects, p) => ({\n        ...projects,\n        [p.id]: p\n      }), {});\n    }\n    get selectedProjects() {\n      if (!this.model.projects.last.value) return [];\n      const projectIds = this.selected_projects?.split(',') || [];\n      const projects = [];\n      projectIds.forEach(projectId => {\n        const project = this.projectsById[projectId];\n        if (project) projects.push(project);\n      });\n      return projects;\n    }\n    set selectedProjects(projects = []) {\n      if (!projects.length) {\n        (0, _object.set)(this, 'selected_projects', null);\n        return;\n      }\n      const projectIds = projects.map(p => p.id).join(',');\n      (0, _object.set)(this, 'selected_projects', projectIds);\n    }\n    get isLoading() {\n      return this.model.projects.isRunning || this.model.user.isRunning;\n    }\n    get projectIsSetting() {\n      return this.onSetProjects.isRunning || this.onSyncGantt.isRunning || this.ganttIsLoading;\n    }\n    get ganttChartIsVisible() {\n      return this.selectedProjects.length > 0;\n    }\n    get manageableProjects() {\n      // TODO this is the wrong permission probably\n      return this.selectedProjects?.filter(p => this.newFeatureFlags.includesSomeFeatureFlags(p, 'canManageTasks')) || [];\n    }\n    get canUseImportAndManage() {\n      return this.manageableProjects.length > 0;\n    }\n    get ganttFillTicksEnabled() {\n      return this._ganttFillTicksEnabled;\n    }\n    set ganttFillTicksEnabled(value) {\n      this._ganttFillTicksEnabled = value;\n      this.persistedSettings.set('ganttFillTicksEnabled', value);\n      this.ganttChart.fillTicks = value;\n    }\n    get ganttSubGridConfigsEnabled() {\n      return this._ganttSubGridConfigsEnabled;\n    }\n    set ganttSubGridConfigsEnabled(value) {\n      this._ganttSubGridConfigsEnabled = value;\n      this.persistedSettings.set('ganttSubGridConfigsEnabled', value);\n      this.ganttChart.subGrids.normal.collapsed = value;\n\n      // the table and the schedule can't both be hidden\n      if (value && this.ganttTableCollapsed) this.ganttTableCollapsed = false;\n    }\n    get ganttTableCollapsed() {\n      return this._ganttTableCollapsed;\n    }\n    set ganttTableCollapsed(value) {\n      this._ganttTableCollapsed = value;\n      this.persistedSettings.set('ganttTableCollapsed', value);\n      this.ganttChart.subGrids.locked.collapsed = value;\n      if (value && this.ganttSubGridConfigsEnabled) this.ganttSubGridConfigsEnabled = false;\n    }\n    get ganttDependenciesEnabled() {\n      return this._ganttDependenciesEnabled;\n    }\n    set ganttDependenciesEnabled(value) {\n      this._ganttDependenciesEnabled = value;\n      this.persistedSettings.set('ganttDependenciesEnabled', value);\n      this.ganttChart.features.dependencies.disabled = !value;\n    }\n    get ganttLabelsEnabled() {\n      return this._ganttLabelsEnabled;\n    }\n    set ganttLabelsEnabled(value) {\n      this._ganttLabelsEnabled = value;\n      this.persistedSettings.set('ganttLabelsEnabled', value);\n      this.ganttChart.features.labels.disabled = !value;\n    }\n    get ganttCriticalPathsEnabled() {\n      return this._ganttCriticalPathsEnabled;\n    }\n    set ganttCriticalPathsEnabled(value) {\n      this._ganttCriticalPathsEnabled = value;\n      this.persistedSettings.set('ganttCriticalPathsEnabled', value);\n      this.ganttChart.features.criticalPaths.disabled = !value;\n    }\n    get ganttNonWorkingTimeEnabled() {\n      return this._ganttNonWorkingTimeEnabled;\n    }\n    set ganttNonWorkingTimeEnabled(value) {\n      this._ganttNonWorkingTimeEnabled = value;\n      this.persistedSettings.set('ganttNonWorkingTimeEnabled', value);\n      this.ganttChart.features.nonWorkingTime.disabled = !value;\n    }\n    get ganttColumnLinesEnabled() {\n      return this._ganttColumnLinesEnabled;\n    }\n    set ganttColumnLinesEnabled(value) {\n      this._ganttColumnLinesEnabled = value;\n      this.persistedSettings.set('ganttColumnLinesEnabled', value);\n      this.ganttChart.features.columnLines.disabled = !value;\n    }\n    get ganttRollupsEnabled() {\n      return this._ganttRollupsEnabled;\n    }\n    set ganttRollupsEnabled(value) {\n      this._ganttRollupsEnabled = value;\n      this.persistedSettings.set('ganttRollupsEnabled', value);\n      this.ganttChart.features.rollups.disabled = !value;\n    }\n    get ganttProgressLineEnabled() {\n      return this._ganttProgressLineEnabled;\n    }\n    set ganttProgressLineEnabled(value) {\n      this._ganttProgressLineEnabled = value;\n      this.persistedSettings.set('ganttProgressLineEnabled', value);\n      this.ganttChart.features.progressLine.disabled = !value;\n    }\n    get ganttParentAreaEnabled() {\n      return this._ganttParentAreaEnabled;\n    }\n    set ganttParentAreaEnabled(value) {\n      this._ganttParentAreaEnabled = value;\n      this.persistedSettings.set('ganttParentAreaEnabled', value);\n      this.ganttChart.features.parentArea.disabled = !value;\n    }\n    toggleSetting(key, event) {\n      this[key] = !this[key];\n      event.stopPropagation();\n      event.preventDefault();\n    }\n\n    // the splitter's own collapse buttons go straight to the gantt, so mirror\n    // them back without re-running the setters\n    syncSubGridSetting({\n      subGrid\n    }, collapsed) {\n      const key = {\n        locked: 'ganttTableCollapsed',\n        normal: 'ganttSubGridConfigsEnabled'\n      }[subGrid.region];\n      if (!key) return;\n      this[`_${key}`] = collapsed;\n      this.persistedSettings.set(key, collapsed);\n    }\n    noop(event) {\n      event.stopPropagation();\n      event.preventDefault();\n    }\n    onZoomInClick() {\n      this.ganttChart.zoomIn();\n    }\n    onZoomOutClick() {\n      this.ganttChart.zoomOut();\n    }\n    onCollapseAllClick() {\n      this.ganttChart.expandAll();\n    }\n    onUndo() {\n      if (this.ganttChart.project.stm.canUndo) this.ganttChart.project.stm.undo();\n    }\n    onRedo() {\n      if (this.ganttChart.project.stm.canRedo) this.ganttChart.project.stm.redo();\n    }\n    onExpandAllClick() {\n      this.ganttChart.collapseAll();\n    }\n    onShiftPreviousClick() {\n      this.ganttChart.shiftPrevious();\n    }\n    onShiftNextClick() {\n      this.ganttChart.shiftNext();\n    }\n    onZoomToFitClick() {\n      this.ganttChart.zoomToFit({\n        leftMargin: 50,\n        rightMargin: 50\n      });\n    }\n    onGoToTodayClick() {\n      this.ganttChart.visibleDate = {\n        date: new Date(),\n        block: 'center'\n      };\n    }\n    onSearchChange(event) {\n      this.searchString = event.target.value;\n      if (event.target.value === '') {\n        this.searchFilterRegex = new RegExp('(.*?)');\n      } else {\n        const searchValue = event.target.value.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&');\n        this.searchFilterRegex = new RegExp(searchValue, 'i');\n      }\n      this.ganttChart.store.filter({\n        filters: task => task.name.match(this.searchFilterRegex),\n        replace: true\n      });\n    }\n\n    // copy from gantt.module.js\n    formatDuration(duration, nbrDecimals) {\n      const multiplier = Math.pow(10, nbrDecimals);\n      return Math.round(duration * multiplier) / multiplier;\n    }\n    downloadPDF() {\n      this.ganttChart.features.pdfExport.showExportDialog();\n    }\n    async onTaskImportModalClose(reloadProject) {\n      if (reloadProject) await this.initializeGanttChart.perform();\n      this.taskImportModalVisible = false;\n    }\n    onSetProjects(projects) {\n      const confirmChange = Boolean(this.selectedProjects.length && this.undoCount);\n      if (confirmChange && !confirm(this.intl.t('entity.builda-price.scheduling.timeline.youHaveUnsavedChangesThatWillBeLostIfYouDecideToSelectAnotherProjectDoYouWantContinue'))) return;\n      this.undoCount = 0;\n      this.redoCount = 0;\n      this.selectedProjects = projects;\n\n      // treat this like a side effect so people can keep selecting projects without waiting for the gantt to load\n      this.initializeGanttChart.perform();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"persistedSettings\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"ganttChart\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"taskImportModalVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"searchFilterRegex\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return new RegExp('(.*?)');\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"undoCount\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"redoCount\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"ganttIsLoading\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"selected_projects\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"selectedProjects\", [_dec2], Object.getOwnPropertyDescriptor(_class2.prototype, \"selectedProjects\"), _class2.prototype), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"_ganttFillTicksEnabled\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.persistedSettings.get('ganttFillTicksEnabled');\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, \"_ganttSubGridConfigsEnabled\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.persistedSettings.get('ganttSubGridConfigsEnabled');\n    }\n  }), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, \"_ganttTableCollapsed\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.persistedSettings.get('ganttTableCollapsed');\n    }\n  }), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, \"_ganttDependenciesEnabled\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.persistedSettings.get('ganttDependenciesEnabled') ?? true;\n    }\n  }), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, \"_ganttLabelsEnabled\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.persistedSettings.get('ganttLabelsEnabled') ?? true;\n    }\n  }), _descriptor19 = _applyDecoratedDescriptor(_class2.prototype, \"_ganttCriticalPathsEnabled\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.persistedSettings.get('ganttCriticalPathsEnabled');\n    }\n  }), _descriptor20 = _applyDecoratedDescriptor(_class2.prototype, \"_ganttNonWorkingTimeEnabled\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.persistedSettings.get('ganttNonWorkingTimeEnabled') ?? true;\n    }\n  }), _descriptor21 = _applyDecoratedDescriptor(_class2.prototype, \"_ganttColumnLinesEnabled\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.persistedSettings.get('ganttColumnLinesEnabled') ?? true;\n    }\n  }), _descriptor22 = _applyDecoratedDescriptor(_class2.prototype, \"_ganttRollupsEnabled\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.persistedSettings.get('ganttRollupsEnabled');\n    }\n  }), _descriptor23 = _applyDecoratedDescriptor(_class2.prototype, \"_ganttProgressLineEnabled\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.persistedSettings.get('ganttProgressLineEnabled');\n    }\n  }), _descriptor24 = _applyDecoratedDescriptor(_class2.prototype, \"_ganttParentAreaEnabled\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.persistedSettings.get('ganttParentAreaEnabled');\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"toggleSetting\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"toggleSetting\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"syncSubGridSetting\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"syncSubGridSetting\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"noop\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"noop\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onZoomInClick\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onZoomInClick\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onZoomOutClick\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onZoomOutClick\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onCollapseAllClick\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onCollapseAllClick\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onUndo\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onUndo\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onRedo\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onRedo\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onExpandAllClick\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onExpandAllClick\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onShiftPreviousClick\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onShiftPreviousClick\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onShiftNextClick\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onShiftNextClick\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onZoomToFitClick\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onZoomToFitClick\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onGoToTodayClick\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onGoToTodayClick\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onSearchChange\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onSearchChange\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"downloadPDF\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"downloadPDF\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onTaskImportModalClose\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onTaskImportModalClose\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onSetProjects\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onSetProjects\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/disabled\", [\"exports\", \"@ember/controller\", \"@ember/service\", \"@ember/object\"], function (_exports, _controller, _service, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _service.inject)(), _dec2 = (0, _service.inject)(), _dec3 = (0, _service.inject)(), _dec4 = (0, _service.inject)(), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"session\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"chargebee\", _descriptor3, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor4, this);\n    }\n    get hasChargebeeSubscription() {\n      // TODO also check if the user is able to manage the subscription\n      return this.chargebee.ready;\n    }\n    logout() {\n      this.session.invalidate();\n    }\n    openChargebee() {\n      try {\n        this.chargebee.open();\n      } catch (error) {\n        this.notifications.error({\n          message: 'Could not open subscription management portal',\n          error\n        });\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"chargebee\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"logout\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"logout\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"openChargebee\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"openChargebee\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/financials\", [\"exports\", \"@ember/controller\", \"@ember/service\", \"portal/utils/platform\"], function (_exports, _controller, _service, _platform) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\",0,\"portal/utils/platform\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n    }\n    get buildaPriceLogoSrc() {\n      return _platform.BRANDING.BUILDA_PRICE.logo;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/controllers/entity/financials/chart-of-accounts\", [\"exports\", \"@ember/controller\", \"@ember/service\", \"@ember/utils\", \"@ember/object\", \"rsvp\", \"jquery\", \"portal/utils/nest\"], function (_exports, _controller, _service, _utils, _object, _rsvp, _jquery, _nest) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\",0,\"@ember/utils\",0,\"@ember/object\",0,\"rsvp\",0,\"jquery\",0,\"portal/utils/nest\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({\n    sessionData: (0, _service.inject)(),\n    notifications: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    isLoading: false,\n    isSaving: false,\n    nestedAccounts: (0, _object.computed)('debitCredit', 'model.[]', 'parent.debitCredit', function () {\n      var accounts = (0, _object.get)(this, 'model');\n      if ((0, _utils.isEmpty)(accounts)) {\n        return [];\n      }\n      accounts.forEach(account => {\n        account.setProperties({\n          tmpId: (0, _object.get)(account, 'id') || Math.floor(Math.random() * Math.pow(10, 10)).toString(),\n          debitCreditMatchesParent: (0, _object.computed)('debitCredit', 'parent.debitCredit', function () {\n            return (0, _object.get)(this, 'debitCredit') === (0, _object.get)(this, 'parent.debitCredit');\n          })\n        });\n      });\n      var childAccounts = accounts.filter(account => {\n        return (0, _utils.isEmpty)((0, _object.get)(account, 'parent').content);\n      });\n      accounts = {\n        'profit-and-loss': (0, _nest.default)(childAccounts.filterBy('category', 'profit-and-loss'), accounts, 'tmpId'),\n        'balance-sheet': (0, _nest.default)(childAccounts.filterBy('category', 'balance-sheet'), accounts, 'tmpId'),\n        'other-data': (0, _nest.default)(childAccounts.filterBy('category', 'other-data'), accounts, 'tmpId')\n      };\n      return accounts;\n    }),\n    actions: {\n      addLine(category) {\n        category = category || 'profit-and-loss';\n        const accounts = (0, _object.get)(this, 'model').filterBy('category', category).sortBy('sortIndex');\n        const lastAccount = accounts.objectAt(accounts.length - 1);\n        const highestIndex = lastAccount ? (0, _object.get)(lastAccount, 'sortIndex') : -1;\n        const account = this.store.createRecord('account', {\n          sortIndex: highestIndex + 1,\n          debitCredit: lastAccount ? (0, _object.get)(lastAccount, 'debitCredit') || 'CREDIT' : 'CREDIT',\n          category: category,\n          parent: lastAccount ? (0, _object.get)(lastAccount, 'parent') || null : null,\n          status: 'ACTIVE',\n          format: 'CURRENCY',\n          periodic: category !== 'balance-sheet',\n          entity: (0, _object.get)(this, 'sessionData.entity')\n        });\n        (0, _object.get)(this, 'model').pushObject(account);\n      },\n      createChildAccount(account) {\n        var newAccount = {\n          name: '',\n          debitCredit: (0, _object.get)(account, 'debitCredit') || 'CREDIT',\n          isHeading: false,\n          sortIndex: (0, _object.get)(account, 'sortIndex') + 1,\n          category: (0, _object.get)(account, 'category'),\n          periodic: (0, _object.get)(account, 'periodic'),\n          parent: account,\n          status: 'ACTIVE',\n          format: (0, _object.get)(account, 'format') || 'CURRENCY',\n          entity: (0, _object.get)(this, 'sessionData.entity')\n        };\n        const createAccount = this.store.createRecord('account', newAccount);\n        (0, _object.get)(this, 'model').pushObject(createAccount);\n      },\n      deleteAccount(account) {\n        if ((0, _object.get)(account, 'isNew')) {\n          // If the account hasn't been saved yet, just remove it from the model.\n          (0, _object.get)(this, 'model').removeObject(account);\n          (0, _object.get)(this, 'notifications').success('Successfully removed account.');\n          return;\n        }\n        // Check cases where account should not be deleted.\n        if ((0, _object.get)(account, 'label') != null) {\n          // If the account is used in a kpi, do not let it be deleted.\n          (0, _object.get)(this, 'notifications').error('This account is used in a KPI calculation, it is unable to be deleted.');\n          return;\n        }\n        if ((0, _object.get)(account, 'children.length')) {\n          // If the account has children, do not let it be deleted.\n          (0, _object.get)(this, 'notifications').error('You are not able to delete an account with children.');\n          return;\n        }\n        (0, _object.set)(this, 'accountToDelete', account);\n        this.toggleProperty('isDeleting');\n      },\n      cancelDelete() {\n        (0, _object.set)(this, 'accountToDelete', null);\n        this.toggleProperty('isDeleting');\n      },\n      // This will be called after checking that the account can be deleted.\n      doDelete() {\n        const account = (0, _object.get)(this, 'accountToDelete');\n        const parentAccount = (0, _object.get)(this, 'model').findBy('id', (0, _object.get)(account, 'parent.id'));\n        if (!account || (0, _object.get)(account, 'isNew')) {\n          this.toggleProperty('isDeleting');\n          return;\n        }\n        (0, _object.set)(this, 'isSaving', true);\n        account.destroyRecord().then(() => {\n          (0, _object.get)(this, 'model').removeObject(account);\n          const remainingChildren = (0, _object.get)(this, 'model').filter(a => (0, _object.get)(a, 'parent.id') === (parentAccount, 'id'));\n          if ((0, _object.get)(remainingChildren, 'length')) return;\n          (0, _object.set)(parentAccount, 'isHeading', false);\n          return parentAccount.save();\n        }).then(() => {\n          (0, _object.get)(this, 'notifications').success('Successfully removed account.');\n          this.toggleProperty('isDeleting');\n          (0, _object.set)(this, 'isSaving', false);\n        }).catch(err => {\n          (0, _object.get)(this, 'notifications').error('Deletion of this account failed.');\n          this.toggleProperty('isDeleting');\n          (0, _object.set)(this, 'isSaving', false);\n          throw err;\n        });\n      },\n      save() {\n        const accounts = this.store.peekAll('account').filterBy('entity.id', (0, _object.get)(this, 'sessionData.entity.id'));\n        const profitAndLossData = (0, _jquery.default)('.coa-editor > ol.profit-and-loss-list').nestedSortable('toArray');\n        const balanceSheetData = (0, _jquery.default)('.coa-editor > ol.balance-sheet-list').nestedSortable('toArray');\n        const otherDataData = (0, _jquery.default)('.coa-editor > ol.other-data-list').nestedSortable('toArray');\n        (0, _object.set)(this, 'isSaving', true);\n        function setAccountProperties(line) {\n          const account = accounts.findBy('tmpId', line.item_id);\n          const parent = accounts.findBy('tmpId', line.parent_id);\n          if (account) {\n            (0, _object.set)(account, 'parent', parent);\n            (0, _object.set)(account, 'sortIndex', line.left);\n          }\n          if (parent) {\n            (0, _object.set)(parent, 'isHeading', true);\n          }\n        }\n        accounts.beginPropertyChanges();\n        profitAndLossData.forEach(setAccountProperties);\n        balanceSheetData.forEach(setAccountProperties);\n        otherDataData.forEach(setAccountProperties);\n        accounts.endPropertyChanges();\n        queuedSave(accounts).then(() => {\n          (0, _object.set)(this, 'isSaving', false);\n          (0, _object.get)(this, 'notifications').success('Accounts saved successfully.');\n        }, () => {\n          (0, _object.set)(this, 'isSaving', false);\n          (0, _object.get)(this, 'notifications').error('Accounts failed to save.');\n        });\n      },\n      toggleDebitCredit(account) {\n        var debitCredit = (0, _object.get)(account, 'debitCredit');\n        (0, _object.set)(account, 'debitCredit', debitCredit === 'CREDIT' ? 'DEBIT' : 'CREDIT');\n      }\n    }\n  });\n  function queuedSave(accounts) {\n    const promises = [];\n    accounts.forEach(account => {\n      // It the account doesn't have an unIDed parent\n      if ((0, _object.get)(account, 'parent').content === null || !(0, _utils.isEmpty)((0, _object.get)(account, 'parent.id'))) {\n        if ((0, _object.get)(account, 'hasDirtyAttributes')) {\n          const save = account.save();\n          promises.push(save);\n\n          // If this account is new\n          if ((0, _utils.isEmpty)((0, _object.get)(account, 'id'))) {\n            // Find its children\n            var children = accounts.filterBy('parent.tmpId', (0, _object.get)(account, 'tmpId'));\n            if (children.length) {\n              // And save them after this has finished saving\n              save.then(function () {\n                queuedSave(children, 1);\n              });\n            }\n          }\n        }\n      }\n    });\n    return _rsvp.default.all(promises);\n  }\n});","define(\"portal/controllers/entity/financials/dashboard-loading\", [\"exports\", \"portal/controllers/entity/financials/dashboard\"], function (_exports, _dashboard) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _dashboard.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"portal/controllers/entity/financials/dashboard\"eaimeta@70e063a35619d71f\n});","define(\"portal/controllers/entity/financials/dashboard\", [\"exports\", \"@ember/controller\", \"@ember/service\"], function (_exports, _controller, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({\n    sessionData: (0, _service.inject)()\n  });\n});","define(\"portal/controllers/entity/financials/general\", [\"exports\", \"@ember/object/computed\", \"@ember/controller\", \"@ember/object\", \"@ember/service\", \"portal/mixins/edit-record\", \"moment\"], function (_exports, _computed, _controller, _object, _service, _editRecord, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object/computed\",0,\"@ember/controller\",0,\"@ember/object\",0,\"@ember/service\",0,\"portal/mixins/edit-record\",0,\"moment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend(_editRecord.default, {\n    sessionData: (0, _service.inject)(),\n    firstClosedPeriodLabel: (0, _object.computed)('sessionData.entity.parent.id', function () {\n      const isTopLevel = !(0, _object.get)(this, 'sessionData.entity.parent.id');\n      return isTopLevel ? 'Hide group reports on and after' : 'Withhold data from groups on and after';\n    }),\n    firstClosedPeriodExplanation: (0, _object.computed)('sessionData.entity.parent.id', function () {\n      const isTopLevel = !(0, _object.get)(this, 'sessionData.entity.parent.id');\n      return isTopLevel ? 'Setting the First Closed Period will prevent branches from seeing group reports on or before the given period' : \"Setting the First Closed Period will prevent your branch's data from being included in group reports on or before the given period\";\n    }),\n    openAllPeriods: (0, _object.computed)('firstClosedPeriod', {\n      set(key, value) {\n        if (value) {\n          // Open all periods by clearing the firstClosedPeriod option\n          (0, _object.set)(this, 'model.firstClosedPeriod', null);\n        } else {\n          const month = (0, _object.get)(this, 'firstClosedMonth');\n          const year = (0, _object.get)(this, 'firstClosedYear');\n          this.setFirstClosedPeriod(month, year);\n        }\n        return value;\n      },\n      get() {\n        return (0, _object.get)(this, 'firstClosedPeriod') == null;\n      }\n    }),\n    firstClosedPeriod: (0, _computed.alias)('model.firstClosedPeriod'),\n    setFirstClosedPeriod(month, year) {\n      // Minus 1 because moment expects a 0-based month index\n      const firstClosedPeriod = (0, _moment.default)().month(month - 1).year(year).endOf('month').toDate();\n      (0, _object.set)(this, 'firstClosedPeriod', firstClosedPeriod);\n    },\n    firstClosedMonth: (0, _object.computed)('firstClosedPeriod', {\n      get() {\n        // Add 1 because moment returns a 0-based month index\n        return (0, _moment.default)((0, _object.get)(this, 'firstClosedPeriod') || new Date()).month() + 1;\n      },\n      set(key, month) {\n        this.setFirstClosedPeriod(month, (0, _object.get)(this, 'firstClosedYear'));\n        return month;\n      }\n    }),\n    firstClosedYear: (0, _object.computed)('firstClosedPeriod', {\n      get() {\n        return (0, _moment.default)((0, _object.get)(this, 'firstClosedPeriod') || new Date()).year();\n      },\n      set(key, year) {\n        this.setFirstClosedPeriod((0, _object.get)(this, 'firstClosedMonth'), year);\n        return year;\n      }\n    }),\n    balanceDate: (0, _object.computed)('model.balanceDate', {\n      get() {\n        return (0, _object.get)(this, 'model.balanceDate') || 0;\n      },\n      set(key, value) {\n        (0, _object.set)(this, 'model.balanceDate', value);\n        return value;\n      }\n    }),\n    years: (0, _object.computed)(function () {\n      const years = [];\n      const currentYear = (0, _moment.default)().year();\n      for (let i = -4; i < 2; i++) {\n        years.push(currentYear + i);\n      }\n      return years;\n    }),\n    months: [{\n      name: 'Not Set',\n      value: 0\n    }, {\n      name: 'January',\n      value: 1\n    }, {\n      name: 'February',\n      value: 2\n    }, {\n      name: 'March',\n      value: 3\n    }, {\n      name: 'April',\n      value: 4\n    }, {\n      name: 'May',\n      value: 5\n    }, {\n      name: 'June',\n      value: 6\n    }, {\n      name: 'July',\n      value: 7\n    }, {\n      name: 'August',\n      value: 8\n    }, {\n      name: 'September',\n      value: 9\n    }, {\n      name: 'October',\n      value: 10\n    }, {\n      name: 'November',\n      value: 11\n    }, {\n      name: 'December',\n      value: 12\n    }],\n    record: (0, _computed.alias)('model')\n  });\n});","define(\"portal/controllers/entity/financials/groups/access\", [\"exports\", \"portal/controllers/entity/financials/groups/membership\"], function (_exports, _membership) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/controllers/entity/financials/groups/membership\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _membership.default.extend({\n    propertyToToggle: 'canAccessGroup'\n  });\n});","define(\"portal/controllers/entity/financials/groups/membership\", [\"exports\", \"@ember/object/computed\", \"@ember/controller\", \"@ember/service\", \"rsvp\", \"@ember/utils\", \"@ember/object\"], function (_exports, _computed, _controller, _service, _rsvp, _utils, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object/computed\",0,\"@ember/controller\",0,\"@ember/service\",0,\"rsvp\",0,\"@ember/utils\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({\n    sessionData: (0, _service.inject)(),\n    notifications: (0, _service.inject)(),\n    newFeatureFlags: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    // If true, do not allow saving, editing, or deleting.\n    noEditGroups: (0, _object.computed)('newFeatureFlags.userCanNotEditFPGroups', function () {\n      return (0, _object.get)(this, 'newFeatureFlags.userCanNotEditFPGroups');\n    }),\n    propertyToToggle: 'isInGroup',\n    tableContent: (0, _object.computed)('group.canBeAccessedBy', 'group.members', 'model.branches.[]', 'model.groups.[]', 'propertyToToggle', function () {\n      const store = (0, _object.get)(this, 'store');\n      const groups = (0, _object.get)(this, 'model.groups');\n      const propertyName = (0, _object.get)(this, 'propertyToToggle');\n      const content = (0, _object.get)(this, 'model.branches').map(branch => {\n        const branchId = (0, _object.get)(branch, 'id');\n        (0, _object.set)(branch, 'groupData', []);\n        groups.forEach(group => {\n          const data = _object.default.extend({\n            group: group,\n            branch: branch,\n            isInGroup: (0, _object.computed)('group.members.[]', 'group.members.@each.isDeleted', {\n              get() {\n                const members = ((0, _object.get)(this, 'group').hasMany('members').value() || []).map(item => (0, _object.get)(item, 'entity'));\n                return members.findBy('id', branchId) != null;\n              },\n              set(key, value) {\n                const groupMembers = (0, _object.get)(this, 'group').hasMany('members').value();\n                const existingMember = groupMembers.find(item => {\n                  const entity = (0, _object.get)(item, 'entity');\n                  return (0, _object.get)(entity, 'id') === branchId;\n                });\n                if (value) {\n                  if (!existingMember) {\n                    const member = store.createRecord('link-entity-group-member', {\n                      entity: branch,\n                      entityGroup: group\n                    });\n                    groupMembers.pushObject(member);\n                  } else if ((0, _object.get)(existingMember, 'isDeleted')) {\n                    existingMember.rollbackAttributes();\n                  }\n                  return value;\n                }\n                if (!existingMember || (0, _object.get)(existingMember, 'isDeleted')) {\n                  return value;\n                }\n                if ((0, _object.get)(existingMember, 'isNew')) {\n                  groupMembers.removeObject(existingMember);\n                  existingMember.unloadRecord();\n                } else {\n                  existingMember.deleteRecord();\n                }\n                return value;\n              }\n            }),\n            canAccessGroup: (0, _object.computed)('group.canBeAccessedBy.[]', 'group.canBeAccessedBy.@each.isDeleted', {\n              get() {\n                const canBeAccessedBy = ((0, _object.get)(this, 'group').hasMany('canBeAccessedBy').value() || []).map(item => (0, _object.get)(item, 'entity'));\n                return canBeAccessedBy.findBy('id', branchId) != null;\n              },\n              set(key, value) {\n                const accessItems = (0, _object.get)(this, 'group').hasMany('canBeAccessedBy').value();\n                const existingAccess = accessItems.find(item => {\n                  const entity = (0, _object.get)(item, 'entity');\n                  return (0, _object.get)(entity, 'id') === branchId;\n                });\n                if (value) {\n                  if (!existingAccess) {\n                    const access = store.createRecord('link-entity-group-can-be-accessed-by', {\n                      entity: branch,\n                      entityGroup: group\n                    });\n                    accessItems.pushObject(access);\n                  } else if ((0, _object.get)(existingAccess, 'isDeleted')) {\n                    existingAccess.rollbackAttributes();\n                  }\n                  return value;\n                }\n                if (!existingAccess || (0, _object.get)(existingAccess, 'isDeleted')) {\n                  return value;\n                }\n                if ((0, _object.get)(existingAccess, 'isNew')) {\n                  accessItems.removeObject(existingAccess);\n                  existingAccess.unloadRecord();\n                } else {\n                  existingAccess.deleteRecord();\n                }\n                return value;\n              }\n            }),\n            propertyToToggle: (0, _computed.alias)(propertyName)\n          }).create();\n          (0, _object.get)(branch, 'groupData').pushObject(data);\n        });\n        return branch;\n      });\n      return content.sortBy('name');\n    }),\n    actions: {\n      addNewGroup() {\n        // If noEditGroups is set, then don't let them be created.\n        if ((0, _object.get)(this, 'noEditGroups')) return;\n        const group = this.store.createRecord('entity-group', {\n          parentEntity: (0, _object.get)(this, 'sessionData.entity')\n        });\n        (0, _object.get)(this, 'model.groups').pushObject(group);\n      },\n      deleteGroup(group) {\n        // If noEditGroups is set, then don't let them be deleted.\n        if ((0, _object.get)(this, 'noEditGroups')) return;\n        (0, _object.set)(this, 'groupBeingDeleted', group);\n      },\n      cancelDeleteGroup() {\n        (0, _object.set)(this, 'groupBeingDeleted', null);\n      },\n      confirmDeleteGroup(group) {\n        (0, _object.set)(this, 'isDeleting', true);\n        group.destroyRecord().then(() => {\n          (0, _object.set)(this, 'groupBeingDeleted', null);\n          (0, _object.get)(this, 'model.groups').removeObject(group);\n          (0, _object.set)(this, 'isDeleting', false);\n        }, reason => {\n          this.send('error', reason);\n          (0, _object.set)(this, 'groupBeingDeleted', null);\n          (0, _object.set)(this, 'isDeleting', false);\n        });\n      },\n      save() {\n        // If noEditGroups is set, then don't let them be saved.\n        if ((0, _object.get)(this, 'noEditGroups')) return;\n        const saveGroups = [];\n        const saveLinks = [];\n        const groups = (0, _object.get)(this, 'model.groups');\n\n        // If any group does not have a name\n        if (groups.map(group => (0, _utils.isEmpty)((0, _object.get)(group, 'name'))).includes(true)) {\n          (0, _object.get)(this, 'notifications').error('One of your groups does not have a name. Please give it a name before saving.');\n          return;\n        }\n        (0, _object.set)(this, 'isSaving', true);\n        groups.forEach(group => {\n          if ((0, _object.get)(group, 'isNew') || (0, _object.get)(group, 'hasDirtyAttributes')) {\n            saveGroups.push(group.save());\n          }\n          (0, _object.get)(group, 'members').forEach(item => {\n            if (item.isNew || item.isDeleted) {\n              saveLinks.push(item);\n            }\n          });\n          (0, _object.get)(group, 'canBeAccessedBy').forEach(item => {\n            if (item.isNew || item.isDeleted) {\n              saveLinks.push(item);\n            }\n          });\n        });\n        _rsvp.default.all(saveGroups).then(() => _rsvp.default.all(saveLinks.map(item => item.save()))).then(() => (0, _object.get)(this, 'notifications').success('All groups have been saved.')).catch(reason => this.send('error', reason)).finally(() => (0, _object.set)(this, 'isSaving', false));\n      }\n    }\n  });\n});","define(\"portal/controllers/entity/financials/groups/order\", [\"exports\", \"@ember/controller\", \"@ember/service\", \"@ember/object\", \"rsvp\"], function (_exports, _controller, _service, _object, _rsvp) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\",0,\"@ember/object\",0,\"rsvp\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({\n    notifications: (0, _service.inject)(),\n    newFeatureFlags: (0, _service.inject)(),\n    // If true, do not allow saving.\n    noEditGroups: (0, _object.computed)('newFeatureFlags.userCanNotEditFPGroups', function () {\n      return (0, _object.get)(this, 'newFeatureFlags.userCanNotEditFPGroups');\n    }),\n    isSaving: false,\n    actions: {\n      save() {\n        // Do not allow a save if noEditGroups is true.\n        if ((0, _object.get)(this, 'noEditGroups')) return;\n        const saveAll = (0, _object.get)(this, 'model.groups').map(group => group.save());\n        (0, _object.set)(this, 'isSaving', true);\n        _rsvp.default.all(saveAll).then(() => (0, _object.get)(this, 'notifications').success('Group order has been saved.')).catch(reason => this.send('error', reason)).finally(() => (0, _object.set)(this, 'isSaving', false));\n      }\n    }\n  });\n});","define(\"portal/controllers/entity/financials/import\", [\"exports\", \"@ember/controller\", \"@ember/object\"], function (_exports, _controller, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({\n    hasOtherData: (0, _object.computed)('model.[]', function () {\n      const otherDataAccounts = (0, _object.get)(this, 'model').filterBy('category', 'other-data');\n      return (0, _object.get)(otherDataAccounts, 'length') > 0;\n    })\n  });\n});","define(\"portal/controllers/entity/financials/import/data\", [\"exports\", \"@ember/object/computed\", \"@ember/service\", \"@ember/controller\", \"@ember/object\", \"@ember/utils\", \"rsvp\", \"jquery\", \"portal/utils/balance-calculator\", \"portal/config/environment\"], function (_exports, _computed, _service, _controller, _object, _utils, _rsvp, _jquery, balanceCalculator, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object/computed\",0,\"@ember/service\",0,\"@ember/controller\",0,\"@ember/object\",0,\"@ember/utils\",0,\"rsvp\",0,\"jquery\",0,\"portal/utils/balance-calculator\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  const {\n    default: calcBalances,\n    addValue\n  } = balanceCalculator;\n  var _default = _exports.default = _controller.default.extend({\n    application: (0, _controller.inject)(),\n    importController: (0, _controller.inject)('entity.financials.import'),\n    cache: (0, _service.inject)(),\n    session: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    notifications: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    router: (0, _service.inject)(),\n    /*\n     * Keeps track of maps that have been edited since the page was loaded.\n     * Push map objects here so that they will be saved when save and continue is clicked.\n     * Should be cleared after either saving (if save & continue was clicked),\n     * or refreshing (if step skipped or other step navigated to).\n     *\n     * This is in lieu of an Ember Data feature for tracking changes to relationships ala hasDirtyAttributes.\n     */\n    editedMaps: [],\n    steps: ['profit-and-loss', 'balance-sheet', 'other-data'],\n    stepName: (0, _object.computed)('step', function () {\n      return (0, _object.get)(this, 'step').replace(/-/g, ' ').replace(/^(\\w)|\\s(\\w)/g, w => w.toUpperCase());\n    }),\n    systems: [{\n      key: 'xero-csv',\n      label: 'Xero (CSV)',\n      multipleFiles: false,\n      visible: true\n    }, {\n      key: 'xero-api',\n      label: 'Xero (integration)',\n      multipleFiles: false,\n      visible: true\n    }, {\n      key: 'banklink',\n      label: 'BankLink',\n      multipleFiles: false,\n      visible: true\n    }, {\n      key: 'api',\n      label: 'Connected Application',\n      multipleFiles: false,\n      visible: true\n    }, {\n      key: 'eaccounts',\n      label: 'eAccounts',\n      multipleFiles: false,\n      visible: true\n    }, {\n      key: 'empower',\n      label: 'Empower',\n      multipleFiles: false,\n      visible: true\n    }, {\n      key: 'maxim',\n      label: 'Maxim',\n      multipleFiles: false,\n      visible: true\n    }, {\n      key: 'myob',\n      label: 'MYOB / MYOB AR',\n      multipleFiles: false,\n      visible: true\n    }, {\n      key: 'myob-ao',\n      label: 'MYOB AO',\n      multipleFiles: false,\n      visible: true\n    }, {\n      key: 'frameworks',\n      label: 'Frameworks',\n      multipleFiles: false,\n      visible: true\n    }, {\n      key: 'prostix',\n      label: 'ProStix',\n      multipleFiles: false,\n      visible: true\n    }, {\n      key: 'rees',\n      label: 'Rees',\n      multipleFiles: false,\n      visible: true\n    }, {\n      key: 'itm-manual',\n      label: 'ITM Manual',\n      multipleFiles: false,\n      visible: true\n    }, {\n      key: 'gj-gardner',\n      label: 'GJ Gardner',\n      multipleFiles: true,\n      visible: false\n    }],\n    visibleSystems: (0, _computed.filterBy)('systems', 'visible', true),\n    selectedSystem: (0, _object.computed)('model.import.system', 'sessionData.entity.system', 'systems', function () {\n      const systems = (0, _object.get)(this, 'systems');\n      const importSystem = systems.findBy('key', (0, _object.get)(this, 'model.import.system'));\n      const entitySystem = systems.findBy('key', (0, _object.get)(this, 'sessionData.entity.system'));\n      return importSystem || entitySystem || null;\n    }),\n    switchSystem: (0, _object.observer)('selectedSystem', function () {\n      const getBranch = (0, _object.get)(this, 'sessionData.branch');\n      if (getBranch) {\n        getBranch.then(branch => {\n          if (branch && (0, _object.get)(branch, 'hasDirtyAttributes')) {\n            branch.save();\n          }\n        });\n      }\n    }),\n    isConfiguring: (0, _object.computed)('selectedSystem', 'lastImport.length', function () {\n      const hasSelectedSystem = !(0, _utils.isEmpty)((0, _object.get)(this, 'selectedSystem'));\n      const hasImported = (0, _object.get)(this, 'lastImport.length') > 0;\n      return hasSelectedSystem && hasImported;\n    }),\n    unusedMaps: (0, _object.computed)('model.import.externalBalances.[]', 'model.maps.@each.account', 'step', function () {\n      const maps = (0, _object.get)(this, 'model.maps').rejectBy('account.id');\n      const extBals = (0, _object.get)(this, 'model.import.externalBalances') || [];\n      maps.forEach(map => {\n        const extBal = extBals.findBy('externalId', (0, _object.get)(map, 'externalId'));\n        if (extBal && (0, _object.get)(map, 'sourceBalance') !== extBal || (0, _object.get)(this, 'step') !== (0, _object.get)(map, 'step')) {\n          addValue(map, extBal, (0, _object.get)(this, 'step'));\n        }\n      });\n      return maps;\n    }),\n    accountList: (0, _object.computed)('isHeading', 'model.accounts', 'model.import.externalBalances.[]', 'model.maps.@each.account', 'step', function () {\n      const accounts = (0, _object.get)(this, 'model.accounts');\n      const maps = (0, _object.get)(this, 'model.maps');\n      const imp = (0, _object.get)(this, 'model.import');\n      const step = (0, _object.get)(this, 'step');\n      const balances = calcBalances(accounts, imp, maps, step);\n      accounts.forEach(account => {\n        const isHeading = (0, _object.get)(this, 'isHeading');\n        const colspan = isHeading ? 4 : 0;\n        const depth = this._getAccountDepth(account);\n        account.setProperties({\n          colspan,\n          depth\n        });\n        if (!isHeading) {\n          (0, _object.set)(account, 'balance', balances.findBy('account.id', (0, _object.get)(account, 'id')));\n        }\n      });\n      return accounts.sortBy('sortIndex');\n    }),\n    _getAccountDepth(account) {\n      let line = (0, _object.get)(account, 'parent');\n      let depth = 0;\n      while ((0, _object.get)(line, 'id') && depth <= 5) {\n        line = (0, _object.get)(line, 'parent');\n        depth += 1;\n      }\n      return depth;\n    },\n    importMaps(newMaps) {\n      const maps = (0, _object.get)(this, 'model.maps');\n\n      // Only add new maps if they don't already exist\n      newMaps.forEach(map => {\n        const mapsForSystem = maps.filterBy('system', map.system);\n        if (!mapsForSystem.findBy('externalId', map.externalId)) {\n          map.entity = (0, _object.get)(this, 'sessionData.entity');\n          const mapRecord = this.store.createRecord('account-map', map);\n          maps.pushObject(mapRecord);\n\n          // Queue the new map up for saving by considering it edited.\n          this.send('onEditMap', mapRecord);\n        }\n      });\n    },\n    importBalances(balances) {\n      const system = (0, _object.get)(this, 'selectedSystem') || {};\n      const systemKey = (0, _object.get)(system, 'key');\n      const previousSystemKey = (0, _object.get)(this, 'model.import.system');\n      (0, _object.set)(this, 'lastImport', balances);\n      (0, _object.set)(this, 'model.import.system', systemKey);\n      let newBalances = balances;\n      const shouldCombineBalances = (0, _object.get)(system, 'multipleFiles') && systemKey === previousSystemKey;\n      if (shouldCombineBalances) {\n        const oldBalances = (0, _object.get)(this, 'model.import.externalBalances') || [];\n        newBalances = this.combineBalances(oldBalances, newBalances);\n      }\n      (0, _object.set)(this, 'model.import.externalBalances', newBalances);\n    },\n    combineBalances(oldBals, newBals) {\n      const newBalExtIds = newBals.mapBy('externalId');\n      return [\n      // Filter out old balances that are also in the new balances\n      ...oldBals.filter(oldBal => !newBalExtIds.includes((0, _object.get)(oldBal, 'externalId'))), ...newBals];\n    },\n    actions: {\n      invertMap(...args) {\n        this.send('invertMap', ...args);\n      },\n      selectSystem(key) {\n        (0, _object.set)(this, 'model.import.system', key);\n        (0, _object.set)(this, 'sessionData.entity.system', key);\n      },\n      onEditMap(map) {\n        // Add the map to the list of edited maps if it isn't already there.\n        if (!(0, _object.get)(this, 'editedMaps').includes(map)) {\n          (0, _object.get)(this, 'editedMaps').pushObject(map);\n        }\n      },\n      toggleEditing() {\n        this.toggleProperty('isEditing');\n      },\n      toggleConfigPane(account) {\n        const id = (0, _object.get)(account, 'id');\n        (0, _jquery.default)('[data-account-id=' + id + ']').toggleClass('closed');\n      },\n      remap(mapId, balance, system) {\n        const map = (0, _object.get)(this, 'model.maps').find(item => item.get('externalId') === mapId && item.get('system') === system);\n        if (!map) {\n          this.send('error');\n          return;\n        }\n\n        // If this map has already been assigned to an account, remove the old relationship\n        const currentId = (0, _object.get)(map, 'account.id');\n        if (!(0, _utils.isEmpty)(currentId)) {\n          const account = (0, _object.get)(this, 'accountList').findBy('id', currentId);\n          const oldMaps = (0, _object.get)(account, 'balance.maps');\n          const oldMap = oldMaps.findBy('id', (0, _object.get)(map, 'id'));\n          oldMaps.removeObject(oldMap);\n        }\n\n        // Update the map to link to the new account (or nothing)\n        (0, _object.set)(map, 'account', balance ? (0, _object.get)(balance, 'account') : null);\n        if (!(0, _utils.isEmpty)(balance)) {\n          // Add map to account\n          (0, _object.get)(balance, 'maps').pushObject(map);\n        }\n        this.send('onEditMap', map);\n      },\n      import(data) {\n        this.importMaps(data.maps);\n        this.importBalances(data.balances);\n      },\n      save() {\n        const imp = (0, _object.get)(this, 'model.import');\n        const step = (0, _object.get)(this, 'step');\n        const allMaps = (0, _object.get)(this, 'model.maps');\n        // Only save maps that have been created or edited since arriving at this page.\n        const mapsToSave = [...(0, _object.get)(this, 'editedMaps'), ...allMaps.filterBy('hasDirtyAttributes')].uniq();\n        switch (step) {\n          case 'profit-and-loss':\n            (0, _object.set)(imp, 'includesProfitAndLoss', true);\n            break;\n          case 'balance-sheet':\n            (0, _object.set)(imp, 'includesBalanceSheet', true);\n            break;\n          case 'other-data':\n            (0, _object.set)(imp, 'includesOtherData', true);\n        }\n\n        // Get a list of manual balances from other steps\n        const accountList = (0, _object.get)(this, 'accountList');\n        const accountIds = accountList.mapBy('id');\n        const manBals = ((0, _object.get)(imp, 'manualBalances') || []).filter(b => !accountIds.includes(b.account));\n        // Fill in the manual balances on this page\n        (0, _object.get)(this, 'accountList').filterBy('balance.isManual').forEach(account => {\n          manBals.push({\n            account: (0, _object.get)(account, 'id'),\n            value: (0, _object.get)(account, 'balance.value')\n          });\n        });\n        (0, _object.set)(imp, 'manualBalances', manBals);\n        (0, _object.set)(this, 'isImporting', true);\n        const saveImport = imp.save();\n        const saveMaps = mapsToSave.map(map => map.save());\n        _rsvp.default.all([saveImport, ...saveMaps]).then(() => {\n          (0, _object.get)(this, 'cache').clear('reports'); // wipe the local cache\n\n          const branch = (0, _object.get)(this, 'sessionData.entity.id');\n          const url = _environment.default.urls.api + _environment.default.urls.apiV1Path + `/reports/update?entity=${branch}`;\n          const headers = {\n            Authorization: 'Bearer ' + (0, _object.get)(this, 'session.data.authenticated.access_token')\n          };\n          return _jquery.default.ajax({\n            contentType: 'application/json',\n            method: 'POST',\n            url,\n            headers\n          });\n        }).then(() => (0, _object.set)(this, 'editedMaps', [])).then(() => this.send('advance')).catch(reason => this.send('error', reason)).finally(() => (0, _object.set)(this, 'isImporting', false));\n      },\n      advance() {\n        const steps = (0, _object.get)(this, 'steps');\n        const step = (0, _object.get)(this, 'step');\n        const currentStep = steps.indexOf(step);\n        const hasOtherData = (0, _object.get)(this, 'importController.hasOtherData');\n        if (currentStep === steps.length - (hasOtherData ? 1 : 2)) {\n          this.router.transitionTo('entity.financials.import.done');\n        } else {\n          this.router.transitionTo('entity.financials.import.data', steps[currentStep + 1]);\n        }\n      }\n    }\n  });\n});","define(\"portal/controllers/entity/financials/import/start\", [\"exports\", \"@ember/service\", \"@ember/controller\"], function (_exports, _service, _controller) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"@ember/controller\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({\n    sessionData: (0, _service.inject)(),\n    router: (0, _service.inject)(),\n    importController: (0, _controller.inject)('entity.financials.import'),\n    actions: {\n      advance() {\n        this.router.transitionTo('entity.financials.import.data', 'profit-and-loss');\n      }\n    }\n  });\n});","define(\"portal/controllers/entity/financials/kpis\", [\"exports\", \"@ember/controller\", \"@ember/service\", \"jquery\", \"rsvp\", \"@ember/object\"], function (_exports, _controller, _service, _jquery, _rsvp, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\",0,\"jquery\",0,\"rsvp\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({\n    notifications: (0, _service.inject)(),\n    isSaving: false,\n    cache: (0, _service.inject)(),\n    sort() {\n      (0, _jquery.default)('.master-detail > aside li').each((index, li) => {\n        const id = (0, _jquery.default)(li).attr('data-id');\n        const item = (0, _object.get)(this, 'content').findBy('id', id);\n        if (item) {\n          (0, _object.set)(item, 'sortIndex', index);\n        }\n      });\n    },\n    actions: {\n      save() {\n        const saveAll = (0, _object.get)(this, 'model').map(kpi => kpi.save());\n        (0, _object.set)(this, 'isSaving', true);\n        _rsvp.default.all(saveAll).then(() => (0, _object.get)(this, 'notifications').success('KPI was saved successfully.')).then(() => (0, _object.get)(this, 'cache').clear('reports')).catch(reason => this.send('error', reason)).finally(() => (0, _object.set)(this, 'isSaving', false));\n      }\n    }\n  });\n});","define(\"portal/controllers/entity/financials/kpis/kpi\", [\"exports\", \"@ember/controller\", \"@ember/object/computed\", \"portal/mixins/edit-record\"], function (_exports, _controller, _computed, _editRecord) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/object/computed\",0,\"portal/mixins/edit-record\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend(_editRecord.default, {\n    record: (0, _computed.alias)('model'),\n    messages: {\n      save: {\n        success: 'The KPI was saved successfully.',\n        error: 'The KPI failed to save.'\n      },\n      delete: {\n        success: 'The KPI was deleted successfully.',\n        error: 'The KPI failed to delete.'\n      }\n    },\n    transitionToOnSave: '',\n    transitionToOnDelete: ''\n  });\n});","define(\"portal/controllers/entity/financials/planning/strategies\", [\"exports\", \"@ember/controller\", \"@ember/array\", \"@ember/service\", \"@ember/object\", \"rsvp\", \"@ember/utils\", \"moment\", \"portal/models/account\", \"portal/models/kpi\", \"portal/utils/sort-accounts\"], function (_exports, _controller, _array, _service, _object, _rsvp, _utils, _moment, _account, _kpi, _sortAccounts) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/array\",0,\"@ember/service\",0,\"@ember/object\",0,\"rsvp\",0,\"@ember/utils\",0,\"moment\",0,\"portal/models/account\",0,\"portal/models/kpi\",0,\"portal/utils/sort-accounts\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({\n    notifications: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    monthVisible: true,\n    ytdVisible: true,\n    focusToggle: true,\n    targets: (0, _object.computed)('model.targets.[]', function () {\n      const model = (0, _object.get)(this, 'model.targets');\n      const targets = [];\n      model.forEach(source => {\n        const breakdown = (0, _array.A)((0, _object.get)(source, 'breakdown') || []);\n        let sourceValues = (0, _array.A)((0, _object.get)(source, 'values') || []);\n        if (!sourceValues.length) {\n          sourceValues = (0, _array.A)([{\n            periodType: 'month',\n            targetValue: 0,\n            actualValue: 0\n          }, {\n            periodType: 'ytd',\n            targetValue: 0,\n            actualValue: 0\n          }]);\n        }\n        (0, _object.set)(source, 'breakdown', breakdown);\n        (0, _object.set)(source, 'values', sourceValues);\n        const isBalanceTarget = (0, _object.get)(source, 'account.id') != null;\n        const isKpiTarget = (0, _object.get)(source, 'kpi.id') != null;\n        const metric = isBalanceTarget ? (0, _object.get)(source, 'account') : (0, _object.get)(source, 'kpi');\n        const category = (0, _object.get)(source, 'account.category');\n        const debitCredit = (0, _object.get)(source, 'account.debitCredit');\n        const target = _object.default.extend({\n          id: (0, _object.get)(source, 'id'),\n          name: (0, _object.get)(metric, 'name'),\n          showYtd: isKpiTarget || (0, _object.get)(metric, 'periodic'),\n          metric,\n          isBalanceTarget,\n          isKpiTarget,\n          hasBreakdown: isKpiTarget,\n          showBreakdown: false,\n          breakdown,\n          increaseIsGood: !isBalanceTarget || category === 'balance-sheet' === (debitCredit === 'DEBIT'),\n          values: (0, _object.computed)('source.values', function () {\n            return (0, _object.get)(source, 'values');\n          }),\n          monthTarget: (0, _object.computed)('values.@each.targetValue', computedValue('month', 'targetValue')),\n          monthActual: (0, _object.computed)('values.@each.actualValue', computedValue('month', 'actualValue')),\n          monthDifference: (0, _object.computed)('monthTarget', 'monthActual', computedDifference('monthActual', 'monthTarget')),\n          monthArrowClasses: (0, _object.computed)('monthDifference', computedArrow('monthDifference')),\n          ytdTarget: (0, _object.computed)('values.@each.targetValue', computedValue('ytd', 'targetValue')),\n          ytdActual: (0, _object.computed)('values.@each.actualValue', computedValue('ytd', 'actualValue')),\n          ytdDifference: (0, _object.computed)('ytdTarget', 'ytdActual', computedDifference('ytdActual', 'ytdTarget')),\n          ytdArrowClasses: (0, _object.computed)('ytdDifference', computedArrow('ytdDifference'))\n        }).create();\n        targets.pushObject(target);\n      });\n      return targets;\n    }),\n    accountTargets: (0, _object.computed)('targets', function () {\n      const balanceTargets = (0, _object.get)(this, 'targets').filterBy('isBalanceTarget');\n      return (0, _sortAccounts.default)(balanceTargets, 'metric.sortIndex', 'metric.category');\n    }),\n    untargetedAccounts: untargeted('model.accounts', 'accountTargets'),\n    kpiTargets: (0, _object.computed)('targets', function () {\n      return (0, _object.get)(this, 'targets').filterBy('isKpiTarget').sortBy('metric.sortIndex');\n    }),\n    untargetedKPIs: untargeted('model.kpis', 'kpiTargets'),\n    checkingEmpty(targets) {\n      const arrayOfResults = [];\n      targets.forEach(target => {\n        (0, _array.A)((0, _object.get)(target, 'values') || []).forEach(value => {\n          arrayOfResults.push(Boolean((0, _object.get)(value, 'targetValue')));\n        });\n      });\n      return arrayOfResults;\n    },\n    actions: {\n      addTarget(metric) {\n        const entity = (0, _object.get)(this, 'sessionData.entity');\n        let account, kpi;\n        if (metric instanceof _account.default) {\n          account = metric;\n        } else if (metric instanceof _kpi.default) {\n          kpi = metric;\n        }\n        const period = (0, _object.get)(this, 'sessionData.period');\n        const date = (0, _moment.default)(period, 'YYYY-MM').endOf('month').toDate();\n        const newTarget = this.store.createRecord('target', {\n          date,\n          entity: entity,\n          account,\n          kpi\n        });\n        newTarget.save().then(savedTarget => {\n          (0, _object.get)(this, 'model.targets').pushObject(savedTarget);\n        });\n      },\n      removeTarget(target) {\n        const targets = (0, _object.get)(this, 'model.targets');\n        const targetRecord = targets.findBy('id', (0, _object.get)(target, 'id'));\n\n        // Remove from the table\n        targets.removeObject(targetRecord);\n\n        // Delete server-side\n        return targetRecord.destroyRecord();\n      },\n      purgeEmptyBreakdownLines(target) {\n        const breakdown = (0, _array.A)((0, _object.get)(target, 'breakdown') || []);\n        const emptyLines = [];\n        breakdown.forEach(line => {\n          let empty = true;\n          Object.keys(line).forEach(field => {\n            if (!(0, _utils.isEmpty)(line[field])) {\n              empty = false;\n            }\n          });\n          if (empty) {\n            emptyLines.push(line);\n          }\n        });\n        emptyLines.forEach(line => {\n          breakdown.removeObject(line);\n        });\n      },\n      save() {\n        (0, _object.get)(this, 'model.targets').forEach(target => {\n          this.send('purgeEmptyBreakdownLines', target);\n        });\n        const empties = this.checkingEmpty((0, _object.get)(this, 'model.targets'));\n        if (!empties.includes(false)) {\n          const saveAll = (0, _object.get)(this, 'model.targets').map(target => target.save());\n          return _rsvp.default.all(saveAll).then(() => (0, _object.get)(this, 'notifications').success('Targets were saved successfully.')).catch(err => this.send('error', err));\n        } else {\n          (0, _object.get)(this, 'notifications').error('Some Targets were not completely filled in.');\n        }\n      }\n    }\n  });\n  function computedValue(periodType, field) {\n    return {\n      get() {\n        const values = (0, _object.get)(this, 'values').findBy('periodType', periodType);\n        if (!values) return null;\n        return (0, _object.get)(values, field);\n      },\n      set(key, value) {\n        const values = (0, _object.get)(this, 'values').findBy('periodType', periodType);\n        if (values) {\n          (0, _object.set)(values, field, Number(value));\n        }\n        return value;\n      }\n    };\n  }\n  function computedDifference(field1, field2) {\n    return function () {\n      const value1 = (0, _object.get)(this, field1);\n      const value2 = (0, _object.get)(this, field2);\n      if (isNaN(value1) || isNaN(value2) || value1 == null || value2 == null) {\n        return null;\n      }\n      return value1 - value2;\n    };\n  }\n  function computedArrow(field) {\n    return function () {\n      const value = (0, _object.get)(this, field);\n      const classes = ['fa'];\n      if (value > 0) {\n        classes.push('increase fa-arrow-up');\n      } else if (value < 0) {\n        classes.push('decrease fa-arrow-down');\n      } else if (value === 0) {\n        classes.push('constant');\n      }\n      return classes.join(' ');\n    };\n  }\n  function untargeted(metricsKey, targetedKey) {\n    return (0, _object.computed)(metricsKey, targetedKey, function () {\n      const metrics = (0, _object.get)(this, metricsKey);\n      const targeted = (0, _object.get)(this, targetedKey).map(target => (0, _object.get)(target, 'metric.id'));\n      return metrics.reject(metric => targeted.includes((0, _object.get)(metric, 'id')));\n    });\n  }\n});","define(\"portal/controllers/entity/financials/reports/general-ledger/balance-sheet\", [\"exports\", \"portal/controllers/entity/financials/reports/general-ledger/generic\"], function (_exports, _generic) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/controllers/entity/financials/reports/general-ledger/generic\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _generic.default.extend({\n    category: 'balance-sheet',\n    dataKeyPrefix: 'b-s'\n  });\n});","define(\"portal/controllers/entity/financials/reports/general-ledger/generic\", [\"exports\", \"@ember/object/computed\", \"@ember/controller\", \"@ember/service\", \"@ember/object\", \"lodash\", \"portal/utils/csv-builder\"], function (_exports, _computed, _controller, _service, _object, _lodash, _csvBuilder) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object/computed\",0,\"@ember/controller\",0,\"@ember/service\",0,\"@ember/object\",0,\"lodash\",0,\"portal/utils/csv-builder\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({\n    sessionData: (0, _service.inject)(),\n    newFeatureFlags: (0, _service.inject)(),\n    accountSettings: [],\n    dataKeyPrefix: null,\n    monthVisible: true,\n    ytdVisible: true,\n    showBreakdown: false,\n    selectedMetric: null,\n    selectedGroup: null,\n    hideChildrenKey: (0, _object.computed)('dataKeyPrefix', function () {\n      return `${(0, _object.get)(this, 'dataKeyPrefix')}HideChildren`;\n    }),\n    canSeeBreakdown: (0, _object.computed)('newFeatureFlags.userCanSeeFPBreakdown', function () {\n      return (0, _object.get)(this, 'newFeatureFlags.userCanSeeFPBreakdown');\n    }),\n    colSpan: (0, _object.computed)('monthVisible', 'ytdVisible', function () {\n      return Math.max(1, (0, _object.get)(this, 'monthVisible') + (0, _object.get)(this, 'ytdVisible')); // boolean addition, min 1\n    }),\n    // Collection of entities, sorted initially but sort index.\n    orderedEntities: [],\n    initOrderedEntities: (0, _object.observer)('sessionData.branch.id', 'model.groups', function () {\n      if ((0, _object.get)(this, 'model')) {\n        (0, _object.set)(this, 'orderedEntities', (0, _object.get)(this, 'model.entities').sortBy('sortIndex'));\n      }\n    }),\n    // Take the list of accounts\n    accountsSortedByEntity: (0, _object.computed)('accountSettings', 'hideChildrenKey', 'model.nestedAccounts', 'orderedEntities', function () {\n      const accountSettings = (0, _object.get)(this, 'accountSettings');\n      const hideChildrenKey = (0, _object.get)(this, 'hideChildrenKey');\n\n      // function definition\n      const applySetting = function (account) {\n        const setting = accountSettings.find(setting => (0, _object.get)(setting, 'id') === (0, _object.get)(account, 'id')) || {};\n        const hide = (0, _object.get)(setting, hideChildrenKey) == null || (0, _object.get)(setting, hideChildrenKey);\n        (0, _object.set)(account, 'hideChildren', hide);\n        ((0, _object.get)(account, 'children') || []).forEach(applySetting);\n      };\n      if ((0, _object.get)(this, 'model')) {\n        const accounts = _lodash.default.cloneDeep((0, _object.get)(this, 'model.nestedAccounts'));\n        accounts.forEach(applySetting);\n        const orderedEntities = (0, _object.get)(this, 'orderedEntities');\n        sortByEntity(accounts, orderedEntities);\n        return accounts;\n      }\n    }),\n    profitAndLoss: (0, _computed.filterBy)('accountsSortedByEntity', 'category', 'profit-and-loss'),\n    balanceSheet: (0, _computed.filterBy)('accountsSortedByEntity', 'category', 'balance-sheet'),\n    otherData: (0, _computed.filterBy)('accountsSortedByEntity', 'category', 'other-data'),\n    // Can be overwritten if for non devault behavior\n    pageAsCSV(meta) {\n      // Use default CSV builder\n      return (0, _csvBuilder.default)(meta, (0, _object.get)(this, 'orderedEntities'), (0, _object.get)(this, 'accountsSortedByEntity'));\n    },\n    actions: {\n      downloadSheet() {\n        const category = (0, _object.get)(this, 'category');\n        const entityName = (0, _object.get)(this, 'sessionData.entity.name');\n        const period = (0, _object.get)(this, 'sessionData.period');\n        const meta = {\n          entityName: (0, _object.get)(this, 'sessionData.entity.name'),\n          userEmail: (0, _object.get)(this, 'sessionData.user.email'),\n          category,\n          period\n        };\n        const file = this.pageAsCSV(meta);\n        const fileName = `${entityName}-${category}-${period}.csv`;\n        (0, _csvBuilder.downloadCSV)(file, fileName);\n      },\n      toggleShowChildren(account) {\n        const hideChildrenKey = (0, _object.get)(this, 'hideChildrenKey');\n\n        // account.toggleProperty('hideChildren');\n        (0, _object.set)(account, 'hideChildren', Boolean(!(0, _object.get)(account, 'hideChildren')));\n        const accountSettings = (0, _object.get)(this, 'accountSettings');\n        const existingSetting = accountSettings.findBy('id', (0, _object.get)(account, 'id'));\n        if (existingSetting) {\n          existingSetting[hideChildrenKey] = (0, _object.get)(account, 'hideChildren');\n        } else {\n          const setting = {\n            id: (0, _object.get)(account, 'id'),\n            name: (0, _object.get)(account, 'name')\n          };\n          setting[hideChildrenKey] = (0, _object.get)(account, 'hideChildren');\n          accountSettings.push(setting);\n        }\n      },\n      togglePrintableTrue(balance) {\n        balance.toggleProperty('printable', true);\n      },\n      toggleShowBreakdown(metric, groupNumber, periodType) {\n        const group = (0, _object.get)(this, 'orderedEntities')[groupNumber];\n        (0, _object.set)(this, 'selectedMetric', metric);\n        (0, _object.set)(this, 'selectedGroup', group);\n        (0, _object.set)(this, 'selectedPeriodType', periodType);\n        this.toggleProperty('showBreakdown');\n      },\n      shiftFarLeft(entity) {\n        const orderedEntities = (0, _object.get)(this, 'orderedEntities');\n        const scopedToGroup = false; // todo - get(this, 'scope.stack.1.type') === 'group';\n\n        if (scopedToGroup) {\n          (0, _object.set)(this, 'orderedEntities', [entity, ...orderedEntities.removeObject(entity)]);\n          return;\n        }\n        if (entity === orderedEntities[0]) return;\n        const scopedEntity = orderedEntities[0];\n        const otherEntities = orderedEntities.removeObject(entity).removeObject(scopedEntity);\n        (0, _object.set)(this, 'orderedEntities', [scopedEntity, entity, ...otherEntities]);\n      }\n    }\n  });\n  function sortByEntity(accounts, orderedEntities) {\n    (accounts || []).forEach(account => {\n      const values = (0, _object.get)(account, 'data');\n      const hideChildren = (0, _object.get)(account, 'hideChildren');\n      const sortedValues = [];\n      orderedEntities.forEach(entity => {\n        const value = values.findBy('entity', (0, _object.get)(entity, 'id'));\n        sortedValues.push(value || {});\n      });\n      (0, _object.set)(account, 'data', sortedValues);\n      (0, _object.set)(account, 'hideChildren', hideChildren);\n      if ((0, _object.get)(account, 'children')) {\n        sortByEntity((0, _object.get)(account, 'children'), orderedEntities);\n      }\n    });\n  }\n});","define(\"portal/controllers/entity/financials/reports/general-ledger/itm-profit-and-loss\", [\"exports\", \"@ember/controller\", \"@ember/service\", \"@ember/object\", \"jquery\", \"portal/config/environment\", \"portal/utils/csv-builder\", \"portal/utils/email-validator\"], function (_exports, _controller, _service, _object, _jquery, _environment, csvBuilder, _emailValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\",0,\"@ember/object\",0,\"jquery\",0,\"portal/config/environment\",0,\"portal/utils/csv-builder\",0,\"portal/utils/email-validator\"eaimeta@70e063a35619d71f\n  const {\n    generateMetaDataRows,\n    downloadCSV\n  } = csvBuilder;\n  var _default = _exports.default = _controller.default.extend({\n    session: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    notifications: (0, _service.inject)(),\n    queryParams: ['selectedEntityIds', 'selectedGroupIds'],\n    ytdVisible: true,\n    monthVisible: true,\n    lastYearVisible: true,\n    percentageVisible: true,\n    profitAndLossTableVisible: true,\n    selectedGroupIds: [],\n    selectedGroups: [],\n    selectedEntityIds: [],\n    selectedEntities: [],\n    newUserData: {\n      firstName: '',\n      lastName: '',\n      email: ''\n    },\n    allowedEntities: (0, _object.computed)('sessionData.allowedEntities', 'sessionData.entity.parent.id', 'sessionData.entity.id', function () {\n      const parentId = (0, _object.get)(this, 'sessionData.entity.parent.id') || (0, _object.get)(this, 'sessionData.entity.id');\n      return (0, _object.get)(this, 'sessionData.allowedEntities').filter(e => e.includesClaims('canUseFinancialReporting') && (0, _object.get)(e, 'parent.id') === parentId).sortBy('name');\n    }),\n    financialsTableColspan: (0, _object.computed)('ytdVisible', 'monthVisible', 'lastYearVisible', 'percentageVisible', function () {\n      let result = 1;\n      if ((0, _object.get)(this, 'ytdVisible') && (0, _object.get)(this, 'monthVisible')) result = result * 2;\n      if ((0, _object.get)(this, 'lastYearVisible')) result = result * 2;\n      return result;\n    }),\n    actions: {\n      createNewUser() {\n        const {\n          firstName,\n          lastName,\n          email\n        } = (0, _object.get)(this, 'newUserData');\n        const notifications = (0, _object.get)(this, 'notifications');\n        if (!firstName) return notifications.warning('You must supply a first name');\n        if (!email) return notifications.warning('You must supply an email address');\n        if (!(0, _emailValidator.default)(email)) return notifications.warning('You must supply a valid email address');\n        const payload = {\n          firstName,\n          lastName,\n          email,\n          entity: (0, _object.get)(this, 'sessionData.entity.id'),\n          isItmPLInvite: true\n        };\n        (0, _object.set)(this, 'isCreatingNewUser', true);\n        return createUserAjax(payload, (0, _object.get)(this, 'session.data.authenticated.access_token')).then(() => {\n          (0, _object.get)(this, 'notifications').success('The invitation has been sent. They have been notified by email.');\n          (0, _object.set)(this, 'userCreateModalVisible', false);\n          (0, _object.set)(this, 'newUserData', {});\n        }).catch(err => this.send('error', err)).finally(() => {\n          (0, _object.set)(this, 'isCreatingNewUser', false);\n        });\n      },\n      selectEntity(data) {\n        (0, _object.set)(this, 'selectedEntityIds', data.mapBy('id'));\n      },\n      selectGroup(data) {\n        (0, _object.set)(this, 'selectedGroupIds', data.mapBy('id'));\n      },\n      toggleShowChildren(account) {\n        (0, _object.set)(account, 'hideChildren', Boolean(!(0, _object.get)(account, 'hideChildren')));\n      },\n      setProfitAndLossTableVisible(boolean) {\n        (0, _object.set)(this, 'profitAndLossTableVisible', boolean);\n      },\n      toggleYtdVisible() {\n        (0, _object.set)(this, 'ytdVisible', !(0, _object.get)(this, 'ytdVisible'));\n        if (!(0, _object.get)(this, 'ytdVisible') && !(0, _object.get)(this, 'monthVisible')) {\n          (0, _object.set)(this, 'monthVisible', true);\n        }\n      },\n      toggleMonthVisible() {\n        (0, _object.set)(this, 'monthVisible', !(0, _object.get)(this, 'monthVisible'));\n        if (!(0, _object.get)(this, 'ytdVisible') && !(0, _object.get)(this, 'monthVisible')) {\n          (0, _object.set)(this, 'ytdVisible', true);\n        }\n      },\n      downloadSheet() {\n        const category = 'itm-custom-profit-and-loss';\n        const entityName = (0, _object.get)(this, 'sessionData.entity.name');\n        const period = (0, _object.get)(this, 'sessionData.period');\n        const meta = {\n          entityName: (0, _object.get)(this, 'sessionData.entity.name'),\n          userEmail: (0, _object.get)(this, 'sessionData.user.email'),\n          category,\n          period\n        };\n        const num = (num, percent) => {\n          if (isNaN(num) || Math.abs(Number(num)) < 0.0001) return '0';\n          return percent ? `${Number(num) * 100}%` : String(num);\n        };\n        const createRows = (data, depth = 0, options = {}) => {\n          const {\n            recurse = true,\n            percentSales = false,\n            percentParent = false,\n            percentages = true,\n            totalTitle = null\n          } = options;\n          const getPercentValue = (data, type, index) => {\n            if (percentSales) return num(data[`${type}PercentSales`][index], true);\n            if (percentParent) return num(data[`${type}PercentParent`][index], true);\n            return '';\n          };\n          const arr = [];\n          arr.push(totalTitle ? totalTitle : '    '.repeat(depth) + data.name || 'unnamed account');\n          data.month.forEach((val, i) => {\n            if (percentages) {\n              arr.push(num(data.month[i]));\n              arr.push(getPercentValue(data, 'month', i));\n              arr.push(num(data.monthPrev[i]));\n              arr.push(getPercentValue(data, 'monthPrev', i));\n              arr.push(num(data.ytd[i]));\n              arr.push(getPercentValue(data, 'ytd', i));\n              arr.push(num(data.ytdPrev[i]));\n              arr.push(getPercentValue(data, 'ytdPrev', i));\n            } else {\n              arr.push(...[num(data.month[i]), '']);\n              arr.push(...[num(data.monthPrev[i]), '']);\n              arr.push(...[num(data.ytd[i]), '']);\n              arr.push(...[num(data.ytdPrev[i]), '']);\n            }\n          });\n          if (data.children && data.children.length && recurse) {\n            return [arr].concat(...data.children.map(c => createRows(c, depth + 1, options)));\n          } else {\n            return [arr];\n          }\n        };\n        const getSelectedItemName = item => (0, _object.get)(item || {}, 'name') || (0, _object.get)(item || {}, 'data.name') || '';\n\n        /* eslint-disable max-len */\n        const csv = [...generateMetaDataRows(meta)];\n        const entityNames = [''];\n        if ((0, _object.get)(this, 'sessionData.entity.parent.id')) entityNames.push(...['', entityName, '', '', '', '', '', '', '']);\n        entityNames.push(...(0, _object.get)(this, 'selectedEntities').reduce((arr, entity) => [...arr, getSelectedItemName(entity), '', '', '', '', '', '', ''], []));\n        entityNames.push(...(0, _object.get)(this, 'selectedGroups').reduce((arr, group) => [...arr, getSelectedItemName(group), '', '', '', '', '', '', ''], []));\n        csv.push(entityNames);\n        const percentSalesHeadings = ['Current Monthly', '% of Sales', 'Last Year Monthly', '% of Sales', 'Current YTD', '% of Sales', 'Last Year YTD', '% of Sales'];\n        const pAndLHeadingRow = [''];\n        if ((0, _object.get)(this, 'sessionData.entity.parent.id')) pAndLHeadingRow.push(...percentSalesHeadings);\n        (0, _object.get)(this, 'selectedEntities').forEach(() => pAndLHeadingRow.push(...percentSalesHeadings));\n        (0, _object.get)(this, 'selectedGroups').forEach(() => pAndLHeadingRow.push(...percentSalesHeadings));\n        csv.push(pAndLHeadingRow);\n        const pAndLContent = [...createRows((0, _object.get)(this, 'model.sales'), 0, {\n          percentages: false,\n          recurse: false\n        }), ...createRows((0, _object.get)(this, 'model.costOfSales'), 0, {\n          percentSales: true\n        }), ...createRows((0, _object.get)(this, 'model.systemMargin'), 0, {\n          totalTitle: 'Total System Margin',\n          percentSales: true\n        })];\n        (0, _object.get)(this, 'model.stockVariation.children').forEach(child => {\n          pAndLContent.push(...createRows(child, 0, {\n            percentSales: true\n          }));\n        });\n        pAndLContent.push(...createRows((0, _object.get)(this, 'model.achievedMargin'), 0, {\n          totalTitle: 'Total Achived Margin',\n          percentSales: true\n        }));\n        (0, _object.get)(this, 'model.loyaltiesAndFreight.children').forEach(child => {\n          pAndLContent.push(...createRows(child, 0, {\n            percentSales: true\n          }));\n        });\n        pAndLContent.push(...createRows((0, _object.get)(this, 'model.grossMargin'), 0, {\n          totalTitle: 'Final Gross Margin',\n          percentSales: true\n        }));\n        (0, _object.get)(this, 'model.expenses.children').forEach(child => {\n          pAndLContent.push(...createRows(child, 1, {\n            percentSales: true,\n            recurse: false\n          }));\n        });\n        pAndLContent.push(...createRows((0, _object.get)(this, 'model.expenses'), 0, {\n          totalTitle: 'Total Expenses',\n          percentages: false,\n          recurse: false\n        }), ...createRows((0, _object.get)(this, 'model.ebitda'), 0, {\n          totalTitle: 'EBITDA',\n          percentages: false,\n          recurse: false\n        }));\n        (0, _object.get)(this, 'model.otherIncomeAndDepreciation.children').forEach(child => {\n          pAndLContent.push(...createRows(child, 0, {\n            percentSales: true\n          }));\n        });\n        pAndLContent.push(...createRows((0, _object.get)(this, 'model.netProfit'), 0, {\n          totalTitle: 'Net Operating Profit',\n          percentSales: true\n        }));\n        csv.push(...pAndLContent);\n\n        // Add a blank line\n        csv.push([]);\n        const expensesHeadingRow = [''];\n        if ((0, _object.get)(this, 'sessionData.entity.parent.id')) expensesHeadingRow.push(...percentSalesHeadings);\n        (0, _object.get)(this, 'selectedEntities').forEach(() => expensesHeadingRow.push(...percentSalesHeadings));\n        (0, _object.get)(this, 'selectedGroups').forEach(() => expensesHeadingRow.push(...percentSalesHeadings));\n        csv.push(expensesHeadingRow);\n        const expensesContent = [...createRows((0, _object.get)(this, 'model.expenses'), 0, {\n          totalTitle: 'Total Expenses',\n          recurse: false,\n          percentSales: true\n        })];\n        (0, _object.get)(this, 'model.expenses.children').forEach(child => {\n          expensesContent.push(...createRows(child, 1, {\n            percentSales: true\n          }));\n        });\n        csv.push(...expensesContent);\n        const fileName = `${entityName}-${category}-${period}.csv`;\n        downloadCSV(csv, fileName);\n      }\n    }\n  });\n  function createUserAjax(payload, token) {\n    return new Promise((resolve, reject) => {\n      _jquery.default.ajax({\n        contentType: 'application/json',\n        method: 'POST',\n        url: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/invite-user/financials',\n        data: JSON.stringify(Object.assign(payload, {\n          callback: _environment.default.urls.app + '/reset-password',\n          appURL: _environment.default.urls.app\n        })),\n        headers: {\n          Authorization: 'Bearer ' + token\n        }\n      }).then(resolve, reject);\n    });\n  }\n});","define(\"portal/controllers/entity/financials/reports/general-ledger/other-data\", [\"exports\", \"portal/controllers/entity/financials/reports/general-ledger/generic\"], function (_exports, _generic) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/controllers/entity/financials/reports/general-ledger/generic\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _generic.default.extend({\n    category: 'other-data',\n    dataKeyPrefix: 'o-d'\n  });\n});","define(\"portal/controllers/entity/financials/reports/general-ledger/personal-data\", [\"exports\", \"@ember/object/computed\", \"@ember/controller\", \"@ember/service\", \"@ember/object\", \"portal/utils/csv-builder\", \"moment\"], function (_exports, _computed, _controller, _service, _object, csvBuilder, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object/computed\",0,\"@ember/controller\",0,\"@ember/service\",0,\"@ember/object\",0,\"portal/utils/csv-builder\",0,\"moment\"eaimeta@70e063a35619d71f\n  const {\n    generateMetaDataRows,\n    generateDataRows,\n    downloadCSV\n  } = csvBuilder;\n  var _default = _exports.default = _controller.default.extend({\n    sessionData: (0, _service.inject)(),\n    category: 'personal-data',\n    dataKeyPrefix: 'p-d',\n    queryParams: ['interval', 'duration'],\n    interval: 1,\n    duration: 1,\n    dateRange: (0, _object.computed)('sessionData.period', 'interval', 'duration', function () {\n      const currentDate = (0, _object.get)(this, 'sessionData.period');\n      const dateRange = [];\n      const interval = (0, _object.get)(this, 'interval');\n      const duration = (0, _object.get)(this, 'duration');\n      for (let i = 0; i < duration; i++) {\n        const age = interval * i;\n        dateRange.unshift((0, _moment.default)(currentDate, 'YYYY-MM').subtract(age, 'months').format('YYYY-MM'));\n      }\n      return dateRange;\n    }),\n    durationOptions: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12],\n    intervalOptions: [{\n      name: '1 month',\n      value: 1\n    }, {\n      name: '3 months',\n      value: 3\n    }, {\n      name: '6 months',\n      value: 6\n    }, {\n      name: '12 months',\n      value: 12\n    }],\n    accountSettings: [],\n    monthVisible: true,\n    ytdVisible: true,\n    showBreakdown: false,\n    selectedMetric: null,\n    selectedGroup: null,\n    // This just needs to run each time you revisit the route.\n    applyAccountSettings() {\n      const accountSettings = (0, _object.get)(this, 'accountSettings');\n      const hideChildrenKey = (0, _object.get)(this, 'hideChildrenKey');\n      const applySetting = function (account) {\n        const setting = accountSettings.find(setting => (0, _object.get)(setting, 'id') === (0, _object.get)(account, 'id')) || {};\n        const hide = (0, _object.get)(setting, hideChildrenKey) == null || (0, _object.get)(setting, hideChildrenKey);\n        (0, _object.set)(account, 'hideChildren', hide);\n        ((0, _object.get)(account, 'children') || []).forEach(applySetting);\n      };\n      const accounts = (0, _object.get)(this, 'model.nestedAccounts');\n      accounts.forEach(applySetting);\n      return accounts;\n    },\n    profitAndLoss: (0, _computed.filterBy)('model.nestedAccounts', 'category', 'profit-and-loss'),\n    balanceSheet: (0, _computed.filterBy)('model.nestedAccounts', 'category', 'balance-sheet'),\n    hideChildrenKey: (0, _object.computed)('dataKeyPrefix', function () {\n      return `${(0, _object.get)(this, 'dataKeyPrefix')}HideChildren`;\n    }),\n    colSpan: (0, _object.computed)('monthVisible', 'ytdVisible', function () {\n      return Math.max(1, (0, _object.get)(this, 'monthVisible') + (0, _object.get)(this, 'ytdVisible')); // boolean addition, maximum 1\n    }),\n    intervalCount: (0, _object.computed)('duration', function () {\n      return new Array((0, _object.get)(this, 'duration')).fill(undefined);\n    }),\n    pageAsCSV(meta) {\n      // Build the spreadsheet manually\n      const rows = [...generateMetaDataRows(meta),\n      // Header for profit and loss\n      ['Profit And Loss Sheet', ''], ['Account Name', 'Month', 'YTD'], ...generateDataRows((0, _object.get)(this, 'profitAndLoss')), ['', ''],\n      // Header for Balance Sheet\n      ['Balance Sheet', ''], ['Account Name', 'Month', 'YTD'], ...generateDataRows((0, _object.get)(this, 'balanceSheet'))];\n      return rows;\n    },\n    actions: {\n      downloadSheet() {\n        const category = (0, _object.get)(this, 'category');\n        const entityName = (0, _object.get)(this, 'sessionData.entity.name');\n        const period = (0, _object.get)(this, 'sessionData.period');\n        const meta = {\n          entityName: (0, _object.get)(this, 'sessionData.entity.name'),\n          userEmail: (0, _object.get)(this, 'sessionData.user.email'),\n          category,\n          period\n        };\n        const file = this.pageAsCSV(meta);\n        const fileName = `${entityName}-${category}-${period}.csv`;\n        downloadCSV(file, fileName);\n      },\n      toggleShowChildren(account) {\n        const hideChildrenKey = (0, _object.get)(this, 'hideChildrenKey');\n\n        // account.toggleProperty('hideChildren');\n        (0, _object.set)(account, 'hideChildren', Boolean(!(0, _object.get)(account, 'hideChildren')));\n        const accountSettings = (0, _object.get)(this, 'accountSettings');\n        const existingSetting = accountSettings.findBy('id', (0, _object.get)(account, 'id'));\n        if (existingSetting) {\n          existingSetting[hideChildrenKey] = (0, _object.get)(account, 'hideChildren');\n        } else {\n          const setting = {\n            id: (0, _object.get)(account, 'id'),\n            name: (0, _object.get)(account, 'name')\n          };\n          setting[hideChildrenKey] = (0, _object.get)(account, 'hideChildren');\n          accountSettings.push(setting);\n        }\n      },\n      togglePrintableTrue(balance) {\n        balance.toggleProperty('printable', true);\n      }\n    }\n  });\n});","define(\"portal/controllers/entity/financials/reports/general-ledger/profit-and-loss\", [\"exports\", \"portal/controllers/entity/financials/reports/general-ledger/generic\"], function (_exports, _generic) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/controllers/entity/financials/reports/general-ledger/generic\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _generic.default.extend({\n    category: 'profit-and-loss',\n    dataKeyPrefix: 'p-and-l'\n  });\n});","define(\"portal/controllers/entity/financials/reports/kpis/index\", [\"exports\", \"@ember/object/computed\", \"@ember/controller\", \"@ember/service\", \"@ember/object\", \"lodash\", \"portal/utils/csv-builder\"], function (_exports, _computed, _controller, _service, _object, _lodash, _csvBuilder) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object/computed\",0,\"@ember/controller\",0,\"@ember/service\",0,\"@ember/object\",0,\"lodash\",0,\"portal/utils/csv-builder\",0,\"portal/utils/csv-builder\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({\n    sessionData: (0, _service.inject)(),\n    newFeatureFlags: (0, _service.inject)(),\n    isLoading: false,\n    category: 'kpis',\n    monthVisible: true,\n    ytdVisible: true,\n    showBreakdown: false,\n    selectedMetric: null,\n    selectedGroup: null,\n    formattedStyle: {\n      PERCENTAGE: 'percent',\n      NUMBER: 'decimal',\n      CURRENCY: 'currency'\n    },\n    noEditGroups: (0, _object.computed)('newFeatureFlags.userCanNotEditFPGroups', function () {\n      return (0, _object.get)(this, 'newFeatureFlags.userCanNotEditFPGroups');\n    }),\n    colSpan: (0, _object.computed)('monthVisible', 'ytdVisible', function () {\n      return Math.max(1, (0, _object.get)(this, 'monthVisible') + (0, _object.get)(this, 'ytdVisible')); // boolean addition, min 1\n    }),\n    linkToDetail: (0, _computed.alias)('sessionData.entity.parent.id'),\n    // Collection of entities, sorted initially but sort index.\n    orderedEntities: [],\n    initOrderedEntities: (0, _object.observer)('model.groups', function () {\n      if ((0, _object.get)(this, 'model')) {\n        let entity = (0, _object.get)(this, 'sessionData.entity');\n\n        // TODO bit hacky, someone with more time fix this.\n        // It just stops the entity from coming up if you are on a top level entity.\n        // can probably just be removed once reports for top level entities is implemented.\n        const parentEntity = (0, _object.get)(this, 'sessionData.entity.parent.id');\n        if (!parentEntity) entity = null;\n        const entities = [];\n        if (entity) {\n          entities.push(entity);\n        }\n        entities.push(...(0, _object.get)(this, 'model.groups'));\n        (0, _object.set)(this, 'orderedEntities', entities);\n      }\n    }),\n    // Take the list of kpis\n    kpisSortedByEntity: (0, _object.computed)('model.kpis', 'orderedEntities', function () {\n      const kpis = _lodash.default.cloneDeep((0, _object.get)(this, 'model.kpis'));\n      const orderedEntities = (0, _object.get)(this, 'orderedEntities');\n      sortByEntity(kpis, orderedEntities);\n      return kpis;\n    }),\n    actions: {\n      downloadSheet() {\n        const category = (0, _object.get)(this, 'category');\n        const entityName = (0, _object.get)(this, 'sessionData.entity.name');\n        const period = (0, _object.get)(this, 'sessionData.period');\n        const meta = {\n          entityName: (0, _object.get)(this, 'sessionData.entity.name'),\n          userEmail: (0, _object.get)(this, 'sessionData.user.email'),\n          category,\n          period\n        };\n        const file = (0, _csvBuilder.default)(meta, (0, _object.get)(this, 'orderedEntities'), (0, _object.get)(this, 'kpisSortedByEntity'));\n\n        // Use a data URL to specify the contents rather than the location of a resource.\n        const fileName = `${entityName}-${category}-${period}.csv`;\n        (0, _csvBuilder.downloadCSV)(file, fileName);\n      },\n      shiftFarLeft(entity) {\n        const orderedEntities = (0, _object.get)(this, 'orderedEntities');\n        const scopedToGroup = false; // todo - get(this, 'scope.stack.1.type') === 'group';\n\n        if (scopedToGroup) {\n          (0, _object.set)(this, 'orderedEntities', [entity, ...orderedEntities.removeObject(entity)]);\n          return;\n        }\n        if (entity === orderedEntities[0]) return;\n        const scopedEntity = orderedEntities[0];\n        const otherEntities = orderedEntities.removeObject(entity).removeObject(scopedEntity);\n        (0, _object.set)(this, 'orderedEntities', [scopedEntity, entity, ...otherEntities]);\n      },\n      toggleShowBreakdown(kpi, groupId, periodType) {\n        const group = (0, _object.get)(this, 'model.groups').findBy('id', groupId);\n        (0, _object.set)(this, 'selectedMetric', kpi);\n        (0, _object.set)(this, 'selectedGroup', group);\n        (0, _object.set)(this, 'selectedPeriodType', periodType);\n        this.toggleProperty('showBreakdown');\n      }\n    }\n  });\n  function sortByEntity(kpis, orderedEntities) {\n    (kpis || []).forEach(kpi => {\n      const values = (0, _object.get)(kpi, 'data');\n      const sortedValues = [];\n      orderedEntities.forEach(entity => {\n        const value = values.findBy('entity', (0, _object.get)(entity, 'id'));\n        sortedValues.push(value || {});\n      });\n      (0, _object.set)(kpi, 'data', sortedValues);\n      if ((0, _object.get)(kpi, 'children')) {\n        sortByEntity((0, _object.get)(kpi, 'children'), orderedEntities);\n      }\n    });\n  }\n});","define(\"portal/controllers/entity/financials/reports/kpis/kpi\", [\"exports\", \"@ember/object/computed\", \"@ember/controller\", \"@ember/service\", \"@ember/object\", \"@ember/array\", \"@ember/utils\", \"moment\"], function (_exports, _computed, _controller, _service, _object, _array, _utils, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object/computed\",0,\"@ember/controller\",0,\"@ember/service\",0,\"@ember/object\",0,\"@ember/array\",0,\"@ember/utils\",0,\"moment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({\n    sessionData: (0, _service.inject)(),\n    periodType: 'month',\n    period: (0, _computed.alias)('sessionData.period'),\n    periodTypeOptions: [{\n      value: 'month',\n      label: 'Monthly'\n    }, {\n      value: 'ytd',\n      label: 'YTD'\n    }],\n    formattedStyle: {\n      PERCENTAGE: 'percent',\n      NUMBER: 'decimal',\n      CURRENCY: 'currency'\n    },\n    currentStats: (0, _object.computed)('model.stats', 'periodType', function () {\n      const periodType = (0, _object.get)(this, 'periodType');\n      let stats = (0, _object.get)(this, 'model.stats');\n      if (Array.isArray(stats)) {\n        /*\n        TODO I think this is happening because of the caching.\n        Not sure exactly why, could maybe be fixed at its cause at some point.\n        */\n        stats = stats[0].periodTypes;\n      }\n      const currentStats = (0, _object.get)(stats, periodType);\n      return currentStats;\n    }),\n    chartPeriod: (0, _object.computed)('sessionData.period', 'periodType', function () {\n      const end = (0, _object.get)(this, 'sessionData.period');\n      const start = (0, _moment.default)(end, 'YYYY-MM').subtract(11, 'months').format('YYYY-MM');\n      const type = (0, _object.get)(this, 'periodType');\n      return {\n        start,\n        end,\n        type\n      };\n    }),\n    selectedPeriodData: (0, _object.computed)('model.kpi.series', 'sessionData.entity.id', 'sessionData.period', function () {\n      const periodDate = (0, _moment.default)((0, _object.get)(this, 'sessionData.period'), 'YYYY-MM').endOf('month').toDate();\n      const series = (0, _object.get)(this, 'model.kpi.series');\n      if (!(0, _array.isArray)(series)) {\n        return null;\n      }\n      const branchId = (0, _object.get)(this, 'sessionData.entity.id');\n      const branch = series.findBy('entity', branchId);\n      if (!branch || !(0, _array.isArray)((0, _object.get)(branch, 'periods'))) {\n        return null;\n      }\n      return (0, _object.get)(branch, 'periods').findBy('date', periodDate.toISOString());\n    }),\n    noData: (0, _object.computed)('model.kpi.series', function () {\n      const series = (0, _object.get)(this, 'model.kpi.series');\n      return (0, _utils.isEmpty)(series);\n    }),\n    checked: false,\n    watchchecked: (0, _object.observer)('checked', function () {\n      var currentPeriodType = (0, _object.get)(this, 'periodType');\n      if (currentPeriodType === 'month') {\n        (0, _object.set)(this, 'checked', true);\n        return (0, _object.set)(this, 'periodType', 'ytd');\n      } else {\n        (0, _object.set)(this, 'checked', false);\n        return (0, _object.set)(this, 'periodType', 'month');\n      }\n    })\n  });\n});","define(\"portal/controllers/entity/index\", [\"exports\", \"@ember/controller\"], function (_exports, _controller) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({});\n});","define(\"portal/controllers/entity/module-dashboard\", [\"exports\", \"@ember/controller\", \"@ember/service\", \"@ember/object\"], function (_exports, _controller, _service, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"modules\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n    }\n    goToModule(mod) {\n      if (mod.outsideLink) return window.open(mod.outsideLink, '_blank');\n      this.router.transitionTo(`entity.${mod.slug}`);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"modules\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"goToModule\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"goToModule\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/settings/auto-mapping\", [\"exports\", \"@ember/controller\", \"@ember/object/computed\", \"@ember/service\", \"@ember/object\", \"rsvp\"], function (_exports, _controller, _computed, _service, _object, _rsvp) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/object/computed\",0,\"@ember/service\",0,\"@ember/object\",0,\"rsvp\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({\n    store: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    notifications: (0, _service.inject)(),\n    intl: (0, _service.inject)(),\n    selectedDisplayOption: 'reference',\n    displayOptions: [{\n      value: 'reference',\n      label: 'Invoice reference'\n    }, {\n      value: 'account',\n      label: 'Merchant account'\n    }],\n    readyToDelete: null,\n    deleting: false,\n    showInvalid: false,\n    referenceDirectives: (0, _computed.filterBy)('model.directives', 'kind', 'reference'),\n    openReferenceDirectives: (0, _object.computed)('referenceDirectives', function () {\n      return (0, _object.get)(this, 'referenceDirectives').filter(d => ((0, _object.get)(d, 'project.id') == null || d.belongsTo('project').value()) && !['CLOSED', 'ARCHIVED'].includes((0, _object.get)(d, 'project.status')));\n    }),\n    closedReferenceDirectives: (0, _object.computed)('referenceDirectives.@each.project', function () {\n      return (0, _object.get)(this, 'referenceDirectives').filter(d => !(((0, _object.get)(d, 'project.id') == null || d.belongsTo('project').value()) && !['CLOSED', 'ARCHIVED'].includes((0, _object.get)(d, 'project.status'))));\n    }),\n    accountDirectives: (0, _computed.filterBy)('model.directives', 'kind', 'account'),\n    openAccountDirectives: (0, _object.computed)('accountDirectives', function () {\n      return (0, _object.get)(this, 'accountDirectives').filter(d => ((0, _object.get)(d, 'project.id') == null || d.belongsTo('project').value()) && !['CLOSED', 'ARCHIVED'].includes((0, _object.get)(d, 'project.status')));\n    }),\n    closedAccountDirectives: (0, _object.computed)('accountDirectives.@each.project', function () {\n      return (0, _object.get)(this, 'accountDirectives').filter(d => !(((0, _object.get)(d, 'project.id') == null || d.belongsTo('project').value()) && !['CLOSED', 'ARCHIVED'].includes((0, _object.get)(d, 'project.status'))));\n    }),\n    unusedAccounts: (0, _object.computed)('model.merchantAccounts', 'accountDirectives.@each.value', function () {\n      const usedCodes = (0, _object.get)(this, 'accountDirectives').map(a => (0, _object.get)(a, 'value'));\n      return (0, _object.get)(this, 'model.merchantAccounts').filter(account => !usedCodes.includes((0, _object.get)(account, 'code')));\n    }),\n    /**\n     * Builds a hash table where the keys are the all the reference values on the page, and the values\n     * are booleans showing whether that reference value is a duplicate.\n     * The reason for this structure is to be easy to find. e.g. {{get duplicates directive.value}};\n     * This only needs to be checked for reference directives as the UI can prevent a user from using the\n     * same account twice by omitting it from the select list.\n     * @type {Object}\n     */\n    duplicates: (0, _object.computed)('referenceDirectives.@each.value', function () {\n      let duplicatesFound = false;\n      const directives = (0, _object.get)(this, 'referenceDirectives');\n      const duplicates = directives.mapBy('lowerValue').reduce((result, val, index, all) => {\n        const isDuplicate = all.slice(index + 1).includes(val);\n        if (isDuplicate) duplicatesFound = true;\n        return Object.assign({\n          [val]: isDuplicate\n        }, result);\n      }, {});\n      (0, _object.set)(this, 'duplicatesPresent', duplicatesFound);\n      return duplicates;\n    }),\n    diplicatesPresent: false,\n    actions: {\n      async save() {\n        const notifications = (0, _object.get)(this, 'notifications');\n        const directives = (0, _object.get)(this, 'model.directives');\n        // Check each individual directive is valid\n        if (directives.some(d => !(0, _object.get)(d, 'isValid'))) {\n          (0, _object.set)(this, 'showInvalid', true);\n          notifications.warning((0, _object.get)(this, 'intl').t('entity.settings.auto-mapping.allDirectivesMustHaveAProjectAndAReferenceOrAccount'));\n          return;\n        }\n\n        // Check there are no duplicates in the values of the reference directives\n        if ((0, _object.get)(this, 'duplicatesPresent')) {\n          (0, _object.set)(this, 'showInvalid', true);\n          notifications.warning((0, _object.get)(this, 'intl').t('entity.settings.auto-mapping.theReferenceValuesUsedMustBeUniqueOneOrMoreDuplicatesWereFound'));\n          return;\n        }\n        (0, _object.set)(this, 'isSaving', true);\n        try {\n          await _rsvp.default.all(directives.map(d => d.save()));\n          (0, _object.set)(this, 'showInvalid', false);\n          notifications.success((0, _object.get)(this, 'intl').t('entity.settings.auto-mapping.All directives were saved'));\n        } catch (error) {\n          notifications.error((0, _object.get)(this, 'intl').t('entity.settings.auto-mapping.somethingWentWrongSavingTheDirectives'));\n\n          // If there was a problem saving, we don't know what state is reliable,\n          // therefore we should tell the route to refresh the list of directives.\n          this.send('refreshDirectives');\n        } finally {\n          (0, _object.set)(this, 'isSaving', false);\n        }\n      },\n      setProject(directive, projectId) {\n        const project = (0, _object.get)(this, 'model.projects').findBy('id', projectId);\n        (0, _object.set)(directive, 'project', project);\n      },\n      addDirective(kind) {\n        if (kind === 'account' && !(0, _object.get)(this, 'unusedAccounts.length')) {\n          return (0, _object.get)(this, 'notifications').warning((0, _object.get)(this, 'intl').t('entity.settings.auto-mapping.thereAreNoMoreMerchantAccountsToUse'));\n        }\n        const newDirective = (0, _object.get)(this, 'store').createRecord('invoice-auto-map-directive', {\n          kind,\n          entity: (0, _object.get)(this, 'sessionData.entity')\n        });\n        (0, _object.get)(this, 'model.directives').unshiftObject(newDirective);\n      },\n      async deleteDirective(directive) {\n        // Put page into a loading state\n        (0, _object.set)(this, 'deleting', true);\n        try {\n          // Delete the record from the database, then remove it from the page\n          await directive.destroyRecord();\n          (0, _object.get)(this, 'model.directives').removeObject(directive);\n        } catch (error) {\n          (0, _object.get)(this, 'notifications').error((0, _object.get)(this, 'intl').t('entity.settings.auto-mapping.somethingWentWrongDeletingTheDirectives'));\n        } finally {\n          // Put the page back into its normal state\n          (0, _object.set)(this, 'deleting', false);\n          (0, _object.set)(this, 'readyToDelete', null);\n        }\n      }\n    }\n  });\n});","define(\"portal/controllers/entity/settings/chart-of-accounts/chart-of-account\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"@glimmer/tracking\"], function (_exports, _asyncArrowRuntime, _controller, _service, _tracking) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"ember-concurrency\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"accountingPlatform\", _descriptor5, this);\n      _initializerDefineProperty(this, \"onChangeSyncWithXero\", _descriptor6, this);\n      _defineProperty(this, \"glAccountValidationMap\", {\n        name: (_key, val) => Boolean(val) || this.intl.t('entity.settings.chart-of-accounts.chart-of-account.Please provide a name'),\n        code: (_key, val) => Boolean(val) || this.intl.t('entity.settings.chart-of-accounts.chart-of-account.Please provide a code')\n      });\n      _defineProperty(this, \"saveAccount\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          const notifications = this.notifications;\n          yield changeset.validate();\n          if (changeset.isInvalid) return;\n          try {\n            const isNew = this.glAccount.isNew;\n            const account = yield changeset.save();\n            if (isNew) this.router.transitionTo('entity.settings.chart-of-accounts.chart-of-account', account.id);\n            notifications.success(this.intl.t('entity.settings.chart-of-accounts.chart-of-account.Successfully saved account'));\n          } catch (error) {\n            notifications.error({\n              error,\n              message: this.intl.t('entity.settings.chart-of-accounts.chart-of-account.problemWhileSavingAccount')\n            });\n          }\n        }\n      }), null, \"saveAccount\", null));\n      _defineProperty(this, \"deleteAccount\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.glAccount.destroyRecord();\n            this.notifications.success('Successfully deleted account');\n            this.router.transitionTo('entity.settings.chart-of-accounts');\n          } catch (error) {\n            this.notifications.error({\n              error,\n              message: this.intl.t('entity.settings.chart-of-accounts.chart-of-account.problemWhileDeletingAccount')\n            });\n          }\n        }\n      }), null, \"deleteAccount\", null));\n    }\n    get isLoading() {\n      return this.model.glAccount.isRunning;\n    }\n    get glAccount() {\n      return this.model.glAccount.last.value;\n    }\n    get showSyncIcon() {\n      return this.accountingPlatform.isActive && this.glAccount.isLinkedToActiveAccountingPlatform;\n    }\n    get disableForm() {\n      return this.accountingPlatform.isActive && this.glAccount.isLinkedToActiveAccountingPlatform;\n    }\n    get canEditGlAccounts() {\n      return this.newFeatureFlags.includesFeatureFlags('canManageInvoices') || this.newFeatureFlags.includesFeatureFlags('canManageBills');\n    }\n    get crumbStack() {\n      const paths = [{\n        route: 'entity.settings.chart-of-accounts',\n        pageTitle: this.intl.t('entity.settings.chart-of-accounts.Chart of accounts')\n      }, {\n        route: this.model.basePath,\n        pageTitle: this.glAccount.isNew ? this.intl.t('entity.settings.chart-of-accounts.chart-of-account.New account') : this.model.glAccount.last.value.name\n      }];\n      return paths;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"accountingPlatform\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"onChangeSyncWithXero\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.glAccount.isNew ? true : false;\n    }\n  }), _class2);\n});","define(\"portal/controllers/entity/settings/chart-of-accounts/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/runloop\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _service, _object, _tracking, _runloop, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"ember-concurrency\",0,\"@ember/runloop\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor4, this);\n      _initializerDefineProperty(this, \"numberFormat\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _initializerDefineProperty(this, \"store\", _descriptor7, this);\n      _initializerDefineProperty(this, \"accountingPlatform\", _descriptor8, this);\n      _initializerDefineProperty(this, \"pageSize\", _descriptor9, this);\n      _initializerDefineProperty(this, \"pageNumber\", _descriptor0, this);\n      _initializerDefineProperty(this, \"selectedAccountIds\", _descriptor1, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor10, this);\n      _initializerDefineProperty(this, \"isDeletingAccounts\", _descriptor11, this);\n      _defineProperty(this, \"queryParams\", ['pageSize', 'pageNumber', 'searchString']);\n      _defineProperty(this, \"onChangeSearchTerm\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSearchTerm, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onChangeSearchTerm\", null));\n      _defineProperty(this, \"syncWithAccountingPackage\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            let message = '';\n            const {\n              created = [],\n              updated = [],\n              removed = []\n            } = yield this.accountingPlatform.getAccounts.perform(this.sessionData.entity);\n            if (created.length) {\n              message = `Successfully imported ${created.length} ${created.length > 1 ? 'accounts' : 'account'}.`;\n            }\n            if (updated.length) {\n              // force update updated accounts\n              yield this.handleAccountsUpdated(updated);\n              if (message.length) message += ' ';\n              message += `Successfully updated ${updated.length} ${updated.length > 1 ? 'accounts' : 'account'}.`;\n            }\n            if (removed.length) {\n              // remove references to removed accounts\n              yield this.handleAccountsRemoved(removed);\n              if (message.length) message += ' ';\n              message += `Removed ${removed.length} removed ${removed.length > 1 ? 'accounts' : 'account'}.`;\n            }\n            if (message.length) {\n              this.notifications.success(message);\n              yield this.model.glAccounts.perform(this.model.pageSize, this.model.pageNumber);\n              return;\n            }\n            this.notifications.info('No new accounts found.');\n          } catch (error) {\n            this.notifications.error({\n              message: 'Something went wrong while updating accounts',\n              error\n            });\n          }\n        }\n      }), null, \"syncWithAccountingPackage\", null));\n      _defineProperty(this, \"deleteAccounts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            const actions = [];\n            this.selectedAccountIds.forEach(record => {\n              const account = this.glAccounts.find(item => item.id === record);\n              actions.push(account?.destroyRecord());\n            });\n            yield Promise.all(actions);\n            yield this.model.glAccounts.perform(this.model.pageSize, this.model.pageNumber);\n            this.notifications.success(`Successfully deleted\n           ${this.selectedAccountIds.size > 1 ? 'accounts' : 'account'}`);\n          } catch (error) {\n            this.notifications.error({\n              error,\n              message: 'Something went wrong while deleting accounts'\n            });\n          } finally {\n            this.isDeletingAccounts = false;\n            this.selectedAccountIds = new Set();\n          }\n        }\n      }), null, \"deleteAccounts\", null));\n    }\n    get isLoading() {\n      return this.model.glAccounts.isRunning;\n    }\n    get isEditable() {\n      return true;\n    }\n    get glAccounts() {\n      return this.model.glAccounts.lastSuccessful.value?.toArray() || [];\n    }\n    get tableHeader() {\n      if (this.model.glAccounts.isRunning) return [];\n      const header = [{\n        value: this.intl.t('common.Name'),\n        colClass: ' text-left'\n      }, {\n        value: this.intl.t('common.Code'),\n        colClass: ' text-left'\n      }, {\n        value: this.intl.t('common.Tax rate'),\n        colClass: ' text-right me-2'\n      }];\n      if (this.isEditable && this.glAccounts.length) header.unshift({\n        type: 'CHECKBOX_INPUT',\n        colClass: 'text-center align-middle',\n        onInputChange: this.onSelectAllAccounts,\n        value: this.selectedAccountIds.size,\n        isPartiallySelected: Boolean(this.selectedAccountIds.size && this.selectedAccountIds.size < this.glAccounts.filter(item => !item.isLinkedToActiveAccountingPlatform).length)\n      });\n      return header;\n    }\n    get tableData() {\n      if (this.model.glAccounts.isRunning) return [];\n      return this.glAccounts.map(account => {\n        const data = [{\n          type: 'BUTTON',\n          textClass: 'btn btn-link text-left',\n          value: account.name,\n          onClickButton: this.onClickGlAccountName,\n          iconName: account.isLinkedToActiveAccountingPlatform && this.accountingPlatform.isActive ? 'sync' : '',\n          title: 'This account is synced with your accounting package',\n          extraData: {\n            account\n          }\n        }, {\n          colClass: 'text-left align-middle',\n          value: account?.code ?? ' — '\n        }, {\n          colClass: 'text-right align-middle me-2',\n          value: this.numberFormat.format(account?.taxRate, {\n            style: 'percent',\n            dashZero: true\n          })\n        }];\n        if (this.isEditable) {\n          data.unshift({\n            type: 'CHECKBOX_INPUT',\n            colClass: 'text-center align-middle gl-accounts__table-checkbox-max-width',\n            onInputChange: this.onSelectAccount,\n            disabled: account.isLinkedToActiveAccountingPlatform ? true : false,\n            value: this.selectedAccountIds.has(account.id),\n            extraData: {\n              account\n            }\n          });\n        }\n        return {\n          rowData: data\n        };\n      });\n    }\n    get totalRecords() {\n      return this.model.glAccounts.lastSuccessful.value.meta?.totalRecords || 0;\n    }\n    addNewGlAccount() {\n      this.router.transitionTo('entity.settings.chart-of-accounts.chart-of-account', 'new');\n    }\n    onChangePageIndex(pageNumber) {\n      this.pageNumber = pageNumber;\n      this.selectedAccountIds = new Set();\n    }\n    onChangePageSize(pageSize) {\n      this.pageSize = pageSize;\n    }\n    onSelectAccount(_row, col, e) {\n      if (e.target.checked) {\n        this.selectedAccountIds.add(col.extraData.account.id);\n      } else {\n        this.selectedAccountIds.delete(col.extraData.account.id);\n      }\n\n      // Set is not supported by tracked\n      // eslint-disable-next-line no-self-assign\n      this.selectedAccountIds = this.selectedAccountIds;\n    }\n    updateSearchTerm(value) {\n      this.selectedAccountIds = new Set();\n      this.searchString = value.trim();\n      this.pageNumber = 1;\n    }\n    async onClickGlAccountName(_row, col) {\n      this.router.transitionTo('entity.settings.chart-of-accounts.chart-of-account', col.extraData.account.id);\n    }\n    async handleAccountsRemoved(items) {\n      const loadedAccounts = this.store.peekAll('gl-account');\n      for (const id of items) {\n        const account = loadedAccounts.find(a => a.id === id);\n        if (account) {\n          // unload the record\n          this.store.unloadRecord(account);\n        }\n      }\n    }\n    async handleAccountsUpdated(items) {\n      const loadedAccounts = this.store.peekAll('gl-account');\n      await Promise.all(items.map(id => {\n        const account = loadedAccounts.find(a => a.id === id);\n        return account && account.reload();\n      }));\n    }\n    onSelectAllAccounts(_row, col, e) {\n      if (e.target.checked) {\n        this.glAccounts.forEach(account => {\n          if (!account.isLinkedToActiveAccountingPlatform) this.selectedAccountIds.add(account.id);\n        });\n      } else {\n        this.glAccounts.forEach(account => {\n          if (!account.isLinkedToActiveAccountingPlatform) this.selectedAccountIds.delete(account.id);\n        });\n      }\n\n      // eslint-disable-next-line no-self-assign\n      this.selectedAccountIds = this.selectedAccountIds;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"numberFormat\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"accountingPlatform\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"pageSize\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"pageNumber\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"selectedAccountIds\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return new Set();\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"isDeletingAccounts\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"addNewGlAccount\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"addNewGlAccount\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onChangePageIndex\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onChangePageIndex\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onChangePageSize\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onChangePageSize\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onSelectAccount\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onSelectAccount\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"updateSearchTerm\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"updateSearchTerm\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onClickGlAccountName\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onClickGlAccountName\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onSelectAllAccounts\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onSelectAllAccounts\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/settings/company\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/object\", \"@ember/service\", \"@glimmer/tracking\", \"portal/models/attachment\", \"portal/utils/email-validator\", \"ember-changeset\", \"@ember/runloop\"], function (_exports, _asyncArrowRuntime, _controller, _object, _service, _tracking, _attachment, _emailValidator, _emberChangeset, _runloop) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/object\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"portal/models/attachment\",0,\"portal/utils/email-validator\",0,\"ember-changeset\",0,\"@ember/runloop\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"chargebee\", _descriptor, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor2, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor3, this);\n      _initializerDefineProperty(this, \"session\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _initializerDefineProperty(this, \"store\", _descriptor6, this);\n      _initializerDefineProperty(this, \"accountingPlatform\", _descriptor7, this);\n      _defineProperty(this, \"validateContent\", (_key, newVal, oldVal, changes, content) => {\n        // check for the currently selected profit type\n        let profitType = changes.profitType || content.profitType;\n        if (profitType === 'MARGIN') {\n          const percentage = newVal || oldVal;\n          // null is valid\n          if (percentage === null) return true;\n          return percentage < 1 || this.intl.t('validation.Please input a value less than 100');\n        }\n        return true;\n      });\n      _defineProperty(this, \"MAX_FILE_SIZE\", 1024 * 1024 * 5);\n      // 5 MB\n      _defineProperty(this, \"ALLOWED_MIME_TYPES\", ['image/png', 'image/jpeg', 'image/gif']);\n      _defineProperty(this, \"profitTypes\", [{\n        value: 'MARGIN',\n        label: this.intl.t('common.Margin')\n      }, {\n        value: 'MARKUP',\n        label: this.intl.t('common.Markup')\n      }]);\n      _defineProperty(this, \"paymentTermType\", [{\n        value: 'OF_FOLLOWING_MONTH',\n        label: this.intl.t('shared.contacts.of the following month')\n      }, {\n        value: 'DAYS_AFTER_ISSUE_DATE',\n        label: this.intl.t('shared.contacts.day(s) after the issue date')\n      }, {\n        value: 'DAYS_AFTER_ISSUE_MONTH',\n        label: this.intl.t('shared.contacts.day(s) after the end of the issue month')\n      }, {\n        value: 'OF_CURRENT_MONTH',\n        label: this.intl.t('shared.contacts.of the current month')\n      }]);\n      _defineProperty(this, \"messages\", {\n        save: {\n          success: this.intl.t('entity.settings.company.The entity was saved successfully'),\n          error: this.intl.t('entity.settings.company.The entity failed to save')\n        },\n        delete: {\n          success: this.intl.t('entity.settings.company.The entity was deleted successfully'),\n          error: this.intl.t('entity.settings.company.The entity failed to delete')\n        }\n      });\n      _initializerDefineProperty(this, \"isSaving\", _descriptor8, this);\n      _defineProperty(this, \"entityValidationMap\", {\n        name: (_key, val) => Boolean(val) || this.intl.t('validation.Name'),\n        address: this.validateEntityContent.bind(this),\n        businessNumber: this.validateEntityContent.bind(this),\n        contactEmail: this.validateEntityContent.bind(this)\n      });\n      _defineProperty(this, \"purchaseOrderValidationMap\", {\n        nextPurchaseOrderNumber: (_key, val) => !isNaN(val) || this.intl.t('validation.purchaseOrderNumber')\n      });\n      _defineProperty(this, \"invoiceValidationMap\", {\n        nextInvoiceNumber: (_key, val) => !isNaN(val) || 'please provide a valid number',\n        nextCreditNoteNumber: (_key, val) => !isNaN(val) || 'please provide a valid number'\n      });\n      _defineProperty(this, \"stagePaymentsOptionsValidationMap\", {});\n      _defineProperty(this, \"profitMarginValidationMap\", {\n        profitType: (_key, val) => Boolean(val) || this.intl.t('validation.profitType'),\n        labourPercentage: this.validateContent,\n        additionalLabourMargin: this.validateContent,\n        materialsPercentage: this.validateContent,\n        subcontractorsPercentage: this.validateContent,\n        sumsPercentage: this.validateContent\n      });\n      _defineProperty(this, \"updateProfitMargins\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (profitMargin) {\n          yield profitMargin.validate('profitType', 'labourPercentage', 'additionalLabourMargin', 'materialsPercentage', 'subcontractorsPercentage', 'sumsPercentage');\n          if (profitMargin.isInvalid) {\n            this.notifications.warning(this.intl.t('shared.notification.Please complete the information'));\n            return;\n          }\n          try {\n            profitMargin.execute();\n            const wasNew = Boolean(profitMargin.isNew);\n            yield profitMargin.save();\n\n            // if the record was new, we need to setup the relationship with the entity\n            if (wasNew) {\n              const entity = this.sessionData.entity;\n              yield entity.save();\n            }\n            this.notifications.success(this.intl.t('entity.settings.company.Profit margins saved successfully'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.company.somethingWentWrongWhileUpdatingProfitMargins'),\n              error\n            });\n          }\n        }\n      }), null, \"updateProfitMargins\", null));\n      _defineProperty(this, \"saveEntity\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (entity) {\n          yield entity.validate();\n          if (entity.isInvalid) return;\n          try {\n            // Applies the valid changes to the underlying Object.\n            entity.execute();\n            const companyLogo = entity.get('data').safeBelongsToValue('companyLogo');\n            if (companyLogo?.isNew) {\n              const lastLogo = this.model.companyLogo.last.value;\n              if (lastLogo?.id) {\n                yield lastLogo.destroyRecord();\n              }\n              yield companyLogo.save({\n                adapterOptions: {\n                  meta: {\n                    data: companyLogo.data\n                  }\n                }\n              });\n            } else if (!companyLogo) {\n              const lastLogo = this.model.companyLogo.last.value;\n              if (lastLogo?.id) {\n                yield lastLogo.destroyRecord();\n              }\n            }\n            const updatedEntity = yield entity.save();\n            yield this.model.companyLogo.perform(updatedEntity);\n            this.notifications.success(this.intl.t('entity.settings.company.Company details saved successfully'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.company.somethingWentWrongWhileUpdatingCompanyDetails'),\n              error\n            });\n          }\n        }\n      }), null, \"saveEntity\", null));\n      _defineProperty(this, \"savePurchaseOrderOption\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (purchaseOrderOption) {\n          yield purchaseOrderOption.validate();\n          if (purchaseOrderOption.isInvalid) return;\n          try {\n            // Applies the valid changes to the underlying Object.\n            purchaseOrderOption.execute();\n            yield purchaseOrderOption.save();\n            this.notifications.success(this.intl.t('entity.settings.company.purchaseOrderDetailsSavedSuccessfully'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.company.somethingWentWrongWhileSavingPurchaseOrderDetails'),\n              error\n            });\n          }\n        }\n      }), null, \"savePurchaseOrderOption\", null));\n      _defineProperty(this, \"saveInvoiceOption\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (invoiceOption) {\n          yield invoiceOption.validate();\n          if (invoiceOption.isInvalid) return;\n          try {\n            // Applies the valid changes to the underlying Object.\n            invoiceOption.execute();\n            yield invoiceOption.save();\n            this.notifications.success(this.intl.t('entity.settings.company.Invoice details saved successfully'));\n          } catch (error) {\n            if (error.errors[0]?.title === 'Invoice number already in use') {\n              this.notifications.warning(this.intl.t('entity.settings.company.Invoice number already in use'));\n              return;\n            }\n            this.notifications.error({\n              message: this.intl.t('entity.settings.company.saveInvoiceDetailError'),\n              error\n            });\n          }\n        }\n      }), null, \"saveInvoiceOption\", null));\n      _defineProperty(this, \"saveStagePaymentOptions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (stagePaymentOption) {\n          if (stagePaymentOption.isInvalid) return;\n          try {\n            stagePaymentOption.execute();\n            const wasNew = Boolean(stagePaymentOption.isNew);\n            yield stagePaymentOption.save();\n\n            // if the record was new, we need to setup the relationship with the entity\n            if (wasNew) {\n              const entity = this.sessionData.entity;\n              yield entity.save();\n            }\n            this.notifications.success(this.intl.t('entity.settings.company.Stage payment details saved successfully'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.company.saveStageError'),\n              error\n            });\n          }\n        }\n      }), null, \"saveStagePaymentOptions\", null));\n      _defineProperty(this, \"saveBreakdownOptions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          if (this.invoiceBreakdownOptions.firstGroupBy === 'TASK') {\n            this.invoiceBreakdownOptions.timesheetDetails = this.invoiceBreakdownOptions.timesheetDetails.filter(option => option !== 'TASK');\n          }\n          try {\n            yield this.invoiceBreakdownOptions.save();\n            this.invoiceBreakdownOptions = null;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.company.saveBreakdownOptionsError'),\n              error\n            });\n          }\n        }\n      }), null, \"saveBreakdownOptions\", null));\n      _initializerDefineProperty(this, \"invoiceBreakdownOptions\", _descriptor9, this);\n    }\n    get businessNumberLabel() {\n      let businessNumberLabel;\n      switch (this.model.entity.region) {\n        case 'NZL':\n          businessNumberLabel = this.intl.t('entity.settings.company.New Zealand business number');\n          break;\n        case 'AUS':\n          businessNumberLabel = this.intl.t('entity.settings.company.Australian business number');\n          break;\n        case 'GBR':\n          businessNumberLabel = this.intl.t('entity.settings.company.Company registration number');\n          break;\n        default:\n          businessNumberLabel = this.intl.t('entity.settings.company.Business number');\n          break;\n      }\n      return businessNumberLabel;\n    }\n    get taxNumberLabel() {\n      let taxNumberLabel;\n      switch (this.model.entity.region) {\n        case 'NZL':\n          taxNumberLabel = this.intl.t('entity.settings.company.GST number');\n          break;\n        case 'GBR':\n          taxNumberLabel = this.intl.t('entity.settings.company.VAT number');\n          break;\n      }\n      return taxNumberLabel;\n    }\n    async save() {\n      const notifications = this.notifications;\n      this.isSaving = true;\n\n      // If the logo is saved successfully, continue saving the record\n      this.record.save().then(() => {\n        this.isSaving = false;\n        notifications.success({\n          message: this.messages.save.success,\n          autoClear: true\n        });\n      }).catch(err => {\n        this.isSaving = false;\n        notifications.error(err.responseJSON.errors[0].title === undefined ? this.messages.save.error : err.responseJSON.errors[0].title);\n      });\n    }\n    async openChargebee() {\n      try {\n        this.chargebee.open();\n      } catch (error) {\n        this.notifications.error({\n          message: this.intl.t('entity.settings.company.couldNotOpenSubscriptionManagementPortal'),\n          error\n        });\n      }\n    }\n    validateEntityContent(key, newVal, _oldVal, _changes, _content) {\n      if (key === 'businessNumber' && newVal) {\n        switch (this.model.entity.region) {\n          case 'NZL':\n            return !(newVal.length < 13) || this.intl.t('validation.nzBusinessNumber');\n          case 'AUS':\n            return !(newVal.length < 11) || this.intl.t('validation.auBusinessNumber');\n          case 'GBR':\n            return !(newVal.length < 8) || this.intl.t('validation.companyRegistrationNumber');\n        }\n      }\n      if (key === 'contactEmail' && newVal) {\n        return (0, _emailValidator.default)(newVal) || this.intl.t('validation.Email');\n      }\n    }\n    get profitMargin() {\n      return this.model.entity.belongsTo('profitMargin').value();\n    }\n    toggleAdditionalLabourMargin(profitMarginModel) {\n      const newValue = profitMarginModel.additionalLabourMargin != null ? null : Number(this.profitMargin?.additionalLabourMargin || 0);\n      profitMarginModel.set('additionalLabourMargin', newValue);\n    }\n    get stagePaymentOption() {\n      return this.model.entity.belongsTo('stagePaymentOption').value();\n    }\n    async updateLogo(entityModel, event) {\n      try {\n        const [file] = event.target.files;\n        if (!file) return;\n        if (!this.ALLOWED_MIME_TYPES.includes(file.type)) {\n          this.notifications.info(this.intl.t('entity.settings.company.invalidLogoFormatPleaseUseJpegPngOrGif'));\n          return;\n        }\n        if (file.size > this.MAX_FILE_SIZE) {\n          this.notifications.info(this.intl.t('entity.settings.company.The selected logo file is too big'));\n          return;\n        }\n        entityModel.get('data').companyLogo = await _attachment.default.fromFileInput(file, this.store, this.sessionData.entity);\n        const reader = new FileReader();\n        reader.onload = function (e) {\n          const previewImage = document.getElementById('image-preview');\n          if (previewImage) {\n            previewImage.src = e.target.result;\n            previewImage.style.display = 'block';\n          }\n        };\n        reader.readAsDataURL(file);\n      } catch (error) {\n        this.notifications.error({\n          message: this.intl.t('entity.settings.company.somethingWentWrongWhileUploadingLogo'),\n          error\n        });\n      }\n    }\n    clearLogo(entityModel) {\n      entityModel.get('data').companyLogo = null;\n    }\n\n    // the two timesheet margins are mutually exclusive\n    onToggleTimesheetMargin(thisKey, otherKey) {\n      (0, _runloop.next)(() => {\n        if (this.invoiceBreakdownOptions.get(thisKey)) {\n          this.invoiceBreakdownOptions.set(otherKey, false);\n        }\n      });\n    }\n    get timesheetGroupingOptions() {\n      const options = [{\n        key: 'DAY',\n        name: this.intl.t('common.Day')\n      }, {\n        key: 'WORKER',\n        name: this.intl.t('common.Worker')\n      }];\n      if (this.invoiceBreakdownOptions.firstGroupBy !== 'TASK') options.push({\n        key: 'TASK',\n        name: this.intl.t('common.Task')\n      });\n      return options;\n    }\n    initInvoiceBreakdown() {\n      this.invoiceBreakdownOptions = (0, _emberChangeset.Changeset)(this.model.invoiceOptions.last.value);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"chargebee\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"accountingPlatform\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"isSaving\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"save\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"save\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"openChargebee\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"openChargebee\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"toggleAdditionalLabourMargin\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"toggleAdditionalLabourMargin\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"updateLogo\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"updateLogo\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"clearLogo\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"clearLogo\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onToggleTimesheetMargin\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onToggleTimesheetMargin\"), _class2.prototype), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"invoiceBreakdownOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"initInvoiceBreakdown\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"initInvoiceBreakdown\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/settings/contacts/contact\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"@glimmer/tracking\", \"@ember/object\", \"portal/utils/search-term-escape\"], function (_exports, _asyncArrowRuntime, _controller, _service, _tracking, _object, _searchTermEscape) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"ember-concurrency\",0,\"@ember/object\",0,\"portal/utils/search-term-escape\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _initializerDefineProperty(this, \"accountingPlatform\", _descriptor6, this);\n      _initializerDefineProperty(this, \"store\", _descriptor7, this);\n      _initializerDefineProperty(this, \"onChangeSyncWithAccountingPlatform\", _descriptor8, this);\n      _initializerDefineProperty(this, \"isDeletingSupplier\", _descriptor9, this);\n      _initializerDefineProperty(this, \"showAddAliasModal\", _descriptor0, this);\n      _initializerDefineProperty(this, \"aliasNameInput\", _descriptor1, this);\n      _defineProperty(this, \"paymentTermType\", [{\n        value: 'OFFOLLOWINGMONTH',\n        label: this.intl.t('shared.contacts.of the following month')\n      }, {\n        value: 'DAYSAFTERBILLDATE',\n        label: this.intl.t('shared.contacts.day(s) after the bill date')\n      }, {\n        value: 'DAYSAFTERBILLMONTH',\n        label: this.intl.t('shared.contacts.day(s) after the end of the bill month')\n      }, {\n        value: 'OFCURRENTMONTH',\n        label: this.intl.t('shared.contacts.of the current month')\n      }]);\n      _defineProperty(this, \"salesPaymentTermType\", [{\n        value: 'OF_FOLLOWING_MONTH',\n        label: this.intl.t('shared.contacts.of the following month')\n      }, {\n        value: 'DAYS_AFTER_ISSUE_DATE',\n        label: this.intl.t('shared.contacts.day(s) after the issue date')\n      }, {\n        value: 'DAYS_AFTER_ISSUE_MONTH',\n        label: this.intl.t('shared.contacts.day(s) after the end of the issue month')\n      }, {\n        value: 'OF_CURRENT_MONTH',\n        label: this.intl.t('shared.contacts.of the current month')\n      }]);\n      _defineProperty(this, \"updateSingleContact\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.accountingPlatform.updateContacts.perform(this.sessionData.entity, this.supplier);\n            yield this.store.findRecord('contact', this.supplier.id, {\n              reload: true\n            });\n            this.notifications.success(this.intl.t('shared.notification.Contact has been updated'));\n          } catch (error) {\n            this.notifications.error({\n              error,\n              message: this.intl.t('shared.notification.Something went wrong updating contact(s)')\n            });\n          }\n        }\n      }), null, \"updateSingleContact\", null));\n      _defineProperty(this, \"saveSupplier\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          yield changeset.validate();\n          if (changeset.isInvalid) return;\n          try {\n            const isNew = this.supplier.isNew;\n            const supplier = yield changeset.save();\n            if (isNew) this.router.transitionTo('entity.settings.contacts.contact', supplier.id);\n            // Create a contact in accounting platform if we need to\n            if (!this.supplier.isContactLinkedToAccountingPlatform && this.onChangeSyncWithAccountingPlatform && this.accountingPlatform.isActive) {\n              yield this.accountingPlatform.createContact.perform(this.sessionData.entity, this.supplier);\n              yield this.store.findRecord('contact', supplier.id, {\n                reload: true\n              });\n            }\n            this.notifications.success(this.intl.t('entity.settings.contacts.contact.Successfully saved contact'));\n          } catch (error) {\n            this.notifications.error({\n              error,\n              message: this.intl.t('entity.settings.contacts.contact.Something went wrong saving the contact')\n            });\n          }\n        }\n      }), null, \"saveSupplier\", null));\n      _defineProperty(this, \"addNewAlias\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const raw = this.aliasNameInput ?? '';\n          const aliasName = raw.trim();\n          if (!aliasName) {\n            this.notifications.error(this.intl.t('entity.settings.contacts.contact.Please enter an alias'));\n            return;\n          }\n          const results = yield this.store.query('contact', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'aliases',\n                op: 'CONTAINS_ILIKE',\n                value: `${(0, _searchTermEscape.searchTermEscape)(this.aliasNameInput)}`\n              }]\n            }\n          });\n          if (results?.toArray()?.length) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.contacts.contact.duplicateAliasLinkedToAnotherContact')\n            });\n            return;\n          }\n          try {\n            const changeset = this.model.supplierChangeset.last.value;\n            const currentAliases = changeset.get('aliases') || this.model.supplier.last.value?.aliases || [];\n            const isDuplicate = currentAliases.some(a => (a ?? '').trim().toLowerCase() === aliasName.toLowerCase());\n            if (isDuplicate) {\n              this.notifications.error({\n                message: this.intl.t('entity.settings.contacts.contact.Alias already exists')\n              });\n              return;\n            }\n            changeset.set('aliases', [...currentAliases, aliasName]);\n            this.showAddAliasModal = false;\n            this.aliasNameInput = null;\n          } catch (error) {\n            this.notifications.error({\n              error,\n              message: this.intl.t('entity.settings.contacts.contact.Something went wrong saving the contact')\n            });\n          }\n        }\n      }), null, \"addNewAlias\", null));\n      _defineProperty(this, \"deleteSupplier\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.supplier.destroyRecord();\n            this.notifications.success(this.intl.t('entity.settings.contacts.contact.Successfully deleted contact'));\n            this.isDeletingSupplier = false;\n            this.router.transitionTo('entity.settings.contacts');\n          } catch (error) {\n            this.notifications.error({\n              error,\n              message: this.intl.t('shared.notification.somethingWentWrongWhileDeletingContacts')\n            });\n          }\n        }\n      }), null, \"deleteSupplier\", null));\n    }\n    get aliasesTableData() {\n      const changeset = this.model.supplierChangeset.last.value;\n      const aliases = changeset?.get('aliases') || this.model.supplier.last.value?.aliases || [];\n      return aliases.map(alias => {\n        const userData = [{\n          colClass: 'text-left align-middle text-nowrap col-11',\n          value: alias\n        }, {\n          type: 'BUTTON',\n          textClass: 'btn btn-link text-danger text-nowrap text-decoration-underline',\n          value: 'Remove',\n          onClickButton: this.removeAlias,\n          extraData: {\n            alias\n          }\n        }];\n        return {\n          rowData: userData\n        };\n      });\n    }\n    get aliasesTableHeader() {\n      return [];\n    }\n    get crumbStack() {\n      const paths = [{\n        route: 'entity.settings.contacts',\n        pageTitle: this.intl.t('common.contacts')\n      }, {\n        route: this.model.basePath,\n        pageTitle: this.supplier.isNew ? this.intl.t('entity.settings.contacts.contact.New contact') : this.model.supplier.last.value.name\n      }];\n      return paths;\n    }\n    get disableForm() {\n      return !this.canEditSupplier || this.saveSupplier.isRunning || this.deleteSupplier.isRunning || this.supplier.isContactLinkedToAccountingPlatform;\n    }\n    get canEditSupplier() {\n      return this.newFeatureFlags.includesFeatureFlags(this.sessionData.entity, 'canManageSuppliers');\n    }\n    get supplier() {\n      return this.model.supplier.last.value;\n    }\n    get isLoading() {\n      return this.model.supplier.isRunning || this.model.supplierChangeset.isRunning;\n    }\n    get deleteSupplierDisabledTitle() {\n      let title = null;\n      if (this.supplier.isContactLinkedToAccountingPlatform) {\n        title = this.intl.t('entity.settings.contacts.deleteLinkedToAccountingPlatform', {\n          label: this.accountingPlatform.label\n        });\n      } else if (this.supplier.isLinkedToResources) {\n        title = this.intl.t('entity.settings.contacts.deleteLinkedToResources');\n      }\n      return title;\n    }\n    async removeAlias(_row, col) {\n      const changeset = this.model.supplierChangeset.last.value;\n      const aliases = changeset.get('aliases') || this.model.supplier.last.value?.aliases || [];\n      const filteredAliases = aliases.filter(a => a !== col.extraData.alias);\n      changeset.set('aliases', filteredAliases);\n    }\n    closeAddAliasModal() {\n      this.showAddAliasModal = false;\n      this.aliasNameInput = null;\n    }\n    focusInput(element) {\n      element.focus();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"accountingPlatform\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"onChangeSyncWithAccountingPlatform\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.supplier.isNew ? true : false;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"isDeletingSupplier\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"showAddAliasModal\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"aliasNameInput\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"removeAlias\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"removeAlias\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"closeAddAliasModal\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"closeAddAliasModal\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"focusInput\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"focusInput\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/settings/contacts/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"@glimmer/tracking\", \"@ember/object\", \"ember-concurrency\", \"@ember/runloop\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _service, _tracking, _object, _emberConcurrency, _runloop, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"ember-concurrency\",0,\"ember-concurrency\",0,\"@ember/runloop\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor3, this);\n      _initializerDefineProperty(this, \"router\", _descriptor4, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _initializerDefineProperty(this, \"accountingPlatform\", _descriptor7, this);\n      _initializerDefineProperty(this, \"quickbooks\", _descriptor8, this);\n      _initializerDefineProperty(this, \"selectedSupplierIds\", _descriptor9, this);\n      _initializerDefineProperty(this, \"isEditingSupplier\", _descriptor0, this);\n      _initializerDefineProperty(this, \"isDeletingSuppliers\", _descriptor1, this);\n      _initializerDefineProperty(this, \"needDeleteXeroSuppliers\", _descriptor10, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor11, this);\n      _initializerDefineProperty(this, \"onMergeDuplicateSuppliers\", _descriptor12, this);\n      _initializerDefineProperty(this, \"pageSize\", _descriptor13, this);\n      _initializerDefineProperty(this, \"pageNumber\", _descriptor14, this);\n      _initializerDefineProperty(this, \"duplicateSuppliers\", _descriptor15, this);\n      _initializerDefineProperty(this, \"mergeIndex\", _descriptor16, this);\n      _initializerDefineProperty(this, \"mergeOptions\", _descriptor17, this);\n      _defineProperty(this, \"queryParams\", ['pageSize', 'pageNumber', 'searchString']);\n      _defineProperty(this, \"syncWithAccountingPackage\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          if (this.accountingPlatform.isActive) yield this.updateContacts.perform();\n        }\n      }), null, \"syncWithAccountingPackage\", null));\n      _defineProperty(this, \"onChangeSearchTerm\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSearchTerm, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onChangeSearchTerm\", null));\n      _defineProperty(this, \"onCheckingDuplicateSuppliers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          this.duplicateSuppliers = yield this.buildaPrice.getDuplicateSuppliers({\n            entityId: this.sessionData.entity.id\n          });\n          this.mergeOptions = [...this.duplicateSuppliers];\n        }\n      }), null, \"onCheckingDuplicateSuppliers\", null));\n      _defineProperty(this, \"deleteSuppliers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            const needDeleteSuppliers = this.suppliers.filter(s => this.selectedSupplierIds.has(s.id));\n            yield Promise.all(needDeleteSuppliers.map(supplier => supplier.destroyRecord()));\n            this.isDeletingSuppliers = false;\n            this.selectedSupplierIds = new Set();\n            this.needDeleteXeroSuppliers = [];\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongWhileDeletingContacts'),\n              error\n            });\n          }\n          yield this.updateSupplierList.perform();\n        }\n      }), null, \"deleteSuppliers\", null));\n      _defineProperty(this, \"updateSupplierList\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.model.suppliers.perform(this.model.pageSize, this.model.pageNumber, this.searchString);\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.contacts.somethingWentWrongWhileReloadSuppliers'),\n              error\n            });\n          }\n        }\n      }), null, \"updateSupplierList\", null));\n      _defineProperty(this, \"mergeDuplicatedSupplier\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.buildaPrice.mergeDuplicateSuppliers(this.mergeOptions[0][0].actionData);\n            const cardDom = document.getElementsByClassName(`suppliers__duplicate-suppliers-card-0`)[0];\n            cardDom.classList.add('suppliers__duplicate-suppliers-list-fade-out');\n            yield (0, _emberConcurrency.timeout)(500);\n            this.mergeOptions = this.mergeOptions.slice(1);\n            this.notifications.success(this.intl.t('shared.notification.Contact has been updated'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.contacts.somethingWentWrongWhileMergingSupplier'),\n              error\n            });\n          }\n        }\n      }), null, \"mergeDuplicatedSupplier\", null));\n      _defineProperty(this, \"mergeAndUseDuplicatedSupplier\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (options, index) {\n          try {\n            const optionsIndex = this.mergeOptions.indexOf(options);\n            this.mergeIndex = optionsIndex;\n            const actionData = this.mergeOptions[optionsIndex][index].actionData;\n            yield this.buildaPrice.mergeDuplicateSuppliers(actionData);\n            const cardDom = document.getElementsByClassName(`suppliers__duplicate-suppliers-card-${optionsIndex}`)[0];\n            cardDom.classList.add('suppliers__duplicate-suppliers-list-fade-out');\n            yield (0, _emberConcurrency.timeout)(500);\n            this.mergeOptions.splice(optionsIndex, 1);\n            if (this.mergeOptions.length) {\n              this.mergeOptions = [...this.mergeOptions];\n            } else {\n              this.mergeOptions = [];\n            }\n            this.notifications.success(this.intl.t('shared.notification.Contact has been updated'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.contacts.somethingWentWrongWhileMergingAndUsingSupplier'),\n              error\n            });\n          }\n        }\n      }), null, \"mergeAndUseDuplicatedSupplier\", null));\n      _defineProperty(this, \"updateContacts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            const changes = yield this.accountingPlatform.updateContacts.perform(this.sessionData.entity);\n            if (changes.updated.length) {\n              const updateIds = changes.updated;\n              this.suppliers.forEach(supplier => {\n                if (updateIds.includes(supplier.id)) {\n                  supplier.unloadRecord();\n                }\n              });\n            }\n            yield this.updateSupplierList.perform();\n            this.notifications.success(changes.created.length || changes.updated.length ? this.intl.t('entity.settings.contacts.importedXNewSuppliersAndUpdateX', {\n              created: changes.created.length || 0,\n              updated: changes.updated.length || 0\n            }) : this.intl.t('entity.settings.contacts.All suppliers were already up to date'));\n          } catch (error) {\n            this.notifications.error({\n              error,\n              message: this.intl.t('shared.notification.Something went wrong updating contact(s)')\n            });\n          }\n        }\n      }), null, \"updateContacts\", null));\n    }\n    get isEditable() {\n      return this.newFeatureFlags.includesFeatureFlags(this.sessionData.entity, 'canManageSuppliers');\n    }\n    onChangePageIndex(pageNumber) {\n      this.pageNumber = pageNumber;\n      this.selectedSupplierIds = new Set();\n    }\n    onChangePageSize(pageSize) {\n      this.pageSize = pageSize;\n    }\n    get totalRecords() {\n      return this.model.suppliers.lastSuccessful.value.meta?.totalRecords || 0;\n    }\n    updateSearchTerm(value) {\n      this.selectedSupplierIds = new Set();\n      this.searchString = value.trim();\n      this.pageNumber = 1;\n    }\n    get suppliers() {\n      return this.model.suppliers.lastSuccessful.value.toArray() || [];\n    }\n    get selectableSuppliers() {\n      return this.paginationData.filter(supplier => !(supplier.isLinkedToActiveAccountingPlatform && this.accountingPlatform.isActive || supplier.isLinkedToResources));\n    }\n    get supplierTableHeader() {\n      if (this.model.suppliers.isRunning) return [];\n      const supplierHeader = [{\n        value: this.intl.t('common.Name'),\n        colClass: ' text-left'\n      }, {\n        value: 'Connection',\n        colClass: ' text-left'\n      }, {\n        value: this.intl.t('shared.contacts.Contact person'),\n        colClass: ' text-left'\n      }, {\n        value: this.intl.t('shared.contacts.Contact number'),\n        colClass: 'text-left'\n      }, {\n        value: this.intl.t('common.Email'),\n        colClass: 'text-left'\n      }, {\n        value: this.intl.t('common.Address'),\n        colClass: 'text-left'\n      }];\n      if (this.isEditable && this.suppliers.length) supplierHeader.unshift({\n        type: 'CHECKBOX_INPUT',\n        colClass: 'text-center align-middle',\n        value: Boolean(this.selectableSuppliers.length && this.selectedSupplierIds.size === this.selectableSuppliers.length),\n        isPartiallySelected: Boolean(this.selectableSuppliers.length && this.selectedSupplierIds.size && this.selectedSupplierIds.size !== this.selectableSuppliers.length),\n        onInputChange: this.onSelectAllSuppliers\n      });\n      return supplierHeader;\n    }\n    get isLoading() {\n      return this.model.suppliers.isRunning;\n    }\n    get paginationData() {\n      return this.model.suppliers.lastSuccessful.value?.toArray() || [];\n    }\n    get supplierTableData() {\n      if (this.model.suppliers.isRunning) return [];\n      return this.paginationData.map(supplier => {\n        const isLinkedToAccountingPlatform = supplier.isLinkedToActiveAccountingPlatform;\n        let selectionDisabledTitle = '';\n        if (isLinkedToAccountingPlatform) {\n          selectionDisabledTitle = this.intl.t('entity.settings.contacts.deleteLinkedToAccountingPlatform', {\n            label: this.accountingPlatform.label\n          });\n        } else if (supplier.isLinkedToResources) {\n          selectionDisabledTitle = this.intl.t('entity.settings.contacts.deleteLinkedToResources');\n        }\n        const supplierData = [{\n          type: 'BUTTON',\n          textClass: 'btn btn-link',\n          value: supplier.name,\n          onClickButton: this.onClickSupplierName,\n          extraData: {\n            supplier\n          }\n        }, isLinkedToAccountingPlatform ? {\n          type: 'BUTTON',\n          textClass: 'btn btn-link',\n          value: supplier.viewContactLabel,\n          onClickButton: this.onClickViewAccountingPlatform,\n          iconName: 'sync',\n          title: this.intl.t('entity.settings.contacts.thisSupplierIsSyncedWithYourAccountingPackage'),\n          extraData: {\n            supplier\n          }\n        } : {\n          colClass: 'text-left align-middle text-muted',\n          value: '&mdash;'\n        }, {\n          colClass: 'text-left align-middle',\n          value: supplier?.contactPerson ?? ' — '\n        }, {\n          colClass: 'text-left align-middle',\n          value: supplier?.contactNumber ?? ' — '\n        }, {\n          colClass: 'text-left align-middle',\n          value: supplier?.contactEmail ?? ' — '\n        }, {\n          colClass: 'text-left align-middle',\n          value: supplier?.address ?? ' — '\n        }];\n        if (this.isEditable) {\n          supplierData.unshift({\n            type: 'CHECKBOX_INPUT',\n            colClass: 'text-center align-middle',\n            value: this.selectedSupplierIds.has(supplier.id),\n            disabled: isLinkedToAccountingPlatform || supplier.isLinkedToResources ? true : false,\n            title: selectionDisabledTitle,\n            onInputChange: this.onSelectSupplier,\n            extraData: {\n              supplier\n            }\n          });\n        }\n        return {\n          rowData: supplierData\n        };\n      });\n    }\n    onDeletingSuppliers() {\n      this.needDeleteXeroSuppliers = this.suppliers.filter(s => this.selectedSupplierIds.has(s.id) && s.xeroContactId);\n      this.isDeletingSuppliers = true;\n    }\n    async onClickSupplierName(_row, col) {\n      this.router.transitionTo('entity.settings.contacts.contact', col.extraData.supplier.id);\n    }\n    onClickViewAccountingPlatform(_row, col) {\n      const contact = col.extraData?.supplier;\n      const url = contact?.viewContactUrl;\n      if (!url) return;\n      window.open(url, '_blank', 'noopener,noreferrer');\n    }\n    onSelectSupplier(_row, col, e) {\n      if (e.target.checked) {\n        this.selectedSupplierIds.add(col.extraData.supplier.id);\n      } else {\n        this.selectedSupplierIds.delete(col.extraData.supplier.id);\n      }\n\n      // Set is not supported by tracked\n      // eslint-disable-next-line no-self-assign\n      this.selectedSupplierIds = this.selectedSupplierIds;\n    }\n    openMergeDuplicateSuppliersDialog() {\n      this.onMergeDuplicateSuppliers = true;\n      this.onCheckingDuplicateSuppliers.perform();\n    }\n    closeDuplicateSupplierModal() {\n      if (this.duplicateSuppliers.length !== this.mergeOptions.length) {\n        this.model.suppliers.perform(this.model.pageSize, this.model.pageNumber, this.searchString);\n      }\n      this.model.hasDuplicateSuppliers.perform();\n      this.onMergeDuplicateSuppliers = false;\n    }\n    goNewSupplier() {\n      this.router.transitionTo('entity.settings.contacts.contact', 'new');\n    }\n    onSelectAllSuppliers(_row, _col, e) {\n      if (e.target.checked) {\n        this.selectableSuppliers.forEach(supplier => {\n          this.selectedSupplierIds.add(supplier.id);\n        });\n      } else {\n        this.selectableSuppliers.forEach(supplier => {\n          this.selectedSupplierIds.delete(supplier.id);\n        });\n      }\n\n      // eslint-disable-next-line no-self-assign\n      this.selectedSupplierIds = this.selectedSupplierIds;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"accountingPlatform\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"quickbooks\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"selectedSupplierIds\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return new Set();\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"isEditingSupplier\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"isDeletingSuppliers\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"needDeleteXeroSuppliers\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"onMergeDuplicateSuppliers\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"pageSize\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"pageNumber\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, \"duplicateSuppliers\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, \"mergeIndex\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, \"mergeOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"onChangePageIndex\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onChangePageIndex\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onChangePageSize\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onChangePageSize\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"updateSearchTerm\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"updateSearchTerm\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onDeletingSuppliers\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onDeletingSuppliers\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onClickSupplierName\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onClickSupplierName\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onClickViewAccountingPlatform\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onClickViewAccountingPlatform\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onSelectSupplier\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onSelectSupplier\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"openMergeDuplicateSuppliersDialog\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"openMergeDuplicateSuppliersDialog\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"closeDuplicateSupplierModal\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"closeDuplicateSupplierModal\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"goNewSupplier\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"goNewSupplier\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onSelectAllSuppliers\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onSelectAllSuppliers\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/settings/gl-accounts\", [\"exports\", \"@ember/controller\"], function (_exports, _controller) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\"eaimeta@70e063a35619d71f\n  class _default extends _controller.default {}\n  _exports.default = _default;\n});","define(\"portal/controllers/entity/settings/integrations\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"@glimmer/tracking\", \"@ember/object\", \"portal/validators/ips-connection\", \"jquery\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _service, _tracking, _object, _ipsConnection, _jquery, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"ember-concurrency\",0,\"@ember/object\",0,\"portal/validators/ips-connection\",0,\"jquery\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"session\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor3, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor4, this);\n      _initializerDefineProperty(this, \"xeroIntegration\", _descriptor5, this);\n      _initializerDefineProperty(this, \"helpCenter\", _descriptor6, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor7, this);\n      _initializerDefineProperty(this, \"ips\", _descriptor8, this);\n      _initializerDefineProperty(this, \"router\", _descriptor9, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor0, this);\n      _initializerDefineProperty(this, \"quickbooks\", _descriptor1, this);\n      _defineProperty(this, \"xeroValidationMap\", {});\n      _defineProperty(this, \"itmValidationMap\", {});\n      _defineProperty(this, \"defaultInvoiceStatusOptions\", [{\n        value: 'DRAFT',\n        label: this.intl.t('common.Draft')\n      }, {\n        value: 'SUBMITTED',\n        label: this.intl.t('common.Awaiting approval')\n      }, {\n        value: 'AUTHORISED',\n        label: this.intl.t('entity.settings.integrations.Awaiting payment')\n      }]);\n      _defineProperty(this, \"defaultCreditNoteStatusOptions\", [{\n        value: 'SUBMITTED',\n        label: this.intl.t('common.Submitted')\n      }, {\n        value: 'AUTHORISED',\n        label: this.intl.t('entity.settings.integrations.Awaiting payment')\n      }]);\n      _defineProperty(this, \"defaultTimesheetStatusOptions\", [{\n        value: 'DRAFT',\n        label: this.intl.t('common.Draft')\n      }, {\n        value: 'APPROVED',\n        label: this.intl.t('common.Approved')\n      }]);\n      _defineProperty(this, \"updateCompanyFeatures\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeSet) {\n          changeSet.execute();\n          try {\n            yield this.setEntityFeatures(changeSet.data);\n            yield this.model.entity.reload();\n            yield this.model.entity.hasMany('attributes').ids();\n            yield this.store.simpleQuery('entity', {\n              _id: this.model.entity.id\n            });\n            this.notifications.success(this.intl.t('entity.settings.integrations.Successfully updated integration options'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.integrations.somethingWentWrongWhileUpdatingIntegrationOptions'),\n              error\n            });\n          }\n        }\n      }), null, \"updateCompanyFeatures\", null));\n      _defineProperty(this, \"saveIpsConnection\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          const isNew = changeset.isNew;\n          try {\n            yield changeset.validate();\n            if (changeset.isInvalid) {\n              this.notifications.warning(this.intl.t('shared.notification.Please complete the information'));\n              return;\n            }\n            yield changeset.save();\n\n            // the connection is what makes IPS ready, so the meter needs fresh usage\n            yield this.ips.getUsage();\n            this.notifications.success(isNew ? this.intl.t('entity.settings.integrations.Successfully set up IPS') : this.intl.t('entity.settings.integrations.Successfully updated IPS contact email'));\n          } catch (error) {\n            this.notifications.error({\n              message: isNew ? this.intl.t('entity.settings.integrations.somethingWentWrongWhileSettingUpIPS') : this.intl.t('entity.settings.integrations.somethingWentWrongWhileUpdatingIPSContactEmail'),\n              error\n            });\n          }\n        }\n      }), null, \"saveIpsConnection\", null));\n      _defineProperty(this, \"removeXeroCompany\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.xeroIntegration.disconnect();\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.integrations.Failed to disconnect Xero organisation'),\n              error\n            });\n          }\n        }\n      }), null, \"removeXeroCompany\", null));\n      _defineProperty(this, \"saveXeroConnection\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          try {\n            changeset.validate();\n            if (changeset.isInvalid) {\n              this.notifications.warning(this.intl.t('shared.notification.Please complete the information'));\n              return;\n            }\n            changeset.execute();\n            yield changeset.save();\n            this.notifications.success(this.intl.t('shared.notification.Saved successfully'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.Something went wrong while saving'),\n              error\n            });\n          }\n        }\n      }), null, \"saveXeroConnection\", null));\n      _initializerDefineProperty(this, \"selectedItmStores\", _descriptor10, this);\n      _defineProperty(this, \"setXeroCompany\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.xeroIntegration.connect(); // this causes navigation away from the app\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.integrations.Failed to authenticate to Xero'),\n              error\n            });\n          }\n        }\n      }), null, \"setXeroCompany\", null));\n      _defineProperty(this, \"setQuickBooksCompany\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.quickbooks.connect(); // this causes navigation away from the app\n          } catch (error) {\n            this.notifications.error({\n              message: 'failed to connect to quickbooks',\n              error\n            });\n          }\n        }\n      }), null, \"setQuickBooksCompany\", null));\n      _defineProperty(this, \"removeQuickBooksCompany\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.quickbooks.disconnect();\n          } catch (error) {\n            this.notifications.error({\n              message: 'Failed to disconnect quickbooks',\n              error\n            });\n          }\n        }\n      }), null, \"removeQuickBooksCompany\", null));\n      _defineProperty(this, \"requestItmStores\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const token = this.session.data.authenticated.access_token;\n          const payload = {\n            entity: this.sessionData.entity.id,\n            stores: this.selectedItmStores.map(store => store.id)\n          };\n          if (payload.stores.length < 1) {\n            return this.notifications.warning({\n              message: this.intl.t('entity.settings.integrations.pleaseSelectEntitiesForTheRequest')\n            });\n          }\n          this.selectedItmStores = [];\n          try {\n            yield requestIntegrationAjax(token, payload);\n            yield this.store.simpleQuery('entity', {\n              _id: this.sessionData.entity.id\n            }, {\n              include: 'eaccountsInvoiceIntegration'\n            });\n            yield this.model.itmSuppliers.perform();\n            this.notifications.success(this.intl.t('entity.settings.integrations.Successfully made integration request'));\n          } catch (err) {\n            if (err.statusText === 'Bad Request') this.notifications.warning(this.intl.t('entity.settings.integrations.pleaseEnsureYouHaveCompletedTheForm'));else this.send('error', err);\n          }\n        }\n      }), null, \"requestItmStores\", null));\n      _defineProperty(this, \"updatePlaceMakersIntegration\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (enabled) {\n          try {\n            yield this.setEntityFeatures({\n              canUsePlaceMakers: enabled\n            });\n            yield this.store.simpleQuery('entity', {\n              _id: this.model.entity.id\n            });\n            if (enabled) {\n              this.notifications.success(this.intl.t('entity.settings.integrations.successfullyEnabledPlaceMakersIntegration'));\n            } else {\n              this.notifications.success(this.intl.t('entity.settings.integrations.successfullyDisabledPlaceMakersIntegration'));\n            }\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.integrations.somethingWentWrongWhileUpdatingPlaceMakersIntegration'),\n              error\n            });\n          }\n        }\n      }), null, \"updatePlaceMakersIntegration\", null));\n    }\n    get xeroCompanyId() {\n      return this.xeroIntegration.companyId;\n    }\n    get xeroCompanyName() {\n      return this.xeroIntegration.companyName;\n    }\n    get shortCode() {\n      return this.xeroCompanyId;\n    }\n    get allowedXeroIntegration() {\n      return this.xeroIntegration.ready;\n    }\n    get quickbooksUrl() {\n      return _environment.default.urls.quickbooksUrl;\n    }\n    get xeroConnection() {\n      return this.xeroIntegration.connection;\n    }\n    get ipsConnectionValidator() {\n      return (0, _ipsConnection.default)(this.intl);\n    }\n    async setEntityFeatures(features) {\n      const entity = this.model.entity;\n      const links = entity.hasMany('attributes').value() || [];\n      await Promise.all(Object.entries(features).map(async ([key, enabled]) => {\n        const link = links.find(item => item.belongsTo('attribute').id() === key);\n        if (!enabled) return link?.destroyRecord();\n        if (link) return;\n        const attribute = await this.store.findRecord('entity-attribute', key);\n        return this.store.createRecord('link-entity-to-entity-attribute', {\n          entity,\n          attribute\n        }).save();\n      }));\n    }\n    get eaccountsInvoiceIntegration() {\n      // TODO when this relationships is fixed this will be one record\n      // the reference API does not work well with computed properties and glimmer tracking https://github.com/emberjs/data/issues/7102\n\n      const eaccountsInvoiceIntegration = this.sessionData.entity.hasMany('eaccountsInvoiceIntegration').value() || [];\n      if (eaccountsInvoiceIntegration[0]) return eaccountsInvoiceIntegration[0];\n\n      // if you don't have one already, return a fake one\n      return {\n        allowed: true,\n        requests: [],\n        entity: this.sessionData.entity\n      };\n    }\n    get requestableItmStores() {\n      return this.model.itmSuppliers.last.value;\n    }\n    get requestedItmStores() {\n      return this.eaccountsInvoiceIntegration.requests;\n    }\n    addItmStoreRequest(stores) {\n      this.selectedItmStores = stores;\n    }\n    contactSupport() {\n      const helpCenter = this.helpCenter;\n      if (helpCenter?.helpCenterActive) {\n        helpCenter.openHelpCenter();\n      }\n    }\n    cancelItmStoreRequest(store) {\n      this.eaccountsInvoiceIntegration.requests = this.eaccountsInvoiceIntegration.requests.map(request => {\n        if (request.supplier !== store.supplier) return request;\n        return {\n          ...request,\n          status: 'Canceled'\n        };\n      });\n      this.eaccountsInvoiceIntegration.save();\n    }\n    reconnectITmStoreRequest(store) {\n      this.eaccountsInvoiceIntegration.requests = this.eaccountsInvoiceIntegration.requests.map(request => {\n        if (request.supplier !== store.supplier) return request;\n        return {\n          ...request,\n          status: 'Pending'\n        };\n      });\n      this.eaccountsInvoiceIntegration.save();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"xeroIntegration\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"helpCenter\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"ips\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"quickbooks\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"selectedItmStores\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"addItmStoreRequest\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"addItmStoreRequest\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"contactSupport\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"contactSupport\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"cancelItmStoreRequest\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"cancelItmStoreRequest\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"reconnectITmStoreRequest\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"reconnectITmStoreRequest\"), _class2.prototype), _class2);\n  function requestIntegrationAjax(token, payload) {\n    return new Promise((resolve, reject) => {\n      // eslint-disable-next-line ember/no-jquery\n      _jquery.default.ajax({\n        contentType: 'application/json',\n        method: 'POST',\n        url: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/eaccounts/setup-invoice-imports',\n        data: JSON.stringify(payload),\n        headers: {\n          Authorization: 'Bearer ' + token\n        }\n      }).then(resolve, reject);\n    });\n  }\n});","define(\"portal/controllers/entity/settings/people\", [\"exports\", \"@ember/controller\", \"@ember/service\"], function (_exports, _controller, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n    }\n    get tabs() {\n      const tabsArray = [];\n      if (this.newFeatureFlags.includesFeatureFlags('canUseUsers')) {\n        tabsArray.push({\n          name: this.intl.t('common.Users'),\n          route: 'entity.settings.people.users',\n          icon: 'user'\n        });\n      }\n      if (this.newFeatureFlags.includesFeatureFlags('canUseClientPortal')) {\n        tabsArray.push({\n          name: this.intl.t('common.Clients'),\n          route: 'entity.settings.people.clients',\n          icon: 'user-tie'\n        });\n      }\n      if (this.newFeatureFlags.includesFeatureFlags('canUseSubcontractors')) {\n        tabsArray.push({\n          name: this.intl.t('common.Subcontractors'),\n          route: 'entity.settings.people.subcontractors',\n          icon: 'hard-hat'\n        });\n      }\n      if (this.newFeatureFlags.includesFeatureFlags('canUseWorkers')) {\n        tabsArray.push({\n          name: this.intl.t('common.Workers'),\n          route: 'entity.settings.people.workers',\n          icon: 'users'\n        });\n      }\n      return tabsArray;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/controllers/entity/settings/people/clients/client\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"rsvp\", \"jquery\", \"portal/config/environment\", \"@ember/object\"], function (_exports, _asyncArrowRuntime, _controller, _service, _rsvp, _jquery, _environment, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"rsvp\",0,\"jquery\",0,\"portal/config/environment\",0,\"ember-concurrency\",0,\"@ember/object\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('intl', 'model.basePath', 'model.user.last.value.{fullName,id}', 'user.isNew'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor3, this);\n      _initializerDefineProperty(this, \"session\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n      _initializerDefineProperty(this, \"router\", _descriptor6, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor7, this);\n      _defineProperty(this, \"saveUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          try {\n            yield changeset.validate();\n            if (changeset.isInvalid) return;\n            const wasNew = Boolean(this.user.isNew);\n\n            //validate the any users exists with same email id in different type of user\n            if (wasNew) {\n              const user = yield this.store.simpleQuery('user', {\n                email: changeset.email.toLowerCase()\n              }).then(res => res[0]);\n              if (user) {\n                const userEntityAttribute = yield this.store.simpleQuery('user-entity-attribute', {\n                  user: user.id,\n                  entity: this.sessionData.entity.id\n                });\n                if (userEntityAttribute.length) return this.notifications.warning(this.intl.t('shared.notification.emailAddressAlreadyExists'));\n              }\n            }\n            const response = yield inviteUserAjax({\n              firstName: changeset.firstName,\n              lastName: changeset.lastName,\n              email: changeset.email,\n              phoneNumber: changeset.phoneNumber,\n              entity: this.sessionData.entity.id\n            }, this.session.data.authenticated.access_token);\n            this.router.transitionTo(`${this.model.basePath}.clients.client`, response.newUserId);\n            this.notifications.success(this.intl.t('shared.notification.Successfully saved user'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.Something went wrong saving the user'),\n              error\n            });\n          }\n        }\n      }), null, \"saveUser\", null));\n      _defineProperty(this, \"deleteUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            if (!confirm(this.intl.t('entity.settings.people.clients.client.areYouSureYouWantToDeleteThisClient'))) return;\n\n            // fetch the user attributes again so we have all the attributes\n            yield Promise.all([this.store.simpleQuery('user-entity-attribute', {\n              user: this.user.id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-project-attribute', {\n              user: this.user.id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-task-attribute', {\n              user: this.user.id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-worker-attribute', {\n              user: this.user.id,\n              entity: this.sessionData.entity.id\n            })]);\n\n            // destroy all the attributes for this entity\n            const destroyAttribute = attribute => {\n              // only destroy attributes for this entity\n              if (attribute.belongsTo('entity').value() === this.sessionData.entity) return attribute.destroyRecord();\n            };\n            // for some reason we need to look up the relationships using old school getters\n            yield Promise.all([Promise.all((this.user.hasMany('entityAttributes').value() || []).map(destroyAttribute)), Promise.all((this.user.hasMany('projectAttributes').value() || []).map(destroyAttribute)), Promise.all((this.user.hasMany('taskAttributes').value() || []).map(destroyAttribute)), Promise.all((this.user.hasMany('workerAttributes').value() || []).map(destroyAttribute))]);\n\n            // if you have deleted someone else, go back to the clients index to reload the clients list\n            this.router.transitionTo(`${this.model.basePath}.clients.index`);\n            this.notifications.success(this.intl.t('entity.settings.people.clients.client.Successfully deleted user'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.Something went wrong deleting the user'),\n              error\n            });\n          }\n        }\n      }), null, \"deleteUser\", null));\n      _defineProperty(this, \"sendPasswordResetEmail\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          try {\n            // this will have the effect of sending a password reset email\n            yield inviteUserAjax({\n              firstName: changeset.firstName,\n              lastName: changeset.lastName,\n              email: changeset.email,\n              entity: this.sessionData.entity.id\n            }, this.session.data.authenticated.access_token);\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongSendingTheReminderEmail'),\n              error\n            });\n          }\n        }\n      }), null, \"sendPasswordResetEmail\", null));\n    }\n    get crumbStack() {\n      const paths = [{\n        route: `${this.model.basePath}.clients`,\n        pageTitle: this.intl.t('common.Clients')\n      }, {\n        route: `${this.model.basePath}.clients`,\n        pageTitle: this.user.isNew ? this.intl.t('entity.settings.people.clients.client.New client') : this.model.user.last.value.fullName\n      }];\n      return paths;\n    }\n    get isRunning() {\n      return this.model.user.isRunning || this.model.userChangeset.isRunning;\n    }\n    get user() {\n      return this.model.user.last.value;\n    }\n    get canManageUser() {\n      return this.userIsYou || this.newFeatureFlags.includesFeatureFlags(this.user, 'canManageUsers');\n    }\n    loginAs(...args) {\n      this.sessionData.loginAs(...args);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"crumbStack\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"crumbStack\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"loginAs\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"loginAs\"), _class2.prototype), _class2);\n  function inviteUserAjax(payload, token) {\n    const url = _environment.default.urls.api + _environment.default.urls.apiV1Path + '/invite-user/builda-price-client';\n    return new _rsvp.default.Promise((resolve, reject) => {\n      _jquery.default.ajax({\n        contentType: 'application/json',\n        method: 'POST',\n        url: url,\n        data: JSON.stringify(Object.assign(payload, {\n          callback: _environment.default.urls.app + '/reset-password',\n          appURL: _environment.default.urls.app\n        })),\n        headers: {\n          Authorization: 'Bearer ' + token\n        }\n      }).then(resolve, reject);\n    });\n  }\n});","define(\"portal/controllers/entity/settings/people/clients/index\", [\"exports\", \"@ember/controller\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\"], function (_exports, _controller, _tracking, _object, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('filteredClients', 'model.{basePath,clients.last.value}', 'searchString.length'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"searchString\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor4, this);\n      _initializerDefineProperty(this, \"session\", _descriptor5, this);\n    }\n    get isLoading() {\n      return this.model.clients.isRunning;\n    }\n    loginAs(...args) {\n      this.sessionData.loginAs(...args);\n    }\n    get filteredClients() {\n      const result = this.model.clients.last.value?.filter(client => {\n        const matchString = `${client.firstName}${client.lastName}${client.email}${client.phoneNumber}`.toLowerCase();\n        return matchString.includes(this.searchString.replace(/\\s/g, '').toLowerCase());\n      }).sort((a, b) => a.sortIndex - b.sortIndex) || [];\n      return result;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"loginAs\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"loginAs\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"filteredClients\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"filteredClients\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/settings/people/subcontractors/index\", [\"exports\", \"@ember/controller\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\"], function (_exports, _controller, _tracking, _object, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('filteredSubcontractors', 'model.{basePath,subcontractors.last.value}', 'searchString.length'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"searchString\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor4, this);\n      _initializerDefineProperty(this, \"session\", _descriptor5, this);\n    }\n    get isLoading() {\n      return this.model.subcontractors.isRunning;\n    }\n    loginAs(...args) {\n      this.sessionData.loginAs(...args);\n    }\n    get filteredSubcontractors() {\n      const result = this.model.subcontractors.last.value?.filter(subcontractor => {\n        const matchString = `${subcontractor.firstName}${subcontractor.lastName}${subcontractor.email}${subcontractor.phoneNumber}`.toLowerCase();\n        return matchString.includes(this.searchString.replace(/\\s/g, '').toLowerCase());\n      }).sort((a, b) => a.sortIndex - b.sortIndex) || [];\n      return result;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"loginAs\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"loginAs\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"filteredSubcontractors\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"filteredSubcontractors\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/settings/people/subcontractors/subcontractor\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"rsvp\", \"jquery\", \"portal/config/environment\", \"@glimmer/tracking\", \"@ember/object\", \"portal/routes/entity/settings/people/subcontractors/subcontractor\"], function (_exports, _asyncArrowRuntime, _controller, _service, _rsvp, _jquery, _environment, _tracking, _object, _subcontractor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"rsvp\",0,\"jquery\",0,\"portal/config/environment\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"portal/routes/entity/settings/people/subcontractors/subcontractor\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('intl', 'model.basePath', 'model.user.last.value.{fullName,id}', 'user.isNew'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor3, this);\n      _initializerDefineProperty(this, \"session\", _descriptor4, this);\n      _initializerDefineProperty(this, \"router\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _initializerDefineProperty(this, \"store\", _descriptor7, this);\n      _initializerDefineProperty(this, \"_projectPermissionsVisible\", _descriptor8, this);\n      _initializerDefineProperty(this, \"_schedulingPermissionsVisible\", _descriptor9, this);\n      _initializerDefineProperty(this, \"_allocationsPermissionsVisible\", _descriptor0, this);\n      _initializerDefineProperty(this, \"_reportsPermissionsVisible\", _descriptor1, this);\n      _initializerDefineProperty(this, \"_settingsPermissionsVisible\", _descriptor10, this);\n      _initializerDefineProperty(this, \"_healthAndSafetyPermissionsVisible\", _descriptor11, this);\n      _defineProperty(this, \"saveUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          try {\n            yield changeset.validate();\n            if (changeset.isInvalid) return;\n            const wasNew = Boolean(this.user.isNew);\n\n            //validate the any users exists with same email id in different type of user\n            if (wasNew) {\n              const user = yield this.store.simpleQuery('user', {\n                email: changeset.email.toLowerCase()\n              }).then(res => res[0]);\n              if (user) {\n                const userEntityAttribute = yield this.store.simpleQuery('user-entity-attribute', {\n                  user: user.id,\n                  entity: this.sessionData.entity.id\n                });\n                if (userEntityAttribute.length) return this.notifications.warning(this.intl.t('shared.notification.emailAddressAlreadyExists'));\n              }\n            }\n            const response = yield inviteUserAjax({\n              firstName: changeset.firstName,\n              lastName: changeset.lastName,\n              email: changeset.email,\n              phoneNumber: changeset.phoneNumber,\n              entity: this.sessionData.entity.id\n            }, this.session.data.authenticated.access_token);\n            this.router.transitionTo(`${this.model.basePath}.subcontractors.subcontractor`, response.newUserId);\n            this.notifications.success(this.intl.t('entity.settings.people.subcontractors.subcontractor.Successfully saved subcontractor'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.people.subcontractors.subcontractor.somethingWentWrongSavingTheSubcontractor'),\n              error\n            });\n          }\n        }\n      }), null, \"saveUser\", null));\n      _defineProperty(this, \"deleteUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            if (!confirm(this.userIsYou ? this.intl.t('shared.notification.areYouSureYouWantToRemoveYourselfFromThisCompany') : this.intl.t('entity.settings.people.subcontractors.subcontractor.areYouSureYouWantToDeleteThisSubcontractor'))) return;\n\n            // fetch the user attributes again so we have all the attributes\n            yield Promise.all([this.store.simpleQuery('user-entity-attribute', {\n              user: this.user.id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-project-attribute', {\n              user: this.user.id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-task-attribute', {\n              user: this.user.id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-worker-attribute', {\n              user: this.user.id,\n              entity: this.sessionData.entity.id\n            })]);\n\n            // destroy all the attributes for this entity\n            const destroyAttribute = attribute => {\n              // only destroy attributes for this entity\n              if (attribute.belongsTo('entity').value() === this.sessionData.entity) return attribute.destroyRecord();\n            };\n            // for some reason we need to look up the relationships using old school getters\n            yield Promise.all([Promise.all((this.user.hasMany('entityAttributes').value() || []).map(destroyAttribute)), Promise.all((this.user.hasMany('projectAttributes').value() || []).map(destroyAttribute)), Promise.all((this.user.hasMany('taskAttributes').value() || []).map(destroyAttribute)), Promise.all((this.user.hasMany('workerAttributes').value() || []).map(destroyAttribute))]);\n\n            // if you have deleted yourself, go back to index to refresh permissions and entities\n            if (this.userIsYou) this.router.transitionTo('index');else {\n              // if you have deleted someone else, go back to the users index to reload the users list\n              this.router.transitionTo(`${this.model.basePath}.subcontractors.index`);\n              this.notifications.success('Successfully deleted subcontractor');\n            }\n          } catch (error) {\n            this.notifications.error({\n              message: this.userIsYou ? this.intl.t('shared.notification.somethingWentWrongRemovingYouFromTheCompany') : this.intl.t('entity.settings.people.subcontractors.subcontractor.somethingWentWrongDeletingTheSubcontractor'),\n              error\n            });\n          }\n        }\n      }), null, \"deleteUser\", null));\n      _defineProperty(this, \"savePermissions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          try {\n            yield changeset.validate();\n            if (changeset.isInvalid) return;\n            const entityAttributesToAdd = [];\n            const entityAttributesToRemove = [];\n            const workersToAdd = [];\n            if (changeset.isCompanyAdministrator) {\n              entityAttributesToAdd.push(..._subcontractor.administratorAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.administratorAttributes);\n            }\n            if (changeset.canManageEverything) {\n              entityAttributesToAdd.push(..._subcontractor.managerAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.managerAttributes);\n            }\n            if (changeset.canViewBills) {\n              entityAttributesToAdd.push(..._subcontractor.canViewBillsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewBillsAttributes);\n            }\n            if (changeset.canManageBills) {\n              entityAttributesToAdd.push(..._subcontractor.canManageBillsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canManageBillsAttributes);\n            }\n            if (changeset.canViewTimesheets) {\n              entityAttributesToAdd.push(..._subcontractor.canViewTimesheetsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewTimesheetsAttributes);\n            }\n            if (changeset.canManageTimesheets) {\n              entityAttributesToAdd.push(..._subcontractor.canManageTimesheetsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canManageTimesheetsAttributes);\n            }\n            if (changeset.canViewProjects) {\n              entityAttributesToAdd.push(..._subcontractor.canViewProjectsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewProjectsAttributes);\n            }\n            if (changeset.canManageProjects) {\n              entityAttributesToAdd.push(..._subcontractor.canManageProjectsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canManageProjectsAttributes);\n            }\n            if (changeset.canViewTasks) {\n              entityAttributesToAdd.push(..._subcontractor.canViewTasksAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewTasksAttributes);\n            }\n            if (changeset.canManageTasks) {\n              entityAttributesToAdd.push(..._subcontractor.canManageTasksAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canManageTasksAttributes);\n            }\n            if (changeset.canViewBudgets) {\n              entityAttributesToAdd.push(..._subcontractor.canViewBudgetsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewBudgetsAttributes);\n            }\n            if (changeset.canManageBudgets) {\n              entityAttributesToAdd.push(..._subcontractor.canManageBudgetsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canManageBudgetsAttributes);\n            }\n            if (changeset.canViewProgress) {\n              entityAttributesToAdd.push(..._subcontractor.canViewProgressAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewProgressAttributes);\n            }\n            if (changeset.canManageProgress) {\n              entityAttributesToAdd.push(..._subcontractor.canManageProgressAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canManageProgressAttributes);\n            }\n            if (changeset.canViewQuotes) {\n              entityAttributesToAdd.push(..._subcontractor.canViewQuotesAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewQuotesAttributes);\n            }\n            if (changeset.canManageQuotes) {\n              entityAttributesToAdd.push(..._subcontractor.canManageQuotesAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canManageQuotesAttributes);\n            }\n            if (changeset.canViewProducts) {\n              entityAttributesToAdd.push(..._subcontractor.canViewProductsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewProductsAttributes);\n            }\n            if (changeset.canManageProducts) {\n              entityAttributesToAdd.push(..._subcontractor.canManageProductsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canManageProductsAttributes);\n            }\n            if (changeset.canViewFileStorage) {\n              entityAttributesToAdd.push(..._subcontractor.canViewFileStorageAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewFileStorageAttributes);\n            }\n            if (changeset.canManageFileStorage) {\n              entityAttributesToAdd.push(..._subcontractor.canManageFileStorageAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canManageFileStorageAttributes);\n            }\n            if (changeset.canManageWorkers) {\n              entityAttributesToAdd.push(..._subcontractor.canManageWorkersAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canManageWorkersAttributes);\n            }\n            if (changeset.canViewWorkers) {\n              entityAttributesToAdd.push(..._subcontractor.canViewWorkersAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewWorkersAttributes);\n            }\n            if (changeset.canViewPayrollReports) {\n              entityAttributesToAdd.push(..._subcontractor.canViewPayrollReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewPayrollReportsAttributes);\n            }\n            if (changeset.canViewBudgetFinancialReports) {\n              entityAttributesToAdd.push(..._subcontractor.canViewBudgetReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewBudgetReportsAttributes);\n            }\n            if (changeset.canViewBudgetLabourHourReports) {\n              entityAttributesToAdd.push(..._subcontractor.canViewBudgetLabourHourReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewBudgetLabourHourReportsAttributes);\n            }\n            if (changeset.canViewQuoteReports) {\n              entityAttributesToAdd.push(..._subcontractor.canViewQuoteReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewQuoteReportsAttributes);\n            }\n            if (changeset.canViewCostFinancialReports) {\n              entityAttributesToAdd.push(..._subcontractor.canViewCostReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewCostReportsAttributes);\n            }\n            if (changeset.canViewCostLabourHourReports) {\n              entityAttributesToAdd.push(..._subcontractor.canViewCostLabourHourReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewCostLabourHourReportsAttributes);\n            }\n            if (changeset.canViewChargeupReports) {\n              entityAttributesToAdd.push(..._subcontractor.canViewChargeupReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewChargeupReportsAttributes);\n            }\n            if (changeset.canViewProgressReports) {\n              entityAttributesToAdd.push(..._subcontractor.canViewProgressReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewProgressReportsAttributes);\n            }\n            if (changeset.canEstimate) {\n              entityAttributesToAdd.push(..._subcontractor.canManageEstimatesAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canManageEstimatesAttributes);\n            }\n            if (changeset.canManageEstimateSettings) {\n              entityAttributesToAdd.push(..._subcontractor.canManageEstimateSettingsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canManageEstimateSettingsAttributes);\n            }\n            if (changeset.canViewSchedulingReports) {\n              entityAttributesToAdd.push(..._subcontractor.canViewSchedulingReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewSchedulingReportsAttributes);\n            }\n            if (changeset.canManageSchedulingReports) {\n              entityAttributesToAdd.push(..._subcontractor.canManageSchedulingReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canManageSchedulingReportsAttributes);\n            }\n            if (changeset.canUseReportBuilderReport) {\n              entityAttributesToAdd.push(..._subcontractor.canUseReportBuilderReportAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canUseReportBuilderReportAttributes);\n            }\n            if (changeset.canCreateHealthAndSafety) {\n              entityAttributesToAdd.push(..._subcontractor.canCreateHealthAndSafetyAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canCreateHealthAndSafetyAttributes);\n            }\n            if (changeset.canManageHealthAndSafety) {\n              entityAttributesToAdd.push(..._subcontractor.canManageHealthAndSafetyAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canManageHealthAndSafetyAttributes);\n            }\n            if (changeset.canManageIntegrations) {\n              entityAttributesToAdd.push(..._subcontractor.canManageIntegrationsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canManageIntegrationsAttributes);\n            }\n            if (changeset.canViewInvoicingReports) {\n              entityAttributesToAdd.push(..._subcontractor.canViewInvoicingReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewInvoicingReportsAttributes);\n            }\n\n            // workers are set every time\n            workersToAdd.push(...changeset.workers);\n            yield Promise.all([this.handleEntityAttributes([...new Set(entityAttributesToAdd)], [...new Set(entityAttributesToRemove)]), this.handleWorkers([...new Set(workersToAdd)])]);\n            this.notifications.success(this.intl.t('shared.notification.Successfully saved permissions'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongSavingThePermissions'),\n              error\n            });\n          }\n        }\n      }), null, \"savePermissions\", null));\n      _defineProperty(this, \"sendPasswordResetEmail\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          try {\n            // this will have the effect of sending a password reset email\n            yield inviteUserAjax({\n              firstName: changeset.firstName,\n              lastName: changeset.lastName,\n              email: changeset.email,\n              entity: this.sessionData.entity.id\n            }, this.session.data.authenticated.access_token);\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongSendingTheReminderEmail'),\n              error\n            });\n          }\n        }\n      }), null, \"sendPasswordResetEmail\", null));\n    }\n    get crumbStack() {\n      const paths = [{\n        route: `${this.model.basePath}.subcontractors`,\n        pageTitle: this.intl.t('common.Subcontractors')\n      }, {\n        route: `${this.model.basePath}.subcontractors`,\n        pageTitle: this.user.isNew ? this.intl.t('entity.settings.people.subcontractors.subcontractor.New subcontractor') : this.model.user.last.value.fullName\n      }];\n      return paths;\n    }\n    get isRunning() {\n      return this.model.user.isRunning || this.model.userChangeset.isRunning || this.model.permissionsChangeset.isRunning || this.model.workers.isRunning;\n    }\n    get permissionsChangeset() {\n      return this.model.permissionsChangeset.last.value;\n    }\n    get canViewReports() {\n      const reports = {\n        [this.intl.t('common.Budget')]: ['canViewBudgetFinancialReports', 'canViewCostFinancialReports'],\n        [this.intl.t('common.Chargeup')]: ['canViewChargeupReports', 'canViewProgressReports', 'canViewQuoteReports'],\n        [this.intl.t('common.Costs')]: ['canViewCostFinancialReports', 'canViewBills', 'canViewTimesheets'],\n        [this.intl.t('shared.report.Forecast breakdown')]: ['canViewBudgetFinancialReports', 'canViewCostFinancialReports', 'canViewProgressReports', 'canViewQuoteReports'],\n        [this.intl.t('common.Labour hours')]: ['canViewBudgetLabourHourReports', 'canViewCostLabourHourReports', 'canViewProgressReports'],\n        [this.intl.t('common.Position')]: ['canViewBudgetFinancialReports', 'canViewBudgetLabourHourReports', 'canViewCostFinancialReports', 'canViewCostLabourHourReports', 'canViewProgressReports', 'canViewQuoteReports', 'canViewChargeupReports'],\n        [this.intl.t('common.Profit margins')]: ['canViewBudgetFinancialReports', 'canViewCostFinancialReports', 'canViewProgressReports', 'canViewChargeupReports'],\n        [this.intl.t('common.Quote')]: ['canViewQuoteReports', 'canViewChargeupReports'],\n        [this.intl.t('shared.report.Work in progress')]: ['canViewBudgetFinancialReports', 'canViewCostFinancialReports', 'canViewProgressReports', 'canViewQuoteReports'],\n        [this.intl.t('common.Invoicing')]: ['canViewInvoicingReports'],\n        [this.intl.t('common.Cost to complete')]: ['canViewQuoteReports', 'canViewProgressReports', 'canViewChargeupReports', 'canViewInvoicingReports']\n      };\n      const allowedReports = Object.keys(reports).filter(key => reports[key].every(p => this.permissionsChangeset[p]));\n      if (!allowedReports.length) return '';\n      return allowedReports.join(', ');\n    }\n    get projectPermissionsCount() {\n      return [this.permissionsChangeset.canEstimate, this.permissionsChangeset.canManageBudgets, this.permissionsChangeset.canManageEstimateSettings, this.permissionsChangeset.canManageFileStorage, this.permissionsChangeset.canManageProducts, this.permissionsChangeset.canManageProgress, this.permissionsChangeset.canManageProjects, this.permissionsChangeset.canManageQuotes, this.permissionsChangeset.canManageTasks, this.permissionsChangeset.canViewBudgets, this.permissionsChangeset.canViewFileStorage, this.permissionsChangeset.canViewProducts, this.permissionsChangeset.canViewProgress, this.permissionsChangeset.canViewProjects, this.permissionsChangeset.canViewQuotes, this.permissionsChangeset.canViewTasks].filter(attribute => attribute).length;\n    }\n    get projectPermissionsVisible() {\n      if (this._projectPermissionsVisible != null) return this._projectPermissionsVisible;\n      return this.projectPermissionsCount > 0;\n    }\n    set projectPermissionsVisible(value) {\n      this._projectPermissionsVisible = value;\n    }\n    get schedulingPermissionsCount() {\n      return [this.permissionsChangeset.canViewSchedulingReports, this.permissionsChangeset.canManageSchedulingReports].filter(attribute => attribute).length;\n    }\n    get schedulingPermissionsVisible() {\n      if (this._schedulingPermissionsVisible != null) return this._schedulingPermissionsVisible;\n      return this.schedulingPermissionsCount > 0;\n    }\n    set schedulingPermissionsVisible(value) {\n      this._schedulingPermissionsVisible = value;\n    }\n    get allocationsPermissionsCount() {\n      const workerCount = this.model.workers.last.value.toArray().filter(w => this.model.user.last.value.includesClaimsAboutWorker(w.id, 'canManageTimesheets')).length;\n      const permissionCount = [this.permissionsChangeset.canManageBills, this.permissionsChangeset.canManageTimesheets, this.permissionsChangeset.canManageNotes, this.permissionsChangeset.canViewBills, this.permissionsChangeset.canViewTimesheets, this.permissionsChangeset.canViewNotes].filter(attribute => attribute).length;\n      return permissionCount + workerCount;\n    }\n    get allocationsPermissionsVisible() {\n      if (this._allocationsPermissionsVisible != null) return this._allocationsPermissionsVisible;\n      return this.allocationsPermissionsCount > 0;\n    }\n    set allocationsPermissionsVisible(value) {\n      this._allocationsPermissionsVisible = value;\n    }\n    get reportsPermissionsCount() {\n      return [this.permissionsChangeset.canUseReportBuilderReport, this.permissionsChangeset.canViewBudgetFinancialReports, this.permissionsChangeset.canViewBudgetLabourHourReports, this.permissionsChangeset.canViewChargeupReports, this.permissionsChangeset.canViewCostFinancialReports, this.permissionsChangeset.canViewCostLabourHourReports, this.permissionsChangeset.canViewPayrollReports, this.permissionsChangeset.canViewQuoteReports, this.permissionsChangeset.canViewProgressReports, this.permissionsChangeset.canViewInvoicingReports].filter(attribute => attribute).length;\n    }\n    get reportsPermissionsVisible() {\n      if (this._reportsPermissionsVisible != null) return this._reportsPermissionsVisible;\n      return this.reportsPermissionsCount > 0;\n    }\n    set reportsPermissionsVisible(value) {\n      this._reportsPermissionsVisible = value;\n    }\n    get settingsPermissionsCount() {\n      return [this.permissionsChangeset.canViewWorkers].filter(attribute => attribute).length;\n    }\n    get settingsPermissionsVisible() {\n      if (this._settingsPermissionsVisible != null) return this._settingsPermissionsVisible;\n      return this.settingsPermissionsCount > 0;\n    }\n    set settingsPermissionsVisible(value) {\n      this._settingsPermissionsVisible = value;\n    }\n    get healthAndSafetyPermissionsCount() {\n      return [this.permissionsChangeset.canCreateHealthAndSafety, this.permissionsChangeset.canManageHealthAndSafety].filter(attribute => attribute).length;\n    }\n    get healthAndSafetyPermissionsVisible() {\n      if (this._healthAndSafetyPermissionsVisible != null) return this._healthAndSafetyPermissionsVisible;\n      return this.healthAndSafetyPermissionsCount > 0;\n    }\n    set healthAndSafetyPermissionsVisible(value) {\n      this._healthAndSafetyPermissionsVisible = value;\n    }\n    get user() {\n      return this.model.user.last.value;\n    }\n    get userIsYou() {\n      return this.user === this.sessionData.user;\n    }\n    get canEditUser() {\n      return this.user.isNew || this.userIsYou;\n    }\n    get canManageUser() {\n      return this.userIsYou || this.newFeatureFlags.includesFeatureFlags(this.user, 'canManageUsers');\n    }\n    get canManageUserPermissions() {\n      return !this.userIsYou && this.newFeatureFlags.includesFeatureFlags('canManageUsers');\n    }\n    async handleEntityAttributes(entityAttributesToAdd, _entityAttributesToRemove) {\n      // don't bother removing attributes we're going to add later\n      const entityAttributesToRemove = _entityAttributesToRemove.filter(ar => !entityAttributesToAdd.includes(ar));\n      const existingEntityAttributes = await this.store.simpleQuery('user-entity-attribute', {\n        user: this.user.id,\n        entity: this.sessionData.entity.id\n      }).then(r => r.toArray());\n      await this.store.findAll('user-attribute');\n      // add and remove entity attribute from the user\n      await Promise.all([Promise.all(entityAttributesToRemove.map(async ea => {\n        const matchingExistingAttributes = existingEntityAttributes.filter(a => a.belongsTo('attribute').id() === ea);\n\n        // only remove the attribute if it exists\n        // this can be a singular check once the db constraints are fixed\n        if (matchingExistingAttributes.length) await Promise.all(matchingExistingAttributes.map(a => a.destroyRecord()));\n      })), Promise.all(entityAttributesToAdd.map(async ea => {\n        // don't add if it's already there\n        if (existingEntityAttributes.some(a => a.belongsTo('attribute').id() === ea)) return;\n\n        // fetch and check attribute is valid\n        const attribute = await this.store.peekRecord('user-attribute', ea);\n        if (!attribute) throw new Error('Tried to create a non-existent attribute');\n\n        // create the relationship\n        await this.store.createRecord('user-entity-attribute', {\n          entity: this.sessionData.entity,\n          user: this.user,\n          attribute\n        }).save();\n      }))]);\n    }\n    async handleWorkers(workersToAdd) {\n      const existingWorkerAttributes = await this.store.simpleQuery('user-worker-attribute', {\n        user: this.user.id,\n        entity: this.sessionData.entity.id\n      }).then(r => r.toArray());\n\n      // remove all the old worker attributes\n      await Promise.all(existingWorkerAttributes.map(pa => pa.destroyRecord()));\n      if (workersToAdd.length) {\n        // setup the new workers\n        const [canManageTimesheets, canManageNotes] = await Promise.all([this.store.findRecord('user-attribute', 'canManageTimesheets'), this.store.findRecord('user-attribute', 'canManageNotes')]);\n\n        // create the relationship\n        await Promise.all(workersToAdd.map(worker => Promise.all([this.store.createRecord('user-worker-attribute', {\n          entity: this.sessionData.entity,\n          user: this.user,\n          attribute: canManageTimesheets,\n          worker\n        }).save(), this.store.createRecord('user-worker-attribute', {\n          entity: this.sessionData.entity,\n          user: this.user,\n          attribute: canManageNotes,\n          worker\n        }).save()])));\n      }\n    }\n    loginAs(...args) {\n      this.sessionData.loginAs(...args);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"crumbStack\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"crumbStack\"), _class2.prototype), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"_projectPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"_schedulingPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"_allocationsPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"_reportsPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"_settingsPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"_healthAndSafetyPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"loginAs\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"loginAs\"), _class2.prototype), _class2);\n  function inviteUserAjax(payload, token) {\n    const url = _environment.default.urls.api + _environment.default.urls.apiV1Path + '/invite-user/builda-price-subcontractor';\n    return new _rsvp.default.Promise((resolve, reject) => {\n      // eslint-disable-next-line ember/no-jquery\n      _jquery.default.ajax({\n        contentType: 'application/json',\n        method: 'POST',\n        url: url,\n        data: JSON.stringify(Object.assign(payload, {\n          callback: _environment.default.urls.app + '/reset-password',\n          appURL: _environment.default.urls.app\n        })),\n        headers: {\n          Authorization: 'Bearer ' + token\n        }\n      }).then(resolve, reject);\n    });\n  }\n});","define(\"portal/controllers/entity/settings/people/users/index\", [\"exports\", \"@ember/controller\", \"@ember/service\", \"@ember/object\", \"@glimmer/tracking\"], function (_exports, _controller, _service, _object, _tracking) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('filteredUsers', 'model.{basePath,users.last.value}', 'searchString.length'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor3, this);\n      _initializerDefineProperty(this, \"session\", _descriptor4, this);\n      _initializerDefineProperty(this, \"router\", _descriptor5, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor6, this);\n      _initializerDefineProperty(this, \"isAddingUser\", _descriptor7, this);\n    }\n    get isLoading() {\n      return this.model.users.isRunning || this.model.workers.isRunning;\n    }\n    get filteredUsers() {\n      const result = this.model.users.last.value?.filter(user => {\n        const matchString = `${user.firstName}${user.lastName}${user.email}${user.phoneNumber}`.toLowerCase();\n        return matchString.includes(this.searchString.replace(/\\s/g, '').toLowerCase());\n      }).sort((a, b) => a.sortIndex - b.sortIndex) || [];\n      return result;\n    }\n    loginAs(...args) {\n      this.sessionData.loginAs(...args);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"isAddingUser\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"filteredUsers\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"filteredUsers\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"loginAs\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"loginAs\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/settings/people/users/user\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"rsvp\", \"jquery\", \"portal/config/environment\", \"@ember/object\", \"@glimmer/tracking\", \"portal/routes/entity/settings/people/users/user\"], function (_exports, _asyncArrowRuntime, _controller, _service, _rsvp, _jquery, _environment, _object, _tracking, _user) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"rsvp\",0,\"jquery\",0,\"portal/config/environment\",0,\"@ember/object\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"portal/routes/entity/settings/people/users/user\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('intl', 'model.basePath', 'model.user.last.value.{fullName,id}', 'user.isNew'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor3, this);\n      _initializerDefineProperty(this, \"session\", _descriptor4, this);\n      _initializerDefineProperty(this, \"router\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _initializerDefineProperty(this, \"store\", _descriptor7, this);\n      _initializerDefineProperty(this, \"_projectPermissionsVisible\", _descriptor8, this);\n      _initializerDefineProperty(this, \"_schedulingPermissionsVisible\", _descriptor9, this);\n      _initializerDefineProperty(this, \"_allocationsPermissionsVisible\", _descriptor0, this);\n      _initializerDefineProperty(this, \"_reportsPermissionsVisible\", _descriptor1, this);\n      _initializerDefineProperty(this, \"_settingsPermissionsVisible\", _descriptor10, this);\n      _initializerDefineProperty(this, \"_healthAndSafetyPermissionsVisible\", _descriptor11, this);\n      _initializerDefineProperty(this, \"_financialReportingPermissionsVisible\", _descriptor12, this);\n      _defineProperty(this, \"saveUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          try {\n            yield changeset.validate();\n            if (changeset.isInvalid) return;\n\n            // you can only modify your own user\n            if (this.userIsYou) {\n              this.user.firstName = changeset.firstName;\n              this.user.lastName = changeset.lastName;\n              this.user.email = changeset.email;\n              this.user.phoneNumber = changeset.phoneNumber;\n              yield this.user.save();\n              return;\n            }\n            const wasNew = Boolean(this.user.isNew);\n            //validate the any users exists with same email id in different type of user\n            if (wasNew) {\n              const user = yield this.store.simpleQuery('user', {\n                email: changeset.email.toLowerCase()\n              }).then(res => res[0]);\n              if (user) {\n                const userEntityAttribute = yield this.store.simpleQuery('user-entity-attribute', {\n                  user: user.id,\n                  entity: this.sessionData.entity.id\n                });\n                if (userEntityAttribute.length) return this.notifications.warning(this.intl.t('shared.notification.emailAddressAlreadyExists'));\n              }\n            }\n            let userId;\n            const response = yield inviteUserAjax({\n              firstName: changeset.firstName,\n              lastName: changeset.lastName,\n              email: changeset.email,\n              phoneNumber: changeset.phoneNumber,\n              entity: this.sessionData.entity.id\n            }, this.session.data.authenticated.access_token, this.newFeatureFlags.canUseBuildaPrice, this.newFeatureFlags.canUseFinancialReporting);\n            userId = response.newUserId;\n            this.router.transitionTo(`${this.model.basePath}.users.user`, userId);\n            this.notifications.success(this.intl.t('shared.notification.Successfully saved user'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.Something went wrong saving the user'),\n              error\n            });\n          }\n        }\n      }), null, \"saveUser\", null));\n      _defineProperty(this, \"deleteUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            if (!confirm(this.userIsYou ? this.intl.t('shared.notification.areYouSureYouWantToRemoveYourselfFromThisCompany') : this.intl.t('entity.settings.people.users.user.areYouSureYouWantToDeleteThisUser'))) return;\n\n            // fetch the user attributes again so we have all the attributes\n            yield Promise.all([this.store.simpleQuery('user-entity-attribute', {\n              user: this.user.id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-project-attribute', {\n              user: this.user.id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-task-attribute', {\n              user: this.user.id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-worker-attribute', {\n              user: this.user.id,\n              entity: this.sessionData.entity.id\n            })]);\n\n            // destroy all the attributes for this entity\n            const destroyAttribute = attribute => {\n              // only destroy attributes for this entity\n              if (attribute.belongsTo('entity').value() === this.sessionData.entity) return attribute.destroyRecord();\n            };\n            // for some reason we need to look up the relationships using old school getters\n            yield Promise.all([Promise.all((this.user.hasMany('entityAttributes').value() || []).map(destroyAttribute)), Promise.all((this.user.hasMany('projectAttributes').value() || []).map(destroyAttribute)), Promise.all((this.user.hasMany('taskAttributes').value() || []).map(destroyAttribute)), Promise.all((this.user.hasMany('workerAttributes').value() || []).map(destroyAttribute))]);\n\n            // if you have deleted yourself, go back to index to refresh permissions and entities\n            if (this.userIsYou) this.router.transitionTo('index');else {\n              // if you have deleted someone else, go back to the users index to reload the users list\n              this.router.transitionTo(`${this.model.basePath}.users.index`);\n              this.notifications.success('Successfully deleted user');\n            }\n          } catch (error) {\n            this.notifications.error({\n              message: this.userIsYou ? this.intl.t('shared.notification.somethingWentWrongRemovingYouFromTheCompany') : this.intl.t('shared.notification.Something went wrong deleting the user'),\n              error\n            });\n          }\n        }\n      }), null, \"deleteUser\", null));\n      _defineProperty(this, \"savePermissions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          try {\n            yield changeset.validate();\n            if (changeset.isInvalid) return;\n            const entityAttributesToAdd = [];\n            const entityAttributesToRemove = [];\n            const workersToAdd = [];\n            if (changeset.isCompanyAdministrator) {\n              entityAttributesToAdd.push(..._user.administratorAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.administratorAttributes);\n            }\n            if (changeset.canManageEverything) {\n              entityAttributesToAdd.push(..._user.managerAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.managerAttributes);\n            }\n            if (changeset.canViewBills) {\n              entityAttributesToAdd.push(..._user.canViewBillsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewBillsAttributes);\n            }\n            if (changeset.canManageBills) {\n              entityAttributesToAdd.push(..._user.canManageBillsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageBillsAttributes);\n            }\n            if (changeset.canViewInvoices) {\n              entityAttributesToAdd.push(..._user.canViewInvoicesAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewInvoicesAttributes);\n            }\n            if (changeset.canManageInvoices) {\n              entityAttributesToAdd.push(..._user.canManageInvoicesAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageInvoicesAttributes);\n            }\n            if (changeset.canApproveInvoices) {\n              entityAttributesToAdd.push(..._user.canApproveInvoicesAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canApproveInvoicesAttributes);\n            }\n            if (changeset.canViewPurchaseOrders) {\n              entityAttributesToAdd.push(..._user.canViewPurchaseOrdersAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewPurchaseOrdersAttributes);\n            }\n            if (changeset.canManagePurchaseOrders) {\n              entityAttributesToAdd.push(..._user.canManagePurchaseOrdersAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManagePurchaseOrdersAttributes);\n            }\n            if (changeset.canViewStagePayments) {\n              entityAttributesToAdd.push(..._user.canViewStagePaymentsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewStagePaymentsAttributes);\n            }\n            if (changeset.canManageStagePayments) {\n              entityAttributesToAdd.push(..._user.canManageStagePaymentsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageStagePaymentsAttributes);\n            }\n            if (changeset.canApprovePurchaseOrders) {\n              entityAttributesToAdd.push(..._user.canApprovePurchaseOrdersAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canApprovePurchaseOrdersAttributes);\n            }\n            if (changeset.canViewTimesheets) {\n              entityAttributesToAdd.push(..._user.canViewTimesheetsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewTimesheetsAttributes);\n            }\n            if (changeset.canManageTimesheets) {\n              entityAttributesToAdd.push(..._user.canManageTimesheetsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageTimesheetsAttributes);\n            }\n            if (changeset.canViewProjects) {\n              entityAttributesToAdd.push(..._user.canViewProjectsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewProjectsAttributes);\n            }\n            if (changeset.canManageProjects) {\n              entityAttributesToAdd.push(..._user.canManageProjectsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageProjectsAttributes);\n            }\n            if (changeset.canViewTasks) {\n              entityAttributesToAdd.push(..._user.canViewTasksAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewTasksAttributes);\n            }\n            if (changeset.canManageTasks) {\n              entityAttributesToAdd.push(..._user.canManageTasksAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageTasksAttributes);\n            }\n            if (changeset.canViewBudgets) {\n              entityAttributesToAdd.push(..._user.canViewBudgetsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewBudgetsAttributes);\n            }\n            if (changeset.canManageBudgets) {\n              entityAttributesToAdd.push(..._user.canManageBudgetsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageBudgetsAttributes);\n            }\n            if (changeset.canViewQuotes) {\n              entityAttributesToAdd.push(..._user.canViewQuotesAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewQuotesAttributes);\n            }\n            if (changeset.canViewProgress) {\n              entityAttributesToAdd.push(..._user.canViewProgressAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewProgressAttributes);\n            }\n            if (changeset.canManageProgress) {\n              entityAttributesToAdd.push(..._user.canManageProgressAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageProgressAttributes);\n            }\n            if (changeset.canManageQuotes) {\n              entityAttributesToAdd.push(..._user.canManageQuotesAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageQuotesAttributes);\n            }\n            if (changeset.canViewProducts) {\n              entityAttributesToAdd.push(..._user.canViewProductsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewProductsAttributes);\n            }\n            if (changeset.canManageProducts) {\n              entityAttributesToAdd.push(..._user.canManageProductsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageProductsAttributes);\n            }\n            if (changeset.canViewFileStorage) {\n              entityAttributesToAdd.push(..._user.canViewFileStorageAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewFileStorageAttributes);\n            }\n            if (changeset.canManageFileStorage) {\n              entityAttributesToAdd.push(..._user.canManageFileStorageAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageFileStorageAttributes);\n            }\n            if (changeset.canManageWorkers) {\n              entityAttributesToAdd.push(..._user.canManageWorkersAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageWorkersAttributes);\n            }\n            if (changeset.canViewWorkers) {\n              entityAttributesToAdd.push(..._user.canViewWorkersAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewWorkersAttributes);\n            }\n            if (changeset.canViewPayrollReports) {\n              entityAttributesToAdd.push(..._user.canViewPayrollReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewPayrollReportsAttributes);\n            }\n            if (changeset.canViewBudgetFinancialReports) {\n              entityAttributesToAdd.push(..._user.canViewBudgetReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewBudgetReportsAttributes);\n            }\n            if (changeset.canViewBudgetLabourHourReports) {\n              entityAttributesToAdd.push(..._user.canViewBudgetLabourHourReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewBudgetLabourHourReportsAttributes);\n            }\n            if (changeset.canViewQuoteReports) {\n              entityAttributesToAdd.push(..._user.canViewQuoteReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewQuoteReportsAttributes);\n            }\n            if (changeset.canViewCostFinancialReports) {\n              entityAttributesToAdd.push(..._user.canViewCostReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewCostReportsAttributes);\n            }\n            if (changeset.canViewCostLabourHourReports) {\n              entityAttributesToAdd.push(..._user.canViewCostLabourHourReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewCostLabourHourReportsAttributes);\n            }\n            if (changeset.canViewChargeupReports) {\n              entityAttributesToAdd.push(..._user.canViewChargeupReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewChargeupReportsAttributes);\n            }\n            if (changeset.canViewProgressReports) {\n              entityAttributesToAdd.push(..._user.canViewProgressReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewProgressReportsAttributes);\n            }\n            if (changeset.canViewAccessReports) {\n              entityAttributesToAdd.push(..._user.canViewAccessReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewAccessReportsAttributes);\n            }\n            if (changeset.canEstimate) {\n              entityAttributesToAdd.push(..._user.canManageEstimatesAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageEstimatesAttributes);\n            }\n            if (changeset.canManageEstimateSettings) {\n              entityAttributesToAdd.push(..._user.canManageEstimateSettingsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageEstimateSettingsAttributes);\n            }\n            if (changeset.canViewSchedulingReports) {\n              entityAttributesToAdd.push(..._user.canViewSchedulingReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewSchedulingReportsAttributes);\n            }\n            if (changeset.canManageSchedulingReports) {\n              entityAttributesToAdd.push(..._user.canManageSchedulingReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageSchedulingReportsAttributes);\n            }\n            if (changeset.canUseReportBuilderReport) {\n              entityAttributesToAdd.push(..._user.canUseReportBuilderReportAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canUseReportBuilderReportAttributes);\n            }\n            if (changeset.canCreateHealthAndSafety) {\n              entityAttributesToAdd.push(..._user.canCreateHealthAndSafetyAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canCreateHealthAndSafetyAttributes);\n            }\n            if (changeset.canManageHealthAndSafety) {\n              entityAttributesToAdd.push(..._user.canManageHealthAndSafetyAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageHealthAndSafetyAttributes);\n            }\n            if (changeset.canManageIntegrations) {\n              entityAttributesToAdd.push(..._user.canManageIntegrationsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageIntegrationsAttributes);\n            }\n            if (changeset.canViewUsers) {\n              entityAttributesToAdd.push(..._user.canViewUsersAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewUsersAttributes);\n            }\n            if (changeset.canManageUsers) {\n              entityAttributesToAdd.push(..._user.canManageUsersAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageUsersAttributes);\n            }\n            if (changeset.canViewFinancialReporting) {\n              entityAttributesToAdd.push(..._user.canViewFinancialReportingAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewFinancialReportingAttributes);\n            }\n            if (changeset.canManageFinancialReporting) {\n              entityAttributesToAdd.push(..._user.canManageFinancialReportingAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageFinancialReportingAttributes);\n            }\n            if (changeset.canViewInvoicingReports) {\n              entityAttributesToAdd.push(..._user.canViewInvoicingReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewInvoicingReportsAttributes);\n            }\n\n            // workers are set every time\n            workersToAdd.push(...changeset.workers);\n            yield Promise.all([this.handleEntityAttributes([...new Set(entityAttributesToAdd)], [...new Set(entityAttributesToRemove)]), this.handleWorkers([...new Set(workersToAdd)])]);\n            this.notifications.success(this.intl.t('shared.notification.Successfully saved permissions'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongSavingThePermissions'),\n              error\n            });\n          }\n        }\n      }), null, \"savePermissions\", null));\n      _defineProperty(this, \"sendPasswordResetEmail\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          try {\n            // this will have the effect of sending a password reset email\n            yield inviteUserAjax({\n              firstName: changeset.firstName,\n              lastName: changeset.lastName,\n              email: changeset.email,\n              entity: this.sessionData.entity.id\n            }, this.session.data.authenticated.access_token, this.newFeatureFlags.canUseBuildaPrice, this.newFeatureFlags.canUseFinancialReporting);\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongSendingTheReminderEmail'),\n              error\n            });\n          }\n        }\n      }), null, \"sendPasswordResetEmail\", null));\n    }\n    get permissionsDescription() {\n      if (this.newFeatureFlags.includesFeatureFlags('canUseBuildaPrice')) {\n        return this.intl.t('shared.people-editor.userPermissionsExplanation');\n      }\n      if (this.newFeatureFlags.includesFeatureFlags('canUseFinancialReporting')) {\n        return this.intl.t('entity.settings.people.users.user.userPermissionsAreRulesThatSayWhatAUserCanAndCannotDoInTheSystem');\n      }\n      return false;\n    }\n    get crumbStack() {\n      const paths = [{\n        route: `${this.model.basePath}.users`,\n        pageTitle: this.intl.t('common.Users')\n      }, {\n        route: `${this.model.basePath}.users`,\n        pageTitle: this.user.isNew ? this.intl.t('entity.settings.people.users.user.New user') : this.model.user.last.value.fullName\n      }];\n      return paths;\n    }\n    get isRunning() {\n      return this.model.user.isRunning || this.model.userChangeset.isRunning || this.model.permissionsChangeset.isRunning || this.model.workers.isRunning;\n    }\n    get permissionsChangeset() {\n      return this.model.permissionsChangeset.last.value;\n    }\n    get canViewReports() {\n      const reports = {\n        [this.intl.t('common.Budget')]: ['canViewBudgetFinancialReports', 'canViewCostFinancialReports'],\n        [this.intl.t('common.Chargeup')]: ['canViewChargeupReports', 'canViewProgressReports', 'canViewQuoteReports'],\n        [this.intl.t('common.Costs')]: ['canViewCostFinancialReports', 'canViewBills', 'canViewTimesheets'],\n        [this.intl.t('shared.report.Forecast breakdown')]: ['canViewBudgetFinancialReports', 'canViewCostFinancialReports', 'canViewProgressReports', 'canViewQuoteReports'],\n        [this.intl.t('common.Labour hours')]: ['canViewBudgetLabourHourReports', 'canViewCostLabourHourReports', 'canViewProgressReports'],\n        [this.intl.t('common.Position')]: ['canViewBudgetFinancialReports', 'canViewBudgetLabourHourReports', 'canViewCostFinancialReports', 'canViewCostLabourHourReports', 'canViewProgressReports', 'canViewQuoteReports', 'canViewChargeupReports'],\n        [this.intl.t('common.Profit margins')]: ['canViewBudgetFinancialReports', 'canViewCostFinancialReports', 'canViewProgressReports', 'canViewChargeupReports'],\n        [this.intl.t('common.Quote')]: ['canViewQuoteReports', 'canViewChargeupReports'],\n        [this.intl.t('shared.report.Work in progress')]: ['canViewBudgetFinancialReports', 'canViewCostFinancialReports', 'canViewProgressReports', 'canViewQuoteReports'],\n        [this.intl.t('common.Invoicing')]: ['canViewInvoicingReports'],\n        [this.intl.t('common.Cost to complete')]: ['canViewQuoteReports', 'canViewProgressReports', 'canViewChargeupReports', 'canViewInvoicingReports'],\n        ['Access']: ['canViewAccessReports']\n      };\n      const allowedReports = Object.keys(reports).filter(key => reports[key].every(p => this.permissionsChangeset[p]));\n      if (!allowedReports.length) return '';\n      return allowedReports.join(', ');\n    }\n    get projectPermissionsCount() {\n      return [this.permissionsChangeset.canEstimate, this.permissionsChangeset.canManageBudgets, this.permissionsChangeset.canManageEstimateSettings, this.permissionsChangeset.canManageFileStorage, this.permissionsChangeset.canManageProducts, this.permissionsChangeset.canManageProgress, this.permissionsChangeset.canManageProjects, this.permissionsChangeset.canManageQuotes, this.permissionsChangeset.canManageTasks, this.permissionsChangeset.canViewBudgets, this.permissionsChangeset.canViewFileStorage, this.permissionsChangeset.canViewProducts, this.permissionsChangeset.canViewProgress, this.permissionsChangeset.canViewProjects, this.permissionsChangeset.canViewQuotes, this.permissionsChangeset.canViewTasks].filter(attribute => attribute).length;\n    }\n    get projectPermissionsVisible() {\n      if (this._projectPermissionsVisible != null) return this._projectPermissionsVisible;\n      return this.projectPermissionsCount > 0;\n    }\n    set projectPermissionsVisible(value) {\n      this._projectPermissionsVisible = value;\n    }\n    get schedulingPermissionsCount() {\n      return [this.permissionsChangeset.canViewSchedulingReports, this.permissionsChangeset.canManageSchedulingReports].filter(attribute => attribute).length;\n    }\n    get schedulingPermissionsVisible() {\n      if (this._schedulingPermissionsVisible != null) return this._schedulingPermissionsVisible;\n      return this.schedulingPermissionsCount > 0;\n    }\n    set schedulingPermissionsVisible(value) {\n      this._schedulingPermissionsVisible = value;\n    }\n    get allocationsPermissionsCount() {\n      const workerCount = this.model.workers.last.value.toArray().filter(w => this.model.user.last.value.includesClaimsAboutWorker(w.id, 'canManageTimesheets')).length;\n      const permissionCount = [this.permissionsChangeset.canManageBills, this.permissionsChangeset.canManageTimesheets, this.permissionsChangeset.canManageNotes, this.permissionsChangeset.canViewBills, this.permissionsChangeset.canViewTimesheets, this.permissionsChangeset.canViewNotes, this.permissionsChangeset.canViewInvoices, this.permissionsChangeset.canManageInvoices, this.permissionsChangeset.canApproveInvoices, this.permissionsChangeset.canViewPurchaseOrders, this.permissionsChangeset.canManagePurchaseOrders, this.permissionsChangeset.canApprovePurchaseOrders, this.permissionsChangeset.canViewStagePayments, this.permissionsChangeset.canManageStagePayments].filter(attribute => attribute).length;\n      return permissionCount + workerCount;\n    }\n    get allocationsPermissionsVisible() {\n      if (this._allocationsPermissionsVisible != null) return this._allocationsPermissionsVisible;\n      return this.allocationsPermissionsCount > 0;\n    }\n    set allocationsPermissionsVisible(value) {\n      this._allocationsPermissionsVisible = value;\n    }\n    get reportsPermissionsCount() {\n      return [this.permissionsChangeset.canUseReportBuilderReport, this.permissionsChangeset.canViewBudgetFinancialReports, this.permissionsChangeset.canViewBudgetLabourHourReports, this.permissionsChangeset.canViewChargeupReports, this.permissionsChangeset.canViewCostFinancialReports, this.permissionsChangeset.canViewCostLabourHourReports, this.permissionsChangeset.canViewPayrollReports, this.permissionsChangeset.canViewQuoteReports, this.permissionsChangeset.canViewProgressReports, this.permissionsChangeset.canViewInvoicingReports, this.permissionsChangeset.canViewAccessReports].filter(attribute => attribute).length;\n    }\n    get reportsPermissionsVisible() {\n      if (this._reportsPermissionsVisible != null) return this._reportsPermissionsVisible;\n      return this.reportsPermissionsCount > 0;\n    }\n    set reportsPermissionsVisible(value) {\n      this._reportsPermissionsVisible = value;\n    }\n    get settingsPermissionsCount() {\n      return [this.permissionsChangeset.canManageWorkers, this.permissionsChangeset.canViewWorkers, this.permissionsChangeset.canManageIntegrations, this.permissionsChangeset.canViewUsers, this.permissionsChangeset.canManageUsers].filter(attribute => attribute).length;\n    }\n    get settingsPermissionsVisible() {\n      if (this._settingsPermissionsVisible != null) return this._settingsPermissionsVisible;\n      return this.settingsPermissionsCount > 0;\n    }\n    set settingsPermissionsVisible(value) {\n      this._settingsPermissionsVisible = value;\n    }\n    get healthAndSafetyPermissionsCount() {\n      return [this.permissionsChangeset.canCreateHealthAndSafety, this.permissionsChangeset.canManageHealthAndSafety].filter(attribute => attribute).length;\n    }\n    get healthAndSafetyPermissionsVisible() {\n      if (this._healthAndSafetyPermissionsVisible != null) return this._healthAndSafetyPermissionsVisible;\n      return this.healthAndSafetyPermissionsCount > 0;\n    }\n    set healthAndSafetyPermissionsVisible(value) {\n      this._healthAndSafetyPermissionsVisible = value;\n    }\n    get financialReportingPermissionsCount() {\n      return [this.permissionsChangeset.canViewFinancialReporting, this.permissionsChangeset.canManageFinancialReporting].filter(attribute => attribute).length;\n    }\n    get financialReportingPermissionsVisible() {\n      if (this._financialReportingPermissionsVisible != null) return this._financialReportingPermissionsVisible;\n      return this.financialReportingPermissionsCount > 0;\n    }\n    set financialReportingPermissionsVisible(value) {\n      this._financialReportingPermissionsVisible = value;\n    }\n    get user() {\n      return this.model.user.last.value;\n    }\n    get userIsYou() {\n      return this.user === this.sessionData.user;\n    }\n    get canEditUser() {\n      return this.user.isNew || this.userIsYou;\n    }\n    get canManageUser() {\n      return this.userIsYou || this.newFeatureFlags.includesFeatureFlags(this.user, 'canManageUsers');\n    }\n    get canManageUserPermissions() {\n      return !this.userIsYou && this.newFeatureFlags.includesFeatureFlags('canManageUsers');\n    }\n    async handleEntityAttributes(entityAttributesToAdd, _entityAttributesToRemove) {\n      // don't bother removing attributes we're going to add later\n      const entityAttributesToRemove = _entityAttributesToRemove.filter(ar => !entityAttributesToAdd.includes(ar));\n      const existingEntityAttributes = await this.store.simpleQuery('user-entity-attribute', {\n        user: this.user.id,\n        entity: this.sessionData.entity.id\n      }).then(r => r.toArray());\n      await this.store.findAll('user-attribute');\n      // add and remove entity attribute from the user\n      await Promise.all([Promise.all(entityAttributesToRemove.map(async ea => {\n        const matchingExistingAttributes = existingEntityAttributes.filter(a => a.belongsTo('attribute').id() === ea);\n\n        // only remove the attribute if it exists\n        // this can be a singular check once the db constraints are fixed\n        if (matchingExistingAttributes.length) await Promise.all(matchingExistingAttributes.map(a => a.destroyRecord()));\n      })), Promise.all(entityAttributesToAdd.map(async ea => {\n        // don't add if it's already there\n        if (existingEntityAttributes.some(a => a.belongsTo('attribute').id() === ea)) return;\n\n        // fetch and check attribute is valid\n        const attribute = await this.store.peekRecord('user-attribute', ea);\n        if (!attribute) throw new Error('Tried to create a non-existent attribute');\n\n        // create the relationship\n        await this.store.createRecord('user-entity-attribute', {\n          entity: this.sessionData.entity,\n          user: this.user,\n          attribute\n        }).save();\n      }))]);\n    }\n    async handleWorkers(workersToAdd) {\n      const existingWorkerAttributes = await this.store.simpleQuery('user-worker-attribute', {\n        user: this.user.id,\n        entity: this.sessionData.entity.id\n      }).then(r => r.toArray());\n\n      // remove all the old worker attributes\n      await Promise.all(existingWorkerAttributes.map(pa => pa.destroyRecord()));\n      if (workersToAdd.length) {\n        // setup the new workers\n        const [canManageTimesheets, canManageNotes] = await Promise.all([this.store.findRecord('user-attribute', 'canManageTimesheets'), this.store.findRecord('user-attribute', 'canManageNotes')]);\n\n        // create the relationship\n        await Promise.all(workersToAdd.map(worker => Promise.all([this.store.createRecord('user-worker-attribute', {\n          entity: this.sessionData.entity,\n          user: this.user,\n          attribute: canManageTimesheets,\n          worker\n        }).save(), this.store.createRecord('user-worker-attribute', {\n          entity: this.sessionData.entity,\n          user: this.user,\n          attribute: canManageNotes,\n          worker\n        }).save()])));\n      }\n    }\n    loginAs(...args) {\n      this.sessionData.loginAs(...args);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"crumbStack\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"crumbStack\"), _class2.prototype), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"_projectPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"_schedulingPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"_allocationsPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"_reportsPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"_settingsPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"_healthAndSafetyPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"_financialReportingPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"loginAs\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"loginAs\"), _class2.prototype), _class2);\n  function inviteUserAjax(payload, token, canUseBuildaPrice, canUseFinancialReporting) {\n    // TODO it would be good if we could refactor this to be generic or do it server side\n    let url;\n    if (canUseBuildaPrice) url = _environment.default.urls.api + _environment.default.urls.apiV1Path + '/invite-user/builda-price';else if (canUseFinancialReporting) url = _environment.default.urls.api + _environment.default.urls.apiV1Path + '/invite-user/financials';else throw new Error('No module available');\n    return new _rsvp.default.Promise((resolve, reject) => {\n      _jquery.default.ajax({\n        contentType: 'application/json',\n        method: 'POST',\n        url: url,\n        data: JSON.stringify(Object.assign(payload, {\n          callback: _environment.default.urls.app + '/reset-password',\n          appURL: _environment.default.urls.app\n        })),\n        headers: {\n          Authorization: 'Bearer ' + token\n        }\n      }).then(resolve, reject);\n    });\n  }\n});","define(\"portal/controllers/entity/settings/people/workers/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _controller, _tracking, _object, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/service\",0,\"ember-concurrency\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('filteredWorkers', 'model.{basePath,workers.last.value}', 'searchString.length'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"disabledWorkersVisible\", _descriptor, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor4, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor5, this);\n      _initializerDefineProperty(this, \"session\", _descriptor6, this);\n      _defineProperty(this, \"queryParams\", ['filter']);\n      _defineProperty(this, \"copyAuthCode\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (worker) {\n          // we don't have a code to copy\n          if (!worker.authCode) return;\n          navigator.clipboard.writeText(worker.authCode);\n          // wait one second to show the \"copied\" pop up\n          yield new Promise(resolve => setTimeout(resolve, 750));\n        }\n      }), null, \"copyAuthCode\", null));\n    }\n    get isLoading() {\n      return this.model.workers.isRunning;\n    }\n    get filteredWorkers() {\n      const result = this.model.workers.last.value?.filter(worker => {\n        const matchString = `${worker.firstName}${worker.lastName}${worker.email}${worker.phoneNumber}`.toLowerCase();\n        return matchString.includes(this.searchString.replace(/\\s/g, '').toLowerCase());\n      }).sort((a, b) => a.sortIndex - b.sortIndex) || [];\n      return result;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"disabledWorkersVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"filteredWorkers\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"filteredWorkers\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/settings/people/workers/worker\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"jquery\", \"portal/config/environment\", \"@ember/service\", \"portal/routes/entity/settings/people/workers/worker\", \"@ember/object\", \"ember-changeset\", \"@glimmer/tracking\", \"moment\", \"portal/utils/profit-margin\", \"portal/utils/get-default-language\"], function (_exports, _asyncArrowRuntime, _controller, _jquery, _environment, _service, _worker, _object, _emberChangeset, _tracking, _moment, _profitMargin, _getDefaultLanguage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"ember-concurrency\",0,\"jquery\",0,\"portal/config/environment\",0,\"@ember/service\",0,\"portal/routes/entity/settings/people/workers/worker\",0,\"@ember/object\",0,\"ember-changeset\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"moment\",0,\"portal/utils/profit-margin\",0,\"portal/utils/get-default-language\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('intl', 'model.basePath', 'model.worker.last.value.{fullName,id}', 'worker.isNew'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor2, this);\n      _initializerDefineProperty(this, \"session\", _descriptor3, this);\n      _initializerDefineProperty(this, \"router\", _descriptor4, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor5, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor6, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor7, this);\n      _initializerDefineProperty(this, \"store\", _descriptor8, this);\n      _initializerDefineProperty(this, \"accountingPlatform\", _descriptor9, this);\n      _initializerDefineProperty(this, \"backdateChargeOutRateChangeSet\", _descriptor0, this);\n      _initializerDefineProperty(this, \"backdateCostRateChangeSet\", _descriptor1, this);\n      _defineProperty(this, \"languages\", _getDefaultLanguage.languages);\n      _defineProperty(this, \"saveWorker\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (workerChangeset) {\n          try {\n            yield workerChangeset.validate();\n            if (!workerChangeset.isValid) return;\n            const wasNew = Boolean(this.worker.isNew);\n            yield workerChangeset.save();\n\n            // let workers see everything by default\n            if (wasNew) yield this.handleEntityAttributes(_worker.workerAttributes, []);\n            if (wasNew) {\n              yield this.store.simpleQuery('worker', {\n                entity: this.sessionData.entity.id\n              });\n              this.router.transitionTo(`${this.model.basePath}.workers.worker`, this.worker.id);\n            }\n            this.notifications.success(this.intl.t('entity.settings.people.workers.worker.Successfully saved worker'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.people.workers.worker.Something went wrong saving the worker'),\n              error\n            });\n          }\n        }\n      }), null, \"saveWorker\", null));\n      _defineProperty(this, \"savePermissions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (permissionChangeset) {\n          try {\n            yield permissionChangeset.validate();\n            if (!permissionChangeset.isValid) return;\n\n            // if you can see all he projects\n            if (permissionChangeset.get('canSeeProjectsAndTasks')) yield this.handleEntityAttributes(_worker.workerAttributes, []);else yield this.handleEntityAttributes([], _worker.workerAttributes);\n            if (permissionChangeset.get('canCreateHealthAndSafety')) yield this.handleEntityAttributes(_worker.workerHealthAndSafetyAttributes, []);else yield this.handleEntityAttributes([], _worker.workerHealthAndSafetyAttributes);\n            this.notifications.success(this.intl.t('entity.settings.people.workers.worker.Successfully saved worker'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.people.workers.worker.Something went wrong saving the worker'),\n              error\n            });\n          }\n        }\n      }), null, \"savePermissions\", null));\n      _defineProperty(this, \"deleteWorker\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            const confirmMessage = this.canDeleteWorker ? this.intl.t('entity.settings.people.workers.worker.areYouSureYouWantToDeleteTheWorker') : this.intl.t('entity.settings.people.workers.worker.areYouSureYouWantToDisableTheWorker');\n            if (!confirm(confirmMessage)) return;\n            if (this.canDeleteWorker) {\n              yield this.worker.destroyRecord();\n            } else {\n              this.worker.isActive = false;\n              yield this.handleEntityAttributes([], [..._worker.workerAttributes, ..._worker.workerHealthAndSafetyAttributes]);\n              yield this.worker.save();\n            }\n            this.router.transitionTo(`${this.model.basePath}.workers`);\n            this.notifications.success(this.canDeleteWorker ? this.intl.t('entity.settings.people.workers.worker.Successfully deleted worker') : this.intl.t('entity.settings.people.workers.worker.Successfully disabled worker'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.canDeleteWorker ? this.intl.t('entity.settings.people.workers.worker.Something went wrong deleting the worker') : this.intl.t('entity.settings.people.workers.worker.somethingWentWrongDisablingTheWorker'),\n              error\n            });\n          }\n        }\n      }), null, \"deleteWorker\", null));\n      _defineProperty(this, \"enableWorker\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            this.worker.isActive = true;\n            yield this.handleEntityAttributes(_worker.workerAttributes, []);\n            yield this.worker.save();\n            this.notifications.success(this.intl.t('entity.settings.people.workers.worker.Successfully enabled worker'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.people.workers.worker.Something went wrong enabling the worker'),\n              error\n            });\n          }\n        }\n      }), null, \"enableWorker\", null));\n      _defineProperty(this, \"validateChargeOutRateContent\", ({\n        key,\n        newValue,\n        oldValue\n      }) => {\n        const value = newValue ?? oldValue;\n        if (key === 'startDate' && this.backdateChargeOutRateChangeSet.endDate && value) {\n          if (Date.parse(value) > Date.parse(this.backdateChargeOutRateChangeSet.endDate)) {\n            return this.intl.t('validation.startDateShouldBeBeforeEndDate');\n          }\n        }\n        if (key === 'endDate' && this.backdateChargeOutRateChangeSet.startDate && value) {\n          if (Date.parse(value) < Date.parse(this.backdateChargeOutRateChangeSet.startDate)) {\n            return this.intl.t('validation.endDateShouldBeAfterStartDate');\n          }\n        }\n        if (key === 'chargeOutRate') {\n          return value >= 0 || this.intl.t('validation.chargeOutRate');\n        }\n        return true;\n      });\n      _defineProperty(this, \"validateCostRateContent\", ({\n        key,\n        newValue,\n        oldValue\n      }) => {\n        const value = newValue ?? oldValue;\n        if (key === 'startDate' && this.backdateCostRateChangeSet.endDate && value) {\n          if (Date.parse(value) > Date.parse(this.backdateCostRateChangeSet.endDate)) {\n            return this.intl.t('validation.startDateShouldBeBeforeEndDate');\n          }\n        }\n        if (key === 'endDate' && this.backdateCostRateChangeSet.startDate && value) {\n          if (Date.parse(value) < Date.parse(this.backdateCostRateChangeSet.startDate)) {\n            return this.intl.t('validation.endDateShouldBeAfterStartDate');\n          }\n        }\n        if (key === 'costRate') {\n          return value >= 0 || this.intl.t('validation.costRate');\n        }\n        return true;\n      });\n      _defineProperty(this, \"backdateChargeOutRateMap\", {\n        startDate: this.validateChargeOutRateContent,\n        endDate: this.validateChargeOutRateContent,\n        chargeOutRate: this.validateChargeOutRateContent\n      });\n      _defineProperty(this, \"backdateCostRateMap\", {\n        startDate: this.validateCostRateContent,\n        endDate: this.validateCostRateContent,\n        costRate: this.validateCostRateContent\n      });\n      _defineProperty(this, \"backdateChargeOutRate\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.backdateChargeOutRateChangeSet.validate();\n            if (!this.backdateChargeOutRateChangeSet.isValid) return;\n            yield this.handleEntityAttributes(_worker.workerAttributes, []);\n\n            // perform the backdate\n            const result = yield this.portalApi.authPost('/backdate-charge-out-rates', {\n              entityId: this.sessionData.entity.id,\n              chargeOutRates: [{\n                workerId: this.worker.id,\n                chargeOutRate: this.backdateChargeOutRateChangeSet.get('chargeOutRate')\n              }],\n              startDate: this.backdateChargeOutRateChangeSet.startDate ? (0, _moment.default)(this.backdateChargeOutRateChangeSet.startDate).format('YYYY-MM-DD') : undefined,\n              endDate: this.backdateChargeOutRateChangeSet.endDate ? (0, _moment.default)(this.backdateChargeOutRateChangeSet.endDate).format('YYYY-MM-DD') : undefined\n            });\n            this.backdateChargeOutRateChangeSet = null;\n            this.notifications.success(this.intl.t('shared.people-editor.workers.worker.xTimesheetsBackdated', {\n              number: result.numberOfTimesheetsUpdated,\n              timesheet: result.numberOfTimesheetsUpdated === 1 ? 'timesheet' : 'timesheets'\n            }));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.people-editor.workers.worker.somethingWentWrongBackdatingTimesheets'),\n              error\n            });\n          }\n        }\n      }), null, \"backdateChargeOutRate\", null));\n      _defineProperty(this, \"backdateCostRate\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.backdateCostRateChangeSet.validate();\n            if (!this.backdateCostRateChangeSet.isValid) return;\n            yield this.handleEntityAttributes(_worker.workerAttributes, []);\n\n            // perform the backdate\n            const result = yield this.portalApi.authPost('/backdate-cost-rates', {\n              entityId: this.sessionData.entity.id,\n              costRates: [{\n                workerId: this.worker.id,\n                costRate: this.backdateCostRateChangeSet.get('costRate')\n              }],\n              startDate: this.backdateCostRateChangeSet.startDate ? (0, _moment.default)(this.backdateCostRateChangeSet.startDate).format('YYYY-MM-DD') : undefined,\n              endDate: this.backdateCostRateChangeSet.endDate ? (0, _moment.default)(this.backdateCostRateChangeSet.endDate).format('YYYY-MM-DD') : undefined\n            });\n            this.backdateCostRateChangeSet = null;\n            this.notifications.success(this.intl.t('shared.people-editor.workers.worker.xTimesheetsBackdated', {\n              number: result.numberOfTimesheetsUpdated,\n              timesheet: result.numberOfTimesheetsUpdated === 1 ? 'timesheet' : 'timesheets'\n            }));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.people-editor.workers.worker.somethingWentWrongBackdatingTimesheets'),\n              error\n            });\n          }\n        }\n      }), null, \"backdateCostRate\", null));\n      _defineProperty(this, \"resetWorkerAuthCode\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield generateAuthCodeAjax({\n              workerId: this.worker.id\n            }, this.session.data.authenticated.access_token);\n            yield this.store.findRecord('worker', this.worker.id);\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.people.workers.worker.somethingWentWrongSettingWorkerLoginCode'),\n              error\n            });\n          }\n        }\n      }), null, \"resetWorkerAuthCode\", null));\n      _initializerDefineProperty(this, \"copiedAuthCode\", _descriptor10, this);\n      _defineProperty(this, \"reloadEmployees\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.accountingPlatform.getEmployees.perform(this.sessionData.entity);\n            yield this.model.accountingPlatformEmployees.perform();\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.people.workers.worker.somethingWentWrongReloadingXeroEmployees'),\n              error\n            });\n          }\n        }\n      }), null, \"reloadEmployees\", null));\n      _defineProperty(this, \"reloadEarningsRates\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.accountingPlatform.getEarningRates.perform(this.sessionData.entity);\n            if (this.accountingPlatform.activePlatform === 'xero') {\n              yield this.model.xeroEarningsRates.perform();\n            }\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.people.workers.worker.somethingWentWrongReloadingXeroEarningsRates'),\n              error\n            });\n          }\n        }\n      }), null, \"reloadEarningsRates\", null));\n    }\n    get crumbStack() {\n      const paths = [{\n        route: `${this.model.basePath}.workers`,\n        pageTitle: this.intl.t('common.Workers')\n      }, {\n        route: `${this.model.basePath}.workers`,\n        pageTitle: this.worker.isNew ? this.intl.t('entity.settings.people.workers.worker.New worker') : this.model.worker.last.value.fullName\n      }];\n      return paths;\n    }\n    get canManageWorkers() {\n      return this.newFeatureFlags.includesFeatureFlags('canManageWorkers');\n    }\n    get canUseWorkerType() {\n      return this.newFeatureFlags.includesFeatureFlags('canUseWorkerType');\n    }\n    get canUsePayRate() {\n      return this.newFeatureFlags.includesFeatureFlags('canUsePayRate');\n    }\n    get canUseCostRate() {\n      return this.newFeatureFlags.includesFeatureFlags('canUseCostRate');\n    }\n    get canUseWorkerCostCalculator() {\n      return this.newFeatureFlags.includesFeatureFlags('canUseWorkerCostCalculator');\n    }\n    get canUseChargeOutRate() {\n      return this.newFeatureFlags.includesFeatureFlags('canUseChargeOutRate');\n    }\n    get canUseBackdateChargeOutRate() {\n      return this.newFeatureFlags.includesFeatureFlags('canUseBackdateChargeOutRate');\n    }\n    get canUseBackdateCostRate() {\n      return this.newFeatureFlags.includesFeatureFlags('canUseBackdateCostRate');\n    }\n    get isRunning() {\n      return this.model.worker.isRunning || this.model.workersTimesheets.isRunning || this.model.workerChangeset.isRunning || this.model.labourCostCalculators.isRunning || this.model.profitMargin.isRunning;\n    }\n    get worker() {\n      return this.model.worker.last.value;\n    }\n    get workerTypes() {\n      return [{\n        label: 'Hourly worker',\n        value: false\n      }, {\n        label: 'Contractor',\n        value: true\n      }];\n    }\n    get canDeleteWorker() {\n      return this.model.workersTimesheets.last.value.length === 0;\n    }\n    get effectiveProfitMargin() {\n      const calculatedValue = (0, _profitMargin.calculatePercentage)(this.sessionData.entity.effectiveProfitMargin.labourPercentage.type, this.model.workerChangeset.last.value.costRate, this.model.workerChangeset.last.value.chargeOutRate);\n      return calculatedValue;\n    }\n    setDefaultChargeOutRate() {\n      if (!this.model.workerChangeset.last.value.chargeOutRate && this.model.workerChangeset.last.value.costRate) this.setDefaultEffectiveMargin();\n    }\n    setDefaultEffectiveMargin() {\n      const costRate = Number(this.model.workerChangeset.last.value.costRate);\n      const calculatedValue = (0, _profitMargin.calculateValue)(this.sessionData.entity.effectiveProfitMargin.labourPercentage.type, Number.isFinite(costRate) && costRate > 0 ? costRate : 0, this.sessionData.entity.effectiveProfitMargin.labourPercentage.value);\n      this.model.workerChangeset.last.value.set('chargeOutRate', calculatedValue);\n    }\n    initBackdateChargeOutRateChangeset() {\n      this.backdateChargeOutRateChangeSet = (0, _emberChangeset.Changeset)({\n        startDate: null,\n        endDate: new Date(),\n        chargeOutRate: this.model.workerChangeset.last.value.chargeOutRate\n      }, this.validateChargeOutRateContent, this.backdateChargeOutRateMap);\n    }\n    initBackdateCostRateChangeset() {\n      this.backdateCostRateChangeSet = (0, _emberChangeset.Changeset)({\n        startDate: null,\n        endDate: new Date(),\n        costRate: this.model.workerChangeset.last.value.costRate\n      }, this.validateCostRateContent, this.backdateCostRateMap);\n    }\n    copyAuthCode() {\n      if (!this.worker.authCode) return;\n      navigator.clipboard.writeText(this.worker.authCode);\n      this.copiedAuthCode = true;\n      setTimeout(() => this.copiedAuthCode = false, 1500);\n    }\n    async handleEntityAttributes(entityAttributesToAdd, _entityAttributesToRemove) {\n      // don't bother removing attributes we're going to add later\n      const entityAttributesToRemove = _entityAttributesToRemove.filter(ar => !entityAttributesToAdd.includes(ar));\n      const existingEntityAttributes = await this.store.simpleQuery('worker-entity-attribute', {\n        worker: this.worker.id,\n        entity: this.sessionData.entity.id\n      }).then(r => r.toArray());\n      await this.store.findAll('worker-attribute');\n      // add and remove entity attribute from the worker\n      await Promise.all([Promise.all(entityAttributesToRemove.map(async ea => {\n        const matchingExistingAttributes = existingEntityAttributes.filter(a => a.belongsTo('attribute').id() === ea);\n\n        // only remove the attribute if it exists\n        // this can be a singular check once the db constraints are fixed\n        if (matchingExistingAttributes.length) await Promise.all(matchingExistingAttributes.map(a => a.destroyRecord()));\n      })), Promise.all(entityAttributesToAdd.map(async ea => {\n        // don't add if it's already there\n        if (existingEntityAttributes.some(a => a.belongsTo('attribute').id() === ea)) return;\n\n        // fetch and check attribute is valid\n        const attribute = await this.store.peekRecord('worker-attribute', ea);\n        if (!attribute) throw new Error('Tried to create a non-existent attribute');\n\n        // create the relationship\n        await this.store.createRecord('worker-entity-attribute', {\n          entity: this.sessionData.entity,\n          worker: this.worker,\n          attribute\n        }).save();\n      }))]);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"accountingPlatform\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"backdateChargeOutRateChangeSet\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"backdateCostRateChangeSet\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"crumbStack\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"crumbStack\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setDefaultChargeOutRate\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setDefaultChargeOutRate\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setDefaultEffectiveMargin\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setDefaultEffectiveMargin\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"initBackdateChargeOutRateChangeset\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"initBackdateChargeOutRateChangeset\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"initBackdateCostRateChangeset\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"initBackdateCostRateChangeset\"), _class2.prototype), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"copiedAuthCode\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"copyAuthCode\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"copyAuthCode\"), _class2.prototype), _class2);\n  function generateAuthCodeAjax(payload, token) {\n    return new Promise((resolve, reject) => {\n      _jquery.default.ajax({\n        contentType: 'application/json',\n        method: 'POST',\n        url: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/generate-worker-code',\n        data: JSON.stringify(payload),\n        headers: {\n          Authorization: 'Bearer ' + token\n        }\n      }).then(resolve, reject);\n    });\n  }\n});","define(\"portal/controllers/entity/settings/profile\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"@ember/object\", \"@glimmer/tracking\", \"portal/utils/email-validator\", \"moment\", \"portal/utils/get-default-language\"], function (_exports, _asyncArrowRuntime, _controller, _service, _object, _tracking, _emailValidator, _moment, _getDefaultLanguage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"ember-concurrency\",0,\"portal/utils/email-validator\",0,\"moment\",0,\"portal/utils/get-default-language\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"session\", _descriptor3, this);\n      _initializerDefineProperty(this, \"router\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor6, this);\n      _initializerDefineProperty(this, \"store\", _descriptor7, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor8, this);\n      _initializerDefineProperty(this, \"passwordModalVisible\", _descriptor9, this);\n      _initializerDefineProperty(this, \"termsOfServiceModalVisible\", _descriptor0, this);\n      _initializerDefineProperty(this, \"oldPassword\", _descriptor1, this);\n      _initializerDefineProperty(this, \"newPassword\", _descriptor10, this);\n      _initializerDefineProperty(this, \"confirmPassword\", _descriptor11, this);\n      _initializerDefineProperty(this, \"userCanManageHealthAndSafety\", _descriptor12, this);\n      _defineProperty(this, \"languages\", _getDefaultLanguage.languages);\n      _defineProperty(this, \"userValidationMap\", {\n        firstName: this.validateUserContent.bind(this),\n        lastName: this.validateUserContent.bind(this),\n        email: this.validateUserContent.bind(this),\n        language: (_key, val) => Boolean(val) || 'Please provide a valid language'\n      });\n      _defineProperty(this, \"saveUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (user) {\n          yield user.validate();\n          if (user.isInvalid) return;\n          try {\n            // Applies the valid changes to the underlying Object.\n            user.execute();\n            yield user.save();\n            const hasHAndS = this.newFeatureFlags.includesFeatureFlags('userIsEntityAdmin', 'entityCanUseHealthAndSafety');\n            if (hasHAndS) yield this.addOrRemoveHAndSPerm(this.userCanManageHealthAndSafety);\n            this.notifications.success(this.intl.t('entity.settings.profile.User details saved successfully'));\n            this.intl.setLocale([user.language]);\n            _moment.default.locale(user.language.toLowerCase());\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.profile.somethingWentWrongWhileUpdatingDetails'),\n              error\n            });\n          }\n        }\n      }), null, \"saveUser\", null));\n      _defineProperty(this, \"deleteUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            if (!confirm(this.intl.t('shared.notification.areYouSureYouWantToRemoveYourselfFromThisCompany'))) return;\n\n            // fetch the user attributes again so we have all the attributes\n            yield Promise.all([this.store.simpleQuery('user-entity-attribute', {\n              user: this.user.id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-project-attribute', {\n              user: this.user.id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-task-attribute', {\n              user: this.user.id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-worker-attribute', {\n              user: this.user.id,\n              entity: this.sessionData.entity.id\n            })]);\n\n            // destroy all the attributes for this entity\n            const destroyAttribute = attribute => {\n              // only destroy attributes for this entity\n              if (attribute.belongsTo('entity').value() === this.sessionData.entity) return attribute.destroyRecord();\n            };\n            yield Promise.all([Promise.all((this.user.hasMany('entityAttributes').value() || []).map(destroyAttribute)), Promise.all((this.user.hasMany('projectAttributes').value() || []).map(destroyAttribute)), Promise.all((this.user.hasMany('taskAttributes').value() || []).map(destroyAttribute)), Promise.all((this.user.hasMany('workerAttributes').value() || []).map(destroyAttribute))]);\n            this.router.transitionTo('index');\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongRemovingYouFromTheCompany'),\n              error\n            });\n          }\n        }\n      }), null, \"deleteUser\", null));\n      _defineProperty(this, \"changePassword\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const currentPassword = this.oldPassword;\n          const password = this.newPassword;\n          const confirmPassword = this.confirmPassword;\n          if (password !== confirmPassword) {\n            this.notifications.warning(this.intl.t('entity.settings.profile.Passwords do not match'));\n            return;\n          }\n          try {\n            const payload = {\n              data: {\n                id: this.sessionData.user.id,\n                type: 'users',\n                attributes: {\n                  password\n                }\n              },\n              meta: {\n                currentPassword\n              }\n            };\n            yield this.buildaPrice.changePassword(payload);\n            this.notifications.success(this.intl.t('entity.settings.profile.Password changed successfully'));\n            yield this.closePasswordModal.perform();\n          } catch (error) {\n            const message = error?.responseJSON?.errors?.[0]?.title;\n            if (error.status === 400 && message) {\n              this.notifications.error({\n                message,\n                error\n              });\n              return;\n            }\n            this.notifications.error({\n              message: this.intl.t('entity.settings.profile.somethingWentWrongWhileHangingPassword'),\n              error\n            });\n            this.passwordModalVisible = false;\n          }\n        }\n      }), null, \"changePassword\", null));\n      _defineProperty(this, \"closePasswordModal\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          this.passwordModalVisible = false;\n          this.oldPassword = null;\n          this.newPassword = null;\n          this.confirmPassword = null;\n        }\n      }), null, \"closePasswordModal\", null));\n    }\n    get isLoading() {\n      return this.model.user.isRunning || this.model.terms.isRunning;\n    }\n    get user() {\n      return this.sessionData.user;\n    }\n    initUserCanManageHealthAndSafety() {\n      this.userCanManageHealthAndSafety = this.model.user.lastSuccessful.value?.includesClaimsAboutEntity(this.sessionData.entity.id, 'canManageHealthAndSafety', 'canCreateHealthAndSafety');\n    }\n    validateUserContent(key, newVal, oldVal, _changes, _content) {\n      const value = (newVal ?? oldVal) || '';\n      if (key === 'firstName') {\n        return value.length > 1 || this.intl.t('validation.firstName');\n      }\n      if (key === 'lastName') {\n        return value.length > 0 || this.intl.t('validation.lastName');\n      }\n      if (key === 'email' && newVal) {\n        return (0, _emailValidator.default)(newVal) || this.intl.t('validation.Email');\n      }\n    }\n    async addOrRemoveHAndSPerm(userCanManageHealthAndSafety) {\n      const [[canCreateHealthAndSafety, canManageHealthAndSafety], existingEntityAttributes] = await Promise.all([this.store.query('user-attribute', {\n        filter: {\n          and: [{\n            field: '_id',\n            op: 'IN',\n            value: ['canManageHealthAndSafety', 'canCreateHealthAndSafety']\n          }]\n        },\n        sort: 'attribute'\n      }).then(r => r.toArray()), this.store.query('user-entity-attribute', {\n        filter: {\n          and: [{\n            field: 'user',\n            op: 'EQ',\n            value: this.model.user.lastSuccessful.value.id\n          }, {\n            field: 'entity',\n            op: 'EQ',\n            value: this.sessionData.entity.id\n          }, {\n            field: 'attribute',\n            op: 'IN',\n            value: ['canManageHealthAndSafety', 'canCreateHealthAndSafety']\n          }]\n        }\n      }).then(r => r.toArray())]);\n      if (userCanManageHealthAndSafety) {\n        // add the perms only if they do not already exist\n        const hasManage = existingEntityAttributes.some(attr => attr.belongsTo('attribute').id() === 'canManageHealthAndSafety');\n        const hasCreate = existingEntityAttributes.some(attr => attr.belongsTo('attribute').id() === 'canCreateHealthAndSafety');\n        if (!hasManage) {\n          await this.store.createRecord('user-entity-attribute', {\n            entity: this.sessionData.entity,\n            user: this.model.user.lastSuccessful.value,\n            attribute: canManageHealthAndSafety\n          }).save();\n        }\n        if (!hasCreate) {\n          await this.store.createRecord('user-entity-attribute', {\n            entity: this.sessionData.entity,\n            user: this.model.user.lastSuccessful.value,\n            attribute: canCreateHealthAndSafety\n          }).save();\n        }\n      } else {\n        // remove the perms\n        await Promise.all(existingEntityAttributes.map(attr => attr.destroyRecord()));\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"passwordModalVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"termsOfServiceModalVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"oldPassword\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"newPassword\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"confirmPassword\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"userCanManageHealthAndSafety\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"initUserCanManageHealthAndSafety\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"initUserCanManageHealthAndSafety\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/settings/suppliers\", [\"exports\", \"@ember/controller\"], function (_exports, _controller) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\"eaimeta@70e063a35619d71f\n  class _default extends _controller.default {}\n  _exports.default = _default;\n});","define(\"portal/controllers/initiate-password-reset\", [\"exports\", \"@ember/controller\", \"@ember/service\", \"@ember/object\", \"jquery\", \"portal/config/environment\", \"portal/utils/email-validator\"], function (_exports, _controller, _service, _object, _jquery, _environment, _emailValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\",0,\"@ember/object\",0,\"jquery\",0,\"portal/config/environment\",0,\"portal/utils/email-validator\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({\n    notifications: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    session: (0, _service.inject)(),\n    queryParams: ['email'],\n    actions: {\n      resetPassword() {\n        const email = (0, _object.get)(this, 'email');\n        if (!email) {\n          (0, _object.get)(this, 'notifications').warning('Please enter an email address.');\n          return;\n        }\n        if (!(0, _emailValidator.default)(email)) {\n          (0, _object.get)(this, 'notifications').warning('Please enter a valid email address.');\n          return;\n        }\n        const url = _environment.default.urls.api + _environment.default.urls.apiV1Path + '/auth/initiate-password-reset';\n        const callback = _environment.default.urls.app + '/reset-password';\n        const payload = {\n          callback,\n          email: email.toLowerCase()\n        };\n        const headers = {\n          Authorization: 'Bearer ' + (0, _object.get)(this, 'session.data.authenticated.access_token')\n        };\n        (0, _object.set)(this, 'isResettingPassword', true);\n        return _jquery.default.ajax({\n          contentType: 'application/json',\n          method: 'POST',\n          url,\n          data: JSON.stringify(payload),\n          headers\n        }).then(() => {\n          (0, _object.set)(this, 'isResettingPassword', false);\n          (0, _object.get)(this, 'notifications').success(`Please check your inbox for a password reset link (If you do not receive the password reset email check your spam folder).`, 6000);\n        }, reason => {\n          (0, _object.set)(this, 'isResettingPassword', false);\n          if (reason.status === 400) {\n            (0, _object.get)(this, 'notifications').error(reason.responseJSON.errors[0].title);\n          } else if (reason.status === 500) {\n            (0, _object.get)(this, 'notifications').error('Sorry, a password reset email could not be sent. Please contact support or try again later.');\n          } else {\n            this.send('error', reason);\n          }\n        });\n      }\n    }\n  });\n});","define(\"portal/controllers/no-access\", [\"exports\", \"@ember/controller\", \"@ember/object\", \"@ember/service\", \"@glimmer/tracking\"], function (_exports, _controller, _object, _service, _tracking) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/object\",0,\"@ember/service\",0,\"@glimmer/tracking\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"session\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"orgSelectorOpen\", _descriptor3, this);\n    }\n    signOut() {\n      this.session.invalidate();\n    }\n    changeEntity({\n      id\n    }) {\n      this.sessionData.changeEntity(id);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"orgSelectorOpen\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"signOut\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"signOut\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"changeEntity\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"changeEntity\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/reset-password\", [\"exports\", \"@ember/controller\", \"@ember/service\", \"@ember/object\", \"@ember/runloop\", \"jquery\", \"portal/config/environment\"], function (_exports, _controller, _service, _object, _runloop, _jquery, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\",0,\"@ember/object\",0,\"@ember/runloop\",0,\"jquery\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({\n    notifications: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    session: (0, _service.inject)(),\n    router: (0, _service.inject)(),\n    queryParams: ['token', 'email'],\n    tokenExpired: false,\n    actions: {\n      resetPasswordForm() {\n        const token = (0, _object.get)(this, 'token');\n        const password = (0, _object.get)(this, 'newPassword');\n        const passwordConfirmation = (0, _object.get)(this, 'confirmPassword');\n        const notifications = (0, _object.get)(this, 'notifications');\n        notifications.clearAll();\n        if (!token) {\n          notifications.error('Password could not be reset. Please click on the link in the email and try again.');\n          return;\n        }\n        if (!password) {\n          notifications.warning('Please enter a new password.');\n          return;\n        }\n        if (password !== passwordConfirmation) {\n          notifications.warning('Passwords do not match.');\n          return;\n        }\n        const url = _environment.default.urls.api + _environment.default.urls.apiV1Path + '/auth/reset-password';\n        const payload = {\n          password,\n          token\n        };\n        (0, _object.set)(this, 'isResettingPassword', true);\n        return _jquery.default.ajax({\n          contentType: 'application/json',\n          method: 'PATCH',\n          url,\n          data: JSON.stringify(payload)\n        }).then(data => {\n          (0, _runloop.run)(() => {\n            (0, _object.set)(this, 'isResettingPassword', false);\n            notifications.success('Your password has been reset.');\n            (0, _object.get)(this, 'session.session').authenticate('authenticator:push-session', data);\n            this.router.transitionTo('index');\n          });\n        }, reason => {\n          (0, _runloop.run)(() => {\n            (0, _object.set)(this, 'isResettingPassword', false);\n            if (reason.status === 400) {\n              notifications.error(reason.responseJSON.errors[0].title);\n              (0, _object.set)(this, 'tokenExpired', true);\n            } else {\n              this.send('error', reason);\n            }\n          });\n        });\n      },\n      handleRequestPasswordReset() {\n        (0, _object.set)(this, 'tokenExpired', false);\n        this.router.transitionTo('initiate-password-reset', {\n          queryParams: {\n            email: (0, _object.get)(this, 'email').toLowerCase() || ''\n          }\n        });\n      }\n    }\n  });\n});","define(\"portal/controllers/terms-of-service\", [\"exports\", \"@ember/controller\", \"@ember/object\", \"@ember/service\"], function (_exports, _controller, _object, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/object\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({\n    notifications: (0, _service.inject)(),\n    router: (0, _service.inject)(),\n    actions: {\n      continue() {\n        const notifications = (0, _object.get)(this, 'notifications');\n        const user = (0, _object.get)(this, 'model.user');\n        const terms = (0, _object.get)(user, 'hasAcceptedTerms');\n        notifications.clearAll();\n        if (!terms) {\n          notifications.error('You must agree to the terms and conditions before using the Portal.');\n          return;\n        }\n        (0, _object.set)(this, 'isSubmitting', true);\n        user.save().then(() => this.router.transitionTo('index'), err => this.send('error', err)).finally(() => (0, _object.set)(this, 'isSubmitting', false));\n      }\n    }\n  });\n});","define(\"portal/data-adapter\", [\"exports\", \"@ember-data/debug/data-adapter\"], function (_exports, _dataAdapter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _dataAdapter.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/debug/data-adapter\"eaimeta@70e063a35619d71f\n});","define(\"portal/formats\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = {\n    time: {\n      hhmmss: {\n        hour: 'numeric',\n        minute: 'numeric',\n        second: 'numeric'\n      }\n    },\n    date: {\n      hhmmss: {\n        hour: 'numeric',\n        minute: 'numeric',\n        second: 'numeric'\n      }\n    },\n    number: {\n      compact: {\n        notation: 'compact'\n      },\n      EUR: {\n        style: 'currency',\n        currency: 'EUR'\n      },\n      USD: {\n        style: 'currency',\n        currency: 'USD'\n      },\n      NZD: {\n        style: 'currency',\n        currency: 'NZD'\n      },\n      CNY: {\n        style: 'currency',\n        currency: 'CNY'\n      },\n      AUD: {\n        style: 'currency',\n        currency: 'AUD'\n      },\n      GBP: {\n        style: 'currency',\n        currency: 'GBP'\n      }\n    }\n  };\n});","define(\"portal/helpers/-base\", [\"exports\", \"ember-moment/helpers/-base\"], function (_exports, _base) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _base.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/-base\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/and\", [\"exports\", \"ember-truth-helpers/helpers/and\"], function (_exports, _and) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _and.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-truth-helpers/helpers/and\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/app-version\", [\"exports\", \"@ember/component/helper\", \"portal/config/environment\", \"ember-cli-app-version/utils/regexp\"], function (_exports, _helper, _environment, _regexp) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.appVersion = appVersion;\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"portal/config/environment\",0,\"ember-cli-app-version/utils/regexp\"eaimeta@70e063a35619d71f\n  function appVersion(_, hash = {}) {\n    const version = _environment.default.APP.version;\n    // e.g. 1.0.0-alpha.1+4jds75hf\n\n    // Allow use of 'hideSha' and 'hideVersion' For backwards compatibility\n    let versionOnly = hash.versionOnly || hash.hideSha;\n    let shaOnly = hash.shaOnly || hash.hideVersion;\n    let match = null;\n    if (versionOnly) {\n      if (hash.showExtended) {\n        match = version.match(_regexp.versionExtendedRegExp); // 1.0.0-alpha.1\n      }\n      // Fallback to just version\n      if (!match) {\n        match = version.match(_regexp.versionRegExp); // 1.0.0\n      }\n    }\n    if (shaOnly) {\n      match = version.match(_regexp.shaRegExp); // 4jds75hf\n    }\n    return match ? match[0] : version;\n  }\n  var _default = _exports.default = (0, _helper.helper)(appVersion);\n});","define(\"portal/helpers/assign\", [\"exports\", \"ember-assign-helper/helpers/assign\"], function (_exports, _assign) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _assign.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-assign-helper/helpers/assign\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/bool\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _helper.helper)(function bool([param]) {\n    return !!param;\n  });\n});","define(\"portal/helpers/camel-case-words\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.camelCaseWords = camelCaseWords;\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function camelCaseWords([words]) {\n    return words.split(' ').map(word => {\n      return word[0].toUpperCase() + word.slice(1);\n    }).join(' ');\n  }\n  var _default = _exports.default = (0, _helper.helper)(camelCaseWords);\n});","define(\"portal/helpers/camelize\", [\"exports\", \"ember-cli-string-helpers/helpers/camelize\"], function (_exports, _camelize) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"camelize\", {\n    enumerable: true,\n    get: function () {\n      return _camelize.camelize;\n    }\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _camelize.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-string-helpers/helpers/camelize\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/cancel-all\", [\"exports\", \"ember-concurrency/helpers/cancel-all\"], function (_exports, _cancelAll) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _cancelAll.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/helpers/cancel-all\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/capitalize\", [\"exports\", \"ember-cli-string-helpers/helpers/capitalize\"], function (_exports, _capitalize) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"capitalize\", {\n    enumerable: true,\n    get: function () {\n      return _capitalize.capitalize;\n    }\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _capitalize.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-string-helpers/helpers/capitalize\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/changeset-get\", [\"exports\", \"ember-changeset/helpers/changeset-get\"], function (_exports, _changesetGet) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _changesetGet.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-changeset/helpers/changeset-get\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/changeset-set\", [\"exports\", \"ember-changeset/helpers/changeset-set\"], function (_exports, _changesetSet) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"changesetSet\", {\n    enumerable: true,\n    get: function () {\n      return _changesetSet.changesetSet;\n    }\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _changesetSet.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-changeset/helpers/changeset-set\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/changeset\", [\"exports\", \"ember-changeset/helpers/changeset\"], function (_exports, _changeset) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"changeset\", {\n    enumerable: true,\n    get: function () {\n      return _changeset.changeset;\n    }\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _changeset.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-changeset/helpers/changeset\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/chunk-callback\", [\"exports\", \"lodash\", \"portal/config/environment\", \"portal/utils/collection-to-array\"], function (_exports, _lodash, _environment, _collectionToArray) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = chunkCallback;\n  0; //eaimeta@70e063a35619d71f0,\"lodash\",0,\"portal/config/environment\",0,\"portal/utils/collection-to-array\"eaimeta@70e063a35619d71f\n  /**\n   * In Node 11+ a default request size limit of 81920 bytes was introduced.\n   * In requests with large arrays, you can easily exceed the limit.\n   * This function is intended to keep request size bellow this limit, by creating multiple requests.\n   * @param {array} list - the array of items to be chunked\n   * @param {number} chunkSize - the chunk size\n   * @param {function} callback - the callback to be run on each chunk\n   * @returns {promise}\n   */\n  function chunkCallback(list = [], chunkSize = _environment.default.chunkCallbackSize, callback = () => null) {\n    const chunks = _lodash.default.chunk(list, chunkSize);\n    return Promise.all(chunks.map(callback)).then(results => results.reduce((arr, item) => [...arr, ...(0, _collectionToArray.default)(item)], []));\n  }\n});","define(\"portal/helpers/classify\", [\"exports\", \"ember-cli-string-helpers/helpers/classify\"], function (_exports, _classify) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"classify\", {\n    enumerable: true,\n    get: function () {\n      return _classify.classify;\n    }\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _classify.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-string-helpers/helpers/classify\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/convert-to-title-case\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.convertToTitleCase = convertToTitleCase;\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function convertToTitleCase([str]) {\n    return str?.replace(/\\w\\S*/g, txt => txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase());\n  }\n  var _default = _exports.default = (0, _helper.helper)(convertToTitleCase);\n});","define(\"portal/helpers/dasherize\", [\"exports\", \"ember-cli-string-helpers/helpers/dasherize\"], function (_exports, _dasherize) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"dasherize\", {\n    enumerable: true,\n    get: function () {\n      return _dasherize.dasherize;\n    }\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _dasherize.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-string-helpers/helpers/dasherize\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/date-ago\", [\"exports\", \"@ember/component/helper\", \"moment\"], function (_exports, _helper, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.dateAgo = dateAgo;\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"moment\"eaimeta@70e063a35619d71f\n  function dateAgo(params) {\n    const thatMoment = params[0];\n    return (0, _moment.default)(thatMoment).fromNow();\n  }\n  var _default = _exports.default = _helper.default.helper(dateAgo);\n});","define(\"portal/helpers/element\", [\"exports\", \"ember-element-helper/helpers/element\"], function (_exports, _element) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _element.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-element-helper/helpers/element\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/ellipsis-characters\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.ellipsisTextCharacters = ellipsisTextCharacters;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function ellipsisTextCharacters(params) {\n    const [text = '', maxCharacters = 100] = params;\n    let truncatedText = text.substr(0, maxCharacters);\n    if (truncatedText.length !== text.length) truncatedText += '…';\n    return truncatedText;\n  }\n  var _default = _exports.default = (0, _helper.helper)(ellipsisTextCharacters);\n});","define(\"portal/helpers/ellipsis-words\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.ellipsisTextWords = ellipsisTextWords;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function ellipsisTextWords(params) {\n    const [text = '', maxWords = 30] = params;\n    const words = text.split(' ');\n    const truncatedWords = words.slice(0, maxWords);\n    let truncatedString = truncatedWords.join(' ');\n    if (truncatedWords.length !== words.length) truncatedString += '…';\n    return truncatedString;\n  }\n  var _default = _exports.default = (0, _helper.helper)(ellipsisTextWords);\n});","define(\"portal/helpers/ember-power-calendar-day-classes\", [\"exports\", \"ember-power-calendar/helpers/ember-power-calendar-day-classes\"], function (_exports, _emberPowerCalendarDayClasses) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _emberPowerCalendarDayClasses.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-power-calendar/helpers/ember-power-calendar-day-classes\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/ember-power-select-is-equal\", [\"exports\", \"ember-power-select/helpers/ember-power-select-is-equal\"], function (_exports, _emberPowerSelectIsEqual) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _emberPowerSelectIsEqual.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-power-select/helpers/ember-power-select-is-equal\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/ember-power-select-is-group\", [\"exports\", \"ember-power-select/helpers/ember-power-select-is-group\"], function (_exports, _emberPowerSelectIsGroup) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _emberPowerSelectIsGroup.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-power-select/helpers/ember-power-select-is-group\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/ember-power-select-is-selected-present\", [\"exports\", \"ember-power-select/helpers/ember-power-select-is-selected-present\"], function (_exports, _emberPowerSelectIsSelectedPresent) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _emberPowerSelectIsSelectedPresent.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-power-select/helpers/ember-power-select-is-selected-present\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/ensure-safe-component\", [\"exports\", \"@embroider/util\"], function (_exports, _util) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _util.EnsureSafeComponentHelper;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"@embroider/util\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/eq\", [\"exports\", \"ember-truth-helpers/helpers/eq\"], function (_exports, _eq) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _eq.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-truth-helpers/helpers/eq\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/excludes-feature-flags\", [\"exports\", \"@ember/component/helper\", \"@ember/service\"], function (_exports, _helper, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _helper.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n    }\n    compute(params) {\n      return this.newFeatureFlags.excludesFeatureFlags(...params);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/helpers/excludes-some-feature-flags\", [\"exports\", \"@ember/component/helper\", \"@ember/service\"], function (_exports, _helper, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _helper.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n    }\n    compute(params) {\n      return this.newFeatureFlags.excludesSomeFeatureFlags(...params);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/helpers/file-size-to-string\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.fileSizeToString = fileSizeToString;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function fileSizeToString(params) {\n    let bytes = params[0];\n    let si = params[1] || false;\n    let dp = params[2] || 1;\n    const thresh = si ? 1000 : 1024;\n    if (Math.abs(bytes) < thresh) {\n      return bytes + ' B';\n    }\n    const units = si ? ['KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'] : ['KiB', 'MiB', 'GiB', 'TiB', 'PiB', 'EiB', 'ZiB', 'YiB'];\n    let u = -1;\n    const r = 10 ** dp;\n    do {\n      bytes /= thresh;\n      ++u;\n    } while (Math.round(Math.abs(bytes) * r) / r >= thresh && u < units.length - 1);\n    return bytes.toFixed(dp) + ' ' + units[u];\n  }\n  var _default = _exports.default = _helper.default.helper(fileSizeToString);\n});","define(\"portal/helpers/format-date\", [\"exports\", \"ember-intl/helpers/format-date\"], function (_exports, _formatDate) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _formatDate.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-intl/helpers/format-date\"eaimeta@70e063a35619d71f\n  /**\n   * Copyright 2015, Yahoo! Inc.\n   * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n   */\n});","define(\"portal/helpers/format-duration\", [\"exports\", \"@ember/component/helper\", \"portal/utils/duration-input\"], function (_exports, _helper, _durationInput) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"portal/utils/duration-input\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _helper.helper)(_durationInput.formatDuration);\n});","define(\"portal/helpers/format-message\", [\"exports\", \"ember-intl/helpers/format-message\"], function (_exports, _formatMessage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _formatMessage.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-intl/helpers/format-message\"eaimeta@70e063a35619d71f\n  /**\n   * Copyright 2015, Yahoo! Inc.\n   * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n   */\n});","define(\"portal/helpers/format-number\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.formatNumber = formatNumber;\n  _exports.parseNumber = parseNumber;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  const MINUS_SIGN = '\\u2212\\u2009';\n  const DASH = '\\u2013';\n  const MIN_SAFE_INTEGER = Number.MIN_SAFE_INTEGER || -9007199254740991;\n  const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;\n  function formatNumber(params, options) {\n    options = options || {};\n    var [formatAs, number, rawNumber] = standardizeInput(params);\n\n    // Defaults\n\n    // NaN\n    if (isNaN(number)) {\n      return finalize('', formatAs, number, rawNumber, options);\n    }\n\n    // Too large or small\n    if (number < MIN_SAFE_INTEGER || number > MAX_SAFE_INTEGER) {\n      return finalize('#', formatAs, number, rawNumber, options);\n    }\n    if (options.abs) {\n      number = Math.abs(number);\n    }\n\n    // Convert sigfigs option to a places option\n    const places = calcPlaces(number, formatAs, options);\n\n    // First round the number\n    const rounded = round(number, places);\n\n    // Dash zero (after rounding)\n    if (options.dashZero !== false && Number(rounded) === 0) {\n      return finalize(DASH, formatAs, rounded, rawNumber, options);\n    }\n\n    // Add zeros to meet decimal places requirement\n    const padded = pad(rounded, places);\n\n    // Add commas\n    const commaed = addCommas(padded);\n\n    // Nice minus sign and slight space\n    const formatted = formatNegativeSign(commaed);\n    return finalize(formatted, formatAs, rounded, rawNumber, options);\n  }\n  function finalize(formatted, formatAs, number, rawNumber, options) {\n    if (typeof formatted === 'string' && formatted.match(/\\d/) !== null) {\n      formatted = applyDecoration(formatted, formatAs, options.currencySymbol);\n    }\n    if (!options.flags) {\n      return formatted;\n    }\n    if (formatAs === 'percentage') {\n      number /= 100;\n    }\n    const res = {\n      formatted,\n      raw: rawNumber,\n      parsedInput: number,\n      isNaN: typeof formatted !== 'string' || formatted.match(/\\d/) === null,\n      isZero: rawNumber === 0,\n      roundsToZero: number === 0,\n      isNegative: !isNaN(number) && number < 0\n    };\n    return res;\n  }\n  function standardizeInput(input) {\n    let formatAs, value;\n    if (!Array.isArray(input) || input.length === 1) {\n      value = Array.isArray(input) ? input[0] : input;\n      formatAs = 'number';\n    } else {\n      [formatAs, value] = input;\n    }\n    formatAs = typeof formatAs === 'string' ? formatAs.toLowerCase() : 'number';\n    const rawValue = value;\n    if (typeof value !== 'string') {\n      value = value == null || typeof value === 'boolean' ? NaN : Number(value);\n    } else if (value === '-' || value === DASH) {\n      value = 0;\n    } else {\n      value = parseFloat(value.replace(MINUS_SIGN, '-').replace(/[^\\d.-]*/g, ''));\n    }\n    if (formatAs === 'percentage' && !isNaN(value)) {\n      value *= 100;\n    }\n    return [formatAs, value, rawValue];\n  }\n  function calcPlaces(number, formatAs, options) {\n    if (typeof options.places === 'number' && formatAs !== 'integer') {\n      return options.places;\n    }\n    if (typeof options.sigfigs === 'number') {\n      return options.sigfigs - Math.abs(Math.floor(number)).toString().length;\n    }\n    if (formatAs === 'integer') {\n      return 0;\n    }\n    return 2;\n  }\n  function round(number, places) {\n    const factor = Math.pow(10, places);\n    return Math.round(number * factor) / factor;\n  }\n  function pad(number, places) {\n    // Convert to string\n    let string = number.toString();\n    if (places > 0) {\n      // Add a decimal point, if one doesn't already exist\n      if (string.indexOf('.') === -1) {\n        string += '.';\n      }\n\n      // Find the decimal point\n      const pointIndex = string.indexOf('.');\n\n      // Keep adding zeros until we reach the end\n      while (string.length <= pointIndex + places) {\n        string += '0';\n      }\n    }\n    return string;\n  }\n  function addCommas(string) {\n    var chars = string.split('');\n    var pointIndex = chars.indexOf('.');\n    var left = [];\n    var right = [];\n    if (pointIndex === -1) {\n      left = chars.reverse();\n    } else {\n      left = chars.slice(0, pointIndex).reverse();\n      right = chars.slice(pointIndex + 1);\n    }\n    string = '';\n\n    // Left of decimal point\n    for (let i = 0, len = left.length; i < len; i++) {\n      if (i >= 3 && i % 3 === 0 && left[i] !== '-') {\n        string = ',' + string;\n      }\n      string = left[i] + string;\n    }\n    if (right.length) {\n      string = string + '.';\n\n      // Right of decimal point\n      for (let j = 0, len = right.length; j < len; j++) {\n        if (j >= 3 && j % 3 === 0) {\n          string = string + ',';\n        }\n        string = string + right[j];\n      }\n    }\n    return string;\n  }\n  function formatNegativeSign(string) {\n    if (string[0] === '-') {\n      string = MINUS_SIGN + string.substr(1);\n    }\n    return string;\n  }\n  function applyDecoration(string, formatAs, currencySymbol = '$') {\n    if (!string) {\n      return '';\n    }\n    switch (formatAs) {\n      case 'percentage':\n        return string + '%';\n      case 'currency':\n        return addCurrencySymbol(string, currencySymbol);\n      case 'number':\n      case 'integer':\n      default:\n        return string;\n    }\n  }\n  function addCurrencySymbol(string, symbol) {\n    // Negative values should be formatted like -$1.50 not $-1.50\n    if (string.indexOf(MINUS_SIGN) === 0) {\n      return MINUS_SIGN + (symbol || '') + string.substr(MINUS_SIGN.length);\n    } else {\n      return (symbol || '') + string;\n    }\n  }\n  function parseNumber(input) {\n    if (typeof input !== 'string') {\n      return input == null || typeof input === 'boolean' ? NaN : Number(input);\n    }\n    const string = input.trim();\n    if (string === '-' || string === DASH) {\n      return 0;\n    }\n    const isPercentage = string.match(/%$/) !== null;\n    const number = parseFloat(string.replace(MINUS_SIGN, '-').replace(/[^\\d.-]*/g, ''));\n    return isPercentage && !isNaN(number) ? number / 100 : number;\n  }\n  var _default = _exports.default = _helper.default.helper(formatNumber);\n});","define(\"portal/helpers/format-relative\", [\"exports\", \"ember-intl/helpers/format-relative\"], function (_exports, _formatRelative) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _formatRelative.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-intl/helpers/format-relative\"eaimeta@70e063a35619d71f\n  /**\n   * Copyright 2015, Yahoo! Inc.\n   * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n   */\n});","define(\"portal/helpers/format-shortcut\", [\"exports\", \"@ember/component/helper\", \"@ember/service\"], function (_exports, _helper, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let FormatShortcut = _exports.default = (_class = class FormatShortcut extends _helper.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"os\", _descriptor, this);\n    }\n    compute([key, actionName]) {\n      // If it's a touch device without a fine pointer, don't show tooltip\n      if (!this.os.hasKeyboard) {\n        return undefined;\n      }\n      const mod = key.includes('cmd') ? `${this.os.mainModifier} + ` : '';\n      const displayKey = key.replace('cmd+', '').replace('Arrow', '');\n      return `${actionName} (${mod}${displayKey})`;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"os\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"portal/helpers/format-time\", [\"exports\", \"ember-intl/helpers/format-time\"], function (_exports, _formatTime) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _formatTime.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-intl/helpers/format-time\"eaimeta@70e063a35619d71f\n  /**\n   * Copyright 2015, Yahoo! Inc.\n   * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n   */\n});","define(\"portal/helpers/get-file-icon\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.getFileIcon = getFileIcon;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function getFileIcon(params) {\n    const fileExtension = params[0];\n    const fileMapper = {\n      image: 'file-image',\n      pdf: 'file-pdf',\n      doc: 'file-word',\n      txt: 'file-word',\n      csv: 'file-csv',\n      gz: 'file-archive',\n      rar: 'file-archive',\n      zip: 'file-archive',\n      '7z': 'file-archive'\n    };\n    return fileMapper[fileExtension] || 'file';\n  }\n  var _default = _exports.default = _helper.default.helper(getFileIcon);\n});","define(\"portal/helpers/gt\", [\"exports\", \"ember-truth-helpers/helpers/gt\"], function (_exports, _gt) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _gt.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-truth-helpers/helpers/gt\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/gte\", [\"exports\", \"ember-truth-helpers/helpers/gte\"], function (_exports, _gte) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _gte.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-truth-helpers/helpers/gte\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/html-safe\", [\"exports\", \"@ember/component/helper\", \"@ember/template\"], function (_exports, _helper, _template) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.htmlSafe = htmlSafe;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"@ember/template\"eaimeta@70e063a35619d71f\n  function htmlSafe(params) {\n    return (0, _template.htmlSafe)(params ?? '');\n  }\n  var _default = _exports.default = _helper.default.helper(htmlSafe);\n});","define(\"portal/helpers/humanize\", [\"exports\", \"ember-cli-string-helpers/helpers/humanize\"], function (_exports, _humanize) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _humanize.default;\n    }\n  });\n  Object.defineProperty(_exports, \"humanize\", {\n    enumerable: true,\n    get: function () {\n      return _humanize.humanize;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-string-helpers/helpers/humanize\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/if-key\", [\"exports\", \"ember-keyboard/helpers/if-key\"], function (_exports, _ifKey) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _ifKey.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-keyboard/helpers/if-key\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/ignore-children\", [\"exports\", \"ember-modal-dialog/helpers/ignore-children\"], function (_exports, _ignoreChildren) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _ignoreChildren.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-modal-dialog/helpers/ignore-children\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/inc\", [\"exports\", \"ember-composable-helpers/helpers/inc\"], function (_exports, _inc) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _inc.default;\n    }\n  });\n  Object.defineProperty(_exports, \"inc\", {\n    enumerable: true,\n    get: function () {\n      return _inc.inc;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-composable-helpers/helpers/inc\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/includes-feature-flags\", [\"exports\", \"@ember/component/helper\", \"@ember/service\"], function (_exports, _helper, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _helper.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n    }\n    compute(params) {\n      return this.newFeatureFlags.includesFeatureFlags(...params);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/helpers/includes-some-feature-flags\", [\"exports\", \"@ember/component/helper\", \"@ember/service\"], function (_exports, _helper, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _helper.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n    }\n    compute(params) {\n      return this.newFeatureFlags.includesSomeFeatureFlags(...params);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/helpers/includes\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _helper.helper)(function includes([array, value]) {\n    if (!Array.isArray(array)) {\n      return false;\n    }\n    return array.includes(value);\n  });\n});","define(\"portal/helpers/is-active\", [\"exports\", \"ember-router-helpers/helpers/is-active.js\"], function (_exports, _isActive) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _isActive.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-router-helpers/helpers/is-active.js\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/is-after\", [\"exports\", \"ember-moment/helpers/is-after\"], function (_exports, _isAfter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _isAfter.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/is-after\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/is-array\", [\"exports\", \"ember-truth-helpers/helpers/is-array\"], function (_exports, _isArray) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _isArray.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-truth-helpers/helpers/is-array\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/is-before\", [\"exports\", \"ember-moment/helpers/is-before\"], function (_exports, _isBefore) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _isBefore.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/is-before\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/is-between\", [\"exports\", \"ember-moment/helpers/is-between\"], function (_exports, _isBetween) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _isBetween.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/is-between\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/is-empty\", [\"exports\", \"ember-truth-helpers/helpers/is-empty\"], function (_exports, _isEmpty) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _isEmpty.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-truth-helpers/helpers/is-empty\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/is-equal\", [\"exports\", \"ember-truth-helpers/helpers/is-equal\"], function (_exports, _isEqual) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _isEqual.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-truth-helpers/helpers/is-equal\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/is-hash\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.isHash = isHash;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function isHash(params) {\n    return params !== null && typeof params === 'object' && !Array.isArray(params);\n  }\n  var _default = _exports.default = _helper.default.helper(isHash);\n});","define(\"portal/helpers/is-same-or-after\", [\"exports\", \"ember-moment/helpers/is-same-or-after\"], function (_exports, _isSameOrAfter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _isSameOrAfter.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/is-same-or-after\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/is-same-or-before\", [\"exports\", \"ember-moment/helpers/is-same-or-before\"], function (_exports, _isSameOrBefore) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _isSameOrBefore.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/is-same-or-before\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/is-same\", [\"exports\", \"ember-moment/helpers/is-same\"], function (_exports, _isSame) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _isSame.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/is-same\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/lowercase\", [\"exports\", \"ember-cli-string-helpers/helpers/lowercase\"], function (_exports, _lowercase) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _lowercase.default;\n    }\n  });\n  Object.defineProperty(_exports, \"lowercase\", {\n    enumerable: true,\n    get: function () {\n      return _lowercase.lowercase;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-string-helpers/helpers/lowercase\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/lt\", [\"exports\", \"ember-truth-helpers/helpers/lt\"], function (_exports, _lt) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _lt.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-truth-helpers/helpers/lt\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/lte\", [\"exports\", \"ember-truth-helpers/helpers/lte\"], function (_exports, _lte) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _lte.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-truth-helpers/helpers/lte\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/map-get\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _helper.helper)(function mapGet([map, key]) {\n    if (map instanceof Map) {\n      return map.get(key);\n    }\n    return undefined;\n  });\n});","define(\"portal/helpers/math\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.math = math;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function math([operand1, operator, operand2]) {\n    operand1 = parseOperand(operand1);\n    operand2 = parseOperand(operand2);\n    switch (operator) {\n      case '+':\n        return operand1 + operand2;\n      case '-':\n        return operand1 - operand2;\n      case '*':\n        return operand1 * operand2;\n      case '/':\n        return operand1 / operand2;\n      default:\n        throw new Error('Unknown operator: ' + operator);\n    }\n  }\n  function parseOperand(value) {\n    if (isNaN(value) || value === null || value === true) {\n      throw new Error('Expected operand passed to math help to be a number, got ' + value);\n    }\n    if (value !== Infinity) {\n      value = parseFloat(value, 10);\n    }\n    return value;\n  }\n  var _default = _exports.default = _helper.default.helper(math);\n});","define(\"portal/helpers/media\", [\"exports\", \"ember-responsive/helpers/media\"], function (_exports, _media) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _media.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-responsive/helpers/media\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/moment-add\", [\"exports\", \"ember-moment/helpers/moment-add\"], function (_exports, _momentAdd) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _momentAdd.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/moment-add\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/moment-calendar\", [\"exports\", \"ember-moment/helpers/moment-calendar\"], function (_exports, _momentCalendar) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _momentCalendar.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/moment-calendar\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/moment-diff\", [\"exports\", \"ember-moment/helpers/moment-diff\"], function (_exports, _momentDiff) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _momentDiff.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/moment-diff\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/moment-duration\", [\"exports\", \"ember-moment/helpers/moment-duration\"], function (_exports, _momentDuration) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _momentDuration.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/moment-duration\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/moment-format\", [\"exports\", \"ember-moment/helpers/moment-format\"], function (_exports, _momentFormat) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _momentFormat.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/moment-format\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/moment-from-now\", [\"exports\", \"ember-moment/helpers/moment-from-now\"], function (_exports, _momentFromNow) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _momentFromNow.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/moment-from-now\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/moment-from\", [\"exports\", \"ember-moment/helpers/moment-from\"], function (_exports, _momentFrom) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _momentFrom.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/moment-from\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/moment-subtract\", [\"exports\", \"ember-moment/helpers/moment-subtract\"], function (_exports, _momentSubtract) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _momentSubtract.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/moment-subtract\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/moment-to-date\", [\"exports\", \"ember-moment/helpers/moment-to-date\"], function (_exports, _momentToDate) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _momentToDate.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/moment-to-date\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/moment-to-now\", [\"exports\", \"ember-moment/helpers/moment-to-now\"], function (_exports, _momentToNow) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _momentToNow.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/moment-to-now\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/moment-to\", [\"exports\", \"ember-moment/helpers/moment-to\"], function (_exports, _momentTo) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _momentTo.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/moment-to\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/moment\", [\"exports\", \"ember-moment/helpers/moment\"], function (_exports, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _moment.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/moment\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/not-eq\", [\"exports\", \"ember-truth-helpers/helpers/not-eq\"], function (_exports, _notEq) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _notEq.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-truth-helpers/helpers/not-eq\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/not\", [\"exports\", \"ember-truth-helpers/helpers/not\"], function (_exports, _not) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _not.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-truth-helpers/helpers/not\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/now\", [\"exports\", \"ember-moment/helpers/now\"], function (_exports, _now) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _now.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/now\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/number-format\", [\"exports\", \"@ember/service\", \"@ember/component/helper\"], function (_exports, _service, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let NumberFormat = _exports.default = (_class = class NumberFormat extends _helper.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"numberFormat\", _descriptor, this);\n    }\n    compute([number], options) {\n      return this.numberFormat.format(number, options);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"numberFormat\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"portal/helpers/number-to-char\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  class _default extends _helper.default {\n    compute([n]) {\n      const multiplier = Math.ceil(n / 25) || 1;\n      const index = n % 26;\n      const char = String.fromCharCode(index + 'A'.charCodeAt(0));\n      let str = '';\n      for (let i = 0; i < multiplier; i++) str += char;\n      return str;\n    }\n  }\n  _exports.default = _default;\n});","define(\"portal/helpers/object-at\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.objectAt = objectAt;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function objectAt(params /*, hash*/) {\n    const [array, index] = params;\n    if (!Array.isArray(array)) console.warn('object-at must be passed an array as its first argument');\n    if (isNaN(index)) console.warn('object-at must be passed a number as its second argument');\n    return array.objectAt(index);\n  }\n  var _default = _exports.default = _helper.default.helper(objectAt);\n});","define(\"portal/helpers/on-key\", [\"exports\", \"ember-keyboard/helpers/on-key\"], function (_exports, _onKey) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _onKey.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-keyboard/helpers/on-key\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/or\", [\"exports\", \"ember-truth-helpers/helpers/or\"], function (_exports, _or) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _or.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-truth-helpers/helpers/or\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/ordinal-for\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.ordinalFor = ordinalFor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function ordinalFor(input) {\n    const number = Number(input);\n    if (isNaN(number) || Math.abs(number) === Infinity || number < 0) {\n      return null;\n    }\n    const string = String(number);\n    const lastDigit = string.charAt(string.length - 1);\n    if (string.indexOf('.') > -1 || string.indexOf('e') > -1) {\n      return null;\n    } else if (lastDigit === '1' && string !== '11') {\n      return 'st';\n    } else if (lastDigit === '2' && string !== '12') {\n      return 'nd';\n    } else if (lastDigit === '3' && string !== '13') {\n      return 'rd';\n    } else {\n      return 'th';\n    }\n  }\n  var _default = _exports.default = _helper.default.helper(ordinalFor);\n});","define(\"portal/helpers/page-title\", [\"exports\", \"ember-page-title/helpers/page-title\"], function (_exports, _pageTitle) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _pageTitle.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-page-title/helpers/page-title\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/pagination-callback\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = paginationCallback;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  async function paginationCallback(callback) {\n    const fetchPages = async (accumulatedResults = [], page = 1) => {\n      try {\n        const response = await callback(page);\n        if (!response || !response.toArray || !response.meta) {\n          throw new Error('Invalid response structure: Expected { toArray(), meta }');\n        }\n        const updatedResults = [...accumulatedResults, ...response.toArray()];\n        const hasNextPage = response.meta.currentPage < response.meta.totalPages;\n        if (hasNextPage) {\n          return fetchPages(updatedResults, page + 1);\n        }\n        return updatedResults;\n      } catch (error) {\n        throw new Error(`Pagination failed on page ${page}: ${error.message}`);\n      }\n    };\n    return fetchPages();\n  }\n});","define(\"portal/helpers/perform\", [\"exports\", \"ember-concurrency/helpers/perform\"], function (_exports, _perform) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _perform.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/helpers/perform\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/pipe\", [\"exports\", \"ember-composable-helpers/helpers/pipe\"], function (_exports, _pipe) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _pipe.default;\n    }\n  });\n  Object.defineProperty(_exports, \"pipe\", {\n    enumerable: true,\n    get: function () {\n      return _pipe.pipe;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-composable-helpers/helpers/pipe\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/pluralize\", [\"exports\", \"ember-inflector/helpers/pluralize\"], function (_exports, _pluralize) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _pluralize.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-inflector/helpers/pluralize\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/power-calendar-format-date\", [\"exports\", \"ember-power-calendar/helpers/power-calendar-format-date\"], function (_exports, _powerCalendarFormatDate) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _powerCalendarFormatDate.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-power-calendar/helpers/power-calendar-format-date\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/prevent-default\", [\"exports\", \"ember-event-helpers/helpers/prevent-default\"], function (_exports, _preventDefault) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _preventDefault.default;\n    }\n  });\n  Object.defineProperty(_exports, \"preventDefault\", {\n    enumerable: true,\n    get: function () {\n      return _preventDefault.preventDefault;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-event-helpers/helpers/prevent-default\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/profit-type-label\", [\"exports\", \"@ember/component/helper\", \"@ember/service\"], function (_exports, _helper, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  // `{{profit-type-label type}}` -> \"margin\" / \"markup\"\n  // `{{profit-type-label type effective=true}}` -> \"Effective margin\" / ...\n  let _class = _exports.default = (_class2 = class _class2 extends _helper.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n    }\n    compute([profitType], {\n      effective = false\n    } = {}) {\n      if (profitType === 'MARKUP') return effective ? this.intl.t('common.Effective markup') : this.intl.t('common.markup');\n      return effective ? this.intl.t('common.Effective margin') : this.intl.t('common.margin');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/helpers/project-status-label\", [\"exports\", \"@ember/component/helper\", \"@ember/service\"], function (_exports, _helper, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  // Accepts the raw enum ('OPEN') or an already capitalised value ('Open'),\n  // because report cells carry the latter.\n  let _class = _exports.default = (_class2 = class _class2 extends _helper.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n    }\n    compute([status]) {\n      switch (String(status ?? '').toUpperCase()) {\n        case 'OPEN':\n          return this.intl.t('common.Open');\n        case 'HELD':\n          return this.intl.t('common.Held');\n        case 'CLOSED':\n          return this.intl.t('common.Closed');\n        case 'ARCHIVED':\n          return this.intl.t('common.Archived');\n      }\n      return status;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/helpers/range\", [\"exports\", \"ember-composable-helpers/helpers/range\"], function (_exports, _range) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _range.default;\n    }\n  });\n  Object.defineProperty(_exports, \"range\", {\n    enumerable: true,\n    get: function () {\n      return _range.range;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-composable-helpers/helpers/range\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/replace-with\", [\"exports\", \"ember-router-helpers/helpers/replace-with.js\"], function (_exports, _replaceWith) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _replaceWith.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-router-helpers/helpers/replace-with.js\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/root-url\", [\"exports\", \"ember-router-helpers/helpers/root-url.js\"], function (_exports, _rootUrl) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _rootUrl.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-router-helpers/helpers/root-url.js\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/round-number\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.round2dp = round2dp;\n  _exports.round6dp = round6dp;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function round2dp(input) {\n    return Math.round((input + Number.EPSILON) * 100) / 100;\n  }\n  function round6dp(input) {\n    return Math.round((input + Number.EPSILON) * 1000000) / 1000000;\n  }\n});","define(\"portal/helpers/route-params\", [\"exports\", \"ember-router-helpers/helpers/route-params.js\"], function (_exports, _routeParams) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _routeParams.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-router-helpers/helpers/route-params.js\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/singularize\", [\"exports\", \"ember-inflector/helpers/singularize\"], function (_exports, _singularize) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _singularize.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-inflector/helpers/singularize\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/sort-accounts\", [\"exports\", \"@ember/object\"], function (_exports, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = sortAccounts;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function sortAccounts(accounts = [], sortKey = 'sortIndex', categoryKey = 'category') {\n    const profitAndLoss = [];\n    const balanceSheet = [];\n    const other = [];\n    accounts.forEach(target => {\n      const category = (0, _object.get)(target, categoryKey);\n      switch (category) {\n        case 'profit-and-loss':\n          profitAndLoss.push(target);\n          break;\n        case 'balance-sheet':\n          balanceSheet.push(target);\n          break;\n        default:\n          other.push(target);\n      }\n    });\n    return [...profitAndLoss.sortBy(sortKey), ...balanceSheet.sortBy(sortKey), ...other.sortBy(sortKey)];\n  }\n});","define(\"portal/helpers/stop-propagation\", [\"exports\", \"ember-event-helpers/helpers/stop-propagation\"], function (_exports, _stopPropagation) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _stopPropagation.default;\n    }\n  });\n  Object.defineProperty(_exports, \"stopPropagation\", {\n    enumerable: true,\n    get: function () {\n      return _stopPropagation.stopPropagation;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-event-helpers/helpers/stop-propagation\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/t\", [\"exports\", \"ember-intl/helpers/t\"], function (_exports, _t) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _t.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-intl/helpers/t\"eaimeta@70e063a35619d71f\n  /**\n   * Copyright 2015, Yahoo! Inc.\n   * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n   */\n});","define(\"portal/helpers/task\", [\"exports\", \"ember-concurrency/helpers/task\"], function (_exports, _task) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _task.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/helpers/task\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/timesheet-status-label\", [\"exports\", \"@ember/component/helper\", \"@ember/service\"], function (_exports, _helper, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  // A grouping has no status record until someone sets one; until then it\n  // reads as pending.\n  let _class = _exports.default = (_class2 = class _class2 extends _helper.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n    }\n    compute([status]) {\n      return status === 'accepted' ? this.intl.t('common.Accepted') : this.intl.t('common.Pending');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/helpers/titleize\", [\"exports\", \"ember-cli-string-helpers/helpers/titleize\"], function (_exports, _titleize) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _titleize.default;\n    }\n  });\n  Object.defineProperty(_exports, \"titleize\", {\n    enumerable: true,\n    get: function () {\n      return _titleize.titleize;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-string-helpers/helpers/titleize\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/toggle-action\", [\"exports\", \"ember-composable-helpers/helpers/toggle-action\"], function (_exports, _toggleAction) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _toggleAction.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-composable-helpers/helpers/toggle-action\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/toggle\", [\"exports\", \"ember-composable-helpers/helpers/toggle\"], function (_exports, _toggle) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _toggle.default;\n    }\n  });\n  Object.defineProperty(_exports, \"toggle\", {\n    enumerable: true,\n    get: function () {\n      return _toggle.toggle;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-composable-helpers/helpers/toggle\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/transition-to\", [\"exports\", \"ember-router-helpers/helpers/transition-to.js\"], function (_exports, _transitionTo) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _transitionTo.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-router-helpers/helpers/transition-to.js\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/trim\", [\"exports\", \"ember-cli-string-helpers/helpers/trim\"], function (_exports, _trim) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _trim.default;\n    }\n  });\n  Object.defineProperty(_exports, \"trim\", {\n    enumerable: true,\n    get: function () {\n      return _trim.trim;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-string-helpers/helpers/trim\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/truncate\", [\"exports\", \"ember-cli-string-helpers/helpers/truncate\"], function (_exports, _truncate) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _truncate.default;\n    }\n  });\n  Object.defineProperty(_exports, \"truncate\", {\n    enumerable: true,\n    get: function () {\n      return _truncate.truncate;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-string-helpers/helpers/truncate\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/underscore\", [\"exports\", \"ember-cli-string-helpers/helpers/underscore\"], function (_exports, _underscore) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _underscore.default;\n    }\n  });\n  Object.defineProperty(_exports, \"underscore\", {\n    enumerable: true,\n    get: function () {\n      return _underscore.underscore;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-string-helpers/helpers/underscore\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/unix\", [\"exports\", \"ember-moment/helpers/unix\"], function (_exports, _unix) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _unix.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/unix\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/uppercase\", [\"exports\", \"ember-cli-string-helpers/helpers/uppercase\"], function (_exports, _uppercase) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _uppercase.default;\n    }\n  });\n  Object.defineProperty(_exports, \"uppercase\", {\n    enumerable: true,\n    get: function () {\n      return _uppercase.uppercase;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-string-helpers/helpers/uppercase\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/url-for\", [\"exports\", \"ember-router-helpers/helpers/url-for.js\"], function (_exports, _urlFor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _urlFor.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-router-helpers/helpers/url-for.js\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/utc\", [\"exports\", \"ember-moment/helpers/utc\"], function (_exports, _utc) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _utc.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/utc\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/w\", [\"exports\", \"ember-cli-string-helpers/helpers/w\"], function (_exports, _w) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _w.default;\n    }\n  });\n  Object.defineProperty(_exports, \"w\", {\n    enumerable: true,\n    get: function () {\n      return _w.w;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-string-helpers/helpers/w\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/xor\", [\"exports\", \"ember-truth-helpers/helpers/xor\"], function (_exports, _xor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _xor.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-truth-helpers/helpers/xor\"eaimeta@70e063a35619d71f\n});","define(\"portal/initializers/am5\", [\"exports\", \"portal/config/environment\", \"@amcharts/amcharts5\"], function (_exports, _environment, am5) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/config/environment\",0,\"@amcharts/amcharts5\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = {\n    name: 'am5',\n    initialize: () => {\n      am5.addLicense(_environment.default.am5LicenseKey);\n    }\n  };\n});","define(\"portal/initializers/app-version\", [\"exports\", \"ember-cli-app-version/initializer-factory\", \"portal/config/environment\"], function (_exports, _initializerFactory, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-app-version/initializer-factory\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  let name, version;\n  if (_environment.default.APP) {\n    name = _environment.default.APP.name;\n    version = _environment.default.APP.version;\n  }\n  var _default = _exports.default = {\n    name: 'App Version',\n    initialize: (0, _initializerFactory.default)(name, version)\n  };\n});","define(\"portal/initializers/deprecation-handler\", [\"exports\", \"portal/utils/deprecation-filter\"], function (_exports, _deprecationFilter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.initialize = initialize;\n  0; //eaimeta@70e063a35619d71f0,\"portal/utils/deprecation-filter\"eaimeta@70e063a35619d71f\n  // The filter lives in a util rather than here because the test suite installs\n  // it too, and importing an `initializers/` module from the tests tree resolves\n  // a second copy of it — leaving the one ember-load-initializers pulls from the\n  // AMD registry without its default export, which fails the whole tests bundle.\n  function initialize() {\n    (0, _deprecationFilter.installDeprecationFilter)();\n  }\n  var _default = _exports.default = {\n    initialize\n  };\n});","define(\"portal/initializers/ember-cli-mirage\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = {\n    name: 'ember-cli-mirage',\n    initialize() {}\n  };\n});","define(\"portal/initializers/ember-data-data-adapter\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.initialize = initialize;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function initialize() {\n    // disables automatic Ember Inspector data adapter registration\n  }\n  var _default = _exports.default = {\n    initialize,\n    name: 'ember-data-data-adapter'\n  };\n});","define(\"portal/initializers/ember-data\", [\"exports\", \"@ember-data/request-utils/deprecation-support\"], function (_exports, _deprecationSupport) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/request-utils/deprecation-support\"eaimeta@70e063a35619d71f\n  /*\n    This code initializes EmberData in an Ember application.\n  */\n  var _default = _exports.default = {\n    name: 'ember-data',\n    initialize(application) {\n      application.registerOptionsForType('serializer', {\n        singleton: false\n      });\n      application.registerOptionsForType('adapter', {\n        singleton: false\n      });\n    }\n  };\n});","define(\"portal/initializers/ember-responsive-breakpoints\", [\"exports\", \"ember-responsive/initializers/responsive\"], function (_exports, _responsive) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-responsive/initializers/responsive\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _responsive.default;\n});","define(\"portal/initializers/ember-simple-auth\", [\"exports\", \"ember-simple-auth/initializers/ember-simple-auth\"], function (_exports, _emberSimpleAuth) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _emberSimpleAuth.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-simple-auth/initializers/ember-simple-auth\"eaimeta@70e063a35619d71f\n});","define(\"portal/initializers/engines\", [\"exports\", \"ember-engines/initializers/engines\"], function (_exports, _engines) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _engines.default;\n    }\n  });\n  Object.defineProperty(_exports, \"initialize\", {\n    enumerable: true,\n    get: function () {\n      return _engines.initialize;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-engines/initializers/engines\"eaimeta@70e063a35619d71f\n});","define(\"portal/initializers/init-domain\", [\"exports\", \"portal/config/environment\", \"portal/utils/favicon-title\", \"portal/utils/platform\"], function (_exports, _environment, _faviconTitle, _platform) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/config/environment\",0,\"portal/utils/favicon-title\",0,\"portal/utils/platform\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = {\n    name: 'init-domain',\n    initialize: () => {\n      const {\n        name,\n        favicon,\n        apiUrl,\n        authenticationUrl\n      } = (0, _platform.getDefaultPlatform)();\n      if (name) (0, _faviconTitle.changeTitle)(name);\n      if (favicon) (0, _faviconTitle.changeFavicon)(favicon);\n      if (authenticationUrl) _environment.default.oidc.authenticationURL = authenticationUrl;\n      if (apiUrl) _environment.default.urls.api = apiUrl;\n    }\n  };\n});","define(\"portal/initializers/mobile-drag-drop\", [\"exports\", \"mobile-drag-drop\", \"mobile-drag-drop/scroll-behaviour\"], function (_exports, _mobileDragDrop, _scrollBehaviour) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"mobile-drag-drop\",0,\"mobile-drag-drop/scroll-behaviour\"eaimeta@70e063a35619d71f\n  // sets up the polyfill for the html drag drop api\n  var _default = _exports.default = {\n    name: 'init-mobile-drag-drop',\n    initialize: () => {\n      (0, _mobileDragDrop.polyfill)({\n        dragImageTranslateOverride: _scrollBehaviour.scrollBehaviourDragImageTranslateOverride\n      });\n    }\n  };\n});","define(\"portal/initializers/new-relic\", [\"exports\", \"portal/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = {\n    name: 'new-relic',\n    initialize: () => {\n      if (document) {\n        const element = document.createElement('script');\n        element.setAttribute('type', 'text/javascript');\n        if (_environment.default.environment === 'production') {\n          element.setAttribute('src', 'https://s3.ap-southeast-2.amazonaws.com/public.assets.buildaprice.co.nz/new-relic/newrelic.prod.min.js');\n          document.body.appendChild(element);\n        }\n        if (_environment.default.environment === 'staging') {\n          element.setAttribute('src', 'https://s3.ap-southeast-2.amazonaws.com/public.assets.buildaprice.co.nz/new-relic/newrelic.staging.min.js');\n          document.body.appendChild(element);\n        }\n      }\n    }\n  };\n});","define(\"portal/initializers/responsive\", [\"exports\", \"ember-responsive/initializers/responsive\"], function (_exports, _responsive) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-responsive/initializers/responsive\"eaimeta@70e063a35619d71f\n  /**\n   * Ember responsive initializer\n   *\n   * Supports auto injecting media service app-wide.\n   *\n   * Generated by the ember-responsive addon. Customize initialize to change\n   * injection.\n   */\n  var _default = _exports.default = {\n    name: 'responsive',\n    initialize: _responsive.initialize\n  };\n});","define(\"portal/initializers/restore-array-extensions\", [\"exports\", \"@ember/array\"], function (_exports, _array) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.initialize = initialize;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/array\"eaimeta@70e063a35619d71f\n  function initialize() {\n    // Keep legacy array APIs available while Ember's built-in prototype extension\n    if (typeof Array.prototype.pushObject !== 'function') {\n      _array.NativeArray.apply(Array.prototype, true);\n    }\n  }\n  var _default = _exports.default = {\n    initialize\n  };\n});","define(\"portal/initializers/update-check\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = {\n    name: 'update-check',\n    initialize: () => {\n      if (window.Worker) {\n        const myWorker = new Worker('/assets/update-check-842bcfc2e55bff3468d9b7cc2cb618ef.js');\n        myWorker.onmessage = e => {\n          if (e.data === 'update-available') {\n            document.body.insertAdjacentHTML('afterbegin', '<div id=\"appUpdateNotification\" ' + 'class=\"btn btn-info text-white w-100 rounded-0\" ' + 'onclick=\"window.location.reload(true);\">' + 'Application update available. Save your work and click to update.</div>');\n            myWorker.terminate();\n          }\n        };\n      }\n    }\n  };\n});","define(\"portal/initializers/urls\", [\"exports\", \"portal/config/environment\", \"portal/utils/path-resolver\"], function (_exports, _environment, _pathResolver) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.initialize = initialize;\n  0; //eaimeta@70e063a35619d71f0,\"portal/config/environment\",0,\"portal/utils/path-resolver\"eaimeta@70e063a35619d71f\n  function initialize() {\n    _environment.default.urls.app = (0, _pathResolver.default)(_environment.default.urls.app);\n    _environment.default.urls.api = (0, _pathResolver.default)(_environment.default.urls.api);\n  }\n  var _default = _exports.default = {\n    name: 'urls',\n    initialize\n  };\n});","define(\"portal/instance-initializers/add-modals-container\", [\"exports\", \"ember-modal-dialog/instance-initializers/add-modals-container\"], function (_exports, _addModalsContainer) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-modal-dialog/instance-initializers/add-modals-container\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = {\n    name: 'add-modals-container',\n    initialize: _addModalsContainer.default\n  };\n});","define(\"portal/metrics-adapters/base\", [\"exports\", \"ember-metrics/metrics-adapters/base\"], function (_exports, _base) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _base.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-metrics/metrics-adapters/base\"eaimeta@70e063a35619d71f\n});","define(\"portal/metrics-adapters/google-analytics-four\", [\"exports\", \"ember-metrics/metrics-adapters/google-analytics-four\"], function (_exports, _googleAnalyticsFour) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _googleAnalyticsFour.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-metrics/metrics-adapters/google-analytics-four\"eaimeta@70e063a35619d71f\n});","define(\"portal/mixins/edit-record\", [\"exports\", \"@ember/object/mixin\", \"@ember/service\", \"@ember/object\"], function (_exports, _mixin, _service, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object/mixin\",0,\"@ember/service\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _mixin.default.create({\n    isSaving: false,\n    isDeleting: false,\n    errors: [],\n    notifications: (0, _service.inject)(),\n    router: (0, _service.inject)(),\n    messages: {\n      save: {\n        success: 'The record was saved successfully.',\n        error: 'The record failed to save.'\n      },\n      delete: {\n        success: 'The record was deleted successfully.',\n        error: 'The record was not deleted.'\n      }\n    },\n    actions: {\n      save: function () {\n        var record = (0, _object.get)(this, 'record');\n        var errors = (0, _object.get)(this, 'errors');\n\n        // Clear existing errors\n        errors.forEach(error => {\n          (0, _object.get)(this, 'notifications').clear(error);\n        });\n\n        // Tell the user\n        (0, _object.set)(this, 'isSaving', true);\n        record.save().then(() => {\n          // Tell the user\n          (0, _object.set)(this, 'isSaving', false);\n          (0, _object.get)(this, 'notifications').success({\n            message: (0, _object.get)(this, 'messages.save.success'),\n            autoClear: true\n          });\n\n          // Leave\n          var route = (0, _object.get)(this, 'transitionToOnSave');\n          if (route) {\n            this.router.transitionTo(route);\n          }\n        }, () => {\n          // Tell the user\n          (0, _object.set)(this, 'isSaving', false);\n          var error = (0, _object.get)(this, 'notifications').error((0, _object.get)(this, 'messages.save.error'));\n\n          // Save the error to be cleared later\n          errors.pushObject(error);\n        });\n      },\n      delete: function () {\n        var record = (0, _object.get)(this, 'record');\n        var errors = (0, _object.get)(this, 'errors');\n\n        // Clear existing errors\n        errors.forEach(error => {\n          (0, _object.get)(this, 'notifications').clear(error);\n        });\n\n        // Tell the user\n        (0, _object.set)(this, 'isDeleting', true);\n        record.destroyRecord().then(() => {\n          // Tell the user\n          (0, _object.set)(this, 'isDeleting', false);\n          (0, _object.get)(this, 'notifications').success({\n            message: (0, _object.get)(this, 'messages.delete.success'),\n            autoClear: true\n          });\n\n          // Leave\n          var route = (0, _object.get)(this, 'transitionToOnDelete');\n          if (route) {\n            this.router.transitionTo(route);\n          }\n        }, () => {\n          // Tell the user\n          (0, _object.set)(this, 'isDeleting', false);\n          var error = (0, _object.get)(this, 'notifications').error((0, _object.get)(this, 'messages.delete.error'));\n\n          // Save the error to be cleared later\n          errors.pushObject(error);\n        });\n      }\n    }\n  });\n});","define(\"portal/mixins/menu-route\", [\"exports\", \"@ember/object/mixin\", \"@ember/object/evented\", \"@ember/object\", \"@ember/debug\", \"@ember/service\"], function (_exports, _mixin, _evented, _object, _debug, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object/mixin\",0,\"@ember/object/evented\",0,\"@ember/object\",0,\"@ember/debug\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _mixin.default.create({\n    mediaEvents: (0, _service.inject)(),\n    media: (0, _service.inject)(),\n    router: (0, _service.inject)(),\n    /**\n     * A reference to the route to redirect to when the viewport is desktop-sized.\n     * @type {string}\n     * @required\n     */\n    defaultRoute: null,\n    defaultRouteModel: null,\n    transitionArgs: (0, _object.computed)('defaultRoute', 'defaultRouteModel', function () {\n      return [(0, _object.get)(this, 'defaultRoute'), (0, _object.get)(this, 'defaultRouteModel')].filter(i => i != null);\n    }),\n    /**\n     * Check the `defaultOption` has been provided.\n     *\n     * @returns {void}\n     */\n    init() {\n      this._super(...arguments);\n      if (!(0, _object.get)(this, 'defaultRoute')) {\n        (false && (0, _debug.warn)('Menu route mixin expects the defaultRoute field to be set.', false, {\n          id: 'generic-warning'\n        }));\n      }\n    },\n    /**\n     * Handles a user visiting a menu route with a desktop-sized viewport. In this case we\n     * simply want to redirect them to the default option and allow them to choose an\n     * alternative from a sidebar.\n     *\n     * @returns {void}\n     */\n    redirect() {\n      (0, _object.get)(this, 'router').transitionTo(...(0, _object.get)(this, 'transitionArgs'));\n    },\n    /**\n     * Handles the sceanario where a user visits a menu route with a mobile- or\n     * tablet-sized viewport and then enlarges it.\n     */\n    registerViewportModeChangeListener: (0, _evented.on)('activate', function () {\n      (0, _object.get)(this, 'mediaEvents').on('mediaMatchesDidChange', this, this.handleViewportModeChange);\n    }),\n    deregisterViewModeChangeListener: (0, _evented.on)('deactivate', function () {\n      (0, _object.get)(this, 'mediaEvents').off('mediaMatchesDidChange', this, this.handleViewportModeChange);\n    }),\n    handleViewportModeChange() {\n      if ((0, _object.get)(this, 'media.isDesktop')) {\n        (0, _object.get)(this, 'router').replaceWith(...(0, _object.get)(this, 'transitionArgs'));\n      }\n    }\n  });\n});","define(\"portal/mixins/scroll-route\", [\"exports\", \"@ember/runloop\", \"@ember/object/mixin\", \"@ember/object\", \"jquery\"], function (_exports, _runloop, _mixin, _object, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/runloop\",0,\"@ember/object/mixin\",0,\"@ember/object\",0,\"jquery\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _mixin.default.create({\n    actions: {\n      didTransition() {\n        this._super(...arguments);\n\n        // Scroll the page the next time it finishes rendering.\n        (0, _runloop.scheduleOnce)('afterRender', this, () => {\n          const scrollHeight = (0, _object.get)(this, 'scrollHeight') || 0;\n          (0, _jquery.default)(window).scrollTop(scrollHeight);\n        });\n      },\n      willTransition() {\n        this._super(...arguments);\n\n        // Save the scroll height for when you return to the same route.\n        (0, _object.set)(this, 'scrollHeight', (0, _jquery.default)(window).scrollTop());\n      }\n    }\n  });\n});","define(\"portal/models/account-map\", [\"exports\", \"@ember-data/model\", \"portal/utils/calc-map-balance\", \"@ember/object\"], function (_exports, _model, _calcMapBalance, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"portal/utils/calc-map-balance\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.belongsTo)('account', {\n    async: true,\n    inverse: null\n  }), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('string'), _dec5 = (0, _model.attr)('string'), _dec6 = (0, _model.attr)('string'), _dec7 = (0, _model.attr)('boolean'), _dec8 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec9 = (0, _model.attr)('date'), _dec0 = (0, _model.attr)('date'), _dec1 = (0, _object.computed)('sourceBalance', 'inverted', 'step'), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"account\", _descriptor, this);\n      _initializerDefineProperty(this, \"system\", _descriptor2, this);\n      _initializerDefineProperty(this, \"systemId\", _descriptor3, this);\n      _initializerDefineProperty(this, \"externalId\", _descriptor4, this);\n      _initializerDefineProperty(this, \"name\", _descriptor5, this);\n      _initializerDefineProperty(this, \"code\", _descriptor6, this);\n      _initializerDefineProperty(this, \"inverted\", _descriptor7, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor8, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor9, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor0, this);\n    }\n    /*\n     * This is to support the importer pages. To better understand, look at:\n     * app/controllers/entity/financials/import/data.js\n     * app/utils/balance-calculator.js\n     * app/utils/calc-map-balance.js\n     *\n     * This computed property was being set from addValue() within balance-calculator.js but had\n     * issues when trying to set a second time.\n     */\n    get value() {\n      const source = this.sourceBalance;\n      return (0, _calcMapBalance.default)(this, source);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"account\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"system\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"systemId\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"externalId\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"name\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"code\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"inverted\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"value\", [_dec1], Object.getOwnPropertyDescriptor(_class2.prototype, \"value\"), _class2.prototype), _class2);\n});","define(\"portal/models/account\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('number'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('string'), _dec5 = (0, _model.attr)('string'), _dec6 = (0, _model.attr)('string'), _dec7 = (0, _model.attr)('boolean'), _dec8 = (0, _model.attr)('string'), _dec9 = (0, _model.attr)('string'), _dec0 = (0, _model.attr)('boolean'), _dec1 = (0, _model.attr)('number'), _dec10 = (0, _model.belongsTo)('account', {\n    async: true,\n    inverse: null\n  }), _dec11 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec12 = (0, _model.attr)('date'), _dec13 = (0, _model.attr)('date'), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"name\", _descriptor, this);\n      _initializerDefineProperty(this, \"code\", _descriptor2, this);\n      _initializerDefineProperty(this, \"label\", _descriptor3, this);\n      _initializerDefineProperty(this, \"description\", _descriptor4, this);\n      _initializerDefineProperty(this, \"category\", _descriptor5, this);\n      _initializerDefineProperty(this, \"debitCredit\", _descriptor6, this);\n      _initializerDefineProperty(this, \"periodic\", _descriptor7, this);\n      _initializerDefineProperty(this, \"format\", _descriptor8, this);\n      _initializerDefineProperty(this, \"status\", _descriptor9, this);\n      _initializerDefineProperty(this, \"isHeading\", _descriptor0, this);\n      _initializerDefineProperty(this, \"sortIndex\", _descriptor1, this);\n      _initializerDefineProperty(this, \"parent\", _descriptor10, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor11, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor12, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor13, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"name\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"code\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"label\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"description\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"category\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"debitCredit\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"periodic\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"format\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"status\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"isHeading\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"sortIndex\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"parent\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/attachment-attribute\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('boolean'), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"attribute\", _descriptor, this);\n      _initializerDefineProperty(this, \"description\", _descriptor2, this);\n      _initializerDefineProperty(this, \"deprecated\", _descriptor3, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"attribute\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"description\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"deprecated\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/attachment-project-attribute\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec2 = (0, _model.belongsTo)('attachment', {\n    async: true,\n    inverse: null\n  }), _dec3 = (0, _model.belongsTo)('project', {\n    async: true,\n    inverse: null\n  }), _dec4 = (0, _model.belongsTo)('attachment-attribute', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"entity\", _descriptor, this);\n      _initializerDefineProperty(this, \"attachment\", _descriptor2, this);\n      _initializerDefineProperty(this, \"project\", _descriptor3, this);\n      _initializerDefineProperty(this, \"attribute\", _descriptor4, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"attachment\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"project\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"attribute\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/attachment\", [\"exports\", \"@ember-data/model\", \"@ember/service\", \"portal/utils/sanitize-filename\", \"portal/models/base-model\", \"@glimmer/tracking\"], function (_exports, _model, _service, _sanitizeFilename, _baseModel, _tracking) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.shortcutsToMime = _exports.mimeToHumanType = _exports.isMimeSame = _exports.humanTypes = _exports.extensionToMime = _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _dec10, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"@ember/service\",0,\"portal/utils/sanitize-filename\",0,\"portal/models/base-model\",0,\"@glimmer/tracking\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  // A collection of types we're likely to encounter\n  // http://www.iana.org/assignments/media-types/media-types.xhtml\n  const extensionToMime = _exports.extensionToMime = {\n    aac: 'audio/aac',\n    abw: 'application/x-abiword',\n    avi: 'video/x-msvideo',\n    csv: 'text/csv',\n    doc: 'application/msword',\n    docx: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',\n    gif: 'image/gif',\n    jpeg: 'image/jpeg',\n    jpg: 'image/jpeg',\n    mp3: 'audio/mpeg',\n    mpeg: 'video/mpeg',\n    odp: 'application/vnd.oasis.opendocument.presentation',\n    ods: 'application/vnd.oasis.opendocument.spreadsheet',\n    odt: 'application/vnd.oasis.opendocument.text',\n    png: 'image/png',\n    pdf: 'application/pdf',\n    ppt: 'application/vnd.ms-powerpoint',\n    pptx: 'application/vnd.openxmlformats-officedocument.presentationml.presentation',\n    rtf: 'application/rtf',\n    tif: 'image/tiff',\n    tiff: 'image/tiff',\n    txt: 'text/plain',\n    weba: 'audio/webm',\n    webm: 'video/webm',\n    webp: 'image/webp',\n    xls: 'application/vnd.ms-excel',\n    xlsx: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',\n    xml: 'application/xml',\n    gz: 'application/gzip',\n    rar: 'application/vnd.rar',\n    zip: 'application/zip',\n    '7z': 'application/x-7z-compressed'\n  };\n  const shortcutsToMime = _exports.shortcutsToMime = {\n    audio: ['audio/*'],\n    image: ['image/*'],\n    video: ['video/*'],\n    text: ['text/*'],\n    document: [extensionToMime.csv, extensionToMime.doc, extensionToMime.docx, extensionToMime.odp, extensionToMime.ods, extensionToMime.odt, extensionToMime.pdf, extensionToMime.ppt, extensionToMime.pptx, extensionToMime.rtf, extensionToMime.xls, extensionToMime.xlsx, extensionToMime.xml],\n    archive: [extensionToMime.gz, extensionToMime.rar, extensionToMime.zip, extensionToMime['7z']]\n  };\n  const humanTypes = _exports.humanTypes = {\n    audio: 'Audio',\n    document: 'Document',\n    presentation: 'Presentation',\n    spreadsheet: 'Spreadsheet',\n    image: 'Image',\n    video: 'Video',\n    archive: 'Archive'\n  };\n  const mimeToHumanType = _exports.mimeToHumanType = {\n    'audio/aac': humanTypes.audio,\n    'application/x-abiword': humanTypes.document,\n    'video/x-msvideo': humanTypes.video,\n    'text/csv': humanTypes.spreadsheet,\n    'application/msword': humanTypes.document,\n    'application/vnd.openxmlformats-officedocument.wordprocessingml.document': humanTypes.document,\n    'image/gif': humanTypes.image,\n    'image/jpeg': humanTypes.image,\n    'audio/mpeg': humanTypes.audio,\n    'video/mpeg': humanTypes.video,\n    'application/vnd.oasis.opendocument.presentation': humanTypes.presentation,\n    'application/vnd.oasis.opendocument.spreadsheet': humanTypes.spreadsheet,\n    'application/vnd.oasis.opendocument.text': humanTypes.document,\n    'image/png': humanTypes.image,\n    'application/pdf': humanTypes.document,\n    'application/vnd.ms-powerpoint': humanTypes.presentation,\n    'application/vnd.openxmlformats-officedocument.presentationml.presentation': humanTypes.presentation,\n    'application/rtf': humanTypes.document,\n    'image/tiff': humanTypes.image,\n    'text/plain': humanTypes.document,\n    'audio/webm': humanTypes.audio,\n    'video/webm': humanTypes.video,\n    'image/webp': humanTypes.image,\n    'application/vnd.ms-excel': humanTypes.spreadsheet,\n    'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet': humanTypes.spreadsheet,\n    'application/xml': humanTypes.document,\n    'application/gzip': humanTypes.archive,\n    'application/vnd.rar': humanTypes.archive,\n    'application/zip': humanTypes.archive,\n    'application/x-7z-compressed': humanTypes.archive\n  };\n  const isMimeSame = (testMime, checkMime) => {\n    const regex = new RegExp(`^${testMime.replace('.', '\\\\.').replace('*', '.*').replace('/', '\\\\/')}$`);\n    return regex.test(checkMime);\n  };\n  _exports.isMimeSame = isMimeSame;\n  const toBase64 = file => new Promise((resolve, reject) => {\n    const reader = new FileReader();\n\n    // It so happens that Data URLs are base64 encoded.\n    // https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsDataURL\n    reader.readAsDataURL(file);\n    reader.onload = () => {\n      // trim the data:something/something;base64,\n      const base64 = reader.result.split(',').pop();\n      resolve(base64);\n    };\n    reader.onerror = error => reject(error);\n  });\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('string'), _dec5 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec6 = (0, _model.attr)('string'), _dec7 = (0, _model.attr)('date'), _dec8 = (0, _model.attr)('date'), _dec9 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: 'allEntityAttachments'\n  }), _dec0 = (0, _model.hasMany)('link-attachment-to-project', {\n    async: true,\n    inverse: null\n  }), _dec1 = (0, _model.hasMany)('link-attachment-to-task', {\n    async: true,\n    inverse: null\n  }), _dec10 = (0, _model.hasMany)('link-attachment-to-entity', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _baseModel.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"session\", _descriptor, this);\n      // send this attribute via adapterOptions.meta\n      _initializerDefineProperty(this, \"data\", _descriptor2, this);\n      // base64\n      _initializerDefineProperty(this, \"filename\", _descriptor3, this);\n      _initializerDefineProperty(this, \"extension\", _descriptor4, this);\n      _initializerDefineProperty(this, \"fileType\", _descriptor5, this);\n      _initializerDefineProperty(this, \"hash\", _descriptor6, this);\n      _initializerDefineProperty(this, \"size\", _descriptor7, this);\n      // bytes\n      _initializerDefineProperty(this, \"description\", _descriptor8, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor9, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor0, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor1, this);\n      _initializerDefineProperty(this, \"projects\", _descriptor10, this);\n      _initializerDefineProperty(this, \"tasks\", _descriptor11, this);\n      _initializerDefineProperty(this, \"entities\", _descriptor12, this);\n    }\n    static async fromFileInput(file, store, entity) {\n      // we can not trust the file names coming from the system are valid\n      const filename = (0, _sanitizeFilename.default)(file.name);\n      const extension = filename.split('.').pop();\n      const fileType = file.type;\n      const data = await toBase64(file);\n      return store.createRecord('attachment', {\n        filename,\n        extension,\n        fileType,\n        data,\n        entity\n      });\n    }\n    get href() {\n      return this._meta?.href;\n    }\n    get humanType() {\n      const humanType = mimeToHumanType[this.fileType] || 'File';\n      return humanType;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"data\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"filename\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"extension\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"fileType\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"hash\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"size\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"description\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"projects\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"tasks\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"entities\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/base-attachment-model\", [\"exports\", \"portal/models/base-model\", \"portal/utils/sanitize-filename\"], function (_exports, _baseModel, _sanitizeFilename) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.shortcutsToMime = _exports.mimeToHumanType = _exports.isMimeSame = _exports.humanTypes = _exports.extensionToMime = _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/models/base-model\",0,\"portal/utils/sanitize-filename\"eaimeta@70e063a35619d71f\n  // A collection of types we're likely to encounter\n  // http://www.iana.org/assignments/media-types/media-types.xhtml\n  const extensionToMime = _exports.extensionToMime = {\n    aac: 'audio/aac',\n    abw: 'application/x-abiword',\n    avi: 'video/x-msvideo',\n    csv: 'text/csv',\n    doc: 'application/msword',\n    docx: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',\n    gif: 'image/gif',\n    jpeg: 'image/jpeg',\n    jpg: 'image/jpeg',\n    mp3: 'audio/mpeg',\n    mpeg: 'video/mpeg',\n    odp: 'application/vnd.oasis.opendocument.presentation',\n    ods: 'application/vnd.oasis.opendocument.spreadsheet',\n    odt: 'application/vnd.oasis.opendocument.text',\n    png: 'image/png',\n    pdf: 'application/pdf',\n    ppt: 'application/vnd.ms-powerpoint',\n    pptx: 'application/vnd.openxmlformats-officedocument.presentationml.presentation',\n    rtf: 'application/rtf',\n    tif: 'image/tiff',\n    tiff: 'image/tiff',\n    txt: 'text/plain',\n    weba: 'audio/webm',\n    webm: 'video/webm',\n    webp: 'image/webp',\n    xls: 'application/vnd.ms-excel',\n    xlsx: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',\n    xml: 'application/xml',\n    gz: 'application/gzip',\n    rar: 'application/vnd.rar',\n    zip: 'application/zip',\n    '7z': 'application/x-7z-compressed'\n  };\n  const shortcutsToMime = _exports.shortcutsToMime = {\n    audio: ['audio/*'],\n    image: ['image/*'],\n    video: ['video/*'],\n    text: ['text/*'],\n    document: [extensionToMime.csv, extensionToMime.doc, extensionToMime.docx, extensionToMime.odp, extensionToMime.ods, extensionToMime.odt, extensionToMime.pdf, extensionToMime.ppt, extensionToMime.pptx, extensionToMime.rtf, extensionToMime.xls, extensionToMime.xlsx, extensionToMime.xml],\n    archive: [extensionToMime.gz, extensionToMime.rar, extensionToMime.zip, extensionToMime['7z']]\n  };\n  const humanTypes = _exports.humanTypes = {\n    audio: 'Audio',\n    document: 'Document',\n    presentation: 'Presentation',\n    spreadsheet: 'Spreadsheet',\n    image: 'Image',\n    video: 'Video',\n    archive: 'Archive'\n  };\n  const mimeToHumanType = _exports.mimeToHumanType = {\n    'audio/aac': humanTypes.audio,\n    'application/x-abiword': humanTypes.document,\n    'video/x-msvideo': humanTypes.video,\n    'text/csv': humanTypes.spreadsheet,\n    'application/msword': humanTypes.document,\n    'application/vnd.openxmlformats-officedocument.wordprocessingml.document': humanTypes.document,\n    'image/gif': humanTypes.image,\n    'image/jpeg': humanTypes.image,\n    'audio/mpeg': humanTypes.audio,\n    'video/mpeg': humanTypes.video,\n    'application/vnd.oasis.opendocument.presentation': humanTypes.presentation,\n    'application/vnd.oasis.opendocument.spreadsheet': humanTypes.spreadsheet,\n    'application/vnd.oasis.opendocument.text': humanTypes.document,\n    'image/png': humanTypes.image,\n    'application/pdf': humanTypes.document,\n    'application/vnd.ms-powerpoint': humanTypes.presentation,\n    'application/vnd.openxmlformats-officedocument.presentationml.presentation': humanTypes.presentation,\n    'application/rtf': humanTypes.document,\n    'image/tiff': humanTypes.image,\n    'text/plain': humanTypes.document,\n    'audio/webm': humanTypes.audio,\n    'video/webm': humanTypes.video,\n    'image/webp': humanTypes.image,\n    'application/vnd.ms-excel': humanTypes.spreadsheet,\n    'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet': humanTypes.spreadsheet,\n    'application/xml': humanTypes.document,\n    'application/gzip': humanTypes.archive,\n    'application/vnd.rar': humanTypes.archive,\n    'application/zip': humanTypes.archive,\n    'application/x-7z-compressed': humanTypes.archive\n  };\n  const isMimeSame = (testMime, checkMime) => {\n    const regex = new RegExp(`^${testMime.replace('.', '\\\\.').replace('*', '.*').replace('/', '\\\\/')}$`);\n    return regex.test(checkMime);\n  };\n  _exports.isMimeSame = isMimeSame;\n  const toBase64 = file => new Promise((resolve, reject) => {\n    const reader = new FileReader();\n\n    // It so happens that Data URLs are base64 encoded.\n    // https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsDataURL\n    reader.readAsDataURL(file);\n    reader.onload = () => {\n      // trim the data:something/something;base64,\n      const base64 = reader.result.split(',').pop();\n      resolve(base64);\n    };\n    reader.onerror = error => reject(error);\n  });\n  class BaseAttachmentsModel extends _baseModel.default {\n    get data() {\n      return this._data;\n    }\n    set data(value) {\n      this._data = value;\n    }\n    get filename() {\n      return this._meta?.filename || this._filename;\n    }\n    set filename(value) {\n      this._filename = value;\n    }\n    get extension() {\n      return this._meta?.extension || this._extension;\n    }\n    set extension(value) {\n      this._extension = value;\n    }\n    get href() {\n      if (this._meta?.href) return this._meta.href;\n      if (!this.data || !this.fileType) return undefined;\n      return `data:${this.fileType};base64,${this.data}`;\n    }\n    get fileType() {\n      return this._meta?.fileType || this._fileType;\n    }\n    set fileType(value) {\n      this._fileType = value;\n    }\n    get size() {\n      return this._meta?.size || this._size;\n    }\n    set size(value) {\n      this._size = value;\n    }\n    get previewHref() {\n      if (!this.href) return undefined;\n      if (this.href.includes('data')) return this.href;\n      const separator = this.href.includes('?') ? '&' : '?';\n      return `${this.href}${separator}download=false#navpanes=0&view=FitH`;\n    }\n    get attachmentInfo() {\n      return {\n        fileType: this.fileType,\n        filename: this.filename,\n        href: this.href,\n        id: this.id,\n        size: this.size,\n        previewHref: this.previewHref\n      };\n    }\n    async save(options = {}) {\n      const {\n        meta,\n        ...adapterOptions\n      } = options.adapterOptions || {};\n      if (this.isNew) {\n        adapterOptions.meta = {\n          data: this.data,\n          filename: this.filename,\n          fileType: this.fileType,\n          extension: this.extension,\n          ...meta\n        };\n      }\n      return super.save({\n        ...options,\n        adapterOptions\n      });\n    }\n    static async fromFileInput(file, store, entity) {\n      // we can not trust the file names coming from the system are valid\n      const filename = (0, _sanitizeFilename.default)(file.name);\n      const extension = filename.split('.').pop();\n      const fileType = file.type;\n      const size = file.size;\n      const data = await toBase64(file);\n      return store.createRecord('attachment', {\n        filename,\n        extension,\n        fileType,\n        size,\n        data,\n        entity\n      });\n    }\n    get humanType() {\n      const humanType = mimeToHumanType[this.fileType] || 'File';\n      return humanType;\n    }\n  }\n  _exports.default = BaseAttachmentsModel;\n});","define(\"portal/models/base-model\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _BaseModel;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let BaseModel = _exports.default = (_class = (_BaseModel = class BaseModel extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"_meta\", _descriptor, this);\n    }\n    safeBelongsToValue(relationName) {\n      // halt if the record has been severed from the store\n      if (this.isDestroyed || this.isDestroying || this.isDeleted) {\n        return null;\n      }\n      return this.belongsTo(relationName).value();\n    }\n    safeHasManyToValue(relationName) {\n      // halt if the record has been severed from the store\n      if (this.isDestroyed || this.isDestroying || this.isDeleted) {\n        return null;\n      }\n      return this.hasMany(relationName).value();\n    }\n    toJSON() {\n      const serialized = this.serialize({\n        includeId: true\n      });\n      const obj = {\n        ...serialized.data.attributes,\n        id: serialized.data.id\n      };\n      Object.entries(serialized.data.relationships).forEach(([key, value]) => {\n        if (Array.isArray(value.data)) {\n          obj[key] = value.data.map(relationship => relationship.id);\n          return;\n        }\n        obj[key] = value.data?.id;\n      });\n      return obj;\n    }\n  }, _defineProperty(_BaseModel, \"requiredMetaFields\", []), _BaseModel), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"_meta\", [_model.attr], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"portal/models/bill-attachment\", [\"exports\", \"@ember-data/model\", \"portal/models/base-attachment-model\"], function (_exports, _model, _baseAttachmentModel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"portal/models/base-attachment-model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.belongsTo)('bill', {\n    async: true,\n    inverse: 'attachments'\n  }), _dec2 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _baseAttachmentModel.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"bill\", _descriptor, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"bill\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/bill-item\", [\"exports\", \"portal/models/base-model\", \"@ember-data/model\", \"@ember/object\"], function (_exports, _baseModel, _model, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13;\n  0; //eaimeta@70e063a35619d71f0,\"portal/models/base-model\",0,\"@ember-data/model\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('number', {\n    defaultValue: 1\n  }), _dec4 = (0, _model.attr)('number'), _dec5 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec6 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec7 = (0, _model.attr)('boolean'), _dec8 = (0, _model.attr)('date'), _dec9 = (0, _model.attr)('date'), _dec0 = (0, _model.belongsTo)('bill', {\n    async: true,\n    inverse: 'items'\n  }), _dec1 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec10 = (0, _model.belongsTo)('project', {\n    async: true,\n    inverse: null\n  }), _dec11 = (0, _model.belongsTo)('task', {\n    async: true,\n    inverse: null\n  }), _dec12 = (0, _model.belongsTo)('gl-account', {\n    async: true,\n    inverse: null\n  }), _dec13 = (0, _model.belongsTo)('purchase-order-item', {\n    async: true,\n    inverse: null\n  }), _dec14 = (0, _object.computed)('quantity', 'unitPrice'), _dec15 = (0, _object.computed)('glAccount.label'), _dec16 = (0, _object.computed)('isMapped', 'project.id', 'task.id'), _dec17 = (0, _object.computed)('task', 'task.{parent,project}', 'project', 'isMapped'), _dec18 = (0, _object.computed)('isDeleted', 'description', 'productCode', 'quantity', 'unitPrice'), _class2 = class _class2 extends _baseModel.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"description\", _descriptor, this);\n      _initializerDefineProperty(this, \"productCode\", _descriptor2, this);\n      _initializerDefineProperty(this, \"quantity\", _descriptor3, this);\n      _initializerDefineProperty(this, \"unitTaxAmount\", _descriptor4, this);\n      _initializerDefineProperty(this, \"unitPrice\", _descriptor5, this);\n      _initializerDefineProperty(this, \"sortIndex\", _descriptor6, this);\n      _initializerDefineProperty(this, \"reported\", _descriptor7, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor8, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor9, this);\n      _initializerDefineProperty(this, \"bill\", _descriptor0, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor1, this);\n      _initializerDefineProperty(this, \"project\", _descriptor10, this);\n      _initializerDefineProperty(this, \"task\", _descriptor11, this);\n      _initializerDefineProperty(this, \"glAccount\", _descriptor12, this);\n      _initializerDefineProperty(this, \"purchaseOrderItem\", _descriptor13, this);\n    }\n    get isMapped() {\n      return this._meta?.isMapped;\n    }\n    set isMapped(value) {\n      // Do nothing\n    }\n    get totalPrice() {\n      return (this.quantity || 0) * (this.unitPrice || 0);\n    }\n    get glAccountLabel() {\n      const glAccount = this.belongsTo('glAccount').value();\n      if (!glAccount) return '–';\n      return glAccount.label;\n    }\n\n    // you can map when the item is not mapped OR you can see the project or task it is mapped to\n    get canMap() {\n      const isMapped = this.isMapped;\n      if (!isMapped) return true;\n      const canSeeProject = Boolean(this.belongsTo('project').id());\n      const canSeeTask = Boolean(this.belongsTo('task').id());\n      return canSeeProject || canSeeTask;\n    }\n    get assignment() {\n      const assignments = [];\n      const task = this.belongsTo('task').value();\n      const project = this.belongsTo('project').value();\n      if (task?.id) {\n        const handleTask = task => {\n          assignments.unshift(task.name);\n          const parent = task.belongsTo?.('parent')?.value?.();\n          if (parent?.id) {\n            handleTask(parent);\n          } else {\n            const project = task.belongsTo?.('project')?.value?.();\n            if (project?.name) {\n              assignments.unshift(project.name);\n            }\n          }\n        };\n        handleTask(task);\n      } else if (project?.id) {\n        assignments.unshift(project.name);\n      } else if (this.isMapped) {\n        return 'Assigned to a project or task you can not see';\n      }\n      return assignments.join(' > ') || ' – ';\n    }\n\n    // To be valid, an item must have:\n    // * A product code or/and a description\n    // * A quantity (may be zero, but not null|undefined)\n    // * A unitPrice (may be zero, but not null|undefined)\n    get isValid() {\n      if (this.isDeleted) return true;\n      return (this.productCode || this.description) && this.quantity != null && this.unitPrice !== null;\n    }\n\n    // we need this because, for valid to determine whether quantity has to be negative or positive\n    get billType() {\n      return this.belongsTo('bill').value()?.billType;\n    }\n    get allocations() {\n      const allocations = this._meta?.allocationPath ?? [];\n      return [allocations];\n    }\n    get purchaseOrderMatchingStatus() {\n      const purchaseOrderDetails = this._meta?.purchaseOrder;\n      let hasError = false;\n      let hasWarning = false;\n      const messages = [];\n      if (!purchaseOrderDetails) {\n        hasError = true;\n        messages.push(`Item is not mapped to po item.`);\n        return {\n          class: hasError ? 'text-danger' : 'text-warning',\n          title: messages.join('</br>')\n        };\n      }\n      const billedQuantity = Number(this.quantity) + Number(purchaseOrderDetails.quantityInOtherBills);\n      const quantityOrdered = Number(purchaseOrderDetails.quantityOrdered);\n      const quantityDelivered = Number(purchaseOrderDetails.quantityDelivered);\n      if (!purchaseOrderDetails.unitPriceMatches) {\n        hasError = true;\n        messages.push(`UnitPrice Status: does not match.`);\n      }\n      if (quantityOrdered !== null) {\n        if (billedQuantity > quantityOrdered) {\n          hasError = true;\n          messages.push(`Ordered Status : billed quantity ${billedQuantity} is more then what has been ordered ${quantityOrdered}.`);\n        } else if (billedQuantity < quantityOrdered) {\n          hasWarning = true;\n          messages.push(`Ordered Status : billed quantity ${billedQuantity} is less then what has been ordered ${quantityOrdered}.`);\n        }\n      }\n      if (quantityDelivered != null) {\n        if (billedQuantity > quantityDelivered) {\n          hasError = true;\n          messages.push(`Delivery Status : billed quantity ${billedQuantity} is more then what has been delivered ${quantityDelivered}.`);\n        } else if (billedQuantity < quantityDelivered) {\n          hasWarning = true;\n          messages.push(`Delivery Status : billed quantity ${billedQuantity} is less then what has been delivered ${quantityDelivered}.`);\n        }\n      }\n      if (!hasError && !hasWarning) return null;\n      return {\n        class: hasError ? 'text-danger' : 'text-warning',\n        title: messages.join('</br>')\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"description\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"productCode\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"quantity\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"unitTaxAmount\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"unitPrice\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"sortIndex\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"reported\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"bill\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"project\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"task\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"glAccount\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"purchaseOrderItem\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"totalPrice\", [_dec14], Object.getOwnPropertyDescriptor(_class2.prototype, \"totalPrice\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"glAccountLabel\", [_dec15], Object.getOwnPropertyDescriptor(_class2.prototype, \"glAccountLabel\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"canMap\", [_dec16], Object.getOwnPropertyDescriptor(_class2.prototype, \"canMap\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"assignment\", [_dec17], Object.getOwnPropertyDescriptor(_class2.prototype, \"assignment\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"isValid\", [_dec18], Object.getOwnPropertyDescriptor(_class2.prototype, \"isValid\"), _class2.prototype), _class2);\n});","define(\"portal/models/bill\", [\"exports\", \"@ember-data/model\", \"@ember/object\", \"@ember/service\", \"portal/models/base-model\", \"portal/config/environment\", \"portal/validators/bill\"], function (_exports, _model, _object, _service, _baseModel, _environment, _bill) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _dec25, _dec26, _dec27, _dec28, _dec29, _dec30, _dec31, _dec32, _dec33, _dec34, _dec35, _dec36, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25, _descriptor26, _descriptor27, _descriptor28;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"@ember/object\",0,\"@ember/service\",0,\"portal/models/base-model\",0,\"portal/config/environment\",0,\"portal/validators/bill\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('date'), _dec5 = (0, _model.attr)('date'), _dec6 = (0, _model.attr)('string', {\n    defaultValue: 'DRAFT'\n  }), _dec7 = (0, _model.attr)('string', {\n    defaultValue: 'MATERIALS'\n  }), _dec8 = (0, _model.attr)('string'), _dec9 = (0, _model.attr)('string'), _dec0 = (0, _model.attr)('string'), _dec1 = (0, _model.attr)('boolean', {\n    defaultValue: false\n  }), _dec10 = (0, _model.attr)('string'), _dec11 = (0, _model.attr)('string'), _dec12 = (0, _model.attr)('string'), _dec13 = (0, _model.attr)('string'), _dec14 = (0, _model.attr)('string', {\n    defaultValue: 'BILL'\n  }), _dec15 = (0, _model.attr)('number'), _dec16 = (0, _model.attr)('number'), _dec17 = (0, _model.attr)('string'), _dec18 = (0, _model.attr)('date'), _dec19 = (0, _model.attr)('date'), _dec20 = (0, _model.belongsTo)('invoice-auto-map-directive', {\n    async: true,\n    inverse: null\n  }), _dec21 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec22 = (0, _model.belongsTo)('purchase-order', {\n    async: true,\n    inverse: null\n  }), _dec23 = (0, _model.belongsTo)('contact', {\n    async: true,\n    inverse: null\n  }), _dec24 = (0, _model.hasMany)('bill-item', {\n    async: true,\n    inverse: 'bill'\n  }), _dec25 = (0, _model.hasMany)('bill-attachment', {\n    async: true,\n    inverse: 'bill'\n  }), _dec26 = (0, _object.computed)('activeItems.[]', 'items.[]', 'items.@each.{isDeleted,totalPrice}'), _dec27 = (0, _object.computed)('xeroInvoiceId', 'xeroCreditNoteId'), _dec28 = (0, _object.computed)('quickbooksBillId', 'quickbooksCreditNoteId'), _dec29 = (0, _object.computed)('activeItems.[]', 'items.[]', 'items.@each.{isDeleted,isMapped,project,task}'), _dec30 = (0, _object.computed)('activeItems.[]', 'items.[]', 'items.@each.{isDeleted,canMap}'), _dec31 = (0, _object.computed)('activeItems.[]', 'items.[]', 'items.@each.{isDeleted,dateCreated}'), _dec32 = (0, _object.computed)('xeroInvoiceId', 'xeroCreditNoteId'), _dec33 = (0, _object.computed)('quickbooksBillId', 'quickbooksCreditNoteId'), _dec34 = (0, _object.computed)('billNumber', 'name', 'issuer', 'allocationType', 'issueDate', 'dueDate', 'activeItems.[]', 'items.[]', 'items.@each.{isDeleted,isValid}'), _dec35 = (0, _object.computed)('activeItems.[]', 'items.[]', 'items.@each.{isDeleted,isMapped}'), _dec36 = (0, _object.computed)('totalPrice'), _class2 = class _class2 extends _baseModel.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"accountingPlatform\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _initializerDefineProperty(this, \"xeroIntegration\", _descriptor3, this);\n      _initializerDefineProperty(this, \"reference\", _descriptor4, this);\n      _initializerDefineProperty(this, \"billNumber\", _descriptor5, this);\n      _initializerDefineProperty(this, \"issuer\", _descriptor6, this);\n      _initializerDefineProperty(this, \"issueDate\", _descriptor7, this);\n      _initializerDefineProperty(this, \"dueDate\", _descriptor8, this);\n      _initializerDefineProperty(this, \"status\", _descriptor9, this);\n      _initializerDefineProperty(this, \"allocationType\", _descriptor0, this);\n      _initializerDefineProperty(this, \"ipsId\", _descriptor1, this);\n      _initializerDefineProperty(this, \"notes\", _descriptor10, this);\n      _initializerDefineProperty(this, \"eaccountsFileName\", _descriptor11, this);\n      _initializerDefineProperty(this, \"isAutoMapped\", _descriptor12, this);\n      _initializerDefineProperty(this, \"xeroInvoiceId\", _descriptor13, this);\n      _initializerDefineProperty(this, \"xeroCreditNoteId\", _descriptor14, this);\n      _initializerDefineProperty(this, \"quickbooksBillId\", _descriptor15, this);\n      _initializerDefineProperty(this, \"quickbooksCreditNoteId\", _descriptor16, this);\n      _initializerDefineProperty(this, \"billType\", _descriptor17, this);\n      _initializerDefineProperty(this, \"taxAmount\", _descriptor18, this);\n      _initializerDefineProperty(this, \"subtotal\", _descriptor19, this);\n      _initializerDefineProperty(this, \"source\", _descriptor20, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor21, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor22, this);\n      _initializerDefineProperty(this, \"directiveUsed\", _descriptor23, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor24, this);\n      _initializerDefineProperty(this, \"purchaseOrder\", _descriptor25, this);\n      _initializerDefineProperty(this, \"issuerContact\", _descriptor26, this);\n      _initializerDefineProperty(this, \"items\", _descriptor27, this);\n      _initializerDefineProperty(this, \"attachments\", _descriptor28, this);\n    }\n    get statusLabel() {\n      switch (this.status) {\n        case 'DRAFT':\n          return this.intl.t('common.Draft');\n        case 'ACCEPTED':\n          return this.intl.t('common.Accepted');\n        case 'ARCHIVED':\n          return this.intl.t('common.Archived');\n        case 'HELD':\n          return this.intl.t('common.Held');\n        case 'PAID':\n          return this.intl.t('common.Paid');\n      }\n      return null;\n    }\n    get typeLabel() {\n      switch (this.billType) {\n        case 'BILL':\n          return this.intl.t('common.Bill');\n        case 'CREDIT_NOTE':\n          return this.intl.t('common.Credit note');\n      }\n      return null;\n    }\n    get activeItems() {\n      if (this.isDestroyed || this.isDestroying || this.isDeleted) {\n        return [];\n      }\n      const items = this.safeHasManyToValue('items')?.toArray() || [];\n      const availableItems = items.length > 0 ? items : this.safeHasManyToValue('items')?.toArray() || [];\n      return availableItems.filter(item => item && !(0, _object.get)(item, 'isDeleted'));\n    }\n    get totalPrice() {\n      let totalPrice = 0;\n      for (const item of (0, _object.get)(this, 'activeItems')) {\n        totalPrice += item?.totalPrice || 0;\n      }\n      return totalPrice;\n    }\n    get xeroLinked() {\n      return this.xeroInvoiceId || this.xeroCreditNoteId;\n    }\n    set xeroLinked(value) {\n      return value;\n    }\n    get quickbooksLinked() {\n      return this.quickbooksBillId || this.quickbooksCreditNoteId;\n    }\n    set quickbooksLinked(value) {\n      return value;\n    }\n    get fullyMapped() {\n      const activeItems = (0, _object.get)(this, 'activeItems');\n      return activeItems.length > 0 && activeItems.every(item => (0, _object.get)(item, 'isMapped') || (0, _object.get)(item, 'project.id') || (0, _object.get)(item, 'task.id') || item.allocations.some(allocation => allocation.length));\n    }\n    get canMap() {\n      const activeItems = (0, _object.get)(this, 'activeItems');\n      return activeItems.length > 0 && activeItems.every(item => (0, _object.get)(item, 'canMap'));\n    }\n    get sortedItems() {\n      return [...(0, _object.get)(this, 'activeItems')].sort((left, right) => {\n        return ((0, _object.get)(left, 'dateCreated')?.getTime?.() || 0) - ((0, _object.get)(right, 'dateCreated')?.getTime?.() || 0);\n      });\n    }\n    get myAttachments() {\n      // the reference API does not work well with computed properties and glimmer tracking https://github.com/emberjs/data/issues/7102\n      const billAttachments = this.safeHasManyToValue('attachments')?.toArray() || [];\n      return billAttachments.map(item => item.attachmentInfo);\n    }\n    get xeroDeeplinkPath() {\n      const xeroInvoiceId = (0, _object.get)(this, 'xeroInvoiceId');\n      const xeroCreditNoteId = (0, _object.get)(this, 'xeroCreditNoteId');\n      if (xeroInvoiceId) {\n        return `&redirecturl=/AccountsPayable/Edit.aspx?InvoiceID=${xeroInvoiceId}`;\n      } else if (xeroCreditNoteId) {\n        return `&redirecturl=/AccountsPayable/ViewCreditNote.aspx?creditNoteID=${xeroCreditNoteId}`;\n      }\n      return '';\n    }\n    xeroDeeplinkUrl(entityXeroCompanyId) {\n      if (!this.xeroDeeplinkPath) return '';\n      return `https://go.xero.com/organisationlogin/default.aspx?shortcode=${entityXeroCompanyId}${this.xeroDeeplinkPath}`;\n    }\n    get quickbooksDeeplinkPath() {\n      const quickbooksBillId = (0, _object.get)(this, 'quickbooksBillId');\n      const quickbooksCreditNoteId = (0, _object.get)(this, 'quickbooksCreditNoteId');\n      if (quickbooksBillId) {\n        return `${_environment.default.urls.quickbooksUrl}/app/bill?txnId=${quickbooksBillId}`;\n      } else if (quickbooksCreditNoteId) {\n        return `${_environment.default.urls.quickbooksUrl}/app/vendorcredit?txnId=${quickbooksCreditNoteId}`;\n      }\n      return '';\n    }\n    get accountingPackageUrl() {\n      if (this.accountingPlatform.activePlatform === 'xero') {\n        return this.xeroDeeplinkUrl(this.xeroIntegration.companyId);\n      }\n      if (this.accountingPlatform.activePlatform === 'quickbooks') {\n        return this.quickbooksDeeplinkPath;\n      }\n      return '';\n    }\n    get isValid() {\n      const activeItems = (0, _object.get)(this, 'activeItems');\n      return ((0, _object.get)(this, 'billNumber') || (0, _object.get)(this, 'name')) && (0, _object.get)(this, 'issuer') && ['MATERIALS', 'SUBCONTRACTORS', 'LABOUR'].includes((0, _object.get)(this, 'allocationType')) && (0, _object.get)(this, 'issueDate') && (0, _object.get)(this, 'dueDate') && activeItems.length > 0 && activeItems.every(it => (0, _object.get)(it, 'isValid'));\n    }\n\n    // TODO this is meant to mirror the validator\n    // TODO this approach is crap - we can't use the validator directly... maybe write a function to run the validator\n    get newIsValid() {\n      if (!this.billNumber || typeof this.billNumber !== 'string' || this.billNumber.trim() === '') {\n        return false;\n      }\n      if (this.billNumber.length > 100) {\n        return false;\n      }\n      if (!this.issuer) return false;\n      if (!this.belongsTo('issuerContact').id()) return false;\n      if (!this.issueDate) return false;\n      if (!this.dueDate) return false;\n      if (!this.status || !_bill.VALID_STATUSES.includes(this.status)) {\n        return false;\n      }\n      if (!this.allocationType || !_bill.VALID_ALLOCATION_TYPES.includes(this.allocationType)) {\n        return false;\n      }\n      if (this.billType === 'CREDIT_NOTE' && this.totalPrice >= 0 || this.billType !== 'CREDIT_NOTE' && this.totalPrice <= 0) {\n        return false;\n      }\n      return true;\n    }\n    get isMapped() {\n      const activeItems = (0, _object.get)(this, 'activeItems');\n      return activeItems.length > 0 && activeItems.every(it => (0, _object.get)(it, 'isMapped'));\n    }\n    get isCreditNote() {\n      return (0, _object.get)(this, 'totalPrice') < 0;\n    }\n    get hasDuplicate() {\n      return this._meta?.hasDuplicate;\n    }\n    get isAcceptedButNotSyncedToAccountingPlatform() {\n      const isNotSynced = Boolean(!this.xeroInvoiceId && !this.xeroCreditNoteId && !this.quickbooksBillId && !this.quickbooksCreditNoteId && this.status === 'ACCEPTED');\n      return isNotSynced;\n    }\n    get allocations() {\n      const allocations = this._meta?.allocationPath ?? [];\n      return allocations.filter(a => Array.isArray(a) && a.length);\n    }\n    get isInvoiced() {\n      return this._meta?.isInvoiced ?? false;\n    }\n    get purchaseOrderDetails() {\n      return this._meta?.purchaseOrder;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"accountingPlatform\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"xeroIntegration\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"reference\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"billNumber\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"issuer\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"issueDate\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"dueDate\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"status\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"allocationType\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"ipsId\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"notes\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"eaccountsFileName\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"isAutoMapped\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"xeroInvoiceId\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"xeroCreditNoteId\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, \"quickbooksBillId\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, \"quickbooksCreditNoteId\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, \"billType\", [_dec14], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, \"taxAmount\", [_dec15], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor19 = _applyDecoratedDescriptor(_class2.prototype, \"subtotal\", [_dec16], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor20 = _applyDecoratedDescriptor(_class2.prototype, \"source\", [_dec17], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor21 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec18], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor22 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec19], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor23 = _applyDecoratedDescriptor(_class2.prototype, \"directiveUsed\", [_dec20], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor24 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec21], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor25 = _applyDecoratedDescriptor(_class2.prototype, \"purchaseOrder\", [_dec22], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor26 = _applyDecoratedDescriptor(_class2.prototype, \"issuerContact\", [_dec23], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor27 = _applyDecoratedDescriptor(_class2.prototype, \"items\", [_dec24], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor28 = _applyDecoratedDescriptor(_class2.prototype, \"attachments\", [_dec25], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"totalPrice\", [_dec26], Object.getOwnPropertyDescriptor(_class2.prototype, \"totalPrice\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"xeroLinked\", [_dec27], Object.getOwnPropertyDescriptor(_class2.prototype, \"xeroLinked\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"quickbooksLinked\", [_dec28], Object.getOwnPropertyDescriptor(_class2.prototype, \"quickbooksLinked\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"fullyMapped\", [_dec29], Object.getOwnPropertyDescriptor(_class2.prototype, \"fullyMapped\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"canMap\", [_dec30], Object.getOwnPropertyDescriptor(_class2.prototype, \"canMap\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"sortedItems\", [_dec31], Object.getOwnPropertyDescriptor(_class2.prototype, \"sortedItems\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"xeroDeeplinkPath\", [_dec32], Object.getOwnPropertyDescriptor(_class2.prototype, \"xeroDeeplinkPath\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"quickbooksDeeplinkPath\", [_dec33], Object.getOwnPropertyDescriptor(_class2.prototype, \"quickbooksDeeplinkPath\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"isValid\", [_dec34], Object.getOwnPropertyDescriptor(_class2.prototype, \"isValid\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"isMapped\", [_dec35], Object.getOwnPropertyDescriptor(_class2.prototype, \"isMapped\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"isCreditNote\", [_dec36], Object.getOwnPropertyDescriptor(_class2.prototype, \"isCreditNote\"), _class2.prototype), _class2);\n});","define(\"portal/models/budget-change-set\", [\"exports\", \"@ember-data/model\", \"@ember/service\"], function (_exports, _model, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec3 = (0, _model.belongsTo)('project', {\n    async: true,\n    inverse: null\n  }), _dec4 = (0, _model.belongsTo)('budget-version', {\n    async: true,\n    inverse: null\n  }), _dec5 = (0, _model.hasMany)('budget-change', {\n    async: true,\n    inverse: 'changeSet'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      /* attrs */\n      _initializerDefineProperty(this, \"status\", _descriptor2, this);\n      // enum: ['DRAFT', 'ACCEPTED']\n      /* relationships */\n      _initializerDefineProperty(this, \"entity\", _descriptor3, this);\n      _initializerDefineProperty(this, \"project\", _descriptor4, this);\n      _initializerDefineProperty(this, \"version\", _descriptor5, this);\n      _initializerDefineProperty(this, \"changes\", _descriptor6, this);\n    }\n    /* computed */\n    get valuesArray() {\n      return this.hasMany('changes').value()?.toArray?.() || [];\n    }\n    get labourDiff() {\n      return this.valuesArray.reduce((total, c) => total + c.labourDiff, 0);\n    }\n    get manHoursDiff() {\n      return this.valuesArray.reduce((total, c) => total + c.manHoursDiff, 0);\n    }\n    get materialsDiff() {\n      return this.valuesArray.reduce((total, c) => total + c.materialsDiff, 0);\n    }\n    get subcontractorsDiff() {\n      return this.valuesArray.reduce((total, c) => total + c.subcontractorsDiff, 0);\n    }\n    get sumsDiff() {\n      return this.valuesArray.reduce((total, c) => total + c.sumsDiff, 0);\n    }\n\n    /* methods */\n    async findChangeForTask(task) {\n      const changes = await this.hasMany('changes').load();\n      return changes?.find(c => c.belongsTo('task').value() === task);\n    }\n    createChangeForTask(task) {\n      return this.store.createRecord('budget-change', {\n        changeSet: this,\n        task,\n        entity: this.belongsTo('entity').value(),\n        project: this.belongsTo('project').value()\n      });\n    }\n    async deleteChangeForTask(task) {\n      const changes = await this.hasMany('changes').load();\n      const change = changes?.find(c => c.belongsTo('task').value() === task);\n      if (change) await change.destroyRecord();\n      if (changes?.length === 0) await this.destroyRecord();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"status\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"project\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"version\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"changes\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/budget-change\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec2 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec3 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec4 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec5 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec6 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec7 = (0, _model.belongsTo)('task', {\n    async: true,\n    inverse: null\n  }), _dec8 = (0, _model.belongsTo)('budget-change-set', {\n    async: true,\n    inverse: 'changes'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      /* attrs */\n      _initializerDefineProperty(this, \"labourDiff\", _descriptor, this);\n      _initializerDefineProperty(this, \"manHoursDiff\", _descriptor2, this);\n      _initializerDefineProperty(this, \"materialsDiff\", _descriptor3, this);\n      _initializerDefineProperty(this, \"subcontractorsDiff\", _descriptor4, this);\n      _initializerDefineProperty(this, \"sumsDiff\", _descriptor5, this);\n      /* relationships */\n      _initializerDefineProperty(this, \"entity\", _descriptor6, this);\n      _initializerDefineProperty(this, \"task\", _descriptor7, this);\n      _initializerDefineProperty(this, \"changeSet\", _descriptor8, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"labourDiff\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"manHoursDiff\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"materialsDiff\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"subcontractorsDiff\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"sumsDiff\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"task\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"changeSet\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/budget-version-value\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec3 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec4 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec5 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec6 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec7 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec8 = (0, _model.belongsTo)('project', {\n    async: true,\n    inverse: null\n  }), _dec9 = (0, _model.belongsTo)('task', {\n    async: true,\n    inverse: null\n  }), _dec0 = (0, _model.belongsTo)('budget-version', {\n    async: true,\n    inverse: 'values'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      /* attrs */\n      _initializerDefineProperty(this, \"name\", _descriptor, this);\n      _initializerDefineProperty(this, \"labour\", _descriptor2, this);\n      _initializerDefineProperty(this, \"manHours\", _descriptor3, this);\n      _initializerDefineProperty(this, \"materials\", _descriptor4, this);\n      _initializerDefineProperty(this, \"subcontractors\", _descriptor5, this);\n      _initializerDefineProperty(this, \"sums\", _descriptor6, this);\n      /* relationships */\n      _initializerDefineProperty(this, \"entity\", _descriptor7, this);\n      _initializerDefineProperty(this, \"project\", _descriptor8, this);\n      _initializerDefineProperty(this, \"task\", _descriptor9, this);\n      _initializerDefineProperty(this, \"version\", _descriptor0, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"name\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"labour\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"manHours\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"materials\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"subcontractors\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"sums\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"project\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"task\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"version\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/budget-version\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('number'), _dec3 = (0, _model.attr)('number'), _dec4 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec5 = (0, _model.belongsTo)('project', {\n    async: true,\n    inverse: null\n  }), _dec6 = (0, _model.belongsTo)('budget-change-set', {\n    async: true,\n    inverse: null\n  }), _dec7 = (0, _model.hasMany)('budget-version-value', {\n    async: true,\n    inverse: 'version'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      /* attrs */\n      _initializerDefineProperty(this, \"name\", _descriptor, this);\n      _initializerDefineProperty(this, \"versionNumber\", _descriptor2, this);\n      _initializerDefineProperty(this, \"sortIndex\", _descriptor3, this);\n      /* relationships */\n      _initializerDefineProperty(this, \"entity\", _descriptor4, this);\n      _initializerDefineProperty(this, \"project\", _descriptor5, this);\n      _initializerDefineProperty(this, \"changeSet\", _descriptor6, this);\n      _initializerDefineProperty(this, \"values\", _descriptor7, this);\n    }\n    /* computed */\n    get valuesArray() {\n      return this.hasMany('values').value()?.toArray?.() || [];\n    }\n    get labour() {\n      return this.valuesArray.reduce((total, v) => total + (v.labour || 0), 0);\n    }\n    get manHours() {\n      return this.valuesArray.reduce((total, v) => total + (v.manHours || 0), 0);\n    }\n    get materials() {\n      return this.valuesArray.reduce((total, v) => total + (v.materials || 0), 0);\n    }\n    get subcontractors() {\n      return this.valuesArray.reduce((total, v) => total + (v.subcontractors || 0), 0);\n    }\n    get sums() {\n      return this.valuesArray.reduce((total, v) => total + (v.sums || 0), 0);\n    }\n    get total() {\n      return this.labour + this.materials + this.subcontractors + this.sums;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"name\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"versionNumber\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"sortIndex\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"project\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"changeSet\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"values\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/contact\", [\"exports\", \"moment\", \"@ember-data/model\", \"@ember/service\", \"portal/config/environment\", \"portal/models/base-model\"], function (_exports, _moment, _model, _service, _environment, _baseModel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17;\n  0; //eaimeta@70e063a35619d71f0,\"moment\",0,\"@ember-data/model\",0,\"@ember/service\",0,\"portal/config/environment\",0,\"portal/models/base-model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('string'), _dec5 = (0, _model.attr)('string'), _dec6 = (0, _model.attr)('string'), _dec7 = (0, _model.attr)('string'), _dec8 = (0, _model.attr)('string'), _dec9 = (0, _model.attr)('string'), _dec0 = (0, _model.attr)('string'), _dec1 = (0, _model.attr)('number'), _dec10 = (0, _model.attr)('string'), _dec11 = (0, _model.attr)('number'), _dec12 = (0, _model.attr)('array'), _dec13 = (0, _model.attr)('string'), _dec14 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _baseModel.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n      _initializerDefineProperty(this, \"accountingPlatform\", _descriptor2, this);\n      _initializerDefineProperty(this, \"xeroIntegration\", _descriptor3, this);\n      // attributes\n      _initializerDefineProperty(this, \"name\", _descriptor4, this);\n      _initializerDefineProperty(this, \"contactPerson\", _descriptor5, this);\n      _initializerDefineProperty(this, \"contactNumber\", _descriptor6, this);\n      _initializerDefineProperty(this, \"contactEmail\", _descriptor7, this);\n      _initializerDefineProperty(this, \"address\", _descriptor8, this);\n      _initializerDefineProperty(this, \"eaccountsSupplierCode\", _descriptor9, this);\n      _initializerDefineProperty(this, \"xeroContactId\", _descriptor0, this);\n      _initializerDefineProperty(this, \"quickbooksContactId\", _descriptor1, this);\n      _initializerDefineProperty(this, \"quickbooksVendorId\", _descriptor10, this);\n      _initializerDefineProperty(this, \"paymentTermType\", _descriptor11, this);\n      // enum: ['OFFOLLOWINGMONTH', 'DAYSAFTERBILLDATE', 'DAYSAFTERBILLMONTH', 'OFCURRENTMONTH;\n      _initializerDefineProperty(this, \"paymentTermDay\", _descriptor12, this);\n      _initializerDefineProperty(this, \"salesPaymentTermType\", _descriptor13, this);\n      // enum: ['DAYS_AFTER_ISSUE_DATE', 'DAYS_AFTER_ISSUE_MONTH', 'OF_CURRENT_MONTH', 'OF_FOLLOWING_MONTH'],\n      _initializerDefineProperty(this, \"salesPaymentTermDay\", _descriptor14, this);\n      _initializerDefineProperty(this, \"aliases\", _descriptor15, this);\n      _initializerDefineProperty(this, \"defaultBillAllocationType\", _descriptor16, this);\n      // relationships\n      _initializerDefineProperty(this, \"entity\", _descriptor17, this);\n    }\n    // computed\n    get hasValidPurchasePaymentTerm() {\n      return this.paymentTermType && this.paymentTermDay;\n    }\n    get getPurchaseDisplayPaymentTermType() {\n      switch (this.paymentTermType) {\n        case 'OFFOLLOWINGMONTH':\n          return this.intl.t('shared.contacts.of the following month');\n        case 'DAYSAFTERBILLDATE':\n          return this.intl.t('shared.contacts.day(s) after the bill date');\n        case 'DAYSAFTERBILLMONTH':\n          return this.intl.t('shared.contacts.day(s) after the end of the bill month');\n        case 'OFCURRENTMONTH':\n          return this.intl.t('shared.contacts.of the current month');\n        default:\n          return '';\n      }\n    }\n    get purchaseDisplayPaymentTerm() {\n      return this.hasValidPurchasePaymentTerm ? `${this.paymentTermDay} ${this.getPurchaseDisplayPaymentTermType}` : this.intl.t('shared.contacts.No payment terms');\n    }\n    get hasValidSalesPaymentTerm() {\n      return this.salesPaymentTermType && this.salesPaymentTermDay;\n    }\n    get getSalesDisplayPaymentTermType() {\n      switch (this.salesPaymentTermType) {\n        case 'OF_FOLLOWING_MONTH':\n          return this.intl.t('shared.contacts.of the following month');\n        case 'DAYS_AFTER_ISSUE_DATE':\n          return this.intl.t('shared.contacts.day(s) after the issue date');\n        case 'DAYS_AFTER_ISSUE_MONTH':\n          return this.intl.t('shared.contacts.day(s) after the end of the issue month');\n        case 'OF_CURRENT_MONTH':\n          return this.intl.t('shared.contacts.of the current month');\n        default:\n          return '';\n      }\n    }\n    get salesDisplayPaymentTerm() {\n      return this.hasValidSalesPaymentTerm ? `${this.salesPaymentTermDay} ${this.getSalesDisplayPaymentTermType}` : this.intl.t('shared.contacts.No payment terms');\n    }\n    getBillDueDate(issueDate) {\n      if (!this.hasValidPurchasePaymentTerm) return;\n      switch (this.paymentTermType) {\n        case 'OFFOLLOWINGMONTH':\n          return (0, _moment.default)(issueDate).add(1, 'month').date(this.paymentTermDay).toDate();\n        case 'DAYSAFTERBILLDATE':\n          return (0, _moment.default)(issueDate).add(this.paymentTermDay, 'day').toDate();\n        case 'DAYSAFTERBILLMONTH':\n          return (0, _moment.default)(issueDate).add(1, 'month').date(this.paymentTermDay).toDate();\n        case 'OFCURRENTMONTH':\n          return (0, _moment.default)(issueDate).date(this.paymentTermDay).toDate();\n      }\n    }\n    get isContactLinkedToAccountingPlatform() {\n      return Boolean(this.xeroContactId || this.quickbooksContactId || this.quickbooksVendorId);\n    }\n    get isLinkedToActiveAccountingPlatform() {\n      if (this.accountingPlatform.activePlatform === 'xero') {\n        return Boolean(this.xeroContactId);\n      }\n      if (this.accountingPlatform.activePlatform === 'quickbooks') {\n        return Boolean(this.quickbooksContactId || this.quickbooksVendorId);\n      }\n      return false;\n    }\n    get viewContactUrl() {\n      if (this.accountingPlatform.activePlatform === 'xero') {\n        if (!this.xeroContactId) return '';\n        return `https://go.xero.com/organisationlogin/default.aspx?shortcode=${this.xeroIntegration.companyId}&redirecturl=/Contacts/View/${this.xeroContactId}`;\n      }\n      if (this.accountingPlatform.activePlatform === 'quickbooks') {\n        if (this.quickbooksContactId) {\n          return `${_environment.default.urls.quickbooksUrl}/app/customerdetail?nameId=${this.quickbooksContactId}`;\n        } else if (this.quickbooksVendorId) {\n          return `${_environment.default.urls.quickbooksUrl}/app/vendordetail?nameId=${this.quickbooksVendorId}`;\n        }\n      }\n      return '';\n    }\n    get viewContactLabel() {\n      if (this.accountingPlatform.activePlatform === 'xero') {\n        if (!this.xeroContactId) return '';\n        return `View in Xero`;\n      }\n      if (this.accountingPlatform.activePlatform === 'quickbooks') {\n        if (this.quickbooksContactId) {\n          return 'View in QuickBooks contact';\n        } else if (this.quickbooksVendorId) {\n          return 'View in QuickBooks vendor';\n        }\n      }\n      return '';\n    }\n\n    // this property tells if contact is being used in invoices or purchase orders\n    get isLinkedToResources() {\n      return this._meta?.isLinkedToResources;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"accountingPlatform\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"xeroIntegration\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"name\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"contactPerson\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"contactNumber\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"contactEmail\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"address\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"eaccountsSupplierCode\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"xeroContactId\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"quickbooksContactId\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"quickbooksVendorId\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"paymentTermType\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"paymentTermDay\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"salesPaymentTermType\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"salesPaymentTermDay\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, \"aliases\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, \"defaultBillAllocationType\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec14], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/dashboard-module\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _dec10, _dec11, _dec12, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('number'), _dec4 = (0, _model.attr)('number'), _dec5 = (0, _model.attr)('string'), _dec6 = (0, _model.attr)('boolean'), _dec7 = (0, _model.attr)('date'), _dec8 = (0, _model.attr)('date'), _dec9 = (0, _model.belongsTo)('user', {\n    async: true,\n    inverse: null\n  }), _dec0 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec1 = (0, _model.hasMany)('link-dashboard-module-kpi', {\n    async: true,\n    inverse: 'dashboardModule'\n  }), _dec10 = (0, _model.hasMany)('link-dashboard-module-account', {\n    async: true,\n    inverse: 'dashboardModule'\n  }), _dec11 = (0, _model.hasMany)('link-dashboard-module-entity-group', {\n    async: true,\n    inverse: 'dashboardModule'\n  }), _dec12 = (0, _model.hasMany)('link-dashboard-module-entity', {\n    async: true,\n    inverse: 'dashboardModule'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"title\", _descriptor, this);\n      _initializerDefineProperty(this, \"visualiser\", _descriptor2, this);\n      _initializerDefineProperty(this, \"positionX\", _descriptor3, this);\n      _initializerDefineProperty(this, \"positionY\", _descriptor4, this);\n      _initializerDefineProperty(this, \"periodType\", _descriptor5, this);\n      _initializerDefineProperty(this, \"includeCurrentEntity\", _descriptor6, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor7, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor8, this);\n      _initializerDefineProperty(this, \"user\", _descriptor9, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor0, this);\n      _initializerDefineProperty(this, \"kpis\", _descriptor1, this);\n      _initializerDefineProperty(this, \"accounts\", _descriptor10, this);\n      _initializerDefineProperty(this, \"entityGroups\", _descriptor11, this);\n      _initializerDefineProperty(this, \"entities\", _descriptor12, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"title\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"visualiser\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"positionX\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"positionY\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"periodType\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"includeCurrentEntity\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"user\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"kpis\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"accounts\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"entityGroups\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"entities\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/eaccounts-invoice-integration\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('boolean'), _dec3 = (0, _model.attr)('array'), _dec4 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: 'eaccountsInvoiceIntegration'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"eaccountsLink\", _descriptor, this);\n      _initializerDefineProperty(this, \"allowed\", _descriptor2, this);\n      _initializerDefineProperty(this, \"requests\", _descriptor3, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor4, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"eaccountsLink\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"allowed\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"requests\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/entity-attribute\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('boolean'), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"attribute\", _descriptor, this);\n      _initializerDefineProperty(this, \"description\", _descriptor2, this);\n      _initializerDefineProperty(this, \"deprecated\", _descriptor3, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"attribute\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"description\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"deprecated\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/entity-group\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('boolean'), _dec4 = (0, _model.attr)('number'), _dec5 = (0, _model.attr)('date'), _dec6 = (0, _model.attr)('date'), _dec7 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec8 = (0, _model.hasMany)('link-entity-group-member', {\n    async: true,\n    inverse: 'entityGroup'\n  }), _dec9 = (0, _model.hasMany)('link-entity-group-can-be-accessed-by', {\n    async: true,\n    inverse: 'entityGroup'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"name\", _descriptor, this);\n      _initializerDefineProperty(this, \"description\", _descriptor2, this);\n      _initializerDefineProperty(this, \"consolidation\", _descriptor3, this);\n      _initializerDefineProperty(this, \"sortIndex\", _descriptor4, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor5, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor6, this);\n      _initializerDefineProperty(this, \"parentEntity\", _descriptor7, this);\n      _initializerDefineProperty(this, \"members\", _descriptor8, this);\n      _initializerDefineProperty(this, \"canBeAccessedBy\", _descriptor9, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"name\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"description\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"consolidation\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"sortIndex\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"parentEntity\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"members\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"canBeAccessedBy\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/entity-invoice-option\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('number'), _dec4 = (0, _model.attr)('string'), _dec5 = (0, _model.attr)('number'), _dec6 = (0, _model.attr)('string'), _dec7 = (0, _model.attr)('string'), _dec8 = (0, _model.attr)('number'), _dec9 = (0, _model.attr)('string'), _dec0 = (0, _model.attr)('string'), _dec1 = (0, _model.attr)('string'), _dec10 = (0, _model.attr)('string'), _dec11 = (0, _model.attr)('string'), _dec12 = (0, _model.attr)('array'), _dec13 = (0, _model.attr)('boolean'), _dec14 = (0, _model.attr)('boolean'), _dec15 = (0, _model.attr)('boolean'), _dec16 = (0, _model.attr)('boolean'), _dec17 = (0, _model.attr)('boolean'), _dec18 = (0, _model.attr)('boolean'), _dec19 = (0, _model.attr)('boolean'), _dec20 = (0, _model.attr)('date'), _dec21 = (0, _model.attr)('date'), _dec22 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"invoicePrefix\", _descriptor, this);\n      _initializerDefineProperty(this, \"invoiceFooterNotes\", _descriptor2, this);\n      _initializerDefineProperty(this, \"nextInvoiceNumber\", _descriptor3, this);\n      _initializerDefineProperty(this, \"paymentTermType\", _descriptor4, this);\n      // enum: ['DAYS_AFTER_ISSUE_DATE', 'DAYS_AFTER_ISSUE_MONTH', 'OF_CURRENT_MONTH', 'OF_FOLLOWING_MONTH'],\n      _initializerDefineProperty(this, \"paymentTermDay\", _descriptor5, this);\n      _initializerDefineProperty(this, \"creditNotePrefix\", _descriptor6, this);\n      _initializerDefineProperty(this, \"creditNoteFooterNotes\", _descriptor7, this);\n      _initializerDefineProperty(this, \"nextCreditNoteNumber\", _descriptor8, this);\n      _initializerDefineProperty(this, \"breakdownNotes\", _descriptor9, this);\n      _initializerDefineProperty(this, \"firstGroupBy\", _descriptor0, this);\n      _initializerDefineProperty(this, \"materialsDetail\", _descriptor1, this);\n      _initializerDefineProperty(this, \"labourDetail\", _descriptor10, this);\n      _initializerDefineProperty(this, \"subcontractorsDetail\", _descriptor11, this);\n      _initializerDefineProperty(this, \"timesheetDetails\", _descriptor12, this);\n      _initializerDefineProperty(this, \"includeBillable\", _descriptor13, this);\n      _initializerDefineProperty(this, \"includeInvoiced\", _descriptor14, this);\n      _initializerDefineProperty(this, \"includeLabourBillsProfitMargins\", _descriptor15, this);\n      _initializerDefineProperty(this, \"includeMaterialBillsProfitMargins\", _descriptor16, this);\n      _initializerDefineProperty(this, \"includeSubcontractorBillsProfitMargins\", _descriptor17, this);\n      _initializerDefineProperty(this, \"includeTimesheetsProfitMargins\", _descriptor18, this);\n      _initializerDefineProperty(this, \"includeTimesheetsCostMargins\", _descriptor19, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor20, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor21, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor22, this);\n    }\n    static defaultOptionsRecord(store, entity) {\n      return store.createRecord('entity-invoice-option', {\n        entity: entity,\n        nextInvoiceNumber: 10000,\n        invoicePrefix: 'INV-',\n        nextCreditNoteNumber: 10000,\n        creditNotePrefix: 'CN-',\n        breakdownNotes: '',\n        firstGroupBy: 'TASK',\n        materialsDetail: 'TOTAL',\n        labourDetail: 'TOTAL',\n        subcontractorsDetail: 'TOTAL',\n        timesheetDetails: []\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"invoicePrefix\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"invoiceFooterNotes\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"nextInvoiceNumber\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"paymentTermType\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"paymentTermDay\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"creditNotePrefix\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"creditNoteFooterNotes\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"nextCreditNoteNumber\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"breakdownNotes\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"firstGroupBy\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"materialsDetail\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"labourDetail\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"subcontractorsDetail\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"timesheetDetails\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"includeBillable\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"includeInvoiced\", [_dec14], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, \"includeLabourBillsProfitMargins\", [_dec15], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, \"includeMaterialBillsProfitMargins\", [_dec16], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, \"includeSubcontractorBillsProfitMargins\", [_dec17], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, \"includeTimesheetsProfitMargins\", [_dec18], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor19 = _applyDecoratedDescriptor(_class2.prototype, \"includeTimesheetsCostMargins\", [_dec19], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor20 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec20], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor21 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec21], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor22 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec22], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/entity-product\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('number'), _dec5 = (0, _model.attr)('string', {\n    defaultValue: 'EntityProduct'\n  }), _dec6 = (0, _model.attr)('string'), _dec7 = (0, _model.attr)('string'), _dec8 = (0, _model.attr)('string'), _dec9 = (0, _model.attr)('string'), _dec0 = (0, _model.attr)('string'), _dec1 = (0, _model.attr)('date'), _dec10 = (0, _model.attr)('date'), _dec11 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec12 = (0, _model.belongsTo)('contact', {\n    async: true,\n    inverse: null\n  }), _dec13 = (0, _model.belongsTo)('task', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      /* attrs */\n      _initializerDefineProperty(this, \"productLibraryIdentifier\", _descriptor, this);\n      _initializerDefineProperty(this, \"description\", _descriptor2, this);\n      _initializerDefineProperty(this, \"sku\", _descriptor3, this);\n      _initializerDefineProperty(this, \"unitPrice\", _descriptor4, this);\n      _initializerDefineProperty(this, \"source\", _descriptor5, this);\n      _initializerDefineProperty(this, \"supplierName\", _descriptor6, this);\n      _initializerDefineProperty(this, \"unit\", _descriptor7, this);\n      _initializerDefineProperty(this, \"currency\", _descriptor8, this);\n      _initializerDefineProperty(this, \"manufacturer\", _descriptor9, this);\n      _initializerDefineProperty(this, \"usage\", _descriptor0, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor1, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor10, this);\n      /* relationships */\n      _initializerDefineProperty(this, \"entity\", _descriptor11, this);\n      _initializerDefineProperty(this, \"supplier\", _descriptor12, this);\n      _initializerDefineProperty(this, \"task\", _descriptor13, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"productLibraryIdentifier\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"description\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"sku\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"unitPrice\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"source\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"supplierName\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"unit\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"currency\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"manufacturer\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"usage\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"supplier\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"task\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/entity\", [\"exports\", \"@ember-data/model\", \"@ember/object\", \"@ember/service\", \"portal/models/base-model\", \"portal/utils/collection-to-array\"], function (_exports, _model, _object, _service, _baseModel, _collectionToArray) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _dec25, _dec26, _dec27, _dec28, _dec29, _dec30, _dec31, _dec32, _dec33, _dec34, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25, _descriptor26, _descriptor27, _descriptor28, _descriptor29, _descriptor30, _descriptor31, _descriptor32, _descriptor33;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"@ember/object\",0,\"@ember/object\",0,\"@ember/service\",0,\"portal/models/base-model\",0,\"portal/utils/collection-to-array\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('boolean', {\n    defaultValue: true\n  }), _dec5 = (0, _model.attr)('date'), _dec6 = (0, _model.attr)('string'), _dec7 = (0, _model.attr)('array'), _dec8 = (0, _model.attr)('string'), _dec9 = (0, _model.attr)('string'), _dec0 = (0, _model.attr)('string'), _dec1 = (0, _model.attr)('string'), _dec10 = (0, _model.attr)('string'), _dec11 = (0, _model.attr)('string'), _dec12 = (0, _model.attr)('string'), _dec13 = (0, _model.attr)('date'), _dec14 = (0, _model.attr)('date'), _dec15 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec16 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec17 = (0, _model.belongsTo)('profit-margin', {\n    async: true,\n    inverse: null\n  }), _dec18 = (0, _model.belongsTo)('labour-cost-calculator', {\n    async: true,\n    inverse: null\n  }), _dec19 = (0, _model.hasMany)('link-entity-to-entity-attribute', {\n    async: true,\n    inverse: 'entity'\n  }), _dec20 = (0, _model.hasMany)('project', {\n    async: true,\n    inverse: 'entity'\n  }), _dec21 = (0, _model.hasMany)('pricing-connection', {\n    async: true,\n    inverse: 'entity'\n  }), _dec22 = (0, _model.hasMany)('financial-option', {\n    async: true,\n    inverse: 'entity'\n  }), _dec23 = (0, _model.hasMany)('eaccounts-invoice-integration', {\n    async: true,\n    inverse: 'entity'\n  }), _dec24 = (0, _model.hasMany)('xero-connection', {\n    async: true,\n    inverse: 'entity'\n  }), _dec25 = (0, _model.hasMany)('quickbooks-oauth2-connection', {\n    async: true,\n    inverse: 'entity'\n  }), _dec26 = (0, _model.hasMany)('attachment', {\n    async: true,\n    inverse: 'entity'\n  }), _dec27 = (0, _model.hasMany)('link-attachment-to-entity', {\n    async: true,\n    inverse: 'entity'\n  }), _dec28 = (0, _model.belongsTo)('attachment', {\n    async: true,\n    inverse: null\n  }), _dec29 = (0, _model.belongsTo)('stage-payment-option', {\n    async: true,\n    inverse: null\n  }), _dec30 = (0, _model.belongsTo)('gl-account', {\n    async: true,\n    inverse: null\n  }), _dec31 = (0, _model.belongsTo)('gl-account', {\n    async: true,\n    inverse: null\n  }), _dec32 = (0, _object.computed)('myAttachments', 'activeProjects.@each.allAttachments'), _dec33 = (0, _object.computed)('activeProjects.@each.{budgetTotalManhours,budgetTotalLabour,budgetTotalMaterials,budgetTotalSubcontractors,budgetTotalSums,budgetTotalTotal}'), _dec34 = (0, _object.computed)('activeProjects.@each.{quoteTotalManhours,quoteTotalLabour,quoteTotalMaterials,quoteTotalSubcontractors,quoteTotalSums,quoteTotalTotal}'), _class2 = class _class2 extends _baseModel.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"name\", _descriptor3, this);\n      _initializerDefineProperty(this, \"region\", _descriptor4, this);\n      _initializerDefineProperty(this, \"system\", _descriptor5, this);\n      _initializerDefineProperty(this, \"canChangeSystem\", _descriptor6, this);\n      _initializerDefineProperty(this, \"firstClosedPeriod\", _descriptor7, this);\n      _initializerDefineProperty(this, \"balanceDate\", _descriptor8, this);\n      _initializerDefineProperty(this, \"identityProviders\", _descriptor9, this);\n      _initializerDefineProperty(this, \"brand\", _descriptor0, this);\n      _initializerDefineProperty(this, \"cbPlanId\", _descriptor1, this);\n      _initializerDefineProperty(this, \"cbCustomerId\", _descriptor10, this);\n      _initializerDefineProperty(this, \"contactEmail\", _descriptor11, this);\n      _initializerDefineProperty(this, \"address\", _descriptor12, this);\n      _initializerDefineProperty(this, \"businessNumber\", _descriptor13, this);\n      _initializerDefineProperty(this, \"taxNumber\", _descriptor14, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor15, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor16, this);\n      _initializerDefineProperty(this, \"parent\", _descriptor17, this);\n      _initializerDefineProperty(this, \"partner\", _descriptor18, this);\n      _initializerDefineProperty(this, \"profitMargin\", _descriptor19, this);\n      _initializerDefineProperty(this, \"defaultLabourCostCalculator\", _descriptor20, this);\n      _initializerDefineProperty(this, \"attributes\", _descriptor21, this);\n      _initializerDefineProperty(this, \"projects\", _descriptor22, this);\n      _initializerDefineProperty(this, \"pricingConnection\", _descriptor23, this);\n      _initializerDefineProperty(this, \"financialOptions\", _descriptor24, this);\n      _initializerDefineProperty(this, \"eaccountsInvoiceIntegration\", _descriptor25, this);\n      _initializerDefineProperty(this, \"xeroConnection\", _descriptor26, this);\n      _initializerDefineProperty(this, \"quickBooksConnection\", _descriptor27, this);\n      _initializerDefineProperty(this, \"allEntityAttachments\", _descriptor28, this);\n      _initializerDefineProperty(this, \"attachments\", _descriptor29, this);\n      _initializerDefineProperty(this, \"companyLogo\", _descriptor30, this);\n      _initializerDefineProperty(this, \"stagePaymentOption\", _descriptor31, this);\n      _initializerDefineProperty(this, \"purchasesGlAccount\", _descriptor32, this);\n      _initializerDefineProperty(this, \"salesGlAccount\", _descriptor33, this);\n    }\n    // load methods\n    async loadProfitMargins() {\n      const profitMarginRef = this.belongsTo('profitMargin');\n      if (!profitMarginRef.id()) return null;\n      return profitMarginRef.load();\n    }\n    async loadStagePaymentOptions() {\n      await this.belongsTo('stagePaymentOption').load();\n    }\n    async loadCompanyLogo() {\n      await this.belongsTo('companyLogo').load();\n    }\n\n    /* computed */\n    get activeProjectTasks() {\n      // the reference API does not work well with computed properties and glimmer tracking https://github.com/emberjs/data/issues/7102\n      return this.activeProjects.flatMap(project => project.activeTasks);\n    }\n    get myAttachments() {\n      const linkAttachmentToEntityRecords = this.safeHasManyToValue('attachments') || [];\n      const attachmentIds = linkAttachmentToEntityRecords.map(item => (0, _object.get)(item, 'attachment.id'));\n      return this.store.peekAll('attachment')?.toArray().filter(item => attachmentIds.includes(item.id));\n    }\n    get allAttachments() {\n      const allProjectAttachments = this.activeProjects.flatMap(project => project.allAttachments);\n      return [...this.myAttachments, ...allProjectAttachments].sort((a, b) => a.dateCreated - b.dateCreated);\n    }\n    get activeProjects() {\n      // Read through the reference: an async hasMany property is a\n      // PromiseManyArray, which has no filter.\n      return this.safeHasManyToValue('projects')?.filter(c => ['OPEN'].includes(c.status)) || [];\n    }\n    get effectiveProfitMargin() {\n      const profitMargin = this.belongsTo('profitMargin').value();\n\n      // if we don't have a profit margin on the entity provide a default profit type\n      // this should be the only place we provide a default profit type\n      // all records will eventually inherit this value\n      return {\n        profitType: profitMargin?.type || 'MARGIN',\n        labourPercentage: {\n          value: profitMargin?.labourPercentage ?? null,\n          type: profitMargin?.profitType || 'MARGIN',\n          route: 'entity.settings.company',\n          model: this.id,\n          record: this\n        },\n        additionalLabourMargin: {\n          value: profitMargin?.additionalLabourMargin ?? null,\n          type: profitMargin?.profitType || 'MARGIN',\n          route: 'entity.settings.company',\n          model: this.id,\n          record: this\n        },\n        materialsPercentage: {\n          value: profitMargin?.materialsPercentage ?? null,\n          type: profitMargin?.profitType || 'MARGIN',\n          route: 'entity.settings.company',\n          model: this.id,\n          record: this\n        },\n        subcontractorsPercentage: {\n          value: profitMargin?.subcontractorsPercentage ?? null,\n          type: profitMargin?.profitType || 'MARGIN',\n          route: 'entity.settings.company',\n          model: this.id,\n          record: this\n        },\n        sumsPercentage: {\n          value: profitMargin?.sumsPercentage ?? null,\n          type: profitMargin?.profitType || 'MARGIN',\n          route: 'entity.settings.company',\n          model: this.id,\n          record: this\n        }\n      };\n    }\n    get budgetTotal() {\n      // the reference API does not work well with computed properties and glimmer tracking https://github.com/emberjs/data/issues/7102\n      const projects = this.get('activeProjects') || [];\n      return projects.reduce((total, v) => {\n        total.manHours += v.get('budgetTotalManhours') || 0;\n        total.labour += v.get('budgetTotalLabour') || 0;\n        total.materials += v.get('budgetTotalMaterials') || 0;\n        total.subcontractors += v.get('budgetTotalSubcontractors') || 0;\n        total.sums += v.get('budgetTotalSums') || 0;\n        total.total += v.get('budgetTotalTotal') || 0;\n        return total;\n      }, {\n        manHours: 0,\n        labour: 0,\n        materials: 0,\n        subcontractors: 0,\n        sums: 0,\n        total: 0\n      });\n    }\n    get quoteTotal() {\n      // the reference API does not work well with computed properties and glimmer tracking https://github.com/emberjs/data/issues/7102\n      const projects = this.get('activeProjects') || [];\n      return projects.reduce((total, v) => {\n        total.manHours += v.get('quoteTotalManhours') || 0;\n        total.labour += v.get('quoteTotalLabour') || 0;\n        total.materials += v.get('quoteTotalMaterials') || 0;\n        total.subcontractors += v.get('quoteTotalSubcontractors') || 0;\n        total.sums += v.get('quoteTotalSums') || 0;\n        total.total += v.get('quoteTotalTotal') || 0;\n        return total;\n      }, {\n        manHours: 0,\n        labour: 0,\n        materials: 0,\n        subcontractors: 0,\n        sums: 0,\n        total: 0\n      });\n    }\n    get gst() {\n      let gstValue = 0.15;\n      switch (this.sessionData.entity.region) {\n        case 'AUS':\n          gstValue = 0.1;\n          break;\n        case 'NZL':\n          gstValue = 0.15;\n          break;\n        default:\n          break;\n      }\n      return gstValue;\n    }\n    get entityLinkedAttributes() {\n      const attributes = (0, _collectionToArray.default)(this.attributes);\n      return attributes.map(item => item.belongsTo('attribute').id());\n    }\n    get calEducationCouponCode() {\n      return this._meta?.calEducationCouponCode;\n    }\n    includesSomeClaims(...checks) {\n      return checks.some(c => this.entityLinkedAttributes.includes(c));\n    }\n    includesClaims(...checks) {\n      return checks.every(c => this.entityLinkedAttributes.includes(c));\n    }\n    excludesSomeClaims(...checks) {\n      return !checks.some(c => this.entityLinkedAttributes.includes(c));\n    }\n    excludesClaims(...checks) {\n      return checks.every(c => !this.entityLinkedAttributes.includes(c));\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"name\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"region\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"system\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"canChangeSystem\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"firstClosedPeriod\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"balanceDate\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"identityProviders\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"brand\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"cbPlanId\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"cbCustomerId\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"contactEmail\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"address\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"businessNumber\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"taxNumber\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec14], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, \"parent\", [_dec15], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, \"partner\", [_dec16], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor19 = _applyDecoratedDescriptor(_class2.prototype, \"profitMargin\", [_dec17], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor20 = _applyDecoratedDescriptor(_class2.prototype, \"defaultLabourCostCalculator\", [_dec18], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor21 = _applyDecoratedDescriptor(_class2.prototype, \"attributes\", [_dec19], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor22 = _applyDecoratedDescriptor(_class2.prototype, \"projects\", [_dec20], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor23 = _applyDecoratedDescriptor(_class2.prototype, \"pricingConnection\", [_dec21], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor24 = _applyDecoratedDescriptor(_class2.prototype, \"financialOptions\", [_dec22], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor25 = _applyDecoratedDescriptor(_class2.prototype, \"eaccountsInvoiceIntegration\", [_dec23], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor26 = _applyDecoratedDescriptor(_class2.prototype, \"xeroConnection\", [_dec24], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor27 = _applyDecoratedDescriptor(_class2.prototype, \"quickBooksConnection\", [_dec25], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor28 = _applyDecoratedDescriptor(_class2.prototype, \"allEntityAttachments\", [_dec26], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor29 = _applyDecoratedDescriptor(_class2.prototype, \"attachments\", [_dec27], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor30 = _applyDecoratedDescriptor(_class2.prototype, \"companyLogo\", [_dec28], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor31 = _applyDecoratedDescriptor(_class2.prototype, \"stagePaymentOption\", [_dec29], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor32 = _applyDecoratedDescriptor(_class2.prototype, \"purchasesGlAccount\", [_dec30], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor33 = _applyDecoratedDescriptor(_class2.prototype, \"salesGlAccount\", [_dec31], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"allAttachments\", [_dec32], Object.getOwnPropertyDescriptor(_class2.prototype, \"allAttachments\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"budgetTotal\", [_dec33], Object.getOwnPropertyDescriptor(_class2.prototype, \"budgetTotal\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"quoteTotal\", [_dec34], Object.getOwnPropertyDescriptor(_class2.prototype, \"quoteTotal\"), _class2.prototype), _class2);\n});","define(\"portal/models/estimate\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('string'), _dec5 = (0, _model.attr)('date'), _dec6 = (0, _model.attr)('string', {\n    defaultValue: 'DRAFT'\n  }), _dec7 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec8 = (0, _model.belongsTo)('project', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      /* attrs */\n      _initializerDefineProperty(this, \"name\", _descriptor, this);\n      _initializerDefineProperty(this, \"pricingJobId\", _descriptor2, this);\n      _initializerDefineProperty(this, \"pricingMerchantName\", _descriptor3, this);\n      _initializerDefineProperty(this, \"pricingMerchantId\", _descriptor4, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor5, this);\n      _initializerDefineProperty(this, \"status\", _descriptor6, this);\n      /* relationships */\n      _initializerDefineProperty(this, \"entity\", _descriptor7, this);\n      _initializerDefineProperty(this, \"project\", _descriptor8, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"name\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"pricingJobId\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"pricingMerchantName\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"pricingMerchantId\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"status\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"project\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/financial-option\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('number'), _dec2 = (0, _model.attr)('date'), _dec3 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: 'financialOptions'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"balanceDate\", _descriptor, this);\n      _initializerDefineProperty(this, \"firstClosedPeriod\", _descriptor2, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor3, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"balanceDate\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"firstClosedPeriod\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/gl-account\", [\"exports\", \"@ember-data/model\", \"@ember/service\", \"portal/config/environment\"], function (_exports, _model, _service, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"@ember/service\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('string'), _dec5 = (0, _model.attr)('number'), _dec6 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec7 = (0, _model.attr)('date'), _dec8 = (0, _model.attr)('date'), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"xeroIntegration\", _descriptor, this);\n      _initializerDefineProperty(this, \"accountingPlatform\", _descriptor2, this);\n      _initializerDefineProperty(this, \"name\", _descriptor3, this);\n      _initializerDefineProperty(this, \"code\", _descriptor4, this);\n      _initializerDefineProperty(this, \"xeroAccountId\", _descriptor5, this);\n      _initializerDefineProperty(this, \"quickbooksAccountId\", _descriptor6, this);\n      _initializerDefineProperty(this, \"taxRate\", _descriptor7, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor8, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor9, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor0, this);\n    }\n    get isLinkedToAccountingPlatform() {\n      return Boolean(this.xeroAccountId || this.quickbooksAccountId);\n    }\n    get isLinkedToActiveAccountingPlatform() {\n      if (this.accountingPlatform.activePlatform === 'xero') {\n        return Boolean(this.xeroAccountId);\n      }\n      if (this.accountingPlatform.activePlatform === 'quickbooks') {\n        return Boolean(this.quickbooksAccountId);\n      }\n      return false;\n    }\n    get viewGlAccountUrl() {\n      if (this.accountingPlatform.activePlatform === 'xero') {\n        if (!this.xeroAccountId) return '';\n        return `https://go.xero.com/organisationlogin/default.aspx?shortcode=${this.xeroIntegration.companyId}&redirecturl=/GeneralLedger/ChartOfAccounts.aspx?q=${this.code}`;\n      }\n      if (this.accountingPlatform.activePlatform === 'quickbooks') {\n        if (this.quickbooksAccountId) {\n          return `${_environment.default.urls.quickbooksUrl}/app/chartofaccounts`;\n        }\n      }\n      return '';\n    }\n    get label() {\n      // we need filter this because, quickbooks does not have code\n      const values = [this.code, this.name].filter(Boolean);\n      return values.join(' - ');\n    }\n    get searchField() {\n      return `${this.code ?? ''} ${this.name ?? ''}`;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"xeroIntegration\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"accountingPlatform\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"name\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"code\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"xeroAccountId\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"quickbooksAccountId\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"taxRate\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/import\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _dec10, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('date'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('boolean'), _dec5 = (0, _model.attr)('boolean'), _dec6 = (0, _model.attr)('boolean'), _dec7 = (0, _model.attr)('array'), _dec8 = (0, _model.attr)('array'), _dec9 = (0, _model.attr)('date'), _dec0 = (0, _model.attr)('date'), _dec1 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec10 = (0, _model.belongsTo)('user', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"date\", _descriptor, this);\n      _initializerDefineProperty(this, \"system\", _descriptor2, this);\n      _initializerDefineProperty(this, \"systemId\", _descriptor3, this);\n      _initializerDefineProperty(this, \"includesProfitAndLoss\", _descriptor4, this);\n      _initializerDefineProperty(this, \"includesBalanceSheet\", _descriptor5, this);\n      _initializerDefineProperty(this, \"includesOtherData\", _descriptor6, this);\n      _initializerDefineProperty(this, \"externalBalances\", _descriptor7, this);\n      _initializerDefineProperty(this, \"manualBalances\", _descriptor8, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor9, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor0, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor1, this);\n      _initializerDefineProperty(this, \"importer\", _descriptor10, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"date\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"system\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"systemId\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"includesProfitAndLoss\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"includesBalanceSheet\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"includesOtherData\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"externalBalances\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"manualBalances\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"importer\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/index\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  class _default extends _model.default {\n    // write a custom toJSON method that includes the record id in the serialized object\n    toJSON() {\n      const serialized = this.serialize({\n        includeId: true\n      });\n      const obj = {\n        ...serialized.data.attributes,\n        id: serialized.data.id\n      };\n      Object.entries(serialized.data.relationships).forEach(([key, value]) => {\n        if (Array.isArray(value.data)) {\n          obj[key] = value.data.map(relationship => relationship.id);\n          return;\n        }\n        obj[key] = value.data?.id;\n      });\n      return obj;\n    }\n  }\n  _exports.default = _default;\n});","define(\"portal/models/invoice-attachment\", [\"exports\", \"@ember-data/model\", \"portal/models/base-attachment-model\"], function (_exports, _model, _baseAttachmentModel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"portal/models/base-attachment-model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.belongsTo)('invoice', {\n    async: true,\n    inverse: 'attachments'\n  }), _dec2 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _baseAttachmentModel.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"invoice\", _descriptor, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"invoice\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/invoice-auto-map-directive\", [\"exports\", \"@ember-data/model\", \"portal/models/base-model\"], function (_exports, _model, _baseModel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"portal/models/base-model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('date'), _dec4 = (0, _model.attr)('date'), _dec5 = (0, _model.belongsTo)('project', {\n    async: true,\n    inverse: null\n  }), _dec6 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _baseModel.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"value\", _descriptor, this);\n      _initializerDefineProperty(this, \"kind\", _descriptor2, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor3, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor4, this);\n      _initializerDefineProperty(this, \"project\", _descriptor5, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor6, this);\n    }\n    /**\n     * A lower case version of the value for duplicate comparison.\n     */\n    get lowerValue() {\n      return (this.value || '').toLowerCase();\n    }\n    get isValid() {\n      return Boolean(this.value && this.belongsTo('project').id() && this.belongsTo('entity').id() && this.kind);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"value\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"kind\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"project\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/invoice-invoice-option\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('string'), _dec5 = (0, _model.attr)('string'), _dec6 = (0, _model.attr)('array'), _dec7 = (0, _model.attr)('boolean'), _dec8 = (0, _model.attr)('boolean'), _dec9 = (0, _model.attr)('boolean'), _dec0 = (0, _model.attr)('boolean'), _dec1 = (0, _model.attr)('boolean'), _dec10 = (0, _model.attr)('boolean'), _dec11 = (0, _model.attr)('boolean'), _dec12 = (0, _model.attr)('date'), _dec13 = (0, _model.attr)('date'), _dec14 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec15 = (0, _model.belongsTo)('invoice', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"breakdownNotes\", _descriptor, this);\n      _initializerDefineProperty(this, \"firstGroupBy\", _descriptor2, this);\n      _initializerDefineProperty(this, \"materialsDetail\", _descriptor3, this);\n      _initializerDefineProperty(this, \"labourDetail\", _descriptor4, this);\n      _initializerDefineProperty(this, \"subcontractorsDetail\", _descriptor5, this);\n      _initializerDefineProperty(this, \"timesheetDetails\", _descriptor6, this);\n      _initializerDefineProperty(this, \"includeBillable\", _descriptor7, this);\n      _initializerDefineProperty(this, \"includeInvoiced\", _descriptor8, this);\n      _initializerDefineProperty(this, \"includeLabourBillsProfitMargins\", _descriptor9, this);\n      _initializerDefineProperty(this, \"includeMaterialBillsProfitMargins\", _descriptor0, this);\n      _initializerDefineProperty(this, \"includeSubcontractorBillsProfitMargins\", _descriptor1, this);\n      _initializerDefineProperty(this, \"includeTimesheetsProfitMargins\", _descriptor10, this);\n      _initializerDefineProperty(this, \"includeTimesheetsCostMargins\", _descriptor11, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor12, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor13, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor14, this);\n      _initializerDefineProperty(this, \"invoice\", _descriptor15, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"breakdownNotes\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"firstGroupBy\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"materialsDetail\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"labourDetail\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"subcontractorsDetail\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"timesheetDetails\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"includeBillable\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"includeInvoiced\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"includeLabourBillsProfitMargins\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"includeMaterialBillsProfitMargins\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"includeSubcontractorBillsProfitMargins\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"includeTimesheetsProfitMargins\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"includeTimesheetsCostMargins\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec14], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, \"invoice\", [_dec15], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/invoice-item\", [\"exports\", \"@ember-data/model\", \"portal/models/base-model\"], function (_exports, _model, _baseModel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"portal/models/base-model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('number'), _dec5 = (0, _model.attr)('number'), _dec6 = (0, _model.attr)('number'), _dec7 = (0, _model.attr)('number'), _dec8 = (0, _model.attr)('string', {\n    defaultValue: 'ALL'\n  }), _dec9 = (0, _model.attr)('date'), _dec0 = (0, _model.attr)('string', {\n    defaultValue: 'ALL'\n  }), _dec1 = (0, _model.attr)('date'), _dec10 = (0, _model.attr)('date'), _dec11 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec12 = (0, _model.hasMany)('link-invoice-item-to-project', {\n    async: true,\n    inverse: null\n  }), _dec13 = (0, _model.hasMany)('link-invoice-item-to-task', {\n    async: true,\n    inverse: null\n  }), _dec14 = (0, _model.hasMany)('link-invoice-item-to-timesheet', {\n    async: true,\n    inverse: null\n  }), _dec15 = (0, _model.hasMany)('link-invoice-item-to-bill-item', {\n    async: true,\n    inverse: null\n  }), _dec16 = (0, _model.belongsTo)('invoice', {\n    async: true,\n    inverse: 'items'\n  }), _dec17 = (0, _model.belongsTo)('gl-account', {\n    async: true,\n    inverse: null\n  }), _dec18 = (0, _model.belongsTo)('stage-payment', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _baseModel.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"code\", _descriptor, this);\n      _initializerDefineProperty(this, \"description\", _descriptor2, this);\n      _initializerDefineProperty(this, \"unit\", _descriptor3, this);\n      _initializerDefineProperty(this, \"unitPrice\", _descriptor4, this);\n      _initializerDefineProperty(this, \"quantity\", _descriptor5, this);\n      _initializerDefineProperty(this, \"taxRate\", _descriptor6, this);\n      _initializerDefineProperty(this, \"sortIndex\", _descriptor7, this);\n      _initializerDefineProperty(this, \"allocationType\", _descriptor8, this);\n      _initializerDefineProperty(this, \"allocationDate\", _descriptor9, this);\n      _initializerDefineProperty(this, \"contractType\", _descriptor0, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor1, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor10, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor11, this);\n      _initializerDefineProperty(this, \"projects\", _descriptor12, this);\n      _initializerDefineProperty(this, \"tasks\", _descriptor13, this);\n      _initializerDefineProperty(this, \"timesheets\", _descriptor14, this);\n      _initializerDefineProperty(this, \"billItems\", _descriptor15, this);\n      _initializerDefineProperty(this, \"invoice\", _descriptor16, this);\n      _initializerDefineProperty(this, \"glAccount\", _descriptor17, this);\n      _initializerDefineProperty(this, \"stagePayment\", _descriptor18, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"code\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"description\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"unit\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"unitPrice\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"quantity\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"taxRate\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"sortIndex\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"allocationType\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"allocationDate\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"contractType\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"projects\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"tasks\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"timesheets\", [_dec14], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, \"billItems\", [_dec15], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, \"invoice\", [_dec16], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, \"glAccount\", [_dec17], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, \"stagePayment\", [_dec18], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/invoice\", [\"exports\", \"@ember-data/model\", \"@ember/service\", \"portal/models/base-model\"], function (_exports, _model, _service, _baseModel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"@ember/service\",0,\"portal/models/base-model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string', {\n    defaultValue: 'DRAFT'\n  }), _dec3 = (0, _model.attr)('string', {\n    defaultValue: 'INVOICE'\n  }), _dec4 = (0, _model.attr)('string'), _dec5 = (0, _model.attr)('string'), _dec6 = (0, _model.attr)('date'), _dec7 = (0, _model.attr)('date'), _dec8 = (0, _model.attr)('date'), _dec9 = (0, _model.attr)('date'), _dec0 = (0, _model.belongsTo)('stage-payment', {\n    async: true,\n    inverse: null\n  }), _dec1 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec10 = (0, _model.belongsTo)('contact', {\n    async: true,\n    inverse: null\n  }), _dec11 = (0, _model.belongsTo)('invoice', {\n    async: true,\n    inverse: null\n  }), _dec12 = (0, _model.hasMany)('invoice-item', {\n    async: true,\n    inverse: 'invoice'\n  }), _dec13 = (0, _model.hasMany)('invoice-attachment', {\n    async: true,\n    inverse: 'invoice'\n  }), _class2 = class _class2 extends _baseModel.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n      _initializerDefineProperty(this, \"invoiceNumber\", _descriptor2, this);\n      _initializerDefineProperty(this, \"status\", _descriptor3, this);\n      _initializerDefineProperty(this, \"invoiceType\", _descriptor4, this);\n      _initializerDefineProperty(this, \"xeroInvoiceId\", _descriptor5, this);\n      _initializerDefineProperty(this, \"quickbooksInvoiceId\", _descriptor6, this);\n      _initializerDefineProperty(this, \"issueDate\", _descriptor7, this);\n      _initializerDefineProperty(this, \"dueDate\", _descriptor8, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor9, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor0, this);\n      _initializerDefineProperty(this, \"stagePayment\", _descriptor1, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor10, this);\n      _initializerDefineProperty(this, \"toContact\", _descriptor11, this);\n      _initializerDefineProperty(this, \"referencedInvoice\", _descriptor12, this);\n      _initializerDefineProperty(this, \"items\", _descriptor13, this);\n      _initializerDefineProperty(this, \"attachments\", _descriptor14, this);\n    }\n    get totalPrice() {\n      return (this.safeHasManyToValue('items')?.toArray() || []).reduce((acc, item) => acc + (item.unitPrice || 0) * (item.quantity || 0), 0);\n    }\n    get statusLabel() {\n      switch (this.status) {\n        case 'COMPLETED':\n          return this.intl.t('common.Completed');\n        case 'AWAITING_APPROVAL':\n          return this.intl.t('common.Awaiting approval');\n        case 'DRAFT':\n          return this.intl.t('common.Draft');\n        case 'APPROVED':\n          return this.intl.t('common.Approved');\n      }\n      return null;\n    }\n    get typeLabel() {\n      switch (this.invoiceType) {\n        case 'INVOICE':\n          return this.intl.t('common.Invoice');\n        case 'CREDIT_NOTE':\n          return this.intl.t('common.Credit note');\n      }\n      return null;\n    }\n    get xeroDeepLinkPath() {\n      switch (this.invoiceType) {\n        case 'INVOICE':\n          return `&redirecturl=/AccountsReceivable/Edit.aspx?InvoiceID=${this.xeroInvoiceId}`;\n        case 'CREDIT_NOTE':\n          return `&redirecturl=/AccountsReceivable/EditCreditNote.aspx?creditNoteID=${this.xeroInvoiceId}`;\n      }\n      return null;\n    }\n    get myAttachments() {\n      // the reference API does not work well with computed properties and glimmer tracking https://github.com/emberjs/data/issues/7102\n      const invoiceAttachments = this.safeHasManyToValue('attachments')?.toArray() || [];\n      return invoiceAttachments.map(item => item.attachmentInfo);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"invoiceNumber\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"status\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"invoiceType\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"xeroInvoiceId\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"quickbooksInvoiceId\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"issueDate\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"dueDate\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"stagePayment\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"toContact\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"referencedInvoice\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"items\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"attachments\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/ips-connection\", [\"exports\", \"@ember-data/model\", \"portal/models/base-model\"], function (_exports, _model, _baseModel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"portal/models/base-model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let IpsConnectionModel = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('date'), _dec4 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _class = class IpsConnectionModel extends _baseModel.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"ipsEmail\", _descriptor, this);\n      _initializerDefineProperty(this, \"contactEmail\", _descriptor2, this);\n      _initializerDefineProperty(this, \"disabledAt\", _descriptor3, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor4, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"ipsEmail\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"contactEmail\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"disabledAt\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"entity\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"portal/models/ips-document\", [\"exports\", \"moment\", \"@ember-data/model\"], function (_exports, _moment, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1;\n  0; //eaimeta@70e063a35619d71f0,\"moment\",0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('string'), _dec5 = (0, _model.attr)('string'), _dec6 = (0, _model.attr)('string'), _dec7 = (0, _model.attr)('date'), _dec8 = (0, _model.attr)('date'), _dec9 = (0, _model.attr)('date'), _dec0 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec1 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"externalId\", _descriptor, this);\n      _initializerDefineProperty(this, \"filename\", _descriptor2, this);\n      _initializerDefineProperty(this, \"email\", _descriptor3, this);\n      _initializerDefineProperty(this, \"status\", _descriptor4, this);\n      _initializerDefineProperty(this, \"invoiceNumber\", _descriptor5, this);\n      _initializerDefineProperty(this, \"senderName\", _descriptor6, this);\n      _initializerDefineProperty(this, \"issueDate\", _descriptor7, this);\n      _initializerDefineProperty(this, \"dueDate\", _descriptor8, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor9, this);\n      _initializerDefineProperty(this, \"recipient\", _descriptor0, this);\n      _initializerDefineProperty(this, \"manager\", _descriptor1, this);\n    }\n    get displayAge() {\n      return (0, _moment.default)(this.dateCreated).fromNow();\n    }\n    get displayStatus() {\n      return this.status.split('_').map(w => w.charAt(0).toUpperCase() + w.slice(1).toLowerCase()).join(' ');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"externalId\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"filename\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"email\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"status\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"invoiceNumber\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"senderName\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"issueDate\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"dueDate\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"recipient\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"manager\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/itm-supplier\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('string'), _dec5 = (0, _model.attr)('string'), _dec6 = (0, _model.attr)('string'), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"name\", _descriptor, this);\n      _initializerDefineProperty(this, \"contactPerson\", _descriptor2, this);\n      _initializerDefineProperty(this, \"contactNumber\", _descriptor3, this);\n      _initializerDefineProperty(this, \"contactEmail\", _descriptor4, this);\n      _initializerDefineProperty(this, \"address\", _descriptor5, this);\n      _initializerDefineProperty(this, \"eaccountsSupplierCode\", _descriptor6, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"name\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"contactPerson\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"contactNumber\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"contactEmail\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"address\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"eaccountsSupplierCode\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/kpi\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('string'), _dec5 = (0, _model.attr)('number'), _dec6 = (0, _model.attr)('string'), _dec7 = (0, _model.attr)('date'), _dec8 = (0, _model.attr)('date'), _dec9 = (0, _model.attr)('boolean', {\n    defaultValue: true\n  }), _dec0 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"name\", _descriptor, this);\n      _initializerDefineProperty(this, \"introLine\", _descriptor2, this);\n      _initializerDefineProperty(this, \"description\", _descriptor3, this);\n      _initializerDefineProperty(this, \"strategies\", _descriptor4, this);\n      _initializerDefineProperty(this, \"sortIndex\", _descriptor5, this);\n      _initializerDefineProperty(this, \"format\", _descriptor6, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor7, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor8, this);\n      _initializerDefineProperty(this, \"active\", _descriptor9, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor0, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"name\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"introLine\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"description\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"strategies\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"sortIndex\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"format\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"active\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/labour-cost-calculator-item\", [\"exports\", \"@ember-data/model\", \"@ember/object\", \"portal/models/base-model\"], function (_exports, _model, _object, _baseModel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"@ember/object\",0,\"portal/models/base-model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string', {\n    defaultValue: ''\n  }), _dec2 = (0, _model.attr)('string', {\n    defaultValue: 'percentOfPayRate'\n  }), _dec3 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec4 = (0, _model.attr)('boolean', {\n    defaultValue: true\n  }), _dec5 = (0, _model.attr)('boolean', {\n    defaultValue: false\n  }), _dec6 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec7 = (0, _model.belongsTo)('labour-cost-calculator', {\n    async: true,\n    inverse: 'items'\n  }), _dec8 = (0, _object.computed)('value', 'valueType', 'calculator'), _class2 = class _class2 extends _baseModel.default {\n    constructor(...args) {\n      super(...args);\n      /* attrs */\n      _initializerDefineProperty(this, \"label\", _descriptor, this);\n      // enum['minutesPerDay', 'daysPerYear', 'percentOfPayRate']\n      _initializerDefineProperty(this, \"valueType\", _descriptor2, this);\n      _initializerDefineProperty(this, \"value\", _descriptor3, this);\n      _initializerDefineProperty(this, \"enabled\", _descriptor4, this);\n      _initializerDefineProperty(this, \"isSystem\", _descriptor5, this);\n      /* relationships */\n      _initializerDefineProperty(this, \"entity\", _descriptor6, this);\n      _initializerDefineProperty(this, \"calculator\", _descriptor7, this);\n    }\n    /* computed */\n    get percentage() {\n      switch (this.valueType) {\n        case 'minutesPerDay':\n          return this.value / 60 / (this.belongsTo('calculator').value()?.workingHoursPerDay || Infinity);\n        case 'daysPerYear':\n          return this.value / (this.belongsTo('calculator').value()?.annualWorkingDays || Infinity);\n        case 'percentOfPayRate':\n          return this.value;\n        default:\n          return 0;\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"label\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"valueType\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"value\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"enabled\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"isSystem\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"calculator\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"percentage\", [_dec8], Object.getOwnPropertyDescriptor(_class2.prototype, \"percentage\"), _class2.prototype), _class2);\n});","define(\"portal/models/labour-cost-calculator\", [\"exports\", \"@ember-data/model\", \"@ember/object\", \"lodash\", \"portal/models/base-model\"], function (_exports, _model, _object, _lodash, _baseModel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"@ember/object\",0,\"lodash\",0,\"portal/models/base-model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('number', {\n    defaultValue: 8\n  }), _dec3 = (0, _model.attr)('number', {\n    defaultValue: 5\n  }), _dec4 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec5 = (0, _model.hasMany)('worker', {\n    async: true,\n    inverse: 'costCalculatorUsed'\n  }), _dec6 = (0, _model.hasMany)('labour-cost-calculator-item', {\n    async: true,\n    inverse: 'calculator'\n  }), _dec7 = (0, _object.computed)('workingDaysPerWeek'), _class2 = class _class2 extends _baseModel.default {\n    constructor(...args) {\n      super(...args);\n      /* attrs */\n      _initializerDefineProperty(this, \"label\", _descriptor, this);\n      _initializerDefineProperty(this, \"workingHoursPerDay\", _descriptor2, this);\n      _initializerDefineProperty(this, \"workingDaysPerWeek\", _descriptor3, this);\n      /* relationships */\n      _initializerDefineProperty(this, \"entity\", _descriptor4, this);\n      _initializerDefineProperty(this, \"usedBy\", _descriptor5, this);\n      _initializerDefineProperty(this, \"items\", _descriptor6, this);\n    }\n    get sortedItems() {\n      const systemItems = [];\n      const otherItems = [];\n      this.items.forEach(item => {\n        if (item.isDeleted) return; // omit deleted items\n\n        (item.isSystem ? systemItems : otherItems).push(item);\n      });\n      return [..._lodash.default.sortBy(systemItems, 'label'), ..._lodash.default.sortBy(otherItems, 'dateCreated')];\n    }\n    get annualWorkingDays() {\n      return this.workingDaysPerWeek * 52;\n    }\n    get extraCostPercentage() {\n      return this.sortedItems.filterBy('enabled', true).reduce((total, item) => total += item.percentage, 0);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"label\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"workingHoursPerDay\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"workingDaysPerWeek\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"usedBy\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"items\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"annualWorkingDays\", [_dec7], Object.getOwnPropertyDescriptor(_class2.prototype, \"annualWorkingDays\"), _class2.prototype), _class2);\n});","define(\"portal/models/link-attachment-to-entity\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.belongsTo)('attachment', {\n    async: true,\n    inverse: null\n  }), _dec2 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: 'attachments'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"attachment\", _descriptor, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"attachment\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/link-attachment-to-project\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.belongsTo)('attachment', {\n    async: true,\n    inverse: null\n  }), _dec2 = (0, _model.belongsTo)('project', {\n    async: true,\n    inverse: 'attachments'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"attachment\", _descriptor, this);\n      _initializerDefineProperty(this, \"project\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"attachment\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"project\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/link-attachment-to-purchase-order\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.belongsTo)('attachment', {\n    async: true,\n    inverse: null\n  }), _dec2 = (0, _model.belongsTo)('purchase-order', {\n    async: true,\n    inverse: 'attachments'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"attachment\", _descriptor, this);\n      _initializerDefineProperty(this, \"purchaseOrder\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"attachment\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"purchaseOrder\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/link-attachment-to-task\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.belongsTo)('attachment', {\n    async: true,\n    inverse: null\n  }), _dec2 = (0, _model.belongsTo)('task', {\n    async: true,\n    inverse: 'attachments'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"attachment\", _descriptor, this);\n      _initializerDefineProperty(this, \"task\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"attachment\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"task\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/link-dashboard-module-account\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.belongsTo)('account', {\n    async: true,\n    inverse: null\n  }), _dec2 = (0, _model.belongsTo)('dashboard-module', {\n    async: true,\n    inverse: 'accounts'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"account\", _descriptor, this);\n      _initializerDefineProperty(this, \"dashboardModule\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"account\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"dashboardModule\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/link-dashboard-module-entity-group\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.belongsTo)('entity-group', {\n    async: true,\n    inverse: null\n  }), _dec2 = (0, _model.belongsTo)('dashboard-module', {\n    async: true,\n    inverse: 'entityGroups'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"entityGroup\", _descriptor, this);\n      _initializerDefineProperty(this, \"dashboardModule\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"entityGroup\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"dashboardModule\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/link-dashboard-module-entity\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec2 = (0, _model.belongsTo)('dashboard-module', {\n    async: true,\n    inverse: 'entities'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"entity\", _descriptor, this);\n      _initializerDefineProperty(this, \"dashboardModule\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"dashboardModule\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/link-dashboard-module-kpi\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.belongsTo)('kpi', {\n    async: true,\n    inverse: null\n  }), _dec2 = (0, _model.belongsTo)('dashboard-module', {\n    async: true,\n    inverse: 'kpis'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"kpi\", _descriptor, this);\n      _initializerDefineProperty(this, \"dashboardModule\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"kpi\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"dashboardModule\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/link-entity-group-can-be-accessed-by\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec2 = (0, _model.belongsTo)('entity-group', {\n    async: true,\n    inverse: 'canBeAccessedBy'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"entity\", _descriptor, this);\n      _initializerDefineProperty(this, \"entityGroup\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"entityGroup\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/link-entity-group-member\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec2 = (0, _model.belongsTo)('entity-group', {\n    async: true,\n    inverse: 'members'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"entity\", _descriptor, this);\n      _initializerDefineProperty(this, \"entityGroup\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"entityGroup\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/link-entity-to-entity-attribute\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: 'attributes'\n  }), _dec2 = (0, _model.belongsTo)('entity-attribute', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"entity\", _descriptor, this);\n      _initializerDefineProperty(this, \"attribute\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"attribute\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/link-invoice-item-to-bill-item\", [\"exports\", \"@ember-data/model\", \"portal/models/base-model\"], function (_exports, _model, _baseModel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"portal/models/base-model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('number'), _dec2 = (0, _model.belongsTo)('invoice-item', {\n    async: true,\n    inverse: null\n  }), _dec3 = (0, _model.belongsTo)('bill-item', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _baseModel.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"value\", _descriptor, this);\n      _initializerDefineProperty(this, \"invoiceItem\", _descriptor2, this);\n      _initializerDefineProperty(this, \"billItem\", _descriptor3, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"value\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"invoiceItem\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"billItem\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/link-invoice-item-to-project\", [\"exports\", \"@ember-data/model\", \"portal/models/base-model\"], function (_exports, _model, _baseModel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"portal/models/base-model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('number'), _dec2 = (0, _model.belongsTo)('invoice-item', {\n    async: true,\n    inverse: null\n  }), _dec3 = (0, _model.belongsTo)('project', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _baseModel.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"value\", _descriptor, this);\n      _initializerDefineProperty(this, \"invoiceItem\", _descriptor2, this);\n      _initializerDefineProperty(this, \"project\", _descriptor3, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"value\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"invoiceItem\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"project\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/link-invoice-item-to-task\", [\"exports\", \"@ember-data/model\", \"portal/models/base-model\"], function (_exports, _model, _baseModel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"portal/models/base-model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('number'), _dec2 = (0, _model.belongsTo)('invoice-item', {\n    async: true,\n    inverse: null\n  }), _dec3 = (0, _model.belongsTo)('task', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _baseModel.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"value\", _descriptor, this);\n      _initializerDefineProperty(this, \"invoiceItem\", _descriptor2, this);\n      _initializerDefineProperty(this, \"task\", _descriptor3, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"value\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"invoiceItem\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"task\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/link-invoice-item-to-timesheet\", [\"exports\", \"@ember-data/model\", \"portal/models/base-model\"], function (_exports, _model, _baseModel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"portal/models/base-model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('number'), _dec2 = (0, _model.belongsTo)('invoice-item', {\n    async: true,\n    inverse: null\n  }), _dec3 = (0, _model.belongsTo)('timesheet', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _baseModel.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"value\", _descriptor, this);\n      _initializerDefineProperty(this, \"invoiceItem\", _descriptor2, this);\n      _initializerDefineProperty(this, \"timesheet\", _descriptor3, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"value\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"invoiceItem\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"timesheet\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/link-task-to-stage-payment\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('number'), _dec2 = (0, _model.attr)('date'), _dec3 = (0, _model.attr)('date'), _dec4 = (0, _model.belongsTo)('task', {\n    async: true,\n    inverse: 'linkTasksToStagePayments'\n  }), _dec5 = (0, _model.belongsTo)('stage-payment', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"completionPercentage\", _descriptor, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor2, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor3, this);\n      _initializerDefineProperty(this, \"task\", _descriptor4, this);\n      _initializerDefineProperty(this, \"stagePayment\", _descriptor5, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"completionPercentage\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"task\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"stagePayment\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/link-user-to-entity-group\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec2 = (0, _model.belongsTo)('entity-group', {\n    async: true,\n    inverse: null\n  }), _dec3 = (0, _model.belongsTo)('user', {\n    async: true,\n    inverse: 'entityGroups'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"entity\", _descriptor, this);\n      _initializerDefineProperty(this, \"entityGroup\", _descriptor2, this);\n      _initializerDefineProperty(this, \"user\", _descriptor3, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"entityGroup\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"user\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/link-user-to-pricing-role\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec2 = (0, _model.belongsTo)('pricing-role', {\n    async: true,\n    inverse: null\n  }), _dec3 = (0, _model.belongsTo)('user', {\n    async: true,\n    inverse: 'pricingRoles'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"entity\", _descriptor, this);\n      _initializerDefineProperty(this, \"pricingRole\", _descriptor2, this);\n      _initializerDefineProperty(this, \"user\", _descriptor3, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"pricingRole\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"user\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/pm-connection\", [\"exports\", \"@ember-data/model\", \"portal/models/base-model\"], function (_exports, _model, _baseModel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"portal/models/base-model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('boolean', {\n    defaultValue: true\n  }), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('date'), _dec5 = (0, _model.attr)('date'), _dec6 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _baseModel.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"autoSync\", _descriptor, this);\n      _initializerDefineProperty(this, \"accountCode\", _descriptor2, this);\n      _initializerDefineProperty(this, \"branchCode\", _descriptor3, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor4, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor5, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor6, this);\n    }\n    get isConnected() {\n      return this._meta?.isConnected;\n    }\n    set isConnected(value) {\n      // Replace _meta rather than writing into it: it is an attr, so mutating\n      // the object in place never notifies anything watching isConnected.\n      this._meta = {\n        ...this._meta,\n        isConnected: value\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"autoSync\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"accountCode\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"branchCode\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/pricing-connection\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('string'), _dec5 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: 'pricingConnection'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"connectionId\", _descriptor, this);\n      _initializerDefineProperty(this, \"connectionName\", _descriptor2, this);\n      _initializerDefineProperty(this, \"adminRoleId\", _descriptor3, this);\n      _initializerDefineProperty(this, \"adminRoleName\", _descriptor4, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor5, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"connectionId\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"connectionName\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"adminRoleId\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"adminRoleName\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/pricing-role\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      /* attrs */\n      _initializerDefineProperty(this, \"roleId\", _descriptor, this);\n      _initializerDefineProperty(this, \"name\", _descriptor2, this);\n      /* relationships */\n      _initializerDefineProperty(this, \"entity\", _descriptor3, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"roleId\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"name\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/profit-margin\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string', {\n    defaultValue: 'MARGIN'\n  }), _dec2 = (0, _model.attr)('number', {\n    defaultValue: null\n  }), _dec3 = (0, _model.attr)('number', {\n    defaultValue: null\n  }), _dec4 = (0, _model.attr)('number', {\n    defaultValue: null\n  }), _dec5 = (0, _model.attr)('number', {\n    defaultValue: null\n  }), _dec6 = (0, _model.attr)('number', {\n    defaultValue: null\n  }), _dec7 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      /* attrs */\n      _initializerDefineProperty(this, \"profitType\", _descriptor, this);\n      // enum: ['MARGIN', 'MARKUP']\n      _initializerDefineProperty(this, \"labourPercentage\", _descriptor2, this);\n      // applied on top of the charge-out rate; labourPercentage only builds the rate\n      _initializerDefineProperty(this, \"additionalLabourMargin\", _descriptor3, this);\n      _initializerDefineProperty(this, \"materialsPercentage\", _descriptor4, this);\n      _initializerDefineProperty(this, \"subcontractorsPercentage\", _descriptor5, this);\n      _initializerDefineProperty(this, \"sumsPercentage\", _descriptor6, this);\n      /* relationships */\n      _initializerDefineProperty(this, \"entity\", _descriptor7, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"profitType\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"labourPercentage\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"additionalLabourMargin\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"materialsPercentage\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"subcontractorsPercentage\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"sumsPercentage\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/progress-change-set\", [\"exports\", \"@ember-data/model\", \"@ember/service\"], function (_exports, _model, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec3 = (0, _model.belongsTo)('project', {\n    async: true,\n    inverse: null\n  }), _dec4 = (0, _model.belongsTo)('progress-version', {\n    async: true,\n    inverse: null\n  }), _dec5 = (0, _model.hasMany)('progress-change', {\n    async: true,\n    inverse: 'changeSet'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      /* attrs */\n      _initializerDefineProperty(this, \"status\", _descriptor2, this);\n      // enum: ['DRAFT', 'ACCEPTED']\n      /* relationships */\n      _initializerDefineProperty(this, \"entity\", _descriptor3, this);\n      _initializerDefineProperty(this, \"project\", _descriptor4, this);\n      _initializerDefineProperty(this, \"version\", _descriptor5, this);\n      _initializerDefineProperty(this, \"changes\", _descriptor6, this);\n    }\n    /* methods */\n    async findChangeForTask(task) {\n      const changes = await this.hasMany('changes').load();\n      return changes?.find(c => c.belongsTo('task').value() === task);\n    }\n    createChangeForTask(task, changeType) {\n      return this.store.createRecord('progress-change', {\n        changeSet: this,\n        changeType,\n        task,\n        entity: this.belongsTo('entity').value(),\n        project: this.belongsTo('project').value()\n      });\n    }\n    async deleteChangeForTask(task) {\n      const changes = await this.hasMany('changes').load();\n      const change = changes?.find(c => c.belongsTo('task').value() === task);\n      if (change) await change.destroyRecord();\n      if (changes?.length === 0) await this.destroyRecord();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"status\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"project\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"version\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"changes\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/progress-change\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec2 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec3 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec4 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec5 = (0, _model.belongsTo)('project', {\n    async: true,\n    inverse: null\n  }), _dec6 = (0, _model.belongsTo)('task', {\n    async: true,\n    inverse: null\n  }), _dec7 = (0, _model.belongsTo)('progress-change-set', {\n    async: true,\n    inverse: 'changes'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      /* attrs */\n      _initializerDefineProperty(this, \"forecastManHours\", _descriptor, this);\n      _initializerDefineProperty(this, \"actualManHours\", _descriptor2, this);\n      _initializerDefineProperty(this, \"progress\", _descriptor3, this);\n      /* relationships */\n      _initializerDefineProperty(this, \"entity\", _descriptor4, this);\n      _initializerDefineProperty(this, \"project\", _descriptor5, this);\n      _initializerDefineProperty(this, \"task\", _descriptor6, this);\n      _initializerDefineProperty(this, \"changeSet\", _descriptor7, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"forecastManHours\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"actualManHours\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"progress\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"project\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"task\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"changeSet\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/progress-version-value\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec3 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec4 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec5 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec6 = (0, _model.belongsTo)('project', {\n    async: true,\n    inverse: null\n  }), _dec7 = (0, _model.belongsTo)('task', {\n    async: true,\n    inverse: null\n  }), _dec8 = (0, _model.belongsTo)('progress-version', {\n    async: true,\n    inverse: 'values'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      /* attrs */\n      _initializerDefineProperty(this, \"name\", _descriptor, this);\n      _initializerDefineProperty(this, \"forecastManHours\", _descriptor2, this);\n      _initializerDefineProperty(this, \"actualManHours\", _descriptor3, this);\n      _initializerDefineProperty(this, \"progress\", _descriptor4, this);\n      /* relationships */\n      _initializerDefineProperty(this, \"entity\", _descriptor5, this);\n      _initializerDefineProperty(this, \"project\", _descriptor6, this);\n      _initializerDefineProperty(this, \"task\", _descriptor7, this);\n      _initializerDefineProperty(this, \"version\", _descriptor8, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"name\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"forecastManHours\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"actualManHours\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"progress\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"project\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"task\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"version\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/progress-version\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('number'), _dec3 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec4 = (0, _model.belongsTo)('project', {\n    async: true,\n    inverse: null\n  }), _dec5 = (0, _model.belongsTo)('progress-change-set', {\n    async: true,\n    inverse: null\n  }), _dec6 = (0, _model.hasMany)('progress-version-value', {\n    async: true,\n    inverse: 'version'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      /* attrs */\n      _initializerDefineProperty(this, \"name\", _descriptor, this);\n      _initializerDefineProperty(this, \"versionNumber\", _descriptor2, this);\n      /* relationships */\n      _initializerDefineProperty(this, \"entity\", _descriptor3, this);\n      _initializerDefineProperty(this, \"project\", _descriptor4, this);\n      _initializerDefineProperty(this, \"changeSet\", _descriptor5, this);\n      _initializerDefineProperty(this, \"values\", _descriptor6, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"name\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"versionNumber\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"project\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"changeSet\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"values\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/project-commit\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('number'), _dec2 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec3 = (0, _model.belongsTo)('project', {\n    async: true,\n    inverse: null\n  }), _dec4 = (0, _model.belongsTo)('task-change-set', {\n    async: true,\n    inverse: null\n  }), _dec5 = (0, _model.belongsTo)('budget-change-set', {\n    async: true,\n    inverse: null\n  }), _dec6 = (0, _model.belongsTo)('quote-change-set', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      /* attrs */\n      _initializerDefineProperty(this, \"commitNumber\", _descriptor, this);\n      /* relationships */\n      _initializerDefineProperty(this, \"entity\", _descriptor2, this);\n      _initializerDefineProperty(this, \"project\", _descriptor3, this);\n      _initializerDefineProperty(this, \"taskChangeSet\", _descriptor4, this);\n      _initializerDefineProperty(this, \"budgetChangeSet\", _descriptor5, this);\n      _initializerDefineProperty(this, \"quoteChangeSet\", _descriptor6, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"commitNumber\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"project\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"taskChangeSet\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"budgetChangeSet\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"quoteChangeSet\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/project-product\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('number'), _dec5 = (0, _model.attr)('string', {\n    defaultValue: 'ProjectProduct'\n  }), _dec6 = (0, _model.attr)('string'), _dec7 = (0, _model.attr)('string'), _dec8 = (0, _model.attr)('string'), _dec9 = (0, _model.attr)('string'), _dec0 = (0, _model.attr)('string'), _dec1 = (0, _model.attr)('date'), _dec10 = (0, _model.attr)('date'), _dec11 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec12 = (0, _model.belongsTo)('project', {\n    async: true,\n    inverse: null\n  }), _dec13 = (0, _model.belongsTo)('contact', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      /* attrs */\n      _initializerDefineProperty(this, \"productLibraryIdentifier\", _descriptor, this);\n      _initializerDefineProperty(this, \"description\", _descriptor2, this);\n      _initializerDefineProperty(this, \"sku\", _descriptor3, this);\n      _initializerDefineProperty(this, \"unitPrice\", _descriptor4, this);\n      _initializerDefineProperty(this, \"source\", _descriptor5, this);\n      _initializerDefineProperty(this, \"supplierName\", _descriptor6, this);\n      _initializerDefineProperty(this, \"unit\", _descriptor7, this);\n      _initializerDefineProperty(this, \"currency\", _descriptor8, this);\n      _initializerDefineProperty(this, \"manufacturer\", _descriptor9, this);\n      _initializerDefineProperty(this, \"usage\", _descriptor0, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor1, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor10, this);\n      /* relationships */\n      _initializerDefineProperty(this, \"entity\", _descriptor11, this);\n      _initializerDefineProperty(this, \"project\", _descriptor12, this);\n      _initializerDefineProperty(this, \"supplier\", _descriptor13, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"productLibraryIdentifier\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"description\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"sku\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"unitPrice\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"source\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"supplierName\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"unit\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"currency\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"manufacturer\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"usage\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"project\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"supplier\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/project\", [\"exports\", \"@ember/object\", \"@ember-data/model\", \"@ember/service\", \"portal/models/base-model\"], function (_exports, _object, _model, _service, _baseModel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _dec25, _dec26, _dec27, _dec28, _dec29, _dec30, _dec31, _dec32, _dec33, _dec34, _dec35, _dec36, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25, _descriptor26, _descriptor27, _descriptor28, _descriptor29, _descriptor30, _descriptor31, _descriptor32, _descriptor33, _descriptor34, _descriptor35, _descriptor36;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"@ember-data/model\",0,\"@ember/service\",0,\"@ember/object\",0,\"portal/models/base-model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('date'), _dec5 = (0, _model.attr)('date'), _dec6 = (0, _model.attr)('string', {\n    defaultValue: 'OPEN'\n  }), _dec7 = (0, _model.attr)('string', {\n    defaultValue: 'COST_PLUS'\n  }), _dec8 = (0, _model.attr)('number'), _dec9 = (0, _model.attr)('date'), _dec0 = (0, _model.attr)('string'), _dec1 = (0, _model.attr)('string'), _dec10 = (0, _model.attr)('string'), _dec11 = (0, _model.attr)('string'), _dec12 = (0, _model.attr)('string'), _dec13 = (0, _model.attr)('boolean', {\n    defaultValue: false\n  }), _dec14 = (0, _model.attr)('number'), _dec15 = (0, _model.attr)('number'), _dec16 = (0, _model.attr)('number', {\n    defaultValue: 100\n  }), _dec17 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: 'projects'\n  }), _dec18 = (0, _model.belongsTo)('budget-version', {\n    async: true,\n    inverse: null\n  }), _dec19 = (0, _model.belongsTo)('quote-version', {\n    async: true,\n    inverse: null\n  }), _dec20 = (0, _model.belongsTo)('scheduling-version', {\n    async: true,\n    inverse: null\n  }), _dec21 = (0, _model.belongsTo)('progress-version', {\n    async: true,\n    inverse: null\n  }), _dec22 = (0, _model.belongsTo)('budget-change-set', {\n    async: true,\n    inverse: null\n  }), _dec23 = (0, _model.belongsTo)('quote-change-set', {\n    async: true,\n    inverse: null\n  }), _dec24 = (0, _model.belongsTo)('task-change-set', {\n    async: true,\n    inverse: null\n  }), _dec25 = (0, _model.belongsTo)('scheduling-change-set', {\n    async: true,\n    inverse: null\n  }), _dec26 = (0, _model.belongsTo)('progress-change-set', {\n    async: true,\n    inverse: null\n  }), _dec27 = (0, _model.hasMany)('task', {\n    async: true,\n    inverse: 'project'\n  }), _dec28 = (0, _model.hasMany)('link-attachment-to-project', {\n    async: true,\n    inverse: 'project'\n  }), _dec29 = (0, _model.belongsTo)('gl-account', {\n    async: true,\n    inverse: null\n  }), _dec30 = (0, _model.belongsTo)('gl-account', {\n    async: true,\n    inverse: null\n  }), _dec31 = (0, _model.belongsTo)('xero-tracking-option', {\n    async: true,\n    inverse: null\n  }), _dec32 = (0, _model.belongsTo)('profit-margin', {\n    async: true,\n    inverse: null\n  }), _dec33 = (0, _model.belongsTo)('stage-payment-option', {\n    async: true,\n    inverse: null\n  }), _dec34 = (0, _object.computed)('myAttachments', 'activeTasks.@each.attachments'), _dec35 = (0, _object.computed)('budget.{labour,manHours,materials,subcontractors,sums}'), _dec36 = (0, _object.computed)('quote.{labour,manHours,materials,subcontractors,sums}'), _class2 = class _class2 extends _baseModel.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      /* attrs */\n      _initializerDefineProperty(this, \"name\", _descriptor4, this);\n      _initializerDefineProperty(this, \"description\", _descriptor5, this);\n      _initializerDefineProperty(this, \"address\", _descriptor6, this);\n      _initializerDefineProperty(this, \"startDate\", _descriptor7, this);\n      _initializerDefineProperty(this, \"completionDate\", _descriptor8, this);\n      _initializerDefineProperty(this, \"status\", _descriptor9, this);\n      _initializerDefineProperty(this, \"contractType\", _descriptor0, this);\n      // enum: ['COST_PLUS', 'FIXED_PRICE']\n      _initializerDefineProperty(this, \"sortIndex\", _descriptor1, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor10, this);\n      _initializerDefineProperty(this, \"projectReference\", _descriptor11, this);\n      _initializerDefineProperty(this, \"contactName\", _descriptor12, this);\n      _initializerDefineProperty(this, \"contactEmail\", _descriptor13, this);\n      _initializerDefineProperty(this, \"contactNumber\", _descriptor14, this);\n      _initializerDefineProperty(this, \"contactAddress\", _descriptor15, this);\n      _initializerDefineProperty(this, \"geofencingEnabled\", _descriptor16, this);\n      _initializerDefineProperty(this, \"lat\", _descriptor17, this);\n      _initializerDefineProperty(this, \"lng\", _descriptor18, this);\n      _initializerDefineProperty(this, \"rad\", _descriptor19, this);\n      /* relationships */\n      _initializerDefineProperty(this, \"entity\", _descriptor20, this);\n      _initializerDefineProperty(this, \"currentBudgetVersion\", _descriptor21, this);\n      _initializerDefineProperty(this, \"currentQuoteVersion\", _descriptor22, this);\n      _initializerDefineProperty(this, \"currentSchedulingVersion\", _descriptor23, this);\n      _initializerDefineProperty(this, \"currentProgressVersion\", _descriptor24, this);\n      _initializerDefineProperty(this, \"draftBudgetChangeSet\", _descriptor25, this);\n      _initializerDefineProperty(this, \"draftQuoteChangeSet\", _descriptor26, this);\n      _initializerDefineProperty(this, \"draftTaskChangeSet\", _descriptor27, this);\n      _initializerDefineProperty(this, \"draftSchedulingChangeSet\", _descriptor28, this);\n      _initializerDefineProperty(this, \"draftProgressChangeSet\", _descriptor29, this);\n      _initializerDefineProperty(this, \"tasks\", _descriptor30, this);\n      _initializerDefineProperty(this, \"attachments\", _descriptor31, this);\n      _initializerDefineProperty(this, \"purchasesGlAccount\", _descriptor32, this);\n      _initializerDefineProperty(this, \"salesGlAccount\", _descriptor33, this);\n      _initializerDefineProperty(this, \"xeroTrackingOption\", _descriptor34, this);\n      _initializerDefineProperty(this, \"profitMargin\", _descriptor35, this);\n      _initializerDefineProperty(this, \"stagePaymentOption\", _descriptor36, this);\n    }\n    /* load methods */\n    async loadTasks(options = {}) {\n      // we cannot use the project reference here because it does not return that users has access\n      await this.store.simpleQuery('task', {\n        project: this.id\n      }, options);\n    }\n    async reloadTasks() {\n      // we cannot use the project reference here because it does not return that users has access\n      const tasks = await this.store.simpleQuery('task', {\n        project: this.id\n      });\n      return tasks;\n    }\n    async loadTaskChanges() {\n      await Promise.all([this.belongsTo('draftTaskChangeSet').load(), this.store.simpleQuery('task-change', {\n        changeSet: this.belongsTo('draftTaskChangeSet').id()\n      })]);\n    }\n    async loadBudget() {\n      await Promise.all([this.belongsTo('currentBudgetVersion').load(), this.store.simpleQuery('budget-version-value', {\n        version: this.belongsTo('currentBudgetVersion').id()\n      }), this.belongsTo('draftBudgetChangeSet').load(), this.store.simpleQuery('budget-change', {\n        changeSet: this.belongsTo('draftBudgetChangeSet').id()\n      })]);\n    }\n    async loadQuote() {\n      await Promise.all([this.belongsTo('currentQuoteVersion').load(), this.store.simpleQuery('quote-version-value', {\n        version: this.belongsTo('currentQuoteVersion').id()\n      }), this.belongsTo('draftQuoteChangeSet').load(), this.store.simpleQuery('quote-change', {\n        changeSet: this.belongsTo('draftQuoteChangeSet').id()\n      })]);\n    }\n    async loadProfitMargins() {\n      const entity = await this.entity;\n      const loads = [];\n      if (this.profitMargin) {\n        loads.push(this.profitMargin);\n      }\n      if (entity) {\n        loads.push(entity.loadProfitMargins());\n      }\n      await Promise.all(loads);\n    }\n    async loadStagePaymentOptions() {\n      await Promise.all([this.belongsTo('stagePaymentOption').load(), this.belongsTo('entity').value().loadStagePaymentOptions()]);\n    }\n    async loadAttachments() {\n      const filter = {\n        and: [{\n          field: 'project',\n          op: 'EQ',\n          value: this.id\n        }]\n      };\n      await this.store.query('link-attachment-to-project', {\n        filter,\n        include: 'attachment'\n      });\n    }\n    async isSchedulingEnabled() {\n      const tasks = await this.store.simpleQuery('task', {\n        project: this.id,\n        status: {\n          $in: ['ACTIVE', 'DRAFT_CREATED']\n        }\n      });\n      if (!tasks.length) return false;\n      return tasks.toArray().some(t => t.isSchedulingEnabled);\n    }\n    get myAttachments() {\n      const linkAttachmentToProjectRecords = this.hasMany('attachments').value()?.toArray?.() || [];\n      const attachmentIds = linkAttachmentToProjectRecords.map(item => item.belongsTo('attachment').id());\n      return (this.store.peekAll('attachment')?.toArray?.() || []).filter(item => attachmentIds.includes(item.id));\n    }\n    get allAttachments() {\n      const activeChildrenAttachments = this.activeTasks.reduce((attachments, task) => {\n        return attachments.concat((task.hasMany('attachments').value()?.toArray?.() || []).map(item => item.belongsTo('attachment').value()));\n      }, []);\n      return [...this.myAttachments, ...activeChildrenAttachments].sort((a, b) => a.dateCreated - b.dateCreated);\n    }\n    get activeTimesheetTasks() {\n      return (this.hasMany('tasks').value()?.toArray?.() || []).filter(c => c.timesheetStatus === 'ACTIVE' && ['ACTIVE', 'DRAFT_CREATED'].includes(c.status));\n    }\n    get canDelete() {\n      return this._meta?.canDelete;\n    }\n    get parentTasks() {\n      return (this.hasMany('tasks').value()?.toArray?.() || []).filter(c => !c.belongsTo('parent').id());\n    }\n    get activeParentTasks() {\n      return (this.hasMany('tasks').value()?.toArray?.() || []).filter(c => !c.belongsTo('parent').id() && ['ACTIVE', 'DRAFT_CREATED'].includes(c.status));\n    }\n    get activeTasks() {\n      return (this.hasMany('tasks').value()?.toArray?.() || []).filter(c => ['ACTIVE', 'DRAFT_CREATED'].includes(c.status));\n    }\n    get budget() {\n      const currentBudgetVersion = this.belongsTo('currentBudgetVersion').value();\n      return {\n        labour: currentBudgetVersion?.labour || 0,\n        manHours: currentBudgetVersion?.manHours || 0,\n        materials: currentBudgetVersion?.materials || 0,\n        subcontractors: currentBudgetVersion?.subcontractors || 0,\n        sums: currentBudgetVersion?.sums || 0,\n        total: (currentBudgetVersion?.labour || 0) + (currentBudgetVersion?.materials || 0) + (currentBudgetVersion?.subcontractors || 0) + (currentBudgetVersion?.sums || 0)\n      };\n    }\n    get quote() {\n      const currentQuoteVersion = this.belongsTo('currentQuoteVersion').value();\n      return {\n        labour: currentQuoteVersion?.labour || 0,\n        manHours: currentQuoteVersion?.manHours || 0,\n        materials: currentQuoteVersion?.materials || 0,\n        subcontractors: currentQuoteVersion?.subcontractors || 0,\n        sums: currentQuoteVersion?.sums || 0,\n        total: (currentQuoteVersion?.labour || 0) + (currentQuoteVersion?.materials || 0) + (currentQuoteVersion?.subcontractors || 0) + (currentQuoteVersion?.sums || 0)\n      };\n    }\n    get draftBudget() {\n      const draftBudgetChangeSet = this.belongsTo('draftBudgetChangeSet').value();\n      return {\n        labour: this.budget.labour + (draftBudgetChangeSet?.labourDiff || 0),\n        manHours: this.budget.manHours + (draftBudgetChangeSet?.manHoursDiff || 0),\n        materials: this.budget.materials + (draftBudgetChangeSet?.materialsDiff || 0),\n        subcontractors: this.budget.subcontractors + (draftBudgetChangeSet?.subcontractorsDiff || 0),\n        sums: this.budget.sums + (draftBudgetChangeSet?.sumsDiff || 0)\n      };\n    }\n    get draftQuote() {\n      const draftQuoteChangeSet = this.belongsTo('draftQuoteChangeSet').value();\n      return {\n        labour: this.quote.labour + (draftQuoteChangeSet?.labourDiff || 0),\n        manHours: this.quote.manHours + (draftQuoteChangeSet?.manHoursDiff || 0),\n        materials: this.quote.materials + (draftQuoteChangeSet?.materialsDiff || 0),\n        subcontractors: this.quote.subcontractors + (draftQuoteChangeSet?.subcontractorsDiff || 0),\n        sums: this.quote.sums + (draftQuoteChangeSet?.sumsDiff || 0)\n      };\n    }\n    get defaultPurchasesGlAccount() {\n      return this.safeBelongsToValue('entity')?.safeBelongsToValue('purchasesGlAccount');\n    }\n    get effectivePurchasesGlAccount() {\n      const purchasesGlAccount = this.safeBelongsToValue('purchasesGlAccount');\n      if (purchasesGlAccount) return purchasesGlAccount;\n      return this.defaultPurchasesGlAccount;\n    }\n    get defaultSalesGlAccount() {\n      return this.safeBelongsToValue('entity')?.safeBelongsToValue('salesGlAccount');\n    }\n    get effectiveSalesGlAccount() {\n      const salesGlAccount = this.safeBelongsToValue('salesGlAccount');\n      if (salesGlAccount) return salesGlAccount;\n      return this.defaultSalesGlAccount;\n    }\n    get effectiveXerSalesGlAccount() {\n      const salesGlAccount = this.belongsTo('salesGlAccount').value();\n      if (!salesGlAccount?.xeroAccountId) return undefined;\n      return salesGlAccount;\n    }\n\n    // get profit margins from entity\n    get defaultPercentageValues() {\n      return this.belongsTo('entity')?.value().effectiveProfitMargin;\n    }\n\n    // get default profit margins from either current task profit margin or from its default values\n    get effectiveProfitMargin() {\n      const profitMargin = this.belongsTo('profitMargin').value();\n      return {\n        profitType: profitMargin?.profitType || this.defaultPercentageValues.profitType,\n        labourPercentage: profitMargin?.labourPercentage != null ? {\n          value: profitMargin?.labourPercentage,\n          type: profitMargin?.profitType || null,\n          route: 'entity.builda-price.projects.project.settings',\n          model: this.id,\n          record: this\n        } : this.defaultPercentageValues.labourPercentage,\n        additionalLabourMargin: profitMargin?.additionalLabourMargin != null ? {\n          value: profitMargin?.additionalLabourMargin,\n          type: profitMargin?.profitType || null,\n          route: 'entity.builda-price.projects.project.settings',\n          model: this.id,\n          record: this\n        } : this.defaultPercentageValues.additionalLabourMargin,\n        materialsPercentage: profitMargin?.materialsPercentage != null ? {\n          value: profitMargin?.materialsPercentage,\n          type: profitMargin?.profitType || null,\n          route: 'entity.builda-price.projects.project.settings',\n          model: this.id,\n          record: this\n        } : this.defaultPercentageValues.materialsPercentage,\n        subcontractorsPercentage: profitMargin?.subcontractorsPercentage != null ? {\n          value: profitMargin?.subcontractorsPercentage,\n          type: profitMargin?.profitType || null,\n          route: 'entity.builda-price.projects.project.settings',\n          model: this.id,\n          record: this\n        } : this.defaultPercentageValues.subcontractorsPercentage,\n        sumsPercentage: profitMargin?.sumsPercentage != null ? {\n          value: profitMargin?.sumsPercentage,\n          type: profitMargin?.profitType || null,\n          route: 'entity.builda-price.projects.project.settings',\n          model: this.id,\n          record: this\n        } : this.defaultPercentageValues.sumsPercentage\n      };\n    }\n    get gst() {\n      return this.belongsTo('entity').value()?.gst;\n    }\n\n    /* methods */\n\n    async commit({\n      commitBudget = false,\n      commitQuote = false,\n      commitProgress = false,\n      commitScheduling = false\n    }) {\n      if (![commitBudget, commitQuote, commitProgress, commitScheduling].some(v => v)) throw new Error('Nothing to commit');\n\n      // perform the commit\n      await this.buildaPrice.commitProject(this.id, {\n        commitBudget,\n        commitQuote,\n        commitProgress,\n        commitScheduling\n      });\n      await this.reload();\n      // for some reason when ember receives the record without the relationships it doesn't set them to null in the store\n      this.draftTaskChangeSet = null;\n      if (commitBudget) this.draftBudgetChangeSet = null;\n      if (commitQuote) this.draftQuoteChangeSet = null;\n      if (commitProgress) this.draftProgressChangeSet = null;\n      if (commitScheduling) this.draftSchedulingChangeSet = null;\n      await this.loadBudget();\n    }\n    async delete() {\n      await this.destroyRecord();\n    }\n    async createAndSaveDraftTaskChangeSet() {\n      const changeSet = await this.store.createRecord('task-change-set', {\n        status: 'DRAFT',\n        entity: this.belongsTo('entity').value(),\n        project: this\n      }).save();\n      (0, _object.set)(this, 'draftTaskChangeSet', changeSet);\n      await this.save();\n      return changeSet;\n    }\n    async createAndSaveDraftBudgetChangeSet() {\n      const changeSet = await this.store.createRecord('budget-change-set', {\n        status: 'DRAFT',\n        entity: this.belongsTo('entity').value(),\n        project: this\n      }).save();\n      (0, _object.set)(this, 'draftBudgetChangeSet', changeSet);\n      await this.save();\n      return changeSet;\n    }\n    async createAndSaveDraftQuoteChangeSet() {\n      const changeSet = await this.store.createRecord('quote-change-set', {\n        status: 'DRAFT',\n        entity: this.belongsTo('entity').value(),\n        project: this\n      }).save();\n      (0, _object.set)(this, 'draftQuoteChangeSet', changeSet);\n      await this.save();\n      return changeSet;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"name\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"description\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"address\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"startDate\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"completionDate\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"status\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"contractType\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"sortIndex\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"projectReference\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"contactName\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"contactEmail\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"contactNumber\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, \"contactAddress\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, \"geofencingEnabled\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, \"lat\", [_dec14], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, \"lng\", [_dec15], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor19 = _applyDecoratedDescriptor(_class2.prototype, \"rad\", [_dec16], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor20 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec17], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor21 = _applyDecoratedDescriptor(_class2.prototype, \"currentBudgetVersion\", [_dec18], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor22 = _applyDecoratedDescriptor(_class2.prototype, \"currentQuoteVersion\", [_dec19], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor23 = _applyDecoratedDescriptor(_class2.prototype, \"currentSchedulingVersion\", [_dec20], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor24 = _applyDecoratedDescriptor(_class2.prototype, \"currentProgressVersion\", [_dec21], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor25 = _applyDecoratedDescriptor(_class2.prototype, \"draftBudgetChangeSet\", [_dec22], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor26 = _applyDecoratedDescriptor(_class2.prototype, \"draftQuoteChangeSet\", [_dec23], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor27 = _applyDecoratedDescriptor(_class2.prototype, \"draftTaskChangeSet\", [_dec24], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor28 = _applyDecoratedDescriptor(_class2.prototype, \"draftSchedulingChangeSet\", [_dec25], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor29 = _applyDecoratedDescriptor(_class2.prototype, \"draftProgressChangeSet\", [_dec26], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor30 = _applyDecoratedDescriptor(_class2.prototype, \"tasks\", [_dec27], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor31 = _applyDecoratedDescriptor(_class2.prototype, \"attachments\", [_dec28], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor32 = _applyDecoratedDescriptor(_class2.prototype, \"purchasesGlAccount\", [_dec29], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor33 = _applyDecoratedDescriptor(_class2.prototype, \"salesGlAccount\", [_dec30], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor34 = _applyDecoratedDescriptor(_class2.prototype, \"xeroTrackingOption\", [_dec31], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor35 = _applyDecoratedDescriptor(_class2.prototype, \"profitMargin\", [_dec32], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor36 = _applyDecoratedDescriptor(_class2.prototype, \"stagePaymentOption\", [_dec33], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"allAttachments\", [_dec34], Object.getOwnPropertyDescriptor(_class2.prototype, \"allAttachments\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"draftBudget\", [_dec35], Object.getOwnPropertyDescriptor(_class2.prototype, \"draftBudget\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"draftQuote\", [_dec36], Object.getOwnPropertyDescriptor(_class2.prototype, \"draftQuote\"), _class2.prototype), _class2);\n});","define(\"portal/models/purchase-order-item\", [\"exports\", \"@ember-data/model\", \"portal/models/base-model\"], function (_exports, _model, _baseModel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _dec10, _dec11, _dec12, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _Class;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"portal/models/base-model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('number'), _dec4 = (0, _model.attr)('number'), _dec5 = (0, _model.attr)('string'), _dec6 = (0, _model.attr)('number'), _dec7 = (0, _model.attr)('number'), _dec8 = (0, _model.attr)('number'), _dec9 = (0, _model.attr)('date'), _dec0 = (0, _model.attr)('date'), _dec1 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec10 = (0, _model.belongsTo)('task', {\n    async: true,\n    inverse: null\n  }), _dec11 = (0, _model.belongsTo)('purchase-order', {\n    async: true,\n    inverse: 'items'\n  }), _dec12 = (0, _model.belongsTo)('task-product', {\n    async: true,\n    inverse: null\n  }), _class2 = (_Class = class _class2 extends _baseModel.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sku\", _descriptor, this);\n      _initializerDefineProperty(this, \"description\", _descriptor2, this);\n      _initializerDefineProperty(this, \"unitPrice\", _descriptor3, this);\n      _initializerDefineProperty(this, \"quantity\", _descriptor4, this);\n      _initializerDefineProperty(this, \"unit\", _descriptor5, this);\n      _initializerDefineProperty(this, \"deliveredQuantity\", _descriptor6, this);\n      _initializerDefineProperty(this, \"taxTotal\", _descriptor7, this);\n      _initializerDefineProperty(this, \"sortIndex\", _descriptor8, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor9, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor0, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor1, this);\n      _initializerDefineProperty(this, \"task\", _descriptor10, this);\n      _initializerDefineProperty(this, \"purchaseOrder\", _descriptor11, this);\n      _initializerDefineProperty(this, \"taskProduct\", _descriptor12, this);\n    }\n    get taskProductQuantity() {\n      return this._meta?.taskProductQuantity ?? this.belongsTo('taskProduct').value()?.quantity;\n    }\n    get remainingQuantity() {\n      const taskProduct = this.belongsTo('taskProduct').value();\n      return this._meta?.remainingQuantity ?? taskProduct?.quantity - (taskProduct?.orderedQuantity ?? 0) - (this.quantity ?? 0);\n    }\n    get latestUnitPrice() {\n      return this._meta?.latestUnitPrice;\n    }\n    get breadcrumbs() {\n      const task = this.belongsTo('task').value();\n      const scope = [];\n      if (task) scope.push(task);\n      const unshiftContainerToScope = task => {\n        if (task?.belongsTo('parent').id()) {\n          scope.unshift(task?.belongsTo('parent').value());\n          unshiftContainerToScope(task?.belongsTo('parent').value());\n        }\n      };\n      unshiftContainerToScope(task);\n      if (task?.belongsTo('project').value()) scope.unshift(task?.belongsTo('project').value());\n      const pathArray = scope.map(u => u?.name);\n      if (pathArray.length) return pathArray.join(' > ');\n      return null;\n    }\n  }, _defineProperty(_Class, \"requiredMetaFields\", ['latestUnitPrice', 'remainingQuantity', 'taskProductQuantity']), _Class), _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sku\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"description\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"unitPrice\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"quantity\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"unit\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"deliveredQuantity\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"taxTotal\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"sortIndex\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"task\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"purchaseOrder\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"taskProduct\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/purchase-order-option\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('number'), _dec4 = (0, _model.attr)('number'), _dec5 = (0, _model.attr)('number'), _dec6 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"prefix\", _descriptor, this);\n      _initializerDefineProperty(this, \"footerNotes\", _descriptor2, this);\n      _initializerDefineProperty(this, \"nextPurchaseOrderNumber\", _descriptor3, this);\n      _initializerDefineProperty(this, \"matchingPercentageTolerance\", _descriptor4, this);\n      _initializerDefineProperty(this, \"matchingAmountTolerance\", _descriptor5, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor6, this);\n    }\n    static defaultOptionsRecord(store, entity) {\n      return store.createRecord('purchase-order-option', {\n        entity: entity,\n        nextPurchaseOrderNumber: 10000,\n        prefix: 'PO-'\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"prefix\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"footerNotes\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"nextPurchaseOrderNumber\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"matchingPercentageTolerance\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"matchingAmountTolerance\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/purchase-order\", [\"exports\", \"@ember-data/model\", \"@ember/service\", \"portal/models/base-model\"], function (_exports, _model, _service, _baseModel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _Class;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"@ember/service\",0,\"portal/models/base-model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string', {\n    defaultValue: 'DRAFT'\n  }), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('string'), _dec5 = (0, _model.attr)('string'), _dec6 = (0, _model.attr)('number'), _dec7 = (0, _model.attr)('number'), _dec8 = (0, _model.attr)('date'), _dec9 = (0, _model.attr)('date'), _dec0 = (0, _model.attr)('date'), _dec1 = (0, _model.attr)('date'), _dec10 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec11 = (0, _model.belongsTo)('contact', {\n    async: true,\n    inverse: null\n  }), _dec12 = (0, _model.hasMany)('link-attachment-to-purchase-order', {\n    async: true,\n    inverse: 'purchaseOrder'\n  }), _dec13 = (0, _model.hasMany)('purchase-order-item', {\n    async: true,\n    inverse: 'purchaseOrder'\n  }), _class2 = (_Class = class _class2 extends _baseModel.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n      _initializerDefineProperty(this, \"purchaseOrderNumber\", _descriptor2, this);\n      _initializerDefineProperty(this, \"status\", _descriptor3, this);\n      _initializerDefineProperty(this, \"address\", _descriptor4, this);\n      _initializerDefineProperty(this, \"deliveryNote\", _descriptor5, this);\n      _initializerDefineProperty(this, \"orderNote\", _descriptor6, this);\n      _initializerDefineProperty(this, \"freightCharges\", _descriptor7, this);\n      _initializerDefineProperty(this, \"taxFreightCharges\", _descriptor8, this);\n      _initializerDefineProperty(this, \"dateOrderPlaced\", _descriptor9, this);\n      _initializerDefineProperty(this, \"requestedDeliveryDate\", _descriptor0, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor1, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor10, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor11, this);\n      _initializerDefineProperty(this, \"supplier\", _descriptor12, this);\n      _initializerDefineProperty(this, \"attachments\", _descriptor13, this);\n      _initializerDefineProperty(this, \"items\", _descriptor14, this);\n    }\n    get totalPrice() {\n      return (this.safeHasManyToValue('items')?.toArray() || []).reduce((acc, item) => acc + (item.unitPrice || 0) * (item.quantity || 0), 0);\n    }\n    get statusLabel() {\n      switch (this.status) {\n        case 'SENT':\n          return this.intl.t('common.Sent');\n        case 'AWAITING_APPROVAL':\n          return this.intl.t('common.Awaiting approval');\n        case 'APPROVED':\n          return this.intl.t('common.Approved');\n        case 'DRAFT':\n          return this.intl.t('common.Draft');\n      }\n      return null;\n    }\n    get deliveryStatus() {\n      return this._meta?.deliveryStatus;\n    }\n\n    // Unrecognised values are shown as they arrived rather than swallowed, so a\n    // status the server adds is still legible here.\n    get deliveryStatusLabel() {\n      switch (this.deliveryStatus) {\n        case 'ORDERED':\n          return this.intl.t('common.Ordered');\n        case 'PARTIALLY_DELIVERED':\n          return this.intl.t('common.Partially delivered');\n        case 'DELIVERED':\n          return this.intl.t('common.Delivered');\n      }\n      return this.deliveryStatus;\n    }\n    get myAttachments() {\n      const linkAttachmentToPurchaseOrderRecords = this.safeHasManyToValue('attachments')?.toArray() || [];\n      const attachmentIds = linkAttachmentToPurchaseOrderRecords.map(item => item.belongsTo('attachment').id());\n      return this.store.peekAll('attachment')?.toArray().filter(item => attachmentIds.includes(item.id));\n    }\n  }, _defineProperty(_Class, \"requiredMetaFields\", ['deliveryStatus']), _Class), _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"purchaseOrderNumber\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"status\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"address\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"deliveryNote\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"orderNote\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"freightCharges\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"taxFreightCharges\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"dateOrderPlaced\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"requestedDeliveryDate\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"supplier\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"attachments\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"items\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/quickbooks-employee\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('boolean'), _dec5 = (0, _model.attr)('date'), _dec6 = (0, _model.attr)('date'), _dec7 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"quickbooksEmployeeId\", _descriptor, this);\n      _initializerDefineProperty(this, \"firstName\", _descriptor2, this);\n      _initializerDefineProperty(this, \"lastName\", _descriptor3, this);\n      _initializerDefineProperty(this, \"active\", _descriptor4, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor5, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor6, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor7, this);\n    }\n    get name() {\n      return `${this.firstName} ${this.lastName}`;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"quickbooksEmployeeId\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"firstName\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"lastName\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"active\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/quickbooks-oauth2-connection\", [\"exports\", \"@ember-data/model\", \"portal/models/base-model\"], function (_exports, _model, _baseModel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _Class;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"portal/models/base-model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: 'quickBooksConnection'\n  }), _class2 = (_Class = class _class2 extends _baseModel.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"quickbooksRealmId\", _descriptor, this);\n      _initializerDefineProperty(this, \"quickbooksCompanyName\", _descriptor2, this);\n      _initializerDefineProperty(this, \"quickbooksCompanyDomain\", _descriptor3, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor4, this);\n    }\n    get isConnected() {\n      return this._meta?.isConnected;\n    }\n  }, _defineProperty(_Class, \"requiredMetaFields\", ['isConnected']), _Class), _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"quickbooksRealmId\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"quickbooksCompanyName\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"quickbooksCompanyDomain\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/quote-change-set\", [\"exports\", \"@ember-data/model\", \"@ember/service\"], function (_exports, _model, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec3 = (0, _model.belongsTo)('project', {\n    async: true,\n    inverse: null\n  }), _dec4 = (0, _model.belongsTo)('quote-version', {\n    async: true,\n    inverse: null\n  }), _dec5 = (0, _model.hasMany)('quote-change', {\n    async: true,\n    inverse: 'changeSet'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      /* attrs */\n      _initializerDefineProperty(this, \"status\", _descriptor2, this);\n      // enum: ['DRAFT', 'ACCEPTED']\n      /* relationships */\n      _initializerDefineProperty(this, \"entity\", _descriptor3, this);\n      _initializerDefineProperty(this, \"project\", _descriptor4, this);\n      _initializerDefineProperty(this, \"version\", _descriptor5, this);\n      _initializerDefineProperty(this, \"changes\", _descriptor6, this);\n    }\n    /* computed */\n    get valuesArray() {\n      return this.hasMany('changes').value()?.toArray?.() || [];\n    }\n    get labourDiff() {\n      return this.valuesArray.reduce((total, c) => total + c.labourDiff, 0);\n    }\n    get manHoursDiff() {\n      return this.valuesArray.reduce((total, c) => total + c.manHoursDiff, 0);\n    }\n    get materialsDiff() {\n      return this.valuesArray.reduce((total, c) => total + c.materialsDiff, 0);\n    }\n    get subcontractorsDiff() {\n      return this.valuesArray.reduce((total, c) => total + c.subcontractorsDiff, 0);\n    }\n    get sumsDiff() {\n      return this.valuesArray.reduce((total, c) => total + c.sumsDiff, 0);\n    }\n\n    /* methods */\n    async findChangeForTask(task) {\n      const changes = await this.hasMany('changes').load();\n      return changes?.find(c => c.belongsTo('task').value() === task);\n    }\n    createChangeForTask(task) {\n      return this.store.createRecord('quote-change', {\n        changeSet: this,\n        task,\n        entity: this.belongsTo('entity').value(),\n        project: this.belongsTo('project').value()\n      });\n    }\n    async deleteChangeForTask(task) {\n      const changes = await this.hasMany('changes').load();\n      const change = changes?.find(c => c.belongsTo('task').value() === task);\n      if (change) await change.destroyRecord();\n      if (changes?.length === 0) await this.destroyRecord();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"status\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"project\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"version\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"changes\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/quote-change\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec2 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec3 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec4 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec5 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec6 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec7 = (0, _model.belongsTo)('task', {\n    async: true,\n    inverse: null\n  }), _dec8 = (0, _model.belongsTo)('quote-change-set', {\n    async: true,\n    inverse: 'changes'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      /* attrs */\n      _initializerDefineProperty(this, \"labourDiff\", _descriptor, this);\n      _initializerDefineProperty(this, \"manHoursDiff\", _descriptor2, this);\n      _initializerDefineProperty(this, \"materialsDiff\", _descriptor3, this);\n      _initializerDefineProperty(this, \"subcontractorsDiff\", _descriptor4, this);\n      _initializerDefineProperty(this, \"sumsDiff\", _descriptor5, this);\n      /* relationships */\n      _initializerDefineProperty(this, \"entity\", _descriptor6, this);\n      _initializerDefineProperty(this, \"task\", _descriptor7, this);\n      _initializerDefineProperty(this, \"changeSet\", _descriptor8, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"labourDiff\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"manHoursDiff\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"materialsDiff\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"subcontractorsDiff\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"sumsDiff\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"task\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"changeSet\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/quote-version-value\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec3 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec4 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec5 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec6 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec7 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec8 = (0, _model.belongsTo)('project', {\n    async: true,\n    inverse: null\n  }), _dec9 = (0, _model.belongsTo)('task', {\n    async: true,\n    inverse: null\n  }), _dec0 = (0, _model.belongsTo)('quote-version', {\n    async: true,\n    inverse: 'values'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      /* attrs */\n      _initializerDefineProperty(this, \"name\", _descriptor, this);\n      _initializerDefineProperty(this, \"labour\", _descriptor2, this);\n      _initializerDefineProperty(this, \"manHours\", _descriptor3, this);\n      _initializerDefineProperty(this, \"materials\", _descriptor4, this);\n      _initializerDefineProperty(this, \"subcontractors\", _descriptor5, this);\n      _initializerDefineProperty(this, \"sums\", _descriptor6, this);\n      /* relationships */\n      _initializerDefineProperty(this, \"entity\", _descriptor7, this);\n      _initializerDefineProperty(this, \"project\", _descriptor8, this);\n      _initializerDefineProperty(this, \"task\", _descriptor9, this);\n      _initializerDefineProperty(this, \"version\", _descriptor0, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"name\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"labour\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"manHours\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"materials\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"subcontractors\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"sums\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"project\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"task\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"version\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/quote-version\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('number'), _dec3 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec4 = (0, _model.belongsTo)('project', {\n    async: true,\n    inverse: null\n  }), _dec5 = (0, _model.belongsTo)('quote-change-set', {\n    async: true,\n    inverse: null\n  }), _dec6 = (0, _model.hasMany)('quote-version-value', {\n    async: true,\n    inverse: 'version'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      /* attrs */\n      _initializerDefineProperty(this, \"name\", _descriptor, this);\n      _initializerDefineProperty(this, \"versionNumber\", _descriptor2, this);\n      /* relationships */\n      _initializerDefineProperty(this, \"entity\", _descriptor3, this);\n      _initializerDefineProperty(this, \"project\", _descriptor4, this);\n      _initializerDefineProperty(this, \"changeSet\", _descriptor5, this);\n      _initializerDefineProperty(this, \"values\", _descriptor6, this);\n    }\n    /* computed */\n    get valuesArray() {\n      return this.hasMany('values').value()?.toArray?.() || [];\n    }\n    get labour() {\n      return this.valuesArray.reduce((total, v) => total + (v.labour || 0), 0);\n    }\n    get manHours() {\n      return this.valuesArray.reduce((total, v) => total + (v.manHours || 0), 0);\n    }\n    get materials() {\n      return this.valuesArray.reduce((total, v) => total + (v.materials || 0), 0);\n    }\n    get subcontractors() {\n      return this.valuesArray.reduce((total, v) => total + (v.subcontractors || 0), 0);\n    }\n    get sums() {\n      return this.valuesArray.reduce((total, v) => total + (v.sums || 0), 0);\n    }\n    get total() {\n      return this.labour + this.materials + this.subcontractors + this.sums;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"name\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"versionNumber\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"project\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"changeSet\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"values\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/report-export-option\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _dec10, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('boolean', {\n    defaultValue: false\n  }), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('string'), _dec5 = (0, _model.attr)('string'), _dec6 = (0, _model.attr)('string', {\n    defaultValue: 'item'\n  }), _dec7 = (0, _model.attr)({\n    defaultValue: () => ['day', 'worker', 'task']\n  }), _dec8 = (0, _model.attr)('string', {\n    defaultValue: 'item'\n  }), _dec9 = (0, _model.attr)('string', {\n    defaultValue: 'item'\n  }), _dec0 = (0, _model.attr)('string', {\n    defaultValue: 'total'\n  }), _dec1 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec10 = (0, _model.belongsTo)('project', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"isEntityDefault\", _descriptor, this);\n      _initializerDefineProperty(this, \"companyLogoUrl\", _descriptor2, this);\n      _initializerDefineProperty(this, \"title\", _descriptor3, this);\n      _initializerDefineProperty(this, \"introduction\", _descriptor4, this);\n      _initializerDefineProperty(this, \"footnotes\", _descriptor5, this);\n      _initializerDefineProperty(this, \"materialsDetail\", _descriptor6, this);\n      _initializerDefineProperty(this, \"projectTimesheetsDetail\", _descriptor7, this);\n      _initializerDefineProperty(this, \"labourInvoicesDetail\", _descriptor8, this);\n      _initializerDefineProperty(this, \"subcontractorInvoicesDetail\", _descriptor9, this);\n      _initializerDefineProperty(this, \"marginType\", _descriptor0, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor1, this);\n      _initializerDefineProperty(this, \"project\", _descriptor10, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"isEntityDefault\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"companyLogoUrl\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"title\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"introduction\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"footnotes\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"materialsDetail\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"projectTimesheetsDetail\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"labourInvoicesDetail\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"subcontractorInvoicesDetail\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"marginType\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"project\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/resource-event\", [\"exports\", \"@ember-data/model\", \"portal/models/base-model\"], function (_exports, _model, _baseModel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _Class;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"portal/models/base-model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('string'), _dec5 = (0, _model.attr)('string'), _dec6 = (0, _model.attr)('date'), _dec7 = (0, _model.attr)('string'), _dec8 = (0, _model.belongsTo)('worker', {\n    async: true,\n    inverse: null\n  }), _dec9 = (0, _model.belongsTo)('user', {\n    async: true,\n    inverse: null\n  }), _dec0 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _class2 = (_Class = class _class2 extends _baseModel.default {\n    constructor(...args) {\n      super(...args);\n      /* attrs */\n      _initializerDefineProperty(this, \"description\", _descriptor, this);\n      _initializerDefineProperty(this, \"resourceType\", _descriptor2, this);\n      _initializerDefineProperty(this, \"resource\", _descriptor3, this);\n      _initializerDefineProperty(this, \"targetType\", _descriptor4, this);\n      _initializerDefineProperty(this, \"target\", _descriptor5, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor6, this);\n      _initializerDefineProperty(this, \"action\", _descriptor7, this);\n      _initializerDefineProperty(this, \"worker\", _descriptor8, this);\n      _initializerDefineProperty(this, \"user\", _descriptor9, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor0, this);\n    }\n  }, _defineProperty(_Class, \"requiredMetaFields\", ['personName']), _Class), _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"description\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"resourceType\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"resource\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"targetType\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"target\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"action\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"worker\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"user\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/scheduling-change-set\", [\"exports\", \"@ember-data/model\", \"@ember/service\"], function (_exports, _model, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec3 = (0, _model.belongsTo)('project', {\n    async: true,\n    inverse: null\n  }), _dec4 = (0, _model.belongsTo)('scheduling-version', {\n    async: true,\n    inverse: null\n  }), _dec5 = (0, _model.hasMany)('scheduling-change', {\n    async: true,\n    inverse: 'changeSet'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      /* attrs */\n      _initializerDefineProperty(this, \"status\", _descriptor2, this);\n      // enum: ['DRAFT', 'ACCEPTED']\n      /* relationships */\n      _initializerDefineProperty(this, \"entity\", _descriptor3, this);\n      _initializerDefineProperty(this, \"project\", _descriptor4, this);\n      _initializerDefineProperty(this, \"version\", _descriptor5, this);\n      _initializerDefineProperty(this, \"changes\", _descriptor6, this);\n    }\n    /* methods */\n    async findChangeForTask(task) {\n      const changes = await this.hasMany('changes').load();\n      return changes?.find(c => c.belongsTo('task').value() === task);\n    }\n    createChangeForTask(task, changeType) {\n      return this.store.createRecord('scheduling-change', {\n        changeSet: this,\n        changeType,\n        task,\n        entity: this.belongsTo('entity').value(),\n        project: this.belongsTo('project').value()\n      });\n    }\n    async deleteChangeForTask(task) {\n      const changes = await this.hasMany('changes').load();\n      const change = changes?.find(c => c.belongsTo('task').value() === task);\n      if (change) await change.destroyRecord();\n      if (changes?.length === 0) await this.destroyRecord();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"status\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"project\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"version\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"changes\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/scheduling-change\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('Date', {\n    defaultValue: 0\n  }), _dec2 = (0, _model.attr)('Date', {\n    defaultValue: 0\n  }), _dec3 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec4 = (0, _model.belongsTo)('project', {\n    async: true,\n    inverse: null\n  }), _dec5 = (0, _model.belongsTo)('task', {\n    async: true,\n    inverse: null\n  }), _dec6 = (0, _model.belongsTo)('scheduling-change-set', {\n    async: true,\n    inverse: 'changes'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      /* attrs */\n      _initializerDefineProperty(this, \"startDate\", _descriptor, this);\n      _initializerDefineProperty(this, \"completedDate\", _descriptor2, this);\n      /* relationships */\n      _initializerDefineProperty(this, \"entity\", _descriptor3, this);\n      _initializerDefineProperty(this, \"project\", _descriptor4, this);\n      _initializerDefineProperty(this, \"task\", _descriptor5, this);\n      _initializerDefineProperty(this, \"changeSet\", _descriptor6, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"startDate\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"completedDate\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"project\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"task\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"changeSet\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/scheduling-version-value\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('date'), _dec3 = (0, _model.attr)('date'), _dec4 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec5 = (0, _model.belongsTo)('project', {\n    async: true,\n    inverse: null\n  }), _dec6 = (0, _model.belongsTo)('task', {\n    async: true,\n    inverse: null\n  }), _dec7 = (0, _model.belongsTo)('scheduling-version', {\n    async: true,\n    inverse: 'values'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      /* attrs */\n      _initializerDefineProperty(this, \"name\", _descriptor, this);\n      _initializerDefineProperty(this, \"startDate\", _descriptor2, this);\n      _initializerDefineProperty(this, \"completionDate\", _descriptor3, this);\n      /* relationships */\n      _initializerDefineProperty(this, \"entity\", _descriptor4, this);\n      _initializerDefineProperty(this, \"project\", _descriptor5, this);\n      _initializerDefineProperty(this, \"task\", _descriptor6, this);\n      _initializerDefineProperty(this, \"version\", _descriptor7, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"name\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"startDate\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"completionDate\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"project\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"task\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"version\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/scheduling-version\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('number'), _dec3 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec4 = (0, _model.belongsTo)('project', {\n    async: true,\n    inverse: null\n  }), _dec5 = (0, _model.belongsTo)('scheduling-change-set', {\n    async: true,\n    inverse: null\n  }), _dec6 = (0, _model.hasMany)('scheduling-version-value', {\n    async: true,\n    inverse: 'version'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      /* attrs */\n      _initializerDefineProperty(this, \"name\", _descriptor, this);\n      _initializerDefineProperty(this, \"versionNumber\", _descriptor2, this);\n      /* relationships */\n      _initializerDefineProperty(this, \"entity\", _descriptor3, this);\n      _initializerDefineProperty(this, \"project\", _descriptor4, this);\n      _initializerDefineProperty(this, \"changeSet\", _descriptor5, this);\n      _initializerDefineProperty(this, \"values\", _descriptor6, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"name\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"versionNumber\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"project\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"changeSet\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"values\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/stage-payment-option\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('date'), _dec3 = (0, _model.attr)('date'), _dec4 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"footerNotes\", _descriptor, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor2, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor3, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor4, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"footerNotes\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/stage-payment-question\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('boolean'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('date'), _dec5 = (0, _model.attr)('date'), _dec6 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec7 = (0, _model.belongsTo)('stage-payment', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"complete\", _descriptor, this);\n      _initializerDefineProperty(this, \"title\", _descriptor2, this);\n      _initializerDefineProperty(this, \"description\", _descriptor3, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor4, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor5, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor6, this);\n      _initializerDefineProperty(this, \"stagePayment\", _descriptor7, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"complete\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"title\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"description\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"stagePayment\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/stage-payment\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _dec10, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec3 = (0, _model.attr)('number'), _dec4 = (0, _model.attr)('number'), _dec5 = (0, _model.attr)('string', {\n    defaultValue: 'UNCLAIMED'\n  }), _dec6 = (0, _model.attr)('date'), _dec7 = (0, _model.attr)('date'), _dec8 = (0, _model.attr)('date'), _dec9 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec0 = (0, _model.belongsTo)('project', {\n    async: true,\n    inverse: null\n  }), _dec1 = (0, _model.hasMany)('link-task-to-stage-payment', {\n    async: true,\n    inverse: null\n  }), _dec10 = (0, _model.hasMany)('stage-payment-question', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"name\", _descriptor, this);\n      _initializerDefineProperty(this, \"value\", _descriptor2, this);\n      _initializerDefineProperty(this, \"retention\", _descriptor3, this);\n      _initializerDefineProperty(this, \"stageNumber\", _descriptor4, this);\n      _initializerDefineProperty(this, \"status\", _descriptor5, this);\n      // enum: ['CLAIMED', 'UNCLAIMED']\n      _initializerDefineProperty(this, \"dueDate\", _descriptor6, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor7, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor8, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor9, this);\n      _initializerDefineProperty(this, \"project\", _descriptor0, this);\n      _initializerDefineProperty(this, \"tasks\", _descriptor1, this);\n      _initializerDefineProperty(this, \"questions\", _descriptor10, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"name\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"value\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"retention\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"stageNumber\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"status\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"dueDate\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"project\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"tasks\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"questions\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/supplier-debtor-account\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('boolean'), _dec4 = (0, _model.attr)('date'), _dec5 = (0, _model.attr)('date'), _dec6 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec7 = (0, _model.belongsTo)('itm-supplier', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"code\", _descriptor, this);\n      _initializerDefineProperty(this, \"name\", _descriptor2, this);\n      _initializerDefineProperty(this, \"isSubAccount\", _descriptor3, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor4, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor5, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor6, this);\n      _initializerDefineProperty(this, \"supplier\", _descriptor7, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"code\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"name\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"isSubAccount\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"supplier\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/system-announcement\", [\"exports\", \"portal/models/base-model\", \"@ember-data/model\"], function (_exports, _baseModel, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _dec10, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10;\n  0; //eaimeta@70e063a35619d71f0,\"portal/models/base-model\",0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('boolean'), _dec5 = (0, _model.attr)('date'), _dec6 = (0, _model.attr)('date'), _dec7 = (0, _model.attr)('date'), _dec8 = (0, _model.attr)('date'), _dec9 = (0, _model.attr)('array'), _dec0 = (0, _model.attr)('array'), _dec1 = (0, _model.attr)('array'), _dec10 = (0, _model.attr)('array'), _class2 = class _class2 extends _baseModel.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"title\", _descriptor, this);\n      _initializerDefineProperty(this, \"message\", _descriptor2, this);\n      _initializerDefineProperty(this, \"language\", _descriptor3, this);\n      _initializerDefineProperty(this, \"important\", _descriptor4, this);\n      _initializerDefineProperty(this, \"validFrom\", _descriptor5, this);\n      _initializerDefineProperty(this, \"validUntil\", _descriptor6, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor7, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor8, this);\n      _initializerDefineProperty(this, \"entityAttributes\", _descriptor9, this);\n      _initializerDefineProperty(this, \"userAttributes\", _descriptor0, this);\n      _initializerDefineProperty(this, \"requiredChargebeePlans\", _descriptor1, this);\n      _initializerDefineProperty(this, \"excludedChargebeePlans\", _descriptor10, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"title\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"message\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"language\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"important\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"validFrom\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"validUntil\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"entityAttributes\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"userAttributes\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"requiredChargebeePlans\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"excludedChargebeePlans\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/target\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.belongsTo)('account', {\n    async: true,\n    inverse: null\n  }), _dec2 = (0, _model.belongsTo)('kpi', {\n    async: true,\n    inverse: null\n  }), _dec3 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec4 = (0, _model.attr)('date'), _dec5 = (0, _model.attr)(), _dec6 = (0, _model.attr)(), _dec7 = (0, _model.attr)('date'), _dec8 = (0, _model.attr)('date'), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"account\", _descriptor, this);\n      _initializerDefineProperty(this, \"kpi\", _descriptor2, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor3, this);\n      _initializerDefineProperty(this, \"date\", _descriptor4, this);\n      _initializerDefineProperty(this, \"values\", _descriptor5, this);\n      _initializerDefineProperty(this, \"breakdown\", _descriptor6, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor7, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor8, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"account\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"kpi\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"date\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"values\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"breakdown\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/task-change-set\", [\"exports\", \"@ember-data/model\", \"@ember/service\"], function (_exports, _model, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec3 = (0, _model.belongsTo)('project', {\n    async: true,\n    inverse: null\n  }), _dec4 = (0, _model.hasMany)('task-change', {\n    async: true,\n    inverse: 'changeSet'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      /* attrs */\n      _initializerDefineProperty(this, \"status\", _descriptor2, this);\n      // enum: ['DRAFT', 'ACCEPTED']\n      /* relationships */\n      _initializerDefineProperty(this, \"entity\", _descriptor3, this);\n      _initializerDefineProperty(this, \"project\", _descriptor4, this);\n      _initializerDefineProperty(this, \"changes\", _descriptor5, this);\n    }\n    /* methods */\n    async findChangeForTask(task) {\n      const changes = await this.hasMany('changes').load();\n      return changes?.find(c => c.belongsTo('task').value() === task);\n    }\n    createChangeForTask(task, changeType) {\n      return this.store.createRecord('task-change', {\n        changeSet: this,\n        changeType,\n        task,\n        entity: this.belongsTo('entity').value(),\n        project: this.belongsTo('project').value()\n      });\n    }\n    async deleteChangeForTask(task) {\n      const changes = await this.hasMany('changes').load();\n      const change = changes?.find(c => c.belongsTo('task').value() === task);\n      if (change) await change.destroyRecord();\n      if (changes?.length === 0) await this.destroyRecord();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"status\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"project\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"changes\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/task-change\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec3 = (0, _model.belongsTo)('task', {\n    async: true,\n    inverse: null\n  }), _dec4 = (0, _model.belongsTo)('task-change-set', {\n    async: true,\n    inverse: 'changes'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      /* attrs */\n      // whichever Task changes we want to track\n      _initializerDefineProperty(this, \"changeType\", _descriptor, this);\n      // enum: ['CREATE', 'MODIFY', 'DELETE']\n      /* relationships */\n      _initializerDefineProperty(this, \"entity\", _descriptor2, this);\n      _initializerDefineProperty(this, \"task\", _descriptor3, this);\n      _initializerDefineProperty(this, \"changeSet\", _descriptor4, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"changeType\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"task\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"changeSet\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/task-product\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('number'), _dec5 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec6 = (0, _model.attr)('number'), _dec7 = (0, _model.attr)('string'), _dec8 = (0, _model.attr)('string', {\n    defaultValue: 'TaskProduct'\n  }), _dec9 = (0, _model.attr)('string'), _dec0 = (0, _model.attr)('string'), _dec1 = (0, _model.attr)('string'), _dec10 = (0, _model.attr)('string'), _dec11 = (0, _model.attr)('date'), _dec12 = (0, _model.attr)('date'), _dec13 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec14 = (0, _model.belongsTo)('task', {\n    async: true,\n    inverse: 'taskProducts'\n  }), _dec15 = (0, _model.belongsTo)('contact', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      /* attrs */\n      _initializerDefineProperty(this, \"productLibraryIdentifier\", _descriptor, this);\n      _initializerDefineProperty(this, \"description\", _descriptor2, this);\n      _initializerDefineProperty(this, \"sku\", _descriptor3, this);\n      _initializerDefineProperty(this, \"unitPrice\", _descriptor4, this);\n      _initializerDefineProperty(this, \"quantity\", _descriptor5, this);\n      _initializerDefineProperty(this, \"orderedQuantity\", _descriptor6, this);\n      _initializerDefineProperty(this, \"supplierName\", _descriptor7, this);\n      _initializerDefineProperty(this, \"source\", _descriptor8, this);\n      _initializerDefineProperty(this, \"unit\", _descriptor9, this);\n      _initializerDefineProperty(this, \"currency\", _descriptor0, this);\n      _initializerDefineProperty(this, \"manufacturer\", _descriptor1, this);\n      _initializerDefineProperty(this, \"usage\", _descriptor10, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor11, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor12, this);\n      /* relationships */\n      _initializerDefineProperty(this, \"entity\", _descriptor13, this);\n      _initializerDefineProperty(this, \"task\", _descriptor14, this);\n      _initializerDefineProperty(this, \"supplier\", _descriptor15, this);\n    }\n    get breadcrumbs() {\n      const task = this.belongsTo('task').value();\n      const scope = [];\n      if (task) scope.push(task);\n      const unshiftContainerToScope = task => {\n        if (task?.belongsTo('parent').id()) {\n          scope.unshift(task?.belongsTo('parent').value());\n          unshiftContainerToScope(task?.belongsTo('parent').value());\n        }\n      };\n      unshiftContainerToScope(task);\n      if (task?.belongsTo('project').value()) scope.unshift(task?.belongsTo('project').value());\n      const pathArray = scope.map(u => u?.name);\n      if (pathArray.length) return pathArray.join(' > ');\n      return null;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"productLibraryIdentifier\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"description\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"sku\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"unitPrice\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"quantity\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"orderedQuantity\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"supplierName\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"source\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"unit\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"currency\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"manufacturer\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"usage\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"task\", [_dec14], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, \"supplier\", [_dec15], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/task-template-item\", [\"exports\", \"@ember-data/model\", \"portal/models/base-model\"], function (_exports, _model, _baseModel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"portal/models/base-model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec4 = (0, _model.belongsTo)('task-template', {\n    async: true,\n    inverse: 'items'\n  }), _dec5 = (0, _model.belongsTo)('task-template-item', {\n    async: true,\n    inverse: 'items'\n  }), _dec6 = (0, _model.hasMany)('task-template-item', {\n    async: true,\n    inverse: 'parent'\n  }), _class2 = class _class2 extends _baseModel.default {\n    constructor(...args) {\n      super(...args);\n      /* attrs */\n      _initializerDefineProperty(this, \"name\", _descriptor, this);\n      _initializerDefineProperty(this, \"path\", _descriptor2, this);\n      /* relationships */\n      _initializerDefineProperty(this, \"entity\", _descriptor3, this);\n      _initializerDefineProperty(this, \"taskTemplate\", _descriptor4, this);\n      _initializerDefineProperty(this, \"parent\", _descriptor5, this);\n      _initializerDefineProperty(this, \"items\", _descriptor6, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"name\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"path\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"taskTemplate\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"parent\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"items\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/task-template\", [\"exports\", \"@ember-data/model\", \"portal/models/base-model\"], function (_exports, _model, _baseModel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"portal/models/base-model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec3 = (0, _model.hasMany)('task-template-item', {\n    async: true,\n    inverse: 'taskTemplate'\n  }), _class2 = class _class2 extends _baseModel.default {\n    constructor(...args) {\n      super(...args);\n      /* attrs */\n      _initializerDefineProperty(this, \"name\", _descriptor, this);\n      /* relationships */\n      _initializerDefineProperty(this, \"entity\", _descriptor2, this);\n      _initializerDefineProperty(this, \"items\", _descriptor3, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"name\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"items\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/task\", [\"exports\", \"@ember-data/model\", \"@ember/service\", \"@ember/object\", \"portal/models/base-model\"], function (_exports, _model, _service, _object, _baseModel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"@ember/service\",0,\"@ember/object\",0,\"portal/models/base-model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('string'), _dec5 = (0, _model.attr)('string'), _dec6 = (0, _model.attr)('string'), _dec7 = (0, _model.attr)('string', {\n    defaultValue: 'ACTIVE'\n  }), _dec8 = (0, _model.attr)('boolean', {\n    defaultValue: true\n  }), _dec9 = (0, _model.attr)('boolean', {\n    defaultValue: false\n  }), _dec0 = (0, _model.attr)('date'), _dec1 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec10 = (0, _model.belongsTo)('project', {\n    async: true,\n    inverse: 'tasks'\n  }), _dec11 = (0, _model.hasMany)('worker-task-attribute', {\n    async: true,\n    inverse: 'task'\n  }), _dec12 = (0, _model.hasMany)('user-task-attribute', {\n    async: true,\n    inverse: 'task'\n  }), _dec13 = (0, _model.hasMany)('task', {\n    async: true,\n    inverse: 'parent'\n  }), _dec14 = (0, _model.belongsTo)('task', {\n    async: true,\n    inverse: 'children'\n  }), _dec15 = (0, _model.belongsTo)('gl-account', {\n    async: true,\n    inverse: null\n  }), _dec16 = (0, _model.belongsTo)('gl-account', {\n    async: true,\n    inverse: null\n  }), _dec17 = (0, _model.belongsTo)('profit-margin', {\n    async: true,\n    inverse: null\n  }), _dec18 = (0, _model.hasMany)('link-attachment-to-task', {\n    async: true,\n    inverse: 'task'\n  }), _dec19 = (0, _model.hasMany)('task-product', {\n    async: true,\n    inverse: 'task'\n  }), _dec20 = (0, _model.hasMany)('link-task-to-stage-payment', {\n    async: true,\n    inverse: 'task'\n  }), _dec21 = (0, _object.computed)('myAttachments', 'allActiveChildren.@each.attachments'), _class2 = class _class2 extends _baseModel.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      /* attrs */\n      _initializerDefineProperty(this, \"name\", _descriptor3, this);\n      _initializerDefineProperty(this, \"description\", _descriptor4, this);\n      _initializerDefineProperty(this, \"status\", _descriptor5, this);\n      // enum: ['DRAFT_CREATED', 'ACTIVE', 'DRAFT_DELETED', 'DELETED']\n      _initializerDefineProperty(this, \"contractType\", _descriptor6, this);\n      // enum: ['COST_PLUS', 'FIXED_PRICE']\n      _initializerDefineProperty(this, \"path\", _descriptor7, this);\n      _initializerDefineProperty(this, \"taskType\", _descriptor8, this);\n      // enum: ['TASK', 'SUMS', 'SUBCONTRACTOR', 'PLANT', 'MILESTONE', 'BUILDERS_WORK', 'INTERNAL']\n      _initializerDefineProperty(this, \"timesheetStatus\", _descriptor9, this);\n      // enum: ['INACTIVE', 'ACTIVE']\n      _initializerDefineProperty(this, \"isSchedulingEnabled\", _descriptor0, this);\n      _initializerDefineProperty(this, \"isComplete\", _descriptor1, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor10, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor11, this);\n      _initializerDefineProperty(this, \"project\", _descriptor12, this);\n      _initializerDefineProperty(this, \"workerTaskAttributes\", _descriptor13, this);\n      _initializerDefineProperty(this, \"userTaskAttributes\", _descriptor14, this);\n      _initializerDefineProperty(this, \"children\", _descriptor15, this);\n      _initializerDefineProperty(this, \"parent\", _descriptor16, this);\n      _initializerDefineProperty(this, \"purchasesGlAccount\", _descriptor17, this);\n      _initializerDefineProperty(this, \"salesGlAccount\", _descriptor18, this);\n      _initializerDefineProperty(this, \"profitMargin\", _descriptor19, this);\n      _initializerDefineProperty(this, \"attachments\", _descriptor20, this);\n      _initializerDefineProperty(this, \"taskProducts\", _descriptor21, this);\n      _initializerDefineProperty(this, \"linkTasksToStagePayments\", _descriptor22, this);\n    }\n    /* load methods */\n    async loadBudget() {\n      const project = await this.belongsTo('project').load();\n      return project.loadBudget();\n    }\n    async loadQuote() {\n      const project = await this.belongsTo('project').load();\n      return project.loadQuote();\n    }\n    async loadTask() {\n      const project = await this.belongsTo('project').load();\n      return project.loadTaskChanges();\n    }\n\n    // technically this works but it's always slower because of the multiple requests\n    // instead you can usually request the projects tasks and filter them client side quicker\n    // async loadTasks(options = {}) {\n    //   const loadTaskAndChildren = async (task) => {\n    //     const children = await this.store.simpleQuery(\n    //       'task',\n    //       { parent: task.id },\n    //       options\n    //     );\n    //     if (children.length)\n    //       return Promise.all(children.map(loadTaskAndChildren));\n    //   };\n    //   await loadTaskAndChildren(this);\n    // }\n\n    // we need to load this record only once, so has to create new method\n\n    async loadCurrentProfitMargin() {\n      await this.belongsTo('profitMargin').reload();\n    }\n    async loadAttachments() {\n      const filter = {\n        and: [{\n          field: 'task',\n          op: 'EQ',\n          value: this.id\n        }]\n      };\n      await this.store.query('link-attachment-to-task', {\n        filter,\n        include: 'attachment'\n      });\n    }\n    async loadProducts() {\n      await this.store.query('task-product', {\n        filter: {\n          and: [{\n            field: 'task',\n            operator: 'EQ',\n            value: this.id\n          }, {\n            field: 'entity',\n            operator: 'EQ',\n            value: this.belongsTo('entity').id()\n          }]\n        }\n      });\n    }\n    async loadProfitMargins(task = this) {\n      const profitMarginRef = task.belongsTo('profitMargin');\n      if (profitMarginRef.id()) await profitMarginRef.load();\n      const parentRef = task.belongsTo('parent');\n      const parentTask = parentRef.id() ? await parentRef.load() : null;\n      if (parentTask) {\n        const parentProfitMarginRef = parentTask.belongsTo('profitMargin');\n        if (parentProfitMarginRef.id()) await parentProfitMarginRef.load();\n        return this.loadProfitMargins(parentTask);\n      }\n      const projectRef = this.belongsTo('project');\n      const project = projectRef.id() ? await projectRef.load() : null;\n      if (project) await project.loadProfitMargins();\n    }\n\n    /* computed */\n    get totalProducts() {\n      return this.taskProducts || [];\n    }\n    get canManageTaskProgress() {\n      return this.newFeatureFlags.includesFeatureFlags(this, 'canManageTaskProgress');\n    }\n    get myAttachments() {\n      const linkAttachmentToTaskRecords = this.hasMany('attachments').value()?.toArray?.() || [];\n      const attachmentIds = linkAttachmentToTaskRecords.map(item => item.belongsTo('attachment').id());\n      return (this.store.peekAll('attachment')?.toArray?.() || []).filter(item => attachmentIds.includes(item.id));\n    }\n    get allAttachments() {\n      const activeChildrenAttachments = this.allActiveChildren.reduce((attachments, task) => {\n        return attachments.concat((task.hasMany('attachments').value()?.toArray?.() || []).map(item => item.belongsTo('attachment').value()));\n      }, []);\n      return [...this.myAttachments, ...activeChildrenAttachments].sort((a, b) => a.dateCreated - b.dateCreated);\n    }\n\n    // computed property to get only direct children\n    get activeChildren() {\n      return (this.hasMany('children').value()?.toArray() || []).filter(c => ['ACTIVE', 'DRAFT_CREATED'].includes(c.status));\n    }\n\n    // computed property to get indefinite depth of children\n    get allActiveChildren() {\n      const allActiveChildrenArray = [];\n      this.getAllActiveChildren(this, allActiveChildrenArray);\n      return allActiveChildrenArray;\n    }\n    get draftProgressChange() {\n      const changes = this.belongsTo('project').value()?.belongsTo('draftProgressChangeSet').value()?.hasMany('changes').value()?.toArray?.() || [];\n      return changes.find(v => v.belongsTo('task').value() === this);\n    }\n    get currentProgressChange() {\n      const values = this.belongsTo('project').value()?.belongsTo('currentProgressVersion').value()?.hasMany('values').value()?.toArray?.() || [];\n      return values.find(v => v.belongsTo('task').value() === this);\n    }\n    get currentBudgetValue() {\n      const values = this.belongsTo('project').value()?.belongsTo('currentBudgetVersion').value()?.hasMany('values').value()?.toArray?.() || [];\n      return values.find(v => v.belongsTo('task').value() === this);\n    }\n    get currentQuoteValue() {\n      const values = this.belongsTo('project').value()?.belongsTo('currentQuoteVersion').value()?.hasMany('values').value()?.toArray?.() || [];\n      return values.find(v => v.belongsTo('task').value() === this);\n    }\n\n    // ===== Committed budget =====\n\n    get budgetManHours() {\n      return this.currentBudgetValue?.manHours || 0;\n    }\n    get budgetLabour() {\n      return this.currentBudgetValue?.labour || 0;\n    }\n    get budgetMaterials() {\n      return this.currentBudgetValue?.materials || 0;\n    }\n    get budgetSubcontractors() {\n      return this.currentBudgetValue?.subcontractors || 0;\n    }\n    get budgetSums() {\n      return this.currentBudgetValue?.sums || 0;\n    }\n    get budget() {\n      console.warn('the budget method is deprecated, use specific values instead');\n      return {\n        manHours: this.budgetManHours,\n        labour: this.budgetLabour,\n        materials: this.budgetMaterials,\n        subcontractors: this.budgetSubcontractors,\n        sums: this.budgetSums,\n        total: this.budgetLabour + this.budgetMaterials + this.budgetSubcontractors + this.budgetSums\n      };\n    }\n    get breadcrumbs() {\n      const scope = [];\n      const unshiftContainerToScope = task => {\n        if (task?.belongsTo('parent').id()) {\n          scope.unshift(task?.belongsTo('parent').value());\n          unshiftContainerToScope(task?.belongsTo('parent').value());\n        }\n      };\n      unshiftContainerToScope(this);\n      if (this.belongsTo('project').value()) scope.unshift(this.belongsTo('project').value());\n      const pathArray = scope.map(u => u?.name);\n      if (pathArray.length) return pathArray.join(' > ');\n      return null;\n    }\n    get hasDirectBudget() {\n      return this._meta?.hasBudget === 'DIRECT';\n    }\n    get hasTaskChildrenBudget() {\n      return this._meta?.hasBudget === 'INDIRECT';\n    }\n    get hasDirectProducts() {\n      return this._meta?.hasProducts === 'DIRECT';\n    }\n    get hasTaskChildrenProducts() {\n      return this._meta?.hasProducts === 'INDIRECT';\n    }\n    get hasDirectAttachments() {\n      return this._meta?.hasAttachments === 'DIRECT';\n    }\n    get hasTaskChildrenAttachments() {\n      return this._meta?.hasAttachments === 'INDIRECT';\n    }\n    get hasDirectQuote() {\n      return this._meta?.hasQuote === 'DIRECT';\n    }\n    get hasTaskChildrenQuote() {\n      return this._meta?.hasQuote === 'INDIRECT';\n    }\n    get allChildrenAttachments() {\n      return this.allActiveChildren.reduce((attachments, task) => {\n        return attachments.concat(task.hasMany('attachments').value()?.toArray?.() || []);\n      }, []);\n    }\n    get activeTaskChildrenProducts() {\n      const activeChildrenProducts = this.allActiveChildren.reduce((products, task) => {\n        return products.concat(task.hasMany('taskProducts').value()?.toArray?.() || []);\n      }, []);\n      return activeChildrenProducts;\n    }\n    // ===== Committed quote =====\n    get quoteManHours() {\n      return this.currentQuoteValue?.manHours || 0;\n    }\n    get quoteLabour() {\n      return this.currentQuoteValue?.labour || 0;\n    }\n    get quoteMaterials() {\n      return this.currentQuoteValue?.materials || 0;\n    }\n    get quoteSubcontractors() {\n      return this.currentQuoteValue?.subcontractors || 0;\n    }\n    get quoteSums() {\n      return this.currentQuoteValue?.sums || 0;\n    }\n    get quote() {\n      console.warn('the quote method is deprecated, use specific values instead');\n      return {\n        manHours: this.quoteManHours,\n        labour: this.quoteLabour,\n        materials: this.quoteMaterials,\n        subcontractors: this.quoteSubcontractors,\n        sums: this.quoteSums\n      };\n    }\n    get _parents() {\n      const parents = [];\n      const getParents = task => {\n        // the reference API does not work well with computed properties and glimmer tracking https://github.com/emberjs/data/issues/7102\n        const parent = task.get('parent');\n        if (parent) {\n          parents.push(parent);\n          getParents(parent);\n        }\n      };\n      getParents(this);\n      return parents;\n    }\n    get hasInactiveParents() {\n      const parents = this._parents;\n      return parents.some(\n      // the reference API does not work well with computed properties and glimmer tracking https://github.com/emberjs/data/issues/7102\n      parent => parent.get('timesheetStatus') === 'INACTIVE');\n    }\n\n    // ===== Draft budget =====\n\n    get draftBudgetChange() {\n      const changes = this.belongsTo('project').value()?.belongsTo('draftBudgetChangeSet').value()?.hasMany('changes').value()?.toArray?.() || [];\n      return changes.find(c => c.belongsTo('task').value() === this);\n    }\n    get draftBudgetManHours() {\n      return this.budgetManHours + (this.draftBudgetChange?.manHoursDiff || 0);\n    }\n    get draftBudgetLabour() {\n      return this.budgetLabour + (this.draftBudgetChange?.labourDiff || 0);\n    }\n    get draftBudgetMaterials() {\n      return this.budgetMaterials + (this.draftBudgetChange?.materialsDiff || 0);\n    }\n    get draftBudgetSubcontractors() {\n      return this.budgetSubcontractors + (this.draftBudgetChange?.subcontractorsDiff || 0);\n    }\n    get draftBudgetSums() {\n      return this.budgetSums + (this.draftBudgetChange?.sumsDiff || 0);\n    }\n    get draftBudget() {\n      console.warn('the draftBudget method is deprecated, use specific values instead');\n      return {\n        labour: this.draftBudgetLabour,\n        manHours: this.draftBudgetManHours,\n        materials: this.draftBudgetMaterials,\n        subcontractors: this.draftBudgetSubcontractors,\n        sums: this.draftBudgetSums\n      };\n    }\n\n    // ===== Draft total budget =====\n\n    get childrenDraftBudgetManHours() {\n      return this.activeChildren.reduce((acc, child) => acc + child.totalDraftBudgetManHours, 0);\n    }\n    get totalDraftBudgetManHours() {\n      return this.draftBudgetManHours + this.childrenDraftBudgetManHours;\n    }\n    get childrenDraftBudgetLabour() {\n      return this.activeChildren.reduce((acc, child) => acc + child.totalDraftBudgetLabour, 0);\n    }\n    get totalDraftBudgetLabour() {\n      return this.draftBudgetLabour + this.childrenDraftBudgetLabour;\n    }\n    get childrenDraftBudgetMaterials() {\n      return this.activeChildren.reduce((acc, child) => acc + child.totalDraftBudgetMaterials, 0);\n    }\n    get totalDraftBudgetMaterials() {\n      return this.draftBudgetMaterials + this.childrenDraftBudgetMaterials;\n    }\n    get childrenDraftBudgetSubcontractors() {\n      return this.activeChildren.reduce((acc, child) => acc + child.totalDraftBudgetSubcontractors, 0);\n    }\n    get totalDraftBudgetSubcontractors() {\n      return this.draftBudgetSubcontractors + this.childrenDraftBudgetSubcontractors;\n    }\n    get childrenDraftBudgetSums() {\n      return this.activeChildren.reduce((acc, child) => acc + child.totalDraftBudgetSums, 0);\n    }\n    get totalDraftBudgetSums() {\n      return this.draftBudgetSums + this.childrenDraftBudgetSums;\n    }\n    get childrenDraftBudget() {\n      console.warn('the childrenDraftBudget method is deprecated, use specific values instead');\n      return {\n        labour: this.childrenDraftBudgetLabour,\n        manHours: this.childrenDraftBudgetManHours,\n        materials: this.childrenDraftBudgetMaterials,\n        subcontractors: this.childrenDraftBudgetSubcontractors,\n        sums: this.childrenDraftBudgetSums\n      };\n    }\n    get totalDraftBudget() {\n      console.warn('the totalDraftBudget method is deprecated, use specific values instead');\n      return {\n        manHours: this.totalDraftBudgetManHours,\n        labour: this.totalDraftBudgetLabour,\n        materials: this.totalDraftBudgetMaterials,\n        subcontractors: this.totalDraftBudgetSubcontractors,\n        sums: this.totalDraftBudgetSums\n      };\n    }\n\n    // ===== Draft quote =====\n    get draftQuoteChange() {\n      const changes = this.belongsTo('project').value()?.belongsTo('draftQuoteChangeSet').value()?.hasMany('changes').value()?.toArray?.() || [];\n      return changes.find(c => c.belongsTo('task').value() === this);\n    }\n    get draftQuoteLabour() {\n      return this.quoteLabour + (this.draftQuoteChange?.labourDiff || 0);\n    }\n    get draftQuoteMaterials() {\n      return this.quoteMaterials + (this.draftQuoteChange?.materialsDiff || 0);\n    }\n    get draftQuoteSubcontractors() {\n      return this.quoteSubcontractors + (this.draftQuoteChange?.subcontractorsDiff || 0);\n    }\n    get draftQuoteSums() {\n      return this.quoteSums + (this.draftQuoteChange?.sumsDiff || 0);\n    }\n    get draftQuote() {\n      console.warn('the draftQuote method is deprecated, use specific values instead');\n      return {\n        labour: this.draftQuoteLabour,\n        manHours: this.draftQuoteManHours,\n        materials: this.draftQuoteMaterials,\n        subcontractors: this.draftQuoteSubcontractors,\n        sums: this.draftQuoteSums\n      };\n    }\n\n    // ===== Draft total quote =====\n\n    get childrenDraftQuoteLabour() {\n      return this.activeChildren.reduce((acc, child) => acc + child.totalDraftQuoteLabour, 0);\n    }\n    get totalDraftQuoteLabour() {\n      return this.draftQuoteLabour + this.childrenDraftQuoteLabour;\n    }\n    get childrenDraftQuoteMaterials() {\n      return this.activeChildren.reduce((acc, child) => acc + child.totalDraftQuoteMaterials, 0);\n    }\n    get totalDraftQuoteMaterials() {\n      return this.draftQuoteMaterials + this.childrenDraftQuoteMaterials;\n    }\n    get childrenDraftQuoteSubcontractors() {\n      return this.activeChildren.reduce((acc, child) => acc + child.totalDraftQuoteSubcontractors, 0);\n    }\n    get totalDraftQuoteSubcontractors() {\n      return this.draftQuoteSubcontractors + this.childrenDraftQuoteSubcontractors;\n    }\n    get childrenDraftQuoteSums() {\n      return this.activeChildren.reduce((acc, child) => acc + child.totalDraftQuoteSums, 0);\n    }\n    get totalDraftQuoteSums() {\n      return this.draftQuoteSums + this.childrenDraftQuoteSums;\n    }\n    get taskHasDependencies() {\n      return this._meta?.taskHasDependencies;\n    }\n    get childrenDraftQuote() {\n      console.warn('the childrenDraftQuote method is deprecated, use specific values instead');\n      return {\n        labour: this.childrenDraftQuoteLabour,\n        materials: this.childrenDraftQuoteMaterials,\n        subcontractors: this.childrenDraftQuoteSubcontractors,\n        sums: this.childrenDraftQuoteSums\n      };\n    }\n    get totalDraftQuote() {\n      console.warn('the totalDraftQuote method is deprecated, use specific values instead');\n      return {\n        labour: this.totalDraftQuoteLabour,\n        materials: this.totalDraftQuoteMaterials,\n        subcontractors: this.totalDraftQuoteSubcontractors,\n        sums: this.totalDraftQuoteSums\n      };\n    }\n\n    // ===== Profit margins =====\n\n    // get profit margins from parent task or project or entity\n    get defaultPercentageValues() {\n      return {\n        labourPercentage: this.getDefaultValues(this, 'labourPercentage'),\n        additionalLabourMargin: this.getDefaultValues(this, 'additionalLabourMargin'),\n        materialsPercentage: this.getDefaultValues(this, 'materialsPercentage'),\n        subcontractorsPercentage: this.getDefaultValues(this, 'subcontractorsPercentage'),\n        sumsPercentage: this.getDefaultValues(this, 'sumsPercentage'),\n        profitType: this.getDefaultValues(this, 'profitType')\n      };\n    }\n\n    // get default profit margins from either current task profit margin or from its default values\n    get effectiveProfitMargin() {\n      // the effectiveProfitMargin method is deprecated, use specific values instead\n      const profitMargin = this.belongsTo('profitMargin').value();\n      return {\n        profitType: profitMargin?.profitType || this.defaultPercentageValues.profitType,\n        labourPercentage: profitMargin?.labourPercentage != null ? {\n          value: profitMargin?.labourPercentage,\n          type: profitMargin?.profitType || null,\n          route: 'entity.builda-price.projects.project.tasks.task.settings',\n          model: this.id,\n          record: this\n        } : this.defaultPercentageValues.labourPercentage,\n        additionalLabourMargin: profitMargin?.additionalLabourMargin != null ? {\n          value: profitMargin?.additionalLabourMargin,\n          type: profitMargin?.profitType || null,\n          route: 'entity.builda-price.projects.project.tasks.task.settings',\n          model: this.id,\n          record: this\n        } : this.defaultPercentageValues.additionalLabourMargin,\n        materialsPercentage: profitMargin?.materialsPercentage != null ? {\n          value: profitMargin?.materialsPercentage,\n          type: profitMargin?.profitType || null,\n          route: 'entity.builda-price.projects.project.tasks.task.settings',\n          model: this.id,\n          record: this\n        } : this.defaultPercentageValues.materialsPercentage,\n        subcontractorsPercentage: profitMargin?.subcontractorsPercentage != null ? {\n          value: profitMargin?.subcontractorsPercentage,\n          type: profitMargin?.profitType || null,\n          route: 'entity.builda-price.projects.project.tasks.task.settings',\n          model: this.id,\n          record: this\n        } : this.defaultPercentageValues.subcontractorsPercentage,\n        sumsPercentage: profitMargin?.sumsPercentage != null ? {\n          value: profitMargin?.sumsPercentage,\n          type: profitMargin?.profitType || null,\n          route: 'entity.builda-price.projects.project.tasks.task.settings',\n          model: this.id,\n          record: this\n        } : this.defaultPercentageValues.sumsPercentage\n      };\n    }\n    get defaultPurchasesGlAccount() {\n      return this.getDefaultPurchasesGlAccount(this);\n    }\n    get effectivePurchasesGlAccount() {\n      const purchasesGlAccount = this.belongsTo('purchasesGlAccount').value();\n      if (purchasesGlAccount) return purchasesGlAccount;\n      return this.defaultPurchasesGlAccount;\n    }\n    get defaultSalesGlAccount() {\n      return this.getDefaultSalesGlAccount(this);\n    }\n    get effectiveSalesGlAccount() {\n      const salesGlAccount = this.belongsTo('salesGlAccount').value();\n      if (salesGlAccount) return salesGlAccount;\n      return this.defaultSalesGlAccount;\n    }\n    get effectiveXeroSalesGlAccount() {\n      const salesGlAccount = this.effectiveSalesGlAccount;\n      if (!salesGlAccount?.xeroAccountId) return undefined;\n      return salesGlAccount;\n    }\n    get effectiveContractType() {\n      const contractType = this.contractType;\n      if (contractType) return contractType;\n      return this.getDefaultContractType(this);\n    }\n    get gst() {\n      return this.belongsTo('entity').value()?.gst;\n    }\n\n    /* methods */\n    async save() {\n      // this is extending the Model save\n      if (!this.isNew) return super.save(...arguments);\n\n      // before the update make sure we have an up to date project changeset reference\n      let project = await this.belongsTo('project').load();\n      let isMissingTaskChangeSet = Boolean(await project.belongsTo('draftTaskChangeSet').load());\n      if (isMissingTaskChangeSet) project = await this.belongsTo('project').reload();\n      this.status = 'DRAFT_CREATED';\n      await super.save(...arguments); // the task must be created before we make the task-change\n      await this._updateTask('CREATE');\n      return this;\n    }\n    async update(diffs, hasRetried = false) {\n      const {\n        // task, TODO task diffs will be implemented\n        budget,\n        quote\n      } = diffs;\n\n      // before the update make sure we have an up to date project changeset reference\n      let project = await this.belongsTo('project').load();\n      let isMissingTaskChangeSet = Boolean(await project.belongsTo('draftTaskChangeSet').load());\n      let isMissingBudgetChangeSet = budget ? Boolean(await project.belongsTo('draftBudgetChangeSet').load()) : false;\n      let isMissingQuoteChangeSet = quote ? Boolean(await project.belongsTo('draftQuoteChangeSet').load()) : false;\n      let shouldReloadProject = isMissingTaskChangeSet || isMissingBudgetChangeSet || isMissingQuoteChangeSet;\n      if (shouldReloadProject) project = await this.belongsTo('project').reload();\n      const actions = [this._updateTask('MODIFY'\n      // task, TODO task diffs will be implemented\n      )];\n      // if we have a budget diff update the budget\n      if (budget) actions.push(this._updateBudget(budget));\n      // if we have a quote diff update the quote\n      if (quote) actions.push(this._updateQuote(quote));\n\n      // Ensure all requests complete regardless of individual failures.\n      // A 409 Conflict indicates the server identified and resolved an orphaned changeset.\n      // In this case, a single retry is performed to complete the original operation.\n      const results = await Promise.allSettled(actions);\n      const conflictResult = results.find(result => {\n        return result.reason?.errors?.[0]?.code === '409';\n      });\n      if (conflictResult && !hasRetried) {\n        await this.belongsTo('project').reload();\n        return this.update(diffs, true);\n      }\n      const rejectedResult = results.find(result => {\n        return result.status === 'rejected';\n      });\n      if (rejectedResult) {\n        throw rejectedResult.reason;\n      }\n    }\n    async delete(moveDependenciesToTaskId) {\n      const project = await this.belongsTo('project').load();\n      const descendantTasksToUnload = this.safeHasManyToValue('children')?.toArray() ?? [];\n      const deleteTaskMetadata = moveDependenciesToTaskId ? {\n        moveDependenciesToTaskId\n      } : undefined;\n      this.deleteRecord();\n      await this.save({\n        adapterOptions: {\n          meta: deleteTaskMetadata\n        }\n      });\n      await project.reload();\n      this.unloadRecord();\n      (function unloadTasks(tasksToUnload) {\n        for (const taskToUnload of tasksToUnload) {\n          const childTasksToUnload = taskToUnload.safeHasManyToValue('children')?.toArray() ?? [];\n          taskToUnload.unloadRecord();\n          unloadTasks(childTasksToUnload);\n        }\n      })(descendantTasksToUnload);\n    }\n\n    /* private methods */\n    async _updateTask(method\n    // nextDiffs\n    ) {\n      let project = await this.belongsTo('project').load();\n      let changeSet = await project.belongsTo('draftTaskChangeSet').load();\n      if (!changeSet) {\n        try {\n          changeSet = await project.createAndSaveDraftTaskChangeSet();\n        } catch (error) {\n          if (error?.errors?.[0]?.code !== '409') throw error;\n          project = await this.belongsTo('project').reload();\n          changeSet = await project.belongsTo('draftTaskChangeSet').load();\n        }\n      }\n      let change = await changeSet.findChangeForTask(this);\n      switch (method) {\n        case 'CREATE':\n          if (change) throw new Error('Task creation is already tracked');\n          change = changeSet.createChangeForTask(this, 'CREATE');\n          break;\n        case 'MODIFY':\n          // TODO deal with the nextDiffs when implemented\n          if (!change) change = changeSet.createChangeForTask(this, 'MODIFY');\n          break;\n        case 'DELETE':\n          if (!change) change = changeSet.createChangeForTask(this, 'DELETE');\n          change.changeType = 'DELETE';\n          break;\n        default:\n          throw new Error('Invalid method provided');\n      }\n      await change.save();\n    }\n    async _updateBudget(nextDiffs) {\n      let project = await this.belongsTo('project').load();\n      let changeSet = await project.belongsTo('draftBudgetChangeSet').load();\n      if (!changeSet) changeSet = await project.createAndSaveDraftBudgetChangeSet();\n      let change = await changeSet.findChangeForTask(this);\n      if (!change) change = changeSet.createChangeForTask(this);\n      change.labourDiff = nextDiffs.labourDiff;\n      change.manHoursDiff = nextDiffs.manHoursDiff;\n      change.materialsDiff = nextDiffs.materialsDiff;\n      change.subcontractorsDiff = nextDiffs.subcontractorsDiff;\n      change.sumsDiff = nextDiffs.sumsDiff;\n      await change.save();\n    }\n    async _updateQuote(nextDiffs) {\n      let project = await this.belongsTo('project').load();\n      let changeSet = await project.belongsTo('draftQuoteChangeSet').load();\n      if (!changeSet) changeSet = await project.createAndSaveDraftQuoteChangeSet();\n      let change = await changeSet.findChangeForTask(this);\n      if (!change) change = changeSet.createChangeForTask(this);\n      change.labourDiff = nextDiffs.labourDiff;\n      change.manHoursDiff = nextDiffs.manHoursDiff;\n      change.materialsDiff = nextDiffs.materialsDiff;\n      change.subcontractorsDiff = nextDiffs.subcontractorsDiff;\n      change.sumsDiff = nextDiffs.sumsDiff;\n      await change.save();\n    }\n    async _destroy() {\n      // we can destroy all the diffs and the task itself because it has never been committed to the project\n      const project = await this.belongsTo('project').load();\n      const [taskChangeSet, budgetChangeSet, quoteChangeSet, schedulingChangeSet] = await Promise.all([project.belongsTo('draftTaskChangeSet').load(), project.belongsTo('draftBudgetChangeSet').load(), project.belongsTo('draftQuoteChangeSet').load(), project.belongsTo('draftSchedulingChangeSet').load()]);\n\n      // delete the change\n      const actions = [];\n      if (taskChangeSet) actions.push(taskChangeSet.deleteChangeForTask(this));\n      if (budgetChangeSet) actions.push(budgetChangeSet.deleteChangeForTask(this));\n      if (quoteChangeSet) actions.push(quoteChangeSet.deleteChangeForTask(this));\n      if (schedulingChangeSet) actions.push(schedulingChangeSet.deleteChangeForTask(this));\n      await Promise.all(actions);\n\n      // delete the task\n      await this.destroyRecord();\n    }\n    // recursive function to get all the active children of a task\n    getAllActiveChildren(currentTask, allActiveChildrenArray = []) {\n      const children = currentTask.hasMany('children').value()?.toArray?.().filter(c => ['ACTIVE', 'DRAFT_CREATED'].includes(c.status)) || [];\n      children.forEach(child => {\n        allActiveChildrenArray.push(child);\n        this.getAllActiveChildren(child, allActiveChildrenArray);\n      });\n      return allActiveChildrenArray;\n    }\n\n    // recursive function to fetch profit margins from parent task or project or entity\n    getDefaultValues(task, fieldName) {\n      const parentTask = task.belongsTo('parent')?.value();\n      if (!parentTask) {\n        const project = task.belongsTo('project').value();\n        return project.effectiveProfitMargin[fieldName];\n      }\n      const parentTaskMargin = parentTask.belongsTo('profitMargin').value();\n      if (!parentTaskMargin) return this.getDefaultValues(parentTask, fieldName);\n      return parentTaskMargin?.[fieldName] != null ? {\n        value: parentTaskMargin?.[fieldName],\n        type: parentTaskMargin?.profitType || null,\n        route: 'entity.builda-price.projects.project.tasks.task.settings',\n        model: parentTask.id\n      } : this.getDefaultValues(parentTask, fieldName);\n    }\n    getDefaultPurchasesGlAccount(task) {\n      const parentTask = task.belongsTo('parent')?.value();\n      if (!parentTask) {\n        const project = task.belongsTo('project').value();\n        return project.effectivePurchasesGlAccount;\n      }\n      const parentTaskGlAccount = parentTask.belongsTo('purchasesGlAccount').value();\n      if (!parentTaskGlAccount) return this.getDefaultPurchasesGlAccount(parentTask);\n      return parentTaskGlAccount;\n    }\n    getDefaultSalesGlAccount(task) {\n      const parentTask = task.belongsTo('parent')?.value();\n      if (!parentTask) {\n        const project = task.belongsTo('project').value();\n        return project.effectiveSalesGlAccount;\n      }\n      const parentTaskGlAccount = parentTask.belongsTo('salesGlAccount').value();\n      if (!parentTaskGlAccount) return this.getDefaultSalesGlAccount(parentTask);\n      return parentTaskGlAccount;\n    }\n    getDefaultContractType(task) {\n      const parentTask = task.belongsTo('parent')?.value();\n      if (!parentTask) {\n        const project = task.belongsTo('project').value();\n        return project.contractType;\n      }\n      const parentTaskContractType = parentTask.contractType;\n      if (!parentTaskContractType) return this.getDefaultContractType(parentTask);\n      return parentTaskContractType;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"name\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"description\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"status\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"contractType\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"path\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"taskType\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"timesheetStatus\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"isSchedulingEnabled\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"isComplete\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"project\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"workerTaskAttributes\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"userTaskAttributes\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, \"children\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, \"parent\", [_dec14], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, \"purchasesGlAccount\", [_dec15], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, \"salesGlAccount\", [_dec16], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor19 = _applyDecoratedDescriptor(_class2.prototype, \"profitMargin\", [_dec17], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor20 = _applyDecoratedDescriptor(_class2.prototype, \"attachments\", [_dec18], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor21 = _applyDecoratedDescriptor(_class2.prototype, \"taskProducts\", [_dec19], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor22 = _applyDecoratedDescriptor(_class2.prototype, \"linkTasksToStagePayments\", [_dec20], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"allAttachments\", [_dec21], Object.getOwnPropertyDescriptor(_class2.prototype, \"allAttachments\"), _class2.prototype), _class2);\n});","define(\"portal/models/timesheet-note\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('boolean'), _dec5 = (0, _model.attr)('string'), _dec6 = (0, _model.belongsTo)('worker', {\n    async: true,\n    inverse: null\n  }), _dec7 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"body\", _descriptor, this);\n      _initializerDefineProperty(this, \"adminNote\", _descriptor2, this);\n      _initializerDefineProperty(this, \"actionStatus\", _descriptor3, this);\n      _initializerDefineProperty(this, \"dayLocked\", _descriptor4, this);\n      _initializerDefineProperty(this, \"date\", _descriptor5, this);\n      _initializerDefineProperty(this, \"worker\", _descriptor6, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor7, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"body\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"adminNote\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"actionStatus\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"dayLocked\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"date\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"worker\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/timesheet-status\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.belongsTo)('worker', {\n    async: true,\n    inverse: null\n  }), _dec2 = (0, _model.belongsTo)('project', {\n    async: true,\n    inverse: null\n  }), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('string', {\n    defaultValue: 'accepted'\n  }), _dec5 = (0, _model.attr)('boolean'), _dec6 = (0, _model.attr)('string'), _dec7 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec8 = (0, _model.attr)('date'), _dec9 = (0, _model.attr)('date'), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      // Rels/attr that link this status to a set of timesheets\n      _initializerDefineProperty(this, \"worker\", _descriptor, this);\n      _initializerDefineProperty(this, \"project\", _descriptor2, this);\n      _initializerDefineProperty(this, \"date\", _descriptor3, this);\n      // Attrs\n      _initializerDefineProperty(this, \"status\", _descriptor4, this);\n      // enum (pending, accepted status;\n      _initializerDefineProperty(this, \"didEdit\", _descriptor5, this);\n      _initializerDefineProperty(this, \"editNote\", _descriptor6, this);\n      // Extra, deterministic relationship (never set this)\n      _initializerDefineProperty(this, \"entity\", _descriptor7, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor8, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor9, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"worker\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"project\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"date\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"status\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"didEdit\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"editNote\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/timesheet\", [\"exports\", \"@ember-data/model\", \"@glimmer/tracking\", \"@ember/object\", \"portal/models/base-model\"], function (_exports, _model, _tracking, _object, _baseModel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"portal/models/base-model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('date'), _dec2 = (0, _model.attr)('date'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.belongsTo)('worker', {\n    async: true,\n    inverse: 'timesheets'\n  }), _dec5 = (0, _model.belongsTo)('project', {\n    async: true,\n    inverse: null\n  }), _dec6 = (0, _model.belongsTo)('task', {\n    async: true,\n    inverse: null\n  }), _dec7 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec8 = (0, _model.attr)('number'), _dec9 = (0, _object.computed)('duration'), _dec0 = (0, _model.attr)('number'), _dec1 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec10 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec11 = (0, _model.attr)('string'), _dec12 = (0, _model.attr)('boolean'), _dec13 = (0, _model.attr)('string'), _dec14 = (0, _model.attr)('string'), _dec15 = (0, _object.computed)('chargeOutRate', 'costRate', 'currentChargeOutRate', 'hours', 'payRate'), _class2 = class _class2 extends _baseModel.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor2, this);\n      _initializerDefineProperty(this, \"date\", _descriptor3, this);\n      _initializerDefineProperty(this, \"worker\", _descriptor4, this);\n      _initializerDefineProperty(this, \"project\", _descriptor5, this);\n      _initializerDefineProperty(this, \"task\", _descriptor6, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor7, this);\n      /**\n       * Duration stored as the number of minutes of the timesheet.\n       * This should usually be an integer.\n       */\n      _initializerDefineProperty(this, \"duration\", _descriptor8, this);\n      _initializerDefineProperty(this, \"payRate\", _descriptor9, this);\n      _initializerDefineProperty(this, \"chargeOutRate\", _descriptor0, this);\n      _initializerDefineProperty(this, \"costRate\", _descriptor1, this);\n      _initializerDefineProperty(this, \"note\", _descriptor10, this);\n      _initializerDefineProperty(this, \"reported\", _descriptor11, this);\n      _initializerDefineProperty(this, \"xeroTimesheetLineId\", _descriptor12, this);\n      _initializerDefineProperty(this, \"actionStatus\", _descriptor13, this);\n      // Volatile attributes\n      _initializerDefineProperty(this, \"currentChargeOutRate\", _descriptor14, this);\n    }\n    get hours() {\n      return this.duration / 60;\n    }\n    set hours(valueInHours) {\n      (0, _object.set)(this, 'duration', valueInHours * 60);\n      return valueInHours;\n    }\n    get totals() {\n      const hours = this.hours; // Use direct property access\n      const payRate = this.payRate;\n      const costRate = this.costRate;\n      const chargeOutRate = this.chargeOutRate;\n      const currentChargeOutRate = this.currentChargeOutRate;\n      return {\n        payTotal: payRate * hours,\n        costTotal: costRate * hours,\n        chargeOutTotal: chargeOutRate * hours,\n        currentChargeOutRateTotal: currentChargeOutRate * hours\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"date\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"worker\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"project\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"task\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"duration\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"hours\", [_dec9], Object.getOwnPropertyDescriptor(_class2.prototype, \"hours\"), _class2.prototype), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"payRate\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"chargeOutRate\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"costRate\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"note\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"reported\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"xeroTimesheetLineId\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"actionStatus\", [_dec14], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"currentChargeOutRate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"totals\", [_dec15], Object.getOwnPropertyDescriptor(_class2.prototype, \"totals\"), _class2.prototype), _class2);\n});","define(\"portal/models/user-attachment-attribute\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec2 = (0, _model.belongsTo)('user', {\n    async: true,\n    inverse: null\n  }), _dec3 = (0, _model.belongsTo)('attachment', {\n    async: true,\n    inverse: null\n  }), _dec4 = (0, _model.belongsTo)('user-attribute', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"entity\", _descriptor, this);\n      _initializerDefineProperty(this, \"user\", _descriptor2, this);\n      _initializerDefineProperty(this, \"attachment\", _descriptor3, this);\n      _initializerDefineProperty(this, \"attribute\", _descriptor4, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"user\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"attachment\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"attribute\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/user-attribute\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('boolean'), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"attribute\", _descriptor, this);\n      _initializerDefineProperty(this, \"description\", _descriptor2, this);\n      _initializerDefineProperty(this, \"deprecated\", _descriptor3, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"attribute\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"description\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"deprecated\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/user-entity-attribute\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec2 = (0, _model.belongsTo)('user', {\n    async: true,\n    inverse: 'entityAttributes'\n  }), _dec3 = (0, _model.belongsTo)('user-attribute', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"entity\", _descriptor, this);\n      _initializerDefineProperty(this, \"user\", _descriptor2, this);\n      _initializerDefineProperty(this, \"attribute\", _descriptor3, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"user\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"attribute\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/user-project-attribute\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec2 = (0, _model.belongsTo)('user', {\n    async: true,\n    inverse: null\n  }), _dec3 = (0, _model.belongsTo)('project', {\n    async: true,\n    inverse: null\n  }), _dec4 = (0, _model.belongsTo)('user-attribute', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"entity\", _descriptor, this);\n      _initializerDefineProperty(this, \"user\", _descriptor2, this);\n      _initializerDefineProperty(this, \"project\", _descriptor3, this);\n      _initializerDefineProperty(this, \"attribute\", _descriptor4, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"user\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"project\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"attribute\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/user-task-attribute\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec2 = (0, _model.belongsTo)('user', {\n    async: true,\n    inverse: null\n  }), _dec3 = (0, _model.belongsTo)('task', {\n    async: true,\n    inverse: 'userTaskAttributes'\n  }), _dec4 = (0, _model.belongsTo)('user-attribute', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"entity\", _descriptor, this);\n      _initializerDefineProperty(this, \"user\", _descriptor2, this);\n      _initializerDefineProperty(this, \"task\", _descriptor3, this);\n      _initializerDefineProperty(this, \"attribute\", _descriptor4, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"user\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"task\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"attribute\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/user-worker-attribute\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec2 = (0, _model.belongsTo)('user', {\n    async: true,\n    inverse: null\n  }), _dec3 = (0, _model.belongsTo)('worker', {\n    async: true,\n    inverse: null\n  }), _dec4 = (0, _model.belongsTo)('user-attribute', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"entity\", _descriptor, this);\n      _initializerDefineProperty(this, \"user\", _descriptor2, this);\n      _initializerDefineProperty(this, \"worker\", _descriptor3, this);\n      _initializerDefineProperty(this, \"attribute\", _descriptor4, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"user\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"worker\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"attribute\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/user\", [\"exports\", \"@ember/object\", \"@ember-data/model\", \"portal/utils/email-validator\", \"@ember/service\", \"portal/utils/get-default-language\", \"portal/utils/collection-to-array\"], function (_exports, _object, _model, _emailValidator, _service, _getDefaultLanguage, _collectionToArray) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"@ember-data/model\",0,\"portal/utils/email-validator\",0,\"@ember/service\",0,\"portal/utils/get-default-language\",0,\"portal/utils/collection-to-array\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string', {\n    defaultValue: ''\n  }), _dec2 = (0, _model.attr)('string', {\n    defaultValue: ''\n  }), _dec3 = (0, _model.attr)('string', {\n    defaultValue: ''\n  }), _dec4 = (0, _model.attr)('string', {\n    defaultValue: ''\n  }), _dec5 = (0, _model.attr)('string', {\n    defaultValue: (0, _getDefaultLanguage.getDefaultUserOrWorkerLanguage)()\n  }), _dec6 = (0, _model.attr)('string'), _dec7 = (0, _model.attr)('string', {\n    defaultValue: 'user'\n  }), _dec8 = (0, _model.attr)('boolean', {\n    defaultValue: false\n  }), _dec9 = (0, _model.attr)('boolean', {\n    defaultValue: false\n  }), _dec0 = (0, _model.attr)('boolean', {\n    defaultValue: true\n  }), _dec1 = (0, _model.attr)('date'), _dec10 = (0, _model.attr)('date'), _dec11 = (0, _model.attr)('date'), _dec12 = (0, _model.attr)('array'), _dec13 = (0, _model.hasMany)('link-user-to-entity-group', {\n    async: true,\n    inverse: 'user'\n  }), _dec14 = (0, _model.hasMany)('link-user-to-pricing-role', {\n    async: true,\n    inverse: 'user'\n  }), _dec15 = (0, _model.hasMany)('user-entity-attribute', {\n    async: true,\n    inverse: 'user'\n  }), _dec16 = (0, _model.hasMany)('user-project-attribute', {\n    async: true,\n    inverse: null\n  }), _dec17 = (0, _model.hasMany)('user-task-attribute', {\n    async: true,\n    inverse: null\n  }), _dec18 = (0, _model.hasMany)('user-worker-attribute', {\n    async: true,\n    inverse: null\n  }), _dec19 = (0, _model.hasMany)('user-attachment-attribute', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"firstName\", _descriptor4, this);\n      _initializerDefineProperty(this, \"lastName\", _descriptor5, this);\n      _initializerDefineProperty(this, \"email\", _descriptor6, this);\n      _initializerDefineProperty(this, \"phoneNumber\", _descriptor7, this);\n      _initializerDefineProperty(this, \"language\", _descriptor8, this);\n      _initializerDefineProperty(this, \"password\", _descriptor9, this);\n      _initializerDefineProperty(this, \"role\", _descriptor0, this);\n      _initializerDefineProperty(this, \"hasAcceptedTerms\", _descriptor1, this);\n      _initializerDefineProperty(this, \"mustResetPassword\", _descriptor10, this);\n      _initializerDefineProperty(this, \"canAccessPortal\", _descriptor11, this);\n      _initializerDefineProperty(this, \"lastLoginDate\", _descriptor12, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor13, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor14, this);\n      _initializerDefineProperty(this, \"adminFeatures\", _descriptor15, this);\n      _initializerDefineProperty(this, \"entityGroups\", _descriptor16, this);\n      _initializerDefineProperty(this, \"pricingRoles\", _descriptor17, this);\n      _initializerDefineProperty(this, \"entityAttributes\", _descriptor18, this);\n      _initializerDefineProperty(this, \"projectAttributes\", _descriptor19, this);\n      _initializerDefineProperty(this, \"taskAttributes\", _descriptor20, this);\n      _initializerDefineProperty(this, \"workerAttributes\", _descriptor21, this);\n      _initializerDefineProperty(this, \"attachmentAttributes\", _descriptor22, this);\n    }\n    get name() {\n      return `${this.firstName} ${this.lastName} - ${this.email}`;\n    }\n    get fullName() {\n      return `${this.firstName} ${this.lastName || ''}`.trim();\n    }\n\n    /* permissions */\n    get pricingRole() {\n      // you can only access this property when an entity is selected\n      if (!this.sessionData.entity) return undefined;\n\n      // if you're an admin or entity admin, you get the entity admin role\n      if (this.newFeatureFlags.includesFeatureFlags('userIsEntityAdmin')) {\n        const adminRole = this.sessionData.entity?.hasMany('pricingConnection').value()[0];\n        if (adminRole) return adminRole;\n      }\n\n      // otherwise find a pricing role you have for this entity\n      const activeRole = this.hasMany('pricingRoles').value()?.find(role =>\n      // this can be passed proxy objects so we need to use old school getters\n      role.belongsTo('entity').id() === (0, _object.get)(this, 'sessionData.entity.id'));\n      return activeRole;\n    }\n    _getEntityAttributes(entityId) {\n      // using old school getters here fixed an issue when saving on the profile page\n      const entityAttributes = (0, _collectionToArray.default)((0, _object.get)(this, 'entityAttributes'));\n      const entitiesAttributes = entityAttributes.filter(\n      // this can be passed proxy objects so we need to use old school getters\n      ea => (0, _object.get)(ea, 'entity.id') === entityId);\n      const attributes = entitiesAttributes.map(ea => ea.belongsTo('attribute').id());\n      return attributes;\n    }\n    _getProjectAttributes(projectId) {\n      // using old school getters here fixed an issue when saving on the profile page\n      const projectAttributes = (0, _collectionToArray.default)((0, _object.get)(this, 'projectAttributes'));\n      const projectsAttributes = projectAttributes.filter(\n      // this can be passed proxy objects so we need to use old school getters\n      ea => ea.belongsTo('project').id() === projectId);\n      const attributes = projectsAttributes.map(a => a.belongsTo('attribute').id());\n      return attributes;\n    }\n    _getTaskAttributes(taskId) {\n      // using old school getters here fixed an issue when saving on the profile page\n      const taskAttributes = (0, _collectionToArray.default)((0, _object.get)(this, 'taskAttributes'));\n      const tasksAttributes = taskAttributes.filter(\n      // this can be passed proxy objects so we need to use old school getters\n      ea => ea.belongsTo('task').id() === taskId);\n      const attributes = tasksAttributes.map(a => a.belongsTo('attribute').id());\n      return attributes;\n    }\n    _getWorkerAttributes(workerId) {\n      // using old school getters here fixed an issue when saving on the profile page\n      const workerAttributes = (0, _collectionToArray.default)((0, _object.get)(this, 'workerAttributes'));\n      const workersAttributes = workerAttributes.filter(\n      // this can be passed proxy objects so we need to use old school getters\n      ea => ea.belongsTo('worker').id() === workerId);\n      const attributes = workersAttributes.map(a => a.belongsTo('attribute').id());\n      return attributes;\n    }\n    includesSomeClaimsAboutEntity(entityId = '', ...checks) {\n      if (typeof entityId !== 'string') throw new Error('You must pass an id to includesSomeClaimsAboutEntity');\n      const attributes = this._getEntityAttributes(entityId);\n      return checks.some(c => attributes.includes(c));\n    }\n    includesClaimsAboutEntity(entityId = '', ...checks) {\n      if (typeof entityId !== 'string') throw new Error('You must pass an id to includesClaimsAboutEntity');\n      const attributes = this._getEntityAttributes(entityId);\n      return checks.every(c => attributes.includes(c));\n    }\n    excludesSomeClaimsAboutEntity(entityId = '', ...checks) {\n      if (typeof entityId !== 'string') throw new Error('You must pass an id to excludesSomeClaimsAboutEntity');\n      const attributes = this._getEntityAttributes(entityId);\n      return !checks.some(c => attributes.includes(c));\n    }\n    excludesClaimsAboutEntity(entityId = '', ...checks) {\n      if (typeof entityId !== 'string') throw new Error('You must pass an id to excludesClaimsAboutEntity');\n      const attributes = this._getEntityAttributes(entityId);\n      return checks.every(c => !attributes.includes(c));\n    }\n    includesSomeClaimsAboutProject(projectId = '', ...checks) {\n      if (typeof projectId !== 'string') throw new Error('You must pass an id to includesSomeClaimsAboutProject');\n      const attributes = this._getProjectAttributes(projectId);\n      return checks.some(c => attributes.includes(c));\n    }\n    includesClaimsAboutProject(projectId = '', ...checks) {\n      if (typeof projectId !== 'string') throw new Error('You must pass an id to includesClaimsAboutProject');\n      const attributes = this._getProjectAttributes(projectId);\n      return checks.every(c => attributes.includes(c));\n    }\n    excludesSomeClaimsAboutProject(projectId = '', ...checks) {\n      if (typeof projectId !== 'string') throw new Error('You must pass an id to excludesSomeClaimsAboutProject');\n      const attributes = this._getProjectAttributes(projectId);\n      return !checks.some(c => attributes.includes(c));\n    }\n    excludesClaimsAboutProject(projectId = '', ...checks) {\n      if (typeof projectId !== 'string') throw new Error('You must pass an id to excludesClaimsAboutProject');\n      const attributes = this._getProjectAttributes(projectId);\n      return checks.every(c => !attributes.includes(c));\n    }\n    includesSomeClaimsAboutTask(taskId = '', ...checks) {\n      if (typeof taskId !== 'string') throw new Error('You must pass an id to includesSomeClaimsAboutTask');\n      const taskIds = [];\n      const handleTask = taskId => {\n        taskIds.push(taskId);\n        const task = this.store.peekRecord('task', taskId);\n        if (task?.belongsTo('parent').id()) handleTask(task.belongsTo('parent').id());\n      };\n      handleTask(taskId);\n      const attributes = taskIds.map(taskId => this._getTaskAttributes(taskId)).flat();\n      return checks.some(c => attributes.includes(c));\n    }\n    includesClaimsAboutTask(taskId = '', ...checks) {\n      if (typeof taskId !== 'string') throw new Error('You must pass an id to includesSomeClaimsAboutTask');\n      const taskIds = [];\n      const handleTask = taskId => {\n        taskIds.push(taskId);\n        const task = this.store.peekRecord('task', taskId);\n        if (task?.belongsTo('parent').id()) handleTask(task.belongsTo('parent').id());\n      };\n      handleTask(taskId);\n      const attributes = taskIds.map(taskId => this._getTaskAttributes(taskId)).flat();\n      return checks.every(c => attributes.includes(c));\n    }\n    excludesSomeClaimsAboutTask(taskId = '', ...checks) {\n      if (typeof taskId !== 'string') throw new Error('You must pass an id to excludesSomeClaimsAboutTask');\n      const attributes = this._getTaskAttributes(taskId);\n      return !checks.some(c => attributes.includes(c));\n    }\n    excludesClaimsAboutTask(taskId = '', ...checks) {\n      if (typeof taskId !== 'string') throw new Error('You must pass an id to excludesClaimsAboutTask');\n      const attributes = this._getTaskAttributes(taskId);\n      return checks.every(c => !attributes.includes(c));\n    }\n    includesSomeClaimsAboutWorker(workerId = '', ...checks) {\n      if (typeof workerId !== 'string') throw new Error('You must pass an id to includesSomeClaimsAboutWorker');\n      const attributes = this._getWorkerAttributes(workerId);\n      return checks.some(c => attributes.includes(c));\n    }\n    includesClaimsAboutWorker(workerId = '', ...checks) {\n      if (typeof workerId !== 'string') throw new Error('You must pass an id to includesClaimsAboutWorker');\n      const attributes = this._getWorkerAttributes(workerId);\n      return checks.every(c => attributes.includes(c));\n    }\n    excludesSomeClaimsAboutWorker(workerId = '', ...checks) {\n      if (typeof workerId !== 'string') throw new Error('You must pass an id to excludesSomeClaimsAboutWorker');\n      const attributes = this._getWorkerAttributes(workerId);\n      return !checks.some(c => attributes.includes(c));\n    }\n    excludesClaimsAboutWorker(workerId = '', ...checks) {\n      if (typeof workerId !== 'string') throw new Error('You must pass an id to excludesClaimsAboutWorker');\n      const attributes = this._getWorkerAttributes(workerId);\n      return checks.every(c => !attributes.includes(c));\n    }\n    get isValid() {\n      return Boolean((0, _object.get)(this, 'firstName.length')) && Boolean((0, _object.get)(this, 'lastName.length')) && (0, _emailValidator.default)((0, _object.get)(this, 'email'));\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"firstName\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"lastName\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"email\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"phoneNumber\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"language\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"password\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"role\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"hasAcceptedTerms\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"mustResetPassword\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"canAccessPortal\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"lastLoginDate\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, \"adminFeatures\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, \"entityGroups\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, \"pricingRoles\", [_dec14], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, \"entityAttributes\", [_dec15], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor19 = _applyDecoratedDescriptor(_class2.prototype, \"projectAttributes\", [_dec16], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor20 = _applyDecoratedDescriptor(_class2.prototype, \"taskAttributes\", [_dec17], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor21 = _applyDecoratedDescriptor(_class2.prototype, \"workerAttributes\", [_dec18], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor22 = _applyDecoratedDescriptor(_class2.prototype, \"attachmentAttributes\", [_dec19], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/worker-attribute\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('boolean'), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"attribute\", _descriptor, this);\n      _initializerDefineProperty(this, \"description\", _descriptor2, this);\n      _initializerDefineProperty(this, \"deprecated\", _descriptor3, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"attribute\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"description\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"deprecated\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/worker-entity-attribute\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec2 = (0, _model.belongsTo)('worker', {\n    async: true,\n    inverse: null\n  }), _dec3 = (0, _model.belongsTo)('worker-attribute', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"entity\", _descriptor, this);\n      _initializerDefineProperty(this, \"worker\", _descriptor2, this);\n      _initializerDefineProperty(this, \"attribute\", _descriptor3, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"worker\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"attribute\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/worker-job-allocation\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.belongsTo)('project', {\n    async: true,\n    inverse: null\n  }), _dec2 = (0, _model.belongsTo)('worker', {\n    async: true,\n    inverse: null\n  }), _dec3 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec4 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"project\", _descriptor, this);\n      _initializerDefineProperty(this, \"worker\", _descriptor2, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor3, this);\n      _initializerDefineProperty(this, \"chargeOutRate\", _descriptor4, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"project\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"worker\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"chargeOutRate\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/worker-project-attribute\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec2 = (0, _model.belongsTo)('worker', {\n    async: true,\n    inverse: null\n  }), _dec3 = (0, _model.belongsTo)('project', {\n    async: true,\n    inverse: null\n  }), _dec4 = (0, _model.belongsTo)('worker-attribute', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"entity\", _descriptor, this);\n      _initializerDefineProperty(this, \"worker\", _descriptor2, this);\n      _initializerDefineProperty(this, \"project\", _descriptor3, this);\n      _initializerDefineProperty(this, \"attribute\", _descriptor4, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"worker\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"project\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"attribute\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/worker-task-attribute\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec2 = (0, _model.belongsTo)('worker', {\n    async: true,\n    inverse: null\n  }), _dec3 = (0, _model.belongsTo)('task', {\n    async: true,\n    inverse: 'workerTaskAttributes'\n  }), _dec4 = (0, _model.belongsTo)('worker-attribute', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"entity\", _descriptor, this);\n      _initializerDefineProperty(this, \"worker\", _descriptor2, this);\n      _initializerDefineProperty(this, \"task\", _descriptor3, this);\n      _initializerDefineProperty(this, \"attribute\", _descriptor4, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"worker\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"task\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"attribute\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/worker\", [\"exports\", \"@ember/object\", \"@ember-data/model\", \"@glimmer/tracking\", \"portal/utils/get-default-language\", \"portal/utils/collection-to-array\"], function (_exports, _object, _model, _tracking, _getDefaultLanguage, _collectionToArray) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _dec25, _dec26, _dec27, _dec28, _dec29, _dec30, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25, _descriptor26, _descriptor27, _descriptor28, _descriptor29, _descriptor30, _descriptor31;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"@ember-data/model\",0,\"@glimmer/tracking\",0,\"portal/utils/get-default-language\",0,\"portal/utils/collection-to-array\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('date'), _dec4 = (0, _model.attr)(), _dec5 = (0, _model.attr)('string'), _dec6 = (0, _model.attr)('string'), _dec7 = (0, _model.attr)('string'), _dec8 = (0, _model.attr)('string'), _dec9 = (0, _model.attr)('string'), _dec0 = (0, _model.attr)('string'), _dec1 = (0, _model.attr)('string'), _dec10 = (0, _model.attr)('string', {\n    defaultValue: (0, _getDefaultLanguage.getDefaultUserOrWorkerLanguage)()\n  }), _dec11 = (0, _model.attr)('string'), _dec12 = (0, _model.attr)('string'), _dec13 = (0, _model.attr)('string'), _dec14 = (0, _model.attr)('string'), _dec15 = (0, _model.attr)('string'), _dec16 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec17 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec18 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec19 = (0, _model.attr)('boolean', {\n    defaultValue: true\n  }), _dec20 = (0, _model.attr)('boolean', {\n    defaultValue: false\n  }), _dec21 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec22 = (0, _model.hasMany)('worker-entity-attribute', {\n    async: true,\n    inverse: null\n  }), _dec23 = (0, _model.hasMany)('worker-project-attribute', {\n    async: true,\n    inverse: null\n  }), _dec24 = (0, _model.hasMany)('worker-task-attribute', {\n    async: true,\n    inverse: null\n  }), _dec25 = (0, _model.belongsTo)('xero-employee', {\n    async: true,\n    inverse: null\n  }), _dec26 = (0, _model.belongsTo)('quickbooks-employee', {\n    async: true,\n    inverse: null\n  }), _dec27 = (0, _model.belongsTo)('xero-earnings-rate', {\n    async: true,\n    inverse: null\n  }), _dec28 = (0, _model.hasMany)('timesheet', {\n    async: true,\n    inverse: 'worker'\n  }), _dec29 = (0, _model.belongsTo)('user', {\n    async: true,\n    inverse: null\n  }), _dec30 = (0, _model.belongsTo)('labour-cost-calculator', {\n    async: true,\n    inverse: 'usedBy'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      // Volatile attributes\n      _initializerDefineProperty(this, \"currentChargeOutRate\", _descriptor, this);\n      _initializerDefineProperty(this, \"firstName\", _descriptor2, this);\n      _initializerDefineProperty(this, \"lastName\", _descriptor3, this);\n      _initializerDefineProperty(this, \"dateOfBirth\", _descriptor4, this);\n      _initializerDefineProperty(this, \"address\", _descriptor5, this);\n      _initializerDefineProperty(this, \"phoneNumber\", _descriptor6, this);\n      _initializerDefineProperty(this, \"emergencyContactNameOne\", _descriptor7, this);\n      _initializerDefineProperty(this, \"emergencyContactRelationshipOne\", _descriptor8, this);\n      _initializerDefineProperty(this, \"emergencyContactPhoneNumberOne\", _descriptor9, this);\n      _initializerDefineProperty(this, \"emergencyContactNameTwo\", _descriptor0, this);\n      _initializerDefineProperty(this, \"emergencyContactRelationshipTwo\", _descriptor1, this);\n      _initializerDefineProperty(this, \"emergencyContactPhoneNumberTwo\", _descriptor10, this);\n      _initializerDefineProperty(this, \"language\", _descriptor11, this);\n      _initializerDefineProperty(this, \"email\", _descriptor12, this);\n      _initializerDefineProperty(this, \"authCode\", _descriptor13, this);\n      _initializerDefineProperty(this, \"smartPayrollEmployeeCode\", _descriptor14, this);\n      _initializerDefineProperty(this, \"smartPayrollEmployeeDepartmentCode\", _descriptor15, this);\n      _initializerDefineProperty(this, \"keypayEmployeeCode\", _descriptor16, this);\n      _initializerDefineProperty(this, \"payRate\", _descriptor17, this);\n      _initializerDefineProperty(this, \"chargeOutRate\", _descriptor18, this);\n      _initializerDefineProperty(this, \"costRate\", _descriptor19, this);\n      _initializerDefineProperty(this, \"isActive\", _descriptor20, this);\n      _initializerDefineProperty(this, \"isContractor\", _descriptor21, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor22, this);\n      _initializerDefineProperty(this, \"entityAttributes\", _descriptor23, this);\n      _initializerDefineProperty(this, \"projectAttributes\", _descriptor24, this);\n      _initializerDefineProperty(this, \"taskAttributes\", _descriptor25, this);\n      _initializerDefineProperty(this, \"xeroEmployee\", _descriptor26, this);\n      _initializerDefineProperty(this, \"quickbooksEmployee\", _descriptor27, this);\n      _initializerDefineProperty(this, \"xeroEarningsRate\", _descriptor28, this);\n      _initializerDefineProperty(this, \"timesheets\", _descriptor29, this);\n      _initializerDefineProperty(this, \"user\", _descriptor30, this);\n      _initializerDefineProperty(this, \"costCalculatorUsed\", _descriptor31, this);\n    }\n    _getEntityAttributes(entityId) {\n      return (0, _collectionToArray.default)(this.entityAttributes).filter(ea => ea.belongsTo('entity').id() === entityId).map(ea => ea.belongsTo('attribute').id());\n    }\n    _getProjectAttributes(projectId) {\n      return (0, _collectionToArray.default)(this.projectAttributes).filter(pa => pa.belongsTo('project').id() === projectId).map(pa => pa.belongsTo('attribute').id());\n    }\n    _getTaskAttributes(taskId) {\n      return (0, _collectionToArray.default)(this.taskAttributes).filter(ta => ta.belongsTo('task').id() === taskId).map(ta => ta.belongsTo('attribute').id());\n    }\n    includesSomeClaimsAboutEntity(entityId = '', ...checks) {\n      if (typeof entityId !== 'string') throw new Error('You must pass an id to includesSomeClaimsAboutEntity');\n      const attributes = this._getEntityAttributes(entityId);\n      return checks.some(c => attributes.includes(c));\n    }\n    includesClaimsAboutEntity(entityId = '', ...checks) {\n      if (typeof entityId !== 'string') throw new Error('You must pass an id to includesClaimsAboutEntity');\n      const attributes = this._getEntityAttributes(entityId);\n      return checks.every(c => attributes.includes(c));\n    }\n    excludesSomeClaimsAboutEntity(entityId = '', ...checks) {\n      if (typeof entityId !== 'string') throw new Error('You must pass an id to excludesSomeClaimsAboutEntity');\n      const attributes = this._getEntityAttributes(entityId);\n      return !checks.some(c => attributes.includes(c));\n    }\n    excludesClaimsAboutEntity(entityId = '', ...checks) {\n      if (typeof entityId !== 'string') throw new Error('You must pass an id to excludesClaimsAboutEntity');\n      const attributes = this._getEntityAttributes(entityId);\n      return checks.every(c => !attributes.includes(c));\n    }\n    includesSomeClaimsAboutProject(projectId = '', ...checks) {\n      if (typeof projectId !== 'string') throw new Error('You must pass an id to includesSomeClaimsAboutProject');\n      const attributes = this._getProjectAttributes(projectId);\n      return checks.some(c => attributes.includes(c));\n    }\n    includesClaimsAboutProject(projectId = '', ...checks) {\n      if (typeof projectId !== 'string') throw new Error('You must pass an id to includesClaimsAboutProject');\n      const attributes = this._getProjectAttributes(projectId);\n      return checks.every(c => attributes.includes(c));\n    }\n    excludesSomeClaimsAboutProject(projectId = '', ...checks) {\n      if (typeof projectId !== 'string') throw new Error('You must pass an id to excludesSomeClaimsAboutProject');\n      const attributes = this._getProjectAttributes(projectId);\n      return !checks.some(c => attributes.includes(c));\n    }\n    excludesClaimsAboutProject(projectId = '', ...checks) {\n      if (typeof projectId !== 'string') throw new Error('You must pass an id to excludesClaimsAboutProject');\n      const attributes = this._getProjectAttributes(projectId);\n      return checks.every(c => !attributes.includes(c));\n    }\n    includesSomeClaimsAboutTask(taskId = '', ...checks) {\n      if (typeof taskId !== 'string') throw new Error('You must pass an id to includesSomeClaimsAboutTask');\n      const attributes = this._getTaskAttributes(taskId);\n      return checks.some(c => attributes.includes(c));\n    }\n    includesClaimsAboutTask(taskId = '', ...checks) {\n      if (typeof taskId !== 'string') throw new Error('You must pass an id to includesClaimsAboutTask');\n      const attributes = this._getTaskAttributes(taskId);\n      return checks.every(c => attributes.includes(c));\n    }\n    excludesSomeClaimsAboutTask(taskId = '', ...checks) {\n      if (typeof taskId !== 'string') throw new Error('You must pass an id to excludesSomeClaimsAboutTask');\n      const attributes = this._getTaskAttributes(taskId);\n      return !checks.some(c => attributes.includes(c));\n    }\n    excludesClaimsAboutTask(taskId = '', ...checks) {\n      if (typeof taskId !== 'string') throw new Error('You must pass an id to excludesClaimsAboutTask');\n      const attributes = this._getTaskAttributes(taskId);\n      return checks.every(c => !attributes.includes(c));\n    }\n    get fullName() {\n      return `${(0, _object.get)(this, 'firstName')} ${(0, _object.get)(this, 'lastName')}${(0, _object.get)(this, 'isActive') ? '' : ' (Inactive)'}`;\n    }\n    get searchString() {\n      return `${this.firstName}${this.lastName}${this.email}`;\n    }\n    calculateWorkForProject({\n      project,\n      task,\n      start,\n      end,\n      tasks\n    } = {}, timesheets = this.timesheets) {\n      // Apply filters\n      const filteredTimesheets = (0, _collectionToArray.default)(timesheets).filter(sheet => {\n        if ((0, _object.get)(sheet, 'worker.id') !== (0, _object.get)(this, 'id')) return false;\n        if (project && (0, _object.get)(project, 'id') !== (0, _object.get)(sheet, 'project.id')) return false;\n        if (task) {\n          if ((0, _object.get)(sheet, 'task.id') !== (0, _object.get)(task, 'id')) return false;\n        }\n        if (tasks) {\n          const taskActiveChildren = tasks.flatMap(task => (0, _object.get)(task, 'allActiveChildren'));\n          const tasksIds = taskActiveChildren.mapBy('id');\n          tasksIds.push(...tasks.map(task => (0, _object.get)(task, 'id')));\n          if (!tasksIds.includes((0, _object.get)(sheet, 'task.id'))) return false;\n        }\n        if (start && start > (0, _object.get)(sheet, 'date')) return false;\n        if (end && end < (0, _object.get)(sheet, 'date')) return false;\n        return true;\n      });\n\n      /*\n        The rate should be taken from the following places (in order):\n        1: The user set, current charge out rate\n        2: The charge out rate recorded with the timesheet\n        3: The default charge out rate for the user\n        */\n      const currentChargeOutRate = (0, _object.get)(this, 'currentChargeOutRate');\n      const defaultChargeOutRate = (0, _object.get)(this, 'chargeOutRate');\n      const totals = filteredTimesheets.reduce((totals, sheet) => {\n        const chargeOutRate = currentChargeOutRate != null ? currentChargeOutRate : (0, _object.get)(sheet, 'chargeOutRate') || defaultChargeOutRate;\n        return {\n          chargeOut: totals.chargeOut + (0, _object.get)(sheet, 'hours') * chargeOutRate,\n          hours: totals.hours + (0, _object.get)(sheet, 'hours'),\n          cost: totals.cost + (0, _object.get)(sheet, 'hours') * (0, _object.get)(sheet, 'costRate'),\n          pay: totals.pay + (0, _object.get)(sheet, 'hours') * (0, _object.get)(sheet, 'payRate')\n        };\n      }, {\n        chargeOut: 0,\n        hours: 0,\n        cost: 0,\n        pay: 0\n      });\n      return {\n        ...totals,\n        filteredTimesheets\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"currentChargeOutRate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"firstName\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"lastName\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"dateOfBirth\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"address\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"phoneNumber\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"emergencyContactNameOne\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"emergencyContactRelationshipOne\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"emergencyContactPhoneNumberOne\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"emergencyContactNameTwo\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"emergencyContactRelationshipTwo\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"emergencyContactPhoneNumberTwo\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"language\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"email\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"authCode\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"smartPayrollEmployeeCode\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, \"smartPayrollEmployeeDepartmentCode\", [_dec14], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, \"keypayEmployeeCode\", [_dec15], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, \"payRate\", [_dec16], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, \"chargeOutRate\", [_dec17], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor19 = _applyDecoratedDescriptor(_class2.prototype, \"costRate\", [_dec18], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor20 = _applyDecoratedDescriptor(_class2.prototype, \"isActive\", [_dec19], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor21 = _applyDecoratedDescriptor(_class2.prototype, \"isContractor\", [_dec20], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor22 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec21], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor23 = _applyDecoratedDescriptor(_class2.prototype, \"entityAttributes\", [_dec22], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor24 = _applyDecoratedDescriptor(_class2.prototype, \"projectAttributes\", [_dec23], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor25 = _applyDecoratedDescriptor(_class2.prototype, \"taskAttributes\", [_dec24], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor26 = _applyDecoratedDescriptor(_class2.prototype, \"xeroEmployee\", [_dec25], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor27 = _applyDecoratedDescriptor(_class2.prototype, \"quickbooksEmployee\", [_dec26], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor28 = _applyDecoratedDescriptor(_class2.prototype, \"xeroEarningsRate\", [_dec27], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor29 = _applyDecoratedDescriptor(_class2.prototype, \"timesheets\", [_dec28], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor30 = _applyDecoratedDescriptor(_class2.prototype, \"user\", [_dec29], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor31 = _applyDecoratedDescriptor(_class2.prototype, \"costCalculatorUsed\", [_dec30], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/xero-connection\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('string'), _dec5 = (0, _model.attr)('string'), _dec6 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: 'xeroConnection'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"xeroCompanyId\", _descriptor, this);\n      _initializerDefineProperty(this, \"xeroCompanyName\", _descriptor2, this);\n      _initializerDefineProperty(this, \"defaultInvoiceStatus\", _descriptor3, this);\n      _initializerDefineProperty(this, \"defaultCreditNoteStatus\", _descriptor4, this);\n      _initializerDefineProperty(this, \"defaultTimesheetStatus\", _descriptor5, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor6, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"xeroCompanyId\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"xeroCompanyName\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"defaultInvoiceStatus\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"defaultCreditNoteStatus\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"defaultTimesheetStatus\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/xero-earnings-rate\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _dec10, _dec11, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('string'), _dec5 = (0, _model.attr)('string'), _dec6 = (0, _model.attr)('string'), _dec7 = (0, _model.attr)('string'), _dec8 = (0, _model.attr)('string'), _dec9 = (0, _model.attr)('string'), _dec0 = (0, _model.attr)('boolean'), _dec1 = (0, _model.attr)('date'), _dec10 = (0, _model.attr)('date'), _dec11 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"xeroEarningsRateId\", _descriptor, this);\n      _initializerDefineProperty(this, \"name\", _descriptor2, this);\n      _initializerDefineProperty(this, \"earningsType\", _descriptor3, this);\n      _initializerDefineProperty(this, \"rateType\", _descriptor4, this);\n      _initializerDefineProperty(this, \"typeOfUnits\", _descriptor5, this);\n      _initializerDefineProperty(this, \"expenseAccountId\", _descriptor6, this);\n      _initializerDefineProperty(this, \"ratePerUnit\", _descriptor7, this);\n      _initializerDefineProperty(this, \"multipleOfOrdinaryEarningsRate\", _descriptor8, this);\n      _initializerDefineProperty(this, \"fixedAmount\", _descriptor9, this);\n      _initializerDefineProperty(this, \"currentRecord\", _descriptor0, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor1, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor10, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor11, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"xeroEarningsRateId\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"name\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"earningsType\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"rateType\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"typeOfUnits\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"expenseAccountId\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"ratePerUnit\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"multipleOfOrdinaryEarningsRate\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"fixedAmount\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"currentRecord\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/xero-employee\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('date'), _dec5 = (0, _model.attr)('string'), _dec6 = (0, _model.attr)('string'), _dec7 = (0, _model.attr)('date'), _dec8 = (0, _model.attr)('date'), _dec9 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"xeroEmployeeId\", _descriptor, this);\n      _initializerDefineProperty(this, \"firstName\", _descriptor2, this);\n      _initializerDefineProperty(this, \"lastName\", _descriptor3, this);\n      _initializerDefineProperty(this, \"dateOfBirth\", _descriptor4, this);\n      _initializerDefineProperty(this, \"email\", _descriptor5, this);\n      _initializerDefineProperty(this, \"phoneNumber\", _descriptor6, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor7, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor8, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor9, this);\n    }\n    get name() {\n      return `${this.firstName} ${this.lastName}`;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"xeroEmployeeId\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"firstName\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"lastName\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"dateOfBirth\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"email\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"phoneNumber\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/xero-tracking-option\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('string'), _dec5 = (0, _model.attr)('date'), _dec6 = (0, _model.attr)('date'), _dec7 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"trackingOptionId\", _descriptor, this);\n      _initializerDefineProperty(this, \"trackingOptionName\", _descriptor2, this);\n      _initializerDefineProperty(this, \"trackingCategoryId\", _descriptor3, this);\n      _initializerDefineProperty(this, \"status\", _descriptor4, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor5, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor6, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor7, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"trackingOptionId\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"trackingOptionName\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"trackingCategoryId\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"status\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/modifiers/basic-dropdown-trigger\", [\"exports\", \"ember-basic-dropdown/modifiers/basic-dropdown-trigger\"], function (_exports, _basicDropdownTrigger) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _basicDropdownTrigger.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-basic-dropdown/modifiers/basic-dropdown-trigger\"eaimeta@70e063a35619d71f\n});","define(\"portal/modifiers/bootstrap-tooltip\", [\"exports\", \"ember-modifier\", \"bootstrap\"], function (_exports, _emberModifier, _bootstrap) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-modifier\",0,\"bootstrap\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  class BootstrapTooltipModifier extends _emberModifier.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"tooltip\", void 0);\n    }\n    modify(element, [content]) {\n      if (!this.tooltip) {\n        this.tooltip = new _bootstrap.Tooltip(element, {\n          title: content,\n          trigger: 'hover focus'\n        });\n        return;\n      }\n      element.setAttribute('data-bs-original-title', content);\n      if (this.tooltip) {\n        this.tooltip.setContent({\n          '.tooltip-inner': content\n        });\n      }\n    }\n    willRemove() {\n      this.tooltip?.dispose();\n    }\n  }\n  _exports.default = BootstrapTooltipModifier;\n});","define(\"portal/modifiers/did-insert\", [\"exports\", \"@ember/render-modifiers/modifiers/did-insert\"], function (_exports, _didInsert) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _didInsert.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"@ember/render-modifiers/modifiers/did-insert\"eaimeta@70e063a35619d71f\n});","define(\"portal/modifiers/did-update\", [\"exports\", \"@ember/render-modifiers/modifiers/did-update\"], function (_exports, _didUpdate) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _didUpdate.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"@ember/render-modifiers/modifiers/did-update\"eaimeta@70e063a35619d71f\n});","define(\"portal/modifiers/on-key\", [\"exports\", \"ember-keyboard/modifiers/on-key\"], function (_exports, _onKey) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _onKey.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-keyboard/modifiers/on-key\"eaimeta@70e063a35619d71f\n});","define(\"portal/modifiers/style\", [\"exports\", \"ember-style-modifier/modifiers/style\"], function (_exports, _style) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _style.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-style-modifier/modifiers/style\"eaimeta@70e063a35619d71f\n});","define(\"portal/modifiers/will-destroy\", [\"exports\", \"@ember/render-modifiers/modifiers/will-destroy\"], function (_exports, _willDestroy) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _willDestroy.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"@ember/render-modifiers/modifiers/will-destroy\"eaimeta@70e063a35619d71f\n});","define(\"portal/resolver\", [\"exports\", \"ember-resolver\"], function (_exports, _emberResolver) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _emberResolver.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-resolver\"eaimeta@70e063a35619d71f\n});","define(\"portal/router\", [\"exports\", \"@ember/routing/router\", \"portal/config/environment\"], function (_exports, _router, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.routerMap = _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/router\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  class Router extends _router.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"location\", _environment.default.locationType);\n      _defineProperty(this, \"rootURL\", _environment.default.rootURL);\n    }\n  }\n\n  /* eslint-disable max-nested-callbacks, array-callback-return */\n  const routerMap = function () {\n    this.route('login');\n    this.route('login-redirect');\n    this.route('logout-redirect');\n    this.route('initiate-password-reset');\n    this.route('error');\n    this.route('reset-password');\n    this.route('terms-of-service');\n    this.route('entity-access-denied');\n    this.route('admin', function () {\n      this.route('entities', function () {\n        this.route('entity', {\n          path: '/:entity_id'\n        });\n      });\n      this.route('announcements', function () {\n        this.route('announcement', {\n          path: '/:announcement_id'\n        });\n      });\n      this.route('licensees', function () {\n        this.route('licensee', {\n          path: '/:licensee_id'\n        });\n      });\n      this.route('billing-report');\n      this.route('demo-entity');\n    });\n    this.route('entity', {\n      path: '/:id'\n    }, function () {\n      this.route('setup-incomplete');\n      this.route('settings', function () {\n        this.route('company');\n        this.route('profile');\n        this.route('integrations');\n        this.route('people', function () {\n          this.route('users', function () {\n            this.route('user', {\n              path: '/:user_id'\n            });\n          });\n          this.route('clients', function () {\n            this.route('client', {\n              path: '/:client_id'\n            });\n          });\n          this.route('subcontractors', function () {\n            this.route('subcontractor', {\n              path: '/:subcontractor_id'\n            });\n          });\n          this.route('workers', function () {\n            this.route('worker', {\n              path: '/:worker_id'\n            });\n          });\n        });\n        this.route('contacts', function () {\n          this.route('contact', {\n            path: '/:contact_id'\n          }, function () {});\n        });\n        this.route('chart-of-accounts', function () {\n          this.route('chart-of-account', {\n            path: '/:chart_of_account_id'\n          }, function () {});\n        });\n        this.route('auto-mapping');\n        this.route('estimates', function () {\n          this.route('embedded-page', {\n            path: '/:page'\n          });\n        });\n      });\n      this.route('financials', function () {\n        this.route('dashboard');\n        this.route('import', function () {\n          this.route('start');\n          this.route('done');\n          this.route('data', {\n            path: '/:step'\n          });\n        });\n        this.route('reports', function () {\n          this.route('general-ledger', function () {\n            this.route('itm-profit-and-loss');\n            this.route('profit-and-loss');\n            this.route('balance-sheet');\n            this.route('other-data');\n            this.route('personal-data');\n          });\n          this.route('kpis', function () {\n            this.route('kpi', {\n              path: '/:slug'\n            });\n          });\n          this.route('imports');\n        });\n        this.route('planning', function () {\n          this.route('strategies');\n        });\n        this.route('general');\n        this.route('chart-of-accounts');\n        this.route('kpis', function () {\n          this.route('kpi', {\n            path: '/:slug'\n          });\n        });\n        this.route('groups', function () {\n          this.route('membership');\n          this.route('access');\n          this.route('order');\n        });\n      });\n      this.route('module-dashboard');\n      this.route('disabled');\n      this.route('builda-price', function () {\n        this.route('dashboard', function () {});\n        this.route('projects', function () {\n          this.route('project', {\n            path: '/:project_id'\n          }, function () {\n            this.route('documents');\n            this.route('people', function () {\n              this.route('clients', function () {\n                this.route('client', {\n                  path: '/:client_id'\n                });\n              });\n              this.route('users', function () {\n                this.route('user', {\n                  path: '/:user_id'\n                });\n              });\n              this.route('subcontractors', function () {\n                this.route('subcontractor', {\n                  path: '/:subcontractor_id'\n                });\n              });\n              this.route('workers', function () {\n                this.route('worker', {\n                  path: '/:worker_id'\n                });\n              });\n            });\n            this.route('stage-payments');\n            this.route('financials');\n            this.route('settings');\n            this.route('tasks', function () {\n              this.route('task', {\n                path: '/:task_id'\n              }, function () {\n                this.route('financials');\n                this.route('settings');\n                this.route('documents');\n                this.route('products');\n                this.route('people', function () {\n                  this.route('clients', function () {\n                    this.route('client', {\n                      path: '/:client_id'\n                    });\n                  });\n                  this.route('users', function () {\n                    this.route('user', {\n                      path: '/:user_id'\n                    });\n                  });\n                  this.route('subcontractors', function () {\n                    this.route('subcontractor', {\n                      path: '/:subcontractor_id'\n                    });\n                  });\n                  this.route('workers', function () {\n                    this.route('worker', {\n                      path: '/:worker_id'\n                    });\n                  });\n                });\n              });\n            });\n            this.route('estimates', function () {\n              this.route('estimate', {\n                path: '/:estimate_id'\n              }, function () {\n                this.mount('builda-price-client-addon', {\n                  path: '/'\n                });\n              });\n            });\n            this.route('health-and-safety', function () {\n              this.mount('oss-portal-addon', {\n                resetNamespace: true,\n                path: '/'\n              });\n            });\n            this.route('progress');\n            this.route('products');\n          });\n        });\n        this.route('scheduling', function () {\n          this.route('timeline', function () {});\n        });\n        this.route('operations', function () {\n          this.route('incoming', function () {\n            this.route('timesheets', function () {\n              this.route('timesheet');\n            });\n            this.route('bills', function () {\n              this.route('bill', {\n                path: '/:bill_id'\n              });\n            });\n            this.route('bills-legacy', function () {\n              this.route('bill', {\n                path: '/:bill_id'\n              });\n            });\n            this.route('invoices', function () {\n              this.route('invoice', {\n                path: '/:invoice_id'\n              });\n            });\n            this.route('statements');\n          });\n          this.route('outgoing', function () {\n            this.route('payroll', function () {});\n            this.route('report-builder', function () {\n              this.route('pdf', {\n                path: '/:pdf_data'\n              });\n              this.route('excel', {\n                path: '/:excel_data'\n              });\n              this.route('csv', {\n                path: '/:csv_data'\n              });\n            });\n            this.route('invoices', function () {\n              this.route('invoice', {\n                path: '/:invoice_id'\n              }, function () {});\n            });\n            this.route('purchase-orders', function () {\n              this.route('purchase-order', {\n                path: '/:purchase_order_id'\n              }, function () {});\n            });\n          });\n          this.route('documents', function () {\n            this.route('project-file', {\n              path: '/:project_id'\n            }, function () {\n              this.route('task-file', {\n                path: '/:task_id'\n              }, function () {});\n            });\n          });\n          this.route('products');\n        });\n        this.route('reports', function () {\n          this.route('projects', function () {\n            this.route('project', {\n              path: '/:project_id'\n            }, function () {\n              this.route('labour-hours', function () {\n                this.route('task', {\n                  path: '/:task_id'\n                }, function () {});\n              });\n              this.route('budget', function () {\n                this.route('task', {\n                  path: '/:task_id'\n                }, function () {});\n              });\n              this.route('quote', function () {\n                this.route('task', {\n                  path: '/:task_id'\n                }, function () {});\n              });\n              this.route('cost');\n              this.route('position', function () {\n                this.route('task', {\n                  path: '/:task_id'\n                }, function () {});\n              });\n              this.route('profit-margins', function () {\n                this.route('task', {\n                  path: '/:task_id'\n                }, function () {});\n              });\n              this.route('forecast-breakdown', function () {\n                this.route('task', {\n                  path: '/:task_id'\n                }, function () {});\n              });\n              this.route('chargeup', function () {\n                this.route('task', {\n                  path: '/:task_id'\n                }, function () {});\n              });\n              this.route('invoicing', function () {\n                this.route('task', {\n                  path: '/:task_id'\n                }, function () {});\n              });\n              this.route('cost-to-complete', function () {\n                this.route('task', {\n                  path: '/:task_id'\n                }, function () {});\n              });\n              this.route('access');\n              this.route('notes');\n            });\n          });\n          this.route('company', function () {\n            this.route('position');\n            this.route('labour-hours');\n            this.route('wip');\n            this.route('forecast-breakdown');\n            this.route('profit-margins');\n            this.route('invoicing');\n            this.route('notes');\n          });\n        });\n      });\n    });\n    this.route('embed', {\n      path: '/embed/:token'\n    }, function () {\n      this.route('timesheets', function () {\n        this.route('timesheet');\n      });\n      this.route('position');\n      this.route('notes');\n      this.route('labour-hours');\n      this.route('profit-margins');\n      this.route('documents', function () {\n        this.route('project-file', {\n          path: '/:project_id'\n        }, function () {\n          this.route('task-file', {\n            path: '/:task_id'\n          }, function () {});\n        });\n      });\n      this.route('error');\n    });\n    this.route('no-access');\n    this.route('xero-callback');\n    this.route('complete-pm-auth');\n    this.route('complete-registration-cb');\n    this.route('not-found', {\n      path: '*path'\n    });\n    this.route('loading');\n  };\n  _exports.routerMap = routerMap;\n  Router.map(routerMap);\n  var _default = _exports.default = Router;\n});","define(\"portal/routes/admin\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n      _initializerDefineProperty(this, \"session\", _descriptor2, this);\n    }\n    async beforeModel() {\n      const usersRole = this.session?.data?.authenticated?.user?.role;\n      if (usersRole !== 'admin') return this.router.transitionTo('index');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/admin/announcements/announcement\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"@ember/object\", \"ember-changeset\", \"moment\"], function (_exports, _asyncArrowRuntime, _route, _service, _object, _emberChangeset, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"@ember/object\",0,\"ember-changeset\",0,\"moment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const stripHtml = (html = '') => html.replace(/<[^>]*>/g, '').trim();\n  const validateContent = ({\n    key,\n    newValue,\n    content,\n    changes,\n    oldValue\n  }) => {\n    const value = newValue || oldValue;\n    switch (key) {\n      case 'title':\n        return value?.length > 3 || 'Please provide a title';\n      case 'message':\n        {\n          const textOnly = stripHtml(value);\n          return textOnly.length > 3 || 'Please provide a message';\n        }\n      case 'validFrom':\n        {\n          const validFrom = newValue || content.validFrom || (0, _moment.default)();\n          const validUntil = changes.validUntil || content.validUntil;\n          if (!validUntil) return true;\n          return (0, _moment.default)(validFrom).isSameOrBefore(validUntil) || 'valid from date must be earlier than the valid until date';\n        }\n      case 'validUntil':\n        {\n          if (!newValue) return true;\n          const validFrom = changes.validFrom || content.validFrom || (0, _moment.default)();\n          return (0, _moment.default)(newValue).isSameOrAfter(validFrom) || 'Valid until date must be after the valid from date';\n        }\n      default:\n        break;\n    }\n  };\n  const announcementValidationMap = {\n    title: validateContent,\n    message: validateContent\n  };\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _defineProperty(this, \"basePath\", 'admin.announcements.announcement');\n      _defineProperty(this, \"getAnnouncement\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (id) {\n          let announcement;\n          if (id === 'new') {\n            let validFrom = (0, _moment.default)().toDate();\n            let validUntil = (0, _moment.default)().add(30, 'days').toDate();\n            announcement = yield this.store.createRecord('system-announcement', {\n              validFrom,\n              validUntil\n            });\n          } else {\n            announcement = yield this.store.findRecord('system-announcement', id, {\n              reload: true\n            });\n          }\n          return announcement;\n        }\n      }), null, \"getAnnouncement\", null));\n      _defineProperty(this, \"getAnnouncementChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (announcement) {\n          yield announcement.last;\n          return (0, _emberChangeset.Changeset)(announcement.last.value, validateContent, announcementValidationMap);\n        }\n      }), null, \"getAnnouncementChangeset\", null));\n      _defineProperty(this, \"getEntityAttributes\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const attributes = yield this.store.findAll('entity-attribute').then(r => r.toArray());\n          return attributes;\n        }\n      }), null, \"getEntityAttributes\", null));\n      _defineProperty(this, \"getUserAttributes\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const attributes = yield this.store.findAll('user-attribute').then(r => r.toArray());\n          return attributes;\n        }\n      }), null, \"getUserAttributes\", null));\n    }\n    model({\n      announcement_id: announcementId\n    }) {\n      this.getAnnouncement.perform(announcementId);\n      this.getEntityAttributes.perform();\n      this.getUserAttributes.perform();\n      this.getAnnouncementChangeset.perform(this.getAnnouncement);\n      return {\n        announcement: this.getAnnouncement,\n        announcementChangeset: this.getAnnouncementChangeset,\n        entityAttributes: this.getEntityAttributes,\n        userAttributes: this.getUserAttributes\n      };\n    }\n    willTransition() {\n      const announcement = this.currentModel.announcement.last.value;\n      if (announcement?.isNew) announcement.destroyRecord();\n      if (announcement.hasDirtyAttributes) announcement.unloadRecord();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"willTransition\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"willTransition\"), _class2.prototype), _class2);\n});","define(\"portal/routes/admin/announcements/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"portal/utils/search-filter\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _searchFilter, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"portal/utils/search-filter\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _defineProperty(this, \"pageSizes\", [10, 20, 30]);\n      _defineProperty(this, \"queryParams\", {\n        pageSize: {\n          refreshModel: true\n        },\n        pageNumber: {\n          refreshModel: true\n        },\n        sortBy: {\n          refreshModel: true\n        },\n        sortDirection: {\n          refreshModel: true\n        },\n        searchTerm: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getSystemAnnouncements\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (pageNumber, pageSize, sortBy, sortDirection, searchTerm) {\n          const filter = {\n            and: []\n          };\n          if (searchTerm?.length) {\n            filter.and.push((0, _searchFilter.default)(['title', 'message'], searchTerm));\n          }\n          let announcements = yield this.store.query('system-announcement', {\n            filter,\n            page: {\n              number: pageNumber || Number(1),\n              size: pageSize || this.pageSizes[0]\n            },\n            sort: sortDirection === 'desc' ? `-${sortBy}` : sortBy\n          });\n          return announcements;\n        }\n      }), null, \"getSystemAnnouncements\", null));\n    }\n    model({\n      pageSize = this.pageSizes[0],\n      pageNumber = 1,\n      sortBy = 'validFrom',\n      sortDirection = 'desc',\n      searchTerm\n    }) {\n      this.getSystemAnnouncements.perform(pageNumber, pageSize, sortBy, sortDirection, searchTerm);\n      return {\n        announcements: this.getSystemAnnouncements,\n        pageSizes: this.pageSizes,\n        pageSize: Number(pageSize),\n        pageNumber: Number(pageNumber),\n        sortBy: sortBy,\n        sortDirection: sortDirection\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/admin/billing-report\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  class _default extends _route.default {}\n  _exports.default = _default;\n});","define(\"portal/routes/admin/demo-entity\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"@ember/service\",0,\"ember-concurrency\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let AdminDemoEntityRoute = _exports.default = (_class = class AdminDemoEntityRoute extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"portalApiV2\", _descriptor, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor2, this);\n      _defineProperty(this, \"regenerateDemoEntity\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            if (!confirm('Are you sure?')) return;\n            yield this.portalApiV2.authPost(`/admin/regenerate-demo-entity`);\n            this.notifications.success('Demo entity regenerated');\n          } catch (error) {\n            this.notifications.error({\n              message: 'Something went wrong regenerating the demo entity',\n              error\n            });\n          }\n        }\n      }), null, \"regenerateDemoEntity\", null));\n    }\n    model() {\n      return {\n        regenerateDemoEntity: this.regenerateDemoEntity\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"portalApiV2\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"portal/routes/admin/entities/entity\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"ember-changeset\", \"@ember/object\"], function (_exports, _asyncArrowRuntime, _route, _service, _emberChangeset, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"ember-changeset\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const validateContent = ({\n    key,\n    newValue,\n    oldValue\n  }) => {\n    const value = newValue || oldValue;\n    switch (key) {\n      case 'name':\n        return value?.length > 3 || 'Please provide a name';\n      case 'region':\n        return value?.length > 0 || 'Please provide a region';\n      case 'brand':\n        return true;\n      case 'parent':\n        return true;\n      default:\n        break;\n    }\n  };\n  const entityValidationMap = {\n    name: validateContent,\n    region: validateContent,\n    brand: validateContent,\n    parent: validateContent\n  };\n  const featuresValidator = ({\n    key,\n    _newValue,\n    _oldValue,\n    _changes,\n    _content\n  }) => {\n    switch (key) {\n      case 'canUseBuildaPrice':\n        return true;\n      case 'canUseFinancialReporting':\n        return true;\n      default:\n        break;\n    }\n  };\n  const featuresValidationMap = {\n    canUseBuildaPrice: () => null,\n    canUseFinancialReporting: () => null\n  };\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _defineProperty(this, \"basePath\", 'admin.entities.entity');\n      _defineProperty(this, \"getEntity\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (id) {\n          let entity;\n          if (id === 'new') {\n            entity = yield this.store.createRecord('entity');\n          } else {\n            entity = yield this.store.findRecord('entity', id, {\n              reload: true,\n              include: 'attributes'\n            });\n          }\n          return entity;\n        }\n      }), null, \"getEntity\", null));\n      _defineProperty(this, \"getEntities\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          let entities = this.store.peekAll('entity').toArray().sortBy('name');\n          if (entities.length <= 1) {\n            entities = yield this.store.simpleQuery('entity').then(res => res.toArray().sortBy('name'));\n          }\n          return entities;\n        }\n      }), null, \"getEntities\", null));\n      _defineProperty(this, \"getEntityChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (entity) {\n          yield entity.last;\n          return (0, _emberChangeset.Changeset)(entity.last.value, validateContent, entityValidationMap);\n        }\n      }), null, \"getEntityChangeset\", null));\n      _defineProperty(this, \"getFeaturesChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (entity) {\n          yield entity.last;\n          return (0, _emberChangeset.Changeset)({\n            canUseBuildaPrice: entity.last.value.includesClaims('canUseBuildaPrice'),\n            canUseFinancialReporting: entity.last.value.includesClaims('canUseFinancialReporting'),\n            canUseDashboards: entity.last.value.includesClaims('canUseDashboards'),\n            canUseFileStorage: entity.last.value.includesClaims('canUseFileStorage'),\n            canUseHealthAndSafety: entity.last.value.includesClaims('canUseHealthAndSafety'),\n            canUseClientPortal: entity.last.value.includesClaims('canUseClientPortal'),\n            canUseClientReport: entity.last.value.includesClaims('canUseClientReport'),\n            canUseSupport: entity.last.value.includesClaims('canUseSupport'),\n            canUseProjectFinancials: entity.last.value.includesClaims('canUseProjectFinancials'),\n            canUseProjectProgress: entity.last.value.includesClaims('canUseProjectProgress'),\n            canUseCsvTaskFileUploader: entity.last.value.includesClaims('canUseCsvTaskFileUploader'),\n            canUseProducts: entity.last.value.includesClaims('canUseProducts'),\n            canUseEstimates: entity.last.value.includesClaims('canUseEstimates'),\n            canUseWIPReport: entity.last.value.includesClaims('canUseWIPReport'),\n            canUseForecastReport: entity.last.value.includesClaims('canUseForecastReport'),\n            canUseProfitMarginsReport: entity.last.value.includesClaims('canUseProfitMarginsReport'),\n            canUseLabourHoursReport: entity.last.value.includesClaims('canUseLabourHoursReport'),\n            canUseBudgetReport: entity.last.value.includesClaims('canUseBudgetReport'),\n            canUseQuoteReport: entity.last.value.includesClaims('canUseQuoteReport'),\n            canUseCostReport: entity.last.value.includesClaims('canUseCostReport'),\n            canUseChargeupReport: entity.last.value.includesClaims('canUseChargeupReport'),\n            canUsePositionReport: entity.last.value.includesClaims('canUsePositionReport'),\n            canUseTimesheets: entity.last.value.includesClaims('canUseTimesheets'),\n            canUseCrystalPayroll: entity.last.value.includesClaims('canUseCrystalPayroll'),\n            canUseSmartPayroll: entity.last.value.includesClaims('canUseSmartPayroll'),\n            canUseKeypay: entity.last.value.includesClaims('canUseKeypay'),\n            canUseNotes: entity.last.value.includesClaims('canUseNotes'),\n            canUseBills: entity.last.value.includesClaims('canUseBills'),\n            canUseStatements: entity.last.value.includesClaims('canUseStatements'),\n            canUseIPS: entity.last.value.includesClaims('canUseIPS'),\n            canUseScheduling: entity.last.value.includesClaims('canUseScheduling'),\n            canUsePlaceMakers: entity.last.value.includesClaims('canUsePlaceMakers'),\n            canUseCarters: entity.last.value.includesClaims('canUseCarters'),\n            canUsePurchaseOrders: entity.last.value.includesClaims('canUsePurchaseOrders'),\n            canUseInvoicing: entity.last.value.includesClaims('canUseInvoicing'),\n            canUseStagePayments: entity.last.value.includesClaims('canUseStagePayments'),\n            canUseInvoicingReport: entity.last.value.includesClaims('canUseInvoicingReport'),\n            canUseGeofencing: entity.last.value.includesClaims('canUseGeofencing')\n          }, featuresValidator, featuresValidationMap);\n        }\n      }), null, \"getFeaturesChangeset\", null));\n    }\n    model({\n      entity_id: entityId\n    }) {\n      this.getEntity.perform(entityId);\n      this.getEntityChangeset.perform(this.getEntity);\n      this.getEntities.perform();\n      this.getFeaturesChangeset.perform(this.getEntity);\n      return {\n        entity: this.getEntity,\n        entityChangeset: this.getEntityChangeset,\n        entities: this.getEntities,\n        featuresChangeset: this.getFeaturesChangeset\n      };\n    }\n    setupController(controller, model) {\n      super.setupController(controller, model);\n      controller.openInviteUserModal = false;\n    }\n    willTransition() {\n      const entity = this.currentModel.entity.last.value;\n      if (entity?.isNew) entity.destroyRecord();\n      if (entity.hasDirtyAttributes) entity.unloadRecord();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"willTransition\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"willTransition\"), _class2.prototype), _class2);\n});","define(\"portal/routes/admin/entities/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _defineProperty(this, \"getEntities\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          let entities = this.store.peekAll('entity').toArray().sortBy('name');\n          if (!entities.length <= 1) entities = yield this.store.query('entity', {\n            include: 'attributes',\n            sort: 'name'\n          }).then(res => res.toArray());\n          return entities;\n        }\n      }), null, \"getEntities\", null));\n    }\n    setupController(controller) {\n      super.setupController(...arguments);\n      controller.searchString = '';\n    }\n    model() {\n      this.getEntities.perform();\n      return {\n        entities: this.getEntities\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/admin/index\", [\"exports\", \"@ember/routing/route\", \"portal/mixins/menu-route\"], function (_exports, _route, _menuRoute) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"portal/mixins/menu-route\"eaimeta@70e063a35619d71f\n  class _default extends _route.default.extend(_menuRoute.default) {\n    get defaultRoute() {\n      return 'admin.entities.index';\n    }\n  }\n  _exports.default = _default;\n});","define(\"portal/routes/admin/licensees/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _defineProperty(this, \"getEntities\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const storeEntities = this.store.peekAll('entity').toArray();\n          const needsAttributes = storeEntities.some(e => e.hasMany('attributes').value() === null);\n          const shouldQuery = storeEntities.length <= 1 || needsAttributes;\n          const entities = shouldQuery ? yield this.store.query('entity', {\n            sort: 'name',\n            include: 'attributes'\n          }).then(res => res.toArray()) : storeEntities;\n          return entities;\n        }\n      }), null, \"getEntities\", null));\n    }\n    model() {\n      this.getEntities.perform();\n      return {\n        entities: this.getEntities\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/admin/licensees/licensee\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _defineProperty(this, \"basePath\", 'admin.licensees.licensee');\n      _defineProperty(this, \"getLicensee\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (id) {\n          const licensee = yield this.store.findRecord('entity', id, {\n            reload: true,\n            include: 'attributes'\n          });\n          return licensee;\n        }\n      }), null, \"getLicensee\", null));\n      _defineProperty(this, \"getEntities\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const storeEntities = this.store.peekAll('entity').toArray();\n          const needsAttributes = storeEntities.some(e => e.hasMany('attributes').value() === null);\n          const shouldQuery = storeEntities.length <= 1 || needsAttributes;\n          const entities = shouldQuery ? yield this.store.query('entity', {\n            sort: 'name',\n            include: 'attributes'\n          }).then(res => res.toArray()) : storeEntities;\n          return entities;\n        }\n      }), null, \"getEntities\", null));\n      _defineProperty(this, \"getUsers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (licenseeId) {\n          const userEntityAttribute = yield this.store.query('user-entity-attribute', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: licenseeId\n              }, {\n                field: 'attribute',\n                op: 'EQ',\n                value: 'canManageEntity'\n              }]\n            }\n          });\n          const userIds = userEntityAttribute.toArray().map(u => u.belongsTo('user').id());\n          return userIds.length ? yield this.store.query('user', {\n            filter: {\n              and: [{\n                field: '_id',\n                op: 'IN',\n                value: userIds\n              }]\n            },\n            sort: 'name'\n          }).then(res => res.toArray()) : [];\n        }\n      }), null, \"getUsers\", null));\n    }\n    model({\n      licensee_id: licenseeId\n    }) {\n      this.getLicensee.perform(licenseeId);\n      this.getEntities.perform();\n      this.getUsers.perform(licenseeId);\n      return {\n        licensee: this.getLicensee,\n        entities: this.getEntities,\n        users: this.getUsers\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/application\", [\"exports\", \"@ember/routing/route\", \"@ember/service\", \"@ember/object\", \"portal/adapters/errors\", \"portal/config/environment\", \"qs\"], function (_exports, _route, _service, _object, _errors, _environment, _qs) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\",0,\"@ember/object\",0,\"@ember/object\",0,\"portal/adapters/errors\",0,\"portal/config/environment\",0,\"qs\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let ApplicationRoute = _exports.default = (_class = class ApplicationRoute extends _route.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"session\", _descriptor, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor2, this);\n      _initializerDefineProperty(this, \"xeroIntegration\", _descriptor3, this);\n      _initializerDefineProperty(this, \"metrics\", _descriptor4, this);\n      _initializerDefineProperty(this, \"router\", _descriptor5, this);\n      this.router.on('routeDidChange', () => {\n        const page_location = window.location.href;\n        const page_title = this.router.currentRouteName || 'unknown';\n        this.metrics.trackPage({\n          page_location,\n          page_title\n        });\n      });\n    }\n    async beforeModel(...args) {\n      super.beforeModel(...args);\n      await this.session.setup();\n\n      /* ======================== Handle possible Xero authentication ======================== */\n      const queryParams = _qs.default.parse(window.location.search.substring(1)) || {};\n      const {\n        oauth_token,\n        oauth_verifier,\n        entityId,\n        xeroAuthRedirect\n      } = queryParams;\n      if (xeroAuthRedirect) {\n        if (oauth_token && oauth_verifier) {\n          try {\n            await this.xeroIntegration.finishAuthenticate(oauth_token, oauth_verifier, entityId);\n            this.notifications.success('Connected to Xero');\n          } catch (error) {\n            this.notifications.error({\n              error,\n              message: 'Failed to complete Xero connection'\n            });\n          }\n        } else {\n          this.notifications.warning('Did not receive authentication from Xero');\n        }\n\n        // Make sure xero data does not stay in the URL\n        const newUrl = window.location.href.replace(/org=[^&]+&?/, '').replace(/error=[^&]+&?/, '').replace(/entityId=[^&]+&?/, '').replace(/oauth_token=[^&]+&?/, '').replace(/oauth_verifier=[^&]+&?/, '').replace(/xeroAuthRedirect=[^&]+&?/, '').replace(/error_description=[^&]+&?/, '').replace(/\\?$/, '');\n        if (newUrl !== window.location.href) window.history.replaceState(null, '', newUrl);\n      }\n    }\n\n    /**\n     * @param {Error|String} err - The error that was thrown. Or a string describing the error\n     * @returns {null}\n     */\n    error(err) {\n      const isConnectionError = err instanceof _errors.ConnectionError;\n      const adapterOperationAborted = err && (0, _object.get)(err, 'message') === 'The adapter operation was aborted';\n      const isUnauthorizedError = err && (0, _object.get)(err, 'errors.0.status') === '401';\n      if (isConnectionError || adapterOperationAborted) {\n        this.notifications.error('Connection error. The server could not be reached.');\n      } else if (!isUnauthorizedError) {\n        this.notifications.error({\n          message: 'Whoops! An unexpected error occurred.',\n          error: err\n        });\n        console.error(err.stack || err); // eslint-disable-line no-console\n      }\n    }\n    serverError(err) {\n      this.send('error', err);\n    }\n    logout() {\n      this.session.invalidate();\n    }\n    didTransition() {\n      // During testing, we want to scroll the #ember-testing pane, not the entire page\n      const target = _environment.default.APP.rootElement ? document.querySelector(_environment.default.APP.rootElement) : window;\n      // Reset scrolling position on transitions\n      target.scrollTo(0, 0);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"xeroIntegration\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"metrics\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"error\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"error\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"serverError\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"serverError\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"logout\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"logout\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"didTransition\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"didTransition\"), _class.prototype), _class);\n});","define(\"portal/routes/basic\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"session\", _descriptor, this);\n    }\n    async beforeModel(transition) {\n      await this.session.requireAuthentication(transition, 'login');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/complete-pm-auth\", [\"exports\", \"@ember/routing/route\", \"@ember/service\", \"jquery\", \"portal/config/environment\"], function (_exports, _route, _service, _jquery, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\",0,\"jquery\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let PMOauthCallback = _exports.default = (_dec = (0, _service.inject)(), _dec2 = (0, _service.inject)(), _dec3 = (0, _service.inject)(), _class = class PMOauthCallback extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n      _initializerDefineProperty(this, \"session\", _descriptor2, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor3, this);\n      _defineProperty(this, \"queryParams\", {\n        code: {\n          refreshModel: false\n        },\n        state: {\n          refreshModel: false\n        },\n        error: {\n          refreshModel: false\n        }\n      });\n    }\n    async model(params) {\n      const {\n        code,\n        state,\n        error: errorParam\n      } = params;\n      const {\n        entityId\n      } = decodeState(state);\n      const accessToken = this.session.data.authenticated?.access_token;\n      if (errorParam) {\n        this.notifications.error({\n          message: 'Unable to complete PlaceMakers connection',\n          error: new Error('Unable to complete PM connection. Received error: ' + errorParam)\n        });\n        this.router.transitionTo('entity');\n        return;\n      }\n      if (!accessToken) {\n        this.notifications.error('Unable to complete PlaceMakers connection, it appears you are not logged in');\n        this.router.transitionTo('login');\n        return;\n      }\n      if (!entityId) {\n        this.notifications.error({\n          message: 'Unable to complete PlaceMakers connection',\n          error: new Error('Unable to complete PM connection. No entityId found')\n        });\n        this.router.transitionTo('entity');\n        return;\n      }\n      if (!code) {\n        this.notifications.error({\n          message: 'Unable to complete PlaceMakers connection',\n          error: new Error('Unable to complete PM connection. No auth code found')\n        });\n        this.router.transitionTo('entity.settings.integrations', entityId);\n        return;\n      }\n      try {\n        await submitAuthCodeAjax({\n          code,\n          entityId,\n          accessToken,\n          redirectURI: window.location.href.split('?')[0]\n        });\n        this.notifications.success('You are now connected to PlaceMakers');\n      } catch (error) {\n        this.notifications.error({\n          error,\n          message: 'Unable to complete PlaceMakers connection'\n        });\n      } finally {\n        this.router.transitionTo('entity.settings.integrations', entityId);\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"router\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"session\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"notifications\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n  /**\n   * Decodes base64 encoded JSON\n   * @param {String} b64\n   * @return {Object}\n   */\n  function decodeState(b64) {\n    return JSON.parse(atob(b64));\n  }\n  function submitAuthCodeAjax({\n    accessToken,\n    entityId,\n    code,\n    redirectURI\n  }) {\n    return new Promise((resolve, reject) => {\n      _jquery.default.ajax({\n        method: 'POST',\n        url: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/pm-integration/pm-submit-oauth-code',\n        headers: {\n          Authorization: `Bearer ${accessToken}`,\n          'Content-Type': 'application/json'\n        },\n        data: JSON.stringify({\n          code,\n          entityId,\n          redirectURI\n        })\n      }).then(resolve, reject);\n    });\n  }\n});","define(\"portal/routes/complete-registration-cb\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"jquery\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _route, _service, _jquery, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"jquery\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _defineProperty(this, \"serverTokenEndpoint\", `${_environment.default.urls.api}${_environment.default.urls.apiV2Path}/chargebee/redeem-registration-token-cb`);\n      _defineProperty(this, \"queryParams\", {\n        token: {\n          refreshModel: false\n        },\n        _confirmEmailCode: {\n          refreshModel: false\n        },\n        cbHostedPageId: {\n          refreshModel: false\n        }\n      });\n      _defineProperty(this, \"getRegistrationData\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (token) {\n          const url = `${this.serverTokenEndpoint}?token=${token}`;\n          let registrationData;\n          try {\n            registrationData = yield new Promise((resolve, reject) => {\n              // eslint-disable-next-line ember/no-jquery\n              _jquery.default.ajax({\n                url,\n                method: 'GET',\n                accepts: 'application/json'\n              }).then(resolve, reject);\n            });\n          } catch (error) {\n            if (error.responseJSON?.errors?.[0]) {\n              this.notifications.error({\n                error,\n                message: 'Error fetching registration data',\n                customData: [`registrationToken: ${token}`]\n              });\n              return {\n                error: error.responseJSON?.errors?.[0]\n              };\n            }\n            this.send('error', error);\n          }\n          return registrationData;\n        }\n      }), {\n        drop: true\n      }, \"getRegistrationData\", null));\n      _defineProperty(this, \"actions\", {\n        refreshRegistrationData() {\n          this.refresh();\n        }\n      });\n    }\n    model(params) {\n      if (!params.token) {\n        return {\n          registrationData: null,\n          errorMessage: 'Registration link was malformed.'\n        };\n      }\n      return {\n        registrationData: this.getRegistrationData.perform(params.token),\n        token: params.token,\n        confirmEmailCode: params._confirmEmailCode\n      };\n    }\n    setupController(controller, model) {\n      super.setupController(...arguments);\n      controller.password = '';\n      controller.passwordCheck = '';\n      if (model.confirmEmailCode) controller.confirmEmailCode = model.confirmEmailCode;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/embed\", [\"exports\", \"@ember/routing/route\", \"@ember/service\", \"portal/utils/get-default-language\"], function (_exports, _route, _service, _getDefaultLanguage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\",0,\"portal/utils/get-default-language\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"session\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n    }\n    async beforeModel(transition) {\n      const {\n        token = ''\n      } = this.paramsFor('embed');\n\n      // this means we're trying to access this page directly, just redirect to the error\n      if (transition.targetName === `${this.fullRouteName}.index`) this.router.transitionTo('embed.error', token);\n      const [accessToken, userId, entityId] = token.split(':');\n      if (!accessToken || !userId || !entityId) {\n        this.router.transitionTo('embed.error', token);\n        return;\n      }\n      try {\n        await this.session.authenticate('authenticator:embed', accessToken, userId, transition);\n\n        // set the currently selected entity and user in sessionData\n        this.sessionData.entity = await this.store.findRecord('entity', entityId, {\n          include: 'attributes,financialOptions,pricingConnection,eaccountsInvoiceIntegration,xeroConnection,projects'\n        });\n        this.sessionData.user = await this.store.findRecord('user', userId, {\n          include: 'entityAttributes,entityGroups,pricingRoles,projectAttributes,taskAttributes,workerAttributes'\n        });\n        const language = this.sessionData?.user?.language ?? (0, _getDefaultLanguage.getDefaultUserOrWorkerLanguage)();\n        this.intl.setLocale([language]);\n      } catch (error) {\n        this.router.transitionTo('embed.error', token);\n        return;\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/embed/documents\", [\"exports\", \"portal/routes/entity/builda-price/operations/documents\"], function (_exports, _documents) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/routes/entity/builda-price/operations/documents\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  class _default extends _documents.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"controllerName\", 'entity/builda-price/operations/documents');\n      _defineProperty(this, \"templateName\", 'entity/builda-price/operations/documents');\n      _defineProperty(this, \"basePath\", 'embed.documents');\n    }\n  }\n  _exports.default = _default;\n});","define(\"portal/routes/embed/documents/index\", [\"exports\", \"portal/routes/entity/builda-price/operations/documents/index\"], function (_exports, _index) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/routes/entity/builda-price/operations/documents/index\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  class _default extends _index.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"controllerName\", 'entity/builda-price/operations/documents/index');\n      _defineProperty(this, \"templateName\", 'entity/builda-price/operations/documents/index');\n      _defineProperty(this, \"basePath\", 'embed.documents.index');\n    }\n  }\n  _exports.default = _default;\n});","define(\"portal/routes/embed/documents/project-file\", [\"exports\", \"portal/routes/entity/builda-price/operations/documents/project-file\"], function (_exports, _projectFile) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/routes/entity/builda-price/operations/documents/project-file\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  class _default extends _projectFile.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"controllerName\", 'entity/builda-price/operations/documents/project-file');\n      _defineProperty(this, \"templateName\", 'entity/builda-price/operations/documents/project-file');\n      _defineProperty(this, \"basePath\", 'embed.documents.project-file');\n    }\n  }\n  _exports.default = _default;\n});","define(\"portal/routes/embed/documents/project-file/index\", [\"exports\", \"portal/routes/entity/builda-price/operations/documents/project-file/index\"], function (_exports, _index) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/routes/entity/builda-price/operations/documents/project-file/index\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  class _default extends _index.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"controllerName\", 'entity/builda-price/operations/documents/project-file/index');\n      _defineProperty(this, \"templateName\", 'entity/builda-price/operations/documents/project-file/index');\n      _defineProperty(this, \"basePath\", 'embed.documents.project-file.index');\n    }\n  }\n  _exports.default = _default;\n});","define(\"portal/routes/embed/documents/project-file/task-file\", [\"exports\", \"portal/routes/entity/builda-price/operations/documents/project-file/task-file\"], function (_exports, _taskFile) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/routes/entity/builda-price/operations/documents/project-file/task-file\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  class _default extends _taskFile.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"controllerName\", 'entity/builda-price/operations/documents/project-file/task-file');\n      _defineProperty(this, \"templateName\", 'entity/builda-price/operations/documents/project-file/task-file');\n      _defineProperty(this, \"basePath\", 'embed.documents.project-file.task-file');\n    }\n  }\n  _exports.default = _default;\n});","define(\"portal/routes/embed/error\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend({});\n});","define(\"portal/routes/embed/labour-hours\", [\"exports\", \"portal/routes/entity/builda-price/reports/company/labour-hours\"], function (_exports, _labourHours) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/routes/entity/builda-price/reports/company/labour-hours\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  class _default extends _labourHours.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"controllerName\", 'entity/builda-price/reports/company/labour-hours');\n      _defineProperty(this, \"templateName\", 'entity/builda-price/reports/company/labour-hours');\n      _defineProperty(this, \"basePath\", 'embed.labour-hours');\n    }\n  }\n  _exports.default = _default;\n});","define(\"portal/routes/embed/notes\", [\"exports\", \"portal/routes/entity/builda-price/reports/company/notes\"], function (_exports, _notes) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/routes/entity/builda-price/reports/company/notes\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  class _default extends _notes.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"controllerName\", 'entity/builda-price/reports/company/notes');\n      _defineProperty(this, \"templateName\", 'entity/builda-price/reports/company/notes');\n      _defineProperty(this, \"basePath\", 'embed.notes');\n    }\n  }\n  _exports.default = _default;\n});","define(\"portal/routes/embed/position\", [\"exports\", \"portal/routes/entity/builda-price/reports/company/position\"], function (_exports, _position) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/routes/entity/builda-price/reports/company/position\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  class _default extends _position.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"controllerName\", 'entity/builda-price/reports/company/position');\n      _defineProperty(this, \"templateName\", 'entity/builda-price/reports/company/position');\n      _defineProperty(this, \"basePath\", 'embed.position');\n    }\n  }\n  _exports.default = _default;\n});","define(\"portal/routes/embed/profit-margins\", [\"exports\", \"portal/routes/entity/builda-price/reports/company/profit-margins\"], function (_exports, _profitMargins) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/routes/entity/builda-price/reports/company/profit-margins\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  class _default extends _profitMargins.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"controllerName\", 'entity/builda-price/reports/company/profit-margins');\n      _defineProperty(this, \"templateName\", 'entity/builda-price/reports/company/profit-margins');\n      _defineProperty(this, \"basePath\", 'embed.profit-margins');\n    }\n  }\n  _exports.default = _default;\n});","define(\"portal/routes/embed/timesheets\", [\"exports\", \"portal/routes/entity/builda-price/operations/incoming/timesheets\"], function (_exports, _timesheets) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/routes/entity/builda-price/operations/incoming/timesheets\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _timesheets.default.extend({\n    controllerName: 'entity/builda-price/operations/incoming/timesheets',\n    templateName: 'entity/builda-price/operations/incoming/timesheets',\n    basePath: 'embed'\n  });\n});","define(\"portal/routes/embed/timesheets/timesheet\", [\"exports\", \"portal/routes/entity/builda-price/operations/incoming/timesheets/timesheet\"], function (_exports, _timesheet) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/routes/entity/builda-price/operations/incoming/timesheets/timesheet\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _timesheet.default.extend({\n    controllerName: 'entity/builda-price/operations/incoming/timesheets/timesheet',\n    templateName: 'entity/builda-price/operations/incoming/timesheets/timesheet',\n    basePath: 'embed'\n  });\n});","define(\"portal/routes/entity-loading\", [\"exports\", \"portal/routes/entity\", \"portal/utils/loading-route-from\"], function (_exports, _entity, _loadingRouteFrom) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/routes/entity\",0,\"portal/utils/loading-route-from\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _loadingRouteFrom.default)(_entity.default, 'entity');\n});","define(\"portal/routes/entity\", [\"exports\", \"@ember/routing/route\", \"@ember/object\", \"@ember/service\"], function (_exports, _route, _object, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/object\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  function isLeavingSection(from, to) {\n    // if either side is missing, treat as not leaving\n    if (!from || !to) return false;\n\n    // ignore Ember \"loading\" states\n    if (from.localName?.includes('loading') || to.localName?.includes('loading')) return false;\n\n    // if we're on an .index route, use its parent as the \"section root\"\n    const sectionRoute = from.localName === 'index' ? from.parent : from;\n\n    // check ancestry: \"to.find\" walks up the route tree\n    // if we cannot find the base route anywhere in the \"to\" ancestry, we are leaving the section\n    const stillInSection = to.find(parentRoute => parentRoute.name === sectionRoute.name);\n    return !stillInSection;\n  }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"session\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _initializerDefineProperty(this, \"helpCenter\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n    }\n    async beforeModel() {\n      if (this.isDestroying || this.isDestroyed) return;\n      const {\n        id\n      } = this.paramsFor('entity');\n\n      // check if the user is authenticated\n      if (this.session.isDestroying || this.session.isDestroyed) return;\n      if (!this.session.isAuthenticated) {\n        // if user is not authenticated go to login\n        return this.router.transitionTo('login');\n      }\n      await this.sessionData.reloadApp(id);\n    }\n\n    // this will prevent unsaved changes from staying around when leaving a route\n    rollbackUnsavedChanges(transition) {\n      const shouldRollback = isLeavingSection(transition.from, transition.to);\n      if (!shouldRollback) return;\n      Object.keys(this.store._modelFactoryCache).forEach(modelName => {\n        this.store.peekAll(modelName).forEach(record => {\n          if (record?.hasDirtyAttributes) {\n            record.rollbackAttributes();\n          }\n        });\n      });\n    }\n\n    // lets the zendesk widget know which route we're on so it can offer articles\n    updateHelpCenter(transition) {\n      if (transition.to.name.startsWith('entity.') && !transition.to.name.includes('loading')) {\n        this.helpCenter.setLabels(...transition.to.name.split('.'));\n      }\n    }\n    onRouteWillChange(transition) {\n      if (!transition.to || transition.isAborted) return;\n      this.rollbackUnsavedChanges(transition);\n      this.updateHelpCenter(transition);\n    }\n    activate() {\n      this._onRouteWillChange = this.onRouteWillChange.bind(this);\n      this.router.on('routeWillChange', this._onRouteWillChange);\n    }\n    deactivate() {\n      if (this._onRouteWillChange) this.router.off('routeWillChange', this._onRouteWillChange);\n    }\n    changeEntity({\n      id\n    }) {\n      this.sessionData.changeEntity(id);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"helpCenter\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"changeEntity\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"changeEntity\"), _class2.prototype), _class2);\n});","define(\"portal/routes/entity/builda-price\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"helpCenter\", _descriptor3, this);\n    }\n    beforeModel() {\n      if (this.newFeatureFlags.excludesFeatureFlags('canUseBuildaPrice')) return this.router.transitionTo('entity');\n      if (this.newFeatureFlags.includesFeatureFlags('entityHasSupport')) this.helpCenter.showHelpCenter();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"helpCenter\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/dashboard/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n      _defineProperty(this, \"getAdHocReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const filter = {\n            entity: this.sessionData.entity.id,\n            status: 'OPEN'\n          };\n          const report = {\n            name: this.intl.t('common.Dashboard'),\n            doNotThrowErrorOnNoData: true,\n            subjects: []\n          };\n          if (this.newFeatureFlags.includesFeatureFlags('canUseProjectProgressReports')) report.subjects.push({\n            index: 1,\n            width: 4,\n            height: 2,\n            name: this.intl.t('entity.builda-price.dashboard.Forecast used'),\n            elementType: 'BIG_TEXT',\n            borderStyle: 'BORDER',\n            axes: {\n              label: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.report.The amount of your forecast used')\n              }]]\n            },\n            groupType: 'GROUPED',\n            metricsSubject: {\n              resourceName: 'projects',\n              filter\n            },\n            metrics: [[{\n              metric: 'FINANCIAL_PROGRESS_TOTAL'\n            }]]\n          });\n          if (this.newFeatureFlags.includesFeatureFlags('canUseProjectBudgetReports') && this.newFeatureFlags.includesFeatureFlags('canUseProjectQuoteReports') && this.newFeatureFlags.includesFeatureFlags('canUseProjectCostReports')) report.subjects.push({\n            index: 2,\n            width: 4,\n            height: 2,\n            name: this.intl.t('entity.builda-price.dashboard.Current position'),\n            elementType: 'MULTI_GAUGE',\n            borderStyle: 'BORDER',\n            axes: {\n              x: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Budget')\n              }, {\n                subject: {\n                  resourceName: 'projects',\n                  filter\n                },\n                metric: 'BUDGET_TOTAL'\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Quote')\n              }, {\n                subject: {\n                  resourceName: 'projects',\n                  filter\n                },\n                metric: 'QUOTE_TOTAL'\n              }]]\n            },\n            groupType: 'GROUPED',\n            metricsSubject: {\n              resourceName: 'projects',\n              filter\n            },\n            metrics: [[{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('entity.builda-price.dashboard.Actual')\n            }, {\n              metric: 'COST_TOTAL'\n            }]]\n          });\n          if (this.newFeatureFlags.includesFeatureFlags('canUseProjectBudgetReports')) report.subjects.push({\n            index: 3,\n            width: 4,\n            height: 2,\n            name: this.intl.t('entity.builda-price.dashboard.Forecast position'),\n            elementType: 'MULTI_GAUGE',\n            borderStyle: 'BORDER',\n            axes: {\n              x: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Budget')\n              }, {\n                subject: {\n                  resourceName: 'projects',\n                  filter\n                },\n                metric: 'BUDGET_TOTAL'\n              }]]\n            },\n            groupType: 'GROUPED',\n            metricsSubject: {\n              resourceName: 'projects',\n              filter\n            },\n            metrics: [[{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('entity.builda-price.dashboard.Forecast')\n            }, {\n              subject: {\n                resourceName: 'projects',\n                filter\n              },\n              metric: 'FORECAST_BUDGET'\n            }]]\n          });\n          if (this.newFeatureFlags.includesFeatureFlags('canUseTimesheets')) report.subjects.push({\n            name: this.intl.t('entity.builda-price.dashboard.Recent timesheets'),\n            index: 4,\n            width: 4,\n            height: 3,\n            elementType: 'TABLE',\n            borderStyle: 'BORDER',\n            axes: {\n              thead: [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Date')\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Worker'),\n                classes: [{\n                  class: 'pe-1'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: '',\n                classes: [{\n                  class: 'ps-0'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Task')\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('entity.builda-price.dashboard.Duration'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }],\n              tfoot: []\n            },\n            groupType: 'SEPARATE',\n            metricsSubject: {\n              resourceName: 'timesheets',\n              filter: {\n                entity: this.sessionData.entity.id,\n                date: {\n                  $lte: new Date(),\n                  $gte: new Date(new Date().setDate(new Date().getDate() - 7))\n                }\n              },\n              sortKey: 'date',\n              sortDirection: 'DESC'\n            },\n            metrics: [[{\n              metric: 'PROPERTY',\n              key: 'date',\n              linkTo: {\n                route: 'entity.builda-price.operations.incoming.timesheets.timesheet',\n                queryParams: {\n                  date: {\n                    key: 'date'\n                  },\n                  worker: {\n                    key: 'worker'\n                  }\n                }\n              }\n            }, {\n              metric: 'RELATIONSHIP_PROPERTY',\n              key: 'worker.firstName',\n              classes: [{\n                class: 'pe-1'\n              }]\n            }, {\n              metric: 'RELATIONSHIP_PROPERTY',\n              key: 'worker.lastName',\n              classes: [{\n                class: 'ps-0'\n              }]\n            }, {\n              metric: 'RELATIONSHIP_PROPERTY',\n              key: 'task.name'\n            }, {\n              metric: 'TIMESHEET_DURATION',\n              classes: [{\n                class: 'text-right'\n              }]\n            }]]\n          });\n          if (this.newFeatureFlags.includesFeatureFlags('canUseBills')) report.subjects.push({\n            name: this.intl.t('entity.builda-price.dashboard.Recent bills'),\n            index: 5,\n            width: 4,\n            height: 3,\n            elementType: 'TABLE',\n            borderStyle: 'BORDER',\n            searchEnabled: false,\n            axes: {\n              thead: [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Reference')\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.From')\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Issue date')\n              }],\n              tfoot: []\n            },\n            groupType: 'SEPARATE',\n            metricsSubject: {\n              resourceName: 'bills',\n              filter: {\n                entity: this.sessionData.entity.id,\n                dateCreated: {\n                  $lte: new Date(),\n                  $gte: new Date(new Date().setDate(new Date().getDate() - 7))\n                }\n              },\n              sortKey: 'issueDate',\n              sortDirection: 'DESC'\n            },\n            metrics: [[{\n              metric: 'PROPERTY',\n              key: 'reference',\n              linkTo: {\n                route: 'entity.builda-price.operations.incoming.bills.bill',\n                modelKeys: ['_id']\n              }\n            }, {\n              metric: 'PROPERTY',\n              key: 'issuer'\n            }, {\n              metric: 'PROPERTY',\n              key: 'issueDate'\n            }]]\n          });\n          if (this.newFeatureFlags.includesFeatureFlags('canUseProjectTasks')) report.subjects.push({\n            name: this.intl.t('entity.builda-price.dashboard.Recent tasks'),\n            index: 6,\n            width: 4,\n            height: 3,\n            elementType: 'TABLE',\n            borderStyle: 'BORDER',\n            searchEnabled: false,\n            axes: {\n              thead: [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Name')\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.report.Date created')\n              }],\n              tfoot: []\n            },\n            groupType: 'SEPARATE',\n            metricsSubject: {\n              resourceName: 'tasks',\n              filter: {\n                entity: this.sessionData.entity.id,\n                dateCreated: {\n                  $lte: new Date(),\n                  $gte: new Date(new Date().setDate(new Date().getDate() - 7))\n                }\n              },\n              sortKey: 'dateCreated',\n              sortDirection: 'DESC'\n            },\n            metrics: [[{\n              metric: 'PROPERTY',\n              key: 'name',\n              linkTo: {\n                route: 'entity.builda-price.projects.project.tasks.task',\n                modelKeys: ['project', '_id']\n              }\n            }, {\n              metric: 'PROPERTY',\n              key: 'dateCreated'\n            }]]\n          });\n          if (this.newFeatureFlags.includesFeatureFlags('canUseProjects')) report.subjects.push({\n            name: this.intl.t('entity.builda-price.dashboard.Recent projects'),\n            index: 7,\n            width: 4,\n            height: 3,\n            elementType: 'TABLE',\n            borderStyle: 'BORDER',\n            searchEnabled: false,\n            axes: {\n              thead: [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Name')\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.report.Date created')\n              }],\n              tfoot: []\n            },\n            groupType: 'SEPARATE',\n            metricsSubject: {\n              resourceName: 'projects',\n              filter: {\n                entity: this.sessionData.entity.id,\n                dateCreated: {\n                  $lte: new Date(),\n                  $gte: new Date(new Date().setDate(new Date().getDate() - 7))\n                }\n              },\n              sortKey: 'dateCreated',\n              sortDirection: 'DESC'\n            },\n            metrics: [[{\n              metric: 'PROPERTY',\n              key: 'name',\n              linkTo: {\n                route: 'entity.builda-price.projects.project',\n                modelKeys: ['_id']\n              }\n            }, {\n              metric: 'PROPERTY',\n              key: 'dateCreated'\n            }]]\n          });\n          if (this.newFeatureFlags.includesFeatureFlags('canUsePurchaseOrders')) report.subjects.push({\n            name: this.intl.t('entity.builda-price.dashboard.Recent purchase orders'),\n            index: 8,\n            width: 4,\n            height: 3,\n            elementType: 'TABLE',\n            borderStyle: 'BORDER',\n            searchEnabled: false,\n            axes: {\n              thead: [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Name')\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.report.Date created')\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Status')\n              }],\n              tfoot: []\n            },\n            groupType: 'SEPARATE',\n            metricsSubject: {\n              resourceName: 'purchase-orders',\n              filter: {\n                entity: this.sessionData.entity.id,\n                dateCreated: {\n                  $lte: new Date(),\n                  $gte: new Date(new Date().setDate(new Date().getDate() - 7))\n                }\n              },\n              sortKey: 'dateCreated',\n              sortDirection: 'DESC'\n            },\n            metrics: [[{\n              metric: 'PROPERTY',\n              key: 'purchaseOrderNumber',\n              linkTo: {\n                route: 'entity.builda-price.operations.outgoing.purchase-orders.purchase-order',\n                modelKeys: ['_id']\n              }\n            }, {\n              metric: 'PROPERTY',\n              key: 'dateCreated'\n            }, {\n              metric: 'PROPERTY',\n              key: 'status',\n              humanEnums: true\n            }]]\n          });\n          if (this.newFeatureFlags.includesFeatureFlags('canUseInvoices')) report.subjects.push({\n            name: this.intl.t('entity.builda-price.dashboard.Recent invoices'),\n            index: 9,\n            width: 4,\n            height: 3,\n            elementType: 'TABLE',\n            borderStyle: 'BORDER',\n            searchEnabled: false,\n            axes: {\n              thead: [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Name')\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.report.Date created')\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Status')\n              }],\n              tfoot: []\n            },\n            groupType: 'SEPARATE',\n            metricsSubject: {\n              resourceName: 'invoices',\n              filter: {\n                entity: this.sessionData.entity.id,\n                dateCreated: {\n                  $lte: new Date(),\n                  $gte: new Date(new Date().setDate(new Date().getDate() - 7))\n                }\n              },\n              sortKey: 'dateCreated',\n              sortDirection: 'DESC'\n            },\n            metrics: [[{\n              metric: 'PROPERTY',\n              key: 'invoiceNumber',\n              linkTo: {\n                route: 'entity.builda-price.operations.outgoing.invoices.invoice',\n                modelKeys: ['id']\n              }\n            }, {\n              metric: 'PROPERTY',\n              key: 'dateCreated'\n            }, {\n              metric: 'PROPERTY',\n              key: 'status',\n              humanEnums: true\n            }]]\n          });\n          let loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getAdHocReport\", null));\n      _defineProperty(this, \"getPmConnection\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const pmConnection = yield this.store.query('pm-connection', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }]\n            },\n            fields: {\n              'pm-connections': '_meta.isConnected'\n            }\n          });\n          return pmConnection?.[0] || null;\n        }\n      }), null, \"getPmConnection\", null));\n    }\n    model() {\n      this.getAdHocReport.perform();\n      if (this.newFeatureFlags.includesFeatureFlags('canUseIntegrations') && this.newFeatureFlags.includesFeatureFlags('canUsePlaceMakers')) {\n        this.getPmConnection.perform();\n        return {\n          entity: this.sessionData.entity,\n          dashboardReport: this.getAdHocReport,\n          pmConnection: this.getPmConnection\n        };\n      }\n      return {\n        entity: this.sessionData.entity,\n        dashboardReport: this.getAdHocReport\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/index\", [\"exports\", \"@ember/routing/route\", \"portal/mixins/menu-route\", \"@ember/service\"], function (_exports, _route, _menuRoute, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"portal/mixins/menu-route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default.extend(_menuRoute.default) {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n    }\n    get defaultRoute() {\n      // this is the same logic in the builda-price controller for tabs\n      // if you have the dashboard, go there by default\n      if (this.newFeatureFlags.includesFeatureFlags('canUseDashboardReport')) return 'entity.builda-price.dashboard';\n\n      // if you don't have the dashboard, but you can go to projects, go there\n      if (this.newFeatureFlags.includesFeatureFlags('canUseProjects') || this.newFeatureFlags.includesFeatureFlags('userIsClient')) return 'entity.builda-price.projects';\n\n      // otherwise go to the timesheets route which should be accessible by everyone\n      return 'entity.builda-price.operations.incoming.timesheets';\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/operations/documents\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"@glimmer/tracking\", \"@ember/array\", \"@ember/object\"], function (_exports, _asyncArrowRuntime, _route, _service, _tracking, _array, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.DocumentData = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _class3, _descriptor6, _descriptor7, _descriptor8;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"@ember/array\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let DocumentData = _exports.DocumentData = (_class = class DocumentData {\n    constructor(projects, tasks, attachments, documentPath) {\n      _initializerDefineProperty(this, \"projects\", _descriptor, this);\n      _initializerDefineProperty(this, \"tasks\", _descriptor2, this);\n      _initializerDefineProperty(this, \"attachments\", _descriptor3, this);\n      _initializerDefineProperty(this, \"files\", _descriptor4, this);\n      _initializerDefineProperty(this, \"documentPath\", _descriptor5, this);\n      this.projects = projects;\n      this.tasks = tasks;\n      this.attachments = attachments;\n      this.documentPath = documentPath;\n      // Assign rather than push: the search builds a DocumentData inside the\n      // tableData getter, and mutating a tracked array mid-computation is a\n      // backtracking rerender error.\n      this.files = (0, _array.A)(this._initFromData(projects, tasks, attachments));\n    }\n    _initFromData(projects, tasks, attachments) {\n      const files = [];\n      if (projects.length) projects.forEach(project => files.push(this._createFile(project)));\n      if (tasks.length) tasks.forEach(task => files.push(this._createFile(null, task)));\n      if (attachments.length) attachments.forEach(attachment => files.push(this._createFile(null, null, attachment)));\n      return files;\n    }\n    _createFile(project, task, attachment) {\n      if (project) return {\n        name: project.name,\n        breadcrumbs: project.belongsTo('entity').value().name,\n        isVisible: Boolean(project.name?.length),\n        type: 'project',\n        projectLinkModel: project.id,\n        taskLinkModel: null,\n        route: `${this.documentPath}.project-file`,\n        humanType: 'Project',\n        dateCreated: project.dateCreated,\n        size: project.allAttachments.reduce((a, c) => a + c.size, 0),\n        href: null,\n        value: project,\n        project: project\n      };\n      if (task) return {\n        name: task.name,\n        breadcrumbs: task.belongsTo('entity').value().name + ' > ' + task.breadcrumbs,\n        isVisible: Boolean(task.name?.length),\n        type: 'task',\n        projectLinkModel: task.belongsTo('project').value().id,\n        taskLinkModel: task.id,\n        route: `${this.documentPath}.project-file.task-file`,\n        humanType: 'Task',\n        dateCreated: task.dateCreated,\n        size: task.allAttachments.reduce((a, c) => a + c.size, 0),\n        href: null,\n        value: task,\n        project: task.belongsTo('project').value()\n      };\n      if (attachment) {\n        const entity = attachment.belongsTo('entity').value();\n        let breadcrumbs = entity.name;\n        const projects = attachment.hasMany('projects')?.value()?.toArray() || [];\n        const projectId = projects?.[0]?.belongsTo('project')?.id();\n        const tasks = attachment.hasMany('tasks')?.value()?.toArray() || [];\n        const taskId = tasks?.[0]?.belongsTo('task')?.id();\n        if (projectId) {\n          const project = projects?.[0]?.belongsTo('project')?.value();\n          breadcrumbs += ' > ' + project.name;\n        }\n        if (taskId) {\n          const task = tasks?.[0]?.belongsTo('task')?.value();\n          breadcrumbs += ' > ' + task.breadcrumbs + ' > ' + task.name;\n        }\n        return {\n          _name: null,\n          get name() {\n            if (!this._name) return attachment.filename;\n            return this._name;\n          },\n          set name(val) {\n            attachment.filename = val;\n            this._name = val;\n          },\n          breadcrumbs,\n          isVisible: Boolean(attachment.filename?.length),\n          type: attachment.fileType,\n          projectLinkModel: null,\n          taskLinkModel: null,\n          route: null,\n          humanType: attachment.humanType,\n          dateCreated: attachment.dateCreated,\n          size: attachment.size,\n          href: attachment.href,\n          value: attachment,\n          project: null\n        };\n      }\n    }\n    removeAttachment(file) {\n      this.files.removeObject(file);\n    }\n    addAttachments(attachments) {\n      if (attachments.length) {\n        attachments.forEach(attachment => {\n          this.files.pushObject(this._createFile(null, null, attachment));\n        });\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"projects\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"tasks\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"attachments\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"files\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return (0, _array.A)([]);\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"documentPath\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n  let _class2 = _exports.default = (_class3 = class _class3 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor6, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor7, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor8, this);\n      _defineProperty(this, \"getUsers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          if (!this.newFeatureFlags.canManageFileStorage() || !this.newFeatureFlags.includesFeatureFlags('canManageUsers')) return [];\n          const userAttributes = yield this.store.simpleQuery('user-entity-attribute', {\n            entity: this.sessionData.entity.id,\n            attribute: 'canViewEntity'\n          });\n          if (!userAttributes.length) return [];\n          const userIds = userAttributes.map(ua => ua.belongsTo('user').id());\n          const users = yield this.store.simpleQuery('user', {\n            _id: {\n              $in: userIds\n            }\n          }, {\n            include: 'entityAttributes'\n          });\n          return users;\n        }\n      }), null, \"getUsers\", null));\n      _defineProperty(this, \"getOpenProjects\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (activeProject) {\n          if (activeProject) {\n            return yield this.store.simpleQuery('project', {\n              _id: activeProject\n            });\n          }\n          return yield this.store.simpleQuery('project', {\n            entity: this.sessionData.entity.id,\n            status: 'OPEN'\n          });\n        }\n      }), null, \"getOpenProjects\", null));\n      _defineProperty(this, \"getActiveTasks\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projects) {\n          yield projects.last;\n          let filter = {\n            and: [{\n              field: 'project.status',\n              op: 'EQ',\n              value: 'OPEN'\n            }, {\n              field: 'entity',\n              op: 'EQ',\n              value: this.sessionData.entity.id\n            }]\n          };\n          if (projects.last.value.length === 1) filter = {\n            and: [{\n              field: 'project',\n              op: 'EQ',\n              value: projects.last.value.toArray()[0].id\n            }]\n          };\n          return yield this.store.query('task', {\n            filter\n          });\n        }\n      }), null, \"getActiveTasks\", null));\n      _defineProperty(this, \"getAttachments\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projects, tasks) {\n          yield projects.last;\n          yield tasks.last;\n          const filter = {\n            and: [{\n              field: 'entity',\n              op: 'EQ',\n              value: this.sessionData.entity.id\n            }]\n          };\n          const allAttachments = yield this.store.query('attachment', {\n            filter,\n            include: 'entities,projects,tasks'\n          }).then(r => r.toArray());\n          return allAttachments.filter(attachment => {\n            if (attachment.hasMany('entities').ids().length > 0) return true;\n            const attachmentProjects = attachment.hasMany('projects').value()?.toArray() || [];\n            const isProjectAttachment = attachmentProjects.some(ap => projects.last.value.map(p => p.id).includes(ap.belongsTo('project').id()));\n            if (isProjectAttachment) return true;\n            const attachmentTasks = attachment.hasMany('tasks').value()?.toArray() || [];\n            const isTaskAttachment = attachmentTasks.some(at => {\n              return tasks.last.value.map(t => t.id).includes(at.belongsTo('task').id());\n            });\n            if (isTaskAttachment) return true;\n          });\n        }\n      }), null, \"getAttachments\", null));\n      _defineProperty(this, \"entityLoaded\", false);\n    }\n    willTransition(transition) {\n      if (!transition.targetName.includes('documents')) {\n        this.entityLoaded = false;\n      }\n    }\n    model() {\n      const loadModel = activeProject => {\n        if (this.entityLoaded) return;\n        if (!activeProject) this.entityLoaded = true;\n        this.getOpenProjects.perform(activeProject);\n        this.getActiveTasks.perform(this.getOpenProjects);\n        this.getAttachments.perform(this.getOpenProjects, this.getActiveTasks);\n        this.getUsers.perform();\n      };\n      return {\n        users: this.getUsers,\n        attachments: this.getAttachments,\n        projects: this.getOpenProjects,\n        tasks: this.getActiveTasks,\n        loadModel\n      };\n    }\n  }, _descriptor6 = _applyDecoratedDescriptor(_class3.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class3.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class3.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class3.prototype, \"willTransition\", [_object.action], Object.getOwnPropertyDescriptor(_class3.prototype, \"willTransition\"), _class3.prototype), _class3);\n});","define(\"portal/routes/entity/builda-price/operations/documents/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"portal/routes/entity/builda-price/operations/documents\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _documents, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"portal/routes/entity/builda-price/operations/documents\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.operations.documents.index');\n      _defineProperty(this, \"getEntityFile\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (openProjects, activeTasks, attachments) {\n          yield openProjects.last;\n          yield activeTasks.last;\n          yield attachments.last;\n          const myAttachments = attachments.last.value?.filter(attachment => (attachment.hasMany('entities')?.value()?.toArray().map(item => item.belongsTo('entity').id()) || []).length > 0)?.sortBy('dateCreated') || [];\n          return new _documents.DocumentData(openProjects.last.value?.sortBy('sortIndex') || [], [], myAttachments, this.documentPath);\n        }\n      }), null, \"getEntityFile\", null));\n    }\n    get documentPath() {\n      if (this.basePath.includes('embed')) return 'embed.documents';\n      return 'entity.builda-price.operations.documents';\n    }\n    setupController(controller, post) {\n      super.setupController(controller, post);\n      this.controllerFor(`${this.documentPath}.index`).set('searchString', '');\n    }\n    async model() {\n      const {\n        loadModel,\n        users,\n        attachments,\n        projects,\n        tasks\n      } = this.modelFor(this.documentPath);\n      loadModel();\n      this.getEntityFile.perform(projects, tasks, attachments);\n      return {\n        users,\n        file: this.getEntityFile,\n        attachments,\n        projects,\n        tasks,\n        documentPath: this.documentPath\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/operations/documents/project-file\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  class _default extends _route.default {\n    model({\n      project_id\n    }) {\n      return project_id;\n    }\n  }\n  _exports.default = _default;\n});","define(\"portal/routes/entity/builda-price/operations/documents/project-file/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"portal/routes/entity/builda-price/operations/documents\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _documents, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"portal/routes/entity/builda-price/operations/documents\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.operations.documents.index');\n      _defineProperty(this, \"getFile\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projects, tasks, attachments, projectId) {\n          yield tasks.last;\n          yield projects.last;\n          yield attachments.last;\n          const projectTasks = tasks.last.value.filter(task => task.belongsTo('project').value().id === projectId && ['ACTIVE', 'DRAFT_CREATED'].includes(task.status));\n          const parentTasks = projectTasks.toArray().filter(task => !task.belongsTo('parent').id());\n          const projectAttachments = attachments.last.value?.filter(attachment => (attachment.hasMany('projects')?.value()?.toArray().map(item => item.belongsTo('project').id()) || []).includes(projectId)) || [];\n          return new _documents.DocumentData([], parentTasks?.sortBy('path') || [], projectAttachments.sortBy('dateCreated') || [], this.documentPath);\n        }\n      }), null, \"getFile\", null));\n      _defineProperty(this, \"getProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projects, projectId) {\n          yield projects.last;\n          return projects.last.value.find(project => project.id === projectId);\n        }\n      }), null, \"getProject\", null));\n    }\n    get documentPath() {\n      if (this.basePath.includes('embed')) return 'embed.documents';\n      return 'entity.builda-price.operations.documents';\n    }\n    setupController(controller, post) {\n      super.setupController(controller, post);\n      let documentIndexPath = `${this.documentPath}.index`;\n      this.controllerFor(documentIndexPath).set('searchString', '');\n    }\n    model() {\n      const {\n        loadModel,\n        users,\n        attachments,\n        projects,\n        tasks\n      } = this.modelFor(this.documentPath);\n      const {\n        project_id: projectId\n      } = this.paramsFor(`${this.documentPath}.project-file`);\n      loadModel(projectId);\n      this.getFile.perform(projects, tasks, attachments, projectId);\n      this.getProject.perform(projects, projectId);\n      return {\n        users,\n        file: this.getFile,\n        project: this.getProject,\n        documentPath: this.documentPath\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/operations/documents/project-file/task-file\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"portal/routes/entity/builda-price/operations/documents\"], function (_exports, _asyncArrowRuntime, _route, _service, _documents) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"portal/routes/entity/builda-price/operations/documents\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.operations.documents.project-file.task-file');\n      _defineProperty(this, \"getFile\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projects, tasks, attachments, task) {\n          yield projects.last;\n          yield tasks.last;\n          yield attachments.last;\n          yield task.last;\n          const taskAttachments = attachments.last.value.filter(attachment => {\n            const taskIds = (attachment.hasMany('tasks')?.value()?.toArray() || []).map(item => item.belongsTo('task').id());\n            return taskIds.includes(task.last.value.id);\n          });\n          const currentLevelTasks = tasks.last.value.filter(t => task.last.value.hasMany('children').value()?.map(c => c.id).includes(t.id));\n          return new _documents.DocumentData([], currentLevelTasks?.sortBy('path') || [], taskAttachments.sortBy('dateCreated') || [], this.documentPath);\n        }\n      }), null, \"getFile\", null));\n      _defineProperty(this, \"getTask\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (tasks, taskId) {\n          yield tasks.last;\n          return tasks.last.value.find(task => task.id === taskId);\n        }\n      }), null, \"getTask\", null));\n    }\n    get documentPath() {\n      if (this.basePath.includes('embed')) return 'embed.documents';\n      return 'entity.builda-price.operations.documents';\n    }\n    setupController(controller, model) {\n      // reset the search string when you navigate\n      controller.set('searchString', '');\n      super.setupController(controller, model);\n    }\n    model() {\n      const {\n        loadModel,\n        users,\n        attachments,\n        projects,\n        tasks\n      } = this.modelFor(this.documentPath);\n      const {\n        project_id: projectId\n      } = this.paramsFor(`${this.documentPath}.project-file`);\n      const {\n        task_id\n      } = this.paramsFor(`${this.documentPath}.project-file.task-file`);\n      loadModel(projectId);\n      const taskIds = task_id.split(':');\n      const taskId = taskIds[taskIds.length - 1];\n      this.getTask.perform(tasks, taskId);\n      this.getFile.perform(projects, tasks, attachments, this.getTask);\n      return {\n        file: this.getFile,\n        users,\n        task: this.getTask,\n        documentPath: this.documentPath\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/operations/incoming/bills-legacy\", [\"exports\", \"@ember/routing/route\", \"@ember/object\", \"@ember/service\", \"moment\", \"portal/utils/search-filter\"], function (_exports, _route, _object, _service, _moment, _searchFilter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/object\",0,\"@ember/service\",0,\"moment\",0,\"portal/utils/search-filter\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend({\n    sessionData: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    queryParams: {\n      sortBy: {\n        refreshModel: true\n      },\n      filterByDate: {\n        refreshModel: true\n      },\n      startDate: {\n        refreshModel: true\n      },\n      endDate: {\n        refreshModel: true\n      },\n      status: {\n        refreshModel: true\n      },\n      unallocatedOnly: {\n        refreshModel: true\n      },\n      search: {\n        refreshModel: true\n      }\n    },\n    async model({\n      sortBy,\n      filterByDate,\n      startDate,\n      endDate,\n      status,\n      unallocatedOnly,\n      search\n    }) {\n      // instead of proper pagination, manually set the maximum number of bills shown for each filter set\n      // TODO with unallocatedOnly we can't page the bills because we're post filtering - implement meta filters to fix this\n      const maxNumberOfBills = unallocatedOnly ? undefined : 600;\n      const entityId = (0, _object.get)(this, 'sessionData.entity.id');\n      const billQuery = {\n        and: [{\n          field: 'entity',\n          op: 'EQ',\n          value: entityId\n        }]\n      };\n      if (status !== 'ALL') {\n        billQuery.and.push({\n          field: 'status',\n          op: 'EQ',\n          value: status\n        });\n      }\n      if (search) {\n        billQuery.and.push((0, _searchFilter.default)(['reference', 'billNumber', 'issuer'], search));\n      }\n      if (filterByDate) {\n        billQuery.and.push({\n          field: 'issueDate',\n          op: 'GT',\n          value: (0, _moment.default)(startDate).startOf('day').toISOString()\n        });\n        billQuery.and.push({\n          field: 'issueDate',\n          op: 'LT',\n          value: (0, _moment.default)(endDate).endOf('day').toISOString()\n        });\n      }\n      const invoicesQuery = {\n        filter: billQuery,\n        sort: sortBy,\n        include: 'items,items.project,items.task',\n        fields: {\n          'bill-items': '_meta.isMapped',\n          bills: '_meta.hasDuplicate,_meta.isInvoiced'\n        }\n      };\n      if (maxNumberOfBills) {\n        invoicesQuery.page = {\n          number: 1,\n          size: maxNumberOfBills\n        };\n      }\n      const invoices = this.store.query('bill', invoicesQuery).then(_invoices => {\n        let invoices = _invoices.toArray();\n\n        // post filter the invoices\n        if (unallocatedOnly) return invoices.filter(i => !(0, _object.get)(i, 'isMapped'));\n        return invoices;\n      });\n      const projects = this.store.query('project', {\n        filter: {\n          and: [{\n            field: 'entity',\n            op: 'EQ',\n            value: entityId\n          }, {\n            field: 'status',\n            op: 'EQ',\n            value: 'OPEN'\n          }]\n        },\n        sort: 'sortIndex'\n      });\n      const tasks = this.store.query('task', {\n        filter: {\n          and: [{\n            field: 'entity',\n            op: 'EQ',\n            value: entityId\n          }, {\n            field: 'status',\n            op: 'IN',\n            value: ['ACTIVE', 'DRAFT_CREATED']\n          }, {\n            field: 'project.status',\n            op: 'EQ',\n            value: 'OPEN'\n          }]\n        },\n        sort: 'path'\n      });\n      const xeroAccounts = this.store.query('gl-account', {\n        filter: {\n          and: [{\n            field: 'entity',\n            op: 'EQ',\n            value: entityId\n          }, {\n            field: 'xeroAccountId',\n            op: 'IS_NOT_NULL',\n            value: null\n          }]\n        },\n        sort: 'code'\n      });\n      const quickbooksAccounts = this.store.query('gl-account', {\n        filter: {\n          and: [{\n            field: 'entity',\n            op: 'EQ',\n            value: entityId\n          }, {\n            field: 'quickbooksAccountId',\n            op: 'IS_NOT_NULL',\n            value: null\n          }]\n        },\n        sort: 'code'\n      });\n      return Promise.all([invoices, projects, tasks, xeroAccounts, quickbooksAccounts, this.store.simpleQuery('invoice-auto-map-directive', {\n        entity: entityId\n      })]).then(([invoices, projects, tasks, xeroAccounts, quickbooksAccounts, directives]) => ({\n        invoices,\n        projects,\n        tasks,\n        xeroAccounts,\n        quickbooksAccounts,\n        directives,\n        maxNumberOfBills\n      }));\n    },\n    actions: {\n      invoiceAdded(invoice) {\n        (0, _object.get)(this, 'controller.model.invoices').unshiftObject(invoice);\n      },\n      refreshModel() {\n        this.refresh();\n      }\n    }\n  });\n});","define(\"portal/routes/entity/builda-price/operations/incoming/bills-legacy/bill\", [\"exports\", \"@ember/routing/route\", \"rsvp\", \"jquery\", \"@ember/object\", \"@ember/service\", \"ember-local-storage\", \"@ember/application\"], function (_exports, _route, _rsvp, _jquery, _object, _service, _emberLocalStorage, _application) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"rsvp\",0,\"jquery\",0,\"@ember/object\",0,\"@ember/service\",0,\"ember-local-storage\",0,\"@ember/application\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend({\n    router: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    persistedSettings: (0, _emberLocalStorage.storageFor)('settings'),\n    async model(params) {\n      const entity = (0, _object.get)(this, 'sessionData.entity');\n      const entityId = (0, _object.get)(entity, 'id');\n      let invoice;\n      if (params.bill_id === 'new') {\n        // Create a new invoice that belongs to the current entity and has one item\n        invoice = await this.store.createRecord('bill', {\n          entity,\n          issueDate: new Date(),\n          subcontractor: null,\n          source: 'web:manual'\n        });\n        this.store.createRecord('bill-item', {\n          bill: invoice,\n          entity: (0, _object.get)(this, 'sessionData.entity')\n        });\n      } else {\n        invoice = await this.store.findRecord('bill', params.bill_id, {\n          include: 'attachments,items,items.project,items.task',\n          adapterOptions: {\n            fields: {\n              bills: '_meta.hasDuplicate'\n            }\n          }\n        }).catch(() => {\n          this.router.transitionTo('entity.builda-price.operations.incoming.bills-legacy');\n        });\n      }\n      const parentModel = this.modelFor('entity.builda-price.operations.incoming.bills-legacy');\n      const owner = (0, _application.getOwner)(this);\n      const billsController = owner?.lookup('controller:entity.builda-price.operations.incoming.bills-legacy');\n      const controllerInvoices = billsController ? (0, _object.get)(billsController, 'invoices') : null;\n      let invoices = controllerInvoices;\n      const getKey = invoice => `${String((0, _object.get)(invoice, 'issuer')).toLowerCase().trim()}:${String((0, _object.get)(invoice, 'billNumber')).toLowerCase().trim()}`;\n      const existingInvoiceKeys = invoices.reduce((obj, existingInvoice) => invoice !== existingInvoice // not \"this\" invoice\n      ? Object.assign(obj, {\n        [getKey(existingInvoice)]: existingInvoice\n      }) : obj, {});\n      const suppliers = await this.store.simpleQuery('contact', {\n        entity: entity.id\n      }).then(suppliers => suppliers.toArray());\n      const suppliersWithPaymentTermsHash = suppliers.reduce((suppliers, supplier) => supplier.hasValidPurchasePaymentTerm ? {\n        ...suppliers,\n        [supplier.name]: supplier\n      } : suppliers, {});\n      return _rsvp.default.hash(Object.assign({}, parentModel, {\n        invoices,\n        invoice,\n        existingInvoiceKeys,\n        suppliers,\n        suppliersWithPaymentTermsHash,\n        directives: this.store.simpleQuery('invoice-auto-map-directive', {\n          entity: entityId\n        })\n      }));\n    },\n    setupController(controller, model) {\n      this._super(...arguments);\n      (0, _object.set)(controller, 'selectedItems', (0, _object.get)(model, 'invoice').hasMany('items').value().toArray());\n      (0, _object.set)(controller, 'dirtyRels', []);\n      (0, _object.set)(controller, 'deletedItems', []);\n\n      // If the invoice is new, then the page should start in the editing mode\n      if ((0, _object.get)(model, 'invoice.isNew')) {\n        (0, _object.set)(controller, 'isEditing', true);\n        (0, _object.set)(controller, 'newInvoiceStep', 0);\n      } else {\n        (0, _object.set)(controller, 'isEditing', false);\n      }\n    },\n    actions: {\n      didTransition() {\n        (0, _jquery.default)(document).on('keypress', event => event.key === 'Enter' && (0, _object.get)(this, 'controller.isEditing') && this.controller.actions.save.call(this.controller) || event);\n      },\n      willTransition() {\n        const invoice = this.controller.get('model.invoice');\n\n        // Remove any new (unsaved) bill-items\n        (invoice.get('items').content?.toArray() || []).filter(item => item.isNew).forEach(item => {\n          item.unloadRecord();\n        });\n\n        // If the invoice itself is new, remove it too\n        if (invoice.get('isNew')) {\n          invoice.unloadRecord();\n        }\n        (0, _jquery.default)(document).off('keypress');\n      }\n    }\n  });\n});","define(\"portal/routes/entity/builda-price/operations/incoming/bills\", [\"exports\", \"@ember/routing/route\", \"@ember/service\", \"@ember/object\", \"@glimmer/tracking\"], function (_exports, _route, _service, _object, _tracking) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\",0,\"@ember/object\",0,\"@glimmer/tracking\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let EntityBuildaPriceOperationsIncomingBillsRoute = _exports.default = (_class = class EntityBuildaPriceOperationsIncomingBillsRoute extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"billsData\", _descriptor3, this);\n      _initializerDefineProperty(this, \"ips\", _descriptor4, this);\n      _defineProperty(this, \"queryParams\", {\n        status: {\n          refreshModel: true\n        },\n        search: {\n          refreshModel: true\n        },\n        startDate: {\n          refreshModel: true\n        },\n        endDate: {\n          refreshModel: true\n        },\n        sort: {\n          refreshModel: true\n        },\n        billType: {\n          refreshModel: true\n        },\n        allocationType: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"pageSize\", 100);\n      _initializerDefineProperty(this, \"lastParams\", _descriptor5, this);\n    }\n    async beforeModel() {\n      try {\n        await this.ips.getUsage();\n      } catch {\n        // without usage IPS is not ready, so nothing of its UI renders\n      }\n    }\n    async model({\n      status,\n      search,\n      startDate,\n      endDate,\n      sort = '-dateCreated',\n      billType,\n      allocationType\n    }) {\n      const filter = {\n        and: [{\n          field: 'entity',\n          op: 'EQ',\n          value: this.sessionData.entity.id\n        }],\n        or: []\n      };\n      if (status) {\n        filter.and.push({\n          field: 'status',\n          op: 'EQ',\n          value: status\n        });\n      }\n      if (search) {\n        filter.or.push({\n          field: 'searchText',\n          op: 'ILIKE',\n          value: search\n        });\n        filter.or.push({\n          field: 'issuerContact.name',\n          op: 'ILIKE',\n          value: search\n        });\n      }\n      if (startDate) {\n        filter.and.push({\n          field: 'issueDate',\n          op: 'GT',\n          value: new Date(new Date(startDate).setHours(0, 0, 0, 0)).toISOString()\n        });\n      }\n      if (endDate) {\n        filter.and.push({\n          field: 'issueDate',\n          op: 'LT',\n          value: new Date(new Date(endDate).setHours(23, 59, 59, 999)).toISOString()\n        });\n      }\n      if (billType) {\n        filter.and.push({\n          field: 'billType',\n          op: 'EQ',\n          value: billType\n        });\n      }\n      if (allocationType) {\n        filter.and.push({\n          field: 'allocationType',\n          op: 'EQ',\n          value: allocationType\n        });\n      }\n      const fields = {\n        bills: '_meta.isInvoiced,_meta.hasDuplicate,_meta.allocationPath,_meta.purchaseOrder'\n      };\n\n      // only perform the first load when the params change\n      const params = JSON.stringify({\n        filter,\n        fields,\n        sort,\n        pageSize: this.pageSize\n      });\n      if (this.lastParams !== params) {\n        this.lastParams = params;\n        await this.billsData.loadBills.perform(filter, fields, sort, this.pageSize);\n      }\n      const model = {\n        sort,\n        filter,\n        fields,\n        pageSize: this.pageSize\n      };\n      return model;\n    }\n\n    // https://guides.emberjs.com/release/routing/query-params/\n    resetController(controller, isExiting) {\n      if (!isExiting) return;\n      controller.search = '';\n      controller.searchString = '';\n      controller.status = 'DRAFT';\n      controller.sort = '-dateCreated';\n      controller.startDate = undefined;\n      controller.endDate = undefined;\n      this.lastParams = undefined;\n    }\n    refreshModel() {\n      this.lastParams = undefined;\n      this.refresh();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"billsData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"ips\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"lastParams\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return undefined;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"refreshModel\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"refreshModel\"), _class.prototype), _class);\n});","define(\"portal/routes/entity/builda-price/operations/incoming/bills/bill\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let EntityBuildaPriceOperationsIncomingBillsBillRoute = _exports.default = (_class = class EntityBuildaPriceOperationsIncomingBillsBillRoute extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n    }\n    async model({\n      bill_id\n    }) {\n      let {\n        status\n      } = this.paramsFor('entity.builda-price.operations.incoming.bills');\n      if (bill_id === 'new' || bill_id === 'new-credit-note') {\n        const bill = this.store.createRecord('bill', {\n          billType: bill_id === 'new-credit-note' ? 'CREDIT_NOTE' : 'BILL',\n          entity: this.sessionData.entity\n        });\n        return {\n          bill\n        };\n      }\n      const bill = await this.store.findRecord('bill', bill_id, {\n        include: 'issuerContact,items,purchaseOrder,items.purchaseOrderItem,attachments,items.glAccount',\n        adapterOptions: {\n          fields: {\n            bills: '_meta.hasDuplicate,_meta.allocationPath,_meta.purchaseOrder,_meta.isInvoiced',\n            'bill-items': '_meta.allocationPath,_meta.purchaseOrder',\n            'gl-accounts': 'code,name'\n          }\n        }\n      });\n      // wait for the items to load so the component can use them straight away - doesn't seem necessary but it is\n      await bill.issuerContact;\n      const items = await bill.items;\n      await bill.attachments;\n      await bill.issuerContact;\n      await bill.purchaseOrder;\n\n      // not sure what else we can do\n      await Promise.all(items.map(item => item.glAccount));\n      return {\n        bill,\n        billStatus: status\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"portal/routes/entity/builda-price/operations/incoming/index\", [\"exports\", \"@ember/routing/route\", \"portal/mixins/menu-route\", \"@ember/service\"], function (_exports, _route, _menuRoute, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"portal/mixins/menu-route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default.extend(_menuRoute.default) {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n    }\n    get defaultRoute() {\n      if (this.newFeatureFlags.includesFeatureFlags('canUseTimesheets')) return 'entity.builda-price.operations.incoming.timesheets';\n      if (this.newFeatureFlags.includesFeatureFlags('canUseBills')) return 'entity.builda-price.operations.incoming.bills';\n      if (this.newFeatureFlags.includesFeatureFlags('canUseStatements')) return 'entity.builda-price.operations.incoming.statements';\n      return 'entity.builda-price';\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/operations/incoming/invoices/index\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  class _default extends _route.default {}\n  _exports.default = _default;\n});","define(\"portal/routes/entity/builda-price/operations/incoming/invoices/invoice\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n    }\n    model({\n      invoice_id: invoiceId\n    }) {\n      this.router.transitionTo('entity.builda-price.operations.incoming.bills.bill', invoiceId);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/operations/incoming/statements\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let EntityBuildaPriceOperationsIncomingStatementsRoute = _exports.default = (_class = class EntityBuildaPriceOperationsIncomingStatementsRoute extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"ips\", _descriptor, this);\n    }\n    async beforeModel() {\n      try {\n        await this.ips.getUsage();\n      } catch {\n        // without usage IPS is not ready, so nothing of its UI renders\n      }\n    }\n    setupController(controller) {\n      super.setupController(...arguments);\n      // Take a fresh token/entity snapshot on every entry, then leave `src` alone\n      // for the lifetime of the iframe.\n      controller.refreshIframeSrc();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"ips\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"portal/routes/entity/builda-price/operations/incoming/timesheets\", [\"exports\", \"@ember/routing/route\", \"@ember/object\", \"rsvp\", \"@ember/service\", \"moment\", \"ember-local-storage\", \"@ember/object/computed\"], function (_exports, _route, _object, _rsvp, _service, _moment, _emberLocalStorage, _computed) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/object\",0,\"rsvp\",0,\"@ember/service\",0,\"moment\",0,\"ember-local-storage\",0,\"@ember/object/computed\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend({\n    sessionData: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    persistedSettings: (0, _emberLocalStorage.storageFor)('settings'),\n    startDate: (0, _computed.alias)('persistedSettings.timesheets:startDate'),\n    endDate: (0, _computed.alias)('persistedSettings.timesheets:endDate'),\n    basePath: 'entity.builda-price.operations.incoming',\n    async model() {\n      let endDate = (0, _object.get)(this, 'endDate');\n      let startDate = (0, _object.get)(this, 'startDate');\n      if (!endDate || !/^\\d{4}-\\d{2}-\\d{2}$/.test(endDate)) endDate = (0, _moment.default)().endOf('isoWeek').format('YYYY-MM-DD');\n      if (!startDate || !/^\\d{4}-\\d{2}-\\d{2}$/.test(startDate)) {\n        startDate = (0, _moment.default)().startOf('isoWeek').subtract(1, 'weeks').format('YYYY-MM-DD');\n      }\n      const entityId = (0, _object.get)(this, 'sessionData.entity.id');\n\n      // Only get the workers for this entity\n      const workers = await (0, _object.get)(this, 'store').simpleQuery('worker', {\n        entity: entityId\n      }).then(workers => workers.sortBy('fullName'));\n      const timesheetNotes = (0, _object.get)(this, 'store').simpleQuery('timesheet-note', {\n        entity: entityId,\n        date: {\n          $gte: startDate,\n          $lte: endDate\n        }\n      });\n      const timesheetStatuses = (0, _object.get)(this, 'store').simpleQuery('timesheet-status', {\n        entity: entityId,\n        date: {\n          $gte: startDate,\n          $lte: endDate\n        }\n      }).then(res => res.toArray());\n      const timesheets = (0, _object.get)(this, 'store').simpleQuery('timesheet', {\n        entity: entityId,\n        date: {\n          $gte: startDate,\n          $lte: endDate\n        }\n      }, {\n        include: 'project,task'\n      }).then(res => res.toArray()).then(ts =>\n      // remove the timesheets we don't have access to see the project or tasks for\n      ts.filter(t => t.belongsTo('task').id() && t.belongsTo('project').id()));\n      return _rsvp.default.hash({\n        timesheetStatuses,\n        workers,\n        timesheets,\n        timesheetNotes: timesheetNotes.then(arr => arr.toArray()),\n        basePath: this.basePath\n      }).then(result => {\n        if ((0, _object.get)(result, 'timesheets.length')) {\n          (0, _object.set)(result, 'timesheets',\n          // TODO also sort by project.sortIndex when implmemented\n          (0, _object.get)(result, 'timesheets').sortBy('task.path'));\n        }\n        return result;\n      });\n    },\n    actions: {\n      willTransition(transition) {\n        const {\n          targetName\n        } = transition;\n        if (targetName !== this.basePath + '.timesheets.timesheet') {\n          (0, _object.set)(this, 'startDate', null);\n          (0, _object.set)(this, 'endDate', null);\n        }\n        return true;\n      },\n      addTimesheetNote(timesheetNote) {\n        (0, _object.get)(this, 'controller.model.timesheetNotes').pushObject(timesheetNote);\n      },\n      addTimesheets(newTimesheets) {\n        (0, _object.get)(this, 'controller.model.timesheets').pushObjects(newTimesheets);\n      },\n      addTimesheetStatuses(newTimesheetStatuses) {\n        (0, _object.get)(this, 'controller.model.timesheetStatuses').pushObjects(newTimesheetStatuses);\n      },\n      removeTimesheet(timesheet) {\n        (0, _object.get)(this, 'controller.model.timesheets').removeObject(timesheet);\n      },\n      refreshModel() {\n        this.refresh();\n      }\n    }\n  });\n});","define(\"portal/routes/entity/builda-price/operations/incoming/timesheets/index\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.operations.incoming');\n    }\n    beforeModel() {\n      // Go straight to the create new timesheet state.\n      this.router.transitionTo(this.basePath + '.timesheets.timesheet');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/operations/incoming/timesheets/timesheet-loading\", [\"exports\", \"portal/routes/entity/builda-price/operations/incoming/timesheets/timesheet\", \"portal/utils/loading-route-from\"], function (_exports, _timesheet, _loadingRouteFrom) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/routes/entity/builda-price/operations/incoming/timesheets/timesheet\",0,\"portal/utils/loading-route-from\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _loadingRouteFrom.default)(_timesheet.default, 'entity.builda-price.operations.incoming.timesheets.timesheet');\n});","define(\"portal/routes/entity/builda-price/operations/incoming/timesheets/timesheet\", [\"exports\", \"@ember/routing/route\", \"@ember/object\", \"rsvp\", \"@ember/service\", \"moment\", \"portal/mixins/scroll-route\"], function (_exports, _route, _object, _rsvp, _service, _moment, _scrollRoute) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/object\",0,\"rsvp\",0,\"@ember/service\",0,\"moment\",0,\"portal/mixins/scroll-route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend(_scrollRoute.default, {\n    router: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    basePath: 'entity.builda-price.operations.incoming',\n    queryParams: {\n      worker: {\n        refreshModel: true\n      },\n      date: {\n        refreshModel: true\n      }\n    },\n    model({\n      worker,\n      date\n    }) {\n      const store = (0, _object.get)(this, 'store');\n      const entity = (0, _object.get)(this, 'sessionData.entity');\n      const workers = (0, _object.get)(this.modelFor(this.basePath + '.timesheets'), 'workers');\n      const dateIsValid = date != null && (0, _moment.default)(date, 'YYYY-MM-DD').isValid();\n      const selectedWorker = workers.findBy('id', worker);\n      const workerExists = selectedWorker != null;\n      let timesheets = null;\n      let note = null;\n      let statuses = null;\n      if (workerExists && dateIsValid) {\n        const dateQuery = {\n          $eq: date\n        };\n        timesheets = (0, _object.get)(this, 'store').simpleQuery('timesheet', {\n          worker,\n          date: dateQuery\n        }, {\n          include: 'task',\n          fields: {\n            timesheets: '_meta.isInvoiced'\n          }\n        }).then(timesheets => timesheets.toArray());\n        note = (0, _object.get)(this, 'store').simpleQuery('timesheet-note', {\n          worker,\n          date: dateQuery\n        }).then(notes => notes.objectAt(0));\n        statuses = (0, _object.get)(this, 'store').simpleQuery('timesheet-status', {\n          worker,\n          date: dateQuery\n        }).then(statuses => statuses.toArray());\n      }\n      const tasks = (0, _object.get)(this, 'store').query('task', {\n        filter: {\n          and: [\n          // TODO fix it properly, this is due to how ember data is loading relationships\n          // {\n          //   field: 'timesheetStatus',\n          //   op: 'EQ',\n          //   value: 'ACTIVE',\n          // },\n          // {\n          //   field: 'status',\n          //   op: 'IN',\n          //   value: ['ACTIVE', 'DRAFT_CREATED'],\n          // },\n          {\n            field: 'project.status',\n            op: 'EQ',\n            value: 'OPEN'\n          }, {\n            field: 'entity',\n            op: 'EQ',\n            value: (0, _object.get)(entity, 'id')\n          }]\n        }\n      });\n      const projects = tasks.then(tasks => {\n        const projectIds = new Set();\n        for (const task of tasks.toArray()) {\n          const projectId = (0, _object.get)(task, 'project.id');\n          if (projectIds.has(projectId)) continue;\n          projectIds.add(projectId);\n        }\n        return (0, _object.get)(this, 'store').query('project', {\n          filter: {\n            and: [{\n              field: 'entity',\n              op: 'EQ',\n              value: (0, _object.get)(entity, 'id')\n            }, {\n              field: 'status',\n              op: 'EQ',\n              value: 'OPEN'\n            }]\n          }\n        }).then(projects =>\n        // we only want projects with tasks\n        projects.filter(project => projectIds.has((0, _object.get)(project, 'id'))));\n      });\n      return _rsvp.default.hash({\n        worker,\n        timesheets,\n        note,\n        statuses,\n        projects,\n        tasks\n      }).then(results => {\n        // Create a note record if we have a valid worker and date but no note was found\n        if (workerExists && dateIsValid && (0, _object.get)(results, 'note') == null) {\n          const newNote = store.createRecord('timesheet-note', {\n            date,\n            worker: selectedWorker,\n            entity\n          });\n          (0, _object.set)(results, 'note', newNote);\n          this.send('addTimesheetNote', newNote);\n        }\n        (0, _object.set)(results, 'hasDateAndWorker', workerExists && dateIsValid);\n        if (results.timesheets) {\n          (0, _object.set)(results, 'timesheets', (0, _object.get)(results, 'timesheets').sortBy('project.sortIndex, task.sortIndex'));\n        }\n        return results;\n      });\n    },\n    setupController(controller) {\n      this._super(...arguments);\n      const workers = (0, _object.get)(this.modelFor(this.basePath + '.timesheets'), 'workers');\n      let activeWorkers = [];\n      if ((0, _object.get)(workers, 'length')) {\n        activeWorkers = workers.filterBy('isActive');\n      }\n      (0, _object.set)(controller, 'workers', workers);\n      (0, _object.set)(controller, 'activeWorkers', activeWorkers);\n    },\n    afterModel(model) {\n      const entityId = (0, _object.get)(this, 'sessionData.entity.id');\n      const workerEntity = (0, _object.get)(model, 'results.worker.entity.id');\n      if (workerEntity !== entityId && workerEntity) {\n        this.router.transitionTo(this.basePath + '.timesheets');\n      }\n    },\n    actions: {\n      willTransition() {\n        this._super(...arguments);\n\n        // Remove all of the unsaved timesheets\n        const timesheets = (0, _object.get)(this, 'controller.model.timesheets');\n        if (!timesheets || !(0, _object.get)(timesheets, 'length')) return true;\n        (0, _object.get)(this, 'controller.model.timesheets').filterBy('isNew').forEach(sheet => sheet.destroyRecord());\n        return true;\n      }\n    }\n  });\n});","define(\"portal/routes/entity/builda-price/operations/index\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n    }\n    beforeModel(transition) {\n      if (transition.targetName === this.fullRouteName) this.router.transitionTo('entity.builda-price');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/operations/outgoing/index\", [\"exports\", \"@ember/routing/route\", \"portal/mixins/menu-route\", \"@ember/service\"], function (_exports, _route, _menuRoute, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"portal/mixins/menu-route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default.extend(_menuRoute.default) {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n    }\n    get defaultRoute() {\n      if (this.newFeatureFlags.includesFeatureFlags('canManagePayroll')) return 'entity.builda-price.operations.outgoing.payroll';\n      if (this.newFeatureFlags.includesFeatureFlags('canUseReportBuilder')) return 'entity.builda-price.operations.outgoing.report-builder';\n      return 'entity.builda-price';\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/operations/outgoing/invoices/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"@ember/object\", \"portal/models/entity-invoice-option\", \"moment\", \"portal/utils/search-filter\"], function (_exports, _asyncArrowRuntime, _route, _service, _object, _entityInvoiceOption, _moment, _searchFilter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"@ember/service\",0,\"@ember/object\",0,\"ember-concurrency\",0,\"portal/models/entity-invoice-option\",0,\"moment\",0,\"portal/utils/search-filter\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _defineProperty(this, \"queryParams\", {\n        searchTerm: {\n          refreshModel: true\n        },\n        startDate: {\n          refreshModel: true\n        },\n        endDate: {\n          refreshModel: true\n        },\n        status: {\n          refreshModel: true\n        },\n        invoiceType: {\n          refreshModel: true\n        },\n        sortBy: {\n          refreshModel: true\n        },\n        sortDirection: {\n          refreshModel: true\n        },\n        contact: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"invoices\", []);\n      _defineProperty(this, \"invoiceFilter\", void 0);\n      _defineProperty(this, \"sort\", void 0);\n      _defineProperty(this, \"invoicePage\", void 0);\n      _defineProperty(this, \"getInvoices\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (startDate, endDate, status, searchTerm, invoiceType, sortBy, sortDirection, contact) {\n          const invoiceFilter = {\n            and: [{\n              field: 'entity',\n              op: 'EQ',\n              value: this.sessionData.entity.id\n            }]\n          };\n          if (startDate) {\n            invoiceFilter.and.push({\n              field: 'dateCreated',\n              op: 'GE',\n              value: (0, _moment.default)(startDate).startOf('day').toISOString()\n            });\n          }\n          if (endDate) {\n            invoiceFilter.and.push({\n              field: 'dateCreated',\n              op: 'LE',\n              value: (0, _moment.default)(endDate).endOf('day').toISOString()\n            });\n          }\n          if (status && status !== 'ALL') invoiceFilter.and.push({\n            field: 'status',\n            op: 'EQ',\n            value: status\n          });\n          if (invoiceType && invoiceType !== 'ALL') invoiceFilter.and.push({\n            field: 'invoiceType',\n            op: 'EQ',\n            value: invoiceType\n          });\n          if (contact) {\n            invoiceFilter.and.push({\n              field: 'toContact.name',\n              op: 'EQ',\n              value: contact\n            });\n          }\n          if (searchTerm?.length) {\n            invoiceFilter.and.push((0, _searchFilter.default)(['toContact.name', 'invoiceNumber'], searchTerm));\n          }\n          if (JSON.stringify(invoiceFilter) !== JSON.stringify(this.invoiceFilter) || this.sort !== `${sortDirection}_${sortBy}`) {\n            this.invoicePage = undefined;\n            this.invoiceFilter = invoiceFilter;\n            this.invoices = [];\n          }\n          if (this.invoicePage && this.invoicePage?.currentPage >= this.invoicePage?.totalPages) return this.invoices;\n          const nextPageNumber = (this.invoicePage?.currentPage || 0) + 1;\n          const nextPage = yield this.store.query('invoice', {\n            filter: invoiceFilter,\n            sort: sortDirection === 'desc' ? `-${sortBy}` : sortBy,\n            include: 'items',\n            page: {\n              size: 10,\n              number: nextPageNumber\n            }\n          });\n          this.sort = `${sortDirection}_${sortBy}`;\n          this.invoicePage = nextPage.meta;\n          this.invoices = [...this.invoices, ...nextPage.toArray()];\n          return this.invoices;\n        }\n      }), {\n        restartable: true\n      }, \"getInvoices\", null));\n      _defineProperty(this, \"getInvoiceOptions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const filter = {\n            and: [{\n              field: 'entity',\n              op: 'EQ',\n              value: this.sessionData.entity.id\n            }]\n          };\n          let option = yield this.store.query('entity-invoice-option', {\n            filter\n          }).then(r => r?.[0]);\n          if (!option) option = _entityInvoiceOption.default.defaultOptionsRecord(this.store, this.sessionData.entity).save();\n          return option;\n        }\n      }), null, \"getInvoiceOptions\", null));\n    }\n    deactivate() {\n      this.invoices = [];\n      this.invoiceFilter = undefined;\n      this.invoicePage = undefined;\n    }\n    model({\n      startDate,\n      endDate,\n      status = 'ALL',\n      searchTerm,\n      invoiceType = 'ALL',\n      sortBy = 'dateCreated',\n      sortDirection = 'desc',\n      contact\n    }) {\n      this.getInvoices.perform(startDate, endDate, status, searchTerm, invoiceType, sortBy, sortDirection, contact);\n      this.getInvoiceOptions.perform();\n      return {\n        invoices: this.getInvoices,\n        invoiceOptions: this.getInvoiceOptions\n      };\n    }\n    resetController(controller, isExiting) {\n      if (isExiting) {\n        controller.set('invoiceChangeSet', null);\n      }\n    }\n    willTransition() {\n      const invoices = this.store.peekAll('invoice');\n      const newlyCreatedInvoice = invoices.filter(i => i.isNew);\n      if (newlyCreatedInvoice?.[0]) {\n        newlyCreatedInvoice[0].destroyRecord();\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"willTransition\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"willTransition\"), _class2.prototype), _class2);\n});","define(\"portal/routes/entity/builda-price/operations/outgoing/invoices/invoice\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"@ember/object\", \"ember-changeset\", \"ember-concurrency\", \"@glimmer/tracking\", \"@ember/object/proxy\"], function (_exports, _asyncArrowRuntime, _route, _service, _object, _emberChangeset, _emberConcurrency, _tracking, _proxy) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"@ember/object\",0,\"ember-changeset\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/object/proxy\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n      _initializerDefineProperty(this, \"currentInvoice\", _descriptor6, this);\n      _defineProperty(this, \"getInvoice\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (invoiceId) {\n          const invoice = yield this.store.findRecord('invoice', invoiceId, {\n            include: 'attachments,toContact,items,referencedInvoice,items.projects',\n            reload: true\n          });\n          return invoice;\n        }\n      }), null, \"getInvoice\", null));\n      _defineProperty(this, \"_validateInvoiceNumber\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (invoiceNumber) {\n          yield (0, _emberConcurrency.timeout)(1000); // delay the api call for validation\n\n          const response = yield this.buildaPrice.validateInvoiceNumber({\n            entity: this.sessionData.entity.id,\n            invoiceNumber,\n            id: this.currentInvoice.id\n          });\n          return response;\n        }\n      }), {\n        restartable: true\n      }, \"_validateInvoiceNumber\", null));\n      _defineProperty(this, \"invoiceValidationMap\", {\n        invoiceNumber: this.validateInvoiceNumber,\n        toContact: this.validateToContact,\n        totalPrice: this.validateTotalPrice\n      });\n      _defineProperty(this, \"invoiceValidator\", async ({\n        key,\n        newValue,\n        oldValue\n      }) => {\n        const value = newValue || oldValue;\n        if (key === 'invoiceNumber') {\n          return await this.validateInvoiceNumber(value, newValue);\n        }\n        if (key === 'toContact') {\n          return this.validateToContact(newValue, oldValue);\n        }\n        if (key === 'totalPrice') {\n          return this.validateTotalPrice();\n        }\n        return true;\n      });\n      _defineProperty(this, \"createInvoiceChangeSet\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (invoice) {\n          yield invoice.last;\n          this.currentInvoice = invoice.last.value;\n          return (0, _emberChangeset.Changeset)(this.currentInvoice, this.invoiceValidator, this.invoiceValidationMap);\n        }\n      }), null, \"createInvoiceChangeSet\", null));\n      _defineProperty(this, \"getInvoiceItems\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (invoice) {\n          yield invoice.last;\n          const invoiceId = invoice.last.value.id;\n          const invoiceItems = this.store.peekAll('invoice-item').filter(item => {\n            return item.safeBelongsToValue('invoice')?.id === invoiceId;\n          }).sortBy('sortIndex');\n          return invoiceItems.toArray();\n        }\n      }), null, \"getInvoiceItems\", null));\n      _defineProperty(this, \"getSuppliers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const suppliers = yield this.store.query('contact', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }]\n            }\n          }).then(r => r?.toArray());\n          return suppliers;\n        }\n      }), null, \"getSuppliers\", null));\n      _defineProperty(this, \"getInvoicePermissions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (invoiceItems) {\n          yield invoiceItems.last;\n          let canManageInvoices = this.newFeatureFlags.includesFeatureFlags('canManageInvoices');\n          let canApproveInvoices = this.newFeatureFlags.includesFeatureFlags('canApproveInvoices');\n          let canUseFileStorage = this.newFeatureFlags.includesFeatureFlags('canUseFileStorage');\n          let canManageFileStorage = this.newFeatureFlags.includesFeatureFlags('canManageFileStorage');\n          if (!canManageInvoices || !canApproveInvoices || !canUseFileStorage || !canManageFileStorage) {\n            const projectIds = [...new Set(invoiceItems.last.value.map(item => item.hasMany('projects').value()?.map(i => i.belongsTo('project').id())).flat().filter(Boolean))];\n            if (projectIds.length) {\n              if (!canManageInvoices) {\n                canManageInvoices = projectIds.every(id => this.sessionData.user?.includesClaimsAboutProject(id, 'canManageInvoices'));\n              }\n              if (!canApproveInvoices) {\n                canApproveInvoices = projectIds.every(id => this.sessionData.user?.includesClaimsAboutProject(id, 'canApproveInvoices'));\n              }\n              if (!canUseFileStorage) {\n                canUseFileStorage = projectIds.every(id => this.sessionData.user?.includesSomeClaimsAboutProject(id, 'canViewFileStorage', 'canMangeFileStorage'));\n              }\n              if (!canManageFileStorage) {\n                canManageFileStorage = projectIds.every(id => this.sessionData.user?.includesClaimsAboutProject(id, 'canManageFileStorage'));\n              }\n            }\n          }\n          return {\n            canManageInvoices,\n            canApproveInvoices,\n            canUseFileStorage,\n            canManageFileStorage\n          };\n        }\n      }), null, \"getInvoicePermissions\", null));\n      _defineProperty(this, \"getInvoiceOptions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          let option = yield this.store.simpleQuery('entity-invoice-option', {\n            entity: this.sessionData.entity.id\n          }).then(r => r?.[0]);\n          return option;\n        }\n      }), null, \"getInvoiceOptions\", null));\n      _defineProperty(this, \"getRelatedInvoices\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (invoice) {\n          yield invoice.last;\n          const relatedInvoices = yield this.store.query('invoice', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'referencedInvoice',\n                op: 'EQ',\n                value: invoice.last.value.id\n              }]\n            }\n          }).then(r => r?.toArray());\n          return relatedInvoices;\n        }\n      }), null, \"getRelatedInvoices\", null));\n    }\n    async validateInvoiceNumber(value, newValue) {\n      try {\n        const {\n          isUnique,\n          nextInvoiceNumber\n        } = await this._validateInvoiceNumber.perform(value);\n        if (!isUnique) return `${this.intl.t('validation.Invoice number already exists, use')} ${nextInvoiceNumber ? nextInvoiceNumber : this.intl.t('shared.purchase-order.a different one')}`;\n        return newValue && newValue.length > 0 && isUnique || this.intl.t('validation.Please provide a invoice number');\n      } catch (e) {\n        if (!(0, _emberConcurrency.didCancel)(e)) {\n          throw Error('Error validating invoice number');\n        }\n      }\n    }\n    validateToContact(newValue, oldValue) {\n      const hasExistedValue = newValue !== undefined && Boolean(oldValue.get('name'));\n      let hasNewValue = false;\n      if (newValue instanceof _proxy.default || newValue?.name) {\n        hasNewValue = Boolean(newValue.get('name'));\n      }\n      return hasExistedValue || hasNewValue || this.intl.t('validation.Please select a contact');\n    }\n    validateTotalPrice() {\n      return this.controller?.invoiceTotalError || true;\n    }\n    model({\n      invoice_id: invoiceId\n    }) {\n      this.getInvoice.perform(invoiceId);\n      this.getInvoiceItems.perform(this.getInvoice);\n      this.getInvoiceOptions.perform();\n      this.createInvoiceChangeSet.perform(this.getInvoice);\n      this.getInvoicePermissions.perform(this.getInvoiceItems);\n      this.getSuppliers.perform();\n      this.getRelatedInvoices.perform(this.getInvoice);\n      return {\n        suppliers: this.getSuppliers,\n        invoice: this.getInvoice,\n        invoiceItems: this.getInvoiceItems,\n        invoiceOption: this.getInvoiceOptions,\n        invoiceChangeSet: this.createInvoiceChangeSet,\n        invoicePermissions: this.getInvoicePermissions,\n        relatedInvoices: this.getRelatedInvoices\n      };\n    }\n    willTransition(transition) {\n      const isPOChangeSetDirty = this.controller?.invoiceChangeSet?.isDirty;\n      const invoiceItems = this.store.peekAll('invoice-item');\n      const itemsWithDirtyAttributes = invoiceItems.filter(item => item?.isNew || item?.hasDirtyAttributes);\n      if (isPOChangeSetDirty || itemsWithDirtyAttributes.length) {\n        if (!confirm('You have unsaved changes that will be lost if you decide to leave, do you want continue?')) {\n          transition.abort();\n        } else {\n          itemsWithDirtyAttributes.map(item => item.unloadRecord());\n          this.controller._invoiceItems = null;\n          this.controller?.invoiceChangeSet?.rollback();\n        }\n      } else {\n        this.controller._invoiceItems = null;\n      }\n    }\n    resetController(controller) {\n      // always close the edit modals when leaving the route\n      controller.currentInvoiceItem = undefined;\n      controller.isDeletingInvoice = false;\n      controller.isCreatingCreditNote = false;\n      controller.isEditingInvoice = false;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"currentInvoice\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"willTransition\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"willTransition\"), _class2.prototype), _class2);\n});","define(\"portal/routes/entity/builda-price/operations/outgoing/payroll\", [\"exports\", \"@ember/routing/route\", \"@ember/service\", \"rsvp\", \"moment\", \"portal/helpers/chunk-callback\", \"portal/config/environment\", \"@ember/object\"], function (_exports, _route, _service, _rsvp, _moment, _chunkCallback, _environment, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\",0,\"rsvp\",0,\"moment\",0,\"portal/helpers/chunk-callback\",0,\"portal/config/environment\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend({\n    router: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    basePath: 'entity.builda-price.operations.outgoing',\n    queryParams: {\n      endDate: {\n        refreshModel: true\n      },\n      startDate: {\n        refreshModel: true\n      }\n    },\n    beforeModel() {\n      const payrollPath = this.basePath + '.payroll';\n      const {\n        startDate,\n        endDate\n      } = this.paramsFor(payrollPath);\n      if (!startDate || !endDate) {\n        // Report defaults to 2 week ending today.\n        const startDate = (0, _moment.default)().startOf('isoWeek').subtract(1, 'weeks').format('YYYY-MM-DD');\n        const endDate = (0, _moment.default)().endOf('isoWeek').format('YYYY-MM-DD');\n        this.router.replaceWith(payrollPath, {\n          queryParams: {\n            startDate,\n            endDate\n          }\n        });\n      }\n    },\n    async model({\n      startDate,\n      endDate\n    }) {\n      const entityId = (0, _object.get)(this, 'sessionData.entity.id');\n      const workers = this.store.simpleQuery('worker', {\n        entity: entityId,\n        isContractor: false\n      }).then(workers => workers.sortBy('firstName'));\n      const {\n        timesheetStatuses = [],\n        timesheets = [],\n        timesheetNotes = []\n      } = await workers.then(workers => {\n        if (!(0, _object.get)(workers, 'length')) return _rsvp.default.resolve({});\n        const workerIds = workers.mapBy('id');\n        return _rsvp.default.hash({\n          timesheetStatuses: (0, _chunkCallback.default)(workerIds, _environment.default.chunkCallbackSize, workerIds => this.store.simpleQuery('timesheet-status', {\n            worker: {\n              $in: workerIds\n            },\n            date: {\n              $gte: startDate,\n              $lte: endDate\n            }\n          })),\n          timesheets: (0, _chunkCallback.default)(workerIds, _environment.default.chunkCallbackSize, workerIds => this.store.simpleQuery('timesheet', {\n            worker: {\n              $in: workerIds\n            },\n            date: {\n              $gte: startDate,\n              $lte: endDate\n            }\n          }).then(timesheets => timesheets.toArray()).then(timesheets => timesheets.filter(\n          // remove the timesheets we don't have access to see the project or tasks for\n          t => {\n            return Boolean(t.belongsTo('project').id() && t.belongsTo('task').id());\n          }))),\n          timesheetNotes: (0, _chunkCallback.default)(workerIds, _environment.default.chunkCallbackSize, workerIds => this.store.simpleQuery('timesheet-note', {\n            worker: {\n              $in: workerIds\n            },\n            date: {\n              $gte: startDate,\n              $lte: endDate\n            }\n          }))\n        });\n      });\n      const timesheetProjectIds = timesheets.mapBy('project.id').uniq().filter(id => id);\n      const projects = timesheetProjectIds.length ? this.store.simpleQuery('project', {\n        _id: {\n          $in: timesheetProjectIds\n        }\n      }) : [];\n      const timesheetTaskIds = timesheets.mapBy('task.id').uniq().filter(id => id);\n      const tasks = timesheetProjectIds.length ? (0, _chunkCallback.default)(timesheetProjectIds, _environment.default.chunkCallbackSize, ids =>\n      // get all the project tasks into the store for the breadcrumbs\n      this.store.simpleQuery('task', {\n        project: {\n          $in: ids\n        }\n      })).then(tasks =>\n      // only keep the tasks with direct timesheets for the page\n      tasks.filter(t => timesheetTaskIds.includes((0, _object.get)(t, 'id')))) : [];\n      return _rsvp.default.hash({\n        workers,\n        timesheetStatuses,\n        timesheetNotes,\n        projects,\n        timesheets,\n        tasks,\n        basePath: this.basePath,\n        refresh: () => this.refresh()\n      });\n    },\n    actions: {\n      willTransition() {\n        this._super(...arguments);\n\n        // Set all the currentChargeOutRate attributes back to null to avoid leaking state\n        const workers = (0, _object.get)(this, 'controller.model.workers');\n        if (workers) workers.forEach(w => (0, _object.set)(w, 'currentChargeOutRate', null));\n      }\n    }\n  });\n});","define(\"portal/routes/entity/builda-price/operations/outgoing/purchase-orders\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _defineProperty(this, \"getTasks\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projects) {\n          yield projects.last;\n          const tasks = yield this.store.query('task', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'project.status',\n                op: 'IN',\n                value: ['OPEN', 'HELD']\n              }]\n            },\n            sort: 'path',\n            include: 'children'\n          }).then(tasks => tasks.toArray());\n          return tasks;\n        }\n      }), null, \"getTasks\", null));\n      _defineProperty(this, \"getProjects\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const projects = yield this.store.query('project', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'status',\n                op: 'IN',\n                value: ['OPEN', 'HELD']\n              }]\n            },\n            sort: 'sortIndex'\n          }).then(projects => projects.toArray());\n          return projects;\n        }\n      }), null, \"getProjects\", null));\n    }\n    model() {\n      this.getProjects.perform();\n      this.getTasks.perform(this.getProjects);\n      return {\n        projects: this.getProjects,\n        tasks: this.getTasks\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/operations/outgoing/purchase-orders/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"moment\", \"@ember/object\", \"portal/models/purchase-order-option\"], function (_exports, _asyncArrowRuntime, _route, _service, _moment, _object, _purchaseOrderOption) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"moment\",0,\"@ember/object\",0,\"portal/models/purchase-order-option\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _defineProperty(this, \"queryParams\", {\n        searchTerm: {\n          refreshModel: true\n        },\n        startDate: {\n          refreshModel: true\n        },\n        endDate: {\n          refreshModel: true\n        },\n        status: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getPurchaseOrders\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (startDate, endDate, status, searchTerm) {\n          const purchaseOrderQuery = {\n            entity: this.sessionData.entity.id\n          };\n          if (status && status !== 'ALL') purchaseOrderQuery.status = status;\n          purchaseOrderQuery.dateCreated = {\n            $gte: (0, _moment.default)(startDate).startOf('day').toISOString(),\n            $lte: (0, _moment.default)(endDate).endOf('day').toISOString()\n          };\n          if (searchTerm) purchaseOrderQuery.purchaseOrderNumber = {\n            $like: searchTerm\n          };\n          const purchaseOrders = yield this.store.simpleQuery('purchase-order', purchaseOrderQuery, {\n            include: 'items'\n          });\n          return purchaseOrders.toArray();\n        }\n      }), null, \"getPurchaseOrders\", null));\n      _defineProperty(this, \"getPurchaseOrderOptions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          let option = yield this.store.simpleQuery('purchase-order-option', {\n            entity: this.sessionData.entity.id\n          }).then(r => r?.[0]);\n          if (!option) option = _purchaseOrderOption.default.defaultOptionsRecord(this.store, this.sessionData.entity).save();\n          return option;\n        }\n      }), null, \"getPurchaseOrderOptions\", null));\n    }\n    model({\n      startDate,\n      endDate,\n      status = 'ALL',\n      searchTerm\n    }) {\n      const purchaseOrderRoute = 'entity.builda-price.operations.outgoing.purchase-orders';\n      const {\n        projects\n      } = this.modelFor(purchaseOrderRoute);\n      this.getPurchaseOrders.perform(startDate, endDate, status, searchTerm);\n      this.getPurchaseOrderOptions.perform();\n      return {\n        purchaseOrders: this.getPurchaseOrders,\n        purchaseOrderOptions: this.getPurchaseOrderOptions,\n        projects\n      };\n    }\n    willTransition() {\n      const purchaseOrders = this.store.peekAll('purchase-order');\n      const newlyCreatedPurchaseOrder = purchaseOrders.filter(i => i.isNew);\n      if (newlyCreatedPurchaseOrder?.[0]) {\n        newlyCreatedPurchaseOrder?.[0].destroyRecord();\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"willTransition\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"willTransition\"), _class2.prototype), _class2);\n});","define(\"portal/routes/entity/builda-price/operations/outgoing/purchase-orders/purchase-order\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"@ember/object\", \"ember-changeset\", \"ember-concurrency\", \"@glimmer/tracking\"], function (_exports, _asyncArrowRuntime, _route, _service, _object, _emberChangeset, _emberConcurrency, _tracking) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"@ember/object\",0,\"ember-changeset\",0,\"ember-concurrency\",0,\"@glimmer/tracking\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n      _initializerDefineProperty(this, \"currentPurchaseOrder\", _descriptor6, this);\n      _defineProperty(this, \"getPurchaseOrder\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (purchaseOrderId) {\n          const purchaseOrder = yield this.store.findRecord('purchase-order', purchaseOrderId, {\n            include: 'attachments.attachment,supplier'\n          });\n          return purchaseOrder;\n        }\n      }), null, \"getPurchaseOrder\", null));\n      _defineProperty(this, \"validatePurchaseOrderNumber\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (purchaseOrderNumber) {\n          yield (0, _emberConcurrency.timeout)(1000); // delay the api call for validation\n\n          const response = yield this.buildaPrice.validatePurchaseOrderNumber({\n            entity: this.sessionData.entity.id,\n            purchaseOrderNumber,\n            _id: this.currentPurchaseOrder.id\n          });\n          return response;\n        }\n      }), {\n        restartable: true\n      }, \"validatePurchaseOrderNumber\", null));\n      _defineProperty(this, \"purchaseOrderValidator\", async ({\n        key,\n        newValue,\n        oldValue\n      }) => {\n        const value = newValue || oldValue;\n        if (key === 'purchaseOrderNumber') {\n          try {\n            const {\n              isUnique,\n              nextPoNumber\n            } = await this.validatePurchaseOrderNumber.perform(value);\n            if (!isUnique) return `${this.intl.t('validation.purchaseOrderNumberAlreadyExists')} ${nextPoNumber ? nextPoNumber : this.intl.t('shared.purchase-order.a different one')}`;\n            return newValue && newValue.length > 0 && isUnique || this.intl.t('validation.Please provide a purchase order number');\n          } catch (e) {\n            if (!(0, _emberConcurrency.didCancel)(e)) {\n              throw Error('Error validating purchase order number');\n            }\n          }\n        } else {\n          return true;\n        }\n      });\n      _defineProperty(this, \"createPurchaseOrderChangeSet\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (purchaseOrder) {\n          yield purchaseOrder.last;\n          this.currentPurchaseOrder = purchaseOrder.last.value;\n          return (0, _emberChangeset.Changeset)(purchaseOrder.last.value, this.purchaseOrderValidator);\n        }\n      }), null, \"createPurchaseOrderChangeSet\", null));\n      _defineProperty(this, \"getPurchaseOrderItems\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (purchaseOrderId) {\n          const purchaseOrderItems = yield this.store.simpleQuery('purchase-order-item', {\n            entity: this.sessionData.entity.id,\n            purchaseOrder: purchaseOrderId\n          });\n          return purchaseOrderItems.sortBy('sortIndex');\n        }\n      }), null, \"getPurchaseOrderItems\", null));\n      _defineProperty(this, \"getPurchaseOrderPermissions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (purchaseOrderItems) {\n          yield purchaseOrderItems.last;\n          let canManagePurchaseOrders = this.newFeatureFlags.includesFeatureFlags('canManagePurchaseOrders');\n          let canApprovePurchaseOrders = this.newFeatureFlags.includesFeatureFlags('canApprovePurchaseOrders');\n          let canUseFileStorage = this.newFeatureFlags.includesFeatureFlags('canUseFileStorage');\n          let canManageFileStorage = this.newFeatureFlags.includesFeatureFlags('canManageFileStorage');\n          if (!canManagePurchaseOrders || !canApprovePurchaseOrders || !canUseFileStorage || !canManageFileStorage) {\n            const tasks = yield Promise.all(purchaseOrderItems.last.value.map(item => {\n              return item ? item.belongsTo('task').load() : null;\n            }));\n            const validTasks = tasks.filter(task => task !== null);\n            const projects = yield Promise.all(validTasks.map(task => task.belongsTo('project').load()));\n            const projectIds = [...new Set(projects.map(project => project.id))];\n            if (projectIds.length) {\n              if (!canManagePurchaseOrders) {\n                canManagePurchaseOrders = projectIds.every(id => this.sessionData.user?.includesClaimsAboutProject(id, 'canManagePurchaseOrders'));\n              }\n              if (!canApprovePurchaseOrders) {\n                canApprovePurchaseOrders = projectIds.every(id => this.sessionData.user?.includesClaimsAboutProject(id, 'canApprovePurchaseOrders'));\n              }\n              if (!canUseFileStorage) {\n                canUseFileStorage = projectIds.every(id => this.sessionData.user?.includesSomeClaimsAboutProject(id, 'canViewFileStorage', 'canMangeFileStorage'));\n              }\n              if (!canManageFileStorage) {\n                canManageFileStorage = projectIds.every(id => this.sessionData.user?.includesClaimsAboutProject(id, 'canManageFileStorage'));\n              }\n            }\n          }\n          return {\n            canManagePurchaseOrders,\n            canApprovePurchaseOrders,\n            canUseFileStorage,\n            canManageFileStorage\n          };\n        }\n      }), null, \"getPurchaseOrderPermissions\", null));\n      _defineProperty(this, \"getPurchaseOrderOptions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          let option = yield this.store.simpleQuery('purchase-order-option', {\n            entity: this.sessionData.entity.id\n          }).then(r => r?.[0]);\n          return option;\n        }\n      }), null, \"getPurchaseOrderOptions\", null));\n    }\n    model({\n      purchase_order_id: purchaseOrderId\n    }) {\n      const purchaseOrderRoute = 'entity.builda-price.operations.outgoing.purchase-orders';\n      const {\n        projects,\n        tasks\n      } = this.modelFor(purchaseOrderRoute);\n      this.getPurchaseOrder.perform(purchaseOrderId);\n      this.getPurchaseOrderItems.perform(purchaseOrderId);\n      this.getPurchaseOrderOptions.perform();\n      this.createPurchaseOrderChangeSet.perform(this.getPurchaseOrder);\n      this.getPurchaseOrderPermissions.perform(this.getPurchaseOrderItems);\n      return {\n        projects,\n        tasks,\n        purchaseOrder: this.getPurchaseOrder,\n        purchaseOrderItems: this.getPurchaseOrderItems,\n        purchaseOrderOption: this.getPurchaseOrderOptions,\n        purchaseOrderChangeSet: this.createPurchaseOrderChangeSet,\n        purchaseOrderPermissions: this.getPurchaseOrderPermissions\n      };\n    }\n    willTransition(transition) {\n      const isPOChangeSetDirty = this.controller?.purchaseOrderChangeSet?.isDirty;\n      const purchaseOrderItems = this.store.peekAll('purchase-order-item');\n      const itemsWithDirtyAttributes = purchaseOrderItems.filter(item => item?.isNew || item?.hasDirtyAttributes);\n      if (isPOChangeSetDirty || itemsWithDirtyAttributes.length) {\n        if (!confirm(this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.youHaveUnsavedChangesThatWillBeLostIfYouDecideToLeaveDoYouWantContinue'))) {\n          transition.abort();\n        } else {\n          itemsWithDirtyAttributes.map(item => item.unloadRecord());\n          this.controller._purchaseOrderItems = null;\n          this.controller?.purchaseOrderChangeSet?.rollback();\n        }\n      } else {\n        this.controller._purchaseOrderItems = null;\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"currentPurchaseOrder\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"willTransition\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"willTransition\"), _class2.prototype), _class2);\n});","define(\"portal/routes/entity/builda-price/operations/outgoing/report-builder/csv\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n    }\n    model() {\n      // this transitions to the parent route if you refresh the model - pretty vague\n      this.router.transitionTo('entity.builda-price.operations.outgoing.report-builder.index');\n    }\n    serialize() {\n      return {\n        csv_data: 'csv'\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/operations/outgoing/report-builder/excel\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n    }\n    model() {\n      // this transitions to the parent route if you refresh the model - pretty vague\n      this.router.transitionTo('entity.builda-price.operations.outgoing.report-builder.index');\n    }\n    serialize() {\n      return {\n        excel_data: 'excel'\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/operations/outgoing/report-builder/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/object\", \"@ember/object/computed\", \"portal/utils/computed\", \"@ember/service\", \"portal/helpers/chunk-callback\", \"moment\", \"lodash\", \"portal/config/environment\", \"portal/utils/report-builder-mark-as-reported\"], function (_exports, _asyncArrowRuntime, _route, _object, _computed, _computed2, _service, _chunkCallback, _moment, _lodash, _environment, _reportBuilderMarkAsReported) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.WorkerGroup = _exports.InvoiceGroup = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"@ember/object\",0,\"@ember/object/computed\",0,\"portal/utils/computed\",0,\"@ember/service\",0,\"portal/helpers/chunk-callback\",0,\"ember-concurrency\",0,\"moment\",0,\"lodash\",0,\"portal/config/environment\",0,\"portal/utils/report-builder-mark-as-reported\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const InvoiceGroup = _exports.InvoiceGroup = _object.default.extend({\n    invoice: null,\n    items: null,\n    itemsVisible: false,\n    allSelected: (0, _object.computed)('items.@each.selected', function () {\n      return (0, _object.get)(this, 'items').every(item => (0, _object.get)(item, 'selected'));\n    }),\n    partSelected: (0, _object.computed)('allSelected', 'items.@each.selected', function () {\n      return !(0, _object.get)(this, 'allSelected') && (0, _object.get)(this, 'items').some(item => (0, _object.get)(item, 'selected'));\n    }),\n    nReported: (0, _object.computed)('items.@each.reported', function () {\n      return (0, _object.get)(this, 'items').reduce((total, item) => (0, _object.get)(item, 'reported') ? total + 1 : total, 0);\n    }),\n    allReported: (0, _object.computed)('items.length', 'nReported', function () {\n      return (0, _object.get)(this, 'nReported') === (0, _object.get)(this, 'items.length');\n    }),\n    totalPrice: (0, _computed2.sumBy)('items', 'totalPrice'),\n    selectedTotalPrice: (0, _object.computed)('items.@each.selected', function () {\n      return this.items.reduce((total, item) => item.selected ? total + item.totalPrice : total, 0);\n    })\n  });\n  const WorkerGroup = _exports.WorkerGroup = _object.default.extend({\n    project: null,\n    tasks: null,\n    worker: null,\n    timesheets: null,\n    itemsVisible: false,\n    currentChargeOutRate: (0, _computed.alias)('worker.currentChargeOutRate'),\n    allSelected: (0, _object.computed)('timesheets.@each.selected', function () {\n      return (0, _object.get)(this, 'timesheets').every(item => (0, _object.get)(item, 'selected'));\n    }),\n    partSelected: (0, _object.computed)('allSelected', 'timesheets.@each.selected', function () {\n      return !(0, _object.get)(this, 'allSelected') && (0, _object.get)(this, 'timesheets').some(item => (0, _object.get)(item, 'selected'));\n    }),\n    nReported: (0, _object.computed)('timesheets.@each.reported', function () {\n      return (0, _object.get)(this, 'timesheets').reduce((total, sheet) => (0, _object.get)(sheet, 'reported') ? total + 1 : total, 0);\n    }),\n    allReported: (0, _object.computed)('nReported', 'timesheets.length', function () {\n      return (0, _object.get)(this, 'nReported') === (0, _object.get)(this, 'timesheets.length');\n    }),\n    timesheetTotals: (0, _object.computed)('project', 'tasks.@each.id', 'timesheets', 'worker.currentChargeOutRate', function () {\n      const worker = (0, _object.get)(this, 'worker');\n      const project = (0, _object.get)(this, 'project');\n      const tasks = (0, _object.get)(this, 'tasks');\n      const timesheets = (0, _object.get)(this, 'timesheets');\n      const query = {\n        project\n      };\n      if (tasks) query.tasks = tasks;\n      return worker.calculateWorkForProject(query, timesheets);\n    }),\n    selectedTimesheets: (0, _object.computed)('timesheets.@each.selected', function () {\n      return (0, _object.get)(this, 'timesheets').filter(timesheet => (0, _object.get)(timesheet, 'selected'));\n    })\n  });\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _defineProperty(this, \"queryParams\", {\n        endDate: {\n          refreshModel: true\n        },\n        startDate: {\n          refreshModel: true\n        },\n        selectedProjectId: {\n          refreshModel: true\n        },\n        filterByDate: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"fetchProjects\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const projects = yield this.store.simpleQuery('project', {\n            entity: this.sessionData.entity.id\n          });\n          const sortedProjects = projects.sortBy('sortIndex').toArray();\n          return sortedProjects;\n        }\n      }), null, \"fetchProjects\", null));\n      _defineProperty(this, \"fetchTasks\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (selectedProjectId) {\n          if (!selectedProjectId) return [];\n          const tasks = yield this.store.query('task', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'project',\n                op: 'EQ',\n                value: selectedProjectId\n              }]\n            },\n            sort: 'path',\n            include: 'children'\n          }).then(tasks => tasks.toArray());\n          return tasks;\n        }\n      }), null, \"fetchTasks\", null));\n      _defineProperty(this, \"fetchWorkerJobAllocations\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (selectedProjectId) {\n          if (!selectedProjectId) return [];\n          const workerJobAllocations = yield this.store.simpleQuery('worker-job-allocation', {\n            project: selectedProjectId,\n            entity: this.sessionData.entity.id\n          });\n          return workerJobAllocations;\n        }\n      }), null, \"fetchWorkerJobAllocations\", null));\n      _defineProperty(this, \"fetchTimesheets\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* ({\n          selectedProjectId,\n          selectedTaskIds,\n          startDate,\n          endDate,\n          filterByDate\n        }) {\n          // return an empty array if project is not selected\n          if (!selectedProjectId) return [];\n\n          // Fetch all the timesheets that match the report criteria\n          const timesheetsQuery = {\n            project: selectedProjectId\n          };\n          // only add the date filter if we are filtering by date\n          if (filterByDate) {\n            timesheetsQuery.date = {\n              $gte: startDate,\n              $lte: endDate\n            };\n          }\n          let timesheets = [];\n          if (selectedTaskIds?.length) {\n            timesheets = yield (0, _chunkCallback.default)(selectedTaskIds, _environment.default.chunkCallbackSize, ids => {\n              return this.store.simpleQuery('timesheet', {\n                ...timesheetsQuery,\n                task: {\n                  $in: ids\n                }\n              }, {\n                include: 'worker'\n              });\n            });\n            timesheets = timesheets.sortBy('date');\n            return timesheets;\n          }\n          timesheets = yield this.store.simpleQuery('timesheet', timesheetsQuery, {\n            include: 'worker'\n          });\n          timesheets = timesheets.sortBy('date');\n          return timesheets;\n        }\n      }), null, \"fetchTimesheets\", null));\n      _defineProperty(this, \"fetchInvoicesAndItems\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* ({\n          selectedProjectId,\n          selectedTaskIds,\n          startDate,\n          endDate,\n          filterByDate\n        }, _projectTasks) {\n          // return an empty array if project is not selected\n          if (!selectedProjectId) return {\n            invoices: [],\n            invoiceItems: []\n          };\n\n          // only add the date filter if we are filtering by date\n          const invoiceItemQuery = {\n            and: [{\n              field: 'entity',\n              op: 'EQ',\n              value: this.sessionData.entity.id\n            }],\n            or: []\n          };\n          if (filterByDate) {\n            invoiceItemQuery.and.push({\n              field: 'bill.issueDate',\n              op: 'GE',\n              value: (0, _moment.default)(startDate).startOf('day').toISOString()\n            });\n            invoiceItemQuery.and.push({\n              field: 'bill.issueDate',\n              op: 'LE',\n              value: (0, _moment.default)(endDate).endOf('day').toISOString()\n            });\n          }\n          if (selectedTaskIds?.length) {\n            const invoiceItems = yield (0, _chunkCallback.default)(selectedTaskIds, _environment.default.chunkCallbackSize, ids => {\n              const filter = JSON.parse(JSON.stringify(invoiceItemQuery));\n              filter.and.push({\n                field: 'task',\n                op: 'IN',\n                value: ids\n              });\n              return this.store.query('bill-item', {\n                filter: filter,\n                include: 'bill,bill.attachments'\n              });\n            }).then(r => r.toArray());\n            const invoices = this.store.peekAll('bill')?.toArray().filter(item => item.belongsTo('entity').id() === this.sessionData.entity.id);\n            return {\n              invoices,\n              invoiceItems\n            };\n          }\n          if (selectedProjectId) {\n            invoiceItemQuery.or.push({\n              field: 'project',\n              op: 'EQ',\n              value: selectedProjectId\n            });\n            invoiceItemQuery.or.push({\n              field: 'task.project',\n              op: 'EQ',\n              value: selectedProjectId\n            });\n          }\n          const invoiceItems = yield this.store.query('bill-item', {\n            filter: invoiceItemQuery,\n            include: 'bill,bill.attachments',\n            fields: {\n              'bill-items': '_meta.isMapped'\n            }\n          }).then(r => r.toArray());\n          const invoices = this.store.peekAll('bill')?.toArray().filter(item => item.belongsTo('entity').id() === this.sessionData.entity.id);\n          return {\n            invoices,\n            invoiceItems\n          };\n        }\n      }), null, \"fetchInvoicesAndItems\", null));\n    }\n    init() {\n      super.init(...arguments);\n      this.router.on('routeWillChange', transition => {\n        const isToReportBuilder = transition.to?.name === 'entity.build-price.reports.report-builder.index';\n        const isFromExportRoute = ['entity.build-price.reports.report-builder.pdf', 'entity.build-price.reports.report-builder.csv', 'entity.build-price.reports.report-builder.excel'].includes(transition.from?.name);\n        if (isToReportBuilder && !isFromExportRoute && this.controller != null) {\n          this.controller.resetPageOverrides();\n        }\n      });\n    }\n    createWorkerGroups({\n      timesheets,\n      projects,\n      tasks,\n      workerProjectAllocations,\n      selectedProjectId,\n      selectedTaskIds\n    }) {\n      const workersTimesheets = _lodash.default.groupBy(timesheets, sheet => sheet.belongsTo('worker').id());\n      return Object.keys(workersTimesheets).reduce((arr, workerId) => {\n        const worker = workersTimesheets[workerId][0].belongsTo('worker').value();\n        const timesheets = workersTimesheets[workerId];\n        const workerProjectAllocation = workerProjectAllocations.findBy('worker.id', workerId);\n\n        // TODO this is not nice\n        if (workerProjectAllocation) {\n          (0, _object.set)(worker, 'currentChargeOutRate', workerProjectAllocation.chargeOutRate);\n        } else {\n          (0, _object.set)(worker, 'currentChargeOutRate', worker.chargeOutRate);\n        }\n        return arr.concat(WorkerGroup.create({\n          worker,\n          timesheets,\n          project: projects.findBy('id', selectedProjectId),\n          tasks: selectedTaskIds?.length ? tasks.filter(t => selectedTaskIds.includes(t.id)) : null\n        }));\n      }, []);\n    }\n    createInvoiceGroups(invoices, invoiceItems) {\n      // Group the relevant items by invoice, ready to be added to their respective invoices\n      const groupedItems = _lodash.default.groupBy(invoiceItems, item => item.belongsTo('bill').id());\n      const invoiceWrappers = invoices.reduce((arr, invoice) => {\n        const items = groupedItems[invoice.id];\n        // Only include invoices with relevant items\n        if (items) {\n          return arr.concat(InvoiceGroup.create({\n            invoice,\n            items\n          }));\n        } else {\n          return arr;\n        }\n      }, []);\n      return invoiceWrappers.sortBy('invoice.issuer', 'invoice.issueDate');\n    }\n    clearExportedSelectedResources() {\n      const pdfController = this.controllerFor('entity.builda-price.operations.outgoing.report-builder.pdf');\n      const csvController = this.controllerFor('entity.builda-price.operations.outgoing.report-builder.csv');\n      const excelController = this.controllerFor('entity.builda-price.operations.outgoing.report-builder.excel');\n      if (pdfController?.downloaded || csvController?.downloaded || excelController?.downloaded) {\n        (0, _reportBuilderMarkAsReported.clearSelectedResources)(this.controller.reportData);\n        pdfController.set('downloaded', false);\n        csvController.set('downloaded', false);\n        excelController.set('downloaded', false);\n      }\n    }\n    async model({\n      startDate,\n      endDate,\n      selectedProjectId,\n      filterByDate\n    }) {\n      this.clearExportedSelectedResources();\n      const selectedTaskIds = this.controller?.selectedTaskIds || [];\n      const [projects, tasks] = await Promise.all([this.fetchProjects.perform(), this.fetchTasks.perform(selectedProjectId)]);\n      const [workerProjectAllocations, timesheets, {\n        invoices,\n        invoiceItems\n      }] = await Promise.all([this.fetchWorkerJobAllocations.perform(selectedProjectId), this.fetchTimesheets.perform({\n        selectedProjectId,\n        selectedTaskIds,\n        startDate,\n        endDate,\n        filterByDate\n      }), this.fetchInvoicesAndItems.perform({\n        selectedProjectId,\n        selectedTaskIds,\n        startDate,\n        endDate,\n        filterByDate\n      }, tasks)]);\n      const workerGroups = this.createWorkerGroups({\n        timesheets,\n        projects,\n        tasks,\n        workerProjectAllocations,\n        selectedProjectId,\n        selectedTaskIds\n      }); // eslint-disable-line max-len\n\n      const invoiceGroups = this.createInvoiceGroups(invoices, invoiceItems);\n      const invoiceGroupTypes = _lodash.default.groupBy(invoiceGroups, group => group.invoice.allocationType);\n      const materialInvoices = invoiceGroupTypes['MATERIALS'] || [];\n      const labourInvoices = invoiceGroupTypes['LABOUR'] || [];\n      const subcontractorInvoices = invoiceGroupTypes['SUBCONTRACTORS'] || [];\n      return {\n        projects,\n        tasks,\n        workers: workerGroups,\n        timesheets,\n        materialInvoices,\n        labourInvoices,\n        subcontractorInvoices,\n        refresh: () => this.refresh()\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/operations/outgoing/report-builder/pdf\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let PDFRoute = _exports.default = (_class = class PDFRoute extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n    }\n    model() {\n      // this transitions to the parent route if you refresh the model - pretty vague\n      this.router.transitionTo('entity.builda-price.operations.outgoing.report-builder.index');\n    }\n    serialize() {\n      return {\n        pdf_data: 'pdf'\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"portal/routes/entity/builda-price/operations/products\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _defineProperty(this, \"queryParams\", {\n        pageSize: {\n          refreshModel: true\n        },\n        pageIndex: {\n          refreshModel: true\n        },\n        sortBy: {\n          refreshModel: true\n        },\n        sortDirection: {\n          refreshModel: true\n        },\n        searchTerm: {\n          refreshModel: true\n        },\n        supplier: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"pageSizes\", [25, 50, 100, 500, 1000]);\n      _defineProperty(this, \"getProducts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (pageSize, pageIndex, sortBy, sortDirection, supplier, searchTerm) {\n          const filters = {\n            and: [{\n              field: 'entity',\n              operator: 'EQ',\n              value: this.sessionData.entity.id\n            }],\n            or: []\n          };\n          if (supplier?.length) filters.and.push({\n            field: 'supplierName',\n            operator: 'EQ',\n            value: supplier\n          });\n          if (searchTerm?.length) {\n            filters.or.push({\n              field: 'description',\n              operator: 'ILIKE',\n              value: searchTerm\n            });\n            filters.or.push({\n              field: 'sku',\n              operator: 'ILIKE',\n              value: searchTerm\n            });\n          }\n          let orderBy;\n          switch (sortBy) {\n            case 'Product':\n              orderBy = 'description';\n              break;\n            case 'Supplier':\n              orderBy = 'supplierName';\n              break;\n            case 'SKU':\n              orderBy = 'sku';\n              break;\n            case 'Unit':\n              orderBy = 'unit';\n              break;\n            case 'Unit price':\n              orderBy = 'unitPrice';\n              break;\n            default:\n              break;\n          }\n          const entityProducts = yield this.store.query('entity-product', {\n            filter: filters,\n            orderBy: orderBy || 'dateCreated',\n            orderByDirection: sortDirection || 'desc',\n            pageSize,\n            page: pageIndex\n          });\n          return entityProducts;\n        }\n      }), null, \"getProducts\", null));\n    }\n    model({\n      pageSize = this.pageSizes[0],\n      pageIndex = 1,\n      sortBy = 'dateCreated',\n      sortDirection = 'desc',\n      supplier,\n      searchTerm\n    }) {\n      this.getProducts.perform(Number(pageSize), Number(pageIndex), sortBy, sortDirection, supplier, searchTerm);\n      return {\n        entity: this.sessionData.entity,\n        products: this.getProducts,\n        pageSize: Number(pageSize),\n        pageIndex: Number(pageIndex),\n        sortBy,\n        sortDirection,\n        searchTerm,\n        supplier,\n        pageSizes: this.pageSizes\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  class _default extends _route.default {}\n  _exports.default = _default;\n});","define(\"portal/routes/entity/builda-price/projects/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"@ember/service\",0,\"ember-concurrency\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _defineProperty(this, \"queryParams\", {\n        status: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getProjects\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (status) {\n          const projectQuery = {\n            entity: this.sessionData.entity.id\n          };\n          if (status !== 'ALL') projectQuery.status = status;\n          const projects = yield this.store.simpleQuery('project', projectQuery);\n          return projects.sortBy('sortIndex').toArray();\n        }\n      }), null, \"getProjects\", null));\n    }\n    setupController(controller) {\n      super.setupController(...arguments);\n      controller.searchString = '';\n    }\n    model({\n      status = 'OPEN'\n    }) {\n      return {\n        projects: this.getProjects.perform(status)\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _defineProperty(this, \"getProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projectId) {\n          try {\n            const project = yield this.store.findRecord('project', projectId, {\n              reload: true,\n              adapterOptions: {\n                fields: {\n                  projects: '_meta.canDelete'\n                }\n              }\n            });\n            return project;\n          } catch (_) {\n            // this means we either don't have access to the project or the project doesn't exist\n            // go back to the projects list\n            this.router.transitionTo('entity.builda-price.projects');\n          }\n        }\n      }), null, \"getProject\", null));\n      _defineProperty(this, \"getOpenProjects\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const projects = yield this.store.simpleQuery('project', {\n            entity: this.sessionData.entity.id,\n            status: 'OPEN'\n          });\n          return projects.sortBy('sortIndex').toArray();\n        }\n      }), null, \"getOpenProjects\", null));\n    }\n    model({\n      project_id: projectId\n    }) {\n      this.getProject.perform(projectId);\n      this.getOpenProjects.perform();\n      return {\n        project: this.getProject,\n        openProjects: this.getOpenProjects\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/documents\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _defineProperty(this, \"getAttachments\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project) {\n          yield project.last;\n          // if you can manage the files for this project use the project relationship\n          // this way the front end will update when adding new attachments\n          if (this.newFeatureFlags.canManageFileStorage(project.last.value)) {\n            yield project.last.value.loadAttachments();\n            return project.last.value.myAttachments;\n          }\n          // we cant use the project relationship because it is not filtered by ac, make the request manually\n          const filter = {\n            and: [{\n              field: 'project',\n              op: 'EQ',\n              value: project.last.value.id\n            }]\n          };\n          const attachments = yield this.store.query('link-attachment-to-project', {\n            filter,\n            include: 'attachment',\n            sort: 'dateCreated'\n          }).then(r => r.map(a => a.belongsTo('attachment').value()));\n          return attachments;\n        }\n      }), null, \"getAttachments\", null));\n      _defineProperty(this, \"getUsers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project) {\n          yield project.last;\n          if (!this.newFeatureFlags.canManageFileStorage(project.last.value) || !this.newFeatureFlags.includesFeatureFlags(project.last.value, 'canManageUsers')) return [];\n          const userAttributes = yield this.store.simpleQuery('user-entity-attribute', {\n            entity: this.sessionData.entity.id,\n            attribute: 'canViewEntity'\n          });\n          if (!userAttributes.length) return [];\n          const userIds = userAttributes.map(ua => ua.belongsTo('user').id());\n          const users = yield this.store.simpleQuery('user', {\n            _id: {\n              $in: userIds\n            }\n          }, {\n            include: 'entityAttributes'\n          });\n          return users;\n        }\n      }), null, \"getUsers\", null));\n    }\n    async model() {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project\n      } = this.modelFor(projectRoute);\n      this.getAttachments.perform(project);\n      this.getUsers.perform(project);\n      return {\n        project,\n        attachments: this.getAttachments,\n        users: this.getUsers\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/estimates/estimate\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"engineData\", _descriptor, this);\n      _initializerDefineProperty(this, \"pricing\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor4, this);\n      _initializerDefineProperty(this, \"helpCenter\", _descriptor5, this);\n      _initializerDefineProperty(this, \"store\", _descriptor6, this);\n    }\n    async getEstimate(estimateId) {\n      const estimate = await this.store.findRecord('estimate', estimateId);\n      return estimate;\n    }\n    deactivate() {\n      if (this.newFeatureFlags.includesFeatureFlags('entityHasSupport')) this.helpCenter.showHelpCenter();\n    }\n\n    // this has to be a promise prevent the builda-price-client-addon from loading\n    async model({\n      estimate_id: estimateId\n    }) {\n      if (this.newFeatureFlags.includesFeatureFlags('entityHasSupport')) this.helpCenter.hideHelpCenter();\n      const estimate = await this.getEstimate(estimateId);\n      this.engineData.sessionId = await this.pricing.getSessionId();\n      this.engineData.jobId = estimate.pricingJobId;\n      return {\n        estimate\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"engineData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"pricing\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"helpCenter\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/estimates/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"@ember/service\",0,\"ember-concurrency\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"pricing\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _defineProperty(this, \"queryParams\", {\n        filter: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getEstimates\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* ({\n          projectId,\n          filter\n        }) {\n          const projectQuery = {\n            entity: this.sessionData.entity.id,\n            project: projectId\n          };\n          if (filter !== 'all') projectQuery.status = filter;\n          const estimates = yield this.store.simpleQuery('estimate', projectQuery);\n          return estimates.toArray();\n        }\n      }), null, \"getEstimates\", null));\n      _defineProperty(this, \"getUnlinkedEstimates\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const unlinkedEstimates = yield this.pricing.getUnlinkedEstimates();\n          return unlinkedEstimates;\n        }\n      }), null, \"getUnlinkedEstimates\", null));\n    }\n    setupController(controller) {\n      super.setupController(...arguments);\n      controller.searchString = '';\n    }\n    model({\n      filter = 'all'\n    }) {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project_id: projectId\n      } = this.paramsFor(projectRoute);\n      const {\n        project\n      } = this.modelFor(projectRoute);\n      this.getEstimates.perform({\n        projectId,\n        filter\n      });\n      this.getUnlinkedEstimates.perform(projectId);\n      return {\n        project,\n        estimates: this.getEstimates,\n        unlinkedEstimates: this.getUnlinkedEstimates\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"pricing\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/financials\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _defineProperty(this, \"loadProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projectId) {\n          const project = yield this.store.findRecord('project', projectId, {\n            reload: true\n          });\n          return project;\n        }\n      }), null, \"loadProject\", null));\n      _defineProperty(this, \"loadBudget\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project) {\n          yield project.last;\n          yield this.loadTasks;\n          yield project.last.value.loadBudget();\n        }\n      }), null, \"loadBudget\", null));\n      _defineProperty(this, \"loadQuote\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project) {\n          yield project.last;\n          yield this.loadTasks;\n          yield project.last.value.loadQuote();\n        }\n      }), null, \"loadQuote\", null));\n      _defineProperty(this, \"loadTasks\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project) {\n          yield project.last;\n          yield project.last.value.loadTaskChanges();\n        }\n      }), null, \"loadTasks\", null));\n    }\n    model() {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project_id: projectId\n      } = this.paramsFor(projectRoute);\n\n      // reload the project incase the financials have changed\n      this.loadProject.perform(projectId);\n      this.loadTasks.perform(this.loadProject);\n      this.loadBudget.perform(this.loadProject);\n      this.loadQuote.perform(this.loadProject);\n      return {\n        project: this.loadProject,\n        loadBudget: this.loadBudget,\n        loadQuote: this.loadQuote\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/health-and-safety\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"ossEngineData\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n    }\n    async model() {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project\n      } = await this.modelFor(projectRoute);\n      await project.last;\n\n      // set project Id\n      this.ossEngineData.setProjectId(project.last.value.id);\n\n      // set access token\n      this.ossEngineData.setAccessToken(this.sessionData.session.data.authenticated.access_token);\n      // set user object\n      this.ossEngineData.setUser(this.sessionData.user);\n      return {\n        project\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"ossEngineData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/index\", [\"exports\", \"@ember/routing/route\", \"portal/mixins/menu-route\", \"@glimmer/tracking\", \"@ember/service\"], function (_exports, _route, _menuRoute, _tracking, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"portal/mixins/menu-route\",0,\"@glimmer/tracking\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default.extend(_menuRoute.default) {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      // this is similar logic to the project route sidebar\n      _initializerDefineProperty(this, \"defaultRoute\", _descriptor2, this);\n    }\n    // yes, the default route returns you to the projects page\n    async beforeModel() {\n      const project = await this.modelFor('entity.builda-price.projects.project').project.last;\n      if (this.newFeatureFlags.includesFeatureFlags(project, 'canUseTasks')) {\n        // if you can manage tasks for this project go to the tasks screen\n        this.defaultRoute = 'entity.builda-price.projects.project.tasks';\n      } else if (this.newFeatureFlags.includesFeatureFlags(project, 'canUseProjects')) {\n        this.defaultRoute = 'entity.builda-price.projects.project.settings';\n      } else if (this.newFeatureFlags.includesFeatureFlags(project, 'canUseEstimates')) {\n        // if you can manage estimates for this project go to the estimates screen\n        this.defaultRoute = 'entity.builda-price.projects.project.estimates';\n      } else {\n        // otherwise you have no business in this project so return to the projects route\n        this.defaultRoute = 'entity.builda-price.projects';\n      }\n    }\n    model() {\n      return this.modelFor('entity.builda-price.reports.projects.project');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"defaultRoute\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'entity.builda-price.projects';\n    }\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/people\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  class _default extends _route.default {\n    model() {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project\n      } = this.modelFor(projectRoute);\n      return {\n        project\n      };\n    }\n  }\n  _exports.default = _default;\n});","define(\"portal/routes/entity/builda-price/projects/project/people/clients/client\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"ember-changeset\"], function (_exports, _asyncArrowRuntime, _route, _service, _emberChangeset) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.canViewTasksAttributes = _exports.canViewSchedulingReportsAttributes = _exports.canViewQuotesAttributes = _exports.canViewQuoteReportsAttributes = _exports.canViewProjectsAttributes = _exports.canViewProgressReportsAttributes = _exports.canViewProgressAttributes = _exports.canViewInvoicingReportsAttributes = _exports.canViewFileStorageAttributes = _exports.canViewCostReportsAttributes = _exports.canViewCostLabourHourReportsAttributes = _exports.canViewClientReportsAttributes = _exports.canViewChargeupReportsAttributes = _exports.canViewBudgetsAttributes = _exports.canViewBudgetReportsAttributes = _exports.canViewBudgetLabourHourReportsAttributes = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"ember-changeset\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const canViewSchedulingReportsAttributes = _exports.canViewSchedulingReportsAttributes = ['canViewSchedulingReports'];\n  const canViewBudgetReportsAttributes = _exports.canViewBudgetReportsAttributes = ['canViewBudgetFinancialReports'];\n  const canViewBudgetLabourHourReportsAttributes = _exports.canViewBudgetLabourHourReportsAttributes = ['canViewBudgetLabourHourReports'];\n  const canViewQuoteReportsAttributes = _exports.canViewQuoteReportsAttributes = ['canViewQuoteReports'];\n  const canViewCostReportsAttributes = _exports.canViewCostReportsAttributes = ['canViewCostFinancialReports'];\n  const canViewCostLabourHourReportsAttributes = _exports.canViewCostLabourHourReportsAttributes = ['canViewCostLabourHourReports'];\n  const canViewChargeupReportsAttributes = _exports.canViewChargeupReportsAttributes = ['canViewChargeupReports'];\n  const canViewProgressReportsAttributes = _exports.canViewProgressReportsAttributes = ['canViewProgressReports'];\n  const canViewProjectsAttributes = _exports.canViewProjectsAttributes = ['canViewProjects'];\n  const canViewTasksAttributes = _exports.canViewTasksAttributes = ['canViewTasks'];\n  const canViewBudgetsAttributes = _exports.canViewBudgetsAttributes = ['canViewTaskBudgets'];\n  const canViewProgressAttributes = _exports.canViewProgressAttributes = ['canViewTaskProgress'];\n  const canViewQuotesAttributes = _exports.canViewQuotesAttributes = ['canViewTaskQuotes'];\n  const canViewFileStorageAttributes = _exports.canViewFileStorageAttributes = ['canViewFileStorage'];\n  const canViewInvoicingReportsAttributes = _exports.canViewInvoicingReportsAttributes = ['canViewInvoicingReports'];\n  const canViewClientReportsAttributes = _exports.canViewClientReportsAttributes = ['canViewClientReports'];\n  const permissionsValidator = ({\n    key,\n    newValue: _newValue,\n    oldValue: _oldValue,\n    changes: _changes,\n    content: _content\n  }) => {\n    switch (key) {\n      case 'canViewBudgetFinancialReports':\n        return true;\n      case 'canViewBudgetLabourHourReports':\n        return true;\n      case 'canViewChargeupReports':\n        return true;\n      case 'canViewCostFinancialReports':\n        return true;\n      case 'canViewCostLabourHourReports':\n        return true;\n      case 'canViewProgressReports':\n        return true;\n      case 'canViewQuoteReports':\n        return true;\n      case 'canViewSchedulingReports':\n        return true;\n      case 'canViewTasks':\n        return true;\n      case 'canViewBudgets':\n        return true;\n      case 'canViewQuotes':\n        return true;\n      case 'canViewInvoicingReports':\n        return true;\n      case 'canViewClientReports':\n        return true;\n      default:\n        break;\n    }\n  };\n  const permissionsValidationMap = {\n    canViewBudgetFinancialReports: () => true,\n    canViewBudgetLabourHourReports: () => true,\n    canViewChargeupReports: () => true,\n    canViewCostFinancialReports: () => true,\n    canViewCostLabourHourReports: () => true,\n    canViewProgressReports: () => true,\n    canViewQuoteReports: () => true,\n    canViewSchedulingReports: () => true,\n    canViewTasks: () => true,\n    canViewBudgets: () => true,\n    canViewQuotes: () => true,\n    canViewInvoicingReports: () => true,\n    canViewClientReports: () => true\n  };\n  class TaskTypeContainer {\n    constructor(name, attr) {\n      this.name = name;\n      this.attr = attr;\n    }\n  }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.projects.project.people');\n      _defineProperty(this, \"getPermissionsChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (client, project, attributes, taskVisibilityOptions) {\n          yield client.last;\n          yield project.last;\n          yield attributes.last;\n          yield taskVisibilityOptions.last;\n          const projectAttributes = client.last.value.hasMany('projectAttributes').value()?.toArray() || [];\n          const currentProjectAttributeIds = projectAttributes.filter(pa => pa.belongsTo('project').id() === project.last.value.id).map(pa => pa.belongsTo('attribute').id());\n          const selectedTaskAttributes = taskVisibilityOptions.last.value.filter(tva => currentProjectAttributeIds.includes(tva.attr.id));\n          return (0, _emberChangeset.Changeset)({\n            taskAttributes: selectedTaskAttributes,\n            canViewBudgetFinancialReports: client.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewBudgetReportsAttributes),\n            canViewBudgetLabourHourReports: client.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewBudgetLabourHourReportsAttributes),\n            canViewChargeupReports: client.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewChargeupReportsAttributes),\n            canViewCostFinancialReports: client.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewCostReportsAttributes),\n            canViewCostLabourHourReports: client.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewCostLabourHourReportsAttributes),\n            canViewProgressReports: client.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewProgressReportsAttributes),\n            canViewQuoteReports: client.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewQuoteReportsAttributes),\n            canViewSchedulingReports: client.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewSchedulingReportsAttributes),\n            canViewTasks: client.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewTasksAttributes),\n            canViewInvoicingReports: client.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewInvoicingReportsAttributes),\n            canViewClientReports: client.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewClientReportsAttributes)\n          }, permissionsValidator, permissionsValidationMap);\n        }\n      }), null, \"getPermissionsChangeset\", null));\n      _defineProperty(this, \"getClient\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (id) {\n          try {\n            const client = yield this.store.findRecord('user', id);\n\n            // fetch user's attributes\n            // TODO this should be possible with an includes but our API doesn't work properly\n            yield Promise.all([this.store.simpleQuery('user-entity-attribute', {\n              user: id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-project-attribute', {\n              user: id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-worker-attribute', {\n              user: id,\n              entity: this.sessionData.entity.id\n            })]);\n            return client;\n          } catch (_) {\n            this.notifications.error(this.intl.t('shared.notification.Something went wrong finding the client'));\n            this.router.transitionTo(`${this.basePath}.users`);\n          }\n        }\n      }), null, \"getClient\", null));\n      _defineProperty(this, \"getAttributes\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const attributes = yield this.store.findAll('user-attribute');\n          return attributes.toArray().reduce((acc, a) => ({\n            ...acc,\n            [a.id]: a\n          }), {});\n        }\n      }), null, \"getAttributes\", null));\n      _defineProperty(this, \"getTaskVisibilityOptions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (attributes) {\n          yield attributes.last;\n          const {\n            canViewTaskTasks,\n            canViewSumsTasks,\n            canViewSubcontractorTasks,\n            canViewPlantTasks,\n            canViewMilestoneTasks,\n            canViewInternalTasks,\n            canViewBuildersWorkTasks\n          } = attributes.last.value;\n          return [new TaskTypeContainer('General', canViewTaskTasks), new TaskTypeContainer(`Builder's Work`, canViewBuildersWorkTasks), new TaskTypeContainer('Sums', canViewSumsTasks), new TaskTypeContainer(`Subcontractors`, canViewSubcontractorTasks), new TaskTypeContainer('Plant', canViewPlantTasks), new TaskTypeContainer('Internal', canViewInternalTasks), new TaskTypeContainer('Milestone', canViewMilestoneTasks)];\n        }\n      }), null, \"getTaskVisibilityOptions\", null));\n    }\n    model({\n      client_id: id\n    }) {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project\n      } = this.modelFor(projectRoute);\n      this.getClient.perform(id);\n      this.getAttributes.perform();\n      this.getTaskVisibilityOptions.perform(this.getAttributes);\n      this.getPermissionsChangeset.perform(this.getClient, project, this.getAttributes, this.getTaskVisibilityOptions);\n      return {\n        project,\n        basePath: this.basePath,\n        client: this.getClient,\n        permissionsChangeset: this.getPermissionsChangeset,\n        taskVisibilityOptions: this.getTaskVisibilityOptions,\n        attributes: this.getAttributes\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/people/clients/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _defineProperty(this, \"projectClientPermissions\", ['hasClientRole']);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.projects.project.people');\n      _defineProperty(this, \"getClients\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project) {\n          if (!this.newFeatureFlags.includesFeatureFlags(project.last.value, 'canUseClientPortal', 'canUseUsers')) return [];\n          yield project.last;\n          const [userProjectAttributes, userClientEntityAttributes] = yield Promise.all([this.store.query('user-project-attribute', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'project',\n                op: 'EQ',\n                value: project.last.value.id\n              }, {\n                field: 'attribute',\n                op: 'IN',\n                value: this.projectClientPermissions\n              }]\n            },\n            include: 'user'\n          }), this.store.query('user-entity-attribute', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'user',\n                op: 'NE',\n                value: this.sessionData.user.id\n              }, {\n                field: 'attribute',\n                op: 'EQ',\n                value: 'hasClientRole'\n              }]\n            },\n            include: 'user'\n          })]);\n          const users = userClientEntityAttributes.map(uca => uca.belongsTo('user').value());\n          return users.sortBy('firstName').reduce((group, user) => {\n            const hasProject = userProjectAttributes.toArray().some(upa => upa.belongsTo('user').id() === user.id);\n            (hasProject ? group.projectClients : group.unassignedClients).push(user);\n            return group;\n          }, {\n            projectClients: [],\n            unassignedClients: []\n          });\n        }\n      }), null, \"getClients\", null));\n    }\n    setupController(controller) {\n      super.setupController(...arguments);\n      controller.searchString = '';\n    }\n    model() {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project\n      } = this.modelFor(projectRoute);\n      this.getClients.perform(project);\n      return {\n        project,\n        clients: this.getClients,\n        basePath: this.basePath\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/people/index\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n    }\n    async beforeModel() {\n      const project = await this.modelFor('entity.builda-price.projects.project').project.last;\n      // we can default to this route if user has access to users\n      if (this.newFeatureFlags.includesFeatureFlags(project.value, 'canUseBuildaPrice', 'canUseUsers')) {\n        this.router.transitionTo('entity.builda-price.projects.project.people.users');\n      } else if (this.newFeatureFlags.includesFeatureFlags(project.value, 'canUseBuildaPrice', 'canUseWorkers')) {\n        this.router.transitionTo('entity.builda-price.projects.project.people.workers');\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/people/subcontractors/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _defineProperty(this, \"projectSubcontractorPermissions\", ['hasSubcontractorRole']);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.projects.project.people');\n      _defineProperty(this, \"getSubcontractors\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project) {\n          yield project.last;\n          // find all the users that have access to view the entity and fetch them\n          // the access control will make sure the correct users are returned\n          const [userProjectAttributes, userSubcontractorEntityAttributes] = yield Promise.all([this.store.query('user-project-attribute', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'project',\n                op: 'EQ',\n                value: project.last.value.id\n              }, {\n                field: 'attribute',\n                op: 'IN',\n                value: this.projectSubcontractorPermissions\n              }]\n            },\n            include: 'user'\n          }), this.store.query('user-entity-attribute', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'user',\n                op: 'NE',\n                value: this.sessionData.user.id\n              }, {\n                field: 'attribute',\n                op: 'EQ',\n                value: 'hasSubcontractorRole'\n              }]\n            },\n            include: 'user'\n          })]);\n          const users = userSubcontractorEntityAttributes.map(usa => usa.belongsTo('user').value());\n          return users.sortBy('firstName').reduce((group, user) => {\n            const hasProject = userProjectAttributes.toArray().some(upa => upa.belongsTo('user').id() === user.id);\n            (hasProject ? group.projectSubcontractors : group.unassignedSubcontractors).push(user);\n            return group;\n          }, {\n            projectSubcontractors: [],\n            unassignedSubcontractors: []\n          });\n        }\n      }), null, \"getSubcontractors\", null));\n    }\n    setupController(controller) {\n      super.setupController(...arguments);\n      controller.searchString = '';\n    }\n    model() {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project\n      } = this.modelFor(projectRoute);\n      this.getSubcontractors.perform(project);\n      return {\n        project,\n        subcontractors: this.getSubcontractors,\n        basePath: this.basePath\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/people/subcontractors/subcontractor\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"ember-changeset\"], function (_exports, _asyncArrowRuntime, _route, _service, _emberChangeset) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.canViewTasksAttributes = _exports.canViewSchedulingReportsAttributes = _exports.canViewQuotesAttributes = _exports.canViewQuoteReportsAttributes = _exports.canViewProjectsAttributes = _exports.canViewProgressReportsAttributes = _exports.canViewProgressAttributes = _exports.canViewProductsAttributes = _exports.canViewInvoicingReportsAttributes = _exports.canViewFileStorageAttributes = _exports.canViewCostReportsAttributes = _exports.canViewCostLabourHourReportsAttributes = _exports.canViewChargeupReportsAttributes = _exports.canViewBudgetsAttributes = _exports.canViewBudgetReportsAttributes = _exports.canViewBudgetLabourHourReportsAttributes = _exports.canManageTimesheetsAttributes = _exports.canManageTasksAttributes = _exports.canManageSchedulingReportsAttributes = _exports.canManageQuotesAttributes = _exports.canManageProjectsAttributes = _exports.canManageProgressAttributes = _exports.canManageProductsAttributes = _exports.canManageHealthAndSafetyAttributes = _exports.canManageFileStorageAttributes = _exports.canManageEstimatesAttributes = _exports.canManageBudgetsAttributes = _exports.canCreateHealthAndSafetyAttributes = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"ember-changeset\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const canViewProjectsAttributes = _exports.canViewProjectsAttributes = ['canViewProjects'];\n  const canManageBudgetsAttributes = _exports.canManageBudgetsAttributes = ['canManageProjectBudgetVersions', 'canManageTaskBudgets'];\n  const canManageEstimatesAttributes = _exports.canManageEstimatesAttributes = ['canManageEstimates'];\n  const canManageFileStorageAttributes = _exports.canManageFileStorageAttributes = ['canManageFileStorage'];\n  const canManageProductsAttributes = _exports.canManageProductsAttributes = ['canManageProducts'];\n  const canManageProjectsAttributes = _exports.canManageProjectsAttributes = ['canManageProjects'];\n  const canManageQuotesAttributes = _exports.canManageQuotesAttributes = ['canManageProjectQuoteVersions', 'canManageTaskQuotes'];\n  const canManageProgressAttributes = _exports.canManageProgressAttributes = ['canManageProjectProgressVersions', 'canManageTaskProgress'];\n  const canManageSchedulingReportsAttributes = _exports.canManageSchedulingReportsAttributes = ['canManageProjectSchedulingVersions', 'canManageTaskScheduling', 'canManageSchedulingReports', 'canManageProgressReports'];\n  const canManageTasksAttributes = _exports.canManageTasksAttributes = ['canManageTasks'];\n  const canManageTimesheetsAttributes = _exports.canManageTimesheetsAttributes = ['canManageTimesheets'];\n  const canViewBudgetReportsAttributes = _exports.canViewBudgetReportsAttributes = ['canViewBudgetFinancialReports'];\n  const canViewBudgetLabourHourReportsAttributes = _exports.canViewBudgetLabourHourReportsAttributes = ['canViewBudgetLabourHourReports'];\n  const canViewBudgetsAttributes = _exports.canViewBudgetsAttributes = ['canViewProjectBudgetVersions', 'canViewTaskBudgets'];\n  const canViewProgressAttributes = _exports.canViewProgressAttributes = ['canViewProjectProgressVersions', 'canViewTaskProgress'];\n  const canViewChargeupReportsAttributes = _exports.canViewChargeupReportsAttributes = ['canViewChargeupReports'];\n  const canViewCostReportsAttributes = _exports.canViewCostReportsAttributes = ['canViewCostFinancialReports'];\n  const canViewCostLabourHourReportsAttributes = _exports.canViewCostLabourHourReportsAttributes = ['canViewCostLabourHourReports'];\n  const canViewFileStorageAttributes = _exports.canViewFileStorageAttributes = ['canViewFileStorage'];\n  const canViewProductsAttributes = _exports.canViewProductsAttributes = ['canViewProducts'];\n  const canViewProgressReportsAttributes = _exports.canViewProgressReportsAttributes = ['canViewProgressReports'];\n  const canViewQuoteReportsAttributes = _exports.canViewQuoteReportsAttributes = ['canViewQuoteReports'];\n  const canViewQuotesAttributes = _exports.canViewQuotesAttributes = ['canViewProjectQuoteVersions', 'canViewTaskQuotes'];\n  const canViewSchedulingReportsAttributes = _exports.canViewSchedulingReportsAttributes = ['canViewSchedulingReports'];\n  const canViewTasksAttributes = _exports.canViewTasksAttributes = ['canViewTasks'];\n  const canCreateHealthAndSafetyAttributes = _exports.canCreateHealthAndSafetyAttributes = ['canCreateHealthAndSafety'];\n  const canManageHealthAndSafetyAttributes = _exports.canManageHealthAndSafetyAttributes = ['canManageHealthAndSafety'];\n  const canViewInvoicingReportsAttributes = _exports.canViewInvoicingReportsAttributes = ['canViewInvoicingReports'];\n  const permissionsValidator = ({\n    key,\n    newValue: _newValue,\n    oldValue: _oldValue,\n    changes: _changes,\n    content: _content\n  }) => {\n    switch (key) {\n      case 'canManageBudgets':\n        return true;\n      case 'canManageEstimates':\n        return true;\n      case 'canManageFileStorage':\n        return true;\n      case 'canManageProducts':\n        return true;\n      case 'canManageProjects':\n        return true;\n      case 'canManageQuotes':\n        return true;\n      case 'canManageSchedulingReports':\n        return true;\n      case 'canManageTasks':\n        return true;\n      case 'canManageTimesheets':\n        return true;\n      case 'canViewBudgetFinancialReports':\n        return true;\n      case 'canViewBudgetLabourHourReports':\n        return true;\n      case 'canViewBudgets':\n        return true;\n      case 'canManageProgress':\n        return true;\n      case 'canViewProgress':\n        return true;\n      case 'canViewChargeupReports':\n        return true;\n      case 'canViewCostFinancialReports':\n        return true;\n      case 'canViewCostLabourHourReports':\n        return true;\n      case 'canViewFileStorage':\n        return true;\n      case 'canViewProducts':\n        return true;\n      case 'canViewProgressReports':\n        return true;\n      case 'canViewQuoteReports':\n        return true;\n      case 'canViewQuotes':\n        return true;\n      case 'canViewSchedulingReports':\n        return true;\n      case 'canViewTasks':\n        return true;\n      case 'canCreateHealthAndSafety':\n        return true;\n      case 'canManageHealthAndSafety':\n        return true;\n      case 'canViewInvoicingReports':\n        return true;\n      default:\n        break;\n    }\n  };\n  const permissionsValidationMap = {\n    canManageBudgets: () => true,\n    canManageEstimates: () => true,\n    canManageFileStorage: () => true,\n    canManageProducts: () => true,\n    canManageProjects: () => true,\n    canManageQuotes: () => true,\n    canManageSchedulingReports: () => true,\n    canManageTasks: () => true,\n    canManageTimesheets: () => true,\n    canViewBudgetFinancialReports: () => true,\n    canViewBudgetLabourHourReports: () => true,\n    canViewBudgets: () => true,\n    canViewProgress: () => true,\n    canManageProgress: () => true,\n    canViewChargeupReports: () => true,\n    canViewCostFinancialReports: () => true,\n    canViewCostLabourHourReports: () => true,\n    canViewFileStorage: () => true,\n    canViewProducts: () => true,\n    canViewProgressReports: () => true,\n    canViewQuoteReports: () => true,\n    canViewQuotes: () => true,\n    canViewSchedulingReports: () => true,\n    canViewTasks: () => true,\n    canCreateHealthAndSafety: () => null,\n    canManageHealthAndSafety: () => null,\n    canViewInvoicingReports: () => null\n  };\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.projects.project.people');\n      _defineProperty(this, \"getSubcontractor\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (id) {\n          try {\n            const subcontractor = yield this.store.findRecord('user', id);\n\n            // fetch user's attributes\n            // TODO this should be possible with an includes but our API doesn't work properly\n            yield Promise.all([this.store.simpleQuery('user-entity-attribute', {\n              user: id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-project-attribute', {\n              user: id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-worker-attribute', {\n              user: id,\n              entity: this.sessionData.entity.id\n            })]);\n            return subcontractor;\n          } catch (_) {\n            this.notifications.error(this.intl.t('shared.notification.somethingWentWrongFindingTheSubcontractor'));\n            this.router.transitionTo(`${this.basePath}.users`);\n          }\n        }\n      }), null, \"getSubcontractor\", null));\n      _defineProperty(this, \"getPermissionsChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (subcontractor, project) {\n          yield subcontractor.last;\n          yield project.last;\n          return (0, _emberChangeset.Changeset)({\n            canManageBudgets: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canManageBudgetsAttributes),\n            canManageEstimates: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canManageEstimatesAttributes),\n            canManageFileStorage: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canManageFileStorageAttributes),\n            canManageProducts: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canManageProductsAttributes),\n            canManageProjects: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canManageProjectsAttributes),\n            canManageQuotes: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canManageQuotesAttributes),\n            canManageSchedulingReports: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canManageSchedulingReportsAttributes),\n            canManageTasks: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canManageTasksAttributes),\n            canManageTimesheets: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canManageTimesheetsAttributes),\n            canViewBudgetFinancialReports: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewBudgetReportsAttributes),\n            canViewBudgetLabourHourReports: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewBudgetLabourHourReportsAttributes),\n            canViewBudgets: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewBudgetsAttributes),\n            canViewProgress: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewProgressAttributes),\n            canManageProgress: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canManageProgressAttributes),\n            canViewChargeupReports: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewChargeupReportsAttributes),\n            canViewCostFinancialReports: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewCostReportsAttributes),\n            canViewCostLabourHourReports: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewCostLabourHourReportsAttributes),\n            canViewFileStorage: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewFileStorageAttributes),\n            canViewProducts: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewProductsAttributes),\n            canViewProgressReports: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewProgressReportsAttributes),\n            canViewQuoteReports: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewQuoteReportsAttributes),\n            canViewQuotes: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewQuotesAttributes),\n            canViewSchedulingReports: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewSchedulingReportsAttributes),\n            canViewTasks: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewTasksAttributes),\n            canCreateHealthAndSafety: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canCreateHealthAndSafetyAttributes),\n            canManageHealthAndSafety: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canManageHealthAndSafetyAttributes),\n            canViewInvoicingReports: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewInvoicingReportsAttributes)\n          }, permissionsValidator, permissionsValidationMap);\n        }\n      }), null, \"getPermissionsChangeset\", null));\n    }\n    model({\n      subcontractor_id: id\n    }) {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project\n      } = this.modelFor(projectRoute);\n      this.getSubcontractor.perform(id);\n      this.getPermissionsChangeset.perform(this.getSubcontractor, project);\n      return {\n        project,\n        basePath: this.basePath,\n        subcontractor: this.getSubcontractor,\n        permissionsChangeset: this.getPermissionsChangeset\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/people/users/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.projects.project.people');\n      _defineProperty(this, \"getUsers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project) {\n          yield project.last;\n          // find all the users that have access to view the entity and fetch them\n          // the access control will make sure the correct users are returned\n          const [userEntityAttributes, userProjectAttributes, userClientEntityAttributes, userSubcontractorEntityAttributes] = yield Promise.all([this.store.query('user-entity-attribute', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'attribute',\n                op: 'EQ',\n                value: 'canViewEntity'\n              }, {\n                field: 'user',\n                op: 'NE',\n                value: this.sessionData.user.id\n              }]\n            },\n            include: 'user'\n          }), this.store.query('user-project-attribute', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'project',\n                op: 'EQ',\n                value: project.last.value.id\n              }, {\n                field: 'user',\n                op: 'NE',\n                value: this.sessionData.user.id\n              }]\n            },\n            include: 'user'\n          }), this.store.query('user-entity-attribute', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'attribute',\n                op: 'EQ',\n                value: 'hasClientRole'\n              }, {\n                field: 'user',\n                op: 'NE',\n                value: this.sessionData.user.id\n              }]\n            },\n            include: 'user'\n          }), this.store.query('user-entity-attribute', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'attribute',\n                op: 'EQ',\n                value: 'hasSubcontractorRole'\n              }, {\n                field: 'user',\n                op: 'NE',\n                value: this.sessionData.user.id\n              }]\n            },\n            include: 'user'\n          })]);\n          let allUsers = userEntityAttributes.map(uea => uea.belongsTo('user').value());\n          const clientIds = userClientEntityAttributes.map(uea => uea.belongsTo('user').id());\n          const subcontractorIds = userSubcontractorEntityAttributes.map(uea => uea.belongsTo('user').id());\n\n          // filter clients and subcontractors from users list\n          const users = allUsers.filter(user => !clientIds.includes(user.id) && !subcontractorIds.includes(user.id));\n          return users.sortBy('firstName').reduce((group, user) => {\n            const hasProject = userProjectAttributes.toArray().some(upa => upa.belongsTo('user').id() === user.id);\n            (hasProject ? group.projectUsers : group.unassignedUsers).push(user);\n            return group;\n          }, {\n            projectUsers: [],\n            unassignedUsers: []\n          });\n        }\n      }), null, \"getUsers\", null));\n    }\n    setupController(controller) {\n      super.setupController(...arguments);\n      controller.searchString = '';\n    }\n    model() {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project\n      } = this.modelFor(projectRoute);\n      this.getUsers.perform(project);\n      return {\n        project,\n        users: this.getUsers,\n        basePath: this.basePath\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/people/users/user\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"ember-changeset\"], function (_exports, _asyncArrowRuntime, _route, _service, _emberChangeset) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.canViewTasksAttributes = _exports.canViewStagePaymentsAttributes = _exports.canViewSchedulingReportsAttributes = _exports.canViewQuotesAttributes = _exports.canViewQuoteReportsAttributes = _exports.canViewPurchaseOrdersAttributes = _exports.canViewProjectsAttributes = _exports.canViewProgressReportsAttributes = _exports.canViewProgressAttributes = _exports.canViewProductsAttributes = _exports.canViewInvoicingReportsAttributes = _exports.canViewInvoicesAttributes = _exports.canViewFileStorageAttributes = _exports.canViewCostReportsAttributes = _exports.canViewCostLabourHourReportsAttributes = _exports.canViewChargeupReportsAttributes = _exports.canViewBudgetsAttributes = _exports.canViewBudgetReportsAttributes = _exports.canViewBudgetLabourHourReportsAttributes = _exports.canViewAccessReportsAttributes = _exports.canViewAccessReports = _exports.canManageTimesheetsAttributes = _exports.canManageTasksAttributes = _exports.canManageStagePaymentsAttributes = _exports.canManageSchedulingReportsAttributes = _exports.canManageQuotesAttributes = _exports.canManagePurchaseOrdersAttributes = _exports.canManageProjectsAttributes = _exports.canManageProgressAttributes = _exports.canManageProductsAttributes = _exports.canManageInvoicesAttributes = _exports.canManageHealthAndSafetyAttributes = _exports.canManageFileStorageAttributes = _exports.canManageEstimatesAttributes = _exports.canManageBudgetsAttributes = _exports.canCreateHealthAndSafetyAttributes = _exports.canApprovePurchaseOrdersAttributes = _exports.canApproveInvoicesAttributes = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"ember-changeset\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const canViewProjectsAttributes = _exports.canViewProjectsAttributes = ['canViewProjects'];\n  const canManageBudgetsAttributes = _exports.canManageBudgetsAttributes = ['canManageProjectBudgetVersions', 'canManageTaskBudgets'];\n  const canManageEstimatesAttributes = _exports.canManageEstimatesAttributes = ['canManageEstimates'];\n  const canManageFileStorageAttributes = _exports.canManageFileStorageAttributes = ['canManageFileStorage'];\n  const canManageProductsAttributes = _exports.canManageProductsAttributes = ['canManageProducts'];\n  const canManageProjectsAttributes = _exports.canManageProjectsAttributes = ['canManageProjects'];\n  const canManageQuotesAttributes = _exports.canManageQuotesAttributes = ['canManageProjectQuoteVersions', 'canManageTaskQuotes'];\n  const canManageSchedulingReportsAttributes = _exports.canManageSchedulingReportsAttributes = ['canManageProjectSchedulingVersions', 'canManageTaskScheduling', 'canManageSchedulingReports', 'canManageProgressReports'];\n  const canViewAccessReportsAttributes = _exports.canViewAccessReportsAttributes = ['canViewAccessReports'];\n  const canManageTasksAttributes = _exports.canManageTasksAttributes = ['canManageTasks'];\n  const canManageTimesheetsAttributes = _exports.canManageTimesheetsAttributes = ['canManageTimesheets'];\n  const canViewBudgetReportsAttributes = _exports.canViewBudgetReportsAttributes = ['canViewBudgetFinancialReports'];\n  const canViewBudgetLabourHourReportsAttributes = _exports.canViewBudgetLabourHourReportsAttributes = ['canViewBudgetLabourHourReports'];\n  const canViewBudgetsAttributes = _exports.canViewBudgetsAttributes = ['canViewProjectBudgetVersions', 'canViewTaskBudgets'];\n  const canViewProgressAttributes = _exports.canViewProgressAttributes = ['canViewProjectProgressVersions', 'canViewTaskProgress'];\n  const canManageProgressAttributes = _exports.canManageProgressAttributes = ['canManageProjectProgressVersions', 'canManageTaskProgress'];\n  const canViewChargeupReportsAttributes = _exports.canViewChargeupReportsAttributes = ['canViewChargeupReports'];\n  const canViewCostReportsAttributes = _exports.canViewCostReportsAttributes = ['canViewCostFinancialReports'];\n  const canViewCostLabourHourReportsAttributes = _exports.canViewCostLabourHourReportsAttributes = ['canViewCostLabourHourReports'];\n  const canViewFileStorageAttributes = _exports.canViewFileStorageAttributes = ['canViewFileStorage'];\n  const canViewProductsAttributes = _exports.canViewProductsAttributes = ['canViewProducts'];\n  const canViewProgressReportsAttributes = _exports.canViewProgressReportsAttributes = ['canViewProgressReports'];\n  const canViewQuoteReportsAttributes = _exports.canViewQuoteReportsAttributes = ['canViewQuoteReports'];\n  const canViewQuotesAttributes = _exports.canViewQuotesAttributes = ['canViewProjectQuoteVersions', 'canViewTaskQuotes'];\n  const canViewSchedulingReportsAttributes = _exports.canViewSchedulingReportsAttributes = ['canViewSchedulingReports'];\n  const canViewTasksAttributes = _exports.canViewTasksAttributes = ['canViewTasks'];\n  const canCreateHealthAndSafetyAttributes = _exports.canCreateHealthAndSafetyAttributes = ['canCreateHealthAndSafety'];\n  const canManageHealthAndSafetyAttributes = _exports.canManageHealthAndSafetyAttributes = ['canManageHealthAndSafety'];\n  const canViewInvoicesAttributes = _exports.canViewInvoicesAttributes = ['canViewInvoices'];\n  const canManageInvoicesAttributes = _exports.canManageInvoicesAttributes = ['canManageInvoices'];\n  const canApproveInvoicesAttributes = _exports.canApproveInvoicesAttributes = ['canApproveInvoices'];\n  const canViewPurchaseOrdersAttributes = _exports.canViewPurchaseOrdersAttributes = ['canViewPurchaseOrders'];\n  const canManagePurchaseOrdersAttributes = _exports.canManagePurchaseOrdersAttributes = ['canManagePurchaseOrders'];\n  const canApprovePurchaseOrdersAttributes = _exports.canApprovePurchaseOrdersAttributes = ['canApprovePurchaseOrders'];\n  const canViewStagePaymentsAttributes = _exports.canViewStagePaymentsAttributes = ['canViewStagePayments'];\n  const canManageStagePaymentsAttributes = _exports.canManageStagePaymentsAttributes = ['canManageStagePayments'];\n  const canViewInvoicingReportsAttributes = _exports.canViewInvoicingReportsAttributes = ['canViewInvoicingReports'];\n  const canViewAccessReports = _exports.canViewAccessReports = ['canViewAccessReports'];\n  const permissionsValidator = ({\n    key,\n    newValue: _newValue,\n    oldValue: _oldValue,\n    changes: _changes,\n    content: _content\n  }) => {\n    switch (key) {\n      case 'canManageBudgets':\n        return true;\n      case 'canManageEstimates':\n        return true;\n      case 'canManageFileStorage':\n        return true;\n      case 'canManageProducts':\n        return true;\n      case 'canManageProjects':\n        return true;\n      case 'canManageQuotes':\n        return true;\n      case 'canManageSchedulingReports':\n        return true;\n      case 'canViewAccessReports':\n        return true;\n      case 'canManageTasks':\n        return true;\n      case 'canManageTimesheets':\n        return true;\n      case 'canViewBudgetFinancialReports':\n        return true;\n      case 'canViewBudgetLabourHourReports':\n        return true;\n      case 'canViewBudgets':\n        return true;\n      case 'canViewProgress':\n        return true;\n      case 'canManageProgress':\n        return true;\n      case 'canViewChargeupReports':\n        return true;\n      case 'canViewCostFinancialReports':\n        return true;\n      case 'canViewCostLabourHourReports':\n        return true;\n      case 'canViewFileStorage':\n        return true;\n      case 'canViewProducts':\n        return true;\n      case 'canViewProgressReports':\n        return true;\n      case 'canViewQuoteReports':\n        return true;\n      case 'canViewQuotes':\n        return true;\n      case 'canViewSchedulingReports':\n        return true;\n      case 'canViewTasks':\n        return true;\n      case 'canCreateHealthAndSafety':\n        return true;\n      case 'canManageHealthAndSafety':\n        return true;\n      case 'canViewInvoices':\n        return true;\n      case 'canManageInvoices':\n        return true;\n      case 'canApproveInvoices':\n        return true;\n      case 'canViewPurchaseOrders':\n        return true;\n      case 'canManagePurchaseOrders':\n        return true;\n      case 'canApprovePurchaseOrders':\n        return true;\n      case 'canViewStagePayments':\n        return true;\n      case 'canManageStagePayments':\n        return true;\n      case 'canViewInvoicingReports':\n        return true;\n      default:\n        break;\n    }\n  };\n  const permissionsValidationMap = {\n    canManageBudgets: () => true,\n    canManageEstimates: () => true,\n    canManageFileStorage: () => true,\n    canManageProducts: () => true,\n    canManageProjects: () => true,\n    canManageQuotes: () => true,\n    canManageSchedulingReports: () => true,\n    canViewAccessReports: () => true,\n    canManageTasks: () => true,\n    canManageTimesheets: () => true,\n    canViewBudgetFinancialReports: () => true,\n    canViewBudgetLabourHourReports: () => true,\n    canViewBudgets: () => true,\n    canViewProgress: () => true,\n    canManageProgress: () => true,\n    canViewChargeupReports: () => true,\n    canViewCostFinancialReports: () => true,\n    canViewCostLabourHourReports: () => true,\n    canViewFileStorage: () => true,\n    canViewProducts: () => true,\n    canViewProgressReports: () => true,\n    canViewQuoteReports: () => true,\n    canViewQuotes: () => true,\n    canViewSchedulingReports: () => true,\n    canViewTasks: () => true,\n    canCreateHealthAndSafety: () => null,\n    canManageHealthAndSafety: () => null,\n    canViewInvoices: () => null,\n    canManageInvoices: () => null,\n    canApproveInvoices: () => null,\n    canViewPurchaseOrders: () => null,\n    canManagePurchaseOrders: () => null,\n    canApprovePurchaseOrders: () => null,\n    canViewStagePayments: () => null,\n    canManageStagePayments: () => null,\n    canViewInvoicingReports: () => null\n  };\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.projects.project.people');\n      _defineProperty(this, \"getPermissionsChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (user, project) {\n          yield user.last;\n          yield project.last;\n          return (0, _emberChangeset.Changeset)({\n            canManageBudgets: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canManageBudgetsAttributes),\n            canManageEstimates: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canManageEstimatesAttributes),\n            canManageFileStorage: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canManageFileStorageAttributes),\n            canManageProducts: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canManageProductsAttributes),\n            canManageProjects: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canManageProjectsAttributes),\n            canManageQuotes: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canManageQuotesAttributes),\n            canManageSchedulingReports: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canManageSchedulingReportsAttributes),\n            canViewAccessReports: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewAccessReportsAttributes),\n            canManageTasks: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canManageTasksAttributes),\n            canManageTimesheets: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canManageTimesheetsAttributes),\n            canViewBudgetFinancialReports: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewBudgetReportsAttributes),\n            canViewBudgetLabourHourReports: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewBudgetLabourHourReportsAttributes),\n            canViewBudgets: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewBudgetsAttributes),\n            canViewProgress: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewProgressAttributes),\n            canManageProgress: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canManageProgressAttributes),\n            canViewChargeupReports: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewChargeupReportsAttributes),\n            canViewCostFinancialReports: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewCostReportsAttributes),\n            canViewCostLabourHourReports: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewCostLabourHourReportsAttributes),\n            canViewFileStorage: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewFileStorageAttributes),\n            canViewProducts: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewProductsAttributes),\n            canViewProgressReports: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewProgressReportsAttributes),\n            canViewQuoteReports: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewQuoteReportsAttributes),\n            canViewQuotes: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewQuotesAttributes),\n            canViewSchedulingReports: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewSchedulingReportsAttributes),\n            canViewTasks: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewTasksAttributes),\n            canCreateHealthAndSafety: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canCreateHealthAndSafetyAttributes),\n            canManageHealthAndSafety: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canManageHealthAndSafetyAttributes),\n            canViewInvoices: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewInvoicesAttributes),\n            canManageInvoices: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canManageInvoicesAttributes),\n            canApproveInvoices: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canApproveInvoicesAttributes),\n            canViewPurchaseOrders: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewPurchaseOrdersAttributes),\n            canManagePurchaseOrders: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canManagePurchaseOrdersAttributes),\n            canApprovePurchaseOrders: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canApprovePurchaseOrdersAttributes),\n            canViewStagePayments: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewStagePaymentsAttributes),\n            canManageStagePayments: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canManageStagePaymentsAttributes),\n            canViewInvoicingReports: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewInvoicingReportsAttributes)\n          }, permissionsValidator, permissionsValidationMap);\n        }\n      }), null, \"getPermissionsChangeset\", null));\n      _defineProperty(this, \"getUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (id) {\n          try {\n            const user = yield this.store.findRecord('user', id);\n\n            // fetch user's attributes\n            // TODO this should be possible with an includes but our API doesn't work properly\n            yield Promise.all([this.store.simpleQuery('user-entity-attribute', {\n              user: id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-project-attribute', {\n              user: id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-worker-attribute', {\n              user: id,\n              entity: this.sessionData.entity.id\n            })]);\n            return user;\n          } catch (_) {\n            this.notifications.error(this.intl.t('shared.notification.Something went wrong finding the user'));\n            this.router.transitionTo(`${this.basePath}.users`);\n          }\n        }\n      }), null, \"getUser\", null));\n    }\n    model({\n      user_id: id\n    }) {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project\n      } = this.modelFor(projectRoute);\n      this.getUser.perform(id);\n      this.getPermissionsChangeset.perform(this.getUser, project);\n      return {\n        project,\n        basePath: this.basePath,\n        user: this.getUser,\n        permissionsChangeset: this.getPermissionsChangeset\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/people/workers/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.workerAttributes = _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const workerAttributes = _exports.workerAttributes = ['canViewProjects'];\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.projects.project.people');\n      _defineProperty(this, \"getWorkers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project) {\n          yield project.last;\n          const filter = {\n            and: [{\n              field: 'entity',\n              op: 'EQ',\n              value: this.sessionData.entity.id\n            }]\n          };\n          const workers = yield this.store.query('worker', {\n            filter,\n            include: 'projectAttributes',\n            sort: 'firstName'\n          });\n          return workers.reduce((workers, worker) => {\n            const hasProject = worker.includesClaimsAboutProject(project.last.value.id, ...workerAttributes);\n            if (hasProject) workers.projectWorkers.push(worker);\n            // only add active workers to unassigned list\n            else if (worker.isActive) workers.unassignedWorkers.push(worker);\n            return workers;\n          }, {\n            unassignedWorkers: [],\n            projectWorkers: []\n          });\n        }\n      }), null, \"getWorkers\", null));\n    }\n    setupController(controller) {\n      super.setupController(...arguments);\n      controller.searchString = '';\n    }\n    model() {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project\n      } = this.modelFor(projectRoute);\n      this.getWorkers.perform(project);\n      return {\n        project,\n        workers: this.getWorkers,\n        basePath: this.basePath\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/people/workers/worker\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"ember-changeset\"], function (_exports, _asyncArrowRuntime, _route, _service, _emberChangeset) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.canViewTaskAttributes = _exports.canCreateHealthAndSafetyAttributes = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"ember-changeset\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const canCreateHealthAndSafetyAttributes = _exports.canCreateHealthAndSafetyAttributes = ['canCreateHealthAndSafety'];\n  const canViewTaskAttributes = _exports.canViewTaskAttributes = ['canViewTasks'];\n  const permissionsValidator = ({\n    key,\n    newValue: _newValue,\n    oldValue: _oldValue,\n    changes: _changes,\n    content: _content\n  }) => {\n    switch (key) {\n      case 'canCreateHealthAndSafety':\n        return true;\n      default:\n        break;\n    }\n  };\n  const permissionsValidationMap = {\n    canCreateHealthAndSafety: () => null\n  };\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.projects.project.people');\n      _defineProperty(this, \"getWorker\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (id) {\n          try {\n            const worker = yield this.store.findRecord('worker', id);\n\n            // fetch user's attributes\n            // TODO this should be possible with an includes but our API doesn't work properly\n            yield Promise.all([this.store.simpleQuery('worker-entity-attribute', {\n              worker: id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('worker-project-attribute', {\n              worker: id,\n              entity: this.sessionData.entity.id\n            })]);\n            return worker;\n          } catch (_) {\n            this.notifications.error(this.intl.t('shared.notification.Something went wrong finding the worker'));\n            this.router.transitionTo(`${this.basePath}.workers`);\n          }\n        }\n      }), null, \"getWorker\", null));\n      _defineProperty(this, \"getPermissionsChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (worker, project) {\n          yield worker.last;\n          yield project.last;\n          return (0, _emberChangeset.Changeset)({\n            canCreateHealthAndSafety: worker.last.value.includesClaimsAboutProject(project.last.value.id, ...canCreateHealthAndSafetyAttributes),\n            canViewTasks: worker.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewTaskAttributes)\n          }, permissionsValidator, permissionsValidationMap);\n        }\n      }), null, \"getPermissionsChangeset\", null));\n    }\n    model({\n      worker_id: id\n    }) {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project\n      } = this.modelFor(projectRoute);\n      this.getWorker.perform(id);\n      this.getPermissionsChangeset.perform(this.getWorker, project);\n      return {\n        project,\n        basePath: this.basePath,\n        worker: this.getWorker,\n        permissionsChangeset: this.getPermissionsChangeset\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/prices\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  class _default extends _route.default {}\n  _exports.default = _default;\n});","define(\"portal/routes/entity/builda-price/projects/project/products\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _defineProperty(this, \"queryParams\", {\n        pageSize: {\n          refreshModel: true\n        },\n        pageIndex: {\n          refreshModel: true\n        },\n        sortBy: {\n          refreshModel: true\n        },\n        sortDirection: {\n          refreshModel: true\n        },\n        searchTerm: {\n          refreshModel: true\n        },\n        supplier: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"pageSizes\", [25, 50, 100, 500, 1000]);\n      _defineProperty(this, \"getProducts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project, pageSize, pageIndex, sortBy, sortDirection, supplier, searchTerm) {\n          yield project.last;\n          const filters = {\n            and: [{\n              field: 'project',\n              operator: 'EQ',\n              value: project.last.value.id\n            }, {\n              field: 'entity',\n              operator: 'EQ',\n              value: project.last.value.belongsTo('entity').id()\n            }],\n            or: []\n          };\n          if (supplier?.length) filters.and.push({\n            field: 'supplierName',\n            operator: 'EQ',\n            value: supplier\n          });\n          if (searchTerm?.length) {\n            filters.or.push({\n              field: 'description',\n              operator: 'ILIKE',\n              value: searchTerm\n            });\n            filters.or.push({\n              field: 'sku',\n              operator: 'ILIKE',\n              value: searchTerm\n            });\n          }\n          let orderBy;\n          switch (sortBy) {\n            case 'Product':\n              orderBy = 'description';\n              break;\n            case 'Supplier':\n              orderBy = 'supplierName';\n              break;\n            case 'SKU':\n              orderBy = 'sku';\n              break;\n            case 'Unit':\n              orderBy = 'unit';\n              break;\n            case 'Unit price':\n              orderBy = 'unitPrice';\n              break;\n            default:\n              break;\n          }\n          const projectProducts = yield this.store.query('project-product', {\n            filter: filters,\n            orderBy: orderBy || 'dateCreated',\n            orderByDirection: sortDirection || 'desc',\n            pageSize,\n            page: pageIndex\n          });\n          return projectProducts;\n        }\n      }), null, \"getProducts\", null));\n    }\n    model({\n      pageSize = this.pageSizes[0],\n      pageIndex = 1,\n      sortBy = 'dateCreated',\n      sortDirection = 'desc',\n      supplier,\n      searchTerm\n    }) {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project\n      } = this.modelFor(projectRoute);\n      this.getProducts.perform(project, Number(pageSize), Number(pageIndex), sortBy, sortDirection, supplier, searchTerm);\n      return {\n        project,\n        products: this.getProducts,\n        pageSize: Number(pageSize),\n        pageIndex: Number(pageIndex),\n        sortBy,\n        sortDirection,\n        searchTerm,\n        pageSizes: this.pageSizes,\n        supplier\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/progress\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/object\", \"@ember/routing/route\", \"@ember/service\", \"@glimmer/tracking\", \"portal/helpers/chunk-callback\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _object, _route, _service, _tracking, _chunkCallback, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.TaskContainer = void 0;\n  var _dec, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _class3, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/object\",0,\"@ember/routing/route\",0,\"@ember/object\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"portal/helpers/chunk-callback\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let TaskContainer = _exports.TaskContainer = (_dec = (0, _object.computed)('_progress', 'children.@each.isDirty'), _class = class TaskContainer {\n    currencyFormatter(value) {\n      return this.numberFormat.format(value, {\n        style: 'currency',\n        dashZero: false\n      });\n    }\n    get budgetTotal() {\n      return this.task.budget.total;\n    }\n    get budgetManHours() {\n      return this.task.budgetManHours;\n    }\n    get isComplete() {\n      if (this.children?.length) return this.children.every(child => child.isComplete);\n      if (this._isComplete != null) return this._isComplete;\n      return this.task.isComplete;\n    }\n    set isComplete(value) {\n      const isComplete = Boolean(value);\n      if (this.children?.length) {\n        this.children.forEach(child => {\n          child.isComplete = isComplete;\n        });\n      }\n      this._isComplete = isComplete;\n\n      // when something is complete is must be 100%\n      if (isComplete) this.progress = 1;\n    }\n    get isPartiallyComplete() {\n      if (!this.children?.length) return false;\n      if (this.isComplete) return false;\n      return this.children.some(child => child.isComplete || child.isPartiallyComplete);\n    }\n    get isDraft() {\n      if (this.task.draftProgressChange || this.isDirty) return true;\n      return false;\n    }\n    get manHoursActual() {\n      return this.progressDirect?.attributes?.actualManHours || 0;\n    }\n    get latestVersionForecastManHours() {\n      return this.task.progressDirect.forecastManHours || 0;\n    }\n    get latestVersionProgress() {\n      return this.progressDirect?.attributes?.progress || 0;\n    }\n    get currentDraftForecastManHours() {\n      return this.task.draftProgressChange?.forecastManHours || this.latestVersionForecastManHours;\n    }\n    get currentDraftProgress() {\n      return this.task.draftProgressChange?.progress || this.latestVersionProgress;\n    }\n    get isDifferentFromLastVersion() {\n      const diffMargin = 0.01; // 1%\n      return Math.abs(this.progress - this.latestVersionProgress) > diffMargin;\n    }\n    get isDirty() {\n      if (this.children?.length) return this.children.some(child => child.isDirty);\n      return this._progress != null;\n    }\n    set progress(value) {\n      const progress = Number(value);\n\n      // you can not have a complete task that is not 100%\n      if (progress !== 1) this.isComplete = false;\n      if (this.children?.length) {\n        this.children.forEach(child => {\n          child.progress = progress;\n        });\n        return;\n      }\n      (0, _object.set)(this, '_progress', progress);\n    }\n    get progress() {\n      if (this.children?.length) {\n        let childrenForecastManHours = 0;\n        this.children.forEach(child => {\n          childrenForecastManHours += child.progress * child.forecastManHours;\n        });\n        const childrenForecastedProgress = Math.min(childrenForecastManHours / this.forecastManHours || 0, 1);\n        if (childrenForecastedProgress !== 0) return childrenForecastedProgress;\n\n        // in this scenario we take the average percentage (there is no data to weight it on)\n        return this.children.reduce((totalProgress, child) => totalProgress += child.progress, 0) / this.children.length;\n      }\n      if (this._progress != null) return this._progress;\n      return this.currentDraftProgress;\n    }\n    get forecastManHours() {\n      if (this.children?.length) {\n        let childrenForecastManHours = 0;\n        this.children.forEach(child => {\n          childrenForecastManHours += child.forecastManHours;\n        });\n        if (childrenForecastManHours === Infinity) return 0;\n        return childrenForecastManHours;\n      }\n      let forecastManHours;\n      if (this.progress != null) {\n        // if we have a progress of 100% and no actual, the forecast is 0\n        if (this.progress === 1 && this.manHoursActual === 0) return 0;\n\n        // calculate the forecast from the progress and actual\n        forecastManHours = this.manHoursActual / this.progress || 0;\n\n        // if you don't have a forecast figure assume the budget is correct\n        if (!forecastManHours) forecastManHours = this.budgetManHours;\n      } else {\n        forecastManHours = Math.max(this.manHoursActual, this.currentDraftForecastManHours);\n      }\n      if (forecastManHours === Infinity) return 0;\n      return forecastManHours;\n    }\n    get hasMissingCosts() {\n      if (this.children?.length || !this.isDraft || !this.isComplete) {\n        return false;\n      }\n      const costTotal = this.costTotal?.attributes || {\n        materials: 0,\n        subcontractors: 0,\n        invoiceLabour: 0,\n        timesheetLabour: 0\n      };\n      const calculateVariance = (budget, cost) => {\n        if (cost === 0) {\n          return budget ? 1 : 0;\n        }\n        if (budget === 0) {\n          return 0;\n        }\n        return (cost - budget) / budget;\n      };\n      const calculateRemainingBudget = (budget, cost) => Math.max(budget - cost, 0);\n      const labourCost = costTotal.invoiceLabour + costTotal.timesheetLabour;\n      const labourVariance = calculateVariance(this.task.budgetLabour, labourCost);\n      const remainingLabourBudget = calculateRemainingBudget(this.task.budgetLabour, labourCost);\n      const materialsVariance = calculateVariance(this.task.budgetMaterials, costTotal.materials);\n      const remainingMaterialsBudget = calculateRemainingBudget(this.task.budgetMaterials, costTotal.materials);\n      const subcontractorsVariance = calculateVariance(this.task.budgetSubcontractors, costTotal.subcontractors);\n      const remainingSubcontractorsBudget = calculateRemainingBudget(this.task.budgetSubcontractors, costTotal.subcontractors);\n      const remainingSumsBudget = this.task.budgetSums;\n      const varianceMargin = -0.5;\n      let messages = [];\n      if (labourVariance <= varianceMargin) {\n        messages.push(`${this.currencyFormatter(remainingLabourBudget)} ${this.intl.t('common.labour')}`);\n      }\n      if (materialsVariance <= varianceMargin) {\n        messages.push(`${this.currencyFormatter(remainingMaterialsBudget)} ${this.intl.t('common.materials')}`);\n      }\n      if (subcontractorsVariance <= varianceMargin) {\n        messages.push(`${this.currencyFormatter(remainingSubcontractorsBudget)} ${this.intl.t('common.subcontractors')}`);\n      }\n      if (remainingSumsBudget) {\n        messages.push(`${this.currencyFormatter(remainingSumsBudget)} ${this.intl.t('common.sums')}`);\n      }\n      if (messages.length) {\n        const title = this.intl.t('entity.builda-price.projects.project.progress.theFollowingRemainingBudgetsWillNotBeIncludedInTheForecast') + ': ';\n        return title + messages.join(', ') + '.';\n      }\n      return false;\n    }\n    get hasChildrenMissingCosts() {\n      if (!this.children?.length) return false;\n      return this.children.some(child => child.hasMissingCosts || child.hasChildrenMissingCosts);\n    }\n    get hasProgressWithBudgetAndNoActual() {\n      if (this.children?.length) return false;\n      if (this.isComplete) return false;\n      const hasBudget = Boolean(this.budgetTotal);\n      const hasProgress = Boolean(this.progress);\n      const hasManHours = Boolean(this.manHoursActual);\n      if (hasBudget && hasProgress && !hasManHours) return this.intl.t('entity.builda-price.projects.project.progress.theProgressYouEnterHereWillShowDifferentlyInReportsBecauseThereAreNoTimesheetsForThisBudgetedTask');\n      return false;\n    }\n    get hasChildrenProgressWithBudgetAndNoActual() {\n      if (!this.children?.length) return false;\n      return this.children.some(child => child.hasProgressWithBudgetAndNoActual || child.hasChildrenProgressWithBudgetAndNoActual);\n    }\n    get hasVersionDiff() {\n      if (this.hasDiff) return false;\n      if (this.children?.length) return false;\n      if (!this.latestVersionProgress) return false;\n      const diffMargin = 0.01; // 1%\n      const versionProgress = this.task.currentProgressChange?.progress || 0;\n      if (Math.abs(versionProgress - this.latestVersionProgress) > diffMargin) {\n        const lastProgress = Math.round((this.task.currentProgressChange?.progress || 0) * 100);\n        const latestProgress = Math.round(this.latestVersionProgress * 100);\n        if (!lastProgress) return `${this.intl.t('entity.builda-price.projects.project.progress.theProgressHasBeenCalculatedFromYourBudgetAndTimesheetsAs')} ${latestProgress}%.`;\n        let sentences = [this.intl.t('entity.builda-price.projects.project.progress.thisProgressHasChangedFromWhatItWasPreviously')];\n        if (lastProgress === latestProgress) {\n          sentences.push(`${this.intl.t('entity.builda-price.projects.project.progress.The last saved progress was')} ${lastProgress}%.`);\n        } else {\n          sentences.push(this.intl.t('entity.builda-price.projects.project.progress.theLastSavedProgressWasLastprogressAndWithTheAdditionOfTimesheetsTheForecastedProgressIsNowLatestprogress', {\n            latestProgress,\n            lastProgress\n          }));\n        }\n        return sentences.join(' ');\n      }\n      return false;\n    }\n    get hasChildVersionDiff() {\n      if (!this.children?.length) return false;\n      return this.children.some(child => child.hasVersionDiff || child.hasChildVersionDiff);\n    }\n    get hasNoManHours() {\n      if (this.children?.length) return false;\n      return !this.manHoursActual;\n    }\n    get hasNoChildManHours() {\n      if (!this.children?.length) return false;\n      return this.children.every(child => child.hasNoManHours || child.hasNoChildManHours);\n    }\n    get hasChildDiff() {\n      if (!this.children?.length) return false;\n      return this.children.some(child => child.hasDiff || child.hasChildDiff);\n    }\n    get hasDiff() {\n      if (this.children?.length) return false;\n      if (!this.latestVersionProgress) return false;\n      const diffMargin = 0.01; // 1%\n      if (Math.abs(this.progress - this.latestVersionProgress) > diffMargin) {\n        const lastProgress = Math.round((this.task.currentProgressChange?.progress || 0) * 100);\n        const latestProgress = Math.round(this.latestVersionProgress * 100);\n        if (!lastProgress) return `${this.intl.t('entity.builda-price.projects.project.progress.theProgressCalculatedUsingYourBudgetAndTimesheetsWas')} ${latestProgress}%.`;\n        let sentences = [this.intl.t('entity.builda-price.projects.project.progress.thisProgressHasChangedFromWhatItWasPreviously')];\n        if (lastProgress === latestProgress) {\n          sentences.push(`${this.intl.t('entity.builda-price.projects.project.progress.The last saved progress was')} ${lastProgress}%.`);\n        } else {\n          sentences.push(this.intl.t('entity.builda-price.projects.project.progress.theLastSavedProgressWasLastprogressAndWithTheAdditionOfTimesheetsTheForecastedProgressIsNowLatestprogress', {\n            latestProgress,\n            lastProgress\n          }));\n        }\n        return sentences.join(' ');\n      }\n      return false;\n    }\n    constructor(intl, numberFormat, task, isDirect, costTotals, progressDirects) {\n      _defineProperty(this, \"task\", void 0);\n      _defineProperty(this, \"intl\", void 0);\n      _initializerDefineProperty(this, \"numberFormat\", _descriptor, this);\n      _initializerDefineProperty(this, \"children\", _descriptor2, this);\n      _initializerDefineProperty(this, \"expanded\", _descriptor3, this);\n      _initializerDefineProperty(this, \"isDirect\", _descriptor4, this);\n      _initializerDefineProperty(this, \"costTotal\", _descriptor5, this);\n      _initializerDefineProperty(this, \"progressDirect\", _descriptor6, this);\n      _initializerDefineProperty(this, \"_isComplete\", _descriptor7, this);\n      _initializerDefineProperty(this, \"_progress\", _descriptor8, this);\n      this.task = task;\n      this.isDirect = isDirect;\n      this.numberFormat = numberFormat;\n      this.intl = intl;\n      this.costTotal = costTotals.find(item => item.id === task.id);\n      this.progressDirect = progressDirects.find(item => item.id === task.id);\n      if (task.activeChildren.length && !isDirect) {\n        (0, _object.set)(this, 'children', task.activeChildren.sortBy('path').map(c => new TaskContainer(intl, numberFormat, c, false, costTotals, progressDirects)));\n        this.children.unshift(new TaskContainer(intl, numberFormat, task, true, costTotals, progressDirects));\n      }\n    }\n    toJSON() {\n      return {\n        task: {\n          id: this.task.id,\n          project: this.task.belongsTo('project').id()\n        },\n        progress: this.progress,\n        forecastManHours: this.forecastManHours,\n        actualManHours: this.manHoursActual,\n        children: this.children?.filter(t => t.task.canManageTaskProgress)\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"numberFormat\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"children\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"expanded\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"isDirect\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"costTotal\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"progressDirect\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"_isComplete\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"isDirty\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"isDirty\"), _class.prototype), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"_progress\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _class);\n  let _class2 = _exports.default = (_class3 = class _class3 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor9, this);\n      _initializerDefineProperty(this, \"numberFormat\", _descriptor0, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor1, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor10, this);\n      _initializerDefineProperty(this, \"store\", _descriptor11, this);\n      _defineProperty(this, \"getProgressList\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project) {\n          yield project.last;\n          const actions = [];\n          actions.push(project.last.value.loadBudget());\n          const draftProgressChangeSetId = project.last.value.draftProgressChangeSet.get('id');\n          if (draftProgressChangeSetId) {\n            actions.push(this.store.simpleQuery('progress-change', {\n              changeSet: draftProgressChangeSetId\n            }));\n          }\n          const progressVersionValueId = project.last.value.currentProgressVersion.get('id');\n          if (progressVersionValueId) {\n            actions.push(this.store.simpleQuery('progress-version-value', {\n              version: progressVersionValueId\n            }));\n          }\n          const tasks = yield this.store.simpleQuery('task', {\n            project: project.last.value.id,\n            status: {\n              $in: ['ACTIVE', 'DRAFT_CREATED']\n            }\n          });\n          const taskIds = tasks.map(i => i.id);\n          let costTotals = [];\n          let progressDirects = [];\n          if (taskIds) {\n            [costTotals, progressDirects] = yield Promise.all([(0, _chunkCallback.default)(taskIds, _environment.default.chunkCallbackSize, ids => {\n              return this.buildaPrice.taskCostTotals({\n                filter: {\n                  simple: {\n                    _id: {\n                      $in: ids\n                    }\n                  }\n                }\n              }).then(res => res.data);\n            }).then(results => results.flat()), (0, _chunkCallback.default)(taskIds, _environment.default.chunkCallbackSize, ids => {\n              return this.buildaPrice.taskProgressDirects({\n                filter: {\n                  simple: {\n                    _id: {\n                      $in: ids\n                    }\n                  }\n                }\n              }).then(res => res.data);\n            }).then(results => results.flat())]);\n          }\n          return (tasks || []).filter(task => !task.belongsTo('parent').value()).sortBy('path').map(task => new TaskContainer(this.intl, this.numberFormat, task, false, costTotals, progressDirects));\n        }\n      }), null, \"getProgressList\", null));\n    }\n    model() {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project\n      } = this.modelFor(projectRoute);\n      this.getProgressList.perform(project);\n      return {\n        progressList: this.getProgressList,\n        project\n      };\n    }\n  }, _descriptor9 = _applyDecoratedDescriptor(_class3.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class3.prototype, \"numberFormat\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class3.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class3.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class3.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class3);\n});","define(\"portal/routes/entity/builda-price/projects/project/settings\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/object\", \"ember-changeset\", \"@ember/service\", \"moment\", \"portal/utils/email-validator\"], function (_exports, _asyncArrowRuntime, _route, _object, _emberChangeset, _service, _moment, _emailValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/object\",0,\"ember-changeset\",0,\"@ember/service\",0,\"moment\",0,\"portal/utils/email-validator\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"xeroIntegration\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor6, this);\n      _initializerDefineProperty(this, \"accountingPlatform\", _descriptor7, this);\n      _defineProperty(this, \"projectClientPermissions\", ['hasClientRole']);\n      _defineProperty(this, \"loadProjectProfitMargin\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project) {\n          yield project.last;\n          const projectRecord = project.last.value;\n          if (!this.newFeatureFlags.includesFeatureFlags(projectRecord, 'canManageProfitMargin')) {\n            return;\n          }\n          yield projectRecord.loadProfitMargins();\n          const currentProfitMargin = yield projectRecord.profitMargin;\n          if (!currentProfitMargin) {\n            const entity = yield projectRecord.entity;\n            projectRecord.profitMargin = this.store.createRecord('profit-margin', {\n              entity: entity\n            });\n          }\n        }\n      }), null, \"loadProjectProfitMargin\", null));\n      _defineProperty(this, \"createProjectChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project, profitMargin) {\n          yield project.last;\n          yield profitMargin.last;\n          return (0, _emberChangeset.Changeset)(project.last.value, this.projectValidator.bind(this));\n        }\n      }), null, \"createProjectChangeset\", null));\n      _defineProperty(this, \"createProfitMarginChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project, profitMargin) {\n          yield project.last;\n          if (!this.newFeatureFlags.includesFeatureFlags(project.last.value, 'canManageProfitMargin')) return;\n          yield profitMargin.last;\n          return (0, _emberChangeset.Changeset)(project.last.value.belongsTo('profitMargin').value(), this.profitMarginValidator.bind(this));\n        }\n      }), null, \"createProfitMarginChangeset\", null));\n      _defineProperty(this, \"loadGlAccounts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const accounts = yield this.accountingPlatform.loadActivePlatformGlAccounts.perform();\n          return accounts?.toArray();\n        }\n      }), null, \"loadGlAccounts\", null));\n      _defineProperty(this, \"loadXeroTrackingOptions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const trackingOptions = yield this.store.simpleQuery('xero-tracking-option', {\n            entity: this.sessionData.entity.id,\n            status: 'ACTIVE'\n          }, {\n            reload: true\n          });\n          return trackingOptions.sortBy('trackingOptionName');\n        }\n      }), null, \"loadXeroTrackingOptions\", null));\n    }\n    projectValidator({\n      key,\n      newValue,\n      content,\n      changes\n    }) {\n      if (key === 'name') return newValue.length > 3 || this.intl.t('validation.Please provide a name');\n      if (key === 'status') return Boolean(newValue) || this.intl.t('validation.Please provide a status');\n      if (key === 'contactEmail') return !newValue.length || (0, _emailValidator.default)(newValue) || this.intl.t('validation.Email');\n      if (key === 'startDate') {\n        const startDate = newValue || content.startDate;\n        if (!startDate) return this.intl.t('validation.Start date');\n        const completionDate = changes.completionDate || content.completionDate;\n        if (!completionDate) return true;\n        return (0, _moment.default)(newValue).isSameOrBefore(completionDate) || this.intl.t('validation.startDateMustBeEarlierThanTheCompletionDate');\n      }\n      if (key === 'completionDate') {\n        // completionDate is not required\n        if (!newValue) return true;\n        const startDate = changes.startDate || content.startDate;\n        if (!startDate) return true;\n        return (0, _moment.default)(newValue).isSameOrAfter(startDate) || this.intl.t('validation.completionDateMustBeAfterTheStartDate');\n      }\n      if (key === 'rad') {\n        if (newValue > 500) return this.intl.t('entity.builda-price.projects.project.settings.pleaseProvideARadiusNoLargerThan500m');\n        if (newValue < 100) return this.intl.t('entity.builda-price.projects.project.settings.pleaseProvideARadiusNoSmallerThan100m');\n        return true;\n      }\n    }\n    profitMarginValidator({\n      key,\n      newValue,\n      oldValue,\n      changes,\n      content\n    }) {\n      if (key === 'profitType') {\n        return Boolean(newValue || oldValue) || this.intl.t('validation.profitType');\n      }\n\n      // check for the currently selected profit type\n      let profitType = changes.profitType || content.profitType;\n      const percentage = newValue || oldValue;\n      if (key !== 'profitType' && typeof percentage !== 'number') return true;\n      if (profitType === 'MARGIN') {\n        // null is valid\n        if (percentage === null) return true;\n        return percentage < 1 || this.intl.t('validation.Please input a value less than 100');\n      }\n      return true;\n    }\n    model() {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project\n      } = this.modelFor(projectRoute);\n      this.loadProjectProfitMargin.perform(project);\n      this.createProjectChangeset.perform(project, this.loadProjectProfitMargin);\n      this.createProfitMarginChangeset.perform(project, this.loadProjectProfitMargin);\n      this.loadGlAccounts.perform();\n      if (this.xeroIntegration.ready) {\n        this.loadXeroTrackingOptions.perform();\n      }\n      return {\n        project,\n        loadProjectProfitMargin: this.loadProjectProfitMargin,\n        projectChangeset: this.createProjectChangeset,\n        profitMarginChangeset: this.createProfitMarginChangeset,\n        glAccounts: this.loadGlAccounts,\n        xeroTrackingOptions: this.loadXeroTrackingOptions\n      };\n    }\n    setupController(controller) {\n      super.setupController(...arguments);\n      controller.clearAddressSuggestions();\n    }\n    willTransition() {\n      const profitMargin = this.currentModel.project.last.value?.safeBelongsToValue('profitMargin');\n      if (profitMargin?.isNew) {\n        // Detach the placeholder so it cannot later serialize with a null id.\n        this.currentModel.project.last.value.profitMargin = null;\n        profitMargin.destroyRecord();\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"xeroIntegration\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"accountingPlatform\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"willTransition\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"willTransition\"), _class2.prototype), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/stage-payments\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"@ember/object\"], function (_exports, _asyncArrowRuntime, _route, _service, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _defineProperty(this, \"queryParams\", {\n        pageSize: {\n          refreshModel: true\n        },\n        pageNumber: {\n          refreshModel: true\n        },\n        sortBy: {\n          refreshModel: true\n        },\n        status: {\n          refreshModel: true\n        },\n        sortDirection: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"pageSizes\", [25, 50, 75, 100, 125, 150, 200]);\n      _defineProperty(this, \"getStagePayments\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project, pageNumber, pageSize, _sortBy, sortDirection, status) {\n          yield project.last;\n          const sortMap = new Map([['Name', 'name'], ['Due date', 'dueDate'], ['Value', 'value'], ['Status', 'status'], ['dateCreated', 'dateCreated'], ['Stage number', 'stageNumber']]);\n          const filter = {\n            and: [{\n              field: 'project',\n              op: 'EQ',\n              value: project.last.value.id\n            }, {\n              field: 'entity',\n              op: 'EQ',\n              value: project.last.value.belongsTo('entity').id()\n            }]\n          };\n          if (status !== 'ALL') filter.and.push({\n            field: 'status',\n            op: 'EQ',\n            value: status\n          });\n          const sortBy = _sortBy && _sortBy.split(',').map(item => {\n            const normalizedKey = item.replace('-', '');\n            const value = sortMap.get(normalizedKey);\n            return item.includes('-') ? `-${value}` : value;\n          }).filter(Boolean).join(',');\n          const stagePayments = yield this.store.query('stage-payment', {\n            filter,\n            include: 'questions,tasks.task',\n            sort: Array.isArray(sortBy) ? sortBy.map(item => sortDirection === 'desc' ? `-${item}` : item).join(',') : sortDirection === 'desc' ? `-${sortBy}` : sortBy,\n            page: {\n              number: pageNumber || Number(1),\n              size: pageSize || this.pageSizes[0]\n            }\n          });\n          return stagePayments;\n        }\n      }), null, \"getStagePayments\", null));\n      _defineProperty(this, \"getProgressVersionValues\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project, stagePayments) {\n          yield project.last;\n          yield stagePayments.last;\n          const filter = {\n            and: [{\n              field: 'entity',\n              op: 'EQ',\n              value: project.last.value.belongsTo('entity').id()\n            }, {\n              field: 'version',\n              op: 'EQ',\n              value: project.last.value.belongsTo('currentProgressVersion').id()\n            }]\n          };\n          const progressVersionValues = yield this.store.query('progress-version-value', {\n            filter\n          });\n          return progressVersionValues;\n        }\n      }), null, \"getProgressVersionValues\", null));\n      _defineProperty(this, \"getStagePaymentsValues\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project) {\n          yield project.last;\n          const values = yield this.buildaPrice.stagePaymentsValues(project.last.value.id);\n          return values;\n        }\n      }), null, \"getStagePaymentsValues\", null));\n      _defineProperty(this, \"loadProjectStagePaymentOptions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project) {\n          yield project.last;\n          yield project.last.value.loadStagePaymentOptions();\n          if (!project.last.value.belongsTo('stagePaymentOption').value()) {\n            project.last.value.stagePaymentOption = this.store.createRecord('stage-payment-option', {\n              entity: this.sessionData.entity\n            });\n          }\n        }\n      }), null, \"loadProjectStagePaymentOptions\", null));\n      _defineProperty(this, \"getStageRelatedInvoices\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (stagePayments) {\n          yield stagePayments.last;\n          const stages = stagePayments.last.value.mapBy('id');\n          if (!stages.length) return [];\n          const filter = {\n            and: [{\n              field: 'entity',\n              op: 'EQ',\n              value: this.sessionData.entity.id\n            }, {\n              field: 'stagePayment',\n              op: 'IN',\n              value: stages\n            }]\n          };\n          const invoices = yield this.store.query('invoice', {\n            filter,\n            sort: '-dateCreated'\n          }).then(res => res.toArray());\n          return invoices;\n        }\n      }), null, \"getStageRelatedInvoices\", null));\n    }\n    model({\n      pageSize = this.pageSizes[0],\n      pageNumber = 1,\n      sortBy,\n      sortDirection = 'asc',\n      status = 'ALL'\n    }) {\n      sortBy = [sortBy, 'Stage number'].filter(Boolean).join(',');\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project\n      } = this.modelFor(projectRoute);\n      this.getStagePayments.perform(project, pageNumber, pageSize, sortBy, sortDirection, status);\n      this.getProgressVersionValues.perform(project, this.getStagePayments);\n      this.getStagePaymentsValues.perform(project);\n      this.loadProjectStagePaymentOptions.perform(project);\n      this.getStageRelatedInvoices.perform(this.getStagePayments);\n      return {\n        stagePayments: this.getStagePayments,\n        project,\n        pageSize: Number(pageSize),\n        pageNumber: Number(pageNumber),\n        pageSizes: this.pageSizes,\n        progressVersionValues: this.getProgressVersionValues,\n        sortBy: sortBy,\n        sortDirection: sortDirection,\n        status: status,\n        stagePaymentsValues: this.getStagePaymentsValues,\n        stagePaymentOptions: this.loadProjectStagePaymentOptions,\n        invoices: this.getStageRelatedInvoices\n      };\n    }\n    setupController(controller, model) {\n      super.setupController(controller, model);\n      controller.selectedStages = new Set();\n    }\n    willTransition() {\n      const stagePaymentOption = this.currentModel.project.last.value?.belongsTo('stagePaymentOption').value();\n      if (stagePaymentOption?.isNew) stagePaymentOption.destroyRecord();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"willTransition\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"willTransition\"), _class2.prototype), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/tasks/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"@glimmer/tracking\"], function (_exports, _asyncArrowRuntime, _route, _service, _tracking) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.TaskContainer = void 0;\n  var _class, _descriptor, _descriptor2, _class3, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"@glimmer/tracking\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let TaskContainer = _exports.TaskContainer = (_class = class TaskContainer {\n    constructor(task) {\n      _defineProperty(this, \"task\", void 0);\n      _initializerDefineProperty(this, \"children\", _descriptor, this);\n      _initializerDefineProperty(this, \"expanded\", _descriptor2, this);\n      this.task = task;\n      if (task.activeChildren.length) {\n        this.children = task.activeChildren.sortBy('path').map(c => new TaskContainer(c));\n      }\n    }\n    toJSON() {\n      return {\n        task: {\n          id: this.task.id,\n          status: this.task.status,\n          path: this.task.path,\n          project: this.task.belongsTo('project').id(),\n          timesheetStatus: this.task.timesheetStatus,\n          parent: this.task.belongsTo('parent').id(),\n          entity: this.task.belongsTo('entity').id()\n        },\n        children: this.children?.toArray()\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"children\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"expanded\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _class);\n  function removeDeletedTasks(list) {\n    return list.reduce((list, c) => {\n      // this assumes that when you delete a parent all the children are deleted\n      // if this changes, this code will need to change as well\n      if (\n      // we are unloading records from store as part of delete process,\n      // only way we can check task is deleted to check there store for its presence by using peekRecord\n      !this.store.peekRecord('task', c.task.id) || ['DRAFT_DELETED', 'DELETED'].includes(c.task.status)) return list;\n      if (c.children) c.children = removeDeletedTasks.bind(this)(c.children);\n      return [...list, c];\n    }, []);\n  }\n\n  /**\n   * Copies each matching container's expanded state from the previous tree into a\n   * newly built tree. Tasks are matched recursively by ID, so the state survives\n   * refreshes even when the TaskContainer instances have been replaced.\n   *\n   * Example:\n   *   taskList:         [{ task: { id: '1' }, expanded: false }]\n   *   previousTaskList: [{ task: { id: '1' }, expanded: true }]\n   *   result:           [{ task: { id: '1' }, expanded: true }]\n   */\n  function mergeTreeState(taskList = [], previousTaskList = []) {\n    const previousContainers = new Map();\n    const addPreviousContainers = (containers = []) => {\n      containers.forEach(container => {\n        previousContainers.set(container.task.id, container);\n        if (container.children?.length) addPreviousContainers(container.children);\n      });\n    };\n    const applyPreviousState = (containers = []) => {\n      containers.forEach(container => {\n        const previousContainer = previousContainers.get(container.task.id);\n        if (previousContainer) container.expanded = previousContainer.expanded;\n        if (container.children?.length) applyPreviousState(container.children);\n      });\n    };\n    addPreviousContainers(previousTaskList);\n    applyPreviousState(taskList);\n    return taskList;\n  }\n  let _class2 = _exports.default = (_class3 = class _class3 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor3, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n      _defineProperty(this, \"getProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projectId) {\n          const project = yield this.store.findRecord('project', projectId, {\n            reload: true,\n            adapterOptions: {\n              fields: {\n                projects: '_meta.canDelete'\n              }\n            }\n          });\n          return project;\n        }\n      }), null, \"getProject\", null));\n      _defineProperty(this, \"getTaskList\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projectId) {\n          const tasks = yield this.store.query('task', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'project',\n                op: 'EQ',\n                value: projectId\n              }]\n            },\n            fields: {\n              tasks: '_meta.hasBudget,_meta.hasQuote,_meta.hasProducts,_meta.hasAttachments'\n            }\n          });\n          const parentTasks = tasks.toArray().filter(task => !task.belongsTo('parent').id() && ['ACTIVE', 'DRAFT_CREATED'].includes(task.status)).sortBy('path');\n          return parentTasks.map(task => new TaskContainer(task));\n        }\n      }), null, \"getTaskList\", null));\n      _defineProperty(this, \"lastProjectId\", null);\n    }\n    // this runs after the model\n    setupController(controller, model) {\n      super.setupController(...arguments);\n\n      // if we are not in the same project dump the task list state\n      if (this.lastProjectId !== model.projectId) {\n        controller.taskList = undefined;\n        this.lastProjectId = model.projectId;\n        return;\n      }\n      this.lastProjectId = model.projectId;\n      // This is intended to keep the state of the page when navigating back to it\n      // for example, when deleting a task, after the delete you are navigated back.\n      // You want to keep the state inside the TaskContainer classes (e.g \"expanded\")\n\n      const previousTaskList = controller._taskList || this.getTaskList.lastSuccessful?.value;\n      if (previousTaskList) {\n        // the task list might have changed since we last loaded, so merge UI\n        // state back by task id instead of relying on array positions.\n        const controllerTasks = removeDeletedTasks.bind(this)(previousTaskList);\n        model.taskList.last.then(() => {\n          controller.taskList = mergeTreeState(model.taskList.last.value, controllerTasks);\n        });\n      }\n    }\n    model() {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project_id: projectId\n      } = this.paramsFor(projectRoute);\n\n      // reload the project incase the financials have changed\n      this.getProject.perform(projectId);\n      this.getTaskList.perform(projectId);\n      return {\n        projectId,\n        project: this.getProject,\n        taskList: this.getTaskList,\n        refresh: () => this.refresh()\n      };\n    }\n  }, _descriptor3 = _applyDecoratedDescriptor(_class3.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class3.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class3.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class3);\n});","define(\"portal/routes/entity/builda-price/projects/project/tasks/task\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _defineProperty(this, \"getTask\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (taskId, project) {\n          yield project.last;\n          const [task] = yield Promise.all([this.store.findRecord('task', taskId, {\n            adapterOptions: {\n              fields: {\n                tasks: '_meta.taskHasDependencies,_meta.hasBudget,_meta.hasQuote,_meta.hasProducts,_meta.hasAttachments'\n              }\n            }\n          }),\n          // we need to load all the parent tasks for the breadcrumbs\n          // we need to load all the children tasks for the budget and quote\n          project.last.value.reloadTasks()]);\n          return task;\n        }\n      }), null, \"getTask\", null));\n    }\n    model({\n      task_id: taskId\n    }) {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project\n      } = this.modelFor(projectRoute);\n      this.getTask.perform(taskId, project);\n      return {\n        task: this.getTask\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/tasks/task/documents\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _defineProperty(this, \"getAttachments\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (task) {\n          yield task.last;\n\n          // if you can manage the files for this task use the task relationship\n          // this way the front end will update when adding new attachments\n          if (this.newFeatureFlags.includesFeatureFlags(task.last.value, 'canManageFileStorage')) {\n            yield task.last.value.loadAttachments();\n            return task.last.value.myAttachments;\n          }\n\n          // we cant use the task relationship because it is not filtered by ac, make the request manually\n          const filter = {\n            and: [{\n              field: 'task',\n              op: 'EQ',\n              value: task.last.value.id\n            }]\n          };\n          const attachments = yield this.store.query('link-attachment-to-task', {\n            filter,\n            include: 'attachment',\n            sort: 'dateCreated'\n          }).then(r => r.map(a => a.belongsTo('attachment').value()));\n          return attachments;\n        }\n      }), null, \"getAttachments\", null));\n      _defineProperty(this, \"getUsers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (task) {\n          yield task.last;\n          if (!this.newFeatureFlags.canManageFileStorage(task.last.value) || !this.newFeatureFlags.includesFeatureFlags(task.last.value, 'canManageUsers')) return [];\n          const userAttributes = yield this.store.simpleQuery('user-entity-attribute', {\n            entity: this.sessionData.entity.id,\n            attribute: 'canViewEntity'\n          });\n          if (!userAttributes.length) return [];\n          const userIds = userAttributes.map(ua => ua.belongsTo('user').id());\n          const users = yield this.store.simpleQuery('user', {\n            _id: {\n              $in: userIds\n            }\n          }, {\n            include: 'entityAttributes'\n          });\n          return users;\n        }\n      }), null, \"getUsers\", null));\n    }\n    async model() {\n      const {\n        task\n      } = this.modelFor('entity.builda-price.projects.project.tasks.task');\n      this.getAttachments.perform(task);\n      this.getUsers.perform(task);\n      return {\n        task,\n        attachments: this.getAttachments,\n        users: this.getUsers\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/tasks/task/financials\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _defineProperty(this, \"loadBudget\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (task) {\n          yield task.last;\n          yield task.last.value.loadBudget();\n        }\n      }), null, \"loadBudget\", null));\n      _defineProperty(this, \"loadQuote\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (task) {\n          yield task.last;\n          yield task.last.value.loadQuote();\n        }\n      }), null, \"loadQuote\", null));\n      _defineProperty(this, \"loadProducts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (task) {\n          yield task.last;\n          yield task.last.value.loadProducts();\n        }\n      }), null, \"loadProducts\", null));\n      _defineProperty(this, \"loadProfitMargins\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (task) {\n          yield task.last;\n          if (!this.canManageProfitMargin) return;\n          yield task.last.value.loadProfitMargins();\n        }\n      }), null, \"loadProfitMargins\", null));\n    }\n    get canManageProfitMargin() {\n      return this.newFeatureFlags.includesFeatureFlags('canManageTasks');\n    }\n    model() {\n      const {\n        task\n      } = this.modelFor('entity.builda-price.projects.project.tasks.task');\n      this.loadBudget.perform(task);\n      this.loadQuote.perform(task);\n      this.loadProfitMargins.perform(task);\n      this.loadProducts.perform(task);\n      return {\n        task,\n        loadBudget: this.loadBudget,\n        loadQuote: this.loadQuote,\n        loadProfitMargins: this.loadProfitMargins\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/tasks/task/index\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n    }\n    async beforeModel() {\n      const {\n        task\n      } = this.modelFor('entity.builda-price.projects.project.tasks.task');\n      await task.last;\n      if (this.newFeatureFlags.includesSomeFeatureFlags(task.last.value, 'canUseTaskBudgets', 'canUseTaskQuotes')) {\n        this.router.transitionTo('entity.builda-price.projects.project.tasks.task.financials');\n      } else {\n        this.router.transitionTo('entity.builda-price.projects.project.tasks.task.settings');\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/tasks/task/people\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  class _default extends _route.default {\n    model() {\n      const {\n        task\n      } = this.modelFor('entity.builda-price.projects.project.tasks.task');\n      return {\n        task\n      };\n    }\n  }\n  _exports.default = _default;\n});","define(\"portal/routes/entity/builda-price/projects/project/tasks/task/people/clients/client\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"ember-changeset\"], function (_exports, _asyncArrowRuntime, _route, _service, _emberChangeset) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.canViewTasksAttributes = _exports.canViewSchedulingReportsAttributes = _exports.canViewQuotesAttributes = _exports.canViewQuoteReportsAttributes = _exports.canViewProgressReportsAttributes = _exports.canViewProgressAttributes = _exports.canViewInvoicingReportsAttributes = _exports.canViewFileStorageAttributes = _exports.canViewCostReportsAttributes = _exports.canViewCostLabourHourReportsAttributes = _exports.canViewClientReportsAttributes = _exports.canViewChargeupReportsAttributes = _exports.canViewBudgetsAttributes = _exports.canViewBudgetReportsAttributes = _exports.canViewBudgetLabourHourReportsAttributes = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"ember-changeset\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const canViewTasksAttributes = _exports.canViewTasksAttributes = ['canViewTasks'];\n  const canViewBudgetsAttributes = _exports.canViewBudgetsAttributes = ['canViewTaskBudgets'];\n  const canViewQuotesAttributes = _exports.canViewQuotesAttributes = ['canViewTaskQuotes'];\n  const canViewProgressAttributes = _exports.canViewProgressAttributes = ['canViewTaskProgress'];\n  const canViewFileStorageAttributes = _exports.canViewFileStorageAttributes = ['canViewFileStorage'];\n  const canViewBudgetReportsAttributes = _exports.canViewBudgetReportsAttributes = ['canViewBudgetFinancialReports'];\n  const canViewBudgetLabourHourReportsAttributes = _exports.canViewBudgetLabourHourReportsAttributes = ['canViewBudgetLabourHourReports'];\n  const canViewChargeupReportsAttributes = _exports.canViewChargeupReportsAttributes = ['canViewChargeupReports'];\n  const canViewCostReportsAttributes = _exports.canViewCostReportsAttributes = ['canViewCostFinancialReports'];\n  const canViewCostLabourHourReportsAttributes = _exports.canViewCostLabourHourReportsAttributes = ['canViewCostLabourHourReports'];\n  const canViewProgressReportsAttributes = _exports.canViewProgressReportsAttributes = ['canViewProgressReports'];\n  const canViewQuoteReportsAttributes = _exports.canViewQuoteReportsAttributes = ['canViewQuoteReports'];\n  const canViewSchedulingReportsAttributes = _exports.canViewSchedulingReportsAttributes = ['canViewSchedulingReports'];\n  const canViewInvoicingReportsAttributes = _exports.canViewInvoicingReportsAttributes = ['canViewInvoicingReports'];\n  const canViewClientReportsAttributes = _exports.canViewClientReportsAttributes = ['canViewClientReports'];\n  const permissionsValidator = ({\n    key,\n    newValue: _newValue,\n    oldValue: _oldValue,\n    changes: _changes,\n    content: _content\n  }) => {\n    switch (key) {\n      case 'canViewBudgetFinancialReports':\n        return true;\n      case 'canViewBudgetLabourHourReports':\n        return true;\n      case 'canViewBudgets':\n        return true;\n      case 'canViewChargeupReports':\n        return true;\n      case 'canViewCostFinancialReports':\n        return true;\n      case 'canViewCostLabourHourReports':\n        return true;\n      case 'canViewFileStorage':\n        return true;\n      case 'canViewProgressReports':\n        return true;\n      case 'canViewQuoteReports':\n        return true;\n      case 'canViewQuotes':\n        return true;\n      case 'canViewProgress':\n        return true;\n      case 'canViewSchedulingReports':\n        return true;\n      case 'canViewTasks':\n        return true;\n      case 'canViewInvoicingReports':\n        return true;\n      case 'canViewClientReports':\n        return true;\n      default:\n        break;\n    }\n  };\n  const permissionsValidationMap = {\n    canManageBudgets: () => true,\n    canManageFileStorage: () => true,\n    canManageTasks: () => true,\n    canManageQuotes: () => true,\n    canManageSchedulingReports: () => true,\n    canManageTimesheets: () => true,\n    canViewBudgetFinancialReports: () => true,\n    canViewBudgetLabourHourReports: () => true,\n    canViewBudgets: () => true,\n    canViewChargeupReports: () => true,\n    canViewCostFinancialReports: () => true,\n    canViewCostLabourHourReports: () => true,\n    canViewFileStorage: () => true,\n    canViewProgressReports: () => true,\n    canViewQuoteReports: () => true,\n    canViewQuotes: () => true,\n    canViewProgress: () => true,\n    canViewSchedulingReports: () => true,\n    canViewTasks: () => true,\n    canViewInvoicingReports: () => true,\n    canViewClientReports: () => true\n  };\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.projects.project.tasks.task.people');\n      _defineProperty(this, \"getPermissionsChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (client, task) {\n          yield client.last;\n          yield task.last;\n          return (0, _emberChangeset.Changeset)({\n            canViewBudgets: client.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewBudgetsAttributes),\n            canViewQuotes: client.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewQuotesAttributes),\n            canViewProgress: client.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewProgressAttributes),\n            canViewFileStorage: client.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewFileStorageAttributes),\n            canViewBudgetFinancialReports: client.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewBudgetReportsAttributes),\n            canViewBudgetLabourHourReports: client.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewBudgetLabourHourReportsAttributes),\n            canViewChargeupReports: client.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewChargeupReportsAttributes),\n            canViewCostFinancialReports: client.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewCostReportsAttributes),\n            canViewCostLabourHourReports: client.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewCostLabourHourReportsAttributes),\n            canViewProgressReports: client.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewProgressReportsAttributes),\n            canViewQuoteReports: client.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewQuoteReportsAttributes),\n            canViewSchedulingReports: client.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewSchedulingReportsAttributes),\n            canViewTasks: client.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewTasksAttributes),\n            canViewInvoicingReports: client.last.value.includesClaimsAboutProject(task.last.value.id, ...canViewInvoicingReportsAttributes),\n            canViewClientReports: client.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewClientReportsAttributes)\n          }, permissionsValidator, permissionsValidationMap);\n        }\n      }), null, \"getPermissionsChangeset\", null));\n      _defineProperty(this, \"getClient\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (id) {\n          try {\n            const client = yield this.store.findRecord('user', id);\n\n            // fetch user's attributes\n            // TODO this should be possible with an includes but our API doesn't work properly\n            yield Promise.all([this.store.simpleQuery('user-entity-attribute', {\n              user: id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-project-attribute', {\n              user: id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-task-attribute', {\n              user: id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-worker-attribute', {\n              user: id,\n              entity: this.sessionData.entity.id\n            })]);\n            return client;\n          } catch (_) {\n            this.notifications.error(this.intl.t('shared.notification.Something went wrong finding the client'));\n            this.router.transitionTo(`${this.basePath}.clients`);\n          }\n        }\n      }), null, \"getClient\", null));\n    }\n    model({\n      client_id: id\n    }) {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project\n      } = this.modelFor(projectRoute);\n      const taskRoute = 'entity.builda-price.projects.project.tasks.task';\n      const {\n        task\n      } = this.modelFor(taskRoute);\n      this.getClient.perform(id);\n      this.getPermissionsChangeset.perform(this.getClient, task);\n      return {\n        project,\n        task,\n        basePath: this.basePath,\n        client: this.getClient,\n        permissionsChangeset: this.getPermissionsChangeset\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/tasks/task/people/clients/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _defineProperty(this, \"taskClientPermissions\", ['hasClientRole']);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.projects.project.tasks.task.people');\n      _defineProperty(this, \"getClients\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (task) {\n          yield task.last;\n          // find all the users that have access to view the entity and fetch them\n          // the access control will make sure the correct users are returned\n          const [userProjectAttributes, userTaskAttributes] = yield Promise.all([this.store.query('user-project-attribute', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'attribute',\n                op: 'EQ',\n                value: 'hasClientRole'\n              }, {\n                field: 'project',\n                op: 'EQ',\n                value: task.last.value.belongsTo('project').id()\n              }, {\n                field: 'user',\n                op: 'NE',\n                value: this.sessionData.user.id\n              }]\n            },\n            include: 'user'\n          }), this.store.query('user-task-attribute', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'task',\n                op: 'EQ',\n                value: task.last.value.id\n              }, {\n                field: 'user',\n                op: 'NE',\n                value: this.sessionData.user.id\n              }]\n            },\n            include: 'user'\n          }), this.store.query('user-entity-attribute', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'attribute',\n                op: 'EQ',\n                value: 'hasClientRole'\n              }, {\n                field: 'user',\n                op: 'NE',\n                value: this.sessionData.user.id\n              }]\n            },\n            include: 'user'\n          })]);\n          let users = userProjectAttributes.map(uea => uea.belongsTo('user').value());\n          return users.sortBy('firstName').reduce((group, client) => {\n            const hasTask = userTaskAttributes.toArray().some(upa => upa.belongsTo('user').id() === client.id);\n            (hasTask ? group.taskClients : group.unassignedClients).push(client);\n            return group;\n          }, {\n            taskClients: [],\n            unassignedClients: []\n          });\n        }\n      }), null, \"getClients\", null));\n    }\n    setupController(controller) {\n      super.setupController(...arguments);\n      controller.searchString = '';\n    }\n    model() {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project\n      } = this.modelFor(projectRoute);\n      const {\n        task\n      } = this.modelFor('entity.builda-price.projects.project.tasks.task');\n      this.getClients.perform(task);\n      return {\n        task,\n        project,\n        clients: this.getClients,\n        basePath: this.basePath\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/tasks/task/people/index\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n    }\n    async beforeModel() {\n      const {\n        task\n      } = this.modelFor('entity.builda-price.projects.project.tasks.task');\n      // we can default to this route if user has access to users\n      if (this.newFeatureFlags.includesFeatureFlags(task.value, 'canUseBuildaPrice', 'canUseUsers')) {\n        this.router.transitionTo('entity.builda-price.projects.project.tasks.task.people.users');\n      } else if (this.newFeatureFlags.includesFeatureFlags(task.value, 'canUseBuildaPrice', 'canUseWorkers')) {\n        this.router.transitionTo('entity.builda-price.projects.project.tasks.task.people.workers');\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/tasks/task/people/subcontractors/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.projects.project.tasks.task.people');\n      _defineProperty(this, \"getSubcontractors\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (task) {\n          yield task.last;\n          // find all the users that have access to view the entity and fetch them\n          // the access control will make sure the correct users are returned\n          const [userProjectAttributes, userTaskAttributes] = yield Promise.all([this.store.query('user-project-attribute', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'attribute',\n                op: 'EQ',\n                value: 'hasSubcontractorRole'\n              }, {\n                field: 'project',\n                op: 'EQ',\n                value: task.last.value.belongsTo('project').id()\n              }, {\n                field: 'user',\n                op: 'NE',\n                value: this.sessionData.user.id\n              }]\n            },\n            include: 'user'\n          }), this.store.query('user-task-attribute', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'task',\n                op: 'EQ',\n                value: task.last.value.id\n              }, {\n                field: 'user',\n                op: 'NE',\n                value: this.sessionData.user.id\n              }]\n            },\n            include: 'user'\n          }), this.store.query('user-entity-attribute', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'attribute',\n                op: 'EQ',\n                value: 'hasSubcontractorRole'\n              }, {\n                field: 'user',\n                op: 'NE',\n                value: this.sessionData.user.id\n              }]\n            },\n            include: 'user'\n          })]);\n          let users = userProjectAttributes.map(uea => uea.belongsTo('user').value());\n          return users.sortBy('firstName').reduce((group, user) => {\n            const hasTask = userTaskAttributes.toArray().some(upa => upa.belongsTo('user').id() === user.id);\n            (hasTask ? group.taskSubcontractors : group.unassignedSubcontractors).push(user);\n            return group;\n          }, {\n            taskSubcontractors: [],\n            unassignedSubcontractors: []\n          });\n        }\n      }), null, \"getSubcontractors\", null));\n    }\n    setupController(controller) {\n      super.setupController(...arguments);\n      controller.searchString = '';\n    }\n    model() {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project\n      } = this.modelFor(projectRoute);\n      const {\n        task\n      } = this.modelFor('entity.builda-price.projects.project.tasks.task');\n      this.getSubcontractors.perform(task);\n      return {\n        task,\n        project,\n        subcontractors: this.getSubcontractors,\n        basePath: this.basePath\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/tasks/task/people/subcontractors/subcontractor\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"ember-changeset\"], function (_exports, _asyncArrowRuntime, _route, _service, _emberChangeset) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.canViewTasksAttributes = _exports.canViewSchedulingReportsAttributes = _exports.canViewQuotesAttributes = _exports.canViewQuoteReportsAttributes = _exports.canViewProgressReportsAttributes = _exports.canViewProgressAttributes = _exports.canViewProductsAttributes = _exports.canViewInvoicingReportsAttributes = _exports.canViewFileStorageAttributes = _exports.canViewCostReportsAttributes = _exports.canViewCostLabourHourReportsAttributes = _exports.canViewChargeupReportsAttributes = _exports.canViewBudgetsAttributes = _exports.canViewBudgetReportsAttributes = _exports.canViewBudgetLabourHourReportsAttributes = _exports.canManageTimesheetsAttributes = _exports.canManageTasksAttributes = _exports.canManageSchedulingReportsAttributes = _exports.canManageQuotesAttributes = _exports.canManageProjectsAttributes = _exports.canManageProgressAttributes = _exports.canManageProductsAttributes = _exports.canManageFileStorageAttributes = _exports.canManageEstimatesAttributes = _exports.canManageBudgetsAttributes = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"ember-changeset\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const canViewTasksAttributes = _exports.canViewTasksAttributes = ['canViewTasks'];\n  const canManageBudgetsAttributes = _exports.canManageBudgetsAttributes = ['canManageTaskBudgets'];\n  const canManageFileStorageAttributes = _exports.canManageFileStorageAttributes = ['canManageFileStorage'];\n  const canManageProductsAttributes = _exports.canManageProductsAttributes = ['canManageProducts'];\n  const canManageTasksAttributes = _exports.canManageTasksAttributes = ['canManageTasks'];\n  const canManageQuotesAttributes = _exports.canManageQuotesAttributes = ['canManageTaskQuotes'];\n  const canManageProgressAttributes = _exports.canManageProgressAttributes = ['canManageTaskProgress'];\n  const canManageSchedulingReportsAttributes = _exports.canManageSchedulingReportsAttributes = ['canManageTaskScheduling', 'canManageProgressReports'];\n  const canManageTimesheetsAttributes = _exports.canManageTimesheetsAttributes = ['canManageTimesheets'];\n  const canViewBudgetReportsAttributes = _exports.canViewBudgetReportsAttributes = ['canViewBudgetFinancialReports'];\n  const canViewBudgetLabourHourReportsAttributes = _exports.canViewBudgetLabourHourReportsAttributes = ['canViewBudgetLabourHourReports'];\n  const canViewBudgetsAttributes = _exports.canViewBudgetsAttributes = ['canViewTaskBudgets'];\n  const canViewChargeupReportsAttributes = _exports.canViewChargeupReportsAttributes = ['canViewChargeupReports'];\n  const canViewCostReportsAttributes = _exports.canViewCostReportsAttributes = ['canViewCostFinancialReports'];\n  const canViewCostLabourHourReportsAttributes = _exports.canViewCostLabourHourReportsAttributes = ['canViewCostLabourHourReports'];\n  const canViewFileStorageAttributes = _exports.canViewFileStorageAttributes = ['canViewFileStorage'];\n  const canViewProductsAttributes = _exports.canViewProductsAttributes = ['canViewProducts'];\n  const canViewProgressReportsAttributes = _exports.canViewProgressReportsAttributes = ['canViewProgressReports'];\n  const canViewQuoteReportsAttributes = _exports.canViewQuoteReportsAttributes = ['canViewQuoteReports'];\n  const canViewQuotesAttributes = _exports.canViewQuotesAttributes = ['canViewTaskQuotes'];\n  const canViewProgressAttributes = _exports.canViewProgressAttributes = ['canViewTaskProgress'];\n  const canViewSchedulingReportsAttributes = _exports.canViewSchedulingReportsAttributes = ['canViewSchedulingReports'];\n  const canManageEstimatesAttributes = _exports.canManageEstimatesAttributes = ['canManageEstimates'];\n  const canManageProjectsAttributes = _exports.canManageProjectsAttributes = ['canManageProjects'];\n  const canViewInvoicingReportsAttributes = _exports.canViewInvoicingReportsAttributes = ['canViewInvoicingReports'];\n  const permissionsValidator = ({\n    key,\n    newValue: _newValue,\n    oldValue: _oldValue,\n    changes: _changes,\n    content: _content\n  }) => {\n    switch (key) {\n      case 'canManageBudgets':\n        return true;\n      case 'canManageFileStorage':\n        return true;\n      case 'canManageProducts':\n        return true;\n      case 'canManageTasks':\n        return true;\n      case 'canManageQuotes':\n        return true;\n      case 'canManageProgress':\n        return true;\n      case 'canManageScheduling':\n        return true;\n      case 'canManageTimesheets':\n        return true;\n      case 'canViewBudgetFinancialReports':\n        return true;\n      case 'canViewBudgetLabourHourReports':\n        return true;\n      case 'canViewBudgets':\n        return true;\n      case 'canViewChargeupReports':\n        return true;\n      case 'canViewCostFinancialReports':\n        return true;\n      case 'canViewCostLabourHourReports':\n        return true;\n      case 'canViewFileStorage':\n        return true;\n      case 'canViewProducts':\n        return true;\n      case 'canViewProgressReports':\n        return true;\n      case 'canViewQuoteReports':\n        return true;\n      case 'canViewQuotes':\n        return true;\n      case 'canViewProgress':\n        return true;\n      case 'canViewSchedulingReports':\n        return true;\n      case 'canViewTasks':\n        return true;\n      case 'canViewInvoicingReports':\n        return true;\n      default:\n        break;\n    }\n  };\n  const permissionsValidationMap = {\n    canManageBudgets: () => true,\n    canManageFileStorage: () => true,\n    canManageProducts: () => true,\n    canManageTasks: () => true,\n    canManageQuotes: () => true,\n    canManageProgress: () => true,\n    canManageSchedulingReports: () => true,\n    canManageTimesheets: () => true,\n    canViewBudgetFinancialReports: () => true,\n    canViewBudgetLabourHourReports: () => true,\n    canViewBudgets: () => true,\n    canViewChargeupReports: () => true,\n    canViewCostFinancialReports: () => true,\n    canViewCostLabourHourReports: () => true,\n    canViewFileStorage: () => true,\n    canViewProducts: () => true,\n    canViewProgressReports: () => true,\n    canViewQuoteReports: () => true,\n    canViewQuotes: () => true,\n    canViewProgress: () => true,\n    canViewSchedulingReports: () => true,\n    canViewTasks: () => true,\n    canViewInvoicingReports: () => null\n  };\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _defineProperty(this, \"getSubcontractor\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (id) {\n          try {\n            const subcontractor = yield this.store.findRecord('user', id);\n\n            // fetch user's attributes\n            // TODO this should be possible with an includes but our API doesn't work properly\n            yield Promise.all([this.store.simpleQuery('user-entity-attribute', {\n              user: id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-project-attribute', {\n              user: id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-task-attribute', {\n              user: id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-worker-attribute', {\n              user: id,\n              entity: this.sessionData.entity.id\n            })]);\n            return subcontractor;\n          } catch (_) {\n            this.notifications.error(this.intl.t('shared.notification.somethingWentWrongFindingTheSubcontractor'));\n            this.router.transitionTo(`${this.basePath}.subcontractors`);\n          }\n        }\n      }), null, \"getSubcontractor\", null));\n      _defineProperty(this, \"getPermissionsChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (subcontractor, task) {\n          yield subcontractor.last;\n          yield task.last;\n          return (0, _emberChangeset.Changeset)({\n            canManageBudgets: subcontractor.last.value.includesClaimsAboutTask(task.last.value.id, ...canManageBudgetsAttributes),\n            canManageFileStorage: subcontractor.last.value.includesClaimsAboutTask(task.last.value.id, ...canManageFileStorageAttributes),\n            canManageProducts: subcontractor.last.value.includesClaimsAboutTask(task.last.value.id, ...canManageProductsAttributes),\n            canManageTasks: subcontractor.last.value.includesClaimsAboutTask(task.last.value.id, ...canManageTasksAttributes),\n            canManageQuotes: subcontractor.last.value.includesClaimsAboutTask(task.last.value.id, ...canManageQuotesAttributes),\n            canManageProgress: subcontractor.last.value.includesClaimsAboutTask(task.last.value.id, ...canManageProgressAttributes),\n            canManageSchedulingReports: subcontractor.last.value.includesClaimsAboutTask(task.last.value.id, ...canManageSchedulingReportsAttributes),\n            canManageTimesheets: subcontractor.last.value.includesClaimsAboutTask(task.last.value.id, ...canManageTimesheetsAttributes),\n            canViewBudgetFinancialReports: subcontractor.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewBudgetReportsAttributes),\n            canViewBudgetLabourHourReports: subcontractor.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewBudgetLabourHourReportsAttributes),\n            canViewBudgets: subcontractor.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewBudgetsAttributes),\n            canViewChargeupReports: subcontractor.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewChargeupReportsAttributes),\n            canViewCostFinancialReports: subcontractor.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewCostReportsAttributes),\n            canViewCostLabourHourReports: subcontractor.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewCostLabourHourReportsAttributes),\n            canViewFileStorage: subcontractor.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewFileStorageAttributes),\n            canViewProducts: subcontractor.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewProductsAttributes),\n            canViewProgressReports: subcontractor.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewProgressReportsAttributes),\n            canViewQuoteReports: subcontractor.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewQuoteReportsAttributes),\n            canViewQuotes: subcontractor.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewQuotesAttributes),\n            canViewProgress: subcontractor.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewProgressAttributes),\n            canViewSchedulingReports: subcontractor.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewSchedulingReportsAttributes),\n            canViewTasks: subcontractor.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewTasksAttributes),\n            canViewInvoicingReports: subcontractor.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewInvoicingReportsAttributes)\n          }, permissionsValidator, permissionsValidationMap);\n        }\n      }), null, \"getPermissionsChangeset\", null));\n      _defineProperty(this, \"basePath\", 'entity.builda-price.projects.project.tasks.task.people');\n    }\n    model({\n      subcontractor_id: id\n    }) {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project\n      } = this.modelFor(projectRoute);\n      const taskRoute = 'entity.builda-price.projects.project.tasks.task';\n      const {\n        task\n      } = this.modelFor(taskRoute);\n      this.getSubcontractor.perform(id);\n      this.getPermissionsChangeset.perform(this.getSubcontractor, task);\n      return {\n        project,\n        task,\n        basePath: this.basePath,\n        subcontractor: this.getSubcontractor,\n        permissionsChangeset: this.getPermissionsChangeset\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/tasks/task/people/users/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.projects.project.tasks.task.people');\n      _defineProperty(this, \"getUsers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (task) {\n          yield task.last;\n          // find all the users that have access to view the entity and fetch them\n          // the access control will make sure the correct users are returned\n          const [userClientEntityAttributes, userProjectAttributes, userTaskAttributes, userSubcontractorAttributes] = yield Promise.all([this.store.query('user-entity-attribute', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'attribute',\n                op: 'EQ',\n                value: 'hasClientRole'\n              }, {\n                field: 'user',\n                op: 'NE',\n                value: this.sessionData.user.id\n              }]\n            },\n            include: 'user'\n          }), this.store.query('user-project-attribute', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'project',\n                op: 'EQ',\n                value: task.last.value.belongsTo('project').id()\n              }, {\n                field: 'attribute',\n                op: 'EQ',\n                value: 'canViewProjects'\n              }, {\n                field: 'user',\n                op: 'NE',\n                value: this.sessionData.user.id\n              }]\n            },\n            include: 'user'\n          }), this.store.query('user-task-attribute', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'task',\n                op: 'EQ',\n                value: task.last.value.id\n              }, {\n                field: 'user',\n                op: 'NE',\n                value: this.sessionData.user.id\n              }]\n            },\n            include: 'user'\n          }), this.store.query('user-entity-attribute', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'attribute',\n                op: 'EQ',\n                value: 'hasSubcontractorRole'\n              }, {\n                field: 'user',\n                op: 'NE',\n                value: this.sessionData.user.id\n              }]\n            },\n            include: 'user'\n          })]);\n          let allUsers = userProjectAttributes.map(uea => uea.belongsTo('user').value());\n          const clientIds = userClientEntityAttributes.map(uea => uea.belongsTo('user').id());\n          const subcontractorIds = userSubcontractorAttributes.map(uea => uea.belongsTo('user').id());\n\n          // filter clients from users list\n          const users = allUsers.filter(user => !clientIds.includes(user.id) && !subcontractorIds.includes(user.id));\n          return users.sortBy('firstName').reduce((group, user) => {\n            const hasTask = userTaskAttributes.toArray().some(upa => upa.belongsTo('user').id() === user.id);\n            (hasTask ? group.taskUsers : group.unassignedUsers).push(user);\n            return group;\n          }, {\n            taskUsers: [],\n            unassignedUsers: []\n          });\n        }\n      }), null, \"getUsers\", null));\n    }\n    setupController(controller) {\n      super.setupController(...arguments);\n      controller.searchString = '';\n    }\n    model() {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project\n      } = this.modelFor(projectRoute);\n      const {\n        task\n      } = this.modelFor('entity.builda-price.projects.project.tasks.task');\n      this.getUsers.perform(task);\n      return {\n        task,\n        project,\n        users: this.getUsers,\n        basePath: this.basePath\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/tasks/task/people/users/user\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"ember-changeset\"], function (_exports, _asyncArrowRuntime, _route, _service, _emberChangeset) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.canViewTasksAttributes = _exports.canViewSchedulingReportsAttributes = _exports.canViewQuotesAttributes = _exports.canViewQuoteReportsAttributes = _exports.canViewProgressReportsAttributes = _exports.canViewProgressAttributes = _exports.canViewProductsAttributes = _exports.canViewInvoicingReportsAttributes = _exports.canViewFileStorageAttributes = _exports.canViewCostReportsAttributes = _exports.canViewCostLabourHourReportsAttributes = _exports.canViewChargeupReportsAttributes = _exports.canViewBudgetsAttributes = _exports.canViewBudgetReportsAttributes = _exports.canViewBudgetLabourHourReportsAttributes = _exports.canManageTimesheetsAttributes = _exports.canManageTasksAttributes = _exports.canManageSchedulingReportsAttributes = _exports.canManageQuotesAttributes = _exports.canManageProgressAttributes = _exports.canManageProductsAttributes = _exports.canManageFileStorageAttributes = _exports.canManageBudgetsAttributes = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"ember-changeset\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const canViewTasksAttributes = _exports.canViewTasksAttributes = ['canViewTasks'];\n  const canManageBudgetsAttributes = _exports.canManageBudgetsAttributes = ['canManageTaskBudgets'];\n  const canManageFileStorageAttributes = _exports.canManageFileStorageAttributes = ['canManageFileStorage'];\n  const canManageProductsAttributes = _exports.canManageProductsAttributes = ['canManageProducts'];\n  const canManageTasksAttributes = _exports.canManageTasksAttributes = ['canManageTasks'];\n  const canManageQuotesAttributes = _exports.canManageQuotesAttributes = ['canManageTaskQuotes'];\n  const canManageProgressAttributes = _exports.canManageProgressAttributes = ['canManageTaskProgress'];\n  const canManageSchedulingReportsAttributes = _exports.canManageSchedulingReportsAttributes = ['canManageTaskScheduling', 'canManageProgressReports'];\n  const canManageTimesheetsAttributes = _exports.canManageTimesheetsAttributes = ['canManageTimesheets'];\n  const canViewBudgetReportsAttributes = _exports.canViewBudgetReportsAttributes = ['canViewBudgetFinancialReports'];\n  const canViewBudgetLabourHourReportsAttributes = _exports.canViewBudgetLabourHourReportsAttributes = ['canViewBudgetLabourHourReports'];\n  const canViewBudgetsAttributes = _exports.canViewBudgetsAttributes = ['canViewTaskBudgets'];\n  const canViewChargeupReportsAttributes = _exports.canViewChargeupReportsAttributes = ['canViewChargeupReports'];\n  const canViewCostReportsAttributes = _exports.canViewCostReportsAttributes = ['canViewCostFinancialReports'];\n  const canViewCostLabourHourReportsAttributes = _exports.canViewCostLabourHourReportsAttributes = ['canViewCostLabourHourReports'];\n  const canViewFileStorageAttributes = _exports.canViewFileStorageAttributes = ['canViewFileStorage'];\n  const canViewProductsAttributes = _exports.canViewProductsAttributes = ['canViewProducts'];\n  const canViewProgressReportsAttributes = _exports.canViewProgressReportsAttributes = ['canViewProgressReports'];\n  const canViewQuoteReportsAttributes = _exports.canViewQuoteReportsAttributes = ['canViewQuoteReports'];\n  const canViewQuotesAttributes = _exports.canViewQuotesAttributes = ['canViewTaskQuotes'];\n  const canViewProgressAttributes = _exports.canViewProgressAttributes = ['canViewTaskProgress'];\n  const canViewSchedulingReportsAttributes = _exports.canViewSchedulingReportsAttributes = ['canViewSchedulingReports'];\n  const canViewInvoicingReportsAttributes = _exports.canViewInvoicingReportsAttributes = ['canViewInvoicingReports'];\n  const permissionsValidator = ({\n    key,\n    newValue: _newValue,\n    oldValue: _oldValue,\n    changes: _changes,\n    content: _content\n  }) => {\n    switch (key) {\n      case 'canManageBudgets':\n        return true;\n      case 'canManageFileStorage':\n        return true;\n      case 'canManageProducts':\n        return true;\n      case 'canManageTasks':\n        return true;\n      case 'canManageQuotes':\n        return true;\n      case 'canManageProgress':\n        return true;\n      case 'canManageScheduling':\n        return true;\n      case 'canManageTimesheets':\n        return true;\n      case 'canViewBudgetFinancialReports':\n        return true;\n      case 'canViewBudgetLabourHourReports':\n        return true;\n      case 'canViewBudgets':\n        return true;\n      case 'canViewChargeupReports':\n        return true;\n      case 'canViewCostFinancialReports':\n        return true;\n      case 'canViewCostLabourHourReports':\n        return true;\n      case 'canViewFileStorage':\n        return true;\n      case 'canViewProducts':\n        return true;\n      case 'canViewProgressReports':\n        return true;\n      case 'canViewQuoteReports':\n        return true;\n      case 'canViewQuotes':\n        return true;\n      case 'canViewProgress':\n        return true;\n      case 'canViewSchedulingReports':\n        return true;\n      case 'canViewTasks':\n        return true;\n      case 'canViewInvoicingReports':\n        return true;\n      default:\n        break;\n    }\n  };\n  const permissionsValidationMap = {\n    canManageBudgets: () => true,\n    canManageFileStorage: () => true,\n    canManageProducts: () => true,\n    canManageTasks: () => true,\n    canManageProgress: () => true,\n    canManageQuotes: () => true,\n    canManageSchedulingReports: () => true,\n    canManageTimesheets: () => true,\n    canViewBudgetFinancialReports: () => true,\n    canViewBudgetLabourHourReports: () => true,\n    canViewBudgets: () => true,\n    canViewChargeupReports: () => true,\n    canViewCostFinancialReports: () => true,\n    canViewCostLabourHourReports: () => true,\n    canViewFileStorage: () => true,\n    canViewProducts: () => true,\n    canViewProgressReports: () => true,\n    canViewQuoteReports: () => true,\n    canViewQuotes: () => true,\n    canViewProgress: () => true,\n    canViewSchedulingReports: () => true,\n    canViewTasks: () => true,\n    canViewInvoicingReports: () => null\n  };\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.projects.project.tasks.task.people');\n      _defineProperty(this, \"getPermissionsChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (user, task) {\n          yield user.last;\n          yield task.last;\n          return (0, _emberChangeset.Changeset)({\n            canManageBudgets: user.last.value.includesClaimsAboutTask(task.last.value.id, ...canManageBudgetsAttributes),\n            canManageFileStorage: user.last.value.includesClaimsAboutTask(task.last.value.id, ...canManageFileStorageAttributes),\n            canManageProducts: user.last.value.includesClaimsAboutTask(task.last.value.id, ...canManageProductsAttributes),\n            canManageTasks: user.last.value.includesClaimsAboutTask(task.last.value.id, ...canManageTasksAttributes),\n            canManageQuotes: user.last.value.includesClaimsAboutTask(task.last.value.id, ...canManageQuotesAttributes),\n            canManageProgress: user.last.value.includesClaimsAboutTask(task.last.value.id, ...canManageProgressAttributes),\n            canManageSchedulingReports: user.last.value.includesClaimsAboutTask(task.last.value.id, ...canManageSchedulingReportsAttributes),\n            canManageTimesheets: user.last.value.includesClaimsAboutTask(task.last.value.id, ...canManageTimesheetsAttributes),\n            canViewBudgetFinancialReports: user.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewBudgetReportsAttributes),\n            canViewBudgetLabourHourReports: user.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewBudgetLabourHourReportsAttributes),\n            canViewBudgets: user.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewBudgetsAttributes),\n            canViewChargeupReports: user.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewChargeupReportsAttributes),\n            canViewCostFinancialReports: user.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewCostReportsAttributes),\n            canViewCostLabourHourReports: user.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewCostLabourHourReportsAttributes),\n            canViewFileStorage: user.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewFileStorageAttributes),\n            canViewProducts: user.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewProductsAttributes),\n            canViewProgressReports: user.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewProgressReportsAttributes),\n            canViewQuoteReports: user.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewQuoteReportsAttributes),\n            canViewQuotes: user.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewQuotesAttributes),\n            canViewProgress: user.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewProgressAttributes),\n            canViewSchedulingReports: user.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewSchedulingReportsAttributes),\n            canViewTasks: user.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewTasksAttributes),\n            canViewInvoicingReports: user.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewInvoicingReportsAttributes)\n          }, permissionsValidator, permissionsValidationMap);\n        }\n      }), null, \"getPermissionsChangeset\", null));\n      _defineProperty(this, \"getUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (id) {\n          try {\n            const user = yield this.store.findRecord('user', id);\n\n            // fetch user's attributes\n            // TODO this should be possible with an includes but our API doesn't work properly\n            yield Promise.all([this.store.simpleQuery('user-entity-attribute', {\n              user: id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-project-attribute', {\n              user: id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-task-attribute', {\n              user: id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-worker-attribute', {\n              user: id,\n              entity: this.sessionData.entity.id\n            })]);\n            return user;\n          } catch (_) {\n            this.notifications.error(this.intl.t('shared.notification.Something went wrong finding the user'));\n            this.router.transitionTo(`${this.basePath}.users`);\n          }\n        }\n      }), null, \"getUser\", null));\n    }\n    model({\n      user_id: id\n    }) {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project\n      } = this.modelFor(projectRoute);\n      const taskRoute = 'entity.builda-price.projects.project.tasks.task';\n      const {\n        task\n      } = this.modelFor(taskRoute);\n      this.getUser.perform(id);\n      this.getPermissionsChangeset.perform(this.getUser, task);\n      return {\n        project,\n        task,\n        basePath: this.basePath,\n        user: this.getUser,\n        permissionsChangeset: this.getPermissionsChangeset\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/tasks/task/people/workers/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.workerTaskAttributes = _exports.workerProjectAttributes = _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const workerTaskAttributes = _exports.workerTaskAttributes = ['canViewTasks'];\n  const workerProjectAttributes = _exports.workerProjectAttributes = ['canViewProjects'];\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.projects.project.tasks.task.people');\n      _defineProperty(this, \"getWorkers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (task) {\n          yield task.last;\n          const workerProjectAttributes = yield this.store.simpleQuery('worker-project-attribute', {\n            project: task.last.value.belongsTo('project').id(),\n            entity: this.sessionData.entity.id,\n            attribute: 'canViewProjects'\n          });\n          let workerIds = workerProjectAttributes.map(wpa => wpa.belongsTo('worker').id());\n          const workers = workerIds.length ? yield this.store.simpleQuery('worker', {\n            _id: {\n              $in: workerIds\n            }\n          }, {\n            include: 'taskAttributes'\n          }).then(ws => ws.sortBy('firstName')) : [];\n          return workers.reduce((workers, worker) => {\n            const hasTask = worker.includesClaimsAboutTask(task.last.value.id, ...workerTaskAttributes);\n            if (hasTask) workers.taskWorkers.push(worker);\n            // only add active workers to unassigned list\n            else if (worker.isActive) workers.unassignedWorkers.push(worker);\n            return workers;\n          }, {\n            unassignedWorkers: [],\n            taskWorkers: []\n          });\n        }\n      }), null, \"getWorkers\", null));\n    }\n    setupController(controller) {\n      super.setupController(...arguments);\n      controller.searchString = '';\n    }\n    model() {\n      const {\n        task\n      } = this.modelFor('entity.builda-price.projects.project.tasks.task');\n      this.getWorkers.perform(task);\n      return {\n        task,\n        workers: this.getWorkers,\n        basePath: this.basePath\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/tasks/task/people/workers/worker\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.projects.project.tasks.task.people');\n      _defineProperty(this, \"getWorker\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (id) {\n          try {\n            const worker = yield this.store.findRecord('worker', id);\n\n            // fetch workers's attributes\n            yield Promise.all([this.store.simpleQuery('worker-entity-attribute', {\n              worker: id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('worker-project-attribute', {\n              worker: id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('worker-task-attribute', {\n              worker: id,\n              entity: this.sessionData.entity.id\n            })]);\n            return worker;\n          } catch (_) {\n            this.notifications.error(this.intl.t('shared.notification.Something went wrong finding the worker'));\n            this.router.transitionTo(`${this.basePath}.workers`);\n          }\n        }\n      }), null, \"getWorker\", null));\n    }\n    model({\n      worker_id: id\n    }) {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project\n      } = this.modelFor(projectRoute);\n      const taskRoute = 'entity.builda-price.projects.project.tasks.task';\n      const {\n        task\n      } = this.modelFor(taskRoute);\n      this.getWorker.perform(id);\n      return {\n        project,\n        task,\n        basePath: this.basePath,\n        worker: this.getWorker\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/tasks/task/products\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _defineProperty(this, \"queryParams\", {\n        pageSize: {\n          refreshModel: true\n        },\n        pageIndex: {\n          refreshModel: true\n        },\n        sortBy: {\n          refreshModel: true\n        },\n        sortDirection: {\n          refreshModel: true\n        },\n        searchTerm: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"pageSizes\", [10, 25, 50, 100]);\n      _defineProperty(this, \"getProducts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (task, pageSize, pageIndex, sortBy, sortDirection, searchTerm) {\n          yield task.last;\n          const filters = {\n            and: [{\n              field: 'task',\n              operator: 'EQ',\n              value: task.last.value.id\n            }, {\n              field: 'entity',\n              operator: 'EQ',\n              value: task.last.value.belongsTo('entity').id()\n            }],\n            or: []\n          };\n          if (searchTerm?.length) {\n            filters.or.push({\n              field: 'description',\n              operator: 'ILIKE',\n              value: searchTerm\n            });\n            filters.or.push({\n              field: 'sku',\n              operator: 'ILIKE',\n              value: searchTerm\n            });\n          }\n          let orderBy;\n          switch (sortBy) {\n            case 'Product':\n              orderBy = 'description';\n              break;\n            case 'Supplier':\n              orderBy = 'supplierName';\n              break;\n            case 'SKU':\n              orderBy = 'sku';\n              break;\n            case 'Unit':\n              orderBy = 'unit';\n              break;\n            case 'Unit price':\n              orderBy = 'unitPrice';\n              break;\n            case 'Quantity':\n              orderBy = 'quantity';\n              break;\n            default:\n              break;\n          }\n          const taskProducts = yield this.store.query('task-product', {\n            filter: filters,\n            orderBy: orderBy || 'dateCreated',\n            orderByDirection: sortDirection || 'desc',\n            pageSize,\n            page: pageIndex\n          });\n          return taskProducts;\n        }\n      }), null, \"getProducts\", null));\n    }\n    model({\n      pageSize = this.pageSizes[0],\n      pageIndex = 1,\n      sortBy = 'dateCreated',\n      sortDirection = 'desc',\n      searchTerm\n    }) {\n      const {\n        task\n      } = this.modelFor('entity.builda-price.projects.project.tasks.task');\n      this.getProducts.perform(task, Number(pageSize), Number(pageIndex), sortBy, sortDirection, searchTerm);\n      return {\n        task,\n        products: this.getProducts,\n        pageSize: Number(pageSize),\n        pageIndex: Number(pageIndex),\n        sortBy,\n        sortDirection,\n        searchTerm,\n        pageSizes: this.pageSizes\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/tasks/task/settings\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/object\", \"@ember/service\", \"ember-changeset\"], function (_exports, _asyncArrowRuntime, _route, _object, _service, _emberChangeset) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/object\",0,\"@ember/service\",0,\"ember-changeset\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"accountingPlatform\", _descriptor5, this);\n      _defineProperty(this, \"loadTaskProfitMargin\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (task) {\n          yield task.last;\n          if (!this.newFeatureFlags.includesFeatureFlags(task.last.value, 'canManageProfitMargin')) return;\n          yield task.last.value.loadProfitMargins();\n          if (!task.last.value.belongsTo('profitMargin').value()) {\n            task.last.value.profitMargin = this.store.createRecord('profit-margin', {\n              entity: task.last.value.belongsTo('entity').value()\n            });\n          }\n        }\n      }), null, \"loadTaskProfitMargin\", null));\n      _defineProperty(this, \"createTaskChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (task, profitMargin) {\n          yield task.last;\n          yield profitMargin.last;\n          return (0, _emberChangeset.Changeset)(task.last.value, this.taskValidator.bind(this));\n        }\n      }), null, \"createTaskChangeset\", null));\n      _defineProperty(this, \"createProfitMarginChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (task, profitMargin) {\n          yield task.last;\n          if (!this.newFeatureFlags.includesFeatureFlags(task.last.value, 'canManageProfitMargin')) return;\n          yield profitMargin.last;\n          return (0, _emberChangeset.Changeset)(task.last.value.belongsTo('profitMargin').value(), this.profitMarginValidator.bind(this));\n        }\n      }), null, \"createProfitMarginChangeset\", null));\n      _defineProperty(this, \"loadGlAccounts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const accounts = yield this.accountingPlatform.loadActivePlatformGlAccounts.perform();\n          return accounts?.toArray();\n        }\n      }), null, \"loadGlAccounts\", null));\n    }\n    taskValidator({\n      key,\n      newValue\n    }) {\n      if (key === 'name') return newValue.length > 0 || this.intl.t('validation.Please provide a name');\n    }\n    profitMarginValidator({\n      key,\n      newValue,\n      oldValue,\n      changes,\n      content\n    }) {\n      if (key === 'profitType') {\n        return Boolean(newValue || oldValue) || this.intl.t('validation.profitType');\n      }\n\n      // check for the currently selected profit type\n      let profitType = changes.profitType || content.profitType;\n      const percentage = newValue || oldValue;\n      if (key !== 'profitType' && typeof percentage !== 'number') return true;\n      if (profitType === 'MARGIN') {\n        // null is valid\n        if (percentage === null) return true;\n        return percentage < 1 || this.intl.t('validation.Please input a value less than 100');\n      }\n      return true;\n    }\n    async model() {\n      const {\n        task\n      } = this.modelFor('entity.builda-price.projects.project.tasks.task');\n      this.loadTaskProfitMargin.perform(task);\n      this.createTaskChangeset.perform(task, this.loadTaskProfitMargin);\n      this.createProfitMarginChangeset.perform(task, this.loadTaskProfitMargin);\n      this.loadGlAccounts.perform();\n      return {\n        task,\n        loadTaskProfitMargin: this.loadTaskProfitMargin,\n        taskChangeset: this.createTaskChangeset,\n        profitMarginChangeset: this.createProfitMarginChangeset,\n        glAccounts: this.loadGlAccounts\n      };\n    }\n    willTransition() {\n      const profitMargin = this.currentModel.task.last.value?.safeBelongsToValue('profitMargin');\n      if (profitMargin?.isNew) {\n        // Detach the placeholder so it cannot later serialize with a null id.\n        this.currentModel.task.last.value.profitMargin = null;\n        profitMargin.destroyRecord();\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"accountingPlatform\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"willTransition\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"willTransition\"), _class2.prototype), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/company/forecast-breakdown\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n      _defineProperty(this, \"queryParams\", {\n        selectedDate: {\n          refreshModel: true\n        },\n        status: {\n          refreshModel: true\n        },\n        excludedProjectIds: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getForecastReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (selectedDate = new Date(), excludedProjectIds, status = 'OPEN') {\n          const filter = {\n            entity: this.sessionData.entity.id\n          };\n          if (status && status !== 'ALL') filter.status = status;\n          if (excludedProjectIds && excludedProjectIds.length) filter._id = {\n            $nin: excludedProjectIds\n          };\n          const linkToProject = this.newFeatureFlags.includesFeatureFlags('canUseProjectForecastReport');\n          const endDate = new Date(selectedDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const report = {\n            name: this.intl.t('entity.builda-price.reports.company.forecast-breakdown.Forecast report'),\n            dateRange: {\n              endDate\n            },\n            subjects: [{\n              index: 1,\n              width: 12,\n              elementType: 'TABLE',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Name')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Status')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast hours'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Avg hourly cost'),\n                  tooltip: this.intl.t('shared.reports.avgHourlyCostTooltip'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast labour'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast materials'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast subcontractors'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Sums'),\n                  tooltip: this.intl.t('shared.reports.forecastReportSumsTooltip'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast total'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }],\n                tfoot: [[{\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'FORECAST_MANHOURS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'WORKERS_AVG_COST',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  }\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'FORECAST_LABOUR',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'FORECAST_MATERIALS',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'FORECAST_SUBCONTRACTORS',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'BUDGET_SUMS',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'FORECAST_BUDGET',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }]]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'projects',\n                filter\n              },\n              metrics: [[{\n                metric: 'PROPERTY',\n                key: 'name',\n                linkTo: linkToProject ? {\n                  route: 'entity.builda-price.reports.projects.project.forecast-breakdown',\n                  modelKeys: ['_id'],\n                  queryParams: {\n                    selectedDate: {\n                      valueOverride: selectedDate\n                    }\n                  }\n                } : undefined\n              }, {\n                metric: 'PROPERTY',\n                key: 'status',\n                humanEnums: true\n              }, {\n                metric: 'FORECAST_MANHOURS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'WORKERS_AVG_COST',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'FORECAST_LABOUR',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'FORECAST_MATERIALS',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'FORECAST_SUBCONTRACTORS',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'BUDGET_SUMS',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'FORECAST_BUDGET',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }]]\n            }]\n          };\n          const loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getForecastReport\", null));\n      _defineProperty(this, \"getProjects\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const projects = yield this.store.simpleQuery('project', {\n            entity: this.sessionData.entity.id\n          });\n          return projects.sortBy('sortIndex');\n        }\n      }), null, \"getProjects\", null));\n    }\n    model({\n      selectedDate,\n      status = 'OPEN',\n      excludedProjectIds\n    }) {\n      this.getProjects.perform();\n      this.getForecastReport.perform(selectedDate, excludedProjectIds, status);\n      return {\n        forecastTable: this.getForecastReport,\n        projects: this.getProjects\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/company/invoicing\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.company.invoicing');\n      _defineProperty(this, \"queryParams\", {\n        selectedDate: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projectId) {\n          const project = yield this.store.findRecord('project', projectId);\n          return project;\n        }\n      }), null, \"getProject\", null));\n      _defineProperty(this, \"getInvoiceReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (selectedDate) {\n          const filter = {\n            entity: this.sessionData.entity.id,\n            status: {\n              $eq: 'OPEN'\n            }\n          };\n          const endDate = new Date(selectedDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const summaryMetricSubject = {\n            resourceName: 'entities',\n            filter: {\n              _id: this.sessionData.entity.id\n            }\n          };\n          const report = {\n            name: this.intl.t('entity.builda-price.reports.company.invoicing.Invoicing report'),\n            dateRange: {\n              endDate\n            },\n            subjects: [{\n              name: this.intl.t('common.Summary'),\n              index: 1,\n              width: 2,\n              height: 2,\n              elementType: 'TABLE',\n              borderStyle: 'BORDER',\n              axes: {},\n              groupType: 'GROUPED',\n              metricsSubject: summaryMetricSubject,\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('entity.builda-price.reports.company.invoicing.Total billable')\n              }, {\n                metric: 'INVOICEABLE_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('entity.builda-price.reports.company.invoicing.Total invoiced')\n              }, {\n                metric: 'INVOICED_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('entity.builda-price.reports.company.invoicing.Billable remaining')\n              }, {\n                metric: 'INVOICEABLE_TOTAL_REMAINING',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }]]\n            }, {\n              index: 2,\n              width: 2,\n              height: 2,\n              name: this.intl.t('entity.builda-price.reports.company.invoicing.Billable used'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  valueOverride: this.intl.t('entity.builda-price.reports.company.invoicing.Billable'),\n                  metric: 'TEXT'\n                }, {\n                  subject: summaryMetricSubject,\n                  metric: 'INVOICEABLE_TOTAL'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: summaryMetricSubject,\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('entity.builda-price.reports.company.invoicing.Invoiced')\n              }, {\n                metric: 'INVOICED_TOTAL'\n              }]]\n            }, {\n              name: this.intl.t('common.Projects'),\n              index: 3,\n              width: 12,\n              elementType: 'TABLE',\n              borderStyle: 'BORDER',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: 'Name'\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.company.invoicing.Total billable'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.company.invoicing.Billable to date'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.company.invoicing.Invoiced'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.company.invoicing.Billable remaining'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }],\n                tfoot: [[{\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'INVOICEABLE_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'INVOICEABLE_CURRENTLY_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'INVOICED_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'INVOICEABLE_TOTAL_REMAINING',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }]]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'projects',\n                filter\n              },\n              metrics: [[{\n                metric: 'PROPERTY',\n                key: 'name',\n                linkTo: {\n                  route: 'entity.builda-price.reports.projects.project.invoicing',\n                  modelKeys: ['_id'],\n                  queryParams: {\n                    selectedDate: {\n                      valueOverride: selectedDate\n                    }\n                  }\n                }\n              }, {\n                metric: 'INVOICEABLE_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'INVOICEABLE_CURRENTLY_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'INVOICED_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'INVOICEABLE_TOTAL_REMAINING',\n                classes: [{\n                  class: 'text-right'\n                }],\n                lowerLimit: 0\n              }]]\n            }]\n          };\n          const loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getInvoiceReport\", null));\n    }\n    model({\n      selectedDate\n    }) {\n      this.getInvoiceReport.perform(selectedDate);\n      return {\n        basePath: this.basePath,\n        invoiceTable: this.getInvoiceReport\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/company/labour-hours\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"@glimmer/tracking\"], function (_exports, _asyncArrowRuntime, _route, _service, _tracking) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"@glimmer/tracking\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"csvExportOptions\", _descriptor5, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.company.labour-hours');\n      _defineProperty(this, \"queryParams\", {\n        selectedDate: {\n          refreshModel: true\n        },\n        status: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getAdHocReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (selectedDate, status) {\n          const filter = {\n            entity: this.sessionData.entity.id\n          };\n          if (status !== 'ALL') filter.status = status;\n          const linkToProject = this.basePath?.includes('embed') ? false : this.newFeatureFlags.includesFeatureFlags('canUseProjectLabourHourReport');\n          const endDate = new Date(selectedDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const report = {\n            name: this.intl.t('shared.reports.Labour hours report'),\n            dateRange: {\n              endDate\n            },\n            subjects: [{\n              index: 1,\n              width: 2,\n              height: 2,\n              name: this.intl.t('shared.reports.Current position'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget')\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'BUDGET_MANHOURS'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'projects',\n                filter\n              },\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Actual')\n              }, {\n                metric: 'COST_MANHOURS'\n              }]]\n            }, {\n              index: 2,\n              width: 2,\n              height: 2,\n              name: this.intl.t('shared.reports.Forecast position'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget')\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'BUDGET_MANHOURS'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'projects',\n                filter\n              },\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Forecast')\n              }, {\n                subject: {\n                  resourceName: 'projects',\n                  filter\n                },\n                metric: 'FORECAST_MANHOURS_TOTAL'\n              }]]\n            }, {\n              index: 3,\n              width: 12,\n              elementType: 'TABLE',\n              borderStyle: 'BORDER',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Name')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.progress.Labour progress'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Actual'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Budget used'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast'),\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  tooltip: this.intl.t('shared.reports.Forecasted from progress')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast variance'),\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  tooltip: this.intl.t('shared.reports.forecastVarianceTooltip')\n                }],\n                tfoot: [[{\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'PROGRESS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'BUDGET_MANHOURS',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'COST_MANHOURS',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'BUDGET_MANHOURS_USED',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'FORECAST_MANHOURS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'VARIANCE_MANHOURS',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  showPositiveNegativeIndicator: true,\n                  upperLimit: 0,\n                  dashZero: true\n                }]]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'projects',\n                filter\n              },\n              metrics: [[{\n                metric: 'PROPERTY',\n                key: 'name',\n                linkTo: linkToProject ? {\n                  route: 'entity.builda-price.reports.projects.project.labour-hours',\n                  modelKeys: ['_id'],\n                  queryParams: {\n                    selectedDate: {\n                      valueOverride: selectedDate\n                    }\n                  }\n                } : undefined\n              }, {\n                metric: 'PROGRESS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'BUDGET_MANHOURS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'COST_MANHOURS',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'BUDGET_MANHOURS_USED',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'FORECAST_MANHOURS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'VARIANCE_MANHOURS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                showPositiveNegativeIndicator: true,\n                upperLimit: 0,\n                dashZero: true\n              }]]\n            }]\n          };\n          let loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getAdHocReport\", null));\n    }\n    model({\n      selectedDate,\n      status = 'OPEN'\n    }) {\n      this.getAdHocReport.perform(selectedDate, status);\n      return {\n        entity: this.sessionData.entity,\n        entityLevelReport: this.getAdHocReport,\n        basePath: this.basePath\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"csvExportOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/company/notes\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"moment\"], function (_exports, _asyncArrowRuntime, _route, _service, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"moment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.company');\n      _defineProperty(this, \"queryParams\", {\n        startDate: {\n          refreshModel: true\n        },\n        endDate: {\n          refreshModel: true\n        },\n        filterByDate: {\n          refreshModel: true\n        },\n        projectIds: {\n          refreshModel: true\n        },\n        workerIds: {\n          refreshModel: true\n        },\n        invoiceId: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getProjects\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          return this.store.simpleQuery('project', {\n            entity: this.sessionData.entity.id,\n            status: 'OPEN'\n          }, {\n            sort: 'sortIndex'\n          });\n        }\n      }), null, \"getProjects\", null));\n      _defineProperty(this, \"getWorkers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          return this.store.simpleQuery('worker', {\n            entity: this.sessionData.entity.id,\n            isActive: true\n          }, {\n            sort: 'firstName,lastName'\n          });\n        }\n      }), null, \"getWorkers\", null));\n      _defineProperty(this, \"getNoteReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (_startDate, _endDate, _projectIds, _workerIds, filterByDate, invoiceId) {\n          const projectIds = _projectIds?.split(',');\n          const workerIds = _workerIds?.split(',');\n          const startDate = new Date(_startDate);\n          const endDate = new Date(_endDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const linkToTimesheet = !this.basePath.includes('embed');\n          const filter = {\n            $and: [{\n              entityId: {\n                $eq: this.sessionData.entity.id\n              }\n            }]\n          };\n          if (invoiceId) {\n            filter.$and.push({\n              linkedInvoiceIds: {\n                $like: `%${invoiceId}%`\n              }\n            });\n          } else {\n            if (projectIds) {\n              filter.$and.push({\n                projectId: {\n                  $in: projectIds\n                }\n              });\n            }\n            if (workerIds) {\n              filter.$and.push({\n                workerId: {\n                  $in: workerIds\n                }\n              });\n            }\n            if (filterByDate) {\n              const dayEndDate = (0, _moment.default)(endDate).format('YYYY-MM-DD');\n              const dayStartDate = (0, _moment.default)(startDate).format('YYYY-MM-DD');\n              filter.$and.push({\n                date: {\n                  $lte: dayEndDate,\n                  $gte: dayStartDate\n                }\n              });\n            }\n          }\n          const noteReport = {\n            index: 1,\n            width: 12,\n            elementType: 'NOTE_TIMELINE',\n            groupType: 'SEPARATE',\n            metricsSubject: {\n              resourceName: 'timesheet-note-views',\n              sortKey: 'date',\n              sortDirection: 'DESC',\n              filter\n            },\n            metrics: [[{\n              metric: 'PROPERTY',\n              key: 'date'\n            }, {\n              metric: 'PROPERTY',\n              key: 'workerName'\n            }, [{\n              metric: 'PROPERTY',\n              key: 'projectName'\n            }, {\n              metric: 'PROPERTY',\n              key: 'taskName'\n            }, {\n              metric: 'RELATIONSHIP_PROPERTY',\n              key: 'timesheet.duration'\n            }], {\n              metric: 'PROPERTY',\n              key: 'note'\n            }, {\n              metric: 'RELATIONSHIP_PROPERTY',\n              key: 'attachments.file'\n            }, {\n              metric: 'PROPERTY',\n              key: 'noteType'\n            }]]\n          };\n          if (linkToTimesheet) {\n            noteReport.metrics[0].push({\n              metric: 'TEXT',\n              valueOverride: 'View timesheet',\n              linkTo: {\n                route: 'entity.builda-price.operations.incoming.timesheets.timesheet',\n                queryParams: {\n                  date: {\n                    key: 'date'\n                  },\n                  worker: {\n                    key: 'workerId'\n                  }\n                }\n              }\n            });\n          }\n          const report = {\n            name: 'Notes',\n            subjects: [noteReport]\n          };\n          if (!invoiceId && filterByDate) {\n            report.dateRange = {\n              startDate,\n              endDate\n            };\n          }\n          let loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n          return loadedReport;\n        }\n      }), null, \"getNoteReport\", null));\n    }\n    model({\n      startDate,\n      endDate,\n      projectIds,\n      workerIds,\n      invoiceId,\n      filterByDate\n    }) {\n      this.getProjects.perform();\n      this.getWorkers.perform();\n      this.getNoteReport.perform(startDate, endDate, projectIds, workerIds, filterByDate, invoiceId);\n      return {\n        basePath: this.basePath,\n        noteReport: this.getNoteReport,\n        getProjects: this.getProjects,\n        getWorkers: this.getWorkers\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/company/position\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.company');\n      _defineProperty(this, \"queryParams\", {\n        selectedDate: {\n          refreshModel: true\n        },\n        status: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getAdHocReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (selectedDate, status) {\n          const filter = {\n            entity: this.sessionData.entity.id\n          };\n          if (status !== 'ALL') filter.status = status;\n          const linkToProject = this.basePath?.includes('embed') ? false : this.newFeatureFlags.includesFeatureFlags('canUseProjectPositionReport');\n          const endDate = new Date(selectedDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const financialBreakDown = {\n            name: this.intl.t('shared.reports.Financial breakdown'),\n            index: 4,\n            width: 7,\n            elementType: 'TABLE',\n            borderStyle: 'BORDER',\n            axes: {\n              thead: [{\n                metric: 'TEXT',\n                valueOverride: ''\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Labour'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Materials'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Subcontractors'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Sums'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Total'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }]\n            },\n            groupType: 'GROUPED',\n            metricsSubject: {\n              resourceName: 'projects',\n              filter\n            },\n            metrics: [[{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('common.Budget')\n            }, {\n              metric: 'BUDGET_LABOUR',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'BUDGET_MATERIALS',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'BUDGET_SUBCONTRACTORS',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'BUDGET_SUMS',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'BUDGET_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }], [{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('shared.reports.Actual')\n            }, {\n              metric: 'COST_LABOUR',\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'COST_MATERIALS',\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'COST_SUBCONTRACTORS',\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'TEXT',\n              valueOverride: ''\n            }, {\n              metric: 'COST_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }]\n            }], [{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('common.Used')\n            }, {\n              metric: 'BUDGET_LABOUR_USED',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'BUDGET_MATERIALS_USED',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'BUDGET_SUBCONTRACTORS_USED',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'TEXT',\n              valueOverride: ''\n            }, {\n              metric: 'BUDGET_TOTAL_USED',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }], [{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('common.Quote')\n            }, {\n              metric: 'QUOTE_LABOUR',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'QUOTE_MATERIALS',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'QUOTE_SUBCONTRACTORS',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'QUOTE_SUMS',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'QUOTE_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }], [{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('common.Chargeup')\n            }, {\n              metric: 'CHARGEUP_LABOUR',\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'CHARGEUP_MATERIALS',\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'CHARGEUP_SUBCONTRACTORS',\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'TEXT',\n              valueOverride: ''\n            }, {\n              metric: 'CHARGEUP_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }]\n            }]]\n          };\n          if (this.newFeatureFlags.includesFeatureFlags('canUseEntityInvoicingReport')) {\n            financialBreakDown.metrics.push([{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('common.Invoiced')\n            }, {\n              metric: 'INVOICED_LABOUR',\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'INVOICED_MATERIALS',\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'INVOICED_SUBCONTRACTORS',\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'TEXT',\n              valueOverride: ''\n            }, {\n              metric: 'INVOICED_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }]\n            }]);\n          }\n          const report = {\n            name: this.intl.t('shared.reports.Position report'),\n            dateRange: {\n              endDate\n            },\n            subjects: [{\n              index: 1,\n              width: 2,\n              height: 2,\n              name: this.intl.t('shared.reports.Forecast used'),\n              elementType: 'BIG_TEXT',\n              borderStyle: 'BORDER',\n              axes: {\n                label: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.report.The amount of your forecast used')\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'projects',\n                filter\n              },\n              metrics: [[{\n                metric: 'FINANCIAL_PROGRESS_TOTAL'\n              }]]\n            }, {\n              index: 2,\n              width: 2,\n              height: 2,\n              name: this.intl.t('shared.reports.Current position'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget')\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'BUDGET_TOTAL'\n                }], [{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Quote')\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'QUOTE_TOTAL'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'projects',\n                filter\n              },\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Actual')\n              }, {\n                metric: 'COST_TOTAL'\n              }]]\n            }, {\n              index: 3,\n              width: 2,\n              height: 2,\n              name: this.intl.t('shared.reports.Forecast position'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget')\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'BUDGET_TOTAL'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'projects',\n                filter\n              },\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Forecast')\n              }, {\n                subject: {\n                  resourceName: 'projects',\n                  filter\n                },\n                metric: 'FORECAST_BUDGET'\n              }]]\n            }, financialBreakDown, {\n              name: this.intl.t('common.Labour hours'),\n              index: 5,\n              width: 3,\n              elementType: 'TABLE',\n              borderStyle: 'BORDER',\n              axes: {},\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'projects',\n                filter\n              },\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Budget')\n              }, {\n                metric: 'BUDGET_MANHOURS',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Actual')\n              }, {\n                metric: 'COST_MANHOURS',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Used')\n              }, {\n                metric: 'BUDGET_MANHOURS_USED',\n                classes: [{\n                  class: 'text-right'\n                }],\n                upperLimit: 1\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Forecast'),\n                tooltip: 'Forecasted from your progress'\n              }, {\n                metric: 'FORECAST_MANHOURS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Remaining'),\n                tooltip: 'The difference between your forecast and your actual'\n              }, {\n                metric: 'REMAINING_MANHOURS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                lowerLimit: 0\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Forecast variance'),\n                tooltip: 'The difference between your forecast and your budget'\n              }, {\n                metric: 'VARIANCE_MANHOURS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                showPositiveNegativeIndicator: true,\n                upperLimit: 0\n              }]]\n            }, {\n              name: this.intl.t('common.Projects'),\n              index: 6,\n              width: 12,\n              elementType: 'TABLE',\n              borderStyle: 'BORDER',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Name')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Status')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.progress.Labour progress'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Actual'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Budget used'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast'),\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  tooltip: this.intl.t('shared.reports.Forecasted from progress')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast used'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast variance'),\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  tooltip: this.intl.t('shared.reports.forecastVarianceTooltip')\n                }],\n                tfoot: [[{\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'PROGRESS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'BUDGET_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'COST_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'BUDGET_TOTAL_USED',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  upperLimit: 1,\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'FORECAST_BUDGET',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'FINANCIAL_PROGRESS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'VARIANCE_BUDGET',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  showPositiveNegativeIndicator: true,\n                  upperLimit: 0,\n                  dashZero: true\n                }]]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'projects',\n                filter\n              },\n              metrics: [[{\n                metric: 'PROPERTY',\n                key: 'name',\n                linkTo: linkToProject ? {\n                  route: 'entity.builda-price.reports.projects.project.position',\n                  modelKeys: ['_id'],\n                  queryParams: {\n                    selectedDate: {\n                      valueOverride: selectedDate\n                    }\n                  }\n                } : undefined\n              }, {\n                metric: 'PROPERTY',\n                key: 'status',\n                humanEnums: true\n              }, {\n                metric: 'PROGRESS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'BUDGET_TOTAL',\n                linkTo: linkToProject ? {\n                  route: 'entity.builda-price.reports.projects.project.budget',\n                  modelKeys: ['_id'],\n                  queryParams: {\n                    selectedDate: {\n                      valueOverride: selectedDate\n                    }\n                  }\n                } : undefined,\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'COST_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'BUDGET_TOTAL_USED',\n                classes: [{\n                  class: 'text-right'\n                }],\n                upperLimit: 1,\n                dashZero: true\n              }, {\n                metric: 'FORECAST_BUDGET',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'FINANCIAL_PROGRESS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'VARIANCE_BUDGET',\n                classes: [{\n                  class: 'text-right'\n                }],\n                showPositiveNegativeIndicator: true,\n                upperLimit: 0,\n                dashZero: true\n              }]]\n            }]\n          };\n          let loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getAdHocReport\", null));\n    }\n    model({\n      selectedDate,\n      status = 'OPEN'\n    }) {\n      this.getAdHocReport.perform(selectedDate, status);\n      return {\n        entity: this.sessionData.entity,\n        entityLevelReport: this.getAdHocReport,\n        basePath: this.basePath\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/company/profit-margins\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n      _defineProperty(this, \"queryParams\", {\n        selectedDate: {\n          refreshModel: true\n        },\n        status: {\n          refreshModel: true\n        },\n        excludedProjectIds: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.company.profit-margins');\n      _defineProperty(this, \"getProfitMarginsReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (selectedDate = new Date(), excludedProjectIds, status = 'OPEN') {\n          const filter = {\n            entity: this.sessionData.entity.id\n          };\n          if (status !== 'ALL') filter.status = status;\n          if (excludedProjectIds && excludedProjectIds.length) filter._id = {\n            $nin: excludedProjectIds\n          };\n          const linkToProject = this.basePath?.includes('embed') ? false : this.newFeatureFlags.includesFeatureFlags('canUseProjectProfitMarginReport');\n          const endDate = new Date(selectedDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const report = {\n            name: this.intl.t('entity.builda-price.reports.company.profit-margins.Profit margin report'),\n            dateRange: {\n              endDate\n            },\n            subjects: [{\n              index: 1,\n              width: 12,\n              elementType: 'TABLE',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Name')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Status')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.progress.Labour progress'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Quote'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Actual'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast Budget'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast used'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast margin'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.forecastMarginPercentage'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }],\n                tfoot: [[{\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'PROGRESS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'BUDGET_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'QUOTE_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'COST_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'FORECAST_BUDGET',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'FINANCIAL_PROGRESS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'GROSS_PROFIT',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  lowerLimit: 0,\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'GROSS_PROFIT_MARGIN',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  lowerLimit: 0,\n                  showPositiveNegativeIndicator: true,\n                  dashZero: true\n                }]]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'projects',\n                filter\n              },\n              metrics: [[{\n                metric: 'PROPERTY',\n                key: 'name',\n                linkTo: linkToProject ? {\n                  route: 'entity.builda-price.reports.projects.project.profit-margins',\n                  modelKeys: ['_id'],\n                  queryParams: {\n                    selectedDate: {\n                      valueOverride: selectedDate\n                    }\n                  }\n                } : undefined\n              }, {\n                metric: 'PROPERTY',\n                key: 'status',\n                humanEnums: true\n              }, {\n                metric: 'PROGRESS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'BUDGET_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'QUOTE_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'COST_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'FORECAST_BUDGET',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'FINANCIAL_PROGRESS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'GROSS_PROFIT',\n                classes: [{\n                  class: 'text-right'\n                }],\n                lowerLimit: 0,\n                dashZero: true\n              }, {\n                metric: 'GROSS_PROFIT_MARGIN',\n                classes: [{\n                  class: 'text-right'\n                }],\n                lowerLimit: 0,\n                showPositiveNegativeIndicator: true,\n                dashZero: true\n              }]]\n            }]\n          };\n          const loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getProfitMarginsReport\", null));\n      _defineProperty(this, \"getProjects\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const projects = yield this.store.simpleQuery('project', {\n            entity: this.sessionData.entity.id\n          });\n          return projects.sortBy('sortIndex');\n        }\n      }), null, \"getProjects\", null));\n    }\n    model({\n      selectedDate,\n      status = 'OPEN',\n      excludedProjectIds\n    }) {\n      this.getProjects.perform();\n      this.getProfitMarginsReport.perform(selectedDate, excludedProjectIds, status);\n      return {\n        profitMarginsTable: this.getProfitMarginsReport,\n        projects: this.getProjects,\n        basePath: this.basePath\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/company/wip\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n      _defineProperty(this, \"queryParams\", {\n        selectedDate: {\n          refreshModel: true\n        },\n        status: {\n          refreshModel: true\n        },\n        excludedProjectIds: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getWipReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projects, selectedDate = new Date(), excludedProjectIds, status = 'OPEN') {\n          yield projects.last;\n          const hasValueProjects = projects.last.value.filter(project => project.belongsTo('currentBudgetVersion').id() || project.belongsTo('currentQuoteVersion').id());\n          const filter = {\n            entity: this.sessionData.entity.id,\n            _id: {\n              $in: hasValueProjects.map(project => project.id),\n              $nin: []\n            }\n          };\n          if (status && status !== 'ALL') filter.status = status;\n          if (excludedProjectIds && excludedProjectIds.length) filter._id.$nin = excludedProjectIds || [];\n          const endDate = new Date(selectedDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const report = {\n            name: this.intl.t('entity.builda-price.reports.company.wip.Work in progress report'),\n            dateRange: {\n              endDate\n            },\n            subjects: [{\n              index: 1,\n              width: 12,\n              elementType: 'TABLE',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.company.wip.Project name')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Quote'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.company.wip.Costs to date'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.company.wip.Forecast costs'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Budget used'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.company.wip.Forecast gross profit'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.company.wip.Gross profit margin'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.company.wip.Current gross profit'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.company.wip.Invoiced to date'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.company.wip.WIP position'),\n                  tooltip: this.intl.t('entity.builda-price.reports.company.wip.wipPositionExplanation'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }],\n                tfoot: [[{\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.company.wip.Net WIP')\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'WIP_POSITION',\n                  lowerLimit: 0,\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }], [{\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.company.wip.Current asset')\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'WIP_ASSET',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }], [{\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.company.wip.Current liability')\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'WIP_LIABILITY',\n                  lowerLimit: 0,\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }]]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'projects',\n                filter\n              },\n              metrics: [[{\n                metric: 'PROPERTY',\n                key: 'name'\n              }, {\n                metric: 'QUOTE_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'COST_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'FORECAST_COST',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'WIP_BUDGET_FORECAST_USED',\n                upperLimit: 1,\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'WIP_FORECAST_GROSS_PROFIT',\n                lowerLimit: 0,\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'WIP_GROSS_PROFIT_MARGIN',\n                lowerLimit: 0,\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'WIP_CURRENT_GROSS_PROFIT',\n                lowerLimit: 0,\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'INVOICED_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'WIP_POSITION',\n                lowerLimit: 0,\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }]]\n            }]\n          };\n          const loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getWipReport\", null));\n      _defineProperty(this, \"getProjects\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const projects = yield this.store.simpleQuery('project', {\n            entity: this.sessionData.entity.id\n          });\n          return projects.sortBy('sortIndex');\n        }\n      }), null, \"getProjects\", null));\n    }\n    model({\n      selectedDate,\n      status = 'OPEN',\n      excludedProjectIds\n    }) {\n      this.getProjects.perform();\n      this.getWipReport.perform(this.getProjects, selectedDate, excludedProjectIds, status);\n      return {\n        wipReportTable: this.getWipReport,\n        projects: this.getProjects\n      };\n    }\n    resetController(controller, isExiting) {\n      if (isExiting) {\n        controller._excludedProjects = null;\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/index\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n    }\n    beforeModel(transition) {\n      if (transition.targetName === this.fullRouteName) this.router.transitionTo('entity.builda-price');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/projects/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"@ember/service\",0,\"ember-concurrency\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n      _defineProperty(this, \"queryParams\", {\n        status: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getProjects\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (status) {\n          const filter = {\n            entity: this.sessionData.entity.id\n          };\n          if (status !== 'ALL') filter.status = status;\n          const projects = yield this.store.simpleQuery('project', filter);\n          return projects.toArray();\n        }\n      }), null, \"getProjects\", null));\n      _defineProperty(this, \"getProjectsData\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (status, projects) {\n          yield projects.last;\n\n          // find projects we have report permission for\n          const projectIds = projects.last.value.filter(p => this.newFeatureFlags.includesSomeFeatureFlags(p, 'canUseProjectQuoteReport', 'canUseProjectCostReport', 'canUseProjectBudgetReport', 'canUseProjectForecastReport', 'canUseProjectProfitMarginReport', 'canUseProjectChargeupReport', 'canUseProjectPositionReport', 'canUseProjectLabourHourReport', 'canUseProjectClientReport')).map(p => p.id);\n          const report = {\n            name: this.intl.t('common.Projects'),\n            subjects: [{\n              index: 1,\n              elementType: 'PROJECTS_TABLE',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'col-3 d-none d-sm-block'\n                  }]\n                }]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'projects',\n                filter: {\n                  status: status === 'ALL' ? undefined : status,\n                  _id: {\n                    $in: projectIds\n                  }\n                }\n              },\n              metrics: [[{\n                metric: 'PROPERTY',\n                key: 'name',\n                classes: [{\n                  class: 'col-sm-3 fs-2 report-engine-table__text-dark'\n                }],\n                linkTo: {\n                  route: 'entity.builda-price.reports.projects.project',\n                  modelKeys: ['_id']\n                }\n              }]]\n            }]\n          };\n          if (this.newFeatureFlags.userIsEntityAdmin || this.sessionData.user?.includesSomeClaimsAboutEntity(this.sessionData.entity?.id, 'canViewProgressReports', 'canManageProgressReports')) {\n            report.subjects[0].axes.thead.push({\n              metric: 'TEXT',\n              valueOverride: this.intl.t('common.Progress'),\n              classes: [{\n                class: 'col-2 fw-bold position-relative d-none d-sm-block'\n              }]\n            });\n            report.subjects[0].metrics[0].push({\n              metric: 'PROGRESS_TOTAL',\n              classes: [{\n                class: 'col-2 fs-5 d-none d-sm-block'\n              }]\n            });\n          }\n          if (this.newFeatureFlags.userIsEntityAdmin || this.sessionData.user?.includesSomeClaimsAboutEntity(this.sessionData.entity?.id, 'canViewBudgetFinancialReports', 'canManageBudgetReports')) {\n            report.subjects[0].axes.thead.push({\n              metric: 'TEXT',\n              valueOverride: this.intl.t('common.Budget'),\n              classes: [{\n                class: 'col-2 fw-bold position-relative d-none d-sm-block'\n              }]\n            });\n            report.subjects[0].metrics[0].push({\n              metric: 'BUDGET_TOTAL',\n              classes: [{\n                class: 'col-2 fs-5 d-none d-sm-block'\n              }]\n            });\n          }\n          if (this.newFeatureFlags.userIsEntityAdmin || this.sessionData.user?.includesSomeClaimsAboutEntity(this.sessionData.entity?.id, 'canViewCostFinancialReports', 'canManageCostReports')) {\n            report.subjects[0].axes.thead.push({\n              metric: 'TEXT',\n              valueOverride: this.intl.t('shared.reports.Actual'),\n              classes: [{\n                class: 'col-2 fw-bold position-relative d-none d-sm-block'\n              }]\n            });\n            report.subjects[0].metrics[0].push({\n              metric: 'COST_TOTAL',\n              classes: [{\n                class: 'col-2 fs-5 d-none d-sm-block'\n              }]\n            });\n          }\n          if (this.newFeatureFlags.userIsEntityAdmin || this.sessionData.user?.includesSomeClaimsAboutEntity(this.sessionData.entity?.id, 'canViewCostFinancialReports', 'canManageCostReports') && this.sessionData.user?.includesSomeClaimsAboutEntity(this.sessionData.entity?.id, 'canViewBudgetFinancialReports', 'canManageBudgetReports')) {\n            report.subjects[0].axes.thead.push({\n              metric: 'TEXT',\n              valueOverride: this.intl.t('common.Used'),\n              classes: [{\n                class: 'col-1 fw-bold position-relative d-none d-sm-block'\n              }]\n            });\n            report.subjects[0].metrics[0].push({\n              metric: 'BUDGET_TOTAL_USED',\n              classes: [{\n                class: 'col-1 fs-5 d-none d-sm-block'\n              }],\n              upperLimit: 1\n            });\n          }\n          report.subjects[0].axes.thead.push({\n            metric: 'TEXT',\n            valueOverride: this.intl.t('common.Status'),\n            classes: [{\n              class: 'col-2 fw-bold text-center position-relative d-none d-sm-block'\n            }]\n          });\n          report.subjects[0].metrics[0].push({\n            metric: 'PROPERTY',\n            key: 'status',\n            humanEnums: true,\n            classes: [{\n              class: 'col-2 justify-content-center d-none d-sm-flex report-engine-table__badge'\n            }, {\n              key: 'status',\n              humanEnums: true,\n              case: 'OPEN',\n              class: 'report-engine-table__success text-white'\n            }, {\n              key: 'status',\n              humanEnums: true,\n              case: 'HELD',\n              class: 'report-engine-table__warning text-dark'\n            }, {\n              key: 'status',\n              humanEnums: true,\n              case: 'CLOSED',\n              class: 'report-engine-table__danger text-white'\n            }, {\n              key: 'status',\n              humanEnums: true,\n              case: 'ARCHIVED',\n              class: 'report-engine-table__secondary text-white'\n            }]\n          });\n          const loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n          return loadedReport;\n        }\n      }), null, \"getProjectsData\", null));\n    }\n    setupController(controller) {\n      super.setupController(...arguments);\n      controller.searchString = '';\n    }\n    model({\n      status = 'OPEN'\n    }) {\n      this.getProjects.perform(status);\n      this.getProjectsData.perform(status, this.getProjects);\n      return {\n        projectsData: this.getProjectsData\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/projects/project\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor4, this);\n      _defineProperty(this, \"getProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projectId) {\n          try {\n            const project = yield this.store.findRecord('project', projectId, {\n              reload: true\n            });\n            return project;\n          } catch (_) {\n            // this means we either don't have access to the project or the project doesn't exist\n            // go back to the projects list\n            this.router.transitionTo('entity.builda-price.reports.projects');\n          }\n        }\n      }), null, \"getProject\", null));\n      _defineProperty(this, \"getOpenProjects\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const projects = yield this.store.simpleQuery('project', {\n            entity: this.sessionData.entity.id,\n            status: 'OPEN'\n          });\n          return projects.sortBy('sortIndex').toArray();\n        }\n      }), null, \"getOpenProjects\", null));\n    }\n    model({\n      project_id: projectId\n    }) {\n      this.getProject.perform(projectId);\n      this.getOpenProjects.perform();\n      return {\n        project: this.getProject,\n        openProjects: this.getOpenProjects\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/access\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"moment\"], function (_exports, _asyncArrowRuntime, _route, _service, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"moment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"store\", _descriptor4, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.projects.project');\n      _defineProperty(this, \"queryParams\", {\n        startDate: {\n          refreshModel: true\n        },\n        endDate: {\n          refreshModel: true\n        },\n        filterByDate: {\n          refreshModel: true\n        },\n        workerIds: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projectId) {\n          const project = yield this.store.findRecord('project', projectId);\n          return project;\n        }\n      }), null, \"getProject\", null));\n      _defineProperty(this, \"getWorkers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          return this.store.simpleQuery('worker', {\n            entity: this.sessionData.entity.id,\n            isActive: true\n          }, {\n            sort: 'firstName,lastName'\n          });\n        }\n      }), null, \"getWorkers\", null));\n      _defineProperty(this, \"getReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project, _startDate, _endDate, filterByDate, workerIds) {\n          yield project.last;\n          const startDate = (0, _moment.default)(_startDate).startOf('day').toDate();\n          const endDate = (0, _moment.default)(_endDate).endOf('day').toDate();\n          const filter = {\n            $and: [{\n              entityId: {\n                $eq: this.sessionData.entity.id\n              },\n              projectId: {\n                $eq: project.last.value.id\n              }\n            }]\n          };\n          if (filterByDate) {\n            filter.$and.push({\n              entryTime: {\n                $gte: startDate,\n                $lte: endDate\n              }\n            });\n          }\n          if (workerIds?.length) {\n            filter.$and.push({\n              workerId: {\n                $in: workerIds\n              }\n            });\n          }\n          const occupancyFilter = {\n            $and: [{\n              entityId: {\n                $eq: this.sessionData.entity.id\n              },\n              projectId: {\n                $eq: project.last.value.id\n              }\n            }]\n          };\n          if (workerIds?.length) {\n            occupancyFilter.$and.push({\n              workerId: {\n                $in: workerIds\n              }\n            });\n          }\n          const occupancyReport = {\n            name: 'On site',\n            index: 1,\n            width: 3,\n            elementType: 'TABLE',\n            borderStyle: 'BORDER',\n            groupType: 'SEPARATE',\n            metricsSubject: {\n              resourceName: 'project-occupancy-views',\n              sortKey: 'entryTime',\n              sortDirection: 'DESC',\n              // don't filter the on site report by date\n              filter: occupancyFilter\n            },\n            axes: {\n              thead: [{\n                metric: 'TEXT',\n                valueOverride: 'Name'\n              }, {\n                metric: 'TEXT',\n                valueOverride: 'Entry time'\n              }]\n            },\n            metrics: [[{\n              metric: 'PROPERTY',\n              key: 'actorName'\n            }, {\n              metric: 'PROPERTY',\n              key: 'entryTime'\n            }]]\n          };\n          const accessReport = {\n            name: 'Access history',\n            index: 2,\n            width: 12,\n            elementType: 'TABLE',\n            borderStyle: 'BORDER',\n            groupType: 'SEPARATE',\n            metricsSubject: {\n              resourceName: 'project-access-log-views',\n              sortKey: 'entryTime',\n              sortDirection: 'DESC',\n              filter\n            },\n            axes: {\n              thead: [{\n                metric: 'TEXT',\n                valueOverride: 'Name'\n              }, {\n                metric: 'TEXT',\n                valueOverride: 'Entry time'\n              }, {\n                metric: 'TEXT',\n                valueOverride: 'Exit time'\n              }, {\n                metric: 'TEXT',\n                valueOverride: 'Time on site'\n              }]\n            },\n            metrics: [[{\n              metric: 'PROPERTY',\n              key: 'actorName'\n            }, {\n              metric: 'PROPERTY',\n              key: 'entryTime'\n            }, {\n              metric: 'PROPERTY',\n              key: 'exitTime'\n            }, {\n              metric: 'PROPERTY',\n              key: 'duration'\n            }]]\n          };\n          const report = {\n            name: 'Access',\n            subjects: [occupancyReport, accessReport]\n          };\n          if (filterByDate) {\n            report.dateRange = {\n              startDate,\n              endDate\n            };\n          }\n          let loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n          return loadedReport;\n        }\n      }), null, \"getReport\", null));\n    }\n    model({\n      startDate,\n      endDate,\n      filterByDate,\n      workerIds\n    }) {\n      const {\n        project_id: projectId\n      } = this.paramsFor(this.basePath);\n      this.getProject.perform(projectId);\n      this.getWorkers.perform();\n      this.getReport.perform(this.getProject, startDate, endDate, filterByDate, workerIds?.split(','));\n      return {\n        project: this.getProject,\n        tasks: this.getProjectTasks,\n        // Note: this property is returned but not defined in this snippet\n        workers: this.getWorkers,\n        basePath: this.basePath,\n        report: this.getReport\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/budget/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"moment\"], function (_exports, _asyncArrowRuntime, _route, _service, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"moment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.projects.project');\n      _defineProperty(this, \"queryParams\", {\n        selectedDate: {\n          refreshModel: true\n        },\n        status: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projectId) {\n          const project = yield this.store.findRecord('project', projectId);\n          return project;\n        }\n      }), null, \"getProject\", null));\n      _defineProperty(this, \"getBudgetReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project, selectedDate) {\n          yield project.last;\n          const filter = {\n            project: project.last.value.id,\n            entity: this.sessionData.entity.id,\n            status: {\n              $in: ['ACTIVE', 'DRAFT_CREATED']\n            }\n          };\n          const canUseProjectBudgetReport = this.newFeatureFlags.includesFeatureFlags(project.last.value, 'canUseBudgetReport');\n          const canUseCostReports = this.newFeatureFlags.includesFeatureFlags(project.last.value, 'canUseProjectCostReport');\n          const summaryMetricSubject = canUseProjectBudgetReport ? {\n            resourceName: 'projects',\n            filter: {\n              _id: project.last.value.id,\n              entity: this.sessionData.entity.id\n            }\n          } : {\n            resourceName: 'tasks',\n            filter\n          };\n          const linkToStartDate = (0, _moment.default)(this.sessionData.entity.dateCreated).format('YYYY-MM-DD');\n          const linkToEndDate = selectedDate;\n          const endDate = new Date(selectedDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const report = {\n            name: this.intl.t('entity.builda-price.reports.projects.project.budget.Budget report'),\n            dateRange: {\n              endDate\n            },\n            subjects: [{\n              index: 1,\n              width: 2,\n              height: 2,\n              name: this.intl.t('common.Labour'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget')\n                }, {\n                  subject: summaryMetricSubject,\n                  metric: 'BUDGET_LABOUR'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: summaryMetricSubject,\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Actual')\n              }, {\n                metric: 'COST_LABOUR'\n              }]]\n            }, {\n              index: 2,\n              width: 2,\n              height: 2,\n              name: this.intl.t('common.Materials'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget')\n                }, {\n                  label: 'Budget',\n                  subject: summaryMetricSubject,\n                  metric: 'BUDGET_MATERIALS'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: summaryMetricSubject,\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Actual')\n              }, {\n                metric: 'COST_MATERIALS'\n              }]]\n            }, {\n              index: 3,\n              width: 2,\n              height: 2,\n              name: this.intl.t('common.Subcontractors'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget')\n                }, {\n                  subject: summaryMetricSubject,\n                  metric: 'BUDGET_SUBCONTRACTORS'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: summaryMetricSubject,\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Actual')\n              }, {\n                metric: 'COST_SUBCONTRACTORS'\n              }]]\n            }, {\n              index: 4,\n              width: 2,\n              height: 2,\n              name: this.intl.t('entity.builda-price.reports.projects.project.budget.Budget total'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget')\n                }, {\n                  subject: summaryMetricSubject,\n                  metric: 'BUDGET_TOTAL'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: summaryMetricSubject,\n              metrics: [[{\n                valueOverride: this.intl.t('shared.reports.Actual'),\n                metric: 'TEXT'\n              }, {\n                metric: 'COST_TOTAL'\n              }]]\n            }, {\n              index: 5,\n              width: 4,\n              height: 2,\n              name: this.intl.t('entity.builda-price.reports.projects.project.budget.Budget distribution'),\n              elementType: 'PIE_CHART',\n              borderStyle: 'BORDER',\n              groupType: 'GROUPED',\n              metricsSubject: summaryMetricSubject,\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Labour')\n              }, {\n                metric: 'BUDGET_LABOUR'\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Materials')\n              }, {\n                metric: 'BUDGET_MATERIALS'\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Subcontractors')\n              }, {\n                metric: 'BUDGET_SUBCONTRACTORS'\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Sums')\n              }, {\n                metric: 'BUDGET_SUMS'\n              }]]\n            }, {\n              index: 6,\n              width: 4,\n              height: 2,\n              name: this.intl.t('entity.builda-price.reports.projects.project.budget.Actual distribution'),\n              elementType: 'PIE_CHART',\n              borderStyle: 'BORDER',\n              groupType: 'GROUPED',\n              metricsSubject: summaryMetricSubject,\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Labour')\n              }, {\n                metric: 'COST_LABOUR'\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Materials')\n              }, {\n                metric: 'COST_MATERIALS'\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Subcontractors')\n              }, {\n                metric: 'COST_SUBCONTRACTORS'\n              }]]\n            }, {\n              name: this.intl.t('common.Financials'),\n              index: 7,\n              width: 12,\n              elementType: 'TABLE',\n              borderStyle: 'BORDER',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Name')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.budget.Labour budget'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.budget.Labour actual'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.budget.Materials budget'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.budget.Materials actual'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.budget.Subcontractors budget'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.budget.Subcontractors actual'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.budget.Sums budget'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.budget.Total budget'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.budget.Total actual'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.budget.Remaining budget'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Budget used'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }],\n                tfoot: [[{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_LABOUR',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'COST_LABOUR',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_MATERIALS',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'COST_MATERIALS',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_SUBCONTRACTORS',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'COST_SUBCONTRACTORS',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_SUMS',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'COST_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  tooltip: this.intl.t('shared.reports.costTotalTooltip')\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'REMAINING_BUDGET',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_TOTAL_USED',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  upperLimit: 1,\n                  dashZero: true\n                }]]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TASK_PATH',\n                classes: [{\n                  class: 'd-none'\n                }]\n              }, {\n                metric: 'PROPERTY',\n                key: 'name',\n                linkTo: {\n                  route: 'entity.builda-price.reports.projects.project.budget.task',\n                  modelKeys: ['project', '_id'],\n                  queryParams: {\n                    selectedDate: {\n                      valueOverride: selectedDate\n                    }\n                  }\n                }\n              }, {\n                metric: 'BUDGET_LABOUR',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'COST_LABOUR',\n                linkTo: canUseCostReports ? {\n                  route: 'entity.builda-price.reports.projects.project.cost',\n                  queryParams: {\n                    costType: {\n                      valueOverride: 'ALL'\n                    },\n                    startDate: {\n                      valueOverride: linkToStartDate\n                    },\n                    endDate: {\n                      valueOverride: linkToEndDate\n                    },\n                    parentId: {\n                      key: '_id'\n                    }\n                  }\n                } : undefined,\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'BUDGET_MATERIALS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'COST_MATERIALS',\n                linkTo: canUseCostReports ? {\n                  route: 'entity.builda-price.reports.projects.project.cost',\n                  queryParams: {\n                    costType: {\n                      valueOverride: 'BILLS'\n                    },\n                    startDate: {\n                      valueOverride: linkToStartDate\n                    },\n                    endDate: {\n                      valueOverride: linkToEndDate\n                    },\n                    parentId: {\n                      key: '_id'\n                    }\n                  }\n                } : undefined,\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'BUDGET_SUBCONTRACTORS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'COST_SUBCONTRACTORS',\n                linkTo: canUseCostReports ? {\n                  route: 'entity.builda-price.reports.projects.project.cost',\n                  queryParams: {\n                    costType: {\n                      valueOverride: 'BILLS'\n                    },\n                    startDate: {\n                      valueOverride: linkToStartDate\n                    },\n                    endDate: {\n                      valueOverride: linkToEndDate\n                    },\n                    parentId: {\n                      key: '_id'\n                    }\n                  }\n                } : undefined,\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'BUDGET_SUMS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'BUDGET_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'COST_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'REMAINING_BUDGET',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'BUDGET_TOTAL_USED',\n                classes: [{\n                  class: 'text-right'\n                }],\n                upperLimit: 1,\n                dashZero: true\n              }]]\n            }]\n          };\n          let loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getBudgetReport\", null));\n    }\n    model({\n      selectedDate\n    }) {\n      const {\n        project_id: projectId\n      } = this.paramsFor(this.basePath);\n      this.getProject.perform(projectId);\n      this.getBudgetReport.perform(this.getProject, selectedDate);\n      return {\n        project: this.getProject,\n        basePath: this.basePath,\n        budgetTable: this.getBudgetReport\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/budget/task\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  class _default extends _route.default {\n    model() {}\n  }\n  _exports.default = _default;\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/budget/task/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"moment\"], function (_exports, _asyncArrowRuntime, _route, _service, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"moment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.projects.project.budget.task');\n      _defineProperty(this, \"queryParams\", {\n        selectedDate: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getTask\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (taskId) {\n          const task = yield this.store.simpleQuery('task', {\n            _id: taskId\n          });\n          return task.toArray()[0];\n        }\n      }), null, \"getTask\", null));\n      _defineProperty(this, \"getAdHocReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (selectedDate, projectId, task) {\n          yield task.last;\n          const filter = {\n            project: projectId,\n            entity: this.sessionData.entity.id,\n            status: {\n              $in: ['ACTIVE', 'DRAFT_CREATED']\n            }\n          };\n          if (task.last.value.children.length) {\n            filter.parent = task.last.value.id;\n          } else {\n            filter._id = task.last.value.id;\n          }\n          const linkToStartDate = (0, _moment.default)(this.sessionData.entity.dateCreated).format('YYYY-MM-DD');\n          const linkToEndDate = selectedDate;\n          const endDate = new Date(selectedDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const report = {\n            name: this.intl.t('entity.builda-price.reports.projects.project.budget.Budget report'),\n            dateRange: {\n              endDate\n            },\n            subjects: [{\n              index: 1,\n              width: 2,\n              height: 2,\n              name: this.intl.t('common.Labour'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget')\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_LABOUR'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Actual')\n              }, {\n                metric: 'COST_LABOUR'\n              }]]\n            }, {\n              index: 2,\n              width: 2,\n              height: 2,\n              name: this.intl.t('common.Materials'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget')\n                }, {\n                  label: 'Budget',\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_MATERIALS'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Actual')\n              }, {\n                metric: 'COST_MATERIALS'\n              }]]\n            }, {\n              index: 3,\n              width: 2,\n              height: 2,\n              name: this.intl.t('common.Subcontractors'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget')\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_SUBCONTRACTORS'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Actual')\n              }, {\n                metric: 'COST_SUBCONTRACTORS'\n              }]]\n            }, {\n              index: 4,\n              width: 2,\n              height: 2,\n              name: this.intl.t('shared.reports.Budget used'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget')\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_TOTAL'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                valueOverride: this.intl.t('shared.reports.Actual'),\n                metric: 'TEXT'\n              }, {\n                metric: 'COST_TOTAL'\n              }]]\n            }, {\n              index: 5,\n              width: 4,\n              height: 2,\n              name: this.intl.t('entity.builda-price.reports.projects.project.budget.Budget distribution'),\n              elementType: 'PIE_CHART',\n              borderStyle: 'BORDER',\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Labour')\n              }, {\n                metric: 'BUDGET_LABOUR'\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Materials')\n              }, {\n                metric: 'BUDGET_MATERIALS'\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Subcontractors')\n              }, {\n                metric: 'BUDGET_SUBCONTRACTORS'\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Sums')\n              }, {\n                metric: 'BUDGET_SUMS'\n              }]]\n            }, {\n              index: 6,\n              width: 4,\n              height: 2,\n              name: this.intl.t('entity.builda-price.reports.projects.project.budget.Actual distribution'),\n              elementType: 'PIE_CHART',\n              borderStyle: 'BORDER',\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Labour')\n              }, {\n                metric: 'COST_LABOUR'\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Materials')\n              }, {\n                metric: 'COST_MATERIALS'\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Subcontractors')\n              }, {\n                metric: 'COST_SUBCONTRACTORS'\n              }]]\n            }, {\n              name: this.intl.t('common.Financials'),\n              index: 7,\n              width: 12,\n              elementType: 'TABLE',\n              borderStyle: 'BORDER',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Name')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.budget.Labour budget'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.budget.Labour actual'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.budget.Materials budget'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.budget.Materials actual'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.budget.Subcontractors budget'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.budget.Subcontractors actual'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.budget.Sums budget'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.budget.Total budget'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.budget.Total actual'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.budget.Remaining budget'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Budget used'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }],\n                tfoot: [[{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_LABOUR',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'COST_LABOUR',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_MATERIALS',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'COST_MATERIALS',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_SUBCONTRACTORS',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'COST_SUBCONTRACTORS',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_SUMS',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'COST_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'REMAINING_BUDGET',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_TOTAL_USED',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  upperLimit: 1,\n                  dashZero: true\n                }]]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TASK_PATH',\n                classes: [{\n                  class: 'd-none'\n                }]\n              }, {\n                metric: 'PROPERTY',\n                key: 'name',\n                linkTo: {\n                  route: 'entity.builda-price.reports.projects.project.budget.task',\n                  modelKeys: ['project', '_id'],\n                  queryParams: {\n                    selectedDate: {\n                      valueOverride: selectedDate\n                    }\n                  }\n                }\n              }, {\n                metric: 'BUDGET_LABOUR',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'COST_LABOUR',\n                linkTo: {\n                  route: 'entity.builda-price.reports.projects.project.cost',\n                  queryParams: {\n                    parentId: {\n                      valueOverride: task.last.value.id\n                    },\n                    costType: {\n                      valueOverride: 'ALL'\n                    },\n                    startDate: {\n                      valueOverride: linkToStartDate\n                    },\n                    endDate: {\n                      valueOverride: linkToEndDate\n                    }\n                  }\n                },\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'BUDGET_MATERIALS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'COST_MATERIALS',\n                linkTo: {\n                  route: 'entity.builda-price.reports.projects.project.cost',\n                  queryParams: {\n                    parentId: {\n                      valueOverride: task.last.value.id\n                    },\n                    costType: {\n                      valueOverride: 'BILLS'\n                    },\n                    startDate: {\n                      valueOverride: linkToStartDate\n                    },\n                    endDate: {\n                      valueOverride: linkToEndDate\n                    }\n                  }\n                },\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'BUDGET_SUBCONTRACTORS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'COST_SUBCONTRACTORS',\n                linkTo: {\n                  route: 'entity.builda-price.reports.projects.project.cost',\n                  queryParams: {\n                    parentId: {\n                      valueOverride: task.last.value.id\n                    },\n                    costType: {\n                      valueOverride: 'BILLS'\n                    },\n                    startDate: {\n                      valueOverride: linkToStartDate\n                    },\n                    endDate: {\n                      valueOverride: linkToEndDate\n                    }\n                  }\n                },\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'BUDGET_SUMS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'BUDGET_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'COST_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'REMAINING_BUDGET',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'BUDGET_TOTAL_USED',\n                classes: [{\n                  class: 'text-right'\n                }],\n                upperLimit: 1,\n                dashZero: true\n              }]]\n            }]\n          };\n          let loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getAdHocReport\", null));\n      _defineProperty(this, \"getParentTasks\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (task) {\n          yield task.last;\n          const generatePathsFromTask = async task => {\n            const parentTask = await task.belongsTo('parent').load();\n            if (parentTask) {\n              await generatePathsFromTask(parentTask);\n            }\n          };\n          yield generatePathsFromTask(task.last.value);\n        }\n      }), null, \"getParentTasks\", null));\n    }\n    model({\n      selectedDate\n    }) {\n      const {\n        project_id: projectId\n      } = this.paramsFor('entity.builda-price.reports.projects.project');\n      const {\n        task_id: taskId\n      } = this.paramsFor(this.basePath);\n      this.getTask.perform(taskId);\n      this.getParentTasks.perform(this.getTask);\n      this.getAdHocReport.perform(selectedDate, projectId, this.getTask);\n      return {\n        task: this.getTask,\n        basePath: this.basePath,\n        budgetTable: this.getAdHocReport,\n        parentTasks: this.getParentTasks\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/chargeup/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.projects.project');\n      _defineProperty(this, \"queryParams\", {\n        selectedDate: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projectId) {\n          const project = yield this.store.simpleQuery('project', {\n            _id: projectId\n          });\n          return project.toArray()?.[0];\n        }\n      }), null, \"getProject\", null));\n      _defineProperty(this, \"getChargeupReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project, selectedDate) {\n          yield project.last;\n          const filter = {\n            project: project.last.value.id,\n            entity: this.sessionData.entity.id,\n            status: {\n              $in: ['ACTIVE', 'DRAFT_CREATED']\n            }\n          };\n          const canUseProjectChargeupReport = this.newFeatureFlags.includesFeatureFlags(project.last.value, 'canUseChargeupReport');\n          const summaryMetricSubject = canUseProjectChargeupReport ? {\n            resourceName: 'projects',\n            filter: {\n              _id: project.last.value.id,\n              entity: this.sessionData.entity.id\n            }\n          } : {\n            resourceName: 'tasks',\n            filter\n          };\n          const endDate = new Date(selectedDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const report = {\n            name: this.intl.t('entity.builda-price.reports.projects.project.chargeup.Chargeup report'),\n            dateRange: {\n              endDate\n            },\n            subjects: [{\n              index: 1,\n              width: 2,\n              height: 2,\n              name: this.intl.t('shared.reports.Current position'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Quote')\n                }, {\n                  subject: summaryMetricSubject,\n                  metric: 'QUOTE_TOTAL'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: summaryMetricSubject,\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Chargeup')\n              }, {\n                metric: 'CHARGEUP_TOTAL'\n              }]]\n            }, {\n              index: 2,\n              width: 2,\n              height: 2,\n              name: this.intl.t('shared.reports.Forecast position'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Quote')\n                }, {\n                  subject: summaryMetricSubject,\n                  metric: 'QUOTE_TOTAL'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: summaryMetricSubject,\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Forecast')\n              }, {\n                subject: summaryMetricSubject,\n                metric: 'FORECAST_CHARGEUP'\n              }]]\n            }, {\n              index: 3,\n              width: 12,\n              elementType: 'TABLE',\n              borderStyle: 'BORDER',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: 'Name'\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.progress.Labour progress'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Quote'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Chargeup'),\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  tooltip: this.intl.t('entity.builda-price.reports.projects.project.chargeup.chargeupTooltip')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Quote used'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast'),\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  tooltip: this.intl.t('shared.reports.Forecasted from progress')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast used'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast variance'),\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  tooltip: this.intl.t('shared.reports.forecastVarianceTooltip')\n                }],\n                tfoot: [[{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'PROGRESS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'CHARGEUP_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  tooltip: this.intl.t('shared.reports.costTotalTooltip')\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_TOTAL_USED',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  upperLimit: 1\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'FORECAST_CHARGEUP',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  tooltip: this.intl.t('shared.reports.costTotalTooltip')\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'FINANCIAL_PROGRESS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'VARIANCE_QUOTE',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  showPositiveNegativeIndicator: true,\n                  upperLimit: 0\n                }]]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TASK_PATH',\n                classes: [{\n                  class: 'd-none'\n                }]\n              }, {\n                metric: 'PROPERTY',\n                key: 'name',\n                linkTo: {\n                  route: 'entity.builda-price.reports.projects.project.chargeup.task',\n                  modelKeys: ['project', '_id'],\n                  queryParams: {\n                    selectedDate: {\n                      valueOverride: selectedDate\n                    }\n                  }\n                }\n              }, {\n                metric: 'PROGRESS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'QUOTE_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'CHARGEUP_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'QUOTE_TOTAL_USED',\n                classes: [{\n                  class: 'text-right'\n                }],\n                upperLimit: 1\n              }, {\n                metric: 'FORECAST_CHARGEUP',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'FINANCIAL_PROGRESS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'VARIANCE_QUOTE',\n                classes: [{\n                  class: 'text-right'\n                }],\n                showPositiveNegativeIndicator: true,\n                upperLimit: 0\n              }]]\n            }]\n          };\n          const loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getChargeupReport\", null));\n    }\n    model({\n      selectedDate\n    }) {\n      const {\n        project_id: projectId\n      } = this.paramsFor(this.basePath);\n      this.getProject.perform(projectId);\n      this.getChargeupReport.perform(this.getProject, selectedDate);\n      return {\n        project: this.getProject,\n        basePath: this.basePath,\n        chargeupReport: this.getChargeupReport\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/chargeup/task\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  class _default extends _route.default {\n    model() {}\n  }\n  _exports.default = _default;\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/chargeup/task/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.projects.project.chargeup.task');\n      _defineProperty(this, \"queryParams\", {\n        selectedDate: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getTask\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (taskId) {\n          const task = yield this.store.simpleQuery('task', {\n            _id: taskId\n          });\n          return task.toArray()?.[0];\n        }\n      }), null, \"getTask\", null));\n      _defineProperty(this, \"getChargeupReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (selectedDate, projectId, task) {\n          yield task.last;\n          const filter = {\n            project: projectId,\n            entity: this.sessionData.entity.id,\n            status: {\n              $in: ['ACTIVE', 'DRAFT_CREATED']\n            }\n          };\n          if (task.last.value.children.length) {\n            filter.parent = task.last.value.id;\n          } else {\n            filter._id = task.last.value.id;\n          }\n          const endDate = new Date(selectedDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const report = {\n            name: this.intl.t('entity.builda-price.reports.projects.project.chargeup.Chargeup report'),\n            dateRange: {\n              endDate\n            },\n            subjects: [{\n              index: 1,\n              width: 2,\n              height: 2,\n              name: this.intl.t('shared.reports.Current position'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Quote')\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_TOTAL'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Chargeup')\n              }, {\n                metric: 'CHARGEUP_TOTAL'\n              }]]\n            }, {\n              index: 2,\n              width: 2,\n              height: 2,\n              name: this.intl.t('shared.reports.Forecast position'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Quote')\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_TOTAL'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Forecast')\n              }, {\n                subject: {\n                  resourceName: 'tasks',\n                  recursiveKey: 'parent',\n                  filter\n                },\n                metric: 'FORECAST_CHARGEUP'\n              }]]\n            }, {\n              index: 3,\n              width: 12,\n              elementType: 'TABLE',\n              borderStyle: 'BORDER',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: 'Name'\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Progress'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast used'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Quote'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Chargeup'),\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  tooltip: this.intl.t('entity.builda-price.reports.projects.project.chargeup.chargeupTooltip')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Quote used'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast'),\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  tooltip: this.intl.t('shared.reports.Forecasted from progress')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast variance'),\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  tooltip: this.intl.t('shared.reports.forecastVarianceTooltip')\n                }],\n                tfoot: [[{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'PROGRESS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'FINANCIAL_PROGRESS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'CHARGEUP_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_TOTAL_USED',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'FORECAST_CHARGEUP',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'VARIANCE_QUOTE',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  showPositiveNegativeIndicator: true,\n                  upperLimit: 0\n                }]]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TASK_PATH',\n                classes: [{\n                  class: 'd-none'\n                }]\n              }, {\n                metric: 'PROPERTY',\n                key: 'name',\n                linkTo: {\n                  route: 'entity.builda-price.reports.projects.project.chargeup.task',\n                  modelKeys: ['project', '_id'],\n                  queryParams: {\n                    selectedDate: {\n                      valueOverride: selectedDate\n                    }\n                  }\n                }\n              }, {\n                metric: 'PROGRESS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'FINANCIAL_PROGRESS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'QUOTE_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'CHARGEUP_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'QUOTE_TOTAL_USED',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'FORECAST_CHARGEUP',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'VARIANCE_QUOTE',\n                classes: [{\n                  class: 'text-right'\n                }],\n                showPositiveNegativeIndicator: true,\n                upperLimit: 0\n              }]]\n            }]\n          };\n          const loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getChargeupReport\", null));\n      _defineProperty(this, \"getParentTasks\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (task) {\n          yield task.last;\n          const generatePathsFromTask = async task => {\n            const parentTask = await task.belongsTo('parent').load();\n            if (parentTask) {\n              await generatePathsFromTask(parentTask);\n            }\n          };\n          yield generatePathsFromTask(task.last.value);\n        }\n      }), null, \"getParentTasks\", null));\n    }\n    model({\n      selectedDate\n    }) {\n      const {\n        project_id: projectId\n      } = this.paramsFor('entity.builda-price.reports.projects.project');\n      const {\n        task_id: taskId\n      } = this.paramsFor(this.basePath);\n      this.getTask.perform(taskId);\n      this.getParentTasks.perform(this.getTask);\n      this.getChargeupReport.perform(selectedDate, projectId, this.getTask);\n      return {\n        task: this.getTask,\n        basePath: this.basePath,\n        chargeupReport: this.getChargeupReport,\n        parentTasks: this.getParentTasks\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/cost-to-complete/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.projects.project');\n      _defineProperty(this, \"queryParams\", {\n        selectedDate: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projectId) {\n          return yield this.store.findRecord('project', projectId);\n        }\n      }), null, \"getProject\", null));\n      _defineProperty(this, \"getParentTasks\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project) {\n          yield project.last;\n          const filter = {\n            and: [{\n              field: 'entity',\n              op: 'EQ',\n              value: this.sessionData.entity.id\n            }, {\n              field: 'project',\n              op: 'EQ',\n              value: project.last.value.id\n            }, {\n              field: 'status',\n              op: 'IN',\n              value: ['ACTIVE', 'DRAFT_CREATED']\n            }, {\n              field: 'parent',\n              op: 'IS_NULL',\n              value: null\n            }]\n          };\n          const parentTasks = yield this.store.query('task', {\n            filter\n          });\n          return parentTasks.toArray();\n        }\n      }), null, \"getParentTasks\", null));\n      _defineProperty(this, \"getAdHocReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (selectedDate, project, parentTasks) {\n          yield project.last;\n          yield parentTasks.last;\n          const linkToEndDate = selectedDate;\n          const endDate = new Date(selectedDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const filter = {\n            project: project.last.value.id,\n            entity: this.sessionData.entity.id,\n            status: {\n              $in: ['ACTIVE', 'DRAFT_CREATED']\n            }\n          };\n          const footerFilter = {\n            _id: {\n              $in: parentTasks.last.value.mapBy('id')\n            }\n          };\n          const canUseProjectClientReport = this.newFeatureFlags.includesFeatureFlags(project.last.value, 'canUseProjectClientReport');\n          const entityCanUseInvoicing = this.newFeatureFlags.entityCanUseInvoicingReport;\n          const summaryMetricSubject = canUseProjectClientReport ? {\n            resourceName: 'projects',\n            filter: {\n              _id: project.last.value.id,\n              entity: this.sessionData.entity.id\n            }\n          } : {\n            resourceName: 'tasks',\n            recursiveKey: 'parent',\n            filter\n          };\n          const summaryTable = {\n            name: this.intl.t('common.Summary'),\n            index: 1,\n            width: 3,\n            elementType: 'TABLE',\n            borderStyle: 'BORDER',\n            axes: {},\n            groupType: 'GROUPED',\n            metricsSubject: summaryMetricSubject,\n            metrics: [[{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('shared.progress.Labour progress')\n            }, {\n              metric: 'PROGRESS_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }]]\n          };\n          if (project.last.value.contractType === 'FIXED_PRICE') {\n            summaryTable.metrics.push([{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.Fixed price')\n            }, {\n              metric: 'FIXED_PRICE_QUOTE_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }]\n            }]);\n            summaryTable.metrics.push([[{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.Cost plus forecast')\n            }, {\n              metric: 'COST_PLUS_FORECAST_QUOTE',\n              //undefined,\n              classes: [{\n                class: 'text-right'\n              }]\n            }]]);\n          }\n          if (entityCanUseInvoicing) {\n            summaryTable.metrics.push([{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.Forecast cost')\n            }, {\n              metric: 'FORECAST_QUOTE',\n              classes: [{\n                class: 'text-right'\n              }]\n            }]);\n            summaryTable.metrics.push([{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('common.Invoiced')\n            }, {\n              metric: 'INVOICED_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }]\n            }]);\n            summaryTable.metrics.push([{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.Cost to complete')\n            }, {\n              metric: 'FORECAST_QUOTE_NOT_INVOICED',\n              classes: [{\n                class: 'text-right'\n              }]\n            }]);\n            summaryTable.metrics.push([{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.costToCompletePercentage')\n            }, {\n              metric: 'FORECAST_QUOTE_NOT_INVOICED_PERCENTAGE',\n              classes: [{\n                class: 'text-right'\n              }],\n              upperLimit: 1\n            }]);\n          }\n          const fixedPriceTable = {\n            name: this.intl.t('common.Tasks'),\n            index: 2,\n            width: 12,\n            elementType: 'TABLE',\n            borderStyle: 'BORDER',\n            axes: {\n              thead: [{\n                metric: 'TEXT',\n                valueOverride: '',\n                classes: [{\n                  class: 'd-none'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: ''\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.progress.Labour progress'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.Fixed price'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.Cost plus forecast'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }],\n              tfoot: [[{\n                metric: 'TEXT',\n                valueOverride: '',\n                classes: [{\n                  class: 'd-none'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: ''\n              }, {\n                subject: {\n                  resourceName: 'tasks',\n                  recursiveKey: 'parent',\n                  filter\n                },\n                metric: 'PROGRESS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                subject: {\n                  resourceName: 'tasks',\n                  recursiveKey: 'parent',\n                  filter: footerFilter\n                },\n                metric: 'FIXED_PRICE_QUOTE_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                subject: {\n                  resourceName: 'tasks',\n                  recursiveKey: 'parent',\n                  filter: footerFilter\n                },\n                metric: 'COST_PLUS_FORECAST_QUOTE',\n                classes: [{\n                  class: 'text-right'\n                }],\n                tooltip: this.intl.t('shared.reports.costTotalTooltip')\n              }]]\n            },\n            groupType: 'SEPARATE',\n            metricsSubject: {\n              resourceName: 'tasks',\n              recursiveKey: 'parent',\n              filter\n            },\n            metrics: [[{\n              metric: 'TASK_PATH',\n              classes: [{\n                class: 'd-none'\n              }]\n            }, {\n              metric: 'PROPERTY',\n              key: 'name',\n              linkTo: {\n                route: 'entity.builda-price.reports.projects.project.cost-to-complete.task',\n                modelKeys: ['project', '_id'],\n                queryParams: {\n                  selectedDate: {\n                    valueOverride: linkToEndDate\n                  }\n                }\n              }\n            }, {\n              metric: 'PROGRESS_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'FIXED_PRICE_QUOTE_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'COST_PLUS_FORECAST_QUOTE',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }]]\n          };\n          const costPlusTable = {\n            name: this.intl.t('common.Tasks'),\n            index: 2,\n            width: 12,\n            elementType: 'TABLE',\n            borderStyle: 'BORDER',\n            axes: {\n              thead: [{\n                metric: 'TEXT',\n                valueOverride: '',\n                classes: [{\n                  class: 'd-none'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: ''\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.progress.Labour progress'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.Forecast cost'),\n                classes: [{\n                  class: 'text-right'\n                }],\n                tooltip: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.Estimated total cost')\n              }],\n              tfoot: [[{\n                metric: 'TEXT',\n                valueOverride: '',\n                classes: [{\n                  class: 'd-none'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: ''\n              }, {\n                subject: {\n                  resourceName: 'tasks',\n                  recursiveKey: 'parent',\n                  filter\n                },\n                metric: 'PROGRESS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                subject: {\n                  resourceName: 'tasks',\n                  recursiveKey: 'parent',\n                  filter: footerFilter\n                },\n                metric: 'FORECAST_QUOTE',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }]]\n            },\n            groupType: 'SEPARATE',\n            metricsSubject: {\n              resourceName: 'tasks',\n              recursiveKey: 'parent',\n              filter\n            },\n            metrics: [[{\n              metric: 'TASK_PATH',\n              classes: [{\n                class: 'd-none'\n              }]\n            }, {\n              metric: 'PROPERTY',\n              key: 'name',\n              linkTo: {\n                route: 'entity.builda-price.reports.projects.project.cost-to-complete.task',\n                modelKeys: ['project', '_id'],\n                queryParams: {\n                  selectedDate: {\n                    valueOverride: linkToEndDate\n                  }\n                }\n              }\n            }, {\n              metric: 'PROGRESS_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'FORECAST_QUOTE',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }]]\n          };\n          const taskTable = project.last.value.contractType === 'FIXED_PRICE' ? fixedPriceTable : costPlusTable;\n          if (entityCanUseInvoicing) {\n            taskTable.axes.thead.push({\n              metric: 'TEXT',\n              valueOverride: this.intl.t('common.Invoiced'),\n              classes: [{\n                class: 'text-right'\n              }]\n            });\n            taskTable.axes.thead.push({\n              metric: 'TEXT',\n              valueOverride: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.Cost to complete'),\n              classes: [{\n                class: 'text-right'\n              }],\n              tooltip: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.costToCompleteTooltip')\n            });\n            taskTable.axes.thead.push({\n              metric: 'TEXT',\n              valueOverride: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.costToCompletePercentage'),\n              classes: [{\n                class: 'text-right'\n              }]\n            });\n            taskTable.axes.tfoot[0].push({\n              subject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter: footerFilter\n              },\n              metric: 'INVOICED_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            });\n            taskTable.axes.tfoot[0].push({\n              subject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter: footerFilter\n              },\n              metric: 'FORECAST_QUOTE_NOT_INVOICED',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            });\n            taskTable.axes.tfoot[0].push({\n              subject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter: footerFilter\n              },\n              metric: 'FORECAST_QUOTE_NOT_INVOICED_PERCENTAGE',\n              classes: [{\n                class: 'text-right'\n              }],\n              upperLimit: 1,\n              dashZero: true\n            });\n            taskTable.metrics[0].push({\n              metric: 'INVOICED_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            });\n            taskTable.metrics[0].push({\n              metric: 'FORECAST_QUOTE_NOT_INVOICED',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            });\n            taskTable.metrics[0].push({\n              metric: 'FORECAST_QUOTE_NOT_INVOICED_PERCENTAGE',\n              classes: [{\n                class: 'text-right'\n              }],\n              upperLimit: 1,\n              dashZero: true\n            });\n          }\n          const report = {\n            name: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.Cost to complete report'),\n            dateRange: {\n              endDate\n            },\n            subjects: [summaryTable, taskTable]\n          };\n          let loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getAdHocReport\", null));\n    }\n    model({\n      selectedDate\n    }) {\n      const {\n        project_id: projectId\n      } = this.paramsFor(this.basePath);\n      this.getProject.perform(projectId);\n      this.getParentTasks.perform(this.getProject);\n      this.getAdHocReport.perform(selectedDate, this.getProject, this.getParentTasks);\n      return {\n        entity: this.sessionData.entity,\n        projectLevelReport: this.getAdHocReport,\n        basePath: this.basePath,\n        project: this.getProject\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/cost-to-complete/task\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  class _default extends _route.default {\n    model() {}\n  }\n  _exports.default = _default;\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/cost-to-complete/task/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.projects.project.cost-to-complete.task');\n      _defineProperty(this, \"queryParams\", {\n        selectedDate: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projectId) {\n          return yield this.store.findRecord('project', projectId);\n        }\n      }), null, \"getProject\", null));\n      _defineProperty(this, \"getTask\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (taskId) {\n          return yield this.store.findRecord('task', taskId);\n        }\n      }), null, \"getTask\", null));\n      _defineProperty(this, \"getParentTasks\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (task) {\n          yield task.last;\n          const generatePathsFromTask = async task => {\n            const parentTask = await task.belongsTo('parent').load();\n            if (parentTask) {\n              await generatePathsFromTask(parentTask);\n            }\n          };\n          yield generatePathsFromTask(task.last.value);\n        }\n      }), null, \"getParentTasks\", null));\n      _defineProperty(this, \"getAdHocReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (selectedDate, project, task, parentTasks) {\n          yield project.last;\n          yield task.last;\n          yield parentTasks.last;\n          const linkToEndDate = selectedDate;\n          const endDate = new Date(selectedDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const filter = {\n            project: project.last.value.id,\n            entity: this.sessionData.entity.id,\n            status: {\n              $in: ['ACTIVE', 'DRAFT_CREATED']\n            }\n          };\n          if (task.last.value.children.length) {\n            filter.parent = task.last.value.id;\n          } else {\n            filter._id = task.last.value.id;\n          }\n          const taskFilter = {\n            _id: task.last.value.id\n          };\n          const entityCanUseInvoicing = this.newFeatureFlags.entityCanUseInvoicingReport;\n          const summaryTable = {\n            name: this.intl.t('common.Summary'),\n            index: 1,\n            width: 3,\n            elementType: 'TABLE',\n            borderStyle: 'BORDER',\n            axes: {},\n            groupType: 'GROUPED',\n            metricsSubject: {\n              resourceName: 'tasks',\n              filter: taskFilter\n            },\n            metrics: [[{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('shared.progress.Labour progress')\n            }, {\n              metric: 'PROGRESS_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }]]\n          };\n          if (project.last.value.contractType === 'FIXED_PRICE') {\n            summaryTable.metrics.push([{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.Fixed price')\n            }, {\n              metric: 'FIXED_PRICE_QUOTE_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }]\n            }]);\n            summaryTable.metrics.push([[{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.Cost plus forecast')\n            }, {\n              metric: 'COST_PLUS_FORECAST_QUOTE',\n              classes: [{\n                class: 'text-right'\n              }]\n            }]]);\n          }\n          if (entityCanUseInvoicing) {\n            summaryTable.metrics.push([{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.Forecast cost')\n            }, {\n              metric: 'FORECAST_QUOTE',\n              classes: [{\n                class: 'text-right'\n              }]\n            }]);\n            summaryTable.metrics.push([{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('common.Invoiced')\n            }, {\n              metric: 'INVOICED_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }]\n            }]);\n            summaryTable.metrics.push([{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.Cost to complete')\n            }, {\n              metric: 'FORECAST_QUOTE_NOT_INVOICED',\n              classes: [{\n                class: 'text-right'\n              }]\n            }]);\n            summaryTable.metrics.push([{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.costToCompletePercentage')\n            }, {\n              metric: 'FORECAST_QUOTE_NOT_INVOICED_PERCENTAGE',\n              classes: [{\n                class: 'text-right'\n              }],\n              upperLimit: 1\n            }]);\n          }\n          const fixedPriceTable = {\n            name: this.intl.t('common.Tasks'),\n            index: 2,\n            width: 12,\n            elementType: 'TABLE',\n            borderStyle: 'BORDER',\n            axes: {\n              thead: [{\n                metric: 'TEXT',\n                valueOverride: '',\n                classes: [{\n                  class: 'd-none'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: ''\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.progress.Labour progress'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.Fixed price'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.Cost plus forecast'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }],\n              tfoot: [[{\n                metric: 'TEXT',\n                valueOverride: '',\n                classes: [{\n                  class: 'd-none'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: ''\n              }, {\n                subject: {\n                  resourceName: 'tasks',\n                  filter: taskFilter\n                },\n                metric: 'PROGRESS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                subject: {\n                  resourceName: 'tasks',\n                  filter: taskFilter\n                },\n                metric: 'FIXED_PRICE_QUOTE_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                subject: {\n                  resourceName: 'tasks',\n                  filter: taskFilter\n                },\n                metric: 'COST_PLUS_FORECAST_QUOTE',\n                classes: [{\n                  class: 'text-right'\n                }],\n                tooltip: this.intl.t('shared.reports.costTotalTooltip')\n              }]]\n            },\n            groupType: 'SEPARATE',\n            metricsSubject: {\n              resourceName: 'tasks',\n              recursiveKey: 'parent',\n              filter\n            },\n            metrics: [[{\n              metric: 'TASK_PATH',\n              classes: [{\n                class: 'd-none'\n              }]\n            }, {\n              metric: 'PROPERTY',\n              key: 'name',\n              linkTo: {\n                route: 'entity.builda-price.reports.projects.project.cost-to-complete.task',\n                modelKeys: ['project', '_id'],\n                queryParams: {\n                  selectedDate: {\n                    valueOverride: linkToEndDate\n                  }\n                }\n              }\n            }, {\n              metric: 'PROGRESS_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'FIXED_PRICE_QUOTE_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'COST_PLUS_FORECAST_QUOTE',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }]]\n          };\n          const costPlusTable = {\n            name: this.intl.t('common.Tasks'),\n            index: 2,\n            width: 12,\n            elementType: 'TABLE',\n            borderStyle: 'BORDER',\n            axes: {\n              thead: [{\n                metric: 'TEXT',\n                valueOverride: '',\n                classes: [{\n                  class: 'd-none'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: ''\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.progress.Labour progress'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.Forecast cost'),\n                classes: [{\n                  class: 'text-right'\n                }],\n                tooltip: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.Estimated total cost')\n              }],\n              tfoot: [[{\n                metric: 'TEXT',\n                valueOverride: '',\n                classes: [{\n                  class: 'd-none'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: ''\n              }, {\n                subject: {\n                  resourceName: 'tasks',\n                  filter: taskFilter\n                },\n                metric: 'PROGRESS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                subject: {\n                  resourceName: 'tasks',\n                  filter: taskFilter\n                },\n                metric: 'FORECAST_QUOTE',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }]]\n            },\n            groupType: 'SEPARATE',\n            metricsSubject: {\n              resourceName: 'tasks',\n              recursiveKey: 'parent',\n              filter\n            },\n            metrics: [[{\n              metric: 'TASK_PATH',\n              classes: [{\n                class: 'd-none'\n              }]\n            }, {\n              metric: 'PROPERTY',\n              key: 'name',\n              linkTo: {\n                route: 'entity.builda-price.reports.projects.project.cost-to-complete.task',\n                modelKeys: ['project', '_id'],\n                queryParams: {\n                  selectedDate: {\n                    valueOverride: linkToEndDate\n                  }\n                }\n              }\n            }, {\n              metric: 'PROGRESS_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'FORECAST_QUOTE',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }]]\n          };\n          const taskTable = project.last.value.contractType === 'FIXED_PRICE' ? fixedPriceTable : costPlusTable;\n          if (entityCanUseInvoicing) {\n            taskTable.axes.thead.push({\n              metric: 'TEXT',\n              valueOverride: this.intl.t('common.Invoiced'),\n              classes: [{\n                class: 'text-right'\n              }]\n            });\n            taskTable.axes.thead.push({\n              metric: 'TEXT',\n              valueOverride: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.Cost to complete'),\n              classes: [{\n                class: 'text-right'\n              }],\n              tooltip: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.costToCompleteTooltip')\n            });\n            taskTable.axes.thead.push({\n              metric: 'TEXT',\n              valueOverride: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.costToCompletePercentage'),\n              classes: [{\n                class: 'text-right'\n              }]\n            });\n            taskTable.axes.tfoot[0].push({\n              subject: {\n                resourceName: 'tasks',\n                filter: taskFilter\n              },\n              metric: 'INVOICED_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            });\n            taskTable.axes.tfoot[0].push({\n              subject: {\n                resourceName: 'tasks',\n                filter: taskFilter\n              },\n              metric: 'FORECAST_QUOTE_NOT_INVOICED',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            });\n            taskTable.axes.tfoot[0].push({\n              subject: {\n                resourceName: 'tasks',\n                filter: taskFilter\n              },\n              metric: 'FORECAST_QUOTE_NOT_INVOICED_PERCENTAGE',\n              classes: [{\n                class: 'text-right'\n              }],\n              upperLimit: 1,\n              dashZero: true\n            });\n            taskTable.metrics[0].push({\n              metric: 'INVOICED_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            });\n            taskTable.metrics[0].push({\n              metric: 'FORECAST_QUOTE_NOT_INVOICED',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            });\n            taskTable.metrics[0].push({\n              metric: 'FORECAST_QUOTE_NOT_INVOICED_PERCENTAGE',\n              classes: [{\n                class: 'text-right'\n              }],\n              upperLimit: 1,\n              dashZero: true\n            });\n          }\n          const report = {\n            name: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.Cost to complete report'),\n            dateRange: {\n              endDate\n            },\n            subjects: [summaryTable, taskTable]\n          };\n          let loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getAdHocReport\", null));\n    }\n    model({\n      selectedDate\n    }) {\n      const {\n        project_id: projectId\n      } = this.paramsFor('entity.builda-price.reports.projects.project');\n      const {\n        task_id: taskId\n      } = this.paramsFor(this.basePath);\n      this.getProject.perform(projectId);\n      this.getTask.perform(taskId);\n      this.getParentTasks.perform(this.getTask);\n      this.getAdHocReport.perform(selectedDate, this.getProject, this.getTask, this.getParentTasks);\n      return {\n        taskLevelReport: this.getAdHocReport,\n        basePath: this.basePath,\n        task: this.getTask,\n        parentTasks: this.getParentTasks\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/cost\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"moment\"], function (_exports, _asyncArrowRuntime, _route, _service, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"moment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor5, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.projects.project');\n      _defineProperty(this, \"queryParams\", {\n        startDate: {\n          refreshModel: true\n        },\n        endDate: {\n          refreshModel: true\n        },\n        costType: {\n          refreshModel: true\n        },\n        parentId: {\n          refreshModel: true\n        },\n        allocationType: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projectId) {\n          const project = yield this.store.findRecord('project', projectId);\n          return project;\n        }\n      }), null, \"getProject\", null));\n      _defineProperty(this, \"getSelectedTaskIds\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (tasks, parentId) {\n          let computedSelectedTaskIds = [];\n          if (parentId) {\n            yield tasks.last;\n            const taskIdsGroupedByParentId = new Map();\n            for (const task of tasks.last.value) {\n              const parentId = task.parent.get('id');\n              if (!taskIdsGroupedByParentId.has(parentId)) taskIdsGroupedByParentId.set(parentId, []);\n              taskIdsGroupedByParentId.get(parentId).push(task.id);\n            }\n            const parentsTasksIds = [];\n            (function getChildren(parentId) {\n              parentsTasksIds.push(parentId);\n              const childIds = taskIdsGroupedByParentId.get(parentId);\n              if (childIds) childIds.forEach(getChildren);\n            })(parentId);\n            computedSelectedTaskIds = parentsTasksIds;\n          } else {\n            yield tasks.last;\n            computedSelectedTaskIds = tasks.last.value.map(t => t.id);\n          }\n          return computedSelectedTaskIds;\n        }\n      }), null, \"getSelectedTaskIds\", null));\n      _defineProperty(this, \"getProjectTasks\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project) {\n          yield project.last;\n          const tasks = yield this.store.simpleQuery('task', {\n            entity: this.sessionData.entity.id,\n            project: project.last.value.id\n          });\n          return tasks.toArray();\n        }\n      }), null, \"getProjectTasks\", null));\n      _defineProperty(this, \"getCostReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project, costType, _startDate, _endDate, positionReportTaskIds, filterByDate, parentId, selectedTaskIds, allocationType) {\n          yield project.last;\n          yield positionReportTaskIds.last;\n          const taskIds = selectedTaskIds || positionReportTaskIds.last.value;\n          const startDate = (0, _moment.default)(_startDate).startOf('day').toDate();\n          const endDate = (0, _moment.default)(_endDate).endOf('day').toDate();\n          const report = {\n            name: this.intl.t('entity.builda-price.reports.projects.project.cost.Cost report'),\n            subjects: []\n          };\n          const billsFilter = {\n            $and: [{\n              status: {\n                $ne: 'HELD'\n              }\n            }, {\n              $or: []\n            }]\n          };\n          const timesheetsFilter = {\n            project: project.last.value.id,\n            task: {\n              $in: taskIds\n            }\n          };\n          if (allocationType) billsFilter.allocationType = allocationType;\n          if (filterByDate) {\n            report.dateRange = {\n              startDate,\n              endDate\n            };\n            billsFilter.issueDate = {\n              $lte: endDate,\n              $gte: startDate\n            };\n            const dayEndDate = (0, _moment.default)(endDate).format('YYYY-MM-DD');\n            const dayStartDate = (0, _moment.default)(startDate).format('YYYY-MM-DD');\n            timesheetsFilter.date = {\n              $lte: dayEndDate,\n              $gte: dayStartDate\n            };\n          }\n          if (!parentId && !selectedTaskIds) {\n            billsFilter['$and'][1]['$or'].push({\n              project: project.last.value.id\n            });\n            billsFilter['$and'][1]['$or'].push({\n              task: {\n                $in: taskIds\n              }\n            });\n          } else {\n            billsFilter['$and'][1]['$or'].push({\n              task: {\n                $in: taskIds\n              }\n            });\n          }\n          const showTimesheetsTable = ['TIMESHEETS', 'ALL'].includes(costType);\n          const showBillsTable = ['BILLS', 'ALL'].includes(costType);\n          const canUseInvoicingReports = this.newFeatureFlags.canUseProjectInvoicingReport(project.last.value);\n          const costReport = {\n            name: this.intl.t('common.Timesheets'),\n            index: 1,\n            width: 12,\n            elementType: 'TABLE',\n            borderStyle: 'BORDER',\n            searchEnabled: true,\n            axes: {\n              thead: [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Date')\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.First name')\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Last name')\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Task')\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('entity.builda-price.reports.projects.project.cost.Duration'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Cost'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }],\n              tfoot: [[{\n                metric: 'TEXT',\n                valueOverride: ''\n              }, {\n                metric: 'TEXT',\n                valueOverride: ''\n              }, {\n                metric: 'TEXT',\n                valueOverride: ''\n              }, {\n                metric: 'TEXT',\n                valueOverride: ''\n              }, {\n                subject: {\n                  resourceName: 'timesheets',\n                  filter: timesheetsFilter\n                },\n                metric: 'COST_MANHOURS',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                subject: {\n                  resourceName: 'timesheets',\n                  filter: timesheetsFilter\n                },\n                metric: 'COST_LABOUR',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }]]\n            },\n            groupType: 'SEPARATE',\n            metricsSubject: {\n              resourceName: 'timesheets',\n              sortKey: 'date',\n              sortDirection: 'DESC',\n              filter: timesheetsFilter\n            },\n            metrics: [[{\n              metric: 'PROPERTY',\n              key: 'date',\n              linkTo: {\n                route: 'entity.builda-price.operations.incoming.timesheets.timesheet',\n                queryParams: {\n                  date: {\n                    key: 'date'\n                  },\n                  worker: {\n                    key: 'worker'\n                  }\n                }\n              }\n            }, {\n              metric: 'RELATIONSHIP_PROPERTY',\n              key: 'worker.firstName'\n            }, {\n              metric: 'RELATIONSHIP_PROPERTY',\n              key: 'worker.lastName'\n            }, {\n              metric: 'RELATIONSHIP_PROPERTY',\n              key: 'task.name'\n            }, {\n              metric: 'TIMESHEET_DURATION',\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'TIMESHEET_COST',\n              classes: [{\n                class: 'text-right'\n              }]\n            }]]\n          };\n          const billReport = {\n            name: this.intl.t('common.Bills'),\n            index: showTimesheetsTable ? 2 : 1,\n            width: 12,\n            elementType: 'TABLE',\n            borderStyle: 'BORDER',\n            searchEnabled: true,\n            axes: {\n              thead: [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Bill number')\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Issuer')\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Reference')\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Item')\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Task')\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Value'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }],\n              tfoot: [[{\n                metric: 'TEXT',\n                valueOverride: ''\n              }, {\n                metric: 'TEXT',\n                valueOverride: ''\n              }, {\n                metric: 'TEXT',\n                valueOverride: ''\n              }, {\n                metric: 'TEXT',\n                valueOverride: ''\n              }, {\n                metric: 'TEXT',\n                valueOverride: ''\n              }, {\n                subject: {\n                  resourceName: 'bill-item-views',\n                  filter: billsFilter\n                },\n                metric: 'COST_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }]]\n            },\n            groupType: 'SEPARATE',\n            metricsSubject: {\n              resourceName: 'bill-item-views',\n              filter: billsFilter,\n              sortKey: 'billNumber'\n            },\n            metrics: [[{\n              metric: 'PROPERTY',\n              key: 'billNumber',\n              linkTo: {\n                route: 'entity.builda-price.operations.incoming.bills.bill',\n                modelKeys: ['bill']\n              }\n            }, {\n              metric: 'PROPERTY',\n              key: 'issuer'\n            }, {\n              metric: 'PROPERTY',\n              key: 'billName'\n            }, {\n              metric: 'PROPERTY',\n              key: 'description'\n            }, {\n              metric: 'PROPERTY',\n              key: 'taskName'\n            }, {\n              metric: 'BILL_ITEM_VALUE',\n              classes: [{\n                class: 'text-right'\n              }]\n            }]]\n          };\n\n          // only push invoiced figures if user has access to Invoicing reports\n          if (canUseInvoicingReports) {\n            costReport.axes.thead.push({\n              metric: 'TEXT',\n              valueOverride: 'Invoiced',\n              classes: [{\n                class: 'text-right'\n              }]\n            });\n            costReport.axes.tfoot[0].push({\n              metric: 'TEXT',\n              valueOverride: ''\n            });\n            costReport.metrics[0].push({\n              metric: 'INCLUDED_IN_INVOICE',\n              classes: [{\n                class: 'text-right'\n              }]\n            });\n\n            // push into bills report\n            billReport.axes.thead.push({\n              metric: 'TEXT',\n              valueOverride: 'Invoiced',\n              classes: [{\n                class: 'text-right'\n              }]\n            });\n            billReport.axes.tfoot[0].push({\n              metric: 'TEXT',\n              valueOverride: ''\n            });\n            billReport.metrics[0].push({\n              metric: 'INCLUDED_IN_INVOICE',\n              classes: [{\n                class: 'text-right'\n              }]\n            });\n          }\n          if (showTimesheetsTable) report.subjects.push(costReport);\n          if (showBillsTable) report.subjects.push(billReport);\n          let loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getCostReport\", null));\n    }\n    setupController(controller) {\n      super.setupController(...arguments);\n      controller.filterByDate = true;\n    }\n    model({\n      startDate,\n      endDate,\n      costType,\n      parentId,\n      allocationType\n    }) {\n      const {\n        project_id: projectId\n      } = this.paramsFor(this.basePath);\n      this.getProject.perform(projectId);\n      this.getProjectTasks.perform(this.getProject);\n      this.getSelectedTaskIds.perform(this.getProjectTasks, parentId);\n      this.getCostReport.perform(this.getProject, costType, startDate, endDate, this.getSelectedTaskIds, true, parentId, undefined, allocationType);\n      return {\n        project: this.getProject,\n        tasks: this.getProjectTasks,\n        basePath: this.basePath,\n        costTable: this.getCostReport,\n        selectedTaskIds: this.getSelectedTaskIds\n      };\n    }\n    resetController(controller, isExiting) {\n      if (isExiting) {\n        controller.parentId = null;\n        controller.allocationType = null;\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/forecast-breakdown/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.projects.project');\n      _defineProperty(this, \"queryParams\", {\n        selectedDate: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projectId) {\n          const project = yield this.store.simpleQuery('project', {\n            _id: projectId\n          });\n          return project.toArray()?.[0];\n        }\n      }), null, \"getProject\", null));\n      _defineProperty(this, \"getForecastTableReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project, selectedDate) {\n          yield project.last;\n          const filter = {\n            entity: this.sessionData.entity.id,\n            project: project.last.value.id,\n            status: {\n              $in: ['ACTIVE', 'DRAFT_CREATED']\n            }\n          };\n          const endDate = new Date(selectedDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const report = {\n            name: this.intl.t('entity.builda-price.reports.projects.project.forecast-breakdown.Forecast breakdown report'),\n            dateRange: {\n              endDate\n            },\n            subjects: [{\n              index: 1,\n              width: 12,\n              elementType: 'TABLE',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: 'Name'\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast hours'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Avg hourly cost'),\n                  tooltip: this.intl.t('shared.reports.avgHourlyCostTooltip'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast labour'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast materials'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast subcontractors'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Sums'),\n                  tooltip: this.intl.t('shared.reports.forecastReportSumsTooltip'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast total'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }],\n                tfoot: [[{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'FORECAST_MANHOURS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  metric: 'WORKERS_AVG_COST',\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'FORECAST_LABOUR',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'FORECAST_MATERIALS',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'FORECAST_SUBCONTRACTORS',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_SUMS',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'FORECAST_BUDGET',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }]]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TASK_PATH',\n                classes: [{\n                  class: 'd-none'\n                }]\n              }, {\n                metric: 'PROPERTY',\n                key: 'name',\n                linkTo: {\n                  route: 'entity.builda-price.reports.projects.project.forecast-breakdown.task',\n                  modelKeys: ['project', '_id'],\n                  queryParams: {\n                    selectedDate: {\n                      valueOverride: selectedDate\n                    }\n                  }\n                }\n              }, {\n                metric: 'FORECAST_MANHOURS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'WORKERS_AVG_COST',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'FORECAST_LABOUR',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'FORECAST_MATERIALS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'FORECAST_SUBCONTRACTORS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'BUDGET_SUMS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'FORECAST_BUDGET',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }]]\n            }]\n          };\n          const loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getForecastTableReport\", null));\n    }\n    model({\n      selectedDate\n    }) {\n      const {\n        project_id: projectId\n      } = this.paramsFor(this.basePath);\n      this.getProject.perform(projectId);\n      this.getForecastTableReport.perform(this.getProject, selectedDate);\n      return {\n        project: this.getProject,\n        forecastTable: this.getForecastTableReport\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/forecast-breakdown/task\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  class _default extends _route.default {\n    model() {}\n  }\n  _exports.default = _default;\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/forecast-breakdown/task/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.projects.project.forecast-breakdown.task');\n      _defineProperty(this, \"queryParams\", {\n        selectedDate: {\n          refreshModel: true\n        },\n        status: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getAdHocReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (selectedDate, projectId, task) {\n          yield task.last;\n          const filter = {\n            project: projectId,\n            entity: this.sessionData.entity.id,\n            status: {\n              $in: ['ACTIVE', 'DRAFT_CREATED']\n            }\n          };\n          if (task.last.value.children.length) {\n            filter.parent = task.last.value.id;\n          } else {\n            filter._id = task.last.value.id;\n          }\n          const endDate = new Date(selectedDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const report = {\n            name: this.intl.t('entity.builda-price.reports.projects.project.forecast-breakdown.Forecast breakdown report'),\n            dateRange: {\n              endDate\n            },\n            subjects: [{\n              index: 1,\n              width: 12,\n              elementType: 'TABLE',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: 'Name'\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast hours'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Avg hourly cost'),\n                  tooltip: this.intl.t('shared.reports.avgHourlyCostTooltip'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast labour'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast materials'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast subcontractors'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Sums'),\n                  tooltip: this.intl.t('shared.reports.forecastReportSumsTooltip'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast total'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }],\n                tfoot: [[{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'FORECAST_MANHOURS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  metric: 'WORKERS_AVG_COST',\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'FORECAST_LABOUR',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'FORECAST_MATERIALS',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'FORECAST_SUBCONTRACTORS',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_SUMS',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'FORECAST_BUDGET',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }]]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TASK_PATH',\n                classes: [{\n                  class: 'd-none'\n                }]\n              }, {\n                metric: 'PROPERTY',\n                key: 'name',\n                linkTo: {\n                  route: 'entity.builda-price.reports.projects.project.forecast-breakdown.task',\n                  modelKeys: ['project', '_id'],\n                  queryParams: {\n                    selectedDate: {\n                      valueOverride: selectedDate\n                    }\n                  }\n                }\n              }, {\n                metric: 'FORECAST_MANHOURS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'WORKERS_AVG_COST',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'FORECAST_LABOUR',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'FORECAST_MATERIALS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'FORECAST_SUBCONTRACTORS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'BUDGET_SUMS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'FORECAST_BUDGET',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }]]\n            }]\n          };\n          let loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getAdHocReport\", null));\n      _defineProperty(this, \"getTask\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (taskId) {\n          const task = yield this.store.simpleQuery('task', {\n            _id: taskId\n          });\n          return task.toArray()?.[0];\n        }\n      }), null, \"getTask\", null));\n      _defineProperty(this, \"getParentTasks\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (task) {\n          yield task.last;\n          const generatePathsFromTask = async task => {\n            const parentTask = await task.belongsTo('parent').load();\n            if (parentTask) {\n              await generatePathsFromTask(parentTask);\n            }\n          };\n          yield generatePathsFromTask(task.last.value);\n        }\n      }), null, \"getParentTasks\", null));\n    }\n    model({\n      selectedDate\n    }) {\n      const {\n        project_id: projectId\n      } = this.paramsFor('entity.builda-price.reports.projects.project');\n      const {\n        task_id: taskId\n      } = this.paramsFor(this.basePath);\n      this.getTask.perform(taskId);\n      this.getParentTasks.perform(this.getTask);\n      this.getAdHocReport.perform(selectedDate, projectId, this.getTask);\n      return {\n        forecastTable: this.getAdHocReport,\n        basePath: this.basePath,\n        task: this.getTask,\n        parentTasks: this.getParentTasks\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/index\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n    }\n    async beforeModel() {\n      const {\n        project_id: projectId\n      } = this.paramsFor('entity.builda-price.reports.projects.project');\n      const project = await this.store.findRecord('project', projectId);\n      const reportRoutes = [{\n        featureFlag: 'canUseProjectPositionReport',\n        route: 'entity.builda-price.reports.projects.project.position'\n      }, {\n        featureFlag: 'canUseProjectInvoicingReport',\n        route: 'entity.builda-price.reports.projects.project.invoicing'\n      }, {\n        featureFlag: 'canUseProjectProfitMarginReport',\n        route: 'entity.builda-price.reports.projects.project.profit-margins'\n      }, {\n        featureFlag: 'canUseProjectChargeupReport',\n        route: 'entity.builda-price.reports.projects.project.chargeup'\n      }, {\n        featureFlag: 'canUseProjectForecastReport',\n        route: 'entity.builda-price.reports.projects.project.forecast-breakdown'\n      }, {\n        featureFlag: 'canUseProjectCostReport',\n        route: 'entity.builda-price.reports.projects.project.cost'\n      }, {\n        featureFlag: 'canUseProjectQuoteReport',\n        route: 'entity.builda-price.reports.projects.project.quote'\n      }, {\n        featureFlag: 'canUseProjectBudgetReport',\n        route: 'entity.builda-price.reports.projects.project.budget'\n      }, {\n        featureFlag: 'canUseProjectLabourHourReport',\n        route: 'entity.builda-price.reports.projects.project.labour-hours'\n      }, {\n        featureFlag: 'canUseProjectClientReport',\n        route: 'entity.builda-price.reports.projects.project.cost-to-complete'\n      }];\n      const reportRoute = reportRoutes.find(({\n        featureFlag\n      }) => this.newFeatureFlags.includesFeatureFlags(project, featureFlag));\n      if (reportRoute) {\n        this.router.replaceWith(reportRoute.route, projectId);\n      } else {\n        this.router.replaceWith('entity.builda-price');\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/invoicing/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.projects.project');\n      _defineProperty(this, \"queryParams\", {\n        selectedDate: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projectId) {\n          const project = yield this.store.findRecord('project', projectId);\n          return project;\n        }\n      }), null, \"getProject\", null));\n      _defineProperty(this, \"getParentTasks\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project) {\n          yield project.last;\n          const filter = {\n            and: [{\n              field: 'entity',\n              op: 'EQ',\n              value: this.sessionData.entity.id\n            }, {\n              field: 'project',\n              op: 'EQ',\n              value: project.last.value.id\n            }, {\n              field: 'status',\n              op: 'IN',\n              value: ['ACTIVE', 'DRAFT_CREATED']\n            }, {\n              field: 'parent',\n              op: 'IS_NULL',\n              value: null\n            }]\n          };\n          const parentTasks = yield this.store.query('task', {\n            filter\n          });\n          return parentTasks.toArray();\n        }\n      }), null, \"getParentTasks\", null));\n      _defineProperty(this, \"getInvoiceReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project, selectedDate, parentTasks) {\n          yield project.last;\n          yield parentTasks.last;\n          const footerFilter = {\n            _id: {\n              $in: parentTasks.last.value.mapBy('id')\n            }\n          };\n          const filter = {\n            project: project.last.value.id,\n            entity: this.sessionData.entity.id,\n            status: {\n              $in: ['ACTIVE', 'DRAFT_CREATED']\n            }\n          };\n          const endDate = new Date(selectedDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const summaryMetricSubject = {\n            resourceName: 'projects',\n            filter: {\n              _id: project.last.value.id,\n              entity: this.sessionData.entity.id\n            }\n          };\n          const report = {\n            name: this.intl.t('entity.builda-price.reports.projects.project.invoicing.Invoicing report'),\n            dateRange: {\n              endDate\n            },\n            subjects: [{\n              name: this.intl.t('common.Summary'),\n              index: 1,\n              width: 2,\n              height: 2,\n              elementType: 'TABLE',\n              borderStyle: 'BORDER',\n              axes: {},\n              groupType: 'GROUPED',\n              metricsSubject: summaryMetricSubject,\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('entity.builda-price.reports.projects.project.invoicing.Total billable')\n              }, {\n                metric: 'INVOICEABLE_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('entity.builda-price.reports.projects.project.invoicing.Total invoiced')\n              }, {\n                metric: 'INVOICED_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('entity.builda-price.reports.projects.project.invoicing.Billable remaining')\n              }, {\n                metric: 'INVOICEABLE_TOTAL_REMAINING',\n                classes: [{\n                  class: 'text-right'\n                }],\n                lowerLimit: 0\n              }]]\n            }, {\n              index: 2,\n              width: 2,\n              height: 2,\n              name: this.intl.t('entity.builda-price.reports.projects.project.invoicing.Billable used'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.invoicing.Billable'),\n                  metric: 'TEXT'\n                }, {\n                  subject: summaryMetricSubject,\n                  metric: 'INVOICEABLE_TOTAL'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: summaryMetricSubject,\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('entity.builda-price.reports.projects.project.invoicing.Invoiced')\n              }, {\n                metric: 'INVOICED_TOTAL'\n              }]]\n            }, {\n              name: this.intl.t('common.Tasks'),\n              index: 3,\n              width: 12,\n              elementType: 'TABLE',\n              borderStyle: 'BORDER',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Name')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.invoicing.Total billable'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.invoicing.Billable to date'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.invoicing.Invoiced'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.invoicing.Billable remaining'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }],\n                tfoot: [[{\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    filter: footerFilter\n                  },\n                  metric: 'INVOICEABLE_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    filter: footerFilter\n                  },\n                  metric: 'INVOICEABLE_CURRENTLY_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    filter: footerFilter\n                  },\n                  metric: 'INVOICED_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    filter: footerFilter\n                  },\n                  metric: 'INVOICEABLE_TOTAL_REMAINING',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  lowerLimit: 0\n                }]]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TASK_PATH',\n                classes: [{\n                  class: 'd-none'\n                }]\n              }, {\n                metric: 'PROPERTY',\n                key: 'name',\n                linkTo: {\n                  route: 'entity.builda-price.reports.projects.project.invoicing.task',\n                  modelKeys: ['project', '_id'],\n                  queryParams: {\n                    selectedDate: {\n                      valueOverride: selectedDate\n                    }\n                  }\n                }\n              }, {\n                metric: 'INVOICEABLE_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'INVOICEABLE_CURRENTLY_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'INVOICED_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'INVOICEABLE_TOTAL_REMAINING',\n                classes: [{\n                  class: 'text-right'\n                }],\n                lowerLimit: 0\n              }]]\n            }, {\n              name: this.intl.t('entity.builda-price.reports.projects.project.invoicing.Invoice items'),\n              index: 4,\n              width: 12,\n              elementType: 'TABLE',\n              borderStyle: 'BORDER',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Invoice number')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Status')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.invoicing.To contact')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Description')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Value'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }],\n                tfoot: [[{\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  subject: {\n                    resourceName: 'invoice-item-views',\n                    filter: {\n                      project: project.last.value.id,\n                      issueDate: {\n                        $lte: endDate\n                      }\n                    }\n                  },\n                  metric: 'INVOICE_ITEM_VALUE',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }]]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'invoice-item-views',\n                filter: {\n                  project: project.last.value.id,\n                  issueDate: {\n                    $lte: endDate\n                  }\n                },\n                sortKey: 'invoiceNumber'\n              },\n              metrics: [[{\n                metric: 'PROPERTY',\n                key: 'invoiceNumber',\n                linkTo: {\n                  route: 'entity.builda-price.operations.outgoing.invoices.invoice',\n                  modelKeys: ['invoiceId']\n                }\n              }, {\n                metric: 'PROPERTY',\n                key: 'status',\n                humanEnums: true\n              }, {\n                metric: 'PROPERTY',\n                key: 'toContact'\n              }, {\n                metric: 'PROPERTY',\n                key: 'description'\n              }, {\n                metric: 'INVOICE_ITEM_VALUE',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }]]\n            }]\n          };\n          const loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getInvoiceReport\", null));\n    }\n    model({\n      selectedDate\n    }) {\n      const {\n        project_id: projectId\n      } = this.paramsFor(this.basePath);\n      this.getProject.perform(projectId);\n      this.getParentTasks.perform(this.getProject);\n      this.getInvoiceReport.perform(this.getProject, selectedDate, this.getParentTasks);\n      return {\n        project: this.getProject,\n        basePath: this.basePath,\n        invoiceTable: this.getInvoiceReport\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/invoicing/task\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  class _default extends _route.default {\n    model() {}\n  }\n  _exports.default = _default;\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/invoicing/task/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.projects.project.invoicing.task');\n      _defineProperty(this, \"queryParams\", {\n        selectedDate: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getTask\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (taskId) {\n          const task = yield this.store.findRecord('task', taskId);\n          return task;\n        }\n      }), null, \"getTask\", null));\n      _defineProperty(this, \"getInvoiceReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (selectedDate, projectId, task) {\n          yield task.last;\n          const filter = {\n            project: projectId,\n            entity: this.sessionData.entity.id,\n            status: {\n              $in: ['ACTIVE', 'DRAFT_CREATED']\n            }\n          };\n          if (task.last.value.children.length) {\n            filter.parent = task.last.value.id;\n          } else {\n            filter._id = task.last.value.id;\n          }\n          const endDate = new Date(selectedDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const report = {\n            name: this.intl.t('entity.builda-price.reports.projects.project.invoicing.Invoicing report'),\n            dateRange: {\n              endDate\n            },\n            subjects: [{\n              name: this.intl.t('common.Summary'),\n              index: 1,\n              width: 2,\n              height: 2,\n              elementType: 'TABLE',\n              borderStyle: 'BORDER',\n              axes: {},\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'tasks',\n                filter: {\n                  _id: task.last.value.id\n                }\n              },\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('entity.builda-price.reports.projects.project.invoicing.Total billable')\n              }, {\n                metric: 'INVOICEABLE_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('entity.builda-price.reports.projects.project.invoicing.Total invoiced')\n              }, {\n                metric: 'INVOICED_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('entity.builda-price.reports.projects.project.invoicing.Billable remaining')\n              }, {\n                metric: 'INVOICEABLE_TOTAL_REMAINING',\n                classes: [{\n                  class: 'text-right'\n                }],\n                lowerLimit: 0\n              }]]\n            }, {\n              index: 2,\n              width: 2,\n              height: 2,\n              name: this.intl.t('entity.builda-price.reports.projects.project.invoicing.Billable used'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.invoicing.Billable'),\n                  metric: 'TEXT'\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    filter: {\n                      _id: task.last.value.id\n                    }\n                  },\n                  metric: 'INVOICEABLE_TOTAL'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'tasks',\n                filter: {\n                  _id: task.last.value.id\n                }\n              },\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('entity.builda-price.reports.projects.project.invoicing.Invoiced')\n              }, {\n                metric: 'INVOICED_TOTAL'\n              }]]\n            }, {\n              name: this.intl.t('common.Tasks'),\n              index: 3,\n              width: 12,\n              elementType: 'TABLE',\n              borderStyle: 'BORDER',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Name')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.invoicing.Total billable'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.invoicing.Billable to date'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.invoicing.Invoiced'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.invoicing.Billable remaining'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }],\n                tfoot: [[{\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    filter: {\n                      _id: task.last.value.id\n                    }\n                  },\n                  metric: 'INVOICEABLE_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    filter: {\n                      _id: task.last.value.id\n                    }\n                  },\n                  metric: 'INVOICEABLE_CURRENTLY_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    filter: {\n                      _id: task.last.value.id\n                    }\n                  },\n                  metric: 'INVOICED_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    filter: {\n                      _id: task.last.value.id\n                    }\n                  },\n                  metric: 'INVOICEABLE_TOTAL_REMAINING',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  lowerLimit: 0\n                }]]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TASK_PATH',\n                classes: [{\n                  class: 'd-none'\n                }]\n              }, {\n                metric: 'PROPERTY',\n                key: 'name',\n                linkTo: {\n                  route: 'entity.builda-price.reports.projects.project.invoicing.task',\n                  modelKeys: ['project', '_id'],\n                  queryParams: {\n                    selectedDate: {\n                      valueOverride: selectedDate\n                    }\n                  }\n                }\n              }, {\n                metric: 'INVOICEABLE_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'INVOICEABLE_CURRENTLY_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'INVOICED_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'INVOICEABLE_TOTAL_REMAINING',\n                classes: [{\n                  class: 'text-right'\n                }],\n                lowerLimit: 0\n              }]]\n            }, {\n              name: this.intl.t('entity.builda-price.reports.projects.project.invoicing.Invoice items'),\n              index: 4,\n              width: 12,\n              elementType: 'TABLE',\n              borderStyle: 'BORDER',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Invoice number')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Status')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.invoicing.To contact')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Description')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Value'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }],\n                tfoot: [[{\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  subject: {\n                    resourceName: 'invoice-item-views',\n                    filter: {\n                      task: task.last.value.id,\n                      issueDate: {\n                        $lte: endDate\n                      }\n                    }\n                  },\n                  metric: 'INVOICE_ITEM_VALUE',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }]]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'invoice-item-views',\n                filter: {\n                  task: task.last.value.id,\n                  issueDate: {\n                    $lte: endDate\n                  }\n                },\n                sortKey: 'invoiceNumber'\n              },\n              metrics: [[{\n                metric: 'PROPERTY',\n                key: 'invoiceNumber',\n                linkTo: {\n                  route: 'entity.builda-price.operations.outgoing.invoices.invoice',\n                  modelKeys: ['invoiceId']\n                }\n              }, {\n                metric: 'PROPERTY',\n                key: 'status',\n                humanEnums: true\n              }, {\n                metric: 'PROPERTY',\n                key: 'toContact'\n              }, {\n                metric: 'PROPERTY',\n                key: 'description'\n              }, {\n                metric: 'INVOICE_ITEM_VALUE',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }]]\n            }]\n          };\n          const loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getInvoiceReport\", null));\n      _defineProperty(this, \"getParentTasks\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (task) {\n          yield task.last;\n          const generatePathsFromTask = async task => {\n            const parentTask = await task.belongsTo('parent').load();\n            if (parentTask) {\n              await generatePathsFromTask(parentTask);\n            }\n          };\n          yield generatePathsFromTask(task.last.value);\n        }\n      }), null, \"getParentTasks\", null));\n    }\n    model({\n      selectedDate\n    }) {\n      const {\n        project_id: projectId\n      } = this.paramsFor('entity.builda-price.reports.projects.project');\n      const {\n        task_id: taskId\n      } = this.paramsFor(this.basePath);\n      this.getTask.perform(taskId);\n      this.getParentTasks.perform(this.getTask);\n      this.getInvoiceReport.perform(selectedDate, projectId, this.getTask);\n      return {\n        task: this.getTask,\n        basePath: this.basePath,\n        invoiceTable: this.getInvoiceReport,\n        parentTasks: this.getParentTasks\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/labour-hours/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"moment\"], function (_exports, _asyncArrowRuntime, _route, _service, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"moment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.projects.project');\n      _defineProperty(this, \"queryParams\", {\n        selectedDate: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projectId) {\n          const project = yield this.store.findRecord('project', projectId);\n          return project;\n        }\n      }), null, \"getProject\", null));\n      _defineProperty(this, \"getLabourHoursReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project, selectedDate) {\n          yield project.last;\n          const filter = {\n            project: project.last.value.id,\n            entity: this.sessionData.entity.id,\n            status: {\n              $in: ['ACTIVE', 'DRAFT_CREATED']\n            }\n          };\n          const canUseCostReports = this.newFeatureFlags.includesFeatureFlags(project.last.value, 'canUseProjectCostReport');\n          const linkToStartDate = (0, _moment.default)(this.sessionData.entity.dateCreated).format('YYYY-MM-DD');\n          const linkToEndDate = selectedDate;\n          const endDate = new Date(selectedDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const report = {\n            name: this.intl.t('shared.reports.Labour hours report'),\n            dateRange: {\n              endDate\n            },\n            subjects: [{\n              index: 1,\n              width: 2,\n              height: 2,\n              name: this.intl.t('shared.reports.Current position'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget')\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_MANHOURS'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Actual')\n              }, {\n                metric: 'COST_MANHOURS'\n              }]]\n            }, {\n              index: 2,\n              width: 2,\n              height: 2,\n              name: this.intl.t('shared.reports.Forecast position'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget')\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_MANHOURS'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Forecast')\n              }, {\n                subject: {\n                  resourceName: 'tasks',\n                  recursiveKey: 'parent',\n                  filter\n                },\n                metric: 'FORECAST_MANHOURS_TOTAL'\n              }]]\n            }, {\n              index: 3,\n              width: 12,\n              elementType: 'TABLE',\n              borderStyle: 'BORDER',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Name')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.progress.Labour progress'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Actual'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Budget used'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast'),\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  tooltip: this.intl.t('shared.reports.Forecasted from progress')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast variance'),\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  tooltip: this.intl.t('shared.reports.forecastVarianceTooltip')\n                }],\n                tfoot: [[{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'PROGRESS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_MANHOURS',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'COST_MANHOURS',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_MANHOURS_USED',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'FORECAST_MANHOURS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'VARIANCE_MANHOURS',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  showPositiveNegativeIndicator: true,\n                  upperLimit: 0,\n                  dashZero: true\n                }]]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TASK_PATH',\n                classes: [{\n                  class: 'd-none'\n                }]\n              }, {\n                metric: 'PROPERTY',\n                key: 'name',\n                linkTo: {\n                  route: 'entity.builda-price.reports.projects.project.labour-hours.task',\n                  modelKeys: ['project', '_id'],\n                  queryParams: {\n                    selectedDate: {\n                      valueOverride: selectedDate\n                    },\n                    parentId: {\n                      key: '_id'\n                    }\n                  }\n                }\n              }, {\n                metric: 'PROGRESS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'BUDGET_MANHOURS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'COST_MANHOURS',\n                linkTo: canUseCostReports ? {\n                  route: 'entity.builda-price.reports.projects.project.cost',\n                  queryParams: {\n                    costType: {\n                      valueOverride: 'TIMESHEETS'\n                    },\n                    startDate: {\n                      valueOverride: linkToStartDate\n                    },\n                    endDate: {\n                      valueOverride: linkToEndDate\n                    },\n                    parentId: {\n                      key: '_id'\n                    }\n                  }\n                } : undefined,\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'BUDGET_MANHOURS_USED',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'FORECAST_MANHOURS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'VARIANCE_MANHOURS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                showPositiveNegativeIndicator: true,\n                upperLimit: 0,\n                dashZero: true\n              }]]\n            }]\n          };\n          const loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n          return loadedReport;\n        }\n      }), null, \"getLabourHoursReport\", null));\n    }\n    model({\n      selectedDate\n    }) {\n      const {\n        project_id: projectId\n      } = this.paramsFor(this.basePath);\n      this.getProject.perform(projectId);\n      this.getLabourHoursReport.perform(this.getProject, selectedDate);\n      return {\n        project: this.getProject,\n        basePath: this.basePath,\n        labourHoursTable: this.getLabourHoursReport\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/labour-hours/task\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  class _default extends _route.default {\n    model() {}\n  }\n  _exports.default = _default;\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/labour-hours/task/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"moment\"], function (_exports, _asyncArrowRuntime, _route, _service, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"moment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.projects.project.labour-hours.task');\n      _defineProperty(this, \"queryParams\", {\n        selectedDate: {\n          refreshModel: true\n        },\n        status: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getAdHocReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (selectedDate, projectId, task, parentTasks) {\n          yield task.last;\n          yield parentTasks.last;\n          const filter = {\n            project: projectId,\n            entity: this.sessionData.entity.id,\n            status: {\n              $in: ['ACTIVE', 'DRAFT_CREATED']\n            }\n          };\n          if (task.last.value.children.length) {\n            filter.parent = task.last.value.id;\n          } else {\n            filter._id = task.last.value.id;\n          }\n          const canUseCostReports = this.newFeatureFlags.includesFeatureFlags(task.last.value, 'canUseCostReport');\n          const linkToStartDate = (0, _moment.default)(this.sessionData.entity.dateCreated).format('YYYY-MM-DD');\n          const linkToEndDate = selectedDate;\n          const endDate = new Date(selectedDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const report = {\n            name: this.intl.t('shared.reports.Position report'),\n            dateRange: {\n              endDate\n            },\n            subjects: [{\n              index: 1,\n              width: 2,\n              height: 2,\n              name: this.intl.t('shared.reports.Current position'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget')\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_MANHOURS'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Actual')\n              }, {\n                metric: 'COST_MANHOURS'\n              }]]\n            }, {\n              index: 2,\n              width: 2,\n              height: 2,\n              name: this.intl.t('shared.reports.Forecast position'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget')\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_MANHOURS'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Forecast')\n              }, {\n                subject: {\n                  resourceName: 'tasks',\n                  recursiveKey: 'parent',\n                  filter\n                },\n                metric: 'FORECAST_MANHOURS_TOTAL'\n              }]]\n            }, {\n              name: this.intl.t('common.Tasks'),\n              index: 3,\n              width: 12,\n              borderStyle: 'BORDER',\n              elementType: 'TABLE',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Name')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.progress.Labour progress'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Actual'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Budget used'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast'),\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  tooltip: this.intl.t('shared.reports.Forecasted from progress')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast variance'),\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  tooltip: this.intl.t('shared.reports.forecastVarianceTooltip')\n                }],\n                tfoot: [[{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'PROGRESS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_MANHOURS',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'COST_MANHOURS',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_MANHOURS_USED',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'FORECAST_MANHOURS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'VARIANCE_MANHOURS',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  showPositiveNegativeIndicator: true,\n                  upperLimit: 0,\n                  dashZero: true\n                }]]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TASK_PATH',\n                classes: [{\n                  class: 'd-none'\n                }]\n              }, {\n                metric: 'PROPERTY',\n                key: 'name',\n                linkTo: {\n                  route: 'entity.builda-price.reports.projects.project.labour-hours.task',\n                  modelKeys: ['project', '_id']\n                }\n              }, {\n                metric: 'PROGRESS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'BUDGET_MANHOURS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'COST_MANHOURS',\n                linkTo: canUseCostReports ? {\n                  route: 'entity.builda-price.reports.projects.project.cost',\n                  queryParams: {\n                    costType: {\n                      valueOverride: 'TIMESHEETS'\n                    },\n                    parentId: {\n                      valueOverride: task.last.value.id\n                    },\n                    startDate: {\n                      valueOverride: linkToStartDate\n                    },\n                    endDate: {\n                      valueOverride: linkToEndDate\n                    }\n                  }\n                } : undefined,\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'BUDGET_MANHOURS_USED',\n                classes: [{\n                  class: 'text-right'\n                }],\n                upperLimit: 1,\n                dashZero: true\n              }, {\n                metric: 'FORECAST_MANHOURS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'VARIANCE_MANHOURS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                showPositiveNegativeIndicator: true,\n                upperLimit: 0,\n                dashZero: true\n              }]]\n            }]\n          };\n          let loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getAdHocReport\", null));\n      _defineProperty(this, \"getTask\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (taskId) {\n          const task = yield this.store.simpleQuery('task', {\n            _id: taskId\n          });\n          return task.toArray()?.[0];\n        }\n      }), null, \"getTask\", null));\n      _defineProperty(this, \"getParentTasks\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (task) {\n          yield task.last;\n          const generatePathsFromTask = async task => {\n            const parentTask = await task.belongsTo('parent').load();\n            if (parentTask) {\n              await generatePathsFromTask(parentTask);\n            }\n          };\n          yield generatePathsFromTask(task.last.value);\n        }\n      }), null, \"getParentTasks\", null));\n    }\n    model({\n      selectedDate\n    }) {\n      const {\n        project_id: projectId\n      } = this.paramsFor('entity.builda-price.reports.projects.project');\n      const {\n        task_id: taskId\n      } = this.paramsFor(this.basePath);\n      this.getTask.perform(taskId);\n      this.getParentTasks.perform(this.getTask);\n      this.getAdHocReport.perform(selectedDate, projectId, this.getTask, this.getParentTasks);\n      return {\n        taskLevelReport: this.getAdHocReport,\n        basePath: this.basePath,\n        task: this.getTask,\n        parentTasks: this.getParentTasks\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/notes\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"moment\"], function (_exports, _asyncArrowRuntime, _route, _service, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"moment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.projects.project');\n      _defineProperty(this, \"queryParams\", {\n        startDate: {\n          refreshModel: false\n        },\n        endDate: {\n          refreshModel: false\n        },\n        filterByDate: {\n          refreshModel: false\n        },\n        invoiceId: {\n          refreshModel: false\n        },\n        workerIds: {\n          refreshModel: false\n        }\n      });\n      _defineProperty(this, \"getProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projectId) {\n          const project = yield this.store.findRecord('project', projectId);\n          return project;\n        }\n      }), null, \"getProject\", null));\n      _defineProperty(this, \"getWorkers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          return this.store.simpleQuery('worker', {\n            entity: this.sessionData.entity.id,\n            isActive: true\n          }, {\n            sort: 'firstName,lastName'\n          });\n        }\n      }), null, \"getWorkers\", null));\n      _defineProperty(this, \"getSelectedTaskIds\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (tasks) {\n          yield tasks.last;\n          if (!tasks.last.value) return [];\n          return tasks.last.value.map(t => t.id);\n        }\n      }), null, \"getSelectedTaskIds\", null));\n      _defineProperty(this, \"getProjectTasks\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project) {\n          yield project.last;\n          const tasks = yield this.store.simpleQuery('task', {\n            entity: this.sessionData.entity.id,\n            project: project.last.value.id\n          });\n          return tasks.toArray();\n        }\n      }), null, \"getProjectTasks\", null));\n      _defineProperty(this, \"getNoteReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project, _startDate, _endDate, filterByDate, selectedTaskIds, workerIds, invoiceId) {\n          if (project.isRunning) yield project.last;\n          const startDate = new Date(_startDate);\n          const endDate = new Date(_endDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const filter = {\n            $and: [{\n              entityId: {\n                $eq: this.sessionData.entity.id\n              },\n              projectId: {\n                $eq: project.last.value.id\n              }\n            }]\n          };\n          if (invoiceId) {\n            filter.$and.push({\n              linkedInvoiceIds: {\n                $like: `%${invoiceId}%`\n              }\n            });\n          } else {\n            if (selectedTaskIds && selectedTaskIds.length > 0) {\n              filter.$and.push({\n                taskId: {\n                  $in: selectedTaskIds\n                }\n              });\n            }\n            if (workerIds && workerIds.length > 0) {\n              filter.$and.push({\n                workerId: {\n                  $in: workerIds\n                }\n              });\n            }\n            if (filterByDate) {\n              const dayEndDate = (0, _moment.default)(endDate).format('YYYY-MM-DD');\n              const dayStartDate = (0, _moment.default)(startDate).format('YYYY-MM-DD');\n              filter.$and.push({\n                date: {\n                  $lte: dayEndDate,\n                  $gte: dayStartDate\n                }\n              });\n            }\n          }\n          const noteReport = {\n            index: 1,\n            width: 12,\n            elementType: 'NOTE_TIMELINE',\n            groupType: 'SEPARATE',\n            metricsSubject: {\n              resourceName: 'timesheet-note-views',\n              sortKey: 'date',\n              sortDirection: 'DESC',\n              filter\n            },\n            metrics: [[{\n              metric: 'PROPERTY',\n              key: 'date'\n            }, {\n              metric: 'PROPERTY',\n              key: 'workerName'\n            }, [{\n              metric: 'PROPERTY',\n              key: 'taskName'\n            }, {\n              metric: 'RELATIONSHIP_PROPERTY',\n              key: 'timesheet.duration'\n            }], {\n              metric: 'PROPERTY',\n              key: 'note'\n            }, {\n              metric: 'RELATIONSHIP_PROPERTY',\n              key: 'attachments.file'\n            }, {\n              metric: 'PROPERTY',\n              key: 'noteType'\n            }, {\n              metric: 'TEXT',\n              valueOverride: 'View timesheet',\n              linkTo: {\n                route: 'entity.builda-price.operations.incoming.timesheets.timesheet',\n                queryParams: {\n                  date: {\n                    key: 'date'\n                  },\n                  worker: {\n                    key: 'workerId'\n                  }\n                }\n              }\n            }]]\n          };\n          const report = {\n            name: 'Notes',\n            subjects: [noteReport]\n          };\n          if (!invoiceId && filterByDate) {\n            report.dateRange = {\n              startDate,\n              endDate\n            };\n          }\n          let loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n          return loadedReport;\n        }\n      }), null, \"getNoteReport\", null));\n    }\n    model(params) {\n      const {\n        project_id: projectId\n      } = this.paramsFor(this.basePath);\n      this.getProject.perform(projectId);\n      this.getWorkers.perform();\n      this.getProjectTasks.perform(this.getProject);\n      this.getSelectedTaskIds.perform(this.getProjectTasks);\n      const workerIds = params.workerIds?.split(',');\n      this.getNoteReport.perform(this.getProject, params.startDate, params.endDate, params.filterByDate, undefined, workerIds, params.invoiceId);\n      return {\n        project: this.getProject,\n        tasks: this.getProjectTasks,\n        basePath: this.basePath,\n        noteReport: this.getNoteReport,\n        selectedTaskIds: this.getSelectedTaskIds,\n        getWorkers: this.getWorkers\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/position/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"moment\"], function (_exports, _asyncArrowRuntime, _route, _service, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"moment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.projects.project');\n      _defineProperty(this, \"queryParams\", {\n        selectedDate: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projectId) {\n          return yield this.store.findRecord('project', projectId);\n        }\n      }), null, \"getProject\", null));\n      _defineProperty(this, \"getAdHocReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (selectedDate, project) {\n          yield project.last;\n          const canUseBudgetReports = this.newFeatureFlags.includesFeatureFlags(project.last.value, 'canUseProjectBudgetReport');\n          const canUseCostReports = this.newFeatureFlags.includesFeatureFlags(project.last.value, 'canUseProjectCostReport');\n          const linkToStartDate = (0, _moment.default)(this.sessionData.entity.dateCreated).format('YYYY-MM-DD');\n          const linkToEndDate = selectedDate;\n          const endDate = new Date(selectedDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const filter = {\n            project: project.last.value.id,\n            entity: this.sessionData.entity.id,\n            status: {\n              $in: ['ACTIVE', 'DRAFT_CREATED']\n            }\n          };\n          const canUseProjectPositionReport = this.newFeatureFlags.includesFeatureFlags(project.last.value, 'canUsePositionReport');\n          const summaryMetricSubject = canUseProjectPositionReport ? {\n            resourceName: 'projects',\n            filter: {\n              _id: project.last.value.id,\n              entity: this.sessionData.entity.id\n            }\n          } : {\n            resourceName: 'tasks',\n            filter\n          };\n          const financialBreakDown = {\n            name: this.intl.t('shared.reports.Financial breakdown'),\n            index: 4,\n            width: 7,\n            elementType: 'TABLE',\n            borderStyle: 'BORDER',\n            axes: {\n              thead: [{\n                metric: 'TEXT',\n                valueOverride: ''\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Labour'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Materials'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Subcontractors'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Sums'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Total'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }]\n            },\n            groupType: 'GROUPED',\n            metricsSubject: summaryMetricSubject,\n            metrics: [[{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('common.Budget')\n            }, {\n              metric: 'BUDGET_LABOUR',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'BUDGET_MATERIALS',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'BUDGET_SUBCONTRACTORS',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'BUDGET_SUMS',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'BUDGET_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }], [{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('shared.reports.Actual')\n            }, {\n              metric: 'COST_LABOUR',\n              linkTo: canUseCostReports ? {\n                route: 'entity.builda-price.reports.projects.project.cost',\n                queryParams: {\n                  costType: {\n                    valueOverride: 'ALL'\n                  },\n                  allocationType: {\n                    valueOverride: 'LABOUR'\n                  },\n                  startDate: {\n                    valueOverride: linkToStartDate\n                  },\n                  endDate: {\n                    valueOverride: linkToEndDate\n                  }\n                }\n              } : undefined,\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'COST_MATERIALS',\n              linkTo: canUseCostReports ? {\n                route: 'entity.builda-price.reports.projects.project.cost',\n                queryParams: {\n                  costType: {\n                    valueOverride: 'BILLS'\n                  },\n                  allocationType: {\n                    valueOverride: 'MATERIALS'\n                  },\n                  startDate: {\n                    valueOverride: linkToStartDate\n                  },\n                  endDate: {\n                    valueOverride: linkToEndDate\n                  }\n                }\n              } : undefined,\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'COST_SUBCONTRACTORS',\n              linkTo: canUseCostReports ? {\n                route: 'entity.builda-price.reports.projects.project.cost',\n                queryParams: {\n                  costType: {\n                    valueOverride: 'BILLS'\n                  },\n                  allocationType: {\n                    valueOverride: 'SUBCONTRACTORS'\n                  },\n                  startDate: {\n                    valueOverride: linkToStartDate\n                  },\n                  endDate: {\n                    valueOverride: linkToEndDate\n                  }\n                }\n              } : undefined,\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'TEXT',\n              valueOverride: ''\n            }, {\n              metric: 'COST_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }]\n            }], [{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('common.Used')\n            }, {\n              metric: 'BUDGET_LABOUR_USED',\n              classes: [{\n                class: 'text-right'\n              }],\n              upperLimit: 1,\n              dashZero: true\n            }, {\n              metric: 'BUDGET_MATERIALS_USED',\n              classes: [{\n                class: 'text-right'\n              }],\n              upperLimit: 1,\n              dashZero: true\n            }, {\n              metric: 'BUDGET_SUBCONTRACTORS_USED',\n              classes: [{\n                class: 'text-right'\n              }],\n              upperLimit: 1,\n              dashZero: true\n            }, {\n              metric: 'TEXT',\n              valueOverride: ''\n            }, {\n              metric: 'BUDGET_TOTAL_USED',\n              classes: [{\n                class: 'text-right'\n              }],\n              upperLimit: 1,\n              dashZero: true\n            }], [{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('common.Quote')\n            }, {\n              metric: 'QUOTE_LABOUR',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'QUOTE_MATERIALS',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'QUOTE_SUBCONTRACTORS',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'QUOTE_SUMS',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'QUOTE_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }], [{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('common.Chargeup')\n            }, {\n              metric: 'CHARGEUP_LABOUR',\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'CHARGEUP_MATERIALS',\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'CHARGEUP_SUBCONTRACTORS',\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'TEXT',\n              valueOverride: ''\n            }, {\n              metric: 'CHARGEUP_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }]\n            }]]\n          };\n          if (this.newFeatureFlags.canUseProjectInvoicingReport(project.last.value)) {\n            financialBreakDown.metrics.push([{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('common.Invoiced')\n            }, {\n              metric: 'INVOICED_LABOUR',\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'INVOICED_MATERIALS',\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'INVOICED_SUBCONTRACTORS',\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'TEXT',\n              valueOverride: ''\n            }, {\n              metric: 'INVOICED_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }]\n            }]);\n          }\n          const report = {\n            name: this.intl.t('shared.reports.Position report'),\n            dateRange: {\n              endDate\n            },\n            subjects: [{\n              index: 1,\n              width: 2,\n              height: 2,\n              name: this.intl.t('shared.reports.Forecast used'),\n              elementType: 'BIG_TEXT',\n              borderStyle: 'BORDER',\n              groupType: 'GROUPED',\n              metricsSubject: summaryMetricSubject,\n              axes: {\n                label: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.report.The amount of your forecast used')\n                }]]\n              },\n              metrics: [[{\n                metric: 'FINANCIAL_PROGRESS_TOTAL'\n              }]]\n            }, {\n              index: 2,\n              width: 2,\n              height: 2,\n              name: this.intl.t('shared.reports.Current position'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget')\n                }, {\n                  subject: summaryMetricSubject,\n                  metric: 'BUDGET_TOTAL'\n                }], [{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Quote')\n                }, {\n                  subject: summaryMetricSubject,\n                  metric: 'QUOTE_TOTAL'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: summaryMetricSubject,\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Actual')\n              }, {\n                metric: 'COST_TOTAL'\n              }]]\n            }, {\n              index: 3,\n              width: 2,\n              height: 2,\n              name: this.intl.t('shared.reports.Forecast position'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget')\n                }, {\n                  subject: summaryMetricSubject,\n                  metric: 'BUDGET_TOTAL'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: summaryMetricSubject,\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Forecast')\n              }, {\n                subject: summaryMetricSubject,\n                metric: 'FORECAST_BUDGET'\n              }]]\n            }, financialBreakDown, {\n              name: this.intl.t('common.Labour hours'),\n              index: 5,\n              width: 3,\n              elementType: 'TABLE',\n              borderStyle: 'BORDER',\n              axes: {},\n              groupType: 'GROUPED',\n              metricsSubject: summaryMetricSubject,\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Budget')\n              }, {\n                metric: 'BUDGET_MANHOURS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Actual')\n              }, {\n                metric: 'COST_MANHOURS',\n                linkTo: canUseCostReports ? {\n                  route: 'entity.builda-price.reports.projects.project.cost',\n                  queryParams: {\n                    startDate: {\n                      valueOverride: linkToStartDate\n                    },\n                    endDate: {\n                      valueOverride: linkToEndDate\n                    },\n                    costType: {\n                      valueOverride: 'TIMESHEETS'\n                    }\n                  }\n                } : undefined,\n                classes: [{\n                  class: 'text-right'\n                }]\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Used')\n              }, {\n                metric: 'BUDGET_MANHOURS_USED',\n                classes: [{\n                  class: 'text-right'\n                }],\n                upperLimit: 1,\n                dashZero: true\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Forecast'),\n                tooltip: 'Forecasted from your progress'\n              }, {\n                metric: 'FORECAST_MANHOURS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Remaining'),\n                tooltip: 'The difference between your forecast and your actual'\n              }, {\n                metric: 'REMAINING_MANHOURS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                lowerLimit: 0,\n                dashZero: true\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Forecast variance'),\n                tooltip: 'The difference between your forecast and your budget'\n              }, {\n                metric: 'VARIANCE_MANHOURS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                showPositiveNegativeIndicator: true,\n                upperLimit: 0,\n                dashZero: true\n              }]]\n            }, {\n              name: this.intl.t('common.Tasks'),\n              index: 6,\n              width: 12,\n              elementType: 'TABLE',\n              borderStyle: 'BORDER',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.progress.Labour progress'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Actual'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Budget used'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast'),\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  tooltip: this.intl.t('shared.reports.Forecasted from progress')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast used'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast variance'),\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  tooltip: this.intl.t('shared.reports.forecastVarianceTooltip')\n                }],\n                tfoot: [[{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'PROGRESS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'COST_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  tooltip: this.intl.t('shared.reports.costTotalTooltip')\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_TOTAL_USED',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  upperLimit: 1,\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'FORECAST_BUDGET',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'FINANCIAL_PROGRESS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'VARIANCE_BUDGET',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  showPositiveNegativeIndicator: true,\n                  upperLimit: 0,\n                  dashZero: true\n                }]]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TASK_PATH',\n                classes: [{\n                  class: 'd-none'\n                }]\n              }, {\n                metric: 'PROPERTY',\n                key: 'name',\n                linkTo: {\n                  route: 'entity.builda-price.reports.projects.project.position.task',\n                  modelKeys: ['project', '_id'],\n                  queryParams: {\n                    selectedDate: {\n                      valueOverride: selectedDate\n                    }\n                  }\n                }\n              }, {\n                metric: 'PROGRESS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'BUDGET_TOTAL',\n                linkTo: canUseBudgetReports ? {\n                  route: 'entity.builda-price.reports.projects.project.budget',\n                  modelKeys: ['project'],\n                  queryParams: {\n                    selectedDate: {\n                      valueOverride: selectedDate\n                    }\n                  }\n                } : undefined,\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'COST_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                linkTo: canUseCostReports ? {\n                  route: 'entity.builda-price.reports.projects.project.cost',\n                  queryParams: {\n                    costType: {\n                      valueOverride: 'ALL'\n                    },\n                    startDate: {\n                      valueOverride: linkToStartDate\n                    },\n                    endDate: {\n                      valueOverride: linkToEndDate\n                    },\n                    parentId: {\n                      key: '_id'\n                    }\n                  }\n                } : undefined\n              }, {\n                metric: 'BUDGET_TOTAL_USED',\n                classes: [{\n                  class: 'text-right'\n                }],\n                upperLimit: 1,\n                dashZero: true\n              }, {\n                metric: 'FORECAST_BUDGET',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'FINANCIAL_PROGRESS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'VARIANCE_BUDGET',\n                classes: [{\n                  class: 'text-right'\n                }],\n                showPositiveNegativeIndicator: true,\n                upperLimit: 0,\n                dashZero: true\n              }]]\n            }]\n          };\n          let loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getAdHocReport\", null));\n    }\n    model({\n      selectedDate\n    }) {\n      const {\n        project_id: projectId\n      } = this.paramsFor(this.basePath);\n      this.getProject.perform(projectId);\n      this.getAdHocReport.perform(selectedDate, this.getProject);\n      return {\n        entity: this.sessionData.entity,\n        projectLevelReport: this.getAdHocReport,\n        basePath: this.basePath,\n        project: this.getProject\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/position/task\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  class _default extends _route.default {\n    model() {}\n  }\n  _exports.default = _default;\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/position/task/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"moment\"], function (_exports, _asyncArrowRuntime, _route, _service, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"moment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.projects.project.position.task');\n      _defineProperty(this, \"queryParams\", {\n        selectedDate: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getAdHocReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (selectedDate, projectId, task, parentTasks) {\n          yield task.last;\n          yield parentTasks.last;\n          const canUseBudgetReports = this.newFeatureFlags.includesFeatureFlags(task.last.value, 'canUseBudgetReport');\n          const canUseCostReports = this.newFeatureFlags.includesFeatureFlags(task.last.value, 'canUseCostReport');\n          const filter = {\n            project: projectId,\n            entity: this.sessionData.entity.id,\n            status: {\n              $in: ['ACTIVE', 'DRAFT_CREATED']\n            }\n          };\n          if (task.last.value.children.length) {\n            filter.parent = task.last.value.id;\n          } else {\n            filter._id = task.last.value.id;\n          }\n          const linkToStartDate = (0, _moment.default)(this.sessionData.entity.dateCreated).format('YYYY-MM-DD');\n          const linkToEndDate = selectedDate;\n          const endDate = new Date(selectedDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const financialBreakDown = {\n            name: this.intl.t('shared.reports.Financial breakdown'),\n            index: 4,\n            width: 7,\n            elementType: 'TABLE',\n            borderStyle: 'BORDER',\n            axes: {\n              thead: [{\n                metric: 'TEXT',\n                valueOverride: ''\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Labour'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Materials'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Subcontractors'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Sums'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Total'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }]\n            },\n            groupType: 'GROUPED',\n            metricsSubject: {\n              resourceName: 'tasks',\n              recursiveKey: 'parent',\n              filter\n            },\n            metrics: [[{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('common.Budget')\n            }, {\n              metric: 'BUDGET_LABOUR',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'BUDGET_MATERIALS',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'BUDGET_SUBCONTRACTORS',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'BUDGET_SUMS',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'BUDGET_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }], [{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('shared.reports.Actual')\n            }, {\n              metric: 'COST_LABOUR',\n              linkTo: canUseCostReports ? {\n                route: 'entity.builda-price.reports.projects.project.cost',\n                queryParams: {\n                  costType: {\n                    valueOverride: 'ALL'\n                  },\n                  allocationType: {\n                    valueOverride: 'LABOUR'\n                  },\n                  parentId: {\n                    valueOverride: task.last.value.id\n                  },\n                  startDate: {\n                    valueOverride: linkToStartDate\n                  },\n                  endDate: {\n                    valueOverride: linkToEndDate\n                  }\n                }\n              } : undefined,\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'COST_MATERIALS',\n              linkTo: canUseCostReports ? {\n                route: 'entity.builda-price.reports.projects.project.cost',\n                queryParams: {\n                  costType: {\n                    valueOverride: 'BILLS'\n                  },\n                  allocationType: {\n                    valueOverride: 'MATERIALS'\n                  },\n                  parentId: {\n                    valueOverride: task.last.value.id\n                  },\n                  startDate: {\n                    valueOverride: linkToStartDate\n                  },\n                  endDate: {\n                    valueOverride: linkToEndDate\n                  }\n                }\n              } : undefined,\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'COST_SUBCONTRACTORS',\n              linkTo: canUseCostReports ? {\n                route: 'entity.builda-price.reports.projects.project.cost',\n                queryParams: {\n                  costType: {\n                    valueOverride: 'BILLS'\n                  },\n                  allocationType: {\n                    valueOverride: 'SUBCONTRACTORS'\n                  },\n                  parentId: {\n                    valueOverride: task.last.value.id\n                  },\n                  startDate: {\n                    valueOverride: linkToStartDate\n                  },\n                  endDate: {\n                    valueOverride: linkToEndDate\n                  }\n                }\n              } : undefined,\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'TEXT',\n              valueOverride: ''\n            }, {\n              metric: 'COST_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }]\n            }], [{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('common.Used')\n            }, {\n              metric: 'BUDGET_LABOUR_USED',\n              classes: [{\n                class: 'text-right'\n              }],\n              upperLimit: 1,\n              dashZero: true\n            }, {\n              metric: 'BUDGET_MATERIALS_USED',\n              classes: [{\n                class: 'text-right'\n              }],\n              upperLimit: 1,\n              dashZero: true\n            }, {\n              metric: 'BUDGET_SUBCONTRACTORS_USED',\n              classes: [{\n                class: 'text-right'\n              }],\n              upperLimit: 1,\n              dashZero: true\n            }, {\n              metric: 'TEXT',\n              valueOverride: ''\n            }, {\n              metric: 'BUDGET_TOTAL_USED',\n              classes: [{\n                class: 'text-right'\n              }],\n              upperLimit: 1,\n              dashZero: true\n            }], [{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('common.Quote')\n            }, {\n              metric: 'QUOTE_LABOUR',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'QUOTE_MATERIALS',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'QUOTE_SUBCONTRACTORS',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'QUOTE_SUMS',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'QUOTE_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }], [{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('common.Chargeup')\n            }, {\n              metric: 'CHARGEUP_LABOUR',\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'CHARGEUP_MATERIALS',\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'CHARGEUP_SUBCONTRACTORS',\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'TEXT',\n              valueOverride: ''\n            }, {\n              metric: 'CHARGEUP_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }]\n            }]]\n          };\n          const canUseInvoicingReports = this.newFeatureFlags.includesFeatureFlags(task.last.value, 'canUseInvoicingReport');\n          if (canUseInvoicingReports) {\n            financialBreakDown.metrics.push([{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('common.Invoiced')\n            }, {\n              metric: 'INVOICED_LABOUR',\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'INVOICED_MATERIALS',\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'INVOICED_SUBCONTRACTORS',\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'TEXT',\n              valueOverride: ''\n            }, {\n              metric: 'INVOICED_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }]\n            }]);\n          }\n          const report = {\n            name: this.intl.t('shared.reports.Position report'),\n            dateRange: {\n              endDate\n            },\n            subjects: [{\n              index: 1,\n              width: 2,\n              height: 2,\n              name: this.intl.t('shared.reports.Forecast used'),\n              elementType: 'BIG_TEXT',\n              borderStyle: 'BORDER',\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              axes: {\n                label: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.report.The amount of your forecast used')\n                }]]\n              },\n              metrics: [[{\n                metric: 'FINANCIAL_PROGRESS_TOTAL'\n              }]]\n            }, {\n              index: 2,\n              width: 2,\n              height: 2,\n              name: this.intl.t('shared.reports.Current position'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget')\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_TOTAL'\n                }], [{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Quote')\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_TOTAL'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Actual')\n              }, {\n                metric: 'COST_TOTAL'\n              }]]\n            }, {\n              index: 3,\n              width: 2,\n              height: 2,\n              name: this.intl.t('shared.reports.Forecast position'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget')\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_TOTAL'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Forecast')\n              }, {\n                metric: 'FORECAST_BUDGET'\n              }]]\n            }, financialBreakDown, {\n              name: this.intl.t('common.Labour hours'),\n              index: 5,\n              width: 2,\n              elementType: 'TABLE',\n              borderStyle: 'BORDER',\n              axes: {},\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Budget')\n              }, {\n                metric: 'BUDGET_MANHOURS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Actual')\n              }, {\n                metric: 'COST_MANHOURS',\n                linkTo: canUseCostReports ? {\n                  route: 'entity.builda-price.reports.projects.project.cost',\n                  modelKeys: ['project'],\n                  queryParams: {\n                    parentId: {\n                      valueOverride: task.last.value.id\n                    },\n                    startDate: {\n                      valueOverride: linkToStartDate\n                    },\n                    endDate: {\n                      valueOverride: linkToEndDate\n                    },\n                    costType: {\n                      valueOverride: 'TIMESHEETS'\n                    }\n                  }\n                } : undefined,\n                classes: [{\n                  class: 'text-right'\n                }]\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Used')\n              }, {\n                metric: 'BUDGET_MANHOURS_USED',\n                classes: [{\n                  class: 'text-right'\n                }],\n                upperLimit: 1,\n                dashZero: true\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Forecast'),\n                tooltip: 'Forecasted from your progress'\n              }, {\n                metric: 'FORECAST_MANHOURS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Remaining'),\n                tooltip: 'The difference between forecast and actual'\n              }, {\n                metric: 'REMAINING_MANHOURS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                lowerLimit: 0,\n                dashZero: true\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Forecast variance'),\n                tooltip: this.intl.t('shared.reports.forecastVarianceTooltip')\n              }, {\n                metric: 'VARIANCE_MANHOURS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                showPositiveNegativeIndicator: true,\n                upperLimit: 0,\n                dashZero: true\n              }]]\n            }, {\n              name: this.intl.t('common.Tasks'),\n              index: 6,\n              width: 12,\n              elementType: 'TABLE',\n              borderStyle: 'BORDER',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.progress.Labour progress'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Actual'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Budget used'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast'),\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  tooltip: this.intl.t('shared.reports.Forecasted from progress')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast used'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast variance'),\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  tooltip: this.intl.t('shared.reports.forecastVarianceTooltip')\n                }],\n                tfoot: [[{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'PROGRESS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'COST_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_TOTAL_USED',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  upperLimit: 1,\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'FORECAST_BUDGET',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'FINANCIAL_PROGRESS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'VARIANCE_BUDGET',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  showPositiveNegativeIndicator: true,\n                  upperLimit: 0,\n                  dashZero: true\n                }]]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TASK_PATH',\n                classes: [{\n                  class: 'd-none'\n                }]\n              }, {\n                metric: 'PROPERTY',\n                key: 'name',\n                linkTo: {\n                  route: 'entity.builda-price.reports.projects.project.position.task',\n                  modelKeys: ['project', '_id']\n                }\n              }, {\n                metric: 'PROGRESS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'BUDGET_TOTAL',\n                linkTo: canUseBudgetReports ? {\n                  route: 'entity.builda-price.reports.projects.project.budget.task',\n                  modelKeys: ['project', '_id'],\n                  queryParams: {\n                    selectedDate: {\n                      valueOverride: linkToEndDate\n                    }\n                  }\n                } : undefined,\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'COST_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                linkTo: canUseCostReports ? {\n                  route: 'entity.builda-price.reports.projects.project.cost',\n                  queryParams: {\n                    costType: {\n                      valueOverride: 'ALL'\n                    },\n                    startDate: {\n                      valueOverride: linkToStartDate\n                    },\n                    endDate: {\n                      valueOverride: linkToEndDate\n                    },\n                    parentId: {\n                      key: '_id'\n                    }\n                  }\n                } : undefined\n              }, {\n                metric: 'BUDGET_TOTAL_USED',\n                classes: [{\n                  class: 'text-right'\n                }],\n                upperLimit: 1,\n                dashZero: true\n              }, {\n                metric: 'FORECAST_BUDGET',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'FINANCIAL_PROGRESS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'VARIANCE_BUDGET',\n                classes: [{\n                  class: 'text-right'\n                }],\n                showPositiveNegativeIndicator: true,\n                upperLimit: 0,\n                dashZero: true\n              }]]\n            }]\n          };\n          let loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getAdHocReport\", null));\n      _defineProperty(this, \"getTask\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (taskId) {\n          const task = yield this.store.simpleQuery('task', {\n            _id: taskId\n          });\n          return task.toArray()?.[0];\n        }\n      }), null, \"getTask\", null));\n      _defineProperty(this, \"getParentTasks\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (task) {\n          yield task.last;\n          const generatePathsFromTask = async task => {\n            const parentTask = await task.belongsTo('parent').load();\n            if (parentTask) {\n              await generatePathsFromTask(parentTask);\n            }\n          };\n          yield generatePathsFromTask(task.last.value);\n        }\n      }), null, \"getParentTasks\", null));\n    }\n    model({\n      selectedDate\n    }) {\n      const {\n        project_id: projectId\n      } = this.paramsFor('entity.builda-price.reports.projects.project');\n      const {\n        task_id: taskId\n      } = this.paramsFor(this.basePath);\n      this.getTask.perform(taskId);\n      this.getParentTasks.perform(this.getTask);\n      this.getAdHocReport.perform(selectedDate, projectId, this.getTask, this.getParentTasks);\n      return {\n        taskLevelReport: this.getAdHocReport,\n        basePath: this.basePath,\n        task: this.getTask,\n        parentTasks: this.getParentTasks\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/profit-margins/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.projects.project');\n      _defineProperty(this, \"queryParams\", {\n        selectedDate: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projectId) {\n          const project = yield this.store.findRecord('project', projectId);\n          return project;\n        }\n      }), null, \"getProject\", null));\n      _defineProperty(this, \"getProfitMarginsReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project, selectedDate) {\n          yield project.last;\n          const filter = {\n            project: project.last.value.id,\n            entity: this.sessionData.entity.id,\n            status: {\n              $in: ['ACTIVE', 'DRAFT_CREATED']\n            }\n          };\n          const endDate = new Date(selectedDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const report = {\n            name: this.intl.t('entity.builda-price.reports.projects.project.profit-margins.Profit margins report'),\n            dateRange: {\n              endDate\n            },\n            subjects: [{\n              index: 1,\n              width: 12,\n              elementType: 'TABLE',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: 'Name'\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.progress.Labour progress'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Quote'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Actual'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast Budget'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast used'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast margin'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.forecastMarginPercentage'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }],\n                tfoot: [[{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'PROGRESS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'COST_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'FORECAST_BUDGET',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'FINANCIAL_PROGRESS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'GROSS_PROFIT',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  lowerLimit: 0\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'GROSS_PROFIT_MARGIN',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  lowerLimit: 0,\n                  showPositiveNegativeIndicator: true\n                }]]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TASK_PATH',\n                classes: [{\n                  class: 'd-none'\n                }]\n              }, {\n                metric: 'PROPERTY',\n                key: 'name',\n                linkTo: {\n                  route: 'entity.builda-price.reports.projects.project.profit-margins.task',\n                  modelKeys: ['project', '_id'],\n                  queryParams: {\n                    selectedDate: {\n                      valueOverride: selectedDate\n                    }\n                  }\n                }\n              }, {\n                metric: 'PROGRESS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'BUDGET_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'QUOTE_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'COST_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'FORECAST_BUDGET',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'FINANCIAL_PROGRESS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'GROSS_PROFIT',\n                classes: [{\n                  class: 'text-right'\n                }],\n                lowerLimit: 0\n              }, {\n                metric: 'GROSS_PROFIT_MARGIN',\n                classes: [{\n                  class: 'text-right'\n                }],\n                lowerLimit: 0,\n                showPositiveNegativeIndicator: true\n              }]]\n            }]\n          };\n          const loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getProfitMarginsReport\", null));\n    }\n    model({\n      selectedDate\n    }) {\n      const {\n        project_id: projectId\n      } = this.paramsFor(this.basePath);\n      this.getProject.perform(projectId);\n      this.getProfitMarginsReport.perform(this.getProject, selectedDate);\n      return {\n        project: this.getProject,\n        profitMarginsTable: this.getProfitMarginsReport\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/profit-margins/task\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  class _default extends _route.default {\n    model() {}\n  }\n  _exports.default = _default;\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/profit-margins/task/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.projects.project.profit-margins.task');\n      _defineProperty(this, \"queryParams\", {\n        selectedDate: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getProfitMarginsReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (selectedDate, projectId, task) {\n          yield task.last;\n          const filter = {\n            project: projectId,\n            entity: this.sessionData.entity.id,\n            status: {\n              $in: ['ACTIVE', 'DRAFT_CREATED']\n            }\n          };\n          if (task.last.value.children.length) {\n            filter.parent = task.last.value.id;\n          } else {\n            filter._id = task.last.value.id;\n          }\n          const endDate = new Date(selectedDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const report = {\n            name: this.intl.t('entity.builda-price.reports.projects.project.profit-margins.Profit margins report'),\n            dateRange: {\n              endDate\n            },\n            subjects: [{\n              name: this.intl.t('common.Tasks'),\n              index: 8,\n              width: 12,\n              elementType: 'TABLE',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: 'Name'\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.progress.Labour progress'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Quote'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Actual'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast Budget'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast used'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast margin'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.forecastMarginPercentage'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }],\n                tfoot: [[{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'PROGRESS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'COST_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'FORECAST_BUDGET',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'FINANCIAL_PROGRESS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'GROSS_PROFIT',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  lowerLimit: 0\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'GROSS_PROFIT_MARGIN',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  lowerLimit: 0,\n                  showPositiveNegativeIndicator: true\n                }]]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TASK_PATH',\n                classes: [{\n                  class: 'd-none'\n                }]\n              }, {\n                metric: 'PROPERTY',\n                key: 'name',\n                linkTo: {\n                  route: 'entity.builda-price.reports.projects.project.profit-margins.task',\n                  modelKeys: ['project', '_id'],\n                  queryParams: {\n                    selectedDate: {\n                      valueOverride: selectedDate\n                    }\n                  }\n                }\n              }, {\n                metric: 'PROGRESS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'BUDGET_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'QUOTE_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'COST_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'FORECAST_BUDGET',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'FINANCIAL_PROGRESS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'GROSS_PROFIT',\n                classes: [{\n                  class: 'text-right'\n                }],\n                lowerLimit: 0\n              }, {\n                metric: 'GROSS_PROFIT_MARGIN',\n                classes: [{\n                  class: 'text-right'\n                }],\n                lowerLimit: 0,\n                showPositiveNegativeIndicator: true\n              }]]\n            }]\n          };\n          let loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getProfitMarginsReport\", null));\n      _defineProperty(this, \"getTask\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (taskId) {\n          const task = yield this.store.simpleQuery('task', {\n            _id: taskId\n          });\n          return task.toArray()?.[0];\n        }\n      }), null, \"getTask\", null));\n      _defineProperty(this, \"getParentTasks\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (task) {\n          yield task.last;\n          const generatePathsFromTask = async task => {\n            const parentTask = await task.belongsTo('parent').load();\n            if (parentTask) {\n              await generatePathsFromTask(parentTask);\n            }\n          };\n          yield generatePathsFromTask(task.last.value);\n        }\n      }), null, \"getParentTasks\", null));\n    }\n    model({\n      selectedDate\n    }) {\n      const {\n        project_id: projectId\n      } = this.paramsFor('entity.builda-price.reports.projects.project');\n      const {\n        task_id: taskId\n      } = this.paramsFor(this.basePath);\n      this.getTask.perform(taskId);\n      this.getParentTasks.perform(this.getTask);\n      this.getProfitMarginsReport.perform(selectedDate, projectId, this.getTask);\n      return {\n        profitMarginsTable: this.getProfitMarginsReport,\n        basePath: this.basePath,\n        task: this.getTask,\n        parentTasks: this.getParentTasks\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/quote/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.projects.project');\n      _defineProperty(this, \"queryParams\", {\n        selectedDate: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projectId) {\n          const project = yield this.store.findRecord('project', projectId);\n          return project;\n        }\n      }), null, \"getProject\", null));\n      _defineProperty(this, \"getQuoteReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project, selectedDate) {\n          yield project.last;\n          const filter = {\n            project: project.last.value.id,\n            entity: this.sessionData.entity.id,\n            status: {\n              $in: ['ACTIVE', 'DRAFT_CREATED']\n            }\n          };\n          const canUseProjectQuoteReport = this.newFeatureFlags.includesFeatureFlags(project.last.value, 'canUseQuoteReport');\n          const summaryMetricSubject = canUseProjectQuoteReport ? {\n            resourceName: 'projects',\n            filter: {\n              _id: project.last.value.id,\n              entity: this.sessionData.entity.id\n            }\n          } : {\n            resourceName: 'tasks',\n            filter\n          };\n          const endDate = new Date(selectedDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const report = {\n            name: this.intl.t('entity.builda-price.reports.projects.project.quote.Quote report'),\n            dateRange: {\n              endDate\n            },\n            subjects: [{\n              index: 1,\n              width: 2,\n              height: 2,\n              name: this.intl.t('common.Labour'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  valueOverride: this.intl.t('common.Quote'),\n                  metric: 'TEXT'\n                }, {\n                  subject: summaryMetricSubject,\n                  metric: 'QUOTE_LABOUR'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: summaryMetricSubject,\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Chargeup')\n              }, {\n                metric: 'CHARGEUP_LABOUR'\n              }]]\n            }, {\n              index: 2,\n              width: 2,\n              height: 2,\n              name: this.intl.t('common.Materials'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Quote')\n                }, {\n                  subject: summaryMetricSubject,\n                  metric: 'QUOTE_MATERIALS'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: summaryMetricSubject,\n              metrics: [[{\n                valueOverride: this.intl.t('common.Chargeup'),\n                metric: 'TEXT'\n              }, {\n                metric: 'CHARGEUP_MATERIALS'\n              }]]\n            }, {\n              index: 3,\n              width: 2,\n              height: 2,\n              name: this.intl.t('common.Subcontractors'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Quote')\n                }, {\n                  subject: summaryMetricSubject,\n                  metric: 'QUOTE_SUBCONTRACTORS'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: summaryMetricSubject,\n              metrics: [[{\n                valueOverride: this.intl.t('common.Chargeup'),\n                metric: 'TEXT'\n              }, {\n                metric: 'CHARGEUP_SUBCONTRACTORS'\n              }]]\n            }, {\n              index: 4,\n              width: 2,\n              height: 2,\n              name: this.intl.t('entity.builda-price.reports.projects.project.quote.Quote total'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Quote')\n                }, {\n                  subject: summaryMetricSubject,\n                  metric: 'QUOTE_TOTAL'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: summaryMetricSubject,\n              metrics: [[{\n                valueOverride: this.intl.t('common.Chargeup'),\n                metric: 'TEXT'\n              }, {\n                metric: 'CHARGEUP_TOTAL'\n              }]]\n            }, {\n              index: 5,\n              width: 4,\n              height: 2,\n              name: this.intl.t('entity.builda-price.reports.projects.project.quote.Quote distribution'),\n              elementType: 'PIE_CHART',\n              borderStyle: 'BORDER',\n              groupType: 'GROUPED',\n              metricsSubject: summaryMetricSubject,\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Labour')\n              }, {\n                metric: 'QUOTE_LABOUR'\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Materials')\n              }, {\n                metric: 'QUOTE_MATERIALS'\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Subcontractors')\n              }, {\n                metric: 'QUOTE_SUBCONTRACTORS'\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Sums')\n              }, {\n                metric: 'QUOTE_SUMS'\n              }]]\n            }, {\n              index: 6,\n              width: 4,\n              height: 2,\n              name: this.intl.t('entity.builda-price.reports.projects.project.quote.Chargeup distribution'),\n              elementType: 'PIE_CHART',\n              borderStyle: 'BORDER',\n              groupType: 'GROUPED',\n              metricsSubject: summaryMetricSubject,\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Labour')\n              }, {\n                metric: 'CHARGEUP_LABOUR'\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Materials')\n              }, {\n                metric: 'CHARGEUP_MATERIALS'\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Subcontractors')\n              }, {\n                metric: 'CHARGEUP_SUBCONTRACTORS'\n              }]]\n            }, {\n              name: this.intl.t('common.Financials'),\n              index: 7,\n              width: 12,\n              elementType: 'TABLE',\n              borderStyle: 'BORDER',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: 'Name'\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.quote.Labour quote'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.quote.Labour chargeup'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.quote.Materials quote'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.quote.Materials chargeup'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.quote.Subcontractors quote'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.quote.Subcontractors chargeup'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.quote.Sums quote'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.financial.Total quote'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.quote.Total chargeup'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.quote.Remaining quote'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Quote used'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }],\n                tfoot: [[{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_LABOUR',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'CHARGEUP_LABOUR',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_MATERIALS',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'CHARGEUP_MATERIALS',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_SUBCONTRACTORS',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'CHARGEUP_SUBCONTRACTORS',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_SUMS',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'CHARGEUP_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  tooltip: this.intl.t('shared.reports.costTotalTooltip')\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'REMAINING_QUOTE',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_TOTAL_USED',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  upperLimit: 1\n                }]]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TASK_PATH',\n                classes: [{\n                  class: 'd-none'\n                }]\n              }, {\n                metric: 'PROPERTY',\n                key: 'name',\n                linkTo: {\n                  route: 'entity.builda-price.reports.projects.project.quote.task',\n                  modelKeys: ['project', '_id'],\n                  queryParams: {\n                    selectedDate: {\n                      valueOverride: selectedDate\n                    }\n                  }\n                }\n              }, {\n                metric: 'QUOTE_LABOUR',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'CHARGEUP_LABOUR',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'QUOTE_MATERIALS',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'CHARGEUP_MATERIALS',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'QUOTE_SUBCONTRACTORS',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'CHARGEUP_SUBCONTRACTORS',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'QUOTE_SUMS',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'QUOTE_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'CHARGEUP_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'REMAINING_QUOTE',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'QUOTE_TOTAL_USED',\n                classes: [{\n                  class: 'text-right'\n                }],\n                upperLimit: 1\n              }]]\n            }]\n          };\n          const loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getQuoteReport\", null));\n    }\n    model({\n      selectedDate\n    }) {\n      const {\n        project_id: projectId\n      } = this.paramsFor(this.basePath);\n      this.getProject.perform(projectId);\n      this.getQuoteReport.perform(this.getProject, selectedDate);\n      return {\n        project: this.getProject,\n        basePath: this.basePath,\n        quoteTable: this.getQuoteReport\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/quote/task\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  class _default extends _route.default {\n    model() {}\n  }\n  _exports.default = _default;\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/quote/task/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.projects.project.quote.task');\n      _defineProperty(this, \"queryParams\", {\n        selectedDate: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getTask\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (taskId) {\n          const task = yield this.store.simpleQuery('task', {\n            _id: taskId\n          });\n          return task.toArray()?.[0];\n        }\n      }), null, \"getTask\", null));\n      _defineProperty(this, \"getQuoteReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (selectedDate, projectId, task) {\n          yield task.last;\n          const filter = {\n            project: projectId,\n            entity: this.sessionData.entity.id,\n            status: {\n              $in: ['ACTIVE', 'DRAFT_CREATED']\n            }\n          };\n          if (task.last.value.children.length) {\n            filter.parent = task.last.value.id;\n          } else {\n            filter._id = task.last.value.id;\n          }\n          const endDate = new Date(selectedDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const report = {\n            name: this.intl.t('entity.builda-price.reports.projects.project.quote.Quote report'),\n            dateRange: {\n              endDate\n            },\n            subjects: [{\n              index: 1,\n              width: 2,\n              height: 2,\n              name: this.intl.t('common.Labour'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  valueOverride: this.intl.t('common.Quote'),\n                  metric: 'TEXT'\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_LABOUR'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Chargeup')\n              }, {\n                metric: 'CHARGEUP_LABOUR'\n              }]]\n            }, {\n              index: 2,\n              width: 2,\n              height: 2,\n              name: this.intl.t('common.Materials'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Quote')\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_MATERIALS'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                valueOverride: this.intl.t('common.Chargeup'),\n                metric: 'TEXT'\n              }, {\n                metric: 'CHARGEUP_MATERIALS'\n              }]]\n            }, {\n              index: 3,\n              width: 2,\n              height: 2,\n              name: this.intl.t('common.Subcontractors'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Quote')\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_SUBCONTRACTORS'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                valueOverride: this.intl.t('common.Chargeup'),\n                metric: 'TEXT'\n              }, {\n                metric: 'CHARGEUP_SUBCONTRACTORS'\n              }]]\n            }, {\n              index: 4,\n              width: 2,\n              height: 2,\n              name: this.intl.t('entity.builda-price.reports.projects.project.quote.Quote total'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Quote')\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_TOTAL'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                valueOverride: this.intl.t('common.Chargeup'),\n                metric: 'TEXT'\n              }, {\n                metric: 'CHARGEUP_TOTAL'\n              }]]\n            }, {\n              index: 5,\n              width: 4,\n              height: 2,\n              name: this.intl.t('entity.builda-price.reports.projects.project.quote.Quote distribution'),\n              elementType: 'PIE_CHART',\n              borderStyle: 'BORDER',\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Labour')\n              }, {\n                metric: 'QUOTE_LABOUR'\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Materials')\n              }, {\n                metric: 'QUOTE_MATERIALS'\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Subcontractors')\n              }, {\n                metric: 'QUOTE_SUBCONTRACTORS'\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Sums')\n              }, {\n                metric: 'QUOTE_SUMS'\n              }]]\n            }, {\n              index: 6,\n              width: 4,\n              height: 2,\n              name: this.intl.t('entity.builda-price.reports.projects.project.quote.Chargeup distribution'),\n              elementType: 'PIE_CHART',\n              borderStyle: 'BORDER',\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Labour')\n              }, {\n                metric: 'CHARGEUP_LABOUR'\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Materials')\n              }, {\n                metric: 'CHARGEUP_MATERIALS'\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Subcontractors')\n              }, {\n                metric: 'CHARGEUP_SUBCONTRACTORS'\n              }]]\n            }, {\n              name: this.intl.t('common.Financials'),\n              index: 7,\n              width: 12,\n              elementType: 'TABLE',\n              borderStyle: 'BORDER',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Name')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.quote.Labour quote'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.quote.Labour chargeup'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.quote.Materials quote'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.quote.Materials chargeup'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.quote.Subcontractors quote'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.quote.Subcontractors chargeup'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.quote.Sums quote'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.financial.Total quote'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.quote.Total chargeup'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.quote.Remaining quote'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Quote used'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }],\n                tfoot: [[{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_LABOUR',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'CHARGEUP_LABOUR',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_MATERIALS',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'CHARGEUP_MATERIALS',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_SUBCONTRACTORS',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'CHARGEUP_SUBCONTRACTORS',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_SUMS',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'CHARGEUP_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'REMAINING_QUOTE',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_TOTAL_USED',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  upperLimit: 1\n                }]]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TASK_PATH',\n                classes: [{\n                  class: 'd-none'\n                }]\n              }, {\n                metric: 'PROPERTY',\n                key: 'name',\n                linkTo: {\n                  route: 'entity.builda-price.reports.projects.project.quote.task',\n                  modelKeys: ['project', '_id'],\n                  queryParams: {\n                    selectedDate: {\n                      valueOverride: selectedDate\n                    }\n                  }\n                }\n              }, {\n                metric: 'QUOTE_LABOUR',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'CHARGEUP_LABOUR',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'QUOTE_MATERIALS',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'CHARGEUP_MATERIALS',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'QUOTE_SUBCONTRACTORS',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'CHARGEUP_SUBCONTRACTORS',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'QUOTE_SUMS',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'QUOTE_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'CHARGEUP_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'REMAINING_QUOTE',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'QUOTE_TOTAL_USED',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }]]\n            }]\n          };\n          const loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getQuoteReport\", null));\n      _defineProperty(this, \"getParentTasks\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (task) {\n          yield task.last;\n          const generatePathsFromTask = async task => {\n            const parentTask = await task.belongsTo('parent').load();\n            if (parentTask) {\n              await generatePathsFromTask(parentTask);\n            }\n          };\n          yield generatePathsFromTask(task.last.value);\n        }\n      }), null, \"getParentTasks\", null));\n    }\n    model({\n      selectedDate\n    }) {\n      const {\n        project_id: projectId\n      } = this.paramsFor('entity.builda-price.reports.projects.project');\n      const {\n        task_id: taskId\n      } = this.paramsFor(this.basePath);\n      this.getTask.perform(taskId);\n      this.getParentTasks.perform(this.getTask);\n      this.getQuoteReport.perform(selectedDate, projectId, this.getTask);\n      return {\n        task: this.getTask,\n        basePath: this.basePath,\n        quoteTable: this.getQuoteReport,\n        parentTasks: this.getParentTasks\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/scheduling\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  class _default extends _route.default {}\n  _exports.default = _default;\n});","define(\"portal/routes/entity/builda-price/scheduling/index\", [\"exports\", \"@ember/routing/route\", \"portal/mixins/menu-route\"], function (_exports, _route, _menuRoute) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"portal/mixins/menu-route\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  class _default extends _route.default.extend(_menuRoute.default) {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"defaultRoute\", 'entity.builda-price.scheduling.timeline');\n    }\n  }\n  _exports.default = _default;\n});","define(\"portal/routes/entity/builda-price/scheduling/timeline\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"@ember/object\"], function (_exports, _asyncArrowRuntime, _route, _service, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _defineProperty(this, \"getProjects\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const projects = yield this.store.simpleQuery('project', {\n            entity: this.sessionData.entity.id,\n            status: 'OPEN'\n          });\n\n          // sort projects by sortIndex attribute\n          const sortedProjects = projects.sortBy('sortIndex');\n          return sortedProjects.toArray();\n        }\n      }), null, \"getProjects\", null));\n      _defineProperty(this, \"loadUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const user = yield this.store.findRecord('user', this.sessionData.user.id);\n          return user;\n        }\n      }), null, \"loadUser\", null));\n    }\n    willTransition(transition) {\n      if (this.controller.undoCount) {\n        if (!confirm('You have unsaved changes that will be lost if you decide to leave, do you want continue?')) {\n          transition.abort();\n        }\n      }\n    }\n    resetController(controller) {\n      // clear the ganttChart when leaving the route\n      // this causes it to be re-initialised when re-entering the page (which we want)\n      controller.ganttChart = null;\n    }\n    setupController(controller, post) {\n      super.setupController(controller, post);\n      if (controller) {\n        controller.undoCount = 0;\n        controller.redoCount = 0;\n      }\n    }\n    model() {\n      this.getProjects.perform();\n      this.loadUser.perform();\n      return {\n        entity: this.sessionData.entity,\n        projects: this.getProjects,\n        user: this.loadUser\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"willTransition\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"willTransition\"), _class2.prototype), _class2);\n});","define(\"portal/routes/entity/disabled\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"helpCenter\", _descriptor, this);\n      _initializerDefineProperty(this, \"modules\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n    }\n    beforeModel() {\n      // if you have access to modules you shouldn't be here\n      if (this.modules.allowedModules.length !== 0) return this.router.transitionTo('entity');\n      this.helpCenter.hideHelpCenter();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"helpCenter\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"modules\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/financials\", [\"exports\", \"@ember/routing/route\", \"@ember/service\", \"@ember/object\"], function (_exports, _route, _service, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"helpCenter\", _descriptor2, this);\n      _initializerDefineProperty(this, \"financialPortalPeriodSelector\", _descriptor3, this);\n      _initializerDefineProperty(this, \"router\", _descriptor4, this);\n    }\n    beforeModel() {\n      if (!this.newFeatureFlags.canUseFinancialReporting) {\n        return this.router.transitionTo('entity');\n      }\n      this.helpCenter.hideHelpCenter();\n    }\n    activate() {\n      super.activate(...arguments);\n      this.financialPortalPeriodSelector.on('periodChanged', this, this.triggerRefresh);\n    }\n    deactivate() {\n      super.deactivate(...arguments);\n      this.financialPortalPeriodSelector.off('periodChanged', this, this.triggerRefresh);\n    }\n    triggerRefresh() {\n      this.refresh();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"helpCenter\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"financialPortalPeriodSelector\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"triggerRefresh\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"triggerRefresh\"), _class2.prototype), _class2);\n});","define(\"portal/routes/entity/financials/chart-of-accounts\", [\"exports\", \"@ember/routing/route\", \"@ember/service\", \"@ember/object\"], function (_exports, _route, _service, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n      _initializerDefineProperty(this, \"session\", _descriptor2, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor3, this);\n      _initializerDefineProperty(this, \"store\", _descriptor4, this);\n    }\n    async beforeModel(transition) {\n      await this.session.requireAuthentication(transition, 'login');\n      if ((0, _object.get)(this, 'sessionData.entity.parent.id')) this.router.replaceWith('entity.financials');\n    }\n    model() {\n      const entity = (0, _object.get)(this, 'sessionData.entity.id');\n      return this.store.simpleQuery('account', {\n        entity\n      }).then(accounts => accounts.toArray());\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/financials/dashboard-loading\", [\"exports\", \"portal/routes/entity/financials/dashboard\", \"portal/utils/loading-route-from\"], function (_exports, _dashboard, _loadingRouteFrom) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/routes/entity/financials/dashboard\",0,\"portal/utils/loading-route-from\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _loadingRouteFrom.default)(_dashboard.default, 'entity/financials/dashboard');\n});","define(\"portal/routes/entity/financials/dashboard\", [\"exports\", \"@ember/routing/route\", \"@ember/service\", \"@ember/object\", \"portal/mixins/scroll-route\"], function (_exports, _route, _service, _object, _scrollRoute) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\",0,\"@ember/object\",0,\"portal/mixins/scroll-route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend(_scrollRoute.default, {\n    sessionData: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    async model() {\n      const user = (0, _object.get)(this, 'sessionData.user.id');\n      const entity = (0, _object.get)(this, 'sessionData.entity.parent.id') || null;\n      const dashboardQuery = {\n        and: [{\n          field: 'user',\n          op: 'EQ',\n          value: user\n        }]\n      };\n      const kpiQueryOptions = {\n        sort: 'sortIndex'\n      };\n      const accountQueryOptions = {\n        sort: 'sortIndex'\n      };\n      const entitiesQueryOptions = {\n        sort: 'name'\n      };\n      const entityGroupsQueryOptions = {\n        sort: 'sortIndex'\n      };\n      if (entity) {\n        dashboardQuery.and.push({\n          field: 'entity',\n          op: 'EQ',\n          value: entity\n        });\n        const entityFilter = {\n          and: [{\n            field: 'entity',\n            op: 'EQ',\n            value: entity\n          }]\n        };\n        kpiQueryOptions.filter = entityFilter;\n        accountQueryOptions.filter = entityFilter;\n        entitiesQueryOptions.filter = {\n          and: [{\n            field: 'parent',\n            op: 'EQ',\n            value: entity\n          }]\n        };\n        entityGroupsQueryOptions.filter = {\n          and: [{\n            field: 'parentEntity',\n            op: 'EQ',\n            value: entity\n          }]\n        };\n      }\n      const [modules, kpis, accounts, entities, entityGroups] = await Promise.all([this.store.query('dashboard-module', {\n        filter: dashboardQuery,\n        include: 'accounts,kpis,entities,entityGroups'\n      }).then(modules => modules.toArray()), this.store.query('kpi', kpiQueryOptions).then(kpis => kpis.filterBy('active', true)), this.store.query('account', accountQueryOptions).then(accounts => accounts.toArray()), this.store.query('entity', entitiesQueryOptions).then(entities => entities.toArray()), this.store.query('entity-group', entityGroupsQueryOptions).then(groups => groups.toArray())]);\n      return {\n        modules,\n        configData: {\n          kpis,\n          accounts,\n          entities,\n          entityGroups\n        }\n      };\n    }\n  });\n});","define(\"portal/routes/entity/financials/general\", [\"exports\", \"@ember/routing/route\", \"@ember/object\", \"@ember/service\"], function (_exports, _route, _object, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/object\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend({\n    sessionData: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    async model() {\n      let financialOption;\n      const financialOptions = await this.store.simpleQuery('financial-option', {\n        entity: (0, _object.get)(this, 'sessionData.entity.id')\n      }).then(res => res.toArray());\n      if (financialOptions.length) financialOption = financialOptions[0];else financialOption = this.store.createRecord('financial-option', {\n        entity: (0, _object.get)(this, 'sessionData.entity')\n      });\n      return financialOption;\n    }\n  });\n});","define(\"portal/routes/entity/financials/groups\", [\"exports\", \"@ember/routing/route\", \"@ember/service\", \"@ember/object\", \"rsvp\"], function (_exports, _route, _service, _object, _rsvp) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\",0,\"@ember/object\",0,\"rsvp\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend({\n    router: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    beforeModel() {\n      if ((0, _object.get)(this, 'sessionData.entity.parent.id')) return this.router.replaceWith('entity.financials');\n    },\n    model() {\n      const parentEntity = (0, _object.get)(this, 'sessionData.entity.id');\n      return _rsvp.default.hash({\n        groups: (0, _object.get)(this, 'store').query('entity-group', {\n          filter: {\n            and: [{\n              field: 'parentEntity',\n              op: 'EQ',\n              value: parentEntity\n            }]\n          },\n          sort: 'dateCreated',\n          include: 'members,canBeAccessedBy'\n        }).then(groups => groups.toArray()),\n        branches: (0, _object.get)(this, 'store').query('entity', {\n          filter: {\n            and: [{\n              field: 'parent',\n              op: 'EQ',\n              value: parentEntity\n            }]\n          }\n        })\n      });\n    }\n  });\n});","define(\"portal/routes/entity/financials/groups/access\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend({\n    templateName: 'entity.financials.groups.membership-and-access',\n    controllerName: 'entity.financials.groups.access',\n    model() {\n      return this.modelFor('entity.financials.groups');\n    },\n    setupController(controller) {\n      this._super(...arguments);\n\n      // Without this, tableContent goes stale when switching between access and membership routes\n      controller.notifyPropertyChange('tableContent');\n    }\n  });\n});","define(\"portal/routes/entity/financials/groups/index\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend({\n    router: (0, _service.inject)(),\n    redirect() {\n      this.router.transitionTo('entity.financials.groups.membership');\n    }\n  });\n});","define(\"portal/routes/entity/financials/groups/membership\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend({\n    templateName: 'entity.financials.groups.membership-and-access',\n    controllerName: 'entity.financials.groups.membership',\n    model() {\n      return this.modelFor('entity.financials.groups');\n    },\n    setupController(controller) {\n      this._super(...arguments);\n\n      // Without this, tableContent goes stale when switching between access and membership routes\n      controller.notifyPropertyChange('tableContent');\n    }\n  });\n});","define(\"portal/routes/entity/financials/groups/order\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend({});\n});","define(\"portal/routes/entity/financials/import\", [\"exports\", \"@ember/routing/route\", \"@ember/object\", \"@ember/service\"], function (_exports, _route, _object, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/object\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend({\n    router: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    beforeModel() {\n      if (!(0, _object.get)(this, 'sessionData.entity.parent.id')) return this.router.replaceWith('entity.financials');\n    },\n    model() {\n      const parentEntity = (0, _object.get)(this, 'sessionData.entity.parent.id');\n      return this.store.simpleQuery('account', {\n        entity: parentEntity\n      });\n    }\n  });\n});","define(\"portal/routes/entity/financials/import/data\", [\"exports\", \"@ember/routing/route\", \"@ember/service\", \"@ember/object\", \"rsvp\", \"@ember/utils\", \"moment\"], function (_exports, _route, _service, _object, _rsvp, _utils, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\",0,\"@ember/object\",0,\"rsvp\",0,\"@ember/utils\",0,\"moment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend({\n    router: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    steps: ['profit-and-loss', 'balance-sheet', 'other-data'],\n    beforeModel(transition) {\n      const steps = (0, _object.get)(this, 'steps');\n      const step = (0, _object.get)(transition, 'to.params.step');\n      if (steps.indexOf(step) === -1) {\n        this.router.replaceWith('entity.financials.import.start');\n      }\n      this._super(...arguments);\n    },\n    model(params) {\n      const entity = (0, _object.get)(this, 'sessionData.entity.id');\n      const periodString = (0, _object.get)(this, 'sessionData.period');\n      const period = (0, _moment.default)(periodString, 'YYYY-MM').endOf('month').toDate();\n      (0, _object.set)(this, 'step', (0, _object.get)(params, 'step'));\n      return _rsvp.default.hash({\n        accounts: this.modelFor('entity.financials.import').filterBy('category', (0, _object.get)(params, 'step')),\n        maps: (0, _object.get)(this, 'store').simpleQuery('account-map', {\n          entity\n        }).then(maps => maps.toArray()),\n        import: (0, _object.get)(this, 'store').simpleQuery('import', {\n          entity,\n          date: period.toISOString()\n        }).then(imports => {\n          if ((0, _utils.isEmpty)(imports)) {\n            return (0, _object.get)(this, 'store').createRecord('import', {\n              date: period,\n              organisation: (0, _object.get)(this, 'sessionData.organisation'),\n              entity: (0, _object.get)(this, 'sessionData.entity')\n            });\n          }\n          return imports.objectAt(0);\n        })\n      });\n    },\n    activate() {\n      this._super(...arguments);\n    },\n    setupController(controller) {\n      this._super(...arguments);\n      const steps = (0, _object.get)(this, 'steps');\n      const step = (0, _object.get)(this, 'step');\n      (0, _object.set)(this.controllerFor('entity.financials.import'), 'step', steps.indexOf(step) + 2);\n      (0, _object.set)(controller, 'step', step);\n\n      // Refresh the model on any map that has been edited (undoing the edit) and then set editedMaps to empty\n      // This happens so that if a user clicks skip, their unsaved changes are discarded.\n      // If the user clicks save, the editedMaps array should have been cleared after the save has completed.\n      const editedMaps = (0, _object.get)(controller, 'editedMaps');\n      _rsvp.default.all(editedMaps.map(map => {\n        if ((0, _object.get)(map, 'isNew')) return null;\n        return map.reload();\n      })).catch(err => this.send('error', err)).finally(() => (0, _object.set)(controller, 'editedMaps', []));\n    }\n  });\n});","define(\"portal/routes/entity/financials/import/done\", [\"exports\", \"@ember/routing/route\", \"@ember/object\"], function (_exports, _route, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend({\n    activate() {\n      this._super(...arguments);\n      (0, _object.set)(this.controllerFor('entity.financials.import'), 'step', 5);\n    }\n  });\n});","define(\"portal/routes/entity/financials/import/index\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend({\n    router: (0, _service.inject)(),\n    beforeModel() {\n      this.router.replaceWith('entity.financials.import.start');\n    }\n  });\n});","define(\"portal/routes/entity/financials/import/start\", [\"exports\", \"@ember/routing/route\", \"@ember/object\"], function (_exports, _route, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend({\n    activate() {\n      this._super(...arguments);\n      (0, _object.set)(this.controllerFor('entity.financials.import'), 'step', 1);\n    }\n  });\n});","define(\"portal/routes/entity/financials/index\", [\"exports\", \"@ember/routing/route\", \"@ember/object\", \"@ember/service\", \"portal/mixins/menu-route\"], function (_exports, _route, _object, _service, _menuRoute) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/object\",0,\"@ember/service\",0,\"portal/mixins/menu-route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend(_menuRoute.default, {\n    newFeatureFlags: (0, _service.inject)(),\n    defaultRoute: (0, _object.computed)('newFeatureFlags.canUseFPDashboard', function () {\n      return (0, _object.get)(this, 'newFeatureFlags.canUseFPDashboard') ? 'entity.financials.dashboard' : 'entity.financials.reports.kpis';\n    })\n  });\n});","define(\"portal/routes/entity/financials/kpis\", [\"exports\", \"@ember/routing/route\", \"@ember/service\", \"@ember/object\"], function (_exports, _route, _service, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend({\n    router: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    beforeModel() {\n      if ((0, _object.get)(this, 'sessionData.entity.parent.id')) this.router.replaceWith('entity.financials');\n    },\n    model() {\n      const entity = (0, _object.get)(this, 'sessionData.entity.id');\n      return (0, _object.get)(this, 'store').simpleQuery('kpi', {\n        entity\n      }).then(kpis => kpis.sortBy('sortIndex'));\n    }\n  });\n});","define(\"portal/routes/entity/financials/kpis/index\", [\"exports\", \"@ember/routing/route\", \"@ember/object\", \"@ember/service\"], function (_exports, _route, _object, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/object\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend({\n    router: (0, _service.inject)(),\n    redirect() {\n      const kpis = this.modelFor('entity.financials.kpis');\n      if (!(0, _object.get)(kpis, 'length')) return;\n      const firstId = (0, _object.get)(kpis.objectAt(0), 'id');\n      this.router.transitionTo('entity.financials.kpis.kpi', firstId);\n    }\n  });\n});","define(\"portal/routes/entity/financials/kpis/kpi\", [\"exports\", \"@ember/routing/route\", \"@ember/object\", \"@ember/service\"], function (_exports, _route, _object, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/object\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend({\n    store: (0, _service.inject)(),\n    model(params) {\n      return (0, _object.get)(this, 'store').findRecord('kpi', params.slug);\n    }\n  });\n});","define(\"portal/routes/entity/financials/planning/strategies\", [\"exports\", \"@ember/routing/route\", \"@ember/service\", \"@ember/object\", \"rsvp\", \"moment\", \"portal/utils/sort-accounts\"], function (_exports, _route, _service, _object, _rsvp, _moment, _sortAccounts) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\",0,\"@ember/object\",0,\"rsvp\",0,\"moment\",0,\"portal/utils/sort-accounts\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend({\n    sessionData: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    model() {\n      const period = (0, _object.get)(this, 'sessionData.period');\n      const date = (0, _moment.default)(period, 'YYYY-MM').endOf('month').toDate().toISOString();\n      const parentEntity = (0, _object.get)(this, 'sessionData.entity.parent.id');\n      const entity = (0, _object.get)(this, 'sessionData.entity.id');\n      const targets = this.store.simpleQuery('target', {\n        entity,\n        date\n      }).then(targetRecords => targetRecords.toArray());\n      const accountQueryOptions = {};\n      const kpiQueryOptions = {};\n      if (parentEntity) {\n        const filter = {\n          and: [{\n            field: 'entity',\n            op: 'EQ',\n            value: parentEntity\n          }]\n        };\n        accountQueryOptions.filter = filter;\n        kpiQueryOptions.filter = filter;\n      }\n      const accounts = this.store.query('account', accountQueryOptions).then(accountRecords => (0, _sortAccounts.default)(accountRecords));\n      const kpis = this.store.query('kpi', kpiQueryOptions).then(kpis => kpis.filterBy('active', true)).then(kpiRecords => kpiRecords.sortBy('sortIndex'));\n      return _rsvp.default.hash({\n        targets,\n        accounts,\n        kpis\n      });\n    }\n  });\n});","define(\"portal/routes/entity/financials/reports/general-ledger/balance-sheet\", [\"exports\", \"portal/routes/entity/financials/reports/general-ledger/base\"], function (_exports, _base) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/routes/entity/financials/reports/general-ledger/base\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _base.default.extend({\n    category: 'balance-sheet'\n  });\n});","define(\"portal/routes/entity/financials/reports/general-ledger/base\", [\"exports\", \"@ember/routing/route\", \"@ember/service\", \"rsvp\", \"jquery\", \"@ember/object\", \"portal/config/environment\", \"portal/utils/nest\", \"moment\", \"lodash\", \"portal/mixins/scroll-route\"], function (_exports, _route, _service, _rsvp, _jquery, _object, _environment, _nest, _moment, _lodash, _scrollRoute) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\",0,\"rsvp\",0,\"jquery\",0,\"@ember/object\",0,\"portal/config/environment\",0,\"portal/utils/nest\",0,\"moment\",0,\"lodash\",0,\"portal/mixins/scroll-route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend(_scrollRoute.default, {\n    cache: (0, _service.inject)(),\n    router: (0, _service.inject)(),\n    session: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    includeGroupData: true,\n    /**\n     * If set, only accounts of this category will be loaded.\n     *\n     * @type {String}\n     */\n    category: null,\n    model() {\n      let entity = (0, _object.get)(this, 'sessionData.entity.id');\n      let parentEntity = (0, _object.get)(this, 'sessionData.entity.parent.id');\n      const period = (0, _object.get)(this, 'sessionData.period');\n      const includeGroupData = (0, _object.get)(this, 'includeGroupData');\n\n      // TODO bit hacky, someone with more time fix this.\n      // It just stops the entity from coming up if you are on a top level entity.\n      // can probably just be removed once reports for top level entities is implemented.\n      if (!parentEntity) {\n        parentEntity = entity;\n        entity = null;\n      }\n      let accounts;\n      let groups;\n      const accountsQuery = {\n        and: [{\n          field: 'entity',\n          op: 'EQ',\n          value: parentEntity\n        }]\n      };\n      if ((0, _object.get)(this, 'category')) {\n        accountsQuery.and.push({\n          field: 'category',\n          op: 'EQ',\n          value: (0, _object.get)(this, 'category')\n        });\n      }\n      const groupQuery = {\n        and: [{\n          field: 'parentEntity',\n          op: 'EQ',\n          value: parentEntity\n        }]\n      };\n      if (!entity) {\n        const userGroups = this.sessionData.user.hasMany('entityGroups').value();\n        const userLinkedEntityGroupsIds = userGroups.toArray().map(item => item.belongsTo('entityGroup').id()).filter(Boolean);\n\n        // TODO do this better.\n        if (!userGroups.length && !(0, _object.get)(this, 'newFeatureFlags.userIsEntityAdmin')) return false;\n        // Group access only\n        groupQuery.and.push({\n          field: '_id',\n          op: 'IN',\n          value: userLinkedEntityGroupsIds\n        });\n      }\n      return _rsvp.default.all([this.store.query('account', {\n        filter: accountsQuery\n      }), this.store.query('entity-group', {\n        filter: groupQuery,\n        include: 'canBeAccessedBy',\n        sort: 'sortIndex'\n      })]).then(([accountRecords = [], groupRecords = []]) => {\n        if (!(0, _object.get)(accountRecords, 'length')) return;\n        accounts = accountRecords.sortBy('sortIndex');\n        groups = entity ? groupRecords.filter(group => {\n          const accessibleItems = (0, _object.get)(group, 'canBeAccessedBy')?.content?.toArray() || [];\n          const filteredItems = accessibleItems.filter(item => (0, _object.get)(item, 'entity.id') === entity);\n          return filteredItems.length > 0;\n        }) : groupRecords?.toArray();\n        const groupIds = _lodash.default.map(groups, 'id');\n        const url = _environment.default.urls.api + _environment.default.urls.apiV1Path + '/reports/balances';\n        const payload = {\n          periodStart: period,\n          periodEnd: period,\n          periodTypes: ['month', 'ytd'],\n          metrics: accounts.mapBy('id')\n        };\n        const headers = {\n          Authorization: 'Bearer ' + (0, _object.get)(this, 'session.data.authenticated.access_token')\n        };\n        if (entity) {\n          (0, _object.set)(payload, 'entity', entity);\n        }\n        if (includeGroupData) {\n          (0, _object.set)(payload, 'entityGroups', groupIds);\n        }\n        const cacheKey = _lodash.default.merge(payload, {\n          type: 'balances'\n        });\n        const cached = (0, _object.get)(this, 'cache').lookup('reports', cacheKey);\n        if (cached) {\n          return cached;\n        }\n        return _jquery.default.ajax({\n          url,\n          headers,\n          data: JSON.stringify(payload),\n          method: 'POST',\n          contentType: 'application/json'\n        }).then(data => {\n          (0, _object.get)(this, 'cache').store('reports', cacheKey, data);\n          return data;\n        });\n      }).then(res => {\n        if (!res) return;\n        const {\n          data,\n          meta = {}\n        } = res;\n        let balances = [];\n        const firstClosedPeriod = meta.firstClosedPeriod ? (0, _moment.default)(meta.firstClosedPeriod).startOf('month').toDate() : null;\n        meta.groupsRedacted = firstClosedPeriod && period >= (0, _moment.default)(firstClosedPeriod).format('YYYY-MM');\n        groups.forEach(group => (0, _object.set)(group, 'includedEntities', 0));\n        data.forEach(metric => {\n          if (!(0, _object.get)(metric, 'meta') || !(0, _object.get)(metric, 'series')) {\n            return;\n          }\n          const values = [];\n          let entityValues = (0, _object.get)(metric, 'series').findBy('entity', entity);\n          entityValues = extractAndFormat(entity, entityValues);\n          values.push(entityValues);\n          groups.forEach(group => {\n            let groupValues = (0, _object.get)(metric, 'series').findBy('group', (0, _object.get)(group, 'id'));\n            groupValues = extractAndFormat((0, _object.get)(group, 'id'), groupValues);\n            values.push(groupValues);\n\n            // Figure out how many entities were used in calculating this group's data\n            let includedEntities = (0, _object.get)(group, 'includedEntities') || 0;\n            if ((0, _object.get)(groupValues, 'periodTypes.month.includedEntities') > includedEntities) {\n              includedEntities = (0, _object.get)(groupValues, 'periodTypes.month.includedEntities');\n            }\n            if ((0, _object.get)(groupValues, 'periodTypes.ytd.includedEntities') > includedEntities) {\n              includedEntities = (0, _object.get)(groupValues, 'periodTypes.ytd.includedEntities');\n            }\n            (0, _object.set)(group, 'includedEntities', includedEntities);\n          });\n\n          // Start with the metric's metadata and then add some extra fields\n          let balData = _lodash.default.merge(metric.meta, {\n            id: (0, _object.get)(metric, 'meta._id'),\n            data: values,\n            hideChildren: true,\n            depth: getAccountDepth(accounts?.find(account => account.id === (0, _object.get)(metric, 'meta._id'))),\n            print: true\n          });\n          balData = _object.default.create(balData);\n          balances.push(balData);\n        });\n        balances = balances.sortBy('sortIndex');\n        const topLevelAccounts = [];\n        const childAccounts = [];\n        balances.forEach(balance => {\n          if ((0, _object.get)(balance, 'parent') == null) {\n            topLevelAccounts.pushObject(balance);\n          } else {\n            childAccounts.pushObject(balance);\n          }\n        });\n        const nestedAccounts = (0, _nest.default)(topLevelAccounts, childAccounts, false);\n        const entities = includeGroupData ? groups : [];\n        if (entity) {\n          entities.unshift((0, _object.get)(this, 'sessionData.entity'));\n        }\n        const isBranch = Boolean((0, _object.get)(this, 'sessionData.entity.parent.id'));\n        const ownFirstClosedPeriod = (0, _object.get)(((0, _object.get)(this, 'sessionData.entity.financialOptions') || [])[0] || {}, 'firstClosedPeriod');\n        // Own data is withheld if the entity is a brance, FCP exists, and the current period is the same or after the FCP\n        const ownDataWithheld = isBranch && ownFirstClosedPeriod && period >= (0, _moment.default)(ownFirstClosedPeriod).format('YYYY-MM');\n        return {\n          nestedAccounts,\n          entities,\n          firstClosedPeriod,\n          ownDataWithheld,\n          groupsRedacted: meta.groupsRedacted\n        };\n      }, reason => {\n        if ((0, _object.get)(reason, 'status') === 400 && (0, _object.get)(reason, 'responseJSON.message') && (0, _object.get)(reason, 'responseJSON.message').indexOf('Failed to find accounts with the following labels') !== -1) {\n          return this.router.replaceWith('entity.setup-incomplete');\n        } else {\n          throw reason;\n        }\n      });\n    }\n  });\n  function extractAndFormat(entityId, entity) {\n    if (!entity || !(0, _object.get)(entity || {}, 'periods.0')) {\n      return {\n        entity: entityId,\n        month: null,\n        ytd: null\n      };\n    }\n    const data = (0, _object.get)(entity, 'periods.0');\n\n    // Using lodash to avoid errors if we don't make it to the end of the path\n    (0, _object.set)(data, 'month', (0, _object.get)(data, 'periodTypes.month.value'));\n    (0, _object.set)(data, 'ytd', (0, _object.get)(data, 'periodTypes.ytd.value'));\n    (0, _object.set)(data, 'entity', entityId);\n    return data;\n  }\n  function getAccountDepth(account) {\n    let parent = (0, _object.get)(account, 'parent');\n    let depth = 0;\n\n    // Depth check just in case of an infinite loop\n    while ((0, _object.get)(parent, 'id') && depth <= 100) {\n      parent = (0, _object.get)(parent, 'parent');\n      depth += 1;\n    }\n    return depth;\n  }\n});","define(\"portal/routes/entity/financials/reports/general-ledger/itm-profit-and-loss\", [\"exports\", \"@ember/routing/route\", \"@ember/service\", \"@ember/object\", \"rsvp\", \"portal/config/environment\", \"moment\", \"lodash\", \"portal/mixins/scroll-route\", \"jquery\"], function (_exports, _route, _service, _object, _rsvp, _environment, _moment, _lodash, _scrollRoute, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\",0,\"@ember/object\",0,\"rsvp\",0,\"portal/config/environment\",0,\"moment\",0,\"lodash\",0,\"portal/mixins/scroll-route\",0,\"jquery\"eaimeta@70e063a35619d71f\n  const itmReportKpis = {\n    systemMargin: '5a88e5985be3005acc5c6014',\n    achievedMargin: '5a88e59801744a5acc58bc90',\n    grossMargin: '5a88e5989c00575acc486082',\n    netProfit: '5a88e598732ca45acc534c6c',\n    ebitda: '5a88e5988c061c5accc91919'\n  };\n  const itmImportantAccounts = {\n    sales: '557f4a3dfb92c8281395931b',\n    costOfSales: '557f4b7f8d1df11218796263',\n    stockVariation: '5a88d7d59ed0105859a10979',\n    loyaltiesAndFreight: '5a88d82f3457965b08a9a355',\n    otherIncomeAndDepreciation: '557f4f6f8d1df1121879626c',\n    expenses: '557f67af8d1df11218796406'\n  };\n  var _default = _exports.default = _route.default.extend(_scrollRoute.default, {\n    cache: (0, _service.inject)(),\n    router: (0, _service.inject)(),\n    session: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    queryParams: {\n      selectedEntityIds: {\n        refreshModel: true,\n        replace: true\n      },\n      selectedGroupIds: {\n        refreshModel: true,\n        replace: true\n      }\n    },\n    model(params) {\n      const entity = (0, _object.get)(this, 'sessionData.entity.id');\n      const selectedEntities = (params.selectedEntityIds || []).map(id => ({\n        type: 'entity',\n        id\n      }));\n      const selectedGroups = (params.selectedGroupIds || []).map(id => ({\n        type: 'group',\n        id\n      }));\n      const parentEntity = (0, _object.get)(this, 'sessionData.entity.parent.id');\n      const period = (0, _object.get)(this, 'sessionData.period');\n      const previousYearPeriod = (0, _moment.default)((0, _object.get)(this, 'sessionData.period')).subtract(1, 'year').format('YYYY-MM');\n      const token = (0, _object.get)(this, 'session.data.authenticated.access_token');\n      let firstClosedPeriod;\n      const allEntitiesAndGroups = [];\n      if (parentEntity) allEntitiesAndGroups.push({\n        type: 'entity',\n        id: entity\n      });\n      allEntitiesAndGroups.push(...selectedEntities);\n      allEntitiesAndGroups.push(...selectedGroups);\n      const accountQuery = {\n        and: [{\n          field: 'category',\n          op: 'EQ',\n          value: 'profit-and-loss'\n        }]\n      };\n      const kpiQuery = {\n        and: [{\n          field: '_id',\n          op: 'IN',\n          value: _lodash.default.map(itmReportKpis, i => i)\n        }]\n      };\n      if (parentEntity) {\n        accountQuery.and.push({\n          field: 'entity',\n          op: 'EQ',\n          value: parentEntity\n        });\n        kpiQuery.and.push({\n          field: 'entity',\n          op: 'EQ',\n          value: parentEntity\n        });\n      }\n      return Promise.all([this.store.query('account', {\n        filter: accountQuery\n      }), this.store.query('kpi', {\n        filter: kpiQuery\n      })]).then(([accountRecords = [], kpiRecords = []]) => _rsvp.default.all(allEntitiesAndGroups.map(entity => _rsvp.default.all([this.getReport(accountRecords, entity, period, token, 'balances'), this.getReport(accountRecords, entity, previousYearPeriod, token, 'balances'), this.getReport(kpiRecords, entity, period, token, 'kpis'), this.getReport(kpiRecords, entity, previousYearPeriod, token, 'kpis')])))).then(entityReports => {\n        if (!entityReports.length) return null;\n        const reportsHash = {};\n        const salesNumbers = {\n          month: [],\n          ytd: [],\n          monthPrev: [],\n          ytdPrev: []\n        };\n        entityReports.forEach(report => {\n          const salesReport = report[0].data.find(r => r.metric === itmImportantAccounts.sales);\n          const SalesReportPrevious = report[1].data.find(r => r.metric === itmImportantAccounts.sales);\n          salesNumbers.month.push(_lodash.default.get(salesReport, 'series[0].periods[0].periodTypes.month.value', 0));\n          salesNumbers.ytd.push(_lodash.default.get(salesReport, 'series[0].periods[0].periodTypes.ytd.value', 0));\n          salesNumbers.monthPrev.push(_lodash.default.get(SalesReportPrevious, 'series[0].periods[0].periodTypes.month.value', 0));\n          salesNumbers.ytdPrev.push(_lodash.default.get(SalesReportPrevious, 'series[0].periods[0].periodTypes.ytd.value', 0));\n        });\n        const parseReport = (indexCurrent, indexPrevious) => {\n          return entityReports[0][indexCurrent].data.map((account, i) => {\n            const parsedReport = Object.assign({}, account.meta, {\n              month: [],\n              ytd: [],\n              monthPrev: [],\n              ytdPrev: [],\n              children: [],\n              accountMeta: [],\n              monthPercentSales: [],\n              monthPrevPercentSales: [],\n              ytdPercentSales: [],\n              ytdPrevPercentSales: [],\n              monthPercentParent: [],\n              monthPrevPercentParent: [],\n              ytdPercentParent: [],\n              ytdPrevPercentParent: []\n            });\n            entityReports.forEach((reports, j) => {\n              const current = reports[indexCurrent];\n              const previous = reports[indexPrevious];\n              firstClosedPeriod = firstClosedPeriod || current.meta.firstClosedPeriod;\n\n              /*\n              Kpis have a nonAnnualisedValue as well as a value key.\n              For kpis, we need the nonAnnualisedValue and for accounts, we need the value.\n              Fallback to zero if neither is present.\n              */\n              parsedReport.month.push(_lodash.default.get(current, `data[${i}].series[0].periods[0].periodTypes.month.nonAnnualisedValue`) || _lodash.default.get(current, `data[${i}].series[0].periods[0].periodTypes.month.value`) || 0);\n              parsedReport.ytd.push(_lodash.default.get(current, `data[${i}].series[0].periods[0].periodTypes.ytd.nonAnnualisedValue`) || _lodash.default.get(current, `data[${i}].series[0].periods[0].periodTypes.ytd.value`) || 0);\n              parsedReport.monthPrev.push(_lodash.default.get(previous, `data[${i}].series[0].periods[0].periodTypes.month.nonAnnualisedValue`) || _lodash.default.get(previous, `data[${i}].series[0].periods[0].periodTypes.month.value`) || 0);\n              parsedReport.ytdPrev.push(_lodash.default.get(previous, `data[${i}].series[0].periods[0].periodTypes.ytd.nonAnnualisedValue`) || _lodash.default.get(previous, `data[${i}].series[0].periods[0].periodTypes.ytd.value`) || 0);\n              parsedReport.monthPercentSales[j] = salesNumbers.month[j] && parsedReport.month[j] / salesNumbers.month[j];\n              parsedReport.monthPrevPercentSales[j] = salesNumbers.monthPrev[j] && parsedReport.monthPrev[j] / salesNumbers.monthPrev[j];\n              parsedReport.ytdPercentSales[j] = salesNumbers.ytd[j] && parsedReport.ytd[j] / salesNumbers.ytd[j];\n              parsedReport.ytdPrevPercentSales[j] = salesNumbers.ytdPrev[j] && parsedReport.ytdPrev[j] / salesNumbers.ytdPrev[j];\n            });\n            reportsHash[account.metric] = parsedReport;\n            return parsedReport;\n          });\n        };\n        let accountReports = parseReport(0, 1);\n        accountReports = accountReports.sortBy('sortIndex');\n        accountReports.forEach(report => {\n          if (report.parent) {\n            const parentReport = reportsHash[report.parent];\n            entityReports.forEach((entity, i) => {\n              report.monthPercentParent[i] = report.month[i] / parentReport.month[i];\n              report.monthPrevPercentParent[i] = report.monthPrev[i] / parentReport.monthPrev[i];\n              report.ytdPercentParent[i] = report.ytd[i] / parentReport.ytd[i];\n              report.ytdPrevPercentParent[i] = report.ytdPrev[i] / parentReport.ytdPrev[i];\n              report.parent = parentReport;\n            });\n            parentReport.children.push(report);\n          }\n        });\n\n        // Parse KPI reports\n        parseReport(2, 3);\n        const isBranch = Boolean((0, _object.get)(this, 'sessionData.entity.parent.id'));\n        const ownFirstClosedPeriod = (0, _object.get)(((0, _object.get)(this, 'sessionData.entity.financialOptions') || [])[0] || {}, 'firstClosedPeriod');\n        // Own data is withheld if the entity is a brance, FCP exists, and the current period is the same or after the FCP\n        const ownDataWithheld = isBranch && ownFirstClosedPeriod && period >= (0, _moment.default)(ownFirstClosedPeriod).format('YYYY-MM');\n        const groupsRedacted = firstClosedPeriod && period >= (0, _moment.default)(firstClosedPeriod).format('YYYY-MM');\n        return _rsvp.default.hash({\n          ownDataWithheld,\n          groupsRedacted,\n          sales: reportsHash[itmImportantAccounts.sales],\n          costOfSales: reportsHash[itmImportantAccounts.costOfSales],\n          stockVariation: reportsHash[itmImportantAccounts.stockVariation],\n          loyaltiesAndFreight: reportsHash[itmImportantAccounts.loyaltiesAndFreight],\n          otherIncomeAndDepreciation: reportsHash[itmImportantAccounts.otherIncomeAndDepreciation],\n          expenses: reportsHash[itmImportantAccounts.expenses],\n          rebates: reportsHash[itmImportantAccounts.rebates],\n          systemMargin: reportsHash[itmReportKpis.systemMargin],\n          achievedMargin: reportsHash[itmReportKpis.achievedMargin],\n          grossMargin: reportsHash[itmReportKpis.grossMargin],\n          netProfit: reportsHash[itmReportKpis.netProfit],\n          ebitda: reportsHash[itmReportKpis.ebitda]\n        });\n      }, reason => {\n        if ((0, _object.get)(reason, 'status') === 400 && (0, _object.get)(reason, 'responseJSON.message') && (0, _object.get)(reason, 'responseJSON.message').indexOf('Failed to find accounts with the following labels') !== -1) {\n          return this.router.replaceWith('entity.setup-incomplete');\n        } else {\n          throw reason;\n        }\n      });\n    },\n    setupController(controller) {\n      this._super(...arguments);\n      const parentEntity = (0, _object.get)(this, 'sessionData.entity.parent.id') || (0, _object.get)(this, 'sessionData.entity.id');\n\n      /*\n      This used to be returned by the model hook however it would often fail if the route was being\n      navigated to a second time. This makes sure that we only ever fetch groups once, avoiding the issue.\n      */\n      const allowedGroups = (0, _object.get)(controller, 'allowedGroups');\n      if (!allowedGroups || !allowedGroups.length) {\n        this.store.simpleQuery('entity-group', {\n          parentEntity\n        }).then(groups => {\n          (0, _object.set)(controller, 'allowedGroups', groups.sortBy('name'));\n          (0, _object.set)(controller, 'selectedGroups', (0, _object.get)(controller, 'selectedGroupIds').map(g => groups.findBy('id', g)));\n        });\n      } else {\n        (0, _object.set)(controller, 'selectedGroups', (0, _object.get)(controller, 'selectedGroupIds').map(g => allowedGroups.findBy('id', g)));\n      }\n\n      // This is just to follow the same pattern as groups. Also prevents excess iterations through entities.\n      const allEntities = (0, _object.get)(controller, 'allEntities');\n      if (!allEntities || !allEntities.length) {\n        const entities = (0, _object.get)(this, 'sessionData.allowedEntities').filter(e => (0, _object.get)(e, 'parent.id') === parentEntity);\n        (0, _object.set)(controller, 'allEntities', entities);\n        (0, _object.set)(controller, 'selectedEntities', (0, _object.get)(controller, 'selectedEntityIds').map(e => entities.findBy('id', e)));\n      } else {\n        (0, _object.set)(controller, 'selectedEntities', (0, _object.get)(controller, 'selectedEntityIds').map(e => allEntities.findBy('id', e)));\n      }\n    },\n    getReport(metrics, entity, period, token, type) {\n      if (!(0, _object.get)(metrics, 'length')) return;\n      if (!['kpis', 'balances'].includes(type)) throw new Error('Type must be `kpis` or `balances`');\n      const url = _environment.default.urls.api + _environment.default.urls.apiV1Path + '/reports/' + type;\n      const payload = {\n        periodStart: period,\n        periodEnd: period,\n        periodTypes: ['month', 'ytd'],\n        metrics: metrics.mapBy('id')\n      };\n      if (!entity.type) payload.entity = entity.id;\n      if (entity.type === 'entity') payload.entity = entity.id;\n      if (entity.type === 'group') payload.entityGroups = [entity.id];\n      const cacheKey = _lodash.default.merge(payload, {\n        type\n      });\n      const cached = (0, _object.get)(this, 'cache').lookup('reports', cacheKey);\n      if (cached) return cached;\n      return new Promise((resolve, reject) => {\n        _jquery.default.ajax({\n          url,\n          headers: {\n            Authorization: 'Bearer ' + token\n          },\n          data: JSON.stringify(payload),\n          method: 'POST',\n          contentType: 'application/json'\n        }).then(data => {\n          (0, _object.get)(this, 'cache').store('reports', cacheKey, data);\n          resolve(data);\n        }, reject);\n      });\n    }\n  });\n});","define(\"portal/routes/entity/financials/reports/general-ledger/other-data\", [\"exports\", \"portal/routes/entity/financials/reports/general-ledger/base\"], function (_exports, _base) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/routes/entity/financials/reports/general-ledger/base\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _base.default.extend({\n    category: 'other-data'\n  });\n});","define(\"portal/routes/entity/financials/reports/general-ledger/personal-data\", [\"exports\", \"@ember/routing/route\", \"@ember/service\", \"@ember/object\", \"rsvp\", \"jquery\", \"moment\", \"portal/config/environment\", \"lodash\", \"portal/utils/nest\", \"portal/mixins/scroll-route\"], function (_exports, _route, _service, _object, _rsvp, _jquery, _moment, _environment, _lodash, _nest, _scrollRoute) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\",0,\"@ember/object\",0,\"rsvp\",0,\"jquery\",0,\"moment\",0,\"portal/config/environment\",0,\"lodash\",0,\"portal/utils/nest\",0,\"portal/mixins/scroll-route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend(_scrollRoute.default, {\n    cache: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    session: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    queryParams: {\n      interval: {\n        refreshModel: true,\n        replace: true\n      },\n      duration: {\n        refreshModel: true,\n        replace: true\n      }\n    },\n    actions: {\n      didTransition() {\n        this._super(...arguments);\n\n        // Make sure that the expanded/collapsed settings on each account get\n        // applied each time the route is visited.\n        this.controller.applyAccountSettings();\n        return true; // Allow action to bubble.\n      }\n    },\n    async model(params) {\n      const entity = (0, _object.get)(this, 'sessionData.entity.id');\n      const parentEntity = (0, _object.get)(this, 'sessionData.entity.parent.id');\n      const periods = [];\n      for (let i = params.duration - 1; i >= 0; i--) {\n        const age = params.interval * i;\n        periods.push({\n          start: (0, _moment.default)((0, _object.get)(this, 'sessionData.period'), 'YYYY-MM').subtract(age, 'months').format('YYYY-MM'),\n          end: (0, _moment.default)((0, _object.get)(this, 'sessionData.period'), 'YYYY-MM').subtract(age, 'months').format('YYYY-MM')\n        });\n      }\n      const accountQueryOptions = {};\n      if (parentEntity) {\n        accountQueryOptions.filter = {\n          and: [{\n            field: 'entity',\n            op: 'EQ',\n            value: parentEntity\n          }]\n        };\n      }\n      const accountsResult = await this.store.query('account', accountQueryOptions);\n      const accountsList = accountsResult.slice(); // Converts RecordArray to standard JS Array\n\n      const accountsArray = accountsList.map(a => a.id); // Replaced legacy mapBy with native map\n\n      const metricsPromises = periods.map(period => {\n        return this.getMetrics('balances', accountsArray, entity, period);\n      });\n      let data = await _rsvp.default.all(metricsPromises);\n      data = [collectByMetric(data)];\n      const balances = data[0].reduce((allBalances, metric) => {\n        if (metric) {\n          const metricId = (0, _object.get)(metric, 'meta._id');\n          const matchingAccount = accountsList.find(account => account.id === metricId);\n          allBalances.push(_lodash.default.merge(metric.meta, {\n            id: metricId,\n            data: metric.series,\n            hideChildren: true,\n            depth: getAccountDepth(matchingAccount),\n            print: true\n          }));\n        }\n        return allBalances;\n      }, []).sortBy('sortIndex');\n      const topLevelAccounts = [];\n      const childAccounts = [];\n      balances.forEach(balance => {\n        if (balance) {\n          if ((0, _object.get)(balance, 'parent') == null) {\n            topLevelAccounts.pushObject(balance);\n          } else {\n            childAccounts.pushObject(balance);\n          }\n        }\n      });\n      const nestedAccounts = (0, _nest.default)(topLevelAccounts, childAccounts, false);\n      return {\n        nestedAccounts\n      };\n    },\n    getMetrics(type, metrics, entity, period) {\n      return new _rsvp.default.Promise(resolve => {\n        if (!metrics || !metrics.length) {\n          return resolve([]);\n        }\n        const url = `${_environment.default.urls.api}${_environment.default.urls.apiV1Path}/reports/${type}`;\n        const payload = {\n          entities: [entity],\n          periodStart: period.start,\n          periodEnd: period.end,\n          periodTypes: period.type,\n          metrics\n        };\n        const headers = {\n          Authorization: 'Bearer ' + (0, _object.get)(this, 'session.data.authenticated.access_token')\n        };\n        const cacheKey = _lodash.default.merge(payload, {\n          type\n        });\n        const cached = (0, _object.get)(this, 'cache').lookup('reports', cacheKey);\n        if (cached) return resolve(_lodash.default.cloneDeep(cached));\n        _jquery.default.ajax({\n          url,\n          method: 'POST',\n          data: JSON.stringify(payload),\n          headers,\n          contentType: 'application/json'\n        }).then(res => {\n          (0, _object.get)(this, 'cache').store('reports', cacheKey, _lodash.default.cloneDeep(res.data));\n          resolve(res.data);\n        });\n      });\n    }\n  });\n  function collectByMetric(dataSets) {\n    const blankObject = {\n      periods: [{\n        periodTypes: {\n          month: {\n            value: 0\n          },\n          ytd: {\n            value: 0\n          }\n        }\n      }]\n    };\n    const formattedValues = dataSets[0];\n    dataSets.forEach((data, index) => {\n      formattedValues.forEach(account => {\n        if (account) {\n          if (index > 0) {\n            data.forEach(dataItem => {\n              if (dataItem) {\n                if (dataItem.metric === account.metric) {\n                  account.series.push(dataItem.series[0]);\n                }\n              }\n            });\n          } else {\n            data.forEach(dataItem => {\n              if (dataItem) {\n                if (dataItem.metric === account.metric) {\n                  if (!dataItem.series[0]) {\n                    account.series.push(blankObject);\n                  }\n                }\n              }\n            });\n          }\n        }\n      });\n    });\n    return formattedValues;\n  }\n  function getAccountDepth(account) {\n    let depth = 0;\n    if (account) {\n      let parent = (0, _object.get)(account, 'parent');\n\n      // Depth check just in case of an infinite loop\n      while ((0, _object.get)(parent, 'id') && depth <= 100) {\n        parent = (0, _object.get)(parent, 'parent');\n        depth += 1;\n      }\n    }\n    return depth;\n  }\n});","define(\"portal/routes/entity/financials/reports/general-ledger/profit-and-loss\", [\"exports\", \"portal/routes/entity/financials/reports/general-ledger/base\"], function (_exports, _base) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/routes/entity/financials/reports/general-ledger/base\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _base.default.extend({\n    category: 'profit-and-loss'\n  });\n});","define(\"portal/routes/entity/financials/reports/imports\", [\"exports\", \"@ember/routing/route\", \"@ember/service\", \"@ember/object\", \"rsvp\", \"jquery\", \"portal/config/environment\", \"moment\", \"portal/mixins/scroll-route\"], function (_exports, _route, _service, _object, _rsvp, _jquery, _environment, _moment, _scrollRoute) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\",0,\"@ember/object\",0,\"rsvp\",0,\"jquery\",0,\"portal/config/environment\",0,\"moment\",0,\"portal/mixins/scroll-route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend(_scrollRoute.default, {\n    session: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    model() {\n      const entityId = (0, _object.get)(this, 'sessionData.entity.id');\n      const url = _environment.default.urls.api + _environment.default.urls.apiV1Path + '/reports/periods';\n      const payload = {\n        entity: entityId\n      };\n      const dataType = 'json';\n      const headers = {\n        Authorization: 'Bearer ' + (0, _object.get)(this, 'session.data.authenticated.access_token')\n      };\n      const getReport = _jquery.default.ajax({\n        url,\n        headers,\n        data: payload,\n        dataType\n      }).then(res => {\n        let earliest;\n        let latest;\n        const data = ((0, _object.get)(res, 'data') || []).map(entity => ({\n          ...entity,\n          // Convert ISO strings to dates\n          periods: entity.periods.map(period => new Date(period))\n        }));\n        data.forEach(({\n          periods\n        }) => {\n          periods.forEach(date => {\n            if (!earliest || date < earliest) {\n              earliest = date;\n            }\n            if (!latest || date > latest) {\n              latest = date;\n            }\n          });\n        });\n        const periods = [];\n        let current = earliest;\n        while (current <= latest) {\n          periods.push({\n            date: current,\n            count: 0\n          });\n          current = (0, _moment.default)(current).add(1, 'month').endOf('month').toDate();\n        }\n        const entities = [];\n        data.forEach(entity => {\n          const periodsForEntity = [];\n          periods.forEach(period => {\n            const periodData = (0, _object.get)(entity, 'periods').find(entityPeriod => {\n              return (0, _object.get)(period, 'date').getTime() === entityPeriod.getTime();\n            });\n            if (periodData) {\n              period.count += 1;\n            }\n            periodsForEntity.push(periodData || null);\n          });\n          entities.push({\n            id: (0, _object.get)(entity, 'entity'),\n            name: (0, _object.get)(entity, 'entityName'),\n            periods: periodsForEntity\n          });\n        });\n        return {\n          entities,\n          periods\n        };\n      });\n      return _rsvp.default.all([getReport]).then(([report]) => {\n        return report;\n      });\n    }\n  });\n});","define(\"portal/routes/entity/financials/reports/index\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend({\n    router: (0, _service.inject)(),\n    redirect() {\n      this.router.transitionTo('entity.financials.reports.kpis');\n    }\n  });\n});","define(\"portal/routes/entity/financials/reports/kpis/index\", [\"exports\", \"@ember/routing/route\", \"@ember/service\", \"jquery\", \"rsvp\", \"@ember/object\", \"portal/config/environment\", \"moment\"], function (_exports, _route, _service, _jquery, _rsvp, _object, _environment, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\",0,\"jquery\",0,\"rsvp\",0,\"@ember/object\",0,\"portal/config/environment\",0,\"moment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend({\n    cache: (0, _service.inject)(),\n    session: (0, _service.inject)(),\n    newFeatureFlags: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    async model() {\n      let entityId = (0, _object.get)(this, 'sessionData.entity.id');\n      let parentEntityId = (0, _object.get)(this, 'sessionData.entity.parent.id');\n      const userGroups = this.sessionData.user.hasMany('entityGroups').value();\n      const userLinkedEntityGroupsIds = userGroups.toArray().map(item => item.belongsTo('entityGroup').id()).filter(Boolean);\n      const period = (0, _object.get)(this, 'sessionData.period');\n      const kpiQueryOptions = {};\n\n      // TODO bit hacky, someone with more time fix this.\n      // It just stops the entity from coming up if you are on a top level entity.\n      // can probably just be removed once reports for top level entities is implemented.\n      if (!parentEntityId) {\n        parentEntityId = entityId;\n        entityId = null;\n        kpiQueryOptions.filter = {\n          and: [{\n            field: 'entity',\n            op: 'EQ',\n            value: parentEntityId\n          }]\n        };\n      }\n\n      // Load the groups and KPIs for this entity first so we know which to include in the report\n      const getGroups = this.loadGroups(parentEntityId, entityId, userLinkedEntityGroupsIds);\n      const getKpis = this.store.query('kpi', kpiQueryOptions).then(kpis => kpis.filterBy('active', true));\n      return _rsvp.default.all([getGroups, getKpis]).then(([groups, kpis]) => this.loadReport(period, groups.mapBy('id'), kpis.mapBy('id'), entityId).then(report => this.formatReport(report, groups, entityId, period))).catch(reason => {\n        throw reason;\n      });\n    },\n    async loadGroups(parentEntity, entity, userGroups) {\n      const query = {\n        and: [{\n          field: 'parentEntity',\n          op: 'EQ',\n          value: parentEntity\n        }]\n      };\n      if (!entity) {\n        if (!userGroups.length && !(0, _object.get)(this, 'newFeatureFlags.userIsAdmin')) return _rsvp.default.resolve([]);\n\n        // TODO this check used to be inverted - pretty sure that was a bug but I'm not sure\n        if (userGroups.length) query.and.push({\n          field: '_id',\n          op: 'IN',\n          value: userGroups || []\n        });\n      }\n      let entityGroups = await this.store.query('entity-group', {\n        filter: query,\n        include: 'members,canBeAccessedBy'\n      }).then(groups => groups.sortBy('sortIndex'));\n      entityGroups = entity ? entityGroups.filter(group => {\n        const accessibleItems = (0, _object.get)(group, 'canBeAccessedBy')?.content?.toArray() || [];\n        const filteredItems = accessibleItems.filter(item => (0, _object.get)(item, 'entity.id') === entity);\n        return filteredItems.length > 0;\n      }) : entityGroups?.toArray();\n      return entityGroups;\n    },\n    loadReport(period, groupIds, kpiIds, entityId) {\n      const url = _environment.default.urls.api + _environment.default.urls.apiV1Path + '/reports/kpis';\n      const payload = {\n        entityGroups: groupIds,\n        periodStart: period,\n        periodEnd: period,\n        periodTypes: ['month', 'ytd']\n      };\n      if (kpiIds && (0, _object.get)(kpiIds, 'length')) (0, _object.set)(payload, 'metrics', kpiIds);\n      if (entityId) (0, _object.set)(payload, 'entities', [entityId]);\n      const headers = {\n        Authorization: 'Bearer ' + (0, _object.get)(this, 'session.data.authenticated.access_token')\n      };\n      const cacheKey = Object.assign({\n        type: 'kpis'\n      }, payload);\n      const cached = (0, _object.get)(this, 'cache').lookup('reports', cacheKey);\n      if (cached) {\n        return _rsvp.default.resolve(cached);\n      }\n      return _jquery.default.ajax({\n        url,\n        headers,\n        data: JSON.stringify(payload),\n        method: 'POST',\n        contentType: 'application/json'\n      }).then(data => {\n        (0, _object.get)(this, 'cache').store('reports', cacheKey, data);\n        return data;\n      });\n    },\n    formatReport({\n      data,\n      meta = {}\n    }, groups, entityId, period) {\n      const kpis = [];\n      const firstClosedPeriod = meta.firstClosedPeriod ? (0, _moment.default)(meta.firstClosedPeriod).startOf('month').toDate() : null;\n      meta.groupsRedacted = firstClosedPeriod && period >= (0, _moment.default)(firstClosedPeriod).format('YYYY-MM');\n      data.forEach(metric => {\n        if (!(0, _object.get)(metric, 'meta') || !(0, _object.get)(metric, 'series')) {\n          return;\n        }\n        let values = [];\n        if (entityId) {\n          let entityValues = metric.series.findBy('entity', entityId);\n          entityValues = extractFigures(entityValues);\n          (0, _object.set)(entityValues, 'entity', entityId);\n          values.push(entityValues);\n        }\n        groups.forEach(group => {\n          const groupValues = (0, _object.get)(metric, 'series').findBy('group', (0, _object.get)(group, 'id'));\n          const extractedGroupValues = extractFigures(groupValues);\n\n          // Add entity ID to values object for use in table\n          (0, _object.set)(extractedGroupValues, 'entity', (0, _object.get)(group, 'id'));\n          values.push(extractedGroupValues);\n\n          // Figure out how many entities were used in calculating this group's data\n          let includedEntities = (0, _object.get)(group, 'includedEntities') || 0;\n          includedEntities = Math.max(includedEntities, (0, _object.get)(extractedGroupValues, 'periodTypes.month.includedEntities'), (0, _object.get)(extractedGroupValues, 'periodTypes.ytd.includedEntities'));\n          (0, _object.set)(group, 'includedEntities', includedEntities);\n        });\n        values = values.sortBy('sortIndex');\n        const kpiData = _object.default.create({\n          id: (0, _object.get)(metric, 'metric'),\n          name: (0, _object.get)(metric, 'meta.name'),\n          introLine: (0, _object.get)(metric, 'meta.introLine'),\n          slug: (0, _object.get)(metric, 'metric'),\n          format: (0, _object.get)(metric, 'meta.format'),\n          sortIndex: (0, _object.get)(metric, 'meta.sortIndex'),\n          data: values\n        });\n        kpis.push(kpiData);\n      });\n      const isBranch = Boolean((0, _object.get)(this, 'sessionData.entity.parent.id'));\n      const ownFirstClosedPeriod = (0, _object.get)(((0, _object.get)(this, 'sessionData.entity.financialOptions') || [])[0] || {}, 'firstClosedPeriod');\n      // Own data is withheld if the entity is a brance, FCP exists, and the current period is the same or after the FCP\n      const ownDataWithheld = isBranch && ownFirstClosedPeriod && period >= (0, _moment.default)(ownFirstClosedPeriod).format('YYYY-MM');\n      return {\n        kpis: kpis.sortBy('sortIndex'),\n        groups,\n        firstClosedPeriod,\n        ownDataWithheld,\n        groupsRedacted: meta.groupsRedacted\n      };\n    }\n  }); // TODO this has been reverted because the fluff is being used for its metadata.\n  function extractFigures(entity) {\n    const period = (0, _object.get)(entity || {}, 'periods.0');\n    if (!period) {\n      return {\n        month: null,\n        ytd: null\n      };\n    }\n    (0, _object.set)(period, 'month', (0, _object.get)(entity, 'periods.0.periodTypes.month.value'));\n    (0, _object.set)(period, 'ytd', (0, _object.get)(entity, 'periods.0.periodTypes.ytd.value'));\n    (0, _object.set)(period, 'entity', (0, _object.get)(entity, 'entity') || (0, _object.get)(entity, 'group'));\n    return period;\n  }\n});","define(\"portal/routes/entity/financials/reports/kpis/kpi\", [\"exports\", \"@ember/routing/route\", \"@ember/service\", \"@ember/object\", \"@ember/utils\", \"rsvp\", \"jquery\", \"portal/config/environment\", \"moment\"], function (_exports, _route, _service, _object, _utils, _rsvp, _jquery, _environment, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\",0,\"@ember/object\",0,\"@ember/utils\",0,\"rsvp\",0,\"jquery\",0,\"portal/config/environment\",0,\"moment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend({\n    cache: (0, _service.inject)(),\n    router: (0, _service.inject)(),\n    session: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    periodType: 'month',\n    beforeModel() {\n      if (!(0, _object.get)(this, 'sessionData.entity.parent.id')) this.router.replaceWith('entity.financials.reports.kpis');\n    },\n    async model(params) {\n      const entity = (0, _object.get)(this, 'sessionData.entity');\n      const parentEntity = (0, _object.get)(entity, 'parent.id');\n      const entityId = (0, _object.get)(entity, 'id');\n      const period = (0, _object.get)(this, 'sessionData.period');\n      const periodOptions = {\n        periodStart: (0, _moment.default)(period, 'YYYY-MM').subtract(11, 'months').format('YYYY-MM'),\n        periodEnd: period,\n        periodTypes: ['month', 'ytd']\n      };\n      const entityGroupIds = await this.store.simpleQuery('link-entity-group-can-be-accessed-by', {\n        entity: entityId\n      }).then(res => res.toArray().map(group => group.belongsTo('entityGroup').id()).filter(Boolean));\n      const groupQuery = {\n        _id: {\n          $in: entityGroupIds\n        },\n        parentEntity\n      };\n      const loadEntityGroups = entityGroupIds.length ? this.store.simpleQuery('entity-group', groupQuery) : _rsvp.default.resolve([]);\n      const loadKpiMeta = this.store.simpleQuery('kpi', {\n        entity: parentEntity\n      }).then(kpis => kpis.filterBy('active', true).sortBy('sortIndex'));\n      return loadEntityGroups.then(entityGroups => {\n        const groupIds = entityGroups.mapBy ? entityGroups.mapBy('id') : entityGroups.map(group => (0, _object.get)(group, 'id'));\n        const loadKPIs = this._getKPIs(params.slug, periodOptions, groupIds);\n        const loadStats = this._getStats(params.slug, periodOptions);\n        return _rsvp.default.all([loadKPIs, loadStats, loadKpiMeta, entity, entityGroups]);\n      }).then(([[kpi], stats, kpiMeta, resolvedEntity, entityGroups]) => {\n        const groups = entityGroups.toArray ? entityGroups.toArray() : entityGroups;\n        const series = groups.sortBy ? groups.sortBy('sortIndex') : [...groups].sort((a, b) => (0, _object.get)(a, 'sortIndex', 0) - (0, _object.get)(b, 'sortIndex', 0));\n        if (!(0, _utils.isEmpty)(resolvedEntity)) {\n          series.unshift(resolvedEntity);\n        }\n        return {\n          kpi,\n          kpiMeta,\n          entityGroups: groups,\n          series,\n          stats,\n          periodOptions\n        };\n      }, reason => {\n        const message = (0, _object.get)(reason, 'responseJSON.message') || '';\n        const missingLabelError = 'Failed to find accounts with the following labels';\n        if (reason.status === 400 && message.indexOf(missingLabelError) > -1) {\n          return this.router.replaceWith('entity.setup-incomplete');\n        } else {\n          throw reason;\n        }\n      });\n    },\n    _getKPIs(metric, {\n      periodStart,\n      periodEnd,\n      periodTypes\n    }, entityGroups) {\n      const entity = (0, _object.get)(this, 'sessionData.entity.id');\n      const url = _environment.default.urls.api + _environment.default.urls.apiV1Path + '/reports/kpis';\n      const payload = {\n        entity,\n        periodStart,\n        periodEnd,\n        periodTypes,\n        entityGroups,\n        metrics: [metric]\n      };\n      const headers = {\n        Authorization: 'Bearer ' + (0, _object.get)(this, 'session.data.authenticated.access_token')\n      };\n      const cached = this._getCached('kpis', payload);\n      if (cached) {\n        return cached;\n      }\n      return _jquery.default.ajax({\n        url,\n        headers,\n        data: JSON.stringify(payload),\n        method: 'POST',\n        contentType: 'application/json'\n      }).then(data => this._cache('kpis', payload, data));\n    },\n    _getStats(metric, {\n      periodEnd,\n      periodTypes\n    }) {\n      const entity = (0, _object.get)(this, 'sessionData.entity.id');\n      const url = _environment.default.urls.api + _environment.default.urls.apiV1Path + '/reports/stats';\n      const token = (0, _object.get)(this, 'session.data.authenticated.access_token');\n      const payload = {\n        entity,\n        periodStart: periodEnd,\n        // we only need one period\n        periodEnd,\n        periodTypes,\n        metrics: [metric]\n      };\n      const headers = {\n        Authorization: `Bearer ${token}`\n      };\n      const cached = this._getCached('kpiStats', payload);\n      if (cached) {\n        return cached;\n      }\n      return _jquery.default.ajax({\n        url,\n        headers,\n        data: payload,\n        dataType: 'json'\n      }).then(data => this._cache('kpiStats', payload, data)).then(data => (0, _object.get)(data, '0.periodTypes'));\n    },\n    _getCached(type, payload) {\n      const key = Object.assign({}, payload, {\n        type\n      });\n      return (0, _object.get)(this, 'cache').lookup('reports', key);\n    },\n    _cache(type, payload, {\n      data\n    }) {\n      const key = Object.assign({}, payload, {\n        type\n      });\n      (0, _object.get)(this, 'cache').store('reports', key, data);\n      return data || [];\n    }\n  });\n});","define(\"portal/routes/entity/index\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n      _initializerDefineProperty(this, \"modules\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n    }\n    beforeModel() {\n      if (this.modules.allowedModules.length === 0) {\n        this.router.transitionTo(this.newFeatureFlags.includesFeatureFlags('userIsEntityAdmin') ? 'entity.disabled' // only show the disabled page to entity managers\n        : 'no-access' // otherwise it is assumed you don't have permission to access anything\n        );\n      } else if (this.modules.allowedModules.length === 1) {\n        // If there is only one module allowed, go to it\n        this.router.transitionTo(`entity.${this.modules.allowedModules[0].slug}`);\n      } else {\n        // If there are multiple modules allowed, go to dashboard\n        this.router.transitionTo('entity.module-dashboard');\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"modules\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/module-dashboard\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"modules\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n      _initializerDefineProperty(this, \"helpCenter\", _descriptor3, this);\n    }\n    beforeModel() {\n      // if there aren't at least 2 modules, go back up to the entity index route.\n      if (this.modules.allowedModules.length <= 1) this.router.transitionTo('entity.index');\n      this.helpCenter.hideHelpCenter();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"modules\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"helpCenter\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/settings/auto-mapping\", [\"exports\", \"@ember/routing/route\", \"rsvp\", \"@ember/object\", \"@ember/service\"], function (_exports, _route, _rsvp, _object, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"rsvp\",0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _defineProperty(this, \"basePath\", 'entity.settings');\n    }\n    model() {\n      return _rsvp.default.hash({\n        // Get all directives for the entity, convert to a native array so it can be mutated\n        directives: this._getDirectives(),\n        // Get all available merchant accounts for the entity\n        merchantAccounts: this.store.simpleQuery('supplier-debtor-account', {\n          entity: (0, _object.get)(this, 'sessionData.entity.id')\n        }),\n        // Get all open projects for the entity\n        projects: this.store.simpleQuery('project', {\n          entity: (0, _object.get)(this, 'sessionData.entity.id'),\n          status: 'OPEN'\n        }),\n        basePath: this.basePath\n      });\n    }\n    refreshDirectives() {\n      this._getDirectives().then(directives => (0, _object.set)(this, 'controller.model.directives', directives));\n    }\n    _getDirectives() {\n      return this.store.query('invoice-auto-map-directive', {\n        filter: {\n          and: [{\n            field: 'entity',\n            op: 'EQ',\n            value: (0, _object.get)(this, 'sessionData.entity.id')\n          }]\n        },\n        sort: '-dateCreated'\n      }).then(r => r.toArray());\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"refreshDirectives\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"refreshDirectives\"), _class2.prototype), _class2);\n});","define(\"portal/routes/entity/settings/chart-of-accounts/chart-of-account\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"@ember/object\"], function (_exports, _asyncArrowRuntime, _route, _service, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _defineProperty(this, \"basePath\", 'entity.settings.chart-of-accounts.chart-of-account');\n      _defineProperty(this, \"getGlAccount\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (id) {\n          let glAccount;\n          if (id === 'new') {\n            glAccount = yield this.store.createRecord('gl-account', {\n              entity: this.sessionData.entity\n            });\n          } else {\n            glAccount = yield this.store.findRecord('gl-account', id);\n          }\n          return glAccount;\n        }\n      }), null, \"getGlAccount\", null));\n    }\n    model({\n      chart_of_account_id: glAccountId\n    }) {\n      this.getGlAccount.perform(glAccountId);\n      return {\n        glAccount: this.getGlAccount\n      };\n    }\n    willTransition() {\n      const glAccount = this.currentModel.glAccount.last.value;\n      if (glAccount?.isNew) glAccount.destroyRecord();\n      if (glAccount.hasDirtyAttributes) glAccount.unloadRecord();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"willTransition\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"willTransition\"), _class2.prototype), _class2);\n});","define(\"portal/routes/entity/settings/chart-of-accounts/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"@ember/service\",0,\"ember-concurrency\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _defineProperty(this, \"queryParams\", {\n        pageSize: {\n          refreshModel: true\n        },\n        pageNumber: {\n          refreshModel: true\n        },\n        searchString: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"pageSizes\", [25, 50, 75, 100, 125, 150, 200]);\n      _defineProperty(this, \"getGlAccounts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (pageSize, pageNumber, searchString) {\n          const filter = {\n            and: [{\n              field: 'entity',\n              op: 'EQ',\n              value: this.sessionData.entity.id\n            }],\n            or: []\n          };\n          if (searchString) {\n            filter.or.push({\n              field: 'name',\n              op: 'ILIKE',\n              value: searchString\n            });\n            filter.or.push({\n              field: 'code',\n              op: 'ILIKE',\n              value: searchString\n            });\n          }\n          const glAccounts = yield this.store.query('gl-account', {\n            filter,\n            page: {\n              number: pageNumber || Number(1),\n              size: pageSize || this.pageSizes[0]\n            },\n            sort: 'name'\n          });\n          return glAccounts;\n        }\n      }), null, \"getGlAccounts\", null));\n    }\n    model({\n      pageSize = this.pageSizes[0],\n      pageNumber = 1,\n      searchString\n    }) {\n      this.getGlAccounts.perform(pageSize, pageNumber, searchString);\n      return {\n        glAccounts: this.getGlAccounts,\n        pageSize: Number(pageSize),\n        pageNumber: Number(pageNumber),\n        pageSizes: this.pageSizes\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/settings/company\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"@ember/object\", \"portal/models/purchase-order-option\", \"portal/models/entity-invoice-option\"], function (_exports, _asyncArrowRuntime, _route, _service, _object, _purchaseOrderOption, _entityInvoiceOption) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"@ember/object\",0,\"portal/models/purchase-order-option\",0,\"portal/models/entity-invoice-option\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"accountingPlatform\", _descriptor3, this);\n      _defineProperty(this, \"loadEntityProfitMargin\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (entity) {\n          yield entity.loadProfitMargins();\n          if (!entity.belongsTo('profitMargin').value()) {\n            entity.profitMargin = this.store.createRecord('profit-margin', {\n              entity\n            });\n          }\n        }\n      }), null, \"loadEntityProfitMargin\", null));\n      _defineProperty(this, \"loadEntityStagePaymentOptions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (entity) {\n          yield entity.loadStagePaymentOptions();\n          if (!entity.belongsTo('stagePaymentOption').value()) {\n            entity.stagePaymentOption = this.store.createRecord('stage-payment-option', {\n              entity\n            });\n          }\n        }\n      }), null, \"loadEntityStagePaymentOptions\", null));\n      _defineProperty(this, \"loadPurchaseOrderOptions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (entity) {\n          const options = yield this.store.simpleQuery('purchase-order-option', {\n            entity: entity.id\n          });\n          if (!options?.[0]) return _purchaseOrderOption.default.defaultOptionsRecord(this.store, this.sessionData.entity);\n          return options?.[0];\n        }\n      }), null, \"loadPurchaseOrderOptions\", null));\n      _defineProperty(this, \"loadInvoiceOptions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (entity) {\n          const options = yield this.store.query('entity-invoice-option', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: entity.id\n              }]\n            }\n          });\n          if (!options?.[0]) return _entityInvoiceOption.default.defaultOptionsRecord(this.store, this.sessionData.entity);\n          return options?.[0];\n        }\n      }), null, \"loadInvoiceOptions\", null));\n      _defineProperty(this, \"loadCompanyLogo\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (entity) {\n          yield entity.loadCompanyLogo();\n          return entity.safeBelongsToValue('companyLogo');\n        }\n      }), null, \"loadCompanyLogo\", null));\n      _defineProperty(this, \"loadGlAccounts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const accounts = yield this.accountingPlatform.loadActivePlatformGlAccounts.perform();\n          return accounts?.toArray();\n        }\n      }), null, \"loadGlAccounts\", null));\n    }\n    model() {\n      const entity = this.sessionData.entity;\n      this.loadEntityProfitMargin.perform(entity);\n      this.loadPurchaseOrderOptions.perform(entity);\n      this.loadInvoiceOptions.perform(entity);\n      this.loadEntityStagePaymentOptions.perform(entity);\n      this.loadCompanyLogo.perform(entity);\n      this.loadGlAccounts.perform();\n      return {\n        entity,\n        loadEntityProfitMargin: this.loadEntityProfitMargin,\n        purchaseOrderOptions: this.loadPurchaseOrderOptions,\n        invoiceOptions: this.loadInvoiceOptions,\n        stagePaymentOptions: this.loadEntityStagePaymentOptions,\n        companyLogo: this.loadCompanyLogo,\n        glAccounts: this.loadGlAccounts\n      };\n    }\n    willTransition() {\n      const profitMargin = this.currentModel.entity?.belongsTo('profitMargin').value();\n      if (profitMargin?.isNew) profitMargin.destroyRecord();\n      const purchaseOrderOption = this.currentModel.purchaseOrderOptions.last.value;\n      if (purchaseOrderOption?.isNew) purchaseOrderOption.destroyRecord();\n      const invoiceOptions = this.currentModel.invoiceOptions.last.value;\n      if (invoiceOptions?.isNew) invoiceOptions.destroyRecord();\n      const stagePaymentOption = this.currentModel.entity?.belongsTo('stagePaymentOption').value();\n      if (stagePaymentOption?.isNew) stagePaymentOption.destroyRecord();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"accountingPlatform\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"willTransition\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"willTransition\"), _class2.prototype), _class2);\n});","define(\"portal/routes/entity/settings/contacts/contact\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"ember-changeset\", \"portal/utils/email-validator\", \"@ember/object\"], function (_exports, _asyncArrowRuntime, _route, _service, _emberChangeset, _emailValidator, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"ember-changeset\",0,\"portal/utils/email-validator\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _defineProperty(this, \"basePath\", 'entity.settings.contacts.contact');\n      _defineProperty(this, \"validateName\", (newValue, oldValue) => {\n        const name = (newValue ?? oldValue) || '';\n        return name.length > 0 || this.intl.t('validation.Name');\n      });\n      _defineProperty(this, \"validateEmail\", (newValue, oldValue) => {\n        const email = (newValue ?? oldValue) || '';\n        if (email.length) return (0, _emailValidator.default)(email) || this.intl.t('validation.Email');\n        return true;\n      });\n      _defineProperty(this, \"supplierValidator\", ({\n        key,\n        newValue,\n        oldValue\n      }) => {\n        switch (key) {\n          case 'name':\n            return this.validateName(newValue, oldValue);\n          case 'contactEmail':\n            return this.validateEmail(newValue, oldValue);\n          default:\n            break;\n        }\n      });\n      _defineProperty(this, \"supplierValidationMap\", {\n        name: this.validateName,\n        contactEmail: this.validateEmail\n      });\n      _defineProperty(this, \"getSupplierChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (supplier) {\n          yield supplier.last;\n          return (0, _emberChangeset.Changeset)(supplier.last.value, this.supplierValidator, this.supplierValidationMap);\n        }\n      }), null, \"getSupplierChangeset\", null));\n      _defineProperty(this, \"getSupplier\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (id) {\n          let supplier;\n          if (id === 'new') {\n            supplier = yield this.store.createRecord('contact', {\n              entity: this.sessionData.entity\n            });\n          } else {\n            supplier = yield this.store.findRecord('contact', id, {\n              adapterOptions: {\n                fields: {\n                  contacts: '_meta.isLinkedToResources'\n                }\n              }\n            });\n          }\n          return supplier;\n        }\n      }), null, \"getSupplier\", null));\n    }\n    model({\n      contact_id: supplierId\n    }) {\n      this.getSupplier.perform(supplierId);\n      this.getSupplierChangeset.perform(this.getSupplier);\n      return {\n        supplier: this.getSupplier,\n        supplierChangeset: this.getSupplierChangeset\n      };\n    }\n    willTransition(transition) {\n      const supplier = this.currentModel.supplier.last.value;\n      const changeset = this.currentModel.supplierChangeset.last.value;\n      const hasUnsaved = !!changeset?.isDirty;\n      const isNew = !!supplier?.isNew;\n      if ((hasUnsaved || isNew) && !confirm('You have unsaved changes that will be lost if you decide to leave, do you want continue?')) {\n        transition.abort();\n        return false;\n      }\n      if (supplier?.isNew) supplier.destroyRecord();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"willTransition\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"willTransition\"), _class2.prototype), _class2);\n});","define(\"portal/routes/entity/settings/contacts/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"portal/utils/search-term-escape\"], function (_exports, _asyncArrowRuntime, _route, _service, _searchTermEscape) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"portal/utils/search-term-escape\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _defineProperty(this, \"queryParams\", {\n        pageSize: {\n          refreshModel: true\n        },\n        pageNumber: {\n          refreshModel: true\n        },\n        searchString: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"pageSizes\", [25, 50, 75, 100, 125, 150, 200]);\n      _defineProperty(this, \"getSuppliers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (pageSize, pageNumber, searchString) {\n          const filter = {\n            and: [{\n              field: 'entity',\n              op: 'EQ',\n              value: this.sessionData.entity.id\n            }],\n            or: []\n          };\n          if (searchString) {\n            filter.or.push({\n              field: 'name',\n              op: 'ILIKE',\n              value: searchString\n            });\n            filter.or.push({\n              field: 'contactPerson',\n              op: 'ILIKE',\n              value: searchString\n            });\n            filter.or.push({\n              field: 'contactEmail',\n              op: 'ILIKE',\n              value: searchString\n            });\n            filter.or.push({\n              field: 'address',\n              op: 'ILIKE',\n              value: searchString\n            });\n            filter.or.push({\n              field: 'contactNumber',\n              op: 'ILIKE',\n              value: searchString\n            });\n            filter.or.push({\n              field: 'aliases',\n              op: 'CONTAINS_ILIKE',\n              value: `${(0, _searchTermEscape.searchTermEscape)(searchString)}`\n            });\n          }\n          const suppliers = yield this.store.query('contact', {\n            filter,\n            page: {\n              number: pageNumber || Number(1),\n              size: pageSize || this.pageSizes[0]\n            },\n            sort: 'name',\n            fields: {\n              contacts: '_meta.isLinkedToResources'\n            }\n          });\n          return suppliers;\n        }\n      }), null, \"getSuppliers\", null));\n      _defineProperty(this, \"getFirstDuplicateSuppliers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const duplicateSuppliers = yield this.buildaPrice.getDuplicateSuppliers({\n            entityId: this.sessionData.entity.id,\n            pageSize: 1\n          });\n          return duplicateSuppliers.length;\n        }\n      }), null, \"getFirstDuplicateSuppliers\", null));\n    }\n    model({\n      pageSize = this.pageSizes[0],\n      pageNumber = 1,\n      searchString\n    }) {\n      this.getSuppliers.perform(pageSize, pageNumber, searchString);\n      this.getFirstDuplicateSuppliers.perform();\n      return {\n        hasDuplicateSuppliers: this.getFirstDuplicateSuppliers,\n        suppliers: this.getSuppliers,\n        pageSize: Number(pageSize),\n        pageNumber: Number(pageNumber),\n        pageSizes: this.pageSizes\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/settings/estimates/embedded-page\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"@ember/service\",0,\"ember-concurrency\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"session\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"pricing\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      /**\n       * Exhaustive list of pages available in pricing. Some may not be used.\n       */\n      _defineProperty(this, \"PAGES\", {\n        // Job Management\n        jobList: {\n          path: 'syspages/workjob/jobmessage/main.jsp',\n          pageTitle: this.intl.t('shared.estimates.Job list')\n        },\n        ownTakeoff: {\n          path: 'syspages/workjob/jobtemplate/main.jsp',\n          pageTitle: this.intl.t('shared.estimates.Own takeoff')\n        },\n        // Settings\n        materialProduct: {\n          path: 'syspages/settings/myProduct/main.jsp',\n          pageTitle: this.intl.t('entity.settings.estimates.embedded-page.Material product')\n        },\n        materialRate: {\n          path: 'syspages/settings/materialRate/main.jsp',\n          pageTitle: this.intl.t('shared.estimates.Material rate')\n        },\n        plant: {\n          path: 'syspages/settings/plant/main.jsp',\n          pageTitle: 'Plant'\n        },\n        dataDictionary: {\n          path: 'syspages/workmodel/jobdict/main.jsp',\n          pageTitle: this.intl.t('entity.settings.estimates.embedded-page.Data dictionary')\n        },\n        flatRateResource: {\n          path: 'syspages/settings/flatRateResource/main.jsp',\n          pageTitle: this.intl.t('shared.estimates.Flat rate resource')\n        },\n        subcontractorRate: {\n          path: 'syspages/workmodel/workgangsubcontrator/main.jsp',\n          pageTitle: this.intl.t('entity.settings.estimates.embedded-page.Subcontractor rate')\n        },\n        crTools: {\n          path: 'syspages/settings/crTools/main.jsp',\n          pageTitle: this.intl.t('entity.settings.estimates.embedded-page.CR tools')\n        },\n        miscTemplate: {\n          path: 'syspages/settings/miscTemplate/main.jsp',\n          pageTitle: this.intl.t('shared.estimates.Misc template')\n        },\n        sumsSettings: {\n          path: 'syspages/settings/sumsSetting/main.jsp',\n          pageTitle: this.intl.t('entity.settings.estimates.embedded-page.Sums settings')\n        },\n        labourFactor: {\n          path: 'syspages/settings/labourFactor/main.jsp',\n          pageTitle: this.intl.t('shared.estimates.Labour factor')\n        },\n        pendingList: {\n          path: 'syspages/settings/pendingList/main.jsp',\n          pageTitle: this.intl.t('entity.settings.estimates.embedded-page.Pending list')\n        },\n        overheadTemplates: {\n          path: 'syspages/settings/overheadTemplate/main.jsp',\n          pageTitle: this.intl.t('shared.estimates.Overhead templates')\n        },\n        workgangPositions: {\n          path: 'syspages/settings/workgangPositions/main.jsp',\n          pageTitle: this.intl.t('shared.estimates.Workgang positions')\n        },\n        workgangs: {\n          path: 'syspages/settings/workgangs/main.jsp',\n          pageTitle: this.intl.t('shared.estimates.Workgangs')\n        },\n        subcontractorList: {\n          path: 'syspages/settings/subcontracorList/main.jsp',\n          pageTitle: this.intl.t('shared.estimates.Subcontractor list')\n        },\n        // System\n        organization: {\n          path: 'syspages/system/sysdept/main.jsp',\n          pageTitle: this.intl.t('common.Company')\n        },\n        staff: {\n          path: 'syspages/system/sysuser/usermain.jsp',\n          pageTitle: this.intl.t('common.Staff')\n        },\n        role: {\n          path: 'syspages/system/sysrole/main.jsp',\n          pageTitle: this.intl.t('common.Role')\n        },\n        menu: {\n          path: 'syspages/system/sysnode/noderole.jsp',\n          pageTitle: this.intl.t('common.Menu')\n        },\n        trade: {\n          path: 'syspages/system/datajobtype/main.jsp',\n          pageTitle: this.intl.t('common.Trade')\n        },\n        messaging: {\n          path: 'syspages/system/sysworkmessage/main.jsp',\n          pageTitle: this.intl.t('common.Messaging')\n        },\n        reminders: {\n          path: 'syspages/system/sysworkmessagealrm/main.jsp',\n          pageTitle: this.intl.t('common.Reminders')\n        },\n        usage: {\n          path: 'syspages/system/datausage/main.jsp',\n          pageTitle: this.intl.t('common.Usage')\n        },\n        unit: {\n          path: 'syspages/system/dataunit/main.jsp',\n          pageTitle: this.intl.t('common.Unit')\n        },\n        subheader: {\n          path: 'syspages/system/datasubheader/main.jsp',\n          pageTitle: this.intl.t('common.Subheader')\n        },\n        quoteUploader: {\n          path: 'syspages/system/quoteuploader/main.jsp',\n          pageTitle: this.intl.t('entity.settings.estimates.embedded-page.Quote uploader')\n        }\n      });\n      _defineProperty(this, \"_cachedSession\", null);\n      // { entityId, timestamp, sessionId }\n      _defineProperty(this, \"getSessionId\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const sessionId = yield this.pricing.getSessionId();\n          return sessionId;\n        }\n      }), null, \"getSessionId\", null));\n    }\n    model(params) {\n      const {\n        page\n      } = params;\n      const {\n        path,\n        pageTitle\n      } = this.PAGES[page];\n      return {\n        path,\n        pageTitle,\n        sessionId: this.getSessionId.perform(),\n        isUnknown: !path\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"pricing\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/settings/index\", [\"exports\", \"@ember/routing/route\", \"portal/mixins/menu-route\", \"@ember/service\"], function (_exports, _route, _menuRoute, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"portal/mixins/menu-route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default.extend(_menuRoute.default) {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n    }\n    get defaultRoute() {\n      if (this.newFeatureFlags.includesFeatureFlags('userIsWorker')) return 'entity.settings.people.workers';\n      return 'entity.settings.profile';\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/settings/integrations\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"ember-changeset\"], function (_exports, _asyncArrowRuntime, _route, _service, _emberChangeset) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"@ember/service\",0,\"ember-changeset\",0,\"ember-concurrency\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"ips\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n      _defineProperty(this, \"getItmSuppliers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const suppliers = [];\n          if (!this.newFeatureFlags.includesFeatureFlags('canUseItmInvoiceIntegration')) return suppliers;\n          const [eaccountsInvoiceIntegration] = this.sessionData.entity.hasMany('eaccountsInvoiceIntegration').value() || [];\n          const requestedSupplierIds = eaccountsInvoiceIntegration?.requests?.map(request => request.supplier) ?? [];\n          if (!requestedSupplierIds.length) {\n            return this.store.query('itm-supplier', {\n              sort: 'name'\n            });\n          }\n          return this.store.query('itm-supplier', {\n            filter: {\n              and: [{\n                field: '_id',\n                op: 'NOT_IN',\n                value: requestedSupplierIds\n              }]\n            },\n            sort: 'name'\n          });\n        }\n      }), null, \"getItmSuppliers\", null));\n      _defineProperty(this, \"getIpsConnection\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          if (!this.newFeatureFlags.includesFeatureFlags('entityCanUseIPS')) return;\n          const [ipsConnection] = yield this.store.query('ips-connection', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }]\n            }\n          });\n          if (ipsConnection) return ipsConnection;\n          return this.store.createRecord('ips-connection', {\n            entity: this.sessionData.entity\n          });\n        }\n      }), null, \"getIpsConnection\", null));\n    }\n    get defaultEntityFeatures() {\n      const features = [];\n      if (this.newFeatureFlags.includesFeatureFlags('canUsePayroll')) {\n        features.push({\n          key: 'canUseSmartPayroll',\n          label: this.intl.t('entity.settings.integrations.Enable Smartly integration'),\n          description: null,\n          regions: ['NZL']\n        });\n        features.push({\n          key: 'canUseKeypay',\n          label: this.intl.t('entity.settings.integrations.Enable KeyPay integration'),\n          description: null,\n          regions: ['NZL', 'AUS']\n        });\n        features.push({\n          key: 'canUseCrystalPayroll',\n          label: this.intl.t('entity.settings.integrations.Enable Crystal Payroll integration'),\n          description: null,\n          regions: ['NZL']\n        });\n      }\n      return features.filter(f => f.regions.includes(this.sessionData.entity.region));\n    }\n    getFeaturePermissionsChangeset(entityAttributes) {\n      const entityAttributesChangeSet = {};\n      this.defaultEntityFeatures.forEach(f => {\n        entityAttributesChangeSet[f.key] = entityAttributes.includes(f.key);\n      });\n      return (0, _emberChangeset.Changeset)(entityAttributesChangeSet);\n    }\n    async beforeModel() {\n      try {\n        await this.ips.getUsage();\n      } catch {\n        // without usage IPS is not ready, so nothing of its UI renders\n      }\n    }\n    model() {\n      const entity = this.sessionData.entity;\n      const entityAttributes = entity.entityLinkedAttributes;\n      this.getItmSuppliers.perform();\n      this.getIpsConnection.perform();\n      return {\n        entity,\n        defaultEntityFeatures: this.defaultEntityFeatures,\n        featurePermissionsChangeset: this.getFeaturePermissionsChangeset(entityAttributes),\n        itmSuppliers: this.getItmSuppliers,\n        ipsConnection: this.getIpsConnection\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"ips\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/settings/people/clients/client\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"ember-changeset\", \"portal/utils/email-validator\"], function (_exports, _asyncArrowRuntime, _route, _service, _emberChangeset, _emailValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"ember-changeset\",0,\"portal/utils/email-validator\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"basePath\", 'entity.settings.people');\n      _defineProperty(this, \"validateFirstName\", (newValue, oldValue) => {\n        const name = (newValue ?? oldValue) || '';\n        return name.length > 1 || this.intl.t('validation.firstName');\n      });\n      _defineProperty(this, \"validateLastName\", (newValue, oldValue) => {\n        const name = (newValue ?? oldValue) || '';\n        return name.length > 0 || this.intl.t('validation.lastName');\n      });\n      _defineProperty(this, \"validateEmail\", (newValue, oldValue) => {\n        const email = (newValue ?? oldValue) || '';\n        return (0, _emailValidator.default)(email) || this.intl.t('validation.Email');\n      });\n      _defineProperty(this, \"userValidator\", ({\n        key,\n        newValue,\n        oldValue\n      }) => {\n        switch (key) {\n          case 'firstName':\n            return this.validateFirstName(newValue, oldValue);\n          case 'lastName':\n            return this.validateLastName(newValue, oldValue);\n          case 'email':\n            return this.validateEmail(newValue, oldValue);\n          default:\n            break;\n        }\n      });\n      _defineProperty(this, \"userValidationMap\", {\n        firstName: this.validateFirstName,\n        lastName: this.validateLastName,\n        email: this.validateEmail\n      });\n      _defineProperty(this, \"getUserChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (user) {\n          yield user.last;\n          return (0, _emberChangeset.Changeset)(user.last.value, this.userValidator, this.userValidationMap);\n        }\n      }), null, \"getUserChangeset\", null));\n      _defineProperty(this, \"getUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (id) {\n          if (id === 'new') return this.store.createRecord('user', {\n            firstName: '',\n            lastName: '',\n            email: '',\n            phoneNumber: ''\n          });\n          const user = yield this.store.findRecord('user', id);\n\n          // fetch user's attributes\n          // TODO this should be possible with an includes but our API doesn't work properly\n          yield Promise.all([this.store.simpleQuery('user-entity-attribute', {\n            user: id,\n            entity: this.sessionData.entity.id\n          }), this.store.simpleQuery('user-project-attribute', {\n            user: id,\n            entity: this.sessionData.entity.id\n          })]);\n          return user;\n        }\n      }), null, \"getUser\", null));\n    }\n    model({\n      client_id: id\n    }) {\n      this.getUser.perform(id);\n      this.getUserChangeset.perform(this.getUser);\n      return {\n        user: this.getUser,\n        userChangeset: this.getUserChangeset,\n        basePath: this.basePath\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/settings/people/clients/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _defineProperty(this, \"basePath\", 'entity.settings.people');\n      _defineProperty(this, \"getClients\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const userEntityAttributesFilter = {\n            and: [{\n              field: 'entity',\n              op: 'EQ',\n              value: this.sessionData.entity.id\n            }, {\n              field: 'user',\n              op: 'NE',\n              value: this.sessionData.user.id\n            }]\n          };\n\n          //fetch all user attributes to avoid id query\n          yield this.store.query('user-attribute', {});\n\n          // find all the users that have access to view the entity and fetch them\n          // the access control will make sure the correct users are returned\n          const userAttributes = yield this.store.query('user-entity-attribute', {\n            filter: userEntityAttributesFilter,\n            include: 'user'\n          });\n          if (!userAttributes.length) return [];\n          const users = [...new Set(userAttributes.map(ua => ua.belongsTo('user').value()))];\n          const clients = users.filter(u => u.includesClaimsAboutEntity(this.sessionData.entity.id, 'hasClientRole', 'canViewEntity')).sortBy('firstName');\n          return clients;\n        }\n      }), null, \"getClients\", null));\n    }\n    setupController(controller) {\n      super.setupController(...arguments);\n      controller.searchString = '';\n    }\n    model() {\n      this.getClients.perform();\n      return {\n        clients: this.getClients,\n        basePath: this.basePath\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/settings/people/index\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n    }\n    async beforeModel() {\n      // we can default to this route if user has access to users\n      if (this.newFeatureFlags.includesFeatureFlags('canUseUsers')) {\n        this.router.transitionTo('entity.settings.people.users');\n      } else if (this.newFeatureFlags.includesFeatureFlags('canUseWorkers')) {\n        this.router.transitionTo('entity.settings.people.workers');\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/settings/people/subcontractors/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _defineProperty(this, \"basePath\", 'entity.settings.people');\n      _defineProperty(this, \"getSubcontractors\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const userEntityAttributesFilter = {\n            and: [{\n              field: 'entity',\n              op: 'EQ',\n              value: this.sessionData.entity.id\n            }, {\n              field: 'user',\n              op: 'NE',\n              value: this.sessionData.user.id\n            }]\n          };\n\n          //fetch all user attributes to avoid id query\n          yield this.store.query('user-attribute', {});\n\n          // find all the users that have access to view the entity and fetch them\n          // the access control will make sure the correct users are returned\n          const userAttributes = yield this.store.query('user-entity-attribute', {\n            filter: userEntityAttributesFilter,\n            include: 'user'\n          });\n          if (!userAttributes.length) return [];\n          const users = [...new Set(userAttributes.map(ua => ua.belongsTo('user').value()))];\n          const subcontractors = users.filter(u => u.includesClaimsAboutEntity(this.sessionData.entity.id, 'hasSubcontractorRole', 'canViewEntity')).sortBy('firstName');\n          return subcontractors;\n        }\n      }), null, \"getSubcontractors\", null));\n    }\n    setupController(controller) {\n      super.setupController(...arguments);\n      controller.searchString = '';\n    }\n    model() {\n      this.getSubcontractors.perform();\n      return {\n        subcontractors: this.getSubcontractors,\n        basePath: this.basePath\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/settings/people/subcontractors/subcontractor\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"ember-changeset\", \"portal/utils/email-validator\"], function (_exports, _asyncArrowRuntime, _route, _service, _emberChangeset, _emailValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.managerAttributes = _exports.default = _exports.canViewWorkersAttributes = _exports.canViewTimesheetsAttributes = _exports.canViewTasksAttributes = _exports.canViewSchedulingReportsAttributes = _exports.canViewQuotesAttributes = _exports.canViewQuoteReportsAttributes = _exports.canViewProjectsAttributes = _exports.canViewProgressReportsAttributes = _exports.canViewProgressAttributes = _exports.canViewProductsAttributes = _exports.canViewPayrollReportsAttributes = _exports.canViewInvoicingReportsAttributes = _exports.canViewFileStorageAttributes = _exports.canViewCostReportsAttributes = _exports.canViewCostLabourHourReportsAttributes = _exports.canViewChargeupReportsAttributes = _exports.canViewBudgetsAttributes = _exports.canViewBudgetReportsAttributes = _exports.canViewBudgetLabourHourReportsAttributes = _exports.canViewBillsAttributes = _exports.canUseReportBuilderReportAttributes = _exports.canManageWorkersAttributes = _exports.canManageTimesheetsAttributes = _exports.canManageTasksAttributes = _exports.canManageSchedulingReportsAttributes = _exports.canManageQuotesAttributes = _exports.canManageProjectsAttributes = _exports.canManageProgressAttributes = _exports.canManageProductsAttributes = _exports.canManageIntegrationsAttributes = _exports.canManageHealthAndSafetyAttributes = _exports.canManageFileStorageAttributes = _exports.canManageEstimatesAttributes = _exports.canManageEstimateSettingsAttributes = _exports.canManageBudgetsAttributes = _exports.canManageBillsAttributes = _exports.canCreateHealthAndSafetyAttributes = _exports.administratorAttributes = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"ember-changeset\",0,\"portal/utils/email-validator\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const canManageEstimatesAttributes = _exports.canManageEstimatesAttributes = ['canManageEstimates'];\n  const canManageEstimateSettingsAttributes = _exports.canManageEstimateSettingsAttributes = ['canManageEstimatesSettings'];\n  const canViewBillsAttributes = _exports.canViewBillsAttributes = ['canViewBills'];\n  const canManageBillsAttributes = _exports.canManageBillsAttributes = ['canManageBills'];\n  const canViewTimesheetsAttributes = _exports.canViewTimesheetsAttributes = ['canViewTimesheets', 'canViewNotes'];\n  const canManageTimesheetsAttributes = _exports.canManageTimesheetsAttributes = ['canManageTimesheets', 'canManageNotes'];\n  const canViewProjectsAttributes = _exports.canViewProjectsAttributes = ['canViewProjects'];\n  const canManageProjectsAttributes = _exports.canManageProjectsAttributes = ['canManageProjects'];\n  const canViewTasksAttributes = _exports.canViewTasksAttributes = ['canViewTasks'];\n  const canManageTasksAttributes = _exports.canManageTasksAttributes = ['canManageTasks'];\n  const canViewBudgetsAttributes = _exports.canViewBudgetsAttributes = ['canViewProjectBudgetVersions', 'canViewTaskBudgets'];\n  const canManageBudgetsAttributes = _exports.canManageBudgetsAttributes = ['canManageProjectBudgetVersions', 'canManageTaskBudgets'];\n  const canViewQuotesAttributes = _exports.canViewQuotesAttributes = ['canViewProjectQuoteVersions', 'canViewTaskQuotes'];\n  const canViewProgressAttributes = _exports.canViewProgressAttributes = ['canViewProjectProgressVersions', 'canViewTaskProgress'];\n  const canManageProgressAttributes = _exports.canManageProgressAttributes = ['canManageProjectProgressVersions', 'canManageTaskProgress'];\n  const canManageQuotesAttributes = _exports.canManageQuotesAttributes = ['canManageProjectQuoteVersions', 'canManageTaskQuotes'];\n  const canViewFileStorageAttributes = _exports.canViewFileStorageAttributes = ['canViewFileStorage'];\n  const canManageFileStorageAttributes = _exports.canManageFileStorageAttributes = ['canManageFileStorage'];\n  const canViewProductsAttributes = _exports.canViewProductsAttributes = ['canViewProducts'];\n  const canManageProductsAttributes = _exports.canManageProductsAttributes = ['canManageProducts'];\n  const canViewWorkersAttributes = _exports.canViewWorkersAttributes = ['canViewWorkers'];\n  const canManageWorkersAttributes = _exports.canManageWorkersAttributes = ['canManageWorkers'];\n  const canViewPayrollReportsAttributes = _exports.canViewPayrollReportsAttributes = ['canViewPayrollReports'];\n  const canViewBudgetReportsAttributes = _exports.canViewBudgetReportsAttributes = ['canViewBudgetFinancialReports'];\n  const canViewBudgetLabourHourReportsAttributes = _exports.canViewBudgetLabourHourReportsAttributes = ['canViewBudgetLabourHourReports'];\n  const canViewQuoteReportsAttributes = _exports.canViewQuoteReportsAttributes = ['canViewQuoteReports'];\n  const canViewCostReportsAttributes = _exports.canViewCostReportsAttributes = ['canViewCostFinancialReports'];\n  const canViewCostLabourHourReportsAttributes = _exports.canViewCostLabourHourReportsAttributes = ['canViewCostLabourHourReports'];\n  const canViewChargeupReportsAttributes = _exports.canViewChargeupReportsAttributes = ['canViewChargeupReports'];\n  const canViewProgressReportsAttributes = _exports.canViewProgressReportsAttributes = ['canViewProgressReports'];\n  const canViewSchedulingReportsAttributes = _exports.canViewSchedulingReportsAttributes = ['canViewSchedulingReports'];\n  const canManageSchedulingReportsAttributes = _exports.canManageSchedulingReportsAttributes = ['canManageProjectSchedulingVersions', 'canManageTaskScheduling', 'canManageSchedulingReports', 'canManageProgressReports'];\n  const canUseReportBuilderReportAttributes = _exports.canUseReportBuilderReportAttributes = ['canUseReportBuilderReport'];\n  const canCreateHealthAndSafetyAttributes = _exports.canCreateHealthAndSafetyAttributes = ['canCreateHealthAndSafety'];\n  const canManageHealthAndSafetyAttributes = _exports.canManageHealthAndSafetyAttributes = ['canManageHealthAndSafety'];\n  const canManageIntegrationsAttributes = _exports.canManageIntegrationsAttributes = ['canManageIntegrations'];\n  const managerAttributes = _exports.managerAttributes = [...canManageEstimatesAttributes, ...canManageEstimateSettingsAttributes, ...canViewBillsAttributes, ...canManageBillsAttributes, ...canViewTimesheetsAttributes, ...canManageTimesheetsAttributes, ...canViewProjectsAttributes, ...canManageProjectsAttributes, ...canViewTasksAttributes, ...canManageTasksAttributes, ...canViewBudgetsAttributes, ...canManageBudgetsAttributes, ...canViewQuotesAttributes, ...canViewProgressAttributes, ...canManageProgressAttributes, ...canManageQuotesAttributes, ...canViewProductsAttributes, ...canManageProductsAttributes, ...canViewFileStorageAttributes, ...canManageFileStorageAttributes, ...canViewWorkersAttributes, ...canManageWorkersAttributes, ...canViewPayrollReportsAttributes, ...canViewBudgetReportsAttributes, ...canViewBudgetLabourHourReportsAttributes, ...canViewQuoteReportsAttributes, ...canViewCostReportsAttributes, ...canViewCostLabourHourReportsAttributes, ...canViewChargeupReportsAttributes, ...canViewProgressReportsAttributes, ...canViewSchedulingReportsAttributes, ...canManageSchedulingReportsAttributes, ...canUseReportBuilderReportAttributes, ...canCreateHealthAndSafetyAttributes, ...canManageHealthAndSafetyAttributes, ...canManageIntegrationsAttributes, 'canManageUsers', 'canManageBudgetReports', 'canManageInvoicingReports', 'canManageQuoteReports', 'canManagePayrollReports', 'canManageTaskScheduling', 'canManageCostReports', 'canManageSuppliers', 'canManageChargeupReports', 'canManageProjectSchedulingVersions'];\n  const administratorAttributes = _exports.administratorAttributes = ['canManageEntity'];\n  const canViewInvoicingReportsAttributes = _exports.canViewInvoicingReportsAttributes = ['canViewInvoicingReports'];\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"basePath\", 'entity.settings.people');\n      _defineProperty(this, \"validateFirstName\", (newValue, oldValue) => {\n        const name = (newValue ?? oldValue) || '';\n        return name.length > 1 || this.intl.t('validation.firstName');\n      });\n      _defineProperty(this, \"validateLastName\", (newValue, oldValue) => {\n        const name = (newValue ?? oldValue) || '';\n        return name.length > 0 || this.intl.t('validation.lastName');\n      });\n      _defineProperty(this, \"validateEmail\", (newValue, oldValue) => {\n        const email = (newValue ?? oldValue) || '';\n        return (0, _emailValidator.default)(email) || this.intl.t('validation.Email');\n      });\n      _defineProperty(this, \"userValidator\", ({\n        key,\n        newValue,\n        oldValue\n      }) => {\n        switch (key) {\n          case 'firstName':\n            return this.validateFirstName(newValue, oldValue);\n          case 'lastName':\n            return this.validateLastName(newValue, oldValue);\n          case 'email':\n            return this.validateEmail(newValue, oldValue);\n          default:\n            break;\n        }\n      });\n      _defineProperty(this, \"userValidationMap\", {\n        firstName: this.validateFirstName,\n        lastName: this.validateLastName,\n        email: this.validateEmail\n      });\n      _defineProperty(this, \"validateIsCompanyAdministrator\", (_newValue, _oldValue) => {\n        return true;\n      });\n      _defineProperty(this, \"validateCanManageEverything\", (_newValue, _oldValue) => {\n        return true;\n      });\n      _defineProperty(this, \"validateWorkers\", (_newValue, _oldValue) => {\n        return true;\n      });\n      _defineProperty(this, \"permissionsValidator\", ({\n        key,\n        newValue,\n        oldValue,\n        changes: _changes,\n        content: _content\n      }) => {\n        switch (key) {\n          case 'isCompanyAdministrator':\n            return this.validateIsCompanyAdministrator(newValue, oldValue);\n          case 'canManageEverything':\n            return this.validateCanManageEverything(newValue, oldValue);\n          case 'workers':\n            return this.validateWorkers(newValue, oldValue);\n          case 'canViewBills':\n            return true;\n          case 'canManageBills':\n            return true;\n          case 'canViewTimesheets':\n            return true;\n          case 'canManageTimesheets':\n            return true;\n          case 'canViewProjects':\n            return true;\n          case 'canManageProjects':\n            return true;\n          case 'canViewTasks':\n            return true;\n          case 'canManageTasks':\n            return true;\n          case 'canViewBudgets':\n            return true;\n          case 'canManageBudgets':\n            return true;\n          case 'canViewProgress':\n            return true;\n          case 'canManageProgress':\n            return true;\n          case 'canViewQuotes':\n            return true;\n          case 'canManageQuotes':\n            return true;\n          case 'canViewProducts':\n            return true;\n          case 'canManageProducts':\n            return true;\n          case 'canViewFileStorage':\n            return true;\n          case 'canManageFileStorage':\n            return true;\n          case 'canViewWorkers':\n            return true;\n          case 'canManageWorkers':\n            return true;\n          case 'canViewPayrollReports':\n            return true;\n          case 'canViewBudgetFinancialReports':\n            return true;\n          case 'canViewBudgetLabourHourReports':\n            return true;\n          case 'canViewQuoteReports':\n            return true;\n          case 'canViewCostFinancialReports':\n            return true;\n          case 'canViewCostLabourHourReports':\n            return true;\n          case 'canViewChargeupReports':\n            return true;\n          case 'canViewProgressReports':\n            return true;\n          case 'canViewSchedulingReports':\n            return true;\n          case 'canManageSchedulingReports':\n            return true;\n          case 'canEstimate':\n            return true;\n          case 'canManageEstimateSettings':\n            return true;\n          case 'canUseReportBuilderReport':\n            return true;\n          case 'canCreateHealthAndSafety':\n            return true;\n          case 'canManageHealthAndSafety':\n            return true;\n          case 'canManageIntegrations':\n            return true;\n          case 'canViewInvoicingReports':\n            return true;\n          default:\n            break;\n        }\n      });\n      _defineProperty(this, \"permissionsValidationMap\", {\n        isCompanyAdministrator: this.validateIsCompanyAdministrator,\n        canManageEverything: this.validateCanManageEverything,\n        workers: this.validateWorkers,\n        canViewBills: () => null,\n        canManageBills: () => null,\n        canViewTimesheets: () => null,\n        canManageTimesheets: () => null,\n        canViewProjects: () => null,\n        canManageProjects: () => null,\n        canViewTasks: () => null,\n        canManageTasks: () => null,\n        canViewBudgets: () => null,\n        canManageBudgets: () => null,\n        canViewProgress: () => null,\n        canManageProgress: () => null,\n        canViewQuotes: () => null,\n        canManageQuotes: () => null,\n        canViewProducts: () => null,\n        canManageProducts: () => null,\n        canViewFileStorage: () => null,\n        canManageFileStorage: () => null,\n        canViewWorkers: () => null,\n        canManageWorkers: () => null,\n        canViewPayrollReports: () => null,\n        canViewBudgetFinancialReports: () => null,\n        canViewBudgetLabourHourReports: () => null,\n        canViewQuoteReports: () => null,\n        canViewCostFinancialReports: () => null,\n        canViewCostLabourHourReports: () => null,\n        canViewChargeupReports: () => null,\n        canViewProgressReports: () => null,\n        canViewSchedulingReports: () => null,\n        canManageSchedulingReports: () => null,\n        canEstimate: () => null,\n        canManageEstimateSettings: () => null,\n        canUseReportBuilderReport: () => null,\n        canCreateHealthAndSafety: () => null,\n        canManageHealthAndSafety: () => null,\n        canManageIntegrations: () => null,\n        canViewInvoicingReports: () => null\n      });\n      _defineProperty(this, \"getUserChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (user) {\n          yield user.last;\n          return (0, _emberChangeset.Changeset)(user.last.value, this.userValidator, this.userValidationMap);\n        }\n      }), null, \"getUserChangeset\", null));\n      _defineProperty(this, \"getPermissionsChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (user, workers) {\n          yield user.last;\n          yield workers.last;\n          const usersWorkers = workers.last.value.toArray().filter(w => user.last.value.includesClaimsAboutWorker(w.id, 'canManageTimesheets'));\n          return (0, _emberChangeset.Changeset)({\n            isCompanyAdministrator: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...administratorAttributes),\n            canManageEverything: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...managerAttributes),\n            workers: usersWorkers,\n            canViewBills: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewBillsAttributes),\n            canManageBills: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageBillsAttributes),\n            canViewTimesheets: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewTimesheetsAttributes),\n            canManageTimesheets: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageTimesheetsAttributes),\n            canViewProjects: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewProjectsAttributes),\n            canManageProjects: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageProjectsAttributes),\n            canViewTasks: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewTasksAttributes),\n            canManageTasks: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageTasksAttributes),\n            canViewBudgets: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewBudgetsAttributes),\n            canManageBudgets: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageBudgetsAttributes),\n            canViewQuotes: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewQuotesAttributes),\n            canManageQuotes: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageQuotesAttributes),\n            canViewProgress: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewProgressAttributes),\n            canManageProgress: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageProgressAttributes),\n            canViewProducts: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewProductsAttributes),\n            canManageProducts: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageProductsAttributes),\n            canViewFileStorage: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewFileStorageAttributes),\n            canManageFileStorage: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageFileStorageAttributes),\n            canViewWorkers: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewWorkersAttributes),\n            canManageWorkers: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageWorkersAttributes),\n            canViewPayrollReports: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewPayrollReportsAttributes),\n            canViewBudgetFinancialReports: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewBudgetReportsAttributes),\n            canViewBudgetLabourHourReports: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewBudgetLabourHourReportsAttributes),\n            canViewQuoteReports: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewQuoteReportsAttributes),\n            canViewCostFinancialReports: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewCostReportsAttributes),\n            canViewCostLabourHourReports: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewCostLabourHourReportsAttributes),\n            canViewChargeupReports: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewChargeupReportsAttributes),\n            canViewProgressReports: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewProgressReportsAttributes),\n            canViewSchedulingReports: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewSchedulingReportsAttributes),\n            canManageSchedulingReports: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageSchedulingReportsAttributes),\n            canEstimate: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageEstimatesAttributes),\n            canManageEstimateSettings: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageEstimateSettingsAttributes),\n            canUseReportBuilderReport: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canUseReportBuilderReportAttributes),\n            canCreateHealthAndSafety: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canCreateHealthAndSafetyAttributes),\n            canManageHealthAndSafety: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageHealthAndSafetyAttributes),\n            canManageIntegrations: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageIntegrationsAttributes),\n            canViewInvoicingReports: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewInvoicingReportsAttributes)\n          }, this.permissionsValidator, this.permissionsValidationMap);\n        }\n      }), null, \"getPermissionsChangeset\", null));\n      _defineProperty(this, \"getUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (id) {\n          if (id === 'new') return this.store.createRecord('user', {\n            firstName: '',\n            lastName: '',\n            email: '',\n            phoneNumber: ''\n          });\n          const user = yield this.store.findRecord('user', id);\n\n          // fetch user's attributes\n          // TODO this should be possible with an includes but our API doesn't work properly\n          yield Promise.all([this.store.simpleQuery('user-entity-attribute', {\n            user: id,\n            entity: this.sessionData.entity.id\n          }), this.store.simpleQuery('user-worker-attribute', {\n            user: id,\n            entity: this.sessionData.entity.id\n          })]);\n          return user;\n        }\n      }), null, \"getUser\", null));\n      _defineProperty(this, \"getWorkers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const workers = yield this.store.simpleQuery('worker', {\n            entity: this.sessionData.entity.id\n          });\n          return workers;\n        }\n      }), null, \"getWorkers\", null));\n    }\n    model({\n      subcontractor_id: id\n    }) {\n      this.getUser.perform(id);\n      this.getWorkers.perform();\n      this.getUserChangeset.perform(this.getUser);\n      this.getPermissionsChangeset.perform(this.getUser, this.getWorkers);\n      return {\n        user: this.getUser,\n        userChangeset: this.getUserChangeset,\n        permissionsChangeset: this.getPermissionsChangeset,\n        workers: this.getWorkers,\n        basePath: this.basePath\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/settings/people/users/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _defineProperty(this, \"basePath\", 'entity.settings.people');\n      _defineProperty(this, \"getUsers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const userEntityAttributesFilter = {\n            and: [{\n              field: 'entity',\n              op: 'EQ',\n              value: this.sessionData.entity.id\n            }, {\n              field: 'user',\n              op: 'NE',\n              value: this.sessionData.user.id\n            }]\n          };\n\n          //fetch all user attributes to avoid id query\n          yield this.store.query('user-attribute', {});\n\n          // find all the users that have access to view the entity and fetch them\n          // the access control will make sure the correct users are returned\n          const userAttributes = yield this.store.query('user-entity-attribute', {\n            filter: userEntityAttributesFilter,\n            include: 'user'\n          });\n          const users = [...new Set(userAttributes.map(ua => ua.belongsTo('user').value()))];\n          return users.filter(u => u.excludesClaimsAboutEntity(this.sessionData.entity.id, 'hasClientRole', 'hasSubcontractorRole')).sortBy('firstName');\n        }\n      }), null, \"getUsers\", null));\n      _defineProperty(this, \"getWorkers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const workers = yield this.store.query('worker', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }]\n            }\n          });\n          return workers;\n        }\n      }), null, \"getWorkers\", null));\n    }\n    setupController(controller) {\n      super.setupController(...arguments);\n      controller.searchString = '';\n    }\n    model() {\n      this.getUsers.perform();\n      this.getWorkers.perform();\n      return {\n        users: this.getUsers,\n        workers: this.getWorkers,\n        basePath: this.basePath\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/settings/people/users/user\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"ember-changeset\", \"portal/utils/email-validator\"], function (_exports, _asyncArrowRuntime, _route, _service, _emberChangeset, _emailValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.managerAttributes = _exports.default = _exports.canViewWorkersAttributes = _exports.canViewUsersAttributes = _exports.canViewTimesheetsAttributes = _exports.canViewTasksAttributes = _exports.canViewStagePaymentsAttributes = _exports.canViewSchedulingReportsAttributes = _exports.canViewQuotesAttributes = _exports.canViewQuoteReportsAttributes = _exports.canViewPurchaseOrdersAttributes = _exports.canViewProjectsAttributes = _exports.canViewProgressReportsAttributes = _exports.canViewProgressAttributes = _exports.canViewProductsAttributes = _exports.canViewPayrollReportsAttributes = _exports.canViewInvoicingReportsAttributes = _exports.canViewInvoicesAttributes = _exports.canViewFinancialReportingAttributes = _exports.canViewFileStorageAttributes = _exports.canViewCostReportsAttributes = _exports.canViewCostLabourHourReportsAttributes = _exports.canViewChargeupReportsAttributes = _exports.canViewBudgetsAttributes = _exports.canViewBudgetReportsAttributes = _exports.canViewBudgetLabourHourReportsAttributes = _exports.canViewBillsAttributes = _exports.canViewAccessReportsAttributes = _exports.canUseReportBuilderReportAttributes = _exports.canManageWorkersAttributes = _exports.canManageUsersAttributes = _exports.canManageTimesheetsAttributes = _exports.canManageTasksAttributes = _exports.canManageStagePaymentsAttributes = _exports.canManageSchedulingReportsAttributes = _exports.canManageQuotesAttributes = _exports.canManagePurchaseOrdersAttributes = _exports.canManageProjectsAttributes = _exports.canManageProgressAttributes = _exports.canManageProductsAttributes = _exports.canManageInvoicesAttributes = _exports.canManageIntegrationsAttributes = _exports.canManageHealthAndSafetyAttributes = _exports.canManageFinancialReportingAttributes = _exports.canManageFileStorageAttributes = _exports.canManageEstimatesAttributes = _exports.canManageEstimateSettingsAttributes = _exports.canManageBudgetsAttributes = _exports.canManageBillsAttributes = _exports.canCreateHealthAndSafetyAttributes = _exports.canApprovePurchaseOrdersAttributes = _exports.canApproveInvoicesAttributes = _exports.administratorAttributes = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"ember-changeset\",0,\"portal/utils/email-validator\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  // generic\n  const administratorAttributes = _exports.administratorAttributes = ['canManageEntity'];\n  // BP\n  const canManageEstimatesAttributes = _exports.canManageEstimatesAttributes = ['canManageEstimates'];\n  const canManageEstimateSettingsAttributes = _exports.canManageEstimateSettingsAttributes = ['canManageEstimatesSettings'];\n  const canViewUsersAttributes = _exports.canViewUsersAttributes = ['canViewUsers'];\n  const canManageUsersAttributes = _exports.canManageUsersAttributes = ['canManageUsers'];\n  const canViewBillsAttributes = _exports.canViewBillsAttributes = ['canViewBills'];\n  const canManageBillsAttributes = _exports.canManageBillsAttributes = ['canManageBills'];\n  const canViewTimesheetsAttributes = _exports.canViewTimesheetsAttributes = ['canViewTimesheets', 'canViewNotes'];\n  const canManageTimesheetsAttributes = _exports.canManageTimesheetsAttributes = ['canManageTimesheets', 'canManageNotes'];\n  const canViewProjectsAttributes = _exports.canViewProjectsAttributes = ['canViewProjects'];\n  const canManageProjectsAttributes = _exports.canManageProjectsAttributes = ['canManageProjects'];\n  const canViewTasksAttributes = _exports.canViewTasksAttributes = ['canViewTasks'];\n  const canManageTasksAttributes = _exports.canManageTasksAttributes = ['canManageTasks'];\n  const canViewBudgetsAttributes = _exports.canViewBudgetsAttributes = ['canViewProjectBudgetVersions', 'canViewTaskBudgets'];\n  const canManageBudgetsAttributes = _exports.canManageBudgetsAttributes = ['canManageProjectBudgetVersions', 'canManageTaskBudgets'];\n  const canViewProgressAttributes = _exports.canViewProgressAttributes = ['canViewProjectProgressVersions', 'canViewTaskProgress'];\n  const canManageProgressAttributes = _exports.canManageProgressAttributes = ['canManageProjectProgressVersions', 'canManageTaskProgress'];\n  const canViewQuotesAttributes = _exports.canViewQuotesAttributes = ['canViewProjectQuoteVersions', 'canViewTaskQuotes'];\n  const canManageQuotesAttributes = _exports.canManageQuotesAttributes = ['canManageProjectQuoteVersions', 'canManageTaskQuotes'];\n  const canViewFileStorageAttributes = _exports.canViewFileStorageAttributes = ['canViewFileStorage'];\n  const canManageFileStorageAttributes = _exports.canManageFileStorageAttributes = ['canManageFileStorage'];\n  const canViewProductsAttributes = _exports.canViewProductsAttributes = ['canViewProducts'];\n  const canManageProductsAttributes = _exports.canManageProductsAttributes = ['canManageProducts'];\n  const canViewInvoicesAttributes = _exports.canViewInvoicesAttributes = ['canViewInvoices'];\n  const canManageInvoicesAttributes = _exports.canManageInvoicesAttributes = ['canManageInvoices'];\n  const canApproveInvoicesAttributes = _exports.canApproveInvoicesAttributes = ['canApproveInvoices'];\n  const canViewPurchaseOrdersAttributes = _exports.canViewPurchaseOrdersAttributes = ['canViewPurchaseOrders'];\n  const canManagePurchaseOrdersAttributes = _exports.canManagePurchaseOrdersAttributes = ['canManagePurchaseOrders'];\n  const canApprovePurchaseOrdersAttributes = _exports.canApprovePurchaseOrdersAttributes = ['canApprovePurchaseOrders'];\n  const canViewStagePaymentsAttributes = _exports.canViewStagePaymentsAttributes = ['canViewStagePayments'];\n  const canManageStagePaymentsAttributes = _exports.canManageStagePaymentsAttributes = ['canManageStagePayments'];\n  const canViewWorkersAttributes = _exports.canViewWorkersAttributes = ['canViewWorkers'];\n  const canManageWorkersAttributes = _exports.canManageWorkersAttributes = ['canManageWorkers'];\n  const canViewPayrollReportsAttributes = _exports.canViewPayrollReportsAttributes = ['canViewPayrollReports'];\n  const canViewBudgetReportsAttributes = _exports.canViewBudgetReportsAttributes = ['canViewBudgetFinancialReports'];\n  const canViewBudgetLabourHourReportsAttributes = _exports.canViewBudgetLabourHourReportsAttributes = ['canViewBudgetLabourHourReports'];\n  const canViewInvoicingReportsAttributes = _exports.canViewInvoicingReportsAttributes = ['canViewInvoicingReports'];\n  const canViewQuoteReportsAttributes = _exports.canViewQuoteReportsAttributes = ['canViewQuoteReports'];\n  const canViewCostReportsAttributes = _exports.canViewCostReportsAttributes = ['canViewCostFinancialReports'];\n  const canViewCostLabourHourReportsAttributes = _exports.canViewCostLabourHourReportsAttributes = ['canViewCostLabourHourReports'];\n  const canViewChargeupReportsAttributes = _exports.canViewChargeupReportsAttributes = ['canViewChargeupReports'];\n  const canViewProgressReportsAttributes = _exports.canViewProgressReportsAttributes = ['canViewProgressReports'];\n  const canViewSchedulingReportsAttributes = _exports.canViewSchedulingReportsAttributes = ['canViewSchedulingReports'];\n  const canViewAccessReportsAttributes = _exports.canViewAccessReportsAttributes = ['canViewAccessReports'];\n  const canManageSchedulingReportsAttributes = _exports.canManageSchedulingReportsAttributes = ['canManageProjectSchedulingVersions', 'canManageTaskScheduling', 'canManageSchedulingReports', 'canManageProgressReports'];\n  const canUseReportBuilderReportAttributes = _exports.canUseReportBuilderReportAttributes = ['canUseReportBuilderReport'];\n  const canCreateHealthAndSafetyAttributes = _exports.canCreateHealthAndSafetyAttributes = ['canCreateHealthAndSafety'];\n  const canManageHealthAndSafetyAttributes = _exports.canManageHealthAndSafetyAttributes = ['canManageHealthAndSafety'];\n  const canManageIntegrationsAttributes = _exports.canManageIntegrationsAttributes = ['canManageIntegrations'];\n  const managerAttributes = _exports.managerAttributes = [...canManageEstimatesAttributes, ...canManageEstimateSettingsAttributes, ...canViewBillsAttributes, ...canManageBillsAttributes, ...canViewTimesheetsAttributes, ...canManageTimesheetsAttributes, ...canViewProjectsAttributes, ...canManageProjectsAttributes, ...canViewTasksAttributes, ...canManageTasksAttributes, ...canViewBudgetsAttributes, ...canManageBudgetsAttributes, ...canViewQuotesAttributes, ...canManageProgressAttributes, ...canViewProgressAttributes, ...canManageQuotesAttributes, ...canViewProductsAttributes, ...canManageProductsAttributes, ...canViewInvoicesAttributes, ...canManageInvoicesAttributes, ...canApproveInvoicesAttributes, ...canViewPurchaseOrdersAttributes, ...canManagePurchaseOrdersAttributes, ...canApprovePurchaseOrdersAttributes, ...canViewStagePaymentsAttributes, ...canManageStagePaymentsAttributes, ...canViewFileStorageAttributes, ...canManageFileStorageAttributes, ...canViewWorkersAttributes, ...canManageWorkersAttributes, ...canViewPayrollReportsAttributes, ...canViewBudgetReportsAttributes, ...canViewBudgetLabourHourReportsAttributes, ...canViewQuoteReportsAttributes, ...canViewCostReportsAttributes, ...canViewCostLabourHourReportsAttributes, ...canViewChargeupReportsAttributes, ...canViewProgressReportsAttributes, ...canViewSchedulingReportsAttributes, ...canManageSchedulingReportsAttributes, ...canUseReportBuilderReportAttributes, ...canCreateHealthAndSafetyAttributes, ...canManageHealthAndSafetyAttributes, ...canManageIntegrationsAttributes, 'canManageUsers', 'canManageBudgetReports', 'canManageInvoicingReports', 'canManageQuoteReports', 'canManagePayrollReports', 'canManageTaskScheduling', 'canManageCostReports', 'canManageSuppliers', 'canManageChargeupReports', 'canManageProjectSchedulingVersions'];\n  // FP\n  const canViewFinancialReportingAttributes = _exports.canViewFinancialReportingAttributes = ['canViewFinancialReporting', 'canViewStrategies'];\n  const canManageFinancialReportingAttributes = _exports.canManageFinancialReportingAttributes = ['canAdminFinancialReporting', 'canDeleteStrategies'];\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"basePath\", 'entity.settings.people');\n      _defineProperty(this, \"validateFirstName\", (newValue, oldValue) => {\n        const name = (newValue ?? oldValue) || '';\n        return name.length > 1 || this.intl.t('validation.firstName');\n      });\n      _defineProperty(this, \"validateLastName\", (newValue, oldValue) => {\n        const name = (newValue ?? oldValue) || '';\n        return name.length > 0 || this.intl.t('validation.lastName');\n      });\n      _defineProperty(this, \"validateEmail\", (newValue, oldValue) => {\n        const email = (newValue ?? oldValue) || '';\n        return (0, _emailValidator.default)(email) || this.intl.t('validation.Email');\n      });\n      _defineProperty(this, \"userValidator\", ({\n        key,\n        newValue,\n        oldValue\n      }) => {\n        switch (key) {\n          case 'firstName':\n            return this.validateFirstName(newValue, oldValue);\n          case 'lastName':\n            return this.validateLastName(newValue, oldValue);\n          case 'email':\n            return this.validateEmail(newValue, oldValue);\n          default:\n            break;\n        }\n      });\n      _defineProperty(this, \"userValidationMap\", {\n        firstName: this.validateFirstName,\n        lastName: this.validateLastName,\n        email: this.validateEmail\n      });\n      _defineProperty(this, \"validateIsCompanyAdministrator\", (_newValue, _oldValue) => {\n        return true;\n      });\n      _defineProperty(this, \"validateCanManageEverything\", (_newValue, _oldValue) => {\n        return true;\n      });\n      _defineProperty(this, \"validateWorkers\", (_newValue, _oldValue) => {\n        return true;\n      });\n      _defineProperty(this, \"permissionsValidator\", ({\n        key,\n        newValue,\n        oldValue,\n        changes: _changes,\n        content: _content\n      }) => {\n        switch (key) {\n          case 'isCompanyAdministrator':\n            return this.validateIsCompanyAdministrator(newValue, oldValue);\n          case 'canManageEverything':\n            return this.validateCanManageEverything(newValue, oldValue);\n          case 'workers':\n            return this.validateWorkers(newValue, oldValue);\n          case 'canViewBills':\n            return true;\n          case 'canManageBills':\n            return true;\n          case 'canViewTimesheets':\n            return true;\n          case 'canManageTimesheets':\n            return true;\n          case 'canViewProjects':\n            return true;\n          case 'canManageProjects':\n            return true;\n          case 'canViewTasks':\n            return true;\n          case 'canManageTasks':\n            return true;\n          case 'canViewBudgets':\n            return true;\n          case 'canManageBudgets':\n            return true;\n          case 'canViewProgress':\n            return true;\n          case 'canManageProgress':\n            return true;\n          case 'canViewQuotes':\n            return true;\n          case 'canManageQuotes':\n            return true;\n          case 'canViewProducts':\n            return true;\n          case 'canManageProducts':\n            return true;\n          case 'canViewInvoices':\n            return true;\n          case 'canManageInvoices':\n            return true;\n          case 'canApproveInvoices':\n            return true;\n          case 'canViewPurchaseOrders':\n            return true;\n          case 'canManagePurchaseOrders':\n            return true;\n          case 'canViewFileStorage':\n            return true;\n          case 'canManageFileStorage':\n            return true;\n          case 'canViewWorkers':\n            return true;\n          case 'canManageWorkers':\n            return true;\n          case 'canViewPayrollReports':\n            return true;\n          case 'canViewBudgetFinancialReports':\n            return true;\n          case 'canViewBudgetLabourHourReports':\n            return true;\n          case 'canViewQuoteReports':\n            return true;\n          case 'canViewCostFinancialReports':\n            return true;\n          case 'canViewCostLabourHourReports':\n            return true;\n          case 'canViewChargeupReports':\n            return true;\n          case 'canViewProgressReports':\n            return true;\n          case 'canViewSchedulingReports':\n            return true;\n          case 'canManageSchedulingReports':\n            return true;\n          case 'canViewAccessReports':\n            return true;\n          case 'canEstimate':\n            return true;\n          case 'canManageEstimateSettings':\n            return true;\n          case 'canUseReportBuilderReport':\n            return true;\n          case 'canCreateHealthAndSafety':\n            return true;\n          case 'canManageHealthAndSafety':\n            return true;\n          case 'canManageIntegrations':\n            return true;\n          case 'canViewUsers':\n            return true;\n          case 'canManageUsers':\n            return true;\n          case 'canViewFinancialReporting':\n            return true;\n          case 'canManageFinancialReporting':\n            return true;\n          case 'canViewStagePayments':\n            return true;\n          case 'canManageStagePayments':\n            return true;\n          default:\n            break;\n        }\n      });\n      _defineProperty(this, \"permissionsValidationMap\", {\n        isCompanyAdministrator: this.validateIsCompanyAdministrator,\n        canManageEverything: this.validateCanManageEverything,\n        workers: this.validateWorkers,\n        canViewBills: () => null,\n        canManageBills: () => null,\n        canViewTimesheets: () => null,\n        canManageTimesheets: () => null,\n        canViewProjects: () => null,\n        canManageProjects: () => null,\n        canViewTasks: () => null,\n        canManageTasks: () => null,\n        canViewBudgets: () => null,\n        canManageBudgets: () => null,\n        canViewProgress: () => null,\n        canManageProgress: () => null,\n        canViewQuotes: () => null,\n        canManageQuotes: () => null,\n        canViewProducts: () => null,\n        canManageProducts: () => null,\n        canViewInvoices: () => null,\n        canManageInvoices: () => null,\n        canApproveInvoices: () => null,\n        canViewPurchaseOrders: () => null,\n        canManagePurchaseOrders: () => null,\n        canApprovePurchaseOrders: () => null,\n        canViewFileStorage: () => null,\n        canManageFileStorage: () => null,\n        canViewStagePayments: () => null,\n        canManageStagePayments: () => null,\n        canViewWorkers: () => null,\n        canManageWorkers: () => null,\n        canViewPayrollReports: () => null,\n        canViewBudgetFinancialReports: () => null,\n        canViewBudgetLabourHourReports: () => null,\n        canViewInvoicingReports: () => null,\n        canViewQuoteReports: () => null,\n        canViewCostFinancialReports: () => null,\n        canViewCostLabourHourReports: () => null,\n        canViewChargeupReports: () => null,\n        canViewProgressReports: () => null,\n        canViewSchedulingReports: () => null,\n        canViewAccessReports: () => null,\n        canManageSchedulingReports: () => null,\n        canEstimate: () => null,\n        canManageEstimateSettings: () => null,\n        canUseReportBuilderReport: () => null,\n        canCreateHealthAndSafety: () => null,\n        canManageHealthAndSafety: () => null,\n        canManageIntegrations: () => null,\n        canViewUsers: () => null,\n        canManageUsers: () => null,\n        canViewFinancialReporting: () => null,\n        canManageFinancialReporting: () => null\n      });\n      _defineProperty(this, \"getUserChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (user) {\n          yield user.last;\n          return (0, _emberChangeset.Changeset)(user.last.value, this.userValidator, this.userValidationMap);\n        }\n      }), null, \"getUserChangeset\", null));\n      _defineProperty(this, \"getPermissionsChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (user, workers) {\n          yield user.last;\n          yield workers.last;\n          const usersWorkers = workers.last.value.toArray().filter(w => user.last.value.includesClaimsAboutWorker(w.id, 'canManageTimesheets'));\n          return (0, _emberChangeset.Changeset)({\n            isCompanyAdministrator: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...administratorAttributes),\n            canManageEverything: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...managerAttributes),\n            workers: usersWorkers,\n            canViewBills: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewBillsAttributes),\n            canManageBills: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageBillsAttributes),\n            canViewTimesheets: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewTimesheetsAttributes),\n            canManageTimesheets: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageTimesheetsAttributes),\n            canViewProjects: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewProjectsAttributes),\n            canManageProjects: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageProjectsAttributes),\n            canViewTasks: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewTasksAttributes),\n            canManageTasks: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageTasksAttributes),\n            canViewBudgets: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewBudgetsAttributes),\n            canManageBudgets: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageBudgetsAttributes),\n            canViewProgress: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewProgressAttributes),\n            canManageProgress: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageProgressAttributes),\n            canViewQuotes: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewQuotesAttributes),\n            canManageQuotes: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageQuotesAttributes),\n            canViewProducts: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewProductsAttributes),\n            canManageProducts: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageProductsAttributes),\n            canViewInvoices: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewInvoicesAttributes),\n            canManageInvoices: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageInvoicesAttributes),\n            canApproveInvoices: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canApproveInvoicesAttributes),\n            canViewPurchaseOrders: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewPurchaseOrdersAttributes),\n            canManagePurchaseOrders: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManagePurchaseOrdersAttributes),\n            canApprovePurchaseOrders: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canApprovePurchaseOrdersAttributes),\n            canViewStagePayments: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewStagePaymentsAttributes),\n            canManageStagePayments: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageStagePaymentsAttributes),\n            canViewFileStorage: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewFileStorageAttributes),\n            canManageFileStorage: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageFileStorageAttributes),\n            canViewWorkers: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewWorkersAttributes),\n            canManageWorkers: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageWorkersAttributes),\n            canViewPayrollReports: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewPayrollReportsAttributes),\n            canViewBudgetFinancialReports: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewBudgetReportsAttributes),\n            canViewBudgetLabourHourReports: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewBudgetLabourHourReportsAttributes),\n            canViewInvoicingReports: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewInvoicingReportsAttributes),\n            canViewQuoteReports: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewQuoteReportsAttributes),\n            canViewCostFinancialReports: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewCostReportsAttributes),\n            canViewCostLabourHourReports: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewCostLabourHourReportsAttributes),\n            canViewChargeupReports: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewChargeupReportsAttributes),\n            canViewProgressReports: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewProgressReportsAttributes),\n            canViewSchedulingReports: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewSchedulingReportsAttributes),\n            canManageSchedulingReports: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageSchedulingReportsAttributes),\n            canViewAccessReports: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewAccessReportsAttributes),\n            canEstimate: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageEstimatesAttributes),\n            canManageEstimateSettings: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageEstimateSettingsAttributes),\n            canUseReportBuilderReport: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canUseReportBuilderReportAttributes),\n            canCreateHealthAndSafety: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canCreateHealthAndSafetyAttributes),\n            canManageHealthAndSafety: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageHealthAndSafetyAttributes),\n            canManageIntegrations: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageIntegrationsAttributes),\n            canViewUsers: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewUsersAttributes),\n            canManageUsers: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageUsersAttributes),\n            canViewFinancialReporting: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewFinancialReportingAttributes),\n            canManageFinancialReporting: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageFinancialReportingAttributes)\n          }, this.permissionsValidator, this.permissionsValidationMap);\n        }\n      }), null, \"getPermissionsChangeset\", null));\n      _defineProperty(this, \"getUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (id) {\n          if (id === 'new') return this.store.createRecord('user', {\n            firstName: '',\n            lastName: '',\n            email: '',\n            phoneNumber: ''\n          });\n          const user = yield this.store.findRecord('user', id);\n\n          // fetch user's attributes\n          // TODO this should be possible with an includes but our API doesn't work properly\n          yield Promise.all([this.store.simpleQuery('user-entity-attribute', {\n            user: id,\n            entity: this.sessionData.entity.id\n          }), this.store.simpleQuery('user-worker-attribute', {\n            user: id,\n            entity: this.sessionData.entity.id\n          })]);\n          return user;\n        }\n      }), null, \"getUser\", null));\n      _defineProperty(this, \"getWorkers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const workers = yield this.store.query('worker', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }]\n            },\n            sort: 'firstName'\n          }).then(r => r.toArray());\n          return workers;\n        }\n      }), null, \"getWorkers\", null));\n    }\n    model({\n      user_id: id\n    }) {\n      this.getUser.perform(id);\n      this.getWorkers.perform();\n      this.getUserChangeset.perform(this.getUser);\n      this.getPermissionsChangeset.perform(this.getUser, this.getWorkers);\n      return {\n        basePath: this.basePath,\n        user: this.getUser,\n        userChangeset: this.getUserChangeset,\n        permissionsChangeset: this.getPermissionsChangeset,\n        workers: this.getWorkers\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/settings/people/workers/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _defineProperty(this, \"basePath\", 'entity.settings.people');\n      _defineProperty(this, \"queryParams\", {\n        filter: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getWorkers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (filter) {\n          const _filter = {\n            and: [{\n              field: 'entity',\n              op: 'EQ',\n              value: this.sessionData.entity.id\n            }]\n          };\n          if (filter === 'active') {\n            _filter.and.push({\n              field: 'isActive',\n              op: 'EQ',\n              value: true\n            });\n          } else if (filter === 'inactive') {\n            _filter.and.push({\n              field: 'isActive',\n              op: 'EQ',\n              value: false\n            });\n          }\n          const workers = yield this.store.query('worker', {\n            filter: _filter,\n            sort: 'firstName'\n          });\n          return workers;\n        }\n      }), null, \"getWorkers\", null));\n    }\n    setupController(controller) {\n      super.setupController(...arguments);\n      controller.searchString = '';\n    }\n    model({\n      filter = 'active'\n    }) {\n      this.getWorkers.perform(filter);\n      return {\n        workers: this.getWorkers,\n        basePath: this.basePath\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/settings/people/workers/worker\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"ember-changeset\", \"portal/utils/email-validator\"], function (_exports, _asyncArrowRuntime, _route, _service, _emberChangeset, _emailValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.workerHealthAndSafetyAttributes = _exports.workerAttributes = _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"ember-changeset\",0,\"portal/utils/email-validator\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const workerAttributes = _exports.workerAttributes = ['canViewProjects', 'canViewTasks'];\n  const workerHealthAndSafetyAttributes = _exports.workerHealthAndSafetyAttributes = ['canCreateHealthAndSafety'];\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"store\", _descriptor4, this);\n      _initializerDefineProperty(this, \"accountingPlatform\", _descriptor5, this);\n      _defineProperty(this, \"basePath\", 'entity.settings.people');\n      _defineProperty(this, \"validateFirstName\", (newValue, oldValue) => {\n        const name = (newValue ?? oldValue) || '';\n        return name.length > 1 || this.intl.t('validation.firstName');\n      });\n      _defineProperty(this, \"validateLastName\", (newValue, oldValue) => {\n        const name = (newValue ?? oldValue) || '';\n        return name.length > 0 || this.intl.t('validation.lastName');\n      });\n      _defineProperty(this, \"validateEmail\", (newValue, oldValue) => {\n        const email = (newValue ?? oldValue) || '';\n        return (0, _emailValidator.default)(email) || this.intl.t('validation.Email');\n      });\n      _defineProperty(this, \"validatePhoneNumber\", (_newValue, _oldValue) => {\n        return true;\n      });\n      _defineProperty(this, \"validatePayRate\", (newValue, oldValue, changes, content) => {\n        const isContractor = changes.isContractor ?? content.isContractor;\n        // contractors don't need a pay rate\n        if (isContractor) return true;\n        const rate = newValue ?? oldValue;\n        return rate >= 0 || this.intl.t('validation.payRate');\n      });\n      _defineProperty(this, \"validateChargeOutRate\", (newValue, oldValue) => {\n        const rate = newValue ?? oldValue;\n        return rate >= 0 || this.intl.t('validation.chargeOutRate');\n      });\n      _defineProperty(this, \"validateCostRate\", (newValue, oldValue, changes, content) => {\n        const isContractor = changes.isContractor ?? content.isContractor;\n        // contractors don't need a pay rate\n        if (isContractor) return true;\n        const rate = newValue ?? oldValue;\n        return rate >= 0 || this.intl.t('validation.costRate');\n      });\n      _defineProperty(this, \"validateIsContractor\", (_newValue, _oldValue) => {\n        return true;\n      });\n      _defineProperty(this, \"validateSmartPayrollEmployeeCode\", (_newValue, _oldValue) => {\n        return true;\n      });\n      _defineProperty(this, \"validateSmartPayrollEmployeeDepartmentCode\", (_newValue, _oldValue) => {\n        return true;\n      });\n      _defineProperty(this, \"validateXeroEmployee\", (_newValue, _oldValue) => {\n        return true;\n      });\n      _defineProperty(this, \"validateXeroEarningsRate\", (_newValue, _oldValue) => {\n        return true;\n      });\n      _defineProperty(this, \"validateEmergencyContactNameOne\", (_newValue, _oldValue) => {\n        return true;\n      });\n      _defineProperty(this, \"validateEmergencyContactRelationshipOne\", (_newValue, _oldValue) => {\n        return true;\n      });\n      _defineProperty(this, \"validateEmergencyContactPhoneNumberOne\", (_newValue, _oldValue) => {\n        return true;\n      });\n      _defineProperty(this, \"validateEmergencyContactNameTwo\", (_newValue, _oldValue) => {\n        return true;\n      });\n      _defineProperty(this, \"validateEmergencyContactRelationshipTwo\", (_newValue, _oldValue) => {\n        return true;\n      });\n      _defineProperty(this, \"validateEmergencyContactPhoneNumberTwo\", (_newValue, _oldValue) => {\n        return true;\n      });\n      _defineProperty(this, \"workerValidationMap\", {\n        firstName: this.validateFirstName,\n        lastName: this.validateLastName,\n        email: this.validateEmail,\n        phoneNumber: this.validatePhoneNumber,\n        payRate: this.validatePayRate,\n        chargeOutRate: this.validateChargeOutRate,\n        costRate: this.validateCostRate,\n        isContractor: this.validateIsContractor,\n        smartPayrollEmployeeCode: this.validateSmartPayrollEmployeeCode,\n        smartPayrollEmployeeDepartmentCode: this.validateSmartPayrollEmployeeDepartmentCode,\n        xeroEmployee: this.validateXeroEmployee,\n        xeroEarningsRate: this.validateXeroEarningsRate,\n        emergencyContactNameOne: this.validateEmergencyContactNameOne,\n        emergencyContactRelationshipOne: this.validateEmergencyContactRelationshipOne,\n        emergencyContactPhoneNumberOne: this.validateEmergencyContactPhoneNumberOne,\n        emergencyContactNameTwo: this.validateEmergencyContactNameTwo,\n        emergencyContactRelationshipTwo: this.validateEmergencyContactRelationshipTwo,\n        emergencyContactPhoneNumberTwo: this.validateEmergencyContactPhoneNumberTwo\n      });\n      _defineProperty(this, \"getWorkerChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (worker) {\n          yield worker.last;\n          return (0, _emberChangeset.Changeset)(worker.last.value, this.workerValidator, this.workerValidationMap);\n        }\n      }), null, \"getWorkerChangeset\", null));\n      _defineProperty(this, \"workerValidator\", ({\n        key,\n        newValue,\n        oldValue,\n        changes,\n        content\n      }) => {\n        switch (key) {\n          case 'firstName':\n            return this.validateFirstName(newValue, oldValue);\n          case 'lastName':\n            return this.validateLastName(newValue, oldValue);\n          case 'email':\n            return this.validateEmail(newValue, oldValue);\n          case 'phoneNumber':\n            return this.validatePhoneNumber(newValue, oldValue);\n          case 'payRate':\n            if (this.canUsePayRate) return this.validatePayRate(newValue, oldValue, changes, content);\n            return true;\n          case 'chargeOutRate':\n            if (this.canUseChargeOutRate) return this.validateChargeOutRate(newValue, oldValue);\n            return true;\n          case 'costRate':\n            if (this.canUseCostRate) return this.validateCostRate(newValue, oldValue, changes, content);\n            return true;\n          case 'isContractor':\n            return this.validateIsContractor(newValue, oldValue);\n          case 'smartPayrollEmployeeCode':\n            return this.validateSmartPayrollEmployeeCode(newValue, oldValue);\n          case 'smartPayrollEmployeeDepartmentCode':\n            return this.validateSmartPayrollEmployeeDepartmentCode(newValue, oldValue);\n          case 'xeroEmployee':\n            return this.validateXeroEmployee(newValue, oldValue);\n          case 'xeroEarningsRate':\n            return this.validateXeroEarningsRate(newValue, oldValue);\n          case 'emergencyContactNameOne':\n            return this.validateEmergencyContactNameOne(newValue, oldValue);\n          case 'emergencyContactRelationshipOne':\n            return this.validateEmergencyContactRelationshipOne(newValue, oldValue);\n          case 'emergencyContactPhoneNumberOne':\n            return this.validateEmergencyContactPhoneNumberOne(newValue, oldValue);\n          case 'emergencyContactNameTwo':\n            return this.validateEmergencyContactNameTwo(newValue, oldValue);\n          case 'emergencyContactRelationshipTwo':\n            return this.validateEmergencyContactRelationshipTwo(newValue, oldValue);\n          case 'emergencyContactPhoneNumberTwo':\n            return this.validateEmergencyContactPhoneNumberTwo(newValue, oldValue);\n          default:\n            break;\n        }\n      });\n      _defineProperty(this, \"getWorkerPermissionsChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (worker) {\n          yield worker.last;\n          return (0, _emberChangeset.Changeset)({\n            canSeeProjectsAndTasks: worker.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...workerAttributes) ?? true,\n            canCreateHealthAndSafety: worker.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...workerHealthAndSafetyAttributes) ?? true\n          });\n        }\n      }), null, \"getWorkerPermissionsChangeset\", null));\n      _defineProperty(this, \"getWorker\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (worker_id) {\n          if (worker_id === 'new') return this.store.createRecord('worker', {\n            firstName: '',\n            lastName: '',\n            email: '',\n            phoneNumber: '',\n            entity: this.sessionData.entity\n          });\n          const [worker] = yield Promise.all([this.store.findRecord('worker', worker_id),\n          // manually request the attributes - find record \"includes\" doesn't work well\n          this.store.simpleQuery('worker-entity-attribute', {\n            worker: worker_id\n          })]);\n          return worker;\n        }\n      }), null, \"getWorker\", null));\n      _defineProperty(this, \"getLabourCostCalculators\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const labourCostCalculators = yield this.store.simpleQuery('labour-cost-calculator', {\n            entity: this.sessionData.entity.id\n          }, {\n            include: 'items'\n          });\n          return labourCostCalculators.toArray();\n        }\n      }), null, \"getLabourCostCalculators\", null));\n      _defineProperty(this, \"getAccountingPlatformEmployees\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const employees = yield this.accountingPlatform.loadAccountingPlatformEmployees.perform();\n          return employees.toArray();\n        }\n      }), null, \"getAccountingPlatformEmployees\", null));\n      _defineProperty(this, \"getXeroEarningsRates\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          if (!this.accountingPlatform.activePlatform === 'xero') return [];\n          const xeroEarningsRates = yield this.store.simpleQuery('xero-earnings-rate', {\n            entity: this.sessionData.entity.id\n          });\n          return xeroEarningsRates.toArray();\n        }\n      }), null, \"getXeroEarningsRates\", null));\n      _defineProperty(this, \"getWorkersTimesheets\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (worker) {\n          yield worker.last;\n          if (worker.isNew) return [];\n          const workersTimesheets = yield this.store.simpleQuery('timesheet', {\n            entity: this.sessionData.entity.id,\n            worker: worker.last.value.id\n          });\n          return workersTimesheets.toArray();\n        }\n      }), null, \"getWorkersTimesheets\", null));\n      _defineProperty(this, \"getProfitMargin\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.sessionData.entity.loadProfitMargins();\n        }\n      }), null, \"getProfitMargin\", null));\n    }\n    get canUsePayRate() {\n      return this.newFeatureFlags.includesFeatureFlags('canUsePayRate');\n    }\n    get canUseCostRate() {\n      return this.newFeatureFlags.includesFeatureFlags('canUseCostRate');\n    }\n    get canUseChargeOutRate() {\n      return this.newFeatureFlags.includesFeatureFlags('canUseChargeOutRate');\n    }\n    model({\n      worker_id\n    }) {\n      this.getWorker.perform(worker_id);\n      this.getWorkerChangeset.perform(this.getWorker);\n      this.getWorkerPermissionsChangeset.perform(this.getWorker);\n      this.getWorkersTimesheets.perform(this.getWorker);\n      this.getLabourCostCalculators.perform();\n      this.getXeroEarningsRates.perform();\n      this.getProfitMargin.perform();\n      this.getAccountingPlatformEmployees.perform();\n      return {\n        worker: this.getWorker,\n        basePath: this.basePath,\n        workerChangeset: this.getWorkerChangeset,\n        profitMargin: this.getProfitMargin,\n        workerPermissionsChangeset: this.getWorkerPermissionsChangeset,\n        labourCostCalculators: this.getLabourCostCalculators,\n        accountingPlatformEmployees: this.getAccountingPlatformEmployees,\n        xeroEarningsRates: this.getXeroEarningsRates,\n        workersTimesheets: this.getWorkersTimesheets,\n        reload: () => this.refresh()\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"accountingPlatform\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/settings/profile\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/object\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _object, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"@ember/object\",0,\"@ember/service\",0,\"ember-concurrency\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _defineProperty(this, \"loadUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const user = yield this.store.findRecord('user', (0, _object.get)(this, 'sessionData.user.id'));\n          return user;\n        }\n      }), null, \"loadUser\", null));\n      _defineProperty(this, \"loadTerms\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const terms = yield this.portalApi.authGet('/terms-of-service');\n          return terms;\n        }\n      }), null, \"loadTerms\", null));\n    }\n    model() {\n      this.loadUser.perform();\n      this.loadTerms.perform();\n      return {\n        user: this.loadUser,\n        terms: this.loadTerms\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/error\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  // the top level needs a route that doesn't auto redirect to prevent infinite loops back to the login route\n  // in most cases the only path from this page is to reauthenticate, but it's still an assumption\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n    }\n    beforeModel(transition) {\n      // you can only be transitioned here\n      if (!transition.from) this.router.transitionTo('index');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/index\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n      _initializerDefineProperty(this, \"session\", _descriptor2, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor3, this);\n    }\n    async beforeModel() {\n      if (this.isDestroying || this.isDestroyed) return;\n\n      // check if the user is authenticated\n      if (this.session.isDestroying || this.session.isDestroyed) return;\n      if (!this.session.isAuthenticated) {\n        // if user is not authenticated go to login\n        return this.router.transitionTo('login');\n      }\n\n      // we are logged in, initialise the app\n      await this.sessionData.initApp();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/initiate-password-reset\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"session\", _descriptor, this);\n    }\n    beforeModel() {\n      this.session.prohibitAuthentication('index');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/loading\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n    }\n    beforeModel(transition) {\n      // you can only be transitioned here\n      if (!transition.from) this.router.transitionTo('index');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/login-redirect\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let LoginRedirectRoute = _exports.default = (_class = class LoginRedirectRoute extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"session\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n    }\n    async beforeModel() {\n      try {\n        await this.session.authenticate('authenticator:oidc');\n      } catch (error) {\n        this.router.transitionTo('error');\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"portal/routes/login\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _service.inject)(), _dec2 = (0, _service.inject)(), _class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"session\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n    }\n    async beforeModel() {\n      try {\n        // if this fails something is wrong with the identity server\n        await this.session.authenticate('authenticator:oidc');\n      } catch (_) {\n        this.router.transitionTo('error');\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/logout-redirect\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let LogoutRedirectRoute = _exports.default = (_class = class LogoutRedirectRoute extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"session\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n    }\n    async beforeModel() {\n      if (this.session.isAuthenticated) {\n        await this.session.invalidate({\n          logoutComplete: true\n        });\n      }\n      this.router.transitionTo('login');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"portal/routes/no-access\", [\"exports\", \"@ember/routing/route\", \"@ember/service\", \"ember-local-storage\"], function (_exports, _route, _service, _emberLocalStorage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\",0,\"ember-local-storage\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _emberLocalStorage.storageFor)('settings'), _class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"session\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _initializerDefineProperty(this, \"persistedSettings\", _descriptor4, this);\n    }\n    async beforeModel(transition) {\n      await this.session.requireAuthentication(transition, 'login');\n      if (!transition.from ||\n      // if you haven't been redirected here, reload the app\n      this.newFeatureFlags.includesFeatureFlags('hasAccessToPortal')) {\n        this.router.transitionTo('index');\n        return;\n      }\n\n      // if you have gotten here you don't have access to the entity\n      // remove the last entity from local storage\n      this.persistedSettings.set('lastEntity', null);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"persistedSettings\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/reset-password\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  class _default extends _route.default {}\n  _exports.default = _default;\n});","define(\"portal/routes/terms-of-service\", [\"exports\", \"@ember/routing/route\", \"rsvp\", \"@ember/object\", \"@ember/service\"], function (_exports, _route, _rsvp, _object, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"rsvp\",0,\"@ember/object\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor, this);\n      _initializerDefineProperty(this, \"session\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n    }\n    async beforeModel(transition) {\n      await this.session.requireAuthentication(transition, 'login');\n    }\n    model() {\n      return _rsvp.default.hash({\n        user: this.store.findRecord('user', (0, _object.get)(this, 'session.data.authenticated.user.id')),\n        terms: this.portalApi.authGet('/terms-of-service')\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/serializers/api-v2-serializer\", [\"exports\", \"@ember-data/serializer/rest\"], function (_exports, _rest) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/serializer/rest\"eaimeta@70e063a35619d71f\n  class ApiV2Serializer extends _rest.default {\n    normalize(modelClass, resourceHash) {\n      let data = {\n        id: resourceHash.id,\n        type: modelClass.modelName,\n        attributes: {\n          ...resourceHash\n        },\n        relationships: this.extractRelationships(modelClass, resourceHash)\n      };\n      return {\n        data: data\n      };\n    }\n    extractRelationships(modelClass, resourceHash) {\n      let relationships = {};\n      modelClass.eachRelationship((key, relationshipMeta) => {\n        let relationship = resourceHash[key];\n        if (relationship) {\n          relationships[key] = {\n            data: Array.isArray(relationship) ? relationship.map(id => ({\n              id,\n              type: relationshipMeta.type\n            })) : {\n              id: relationship,\n              type: relationshipMeta.type\n            }\n          };\n        }\n      });\n      return relationships;\n    }\n    normalizeResponse(store, primaryModelClass, payload, id, requestType) {\n      if (requestType === 'findRecord') {\n        return this.normalize(primaryModelClass, {\n          id,\n          ...payload\n        });\n      }\n      if (requestType === 'createRecord' || requestType === 'updateRecord') {\n        return {\n          data: {\n            id: payload._id,\n            type: primaryModelClass.modelName\n          }\n        };\n      }\n      if (requestType === 'query') {\n        const results = payload.data.reduce((documentHash, item) => {\n          let {\n            data\n          } = this.normalize(primaryModelClass, {\n            id: item._id,\n            ...item\n          });\n          documentHash.data.push(data);\n          return documentHash;\n        }, {\n          data: [],\n          included: []\n        });\n        results.meta = {\n          totalRecords: payload?.pagination.totalRecords || undefined,\n          totalPages: payload?.pagination.totalPages || undefined,\n          currentPage: payload?.pagination.currentPage || undefined\n        };\n        return results;\n      }\n      return super.normalizeResponse(store, primaryModelClass, payload, id, requestType);\n    }\n  }\n  _exports.default = ApiV2Serializer;\n});","define(\"portal/serializers/application\", [\"exports\", \"@ember-data/serializer/json-api\", \"lodash\", \"@ember/string\"], function (_exports, _jsonApi, _lodash, _string) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/serializer/json-api\",0,\"lodash\",0,\"@ember/string\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  class ApiV2JSONAPISerializer extends _jsonApi.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"isNewSerializerAPI\", true);\n    }\n    keyForAttribute(key) {\n      // eslint-disable-next-line ember/no-string-prototype-extensions\n      return (0, _string.camelize)(key);\n    }\n    keyForRelationship(key) {\n      // eslint-disable-next-line ember/no-string-prototype-extensions\n      return (0, _string.camelize)(key);\n    }\n    serialize(snapshot, options) {\n      const json = super.serialize(snapshot, options);\n\n      // check if the snapshot has meta and include it in the payload\n      if (snapshot.adapterOptions?.meta) {\n        json.meta = snapshot.adapterOptions.meta;\n      }\n      return json;\n    }\n    normalizeResponse(store, primaryModelClass, payload, id, requestType) {\n      // reason to clone is normalizeResponse is modifying payload object and  is stripping of meta values\n      const _payload = _lodash.default.cloneDeep(payload);\n      let normalizedResponse = super.normalizeResponse(store, primaryModelClass, payload, id, requestType);\n      if (Array.isArray(payload.data)) {\n        normalizedResponse.data.forEach((record, index) => {\n          const resourceMeta = _payload.data[index]?.meta;\n          if (resourceMeta) {\n            record.attributes = {\n              ...record.attributes,\n              _meta: resourceMeta\n            };\n          }\n        });\n      } else if (payload.data) {\n        const resourceMeta = _payload.data?.meta;\n        if (resourceMeta) {\n          normalizedResponse.data.attributes = {\n            ...normalizedResponse.data.attributes,\n            _meta: resourceMeta\n          };\n        }\n      }\n      if (Array.isArray(payload.included)) {\n        normalizedResponse.included.forEach((record, index) => {\n          const includedMeta = _payload.included[index]?.meta;\n          if (includedMeta) {\n            record.attributes = {\n              ...record.attributes,\n              _meta: includedMeta\n            };\n          }\n        });\n      }\n\n      // pagination info\n      if (payload.meta) {\n        normalizedResponse.meta = {\n          ...normalizedResponse.meta,\n          ...payload.meta\n        };\n      }\n      return normalizedResponse;\n    }\n  }\n  _exports.default = ApiV2JSONAPISerializer;\n});","define(\"portal/serializers/entity-product\", [\"exports\", \"portal/serializers/api-v2-serializer\"], function (_exports, _apiV2Serializer) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/serializers/api-v2-serializer\"eaimeta@70e063a35619d71f\n  class EntityProductSerializer extends _apiV2Serializer.default {}\n  _exports.default = EntityProductSerializer;\n});","define(\"portal/serializers/project-product\", [\"exports\", \"portal/serializers/api-v2-serializer\"], function (_exports, _apiV2Serializer) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/serializers/api-v2-serializer\"eaimeta@70e063a35619d71f\n  class ProjectProductSerializer extends _apiV2Serializer.default {}\n  _exports.default = ProjectProductSerializer;\n});","define(\"portal/serializers/task-product\", [\"exports\", \"portal/serializers/api-v2-serializer\"], function (_exports, _apiV2Serializer) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/serializers/api-v2-serializer\"eaimeta@70e063a35619d71f\n  class TaskProductSerializer extends _apiV2Serializer.default {}\n  _exports.default = TaskProductSerializer;\n});","define(\"portal/services/-ensure-registered\", [\"exports\", \"@embroider/util/services/ensure-registered\"], function (_exports, _ensureRegistered) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _ensureRegistered.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"@embroider/util/services/ensure-registered\"eaimeta@70e063a35619d71f\n});","define(\"portal/services/accounting-platform\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/service\", \"portal/config/environment\", \"portal/utils/search-filter\"], function (_exports, _asyncArrowRuntime, _service, _environment, _searchFilter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/service\",0,\"@ember/service\",0,\"portal/config/environment\",0,\"ember-concurrency\",0,\"portal/utils/search-filter\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const AccountingPlatforms = {\n    xero: 'xero',\n    quickbooks: 'quickbooks'\n  };\n  let AccountingPlatformService = _exports.default = (_class = class AccountingPlatformService extends _service.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"xeroIntegration\", _descriptor, this);\n      _initializerDefineProperty(this, \"quickbooks\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor4, this);\n      _defineProperty(this, \"sendBill\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (bill, options) {\n          if (!bill) return;\n          if (this.activePlatform === AccountingPlatforms.xero) {\n            return this.xeroIntegration.sendBill(bill, options);\n          }\n          if (this.activePlatform === AccountingPlatforms.quickbooks) {\n            return this.quickbooks.sendBill(bill, options);\n          }\n        }\n      }), null, \"sendBill\", null));\n      _defineProperty(this, \"sendInvoice\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (invoice, options = {}) {\n          if (!invoice) return;\n          if (this.activePlatform === AccountingPlatforms.xero) {\n            return this.xeroIntegration.sendInvoice(invoice, options);\n          }\n          if (this.activePlatform === AccountingPlatforms.quickbooks) {\n            return this.quickbooks.sendInvoice(invoice, options);\n          }\n        }\n      }), null, \"sendInvoice\", null));\n      _defineProperty(this, \"updateContacts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (entity, contact) {\n          if (this.activePlatform === AccountingPlatforms.xero) {\n            return this.xeroIntegration.updateXeroSuppliers(entity, contact);\n          }\n          if (this.activePlatform === AccountingPlatforms.quickbooks) {\n            return this.quickbooks.updateContacts(entity, contact);\n          }\n        }\n      }), null, \"updateContacts\", null));\n      _defineProperty(this, \"getAccounts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (entity) {\n          if (this.activePlatform === AccountingPlatforms.xero) {\n            return this.xeroIntegration.getAccounts(entity);\n          }\n          if (this.activePlatform === AccountingPlatforms.quickbooks) {\n            return this.quickbooks.getAccounts(entity);\n          }\n        }\n      }), null, \"getAccounts\", null));\n      _defineProperty(this, \"getEmployees\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (entity) {\n          if (this.activePlatform === AccountingPlatforms.xero) {\n            return this.xeroIntegration.getEmployees(entity);\n          }\n          if (this.activePlatform === AccountingPlatforms.quickbooks) {\n            return this.quickbooks.getEmployees(entity);\n          }\n        }\n      }), null, \"getEmployees\", null));\n      _defineProperty(this, \"getEarningRates\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (entity) {\n          if (this.activePlatform === AccountingPlatforms.xero) {\n            return this.xeroIntegration.getXeroEarningsRates(entity);\n          }\n        }\n      }), null, \"getEarningRates\", null));\n      _defineProperty(this, \"createContact\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (entity, contact) {\n          if (this.activePlatform === AccountingPlatforms.xero) {\n            return this.xeroIntegration.createXeroContact(entity, contact);\n          }\n          if (this.activePlatform === AccountingPlatforms.quickbooks) {\n            return this.quickbooks.createContact(entity, contact);\n          }\n        }\n      }), null, \"createContact\", null));\n      _defineProperty(this, \"loadAccountingPlatformEmployees\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const filter = {\n            and: [{\n              field: 'entity',\n              op: 'EQ',\n              value: this.sessionData.entity.id\n            }]\n          };\n          if (this.activePlatform === AccountingPlatforms.xero) {\n            //xero and un attached\n            return this.store.query('xero-employee', {\n              filter\n            });\n          }\n          if (this.activePlatform === AccountingPlatforms.quickbooks) {\n            return this.store.query('quickbooks-employee', {\n              filter\n            });\n          }\n          return [];\n        }\n      }), null, \"loadAccountingPlatformEmployees\", null));\n      _defineProperty(this, \"loadActivePlatformGlAccounts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (search, page) {\n          const filter = {\n            and: [{\n              field: 'entity',\n              op: 'EQ',\n              value: this.sessionData.entity.id\n            }]\n          };\n          if (this.activePlatform === AccountingPlatforms.xero) {\n            filter.and.push({\n              or: [{\n                and: [{\n                  field: 'xeroAccountId',\n                  op: 'IS_NOT_NULL',\n                  value: null\n                }, {\n                  field: 'quickbooksAccountId',\n                  op: 'IS_NULL',\n                  value: null\n                }]\n              }, {\n                and: [{\n                  field: 'xeroAccountId',\n                  op: 'IS_NULL',\n                  value: null\n                }, {\n                  field: 'quickbooksAccountId',\n                  op: 'IS_NULL',\n                  value: null\n                }]\n              }]\n            });\n          } else if (this.activePlatform === AccountingPlatforms.quickbooks) {\n            filter.and.push({\n              or: [{\n                and: [{\n                  field: 'quickbooksAccountId',\n                  op: 'IS_NOT_NULL',\n                  value: null\n                }, {\n                  field: 'xeroAccountId',\n                  op: 'IS_NULL',\n                  value: null\n                }]\n              }, {\n                and: [{\n                  field: 'quickbooksAccountId',\n                  op: 'IS_NULL',\n                  value: null\n                }, {\n                  field: 'xeroAccountId',\n                  op: 'IS_NULL',\n                  value: null\n                }]\n              }]\n            });\n          } else {\n            filter.and.push({\n              and: [{\n                field: 'quickbooksAccountId',\n                op: 'IS_NULL',\n                value: null\n              }, {\n                field: 'xeroAccountId',\n                op: 'IS_NULL',\n                value: null\n              }]\n            });\n          }\n          if (search) {\n            filter.and.push((0, _searchFilter.default)(['code', 'name'], search));\n          }\n          const req = {\n            filter,\n            sort: 'code,name'\n          };\n          if (page) {\n            req.page = page;\n          }\n          return this.store.query('gl-account', req);\n        }\n      }), null, \"loadActivePlatformGlAccounts\", null));\n    }\n    get activePlatform() {\n      if (this.xeroIntegration?.ready) return AccountingPlatforms.xero;\n      if (this.quickbooks?.ready) return AccountingPlatforms.quickbooks;\n      return null;\n    }\n    get glAccountVisibleFields() {\n      if (this.activePlatform === AccountingPlatforms.quickbooks) {\n        return ['purchasesGlAccount', 'name'];\n      }\n      return ['purchasesGlAccount', 'salesGlAccount', 'code', 'name', 'taxRate'];\n    }\n    get invoiceItemTaxVisibleFields() {\n      if (this.activePlatform === AccountingPlatforms.quickbooks) {\n        return ['unitPrice', 'quantity'];\n      }\n      return ['unitPrice', 'quantity', 'glAccount', 'Total', 'taxRate'];\n    }\n    get isActive() {\n      return Boolean(this.activePlatform);\n    }\n    get label() {\n      switch (this.activePlatform) {\n        case AccountingPlatforms.xero:\n          return 'Xero';\n        case AccountingPlatforms.quickbooks:\n          return 'QuickBooks';\n        default:\n          return '';\n      }\n    }\n    get glAccountsSearchField() {\n      if (this.activePlatform === AccountingPlatforms.quickbooks) return 'name';\n      return 'code';\n    }\n    viewInvoice(invoice) {\n      if (!invoice) return;\n      if (this.activePlatform === AccountingPlatforms.xero) {\n        if (!invoice.xeroInvoiceId) return;\n        window.open(`https://go.xero.com/organisationlogin/default.aspx?shortcode=${this.xeroIntegration.companyId}${invoice.xeroDeepLinkPath}`, '_blank');\n        return;\n      }\n      if (this.activePlatform === AccountingPlatforms.quickbooks) {\n        if (!invoice.quickbooksInvoiceId) return;\n        if (invoice.invoiceType === 'INVOICE') {\n          window.open(`${_environment.default.urls.quickbooksUrl}/app/invoice?txnId=${invoice.quickbooksInvoiceId}`, '_blank');\n        } else {\n          window.open(`${_environment.default.urls.quickbooksUrl}/app/creditmemo?txnId=${invoice.quickbooksInvoiceId}`, '_blank');\n        }\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"xeroIntegration\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"quickbooks\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"portal/services/bills-data\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/service\", \"@glimmer/tracking\", \"@ember/object\"], function (_exports, _asyncArrowRuntime, _service, _tracking, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"ember-concurrency\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let BillsDataService = _exports.default = (_class = class BillsDataService extends _service.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _initializerDefineProperty(this, \"bills\", _descriptor2, this);\n      _initializerDefineProperty(this, \"pageNumber\", _descriptor3, this);\n      _initializerDefineProperty(this, \"hasNextPage\", _descriptor4, this);\n      _defineProperty(this, \"lastLoadArgs\", null);\n      _defineProperty(this, \"_loadBills\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (filter, fields, sort, pageSize) {\n          this.pageNumber++;\n          const nextPage = yield this.store.query('bill', {\n            filter,\n            fields,\n            sort,\n            page: {\n              size: pageSize,\n              number: this.pageNumber\n            },\n            include: 'items'\n          });\n          this.updateHasNextPage(nextPage, pageSize);\n          return nextPage;\n        }\n      }), null, \"_loadBills\", \"drop\"));\n      _defineProperty(this, \"loadBills\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (filter, fields, sort, pageSize) {\n          this.lastLoadArgs = {\n            filter,\n            fields,\n            sort,\n            pageSize\n          };\n          this.pageNumber = 0;\n          const firstPage = yield this._loadBills.perform(filter, fields, sort, pageSize);\n          this.bills = firstPage;\n        }\n      }), null, \"loadBills\", \"drop\"));\n      _defineProperty(this, \"reloadBills\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          if (!this.lastLoadArgs) return;\n          const {\n            filter,\n            fields,\n            sort,\n            pageSize\n          } = this.lastLoadArgs;\n          yield this.loadBills.perform(filter, fields, sort, pageSize);\n        }\n      }), null, \"reloadBills\", \"drop\"));\n      _defineProperty(this, \"loadMoreBills\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (filter, fields, sort, pageSize) {\n          if (!this.hasNextPage) return;\n          const nextPage = yield this._loadBills.perform(filter, fields, sort, pageSize);\n          this.bills = [...this.bills, ...nextPage];\n        }\n      }), null, \"loadMoreBills\", \"drop\"));\n    }\n    updateHasNextPage(page, pageSize) {\n      const currentPage = Number(page.meta?.currentPage);\n      const totalPages = Number(page.meta?.totalPages);\n      if (currentPage && totalPages) {\n        this.hasNextPage = currentPage < totalPages;\n        return;\n      }\n      this.hasNextPage = page.length >= pageSize;\n    }\n    addBill(bill) {\n      this.bills = [bill, ...this.bills];\n    }\n    removeBill(bill) {\n      const index = this.bills.indexOf(bill);\n      if (index > -1) {\n        this.bills = this.bills.toSpliced(index, 1);\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"bills\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"pageNumber\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"hasNextPage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"addBill\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"addBill\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeBill\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"removeBill\"), _class.prototype), _class);\n});","define(\"portal/services/builda-price\", [\"exports\", \"@ember/service\", \"portal/utils/csv-builder\", \"portal/utils/download\", \"portal/config/environment\"], function (_exports, _service, _csvBuilder, _download, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"@ember/service\",0,\"portal/utils/csv-builder\",0,\"portal/utils/download\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _service.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"session\", _descriptor, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor2, this);\n      _initializerDefineProperty(this, \"portalApiV2\", _descriptor3, this);\n    }\n    commitProject(projectId, options) {\n      return this.portalApi.authPost(`/commit/project/${projectId}`, options);\n    }\n    duplicateProject(projectId, options) {\n      return this.portalApiV2.authPost(`/copy-resource/project/${projectId}`, options);\n    }\n    addTasksFromTemplate(projectId, taskTemplate) {\n      return this.portalApi.authPost(`/project/${projectId}/add-tasks-from-template`, taskTemplate);\n    }\n    migrateToBuildaPrice(entityId) {\n      return this.portalApi.authPost(`/data-migration/to-builda-price/${entityId}`);\n    }\n    updateProjectList(payload) {\n      return this.portalApi.authPost('/update/project-list', payload);\n    }\n    updateTaskList(payload) {\n      return this.portalApi.authPost(`/update/task-list`, payload);\n    }\n    updateCompanyFeatures(entityId, payload) {\n      return this.portalApiV2.authPost(`/update/company-features/${entityId}`, payload);\n    }\n    updateDraftProgressPosition(payload) {\n      return this.portalApi.authPost(`/update/draft-progress-position`, payload);\n    }\n    getMeFromIdentityId(token, identityUserId) {\n      return this.portalApiV2.authGet(`/identity/me/${identityUserId}`, undefined, token);\n    }\n    updateInvoiceItems(invoiceItems) {\n      return this.portalApi.authPatch(`/update/invoice-items`, invoiceItems);\n    }\n    addTasksFromFile(projectId, items) {\n      return this.portalApiV2.authPost(`/projects/${projectId}/add-tasks-from-file`, items);\n    }\n    getDuplicateSuppliers(payload) {\n      return this.portalApiV2.authGet(`/duplicate-suppliers/find`, payload);\n    }\n    mergeDuplicateSuppliers(payload) {\n      return this.portalApiV2.authPost(`/duplicate-suppliers/merge`, payload);\n    }\n    updateTaskTemplate(payload) {\n      return this.portalApi.authPost(`/update/task-template`, payload);\n    }\n    downloadExcel(filename, payload) {\n      return this.portalApi.authGetExcel('/generate-xlsx', payload).then(blob => (0, _csvBuilder.downloadXlsx)(blob, `${filename}.xlsx`));\n    }\n    downloadPurchaseOrderPDF(filename, payload) {\n      return this.portalApiV2.authGetBlob('/purchase-orders/export', payload).then(blob => (0, _download.download)(blob, filename, 'application/pdf'));\n    }\n    downloadInvoicePDF(filename, payload) {\n      return this.portalApiV2.authGetBlob('/invoices/export', payload).then(blob => (0, _download.download)(blob, filename, 'application/pdf'));\n    }\n    getInvoiceBreakdownHTML(filename, payload) {\n      return this.portalApiV2.authPostHtml('/invoices/export-breakdown-html', payload);\n    }\n    getInvoiceBillAttachmentsZip(payload) {\n      return this.portalApiV2.authGetBlob('/invoices/bill/attachments', payload);\n    }\n    downloadInvoiceBreakdownPDF(filename, payload) {\n      return this.portalApiV2.authGetBlob('/invoices/export-breakdown', payload).then(blob => (0, _download.download)(blob, filename, 'application/pdf'));\n    }\n    sendPurchaseOrder(payload) {\n      return this.portalApiV2.authPost('/purchase-orders/send', payload);\n    }\n    searchProducts(payload) {\n      return this.portalApiV2.authGet('/search-products', payload);\n    }\n    validatePurchaseOrderNumber(payload) {\n      return this.portalApiV2.authGet('/purchase-orders/validate', payload);\n    }\n    validateInvoiceNumber(payload) {\n      return this.portalApiV2.authGet('/invoices/validate', payload);\n    }\n    getInvoiceItemTotals(payload) {\n      return this.portalApiV2.authGet('/invoices/invoice-item-totals', payload);\n    }\n    inviteUser(payload, canUseBuildaPrice, canUseFinancialReporting) {\n      let url;\n      if (canUseBuildaPrice) url = '/invite-user/builda-price';else if (canUseFinancialReporting) url = '/invite-user/financials';else throw new Error('No module available');\n      return this.portalApi.authPost(url, Object.assign(payload, {\n        callback: _environment.default.urls.app + '/reset-password',\n        appURL: _environment.default.urls.app\n      }));\n    }\n    changePassword(payload) {\n      return this.portalApi.authPatch('/auth/change-password', payload);\n    }\n    stagePaymentsValues(id) {\n      return this.portalApiV2.authGet(`/stage-payments/value/${id}`);\n    }\n    downloadStagePaymentsPDF(filename, payload) {\n      return this.portalApiV2.authGetBlob('/stage-payments/export', payload).then(blob => (0, _download.download)(blob, filename, 'application/pdf'));\n    }\n    taskCostTotals(payload) {\n      return this.portalApi.authGet(`/task-cost-totals`, payload);\n    }\n    taskProgressDirects(payload) {\n      return this.portalApi.authGet(`/task-progress-directs`, payload);\n    }\n    projectQuoteTotals(payload) {\n      return this.portalApi.authGet(`/project-quote-totals`, payload);\n    }\n    projectBudgetTotals(payload) {\n      return this.portalApi.authGet(`/project-budget-totals`, payload);\n    }\n    projectProgressTotals(payload) {\n      return this.portalApi.authGet(`/project-progress-totals`, payload);\n    }\n    projectCostTotals(payload) {\n      return this.portalApi.authGet(`/project-cost-totals`, payload);\n    }\n    createCreditNoteFromInvoice(payload) {\n      return this.portalApiV2.authPost('/invoices/credit-note-from-invoice', payload);\n    }\n    getSystemAnnouncements(language) {\n      return this.portalApiV2.authGet(`/resources/system-announcements?language=${language}`);\n    }\n    updateSystemAnnouncements(payload) {\n      return this.portalApiV2.authPost('/resources/system-announcements', payload);\n    }\n    generateAdminBillingReport(payload) {\n      return this.portalApiV2.authPost('/admin-billing-report', payload);\n    }\n    submitFilesToIPS(entityId, files) {\n      const payload = new FormData();\n      for (const file of files) {\n        payload.append('files', file);\n      }\n      return this.portalApiV2.authPostForm(`/ips/file/${entityId}`, payload);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"portalApiV2\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/services/cache\", [\"exports\", \"@ember/service\", \"@ember/object\", \"@ember/debug\", \"@ember/array\", \"@ember/utils\", \"lodash\"], function (_exports, _service, _object, _debug, _array, _utils, _lodash) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"@ember/object\",0,\"@ember/debug\",0,\"@ember/array\",0,\"@ember/utils\",0,\"lodash\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _service.default.extend({\n    _cache: {},\n    store(cacheName, key, value) {\n      (false && !(typeof cacheName === 'string') && (0, _debug.assert)('A cache name is required.', typeof cacheName === 'string'));\n      (false && !(key != null) && (0, _debug.assert)('A key is required.', key != null));\n      const cachePath = `_cache.${cacheName}`;\n      let cache = (0, _object.get)(this, cachePath);\n      if (!cache || !(0, _array.isArray)(cache)) {\n        (0, _object.set)(this, cachePath, []);\n        cache = (0, _object.get)(this, cachePath);\n      }\n      const existing = cache.find(obj => _lodash.default.isEqual((0, _object.get)(obj, 'key'), key));\n      if (existing) {\n        (0, _object.set)(existing, 'value', value);\n      } else {\n        cache.pushObject({\n          key,\n          value\n        });\n      }\n    },\n    lookup(cacheName, key) {\n      (false && !(typeof cacheName === 'string') && (0, _debug.assert)('A cache name is required.', typeof cacheName === 'string'));\n      (false && !(key != null) && (0, _debug.assert)('A key is required.', key != null));\n      const cache = (0, _object.get)(this, `_cache.${cacheName}`);\n      if (!cache) {\n        return undefined;\n      }\n      const record = cache.find(obj => _lodash.default.isEqual((0, _object.get)(obj, 'key'), key));\n      return record ? (0, _object.get)(record, 'value') : undefined;\n    },\n    clear(cacheName, key) {\n      (false && !(typeof cacheName === 'string') && (0, _debug.assert)('A cache name is required.', typeof cacheName === 'string'));\n      const cache = (0, _object.get)(this, '_cache.' + cacheName);\n      if (!cache) {\n        return false;\n      }\n      if ((0, _utils.isEmpty)(key)) {\n        (0, _object.set)(this, `_cache.${cacheName}`, []);\n        return true;\n      }\n      const record = cache.find(obj => _lodash.default.isEqual((0, _object.get)(obj, 'key'), key));\n      if (record) {\n        cache.removeObject(record);\n      }\n      return Boolean(record);\n    }\n  });\n});","define(\"portal/services/chargebee\", [\"exports\", \"jquery\", \"portal/config/environment\", \"@ember/service\", \"@glimmer/tracking\", \"lodash\"], function (_exports, _jquery, _environment, _service, _tracking, _lodash) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  /* global Chargebee */\n  0; //eaimeta@70e063a35619d71f0,\"jquery\",0,\"portal/config/environment\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"lodash\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _service.inject)(), _dec2 = (0, _service.inject)(), _dec3 = (0, _service.inject)(), _dec4 = (0, _service.inject)(), _class2 = class _class2 extends _service.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"session\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor3, this);\n      _initializerDefineProperty(this, \"portalApiV2\", _descriptor4, this);\n      _initializerDefineProperty(this, \"subscriptionIsChanging\", _descriptor5, this);\n      _defineProperty(this, \"subscriptionChanging\", null);\n    }\n    /**\n     * Says whether the Chargebee integration is ready to use, which needs the entity to\n     * have a Chargebee customer.\n     */\n    get ready() {\n      return Boolean(this.sessionData.entity?.cbCustomerId);\n    }\n    async open(entityId = this.sessionData.entity.id) {\n      if (!this.ready) return;\n      const currentEntityAttributes = this.sessionData.entity.hasMany('attributes').ids();\n      this.subscriptionChanging = null;\n      const portalSession = await getChargebeePortalSession(this.session.data.authenticated.access_token, entityId);\n      const instance = Chargebee.init({\n        site: portalSession.site\n      });\n      instance.logout();\n      instance.setPortalSession(portalSession);\n      const portal = instance.createChargebeePortal();\n      portal.open({\n        // this has the disadvantage of possibly reloading the page while the subscription window is still open\n        // however, this process generally takes around 10-15 seconds and reloading the window isn't a massive issue\n        close: this.handleClose.bind(this),\n        subscriptionChanged: () => {\n          this.subscriptionChanging = handleSubscriptionChange(this.sessionData.entity, new Date(), currentEntityAttributes);\n        }\n      });\n    }\n    async openIpsAddonCheckout(entityId = this.sessionData.entity.id) {\n      if (!this.ready) return;\n      const currentEntityAttributes = this.sessionData.entity.hasMany('attributes').ids();\n      this.subscriptionChanging = null;\n      const hostedPage = await this.portalApiV2.authPost('/chargebee/ips-addon/checkout', {\n        entity: entityId\n      });\n      const instance = Chargebee.init({\n        site: hostedPage.site\n      });\n      instance.logout();\n      instance.openCheckout({\n        hostedPage: () => Promise.resolve(hostedPage),\n        success: () => {\n          this.subscriptionChanging = handleSubscriptionChange(this.sessionData.entity, new Date(), currentEntityAttributes);\n        },\n        close: () => {\n          // checkout was cancelled without purchasing, nothing to apply\n          if (!this.subscriptionChanging) return;\n          this.handleClose();\n        }\n      });\n    }\n    async handleClose() {\n      try {\n        this.subscriptionIsChanging = true;\n        if (this.subscriptionChanging) {\n          await this.subscriptionChanging;\n        }\n      } finally {\n        // considering the large number of computed properties this change effects\n        // reloading the entire page is easier and safer\n        await new Promise(resolve => setTimeout(resolve, 10000));\n        location.reload();\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"portalApiV2\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"subscriptionIsChanging\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _class2);\n  async function handleSubscriptionChange(entity, subscriptionChangedMoment, currentEntityAttributes, waitTime = 500, attempts = 0) {\n    // if we've been trying for more than a minute resolve the promise\n    if (attempts * waitTime > 10000) return;\n    await entity.reload();\n    const latestEntityAttributes = entity.hasMany('attributes').ids();\n\n    // an upgrade adds attributes where a downgrade removes them\n    if (_lodash.default.xor(currentEntityAttributes, latestEntityAttributes).length > 0) return;\n\n    // if the entity hasn't been updated, wait for the timeout and try again\n    await new Promise(resolve => setTimeout(() => resolve(), waitTime));\n    return handleSubscriptionChange(entity, subscriptionChangedMoment, currentEntityAttributes, waitTime, attempts + 1);\n  }\n  function getChargebeePortalSession(accessToken, entityId) {\n    return new Promise((resolve, reject) => {\n      _jquery.default.ajax({\n        method: 'POST',\n        url: `${_environment.default.urls.api}${_environment.default.urls.apiV2Path}/chargebee/get-customer-portal-session`,\n        headers: {\n          Authorization: `Bearer ${accessToken}`\n        },\n        contentType: 'application/json',\n        accepts: 'application/json',\n        data: JSON.stringify({\n          entity: entityId\n        })\n      }).then(resolve, reject);\n    });\n  }\n});","define(\"portal/services/cookies\", [\"exports\", \"ember-cookies/services/cookies\"], function (_exports, _cookies) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _cookies.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-cookies/services/cookies\"eaimeta@70e063a35619d71f\n});","define(\"portal/services/dialog\", [\"exports\", \"@ember/service\", \"html-js-confirm\"], function (_exports, _service, _htmlJsConfirm) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"html-js-confirm\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  // WARNING:\n  // Never use this directly. It is intended for the \"builda-price-client-addon\".\n  let _class = _exports.default = (_dec = (0, _service.inject)('notifications'), _class2 = class _class2 extends _service.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"_notifications\", _descriptor, this);\n      _defineProperty(this, \"notifications\", this._notifications);\n      _defineProperty(this, \"confirm\", _htmlJsConfirm.default);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"_notifications\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/services/ember-elsewhere\", [\"exports\", \"ember-elsewhere/services/ember-elsewhere\"], function (_exports, _emberElsewhere) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _emberElsewhere.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-elsewhere/services/ember-elsewhere\"eaimeta@70e063a35619d71f\n});","define(\"portal/services/engine-data\", [\"exports\", \"@ember/service\", \"@glimmer/tracking\"], function (_exports, _service, _tracking) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"@glimmer/tracking\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _service.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionId\", _descriptor, this);\n      _initializerDefineProperty(this, \"jobId\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionId\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"jobId\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _class2);\n});","define(\"portal/services/financial-portal-period-selector\", [\"exports\", \"@ember/service\", \"@ember/object/evented\", \"@glimmer/tracking\", \"moment\"], function (_exports, _service, _evented, _tracking, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"@ember/object/evented\",0,\"@glimmer/tracking\",0,\"moment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _service.default.extend(_evented.default) {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"_period\", _descriptor, this);\n    }\n    get period() {\n      return this._period;\n    }\n    set period(value) {\n      if (this._period !== value) {\n        this._period = value;\n        // emit the signal for the route to intercept\n        this.trigger('periodChanged');\n      }\n    }\n    get date() {\n      return (0, _moment.default)(this.period, 'YYYY-MM').endOf('month').toDate();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"_period\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return (0, _moment.default)().subtract(1, 'month').format('YYYY-MM');\n    }\n  }), _class2);\n});","define(\"portal/services/help-center\", [\"exports\", \"@ember/service\", \"@ember/object\", \"portal/config/environment\"], function (_exports, _service, _object, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"@ember/object\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  /* global zE */\n  var _default = _exports.default = _service.default.extend({\n    session: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    helpCenterInitialized: false,\n    helpCenterActive: false,\n    labels: [],\n    activateHelpCenter: (0, _object.observer)('session.data.authenticated', 'helpCenterActive', function () {\n      const initialized = (0, _object.get)(this, 'helpCenterInitialized');\n      if (initialized) return;\n      const active = (0, _object.get)(this, 'helpCenterActive');\n      const loggedIn = (0, _object.get)(this, 'session.data.authenticated');\n      if (loggedIn && active) this.initializeHelpCenter();\n    }),\n    initializeHelpCenter() {\n      const user = (0, _object.get)(this, 'sessionData.user');\n      if (!user) return;\n      // Nothing to support against a fake server, and the widget would sit in\n      // the corner of every screenshot and product shot recorded on Mirage.\n      if (_environment.default.environment === 'test' || _environment.default['ember-cli-mirage']?.enabled) return;\n      const accessToken = (0, _object.get)(this, 'session.data.authenticated.access_token');\n      if (!accessToken || (0, _object.get)(this, 'helpCenterInitialized')) return;\n\n      /* eslint-disable */\n      // Start of buildaprice Zendesk Widget script\n      window.zEmbed || function (e, t) {\n        var n,\n          o,\n          d,\n          i,\n          s,\n          a = [],\n          r = document.createElement(\"iframe\");\n        window.zEmbed = function () {\n          a.push(arguments);\n        }, window.zE = window.zE || window.zEmbed, r.src = \"javascript:false\", r.title = \"\", r.role = \"presentation\", (r.frameElement || r).style.cssText = \"display: none\", d = document.getElementsByTagName(\"script\"), d = d[d.length - 1], d.parentNode.insertBefore(r, d), i = r.contentWindow, s = i.document;\n        try {\n          o = s;\n        } catch (e) {\n          n = document.domain, r.src = 'javascript:var d=document.open();d.domain=\"' + n + '\";void(0);', o = s;\n        }\n        o.open()._l = function () {\n          var e = this.createElement(\"script\");\n          n && (this.domain = n), e.id = \"js-iframe-async\", e.src = \"https://assets.zendesk.com/embeddable_framework/main.js\", this.t = +new Date(), this.zendeskHost = \"buildaprice.zendesk.com\", this.zEQueue = a, this.body.appendChild(e);\n        }, o.write('<body onload=\"document._l();\">'), o.close();\n      }();\n      // End of buildaprice Zendesk Widget script\n      /* eslint-enable */\n\n      (0, _object.set)(this, 'helpCenterInitialized', true);\n      const labels = (0, _object.get)(this, 'labels');\n      if (labels.length) this.setLabels(...labels);\n      if ((0, _object.get)(this, 'helpCenterActive')) this.showHelpCenter();\n      this.identify();\n    },\n    identify() {\n      const user = (0, _object.get)(this, 'sessionData.user');\n      const entity = (0, _object.get)(this, 'sessionData.entity');\n      if ((0, _object.get)(this, 'helpCenterInitialized')) {\n        if (zE.identify) {\n          zE.identify({\n            name: (0, _object.get)(user, 'fullName'),\n            email: (0, _object.get)(user, 'email'),\n            organisation: (0, _object.get)(entity, 'name')\n          });\n        } else {\n          zE(function () {\n            zE.identify({\n              name: (0, _object.get)(user, 'fullName'),\n              email: (0, _object.get)(user, 'email'),\n              organisation: (0, _object.get)(entity, 'name')\n            });\n          });\n        }\n      }\n    },\n    setLabels(...args) {\n      if ((0, _object.get)(this, 'helpCenterInitialized')) {\n        if (zE.setHelpCenterSuggestions) {\n          zE.setHelpCenterSuggestions({\n            labels: args\n          });\n        } else {\n          zE(function () {\n            zE.setHelpCenterSuggestions({\n              labels: args\n            });\n          });\n        }\n      }\n      (0, _object.set)(this, 'labels', args);\n    },\n    showHelpCenter() {\n      if ((0, _object.get)(this, 'helpCenterInitialized')) {\n        if (zE.show) {\n          zE.show();\n        } else {\n          zE(function () {\n            zE.show();\n          });\n        }\n      }\n      (0, _object.set)(this, 'helpCenterActive', true);\n    },\n    hideHelpCenter() {\n      if ((0, _object.get)(this, 'helpCenterInitialized')) {\n        if (zE.hide) {\n          zE.hide();\n        } else {\n          zE(function () {\n            zE.hide();\n          });\n        }\n      }\n      (0, _object.set)(this, 'helpCenterActive', false);\n    },\n    openHelpCenter() {\n      if ((0, _object.get)(this, 'helpCenterActive')) {\n        if (zE.activate) {\n          zE.activate();\n        } else {\n          zE(function () {\n            zE.activate();\n          });\n        }\n      }\n    }\n  });\n});","define(\"portal/services/intl\", [\"exports\", \"ember-intl/services/intl\"], function (_exports, _intl) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _intl.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-intl/services/intl\"eaimeta@70e063a35619d71f\n  /**\n   * Copyright 2015, Yahoo! Inc.\n   * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n   */\n});","define(\"portal/services/invoiced-costs\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/service\", \"@ember/object\", \"@glimmer/tracking\"], function (_exports, _asyncArrowRuntime, _service, _object, _tracking) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/service\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"ember-concurrency\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _service.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"confirmingDelete\", _descriptor, this);\n      _initializerDefineProperty(this, \"deleteTitle\", _descriptor2, this);\n      _initializerDefineProperty(this, \"deleteMessage\", _descriptor3, this);\n      _defineProperty(this, \"_resolveConfirmation\", void 0);\n      _defineProperty(this, \"requestDelete\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* ({\n          isInvoiced,\n          title,\n          message,\n          deleteCb\n        }) {\n          if (!isInvoiced) return deleteCb();\n          this.deleteTitle = title;\n          this.deleteMessage = message;\n          this.confirmingDelete = true;\n          const isConfirmed = yield new Promise(resolve => {\n            this._resolveConfirmation = resolve;\n          });\n          if (isConfirmed) yield deleteCb();\n        }\n      }), null, \"requestDelete\", null));\n    }\n    confirmDelete() {\n      this.confirmingDelete = false;\n      if (this._resolveConfirmation) {\n        this._resolveConfirmation(true);\n        this._resolveConfirmation = null;\n      }\n    }\n    dismissDelete() {\n      this.confirmingDelete = false;\n      if (this._resolveConfirmation) {\n        this._resolveConfirmation(false);\n        this._resolveConfirmation = null;\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"confirmingDelete\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"deleteTitle\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"deleteMessage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"confirmDelete\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"confirmDelete\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"dismissDelete\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"dismissDelete\"), _class2.prototype), _class2);\n});","define(\"portal/services/ips\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/service\", \"@glimmer/tracking\"], function (_exports, _asyncArrowRuntime, _service, _tracking) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/service\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"@glimmer/tracking\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  function attachmentToFile(attachment) {\n    const binary = atob(attachment.data);\n    const bytes = Uint8Array.from(binary, char => char.charCodeAt(0));\n    return new File([bytes], attachment.filename, {\n      type: attachment.fileType\n    });\n  }\n  let _class = _exports.default = (_class2 = class _class2 extends _service.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor3, this);\n      _initializerDefineProperty(this, \"portalApiV2\", _descriptor4, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor5, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor6, this);\n      // the meter reads this, so a refused upload can correct it in place\n      _initializerDefineProperty(this, \"latestUsage\", _descriptor7, this);\n      _initializerDefineProperty(this, \"dismissedAlert\", _descriptor8, this);\n      _defineProperty(this, \"uploadPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* ({\n          attachments = [],\n          validationErrors = [],\n          error\n        }) {\n          if (!this.ready) return false;\n          validationErrors.forEach(validationError => this.notifications.error(validationError));\n          if (error || !attachments.length) {\n            if (error) {\n              this.notifications.error({\n                message: this.intl.t('services.ips.somethingWentWrongWhileSubmittingFilesToIPS'),\n                error\n              });\n            }\n            return false;\n          }\n          try {\n            yield this.buildaPrice.submitFilesToIPS(this.sessionData.entity.id, attachments.map(attachmentToFile));\n            this.notifications.success(this.intl.t('services.ips.Files submitted to IPS'));\n            return true;\n          } catch (submitError) {\n            // the refusal carries the usage that caused it, so no refetch needed\n            const refusedUsage = submitError?.responseJSON?.detail?.ipsUsage;\n            if (refusedUsage) {\n              this.latestUsage = refusedUsage;\n              this.notifications.error({\n                message: refusedUsage.hasActiveTerm ? this.intl.t('services.ips.ipsDocumentAllowanceUsed') : this.intl.t('services.ips.couldNotImportPdfBills')\n              });\n              return false;\n            }\n            this.notifications.error({\n              message: this.intl.t('services.ips.somethingWentWrongWhileSubmittingFilesToIPS'),\n              error: submitError\n            });\n            return false;\n          }\n        }\n      }), null, \"uploadPdf\", null));\n    }\n    /**\n     * Says whether IPS is ready to use, which needs the entity to have an ips_connection.\n     * Unknown until usage has been fetched.\n     */\n    get ready() {\n      return Boolean(this.newFeatureFlags.includesFeatureFlags('entityCanUseIPS') && this.latestUsage?.isConnected);\n    }\n    get canSubmitDocuments() {\n      const usage = this.latestUsage;\n      if (!this.ready) return false;\n      if (!usage.hasActiveTerm) return false;\n      return usage.isMetered || usage.used < usage.limit;\n    }\n    async getIpsContactInfo() {\n      return await this.portalApiV2.authGet('/ips/contact-info', {\n        entityId: this.sessionData.entity.id\n      });\n    }\n    async getUsage() {\n      this.latestUsage = await this.portalApiV2.authGet('/ips/usage', {\n        entityId: this.sessionData.entity.id\n      });\n      return this.latestUsage;\n    }\n    async updateIpsContactEmail(body) {\n      return await this.portalApiV2.authPatch(`/ips/contact-email`, body);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"portalApiV2\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"latestUsage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"dismissedAlert\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _class2);\n});","define(\"portal/services/keyboard\", [\"exports\", \"ember-keyboard/services/keyboard\"], function (_exports, _keyboard) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _keyboard.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-keyboard/services/keyboard\"eaimeta@70e063a35619d71f\n});","define(\"portal/services/media-events\", [\"exports\", \"@ember/object/evented\", \"@ember/object\", \"@ember/service\"], function (_exports, _evented, _object, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object/evented\",0,\"@ember/object\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  /**\n   * Provides an evented wrapper around the media service.\n   */\n  var _default = _exports.default = _service.default.extend(_evented.default, {\n    media: (0, _service.inject)(),\n    mediaMatchesDidChange: (0, _object.observer)('media', 'media.matches.[]', function () {\n      this.trigger('mediaMatchesDidChange');\n    }),\n    // This one took me a while.\n    // https://guides.emberjs.com/v2.10.0/object-model/observers/#toc_unconsumed-computed-properties-do-not-trigger-observers\n    consumeMediaService: (0, _evented.on)('init', function () {\n      (0, _object.get)(this, 'media');\n    })\n  });\n});","define(\"portal/services/media\", [\"exports\", \"ember-responsive/services/media\"], function (_exports, _media) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-responsive/services/media\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _media.default;\n});","define(\"portal/services/metrics\", [\"exports\", \"ember-metrics/services/metrics\"], function (_exports, _metrics) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _metrics.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-metrics/services/metrics\"eaimeta@70e063a35619d71f\n});","define(\"portal/services/mobile-menu\", [\"exports\", \"@ember/service\"], function (_exports, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\"eaimeta@70e063a35619d71f\n  class _default extends _service.default {\n    toggleMenu() {\n      document.getElementById('mobile-side-menu__overlay').classList.toggle('mobile-side-menu__overlay--visible');\n      document.getElementById('mobile-side-menu').classList.toggle('mobile-side-menu--visible');\n    }\n    closeMenu() {\n      document.getElementById('mobile-side-menu__overlay').classList.remove('mobile-side-menu__overlay--visible');\n      document.getElementById('mobile-side-menu').classList.remove('mobile-side-menu--visible');\n    }\n  }\n  _exports.default = _default;\n});","define(\"portal/services/modal-dialog\", [\"exports\", \"@ember/object\", \"@ember/service\", \"portal/config/environment\", \"ember-modal-dialog/utils/config-utils\"], function (_exports, _object, _service, _environment, _configUtils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"@ember/service\",0,\"portal/config/environment\",0,\"ember-modal-dialog/utils/config-utils\"eaimeta@70e063a35619d71f\n  function computedFromConfig(prop) {\n    return (0, _object.computed)(function () {\n      return _environment.default['ember-modal-dialog'] && _environment.default['ember-modal-dialog'][prop];\n    });\n  }\n  var _default = _exports.default = _service.default.extend({\n    hasEmberTether: computedFromConfig('hasEmberTether'),\n    hasLiquidWormhole: computedFromConfig('hasLiquidWormhole'),\n    hasLiquidTether: computedFromConfig('hasLiquidTether'),\n    destinationElementId: (0, _object.computed)(function () {\n      return (0, _configUtils.getDestinationElementIdFromConfig)(_environment.default);\n    })\n  });\n});","define(\"portal/services/modules\", [\"exports\", \"@ember/service\", \"portal/utils/favicon-title\", \"portal/utils/platform\"], function (_exports, _service, _faviconTitle, _platform) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"portal/utils/favicon-title\",0,\"portal/utils/platform\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  // TODO delete the partner module and all routes\n  // TODO entirely delete bunnings concepts\n  // TODO delete following modules/routes/feature flags: partner, building, pricing, PM promo\n  let _class = _exports.default = (_class2 = class _class2 extends _service.default {\n    constructor() {\n      super(...arguments);\n\n      // once to init the title bar on refresh\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _initializerDefineProperty(this, \"platform\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _defineProperty(this, \"_onRouteDidChange\", void 0);\n      this.onRouteDidChange();\n      this._onRouteDidChange = this.onRouteDidChange.bind(this);\n      this.router.on('routeDidChange', this._onRouteDidChange);\n    }\n    willDestroy() {\n      super.willDestroy(...arguments);\n      this.router.off('routeDidChange', this._onRouteDidChange);\n    }\n    onRouteDidChange() {\n      let pre = '';\n      const host = window.location.host;\n      if (host.includes('localhost')) pre = '🟢';\n      if (host.includes('staging')) pre = '🟠';\n      const moduleRoutes = Object.values(this.modules).map(m => m.slug);\n      const bannedRoutes = ['index', 'entity'];\n      let usableRoutes = this.router.currentRouteName.split('.').filter((r, i) => {\n        // only filter module names from module-ish routes so we don't clash with actual route names\n        const couldBeModule = i <= 2;\n        if (couldBeModule) {\n          return !moduleRoutes.includes(r) && !bannedRoutes.includes(r);\n        }\n        return !bannedRoutes.includes(r);\n      }).map(r => r.split(/-|_/).map((w, i) => i === 0 ? w.charAt(0).toUpperCase() + w.substring(1) : w).join(' '));\n      const thisRoute = usableRoutes[usableRoutes.length - 1];\n      if (usableRoutes.length > 3) {\n        usableRoutes = [usableRoutes[0],\n        // the parent route\n        '...', usableRoutes[usableRoutes.length - 1] // the current route\n        ];\n      }\n\n      // only bother with breadcrumbs if we're deeper than 2 routes\n      const routeBreadcrumbs = usableRoutes.length > 2 ? ` > ${usableRoutes.join(' > ')}` : '';\n      if (this.currentModule) {\n        const title = `${pre} ${thisRoute} - ${this.currentModule.name}${routeBreadcrumbs}`;\n        (0, _faviconTitle.changeTitle)(title);\n        (0, _faviconTitle.changeFavicon)(this.currentModule.favicon);\n      } else {\n        const title = `${pre} ${thisRoute} - ${this.platform.platform.name}${routeBreadcrumbs}`;\n        (0, _faviconTitle.changeTitle)(title);\n        (0, _faviconTitle.changeFavicon)(this.platform.platform.favicon);\n      }\n    }\n    get modules() {\n      const modules = {\n        BUILDA_PRICE: {\n          slug: 'builda-price',\n          name: this.intl.t('common.Project management'),\n          brand: 'Builda Price',\n          logo: _platform.BRANDING.BUILDA_PRICE.logo,\n          favicon: _platform.BRANDING.BUILDA_PRICE.favicon,\n          outsideLink: undefined,\n          badge: undefined\n        },\n        FINANCIALS: {\n          slug: 'financials',\n          name: this.intl.t('common.Financial portal'),\n          brand: 'Step Accounts',\n          logo: _platform.BRANDING.STEP.logo,\n          favicon: _platform.BRANDING.STEP.favicon,\n          outsideLink: undefined,\n          badge: undefined\n        },\n        BUILDA_PRICE_PROMO: {\n          slug: undefined,\n          name: this.intl.t('common.Project management'),\n          brand: 'Builda Price',\n          logo: _platform.BRANDING.BUILDA_PRICE.logo,\n          favicon: _platform.BRANDING.BUILDA_PRICE.favicon,\n          outsideLink: 'https://www.buildaprice.co.nz',\n          badge: 'UPGRADE'\n        }\n      };\n\n      // in some branding scenarios module branding is overridden\n      switch (this.sessionData.entity?.brand) {\n        case 'BUILDA_PRICE':\n          modules.FINANCIALS.brand = undefined;\n          modules.FINANCIALS.favicon = _platform.BRANDING.BUILDA_PRICE.favicon;\n          modules.FINANCIALS.icon = 'chart-line';\n          modules.FINANCIALS.logo = _platform.BRANDING.BUILDA_PRICE.logo;\n          modules.FINANCIALS.name = this.intl.t('common.Benchmarking');\n          modules.BUILDA_PRICE.brand = undefined;\n          modules.BUILDA_PRICE.icon = 'hammer';\n          break;\n        case 'STEP':\n          break;\n        case 'APB':\n          modules.FINANCIALS.brand = 'APB';\n          modules.FINANCIALS.favicon = _platform.BRANDING.APB.favicon;\n          modules.FINANCIALS.logo = _platform.BRANDING.APB.logo;\n          break;\n        case 'TPB':\n          modules.BUILDA_PRICE.brand = 'TPB';\n          modules.BUILDA_PRICE.favicon = _platform.BRANDING.TPB.favicon;\n          modules.BUILDA_PRICE.logo = _platform.BRANDING.TPB.logo;\n          modules.FINANCIALS.brand = 'TPB';\n          modules.FINANCIALS.favicon = _platform.BRANDING.TPB.favicon;\n          modules.FINANCIALS.logo = _platform.BRANDING.TPB.logo;\n          break;\n        case 'STEP_UP':\n          modules.BUILDA_PRICE.brand = undefined;\n          modules.BUILDA_PRICE.favicon = _platform.BRANDING.STEP_UP.favicon;\n          modules.BUILDA_PRICE.logo = _platform.BRANDING.STEP_UP.logo;\n          modules.FINANCIALS.brand = undefined;\n          modules.FINANCIALS.favicon = _platform.BRANDING.STEP_UP.favicon;\n          modules.FINANCIALS.logo = _platform.BRANDING.STEP_UP.logo;\n          break;\n        case 'ITM':\n          modules.FINANCIALS.favicon = _platform.BRANDING.ITM.favicon;\n          modules.FINANCIALS.logo = _platform.BRANDING.ITM.logo;\n          break;\n        case 'ATTENTION_SAFETY':\n          modules.FINANCIALS.brand = undefined;\n          modules.FINANCIALS.favicon = _platform.BRANDING.ATTENTION_SAFETY.favicon;\n          modules.FINANCIALS.icon = 'chart-line';\n          modules.FINANCIALS.logo = _platform.BRANDING.ATTENTION_SAFETY.logo;\n          modules.FINANCIALS.name = this.intl.t('common.Benchmarking');\n          modules.BUILDA_PRICE.brand = undefined;\n          modules.BUILDA_PRICE.favicon = _platform.BRANDING.ATTENTION_SAFETY.favicon;\n          modules.BUILDA_PRICE.icon = 'hammer';\n          modules.BUILDA_PRICE.logo = _platform.BRANDING.ATTENTION_SAFETY.logo;\n          break;\n      }\n      return modules;\n    }\n    get currentModule() {\n      const routes = this.router.currentRouteName.split('.');\n      // the module is always the second route, after entity\n      const moduleRoute = routes[1];\n      switch (moduleRoute) {\n        case 'financials':\n          return this.modules.FINANCIALS;\n        case 'builda-price':\n          return this.modules.BUILDA_PRICE;\n        default:\n          return undefined;\n      }\n    }\n    get allowedModules() {\n      const allowedModules = [];\n      if (this.newFeatureFlags.includesFeatureFlags('canUseBuildaPrice')) allowedModules.push(this.modules.BUILDA_PRICE);\n      if (this.newFeatureFlags.includesFeatureFlags('canUseFinancialReporting')) allowedModules.push(this.modules.FINANCIALS);\n      if (this.newFeatureFlags.includesFeatureFlags('isAPBCustomer') && this.newFeatureFlags.excludesFeatureFlags('canUseBuildaPrice')) allowedModules.push(this.modules.BUILDA_PRICE_PROMO);\n      return allowedModules;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"platform\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/services/moment\", [\"exports\", \"ember-moment/services/moment\"], function (_exports, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _moment.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/services/moment\"eaimeta@70e063a35619d71f\n});","define(\"portal/services/new-feature-flags\", [\"exports\", \"@ember/service\", \"@ember/object\", \"lodash\", \"portal/utils/collection-to-array\"], function (_exports, _service, _object, _lodash, _collectionToArray) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"@ember/object\",0,\"lodash\",0,\"portal/utils/collection-to-array\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _service.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"session\", _descriptor2, this);\n    }\n    /* HELPERS SECTION START */\n    includesFeatureFlags(...params) {\n      const {\n        checks,\n        args\n      } = params.reduce((acc, param) => {\n        if (typeof param === 'string') acc.checks.push(param);else acc.args.push(param);\n        return acc;\n      }, {\n        checks: [],\n        args: []\n      });\n      if (args.length > 1) throw new Error('You can only provide one resource to check against');\n      return checks.every(check => typeof this[check] === 'function' ? this[check](...args) : this[check]);\n    }\n    includesSomeFeatureFlags(...params) {\n      const {\n        checks,\n        args\n      } = params.reduce((acc, param) => {\n        if (typeof param === 'string') acc.checks.push(param);else acc.args.push(param);\n        return acc;\n      }, {\n        checks: [],\n        args: []\n      });\n      if (args.length > 1) throw new Error('You can only provide one resource to check against');\n      return checks.some(check => typeof this[check] === 'function' ? this[check](...args) : this[check]);\n    }\n    excludesFeatureFlags(...params) {\n      const {\n        checks,\n        args\n      } = params.reduce((acc, param) => {\n        if (typeof param === 'string') acc.checks.push(param);else acc.args.push(param);\n        return acc;\n      }, {\n        checks: [],\n        args: []\n      });\n      if (args.length > 1) throw new Error('You can only provide one resource to check against');\n      return checks.every(check => typeof this[check] === 'function' ? !this[check](...args) : !this[check]);\n    }\n    excludesSomeFeatureFlags(...params) {\n      const {\n        checks,\n        args\n      } = params.reduce((acc, param) => {\n        if (typeof param === 'string') acc.checks.push(param);else acc.args.push(param);\n        return acc;\n      }, {\n        checks: [],\n        args: []\n      });\n      if (args.length > 1) throw new Error('You can only provide one resource to check against');\n      return checks.some(check => typeof this[check] === 'function' ? !this[check](...args) : !this[check]);\n    }\n    /* HELPERS SECTION END */\n\n    /* ENTITY SECTION START */\n    /* entity data start */\n    get entity() {\n      return this.sessionData.entity;\n    }\n    get entities() {\n      // TODO remove allowed entities when we have a better way to do this\n      return this.sessionData.allowedEntities;\n    }\n    /* entity data end */\n\n    /* entity modules start */\n    get entityCanUseCrystalPayroll() {\n      if (this.entity?.includesClaims('v1CrystalPayrollDisabled') && this.sessionData.isUsingAdminMode) return true;\n      return this.entity?.includesClaims('canUseCrystalPayroll') && this.entity?.excludesClaims('v1CrystalPayrollDisabled');\n    }\n    get entityCanUseKeypay() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entity?.includesClaims('canUseKeypay');\n    }\n    get entityCanUsePartner() {\n      if (this.entity?.includesClaims('v1PartnerDisabled') && this.sessionData.isUsingAdminMode) return true;\n      return this.entity?.includesClaims('canUsePartner') &&\n      // this is awkward but we don't need to do anything about it at the moment\n      this.entity?.includesClaims('canManageIPSDocuments') && this.entity?.excludesClaims('v1PartnerDisabled');\n    }\n    get entityCanUseOldPricing() {\n      if (this.entity?.includesClaims('v1PricingDisabled') && this.sessionData.isUsingAdminMode) return true;\n      return this.entity?.includesClaims('canUsePricing') && this.entity?.excludesClaims('v1PricingDisabled');\n    }\n    get entityIsParent() {\n      // if you don't have a parent, you are a parent\n      return !this.sessionData.entity?.belongsTo('parent').id();\n    }\n    get entityCanUseStrategies() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entity?.includesClaims('canUseStrategies') && this.entity?.excludesClaims('v1StrategiesDisabled');\n    }\n    get entityIsItm() {\n      // TODO this should probably be a permission but it's contained to a ITM specific report\n      const itmEntityId = '552ef9b81a54227852a57c20';\n      return [this.entity?.id, this.entity.belongsTo('parent').id()].includes(itmEntityId);\n    }\n    get entityIsItmParent() {\n      // TODO this should probably be a permission but it's contained to a ITM specific report\n      const itmEntityId = '552ef9b81a54227852a57c20';\n      return [this.entity?.id].includes(itmEntityId);\n    }\n    get entityCanUseFinancialReporting() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entity?.includesClaims('canUseFinancialReporting') && this.entity?.excludesClaims('v1FinancialReportingDisabled');\n    }\n    get entityCanUseBuildaPrice() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entity?.includesClaims('canUseBuildaPrice') && this.entity?.excludesClaims('v1BuildaPriceDisabled');\n    }\n    /* entity modules end */\n\n    /* entity features start */\n    get entityCanUseCarters() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseCarters');\n    }\n    get entityCanUseIPS() {\n      return this.entityCanUseBills || this.entityCanUseStatements;\n    }\n\n    // statements ride the Doc Flow free allowance, so access comes from Bills\n    get entityCanUseStatements() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseStatements');\n    }\n    get entityCanUsePlaceMakers() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return (this.entityCanUseOldPricing || this.entityCanUseBuildaPrice) && this.entity?.includesClaims('canUsePlaceMakers');\n    }\n    get entityCanUseSmartPayroll() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseSmartPayroll');\n    }\n    get entityCanUseItmInvoiceIntegration() {\n      if (this.sessionData.isUsingAdminMode) return true;\n\n      // there are no specific ITM related feature flags currently\n      return this.entityCanUseBuildaPrice || this.entityCanUseOldPricing;\n    }\n    get entityCanUseBills() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseBills');\n    }\n    get entityCanUsePurchaseOrders() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUsePurchaseOrders');\n    }\n    get entityCanUseInvoices() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseInvoicing');\n    }\n    get entityCanUseStagePayments() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseStagePayments');\n    }\n    get entityCanUseDashboards() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseDashboards');\n    }\n    get entityCanUseEstimates() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return (this.entityCanUseOldPricing || this.entityCanUseBuildaPrice) && this.entity?.includesClaims('canUseEstimates');\n    }\n    get entityCanUseNotes() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseNotes');\n    }\n    get entityCanUseClientReports() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseClientReport');\n    }\n    get entityCanUseProjectFinancials() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseProjectFinancials');\n    }\n    get entityCanUseForecastReport() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseForecastReport');\n    }\n    get entityCanUseProfitMarginsReport() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseProfitMarginsReport');\n    }\n    get entityCanUseLabourHoursReport() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseLabourHoursReport');\n    }\n    get entityCanUseBudgetReport() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseBudgetReport');\n    }\n    get entityCanUseQuoteReport() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseQuoteReport');\n    }\n    get entityCanUsePositionReport() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUsePositionReport');\n    }\n    get entityCanUseCostReport() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseCostReport');\n    }\n    get entityCanUseChargeupReport() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseChargeupReport');\n    }\n    get entityCanUseInvoicingReport() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseInvoicingReport');\n    }\n    get entityCanUseWipReport() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseWIPReport');\n    }\n    get entityCanUseScheduling() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseScheduling');\n    }\n    get entityCanUseTimesheets() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseTimesheets');\n    }\n    get entityCanUseFileStorage() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseFileStorage');\n    }\n    get entityCanUseProducts() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseProducts');\n    }\n    get entityCanUseProjectProgress() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseProjectProgress');\n    }\n    get entityCanUseCsvTaskFileUploader() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseCsvTaskFileUploader');\n    }\n    get entityCanUseHealthAndSafety() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseHealthAndSafety');\n    }\n    get entityCanUseClientPortal() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseClientPortal');\n    }\n    get entityCanUseGeofencing() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseGeofencing');\n    }\n    get entityHasSubcontractorPackage() {\n      if (!this.entityCanUseBuildaPrice) return false;\n      if (this.entity?.includesClaims('canUseHealthAndSafety') && this.entity?.excludesClaims('canUseBills', 'canUseClientPortal', 'canUseCsvTaskFileUploader', 'canUseDashboards', 'canUseEstimates', 'canUseFileStorage', 'canUseIPS', 'canUseNotes', 'canUseProjectFinancials', 'canUseScheduling', 'canUseTimesheets')) return true;\n      return false;\n    }\n    get entityIsCalStudent() {\n      if (this.entity?.cbPlanId === 'builda-price-cal-education-AUD-Monthly') {\n        return true;\n      }\n      return false;\n    }\n    get entityHasSupport() {\n      // people on the education plan don't get support\n      if (this.entityIsCalStudent) return false;\n\n      // people who are on chargebee get support\n      if (!this.entity?.cbPlanId) return true;\n      if (this.entity?.includesClaims('canUseSupport')) return true;\n      return false;\n    }\n    get isAPBCustomer() {\n      if (this.entity?.brand === 'APB') return true;\n      return false;\n    }\n    /* entity features end */\n    /* ENTITY SECTION END */\n\n    /* USER/WORKER SECTION START */\n    /* user/worker data start */\n    get user() {\n      // the currently logged in user\n      return this.sessionData.user;\n    }\n    get worker() {\n      // the currently logged in worker (in the case of worker login)\n      return this.sessionData.workerPseudoUser;\n    }\n    get projectAttributes() {\n      return this.user?.hasMany('projectAttributes')?.value()?.filter(pa => pa.belongsTo('entity').id() === this.entity?.id) || [];\n    }\n    get taskAttributes() {\n      return this.user?.hasMany('taskAttributes')?.value()?.filter(pa => pa.belongsTo('entity').id() === this.entity?.id) || [];\n    }\n    get userIsWorker() {\n      return Boolean(this.sessionData.workerPseudoUser);\n    }\n    get userIsAdmin() {\n      return this.session?.data?.authenticated?.user?.role === 'admin';\n    }\n    get userIsPartner() {\n      // deal with partners :(\n      // if the entity has a partner, and the user has can manage on the partner, they can also manage this entity\n      const partnerId = this.entity?.belongsTo('partner').id();\n      if (partnerId) {\n        if (this.user?.includesClaimsAboutEntity(partnerId, 'canManageEntity')) return true;\n      }\n      return false;\n    }\n    get userIsEntityAdmin() {\n      if (this.userIsAdmin || this.userIsPartner || this.user?.includesClaimsAboutEntity(this.entity?.id, 'canManageEntity')) return true;\n      return false;\n    }\n    get userIsEntityMember() {\n      // in the case of worker login, check the worker belongs to the entity\n      if (this.userIsWorker) return this.worker.belongsTo('entity').value() === this.sessionData.entity;\n\n      // otherwise, check the user belongs to the entity\n      return this.user?.includesClaimsAboutEntity(this.entity?.id, 'canViewEntity');\n    }\n    get userCanViewEntity() {\n      return this.userIsEntityAdmin || this.userIsEntityMember;\n    }\n    get userHasPricingRole() {\n      return Boolean(this.user?.pricingRole);\n    }\n    get userIsClient() {\n      return this.user?.includesClaimsAboutEntity(this.entity?.id, 'hasClientRole');\n    }\n    /* user/worker data end */\n\n    /* user/worker modules start */\n    get canUsePartner() {\n      // this module is only available to entity admins because the only feature in it is admin based\n      return this.entityCanUsePartner && this.userIsEntityAdmin;\n    }\n    get canUseOldPricing() {\n      if (!this.entityCanUseOldPricing) return false;\n      if (!this.userCanViewEntity) return false;\n\n      // entity admins can use old pricing\n      if (this.userIsEntityAdmin) return true;\n\n      // need to check if the users has an old school pricing permission\n      // and a role\n      // this will prevent newly created users from accessing old modules\n      if (this.userHasPricingRole && this.user?.includesClaimsAboutEntity(this.entity?.id, 'canUsePricing')) return true;\n      return false;\n    }\n    get canUseFinancialReporting() {\n      if (!this.entityCanUseFinancialReporting) return false;\n      if (!this.userCanViewEntity) return false;\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canAdminFinancialReporting', 'canViewFinancialReporting')) return true;\n      return false;\n    }\n    get canUseStrategies() {\n      if (!this.entityCanUseStrategies) return false;\n      if (!this.userCanViewEntity) return false;\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canDeleteStrategies', 'canViewStrategies')) return true;\n      return false;\n    }\n    get canUseBuildaPrice() {\n      if (!this.entityCanUseBuildaPrice) return false;\n      if (!this.userCanViewEntity) return false;\n\n      // entity admins can use bp\n      if (this.userIsEntityAdmin) return true;\n\n      // workers can use bp\n      if (this.userIsWorker) return true;\n\n      // people who can see all projects can use bp\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canViewProjects', 'canManageProjects')) return true;\n\n      // people with access to at least one project can use bp\n      let canUseProjects = false;\n      this.projectAttributes.forEach(pa => {\n        if (pa.belongsTo('entity').id() !== this.entity?.id) return;\n        const attribute = pa.belongsTo('attribute').id();\n        if (['canViewProjects', 'canManageProjects'].includes(attribute)) canUseProjects = true;\n      });\n      if (canUseProjects) return true;\n      return false;\n    }\n    get hasAccessToPortal() {\n      // check if the user and entity has access to any modules\n      return this.canUsePartner || this.canUseFinancialReporting || this.canUseOldPricing || this.canUseBuildaPrice;\n    }\n    /* user/worker modules end */\n\n    /* user/worker features start */\n    get canUseWorkerType() {\n      if (!this.entityCanUseBuildaPrice) return false;\n      if (this.entityHasSubcontractorPackage) return false;\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canManageWorkers')) return true;\n      return false;\n    }\n    get canUsePayRate() {\n      if (!this.entityCanUseBuildaPrice) return false;\n      if (this.entityHasSubcontractorPackage) return false;\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canManageWorkers')) return true;\n      return false;\n    }\n    get canUseCostRate() {\n      if (!this.entityCanUseBuildaPrice) return false;\n      if (this.entityHasSubcontractorPackage) return false;\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canManageWorkers')) return true;\n      return false;\n    }\n    get canUseWorkerCostCalculator() {\n      if (!this.entityCanUseBuildaPrice) return false;\n      if (this.entityHasSubcontractorPackage) return false;\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canManageWorkers')) return true;\n      return false;\n    }\n    get canUseChargeOutRate() {\n      if (!this.entityCanUseBuildaPrice) return false;\n      if (this.entityHasSubcontractorPackage) return false;\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canManageWorkers')) return true;\n      return false;\n    }\n    canUseBackdateChargeOutRate(resource) {\n      if (!this.entityCanUseBuildaPrice) return false;\n      if (this.entityHasSubcontractorPackage) return false;\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canManageWorkers')) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canManageTimesheets')) return true;\n            if (this.user?.includesClaimsAboutProject(modelId(resource), 'canManageTimesheets')) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canUseBackdateCostRate() {\n      if (!this.entityCanUseBuildaPrice) return false;\n      if (this.entityHasSubcontractorPackage) return false;\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canManageWorkers')) return true;\n      return false;\n    }\n    canUseWorkerJobAllocation(resource) {\n      if (!this.entityCanUseBuildaPrice) return false;\n      if (this.entityHasSubcontractorPackage) return false;\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canManageWorkers')) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canManageTimesheets')) return true;\n            if (this.user?.includesClaimsAboutProject(modelId(resource), 'canManageTimesheets')) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    get canUseScheduling() {\n      if (!this.entityCanUseScheduling) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // currently only users with entity level scheduling management can access scheduling\n      // once we introduce project/task filtering this will change\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageSchedulingReports', 'canViewSchedulingReports')) return true;\n\n      // check if the user has scheduling permission for any projects\n      if (this.projectAttributes.some(pa => ['canManageSchedulingReports', 'canViewSchedulingReports'].includes(pa.belongsTo('attribute').id()))) return true;\n\n      // check if the user has scheduling permission for any tasks\n      if (this.taskAttributes.some(ta => ['canManageSchedulingReports', 'canViewSchedulingReports'].includes(ta.belongsTo('attribute').id()))) return true;\n      return false;\n    }\n    canViewBudgetFinancialReports(resource) {\n      if (!this.entityCanUseBuildaPrice) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // otherwise you need access to view or manage budget reports\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageBudgetReports', 'canViewBudgetFinancialReports')) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            if (this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageBudgetReports', 'canViewBudgetFinancialReports')) return true;\n            break;\n          }\n        case 'task':\n          {\n            // check for project access first\n            if (this.user?.includesSomeClaimsAboutProject(\n            // this can be passed proxy objects so we need to use old school getters\n            (0, _object.get)(resource, 'project.id'), 'canManageBudgetReports', 'canViewBudgetFinancialReports')) return true;\n            // if you don't have project access, check for task access\n            if (this.user?.includesSomeClaimsAboutTask(modelId(resource), 'canManageBudgetReports', 'canViewBudgetFinancialReports')) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canViewQuoteReports(resource) {\n      if (!this.entityCanUseBuildaPrice) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // otherwise you need access to view or manage quote reports\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageQuoteReports', 'canViewQuoteReports')) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            if (this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageQuoteReports', 'canViewQuoteReports')) return true;\n            break;\n          }\n        case 'task':\n          {\n            // check for project access first\n            if (this.user?.includesSomeClaimsAboutProject(\n            // this can be passed proxy objects so we need to use old school getters\n            (0, _object.get)(resource, 'project.id'), 'canManageQuoteReports', 'canViewQuoteReports')) return true;\n            // if you don't have project access, check for task access\n            if (this.user?.includesSomeClaimsAboutTask(modelId(resource), 'canManageQuoteReports', 'canViewQuoteReports')) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canViewProgressReports(resource) {\n      if (!this.entityCanUseProjectFinancials) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // otherwise you need access to view or manage quote reports\n      if (this._canUseEntityProgressReports) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            if (this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageProgressReports', 'canViewProgressReports')) return true;\n            break;\n          }\n        case 'task':\n          {\n            // check for project access first\n            if (this.user?.includesSomeClaimsAboutProject(\n            // this can be passed proxy objects so we need to use old school getters\n            (0, _object.get)(resource, 'project.id'), 'canManageProgressReports', 'canViewProgressReports')) return true;\n            // if you don't have project access, check for task access\n            if (this.user?.includesSomeClaimsAboutTask(modelId(resource), 'canManageProgressReports', 'canViewProgressReports')) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canViewCostFinancialReports(resource) {\n      if (!this.entityCanUseBuildaPrice) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // otherwise you need access to view or manage quote reports\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageCostReports', 'canViewCostFinancialReports')) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            if (this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageCostReports', 'canViewCostFinancialReports')) return true;\n            break;\n          }\n        case 'task':\n          {\n            // check for project access first\n            if (this.user?.includesSomeClaimsAboutProject(\n            // this can be passed proxy objects so we need to use old school getters\n            (0, _object.get)(resource, 'project.id'), 'canManageCostReports', 'canViewCostFinancialReports')) return true;\n            // if you don't have project access, check for task access\n            if (this.user?.includesSomeClaimsAboutTask(modelId(resource), 'canManageCostReports', 'canViewCostFinancialReports')) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canViewAccessReports(resource) {\n      // access reports are built from geofencing data\n      if (!this.entityCanUseGeofencing) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageAccessReports', 'canViewAccessReports')) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            if (this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageAccessReports', 'canViewAccessReports')) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canViewChargeupReports(resource) {\n      if (!this.entityCanUseBuildaPrice) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // otherwise you need access to view or manage quote reports\n      if (this._canUseEntityChargeupReports) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            if (this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageChargeupReports', 'canViewChargeupReports')) return true;\n            break;\n          }\n        case 'task':\n          {\n            // check for project access first\n            if (this.user?.includesSomeClaimsAboutProject(\n            // this can be passed proxy objects so we need to use old school getters\n            (0, _object.get)(resource, 'project.id'), 'canManageChargeupReports', 'canViewChargeupReports')) return true;\n            // if you don't have project access, check for task access\n            if (this.user?.includesSomeClaimsAboutTask(modelId(resource), 'canManageChargeupReports', 'canViewChargeupReports')) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canManageProjects(resource) {\n      if (!this.entityCanUseBuildaPrice) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // if you have permission at entity level you can manage all tasks\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageProjects')) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          // if you are a project admin for the project you can manage tasks\n          return this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageProjects');\n      }\n      return false;\n    }\n    canUseProjects(resource) {\n      if (!this.entityCanUseBuildaPrice) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // if you have permission at entity level you can manage all tasks\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canViewProjects', 'canManageProjects')) return true;\n\n      // at the top level project resources are not passed here. We need to eval if any of the user permissions include a canViewProjects for this company\n      let canUseProjects = false;\n      this.projectAttributes.forEach(pa => {\n        if (pa.belongsTo('entity').id() !== this.entity?.id) return;\n        const attribute = pa.belongsTo('attribute').id();\n        if (['canViewProjects', 'canManageProjects'].includes(attribute)) canUseProjects = true;\n      });\n      if (canUseProjects) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          // if you are a project admin for the project you can view tasks\n          return this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canViewProjects', 'canManageProjects');\n      }\n      if (this.userIsClient) return true;\n      return false;\n    }\n    canManageTasks(resource) {\n      if (!this.entityCanUseBuildaPrice) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // if you have permission at entity level you can manage all tasks\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canManageTasks')) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            if (this.user?.includesClaimsAboutProject(modelId(resource), 'canManageTasks')) return true;\n            break;\n          }\n        case 'task':\n          {\n            // if you can manage the project or tasks you can manage the task\n            if (this.user?.includesClaimsAboutProject(\n            // this can be passed proxy objects so we need to use old school getters\n            (0, _object.get)(resource, 'project.id'), 'canManageTasks')) return true;\n            if (this.user?.includesClaimsAboutTask(modelId(resource), 'canManageTasks')) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canUseTasks(resource) {\n      if (!this.entityCanUseBuildaPrice) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // if you have permission at entity level you can view all tasks\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canViewTasks', 'canViewTaskTasks', 'canViewSumsTasks', 'canViewSubcontractorTasks', 'canViewPlantTasks', 'canViewMilestoneTasks', 'canViewBuildersWorkTasks', 'canViewInternalTasks', 'canManageTasks')) return true;\n      if (!resource) {\n        // check if we have permission on any projects\n        if (this.projectAttributes.some(pa => ['canViewTasks', 'canViewTaskTasks', 'canViewSumsTasks', 'canViewSubcontractorTasks', 'canViewPlantTasks', 'canViewMilestoneTasks', 'canViewBuildersWorkTasks', 'canViewInternalTasks', 'canManageTasks'].includes(pa.belongsTo('attribute').id()))) return true;\n\n        // check if we have permission on any tasks\n        if (this.taskAttributes.some(ta => ['canViewTasks', 'canViewTaskTasks', 'canViewSumsTasks', 'canViewSubcontractorTasks', 'canViewPlantTasks', 'canViewMilestoneTasks', 'canViewBuildersWorkTasks', 'canViewInternalTasks', 'canManageTasks'].includes(ta.belongsTo('attribute').id()))) return true;\n      }\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            // if you are a project admin for the project you can view tasks\n            if (this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canViewTasks', 'canViewTaskTasks', 'canViewSumsTasks', 'canViewSubcontractorTasks', 'canViewPlantTasks', 'canViewMilestoneTasks', 'canViewBuildersWorkTasks', 'canViewInternalTasks', 'canManageTasks')) return true;\n\n            // check if we have permission on any project tasks\n            if (this.taskAttributes.some(ta => {\n              const isForProject = resource.hasMany('tasks').ids().includes(ta.belongsTo('task').id());\n              return isForProject && ['canViewTasks', 'canViewTaskTasks', 'canViewSumsTasks', 'canViewSubcontractorTasks', 'canViewPlantTasks', 'canViewMilestoneTasks', 'canViewBuildersWorkTasks', 'canViewInternalTasks', 'canManageTasks'].includes(ta.belongsTo('attribute').id());\n            })) return true;\n            break;\n          }\n        case 'task':\n          {\n            const canViewProjects = this.user?.includesSomeClaimsAboutProject((0, _object.get)(resource, 'project.id'), 'canViewTasks', 'canViewTaskTasks', 'canViewSumsTasks', 'canViewSubcontractorTasks', 'canViewPlantTasks', 'canViewMilestoneTasks', 'canViewBuildersWorkTasks', 'canViewInternalTasks', 'canManageTasks');\n            // if you can view the project or tasks you can view the tasks\n            if (canViewProjects || this.user?.includesSomeClaimsAboutTask(modelId(resource), 'canManageTasks', 'canViewTaskTasks', 'canViewSumsTasks', 'canViewSubcontractorTasks', 'canViewPlantTasks', 'canViewMilestoneTasks', 'canViewBuildersWorkTasks', 'canViewInternalTasks', 'canViewTasks')) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canManageTaskBudgets(resource) {\n      if (!this.entityCanUseProjectFinancials) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canManageTaskBudgets')) return true;\n      switch (modelName(resource)) {\n        case 'task':\n          {\n            if (this.user?.includesClaimsAboutProject(\n            // this can be passed proxy objects so we need to use old school getters\n            (0, _object.get)(resource, 'project.id'), 'canManageTaskBudgets')) return true;\n            return this.user?.includesClaimsAboutTask(modelId(resource), 'canManageTaskBudgets');\n          }\n        case 'project':\n          return this.user?.includesClaimsAboutProject(modelId(resource), 'canManageTaskBudgets');\n      }\n      return false;\n    }\n    canManageTaskQuotes(resource) {\n      if (!this.entityCanUseProjectFinancials) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageTaskQuotes')) return true;\n      switch (modelName(resource)) {\n        case 'task':\n          {\n            if (this.user?.includesClaimsAboutProject(\n            // this can be passed proxy objects so we need to use old school getters\n            (0, _object.get)(resource, 'project.id'), 'canManageTaskQuotes')) return true;\n            return this.user?.includesClaimsAboutTask(modelId(resource), 'canManageTaskQuotes');\n          }\n        case 'project':\n          return this.user?.includesClaimsAboutProject(modelId(resource), 'canManageTaskQuotes');\n      }\n      return false;\n    }\n    canUseTaskBudgets(resource) {\n      if (!this.entityCanUseProjectFinancials) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canViewTaskBudgets', 'canManageTaskBudgets')) return true;\n      switch (modelName(resource)) {\n        case 'task':\n          {\n            if (this.user?.includesSomeClaimsAboutProject(\n            // this can be passed proxy objects so we need to use old school getters\n            (0, _object.get)(resource, 'project.id'), 'canViewTaskBudgets', 'canManageTaskBudgets')) return true;\n            return this.user?.includesSomeClaimsAboutTask(modelId(resource), 'canViewTaskBudgets', 'canManageTaskBudgets');\n          }\n        case 'project':\n          return this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canViewTaskBudgets', 'canManageTaskBudgets');\n      }\n      return false;\n    }\n    canUseTaskQuotes(resource) {\n      if (!this.entityCanUseProjectFinancials) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canViewTaskQuotes', 'canManageTaskQuotes')) return true;\n      switch (modelName(resource)) {\n        case 'task':\n          {\n            if (this.user?.includesSomeClaimsAboutProject(\n            // this can be passed proxy objects so we need to use old school getters\n            (0, _object.get)(resource, 'project.id'), 'canViewTaskQuotes', 'canManageTaskQuotes')) return true;\n            return this.user?.includesSomeClaimsAboutTask(modelId(resource), 'canViewTaskQuotes', 'canManageTaskQuotes');\n          }\n        case 'project':\n          return this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canViewTaskQuotes', 'canManageTaskQuotes');\n      }\n      return false;\n    }\n    canUseQuoteVersions(resource) {\n      if (!this.entityCanUseProjectFinancials) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canViewProjectQuoteVersions', 'canManageProjectQuoteVersions')) return true;\n      if (modelName(resource) === 'project' && this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canViewProjectQuoteVersions', 'canManageProjectQuoteVersions')) {\n        return true;\n      }\n      return false;\n    }\n    canManageQuoteVersions(resource) {\n      if (!this.entityCanUseProjectFinancials) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canManageProjectQuoteVersions')) return true;\n      if (modelName(resource) === 'project' && this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageProjectQuoteVersions')) {\n        return true;\n      }\n      return false;\n    }\n    canUseBudgetVersions(resource) {\n      if (!this.entityCanUseProjectFinancials) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canViewProjectBudgetVersions', 'canManageProjectBudgetVersions')) return true;\n      if (modelName(resource) === 'project' && this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canViewProjectBudgetVersions', 'canManageProjectBudgetVersions')) {\n        return true;\n      }\n      return false;\n    }\n    canManageBudgetVersions(resource) {\n      if (!this.entityCanUseProjectFinancials) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canManageProjectBudgetVersions')) return true;\n      if (modelName(resource) === 'project' && this.user?.includesClaimsAboutProject(modelId(resource), 'canManageProjectBudgetVersions')) {\n        return true;\n      }\n      return false;\n    }\n    canManageProgressVersions(resource) {\n      if (!this.entityCanUseProjectProgress) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageProjectProgressVersions', 'canManageEntity')) return true;\n      if (modelName(resource) === 'project' && this.user?.includesClaimsAboutProject(modelId(resource), 'canManageProjectProgressVersions')) {\n        return true;\n      }\n      return false;\n    }\n    canManageProfitMargin(resource) {\n      if (!this.entityCanUseProjectFinancials) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      switch (modelName(resource)) {\n        case 'entity':\n          return this.user?.includesClaimsAboutEntity(modelId(resource), 'canManageProjects', 'canManageTaskQuotes');\n        case 'project':\n          {\n            if (this.user?.includesClaimsAboutEntity((0, _object.get)(resource, 'entity.id'), 'canManageProjects', 'canManageTaskQuotes')) return true;\n            return this.user?.includesClaimsAboutProject(modelId(resource), 'canManageProjects', 'canManageTaskQuotes');\n          }\n        case 'task':\n          {\n            // check for project access first\n            if (this.user?.includesClaimsAboutProject(\n            // this can be passed proxy objects so we need to use old school getters\n            (0, _object.get)(resource, 'project.id'), 'canManageProjects', 'canManageTaskQuotes')) return true;\n            return this.user?.includesClaimsAboutTask(modelId(resource), 'canManageTasks', 'canManageTaskQuotes');\n          }\n      }\n      return false;\n    }\n    canUseEstimates(resource) {\n      if (!this.entityCanUseEstimates) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // check if you have permission at the entity level to manage estimates\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageEstimates', 'canViewEstimates')) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          // check if you can manage estimates for the project\n          return this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageEstimates', 'canViewEstimates');\n      }\n      return false;\n    }\n    canManageEstimates(resource) {\n      if (!this.entityCanUseEstimates) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // check if you have permission at the entity level to manage estimates\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canManageEstimates')) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          // check if you can manage estimates for the project\n          return this.user?.includesClaimsAboutProject(modelId(resource), 'canManageEstimates');\n      }\n      return false;\n    }\n    get canUseTimesheets() {\n      if (!this.entityCanUseTimesheets) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // handle worker pseudo user\n      // worker can always view the timesheets tab\n      if (this.userIsWorker) return true;\n      let canManageTimesheets = false;\n      let canSeeProjects = false;\n      let hasWorker = false;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canViewTimesheets', 'canManageTimesheets')) canManageTimesheets = true;\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canViewProjects')) canSeeProjects = true;\n      this.projectAttributes.forEach(wa => {\n        if (wa.belongsTo('entity').id() !== this.entity?.id) return;\n        if (wa.belongsTo('attribute').id() === 'canManageTimesheets') canManageTimesheets = true;\n        if (['canViewProjects', 'canManageProjects'].includes(wa.belongsTo('attribute').id())) canSeeProjects = true;\n      });\n      this.taskAttributes.forEach(wa => {\n        if (wa.belongsTo('entity').id() !== this.entity?.id) return;\n        if (wa.belongsTo('attribute').id() === 'canManageTimesheets') canManageTimesheets = true;\n      });\n      this.user?.hasMany('workerAttributes').value()?.forEach(wa => {\n        if (wa.belongsTo('entity').id() === this.entity?.id) hasWorker = true;\n      });\n      if (canManageTimesheets && canSeeProjects) return true;\n      if (hasWorker && canSeeProjects) return true;\n      return false;\n    }\n    get canUseReportBuilder() {\n      // some entities are always allowed to use report builder\n      const entityWhiteList = ['691d037bee15361ca3c55065'];\n\n      // hide the report builder from new companies\n      const reportBuilderDeprecationDate = new Date('2025-10-30');\n      const entityCreatedDate = this.entity?.dateCreated;\n      if (entityCreatedDate > reportBuilderDeprecationDate && !entityWhiteList.includes(this.entity?.id)) return false;\n      if (!this.entityCanUseTimesheets && !this.entityCanUseBills) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canManageEntity')) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canUseReportBuilderReport')) return true;\n      return false;\n    }\n    get canUseProjectProgressReports() {\n      if (this.userIsEntityAdmin) return true;\n      return this._canUseEntityProgressReports || this._canUseProjectProgressReports;\n    }\n    get canUseProjectQuoteReports() {\n      if (this.userIsEntityAdmin) return true;\n      return this._canUseEntityQuoteReports || this._canUseProjectQuoteReports;\n    }\n    get canUseProjectBudgetReports() {\n      if (this.userIsEntityAdmin) return true;\n      return this._canUseEntityBudgetReports || this._canUseProjectBudgetReports;\n    }\n    get canUseProjectCostReports() {\n      if (this.userIsEntityAdmin) return true;\n      return this._canUseEntityCostReports || this._canUseProjectCostReports;\n    }\n    get canUseProjectTasks() {\n      if (this.userIsEntityAdmin) return true;\n      return this._canUseEntityTasks || this._canUseProjectTasks;\n    }\n    get _canUseEntityTasks() {\n      return this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canViewTasks', 'canManageTasks');\n    }\n    get _canUseEntityProjects() {\n      return this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canViewProjects', 'canManageProjects');\n    }\n    get _canUseEntityBudgetReports() {\n      return this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageBudgetReports', 'canViewBudgetFinancialReports');\n    }\n    get _canUseEntityBudgetLabourHourReports() {\n      return this.user?.includesClaimsAboutEntity(this.entity?.id, 'canViewBudgetLabourHourReports');\n    }\n    get _canUseEntityCostReports() {\n      return this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageCostReports', 'canViewCostFinancialReports');\n    }\n    get _canUseEntityCostLabourHourReports() {\n      return this.user?.includesClaimsAboutEntity(this.entity?.id, 'canViewCostLabourHourReports');\n    }\n    get _canUseEntityProgressReports() {\n      return this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageProgressReports', 'canViewProgressReports');\n    }\n    get _canUseEntityQuoteReports() {\n      return this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageQuoteReports', 'canViewQuoteReports');\n    }\n    get _canUseEntityChargeupReports() {\n      return this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageChargeupReports', 'canViewChargeupReports');\n    }\n    get _canUseEntityInvoicingReports() {\n      return this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageInvoicingReports', 'canViewInvoicingReports');\n    }\n    get _canUseEntityClientReports() {\n      return this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageClientReports', 'canViewClientReports');\n    }\n    get _canUseProjectTasks() {\n      return this.projectAttributes.some(pa => ['canViewTasks', 'canManageTasks'].includes(pa.belongsTo('attribute').id()));\n    }\n    get _canUseProjectBudgetReports() {\n      return this.projectAttributes.some(pa => ['canManageBudgetReports', 'canViewBudgetFinancialReports'].includes(pa.belongsTo('attribute').id()));\n    }\n    get _canUseProjectBudgetLabourHourReports() {\n      return this.projectAttributes.some(pa => pa.belongsTo('attribute').id() === 'canViewBudgetLabourHourReports');\n    }\n    get _canUseProjectCostReports() {\n      return this.projectAttributes.some(pa => ['canManageCostReports', 'canViewCostFinancialReports'].includes(pa.belongsTo('attribute').id()));\n    }\n    get _canUseProjectCostLabourHourReports() {\n      return this.projectAttributes.some(pa => pa.belongsTo('attribute').id() === 'canViewCostLabourHourReports');\n    }\n    get _canUseProjectProgressReports() {\n      return this.projectAttributes.some(pa => ['canManageProgressReports', 'canViewProgressReports'].includes(pa.belongsTo('attribute').id()));\n    }\n    get _canUseProjectQuoteReports() {\n      return this.projectAttributes.some(pa => ['canManageQuoteReports', 'canViewQuoteReports'].includes(pa.belongsTo('attribute').id()));\n    }\n    get _canUseProjectChargeupReports() {\n      return this.projectAttributes.some(pa => ['canManageChargeupReports', 'canViewChargeupReports'].includes(pa.belongsTo('attribute').id()));\n    }\n    get _canUseProjectInvoicingReports() {\n      return this.projectAttributes.some(pa => ['canViewInvoicingReports', 'canManageInvoicingReports'].includes(pa.belongsTo('attribute').id()));\n    }\n    get canUseEntityWIPReport() {\n      if (!this.entityCanUseBuildaPrice) return false;\n      if (!this.entityCanUseWipReport || !this.entityCanUseInvoices) return false;\n      if (this.userIsEntityAdmin) return true;\n      const canUseEntityBudgetReports = this._canUseEntityBudgetReports;\n      const canUseEntityQuoteReports = this._canUseEntityQuoteReports;\n      const canUseEntityProgressReports = this._canUseEntityProgressReports;\n      const canUseEntityCostReports = this._canUseEntityCostReports;\n      const canUseEntityInvoicingReports = this._canUseEntityInvoicingReports;\n      if (canUseEntityBudgetReports && canUseEntityQuoteReports && canUseEntityProgressReports && canUseEntityCostReports && canUseEntityInvoicingReports) return true;\n      if ((this.projectAttributes.some(pa => ['canManageBudgetReports', 'canViewBudgetFinancialReports'].includes(pa.belongsTo('attribute').id())) || canUseEntityBudgetReports) && (this.projectAttributes.some(pa => ['canManageQuoteReports', 'canViewQuoteReports'].includes(pa.belongsTo('attribute').id())) || canUseEntityQuoteReports) && (this.projectAttributes.some(pa => ['canManageProgressReports', 'canViewProgressReports'].includes(pa.belongsTo('attribute').id())) || canUseEntityProgressReports) && (this.projectAttributes.some(pa => ['canManageCostReports', 'canViewCostFinancialReports'].includes(pa.belongsTo('attribute').id())) || canUseEntityCostReports) && (this.projectAttributes.some(pa => ['canManageInvoicingReports', 'canViewInvoicingReports'].includes(pa.belongsTo('attribute').id())) || canUseEntityInvoicingReports)) return true;\n      return false;\n    }\n    canUseProjectWIPReport(resource) {\n      if (!this.entityCanUseBuildaPrice) return false;\n      if (!this.entityCanUseWipReport) return false;\n      if (this.userIsEntityAdmin) return true;\n      const canUseEntityBudgetReports = this._canUseEntityBudgetReports;\n      const canUseEntityQuoteReports = this._canUseEntityQuoteReports;\n      const canUseEntityProgressReports = this._canUseEntityProgressReports;\n      const canUseEntityCostReports = this._canUseEntityCostReports;\n      if (canUseEntityBudgetReports && canUseEntityQuoteReports && canUseEntityProgressReports && canUseEntityCostReports) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            const canUseProjectBudgetReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageBudgetReports', 'canViewBudgetFinancialReports');\n            const canUseProjectQuoteReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageQuoteReports', 'canViewQuoteReports');\n            const canUseProjectProgressReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageProgressReports', 'canViewProgressReports');\n            const canUseProjectCostReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageCostReports', 'canViewCostFinancialReports');\n            if ((canUseEntityBudgetReports || canUseProjectBudgetReports) && (canUseEntityQuoteReports || canUseProjectQuoteReports) && (canUseEntityProgressReports || canUseProjectProgressReports) && (canUseEntityCostReports || canUseProjectCostReports)) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canUseProjectQuoteReport(resource) {\n      if (!this.entityCanUseQuoteReport) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      const canUseEntityQuoteReports = this._canUseEntityQuoteReports;\n      const canUseEntityChargeupReports = this._canUseEntityChargeupReports;\n      const canUseEntityTasks = this._canUseEntityTasks;\n      if (canUseEntityQuoteReports && canUseEntityChargeupReports && canUseEntityTasks) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            const canUseProjectQuoteReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageQuoteReports', 'canViewQuoteReports');\n            const canUseProjectChargeupReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageChargeupReports', 'canViewChargeupReports');\n            const canUseProjectTasks = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageTasks', 'canViewTasks');\n            if ((canUseEntityQuoteReports || canUseProjectQuoteReports) && (canUseEntityChargeupReports || canUseProjectChargeupReports) && (canUseEntityTasks || canUseProjectTasks)) return true;\n\n            // check if we have permission on any project tasks\n            let canUseTaskQuoteReports = canUseEntityQuoteReports || canUseProjectQuoteReports;\n            let canUseTaskChargeupReports = canUseEntityChargeupReports || canUseProjectChargeupReports;\n            let canUseTasks = canUseEntityTasks || canUseProjectTasks;\n            for (const ta of this.taskAttributes) {\n              const isForProject = resource.hasMany('tasks').ids().includes(ta.belongsTo('task').id());\n              if (!isForProject) continue;\n              if (!canUseTaskQuoteReports) canUseTaskQuoteReports = ['canManageQuoteReports', 'canViewQuoteReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTaskChargeupReports) canUseTaskChargeupReports = ['canManageChargeupReports', 'canViewChargeupReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTasks) canUseTasks = ['canManageTasks', 'canViewTasks'].includes(ta.belongsTo('attribute').id());\n            }\n            if (canUseTaskQuoteReports && canUseTaskChargeupReports && canUseTasks) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canUseQuoteReport(resource) {\n      if (!this.entityCanUseQuoteReport) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      const canUseEntityQuoteReports = this._canUseEntityQuoteReports;\n      const canUseEntityChargeupReports = this._canUseEntityChargeupReports;\n      const canUseEntityTasks = this._canUseEntityTasks;\n      if (canUseEntityQuoteReports && canUseEntityChargeupReports && canUseEntityTasks) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            const canUseProjectQuoteReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageQuoteReports', 'canViewQuoteReports');\n            const canUseProjectChargeupReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageChargeupReports', 'canViewChargeupReports');\n            const canUseProjectTasks = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageTasks', 'canViewTasks');\n            if ((canUseEntityQuoteReports || canUseProjectQuoteReports) && (canUseEntityChargeupReports || canUseProjectChargeupReports) && (canUseEntityTasks || canUseProjectTasks)) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canUseProjectCostReport(resource) {\n      if (!this.entityCanUseCostReport) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      const canUseEntityCostReports = this._canUseEntityCostReports;\n      const canUseEntityTasks = this._canUseEntityTasks;\n      const canUseEntityTimesheets = this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canViewTimesheets', 'canManageTimesheets');\n      const canUseEntityBills = this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canViewBills', 'canManageBills');\n      if (canUseEntityCostReports && canUseEntityTasks && canUseEntityTimesheets && canUseEntityBills) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            const canUseProjectCostReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageCostReports', 'canViewCostFinancialReports');\n            const canUseProjectTasks = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageTasks', 'canViewTasks');\n            const canUseProjectTimesheets = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageTimesheets', 'canViewTimesheets');\n            const canUseProjectBills = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageBills', 'canViewBills');\n            if ((canUseProjectCostReports || canUseEntityCostReports) && (canUseProjectTasks || canUseEntityTasks) && (canUseProjectTimesheets || canUseEntityTimesheets) && (canUseProjectBills || canUseEntityBills)) return true;\n\n            // check if we have permission on any project tasks\n            let canUseTaskCostReports = canUseProjectCostReports || canUseEntityCostReports;\n            let canUseTasks = canUseProjectTasks || canUseEntityTasks;\n            let canUseTaskTimesheets = canUseProjectTimesheets || canUseEntityTimesheets;\n            let canUseTaskBills = canUseProjectBills || canUseEntityBills;\n            for (const ta of this.taskAttributes) {\n              const isForProject = resource.hasMany('tasks').ids().includes(ta.belongsTo('task').id());\n              if (!isForProject) continue;\n              if (!canUseTaskCostReports) canUseTaskCostReports = ['canManageCostReports', 'canViewCostFinancialReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTasks) canUseTasks = ['canManageTasks', 'canViewTasks'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTaskTimesheets) canUseTaskTimesheets = ['canManageTimesheets', 'canViewTimesheets'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTaskBills) canUseTaskTimesheets = ['canManageBills', 'canViewBills'].includes(ta.belongsTo('attribute').id());\n            }\n            if (canUseTaskCostReports && canUseTasks && canUseTaskTimesheets && canUseTaskBills) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canUseCostReport(resource) {\n      if (!this.entityCanUseCostReport) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      const canUseEntityCostReports = this._canUseEntityCostReports;\n      const canUseEntityTasks = this._canUseEntityTasks;\n      const canUseEntityTimesheets = this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canViewTimesheets', 'canManageTimesheets');\n      const canUseEntityBills = this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canViewBills', 'canManageBills');\n      if (canUseEntityCostReports && canUseEntityTasks && canUseEntityTimesheets && canUseEntityBills) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            const canUseProjectCostReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageCostReports', 'canViewCostFinancialReports');\n            const canUseProjectTasks = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageTasks', 'canViewTasks');\n            const canUseProjectTimesheets = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageTimesheets', 'canViewTimesheets');\n            const canUseProjectBills = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageBills', 'canViewBills');\n            if ((canUseProjectCostReports || canUseEntityCostReports) && (canUseProjectTasks || canUseEntityTasks) && (canUseProjectTimesheets || canUseEntityTimesheets) && (canUseProjectBills || canUseEntityBills)) return true;\n            break;\n          }\n        case 'task':\n          {\n            const canUseProjectCostReports = this.user?.includesSomeClaimsAboutProject(modelId(resource.project), 'canManageCostReports', 'canViewCostFinancialReports');\n            const canUseProjectTasks = this.user?.includesSomeClaimsAboutProject(modelId(resource.project), 'canManageTasks', 'canViewTasks');\n            const canUseProjectTimesheets = this.user?.includesSomeClaimsAboutProject(modelId(resource.project), 'canManageTimesheets', 'canViewTimesheets');\n            const canUseProjectBills = this.user?.includesSomeClaimsAboutProject(modelId(resource.project), 'canManageBills', 'canViewBills');\n            const canUseTaskCostReports = this.user?.includesSomeClaimsAboutTask(modelId(resource.project), 'canManageCostReports', 'canViewCostFinancialReports');\n            const canUseTaskTasks = this.user?.includesSomeClaimsAboutTask(modelId(resource.project), 'canManageTasks', 'canViewTasks');\n            const canUseTaskTimesheets = this.user?.includesSomeClaimsAboutTask(modelId(resource.project), 'canManageTimesheets', 'canViewTimesheets');\n            const canUseTaskBills = this.user?.includesSomeClaimsAboutTask(modelId(resource.project), 'canManageBills', 'canViewBills');\n            if ((canUseTaskCostReports || canUseProjectCostReports || canUseEntityCostReports) && (canUseTaskTasks || canUseProjectTasks || canUseEntityTasks) && (canUseTaskTimesheets || canUseProjectTimesheets || canUseEntityTimesheets) && (canUseTaskBills || canUseProjectBills || canUseEntityBills)) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canUseProjectBudgetReport(resource) {\n      if (!this.entityCanUseBudgetReport) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      const canUseEntityCostReports = this._canUseEntityCostReports;\n      const canUseEntityBudgetReports = this._canUseEntityBudgetReports;\n      const canUseEntityTasks = this._canUseEntityTasks;\n      if (canUseEntityCostReports && canUseEntityBudgetReports && canUseEntityTasks) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            const canUseProjectCostReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageCostReports', 'canViewCostFinancialReports');\n            const canUseProjectBudgetReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageBudgetReports', 'canViewBudgetFinancialReports');\n            const canUseProjectTasks = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageTasks', 'canViewTasks');\n            if ((canUseProjectCostReports || canUseEntityCostReports) && (canUseProjectBudgetReports || canUseEntityBudgetReports) && (canUseProjectTasks || canUseEntityTasks)) return true;\n\n            // check if we have permission on any project tasks\n            let canUseTaskCostReports = canUseProjectCostReports || canUseEntityCostReports;\n            let canUseTaskBudgetReports = canUseProjectBudgetReports || canUseEntityBudgetReports;\n            let canUseTasks = canUseProjectTasks || canUseEntityTasks;\n            for (const ta of this.taskAttributes) {\n              const isForProject = resource.hasMany('tasks').ids().includes(ta.belongsTo('task').id());\n              if (!isForProject) continue;\n              if (!canUseTaskCostReports) canUseTaskCostReports = ['canManageCostReports', 'canViewCostFinancialReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTaskBudgetReports) canUseTaskBudgetReports = ['canManageBudgetReports', 'canViewBudgetFinancialReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTasks) canUseTasks = ['canManageTasks', 'canViewTasks'].includes(ta.belongsTo('attribute').id());\n            }\n            if (canUseTaskCostReports && canUseTaskBudgetReports && canUseTasks) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canUseBudgetReport(resource) {\n      if (!this.entityCanUseBudgetReport) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      const canUseEntityCostReports = this._canUseEntityCostReports;\n      const canUseEntityBudgetReports = this._canUseEntityBudgetReports;\n      const canUseEntityTasks = this._canUseEntityTasks;\n      if (canUseEntityCostReports && canUseEntityBudgetReports && canUseEntityTasks) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            const canUseProjectCostReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageCostReports', 'canViewCostFinancialReports');\n            const canUseProjectBudgetReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageBudgetReports', 'canViewBudgetFinancialReports');\n            const canUseProjectTasks = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageTasks', 'canViewTasks');\n            if ((canUseProjectCostReports || canUseEntityCostReports) && (canUseProjectBudgetReports || canUseEntityBudgetReports) && (canUseProjectTasks || canUseEntityTasks)) return true;\n            break;\n          }\n        case 'task':\n          {\n            const canUseProjectCostReports = this.user?.includesSomeClaimsAboutProject(modelId(resource.project), 'canManageCostReports', 'canViewCostFinancialReports');\n            const canUseProjectBudgetReports = this.user?.includesSomeClaimsAboutProject(modelId(resource.project), 'canManageBudgetReports', 'canViewBudgetFinancialReports');\n            const canUseProjectTasks = this.user?.includesSomeClaimsAboutProject(modelId(resource.project), 'canManageTasks', 'canViewTasks');\n            const canUseTaskCostReports = this.user?.includesSomeClaimsAboutTask(modelId(resource), 'canManageCostReports', 'canViewCostFinancialReports');\n            const canUseTaskBudgetReports = this.user?.includesSomeClaimsAboutTask(modelId(resource), 'canManageBudgetReports', 'canViewBudgetFinancialReports');\n            const canUseTaskTasks = this.user?.includesSomeClaimsAboutTask(modelId(resource), 'canManageTasks', 'canViewTasks');\n            if ((canUseTaskCostReports || canUseProjectCostReports || canUseEntityCostReports) && (canUseTaskBudgetReports || canUseProjectBudgetReports || canUseEntityBudgetReports) && (canUseTaskTasks || canUseProjectTasks || canUseEntityTasks)) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canUseProjectClientReport(resource) {\n      if (!this.entityCanUseClientReports) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      const canUseEntityQuoteReports = this._canUseEntityQuoteReports;\n      const canUseEntityProgressReports = this._canUseEntityProgressReports;\n      const canUseEntityChargeupReports = this._canUseEntityChargeupReports;\n      const canUseEntityInvoicingReports = this._canUseEntityInvoicingReports;\n      const canUseEntityClientReports = this._canUseEntityClientReports;\n      if (canUseEntityClientReports || canUseEntityQuoteReports && canUseEntityProgressReports && canUseEntityChargeupReports && canUseEntityInvoicingReports) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            const canUseProjectQuoteReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageQuoteReports', 'canViewQuoteReports');\n            const canUseProjectProgressReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageProgressReports', 'canViewProgressReports');\n            const canUseProjectChargeupReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageChargeupReports', 'canViewChargeupReports');\n            const canUseProjectInvoicingReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageInvoicingReports', 'canViewInvoicingReports');\n            const canUseProjectClientReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageClientReports', 'canViewClientReports');\n            if (canUseProjectClientReports || (canUseEntityQuoteReports || canUseProjectQuoteReports) && (canUseEntityProgressReports || canUseProjectProgressReports) && (canUseEntityChargeupReports || canUseProjectChargeupReports) && (canUseEntityInvoicingReports || canUseProjectInvoicingReports)) return true;\n\n            // check if a single task grants either the client-report claim\n            // directly, or all four base report claims together — a user with,\n            // say, quote access on one task and progress access on a different\n            // task should not qualify just because both flags ended up true\n            const projectTaskIds = new Set(resource.hasMany('tasks').ids());\n            const attributeIdsByTask = new Map();\n            for (const ta of this.taskAttributes) {\n              const taskId = ta.belongsTo('task').id();\n              if (!projectTaskIds.has(taskId)) continue;\n              if (!attributeIdsByTask.has(taskId)) {\n                attributeIdsByTask.set(taskId, new Set());\n              }\n              attributeIdsByTask.get(taskId).add(ta.belongsTo('attribute').id());\n            }\n            for (const attributeIds of attributeIdsByTask.values()) {\n              const taskHasClientReports = canUseEntityClientReports || canUseProjectClientReports || attributeIds.has('canManageClientReports') || attributeIds.has('canViewClientReports');\n              const taskHasQuoteReports = canUseEntityQuoteReports || canUseProjectQuoteReports || attributeIds.has('canManageQuoteReports') || attributeIds.has('canViewQuoteReports');\n              const taskHasProgressReports = canUseEntityProgressReports || canUseProjectProgressReports || attributeIds.has('canManageProgressReports') || attributeIds.has('canViewProgressReports');\n              const taskHasChargeupReports = canUseEntityChargeupReports || canUseProjectChargeupReports || attributeIds.has('canManageChargeupReports') || attributeIds.has('canViewChargeupReports');\n              const taskHasInvoicingReports = canUseEntityInvoicingReports || canUseProjectInvoicingReports || attributeIds.has('canManageInvoicingReports') || attributeIds.has('canViewInvoicingReports');\n              if (taskHasClientReports || taskHasQuoteReports && taskHasProgressReports && taskHasChargeupReports && taskHasInvoicingReports) return true;\n            }\n            break;\n          }\n        case 'task':\n          {\n            const canUseProjectQuoteReports = this.user?.includesSomeClaimsAboutProject(modelId(resource.project), 'canManageQuoteReports', 'canViewQuoteReports');\n            const canUseProjectProgressReports = this.user?.includesSomeClaimsAboutProject(modelId(resource.project), 'canManageProgressReports', 'canViewProgressReports');\n            const canUseProjectChargeupReports = this.user?.includesSomeClaimsAboutProject(modelId(resource.project), 'canManageChargeupReports', 'canViewChargeupReports');\n            const canUseProjectInvoicingReports = this.user?.includesSomeClaimsAboutProject(modelId(resource.project), 'canManageInvoicingReports', 'canViewInvoicingReports');\n            const canUseProjectClientReports = this.user?.includesSomeClaimsAboutProject(modelId(resource.project), 'canManageClientReports', 'canViewClientReports');\n            const canUseTaskQuoteReports = this.user?.includesSomeClaimsAboutTask(modelId(resource), 'canManageQuoteReports', 'canViewQuoteReports');\n            const canUseTaskProgressReports = this.user?.includesSomeClaimsAboutTask(modelId(resource), 'canManageProgressReports', 'canViewProgressReports');\n            const canUseTaskChargeupReports = this.user?.includesSomeClaimsAboutTask(modelId(resource), 'canManageChargeupReports', 'canViewChargeupReports');\n            const canUseTaskInvoicingReports = this.user?.includesSomeClaimsAboutTask(modelId(resource), 'canManageInvoicingReports', 'canViewInvoicingReports');\n            const canUseTaskClientReports = this.user?.includesSomeClaimsAboutTask(modelId(resource), 'canManageClientReports', 'canViewClientReports');\n            if (canUseTaskClientReports || canUseProjectClientReports || (canUseTaskQuoteReports || canUseProjectQuoteReports || canUseEntityQuoteReports) && (canUseTaskProgressReports || canUseProjectProgressReports || canUseEntityProgressReports) && (canUseTaskChargeupReports || canUseProjectChargeupReports || canUseEntityChargeupReports) && (canUseTaskInvoicingReports || canUseProjectInvoicingReports || canUseEntityInvoicingReports)) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canUseInvoicingReport(resource) {\n      if (!this.entityCanUseBudgetReport) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      const canUseEntityInvoicingReports = this._canUseEntityInvoicingReports;\n      const canUseEntityTasks = this._canUseEntityTasks;\n      if (canUseEntityInvoicingReports && canUseEntityTasks) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            const canUseProjectInvoicingReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageInvoicingReports', 'canViewInvoicingReports');\n            const canUseProjectTasks = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageTasks', 'canViewTasks');\n            if ((canUseProjectInvoicingReports || canUseEntityInvoicingReports) && (canUseProjectTasks || canUseEntityTasks)) return true;\n            break;\n          }\n        case 'task':\n          {\n            const canUseProjectInvoicingReports = this.user?.includesSomeClaimsAboutProject(modelId(resource.project), 'canManageInvoicingReports', 'canViewInvoicingReports');\n            const canUseProjectTasks = this.user?.includesSomeClaimsAboutProject(modelId(resource.project), 'canManageTasks', 'canViewTasks');\n            const canUseTaskInvoicingReports = this.user?.includesSomeClaimsAboutTask(modelId(resource), 'canManageInvoicingReports', 'canViewInvoicingReports');\n            const canUseTaskTasks = this.user?.includesSomeClaimsAboutTask(modelId(resource), 'canManageTasks', 'canViewTasks');\n            if ((canUseTaskInvoicingReports || canUseProjectInvoicingReports || canUseEntityInvoicingReports) && (canUseTaskTasks || canUseProjectTasks || canUseEntityTasks)) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    get canUseEntityForecastReport() {\n      if (!this.entityCanUseForecastReport) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      if ((this._canUseEntityCostReports || this._canUseProjectCostReports) && (this._canUseEntityBudgetReports || this._canUseProjectBudgetReports) && (this._canUseEntityProgressReports || this._canUseProjectProgressReports) && (this._canUseEntityQuoteReports || this._canUseProjectQuoteReports)) return true;\n      return false;\n    }\n    canUseProjectForecastReport(resource) {\n      if (!this.entityCanUseForecastReport) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      const canUseEntityCostReports = this._canUseEntityCostReports;\n      const canUseEntityBudgetReports = this._canUseEntityBudgetReports;\n      const canUseEntityProgressReports = this._canUseEntityProgressReports;\n      const canUseEntityQuoteReports = this._canUseEntityQuoteReports;\n      const canUseEntityTasks = this._canUseEntityTasks;\n      if (canUseEntityCostReports && canUseEntityBudgetReports && canUseEntityProgressReports && canUseEntityQuoteReports && canUseEntityTasks) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            const canUseProjectCostReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageCostReports', 'canViewCostFinancialReports');\n            const canUseProjectBudgetReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageBudgetReports', 'canViewBudgetFinancialReports');\n            const canUseProjectProgressReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageProgressReports', 'canViewProgressReports');\n            const canUseProjectQuoteReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageQuoteReports', 'canViewQuoteReports');\n            const canUseProjectTasks = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageTasks', 'canViewTasks');\n            if ((canUseProjectCostReports || canUseEntityCostReports) && (canUseProjectBudgetReports || canUseEntityBudgetReports) && (canUseProjectProgressReports || canUseEntityProgressReports) && (canUseProjectQuoteReports || canUseEntityQuoteReports) && (canUseProjectTasks || canUseEntityTasks)) return true;\n\n            // check if we have permission on any project tasks\n            let canUseTaskCostReports = canUseProjectCostReports || canUseEntityCostReports;\n            let canUseTaskBudgetReports = canUseProjectBudgetReports || canUseEntityBudgetReports;\n            let canUseTaskProgressReports = canUseProjectProgressReports || canUseEntityProgressReports;\n            let canUseTaskQuoteReports = canUseProjectQuoteReports || canUseEntityQuoteReports;\n            let canUseTasks = canUseProjectTasks || canUseEntityTasks;\n            for (const ta of this.taskAttributes) {\n              const isForProject = resource.hasMany('tasks').ids().includes(ta.belongsTo('task').id());\n              if (!isForProject) continue;\n              if (!canUseTaskCostReports) canUseTaskCostReports = ['canManageCostReports', 'canViewCostFinancialReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTaskBudgetReports) canUseTaskBudgetReports = ['canManageBudgetReports', 'canViewBudgetFinancialReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTaskProgressReports) canUseTaskProgressReports = ['canManageProgressReports', 'canViewProgressReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTaskQuoteReports) canUseTaskQuoteReports = ['canManageQuoteReports', 'canViewQuoteReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTasks) canUseTasks = ['canManageTasks', 'canViewTasks'].includes(ta.belongsTo('attribute').id());\n            }\n            if (canUseTaskCostReports && canUseTaskBudgetReports && canUseTaskProgressReports && canUseTaskQuoteReports && canUseTasks) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canUseForecastReport(resource) {\n      if (!this.entityCanUseForecastReport) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      const canUseEntityCostReports = this._canUseEntityCostReports;\n      const canUseEntityBudgetReports = this._canUseEntityBudgetReports;\n      const canUseEntityProgressReports = this._canUseEntityProgressReports;\n      const canUseEntityQuoteReports = this._canUseEntityQuoteReports;\n      const canUseEntityTasks = this._canUseEntityTasks;\n      if (canUseEntityCostReports && canUseEntityBudgetReports && canUseEntityProgressReports && canUseEntityQuoteReports && canUseEntityTasks) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            const canUseProjectCostReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageCostReports', 'canViewCostFinancialReports');\n            const canUseProjectBudgetReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageBudgetReports', 'canViewBudgetFinancialReports');\n            const canUseProjectProgressReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageProgressReports', 'canViewProgressReports');\n            const canUseProjectQuoteReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageQuoteReports', 'canViewQuoteReports');\n            const canUseProjectTasks = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageTasks', 'canViewTasks');\n            if ((canUseProjectCostReports || canUseEntityCostReports) && (canUseProjectBudgetReports || canUseEntityBudgetReports) && (canUseProjectProgressReports || canUseEntityProgressReports) && (canUseProjectQuoteReports || canUseEntityQuoteReports) && (canUseProjectTasks || canUseEntityTasks)) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    get canUseEntityProfitMarginReport() {\n      if (!this.entityCanUseProfitMarginsReport) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      if ((this._canUseEntityCostReports || this._canUseProjectCostReports) && (this._canUseEntityBudgetReports || this._canUseProjectBudgetReports) && (this._canUseEntityProgressReports || this._canUseProjectProgressReports) && (this._canUseEntityChargeupReports || this._canUseProjectChargeupReports)) return true;\n      return false;\n    }\n    get canUseEntityLabourHourReport() {\n      if (!this.entityCanUseLabourHoursReport) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      const canUseLabourHourPermissions = (this._canUseEntityCostLabourHourReports || this._canUseProjectCostLabourHourReports) && (this._canUseEntityBudgetLabourHourReports || this._canUseProjectBudgetLabourHourReports) && (this._canUseEntityProgressReports || this._canUseProjectProgressReports);\n      if (canUseLabourHourPermissions || (this._canUseEntityCostReports || this._canUseProjectCostReports) && (this._canUseEntityBudgetReports || this._canUseProjectBudgetReports) && (this._canUseEntityProgressReports || this._canUseProjectProgressReports)) return true;\n      return false;\n    }\n    canUseProjectProfitMarginReport(resource) {\n      if (!this.entityCanUseProfitMarginsReport) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      const canUseEntityCostReports = this._canUseEntityCostReports;\n      const canUseEntityBudgetReports = this._canUseEntityBudgetReports;\n      const canUseEntityProgressReports = this._canUseEntityProgressReports;\n      const canUseEntityChargeupReports = this._canUseEntityChargeupReports;\n      const canUseEntityTasks = this._canUseEntityTasks;\n      if (canUseEntityCostReports && canUseEntityBudgetReports && canUseEntityProgressReports && canUseEntityChargeupReports && canUseEntityTasks) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            const canUseProjectCostReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageCostReports', 'canViewCostFinancialReports');\n            const canUseProjectBudgetReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageBudgetReports', 'canViewBudgetFinancialReports');\n            const canUseProjectProgressReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageProgressReports', 'canViewProgressReports');\n            const canUseProjectChargeupReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageChargeupReports', 'canViewChargeupReports');\n            const canUseProjectTasks = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageTasks', 'canViewTasks');\n            if ((canUseEntityCostReports || canUseProjectCostReports) && (canUseEntityBudgetReports || canUseProjectBudgetReports) && (canUseEntityProgressReports || canUseProjectProgressReports) && (canUseEntityChargeupReports || canUseProjectChargeupReports) && (canUseEntityTasks || canUseProjectTasks)) return true;\n\n            // check if we have permission on any project tasks\n            let canUseTaskCostReports = canUseProjectCostReports || canUseEntityCostReports;\n            let canUseTaskBudgetReports = canUseProjectBudgetReports || canUseEntityBudgetReports;\n            let canUseTaskProgressReports = canUseProjectProgressReports || canUseEntityProgressReports;\n            let canUseTaskChargeupReports = canUseProjectChargeupReports || canUseEntityChargeupReports;\n            let canUseTasks = canUseProjectTasks || canUseEntityTasks;\n            for (const ta of this.taskAttributes) {\n              const isForProject = resource.hasMany('tasks').ids().includes(ta.belongsTo('task').id());\n              if (!isForProject) continue;\n              if (!canUseTaskCostReports) canUseTaskCostReports = ['canManageCostReports', 'canViewCostFinancialReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTaskBudgetReports) canUseTaskBudgetReports = ['canManageBudgetReports', 'canViewBudgetFinancialReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTaskProgressReports) canUseTaskProgressReports = ['canManageProgressReports', 'canViewProgressReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTaskChargeupReports) canUseTaskChargeupReports = ['canManageChargeupReports', 'canViewChargeupReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTasks) canUseTasks = ['canManageTasks', 'canViewTasks'].includes(ta.belongsTo('attribute').id());\n            }\n            if (canUseTaskCostReports && canUseTaskBudgetReports && canUseTaskProgressReports && canUseTaskChargeupReports && canUseTasks) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canUseProfitMarginReport(resource) {\n      if (!this.entityCanUseProfitMarginsReport) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      const canUseEntityCostReports = this._canUseEntityCostReports;\n      const canUseEntityBudgetReports = this._canUseEntityBudgetReports;\n      const canUseEntityProgressReports = this._canUseEntityProgressReports;\n      const canUseEntityChargeupReports = this._canUseEntityChargeupReports;\n      const canUseEntityTasks = this._canUSeEntityTasks;\n      if (canUseEntityCostReports && canUseEntityBudgetReports && canUseEntityProgressReports && canUseEntityChargeupReports && canUseEntityTasks) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            const canUseProjectCostReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageCostReports', 'canViewCostFinancialReports');\n            const canUseProjectBudgetReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageBudgetReports', 'canViewBudgetFinancialReports');\n            const canUseProjectProgressReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageProgressReports', 'canViewProgressReports');\n            const canUseProjectChargeupReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageChargeupReports', 'canViewChargeupReports');\n            const canUseProjectTasks = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageTasks', 'canViewTasks');\n            if ((canUseEntityCostReports || canUseProjectCostReports) && (canUseEntityBudgetReports || canUseProjectBudgetReports) && (canUseEntityProgressReports || canUseProjectProgressReports) && (canUseEntityChargeupReports || canUseProjectChargeupReports) && (canUseEntityTasks || canUseProjectTasks)) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canUseProjectChargeupReport(resource) {\n      if (!this.entityCanUseChargeupReport) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      const canUseEntityQuoteReports = this._canUseEntityQuoteReports;\n      const canUseEntityProgressReports = this._canUseEntityProgressReports;\n      const canUseEntityChargeupReports = this._canUseEntityChargeupReports;\n      const canUseEntityTasks = this._canUseEntityTasks;\n      if (canUseEntityQuoteReports && canUseEntityProgressReports && canUseEntityChargeupReports && canUseEntityTasks) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            const canUseProjectQuoteReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageQuoteReports', 'canViewQuoteReports');\n            const canUseProjectProgressReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageProgressReports', 'canViewProgressReports');\n            const canUseProjectChargeupReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageChargeupReports', 'canViewChargeupReports');\n            const canUseProjectTasks = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageTasks', 'canViewTasks');\n            if ((canUseEntityQuoteReports || canUseProjectQuoteReports) && (canUseEntityProgressReports || canUseProjectProgressReports) && (canUseEntityChargeupReports || canUseProjectChargeupReports) && (canUseEntityTasks || canUseProjectTasks)) return true;\n\n            // check if we have permission on any project tasks\n            let canUseTaskQuoteReports = canUseProjectQuoteReports || canUseEntityQuoteReports;\n            let canUseTaskProgressReports = canUseProjectProgressReports || canUseEntityProgressReports;\n            let canUseTaskChargeupReports = canUseProjectChargeupReports || canUseEntityChargeupReports;\n            let canUseTasks = canUseProjectTasks || canUseEntityTasks;\n            for (const ta of this.taskAttributes) {\n              const isForProject = resource.hasMany('tasks').ids().includes(ta.belongsTo('task').id());\n              if (!isForProject) continue;\n              if (!canUseTaskQuoteReports) canUseTaskQuoteReports = ['canManageQuoteReports', 'canViewQuoteReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTaskProgressReports) canUseTaskProgressReports = ['canManageProgressReports', 'canViewProgressReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTaskChargeupReports) canUseTaskChargeupReports = ['canManageChargeupReports', 'canViewChargeupReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTasks) canUseTasks = ['canManageTasks', 'canViewTasks'].includes(ta.belongsTo('attribute').id());\n            }\n            if (canUseTaskQuoteReports && canUseTaskProgressReports && canUseTaskChargeupReports && canUseTasks) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canUseChargeupReport(resource) {\n      if (!this.entityCanUseChargeupReport) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      const canUseEntityQuoteReports = this._canUseEntityQuoteReports;\n      const canUseEntityProgressReports = this._canUseEntityProgressReports;\n      const canUseEntityChargeupReports = this._canUseEntityChargeupReports;\n      const canUseEntityTasks = this._canUseEntityTasks;\n      if (canUseEntityQuoteReports && canUseEntityProgressReports && canUseEntityChargeupReports && canUseEntityTasks) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            const canUseProjectQuoteReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageQuoteReports', 'canViewQuoteReports');\n            const canUseProjectProgressReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageProgressReports', 'canViewProgressReports');\n            const canUseProjectChargeupReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageChargeupReports', 'canViewChargeupReports');\n            const canUseProjectTasks = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageTasks', 'canViewTasks');\n            if ((canUseEntityQuoteReports || canUseProjectQuoteReports) && (canUseEntityProgressReports || canUseProjectProgressReports) && (canUseEntityChargeupReports || canUseProjectChargeupReports) && (canUseEntityTasks || canUseProjectTasks)) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    get canUseEntityPositionReport() {\n      if (!this.entityCanUsePositionReport) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      if ((this._canUseEntityCostReports || this._canUseProjectCostReports) && (this._canUseEntityBudgetReports || this._canUseProjectBudgetReports) && (this._canUseEntityProgressReports || this._canUseProjectProgressReports) && (this._canUseEntityChargeupReports || this._canUseProjectChargeupReports) && (this._canUseEntityQuoteReports || this._canUseProjectQuoteReports)) return true;\n      return false;\n    }\n    canUseDashboardReport() {\n      if (!this.entityCanUseDashboards) return false;\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      if (\n      //Forecast used\n      this.useProjectProgressReports ||\n      //Current position\n      this.canUseProjectQuoteReports && this.canUseProjectQuoteReports && this.canUseProjectCostReports ||\n      //Forecast position\n      this.canUseProjectBudgetReports ||\n      //Recent timesheets\n      this.canUseTimesheets ||\n      //Recent bills\n      this.canUseBills ||\n      //Recent tasks\n      this.canUseProjectTasks ||\n      //Recent projects\n      this.canUseProjects() ||\n      //Recent purchase orders\n      this.canUsePurchaseOrders() ||\n      //Recent Invoices\n      this.canUseInvoices()) return true;\n      return false;\n    }\n    canUseProjectPositionReport(resource) {\n      if (!this.entityCanUsePositionReport) return false;\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      const canUseEntityCostReports = this._canUseEntityCostReports;\n      const canUseEntityBudgetReports = this._canUseEntityBudgetReports;\n      const canUseEntityProgressReports = this._canUseEntityProgressReports;\n      const canUseEntityChargeupReports = this._canUseEntityChargeupReports;\n      const canUseEntityQuoteReports = this._canUseEntityQuoteReports;\n      const canUseEntityTasks = this._canUseEntityTasks;\n      if (canUseEntityCostReports && canUseEntityBudgetReports && canUseEntityProgressReports && canUseEntityChargeupReports && canUseEntityQuoteReports && canUseEntityTasks) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            const canUseProjectCostReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageCostReports', 'canViewCostFinancialReports');\n            const canUseProjectBudgetReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageBudgetReports', 'canViewBudgetFinancialReports');\n            const canUseProjectProgressReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageProgressReports', 'canViewProgressReports');\n            const canUseProjectChargeupReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageChargeupReports', 'canViewChargeupReports');\n            const canUseProjectQuoteReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageQuoteReports', 'canViewQuoteReports');\n            const canUseProjectTasks = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageTasks', 'canViewTasks');\n            if ((canUseEntityCostReports || canUseProjectCostReports) && (canUseEntityBudgetReports || canUseProjectBudgetReports) && (canUseEntityProgressReports || canUseProjectProgressReports) && (canUseEntityChargeupReports || canUseProjectChargeupReports) && (canUseEntityQuoteReports || canUseProjectQuoteReports) && (canUseEntityTasks || canUseProjectTasks)) return true;\n\n            // check if we have permission on any project tasks\n            let canUseTaskCostReports = canUseProjectCostReports || canUseEntityCostReports;\n            let canUseTaskBudgetReports = canUseProjectBudgetReports || canUseEntityBudgetReports;\n            let canUseTaskProgressReports = canUseProjectProgressReports || canUseEntityProgressReports;\n            let canUseTaskChargeupReports = canUseProjectChargeupReports || canUseEntityChargeupReports;\n            let canUseTaskQuoteReports = canUseProjectQuoteReports || canUseEntityQuoteReports;\n            let canUseTasks = canUseProjectTasks || canUseEntityTasks;\n            for (const ta of this.taskAttributes) {\n              const isForProject = resource.hasMany('tasks').ids().includes(ta.belongsTo('task').id());\n              if (!isForProject) continue;\n              if (!canUseTaskCostReports) canUseTaskCostReports = ['canManageCostReports', 'canViewCostFinancialReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTaskBudgetReports) canUseTaskBudgetReports = ['canManageBudgetReports', 'canViewBudgetFinancialReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTaskProgressReports) canUseTaskProgressReports = ['canManageProgressReports', 'canViewProgressReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTaskChargeupReports) canUseTaskChargeupReports = ['canManageChargeupReports', 'canViewChargeupReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTaskQuoteReports) canUseTaskQuoteReports = ['canManageQuoteReports', 'canViewQuoteReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTasks) canUseTasks = ['canManageTasks', 'canViewTasks'].includes(ta.belongsTo('attribute').id());\n            }\n            if (canUseTaskCostReports && canUseTaskBudgetReports && canUseTaskProgressReports && canUseTaskChargeupReports && canUseTaskQuoteReports && canUseTasks) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canUsePositionReport(resource) {\n      if (!this.entityCanUsePositionReport) return false;\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      const canUseEntityCostReports = this._canUseEntityCostReports;\n      const canUseEntityBudgetReports = this._canUseEntityBudgetReports;\n      const canUseEntityProgressReports = this._canUseEntityProgressReports;\n      const canUseEntityChargeupReports = this._canUseEntityChargeupReports;\n      const canUseEntityQuoteReports = this._canUseEntityQuoteReports;\n      const canUseEntityTasks = this._canUseEntityTasks;\n      if (canUseEntityCostReports && canUseEntityBudgetReports && canUseEntityProgressReports && canUseEntityChargeupReports && canUseEntityQuoteReports && canUseEntityTasks) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            const canUseProjectCostReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageCostReports', 'canViewCostFinancialReports');\n            const canUseProjectBudgetReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageBudgetReports', 'canViewBudgetFinancialReports');\n            const canUseProjectProgressReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageProgressReports', 'canViewProgressReports');\n            const canUseProjectChargeupReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageChargeupReports', 'canViewChargeupReports');\n            const canUseProjectQuoteReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageQuoteReports', 'canViewQuoteReports');\n            const canUseProjectTasks = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageTasks', 'canViewTasks');\n            if ((canUseEntityCostReports || canUseProjectCostReports) && (canUseEntityBudgetReports || canUseProjectBudgetReports) && (canUseEntityProgressReports || canUseProjectProgressReports) && (canUseEntityChargeupReports || canUseProjectChargeupReports) && (canUseEntityQuoteReports || canUseProjectQuoteReports) && (canUseEntityTasks || canUseProjectTasks)) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canUseProjectLabourHourReport(resource) {\n      if (!this.entityCanUseLabourHoursReport) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      const canUseEntityCostReports = this._canUseEntityCostReports;\n      const canUseEntityBudgetReports = this._canUseEntityBudgetReports;\n      const canUseEntityProgressReports = this._canUseEntityProgressReports;\n      const canUseEntityTasks = this._canUseEntityTasks;\n      const canUseEntityLabourHourReports = this._canUseEntityCostLabourHourReports && this._canUseEntityBudgetLabourHourReports && canUseEntityProgressReports;\n      if (canUseEntityLabourHourReports) return true;\n      if (canUseEntityCostReports && canUseEntityBudgetReports && canUseEntityProgressReports && canUseEntityTasks) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            const canUseProjectCostLabourHourReports = this.user?.includesClaimsAboutProject(modelId(resource), 'canViewCostLabourHourReports');\n            const canUseProjectBudgetLabourHourReports = this.user?.includesClaimsAboutProject(modelId(resource), 'canViewBudgetLabourHourReports');\n            const canUseProjectCostReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageCostReports', 'canViewCostFinancialReports');\n            const canUseProjectBudgetReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageBudgetReports', 'canViewBudgetFinancialReports');\n            const canUseProjectProgressReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageProgressReports', 'canViewProgressReports');\n            const canUseProjectTasks = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageTasks', 'canViewTasks');\n            if ((this._canUseEntityCostLabourHourReports || canUseProjectCostLabourHourReports) && (this._canUseEntityBudgetLabourHourReports || canUseProjectBudgetLabourHourReports) && (canUseEntityProgressReports || canUseProjectProgressReports)) return true;\n            if ((canUseEntityCostReports || canUseProjectCostReports) && (canUseEntityBudgetReports || canUseProjectBudgetReports) && (canUseEntityProgressReports || canUseProjectProgressReports) && (canUseEntityTasks || canUseProjectTasks)) return true;\n\n            // check if we have permission on any project tasks\n            let canUseTaskCostReports = canUseProjectCostReports || canUseEntityCostReports;\n            let canUseTaskBudgetReports = canUseProjectBudgetReports || canUseEntityBudgetReports;\n            let canUseTaskProgressReports = canUseProjectProgressReports || canUseEntityProgressReports;\n            let canUseTasks = canUseProjectTasks || canUseEntityTasks;\n            for (const ta of this.taskAttributes) {\n              const isForProject = resource.hasMany('tasks').ids().includes(ta.belongsTo('task').id());\n              if (!isForProject) continue;\n              if (!canUseTaskCostReports) canUseTaskCostReports = ['canManageCostReports', 'canViewCostFinancialReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTaskBudgetReports) canUseTaskBudgetReports = ['canManageBudgetReports', 'canViewBudgetFinancialReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTaskProgressReports) canUseTaskProgressReports = ['canManageProgressReports', 'canViewProgressReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTasks) canUseTasks = ['canManageTasks', 'canViewTasks'].includes(ta.belongsTo('attribute').id());\n            }\n            if (canUseTaskCostReports && canUseTaskBudgetReports && canUseTaskProgressReports && canUseTasks) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canUseEntityInvoicingReport() {\n      if (!this.entityCanUseInvoicingReport) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      const canUseEntityInvoicingReports = this._canUseEntityInvoicingReports;\n      const canUseEntityProjects = this._canUseEntityProjects;\n      if (canUseEntityInvoicingReports && canUseEntityProjects) return true;\n      return false;\n    }\n    canUseProjectInvoicingReport(resource) {\n      if (!this.entityCanUseInvoicingReport) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      const canUseEntityInvoicingReports = this._canUseEntityInvoicingReports;\n      const canUseEntityTasks = this._canUseEntityTasks;\n      if (canUseEntityInvoicingReports && canUseEntityTasks) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            const canUseProjectInvoicingReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageInvoicingReports', 'canViewInvoicingReports');\n            const canUseProjectTasks = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageTasks', 'canViewTasks');\n            if ((canUseEntityInvoicingReports || canUseProjectInvoicingReports) && (canUseEntityTasks || canUseProjectTasks)) return true;\n\n            // check if we have permission on any project tasks\n            let canUseTaskInvoicingReports = canUseEntityInvoicingReports || canUseProjectInvoicingReports;\n            let canUseTasks = canUseProjectTasks || canUseEntityTasks;\n            for (const ta of this.taskAttributes) {\n              const isForProject = resource.hasMany('tasks').ids().includes(ta.belongsTo('task').id());\n              if (!isForProject) continue;\n              if (!canUseTaskInvoicingReports) canUseTaskInvoicingReports = ['canManageInvoicingReports', 'canViewInvoicingReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTasks) canUseTasks = ['canManageTasks', 'canViewTasks'].includes(ta.belongsTo('attribute').id());\n            }\n            if (canUseTaskInvoicingReports && canUseTasks) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canUseLabourHourReport(resource) {\n      if (!this.entityCanUseLabourHoursReport) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      const canUseEntityCostReports = this._canUseEntityCostReports;\n      const canUseEntityBudgetReports = this._canUseEntityBudgetReports;\n      const canUseEntityProgressReports = this._canUseEntityProgressReports;\n      const canUseEntityTasks = this._canUseEntityTasks;\n      if (canUseEntityCostReports && canUseEntityBudgetReports && canUseEntityProgressReports && canUseEntityTasks) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            const canUseProjectCostReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageCostReports', 'canViewCostFinancialReports');\n            const canUseProjectBudgetReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageBudgetReports', 'canViewBudgetFinancialReports');\n            const canUseProjectProgressReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageProgressReports', 'canViewProgressReports');\n            const canUseProjectTasks = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageTasks', 'canViewTasks');\n            if ((canUseEntityCostReports || canUseProjectCostReports) && (canUseEntityBudgetReports || canUseProjectBudgetReports) && (canUseEntityProgressReports || canUseProjectProgressReports) && (canUseEntityTasks || canUseProjectTasks)) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    get canUseReportProjectPage() {\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      const canUseTasks = this._canUseEntityTasks || this._canUseProjectTasks;\n      const canUseLabourHourReports = (this._canUseEntityCostLabourHourReports || this._canUseProjectCostLabourHourReports) && (this._canUseEntityBudgetLabourHourReports || this._canUseProjectBudgetLabourHourReports) && (this._canUseEntityProgressReports || this._canUseProjectProgressReports);\n      if (canUseLabourHourReports) return true;\n      if (canUseTasks && (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canViewBudgetFinancialReports', 'canViewCostFinancialReports', 'canViewProgressReports', 'canViewQuoteReports', 'canViewChargeupReports') || this.user?.includesClaimsAboutEntity(this.entity?.id, 'canViewBudgetFinancialReports', 'canViewCostFinancialReports', 'canViewProgressReports') || this.user?.includesClaimsAboutEntity(this.entity?.id, 'canViewBudgetFinancialReports', 'canViewCostFinancialReports', 'canViewProgressReports', 'canViewQuoteReports') || this.user?.includesClaimsAboutEntity(this.entity?.id, 'canViewBudgetFinancialReports', 'canViewCostFinancialReports', 'canViewProgressReports', 'canViewChargeupReports') || this.user?.includesClaimsAboutEntity(this.entity?.id, 'canViewQuoteReports', 'canViewChargeupReports', 'canViewProgressReports') || this.user?.includesClaimsAboutEntity(this.entity?.id, 'canViewCostFinancialReports') || this.user?.includesClaimsAboutEntity(this.entity?.id, 'canViewInvoicingReports') || this.user?.includesClaimsAboutEntity(this.entity?.id, 'canViewClientReports'))) return true;\n      if (canUseTasks && (this.projectAttributes.some(pa => ['canViewBudgetFinancialReports', 'canViewCostFinancialReports', 'canViewProgressReports', 'canViewQuoteReports', 'canViewChargeupReports'].includes(pa.belongsTo('attribute').id())) || this.projectAttributes.some(pa => ['canViewBudgetFinancialReports', 'canViewCostFinancialReports', 'canViewProgressReports'].includes(pa.belongsTo('attribute').id())) || this.projectAttributes.some(pa => ['canViewBudgetFinancialReports', 'canViewCostFinancialReports', 'canViewProgressReports', 'canViewQuoteReports'].includes(pa.belongsTo('attribute').id())) || this.projectAttributes.some(pa => ['canViewBudgetFinancialReports', 'canViewCostFinancialReports', 'canViewProgressReports', 'canViewChargeupReports'].includes(pa.belongsTo('attribute').id())) || this.projectAttributes.some(pa => ['canViewQuoteReports', 'canViewChargeupReports', 'canViewProgressReports'].includes(pa.belongsTo('attribute').id())) || this.projectAttributes.some(pa => 'canViewCostFinancialReports' === pa.belongsTo('attribute').id()) || this.projectAttributes.some(pa => 'canViewInvoicingReports' === pa.belongsTo('attribute').id()) || this.projectAttributes.some(pa => 'canViewClientReports' === pa.belongsTo('attribute').id()))) return true;\n      if (this.taskAttributes.some(pa => ['canViewBudgetFinancialReports', 'canViewCostFinancialReports', 'canViewProgressReports', 'canViewQuoteReports', 'canViewChargeupReports'].includes(pa.belongsTo('attribute').id())) || this.taskAttributes.some(pa => ['canViewBudgetFinancialReports', 'canViewCostFinancialReports', 'canViewProgressReports'].includes(pa.belongsTo('attribute').id())) || this.taskAttributes.some(pa => ['canViewBudgetFinancialReports', 'canViewCostFinancialReports', 'canViewProgressReports', 'canViewQuoteReports'].includes(pa.belongsTo('attribute').id())) || this.taskAttributes.some(pa => ['canViewBudgetFinancialReports', 'canViewCostFinancialReports', 'canViewProgressReports', 'canViewChargeupReports'].includes(pa.belongsTo('attribute').id())) || this.taskAttributes.some(pa => ['canViewQuoteReports', 'canViewChargeupReports', 'canViewProgressReports'].includes(pa.belongsTo('attribute').id())) || this.taskAttributes.some(pa => 'canViewCostFinancialReports' === pa.belongsTo('attribute').id()) || this.taskAttributes.some(pa => 'canViewInvoicingReports' === pa.belongsTo('attribute').id()) || this.taskAttributes.some(pa => 'canViewClientReports' === pa.belongsTo('attribute').id())) return true;\n      return false;\n    }\n    get canManagePayroll() {\n      if (!this.entityCanUseTimesheets) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // you can only run payroll if you have permission to view or manage payroll\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canViewPayrollReports', 'canManagePayrollReports')) return true;\n      return false;\n    }\n    get canUsePayroll() {\n      if (!this.entityCanUseTimesheets) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // you can only run payroll if you have permission to manage payroll\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManagePayrollReports', 'canViewPayrollReports')) return true;\n      return false;\n    }\n    get canUseNotes() {\n      if (!this.entityCanUseNotes) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // check if you have entity permission to view or manage notes\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canViewNotes', 'canManageNotes')) return true;\n      return false;\n    }\n    get canManageNotes() {\n      if (!this.entityCanUseNotes) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // check if you have entity permission to view or manage notes\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canManageNotes')) return true;\n      return false;\n    }\n    get canUseBills() {\n      if (!this.entityCanUseBills) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // check if you have entity permission to view or manage bills\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canViewBills', 'canManageBills')) return true;\n      return false;\n    }\n    get canUseLegacyBills() {\n      const legacyBillsDeprecationDate = new Date('2026-08-24');\n      const entityCreatedDate = this.entity?.dateCreated;\n      return entityCreatedDate < legacyBillsDeprecationDate;\n    }\n    get canUseStatements() {\n      if (!this.entityCanUseStatements) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // TODO not sure verify before merging\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageBills')) return true;\n      return false;\n    }\n    get canManageBills() {\n      if (!this.entityCanUseBills) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // check if you have entity permission to view or manage bills\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageBills')) return true;\n      return false;\n    }\n    canManageTimesheets(resource) {\n      if (!this.entityCanUseTimesheets) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // handle worker pseudo user\n      if (this.userIsWorker) {\n        switch (modelName(resource)) {\n          // the only situation where a worker can can manage timesheets is if it's their own timesheet\n          case 'timesheet':\n            // this can be passed proxy objects so we need to use old school getters\n            return (0, _object.get)(resource, 'worker.id') === this.worker.id;\n          case 'worker':\n            return modelId(resource) === this.worker.id;\n          default:\n            return false;\n        }\n      }\n\n      // check if you have canManageTimesheets at the entity\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canManageTimesheets')) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          return this.user?.includesClaimsAboutProject(modelId(resource), 'canManageTimesheets');\n        case 'timesheet':\n          {\n            // if a user has can manage timesheets for the project they can manage the timesheet\n            // this can be passed proxy objects so we need to use old school getters\n            if (this.user?.includesClaimsAboutProject((0, _object.get)(resource, 'project.id'), 'canManageTimesheets')) return true;\n            // otherwise, check if user has access to worker\n            return this.user?.includesClaimsAboutWorker(\n            // this can be passed proxy objects so we need to use old school getters\n            (0, _object.get)(resource, 'worker.id'), 'canManageTimesheets');\n          }\n        case 'worker':\n          {\n            // check if user has access to worker\n            return this.user?.includesClaimsAboutWorker(\n            // this can be passed proxy objects so we need to use old school getters\n            modelId(resource), 'canManageTimesheets');\n          }\n        default:\n          return false;\n      }\n    }\n    get canManageEstimatesSettings() {\n      if (!this.entityCanUseEstimates) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // check if you have entity permission to manage estimates settings\n      return this.user?.includesClaimsAboutEntity(this.entity?.id, 'canManageEstimatesSettings');\n    }\n    canManageUsers(resource) {\n      if (!this.entityCanUseBuildaPrice && !this.entityCanUseFinancialReporting) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // check if you have entity permission to manage users\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canManageUsers')) return true;\n      switch (modelName(resource)) {\n        case 'user':\n          // users technically can manage themselves but they cant edit permissions for themselves\n          // this can be passed proxy objects so we need to use old school getters\n          return modelId(resource) === this.user?.id;\n      }\n      return false;\n    }\n    canUseUsers(resource) {\n      if (!this.entityCanUseBuildaPrice && !this.entityCanUseFinancialReporting) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // if you have permission at entity level you can view all users\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageUsers', 'canViewUsers')) return true;\n      switch (modelName(resource)) {\n        case 'user':\n          // users technically can manage themselves but they cant edit permissions for themselves\n          // this can be passed proxy objects so we need to use old school getters\n          return modelId(resource) === this.user?.id;\n      }\n      return false;\n    }\n    canManageSubcontractors(resource) {\n      if (!this.entityCanUseBuildaPrice) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // check if you have entity permission to manage users\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canManageUsers')) return true;\n      switch (modelName(resource)) {\n        case 'user':\n          // users technically can manage themselves but they cant edit permissions for themselves\n          // this can be passed proxy objects so we need to use old school getters\n          return modelId(resource) === this.user?.id;\n      }\n      return false;\n    }\n    canUseSubcontractors(resource) {\n      if (!this.entityCanUseBuildaPrice) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // if you have permission at entity level you can view all users\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageUsers', 'canViewUsers')) return true;\n      switch (modelName(resource)) {\n        case 'user':\n          // users technically can manage themselves but they cant edit permissions for themselves\n          // this can be passed proxy objects so we need to use old school getters\n          return modelId(resource) === this.user?.id;\n      }\n      return false;\n    }\n    canManageWorkers(resource) {\n      if (!this.entityCanUseBuildaPrice) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // check if you have entity permission to manage users\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canManageWorkers')) return true;\n      if (this.userIsWorker) {\n        switch (modelName(resource)) {\n          // workers can manage themselves\n          case 'worker':\n            return modelId(resource) === this.worker.id;\n          default:\n            return false;\n        }\n      }\n      switch (modelName(resource)) {\n        case 'project':\n          return this.user?.includesClaimsAboutProject(modelId(resource), 'canManageWorkers');\n        case 'worker':\n          return this.user?.includesClaimsAboutWorker(modelId(resource), 'canManageWorkers');\n      }\n      return false;\n    }\n    canManageTaskProgress(resource) {\n      if (!this.entityCanUseBuildaPrice) return false;\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canManageEntity')) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageProjectProgressVersions', 'canManageTaskProgress')) return true;\n      switch (modelName(resource)) {\n        case 'task':\n          {\n            if (this.user?.includesSomeClaimsAboutProject(modelId(resource.project), 'canManageProjectProgressVersions', 'canManageTaskProgress')) return true;\n            if (this.user?.includesSomeClaimsAboutTask(modelId(resource), 'canManageTaskProgress')) return true;\n            return false;\n          }\n        case 'project':\n          {\n            if (this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageProjectProgressVersions', 'canManageTaskProgress')) return true;\n            return false;\n          }\n      }\n      return false;\n    }\n    canUseWorkers(resource) {\n      if (!this.entityCanUseBuildaPrice) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // check if you have entity permission to manage users\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageWorkers', 'canViewWorkers')) return true;\n      if (this.userIsWorker) {\n        switch (modelName(resource)) {\n          // workers can manage themselves\n          case 'worker':\n            return modelId(resource) === this.worker.id;\n          default:\n            return false;\n        }\n      }\n      switch (modelName(resource)) {\n        case 'project':\n          return this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageWorkers', 'canViewWorkers');\n        case 'worker':\n          return this.user?.includesSomeClaimsAboutWorker(modelId(resource), 'canManageWorkers', 'canViewWorkers');\n      }\n      return false;\n    }\n    get canManageSuppliers() {\n      if (!this.entityCanUseBuildaPrice) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // check if you have entity permission to manage contacts\n      return this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageSuppliers', 'canManageBills', 'canManageInvoices', 'canManageProducts', 'canManagePurchaseOrders');\n    }\n    get canUseSuppliers() {\n      if (!this.entityCanUseBuildaPrice) return false;\n\n      // Darren wants this hidden behind the billing feature\n      if (!this.entityCanUseBills) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // check if you have entity permission to manage users\n      return this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageBills', 'canManageInvoices', 'canManageProducts', 'canManagePurchaseOrders', 'canManageSuppliers', 'canViewBills', 'canViewInvoices', 'canViewProducts', 'canViewPurchaseOrders', 'canViewSuppliers');\n    }\n    get canUseXeroIntegration() {\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageIntegrations', 'canViewIntegrations', 'canManageBills', 'canManagePayrollReports', 'canViewPayrollReports')) return true;\n      return false;\n    }\n    get canUseQuickbooksIntegration() {\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageIntegrations', 'canViewIntegrations', 'canManageBills', 'canManagePayrollReports', 'canViewPayrollReports')) return true;\n      return false;\n    }\n    get canSeeNewBuildaPriceMigrationButton() {\n      // only show the button to admins\n      if (!this.userIsEntityAdmin) return false;\n\n      // only show the button if you have both new and old BP\n      return this.entityCanUseBuildaPrice && this.entityCanUseOldPricing;\n    }\n    get canUsePlaceMakers() {\n      if (!this.entityCanUsePlaceMakers) return false;\n      if (this.userIsEntityAdmin) return true;\n      return false;\n    }\n    get canUseItmInvoiceIntegration() {\n      if (!this.entityCanUseItmInvoiceIntegration) return false;\n      if (this.userIsEntityAdmin) return true;\n      return false;\n    }\n    canUseDocumentsPage() {\n      if (!this.entityCanUseFileStorage) return false;\n      if (this.userIsEntityAdmin) return true;\n      const entityAttributes = (0, _collectionToArray.default)(this.user?.get('entityAttributes')).filter(ta => ta.belongsTo('entity').value() === this.sessionData.entity);\n      const groupedProjectAttributes = _lodash.default.groupBy((0, _collectionToArray.default)(this.user?.get('projectAttributes')).filter(pa => pa.belongsTo('entity').value() === this.sessionData.entity), pa => pa.belongsTo('project').id());\n      const groupedTaskAttributes = _lodash.default.groupBy((0, _collectionToArray.default)(this.user?.get('taskAttributes')).filter(ta => ta.belongsTo('entity').value() === this.sessionData.entity), ta => ta.belongsTo('task').id());\n      const attachmentAttributes = (0, _collectionToArray.default)(this.user?.get('attachmentAttributes')).filter(ta => ta.belongsTo('entity').value() === this.sessionData.entity);\n      const canUseFileStorage = ['canViewFileStorage', 'canManageFileStorage'].some(c => entityAttributes.some(ea => ea.belongsTo('attribute').id() === c) || Object.values(groupedProjectAttributes).some(pa => pa.some(i => i.belongsTo('attribute').id() === c)) || Object.values(groupedTaskAttributes).some(pa => pa.some(i => i.belongsTo('attribute').id() === c)));\n      const canUseProjects = ['canManageProjects', 'canViewProjects'].some(c => entityAttributes.some(ea => ea.belongsTo('attribute').id() === c) || Object.values(groupedProjectAttributes).some(pa => pa.some(i => i.belongsTo('attribute').id() === c)));\n      const canUseAttachments = ['canViewFileStorage', 'canManageFileStorage'].some(c => attachmentAttributes.some(aa => aa.belongsTo('attribute').id() === c));\n      if (canUseProjects && canUseFileStorage || canUseAttachments) return true;\n      return false;\n    }\n    canUseProgressPage(project) {\n      if (!project) return false;\n      if (!this.entityCanUseProjectProgress) return false;\n      if (this.userIsEntityAdmin) return true;\n      let canViewTasks = this.user?.includesSomeClaimsAboutEntity((0, _object.get)(project, 'entity.id'), 'canViewTasks', 'canManageTasks');\n      let canViewProjectProgress = this.user?.includesSomeClaimsAboutEntity((0, _object.get)(project, 'entity.id'), 'canViewProjectProgressVersions', 'canManageProjectProgressVersions', 'canViewTaskProgress', 'canManageTaskProgress');\n      if (canViewTasks && canViewProjectProgress) return true;\n      if (!canViewTasks) canViewTasks = this.user?.includesSomeClaimsAboutProject(modelId(project), 'canViewTasks', 'canManageTasks');\n      if (!canViewProjectProgress) canViewProjectProgress = this.user?.includesSomeClaimsAboutProject(modelId(project), 'canViewProjectProgressVersions', 'canManageProjectProgressVersions', 'canViewTaskProgress', 'canManageTaskProgress');\n      if (canViewTasks && canViewProjectProgress) return true;\n\n      // check the project tasks to see if you have permission to a task\n      let tasksCanViewProjectProgress;\n      for (const taskId of project.hasMany('tasks').ids()) {\n        const taskCanViewTasks = canViewTasks || ['canViewTasks', 'canManageTasks'].some(a => this.taskAttributes.some(ta =>\n        // the attribute is for this projects task\n        ta.belongsTo('task').id() === taskId &&\n        // the attribute matches the check\n        ta.belongsTo('attribute').id() === a));\n        const taskCanViewProjectProgress = canViewProjectProgress || ['canViewProjectProgressVersions', 'canManageProjectProgressVersions', 'canViewTaskProgress', 'canManageTaskProgress'].some(a => this.taskAttributes.some(ta =>\n        // the attribute is for this projects task\n        ta.belongsTo('task').id() === taskId &&\n        // the attribute matches the check\n        ta.belongsTo('attribute').id() === a));\n\n        // you need access to view the task and the progress\n        if (taskCanViewTasks && taskCanViewProjectProgress) {\n          tasksCanViewProjectProgress = true;\n          break;\n        }\n      }\n      if (tasksCanViewProjectProgress) return true;\n      return false;\n    }\n    canUseStagePayments(resource) {\n      if (!this.entityCanUseStagePayments) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageStagePayments', 'canViewStagePayments')) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            if (this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageStagePayments', 'canViewStagePayments')) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canUseProducts(resource) {\n      if (!this.entityCanUseProducts) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageProducts', 'canViewProducts')) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            if (this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageProducts', 'canViewProducts')) return true;\n            break;\n          }\n        case 'task':\n          {\n            // check for project access first\n            if (this.user?.includesSomeClaimsAboutProject(\n            // this can be passed proxy objects so we need to use old school getters\n            (0, _object.get)(resource, 'project.id'), 'canManageProducts', 'canViewProducts')) return true;\n            // if you don't have project access, check for task access\n            if (this.user?.includesSomeClaimsAboutTask(modelId(resource), 'canManageProducts', 'canViewProducts')) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canManageStagePayments(resource) {\n      if (!this.entityCanUseProducts) return false;\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canManageStagePayments')) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            if (this.user?.includesClaimsAboutProject(modelId(resource), 'canManageStagePayments')) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canManageProducts(resource) {\n      if (!this.entityCanUseProducts) return false;\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageProducts')) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            if (this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageProducts')) return true;\n            break;\n          }\n        case 'task':\n          {\n            if (this.user?.includesSomeClaimsAboutProject((0, _object.get)(resource, 'project.id'), 'canManageProducts')) return true;\n            if (this.user?.includesSomeClaimsAboutTask(modelId(resource), 'canManageProducts')) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canUsePurchaseOrders(resource) {\n      if (!this.entityCanUsePurchaseOrders) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManagePurchaseOrders', 'canViewPurchaseOrders')) return true;\n      if (!resource) {\n        const groupedProjectAttributes = _lodash.default.groupBy((0, _collectionToArray.default)(this.user?.get('projectAttributes')).filter(pa => pa.belongsTo('entity').value() === this.sessionData.entity), pa => pa.belongsTo('project').id());\n        const canUsePurchaseOrders = ['canViewPurchaseOrders', 'canManagePurchaseOrders'].some(c => Object.values(groupedProjectAttributes).some(pa => pa.some(i => i.belongsTo('attribute').id() === c)));\n        if (canUsePurchaseOrders) return true;\n      }\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            if (this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManagePurchaseOrders', 'canViewPurchaseOrders')) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canUseInvoices(resource) {\n      if (!this.entityCanUseInvoices) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageInvoices', 'canViewInvoices')) return true;\n      if (!resource) {\n        const groupedProjectAttributes = _lodash.default.groupBy((0, _collectionToArray.default)(this.user?.get('projectAttributes')).filter(pa => pa.belongsTo('entity').value() === this.sessionData.entity), pa => pa.belongsTo('project').id());\n        const canUseInvoices = ['canViewInvoices', 'canManageInvoices'].some(c => Object.values(groupedProjectAttributes).some(pa => pa.some(i => i.belongsTo('attribute').id() === c)));\n        if (canUseInvoices) return true;\n      }\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            if (this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageInvoices', 'canViewInvoices')) return true;\n          }\n      }\n      return false;\n    }\n    canManageInvoices(resource) {\n      if (!this.entityCanUseInvoices) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageInvoices')) return true;\n      if (!resource) {\n        const groupedProjectAttributes = _lodash.default.groupBy((0, _collectionToArray.default)(this.user?.get('projectAttributes')).filter(pa => pa.belongsTo('entity').value() === this.sessionData.entity), pa => pa.belongsTo('project').id());\n        const canManageInvoices = ['canManageInvoices'].some(c => Object.values(groupedProjectAttributes).some(pa => pa.some(i => i.belongsTo('attribute').id() === c)));\n        if (canManageInvoices) return true;\n      }\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            if (this.user?.includesClaimsAboutProject(modelId(resource), 'canManageInvoices')) return true;\n          }\n      }\n      return false;\n    }\n    canManagePurchaseOrders(resource) {\n      if (!this.entityCanUsePurchaseOrders) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManagePurchaseOrders')) return true;\n      if (!resource) {\n        const groupedProjectAttributes = _lodash.default.groupBy((0, _collectionToArray.default)(this.user?.get('projectAttributes')).filter(pa => pa.belongsTo('entity').value() === this.sessionData.entity), pa => pa.belongsTo('project').id());\n        const canManagePurchaseOrders = ['canManagePurchaseOrders'].some(c => Object.values(groupedProjectAttributes).some(pa => pa.some(i => i.belongsTo('attribute').id() === c)));\n        if (canManagePurchaseOrders) return true;\n      }\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            if (this.user?.includesClaimsAboutProject(modelId(resource), 'canManagePurchaseOrders')) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canApproveInvoices(resource) {\n      if (!this.entityCanUseInvoices) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canApproveInvoices')) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            if (this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canApproveInvoices')) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canApprovePurchaseOrders(resource) {\n      if (!this.entityCanUsePurchaseOrders) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canApprovePurchaseOrders')) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            if (this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canApprovePurchaseOrders')) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canUseFileStorage(resource) {\n      if (!this.entityCanUseFileStorage) return false;\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageFileStorage', 'canViewFileStorage')) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            if (this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageFileStorage', 'canViewFileStorage')) return true;\n            break;\n          }\n        case 'task':\n          {\n            // if you can manage the project file storage you can manage the task\n            const canUseProject = this.user?.includesSomeClaimsAboutProject(\n            // this can be passed proxy objects so we need to use old school getters\n            (0, _object.get)(resource, 'project.id'), 'canManageFileStorage', 'canViewFileStorage');\n            if (canUseProject || this.user?.includesSomeClaimsAboutTask(modelId(resource), 'canManageFileStorage', 'canViewFileStorage')) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canManageFileStorage(resource) {\n      if (!this.entityCanUseFileStorage) return false;\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageFileStorage')) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            if (this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageFileStorage')) return true;\n            break;\n          }\n        case 'task':\n          {\n            if (this.user?.includesSomeClaimsAboutProject((0, _object.get)(resource, 'project.id'), 'canManageFileStorage')) return true;\n            if (this.user?.includesSomeClaimsAboutTask(modelId(resource), 'canManageFileStorage')) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canUseIntegrations() {\n      // Darren has decided integrations are only applicable if you have a feature that uses them\n      if (!this.entityCanUseTimesheets && !this.entityCanUseBills && !this.entityCanUseEstimates && !this.entityCanUseFinancialReporting) return false;\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canManageIntegrations')) return true;\n      return false;\n    }\n    canUseHealthAndSafety(project) {\n      if (!project) return false;\n      if (!this.entityCanUseHealthAndSafety) return false;\n      if (this.userIsAdmin || this.userIsPartner) return true;\n\n      // check if you have entity permission\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canCreateHealthAndSafety', 'canManageHealthAndSafety')) return true;\n      if (this.user?.includesSomeClaimsAboutProject(modelId(project), 'canCreateHealthAndSafety', 'canManageHealthAndSafety')) return true;\n      return false;\n    }\n    canUseClientPortal(_resource) {\n      if (!this.entityCanUseClientPortal) return false;\n      if (this.userIsEntityAdmin) return true;\n\n      // if you have permission at entity level you can view all users\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageUsers', 'canViewUsers')) return true;\n      return false;\n    }\n\n    // TODO new FP flags\n    get canUseFPDashboard() {\n      if (!this.canUseFinancialReporting) return false;\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canAdminFinancialReporting', 'canViewFinancialReporting')) return true;\n      return false;\n    }\n    get canUseFPKpis() {\n      if (!this.canUseFinancialReporting) return false;\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canAdminFinancialReporting', 'canViewFinancialReporting')) return true;\n      return false;\n    }\n    get canUseFPItmCustomerPAndL() {\n      if (!this.canUseFinancialReporting) return false;\n      if (!this.entityIsItm) return false;\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canAdminFinancialReporting', 'canViewFinancialReporting')) return true;\n      return false;\n    }\n    get canUseFPProfitAndLoss() {\n      if (!this.canUseFinancialReporting) return false;\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canAdminFinancialReporting', 'canViewFinancialReporting')) return true;\n      return false;\n    }\n    get canUseFPBalanceSheet() {\n      if (!this.canUseFinancialReporting) return false;\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canAdminFinancialReporting', 'canViewFinancialReporting')) return true;\n      return false;\n    }\n    get canUseFPOtherData() {\n      if (!this.canUseFinancialReporting) return false;\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canAdminFinancialReporting', 'canViewFinancialReporting')) return true;\n      return false;\n    }\n    get canUseFPPersonalData() {\n      if (!this.canUseFinancialReporting) return false;\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canAdminFinancialReporting', 'canViewFinancialReporting')) return true;\n      return false;\n    }\n    get canUseFPDataAvailability() {\n      if (!this.canUseFinancialReporting) return false;\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canAdminFinancialReporting', 'canViewFinancialReporting')) return true;\n      return false;\n    }\n    get canUseFPImportManager() {\n      if (!this.canUseFinancialReporting) return false;\n      if (this.entityIsItmParent) return false;\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canAdminFinancialReporting')) return true;\n      return false;\n    }\n    get canUseFPStrategies() {\n      if (!this.canUseStrategies) return false;\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canDeleteStrategies')) return true;\n      return false;\n    }\n    get canUseFPReportingPeriod() {\n      if (!this.canUseFinancialReporting) return false;\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canAdminFinancialReporting')) return true;\n      return false;\n    }\n    get canUseFPChartOfAccounts() {\n      if (!this.canUseFinancialReporting) return false;\n      if (!this.entityIsParent) return false;\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canAdminFinancialReporting')) return true;\n      return false;\n    }\n    get canUseFPKpisConfig() {\n      if (!this.canUseFinancialReporting) return false;\n      if (!this.entityIsParent) return false;\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canAdminFinancialReporting')) return true;\n      return false;\n    }\n    get canUseFPGroups() {\n      if (!this.canUseFinancialReporting) return false;\n      if (!this.entityIsParent) return false;\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canAdminFinancialReporting')) return true;\n      return false;\n    }\n    get userCanNotEditFPGroups() {\n      // this used to be implemented, but it isn't anymore\n      return false;\n    }\n    get userCanSeeFPBreakdown() {\n      if (this.userIsEntityAdmin) return true;\n      return false;\n    }\n    get canUseProjectCopy() {\n      if (!this.entityCanUseBuildaPrice) return false;\n\n      // TODO this will be expanded with the release of JSON:API v2\n      if (this.userIsEntityAdmin) return true;\n      return false;\n    }\n    /* user/worker features end */\n    /* USER/WORKER SECTION END */\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n  // there could be a cleaner way of doing this like comparing instanceof\n  // but this is easy and it works\n  const modelName = resource => {\n    // this can be passed proxy objects so we need to use old school getters\n    return resource ? (0, _object.get)(resource, '_internalModel.modelName') || (0, _object.get)(resource, 'constructor.modelName') : '';\n  };\n  const modelId = resource => {\n    // this can be passed proxy objects so we need to use old school getters\n    return resource ? (0, _object.get)(resource, 'id') : '';\n  };\n});","define(\"portal/services/notifications\", [\"exports\", \"@ember/service\", \"@ember/debug\", \"@ember/object\", \"@ember/runloop\", \"ember\", \"portal/config/environment\"], function (_exports, _service, _debug, _object, _runloop, _ember, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"@ember/debug\",0,\"@ember/object\",0,\"@ember/runloop\",0,\"ember\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  class _default extends _service.default {\n    constructor() {\n      super(...arguments);\n      _defineProperty(this, \"list\", []);\n      _defineProperty(this, \"defaultClearDuration\", 3500);\n      this.handleWindowMessage = this.handleWindowMessage.bind(this);\n    }\n    /**\n     * Public API\n     */\n    info(...args) {\n      return this.showProxy('info', ...args);\n    }\n    warning(...args) {\n      return this.showProxy('warning', ...args);\n    }\n    success(...args) {\n      return this.showProxy('success', ...args);\n    }\n    error(...args) {\n      if (_environment.default.environment === 'development') {\n        console.error(...args);\n      }\n      return this.showProxy('error', ...args);\n    }\n\n    /**\n     * Show proxy by type\n     */\n    showProxy(type, options, duration) {\n      options = options || {};\n      if (typeof options === 'string') {\n        options = {\n          message: options\n        };\n      }\n      options.type = type;\n      return this.show(options, duration);\n    }\n\n    /**\n     * Show a new notification\n     */\n    show(options, duration = this.defaultClearDuration) {\n      options = options || {};\n      if (typeof options === 'string') {\n        options = {\n          message: options\n        };\n      }\n      const {\n        message,\n        type = 'info',\n        autoClear = arguments.length > 1 || options.type === 'success',\n        clearDuration = duration\n      } = options;\n      (false && !(message) && (0, _debug.assert)('A notification message must be set.', message));\n      const notification = _object.default.create({\n        message,\n        type,\n        autoClear,\n        clearDuration\n      });\n      this.list.pushObject(notification);\n      if ((0, _object.get)(notification, 'autoClear')) {\n        this.setupAutoClear(notification);\n      }\n      return notification;\n    }\n\n    /**\n     * Automatically clear after delay\n     */\n    setupAutoClear(notification) {\n      if (_ember.default.testing) return;\n      (0, _runloop.later)(() => {\n        if (this.list.indexOf(notification) !== -1 && !(0, _object.get)(notification, 'dismiss')) {\n          this.clear(notification);\n        }\n      }, (0, _object.get)(notification, 'clearDuration'));\n    }\n\n    /**\n     * Clear a notification with dismiss animation\n     */\n    clear(notification) {\n      (false && !(notification) && (0, _debug.assert)('The notification to clear must be provided.', notification));\n      (0, _object.set)(notification, 'dismiss', true);\n\n      // Delay actual removal for animation\n      (0, _runloop.later)(() => this.list.removeObject(notification), 500);\n    }\n\n    /**\n     * Clear all notifications\n     */\n    clearAll() {\n      this.list.forEach(notification => this.clear(notification));\n    }\n\n    /**\n     * Handle window messages for notifications\n     */\n    handleWindowMessage(event) {\n      if (!event.data.isBpNotification) return;\n      this[event.data.type](...event.data.options);\n    }\n  }\n  _exports.default = _default;\n});","define(\"portal/services/number-format\", [\"exports\", \"@ember/service\"], function (_exports, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.CURRENCY = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const CURRENCY = _exports.CURRENCY = {\n    NZL: 'NZD',\n    AUS: 'AUD',\n    USA: 'USD',\n    GBR: 'GBP'\n  };\n  let _class = _exports.default = (_class2 = class _class2 extends _service.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n    }\n    format(number, _options) {\n      const options = {\n        ..._options\n      };\n      const emptyPlaceholder = options.emptyPlaceholder || '–';\n      if (isNaN(Number(number))) {\n        return emptyPlaceholder || null;\n      }\n      if (options.dashZero && Number(number) === 0) {\n        return emptyPlaceholder;\n      }\n      if (options.style === 'currency') {\n        const region = this.sessionData.entity?.region;\n        if (region) {\n          options.currency = CURRENCY[region];\n        } else {\n          // we can't render currency without a region\n          options.style = 'decimal';\n        }\n      }\n\n      // There is bug on Mdn for local 'en-AU' with currency any currency except 'AUD'\n      // It shows AUD 123 without '$'\n      return this.intl.formatNumber(number, options);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/services/os\", [\"exports\", \"@ember/service\"], function (_exports, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\"eaimeta@70e063a35619d71f\n  class OSService extends _service.default {\n    get isMac() {\n      return /Mac|iPod|iPhone|iPad/.test(navigator.platform);\n    }\n    get mainModifier() {\n      return this.isMac ? '⌘' : 'Ctrl';\n    }\n    get hasKeyboard() {\n      return window.matchMedia('(pointer: fine)').matches;\n    }\n  }\n  _exports.default = OSService;\n});","define(\"portal/services/oss-engine-data\", [\"exports\", \"@ember/service\", \"@glimmer/tracking\"], function (_exports, _service, _tracking) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"@glimmer/tracking\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _service.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"projectId\", _descriptor, this);\n      _initializerDefineProperty(this, \"accessToken\", _descriptor2, this);\n      _initializerDefineProperty(this, \"user\", _descriptor3, this);\n    }\n    setProjectId(newProject) {\n      this.projectId = newProject;\n    }\n    setAccessToken(accessToken) {\n      this.accessToken = accessToken;\n    }\n    setUser(user) {\n      this.user = user;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"projectId\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"accessToken\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"user\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return {};\n    }\n  }), _class2);\n});","define(\"portal/services/page-title\", [\"exports\", \"ember-page-title/services/page-title\"], function (_exports, _pageTitle) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _pageTitle.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-page-title/services/page-title\"eaimeta@70e063a35619d71f\n});","define(\"portal/services/pdf-export\", [\"exports\", \"@ember/service\", \"portal/utils/download\", \"portal/config/environment\"], function (_exports, _service, _download, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"portal/utils/download\",0,\"portal/config/environment\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const HTML_TO_PDF_SERVICE_URL = _environment.default.urls.htmlToPdfService;\n  function minifyHTML(html) {\n    return html.replace(/>\\s+</g, '><');\n  }\n  const DEFAULT_PDF_OPTIONS = {\n    format: 'A4',\n    landscape: false,\n    scale: 1,\n    includeMargins: true,\n    margins: {\n      top: 20,\n      right: 20,\n      bottom: 20,\n      left: 20\n    }\n  };\n  let _class = _exports.default = (_class2 = class _class2 extends _service.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n    }\n    async generatePdf(id, title, hideClass, options = {}) {\n      const originalElement = document.getElementById(id);\n      const element = originalElement.cloneNode(true);\n      const classNames = new Set([':root', 'body', 'html']); // always take the global page styles\n\n      (function transverseParents(element) {\n        const parent = element.parentElement;\n        if (!parent) return;\n        for (const className of parent.classList) classNames.add(className);\n        transverseParents(parent);\n      })(originalElement);\n      (function transverseChildren(element, originalElement) {\n        const isCanvas = element.nodeName === 'CANVAS';\n\n        // if the element is a canvas we need to encode it as an image\n        if (isCanvas) {\n          const imageData = originalElement.toDataURL('image/png');\n          const img = document.createElement('img');\n          const rect = originalElement.getBoundingClientRect();\n          img.src = imageData;\n          img.width = rect.width;\n          img.height = rect.height;\n          element.parentNode.replaceChild(img, element);\n          element = img;\n        }\n        const isInput = element.nodeName === 'INPUT';\n        if (isInput) {\n          element.setAttribute('value', element.value);\n        }\n        classNames.add(element.tagName.toLowerCase());\n        for (const className of element.classList) classNames.add(className);\n        for (let i = 0; i < element.children.length; i++) transverseChildren(element.children[i], originalElement.children[i]);\n      })(element, originalElement);\n      const cssRules = [];\n      for (const styleSheet of document.styleSheets) {\n        try {\n          for (const cssRule of styleSheet.cssRules) {\n            // we only care about style rules\n            if (!(cssRule instanceof CSSStyleRule)) continue;\n\n            // check if our elements have this class\n            let hasClassName;\n            for (const className of classNames) {\n              hasClassName = cssRule.selectorText?.includes(className);\n              if (hasClassName) break;\n            }\n            if (hasClassName) cssRules.push(cssRule.cssText);\n          }\n        } catch (_) {\n          // doesn't work cross origin and we don't want cross origin sheets anyway\n        }\n      }\n      if (title) {\n        const titleElement = document.createElement('h1');\n        titleElement.innerText = title;\n        // to make title not to wrap into multiple lines\n        titleElement.style.whiteSpace = 'nowrap';\n        element.insertBefore(titleElement, element.firstChild);\n      }\n\n      // must go at the end for priority\n      if (hideClass) cssRules.push(`.${hideClass} { display: none !important; }`);\n      const cssHtml = `<style>${cssRules.join('\\n')}</style>`;\n      const htmlContent = minifyHTML(cssHtml + element.outerHTML);\n\n      // compress the body\n      const body = {\n        ...DEFAULT_PDF_OPTIONS,\n        ...options,\n        htmlContent\n      };\n      const stream = new Blob([JSON.stringify(body)], {\n        type: 'application/json'\n      }).stream();\n      const compressedReadableStream = stream.pipeThrough(new CompressionStream('gzip') // eslint-disable-line no-undef\n      );\n      const compressedResponse = new Response(compressedReadableStream);\n      const bodyBlob = await compressedResponse.blob();\n      const res = await fetch(HTML_TO_PDF_SERVICE_URL, {\n        method: 'POST',\n        body: bodyBlob,\n        headers: {\n          Accept: 'application/pdf',\n          'Content-Type': 'application/json',\n          'Content-Encoding': 'gzip'\n        }\n      });\n      const blob = await res.blob();\n      return blob;\n    }\n    async generateAndDownloadPdf(id, name = 'untitled.pdf', title, hideClass, options = {}) {\n      const blob = await this.generatePdf(id, title, hideClass, options);\n      (0, _download.download)(blob, name, blob.type);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/services/placemakers\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/object\", \"@ember/service\", \"@glimmer/tracking\", \"qs\", \"portal/config/environment\", \"ember-local-storage\", \"jquery\"], function (_exports, _asyncArrowRuntime, _object, _service, _tracking, _qs, _environment, _emberLocalStorage, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"qs\",0,\"portal/config/environment\",0,\"ember-local-storage\",0,\"jquery\",0,\"ember-concurrency\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let PlacemakersService = _exports.default = (_dec = (0, _service.inject)(), _dec2 = (0, _service.inject)(), _dec3 = (0, _service.inject)(), _dec4 = (0, _service.inject)(), _class = class PlacemakersService extends _service.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"session\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor4, this);\n      _defineProperty(this, \"localStorage\", (0, _emberLocalStorage.storageFor)('pm-callback'));\n      _defineProperty(this, \"initialize\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          (0, _object.set)(this, 'isInitialized', false);\n          const entityId = this.sessionData.entity.id;\n          try {\n            // We only expect there to be one result here so just take first one.\n            const queryResult = yield this.store.query('pm-connection', {\n              filter: {\n                and: [{\n                  field: 'entity',\n                  op: 'EQ',\n                  value: entityId\n                }]\n              },\n              fields: {\n                'pm-connections': '_meta.isConnected'\n              }\n            });\n            let integrationOptions = queryResult.toArray()[0];\n            if (!integrationOptions) {\n              integrationOptions = this.store.createRecord('pm-connection', {\n                entity: this.sessionData.entity\n              });\n            }\n            this._entityId = entityId;\n            (0, _object.set)(this, 'integrationOptions', integrationOptions);\n          } finally {\n            (0, _object.set)(this, 'isInitialized', true);\n          }\n        }\n      }), {\n        drop: true\n      }, \"initialize\", null));\n      // Triggers initialize to run again if entity changes in session data.\n      _defineProperty(this, \"updateOnEntityChange\", (0, _object.observer)('sessionData.entity.id', function () {\n        this.initialize.perform();\n      }));\n      _defineProperty(this, \"_entityId\", null);\n      _initializerDefineProperty(this, \"integrationOptions\", _descriptor5, this);\n      _initializerDefineProperty(this, \"isInitialized\", _descriptor6, this);\n      _defineProperty(this, \"updateOption\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (key, value) {\n          this.integrationOptions[key] = value;\n          yield this.integrationOptions.save();\n        }\n      }), {\n        enqueue: true\n      }, \"updateOption\", null));\n    }\n    init() {\n      super.init(...arguments);\n      this.initialize.perform();\n    }\n    // Not @computed: isConnected on the model is a native getter over the _meta\n    // attr, which a classic dependent key cannot observe. Autotracking picks up\n    // isInitialized, integrationOptions and _meta on its own.\n    get isConnected() {\n      return Boolean(this.isInitialized && this.integrationOptions?.isConnected);\n    }\n    syncPriceBookNow(entityId = this.sessionData.entity.id) {\n      return this.syncPriceBookNowAjax(this.session.data.authenticated.access_token, entityId);\n    }\n    async disconnect(entityId = this.sessionData.entity.id) {\n      await this.disconnectAjax(this.session.data.authenticated.access_token, entityId);\n\n      // Optimistic update\n      (0, _object.set)(this, 'integrationOptions.isConnected', false);\n    }\n\n    /**\n     * Can be called from outside. Lives here to keep logic in one place, will cause navigation.\n     * @param {string | undefined} entityId\n     * @return {void}\n     */\n    initiatePMConnection(entityId = this.sessionData.entity.id) {\n      const {\n        clientId,\n        scope,\n        baseURL,\n        authPath\n      } = _environment.default.placemakers;\n      const authURL = baseURL + authPath;\n      const params = _qs.default.stringify({\n        response_type: 'code',\n        scope,\n        client_id: clientId,\n        redirect_uri: _environment.default.urls.app + `/complete-pm-auth`,\n        state: this.encodeState({\n          entityId,\n          nonce: new Date().getTime()\n        })\n      });\n      const pmAuthAddress = `${authURL}?${params}`;\n      window.location.assign(pmAuthAddress);\n    }\n    handlePmError(error) {\n      if (error.status === 401) {\n        // if this has happened the API has dropped the token and we are no longer authenticated\n        this.notifications.error('Your connection with PlaceMakers has been lost. Please connect again');\n        (0, _object.set)(this, 'integrationOptions.isConnected', false);\n        error.wasAuthenticationError = true;\n      }\n      throw error;\n    }\n    disconnectAjax(accessToken, entityId) {\n      return new Promise((resolve, reject) => {\n        const url = _environment.default.urls.api + _environment.default.urls.apiV1Path + '/pm-integration/disconnect';\n        _jquery.default.ajax({\n          url,\n          method: 'POST',\n          data: JSON.stringify({\n            entity: entityId\n          }),\n          contentType: 'application/json',\n          headers: {\n            Authorization: 'Bearer ' + accessToken\n          }\n        }).then(resolve, reject);\n      }).catch(this.handlePmError.bind(this));\n    }\n    syncPriceBookNowAjax(accessToken, entityId) {\n      return new Promise((resolve, reject) => {\n        const url = _environment.default.urls.api + _environment.default.urls.apiV1Path + '/pm-integration/sync-price-book';\n        _jquery.default.ajax({\n          url,\n          method: 'POST',\n          data: JSON.stringify({\n            entity: entityId\n          }),\n          contentType: 'application/json',\n          headers: {\n            Authorization: 'Bearer ' + accessToken\n          }\n        }).then(resolve, reject);\n      }).catch(this.handlePmError.bind(this));\n    }\n\n    /**\n     * Turns object into base64 encoded JSON\n     * @param {Object} obj\n     * @return {String}\n     */\n    encodeState(obj) {\n      return btoa(JSON.stringify(obj));\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"session\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"notifications\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"integrationOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"isInitialized\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _class);\n});","define(\"portal/services/platform\", [\"exports\", \"@ember/service\", \"portal/utils/platform\"], function (_exports, _service, _platform) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"portal/utils/platform\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _service.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n    }\n    get brand() {\n      return this.sessionData.entity?.brand;\n    }\n    get platform() {\n      const platforms = (0, _platform.getPlatforms)();\n      let platform = (0, _platform.getDefaultPlatform)();\n      switch (this.brand) {\n        case 'BUILDA_PRICE':\n          platform = platforms.BUILDA_PRICE;\n          break;\n        case 'STEP':\n          platform = platforms.STEP;\n          break;\n        case 'APB':\n          platform = platforms.APB;\n          break;\n        case 'TPB':\n          platform = platforms.TPB;\n          break;\n        case 'ITM':\n          platform = platforms.ITM;\n          break;\n        case 'ATTENTION_SAFETY':\n          platform = platforms.ATTENTION_SAFETY;\n          break;\n        case 'STEP_UP':\n          platform = platforms.STEP_UP;\n          break;\n      }\n      return platform;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/services/portal-api-v2\", [\"exports\", \"@ember/service\", \"portal/config/environment\", \"jquery\", \"rsvp\"], function (_exports, _service, _environment, _jquery, _rsvp) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  /* eslint-disable ember/no-jquery */\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"portal/config/environment\",0,\"@ember/service\",0,\"jquery\",0,\"rsvp\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _service.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"session\", _descriptor, this);\n    }\n    authPost(path, payload, token = this.session.data.authenticated.access_token) {\n      return new _rsvp.default.Promise((resolve, reject) => {\n        _jquery.default.ajax({\n          url: _environment.default.urls.api + _environment.default.urls.apiV2Path + path,\n          method: 'POST',\n          headers: {\n            Authorization: `Bearer ${token}`\n          },\n          data: JSON.stringify(payload),\n          contentType: 'application/json'\n        }).then(resolve, reject);\n      });\n    }\n    authPostForm(path, payload, token = this.session.data.authenticated.access_token) {\n      return new _rsvp.default.Promise((resolve, reject) => {\n        _jquery.default.ajax({\n          url: _environment.default.urls.api + _environment.default.urls.apiV2Path + path,\n          method: 'POST',\n          headers: {\n            Authorization: `Bearer ${token}`\n          },\n          data: payload,\n          processData: false,\n          contentType: false\n        }).then(resolve, reject);\n      });\n    }\n    authGet(path, payload, token = this.session.data.authenticated.access_token) {\n      if (payload) return new _rsvp.default.Promise((resolve, reject) => {\n        _jquery.default.ajax({\n          url: _environment.default.urls.api + _environment.default.urls.apiV2Path + path,\n          method: 'GET',\n          headers: {\n            Authorization: `Bearer ${token}`\n          },\n          dataType: 'json',\n          data: payload,\n          contentType: 'application/json'\n        }).then(resolve, reject);\n      });\n      return new _rsvp.default.Promise((resolve, reject) => {\n        _jquery.default.ajax({\n          url: _environment.default.urls.api + _environment.default.urls.apiV2Path + path,\n          method: 'GET',\n          headers: {\n            Authorization: `Bearer ${token}`\n          }\n        }).then(resolve, reject);\n      });\n    }\n    authPostHtml(path, payload, token = this.session.data.authenticated.access_token) {\n      return new _rsvp.default.Promise((resolve, reject) => {\n        _jquery.default.ajax({\n          url: _environment.default.urls.api + _environment.default.urls.apiV2Path + path,\n          method: 'POST',\n          headers: {\n            Authorization: `Bearer ${token}`,\n            Accept: 'text/plain'\n          },\n          data: JSON.stringify(payload),\n          dataType: 'text',\n          contentType: 'application/json; charset=UTF-8'\n        }).then(resolve, reject);\n      });\n    }\n    authDelete(path, payload, token = this.session.data.authenticated.access_token) {\n      return new _rsvp.default.Promise((resolve, reject) => {\n        _jquery.default.ajax({\n          url: _environment.default.urls.api + _environment.default.urls.apiV2Path + path,\n          method: 'DELETE',\n          headers: {\n            Authorization: `Bearer ${token}`\n          },\n          dataType: 'json',\n          data: payload,\n          contentType: 'application/json'\n        }).then(resolve, reject);\n      });\n    }\n    authPatch(path, payload, token = this.session.data.authenticated.access_token) {\n      return new _rsvp.default.Promise((resolve, reject) => {\n        _jquery.default.ajax({\n          url: _environment.default.urls.api + _environment.default.urls.apiV2Path + path,\n          method: 'PATCH',\n          headers: {\n            Authorization: `Bearer ${token}`\n          },\n          data: JSON.stringify(payload),\n          dataType: 'json',\n          contentType: 'application/json'\n        }).then(resolve, reject);\n      });\n    }\n    authPut(path, payload, token = this.session.data.authenticated.access_token) {\n      return new _rsvp.default.Promise((resolve, reject) => {\n        _jquery.default.ajax({\n          url: _environment.default.urls.api + _environment.default.urls.apiV2Path + path,\n          method: 'PUT',\n          headers: {\n            Authorization: `Bearer ${token}`\n          },\n          data: JSON.stringify(payload),\n          dataType: 'json',\n          contentType: 'application/json'\n        }).then(resolve, reject);\n      });\n    }\n    authGetBlob(path, payload, token = this.session.data.authenticated.access_token) {\n      if (payload) return new _rsvp.default.Promise((resolve, reject) => {\n        _jquery.default.ajax({\n          url: _environment.default.urls.api + _environment.default.urls.apiV2Path + path,\n          method: 'GET',\n          headers: {\n            Authorization: `Bearer ${token}`,\n            Accept: 'application/pdf',\n            contentType: 'application/json'\n          },\n          data: payload,\n          xhrFields: {\n            responseType: 'blob'\n          }\n        }).then(resolve, reject);\n      });\n      return new _rsvp.default.Promise((resolve, reject) => {\n        _jquery.default.ajax({\n          url: _environment.default.urls.api + _environment.default.urls.apiV2Path + path,\n          method: 'GET',\n          headers: {\n            Authorization: `Bearer ${token}`,\n            Accept: 'application/pdf',\n            contentType: 'application/json'\n          },\n          xhrFields: {\n            responseType: 'blob'\n          }\n        }).then(resolve, reject);\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/services/portal-api\", [\"exports\", \"@ember/service\", \"portal/config/environment\", \"jquery\", \"rsvp\"], function (_exports, _service, _environment, _jquery, _rsvp) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  /* eslint-disable ember/no-jquery */\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"portal/config/environment\",0,\"@ember/service\",0,\"jquery\",0,\"rsvp\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _service.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"session\", _descriptor, this);\n    }\n    authPost(path, payload, token = this.session.data.authenticated.access_token) {\n      return new _rsvp.default.Promise((resolve, reject) => {\n        _jquery.default.ajax({\n          url: _environment.default.urls.api + _environment.default.urls.apiV1Path + path,\n          method: 'POST',\n          headers: {\n            Authorization: `Bearer ${token}`\n          },\n          data: JSON.stringify(payload),\n          dataType: 'json',\n          contentType: 'application/json'\n        }).then(resolve, reject);\n      });\n    }\n    authGet(path, payload, token = this.session.data.authenticated.access_token) {\n      if (payload) return new _rsvp.default.Promise((resolve, reject) => {\n        _jquery.default.ajax({\n          url: _environment.default.urls.api + _environment.default.urls.apiV1Path + path,\n          method: 'GET',\n          headers: {\n            Authorization: `Bearer ${token}`\n          },\n          dataType: 'json',\n          data: payload,\n          contentType: 'application/json'\n        }).then(resolve, reject);\n      });\n      return new _rsvp.default.Promise((resolve, reject) => {\n        _jquery.default.ajax({\n          url: _environment.default.urls.api + _environment.default.urls.apiV1Path + path,\n          method: 'GET',\n          headers: {\n            Authorization: `Bearer ${token}`\n          }\n        }).then(resolve, reject);\n      });\n    }\n    authDelete(path, payload) {\n      return new _rsvp.default.Promise((resolve, reject) => {\n        _jquery.default.ajax({\n          url: _environment.default.urls.api + _environment.default.urls.apiV1Path + path,\n          method: 'DELETE',\n          headers: {\n            Authorization: `Bearer ${this.session.data.authenticated.access_token}`\n          },\n          dataType: 'json',\n          data: payload,\n          contentType: 'application/json'\n        }).then(resolve, reject);\n      });\n    }\n    authPatch(path, payload, token = this.session.data.authenticated.access_token) {\n      return new _rsvp.default.Promise((resolve, reject) => {\n        _jquery.default.ajax({\n          url: _environment.default.urls.api + _environment.default.urls.apiV1Path + path,\n          method: 'PATCH',\n          headers: {\n            Authorization: `Bearer ${token}`\n          },\n          data: JSON.stringify(payload),\n          dataType: 'json',\n          contentType: 'application/json'\n        }).then(resolve, reject);\n      });\n    }\n    authGetExcel(path, payload, token = this.session.data.authenticated.access_token) {\n      return new Promise((resolve, reject) => {\n        _jquery.default.ajax({\n          url: _environment.default.urls.api + _environment.default.urls.apiV1Path + path,\n          method: 'POST',\n          headers: {\n            Authorization: `Bearer ${token}`\n          },\n          xhrFields: {\n            responseType: 'blob'\n          },\n          data: JSON.stringify(payload),\n          contentType: 'application/json',\n          accept: 'application/vnd.ms-excel'\n        }).then(resolve, reject);\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/services/power-calendar\", [\"exports\", \"ember-power-calendar/services/power-calendar\"], function (_exports, _powerCalendar) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _powerCalendar.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-power-calendar/services/power-calendar\"eaimeta@70e063a35619d71f\n});","define(\"portal/services/pricing\", [\"exports\", \"@ember/service\"], function (_exports, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.PortalPricingError = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const FIVE_MINUTES = 5000 * 60;\n  const IDENTITY_TOKEN_URL = '/pricing-session';\n  class PortalPricingError extends Error {}\n  _exports.PortalPricingError = PortalPricingError;\n  let _class = _exports.default = (_class2 = class _class2 extends _service.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n    }\n    async portalApiPostHandler(url, payload) {\n      try {\n        return await this.portalApi.authPost(url, payload);\n      } catch (err) {\n        if (err?.responseJSON?.errors?.length) {\n          const message = err.responseJSON.errors[0].title;\n          throw new PortalPricingError(message);\n        }\n        throw err;\n      }\n    }\n    async getUnlinkedEstimates() {\n      const sessionId = await this.getSessionId();\n      const res = await this.portalApi.authGet('/buildaprice/unlinked-estimates', {\n        sessionId,\n        entityId: this.sessionData.entity.id\n      });\n      return res;\n    }\n    async getSessionId() {\n      const entityId = this.sessionData.entity.id;\n      if (entityId === this._cachedSession?.entityId && this._cachedSession?.timestamp > new Date(new Date().getTime() - FIVE_MINUTES)) {\n        return this._cachedSession.sessionId;\n      }\n      const {\n        sessionId\n      } = await this.portalApiPostHandler(IDENTITY_TOKEN_URL, {\n        entity: entityId\n      });\n      this._cachedSession = {\n        sessionId,\n        timestamp: new Date(),\n        entityId\n      };\n      return sessionId;\n    }\n    async createPrice(payload) {\n      const sessionId = await this.getSessionId();\n      const res = await this.portalApiPostHandler('/buildaprice/price/create', {\n        ...payload,\n        sessionId,\n        entityId: this.sessionData.entity.id\n      });\n      return res;\n    }\n    async duplicatePrice(payload) {\n      const sessionId = await this.getSessionId();\n      const res = await this.portalApiPostHandler('/buildaprice/price/duplicate', {\n        ...payload,\n        sessionId,\n        entityId: this.sessionData.entity.id\n      });\n      return res;\n    }\n    async editPrice(payload) {\n      const sessionId = await this.getSessionId();\n      const res = await this.portalApiPostHandler('/buildaprice/price/edit', {\n        ...payload,\n        sessionId,\n        entityId: this.sessionData.entity.id\n      });\n      return res;\n    }\n    async getMerchantList() {\n      const sessionId = await this.getSessionId();\n      const res = await this.portalApiPostHandler('/buildaprice/merchant/get', {\n        sessionId,\n        entityId: this.sessionData.entity.id\n      });\n      return res;\n    }\n    async deletePrice(payload) {\n      const sessionId = await this.getSessionId();\n      const res = await this.portalApiPostHandler('/buildaprice/price/delete', {\n        ...payload,\n        sessionId,\n        entityId: this.sessionData.entity.id\n      });\n      return res;\n    }\n    async getTemplates(payload) {\n      const sessionId = await this.getSessionId();\n      const res = await this.portalApiPostHandler('/buildaprice/template/get', {\n        ...payload,\n        sessionId,\n        entityId: this.sessionData.entity.id\n      });\n      return res;\n    }\n    async addTemplates(payload) {\n      const sessionId = await this.getSessionId();\n      const res = await this.portalApiPostHandler('/buildaprice/price/add-templates', {\n        ...payload,\n        sessionId,\n        entityId: this.sessionData.entity.id\n      });\n      return res;\n    }\n    async getPreloadedQuotes(payload) {\n      const sessionId = await this.getSessionId();\n      const res = await this.portalApiPostHandler('/buildaprice/price/get-preloaded-quotes', {\n        ...payload,\n        sessionId,\n        entityId: this.sessionData.entity.id\n      });\n      return res;\n    }\n    async importMaterialsFromQuote(payload) {\n      const sessionId = await this.getSessionId();\n      const res = await this.portalApiPostHandler('/buildaprice/price/import-materials-from-quote', {\n        ...payload,\n        sessionId,\n        entityId: this.sessionData.entity.id\n      });\n      return res;\n    }\n    async importMaterialsFromFile(payload) {\n      const sessionId = await this.getSessionId();\n      const res = await this.portalApiPostHandler('/buildaprice/price/import-materials-from-file', {\n        ...payload,\n        sessionId,\n        entityId: this.sessionData.entity.id\n      });\n      return res;\n    }\n    async createTasksFromEstimate(payload) {\n      const sessionId = await this.getSessionId();\n      const res = await this.portalApiPostHandler('/buildaprice/price/create-tasks-from-estimate', {\n        ...payload,\n        sessionId,\n        entityId: this.sessionData.entity.id\n      });\n      return res;\n    }\n    async getImportStatus(payload) {\n      const sessionId = await this.getSessionId();\n      const res = await this.portalApiPostHandler('/buildaprice/price/get-import-status', {\n        ...payload,\n        sessionId,\n        entityId: this.sessionData.entity.id\n      });\n      return res;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/services/quickbooks\", [\"exports\", \"@ember/service\", \"@ember/object\", \"portal/config/environment\", \"qs\"], function (_exports, _service, _object, _environment, _qs) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"@ember/object\",0,\"portal/config/environment\",0,\"qs\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const URLS = {\n    connect: _environment.default.urls.api + _environment.default.urls.apiV2Path + '/integrations/quickbooks/connect',\n    disconnect: _environment.default.urls.api + _environment.default.urls.apiV2Path + '/integrations/quickbooks/disconnect',\n    getAccounts: _environment.default.urls.api + _environment.default.urls.apiV2Path + '/integrations/quickbooks/accounts',\n    updateQuickBooksContacts: _environment.default.urls.api + _environment.default.urls.apiV2Path + '/integrations/quickbooks/contacts',\n    getEmployees: _environment.default.urls.api + _environment.default.urls.apiV2Path + '/integrations/quickbooks/employees',\n    syncBill: _environment.default.urls.api + _environment.default.urls.apiV2Path + '/integrations/quickbooks/bill',\n    syncInvoice: _environment.default.urls.api + _environment.default.urls.apiV2Path + '/integrations/quickbooks/invoice',\n    createTimesheets: _environment.default.urls.api + _environment.default.urls.apiV2Path + '/integrations/quickbooks/timesheets',\n    createContact: _environment.default.urls.api + _environment.default.urls.apiV2Path + '/integrations/quickbooks/create-contact'\n  };\n  let QuickBooks = _exports.default = (_class = class QuickBooks extends _service.default {\n    get companyId() {\n      return this.connection?.quickbooksRealmId;\n    }\n    get companyName() {\n      return this.connection?.quickbooksCompanyName;\n    }\n    get isConnected() {\n      return this.connection?.isConnected;\n    }\n    get _canUse() {\n      return this.newFeatureFlags.includesFeatureFlags('canUseQuickbooksIntegration');\n    }\n    get quickbooksUrl() {\n      if (this.ready) return _environment.default.urls.quickbooksUrl;\n      return '';\n    }\n    get connection() {\n      return this.sessionData.entity?.hasMany('quickBooksConnection').value()?.[0];\n    }\n    get _portalApiToken() {\n      return this.session.data.authenticated.access_token;\n    }\n    get ready() {\n      return this._canUse && this.companyId && this.isConnected;\n    }\n    async connect() {\n      const payload = {\n        entityId: this.sessionData.entity.id,\n        redirectUrl: window.location.toString()\n      };\n      const initQuickbooksResponse = await this.connectAjax(this._portalApiToken, payload);\n      const {\n        consentUrl\n      } = initQuickbooksResponse;\n      window.location.assign(consentUrl);\n    }\n    async disconnect() {\n      await this.disconnectAjax(this._portalApiToken, this.sessionData.entity.id);\n      await this.store.findRecord('quickbooks-oauth2-connection', this.connection.id, {\n        reload: true\n      });\n      window.location.reload();\n    }\n    updateContacts(entity, contact) {\n      const contactId = contact?.id;\n      return this.updateQuickBooksContactsAjax(this._portalApiToken, entity.id, contactId);\n    }\n    createContact(entity, contact) {\n      const contactId = contact?.id;\n      return this.createContactInQuickbooksAjax(this._portalApiToken, entity.id, contactId);\n    }\n    async getAccounts(entity) {\n      try {\n        return this.getQuickBooksAccountsAjax(this._portalApiToken, entity.id);\n      } catch (error) {\n        if (error.status === 404) this.notifications.info('No quickBooks accounts found');\n        throw error;\n      }\n    }\n    async getEmployees(entity) {\n      try {\n        return this.getQuickBooksEmployeesAjax(this._portalApiToken, entity.id);\n      } catch (error) {\n        if (error.status === 404) this.notifications.info('No employees found');\n      }\n    }\n    async sendBill(bill) {\n      try {\n        const response = await this.sendBillToQuickbooks(this._portalApiToken, bill.id);\n        await bill.reload();\n        return response;\n      } catch (error) {\n        return error?.detail || error?.error;\n      }\n    }\n    sendBills(invoices) {\n      return Promise.all(invoices.map(i => this.sendBill(i)));\n    }\n    async sendInvoice(invoice, options) {\n      try {\n        await this.sendInvoiceToQuickbooks(this._portalApiToken, invoice.id, options);\n        await invoice.reload();\n        this.notifications.success('Successfully sent to QuickBooks');\n      } catch (error) {\n        if (error.error === 'QUICKBOOKS_VALIDATION_EXCEPTION') {\n          const combinedMessage = error.detail.join('\\n');\n          this.notifications.warning({\n            message: combinedMessage,\n            clearDuration: 7000\n          });\n          return;\n        }\n        this.notifications.error('Failed to send invoice to QuickBooks');\n      }\n    }\n    createTimesheets(query) {\n      return this.createTimesheetsAjax(this._portalApiToken, query);\n    }\n    handleQuickbooksFetchRequest(callback) {\n      return async (...args) => {\n        try {\n          return await callback(...args);\n        } catch (error) {\n          const status = error?.status ?? error?.response?.status ?? error?.errors?.[0]?.status;\n          const bodyError = error?.response?.data?.error ?? error?.data?.error ?? error?.error;\n          const isQuickbooksAuthError = status === 401 || bodyError === 'Auth error';\n          if (isQuickbooksAuthError) {\n            const address = `${_environment.default.urls.app}/${this.sessionData.entity.id}/settings/integrations`;\n            error.wasAuthenticationError = true;\n            this.notifications.error({\n              error,\n              autoClear: false,\n              message: `${'Your QuickBooks organisation has been disconnected'} ${this.intl.t('common.Go to')} <a href=\"${address}\">settings</a> ${this.intl.t('common.to reconnect')}`\n            });\n            await this.sessionData.entity.reload();\n            (0, _object.get)(this, 'sessionData').notifyPropertyChange('entity');\n            return;\n          }\n          throw error;\n        }\n      };\n    }\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"session\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor4, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      this.connectAjax = connectAjax;\n      this.disconnectAjax = disconnectAjax;\n      this.updateQuickBooksContactsAjax = this.handleQuickbooksFetchRequest(updateQuickBooksContacts);\n      this.getQuickBooksAccountsAjax = this.handleQuickbooksFetchRequest(getQuickBooksAccounts);\n      this.getQuickBooksEmployeesAjax = this.handleQuickbooksFetchRequest(getQuickBooksEmployeesFromQuickbooks);\n      this.sendBillToQuickbooks = this.handleQuickbooksFetchRequest(sendBillToQuickbooks);\n      this.sendCreditNoteToQuickbooks = this.handleQuickbooksFetchRequest(sendCreditNoteToQuickbooks);\n      this.sendInvoiceToQuickbooks = this.handleQuickbooksFetchRequest(sendInvoiceToQuickbooks);\n      this.createTimesheetsAjax = this.handleQuickbooksFetchRequest(createTimesheetsInQuickbooks);\n      this.createContactInQuickbooksAjax = this.handleQuickbooksFetchRequest(createContactInQuickbooks);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n  async function updateQuickBooksContacts(portalApiToken, entity, supplier) {\n    const query = _qs.default.stringify({\n      entity,\n      contact: supplier\n    });\n    return fetchRequestWithToken(`${URLS.updateQuickBooksContacts}?${query}`, portalApiToken, 'POST');\n  }\n  async function getQuickBooksAccounts(portalApiToken, entityId) {\n    return fetchRequestWithToken(`${URLS.getAccounts}/${entityId}`, portalApiToken, 'GET');\n  }\n  async function getQuickBooksEmployeesFromQuickbooks(portalApiToken, entityId) {\n    return fetchRequestWithToken(`${URLS.getEmployees}/${entityId}`, portalApiToken, 'GET');\n  }\n  async function sendBillToQuickbooks(portalApiToken, billId) {\n    return fetchRequestWithToken(`${URLS.syncBill}/${billId}`, portalApiToken, 'POST');\n  }\n  async function sendCreditNoteToQuickbooks(portalApiToken, billId) {\n    return fetchRequestWithToken(`${URLS.syncCreditNote}/${billId}`, portalApiToken, 'POST');\n  }\n  async function sendInvoiceToQuickbooks(portalApiToken, invoiceId, options) {\n    return fetchRequestWithToken(`${URLS.syncInvoice}/${invoiceId}`, portalApiToken, 'POST', options);\n  }\n  async function createTimesheetsInQuickbooks(portalApiToken, query) {\n    return fetchRequestWithToken(`${URLS.createTimesheets}`, portalApiToken, 'POST', query);\n  }\n  async function createContactInQuickbooks(portalApiToken, entityId, contactId) {\n    return fetchRequestWithToken(URLS.createContact, portalApiToken, 'POST', {\n      entity: entityId,\n      contact: contactId\n    });\n  }\n  async function connectAjax(portalApiToken, payload) {\n    return fetchRequestWithToken(URLS.connect, portalApiToken, 'POST', payload);\n  }\n  async function disconnectAjax(portalApiToken, entityId) {\n    const response = await fetch(`${URLS.disconnect}/${entityId}`, {\n      method: 'POST',\n      headers: {\n        Authorization: `Bearer ${portalApiToken}`\n      }\n    });\n    if (!response.ok) {\n      const error = await response.text();\n      throw error;\n    }\n    return response.text();\n  }\n  async function fetchRequestWithToken(url, portalApiToken, method = 'GET', body) {\n    const response = await fetch(url, {\n      method,\n      headers: {\n        Authorization: `Bearer ${portalApiToken}`,\n        'Content-Type': 'application/json'\n      },\n      ...(body ? {\n        body: JSON.stringify(body)\n      } : {})\n    });\n    if (response.status === 204) {\n      if (!response.ok) throw {\n        status: response.status\n      };\n      return null;\n    }\n    const contentType = response.headers.get('Content-Type') || '';\n    const responseData = contentType.includes('application/json') ? await response.json() : await response.text();\n    if (!response.ok) throw responseData;\n    return responseData;\n  }\n});","define(\"portal/services/reports-download\", [\"exports\", \"@ember/service\", \"portal/utils/csv-builder\", \"portal/utils/download\", \"portal/models/attachment\", \"@ember/object\"], function (_exports, _service, _csvBuilder, _download, _attachment, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"@ember/service\",0,\"portal/utils/csv-builder\",0,\"portal/utils/download\",0,\"portal/models/attachment\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _service.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor, this);\n      _initializerDefineProperty(this, \"pdfExport\", _descriptor2, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor3, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor4, this);\n      _initializerDefineProperty(this, \"numberFormat\", _descriptor5, this);\n      _initializerDefineProperty(this, \"store\", _descriptor6, this);\n    }\n    async downloadAsPdf(id, fileName, title, hideClass, config) {\n      await this.pdfExport.generateAndDownloadPdf(id, `${fileName}.pdf`, title, hideClass, config);\n    }\n    async downloadAndSavePdf(id, fileName, title, hideClass, config, resource) {\n      const _fileName = `${fileName}.pdf`;\n      // generate blob\n      const blob = await this.pdfExport.generatePdf(id, title, hideClass, config);\n      (0, _download.download)(blob, _fileName, blob.type);\n\n      //save file to db and attach to project\n      try {\n        const file = new File([blob], _fileName, {\n          type: blob.type\n        });\n        const attachment = await _attachment.default.fromFileInput(file, this.store, this.sessionData.entity);\n        await attachment.save({\n          adapterOptions: {\n            meta: {\n              data: attachment.data\n            }\n          }\n        });\n        switch (modelName(resource)) {\n          case 'entity':\n            {\n              await this.store.createRecord('link-attachment-to-entity', {\n                attachment: attachment,\n                entity: resource\n              }).save();\n              break;\n            }\n          case 'project':\n            {\n              await this.store.createRecord('link-attachment-to-project', {\n                attachment: attachment,\n                project: resource\n              }).save();\n              break;\n            }\n          case 'task':\n            {\n              await this.store.createRecord('link-attachment-to-task', {\n                attachment: attachment,\n                task: resource\n              }).save();\n              break;\n            }\n        }\n      } catch (error) {\n        this.notifications.error({\n          message: 'Something went wrong while saving file',\n          error\n        });\n      }\n    }\n    async downloadAsCsv(fileName, thead, tfoot, title, data, resource = null) {\n      const blob = this.generateReportDataForCSV(fileName, thead, tfoot, title, data);\n      (0, _download.download)(blob, fileName, blob.type);\n      if (resource) {\n        try {\n          const file = new File([blob], `${fileName}.csv`, {\n            type: 'text/csv'\n          });\n          const attachment = await _attachment.default.fromFileInput(file, this.store, this.sessionData.entity);\n          await attachment.save({\n            adapterOptions: {\n              meta: {\n                data: attachment.data\n              }\n            }\n          });\n          switch (modelName(resource)) {\n            case 'entity':\n              {\n                await this.store.createRecord('link-attachment-to-entity', {\n                  attachment: attachment,\n                  entity: resource\n                }).save();\n                break;\n              }\n            case 'project':\n              {\n                await this.store.createRecord('link-attachment-to-project', {\n                  attachment: attachment,\n                  project: resource\n                }).save();\n                break;\n              }\n            case 'task':\n              {\n                await this.store.createRecord('link-attachment-to-task', {\n                  attachment: attachment,\n                  task: resource\n                }).save();\n                break;\n              }\n          }\n        } catch (error) {\n          this.notifications.error({\n            message: 'Something went wrong while saving file',\n            error\n          });\n        }\n      }\n    }\n    generateReportDataForCSV(fileName, thead, tfoot, title, data) {\n      const csv = [[title]];\n      if (thead) csv.push(thead);\n      const formatValue = item => {\n        const {\n          format,\n          value\n        } = item;\n        switch (format) {\n          case 'PERCENTAGE':\n            return this.numberFormat.format(value, {\n              style: 'percent',\n              maximumSignificantDigits: 2,\n              dashZero: true\n            });\n          case 'CURRENCY':\n            return this.numberFormat.format(value, {\n              style: 'currency',\n              dashZero: true\n            });\n          default:\n            return value;\n        }\n      };\n\n      // data is coming as array of arrays\n      const dataRows = function processRows(data) {\n        const csvRow = [];\n        const children = [];\n        for (const dataRow of data) {\n          if (Array.isArray(dataRow)) {\n            children.push(...processRows(dataRow));\n          } else {\n            const value = formatValue(dataRow);\n            csvRow.push(value);\n          }\n        }\n        return [csvRow, ...children];\n      }(data);\n      csv.push(...dataRows);\n      if (tfoot && tfoot.length) {\n        const footRows = function processRows(data) {\n          const csvRow = [];\n          const children = [];\n          for (const dataRow of data) {\n            if (Array.isArray(dataRow)) {\n              children.push(...processRows(dataRow));\n            } else {\n              const value = formatValue(dataRow);\n              csvRow.push(value);\n            }\n          }\n          return [csvRow, ...children];\n        }(tfoot);\n        csv.push(...footRows);\n      }\n      return (0, _csvBuilder.generateCSVBlob)(csv, fileName);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"pdfExport\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"numberFormat\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n  const modelName = resource => {\n    // this can be passed proxy objects so we need to use old school getters\n    return resource ? (0, _object.get)(resource, '_internalModel.modelName') || (0, _object.get)(resource, 'constructor.modelName') : '';\n  };\n});","define(\"portal/services/session-data\", [\"exports\", \"@ember/service\", \"ember-local-storage\", \"@glimmer/tracking\", \"@ember/object\", \"jquery\", \"portal/config/environment\", \"moment\", \"portal/utils/get-default-language\"], function (_exports, _service, _emberLocalStorage, _tracking, _object, _jquery, _environment, _moment, _getDefaultLanguage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"ember-local-storage\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"jquery\",0,\"portal/config/environment\",0,\"@ember/object\",0,\"moment\",0,\"portal/utils/get-default-language\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  function isDestroyingOrDestroyed(owner) {\n    return owner?.isDestroying || owner?.isDestroyed;\n  }\n  let _class = _exports.default = (_dec = (0, _emberLocalStorage.storageFor)('settings'), _class2 = class _class2 extends _service.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _initializerDefineProperty(this, \"session\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      // TODO eventually use this service directly\n      _initializerDefineProperty(this, \"financialPortalPeriodSelector\", _descriptor5, this);\n      _initializerDefineProperty(this, \"persistedSettings\", _descriptor6, this);\n      _initializerDefineProperty(this, \"user\", _descriptor7, this);\n      _initializerDefineProperty(this, \"workerPseudoUser\", _descriptor8, this);\n      // the currently selected entity\n      _initializerDefineProperty(this, \"entity\", _descriptor9, this);\n      _initializerDefineProperty(this, \"entities\", _descriptor0, this);\n    }\n    get period() {\n      return this.financialPortalPeriodSelector.period;\n    }\n    set period(value) {\n      this.financialPortalPeriodSelector.period = value;\n    }\n    // but because of the poorly implemented parent entity concept, this is required\n    // we should fix the existing feature flags and permissions services to not\n    // use the parent entity id as some kind of state\n    get allowedEntities() {\n      return (this.entities || []).filter(e => {\n        // workers and admins don't have to deal with this bs\n        if (this.workerPseudoUser || this.user?.role === 'admin') return true;\n        if (this.user?.role === 'partner') {\n          // partners need all the entities (including the ones they don't have view access to)\n          // besides the parent entity for their main company. This is pretty hacky, but we will\n          // hardcode this until this flow is refactored.\n          const bpLicenseeParentEntityId = '5f88bd41bcf03b06f0878ddd';\n          return e.id !== bpLicenseeParentEntityId;\n        }\n\n        // filter the entities that the user has access to\n        return this.user?.includesSomeClaimsAboutEntity(e.id, 'canViewEntity');\n      });\n    }\n    async _initEntity(entityId) {\n      const entity = await this.store.findRecord('entity', entityId, {\n        // these records are needed to evaluate access control\n        include: 'attributes,financialOptions,pricingConnection,eaccountsInvoiceIntegration,xeroConnection,projects,quickBooksConnection,profitMargin',\n        adapterOptions: {\n          fields: {\n            entities: '_meta.calEducationCouponCode'\n          }\n        }\n      });\n      await this.store.query('entity-attribute', {});\n      this.entity = entity;\n    }\n    async _initEntities() {\n      // this should only be waited for if you need to\n      const entities = await this.store.query('entity', {\n        include: 'attributes'\n      }).then(e => e.toArray());\n      this.entities = entities;\n      return entities;\n    }\n    async _initUser(user) {\n      // if you're logged in with a worker code load the worker\n      if (user.isWorkerPseudoUser) {\n        const loadedWorker = await this.store.findRecord('worker', user.worker._id, {\n          include: 'entityAttributes,projectAttributes,taskAttributes'\n        });\n        this.workerPseudoUser = loadedWorker;\n        const language = loadedWorker?.language ?? (0, _getDefaultLanguage.getDefaultUserOrWorkerLanguage)();\n        this.intl.setLocale([language]);\n\n        // moment does not have support for zh-Hans\n        const momentLocal = language.toLowerCase().startsWith('zh') ? 'zh-cn' : language;\n        _moment.default.locale(momentLocal);\n        return;\n      }\n      const loadedUser = await this.store.findRecord('user', user.id, {\n        include: 'entityAttributes,entityGroups,pricingRoles,projectAttributes,taskAttributes,workerAttributes'\n      });\n      this.user = loadedUser;\n      // set language\n      const language = this.user.language ?? (0, _getDefaultLanguage.getDefaultUserOrWorkerLanguage)();\n      this.intl.setLocale([language]);\n\n      // moment does not have support for zh-Hans\n      const momentLocal = language.toLowerCase().startsWith('zh') ? 'zh-cn' : language;\n      _moment.default.locale(momentLocal);\n    }\n    async initApp(entityId = this.persistedSettings.get('lastEntity')) {\n      if (isDestroyingOrDestroyed(this) || isDestroyingOrDestroyed(this.session)) return;\n      const {\n        user\n      } = this.session.data.authenticated;\n      // TODO to prevent throwing an error to the user we should check if we're\n      // still authenticated before making any requests using the json api\n\n      // load the authenticated user and their permissions\n      // we do this first to make sure we're still authenticated\n      try {\n        await this._initUser(user);\n        if (isDestroyingOrDestroyed(this)) return;\n      } catch (_) {\n        // if this happens the user is not authenticated\n        await this.session.invalidate();\n        return;\n      }\n\n      // this should only be waited for if you need to\n      const entitiesPromise = this._initEntities();\n\n      // only wait for entities when we don't have a previously loaded entity to load\n      if (!entityId) {\n        await entitiesPromise;\n        if (isDestroyingOrDestroyed(this)) return;\n\n        // due to the allowed entities concept you must use the filtered list when assuming the\n        // first entity to select\n        // this needs to happen after the user is loaded\n        entityId = this.allowedEntities[0]?.id;\n      }\n\n      // this will happen when you don't have access to any entities\n      if (!entityId) return this.router.transitionTo('no-access');\n\n      // load the selected entity\n      try {\n        await this._initEntity(entityId);\n        if (isDestroyingOrDestroyed(this)) return;\n      } catch (_) {\n        // if this happens we don't have access for the entity\n        // dump our last logged in entity and restart\n        this.persistedSettings.set('lastEntity', null);\n        return this.initApp();\n      }\n\n      // navigate to the selected entity\n      this.changeEntity(entityId);\n    }\n    async reloadApp(entityId) {\n      if (isDestroyingOrDestroyed(this) || isDestroyingOrDestroyed(this.session)) return;\n      const {\n        user\n      } = this.session.data.authenticated;\n      // TODO to prevent throwing an error to the user we should check if we're\n      // still authenticated before making any requests using the json api\n\n      // we don't need to wait for this\n      this._initEntities();\n\n      // load the authenticated user and their permissions\n      try {\n        await this._initUser(user);\n        if (isDestroyingOrDestroyed(this)) return;\n      } catch (_) {\n        // if this happens the user is not authenticated\n        await this.session.invalidate();\n        return;\n      }\n      // load the selected entity\n      try {\n        await this._initEntity(entityId);\n        if (isDestroyingOrDestroyed(this)) return;\n      } catch (_) {\n        // if this happens we don't have access for the entity\n        // dump our last logged in entity and restart\n        this.persistedSettings.set('lastEntity', null);\n        return this.initApp();\n      }\n    }\n    changeEntity(entityId) {\n      if (isDestroyingOrDestroyed(this) || isDestroyingOrDestroyed(this.router)) return;\n      this.entity = this.store.peekRecord('entity', entityId);\n      // remember the last selected entity for next time\n      this.persistedSettings.set('lastEntity', entityId);\n      this.router.transitionTo('entity', entityId);\n    }\n\n    // login as admin only feature\n    get isUsingLoginAs() {\n      if (isDestroyingOrDestroyed(this) || isDestroyingOrDestroyed(this.session)) return false;\n      return Boolean(this.session.data.authenticated.originalUserData);\n    }\n    get isUsingAdminMode() {\n      if (isDestroyingOrDestroyed(this) || isDestroyingOrDestroyed(this.persistedSettings)) return false;\n      return this.persistedSettings.get('adminMode');\n    }\n    toggleAdminMode() {\n      if (isDestroyingOrDestroyed(this) || isDestroyingOrDestroyed(this.router) || isDestroyingOrDestroyed(this.persistedSettings)) return;\n      this.persistedSettings.set('adminMode', !this.isUsingAdminMode);\n      this.router.transitionTo('index');\n    }\n    loginAs(user) {\n      this.persistedSettings.set('adminMode', false);\n      const access_token = (0, _object.get)(this, 'session.data.authenticated.access_token');\n      _jquery.default.ajax({\n        method: 'post',\n        url: `${_environment.default.urls.api}${_environment.default.urls.apiV1Path}/login-as/${(0, _object.get)(user, 'id')}`,\n        headers: {\n          Authorization: `Bearer ${access_token}`\n        },\n        dataType: 'json'\n      }).then(async authResponse => {\n        authResponse.originalUserData = (0, _object.get)(this, 'session.data.authenticated');\n        await (0, _object.get)(this, 'session').authenticate('authenticator:login-as', authResponse);\n\n        // Reload the application with new user data.\n        location.reload();\n      });\n    }\n    exitLoginAs() {\n      const authenticatedData = (0, _object.get)(this, 'session.data.authenticated');\n      if (!(0, _object.get)(authenticatedData, 'originalUserData')) return console.error('There is no user data to go back to. Just log out.');\n\n      // Reauthenticate using the original user data. This is what will subsequently be saved to local storage\n      const authenticate = (0, _object.get)(this, 'session').authenticate('authenticator:login-as', (0, _object.get)(authenticatedData, 'originalUserData'));\n\n      // Reload the application with new user data.\n      authenticate.then(() => {\n        window.location.reload();\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"financialPortalPeriodSelector\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"persistedSettings\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"user\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"workerPseudoUser\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"entities\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"toggleAdminMode\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"toggleAdminMode\"), _class2.prototype), _class2);\n});","define(\"portal/services/session\", [\"exports\", \"@ember/service\", \"ember-simple-auth/services/session\"], function (_exports, _service, _session) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"ember-simple-auth/services/session\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _session.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n    }\n    // https://ember-simple-auth.com/api/SessionService.html\n    // This method is called whenever the session goes from being unauthenticated to being authenticated.\n    handleAuthentication(routeAfterAuthentication) {\n      if (!this.data.authenticated.user?.hasAcceptedTerms) {\n        this.router.transitionTo('terms-of-service');\n        return;\n      }\n      super.handleAuthentication(routeAfterAuthentication);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/services/store\", [\"exports\", \"ember-data/store\"], function (_exports, _store) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-data/store\"eaimeta@70e063a35619d71f\n  class ApplicationStore extends _store.default {\n    simpleQuery(modelName, query, options = {}) {\n      let simpleQuery = {\n        filter: {\n          simple: query\n        }\n      };\n      for (let [key, value] of Object.entries(options)) {\n        simpleQuery[key] = value;\n      }\n      return this.query(modelName, simpleQuery);\n    }\n    simpleQueryRecord(modelName, query, options = {}) {\n      let simpleQuery = {\n        filter: {\n          simple: query\n        }\n      };\n      for (let [key, value] of Object.entries(options)) {\n        simpleQuery[key] = value;\n      }\n      return this.queryRecord(modelName, simpleQuery);\n    }\n  }\n  _exports.default = ApplicationStore;\n});","define(\"portal/services/system-announcements\", [\"exports\", \"@ember/service\", \"@glimmer/tracking\", \"@ember/object\"], function (_exports, _service, _tracking, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const POLL_INTERVAL_MS = 30 * 60 * 1000; // 30 minutes\n  let SystemAnnouncementsService = _exports.default = (_class = class SystemAnnouncementsService extends _service.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _initializerDefineProperty(this, \"announcementData\", _descriptor3, this);\n      this.pollService();\n    }\n    async checkForData() {\n      if (this.announcementData?.length) {\n        return;\n      }\n      let data = await this.buildaPrice.getSystemAnnouncements(this.intl?.locale?.[0]);\n      let unreadAnnouncements = data.filter(item => !item.archived && !item.read);\n      if (unreadAnnouncements.length) {\n        this.announcementData = unreadAnnouncements;\n      }\n    }\n    async pollService() {\n      try {\n        await this.checkForData();\n      } catch (_) {\n        // ignore error\n      } finally {\n        setTimeout(() => this.pollService(), POLL_INTERVAL_MS);\n      }\n    }\n    async dismissAnnouncementModal() {\n      try {\n        // mark them as read\n        const payload = this.announcementData.map(item => ({\n          systemAnnouncementId: item.id,\n          read: true,\n          archived: true\n        }));\n        await this.buildaPrice.updateSystemAnnouncements(payload);\n      } catch {\n        // ignore error\n      } finally {\n        this.announcementData = null;\n      }\n    }\n    closeAnnouncementModal() {\n      this.announcementData = null;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"announcementData\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"dismissAnnouncementModal\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"dismissAnnouncementModal\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeAnnouncementModal\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"closeAnnouncementModal\"), _class.prototype), _class);\n});","define(\"portal/services/xero-integration\", [\"exports\", \"@ember/service\", \"@ember/object\", \"rsvp\", \"portal/config/environment\", \"qs\"], function (_exports, _service, _object, _rsvp, _environment, _qs) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"@ember/object\",0,\"rsvp\",0,\"portal/config/environment\",0,\"qs\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const XeroAppsEnum = {\n    buildaPrice: 'buildaPrice',\n    stepUp: 'stepUp'\n  };\n  const URLS = {\n    connect: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/xero/connect',\n    disconnect: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/xero/disconnect',\n    oauthCallback: _environment.default.xero.callback,\n    authorizeRedirect: _environment.default.xero.authorizeRedirect,\n    syncBill: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/xero/sync-invoice',\n    syncInvoice: _environment.default.urls.api + _environment.default.urls.apiV2Path + '/integrations/xero/push-invoice',\n    syncCreditNote: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/xero/sync-credit-note',\n    updateXeroSuppliers: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/xero/update-suppliers',\n    createXeroContact: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/xero/create-contact',\n    createXeroTimesheets: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/xero/create-timesheets',\n    getAccounts: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/xero/get-accounts',\n    getEmployees: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/xero/get-employees',\n    getPayRunCalendars: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/xero/get-pay-run-calendars',\n    getEarningsRates: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/xero/get-earnings-rates',\n    getTrackingCategoryOptions: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/xero/get-tracking-categories',\n    getBalances: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/xero/balances'\n  };\n  let XeroService = _exports.default = (_class = class XeroService extends _service.default {\n    // Shortcuts to outside info\n    get connection() {\n      return this.sessionData.entity?.hasMany('xeroConnection').value()?.[0];\n    }\n    get companyId() {\n      return this.connection?.xeroCompanyId;\n    }\n    get companyName() {\n      return this.connection?.xeroCompanyName;\n    }\n    get _canUse() {\n      return this.newFeatureFlags.includesFeatureFlags('canUseXeroIntegration');\n    }\n    get _portalApiToken() {\n      return this.session.data.authenticated.access_token;\n    }\n\n    /* -------------------------- Public members and functions -------------------------- */\n\n    /**\n     * Says whether the integration is ready to use. To be ready, the user and entity must have\n     * adequate permissions (as dictated by permissions service), and the entity must be set up.\n     */\n    get ready() {\n      return this._canUse && this.companyId;\n    }\n\n    /**\n     * @returns {Promise<void>}\n     */\n    async connect() {\n      const xeroApp = this.sessionData.entity?.brand === 'STEP_UP' ? XeroAppsEnum.stepUp : XeroAppsEnum.buildaPrice;\n      const payload = {\n        entityId: this.sessionData.entity.id,\n        redirectUrl: window.location.toString(),\n        app: xeroApp\n      };\n      const initXeroResponse = await this.connectAjax(this._portalApiToken, payload);\n      const {\n        consentUrl\n      } = initXeroResponse;\n      this.redirectTo(consentUrl);\n    }\n\n    /**\n     * Hands the browser over to Xero's consent screen. Split out of `connect` so\n     * tests can observe the hand-off without leaving the page: `location.assign`\n     * is unforgeable, so it cannot be stubbed in place.\n     * @param {String} url\n     */\n    redirectTo(url) {\n      window.location.assign(url);\n    }\n\n    /**\n     * Disconnects the entity from Xero. If promise resolves, it was successful.\n     * @returns {Promise<void>}\n     */\n    async disconnect() {\n      const entity = this.sessionData.entity;\n      const connections = entity.hasMany('xeroConnection').value()?.toArray() || [];\n      await this.disconnectAjax(this._portalApiToken, entity.id);\n      connections.forEach(connection => connection.unloadRecord());\n    }\n\n    /**\n     * Creates a matching invoice on whichever Xero company has been authenticated.\n     * Rejects immediately if there is no authentication, rejects if anything else goes wrong.\n     * Takes care of notifications.\n     * @param {Bill} bill - The bill to send to Xero\n     * @returns {Promise<null>} Resolves when the invoice is successfully sent to Xero\n     */\n    async sendBill(invoice) {\n      const xeroCreditNoteAccountError = new Error('All credit note items must have a Xero account');\n      try {\n        const totalPrice = invoice.totalPrice;\n        let response;\n        // invoice has a positive total so make an invoice\n        if (totalPrice >= 0) {\n          response = await this.sendBillToXero(this._portalApiToken, invoice.id);\n          // invoice has a negative total so make a credit note\n        } else if (totalPrice < 0) {\n          // account codes are required for each item of a xero credit note\n          const xeroReady = invoice.hasMany('items').value().toArray().every(item => item.belongsTo('glAccount').id());\n          if (xeroReady) {\n            response = await this.sendCreditNoteToXero(this._portalApiToken, invoice.id);\n          } else {\n            throw xeroCreditNoteAccountError;\n          }\n        }\n\n        // Refresh the invoice to make sure we get the xeroInvoiceId is loaded\n        await invoice.reload();\n        return response;\n      } catch (error) {\n        // error has been handled\n        if (error.wasAuthenticationError) return;\n\n        // handle for unmapped items on credit note\n        if (error === xeroCreditNoteAccountError) {\n          this.notifications.warning(error);\n          return;\n        }\n        const isXeroInvoiceValidationError = 'invoice:validation_error' === (0, _object.get)(error, 'errors.0.code');\n        if (isXeroInvoiceValidationError) {\n          this.notifications.warning({\n            message: (0, _object.get)(error, 'errors.0.title'),\n            clearDuration: 5000\n          });\n          return;\n        }\n        this.notifications.error(this.intl.t('services.xero-integration.Failed to send invoice to Xero'));\n        return;\n      }\n    }\n\n    /**\n     * Sends invoices to Xero.\n     * @param {Array} invoices - The invoices you want sent to Xero\n     * @returns {Promise<null>} Resolves when the invoice is successfully sent to Xero\n     */\n    sendBills(invoices) {\n      return _rsvp.Promise.all(invoices.map(i => this.sendBill(i)));\n    }\n\n    /**\n     * Creates a matching invoice on whichever Xero company has been authenticated.\n     * Rejects immediately if there is no authentication, rejects if anything else goes wrong.\n     * Takes care of notifications.\n     * @param {Invoice} invoice - The invoice to send to Xero\n     * @returns {Promise<null>} Resolves when the invoice is successfully sent to Xero\n     */\n    async sendInvoice(invoice, options) {\n      try {\n        await this.sendInvoiceToXero(this._portalApiToken, invoice.id, options);\n\n        // Refresh the invoice to make sure we get the xeroInvoiceId is loaded\n        await invoice.reload();\n        this.notifications.success(this.intl.t('services.xero-integration.Successfully sent to Xero'));\n      } catch (error) {\n        // error has been handled\n        if (error.wasAuthenticationError) return;\n        if (error.error === 'XERO_VALIDATION_EXCEPTION') {\n          const combinedMessage = error.detail.join('\\n');\n          this.notifications.warning({\n            message: combinedMessage,\n            clearDuration: 7000\n          });\n          return;\n        }\n        this.notifications.error(this.intl.t('services.xero-integration.Failed to send invoice to Xero'));\n      }\n    }\n\n    /**\n     * Finds all contacts on the entities linked Xero account.\n     * @param {Entity} entity - The entity you want to get contacts for\n     * @param {Supplier} supplier - (Optional) The supplier to update\n     * @returns {Promise} suppliers - The new Xero suppliers\n     */\n    updateXeroSuppliers(entity, supplier) {\n      const supplierId = supplier && supplier.id;\n      return this.updateXeroSuppliersAjax(this._portalApiToken, entity.id, supplierId);\n    }\n\n    /**\n     * Creates a Xero contact from a supplier.\n     * @param {Entity} entity - The entity you want to create the contact from\n     * @param {Supplier} supplier - The supplier you want to sent to Xero\n     * @returns {Promise}\n     */\n    createXeroContact(entity, supplier) {\n      const supplierId = supplier && supplier.id;\n      return this.createXeroContactAjax(this._portalApiToken, entity.id, supplierId);\n    }\n    createXeroTimesheets(query) {\n      return this.createXeroTimesheetsAjax(this._portalApiToken, query);\n    }\n\n    /**\n     * Finds all accounts on the entities linked Xero account.\n     * @param {Entity} entity - The entity you want to get xero accounts for\n     * @returns {Promise} suppliers - The new Xero suppliers\n     */\n    async getAccounts(entity) {\n      return this.getXeroAccountsAjax(this._portalApiToken, entity.id).catch(error => {\n        if (error.status === 404) this.notifications.info(this.intl.t('services.xero-integration.No Xero accounts found'));\n        throw error;\n      });\n    }\n\n    /**\n     * Finds all employees on the entities linked Xero account.\n     * @param {Entity} entity - The entity you want to get xero accounts for\n     * @returns {Promise} suppliers - The new Xero suppliers\n     */\n    async getEmployees(entity) {\n      try {\n        return this.getXeroEmployeesAjax(this._portalApiToken, entity.id);\n      } catch (error) {\n        if (error.status === 404) this.notifications.info(this.intl.t('services.xero-integration.No Xero employees found'));\n        // TODO handle this error correctly - we need our Xero developer app fixed\n        this.notifications.warning(this.intl.t('services.xero-integration.yourXeroOrganisationDoesNotHavePayrollSetupCorrectly'));\n      }\n    }\n\n    /**\n     * Finds all xero tracking category options on the entities linked Xero account.\n     * @param {Entity} entity - The entity you want to get xero accounts for\n     * @returns {Promise} suppliers - The new Xero suppliers\n     */\n    async getTrackingCategoryOptions(entity) {\n      try {\n        return await this.getXeroTrackingCategoryOptionsAjax(this._portalApiToken, entity.id);\n      } catch (error) {\n        if (error.status === 404) this.notifications.info(this.intl.t('services.xero-integration.No Xero category options found'));\n        // TODO handle this error correctly - we need our Xero developer app fixed\n        this.notifications.warning(this.intl.t('services.xero-integration.yourXeroOrganisationDoesNotHavePayrollSetupCorrectly'));\n      }\n    }\n\n    /**\n     * Finds all pay run calendars on the entities linked Xero account.\n     * @param {Entity} entity - The entity you want to get xero accounts for\n     * @returns {Promise} suppliers - The new Xero suppliers\n     */\n    async getPayRunCalendars(entity) {\n      try {\n        const entityId = entity.id;\n        return await this.getXeroPayRunCalendarsAjax(this._portalApiToken, entityId);\n      } catch (error) {\n        if (error.status === 404) this.notifications.info(this.intl.t('services.xero-integration.No Xero payroll calendars found'));\n        // TODO handle this error correctly - we need our Xero developer app fixed\n        this.notifications.warning(this.intl.t('services.xero-integration.yourXeroOrganisationDoesNotHavePayrollSetupCorrectly'));\n      }\n    }\n\n    /**\n     * Finds all earnings rates on the entities linked Xero account.\n     * @param {Entity} entity - The entity you want to get xero accounts for\n     * @returns {Promise} suppliers - The new Xero suppliers\n     */\n    async getXeroEarningsRates(entity) {\n      try {\n        const entityId = entity.id;\n        return await this.getXeroEarningsRatesAjax(this._portalApiToken, entityId);\n      } catch (error) {\n        if (error.status === 404) this.notifications.info(this.intl.t('services.xero-integration.No Xero earnings rates found'));\n        // TODO handle this error correctly - we need our Xero developer app fixed\n        this.notifications.warning(this.intl.t('services.xero-integration.yourXeroOrganisationDoesNotHavePayrollSetupCorrectly'));\n      }\n    }\n    async getXeroBalances(payload) {\n      return this.getXeroBalancesAjax(this._portalApiToken, payload);\n    }\n\n    /**\n     * Handles errors from Ajax functions.\n     * @param {Function} callback The Ajax request to handle\n     * @returns {callback<Promise>} The Ajax request\n     */\n    handleXeroFetchRequest(callback) {\n      return async (...args) => {\n        const intl = this.intl;\n        try {\n          return await callback(...args);\n        } catch (error) {\n          const title = error?.errors?.[0]?.title || error?.title;\n          const status = error?.errors?.[0]?.status || error?.status;\n          if (title === 'Xero Error: Minute rate limit exceeded' && status === '429') {\n            this.notifications.error({\n              error,\n              autoClear: false,\n              message: intl.t('services.xero-integration.youHaveExportedTooManyItemsToXeroTooQuicklyPleaseWaitAMinuteBeforeSendingMoreOrExportASmallerBatch') // eslint-disable-line max-len\n            });\n          } else if (status === '403' && ['The entity is not authenticated to Xero', 'The entity has a stale Xero refresh token and must be reconnected', 'A xero connection can not be found for entity'].includes(title)) {\n            const address = `${_environment.default.urls.app}/${this.sessionData.entity.id}/settings/integrations`;\n            error.wasAuthenticationError = true;\n            this.notifications.error({\n              error,\n              autoClear: false,\n              message: `${intl.t('services.xero-integration.yourXeroOrganisationHasBeenDisconnected')} ${intl.t('common.Go to')} <a href=\"${address}\">settings</a> ${intl.t('common.to reconnect')}`\n            });\n            await this.sessionData.entity.reload();\n            (0, _object.get)(this, 'sessionData').notifyPropertyChange('entity');\n          }\n          throw error;\n        }\n      };\n    }\n    handleV2XeroFetchRequest(callback) {\n      return async (...args) => {\n        try {\n          return await callback(...args);\n        } catch (error) {\n          const isXeroAuthError = error?.error === 'XERO_AUTH_ERROR';\n          if (isXeroAuthError) {\n            const address = `${_environment.default.urls.app}/${this.sessionData.entity.id}/settings/integrations`;\n            error.wasAuthenticationError = true;\n            this.notifications.error({\n              error,\n              autoClear: false,\n              message: `${this.intl.t('services.xero-integration.yourXeroOrganisationHasBeenDisconnected')} ${this.intl.t('common.Go to')} <a href=\"${address}\">settings</a> ${this.intl.t('common.to reconnect')}`\n            });\n            await this.sessionData.entity.reload();\n            (0, _object.get)(this, 'sessionData').notifyPropertyChange('entity');\n            return;\n          }\n          throw error;\n        }\n      };\n    }\n\n    /* -------------------------- Private members and functions -------------------------- */\n    /*\n    Async calls. Add them to context so that they can be mocked in testing.\n    Also declare them outside of context to enforce purity.\n    */\n\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"session\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor4, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      this.connectAjax = connectAjax;\n      this.disconnectAjax = disconnectAjax;\n      this.sendBillToXero = this.handleXeroFetchRequest(sendBillToXero);\n      this.sendInvoiceToXero = this.handleV2XeroFetchRequest(sendInvoiceToXero);\n      this.sendCreditNoteToXero = this.handleXeroFetchRequest(sendCreditNoteToXero);\n      this.updateXeroSuppliersAjax = this.handleXeroFetchRequest(updateXeroSuppliersAjax);\n      this.createXeroContactAjax = this.handleXeroFetchRequest(createXeroContactAjax);\n      this.createXeroTimesheetsAjax = this.handleXeroFetchRequest(createXeroTimesheetsAjax);\n      this.getXeroAccountsAjax = this.handleXeroFetchRequest(getXeroAccountsAjax);\n      this.getXeroEmployeesAjax = this.handleXeroFetchRequest(getXeroEmployeesAjax);\n      this.getXeroTrackingCategoryOptionsAjax = this.handleXeroFetchRequest(getXeroTrackingCategoryOptionsAjax);\n      this.getXeroBalancesAjax = this.handleXeroFetchRequest(getXeroBalancesAjax);\n      this.getXeroPayRunCalendarsAjax = this.handleXeroFetchRequest(getXeroPayRunCalendarsAjax);\n      this.getXeroEarningsRatesAjax = this.handleXeroFetchRequest(getXeroEarningsRatesAjax);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n  /**\n   * Requests that the server send the given invoice to Xero.\n   * @param {String} portalApiToken\n   * @param {String} invoiceId\n   * @returns {Promise} Resolves if the operation was a success.\n   */\n  async function sendBillToXero(portalApiToken, invoiceId) {\n    return fetchRequestWithToken(`${URLS.syncBill}/${invoiceId}`, portalApiToken, 'POST');\n  }\n\n  /**\n   * Requests that the server send the given invoice to Xero.\n   * @param {String} portalApiToken\n   * @param {String} invoiceId\n   * @returns {Promise} Resolves if the operation was a success.\n   */\n  async function sendInvoiceToXero(portalApiToken, invoiceId, options) {\n    return fetchRequestWithToken(`${URLS.syncInvoice}/${invoiceId}`, portalApiToken, 'POST', options);\n  }\n\n  /**\n   * Requests that the server send the given invoice to Xero.\n   * @param {String} portalApiToken\n   * @param {String} invoiceId\n   * @returns {Promise} Resolves if the operation was a success.\n   */\n  async function sendCreditNoteToXero(portalApiToken, invoiceId) {\n    return fetchRequestWithToken(`${URLS.syncCreditNote}/${invoiceId}`, portalApiToken, 'POST');\n  }\n\n  /**\n   * Requests that the server saves and sends the Xero contacts for this entity.\n   * @param {String} portalApiToken\n   * @param {String} entity\n   * @param {String} supplier - (optional)\n   * @returns {Promise} Resolves if the operation was a success.\n   */\n  async function updateXeroSuppliersAjax(portalApiToken, entity, supplier) {\n    const query = _qs.default.stringify({\n      entity,\n      supplier\n    });\n    return fetchRequestWithToken(`${URLS.updateXeroSuppliers}?${query}`, portalApiToken, 'POST');\n  }\n\n  /**\n   * Requests that the server create a Xero contact from the supplier provided.\n   * @param {String} portalApiToken\n   * @param {String} entity\n   * @param {String} supplier\n   * @returns {Promise}\n   */\n  async function createXeroContactAjax(portalApiToken, entity, supplier) {\n    const query = _qs.default.stringify({\n      entity,\n      supplier\n    });\n    return fetchRequestWithToken(`${URLS.createXeroContact}?${query}`, portalApiToken, 'POST');\n  }\n\n  /**\n   * TODO\n   * @param {String} portalApiToken\n   * @param {Object} query\n   * @returns {Promise}\n   */\n  async function createXeroTimesheetsAjax(portalApiToken, query) {\n    return fetchRequestWithToken(`${URLS.createXeroTimesheets}`, portalApiToken, 'POST', query);\n  }\n\n  /**\n   * Requests that the server saves and sends the Xero accounts for this entity.\n   * @param {String} portalApiToken\n   * @param {String} entityId\n   * @returns {Promise} Resolves if the operation was a success.\n   */\n  async function getXeroAccountsAjax(portalApiToken, entityId) {\n    return fetchRequestWithToken(`${URLS.getAccounts}/${entityId}`, portalApiToken, 'GET');\n  }\n\n  /**\n   * Requests that the server saves and sends the Xero employees for this entity.\n   * @param {String} portalApiToken\n   * @param {String} entityId\n   * @returns {Promise} Resolves if the operation was a success.\n   */\n  async function getXeroEmployeesAjax(portalApiToken, entityId) {\n    return fetchRequestWithToken(`${URLS.getEmployees}/${entityId}`, portalApiToken, 'GET');\n  }\n\n  /**\n   * Requests that the server saves and sends the Xero category options for this entity.\n   * @param {String} portalApiToken\n   * @param {String} entityId\n   * @returns {Promise} Resolves if the operation was a success.\n   */\n  async function getXeroTrackingCategoryOptionsAjax(portalApiToken, entityId) {\n    return fetchRequestWithToken(`${URLS.getTrackingCategoryOptions}/${entityId}`, portalApiToken, 'GET');\n  }\n\n  /**\n   * Requests that the server saves and sends the Xero pay run calendars for this entity.\n   * @param {String} portalApiToken\n   * @param {String} entityId\n   * @returns {Promise} Resolves if the operation was a success.\n   */\n  async function getXeroPayRunCalendarsAjax(portalApiToken, entityId) {\n    return fetchRequestWithToken(`${URLS.getPayRunCalendars}/${entityId}`, portalApiToken, 'GET');\n  }\n\n  /**\n   * Requests that the server saves and sends the Xero pay run calendars for this entity.\n   * @param {String} portalApiToken\n   * @param {String} entityId\n   * @returns {Promise} Resolves if the operation was a success.\n   */\n  async function getXeroEarningsRatesAjax(portalApiToken, entityId) {\n    return fetchRequestWithToken(`${URLS.getEarningsRates}/${entityId}`, portalApiToken, 'GET');\n  }\n  async function getXeroBalancesAjax(portalApiToken, payload) {\n    return fetchRequestWithToken(`${URLS.getBalances}`, portalApiToken, 'POST', payload);\n  }\n\n  /**\n   * Gets a request token from the server. First step of oauth.\n   * @param {String} portalApiToken\n   * @param {object} payload\n   * @returns {Promise<Object>} Contains `request_token` which needs to be added to the query string when redirecting to Xero\n   */\n  async function connectAjax(portalApiToken, payload) {\n    return fetchRequestWithToken(URLS.connect, portalApiToken, 'POST', payload);\n  }\n  async function disconnectAjax(portalApiToken, entityId) {\n    const response = await fetch(`${URLS.disconnect}/${entityId}`, {\n      method: 'POST',\n      headers: {\n        Authorization: `Bearer ${portalApiToken}`\n      }\n    });\n    if (!response.ok) {\n      const error = await response.text();\n      throw error;\n    }\n    return response.text();\n  }\n\n  /**\n   *\n   * @param {string} url\n   * @param {string} portalApiToken\n   * @param {string} [method='GET'] - The HTTP method. Examples: 'GET', 'POST', 'PUT', 'DELETE'\n   * @param {string} query\n   * @param {string} body\n   * @returns\n   */\n  async function fetchRequestWithToken(url, portalApiToken, method = 'GET', body) {\n    const response = await fetch(url, {\n      method,\n      headers: {\n        Authorization: `Bearer ${portalApiToken}`,\n        'Content-Type': 'application/json'\n      },\n      ...(body ? {\n        body: JSON.stringify(body)\n      } : {})\n    });\n    const contentType = response.headers.get('Content-Type') || '';\n    let responseData;\n    if (contentType.includes('application/json')) {\n      responseData = await response.json();\n    } else {\n      responseData = await response.text();\n    }\n    if (!response.ok) {\n      throw responseData;\n    }\n    return responseData;\n  }\n});","define(\"portal/session-stores/application\", [\"exports\", \"ember-simple-auth/session-stores/adaptive\", \"portal/config/environment\"], function (_exports, _adaptive, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-simple-auth/session-stores/adaptive\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _adaptive.default.extend({\n    // Use a different key when using Mirage, just so we don't have to keep logging back in when switching\n    localStorageKey: _environment.default.useMirage ? 'ember_simple_auth:mirage_session' : 'ember_simple_auth:session'\n  });\n});","define(\"portal/storages/settings\", [\"exports\", \"ember-local-storage/local/object\"], function (_exports, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-local-storage/local/object\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _object.default.extend();\n});","define(\"portal/templates/admin-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"TLdMLr8c\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/admin-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/admin\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! TODO this entire route isn't setup for mobile because it isn't accessible and it's admin only }}\n  {{#if (media 'isDesktop')}}\n    <TitleBar>\n      <div\n        class='d-flex align-items-center mx-3'\n        {{! ember wormhole id }}\n        id='title-bar__content'\n      ></div>\n  \n    </TitleBar>\n    <div class='page__container'>\n      <ModuleNavigation::Admin />\n  \n      <main class='page__container-content'>\n        {{outlet}}\n      </main>\n    </div>\n  {{else}}\n    <MobileTitleBar>\n      <div class='mobile-title-bar__left'>\n        <FromElsewhere @name='mobile-title-bar-left-content' />\n      </div>\n      <div class='mobile-title-bar__middle'>\n        <FromElsewhere @name='mobile-title-bar-middle-content' />\n      </div>\n      <div class='mobile-title-bar__right'>\n        <FromElsewhere @name='mobile-title-bar-right-content' />\n        <MobileTitleBar::Avatar>\n          <FromElsewhere @name='mobile-title-bar-avatar-content' />\n        </MobileTitleBar::Avatar>\n      </div>\n    </MobileTitleBar>\n    <MobileSideMenu>\n      <FromElsewhere @name='mobile-side-menu-content' />\n    </MobileSideMenu>\n  \n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component 'mobile-title-bar/burger-button'}}\n    />\n    <ToElsewhere\n      @named='mobile-side-menu-content'\n      @send={{component 'module-navigation/admin'}}\n    />\n    <main class='page__container-content'>\n      {{outlet}}\n    </main>\n  {{/if}}\n  */\n  {\n    \"id\": \"WIsXvq3A\",\n    \"block\": \"[[[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"  \\\"],[8,[39,2],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center mx-3\\\"],[14,1,\\\"title-bar__content\\\"],[12],[13],[1,\\\"\\\\n\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"page__container\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,4],null,null,null],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content\\\"],[12],[1,\\\"\\\\n      \\\"],[46,[28,[37,7],null,null],null,null,null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[8,[39,8],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"mobile-title-bar__left\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,9],null,[[\\\"@name\\\"],[\\\"mobile-title-bar-left-content\\\"]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"mobile-title-bar__middle\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,9],null,[[\\\"@name\\\"],[\\\"mobile-title-bar-middle-content\\\"]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"mobile-title-bar__right\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,9],null,[[\\\"@name\\\"],[\\\"mobile-title-bar-right-content\\\"]],null],[1,\\\"\\\\n      \\\"],[8,[39,10],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[39,9],null,[[\\\"@name\\\"],[\\\"mobile-title-bar-avatar-content\\\"]],null],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n  \\\"],[8,[39,11],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,9],null,[[\\\"@name\\\"],[\\\"mobile-side-menu-content\\\"]],null],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,12],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/burger-button\\\",0,null,null]]],null],[1,\\\"\\\\n  \\\"],[8,[39,12],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-side-menu-content\\\",[50,\\\"module-navigation/admin\\\",0,null,null]]],null],[1,\\\"\\\\n  \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,7],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"media\\\",\\\"title-bar\\\",\\\"div\\\",\\\"module-navigation/admin\\\",\\\"main\\\",\\\"component\\\",\\\"-outlet\\\",\\\"mobile-title-bar\\\",\\\"from-elsewhere\\\",\\\"mobile-title-bar/avatar\\\",\\\"mobile-side-menu\\\",\\\"to-elsewhere\\\"]]\",\n    \"moduleName\": \"portal/templates/admin.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/admin/announcements\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='mx-4 mt-4'>\n    <header class='border-bottom pb-2 mb-3 d-flex align-items-center'>\n      <h2 class='flex-grow-1 m-0 my-2'>Announcements</h2>\n    </header>\n    {{outlet}}\n  </article>\n  */\n  {\n    \"id\": \"6bjZNnOe\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom pb-2 mb-3 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"Announcements\\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[46,[28,[37,4],null,null],null,null,null],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"article\\\",\\\"header\\\",\\\"h2\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/admin/announcements.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/admin/announcements/announcement\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <div class='mb-3 ms-1 mt-1'>\n      <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n    </div>\n    <div hidden {{did-insert (perform this.initProps)}} />\n    <PtlForm class='width--medium'>\n      <div class='d-flex mb-3 align-items-center'>\n        <h3 class='m-0'>Details</h3>\n      </div>\n      <PtlInput\n        @type='text'\n        @label='Title'\n        @key='title'\n        @model={{this.announcementChangeset}}\n        @required={{true}}\n        @forceValidationVisible={{gt this.saveAnnouncement.performCount 0}}\n        disabled={{this.saveAnnouncement.isRunning}}\n      />\n      <PtlInput\n        @type='richtext'\n        @label='Message'\n        @key='message'\n        @model={{this.announcementChangeset}}\n        @required={{true}}\n        @forceValidationVisible={{gt this.saveAnnouncement.performCount 0}}\n        disabled={{this.saveAnnouncement.isRunning}}\n        @height='200px'\n      />\n  \n      <PtlInput\n        @type='datetime'\n        @label='Valid from'\n        @key='validFrom'\n        @dependantValidationKeys={{array 'validUntil'}}\n        @model={{this.announcementChangeset}}\n        @forceValidationVisible={{gt this.saveAnnouncement.performCount 0}}\n        disabled={{this.saveAnnouncement.isRunning}}\n      />\n      <PtlInput\n        @type='datetime'\n        @label='Valid until'\n        @key='validUntil'\n        @dependantValidationKeys={{array 'validFrom'}}\n        @model={{this.announcementChangeset}}\n        @forceValidationVisible={{gt this.saveAnnouncement.performCount 0}}\n        disabled={{this.saveAnnouncement.isRunning}}\n      />\n  \n      <PtlInput\n        @type='checkbox'\n        @label='Important'\n        @key='important'\n        @model={{this.announcementChangeset}}\n        @role='switch'\n        @forceValidationVisible={{gt this.saveAnnouncement.performCount 0}}\n        disabled={{this.saveAnnouncement.isRunning}}\n      />\n  \n      <h3>Who will see this announcement</h3>\n  \n      <h5 class='m-0 mb-2'>Apply entity presets</h5>\n      <div class='mb-3'>\n        <button\n          type='button'\n          class='btn btn-primary btn-sm'\n          disabled={{this.hasBuildaPriceFeatures}}\n          {{on 'click' this.setBuildaPriceFeatures}}\n        >\n          All Builda Price entities\n        </button>\n        <button\n          type='button'\n          {{on 'click' this.setFinancialPortalFeatures}}\n          disabled={{this.hasFinancialPortalFeatures}}\n          class='btn btn-primary btn-sm ms-2'\n        >\n          All Financial Portal entities\n        </button>\n      </div>\n      <div class='mb-3'>\n        <label class='no-wrap mb-1'>\n          Entity features\n          <sup class='text-danger'>*</sup>\n        </label>\n        <PowerSelectMultiple\n          @options={{this.model.entityAttributes.last.value}}\n          @selected={{this.entityAttributes}}\n          @searchEnabled={{true}}\n          @searchField='id'\n          @renderInPlace={{true}}\n          required={{true}}\n          @disabled={{this.saveAnnouncement.isRunning}}\n          @onChange={{fn (mut this.entityAttributes)}}\n          as |entityAttribute|\n        >\n          {{entityAttribute.description}}\n        </PowerSelectMultiple>\n      </div>\n  \n      <h5 class='m-0 mb-2'>Apply user presets</h5>\n      <div class='mb-3'>\n        <button\n          type='button'\n          class='btn btn-primary btn-sm'\n          disabled={{this.hasEntityManagerFeatures}}\n          {{on 'click' this.setEntityManagerFeatures}}\n        >\n          All entity managers\n        </button>\n        <button\n          type='button'\n          {{on 'click' this.setEntityUserFeatures}}\n          disabled={{this.hasEntityUserFeatures}}\n          class='btn btn-primary btn-sm ms-2'\n        >\n          Everyone on the entity\n        </button>\n      </div>\n  \n      <div class='mb-3'>\n        <label class='no-wrap mb-1'>\n          User permissions\n          <sup class='text-danger'>*</sup>\n        </label>\n        <PowerSelectMultiple\n          @options={{this.model.userAttributes.last.value}}\n          @selected={{this.userAttributes}}\n          @searchEnabled={{true}}\n          @searchField='id'\n          @renderInPlace={{true}}\n          required={{true}}\n          @disabled={{this.saveAnnouncement.isRunning}}\n          @onChange={{fn (mut this.userAttributes)}}\n          as |userAttribute|\n        >\n          {{userAttribute.description}}\n        </PowerSelectMultiple>\n      </div>\n      <PtlInput\n        @type='select'\n        @label=\"User's language\"\n        @key='language'\n        @selectNoBlankOption={{true}}\n        @options={{this.languages}}\n        @model={{this.announcementChangeset}}\n        @forceValidationVisible={{gt this.saveAnnouncement.performCount 0}}\n        disabled={{this.saveAnnouncement.isRunning}}\n      />\n  \n      <h5 class='m-0 mb-2'>Further restrict by Chargebee plans</h5>\n      <div class='mb-3'>\n        <label class='no-wrap mb-1'>Required chargebee plans</label>\n        <PowerSelectMultiple\n          @options={{this.sortedChargebeePlans}}\n          @selected={{this.requiredChargebeePlans}}\n          @searchEnabled={{true}}\n          @searchField='name'\n          @renderInPlace={{true}}\n          required={{true}}\n          @disabled={{this.saveAnnouncement.isRunning}}\n          @onChange={{fn (mut this.requiredChargebeePlans)}}\n          as |chargebeePlan|\n        >\n          {{chargebeePlan.name}}\n        </PowerSelectMultiple>\n      </div>\n  \n      <div class='mb-3'>\n        <label class='no-wrap mb-1'>Excluded chargebee plans</label>\n        <PowerSelectMultiple\n          @options={{this.sortedChargebeePlans}}\n          @selected={{this._excludedChargebeePlans}}\n          @searchEnabled={{true}}\n          @searchField='name'\n          @renderInPlace={{true}}\n          required={{true}}\n          @disabled={{this.saveAnnouncement.isRunning}}\n          @onChange={{fn (mut this._excludedChargebeePlans)}}\n          as |chargebeePlan|\n        >\n          {{chargebeePlan.name}}\n        </PowerSelectMultiple>\n      </div>\n  \n      <div class='d-flex flex-grow-1 mt-3 align-items-center'>\n        <button\n          type='button'\n          class='btn bt-link text-danger text-decoration-underline'\n          {{on\n            'click'\n            (perform this.deleteAnnouncement this.announcementChangeset)\n          }}\n        >\n          {{#if this.deleteAnnouncement.isRunning}}\n            Deleting&hellip;\n          {{else}}\n            Delete announcement\n          {{/if}}\n        </button>\n        <div class='d-flex ms-auto'>\n          <button\n            type='button'\n            class='btn bt-link text-primary text-decoration-underline me-2'\n            disabled={{this.saveAnnouncement.isRunning}}\n            {{on 'click' (fn (mut this.showPreviewModal) true)}}\n          >\n            Preview\n          </button>\n          <button\n            type='button'\n            class='btn btn-primary'\n            disabled={{this.saveAnnouncement.isRunning}}\n            {{on\n              'click'\n              (perform this.saveAnnouncement this.announcementChangeset)\n            }}\n          >\n            {{#if this.saveAnnouncement.isRunning}}\n              <span class='spinner-border spinner-border-sm'></span>&nbsp;&nbsp;\n              {{#if this.announcement.isNew}}\n                creating\n              {{else}}\n                Saving\n              {{/if}}&hellip;\n            {{else}}\n              {{#if this.announcement.isNew}}\n                Create announcement\n              {{else}}\n                Save details\n              {{/if}}\n            {{/if}}\n          </button>\n        </div>\n      </div>\n    </PtlForm>\n  {{/if}}\n  \n  {{#if this.showPreviewModal}}\n    <ModalDialog\n      @onClose={{fn (mut this.showPreviewModal) false}}\n      @containerClass='modal-content modal-dialog-scrollable w-auto max-width-75 h-auto'\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-header'>\n        <h3 class='modal-title'>\n          Announcements\n        </h3>\n      </div>\n  \n      <div class='modal-body'>\n        <div\n          class='ql-container ql-editor'\n          style='white-space: normal !important;'\n        >\n          <h6 class='mb-2'>{{this.announcement.title}}</h6>\n          {{html-safe this.announcement.message}}\n        </div>\n      </div>\n  \n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' (fn (mut this.showPreviewModal) false)}}\n        >\n          {{t 'common.Close'}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"7JCTfWp2\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"mb-3 ms-1 mt-1\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,3],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[11,0],[24,\\\"hidden\\\",\\\"\\\"],[4,[38,4],[[28,[37,5],[[30,0,[\\\"initProps\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n  \\\"],[8,[39,6],[[24,0,\\\"width--medium\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex mb-3 align-items-center\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"Details\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,8],[[16,\\\"disabled\\\",[30,0,[\\\"saveAnnouncement\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",\\\"Title\\\",\\\"title\\\",[30,0,[\\\"announcementChangeset\\\"]],true,[28,[37,9],[[30,0,[\\\"saveAnnouncement\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n    \\\"],[8,[39,8],[[16,\\\"disabled\\\",[30,0,[\\\"saveAnnouncement\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\",\\\"@height\\\"],[\\\"richtext\\\",\\\"Message\\\",\\\"message\\\",[30,0,[\\\"announcementChangeset\\\"]],true,[28,[37,9],[[30,0,[\\\"saveAnnouncement\\\",\\\"performCount\\\"]],0],null],\\\"200px\\\"]],null],[1,\\\"\\\\n\\\\n    \\\"],[8,[39,8],[[16,\\\"disabled\\\",[30,0,[\\\"saveAnnouncement\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@dependantValidationKeys\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"datetime\\\",\\\"Valid from\\\",\\\"validFrom\\\",[28,[37,10],[\\\"validUntil\\\"],null],[30,0,[\\\"announcementChangeset\\\"]],[28,[37,9],[[30,0,[\\\"saveAnnouncement\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n    \\\"],[8,[39,8],[[16,\\\"disabled\\\",[30,0,[\\\"saveAnnouncement\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@dependantValidationKeys\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"datetime\\\",\\\"Valid until\\\",\\\"validUntil\\\",[28,[37,10],[\\\"validFrom\\\"],null],[30,0,[\\\"announcementChangeset\\\"]],[28,[37,9],[[30,0,[\\\"saveAnnouncement\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n    \\\"],[8,[39,8],[[16,\\\"disabled\\\",[30,0,[\\\"saveAnnouncement\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@role\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Important\\\",\\\"important\\\",[30,0,[\\\"announcementChangeset\\\"]],\\\"switch\\\",[28,[37,9],[[30,0,[\\\"saveAnnouncement\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"h3\\\"],[12],[1,\\\"Who will see this announcement\\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"h5\\\"],[14,0,\\\"m-0 mb-2\\\"],[12],[1,\\\"Apply entity presets\\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-sm\\\"],[16,\\\"disabled\\\",[30,0,[\\\"hasBuildaPriceFeatures\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"setBuildaPriceFeatures\\\"]]],null],[12],[1,\\\"\\\\n        All Builda Price entities\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[16,\\\"disabled\\\",[30,0,[\\\"hasFinancialPortalFeatures\\\"]]],[24,0,\\\"btn btn-primary btn-sm ms-2\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"setFinancialPortalFeatures\\\"]]],null],[12],[1,\\\"\\\\n        All Financial Portal entities\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"no-wrap mb-1\\\"],[12],[1,\\\"\\\\n        Entity features\\\\n        \\\"],[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,16],[[16,\\\"required\\\",true]],[[\\\"@options\\\",\\\"@selected\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@renderInPlace\\\",\\\"@disabled\\\",\\\"@onChange\\\"],[[30,0,[\\\"model\\\",\\\"entityAttributes\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"entityAttributes\\\"]],true,\\\"id\\\",true,[30,0,[\\\"saveAnnouncement\\\",\\\"isRunning\\\"]],[28,[37,17],[[28,[37,18],[[30,0,[\\\"entityAttributes\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[30,1,[\\\"description\\\"]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"h5\\\"],[14,0,\\\"m-0 mb-2\\\"],[12],[1,\\\"Apply user presets\\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-sm\\\"],[16,\\\"disabled\\\",[30,0,[\\\"hasEntityManagerFeatures\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"setEntityManagerFeatures\\\"]]],null],[12],[1,\\\"\\\\n        All entity managers\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[16,\\\"disabled\\\",[30,0,[\\\"hasEntityUserFeatures\\\"]]],[24,0,\\\"btn btn-primary btn-sm ms-2\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"setEntityUserFeatures\\\"]]],null],[12],[1,\\\"\\\\n        Everyone on the entity\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"no-wrap mb-1\\\"],[12],[1,\\\"\\\\n        User permissions\\\\n        \\\"],[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,16],[[16,\\\"required\\\",true]],[[\\\"@options\\\",\\\"@selected\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@renderInPlace\\\",\\\"@disabled\\\",\\\"@onChange\\\"],[[30,0,[\\\"model\\\",\\\"userAttributes\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"userAttributes\\\"]],true,\\\"id\\\",true,[30,0,[\\\"saveAnnouncement\\\",\\\"isRunning\\\"]],[28,[37,17],[[28,[37,18],[[30,0,[\\\"userAttributes\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[30,2,[\\\"description\\\"]]],[1,\\\"\\\\n      \\\"]],[2]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,8],[[16,\\\"disabled\\\",[30,0,[\\\"saveAnnouncement\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@selectNoBlankOption\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",\\\"User's language\\\",\\\"language\\\",true,[30,0,[\\\"languages\\\"]],[30,0,[\\\"announcementChangeset\\\"]],[28,[37,9],[[30,0,[\\\"saveAnnouncement\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"h5\\\"],[14,0,\\\"m-0 mb-2\\\"],[12],[1,\\\"Further restrict by Chargebee plans\\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"no-wrap mb-1\\\"],[12],[1,\\\"Required chargebee plans\\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,16],[[16,\\\"required\\\",true]],[[\\\"@options\\\",\\\"@selected\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@renderInPlace\\\",\\\"@disabled\\\",\\\"@onChange\\\"],[[30,0,[\\\"sortedChargebeePlans\\\"]],[30,0,[\\\"requiredChargebeePlans\\\"]],true,\\\"name\\\",true,[30,0,[\\\"saveAnnouncement\\\",\\\"isRunning\\\"]],[28,[37,17],[[28,[37,18],[[30,0,[\\\"requiredChargebeePlans\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[30,3,[\\\"name\\\"]]],[1,\\\"\\\\n      \\\"]],[3]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"no-wrap mb-1\\\"],[12],[1,\\\"Excluded chargebee plans\\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,16],[[16,\\\"required\\\",true]],[[\\\"@options\\\",\\\"@selected\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@renderInPlace\\\",\\\"@disabled\\\",\\\"@onChange\\\"],[[30,0,[\\\"sortedChargebeePlans\\\"]],[30,0,[\\\"_excludedChargebeePlans\\\"]],true,\\\"name\\\",true,[30,0,[\\\"saveAnnouncement\\\",\\\"isRunning\\\"]],[28,[37,17],[[28,[37,18],[[30,0,[\\\"_excludedChargebeePlans\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[30,4,[\\\"name\\\"]]],[1,\\\"\\\\n      \\\"]],[4]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-3 align-items-center\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn bt-link text-danger text-decoration-underline\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,5],[[30,0,[\\\"deleteAnnouncement\\\"]],[30,0,[\\\"announcementChangeset\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteAnnouncement\\\",\\\"isRunning\\\"]],[[[1,\\\"          Deleting…\\\\n\\\"]],[]],[[[1,\\\"          Delete announcement\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex ms-auto\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn bt-link text-primary text-decoration-underline me-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveAnnouncement\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,17],[[28,[37,18],[[30,0,[\\\"showPreviewModal\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n          Preview\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveAnnouncement\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,5],[[30,0,[\\\"saveAnnouncement\\\"]],[30,0,[\\\"announcementChangeset\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveAnnouncement\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\\n\\\"],[41,[30,0,[\\\"announcement\\\",\\\"isNew\\\"]],[[[1,\\\"              creating\\\\n\\\"]],[]],[[[1,\\\"              Saving\\\\n            \\\"]],[]]],[1,\\\"…\\\\n\\\"]],[]],[[[41,[30,0,[\\\"announcement\\\",\\\"isNew\\\"]],[[[1,\\\"              Create announcement\\\\n\\\"]],[]],[[[1,\\\"              Save details\\\\n\\\"]],[]]]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showPreviewModal\\\"]],[[[1,\\\"  \\\"],[8,[39,20],null,[[\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@overlayClass\\\",\\\"@translucentOverlay\\\"],[[28,[37,17],[[28,[37,18],[[30,0,[\\\"showPreviewModal\\\"]]],null],false],null],\\\"modal-content modal-dialog-scrollable w-auto max-width-75 h-auto\\\",\\\"modal\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n        Announcements\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"ql-container ql-editor\\\"],[14,5,\\\"white-space: normal !important;\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h6\\\"],[14,0,\\\"mb-2\\\"],[12],[1,[30,0,[\\\"announcement\\\",\\\"title\\\"]]],[13],[1,\\\"\\\\n        \\\"],[1,[28,[35,22],[[30,0,[\\\"announcement\\\",\\\"message\\\"]]],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,17],[[28,[37,18],[[30,0,[\\\"showPreviewModal\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,23],[\\\"common.Close\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"entityAttribute\\\",\\\"userAttribute\\\",\\\"chargebeePlan\\\",\\\"chargebeePlan\\\"],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"page-title-breadcrumbs\\\",\\\"did-insert\\\",\\\"perform\\\",\\\"ptl-form\\\",\\\"h3\\\",\\\"ptl-input\\\",\\\"gt\\\",\\\"array\\\",\\\"h5\\\",\\\"button\\\",\\\"on\\\",\\\"label\\\",\\\"sup\\\",\\\"power-select-multiple\\\",\\\"fn\\\",\\\"mut\\\",\\\"span\\\",\\\"modal-dialog\\\",\\\"h6\\\",\\\"html-safe\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/templates/admin/announcements/announcement.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/admin/announcements/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='mb-1 pb-2 d-lg-flex justify-content-end align-items-center'>\n    <Input\n      class='form-control m-1 w-auto'\n      placeholder={{t 'common.Search'}}\n      disabled={{this.isLoading}}\n      {{on 'input' (perform this.onChangeSearchTerm)}}\n      @type='search'\n    />\n    <button\n      type='button'\n      class='btn btn-success text-white text-nowrap m-1'\n      disabled={{this.isLoading}}\n      {{on 'click' this.createNewAnnouncement}}\n    >\n      <FaIcon @icon='plus' />&nbsp;Add\n    </button>\n  </div>\n  \n  {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <div class='admin-console__entity-table-container'>\n      <PaginationTable\n        @tableHeader={{this.announcementsTableHeader}}\n        @tableData={{this.announcementsTableData}}\n        @isLoading={{this.isLoading}}\n        @noDataText='No announcements'\n        @pageSizes={{this.model.pageSizes}}\n        @pageSize={{this.model.pageSize}}\n        @pageIndex={{this.model.pageNumber}}\n        @onChangePageIndex={{this.onChangePage}}\n        @onChangePageSize={{this.onChangePageSize}}\n        @totalRecords={{this.totalRecords}}\n        @class='table-bordered'\n      />\n    </div>\n  {{/if}}\n  */\n  {\n    \"id\": \"QVM9Rfsg\",\n    \"block\": \"[[[10,0],[14,0,\\\"mb-1 pb-2 d-lg-flex justify-content-end align-items-center\\\"],[12],[1,\\\"\\\\n  \\\"],[8,[39,1],[[24,0,\\\"form-control m-1 w-auto\\\"],[16,\\\"placeholder\\\",[28,[37,2],[\\\"common.Search\\\"],null]],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[4,[38,3],[\\\"input\\\",[28,[37,4],[[30,0,[\\\"onChangeSearchTerm\\\"]]],null]],null]],[[\\\"@type\\\"],[\\\"search\\\"]],null],[1,\\\"\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[24,4,\\\"button\\\"],[4,[38,3],[\\\"click\\\",[30,0,[\\\"createNewAnnouncement\\\"]]],null],[12],[1,\\\"\\\\n    \\\"],[8,[39,6],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\" Add\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,8],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"admin-console__entity-table-container\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,9],null,[[\\\"@tableHeader\\\",\\\"@tableData\\\",\\\"@isLoading\\\",\\\"@noDataText\\\",\\\"@pageSizes\\\",\\\"@pageSize\\\",\\\"@pageIndex\\\",\\\"@onChangePageIndex\\\",\\\"@onChangePageSize\\\",\\\"@totalRecords\\\",\\\"@class\\\"],[[30,0,[\\\"announcementsTableHeader\\\"]],[30,0,[\\\"announcementsTableData\\\"]],[30,0,[\\\"isLoading\\\"]],\\\"No announcements\\\",[30,0,[\\\"model\\\",\\\"pageSizes\\\"]],[30,0,[\\\"model\\\",\\\"pageSize\\\"]],[30,0,[\\\"model\\\",\\\"pageNumber\\\"]],[30,0,[\\\"onChangePage\\\"]],[30,0,[\\\"onChangePageSize\\\"]],[30,0,[\\\"totalRecords\\\"]],\\\"table-bordered\\\"]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"div\\\",\\\"input\\\",\\\"t\\\",\\\"on\\\",\\\"perform\\\",\\\"button\\\",\\\"fa-icon\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"pagination-table\\\"]]\",\n    \"moduleName\": \"portal/templates/admin/announcements/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/admin/billing-report\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='mx-4 mt-4'>\n    <header class='border-bottom pb-2 mb-3 d-flex align-items-center'>\n      <h2 class='flex-grow-1 m-0 my-2'>Billing Reports</h2>\n    </header>\n    <h3>ChargeBee billing report</h3>\n    <p>Breakout ChargeBee invoices by customer and Chargebee plans. Report takes\n      about 5 minutes to generate.</p>\n    <PtlForm class='width--medium'>\n  \n      {{#let (changeset this.data this.validationMap) as |dataModel|}}\n        <PtlInput\n          @type='select'\n          @label='Application'\n          @key='site'\n          @selectNoBlankOption={{true}}\n          @options={{this.sites}}\n          @forceValidationVisible={{gt this.generateReport.performCount 0}}\n          @model={{dataModel}}\n        />\n        <PtlInput\n          @type='date'\n          @label='Start date'\n          @key='startDate'\n          @model={{dataModel}}\n          @forceValidationVisible={{gt this.generateReport.performCount 0}}\n          @required={{true}}\n        />\n        <PtlInput\n          @type='date'\n          @label='End date'\n          @key='endDate'\n          @model={{dataModel}}\n          @forceValidationVisible={{gt this.generateReport.performCount 0}}\n          @required={{true}}\n        />\n        <div class='d-flex flex-grow-1 mt-3 align-items-center'>\n          <div class='d-flex ms-auto'>\n            <button\n              type='button'\n              class='btn btn-primary'\n              disabled={{this.generateReport.isRunning}}\n              {{on 'click' (perform this.generateReport dataModel)}}\n            >\n              {{#if this.generateReport.isRunning}}\n                <span class='spinner-border spinner-border-sm'></span>&nbsp;&nbsp;\n                Generating &hellip;\n              {{else}}\n                Generate and email report\n              {{/if}}\n            </button>\n          </div>\n        </div>\n      {{/let}}\n    </PtlForm>\n  </article>\n  */\n  {\n    \"id\": \"zLrCcm/O\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom pb-2 mb-3 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"Billing Reports\\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[10,\\\"h3\\\"],[12],[1,\\\"ChargeBee billing report\\\"],[13],[1,\\\"\\\\n  \\\"],[10,2],[12],[1,\\\"Breakout ChargeBee invoices by customer and Chargebee plans. Report takes\\\\n    about 5 minutes to generate.\\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,5],[[24,0,\\\"width--medium\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\\n\\\"],[44,[[28,[37,7],[[30,0,[\\\"data\\\"]],[30,0,[\\\"validationMap\\\"]]],null]],[[[1,\\\"      \\\"],[8,[39,8],null,[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@selectNoBlankOption\\\",\\\"@options\\\",\\\"@forceValidationVisible\\\",\\\"@model\\\"],[\\\"select\\\",\\\"Application\\\",\\\"site\\\",true,[30,0,[\\\"sites\\\"]],[28,[37,9],[[30,0,[\\\"generateReport\\\",\\\"performCount\\\"]],0],null],[30,1]]],null],[1,\\\"\\\\n      \\\"],[8,[39,8],null,[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@required\\\"],[\\\"date\\\",\\\"Start date\\\",\\\"startDate\\\",[30,1],[28,[37,9],[[30,0,[\\\"generateReport\\\",\\\"performCount\\\"]],0],null],true]],null],[1,\\\"\\\\n      \\\"],[8,[39,8],null,[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@required\\\"],[\\\"date\\\",\\\"End date\\\",\\\"endDate\\\",[30,1],[28,[37,9],[[30,0,[\\\"generateReport\\\",\\\"performCount\\\"]],0],null],true]],null],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-3 align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex ms-auto\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"generateReport\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"generateReport\\\"]],[30,1]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"generateReport\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\\n              Generating …\\\\n\\\"]],[]],[[[1,\\\"              Generate and email report\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[1]]],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\"],[13]],[\\\"dataModel\\\"],false,[\\\"article\\\",\\\"header\\\",\\\"h2\\\",\\\"h3\\\",\\\"p\\\",\\\"ptl-form\\\",\\\"let\\\",\\\"changeset\\\",\\\"ptl-input\\\",\\\"gt\\\",\\\"div\\\",\\\"button\\\",\\\"on\\\",\\\"perform\\\",\\\"if\\\",\\\"span\\\"]]\",\n    \"moduleName\": \"portal/templates/admin/billing-report.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/admin/demo-entity\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='p-3 d-flex flex-column gap-3'>\n    <p class='m-0'>\n      Clicking the button will cause the demo entity to be deleted and recreated.\n      This will delete all the data on the demo entity!\n    </p>\n  \n    <LinkTo @route='entity' @model='6a4b2171ba65212da862ffe5'>\n      Demo entity source\n      <FaIcon @icon='external-link-alt' @fixedWidth={{true}} />\n    </LinkTo>\n  \n    <LinkTo @route='entity' @model='6a4b21965c807f2d9482b936'>\n      Demo entity\n      <FaIcon @icon='external-link-alt' @fixedWidth={{true}} />\n    </LinkTo>\n  \n    <button\n      class='btn btn-danger text-white'\n      type='button'\n      {{on 'click' (perform this.model.regenerateDemoEntity)}}\n      disabled={{this.model.regenerateDemoEntity.isRunning}}\n    >\n      {{#if this.model.regenerateDemoEntity.isRunning}}\n        Regenerating&hellip;\n      {{else}}\n        Regenerate demo entity\n      {{/if}}\n    </button>\n  </div>\n  */\n  {\n    \"id\": \"uZI+wvBI\",\n    \"block\": \"[[[10,0],[14,0,\\\"p-3 d-flex flex-column gap-3\\\"],[12],[1,\\\"\\\\n  \\\"],[10,2],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n    Clicking the button will cause the demo entity to be deleted and recreated.\\\\n    This will delete all the data on the demo entity!\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,2],null,[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity\\\",\\\"6a4b2171ba65212da862ffe5\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    Demo entity source\\\\n    \\\"],[8,[39,3],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"external-link-alt\\\",true]],null],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,2],null,[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity\\\",\\\"6a4b21965c807f2d9482b936\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    Demo entity\\\\n    \\\"],[8,[39,3],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"external-link-alt\\\",true]],null],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger text-white\\\"],[16,\\\"disabled\\\",[30,0,[\\\"model\\\",\\\"regenerateDemoEntity\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,5],[\\\"click\\\",[28,[37,6],[[30,0,[\\\"model\\\",\\\"regenerateDemoEntity\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"regenerateDemoEntity\\\",\\\"isRunning\\\"]],[[[1,\\\"      Regenerating…\\\\n\\\"]],[]],[[[1,\\\"      Regenerate demo entity\\\\n\\\"]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"div\\\",\\\"p\\\",\\\"link-to\\\",\\\"fa-icon\\\",\\\"button\\\",\\\"on\\\",\\\"perform\\\",\\\"if\\\"]]\",\n    \"moduleName\": \"portal/templates/admin/demo-entity.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/admin/entities\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='mx-4 mt-4'>\n    <header class='border-bottom pb-2 mb-3 d-flex align-items-center'>\n      <h2 class='flex-grow-1 m-0 my-2'>Entities</h2>\n    </header>\n    {{outlet}}\n  </article>\n  */\n  {\n    \"id\": \"+gp9+z2T\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom pb-2 mb-3 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"Entities\\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[46,[28,[37,4],null,null],null,null,null],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"article\\\",\\\"header\\\",\\\"h2\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/admin/entities.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/admin/entities/entity\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <div class='mb-3 ms-1 mt-1'>\n      <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n    </div>\n    <PtlForm class='width--medium'>\n      <div class='d-flex mb-3 align-items-center'>\n        <h3 class='m-0'>{{t 'common.Details'}}</h3>\n      </div>\n  \n      <PtlInput\n        @type='powerSelect'\n        @label='Parent company'\n        @key='parent'\n        @options={{this.parentEntityOptions}}\n        @optionKeys={{array 'name'}}\n        @model={{this.model.entityChangeset.last.value}}\n        @searchEnabled={{true}}\n        @searchField='name'\n        @allowClear={{true}}\n        @forceValidationVisible={{gt this.saveEntity.performCount 0}}\n        disabled={{this.saveEntity.isRunning}}\n      />\n      <PtlInput\n        @type='text'\n        @label='Name'\n        @key='name'\n        @model={{this.model.entityChangeset.last.value}}\n        @required={{true}}\n        @forceValidationVisible={{gt this.saveEntity.performCount 0}}\n        disabled={{this.saveEntity.isRunning}}\n      />\n      <PtlInput\n        @type='select'\n        @label='Region'\n        @key='region'\n        @options={{this.regions}}\n        @required={{true}}\n        @model={{this.model.entityChangeset.last.value}}\n        @forceValidationVisible={{gt this.saveEntity.performCount 0}}\n        disabled={{this.saveEntity.isRunning}}\n      />\n      <PtlInput\n        @type='select'\n        @label='Brand'\n        @key='brand'\n        @options={{this.brands}}\n        @model={{this.model.entityChangeset.last.value}}\n        @forceValidationVisible={{gt this.saveEntity.performCount 0}}\n        disabled={{this.saveEntity.isRunning}}\n      />\n      <div class='d-flex flex-grow-1 mt-3'>\n        <button\n          type='button'\n          class='btn btn-primary ms-auto'\n          disabled={{this.saveEntity.isRunning}}\n          {{on\n            'click'\n            (perform this.saveEntity this.model.entityChangeset.last.value)\n          }}\n        >\n          {{#if this.saveEntity.isRunning}}\n            <span class='spinner-border spinner-border-sm'></span>&nbsp;&nbsp;\n            {{#if this.entity.isNew}}\n              creating\n            {{else}}\n              Saving\n            {{/if}}&hellip;\n          {{else}}\n            {{#if this.entity.isNew}}\n              Create entity\n            {{else}}\n              Save details\n            {{/if}}\n          {{/if}}\n        </button>\n      </div>\n    </PtlForm>\n  \n    {{#unless this.entity.isNew}}\n      <div class='alert alert-primary width--medium mt-3' role='alert'>\n        <FaIcon @icon='info-circle' @size='lg' class='me-2' />\n        <span class='me-2'>\n          Invite admin user for\n          {{this.model.entityChangeset.last.value.name}}\n        </span>\n        <button\n          type='button'\n          class='btn btn-outline-primary'\n          {{on 'click' (fn (mut this.openInviteUserModal) true)}}\n        >\n          Invite admin user\n        </button>\n      </div>\n  \n      <PtlForm class='width--medium mb-3'>\n        <div class='mb-3'>\n          <h3 class='mb-0'>Features</h3>\n          <p>\n            Entity features are rules that say what a entity can and can't do in\n            the system.\n          </p>\n  \n          <h5 class='mb-3'>Apply presets</h5>\n          <div>\n            <button\n              type='button'\n              class='btn btn-primary'\n              disabled={{this.noFeatures}}\n              {{on 'click' this.clearAllFeatures}}\n            >No features</button>\n            <button\n              type='button'\n              {{on 'click' this.setAllFeatures}}\n              disabled={{this.hasAllFeatures}}\n              class='btn btn-primary ms-2'\n            >All features</button>\n          </div>\n        </div>\n  \n        <div\n          class='d-flex align-items-center mb-3'\n          role='button'\n          {{on\n            'click'\n            (fn\n              (mut this.showBuildaPriceFeatures)\n              (not this.showBuildaPriceFeatures)\n            )\n          }}\n        >\n          <h4 class='m-0'>\n            Builda Price\n          </h4>\n          {{#if this.buildaPricePermissionsCount}}\n            <span class='ms-2 badge bg-info'>\n              {{this.buildaPricePermissionsCount}}\n            </span>\n          {{/if}}\n          <h4 class='m-0 ms-auto'>\n            <FaIcon\n              @icon={{if\n                this.showBuildaPriceFeatures\n                'chevron-down'\n                'chevron-right'\n              }}\n            />\n          </h4>\n        </div>\n        {{#if this.showBuildaPriceFeatures}}\n          <PtlInput\n            @type='checkbox'\n            @label='Can use Builda Price?'\n            @key='canUseBuildaPrice'\n            @description='Lets company use Builda Price module.'\n            @model={{this.model.featuresChangeset.last.value}}\n            @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n            disabled={{this.saveFeatures.isRunning}}\n          />\n        {{/if}}\n  \n        <div class='ms-3'>\n          {{#if\n            (and\n              this.showBuildaPriceFeatures\n              this.model.featuresChangeset.last.value.canUseBuildaPrice\n            )\n          }}\n            <div\n              class='d-flex align-items-center mb-3'\n              role='button'\n              {{on\n                'click'\n                (fn (mut this.showGeneralFeatures) (not this.showGeneralFeatures))\n              }}\n            >\n              <h4 class='m-0'>\n                General\n              </h4>\n              {{#if this.generalFeaturesCount}}\n                <span class='ms-2 badge bg-info'>\n                  {{this.generalFeaturesCount}}\n                </span>\n              {{/if}}\n              <h4 class='m-0 ms-auto'>\n                <FaIcon\n                  @icon={{if\n                    this.showGeneralFeatures\n                    'chevron-down'\n                    'chevron-right'\n                  }}\n                />\n              </h4>\n            </div>\n            {{#if this.showGeneralFeatures}}\n              <PtlInput\n                @type='checkbox'\n                @label='Can use dashboards?'\n                @key='canUseDashboards'\n                @description='Lets company use dashboard features.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n  \n              <PtlInput\n                @type='checkbox'\n                @label='Can use documents?'\n                @key='canUseFileStorage'\n                @description='Lets company attach files and documents.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label='Can use health and safety?'\n                @key='canUseHealthAndSafety'\n                @description='Lets company use Health and safety module.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label='Can use client portal?'\n                @key='canUseClientPortal'\n                @description='Lets company use client portal.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label='Doc Flow metered billing?'\n                @key='canUseIPS'\n                @description='Lets company process Doc Flow documents beyond the free allowance, for a charge. Doc Flow access itself comes from Bills.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label='Can use statements?'\n                @key='canUseStatements'\n                @description='Lets company use statements.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label='Can use placemakers integrations?'\n                @key='canUsePlaceMakers'\n                @description='Lets company use place makers integrations.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label='Can use carters integrations?'\n                @key='canUseCarters'\n                @description='Lets company use carters integrations.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label='Can use support?'\n                @key='canUseSupport'\n                @description='Lets company use support.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label='Can use Geofencing features?'\n                @key='canUseGeofencing'\n                @description='Lets company use  Geofencing features.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n            {{/if}}\n  \n            <div\n              class='d-flex align-items-center mb-3'\n              role='button'\n              {{on\n                'click'\n                (fn (mut this.showProjectFeatures) (not this.showProjectFeatures))\n              }}\n            >\n              <h4 class='m-0'>\n                Project\n              </h4>\n              {{#if this.projectsFeaturesCount}}\n                <span class='ms-2 badge bg-info'>\n                  {{this.projectsFeaturesCount}}\n                </span>\n              {{/if}}\n              <h4 class='m-0 ms-auto'>\n                <FaIcon\n                  @icon={{if\n                    this.showProjectFeatures\n                    'chevron-down'\n                    'chevron-right'\n                  }}\n                />\n              </h4>\n            </div>\n            {{#if this.showProjectFeatures}}\n              <PtlInput\n                @type='checkbox'\n                @label='Can use project financials?'\n                @key='canUseProjectFinancials'\n                @description='Lets company all project related financials'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label='Can use project progress?'\n                @key='canUseProjectProgress'\n                @description='Lets company use progress tracking features.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label='Can use take off uploader tool?'\n                @key='canUseCsvTaskFileUploader'\n                @description='Lets company use take off tool.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label='Can use products?'\n                @key='canUseProducts'\n                @description='Lets company use products.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label='Can use estimates?'\n                @key='canUseEstimates'\n                @description='Lets company estimates related features.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n  \n              <PtlInput\n                @type='checkbox'\n                @label='Can use stage payments?'\n                @key='canUseStagePayments'\n                @description='Lets company use stage payment features.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n  \n            {{/if}}\n  \n            <div\n              class='d-flex align-items-center mb-3'\n              role='button'\n              {{on\n                'click'\n                (fn (mut this.showReportFeatures) (not this.showReportFeatures))\n              }}\n            >\n              <h4 class='m-0'>\n                Reports\n              </h4>\n              {{#if this.reportsFeaturesCount}}\n                <span class='ms-2 badge bg-info'>\n                  {{this.reportsFeaturesCount}}\n                </span>\n              {{/if}}\n              <h4 class='m-0 ms-auto'>\n                <FaIcon\n                  @icon={{if\n                    this.showReportFeatures\n                    'chevron-down'\n                    'chevron-right'\n                  }}\n                />\n              </h4>\n            </div>\n  \n            {{#if this.showReportFeatures}}\n              <PtlInput\n                @type='checkbox'\n                @label='Can use work in progress report?'\n                @key='canUseWIPReport'\n                @description='Lets company use work in progress report.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label='Can use forecast report?'\n                @key='canUseForecastReport'\n                @description='Lets company use forecast report.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n  \n              <PtlInput\n                @type='checkbox'\n                @label='Can use profit margins report?'\n                @key='canUseProfitMarginsReport'\n                @description='Lets company use profit margins report.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label='Can use labour hours report?'\n                @key='canUseLabourHoursReport'\n                @description='Lets company use labour hours report.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n  \n              <PtlInput\n                @type='checkbox'\n                @label='Can use budget report?'\n                @key='canUseBudgetReport'\n                @description='Lets company use budget report.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label='Can use quote report?'\n                @key='canUseQuoteReport'\n                @description='Lets company use quote report.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n  \n              <PtlInput\n                @type='checkbox'\n                @label='Can use cost report?'\n                @key='canUseCostReport'\n                @description='Lets company use cost report.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label='Can use chargeup report?'\n                @key='canUseChargeupReport'\n                @description='Lets company use chargeup report.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n  \n              <PtlInput\n                @type='checkbox'\n                @label='Can use position report?'\n                @key='canUsePositionReport'\n                @description='Lets company use position report.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n  \n              <PtlInput\n                @type='checkbox'\n                @label='Can use Invoicing report?'\n                @key='canUseInvoicingReport'\n                @description='Lets company use invoicing report.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label='Can use the cost to complete report?'\n                @key='canUseClientReport'\n                @description='Lets company use the cost to complete report.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n            {{/if}}\n  \n            <div\n              class='d-flex align-items-center mb-3'\n              role='button'\n              {{on\n                'click'\n                (fn\n                  (mut this.showSchedulingFeatures)\n                  (not this.showSchedulingFeatures)\n                )\n              }}\n            >\n              <h4 class='m-0'>\n                Scheduling\n              </h4>\n              {{#if this.schedulingFeaturesCount}}\n                <span class='ms-2 badge bg-info'>\n                  {{this.schedulingFeaturesCount}}\n                </span>\n              {{/if}}\n              <h4 class='m-0 ms-auto'>\n                <FaIcon\n                  @icon={{if\n                    this.showSchedulingFeatures\n                    'chevron-down'\n                    'chevron-right'\n                  }}\n                />\n              </h4>\n            </div>\n  \n            {{#if this.showSchedulingFeatures}}\n              <PtlInput\n                @type='checkbox'\n                @label='Can use scheduling?'\n                @key='canUseScheduling'\n                @description='Lets company use scheduling.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n            {{/if}}\n  \n            <div\n              class='d-flex align-items-center mb-3'\n              role='button'\n              {{on\n                'click'\n                (fn\n                  (mut this.showAllocationFeatures)\n                  (not this.showAllocationFeatures)\n                )\n              }}\n            >\n              <h4 class='m-0'>\n                Allocations\n              </h4>\n              {{#if this.allocationsFeaturesCount}}\n                <span class='ms-2 badge bg-info'>\n                  {{this.allocationsFeaturesCount}}\n                </span>\n              {{/if}}\n              <h4 class='m-0 ms-auto'>\n                <FaIcon\n                  @icon={{if\n                    this.showAllocationFeatures\n                    'chevron-down'\n                    'chevron-right'\n                  }}\n                />\n              </h4>\n            </div>\n  \n            {{#if this.showAllocationFeatures}}\n              <PtlInput\n                @type='checkbox'\n                @label='Can use timesheets?'\n                @key='canUseTimesheets'\n                @description='Lets company use timesheets.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label='Can use crystal payroll integrations?'\n                @key='canUseCrystalPayroll'\n                @description='Lets company use crystal payroll integrations.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label='Can use smartly payroll integrations?'\n                @key='canUseSmartPayroll'\n                @description='Lets company use smart payroll integrations.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label='Can use keypay integrations?'\n                @key='canUseKeypay'\n                @description='Lets company use keypay integrations.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label='Can use notes features?'\n                @key='canUseNotes'\n                @description='Lets company use notes features.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label='Can use bills features?'\n                @key='canUseBills'\n                @description='Lets company use bills features (incoming invoices).'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label='Can use purchase orders?'\n                @key='canUsePurchaseOrders'\n                @description='Lets company use purchase order features.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n  \n              <PtlInput\n                @type='checkbox'\n                @label='Can use Invoicing?'\n                @key='canUseInvoicing'\n                @description='Lets company use invoicing features.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n            {{/if}}\n          {{/if}}\n        </div>\n  \n        <div\n          class='d-flex align-items-center mb-3'\n          role='button'\n          {{on\n            'click'\n            (fn\n              (mut this.showFinancialPortalFeatures)\n              (not this.showFinancialPortalFeatures)\n            )\n          }}\n        >\n          <h4 class='m-0'>\n            Financial portal\n          </h4>\n          {{#if this.FinancialPortalPermissionsCount}}\n            <span class='ms-2 badge bg-info'>\n              {{this.FinancialPortalPermissionsCount}}\n            </span>\n          {{/if}}\n          <h4 class='m-0 ms-auto'>\n            <FaIcon\n              @icon={{if\n                this.showFinancialPortalFeatures\n                'chevron-down'\n                'chevron-right'\n              }}\n            />\n          </h4>\n        </div>\n  \n        {{#if this.showFinancialPortalFeatures}}\n          <PtlInput\n            @type='checkbox'\n            @label='Can use Financial portal?'\n            @key='canUseFinancialReporting'\n            @description='Lets company use Financial portal.'\n            @model={{this.model.featuresChangeset.last.value}}\n            @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n            disabled={{this.saveFeatures.isRunning}}\n          />\n        {{/if}}\n  \n        <div class='d-flex flex-grow-1 mt-2'>\n          <button\n            type='button'\n            class='btn btn-primary ms-auto'\n            disabled={{this.saveFeatures.isRunning}}\n            {{on\n              'click'\n              (perform this.saveFeatures this.model.featuresChangeset.last.value)\n            }}\n          >\n            {{#if this.saveFeatures.isRunning}}\n              Saving features&hellip;\n            {{else}}\n              Save features\n            {{/if}}\n          </button>\n        </div>\n      </PtlForm>\n  \n    {{/unless}}\n  {{/if}}\n  \n  {{#if this.openInviteUserModal}}\n    <ModalDialog\n      @onClose={{fn (mut this.openInviteUserModal) false}}\n      @containerClass='modal-content w-auto'\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n    >\n      <div hidden {{did-insert (perform this.initChangeset)}} />\n      <div class='modal-body mt-2'>\n        <PtlInput\n          @type='text'\n          @label='First name'\n          @key='firstName'\n          @model={{this.userChangeSet}}\n          @required={{true}}\n          @forceValidationVisible={{gt this.inviteUser.performCount 0}}\n          disabled={{this.inviteUser.isRunning}}\n        />\n        <PtlInput\n          @type='text'\n          @label='Last name'\n          @key='lastName'\n          @model={{this.userChangeSet}}\n          @required={{true}}\n          @forceValidationVisible={{gt this.inviteUser.performCount 0}}\n          disabled={{this.inviteUser.isRunning}}\n        />\n        <PtlInput\n          @type='text'\n          @label='Email'\n          @key='email'\n          @model={{this.userChangeSet}}\n          @required={{true}}\n          @forceValidationVisible={{gt this.inviteUser.performCount 0}}\n          disabled={{this.inviteUser.isRunning}}\n        />\n        <PtlInput\n          @type='text'\n          @label='Phone number'\n          @key='phoneNumber'\n          @model={{this.userChangeSet}}\n          @forceValidationVisible={{gt this.inviteUser.performCount 0}}\n          disabled={{this.inviteUser.isRunning}}\n        />\n      </div>\n  \n      <div class='modal-footer d-flex'>\n        <div class='d-flex align-items-center'>\n          <button\n            class='btn btn-secondary text-white ms-2'\n            type='button'\n            disabled={{this.inviteUser.isRunning}}\n            {{on 'click' (fn (mut this.openInviteUserModal) false)}}\n          >{{t 'common.Cancel'}}</button>\n          <button\n            type='button'\n            class='btn btn-primary ms-2'\n            disabled={{this.inviteUser.isRunning}}\n            {{on 'click' (perform this.inviteUser this.userChangeSet)}}\n          >\n            {{#if this.inviteUser.isRunning}}\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;Inviting&hellip;\n            {{else}}\n              Invite\n            {{/if}}\n          </button>\n        </div>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"7iUtHQDd\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"mb-3 ms-1 mt-1\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,3],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,4],[[24,0,\\\"width--medium\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex mb-3 align-items-center\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"m-0\\\"],[12],[1,[28,[35,6],[\\\"common.Details\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveEntity\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@options\\\",\\\"@optionKeys\\\",\\\"@model\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@allowClear\\\",\\\"@forceValidationVisible\\\"],[\\\"powerSelect\\\",\\\"Parent company\\\",\\\"parent\\\",[30,0,[\\\"parentEntityOptions\\\"]],[28,[37,8],[\\\"name\\\"],null],[30,0,[\\\"model\\\",\\\"entityChangeset\\\",\\\"last\\\",\\\"value\\\"]],true,\\\"name\\\",true,[28,[37,9],[[30,0,[\\\"saveEntity\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n    \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveEntity\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",\\\"Name\\\",\\\"name\\\",[30,0,[\\\"model\\\",\\\"entityChangeset\\\",\\\"last\\\",\\\"value\\\"]],true,[28,[37,9],[[30,0,[\\\"saveEntity\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n    \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveEntity\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@options\\\",\\\"@required\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",\\\"Region\\\",\\\"region\\\",[30,0,[\\\"regions\\\"]],true,[30,0,[\\\"model\\\",\\\"entityChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveEntity\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n    \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveEntity\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",\\\"Brand\\\",\\\"brand\\\",[30,0,[\\\"brands\\\"]],[30,0,[\\\"model\\\",\\\"entityChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveEntity\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-3\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveEntity\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,12],[[30,0,[\\\"saveEntity\\\"]],[30,0,[\\\"model\\\",\\\"entityChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveEntity\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\\n\\\"],[41,[30,0,[\\\"entity\\\",\\\"isNew\\\"]],[[[1,\\\"            creating\\\\n\\\"]],[]],[[[1,\\\"            Saving\\\\n          \\\"]],[]]],[1,\\\"…\\\\n\\\"]],[]],[[[41,[30,0,[\\\"entity\\\",\\\"isNew\\\"]],[[[1,\\\"            Create entity\\\\n\\\"]],[]],[[[1,\\\"            Save details\\\\n\\\"]],[]]]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"entity\\\",\\\"isNew\\\"]]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"alert alert-primary width--medium mt-3\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,15],[[24,0,\\\"me-2\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"info-circle\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n      \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n        Invite admin user for\\\\n        \\\"],[1,[30,0,[\\\"model\\\",\\\"entityChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-outline-primary\\\"],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"openInviteUserModal\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n        Invite admin user\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[8,[39,4],[[24,0,\\\"width--medium mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-0\\\"],[12],[1,\\\"Features\\\"],[13],[1,\\\"\\\\n        \\\"],[10,2],[12],[1,\\\"\\\\n          Entity features are rules that say what a entity can and can't do in\\\\n          the system.\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"h5\\\"],[14,0,\\\"mb-3\\\"],[12],[1,\\\"Apply presets\\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"noFeatures\\\"]]],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[30,0,[\\\"clearAllFeatures\\\"]]],null],[12],[1,\\\"No features\\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[16,\\\"disabled\\\",[30,0,[\\\"hasAllFeatures\\\"]]],[24,0,\\\"btn btn-primary ms-2\\\"],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[30,0,[\\\"setAllFeatures\\\"]]],null],[12],[1,\\\"All features\\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"showBuildaPriceFeatures\\\"]]],null],[28,[37,20],[[30,0,[\\\"showBuildaPriceFeatures\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n          Builda Price\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"buildaPricePermissionsCount\\\"]],[[[1,\\\"          \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[30,0,[\\\"buildaPricePermissionsCount\\\"]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,15],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"showBuildaPriceFeatures\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showBuildaPriceFeatures\\\"]],[[[1,\\\"        \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use Builda Price?\\\",\\\"canUseBuildaPrice\\\",\\\"Lets company use Builda Price module.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"ms-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,22],[[30,0,[\\\"showBuildaPriceFeatures\\\"]],[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canUseBuildaPrice\\\"]]],null],[[[1,\\\"          \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"showGeneralFeatures\\\"]]],null],[28,[37,20],[[30,0,[\\\"showGeneralFeatures\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n              General\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"generalFeaturesCount\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"generalFeaturesCount\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,15],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"showGeneralFeatures\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showGeneralFeatures\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use dashboards?\\\",\\\"canUseDashboards\\\",\\\"Lets company use dashboard features.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use documents?\\\",\\\"canUseFileStorage\\\",\\\"Lets company attach files and documents.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use health and safety?\\\",\\\"canUseHealthAndSafety\\\",\\\"Lets company use Health and safety module.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use client portal?\\\",\\\"canUseClientPortal\\\",\\\"Lets company use client portal.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Doc Flow metered billing?\\\",\\\"canUseIPS\\\",\\\"Lets company process Doc Flow documents beyond the free allowance, for a charge. Doc Flow access itself comes from Bills.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use statements?\\\",\\\"canUseStatements\\\",\\\"Lets company use statements.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use placemakers integrations?\\\",\\\"canUsePlaceMakers\\\",\\\"Lets company use place makers integrations.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use carters integrations?\\\",\\\"canUseCarters\\\",\\\"Lets company use carters integrations.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use support?\\\",\\\"canUseSupport\\\",\\\"Lets company use support.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use Geofencing features?\\\",\\\"canUseGeofencing\\\",\\\"Lets company use  Geofencing features.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n          \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"showProjectFeatures\\\"]]],null],[28,[37,20],[[30,0,[\\\"showProjectFeatures\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n              Project\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"projectsFeaturesCount\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"projectsFeaturesCount\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,15],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"showProjectFeatures\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showProjectFeatures\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use project financials?\\\",\\\"canUseProjectFinancials\\\",\\\"Lets company all project related financials\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use project progress?\\\",\\\"canUseProjectProgress\\\",\\\"Lets company use progress tracking features.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use take off uploader tool?\\\",\\\"canUseCsvTaskFileUploader\\\",\\\"Lets company use take off tool.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use products?\\\",\\\"canUseProducts\\\",\\\"Lets company use products.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use estimates?\\\",\\\"canUseEstimates\\\",\\\"Lets company estimates related features.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use stage payments?\\\",\\\"canUseStagePayments\\\",\\\"Lets company use stage payment features.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n\\\"]],[]],null],[1,\\\"\\\\n          \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"showReportFeatures\\\"]]],null],[28,[37,20],[[30,0,[\\\"showReportFeatures\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n              Reports\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"reportsFeaturesCount\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"reportsFeaturesCount\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,15],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"showReportFeatures\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"showReportFeatures\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use work in progress report?\\\",\\\"canUseWIPReport\\\",\\\"Lets company use work in progress report.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use forecast report?\\\",\\\"canUseForecastReport\\\",\\\"Lets company use forecast report.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use profit margins report?\\\",\\\"canUseProfitMarginsReport\\\",\\\"Lets company use profit margins report.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use labour hours report?\\\",\\\"canUseLabourHoursReport\\\",\\\"Lets company use labour hours report.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use budget report?\\\",\\\"canUseBudgetReport\\\",\\\"Lets company use budget report.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use quote report?\\\",\\\"canUseQuoteReport\\\",\\\"Lets company use quote report.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use cost report?\\\",\\\"canUseCostReport\\\",\\\"Lets company use cost report.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use chargeup report?\\\",\\\"canUseChargeupReport\\\",\\\"Lets company use chargeup report.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use position report?\\\",\\\"canUsePositionReport\\\",\\\"Lets company use position report.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use Invoicing report?\\\",\\\"canUseInvoicingReport\\\",\\\"Lets company use invoicing report.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use the cost to complete report?\\\",\\\"canUseClientReport\\\",\\\"Lets company use the cost to complete report.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n          \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"showSchedulingFeatures\\\"]]],null],[28,[37,20],[[30,0,[\\\"showSchedulingFeatures\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n              Scheduling\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"schedulingFeaturesCount\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"schedulingFeaturesCount\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,15],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"showSchedulingFeatures\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"showSchedulingFeatures\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use scheduling?\\\",\\\"canUseScheduling\\\",\\\"Lets company use scheduling.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n          \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"showAllocationFeatures\\\"]]],null],[28,[37,20],[[30,0,[\\\"showAllocationFeatures\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n              Allocations\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"allocationsFeaturesCount\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"allocationsFeaturesCount\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,15],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"showAllocationFeatures\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"showAllocationFeatures\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use timesheets?\\\",\\\"canUseTimesheets\\\",\\\"Lets company use timesheets.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use crystal payroll integrations?\\\",\\\"canUseCrystalPayroll\\\",\\\"Lets company use crystal payroll integrations.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use smartly payroll integrations?\\\",\\\"canUseSmartPayroll\\\",\\\"Lets company use smart payroll integrations.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use keypay integrations?\\\",\\\"canUseKeypay\\\",\\\"Lets company use keypay integrations.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use notes features?\\\",\\\"canUseNotes\\\",\\\"Lets company use notes features.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use bills features?\\\",\\\"canUseBills\\\",\\\"Lets company use bills features (incoming invoices).\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use purchase orders?\\\",\\\"canUsePurchaseOrders\\\",\\\"Lets company use purchase order features.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use Invoicing?\\\",\\\"canUseInvoicing\\\",\\\"Lets company use invoicing features.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"showFinancialPortalFeatures\\\"]]],null],[28,[37,20],[[30,0,[\\\"showFinancialPortalFeatures\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n          Financial portal\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"FinancialPortalPermissionsCount\\\"]],[[[1,\\\"          \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[30,0,[\\\"FinancialPortalPermissionsCount\\\"]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,15],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"showFinancialPortalFeatures\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"showFinancialPortalFeatures\\\"]],[[[1,\\\"        \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use Financial portal?\\\",\\\"canUseFinancialReporting\\\",\\\"Lets company use Financial portal.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-2\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,12],[[30,0,[\\\"saveFeatures\\\"]],[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]],[[[1,\\\"            Saving features…\\\\n\\\"]],[]],[[[1,\\\"            Save features\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"]],[]],null]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"openInviteUserModal\\\"]],[[[1,\\\"  \\\"],[8,[39,23],null,[[\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@overlayClass\\\",\\\"@translucentOverlay\\\"],[[28,[37,16],[[28,[37,17],[[30,0,[\\\"openInviteUserModal\\\"]]],null],false],null],\\\"modal-content w-auto\\\",\\\"modal\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[11,0],[24,\\\"hidden\\\",\\\"\\\"],[4,[38,24],[[28,[37,12],[[30,0,[\\\"initChangeset\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body mt-2\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"inviteUser\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",\\\"First name\\\",\\\"firstName\\\",[30,0,[\\\"userChangeSet\\\"]],true,[28,[37,9],[[30,0,[\\\"inviteUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"inviteUser\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",\\\"Last name\\\",\\\"lastName\\\",[30,0,[\\\"userChangeSet\\\"]],true,[28,[37,9],[[30,0,[\\\"inviteUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"inviteUser\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",\\\"Email\\\",\\\"email\\\",[30,0,[\\\"userChangeSet\\\"]],true,[28,[37,9],[[30,0,[\\\"inviteUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"inviteUser\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",\\\"Phone number\\\",\\\"phoneNumber\\\",[30,0,[\\\"userChangeSet\\\"]],[28,[37,9],[[30,0,[\\\"inviteUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer d-flex\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"inviteUser\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"openInviteUserModal\\\"]]],null],false],null]],null],[12],[1,[28,[35,6],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"inviteUser\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,12],[[30,0,[\\\"inviteUser\\\"]],[30,0,[\\\"userChangeSet\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"inviteUser\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  Inviting…\\\\n\\\"]],[]],[[[1,\\\"            Invite\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"page-title-breadcrumbs\\\",\\\"ptl-form\\\",\\\"h3\\\",\\\"t\\\",\\\"ptl-input\\\",\\\"array\\\",\\\"gt\\\",\\\"button\\\",\\\"on\\\",\\\"perform\\\",\\\"span\\\",\\\"unless\\\",\\\"fa-icon\\\",\\\"fn\\\",\\\"mut\\\",\\\"p\\\",\\\"h5\\\",\\\"not\\\",\\\"h4\\\",\\\"and\\\",\\\"modal-dialog\\\",\\\"did-insert\\\"]]\",\n    \"moduleName\": \"portal/templates/admin/entities/entity.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/admin/entities/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='mb-1 pb-2 d-lg-flex justify-content-end align-items-center'>\n    <Input\n      class='form-control m-1 w-auto'\n      placeholder={{t 'common.Search'}}\n      @value={{this.searchString}}\n      disabled={{this.isLoading}}\n      @type='search'\n      autofocus='true'\n    />\n    <button\n      type='button'\n      class='btn btn-success text-white text-nowrap m-1'\n      disabled={{this.isLoading}}\n      {{on 'click' this.goNewEntity}}\n    >\n      <FaIcon @icon='plus' />&nbsp;&nbsp;Add\n    </button>\n  </div>\n  \n  <div class='admin-console__entity-table-container'>\n    <PaginationTable\n      @tableHeader={{this.entityTableHeader}}\n      @tableData={{this.entityTableData}}\n      @noDataText='No entities'\n      @isLoading={{this.model.entities.isRunning}}\n      @pageSizes={{this.pageSizes}}\n      @pageSize={{this.pageSize}}\n      @pageIndex={{this.pageIndex}}\n      @onChangePageIndex={{this.onChangePageIndex}}\n      @onChangePageSize={{this.onChangePageSize}}\n      @totalRecords={{this.totalRecords}}\n      @class='table-bordered'\n    />\n  </div>\n  */\n  {\n    \"id\": \"GDWa8S5w\",\n    \"block\": \"[[[10,0],[14,0,\\\"mb-1 pb-2 d-lg-flex justify-content-end align-items-center\\\"],[12],[1,\\\"\\\\n  \\\"],[8,[39,1],[[24,0,\\\"form-control m-1 w-auto\\\"],[16,\\\"placeholder\\\",[28,[37,2],[\\\"common.Search\\\"],null]],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[24,\\\"autofocus\\\",\\\"true\\\"]],[[\\\"@value\\\",\\\"@type\\\"],[[30,0,[\\\"searchString\\\"]],\\\"search\\\"]],null],[1,\\\"\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[24,4,\\\"button\\\"],[4,[38,4],[\\\"click\\\",[30,0,[\\\"goNewEntity\\\"]]],null],[12],[1,\\\"\\\\n    \\\"],[8,[39,5],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  Add\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,0],[14,0,\\\"admin-console__entity-table-container\\\"],[12],[1,\\\"\\\\n  \\\"],[8,[39,6],null,[[\\\"@tableHeader\\\",\\\"@tableData\\\",\\\"@noDataText\\\",\\\"@isLoading\\\",\\\"@pageSizes\\\",\\\"@pageSize\\\",\\\"@pageIndex\\\",\\\"@onChangePageIndex\\\",\\\"@onChangePageSize\\\",\\\"@totalRecords\\\",\\\"@class\\\"],[[30,0,[\\\"entityTableHeader\\\"]],[30,0,[\\\"entityTableData\\\"]],\\\"No entities\\\",[30,0,[\\\"model\\\",\\\"entities\\\",\\\"isRunning\\\"]],[30,0,[\\\"pageSizes\\\"]],[30,0,[\\\"pageSize\\\"]],[30,0,[\\\"pageIndex\\\"]],[30,0,[\\\"onChangePageIndex\\\"]],[30,0,[\\\"onChangePageSize\\\"]],[30,0,[\\\"totalRecords\\\"]],\\\"table-bordered\\\"]],null],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"div\\\",\\\"input\\\",\\\"t\\\",\\\"button\\\",\\\"on\\\",\\\"fa-icon\\\",\\\"pagination-table\\\"]]\",\n    \"moduleName\": \"portal/templates/admin/entities/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/admin/licensees\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='mx-4 mt-4'>\n    <header class='border-bottom pb-2 mb-3 d-flex align-items-center'>\n      <h2 class='flex-grow-1 m-0 my-2'>Licensees</h2>\n    </header>\n    {{outlet}}\n  </article>\n  */\n  {\n    \"id\": \"xPATBUUo\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom pb-2 mb-3 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"Licensees\\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[46,[28,[37,4],null,null],null,null,null],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"article\\\",\\\"header\\\",\\\"h2\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/admin/licensees.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/admin/licensees/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='mb-1 pb-2 d-lg-flex justify-content-end'>\n    <button\n      type='button'\n      class='btn btn-success text-white text-nowrap m-1'\n      disabled={{this.isLoading}}\n      {{on 'click' (fn (mut this.showCreateLicenseeModal) true)}}\n    >\n      <FaIcon @icon='plus' />&nbsp;&nbsp;Create Licensee\n    </button>\n  </div>\n  \n  {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <div class='admin-console__entity-table-container'>\n      <PaginationTable\n        @tableHeader={{this.tableHeader}}\n        @tableData={{this.tableData}}\n        @isLoading={{this.isLoading}}\n        @noDataText='No Licensees'\n        @class='table-bordered'\n        @hidePagination={{true}}\n      />\n    </div>\n  {{/if}}\n  \n  {{#if this.showCreateLicenseeModal}}\n    <ModalDialog\n      @onClose={{fn (mut this.openInviteUserModal) false}}\n      @containerClass='modal-content w-auto'\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-header' {{did-insert (perform this.initChangeset)}}>\n        <h3 class='modal-title'>\n          Create Licensee\n        </h3>\n      </div>\n  \n      <div class='modal-body'>\n        <PtlInput\n          @type='text'\n          @label='Licensee name'\n          @key='licenseeName'\n          @model={{this.licenseeChangeset}}\n          @required={{true}}\n          @forceValidationVisible={{gt this.createNewLicensee.performCount 0}}\n          disabled={{this.createNewLicensee.isRunning}}\n        />\n        <PtlInput\n          @type='powerSelectMultiple'\n          @label=\"Licensee's customers\"\n          @key='customers'\n          @optionKeys={{array 'name'}}\n          @options={{this.unclaimedEntities}}\n          @model={{this.licenseeChangeset}}\n          @forceValidationVisible={{gt this.createNewLicensee.performCount 0}}\n          @searchEnabled={{true}}\n          @searchField='name'\n          @disabled={{this.createNewLicensee.isRunning}}\n        />\n  \n        <NewComboBox\n          @isLoading={{this.fetchUsers.isRunning}}\n          @list={{this.userList}}\n          @noDataMessage='No users'\n          @onSelect={{this.setUser}}\n          @onSearch={{this.onSearchUser}}\n          @label='Email'\n          @required={{true}}\n          @key='email'\n          @debounce={{this.debounceTime}}\n          @model={{this.licenseeChangeset}}\n          @pageSize={{this.recordPageSize}}\n          @hasNextPage={{this.hasNextUsersPage}}\n          @onLoadMore={{this.fetchUsers}}\n          @forceValidationVisible={{gt this.createNewLicensee.performCount 0}}\n          @description='An account will be granted access, either by using an existing one or creating a new one.'\n        />\n  \n        <PtlInput\n          @type='text'\n          @label='First name'\n          @key='firstName'\n          @model={{this.licenseeChangeset}}\n          @required={{true}}\n          @forceValidationVisible={{gt this.createNewLicensee.performCount 0}}\n          disabled={{this.createNewLicensee.isRunning}}\n        />\n        <PtlInput\n          @type='text'\n          @label='Last name'\n          @key='lastName'\n          @model={{this.licenseeChangeset}}\n          @required={{true}}\n          @forceValidationVisible={{gt this.createNewLicensee.performCount 0}}\n          disabled={{this.createNewLicensee.isRunning}}\n        />\n  \n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' (fn (mut this.showCreateLicenseeModal) false)}}\n        >\n          Cancel\n        </button>\n        <button\n          type='button'\n          class='btn btn-primary text-white'\n          disabled={{this.createNewLicensee.isRunning}}\n          {{on 'click' (perform this.createNewLicensee this.licenseeChangeset)}}\n        >\n          {{#if this.createNewLicensee.isRunning}}\n            Creating &hellip;\n          {{else}}\n            Create Licensee\n          {{/if}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"kmNcn3UE\",\n    \"block\": \"[[[10,0],[14,0,\\\"mb-1 pb-2 d-lg-flex justify-content-end\\\"],[12],[1,\\\"\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[24,4,\\\"button\\\"],[4,[38,2],[\\\"click\\\",[28,[37,3],[[28,[37,4],[[30,0,[\\\"showCreateLicenseeModal\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n    \\\"],[8,[39,5],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  Create Licensee\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,7],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"admin-console__entity-table-container\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,8],null,[[\\\"@tableHeader\\\",\\\"@tableData\\\",\\\"@isLoading\\\",\\\"@noDataText\\\",\\\"@class\\\",\\\"@hidePagination\\\"],[[30,0,[\\\"tableHeader\\\"]],[30,0,[\\\"tableData\\\"]],[30,0,[\\\"isLoading\\\"]],\\\"No Licensees\\\",\\\"table-bordered\\\",true]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showCreateLicenseeModal\\\"]],[[[1,\\\"  \\\"],[8,[39,9],null,[[\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@overlayClass\\\",\\\"@translucentOverlay\\\"],[[28,[37,3],[[28,[37,4],[[30,0,[\\\"openInviteUserModal\\\"]]],null],false],null],\\\"modal-content w-auto\\\",\\\"modal\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[11,0],[24,0,\\\"modal-header\\\"],[4,[38,10],[[28,[37,11],[[30,0,[\\\"initChangeset\\\"]]],null]],null],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n        Create Licensee\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,13],[[16,\\\"disabled\\\",[30,0,[\\\"createNewLicensee\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",\\\"Licensee name\\\",\\\"licenseeName\\\",[30,0,[\\\"licenseeChangeset\\\"]],true,[28,[37,14],[[30,0,[\\\"createNewLicensee\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,13],null,[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@disabled\\\"],[\\\"powerSelectMultiple\\\",\\\"Licensee's customers\\\",\\\"customers\\\",[28,[37,15],[\\\"name\\\"],null],[30,0,[\\\"unclaimedEntities\\\"]],[30,0,[\\\"licenseeChangeset\\\"]],[28,[37,14],[[30,0,[\\\"createNewLicensee\\\",\\\"performCount\\\"]],0],null],true,\\\"name\\\",[30,0,[\\\"createNewLicensee\\\",\\\"isRunning\\\"]]]],null],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,16],null,[[\\\"@isLoading\\\",\\\"@list\\\",\\\"@noDataMessage\\\",\\\"@onSelect\\\",\\\"@onSearch\\\",\\\"@label\\\",\\\"@required\\\",\\\"@key\\\",\\\"@debounce\\\",\\\"@model\\\",\\\"@pageSize\\\",\\\"@hasNextPage\\\",\\\"@onLoadMore\\\",\\\"@forceValidationVisible\\\",\\\"@description\\\"],[[30,0,[\\\"fetchUsers\\\",\\\"isRunning\\\"]],[30,0,[\\\"userList\\\"]],\\\"No users\\\",[30,0,[\\\"setUser\\\"]],[30,0,[\\\"onSearchUser\\\"]],\\\"Email\\\",true,\\\"email\\\",[30,0,[\\\"debounceTime\\\"]],[30,0,[\\\"licenseeChangeset\\\"]],[30,0,[\\\"recordPageSize\\\"]],[30,0,[\\\"hasNextUsersPage\\\"]],[30,0,[\\\"fetchUsers\\\"]],[28,[37,14],[[30,0,[\\\"createNewLicensee\\\",\\\"performCount\\\"]],0],null],\\\"An account will be granted access, either by using an existing one or creating a new one.\\\"]],null],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,13],[[16,\\\"disabled\\\",[30,0,[\\\"createNewLicensee\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",\\\"First name\\\",\\\"firstName\\\",[30,0,[\\\"licenseeChangeset\\\"]],true,[28,[37,14],[[30,0,[\\\"createNewLicensee\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,13],[[16,\\\"disabled\\\",[30,0,[\\\"createNewLicensee\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",\\\"Last name\\\",\\\"lastName\\\",[30,0,[\\\"licenseeChangeset\\\"]],true,[28,[37,14],[[30,0,[\\\"createNewLicensee\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,2],[\\\"click\\\",[28,[37,3],[[28,[37,4],[[30,0,[\\\"showCreateLicenseeModal\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n        Cancel\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary text-white\\\"],[16,\\\"disabled\\\",[30,0,[\\\"createNewLicensee\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,2],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"createNewLicensee\\\"]],[30,0,[\\\"licenseeChangeset\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"createNewLicensee\\\",\\\"isRunning\\\"]],[[[1,\\\"          Creating …\\\\n\\\"]],[]],[[[1,\\\"          Create Licensee\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[],false,[\\\"div\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"fa-icon\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"pagination-table\\\",\\\"modal-dialog\\\",\\\"did-insert\\\",\\\"perform\\\",\\\"h3\\\",\\\"ptl-input\\\",\\\"gt\\\",\\\"array\\\",\\\"new-combo-box\\\"]]\",\n    \"moduleName\": \"portal/templates/admin/licensees/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/admin/licensees/licensee\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <div class='d-flex align-items-center'>\n      <div class='mb-3 ms-1 mt-1'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n  \n      <div class='ms-auto'>\n  \n      </div>\n    </div>\n  \n    <div class='width--small mb-3'>\n      <div class='d-flex align-items-center justify-content-center mb-3'>\n        <h3 class='m-0'>Licensee users</h3>\n        <button\n          type='button'\n          class='btn btn-success text-white text-nowrap ms-auto'\n          disabled={{this.isLoading}}\n          {{on 'click' (fn (mut this.showAddNewLicenseeModal) true)}}\n        >\n          <FaIcon @icon='plus' />&nbsp;&nbsp;Add new Licensee user\n        </button>\n      </div>\n      <PaginationTable\n        @tableHeader={{this.usersTableHeader}}\n        @tableData={{this.usersTableData}}\n        @isLoading={{this.isLoading}}\n        @noDataText='No Users'\n        @class='table-bordered'\n        @hidePagination={{true}}\n      />\n    </div>\n  \n    <div class='width--small mb-3'>\n      <div class='d-flex align-items-center justify-content-center mb-3'>\n        <h3 class='m-0'>Licensee customers</h3>\n        <button\n          type='button'\n          class='btn btn-success text-white text-nowrap ms-auto'\n          disabled={{this.isLoading}}\n          {{on 'click' (fn (mut this.showAddNewCustomerModal) true)}}\n        >\n          <FaIcon @icon='plus' />&nbsp;&nbsp;Associate new customers\n        </button>\n      </div>\n      <PaginationTable\n        @tableHeader={{this.tableHeader}}\n        @tableData={{this.tableData}}\n        @isLoading={{this.isLoading}}\n        @noDataText='No Customers'\n        @class='table-bordered'\n        @hidePagination={{true}}\n      />\n    </div>\n  {{/if}}\n  \n  {{#if this.showAddNewCustomerModal}}\n    <ModalDialog\n      @onClose={{fn (mut this.openInviteUserModal) false}}\n      @containerClass='modal-content w-auto'\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-header'>\n        <h3 class='modal-title'>\n          Associate customers to Licensee\n        </h3>\n      </div>\n  \n      <div class='modal-body'>\n        <PowerSelectMultiple\n          @options={{this.unclaimedEntities}}\n          @selected={{this.newCustomersToAdd}}\n          @searchEnabled={{true}}\n          @searchField='name'\n          @renderInPlace={{true}}\n          required={{true}}\n          @disabled={{this.addNewCustomerToLicensee.isRunning}}\n          @onChange={{fn (mut this.newCustomersToAdd)}}\n          as |entity|\n        >\n          {{entity.name}}\n          {{#if (includes entity.entityLinkedAttributes 'canUseBuildaPrice')}}\n            - BP\n          {{else if\n            (includes entity.entityLinkedAttributes 'canUseFinancialReporting')\n          }}\n            - FP\n          {{else}}\n            - Disabled\n          {{/if}}\n        </PowerSelectMultiple>\n  \n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' (fn (mut this.showAddNewCustomerModal) false)}}\n        >\n          Cancel\n        </button>\n        <button\n          type='button'\n          class='btn btn-primary text-white'\n          disabled={{this.addNewCustomerToLicensee.isRunning}}\n          {{on 'click' (perform this.addNewCustomerToLicensee)}}\n        >\n          {{#if this.addNewCustomerToLicensee.isRunning}}\n            Associating &hellip;\n          {{else}}\n            Associate customers\n          {{/if}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.showAddNewLicenseeModal}}\n    <ModalDialog\n      @onClose={{fn (mut this.openInviteUserModal) false}}\n      @containerClass='modal-content w-auto'\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n    >\n      <div hidden {{did-insert (perform this.initChangeset)}} />\n      <div class='modal-header'>\n        <h3 class='modal-title'>\n          Add new licensee user\n        </h3>\n      </div>\n  \n      <div class='modal-body'>\n        <NewComboBox\n          @isLoading={{this.fetchUsers.isRunning}}\n          @list={{this.userList}}\n          @noDataMessage='No users'\n          @onSelect={{this.setUser}}\n          @onSearch={{this.onSearchUser}}\n          @label='Email'\n          @required={{true}}\n          @key='email'\n          @debounce={{this.debounceTime}}\n          @model={{this.licenseeChangeset}}\n          @pageSize={{this.recordPageSize}}\n          @hasNextPage={{this.hasNextUsersPage}}\n          @onLoadMore={{this.fetchUsers}}\n          @forceValidationVisible={{gt this.addNewLicenseeUser.performCount 0}}\n          @description='An account will be granted access, either by using an existing one or creating a new one.'\n        />\n        <PtlInput\n          @type='text'\n          @label='First name'\n          @key='firstName'\n          @model={{this.licenseeChangeset}}\n          @required={{true}}\n          @forceValidationVisible={{gt this.addNewLicenseeUser.performCount 0}}\n          disabled={{this.addNewLicenseeUser.isRunning}}\n        />\n        <PtlInput\n          @type='text'\n          @label='Last name'\n          @key='lastName'\n          @model={{this.licenseeChangeset}}\n          @required={{true}}\n          @forceValidationVisible={{gt this.addNewLicenseeUser.performCount 0}}\n          disabled={{this.addNewLicenseeUser.isRunning}}\n        />\n      </div>\n  \n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' (fn (mut this.showAddNewLicenseeModal) false)}}\n        >\n          Cancel\n        </button>\n        <button\n          type='button'\n          class='btn btn-primary text-white'\n          disabled={{this.addNewLicenseeUser.isRunning}}\n          {{on 'click' (perform this.addNewLicenseeUser)}}\n        >\n          {{#if this.addNewLicenseeUser.isRunning}}\n            Creating &hellip;\n          {{else}}\n            Create new user\n          {{/if}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"IlySBEU1\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"mb-3 ms-1 mt-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,3],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"ms-auto\\\"],[12],[1,\\\"\\\\n\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"width--small mb-3\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center justify-content-center mb-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"Licensee users\\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,7],[[28,[37,8],[[30,0,[\\\"showAddNewLicenseeModal\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n        \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  Add new Licensee user\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,10],null,[[\\\"@tableHeader\\\",\\\"@tableData\\\",\\\"@isLoading\\\",\\\"@noDataText\\\",\\\"@class\\\",\\\"@hidePagination\\\"],[[30,0,[\\\"usersTableHeader\\\"]],[30,0,[\\\"usersTableData\\\"]],[30,0,[\\\"isLoading\\\"]],\\\"No Users\\\",\\\"table-bordered\\\",true]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"width--small mb-3\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center justify-content-center mb-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"Licensee customers\\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,7],[[28,[37,8],[[30,0,[\\\"showAddNewCustomerModal\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n        \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  Associate new customers\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,10],null,[[\\\"@tableHeader\\\",\\\"@tableData\\\",\\\"@isLoading\\\",\\\"@noDataText\\\",\\\"@class\\\",\\\"@hidePagination\\\"],[[30,0,[\\\"tableHeader\\\"]],[30,0,[\\\"tableData\\\"]],[30,0,[\\\"isLoading\\\"]],\\\"No Customers\\\",\\\"table-bordered\\\",true]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showAddNewCustomerModal\\\"]],[[[1,\\\"  \\\"],[8,[39,11],null,[[\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@overlayClass\\\",\\\"@translucentOverlay\\\"],[[28,[37,7],[[28,[37,8],[[30,0,[\\\"openInviteUserModal\\\"]]],null],false],null],\\\"modal-content w-auto\\\",\\\"modal\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n        Associate customers to Licensee\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,12],[[16,\\\"required\\\",true]],[[\\\"@options\\\",\\\"@selected\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@renderInPlace\\\",\\\"@disabled\\\",\\\"@onChange\\\"],[[30,0,[\\\"unclaimedEntities\\\"]],[30,0,[\\\"newCustomersToAdd\\\"]],true,\\\"name\\\",true,[30,0,[\\\"addNewCustomerToLicensee\\\",\\\"isRunning\\\"]],[28,[37,7],[[28,[37,8],[[30,0,[\\\"newCustomersToAdd\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n\\\"],[41,[28,[37,13],[[30,1,[\\\"entityLinkedAttributes\\\"]],\\\"canUseBuildaPrice\\\"],null],[[[1,\\\"          - BP\\\\n\\\"]],[]],[[[41,[28,[37,13],[[30,1,[\\\"entityLinkedAttributes\\\"]],\\\"canUseFinancialReporting\\\"],null],[[[1,\\\"          - FP\\\\n\\\"]],[]],[[[1,\\\"          - Disabled\\\\n        \\\"]],[]]]],[]]],[1,\\\"      \\\"]],[1]]]]],[1,\\\"\\\\n\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,7],[[28,[37,8],[[30,0,[\\\"showAddNewCustomerModal\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n        Cancel\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary text-white\\\"],[16,\\\"disabled\\\",[30,0,[\\\"addNewCustomerToLicensee\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"addNewCustomerToLicensee\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"addNewCustomerToLicensee\\\",\\\"isRunning\\\"]],[[[1,\\\"          Associating …\\\\n\\\"]],[]],[[[1,\\\"          Associate customers\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showAddNewLicenseeModal\\\"]],[[[1,\\\"  \\\"],[8,[39,11],null,[[\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@overlayClass\\\",\\\"@translucentOverlay\\\"],[[28,[37,7],[[28,[37,8],[[30,0,[\\\"openInviteUserModal\\\"]]],null],false],null],\\\"modal-content w-auto\\\",\\\"modal\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[11,0],[24,\\\"hidden\\\",\\\"\\\"],[4,[38,15],[[28,[37,14],[[30,0,[\\\"initChangeset\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n        Add new licensee user\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,16],null,[[\\\"@isLoading\\\",\\\"@list\\\",\\\"@noDataMessage\\\",\\\"@onSelect\\\",\\\"@onSearch\\\",\\\"@label\\\",\\\"@required\\\",\\\"@key\\\",\\\"@debounce\\\",\\\"@model\\\",\\\"@pageSize\\\",\\\"@hasNextPage\\\",\\\"@onLoadMore\\\",\\\"@forceValidationVisible\\\",\\\"@description\\\"],[[30,0,[\\\"fetchUsers\\\",\\\"isRunning\\\"]],[30,0,[\\\"userList\\\"]],\\\"No users\\\",[30,0,[\\\"setUser\\\"]],[30,0,[\\\"onSearchUser\\\"]],\\\"Email\\\",true,\\\"email\\\",[30,0,[\\\"debounceTime\\\"]],[30,0,[\\\"licenseeChangeset\\\"]],[30,0,[\\\"recordPageSize\\\"]],[30,0,[\\\"hasNextUsersPage\\\"]],[30,0,[\\\"fetchUsers\\\"]],[28,[37,17],[[30,0,[\\\"addNewLicenseeUser\\\",\\\"performCount\\\"]],0],null],\\\"An account will be granted access, either by using an existing one or creating a new one.\\\"]],null],[1,\\\"\\\\n      \\\"],[8,[39,18],[[16,\\\"disabled\\\",[30,0,[\\\"addNewLicenseeUser\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",\\\"First name\\\",\\\"firstName\\\",[30,0,[\\\"licenseeChangeset\\\"]],true,[28,[37,17],[[30,0,[\\\"addNewLicenseeUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,18],[[16,\\\"disabled\\\",[30,0,[\\\"addNewLicenseeUser\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",\\\"Last name\\\",\\\"lastName\\\",[30,0,[\\\"licenseeChangeset\\\"]],true,[28,[37,17],[[30,0,[\\\"addNewLicenseeUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,7],[[28,[37,8],[[30,0,[\\\"showAddNewLicenseeModal\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n        Cancel\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary text-white\\\"],[16,\\\"disabled\\\",[30,0,[\\\"addNewLicenseeUser\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"addNewLicenseeUser\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"addNewLicenseeUser\\\",\\\"isRunning\\\"]],[[[1,\\\"          Creating …\\\\n\\\"]],[]],[[[1,\\\"          Create new user\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"entity\\\"],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"page-title-breadcrumbs\\\",\\\"h3\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"fa-icon\\\",\\\"pagination-table\\\",\\\"modal-dialog\\\",\\\"power-select-multiple\\\",\\\"includes\\\",\\\"perform\\\",\\\"did-insert\\\",\\\"new-combo-box\\\",\\\"gt\\\",\\\"ptl-input\\\"]]\",\n    \"moduleName\": \"portal/templates/admin/licensees/licensee.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/application\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.sessionData.isUsingLoginAs}}\n    <LoggedInAs />\n  {{/if}}\n  \n  {{#if this.sessionData.isUsingAdminMode}}\n    <AdminMode />\n  {{/if}}\n  \n  {{#if this.chargebee.subscriptionIsChanging}}\n    <ModalDialog\n      @onClose={{fn (mut this.chargebee.subscriptionIsChanging) false}}\n      @translucentOverlay={{true}}\n      @overlayClass='modal'\n      @containerClass='block-module'\n    >\n      <p class='text-center'>Applying changes&hellip;</p>\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.invoicedCosts.confirmingDelete}}\n    <ModalDialog\n      @onClose={{this.invoicedCosts.dismissDelete}}\n      @overlayClass='modal'\n      @containerClass='modal-content modal-dialog-scrollable w-auto max-width-75 h-auto'\n      @translucentOverlay={{true}}\n    >\n      {{#if this.invoicedCosts.deleteTitle}}\n        <div class='modal-header'>\n          <h3 class='modal-title'>\n            {{this.invoicedCosts.deleteTitle}}\n          </h3>\n        </div>\n      {{/if}}\n  \n      <div class='modal-body'>\n        {{this.invoicedCosts.deleteMessage}}\n      </div>\n  \n      <div class='modal-footer'>\n        <button\n          type='button'\n          class='btn btn-danger text-white'\n          {{on 'click' this.invoicedCosts.confirmDelete}}\n        >\n          {{t 'common.Delete'}}\n        </button>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' this.invoicedCosts.dismissDelete}}\n        >\n          {{t 'common.Cancel'}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  <NotificationContainer @notifications={{this.notifications}} />\n  <BasicDropdownWormhole />\n  \n  <div class='body__container'>\n    {{outlet}}\n  </div>\n  */\n  {\n    \"id\": \"TTdDjSny\",\n    \"block\": \"[[[41,[30,0,[\\\"sessionData\\\",\\\"isUsingLoginAs\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"sessionData\\\",\\\"isUsingAdminMode\\\"]],[[[1,\\\"  \\\"],[8,[39,2],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"chargebee\\\",\\\"subscriptionIsChanging\\\"]],[[[1,\\\"  \\\"],[8,[39,3],null,[[\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@overlayClass\\\",\\\"@containerClass\\\"],[[28,[37,4],[[28,[37,5],[[30,0,[\\\"chargebee\\\",\\\"subscriptionIsChanging\\\"]]],null],false],null],true,\\\"modal\\\",\\\"block-module\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,2],[14,0,\\\"text-center\\\"],[12],[1,\\\"Applying changes…\\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,7],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"invoicedCosts\\\",\\\"confirmingDelete\\\"]],[[[1,\\\"  \\\"],[8,[39,3],null,[[\\\"@onClose\\\",\\\"@overlayClass\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[[30,0,[\\\"invoicedCosts\\\",\\\"dismissDelete\\\"]],\\\"modal\\\",\\\"modal-content modal-dialog-scrollable w-auto max-width-75 h-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"invoicedCosts\\\",\\\"deleteTitle\\\"]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"invoicedCosts\\\",\\\"deleteTitle\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[30,0,[\\\"invoicedCosts\\\",\\\"deleteMessage\\\"]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger text-white\\\"],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[30,0,[\\\"invoicedCosts\\\",\\\"confirmDelete\\\"]]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,12],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[30,0,[\\\"invoicedCosts\\\",\\\"dismissDelete\\\"]]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,12],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[8,[39,13],null,[[\\\"@notifications\\\"],[[30,0,[\\\"notifications\\\"]]]],null],[1,\\\"\\\\n\\\"],[8,[39,14],null,null,null],[1,\\\"\\\\n\\\\n\\\"],[10,0],[14,0,\\\"body__container\\\"],[12],[1,\\\"\\\\n  \\\"],[46,[28,[37,16],null,null],null,null,null],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"if\\\",\\\"logged-in-as\\\",\\\"admin-mode\\\",\\\"modal-dialog\\\",\\\"fn\\\",\\\"mut\\\",\\\"p\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"h3\\\",\\\"button\\\",\\\"on\\\",\\\"t\\\",\\\"notification-container\\\",\\\"basic-dropdown-wormhole\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/application.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/complete-pm-auth\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    \n  */\n  {\n    \"id\": \"i4tRYGuU\",\n    \"block\": \"[[],[],false,[]]\",\n    \"moduleName\": \"portal/templates/complete-pm-auth.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/complete-registration-cb\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='bg-dark bg-gradient'>\n    <div\n      class='min-vh-100 container d-flex justify-content-center align-items-center'\n    >\n      <div class='card shadow-lg' style='width: 600px;'>\n        <div class='card-body p-sm-5'>\n          <div class='w-100 d-flex justify-content-center'>\n            <img\n              class='w-50 align-self-center'\n              src={{this.platform.platform.fullLogo}}\n              alt={{this.platform.platform.name}}\n            />\n          </div>\n  \n          {{#if this.model.registrationData.isRunning}}\n            <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n          {{else if this.model.registrationData.value.error}}\n            {{! Handles errors thrown while fetching the registration data }}\n            {{#let this.model.registrationData.value.error as |error|}}\n              <p>\n                {{#if (eq error.code 'MISSING_TOKEN')}}\n                  The registration URL appears to be missing some data. Please\n                  make sure to paste the full link into your browser.\n                {{else if (eq error.code 'UNKNOWN_TOKEN')}}\n                  The registration URL appears to have incorrect data. Please make\n                  sure to paste the full link into your browser.\n                {{else if (eq error.code 'REGISTRATION_RESOLVED')}}\n                  This registration has already been completed. Please\n                  <LinkTo @route='login' class='link'>click here</LinkTo>\n                  to log in.\n                {{else}}\n                  An unknown error occurred.\n                {{/if}}\n              </p>\n            {{/let}}\n  \n          {{else if this.registrationError}}\n            {{! Handles errors thrown when attempting to complete the registration. }}\n            <p>\n              {{#if (eq this.registrationError.code 'REGISTRATION_RESOLVED')}}\n                This registration has already been completed. Please\n                <LinkTo @route='login' class='link'>click here</LinkTo>\n                to log in.\n              {{else}}\n                {{or\n                  this.registrationError.title\n                  'An error occurred while completing registration'\n                }}\n              {{/if}}\n            </p>\n  \n          {{else if this.registrationComplete}}\n            {{! Ready to log in }}\n            <p class='text-center'>\n              Congratulations! Your registration is complete.\n            </p>\n  \n            <div class='w-100 d-flex justify-content-center'>\n              <LinkTo\n                @route='login'\n                @query={{hash email=this.model.registrationData.value.email}}\n                class='btn btn-lg btn-primary'\n              >\n                Click here to go to login\n              </LinkTo>\n            </div>\n  \n          {{else}}\n            {{! Main registration completion form }}\n            {{#let this.model.registrationData.value as |data|}}\n              <form {{on 'submit' (perform this.submit)}}>\n                <p>\n                  Welcome\n                  {{data.firstName}}, thanks for registering\n                  <b>{{data.company}}</b>\n                  with\n                  <b>{{this.platform.platform.name}}</b>. Please fill in the\n                  following info to complete the registration.\n                </p>\n  \n                <p>\n                  You should receive an email from us (at\n                  <b>{{data.email}}</b>) with a code to confirm your email\n                  address.\n                </p>\n  \n                <div class='form-group mb-2'>\n                  <label for='confirmEmailCode'>Confirm email code</label>\n                  <Input\n                    id='confirmEmailCode'\n                    @value={{this.confirmEmailCode}}\n                    class='form-control form-control-lg\n                      {{unless this.confirmEmailCode \"is-invalid\"}}'\n                    placeholder='One time code'\n                  />\n                </div>\n  \n                {{#unless this.confirmEmailCode}}\n                  <div class='d-flex'>\n                    <LoadingButton\n                      type='button'\n                      class='btn btn-secondary btn-sm me-1'\n                      {{on 'click' (perform this.resendEmail)}}\n                      @isLoading={{this.resendEmail.isRunning}}\n                    >Resend confirmation code</LoadingButton>\n                    <button\n                      type='button'\n                      class='btn btn-secondary btn-sm'\n                      {{on 'click' this.openEmailChangeModal}}\n                    >Change email address</button>\n                  </div>\n                {{/unless}}\n  \n                <h2 class='mb-2 mt-3'>Account details</h2>\n                {{#if data.userExists}}\n                  <p>\n                    It looks like we already have an account for\n                    <b>{{data.email}}</b>. The existing account will gain access\n                    to\n                    <b>{{data.company}}</b>.\n                  </p>\n                  <p>\n                    {{#if this.sendPasswordReset.lastSuccessful.value}}\n                      Password reset email sent. Please continue the registration.\n                    {{else if this.sendPasswordReset.isRunning}}\n                      Sending password reset&hellip;\n                    {{else}}\n                      If you don't know your password please\n                      <a\n                        class='link'\n                        href='#'\n                        {{on 'click' (perform this.sendPasswordReset)}}\n                      >\n                        click here to reset your password.\n                      </a>\n                    {{/if}}\n                  </p>\n                {{else}}\n                  <div class='form-group mb-2'>\n                    <label for='password'>Password</label>\n                    <Input\n                      id='password'\n                      class='form-control\n                        {{if\n                          (and this.passwordInvalid this.showValidation)\n                          \"is-invalid\"\n                        }}'\n                      @type='password'\n                      @value={{this.password}}\n                    />\n                    <div class='form-text text-muted'>\n                      Password must be at least 10 characters long.\n                    </div>\n                  </div>\n  \n                  <div class='form-group mb-2'>\n                    <label for='passwordCheck'>Confirm password</label>\n                    <Input\n                      id='passwordCheck'\n                      class='form-control\n                        {{if\n                          (and this.passwordCheckInvalid this.showValidation)\n                          \"is-invalid\"\n                        }}'\n                      @type='password'\n                      @value={{this.passwordCheck}}\n                    />\n                    {{#if (and this.passwordCheckInvalid this.showValidation)}}\n                      <div class='invalid-feedback'>\n                        Passwords must match.\n                      </div>\n                    {{/if}}\n                  </div>\n                {{/if}}\n                <div class='w-100 d-flex justify-content-center'>\n                  <LoadingButton\n                    class='btn btn-primary btn-lg m-3'\n                    @isLoading={{this.submit.isRunning}}\n                    @action={{perform this.submit}}\n                  >\n                    Complete registration\n                  </LoadingButton>\n                </div>\n              </form>\n            {{/let}}\n          {{/if}}\n        </div>\n      </div>\n    </div>\n  </div>\n  \n  {{#if this.showChangeEmailModal}}\n    <ModalDialog\n      @onClose={{this.closeEmailChangeModal}}\n      @containerClass='block-module'\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n    >\n      <p>\n        A new confirmation code will be sent and will replace any code sent to the\n        existing address.\n      </p>\n  \n      <div class='form-group'>\n        <label for='newEmail'>New email address</label>\n        <Input\n          id='newEmail'\n          @value={{this.newEmail}}\n          class='text-input text-input--stretch tabular-form-controls__cell\n            {{unless\n              (and this.newEmailIsValid this.showNewEmailValidation)\n              \"is-invalid\"\n            }}'\n          placeholder='your@email.com'\n        />\n      </div>\n  \n      <footer class='block-module__footer'>\n        <div class='float-end d-flex align-items-center'>\n          <button\n            class='btn btn-secondary'\n            type='button'\n            {{on 'click' this.closeEmailChangeModal}}\n          >\n            Cancel\n          </button>\n  \n          <LoadingButton\n            class='btn btn-primary ms-2'\n            {{on 'click' (perform this.changeEmail)}}\n            @isLoading={{this.changeEmail.isRunning}}\n          >Submit\n          </LoadingButton>\n        </div>\n      </footer>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"gJ2eDHNF\",\n    \"block\": \"[[[10,0],[14,0,\\\"bg-dark bg-gradient\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"min-vh-100 container d-flex justify-content-center align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"card shadow-lg\\\"],[14,5,\\\"width: 600px;\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"card-body p-sm-5\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"w-100 d-flex justify-content-center\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"img\\\"],[14,0,\\\"w-50 align-self-center\\\"],[15,\\\"src\\\",[30,0,[\\\"platform\\\",\\\"platform\\\",\\\"fullLogo\\\"]]],[15,\\\"alt\\\",[30,0,[\\\"platform\\\",\\\"platform\\\",\\\"name\\\"]]],[12],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"registrationData\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[8,[39,3],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"model\\\",\\\"registrationData\\\",\\\"value\\\",\\\"error\\\"]],[[[44,[[30,0,[\\\"model\\\",\\\"registrationData\\\",\\\"value\\\",\\\"error\\\"]]],[[[1,\\\"            \\\"],[10,2],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[[30,1,[\\\"code\\\"]],\\\"MISSING_TOKEN\\\"],null],[[[1,\\\"                The registration URL appears to be missing some data. Please\\\\n                make sure to paste the full link into your browser.\\\\n\\\"]],[]],[[[41,[28,[37,6],[[30,1,[\\\"code\\\"]],\\\"UNKNOWN_TOKEN\\\"],null],[[[1,\\\"                The registration URL appears to have incorrect data. Please make\\\\n                sure to paste the full link into your browser.\\\\n\\\"]],[]],[[[41,[28,[37,6],[[30,1,[\\\"code\\\"]],\\\"REGISTRATION_RESOLVED\\\"],null],[[[1,\\\"                This registration has already been completed. Please\\\\n                \\\"],[8,[39,7],[[24,0,\\\"link\\\"]],[[\\\"@route\\\"],[\\\"login\\\"]],[[\\\"default\\\"],[[[[1,\\\"click here\\\"]],[]]]]],[1,\\\"\\\\n                to log in.\\\\n\\\"]],[]],[[[1,\\\"                An unknown error occurred.\\\\n              \\\"]],[]]]],[]]]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[1]]],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"registrationError\\\"]],[[[1,\\\"          \\\"],[10,2],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[[30,0,[\\\"registrationError\\\",\\\"code\\\"]],\\\"REGISTRATION_RESOLVED\\\"],null],[[[1,\\\"              This registration has already been completed. Please\\\\n              \\\"],[8,[39,7],[[24,0,\\\"link\\\"]],[[\\\"@route\\\"],[\\\"login\\\"]],[[\\\"default\\\"],[[[[1,\\\"click here\\\"]],[]]]]],[1,\\\"\\\\n              to log in.\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,8],[[30,0,[\\\"registrationError\\\",\\\"title\\\"]],\\\"An error occurred while completing registration\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[]],[[[41,[30,0,[\\\"registrationComplete\\\"]],[[[1,\\\"          \\\"],[10,2],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n            Congratulations! Your registration is complete.\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"w-100 d-flex justify-content-center\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,7],[[24,0,\\\"btn btn-lg btn-primary\\\"]],[[\\\"@route\\\",\\\"@query\\\"],[\\\"login\\\",[28,[37,9],null,[[\\\"email\\\"],[[30,0,[\\\"model\\\",\\\"registrationData\\\",\\\"value\\\",\\\"email\\\"]]]]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              Click here to go to login\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[]],[[[44,[[30,0,[\\\"model\\\",\\\"registrationData\\\",\\\"value\\\"]]],[[[1,\\\"            \\\"],[11,\\\"form\\\"],[4,[38,11],[\\\"submit\\\",[28,[37,12],[[30,0,[\\\"submit\\\"]]],null]],null],[12],[1,\\\"\\\\n              \\\"],[10,2],[12],[1,\\\"\\\\n                Welcome\\\\n                \\\"],[1,[30,2,[\\\"firstName\\\"]]],[1,\\\", thanks for registering\\\\n                \\\"],[10,\\\"b\\\"],[12],[1,[30,2,[\\\"company\\\"]]],[13],[1,\\\"\\\\n                with\\\\n                \\\"],[10,\\\"b\\\"],[12],[1,[30,0,[\\\"platform\\\",\\\"platform\\\",\\\"name\\\"]]],[13],[1,\\\". Please fill in the\\\\n                following info to complete the registration.\\\\n              \\\"],[13],[1,\\\"\\\\n\\\\n              \\\"],[10,2],[12],[1,\\\"\\\\n                You should receive an email from us (at\\\\n                \\\"],[10,\\\"b\\\"],[12],[1,[30,2,[\\\"email\\\"]]],[13],[1,\\\") with a code to confirm your email\\\\n                address.\\\\n              \\\"],[13],[1,\\\"\\\\n\\\\n              \\\"],[10,0],[14,0,\\\"form-group mb-2\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"confirmEmailCode\\\"],[12],[1,\\\"Confirm email code\\\"],[13],[1,\\\"\\\\n                \\\"],[8,[39,15],[[24,1,\\\"confirmEmailCode\\\"],[16,0,[29,[\\\"form-control form-control-lg\\\\n                    \\\",[52,[51,[30,0,[\\\"confirmEmailCode\\\"]]],\\\"is-invalid\\\"]]]],[24,\\\"placeholder\\\",\\\"One time code\\\"]],[[\\\"@value\\\"],[[30,0,[\\\"confirmEmailCode\\\"]]]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"confirmEmailCode\\\"]]],[[[1,\\\"                \\\"],[10,0],[14,0,\\\"d-flex\\\"],[12],[1,\\\"\\\\n                  \\\"],[8,[39,17],[[24,0,\\\"btn btn-secondary btn-sm me-1\\\"],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,12],[[30,0,[\\\"resendEmail\\\"]]],null]],null]],[[\\\"@isLoading\\\"],[[30,0,[\\\"resendEmail\\\",\\\"isRunning\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"Resend confirmation code\\\"]],[]]]]],[1,\\\"\\\\n                  \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary btn-sm\\\"],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[30,0,[\\\"openEmailChangeModal\\\"]]],null],[12],[1,\\\"Change email address\\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n              \\\"],[10,\\\"h2\\\"],[14,0,\\\"mb-2 mt-3\\\"],[12],[1,\\\"Account details\\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"userExists\\\"]],[[[1,\\\"                \\\"],[10,2],[12],[1,\\\"\\\\n                  It looks like we already have an account for\\\\n                  \\\"],[10,\\\"b\\\"],[12],[1,[30,2,[\\\"email\\\"]]],[13],[1,\\\". The existing account will gain access\\\\n                  to\\\\n                  \\\"],[10,\\\"b\\\"],[12],[1,[30,2,[\\\"company\\\"]]],[13],[1,\\\".\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,2],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"sendPasswordReset\\\",\\\"lastSuccessful\\\",\\\"value\\\"]],[[[1,\\\"                    Password reset email sent. Please continue the registration.\\\\n\\\"]],[]],[[[41,[30,0,[\\\"sendPasswordReset\\\",\\\"isRunning\\\"]],[[[1,\\\"                    Sending password reset…\\\\n\\\"]],[]],[[[1,\\\"                    If you don't know your password please\\\\n                    \\\"],[11,3],[24,0,\\\"link\\\"],[24,6,\\\"#\\\"],[4,[38,11],[\\\"click\\\",[28,[37,12],[[30,0,[\\\"sendPasswordReset\\\"]]],null]],null],[12],[1,\\\"\\\\n                      click here to reset your password.\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"]],[]]]],[]]],[1,\\\"                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[10,0],[14,0,\\\"form-group mb-2\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"password\\\"],[12],[1,\\\"Password\\\"],[13],[1,\\\"\\\\n                  \\\"],[8,[39,15],[[24,1,\\\"password\\\"],[16,0,[29,[\\\"form-control\\\\n                      \\\",[52,[28,[37,21],[[30,0,[\\\"passwordInvalid\\\"]],[30,0,[\\\"showValidation\\\"]]],null],\\\"is-invalid\\\"]]]]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"password\\\",[30,0,[\\\"password\\\"]]]],null],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,\\\"\\\\n                    Password must be at least 10 characters long.\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\\n                \\\"],[10,0],[14,0,\\\"form-group mb-2\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"passwordCheck\\\"],[12],[1,\\\"Confirm password\\\"],[13],[1,\\\"\\\\n                  \\\"],[8,[39,15],[[24,1,\\\"passwordCheck\\\"],[16,0,[29,[\\\"form-control\\\\n                      \\\",[52,[28,[37,21],[[30,0,[\\\"passwordCheckInvalid\\\"]],[30,0,[\\\"showValidation\\\"]]],null],\\\"is-invalid\\\"]]]]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"password\\\",[30,0,[\\\"passwordCheck\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,21],[[30,0,[\\\"passwordCheckInvalid\\\"]],[30,0,[\\\"showValidation\\\"]]],null],[[[1,\\\"                    \\\"],[10,0],[14,0,\\\"invalid-feedback\\\"],[12],[1,\\\"\\\\n                      Passwords must match.\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[10,0],[14,0,\\\"w-100 d-flex justify-content-center\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,17],[[24,0,\\\"btn btn-primary btn-lg m-3\\\"]],[[\\\"@isLoading\\\",\\\"@action\\\"],[[30,0,[\\\"submit\\\",\\\"isRunning\\\"]],[28,[37,12],[[30,0,[\\\"submit\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                  Complete registration\\\\n                \\\"]],[]]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[2]]],[1,\\\"        \\\"]],[]]]],[]]]],[]]]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"showChangeEmailModal\\\"]],[[[1,\\\"  \\\"],[8,[39,22],null,[[\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@overlayClass\\\",\\\"@translucentOverlay\\\"],[[30,0,[\\\"closeEmailChangeModal\\\"]],\\\"block-module\\\",\\\"modal\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,2],[12],[1,\\\"\\\\n      A new confirmation code will be sent and will replace any code sent to the\\\\n      existing address.\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"form-group\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"newEmail\\\"],[12],[1,\\\"New email address\\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,15],[[24,1,\\\"newEmail\\\"],[16,0,[29,[\\\"text-input text-input--stretch tabular-form-controls__cell\\\\n          \\\",[52,[51,[28,[37,21],[[30,0,[\\\"newEmailIsValid\\\"]],[30,0,[\\\"showNewEmailValidation\\\"]]],null]],\\\"is-invalid\\\"]]]],[24,\\\"placeholder\\\",\\\"your@email.com\\\"]],[[\\\"@value\\\"],[[30,0,[\\\"newEmail\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"float-end d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[30,0,[\\\"closeEmailChangeModal\\\"]]],null],[12],[1,\\\"\\\\n          Cancel\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,17],[[24,0,\\\"btn btn-primary ms-2\\\"],[4,[38,11],[\\\"click\\\",[28,[37,12],[[30,0,[\\\"changeEmail\\\"]]],null]],null]],[[\\\"@isLoading\\\"],[[30,0,[\\\"changeEmail\\\",\\\"isRunning\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"Submit\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"error\\\",\\\"data\\\"],false,[\\\"div\\\",\\\"img\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"let\\\",\\\"p\\\",\\\"eq\\\",\\\"link-to\\\",\\\"or\\\",\\\"hash\\\",\\\"form\\\",\\\"on\\\",\\\"perform\\\",\\\"b\\\",\\\"label\\\",\\\"input\\\",\\\"unless\\\",\\\"loading-button\\\",\\\"button\\\",\\\"h2\\\",\\\"a\\\",\\\"and\\\",\\\"modal-dialog\\\",\\\"footer\\\"]]\",\n    \"moduleName\": \"portal/templates/complete-registration-cb.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/embed\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <main class='page__container-content'>\n    {{outlet}}\n  </main>\n  */\n  {\n    \"id\": \"ILkP0x2E\",\n    \"block\": \"[[[10,\\\"main\\\"],[14,0,\\\"page__container-content\\\"],[12],[1,\\\"\\\\n  \\\"],[46,[28,[37,2],null,null],null,null,null],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"main\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/embed.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/embed/error\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='flex-grow-1 text-center p-5 d-flex flex-column align-items-center'>\n    <FaIcon @icon='dizzy' @size='5x' class='mb-3' />\n    <h1 class='mb-0'>Oops</h1>\n    <h3>Something went wrong</h3>\n  </div>\n  */\n  {\n    \"id\": \"YbjMUpOK\",\n    \"block\": \"[[[10,0],[14,0,\\\"flex-grow-1 text-center p-5 d-flex flex-column align-items-center\\\"],[12],[1,\\\"\\\\n  \\\"],[8,[39,1],[[24,0,\\\"mb-3\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"dizzy\\\",\\\"5x\\\"]],null],[1,\\\"\\\\n  \\\"],[10,\\\"h1\\\"],[14,0,\\\"mb-0\\\"],[12],[1,\\\"Oops\\\"],[13],[1,\\\"\\\\n  \\\"],[10,\\\"h3\\\"],[12],[1,\\\"Something went wrong\\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"div\\\",\\\"fa-icon\\\",\\\"h1\\\",\\\"h3\\\"]]\",\n    \"moduleName\": \"portal/templates/embed/error.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity-access-denied\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <main class='text-center'>\n    <h1>Entity Access Denied</h1>\n    <p>Sorry, you don't have permission to access this entity.</p>\n  </main>\n  */\n  {\n    \"id\": \"el1S5nQw\",\n    \"block\": \"[[[10,\\\"main\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"h1\\\"],[12],[1,\\\"Entity Access Denied\\\"],[13],[1,\\\"\\\\n  \\\"],[10,2],[12],[1,\\\"Sorry, you don't have permission to access this entity.\\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"main\\\",\\\"h1\\\",\\\"p\\\"]]\",\n    \"moduleName\": \"portal/templates/entity-access-denied.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    {{#if (media 'isDesktop')}}\n      <TitleBar>\n        <div\n          class='d-flex align-items-center mx-3 h-100'\n          {{! ember wormhole id }}\n          id='title-bar__content'\n        ></div>\n      </TitleBar>\n    {{else}}\n      <MobileTitleBar>\n        <div class='mobile-title-bar__left'>\n          <FromElsewhere @name='mobile-title-bar-left-content' />\n        </div>\n        <div class='mobile-title-bar__middle'>\n          <FromElsewhere @name='mobile-title-bar-middle-content' />\n        </div>\n        <div class='mobile-title-bar__right'>\n          <FromElsewhere @name='mobile-title-bar-right-content' />\n          <MobileTitleBar::Avatar>\n            <FromElsewhere @name='mobile-title-bar-avatar-content' />\n          </MobileTitleBar::Avatar>\n        </div>\n      </MobileTitleBar>\n      <MobileSideMenu>\n        <FromElsewhere @name='mobile-side-menu-content' />\n      </MobileSideMenu>\n    {{/if}}\n  \n    {{#if this.systemAnnouncements.announcementData.length}}\n      <ModalDialog\n        data-test-announcements-modal\n        @onClose={{this.systemAnnouncements.closeAnnouncementModal}}\n        @containerClass='modal-content modal-dialog-scrollable w-auto max-width-75 h-auto'\n        @overlayClass='modal'\n        @translucentOverlay={{true}}\n      >\n        <div class='modal-header'>\n          <h3 class='modal-title'>\n            {{t 'common.Announcements'}}\n          </h3>\n        </div>\n  \n        <div class='modal-body'>\n          {{#each\n            this.systemAnnouncements.announcementData\n            as |announcement idx|\n          }}\n            {{#if idx}}\n              <hr class='my-2 border-secondary' />\n            {{/if}}\n            <div\n              class='ql-container ql-editor'\n              style='white-space: normal !important;'\n            >\n              <h6 class='mb-2'>{{announcement.title}}</h6>\n              {{html-safe announcement.message}}\n            </div>\n          {{/each}}\n        </div>\n  \n        <div class='modal-footer text-right'>\n          <button\n            type='button'\n            class='btn btn-secondary'\n            data-test-announcements-close\n            {{on 'click' this.systemAnnouncements.closeAnnouncementModal}}\n          >\n            {{t 'common.Close'}}\n          </button>\n          <button\n            type='button'\n            class='btn btn-primary text-white'\n            data-test-announcements-dismiss\n            {{on 'click' this.systemAnnouncements.dismissAnnouncementModal}}\n          >\n            {{t 'common.Dismiss'}}\n          </button>\n        </div>\n      </ModalDialog>\n    {{/if}}\n  \n    {{outlet}}\n  {{/if}}\n  */\n  {\n    \"id\": \"Y2zKSThZ\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,2],[\\\"isDesktop\\\"],null],[[[1,\\\"    \\\"],[8,[39,3],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center mx-3 h-100\\\"],[14,1,\\\"title-bar__content\\\"],[12],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[8,[39,5],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"mobile-title-bar__left\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,6],null,[[\\\"@name\\\"],[\\\"mobile-title-bar-left-content\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"mobile-title-bar__middle\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,6],null,[[\\\"@name\\\"],[\\\"mobile-title-bar-middle-content\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"mobile-title-bar__right\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,6],null,[[\\\"@name\\\"],[\\\"mobile-title-bar-right-content\\\"]],null],[1,\\\"\\\\n        \\\"],[8,[39,7],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,6],null,[[\\\"@name\\\"],[\\\"mobile-title-bar-avatar-content\\\"]],null],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n    \\\"],[8,[39,8],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,6],null,[[\\\"@name\\\"],[\\\"mobile-side-menu-content\\\"]],null],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"systemAnnouncements\\\",\\\"announcementData\\\",\\\"length\\\"]],[[[1,\\\"    \\\"],[8,[39,9],[[24,\\\"data-test-announcements-modal\\\",\\\"\\\"]],[[\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@overlayClass\\\",\\\"@translucentOverlay\\\"],[[30,0,[\\\"systemAnnouncements\\\",\\\"closeAnnouncementModal\\\"]],\\\"modal-content modal-dialog-scrollable w-auto max-width-75 h-auto\\\",\\\"modal\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,11],[\\\"common.Announcements\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,13],[[28,[37,13],[[30,0,[\\\"systemAnnouncements\\\",\\\"announcementData\\\"]]],null]],null],null,[[[41,[30,2],[[[1,\\\"            \\\"],[10,\\\"hr\\\"],[14,0,\\\"my-2 border-secondary\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,0],[14,0,\\\"ql-container ql-editor\\\"],[14,5,\\\"white-space: normal !important;\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h6\\\"],[14,0,\\\"mb-2\\\"],[12],[1,[30,1,[\\\"title\\\"]]],[13],[1,\\\"\\\\n            \\\"],[1,[28,[35,16],[[30,1,[\\\"message\\\"]]],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[1,2]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,\\\"data-test-announcements-close\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,18],[\\\"click\\\",[30,0,[\\\"systemAnnouncements\\\",\\\"closeAnnouncementModal\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,11],[\\\"common.Close\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary text-white\\\"],[24,\\\"data-test-announcements-dismiss\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,18],[\\\"click\\\",[30,0,[\\\"systemAnnouncements\\\",\\\"dismissAnnouncementModal\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,11],[\\\"common.Dismiss\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[46,[28,[37,20],null,null],null,null,null],[1,\\\"\\\\n\\\"]],[]]]],[\\\"announcement\\\",\\\"idx\\\"],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"media\\\",\\\"title-bar\\\",\\\"div\\\",\\\"mobile-title-bar\\\",\\\"from-elsewhere\\\",\\\"mobile-title-bar/avatar\\\",\\\"mobile-side-menu\\\",\\\"modal-dialog\\\",\\\"h3\\\",\\\"t\\\",\\\"each\\\",\\\"-track-array\\\",\\\"hr\\\",\\\"h6\\\",\\\"html-safe\\\",\\\"button\\\",\\\"on\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if (media 'isDesktop')}}\n    <EmberWormhole @to='title-bar__content'>\n      <TitleBarTabs @tabs={{this.tabs}} />\n      {{#if (includes-feature-flags 'entityIsCalStudent')}}\n        <a\n          href='https://buildaprice.zendesk.com/hc/en-us/categories/11424152235791-Education'\n          target='_blank'\n          class='d-flex align-items-center link-light title-bar__icon\n            {{if (includes-feature-flags \"entityHasSupport\") \"me-2\"}}'\n          rel='noopener noreferrer'\n        >\n          <FaIcon @icon='info-circle' />\n        </a>\n      {{/if}}\n  \n      {{#if (includes-feature-flags 'entityHasSupport')}}\n        <a\n          href='https://buildaprice.zendesk.com/hc/en-us'\n          target='_blank'\n          class='d-flex align-items-center link-light title-bar__icon'\n          rel='noopener noreferrer'\n        >\n          <FaIcon @icon='question-circle' />\n        </a>\n      {{/if}}\n    </EmberWormhole>\n    <div class='page__container'>\n      {{outlet}}\n    </div>\n  {{else}}\n    <ToElsewhere\n      @named='mobile-title-bar-avatar-content'\n      @send={{component\n        'mobile-title-bar/avatar/avatar-link'\n        label='Support'\n        link='https://buildaprice.zendesk.com/hc/en-us'\n      }}\n    />\n  \n    <main class='page__container-content'>\n      {{outlet}}\n    </main>\n  \n    <ToElsewhere\n      @named='mobile-side-menu-content'\n      @send={{component 'mobile-side-bar' tabs=this.tabs}}\n    />\n  {{/if}}\n  */\n  {\n    \"id\": \"BaKz5Vzu\",\n    \"block\": \"[[[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@to\\\"],[\\\"title-bar__content\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,3],null,[[\\\"@tabs\\\"],[[30,0,[\\\"tabs\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"entityIsCalStudent\\\"],null],[[[1,\\\"      \\\"],[10,3],[14,6,\\\"https://buildaprice.zendesk.com/hc/en-us/categories/11424152235791-Education\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[15,0,[29,[\\\"d-flex align-items-center link-light title-bar__icon\\\\n          \\\",[52,[28,[37,4],[\\\"entityHasSupport\\\"],null],\\\"me-2\\\"]]]],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,6],null,[[\\\"@icon\\\"],[\\\"info-circle\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"entityHasSupport\\\"],null],[[[1,\\\"      \\\"],[10,3],[14,6,\\\"https://buildaprice.zendesk.com/hc/en-us\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,0,\\\"d-flex align-items-center link-light title-bar__icon\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,6],null,[[\\\"@icon\\\"],[\\\"question-circle\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"page__container\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,9],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[8,[39,10],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-avatar-content\\\",[50,\\\"mobile-title-bar/avatar/avatar-link\\\",0,null,[[\\\"label\\\",\\\"link\\\"],[\\\"Support\\\",\\\"https://buildaprice.zendesk.com/hc/en-us\\\"]]]]],null],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,9],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,10],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-side-menu-content\\\",[50,\\\"mobile-side-bar\\\",0,null,[[\\\"tabs\\\"],[[30,0,[\\\"tabs\\\"]]]]]]],null],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"media\\\",\\\"ember-wormhole\\\",\\\"title-bar-tabs\\\",\\\"includes-feature-flags\\\",\\\"a\\\",\\\"fa-icon\\\",\\\"div\\\",\\\"component\\\",\\\"-outlet\\\",\\\"to-elsewhere\\\",\\\"main\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/dashboard\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if (media 'isDesktop')}}\n    <main class='page__container-content gap-zendesk-support-widget'>\n      {{outlet}}\n    </main>\n  {{else}}\n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component 'mobile-title-bar/burger-button'}}\n    />\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t 'common.Dashboard')\n      }}\n    />\n    <main class='page__container-content gap-zendesk-support-widget'>\n      {{outlet}}\n    </main>\n  {{/if}}\n  */\n  {\n    \"id\": \"PTLKTgtf\",\n    \"block\": \"[[[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"  \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content gap-zendesk-support-widget\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,4],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[8,[39,5],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/burger-button\\\",0,null,null]]],null],[1,\\\"\\\\n  \\\"],[8,[39,5],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,6],[\\\"common.Dashboard\\\"],null]]]]]],null],[1,\\\"\\\\n  \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content gap-zendesk-support-widget\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,4],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"media\\\",\\\"main\\\",\\\"component\\\",\\\"-outlet\\\",\\\"to-elsewhere\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/dashboard.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/dashboard/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4'>\n    <div class='d-flex flex-column'>\n      {{#if (media 'isDesktop')}}\n        {{#if (includes-feature-flags 'canUseIntegrations' 'canUsePlaceMakers')}}\n          {{#unless this.model.pmConnection.isRunning}}\n            {{#if\n              (and\n                this.model.pmConnection.last.value\n                (not this.model.pmConnection.last.value.isConnected)\n              )\n            }}\n              <div\n                class='alert alert-warning d-flex flex-row align-items-center justify-content-center m-0 mb-3'\n                role='alert'\n              >\n                {{t\n                  'entity.builda-price.dashboard.Your PlaceMakers connection has expired'\n                }}\n                <LinkTo\n                  @route='entity.settings.integrations'\n                  class='btn btn-outline-primary btn-sm ms-2'\n                >{{t 'common.Reconnect'}}</LinkTo>\n              </div>\n            {{/if}}\n          {{/unless}}\n        {{/if}}\n      {{/if}}\n  \n      <ReferralPromotionButton class='mb-3' />\n      <EducationPromotionButton class='mb-3' />\n    </div>\n  \n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='d-flex'>\n        <ReportEngineElementContainer\n          @elements={{this.model.dashboardReport.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  \n  </article>\n  */\n  {\n    \"id\": \"m6vYcOvy\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"d-flex flex-column\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[\\\"isDesktop\\\"],null],[[[41,[28,[37,4],[\\\"canUseIntegrations\\\",\\\"canUsePlaceMakers\\\"],null],[[[41,[51,[30,0,[\\\"model\\\",\\\"pmConnection\\\",\\\"isRunning\\\"]]],[[[41,[28,[37,6],[[30,0,[\\\"model\\\",\\\"pmConnection\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,7],[[30,0,[\\\"model\\\",\\\"pmConnection\\\",\\\"last\\\",\\\"value\\\",\\\"isConnected\\\"]]],null]],null],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"alert alert-warning d-flex flex-row align-items-center justify-content-center m-0 mb-3\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,8],[\\\"entity.builda-price.dashboard.Your PlaceMakers connection has expired\\\"],null]],[1,\\\"\\\\n              \\\"],[8,[39,9],[[24,0,\\\"btn btn-outline-primary btn-sm ms-2\\\"]],[[\\\"@route\\\"],[\\\"entity.settings.integrations\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,8],[\\\"common.Reconnect\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null]],[]],null],[1,\\\"\\\\n    \\\"],[8,[39,10],[[24,0,\\\"mb-3\\\"]],null,null],[1,\\\"\\\\n    \\\"],[8,[39,11],[[24,0,\\\"mb-3\\\"]],null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,12],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"d-flex\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,13],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"dashboardReport\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"article\\\",\\\"div\\\",\\\"if\\\",\\\"media\\\",\\\"includes-feature-flags\\\",\\\"unless\\\",\\\"and\\\",\\\"not\\\",\\\"t\\\",\\\"link-to\\\",\\\"referral-promotion-button\\\",\\\"education-promotion-button\\\",\\\"loading-icon\\\",\\\"report-engine-element-container\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/dashboard/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"H5+Qt3/i\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/communications\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if (media 'isDesktop')}}\n    <main class='ms-3 page__container-content gap-zendesk-support-widget'>\n      {{outlet}}\n    </main>\n  {{else}}\n  \n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component 'mobile-title-bar/burger-button'}}\n    />\n  \n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t 'common.Dashboard')\n      }}\n    />\n  \n    <main class='page__container-content gap-zendesk-support-widget'>\n      {{outlet}}\n    </main>\n  {{/if}}\n  */\n  {\n    \"id\": \"ZudRSC7z\",\n    \"block\": \"[[[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"  \\\"],[10,\\\"main\\\"],[14,0,\\\"ms-3 page__container-content gap-zendesk-support-widget\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,4],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\n  \\\"],[8,[39,5],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/burger-button\\\",0,null,null]]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,5],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,6],[\\\"common.Dashboard\\\"],null]]]]]],null],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content gap-zendesk-support-widget\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,4],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"media\\\",\\\"main\\\",\\\"component\\\",\\\"-outlet\\\",\\\"to-elsewhere\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/communications.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/documents\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if (media 'isDesktop')}}\n    <main class='page__container-content gap-zendesk-support-widget'>\n      {{outlet}}\n    </main>\n  {{else}}\n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component 'mobile-title-bar/burger-button'}}\n    />\n  \n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t 'common.Dashboard')\n      }}\n    />\n  \n    <main class='page__container-content gap-zendesk-support-widget'>\n      {{outlet}}\n    </main>\n  {{/if}}\n  */\n  {\n    \"id\": \"1iNGsuSj\",\n    \"block\": \"[[[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"  \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content gap-zendesk-support-widget\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,4],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[8,[39,5],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/burger-button\\\",0,null,null]]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,5],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,6],[\\\"common.Dashboard\\\"],null]]]]]],null],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content gap-zendesk-support-widget\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,4],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"media\\\",\\\"main\\\",\\\"component\\\",\\\"-outlet\\\",\\\"to-elsewhere\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/documents.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/documents/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <article class='mx-4 mt-4'>\n      <header class='border-bottom mb-3 pb-2 d-flex align-items-center'>\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>{{t 'common.Documents'}}</h2>\n        {{/if}}\n      </header>\n      <header class='mb-1 pb-2 d-flex flex-row-reverse'>\n        {{#if (includes-feature-flags 'canManageFileStorage')}}\n          <button\n            type='button'\n            class='btn btn-success text-white text-nowrap m-1'\n            {{on 'click' (fn (mut this.uploadModalVisible) true)}}\n            data-test-documents-project-add-new-attachments\n          >\n            <FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Upload'}}\n          </button>\n        {{/if}}\n        <Input\n          class='form-control m-1 w-auto'\n          placeholder={{t 'common.Search'}}\n          @type='text'\n          @value={{this.searchString}}\n          data-test-documents-project-search\n        />\n      </header>\n      <DocumentsTable\n        @searchString={{this.searchString}}\n        @users={{this.model.users.last.value}}\n        @uploadModalVisible={{this.uploadModalVisible}}\n        @tableData={{this.tableData}}\n        @onUploadComplete={{this.onUploadComplete}}\n        @downloadAttachments={{this.downloadAttachments}}\n        @parent={{this.sessionData.entity}}\n      />\n    </article>\n  {{/if}}\n  */\n  {\n    \"id\": \"LxuhZRn2\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 pb-2 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,[28,[35,6],[\\\"common.Documents\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"mb-1 pb-2 d-flex flex-row-reverse\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"canManageFileStorage\\\"],null],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[24,\\\"data-test-documents-project-add-new-attachments\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,9],[\\\"click\\\",[28,[37,10],[[28,[37,11],[[30,0,[\\\"uploadModalVisible\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,6],[\\\"common.Upload\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,13],[[24,0,\\\"form-control m-1 w-auto\\\"],[16,\\\"placeholder\\\",[28,[37,6],[\\\"common.Search\\\"],null]],[24,\\\"data-test-documents-project-search\\\",\\\"\\\"]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,14],null,[[\\\"@searchString\\\",\\\"@users\\\",\\\"@uploadModalVisible\\\",\\\"@tableData\\\",\\\"@onUploadComplete\\\",\\\"@downloadAttachments\\\",\\\"@parent\\\"],[[30,0,[\\\"searchString\\\"]],[30,0,[\\\"model\\\",\\\"users\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"uploadModalVisible\\\"]],[30,0,[\\\"tableData\\\"]],[30,0,[\\\"onUploadComplete\\\"]],[30,0,[\\\"downloadAttachments\\\"]],[30,0,[\\\"sessionData\\\",\\\"entity\\\"]]]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"article\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"t\\\",\\\"includes-feature-flags\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"fa-icon\\\",\\\"input\\\",\\\"documents-table\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/documents/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/documents/project-file\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"xPBIZNZN\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/documents/project-file.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/documents/project-file/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <article class='mx-4 mt-4'>\n      <header class='border-bottom mb-3 pb-2 d-flex align-items-center'>\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>{{t 'common.Documents'}}</h2>\n        {{/if}}\n      </header>\n      <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n  \n      <header class='mb-1 pb-2 d-flex flex-row-reverse'>\n        {{#if\n          (includes-feature-flags\n            this.model.project.last.value 'canManageFileStorage'\n          )\n        }}\n          <button\n            type='button'\n            class='btn btn-success text-white text-nowrap m-1'\n            {{on 'click' (fn (mut this.uploadModalVisible) true)}}\n            data-test-documents-task-add-new-attachments\n          >\n            <FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Upload'}}\n          </button>\n        {{/if}}\n        <Input\n          class='form-control m-1 w-auto'\n          placeholder={{t 'common.Search'}}\n          @type='text'\n          @value={{this.searchString}}\n          data-test-documents-task-search\n        />\n      </header>\n      <DocumentsTable\n        @searchString={{this.searchString}}\n        @users={{this.model.users.last.value}}\n        @uploadModalVisible={{this.uploadModalVisible}}\n        @tableData={{this.tableData}}\n        @onUploadComplete={{this.onUploadComplete}}\n        @downloadAttachments={{this.downloadAttachments}}\n        @project={{this.model.project.last.value}}\n        @parent={{this.model.project.last.value}}\n      />\n    </article>\n  {{/if}}\n  */\n  {\n    \"id\": \"3da+K4at\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 pb-2 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,[28,[35,6],[\\\"common.Documents\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,7],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"mb-1 pb-2 d-flex flex-row-reverse\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageFileStorage\\\"],null],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[24,\\\"data-test-documents-task-add-new-attachments\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[28,[37,12],[[30,0,[\\\"uploadModalVisible\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,13],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,6],[\\\"common.Upload\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,14],[[24,0,\\\"form-control m-1 w-auto\\\"],[16,\\\"placeholder\\\",[28,[37,6],[\\\"common.Search\\\"],null]],[24,\\\"data-test-documents-task-search\\\",\\\"\\\"]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,15],null,[[\\\"@searchString\\\",\\\"@users\\\",\\\"@uploadModalVisible\\\",\\\"@tableData\\\",\\\"@onUploadComplete\\\",\\\"@downloadAttachments\\\",\\\"@project\\\",\\\"@parent\\\"],[[30,0,[\\\"searchString\\\"]],[30,0,[\\\"model\\\",\\\"users\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"uploadModalVisible\\\"]],[30,0,[\\\"tableData\\\"]],[30,0,[\\\"onUploadComplete\\\"]],[30,0,[\\\"downloadAttachments\\\"]],[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"article\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"t\\\",\\\"page-title-breadcrumbs\\\",\\\"includes-feature-flags\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"fa-icon\\\",\\\"input\\\",\\\"documents-table\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/documents/project-file/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/documents/project-file/task-file\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <article class='mx-4 mt-4'>\n      <header class='border-bottom mb-3 pb-2 d-flex align-items-center'>\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>{{t 'common.Documents'}}</h2>\n        {{/if}}\n      </header>\n      <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n  \n      <header class='mb-1 pb-2 d-flex flex-row-reverse'>\n        {{#if\n          (includes-feature-flags\n            this.model.task.last.value 'canManageFileStorage'\n          )\n        }}\n          <button\n            type='button'\n            class='btn btn-success text-white text-nowrap m-1'\n            {{on 'click' (fn (mut this.uploadModalVisible) true)}}\n            data-test-documents-task-add-new-attachments\n          >\n            <FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Upload'}}\n          </button>\n        {{/if}}\n        <Input\n          class='form-control m-1 w-auto'\n          placeholder={{t 'common.Search'}}\n          @type='text'\n          @value={{this.searchString}}\n          data-test-documents-task-search\n        />\n      </header>\n      <DocumentsTable\n        @searchString={{this.searchString}}\n        @users={{this.model.users.last.value}}\n        @uploadModalVisible={{this.uploadModalVisible}}\n        @tableData={{this.tableData}}\n        @onUploadComplete={{this.onUploadComplete}}\n        @downloadAttachments={{this.downloadAttachments}}\n        @project={{this.project}}\n        @parent={{this.model.task.last.value}}\n      />\n    </article>\n  {{/if}}\n  */\n  {\n    \"id\": \"kc3QVGsB\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 pb-2 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,[28,[35,6],[\\\"common.Documents\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,7],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"mb-1 pb-2 d-flex flex-row-reverse\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"task\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageFileStorage\\\"],null],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[24,\\\"data-test-documents-task-add-new-attachments\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[28,[37,12],[[30,0,[\\\"uploadModalVisible\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,13],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,6],[\\\"common.Upload\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,14],[[24,0,\\\"form-control m-1 w-auto\\\"],[16,\\\"placeholder\\\",[28,[37,6],[\\\"common.Search\\\"],null]],[24,\\\"data-test-documents-task-search\\\",\\\"\\\"]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,15],null,[[\\\"@searchString\\\",\\\"@users\\\",\\\"@uploadModalVisible\\\",\\\"@tableData\\\",\\\"@onUploadComplete\\\",\\\"@downloadAttachments\\\",\\\"@project\\\",\\\"@parent\\\"],[[30,0,[\\\"searchString\\\"]],[30,0,[\\\"model\\\",\\\"users\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"uploadModalVisible\\\"]],[30,0,[\\\"tableData\\\"]],[30,0,[\\\"onUploadComplete\\\"]],[30,0,[\\\"downloadAttachments\\\"]],[30,0,[\\\"project\\\"]],[30,0,[\\\"model\\\",\\\"task\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"article\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"t\\\",\\\"page-title-breadcrumbs\\\",\\\"includes-feature-flags\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"fa-icon\\\",\\\"input\\\",\\\"documents-table\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/documents/project-file/task-file.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/incoming\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if (media 'isDesktop')}}\n    <ModuleNavigation::Operations::Incoming />\n  \n    <main class='page__container-content gap-zendesk-support-widget'>\n      {{outlet}}\n    </main>\n  {{else}}\n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component 'mobile-title-bar/burger-button'}}\n    />\n  \n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t 'common.Dashboard')\n      }}\n    />\n  \n    <main class='page__container-content gap-zendesk-support-widget'>\n      {{outlet}}\n    </main>\n  {{/if}}\n  */\n  {\n    \"id\": \"fT6n+QzL\",\n    \"block\": \"[[[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"  \\\"],[8,[39,2],null,null,null],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content gap-zendesk-support-widget\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,5],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[8,[39,6],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/burger-button\\\",0,null,null]]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,6],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,7],[\\\"common.Dashboard\\\"],null]]]]]],null],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content gap-zendesk-support-widget\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,5],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"media\\\",\\\"module-navigation/operations/incoming\\\",\\\"main\\\",\\\"component\\\",\\\"-outlet\\\",\\\"to-elsewhere\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/incoming.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/incoming/bills-legacy-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"56vSM9T5\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/incoming/bills-legacy-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/incoming/bills-legacy\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if\n    (eq\n      this.router.currentRouteName\n      'entity.builda-price.operations.incoming.bills-legacy.bill'\n    )\n  }}\n    {{outlet}}\n  {{else}}\n    {{#unless (media 'isDesktop')}}\n      <ToElsewhere\n        @named='mobile-title-bar-middle-content'\n        @send={{component 'mobile-title-bar/page-title' title=(t 'common.Bills')}}\n      />\n    {{/unless}}\n    <article class='m-4'>\n      <div class='border-bottom mb-3 d-flex align-items-center pb-3'>\n        {{#if (media 'isDesktop')}}\n          <h1 class='h1 m-0'>\n            {{t 'common.Bills'}}\n            <sup class='fs-6 text-muted'>LEGACY</sup>\n          </h1>\n        {{/if}}\n  \n        <div class='ms-auto'>\n          {{#if (media 'isDesktop')}}\n            {{! Format toggle, switches between card view and table view }}\n            <div class='invoice-selector__radio'>\n              <input\n                id='condensed-filter--condensed'\n                type='radio'\n                checked={{eq this.condensedView false}}\n                onchange={{fn (mut this.condensedView) false}}\n              />\n              <label for='condensed-filter--condensed'>\n                <FaIcon @icon='list-ul' @fixedWidth={{true}} />\n              </label>\n            </div>\n            <div class='invoice-selector__radio'>\n              <input\n                id='condensed-filter--card'\n                type='radio'\n                checked={{eq this.condensedView true}}\n                onchange={{fn (mut this.condensedView) true}}\n              />\n              <label for='condensed-filter--card'>\n                <FaIcon @icon='table' @fixedWidth={{true}} />\n              </label>\n            </div>\n          {{/if}}\n          {{#if this.hasWriteLevel}}\n            {{! Import dropdown }}\n            <OverlaidDropdown\n              @buttonText={{t\n                'entity.builda-price.operations.incoming.bills-legacy.Import a bill'\n              }}\n              @title={{t\n                'entity.builda-price.operations.incoming.bills-legacy.Bill format'\n              }}\n              @class='button--spaced'\n              @buttonClasses='button button--secondary file-input-button'\n            >\n              {{#if (eq this.sessionData.entity.region 'NZL')}}\n                <FileImporter\n                  @class='overlaid-dropdown__option'\n                  @import={{action 'handleImportInvoices'}}\n                  @parser={{this.parsers.bunnings}}\n                >Bunnings CSV </FileImporter>\n                <FileImporter\n                  @class='overlaid-dropdown__option'\n                  @import={{action 'handleImportInvoices'}}\n                  @parser={{this.parsers.carters}}\n                >Carters CSV </FileImporter>\n                <FileImporter\n                  @class='overlaid-dropdown__option'\n                  @import={{action 'handleImportInvoices'}}\n                  @parser={{this.parsers.mitre}}\n                >Mitre 10 CSV </FileImporter>\n                <FileImporter\n                  @class='overlaid-dropdown__option'\n                  @import={{action 'handleImportInvoices'}}\n                  @parser={{this.parsers.placemakers}}\n                >PlaceMakers CSV</FileImporter>\n              {{/if}}\n              <FileImporter\n                @class='overlaid-dropdown__option'\n                @import={{action 'handleImportInvoices'}}\n                @parser={{this.parsers.xero}}\n              >Xero CSV </FileImporter>\n            </OverlaidDropdown>\n  \n            {{! New bill button }}\n            <button\n              class='button button--add button--spaced'\n              data-test-create-bill-button=''\n              type='button'\n              {{action\n                'transitionToBill'\n                'entity.builda-price.operations.incoming.bills-legacy.bill'\n                'new'\n              }}\n            >\n              {{t 'common.New bill'}}\n            </button>\n          {{/if}}\n        </div>\n  \n      </div>\n  \n      <div\n        class='alert alert-info d-flex align-items-center justify-content-center gap-2 text-center'\n        role='alert'\n      >\n        <span>We have upgraded the bills page with a faster experience.</span>\n        <LinkTo\n          @route='entity.builda-price.operations.incoming.bills'\n          class='alert-link text-decoration-underline'\n        >\n          Try it now!\n        </LinkTo>\n      </div>\n  \n      {{! Multiple invoice actions }}\n      <div class='invoice-selector__controls'>\n        {{#if this.hasWriteLevel}}\n          <div class='invoice-selector__controls-row'>\n            <button\n              class='button button--spaced'\n              disabled={{not this.invoices.length}}\n              type='button'\n              {{action 'toggleInvoicesSelected'}}\n            >\n              {{if\n                (and this.invoices.length this.allInvoicesSelected)\n                (t 'common.Deselect all')\n                (t 'common.Select all')\n              }}\n            </button>\n  \n            <OverlaidDropdown\n              @buttonText={{t 'common.Actions'}}\n              @class='button--spaced'\n              @disabled={{not this.selectedInvoices.length}}\n              @buttonClasses='button button--secondary'\n              data-test-bulk-actions\n              @title={{concat\n                this.selectedInvoices.length\n                ' '\n                (if\n                  (gt this.selectedInvoices.length 1)\n                  (t\n                    'entity.builda-price.operations.incoming.bills-legacy.selected bills'\n                  )\n                  (t\n                    'entity.builda-price.operations.incoming.bills-legacy.selected bill'\n                  )\n                )\n                ' '\n                (t 'common.with')\n                ' '\n                this.selectedInvoiceItems.length\n                ' '\n                (if\n                  (gt this.selectedInvoiceItems.length 1)\n                  (t 'common.items')\n                  (t 'common.item')\n                )\n              }}\n            >\n              {{#if (or this.isAutoMapping this.isSaving this.isXeroLoading)}}\n                <div class='overlaid-dropdown__option text-center'>\n                  <LoadingIcon @type='spinner' />\n                </div>\n              {{else}}\n                {{#unless (eq this.status 'ARCHIVED')}}\n                  {{#unless (eq this.status 'ACCEPTED')}}\n                    {{! Accept button }}\n                    <div\n                      class='overlaid-dropdown__option'\n                      {{action 'acceptSelectedInvoices'}}\n                      data-test-accept-bills=''\n                    >\n                      {{t\n                        'entity.builda-price.operations.incoming.bills-legacy.Accept invoices'\n                      }}\n                    </div>\n                  {{/unless}}\n  \n                  {{! Archive button }}\n                  <div\n                    class='overlaid-dropdown__option'\n                    {{action 'archiveSelectedInvoices'}}\n                    data-test-archive-bills=''\n                  >\n                    {{t\n                      'entity.builda-price.operations.incoming.bills-legacy.Archive invoices'\n                    }}\n                  </div>\n                {{/unless}}\n  \n                {{! Send to Xero button }}\n                {{#if this.xeroIntegration.ready}}\n                  <div\n                    class='overlaid-dropdown__option'\n                    {{action 'sendSelectedInvoicesToXero'}}\n                    data-test-send-bills-to-xero=''\n                  >\n                    {{t 'shared.bill.Send to Xero'}}\n                  </div>\n                {{/if}}\n                {{#if this.quickbooks.ready}}\n                  <div\n                    class='overlaid-dropdown__option'\n                    {{action 'sendSelectedInvoicesToQuickbooks'}}\n                    data-test-send-bills-to-quickbooks=''\n                  >\n                    {{t 'shared.bill.Send to QuickBooks'}}\n                  </div>\n                {{/if}}\n                {{! Auto Mapping button, show if there are any directives to use }}\n                <div\n                  class='overlaid-dropdown__option'\n                  {{action 'autoMapSelected'}}\n                  data-test-auto-map-bills=''\n                >\n                  {{t\n                    'entity.builda-price.operations.incoming.bills-legacy.Allocate (Auto Map)'\n                  }}\n                </div>\n  \n                <div\n                  class='overlaid-dropdown__option'\n                  {{action this.toggleProperty 'allocatingItems'}}\n                  data-test-allocate-items=''\n                >\n                  {{t\n                    'entity.builda-price.operations.incoming.bills-legacy.Allocate (Manually)'\n                  }}\n                </div>\n  \n                <div\n                  class='overlaid-dropdown__option button--delete'\n                  {{action\n                    this.toggleProperty\n                    'invoiceDeleteConfirmModalVisible'\n                  }}\n                  data-test-attempt-delete-bills=''\n                >\n                  {{t 'common.Delete'}}\n                </div>\n              {{/if}}\n            </OverlaidDropdown>\n          </div>\n        {{/if}}\n  \n        <div class='invoice-selector__controls-row float-end'>\n          {{#if this.jsFilterByDate}}\n            <PageFilters::Pill\n              @onClose={{fn (mut this.jsFilterByDate) (not this.jsFilterByDate)}}\n            >\n              {{t 'common.Date range'}}:\n              {{moment-format this.startDate (t 'date.shortSlashDmy')}}\n              {{t 'common.to'}}\n              {{moment-format this.endDate (t 'date.shortSlashDmy')}}\n            </PageFilters::Pill>\n          {{/if}}\n          {{#if (not-eq this.status 'ALL')}}\n            <PageFilters::Pill @onClose={{fn (mut this.status) 'ALL'}}>\n              {{t 'common.Status'}}:\n              {{convert-to-title-case this.status}}\n            </PageFilters::Pill>\n          {{/if}}\n          {{#if this.unallocatedOnly}}\n            <PageFilters::Pill @onClose={{fn (mut this.unallocatedOnly) false}}>\n              {{t\n                'entity.builda-price.operations.incoming.bills-legacy.Unallocated bills'\n              }}\n            </PageFilters::Pill>\n          {{/if}}\n          {{! Filters }}\n          <PageFilters class='button--spaced' @align='right'>\n            {{! Date range }}\n  \n            <PageFilters::Item @label={{t 'common.Date range'}}>\n              <DateRangeSelector\n                @disabled={{if this.jsFilterByDate false true}}\n                @align='right'\n                @startDate={{this.jsStartDate}}\n                @endDate={{this.jsEndDate}}\n                @onApply={{action 'setDateRange'}}\n              />\n            </PageFilters::Item>\n  \n            <PageFilters::Item>\n              <label>\n                <Input\n                  aria-label='All Data'\n                  @type='checkbox'\n                  @checked={{this.jsFilterByDate}}\n                  {{on\n                    'click'\n                    (fn (mut this.jsFilterByDate) (not this.jsFilterByDate))\n                  }}\n                />\n                {{t 'common.Filter by date'}}\n              </label>\n            </PageFilters::Item>\n  \n            {{! Status filter }}\n            <PageFilters::Item @label={{t 'common.Status'}}>\n              <SelectInput\n                @value={{this.status}}\n                @action={{fn (mut this.status)}}\n                @class='select-box'\n                data-test-bill-status-filter\n                as |si|\n              >\n                <si.option @value='ALL'>{{t 'common.All'}}</si.option>\n                <si.option @value='DRAFT'>{{t 'common.Draft'}}</si.option>\n                <si.option @value='ACCEPTED'>{{t 'common.Accepted'}}</si.option>\n                <si.option @value='ARCHIVED'>{{t 'common.Archived'}}</si.option>\n                <si.option @value='HELD'>{{t 'common.Held'}}</si.option>\n                <si.option @value='PAID'>{{t 'common.Paid'}}</si.option>\n              </SelectInput>\n            </PageFilters::Item>\n  \n            {{! Unallocated invoice filter }}\n  \n            <PageFilters::Item>\n              <label>\n                <Input @type='checkbox' @checked={{this.unallocatedOnly}} />\n                {{t\n                  'entity.builda-price.operations.incoming.bills-legacy.Only show unallocated bills'\n                }}\n              </label>\n            </PageFilters::Item>\n          </PageFilters>\n  \n          {{! Search box }}\n          <span class='invoice-selector__controls-search button--spaced'>\n            <FaIcon @icon='search' />\n            <input\n              type='search'\n              value={{this.search}}\n              {{did-insert (action 'setFocus')}}\n              {{on 'input' (action 'onSearchInput')}}\n              class='text-input'\n              placeholder={{t\n                'entity.builda-price.operations.incoming.bills-legacy.supplierReference'\n              }}\n            />\n          </span>\n        </div>\n      </div>\n  \n      <div class='invoice-selector__invoice-list'>\n        {{#if this.condensedView}}\n          {{! Table view }}\n          <ActiveTable\n            @columns={{this.tableColumns}}\n            @sortedBy={{this.sortedBy}}\n            @class='supplier-invoice-table-pm'\n          >\n            <LazyEach\n              @items={{this.invoices}}\n              @automatic={{true}}\n              @emptyText={{t 'common.No bills'}}\n              @itemDisplayName={{t 'common.bills'}}\n              as |invoice identifier|\n            >\n              <SupplierInvoicesPm::InvoiceRow\n                @class={{identifier}}\n                @invoice={{invoice}}\n                @showXeroButton={{this.xeroIntegration.ready}}\n                @hasWriteLevel={{this.hasWriteLevel}}\n                @hasDuplicate={{invoice.hasDuplicate}}\n                @editInvoice={{action\n                  'transitionToBill'\n                  'entity.builda-price.operations.incoming.bills-legacy.bill'\n                  invoice.id\n                }}\n                data-test-bill={{or invoice.id 'new'}}\n                data-test-edit-bill={{or invoice.id 'new'}}\n                @showBadges={{this.showBadgesColumn}}\n              />\n            </LazyEach>\n          </ActiveTable>\n  \n          {{#if (eq this.model.invoices.length this.model.maxNumberOfBills)}}\n            <div class='alert alert-info' role='alert'>\n              <FaIcon @icon='info-circle' @size='lg' class='me-2' />\n              <span class='me-2'>\n                {{t\n                  'entity.builda-price.operations.incoming.bills-legacy.maxNumberOfBills'\n                }}\n              </span>\n            </div>\n          {{/if}}\n  \n        {{else}}\n  \n          {{! Card based view }}\n          {{#if this.groupedInvoices.length}}\n            <LazyEach\n              @items={{this.groupedInvoices}}\n              @automatic={{true}}\n              @initialNumberOfItemsVisible='3'\n              @increment='2'\n              @itemDisplayName={{t 'common.suppliers'}}\n              as |invoiceGroup groupIdentifier|\n            >\n              <div class='invoice-selector__invoice-title'>\n                <div class='invoice-selector__invoice-line'></div>\n                <div class='invoice-selector__invoice-issuer'>{{or\n                    invoiceGroup.issuer\n                    'Unspecified Issuer'\n                  }}</div>\n                <div class='invoice-selector__invoice-line'></div>\n              </div>\n  \n              <LazyEach\n                @items={{invoiceGroup.invoices}}\n                @automatic={{true}}\n                @initialNumberOfItemsVisible='4'\n                @increment='8'\n                @itemDisplayName={{t 'common.bills'}}\n                as |invoice identifier|\n              >\n                <SupplierInvoicesPm::Invoice\n                  @class={{identifier}}\n                  @invoice={{invoice}}\n                  @xeroReady={{this.xeroIntegration.ready}}\n                  @hasWriteLevel={{this.hasWriteLevel}}\n                  @expandedByDefault={{true}}\n                  @hasDuplicate={{invoice.hasDuplicate}}\n                  @editInvoice={{action\n                    'transitionToBill'\n                    'entity.builda-price.operations.incoming.bills-legacy.bill'\n                    invoice.id\n                  }}\n                  data-test-bill={{or invoice.id 'new'}}\n                />\n              </LazyEach>\n  \n              <span class='{{groupIdentifier}}'></span>\n  \n            </LazyEach>\n  \n            {{#if (eq this.model.invoices.length this.model.maxNumberOfBills)}}\n              <div class='alert alert-info' role='alert'>\n                <FaIcon @icon='info-circle' @size='lg' class='me-2' />\n                <span class='me-2'>\n                  {{t\n                    'entity.builda-price.operations.incoming.bills-legacy.maxNumberOfBills'\n                  }}\n                </span>\n              </div>\n            {{/if}}\n  \n          {{else}}\n  \n            {{! Tell the user that there are no invoices (there may not be any, or just none that match the search) }}\n            <div class='error-page error-page--no-data'>\n              <h2 class='h2 error-page__icon'><FaIcon @icon='info-circle' /></h2>\n              <h3 class='h3 error-page__title'>{{t 'common.No bills'}}</h3>\n            </div>\n          {{/if}}\n        {{/if}}\n      </div>\n    </article>\n  \n    {{! Unmapped accept warning }}\n    {{#if this.unmappedInvoiceWarningModalVisible}}\n      <ModalDialog\n        @overlayClass='modal'\n        @onClose={{fn (mut this.confirmCallback) false}}\n        @translucentOverlay={{true}}\n        @containerClass='block-module'\n      >\n        <p>{{t\n            'entity.builda-price.operations.incoming.bills-legacy.youAreAboutToAcceptAnInvoiceThatIsNotCompletelyAllocatedDoYouWantToContinue'\n          }}</p>\n  \n        <footer class='block-module__footer'>\n          <label><Input\n              @type='checkbox'\n              @checked={{this.doNotWarnForUnmappedInvoice}}\n            />\n            {{t 'shared.bill.Do not warn me again'}}</label>\n          <button\n            class='float-end button button--spaced'\n            data-test-confirm-unmapped-bills\n            type='button'\n            {{on 'click' (fn this.confirmCallback true)}}\n          >{{t 'common.Continue'}}</button>\n          <button\n            class='float-end button button--plain button--spaced'\n            type='button'\n            {{on 'click' (fn this.confirmCallback false)}}\n          >{{t 'common.Cancel'}}</button>\n        </footer>\n      </ModalDialog>\n    {{/if}}\n  \n    <ConfirmDelete\n      @visible={{this.invoiceDeleteConfirmModalVisible}}\n      @title={{if\n        this.deleteConfirmText\n        (t 'common.Delete bills')\n        (t 'common.Delete bill')\n      }}\n      @messages={{this.deleteMessages}}\n      @confirmText={{this.deleteConfirmText}}\n      @deleteButtonText={{if\n        this.deleteConfirmText\n        (t 'common.Delete bills')\n        (t 'common.Delete bill')\n      }}\n      @deletingButtonText={{t 'common.Deleting'}}\n      @onDelete={{action 'deleteSelectedInvoices'}}\n      @onCancel={{fn (mut this.invoiceDeleteConfirmModalVisible) false}}\n    ><p>{{t 'shared.estimate.This action cannot be undone'}}</p></ConfirmDelete>\n  \n    {{! Project/task selection modal }}\n    {{#if this.allocatingItems}}\n      <AllocationSelector\n        @onCancel={{action this.set 'allocatingItems' false}}\n        @onAllocateSelected={{action 'allocateSelected'}}\n        @onAllocateAndAcceptSelected={{action 'allocateAndAcceptSelected'}}\n        @onAllocateAcceptAndSendToXeroSelected={{action\n          'allocateAcceptAndSendToXeroSelected'\n        }}\n        @isAllocating={{or this.isAllocating this.isSecondaryAllocating}}\n        @items={{this.selectedInvoiceItems}}\n        @projects={{this.model.projects}}\n        @tasks={{this.model.tasks}}\n        {{! xero }}\n        @xeroIntegration={{this.xeroIntegration}}\n        @isXeroFetching={{this.xeroFetching}}\n        @xeroAccounts={{this.model.xeroAccounts}}\n        @onUpdateXeroAccounts={{action 'updateXeroAccounts'}}\n        {{! quickbooks }}\n        @quickbooksIntegration={{this.quickbooks}}\n        @isQuickbooksFetching={{this.quickbooksFetching}}\n        @quickbooksAccounts={{this.model.quickbooksAccounts}}\n        @onUpdateQuickbooksAccounts={{action 'updateQuickbooksAccounts'}}\n      />\n    {{/if}}\n    {{#if this.unmappedInvoicesToConfirm}}\n      <ModalDialog\n        @overlayClass='modal'\n        @onClose={{fn (mut this.unmappedInvoicesToConfirm) false}}\n        @translucentOverlay={{true}}\n        @containerClass='block-module'\n      >\n        <p>\n          <p>\n            {{t\n              'entity.builda-price.operations.incoming.bills-legacy.theFollowingXBillsOfYAreNotCompletelyAllocated'\n              bills=this.unmappedInvoicesToConfirm.length\n              total=this.selectedInvoices.length\n            }}:\n          </p>\n          <table class='data-table data-table--stretched'>\n            <tr>\n              <th>{{t 'common.Supplier'}}</th>\n              <th>{{t 'common.Bill number'}}</th>\n              <th>{{t 'common.Reference'}}</th>\n              <th>{{t 'common.Total'}}</th>\n            </tr>\n            {{#each this.unmappedInvoicesToConfirm as |invoice|}}\n              <tr>\n                <td>{{invoice.issuer}}</td>\n                <td>{{invoice.billNumber}}</td>\n                <td>{{invoice.name}}</td>\n                <td>\n                  {{number-format\n                    invoice.totalPrice\n                    style='currency'\n                    dashZero=true\n                  }}\n                </td>\n              </tr>\n            {{/each}}\n          </table>\n        </p>\n  \n        <footer class='block-module__footer'>\n          {{#if this.isXeroLoading}}\n            <LoadingButton\n              @class='button float-end'\n              @isLoading={{true}}\n              @disabled={{true}}\n            />\n          {{else}}\n            <button\n              class='button button--spaced float-end'\n              type='button'\n              {{action 'sendSelectedInvoicesToXero' 'all'}}\n            >\n              {{t\n                'entity.builda-price.operations.incoming.bills-legacy.Send all'\n              }}\n            </button>\n            <button\n              class='button button--spaced float-end'\n              type='button'\n              {{action 'sendSelectedInvoicesToXero' 'mapped'}}\n            >\n              {{t\n                'entity.builda-price.operations.incoming.bills-legacy.Send allocated bills only'\n              }}\n            </button>\n          {{/if}}\n  \n          <button\n            class='button button--plain button--spaced'\n            type='button'\n            {{on 'click' (fn (mut this.unmappedInvoicesToConfirm) null)}}\n          >\n            {{t 'common.Cancel'}}\n          </button>\n        </footer>\n      </ModalDialog>\n    {{/if}}\n  \n    {{#if this.importedInvoices.existing.length}}\n      <ModalDialog\n        @overlayClass='modal'\n        @onClose={{fn (mut this.importedInvoices) null}}\n        @translucentOverlay={{true}}\n        @containerClass='block-module'\n      >\n        <p>\n          {{t\n            'shared.notification.xOutOfYBillsWereFoundToBeDuplicates'\n            duplicates=this.importedInvoices.existing.length\n            total=(math\n              this.importedInvoices.existing.length\n              '+'\n              this.importedInvoices.new.length\n            )\n          }}:\n        </p>\n  \n        <div class='invoice-editor__import-modal__table-container'>\n          <table class='data-table data-table--stretched'>\n            <tr>\n              <th>{{t 'common.Supplier'}}</th>\n              <th>{{t 'common.Bill number'}}</th>\n              <th>{{t 'common.Reference'}}</th>\n            </tr>\n            {{#each this.importedInvoices.existing as |invoice|}}\n              <tr>\n                <td>{{invoice.issuer}}</td>\n                <td>{{invoice.billNumber}}</td>\n                <td>{{invoice.name}}</td>\n              </tr>\n            {{/each}}\n          </table>\n        </div>\n  \n        <footer class='block-module__footer'>\n          {{#if this.importedInvoices.new.length}}\n            <button\n              class='button float-end button--spaced'\n              type='button'\n              {{action 'importInvoices' this.importedInvoices.new}}\n            >\n              {{t\n                'entity.builda-price.operations.incoming.bills-legacy.Import only new bills'\n              }}\n            </button>\n          {{/if}}\n  \n          <button\n            class='button float-end button--spaced'\n            type='button'\n            {{action 'importInvoices' this.importedInvoices.invoices}}\n          >\n            {{t 'common.Import all'}}\n          </button>\n  \n          <button\n            class='button button--plain button--spaced'\n            type='button'\n            {{on 'click' (fn (mut this.importedInvoices) null)}}\n          >\n            {{t 'common.Cancel'}}\n          </button>\n        </footer>\n      </ModalDialog>\n    {{/if}}\n  \n    {{#if this.invoiceTypeResponseHandlerVisible}}\n      <InvoiceTypeResponseHandler\n        @responses={{this.invoiceResponses}}\n        @onCancel={{action 'onInvoiceTypeResponseHandlerCancel'}}\n      />\n    {{/if}}\n  {{/if}}\n  */\n  {\n    \"id\": \"+qwKiNln\",\n    \"block\": \"[[[41,[28,[37,1],[[30,0,[\\\"router\\\",\\\"currentRouteName\\\"]],\\\"entity.builda-price.operations.incoming.bills-legacy.bill\\\"],null],[[[1,\\\"  \\\"],[46,[28,[37,3],null,null],null,null,null],[1,\\\"\\\\n\\\"]],[]],[[[41,[51,[28,[37,5],[\\\"isDesktop\\\"],null]],[[[1,\\\"    \\\"],[8,[39,6],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,7],[\\\"common.Bills\\\"],null]]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"border-bottom mb-3 d-flex align-items-center pb-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1 m-0\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,7],[\\\"common.Bills\\\"],null]],[1,\\\"\\\\n          \\\"],[10,\\\"sup\\\"],[14,0,\\\"fs-6 text-muted\\\"],[12],[1,\\\"LEGACY\\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"ms-auto\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[\\\"isDesktop\\\"],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"invoice-selector__radio\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"input\\\"],[14,1,\\\"condensed-filter--condensed\\\"],[15,\\\"checked\\\",[28,[37,1],[[30,0,[\\\"condensedView\\\"]],false],null]],[15,\\\"onchange\\\",[28,[37,13],[[28,[37,14],[[30,0,[\\\"condensedView\\\"]]],null],false],null]],[14,4,\\\"radio\\\"],[12],[13],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"condensed-filter--condensed\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,16],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"list-ul\\\",true]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"invoice-selector__radio\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"input\\\"],[14,1,\\\"condensed-filter--card\\\"],[15,\\\"checked\\\",[28,[37,1],[[30,0,[\\\"condensedView\\\"]],true],null]],[15,\\\"onchange\\\",[28,[37,13],[[28,[37,14],[[30,0,[\\\"condensedView\\\"]]],null],true],null]],[14,4,\\\"radio\\\"],[12],[13],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"condensed-filter--card\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,16],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"table\\\",true]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"hasWriteLevel\\\"]],[[[1,\\\"          \\\"],[8,[39,17],null,[[\\\"@buttonText\\\",\\\"@title\\\",\\\"@class\\\",\\\"@buttonClasses\\\"],[[28,[37,7],[\\\"entity.builda-price.operations.incoming.bills-legacy.Import a bill\\\"],null],[28,[37,7],[\\\"entity.builda-price.operations.incoming.bills-legacy.Bill format\\\"],null],\\\"button--spaced\\\",\\\"button button--secondary file-input-button\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[28,[37,1],[[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"region\\\"]],\\\"NZL\\\"],null],[[[1,\\\"              \\\"],[8,[39,18],null,[[\\\"@class\\\",\\\"@import\\\",\\\"@parser\\\"],[\\\"overlaid-dropdown__option\\\",[28,[37,19],[[30,0],\\\"handleImportInvoices\\\"],null],[30,0,[\\\"parsers\\\",\\\"bunnings\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"Bunnings CSV \\\"]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[39,18],null,[[\\\"@class\\\",\\\"@import\\\",\\\"@parser\\\"],[\\\"overlaid-dropdown__option\\\",[28,[37,19],[[30,0],\\\"handleImportInvoices\\\"],null],[30,0,[\\\"parsers\\\",\\\"carters\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"Carters CSV \\\"]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[39,18],null,[[\\\"@class\\\",\\\"@import\\\",\\\"@parser\\\"],[\\\"overlaid-dropdown__option\\\",[28,[37,19],[[30,0],\\\"handleImportInvoices\\\"],null],[30,0,[\\\"parsers\\\",\\\"mitre\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"Mitre 10 CSV \\\"]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[39,18],null,[[\\\"@class\\\",\\\"@import\\\",\\\"@parser\\\"],[\\\"overlaid-dropdown__option\\\",[28,[37,19],[[30,0],\\\"handleImportInvoices\\\"],null],[30,0,[\\\"parsers\\\",\\\"placemakers\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"PlaceMakers CSV\\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[8,[39,18],null,[[\\\"@class\\\",\\\"@import\\\",\\\"@parser\\\"],[\\\"overlaid-dropdown__option\\\",[28,[37,19],[[30,0],\\\"handleImportInvoices\\\"],null],[30,0,[\\\"parsers\\\",\\\"xero\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"Xero CSV \\\"]],[]]]]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add button--spaced\\\"],[24,\\\"data-test-create-bill-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,19],[[30,0],\\\"transitionToBill\\\",\\\"entity.builda-price.operations.incoming.bills-legacy.bill\\\",\\\"new\\\"],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,7],[\\\"common.New bill\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"alert alert-info d-flex align-items-center justify-content-center gap-2 text-center\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n      \\\"],[10,1],[12],[1,\\\"We have upgraded the bills page with a faster experience.\\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,22],[[24,0,\\\"alert-link text-decoration-underline\\\"]],[[\\\"@route\\\"],[\\\"entity.builda-price.operations.incoming.bills\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        Try it now!\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"    \\\"],[10,0],[14,0,\\\"invoice-selector__controls\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"hasWriteLevel\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"invoice-selector__controls-row\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--spaced\\\"],[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"invoices\\\",\\\"length\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,19],[[30,0],\\\"toggleInvoicesSelected\\\"],null],[12],[1,\\\"\\\\n            \\\"],[1,[52,[28,[37,24],[[30,0,[\\\"invoices\\\",\\\"length\\\"]],[30,0,[\\\"allInvoicesSelected\\\"]]],null],[28,[37,7],[\\\"common.Deselect all\\\"],null],[28,[37,7],[\\\"common.Select all\\\"],null]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,17],[[24,\\\"data-test-bulk-actions\\\",\\\"\\\"]],[[\\\"@buttonText\\\",\\\"@class\\\",\\\"@disabled\\\",\\\"@buttonClasses\\\",\\\"@title\\\"],[[28,[37,7],[\\\"common.Actions\\\"],null],\\\"button--spaced\\\",[28,[37,23],[[30,0,[\\\"selectedInvoices\\\",\\\"length\\\"]]],null],\\\"button button--secondary\\\",[28,[37,25],[[30,0,[\\\"selectedInvoices\\\",\\\"length\\\"]],\\\" \\\",[52,[28,[37,26],[[30,0,[\\\"selectedInvoices\\\",\\\"length\\\"]],1],null],[28,[37,7],[\\\"entity.builda-price.operations.incoming.bills-legacy.selected bills\\\"],null],[28,[37,7],[\\\"entity.builda-price.operations.incoming.bills-legacy.selected bill\\\"],null]],\\\" \\\",[28,[37,7],[\\\"common.with\\\"],null],\\\" \\\",[30,0,[\\\"selectedInvoiceItems\\\",\\\"length\\\"]],\\\" \\\",[52,[28,[37,26],[[30,0,[\\\"selectedInvoiceItems\\\",\\\"length\\\"]],1],null],[28,[37,7],[\\\"common.items\\\"],null],[28,[37,7],[\\\"common.item\\\"],null]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[28,[37,27],[[30,0,[\\\"isAutoMapping\\\"]],[30,0,[\\\"isSaving\\\"]],[30,0,[\\\"isXeroLoading\\\"]]],null],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"overlaid-dropdown__option text-center\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,28],null,[[\\\"@type\\\"],[\\\"spinner\\\"]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[51,[28,[37,1],[[30,0,[\\\"status\\\"]],\\\"ARCHIVED\\\"],null]],[[[41,[51,[28,[37,1],[[30,0,[\\\"status\\\"]],\\\"ACCEPTED\\\"],null]],[[[1,\\\"                  \\\"],[11,0],[24,0,\\\"overlaid-dropdown__option\\\"],[24,\\\"data-test-accept-bills\\\",\\\"\\\"],[4,[38,19],[[30,0],\\\"acceptSelectedInvoices\\\"],null],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,7],[\\\"entity.builda-price.operations.incoming.bills-legacy.Accept invoices\\\"],null]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[1,\\\"                \\\"],[11,0],[24,0,\\\"overlaid-dropdown__option\\\"],[24,\\\"data-test-archive-bills\\\",\\\"\\\"],[4,[38,19],[[30,0],\\\"archiveSelectedInvoices\\\"],null],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,7],[\\\"entity.builda-price.operations.incoming.bills-legacy.Archive invoices\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"xeroIntegration\\\",\\\"ready\\\"]],[[[1,\\\"                \\\"],[11,0],[24,0,\\\"overlaid-dropdown__option\\\"],[24,\\\"data-test-send-bills-to-xero\\\",\\\"\\\"],[4,[38,19],[[30,0],\\\"sendSelectedInvoicesToXero\\\"],null],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,7],[\\\"shared.bill.Send to Xero\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"quickbooks\\\",\\\"ready\\\"]],[[[1,\\\"                \\\"],[11,0],[24,0,\\\"overlaid-dropdown__option\\\"],[24,\\\"data-test-send-bills-to-quickbooks\\\",\\\"\\\"],[4,[38,19],[[30,0],\\\"sendSelectedInvoicesToQuickbooks\\\"],null],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,7],[\\\"shared.bill.Send to QuickBooks\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[11,0],[24,0,\\\"overlaid-dropdown__option\\\"],[24,\\\"data-test-auto-map-bills\\\",\\\"\\\"],[4,[38,19],[[30,0],\\\"autoMapSelected\\\"],null],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,7],[\\\"entity.builda-price.operations.incoming.bills-legacy.Allocate (Auto Map)\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\\n              \\\"],[11,0],[24,0,\\\"overlaid-dropdown__option\\\"],[24,\\\"data-test-allocate-items\\\",\\\"\\\"],[4,[38,19],[[30,0],[30,0,[\\\"toggleProperty\\\"]],\\\"allocatingItems\\\"],null],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,7],[\\\"entity.builda-price.operations.incoming.bills-legacy.Allocate (Manually)\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\\n              \\\"],[11,0],[24,0,\\\"overlaid-dropdown__option button--delete\\\"],[24,\\\"data-test-attempt-delete-bills\\\",\\\"\\\"],[4,[38,19],[[30,0],[30,0,[\\\"toggleProperty\\\"]],\\\"invoiceDeleteConfirmModalVisible\\\"],null],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,7],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"invoice-selector__controls-row float-end\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"jsFilterByDate\\\"]],[[[1,\\\"          \\\"],[8,[39,29],null,[[\\\"@onClose\\\"],[[28,[37,13],[[28,[37,14],[[30,0,[\\\"jsFilterByDate\\\"]]],null],[28,[37,23],[[30,0,[\\\"jsFilterByDate\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[28,[35,7],[\\\"common.Date range\\\"],null]],[1,\\\":\\\\n            \\\"],[1,[28,[35,30],[[30,0,[\\\"startDate\\\"]],[28,[37,7],[\\\"date.shortSlashDmy\\\"],null]],null]],[1,\\\"\\\\n            \\\"],[1,[28,[35,7],[\\\"common.to\\\"],null]],[1,\\\"\\\\n            \\\"],[1,[28,[35,30],[[30,0,[\\\"endDate\\\"]],[28,[37,7],[\\\"date.shortSlashDmy\\\"],null]],null]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,31],[[30,0,[\\\"status\\\"]],\\\"ALL\\\"],null],[[[1,\\\"          \\\"],[8,[39,29],null,[[\\\"@onClose\\\"],[[28,[37,13],[[28,[37,14],[[30,0,[\\\"status\\\"]]],null],\\\"ALL\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[28,[35,7],[\\\"common.Status\\\"],null]],[1,\\\":\\\\n            \\\"],[1,[28,[35,32],[[30,0,[\\\"status\\\"]]],null]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"unallocatedOnly\\\"]],[[[1,\\\"          \\\"],[8,[39,29],null,[[\\\"@onClose\\\"],[[28,[37,13],[[28,[37,14],[[30,0,[\\\"unallocatedOnly\\\"]]],null],false],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[28,[35,7],[\\\"entity.builda-price.operations.incoming.bills-legacy.Unallocated bills\\\"],null]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[8,[39,33],[[24,0,\\\"button--spaced\\\"]],[[\\\"@align\\\"],[\\\"right\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[1,\\\"\\\\n          \\\"],[8,[39,34],null,[[\\\"@label\\\"],[[28,[37,7],[\\\"common.Date range\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[39,35],null,[[\\\"@disabled\\\",\\\"@align\\\",\\\"@startDate\\\",\\\"@endDate\\\",\\\"@onApply\\\"],[[52,[30,0,[\\\"jsFilterByDate\\\"]],false,true],\\\"right\\\",[30,0,[\\\"jsStartDate\\\"]],[30,0,[\\\"jsEndDate\\\"]],[28,[37,19],[[30,0],\\\"setDateRange\\\"],null]]],null],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,34],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,12],[[24,\\\"aria-label\\\",\\\"All Data\\\"],[4,[38,36],[\\\"click\\\",[28,[37,13],[[28,[37,14],[[30,0,[\\\"jsFilterByDate\\\"]]],null],[28,[37,23],[[30,0,[\\\"jsFilterByDate\\\"]]],null]],null]],null]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"jsFilterByDate\\\"]]]],null],[1,\\\"\\\\n              \\\"],[1,[28,[35,7],[\\\"common.Filter by date\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"          \\\"],[8,[39,34],null,[[\\\"@label\\\"],[[28,[37,7],[\\\"common.Status\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[39,37],[[24,\\\"data-test-bill-status-filter\\\",\\\"\\\"]],[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"status\\\"]],[28,[37,13],[[28,[37,14],[[30,0,[\\\"status\\\"]]],null]],null],\\\"select-box\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ALL\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,7],[\\\"common.All\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"DRAFT\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,7],[\\\"common.Draft\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ACCEPTED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,7],[\\\"common.Accepted\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ARCHIVED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,7],[\\\"common.Archived\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"HELD\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,7],[\\\"common.Held\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"PAID\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,7],[\\\"common.Paid\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"]],[1]]]]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"\\\\n          \\\"],[8,[39,34],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,12],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"unallocatedOnly\\\"]]]],null],[1,\\\"\\\\n              \\\"],[1,[28,[35,7],[\\\"entity.builda-price.operations.incoming.bills-legacy.Only show unallocated bills\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"        \\\"],[10,1],[14,0,\\\"invoice-selector__controls-search button--spaced\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"search\\\"]],null],[1,\\\"\\\\n          \\\"],[11,\\\"input\\\"],[16,2,[30,0,[\\\"search\\\"]]],[24,0,\\\"text-input\\\"],[16,\\\"placeholder\\\",[28,[37,7],[\\\"entity.builda-price.operations.incoming.bills-legacy.supplierReference\\\"],null]],[24,4,\\\"search\\\"],[4,[38,38],[[28,[37,19],[[30,0],\\\"setFocus\\\"],null]],null],[4,[38,36],[\\\"input\\\",[28,[37,19],[[30,0],\\\"onSearchInput\\\"],null]],null],[12],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"invoice-selector__invoice-list\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"condensedView\\\"]],[[[1,\\\"        \\\"],[8,[39,39],null,[[\\\"@columns\\\",\\\"@sortedBy\\\",\\\"@class\\\"],[[30,0,[\\\"tableColumns\\\"]],[30,0,[\\\"sortedBy\\\"]],\\\"supplier-invoice-table-pm\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,40],null,[[\\\"@items\\\",\\\"@automatic\\\",\\\"@emptyText\\\",\\\"@itemDisplayName\\\"],[[30,0,[\\\"invoices\\\"]],true,[28,[37,7],[\\\"common.No bills\\\"],null],[28,[37,7],[\\\"common.bills\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[39,41],[[16,\\\"data-test-bill\\\",[28,[37,27],[[30,2,[\\\"id\\\"]],\\\"new\\\"],null]],[16,\\\"data-test-edit-bill\\\",[28,[37,27],[[30,2,[\\\"id\\\"]],\\\"new\\\"],null]]],[[\\\"@class\\\",\\\"@invoice\\\",\\\"@showXeroButton\\\",\\\"@hasWriteLevel\\\",\\\"@hasDuplicate\\\",\\\"@editInvoice\\\",\\\"@showBadges\\\"],[[30,3],[30,2],[30,0,[\\\"xeroIntegration\\\",\\\"ready\\\"]],[30,0,[\\\"hasWriteLevel\\\"]],[30,2,[\\\"hasDuplicate\\\"]],[28,[37,19],[[30,0],\\\"transitionToBill\\\",\\\"entity.builda-price.operations.incoming.bills-legacy.bill\\\",[30,2,[\\\"id\\\"]]],null],[30,0,[\\\"showBadgesColumn\\\"]]]],null],[1,\\\"\\\\n          \\\"]],[2,3]]]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,1],[[30,0,[\\\"model\\\",\\\"invoices\\\",\\\"length\\\"]],[30,0,[\\\"model\\\",\\\"maxNumberOfBills\\\"]]],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"alert alert-info\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,16],[[24,0,\\\"me-2\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"info-circle\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,7],[\\\"entity.builda-price.operations.incoming.bills-legacy.maxNumberOfBills\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"groupedInvoices\\\",\\\"length\\\"]],[[[1,\\\"          \\\"],[8,[39,40],null,[[\\\"@items\\\",\\\"@automatic\\\",\\\"@initialNumberOfItemsVisible\\\",\\\"@increment\\\",\\\"@itemDisplayName\\\"],[[30,0,[\\\"groupedInvoices\\\"]],true,\\\"3\\\",\\\"2\\\",[28,[37,7],[\\\"common.suppliers\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"invoice-selector__invoice-title\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"invoice-selector__invoice-line\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"invoice-selector__invoice-issuer\\\"],[12],[1,[28,[35,27],[[30,4,[\\\"issuer\\\"]],\\\"Unspecified Issuer\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"invoice-selector__invoice-line\\\"],[12],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[8,[39,40],null,[[\\\"@items\\\",\\\"@automatic\\\",\\\"@initialNumberOfItemsVisible\\\",\\\"@increment\\\",\\\"@itemDisplayName\\\"],[[30,4,[\\\"invoices\\\"]],true,\\\"4\\\",\\\"8\\\",[28,[37,7],[\\\"common.bills\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[8,[39,42],[[16,\\\"data-test-bill\\\",[28,[37,27],[[30,6,[\\\"id\\\"]],\\\"new\\\"],null]]],[[\\\"@class\\\",\\\"@invoice\\\",\\\"@xeroReady\\\",\\\"@hasWriteLevel\\\",\\\"@expandedByDefault\\\",\\\"@hasDuplicate\\\",\\\"@editInvoice\\\"],[[30,7],[30,6],[30,0,[\\\"xeroIntegration\\\",\\\"ready\\\"]],[30,0,[\\\"hasWriteLevel\\\"]],true,[30,6,[\\\"hasDuplicate\\\"]],[28,[37,19],[[30,0],\\\"transitionToBill\\\",\\\"entity.builda-price.operations.incoming.bills-legacy.bill\\\",[30,6,[\\\"id\\\"]]],null]]],null],[1,\\\"\\\\n            \\\"]],[6,7]]]]],[1,\\\"\\\\n\\\\n            \\\"],[10,1],[15,0,[29,[[30,5]]]],[12],[13],[1,\\\"\\\\n\\\\n          \\\"]],[4,5]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,1],[[30,0,[\\\"model\\\",\\\"invoices\\\",\\\"length\\\"]],[30,0,[\\\"model\\\",\\\"maxNumberOfBills\\\"]]],null],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"alert alert-info\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,16],[[24,0,\\\"me-2\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"info-circle\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n              \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,7],[\\\"entity.builda-price.operations.incoming.bills-legacy.maxNumberOfBills\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\n\\\"],[1,\\\"          \\\"],[10,0],[14,0,\\\"error-page error-page--no-data\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2 error-page__icon\\\"],[12],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"info-circle\\\"]],null],[13],[1,\\\"\\\\n            \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3 error-page__title\\\"],[12],[1,[28,[35,7],[\\\"common.No bills\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"unmappedInvoiceWarningModalVisible\\\"]],[[[1,\\\"    \\\"],[8,[39,45],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\"],[\\\"modal\\\",[28,[37,13],[[28,[37,14],[[30,0,[\\\"confirmCallback\\\"]]],null],false],null],true,\\\"block-module\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,2],[12],[1,[28,[35,7],[\\\"entity.builda-price.operations.incoming.bills-legacy.youAreAboutToAcceptAnInvoiceThatIsNotCompletelyAllocatedDoYouWantToContinue\\\"],null]],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[12],[8,[39,12],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"doNotWarnForUnmappedInvoice\\\"]]]],null],[1,\\\"\\\\n          \\\"],[1,[28,[35,7],[\\\"shared.bill.Do not warn me again\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"float-end button button--spaced\\\"],[24,\\\"data-test-confirm-unmapped-bills\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,36],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"confirmCallback\\\"]],true],null]],null],[12],[1,[28,[35,7],[\\\"common.Continue\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"float-end button button--plain button--spaced\\\"],[24,4,\\\"button\\\"],[4,[38,36],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"confirmCallback\\\"]],false],null]],null],[12],[1,[28,[35,7],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[8,[39,48],null,[[\\\"@visible\\\",\\\"@title\\\",\\\"@messages\\\",\\\"@confirmText\\\",\\\"@deleteButtonText\\\",\\\"@deletingButtonText\\\",\\\"@onDelete\\\",\\\"@onCancel\\\"],[[30,0,[\\\"invoiceDeleteConfirmModalVisible\\\"]],[52,[30,0,[\\\"deleteConfirmText\\\"]],[28,[37,7],[\\\"common.Delete bills\\\"],null],[28,[37,7],[\\\"common.Delete bill\\\"],null]],[30,0,[\\\"deleteMessages\\\"]],[30,0,[\\\"deleteConfirmText\\\"]],[52,[30,0,[\\\"deleteConfirmText\\\"]],[28,[37,7],[\\\"common.Delete bills\\\"],null],[28,[37,7],[\\\"common.Delete bill\\\"],null]],[28,[37,7],[\\\"common.Deleting\\\"],null],[28,[37,19],[[30,0],\\\"deleteSelectedInvoices\\\"],null],[28,[37,13],[[28,[37,14],[[30,0,[\\\"invoiceDeleteConfirmModalVisible\\\"]]],null],false],null]]],[[\\\"default\\\"],[[[[10,2],[12],[1,[28,[35,7],[\\\"shared.estimate.This action cannot be undone\\\"],null]],[13]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"allocatingItems\\\"]],[[[1,\\\"    \\\"],[8,[39,49],null,[[\\\"@onCancel\\\",\\\"@onAllocateSelected\\\",\\\"@onAllocateAndAcceptSelected\\\",\\\"@onAllocateAcceptAndSendToXeroSelected\\\",\\\"@isAllocating\\\",\\\"@items\\\",\\\"@projects\\\",\\\"@tasks\\\",\\\"@xeroIntegration\\\",\\\"@isXeroFetching\\\",\\\"@xeroAccounts\\\",\\\"@onUpdateXeroAccounts\\\",\\\"@quickbooksIntegration\\\",\\\"@isQuickbooksFetching\\\",\\\"@quickbooksAccounts\\\",\\\"@onUpdateQuickbooksAccounts\\\"],[[28,[37,19],[[30,0],[30,0,[\\\"set\\\"]],\\\"allocatingItems\\\",false],null],[28,[37,19],[[30,0],\\\"allocateSelected\\\"],null],[28,[37,19],[[30,0],\\\"allocateAndAcceptSelected\\\"],null],[28,[37,19],[[30,0],\\\"allocateAcceptAndSendToXeroSelected\\\"],null],[28,[37,27],[[30,0,[\\\"isAllocating\\\"]],[30,0,[\\\"isSecondaryAllocating\\\"]]],null],[30,0,[\\\"selectedInvoiceItems\\\"]],[30,0,[\\\"model\\\",\\\"projects\\\"]],[30,0,[\\\"model\\\",\\\"tasks\\\"]],[30,0,[\\\"xeroIntegration\\\"]],[30,0,[\\\"xeroFetching\\\"]],[30,0,[\\\"model\\\",\\\"xeroAccounts\\\"]],[28,[37,19],[[30,0],\\\"updateXeroAccounts\\\"],null],[30,0,[\\\"quickbooks\\\"]],[30,0,[\\\"quickbooksFetching\\\"]],[30,0,[\\\"model\\\",\\\"quickbooksAccounts\\\"]],[28,[37,19],[[30,0],\\\"updateQuickbooksAccounts\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"unmappedInvoicesToConfirm\\\"]],[[[1,\\\"    \\\"],[8,[39,45],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\"],[\\\"modal\\\",[28,[37,13],[[28,[37,14],[[30,0,[\\\"unmappedInvoicesToConfirm\\\"]]],null],false],null],true,\\\"block-module\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"\\\\n        \\\"],[10,2],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,7],[\\\"entity.builda-price.operations.incoming.bills-legacy.theFollowingXBillsOfYAreNotCompletelyAllocated\\\"],[[\\\"bills\\\",\\\"total\\\"],[[30,0,[\\\"unmappedInvoicesToConfirm\\\",\\\"length\\\"]],[30,0,[\\\"selectedInvoices\\\",\\\"length\\\"]]]]]],[1,\\\":\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,\\\"table\\\"],[14,0,\\\"data-table data-table--stretched\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,7],[\\\"common.Supplier\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,7],[\\\"common.Bill number\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,7],[\\\"common.Reference\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,7],[\\\"common.Total\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,54],[[28,[37,54],[[30,0,[\\\"unmappedInvoicesToConfirm\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,[30,8,[\\\"issuer\\\"]]],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,[30,8,[\\\"billNumber\\\"]]],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,[30,8,[\\\"name\\\"]]],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,56],[[30,8,[\\\"totalPrice\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[8]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isXeroLoading\\\"]],[[[1,\\\"          \\\"],[8,[39,57],null,[[\\\"@class\\\",\\\"@isLoading\\\",\\\"@disabled\\\"],[\\\"button float-end\\\",true,true]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--spaced float-end\\\"],[24,4,\\\"button\\\"],[4,[38,19],[[30,0],\\\"sendSelectedInvoicesToXero\\\",\\\"all\\\"],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,7],[\\\"entity.builda-price.operations.incoming.bills-legacy.Send all\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--spaced float-end\\\"],[24,4,\\\"button\\\"],[4,[38,19],[[30,0],\\\"sendSelectedInvoicesToXero\\\",\\\"mapped\\\"],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,7],[\\\"entity.builda-price.operations.incoming.bills-legacy.Send allocated bills only\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--plain button--spaced\\\"],[24,4,\\\"button\\\"],[4,[38,36],[\\\"click\\\",[28,[37,13],[[28,[37,14],[[30,0,[\\\"unmappedInvoicesToConfirm\\\"]]],null],null],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,7],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"importedInvoices\\\",\\\"existing\\\",\\\"length\\\"]],[[[1,\\\"    \\\"],[8,[39,45],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\"],[\\\"modal\\\",[28,[37,13],[[28,[37,14],[[30,0,[\\\"importedInvoices\\\"]]],null],null],null],true,\\\"block-module\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,7],[\\\"shared.notification.xOutOfYBillsWereFoundToBeDuplicates\\\"],[[\\\"duplicates\\\",\\\"total\\\"],[[30,0,[\\\"importedInvoices\\\",\\\"existing\\\",\\\"length\\\"]],[28,[37,58],[[30,0,[\\\"importedInvoices\\\",\\\"existing\\\",\\\"length\\\"]],\\\"+\\\",[30,0,[\\\"importedInvoices\\\",\\\"new\\\",\\\"length\\\"]]],null]]]]],[1,\\\":\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"invoice-editor__import-modal__table-container\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"table\\\"],[14,0,\\\"data-table data-table--stretched\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,7],[\\\"common.Supplier\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,7],[\\\"common.Bill number\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,7],[\\\"common.Reference\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,54],[[28,[37,54],[[30,0,[\\\"importedInvoices\\\",\\\"existing\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,[30,9,[\\\"issuer\\\"]]],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,[30,9,[\\\"billNumber\\\"]]],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,[30,9,[\\\"name\\\"]]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[9]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"importedInvoices\\\",\\\"new\\\",\\\"length\\\"]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"button float-end button--spaced\\\"],[24,4,\\\"button\\\"],[4,[38,19],[[30,0],\\\"importInvoices\\\",[30,0,[\\\"importedInvoices\\\",\\\"new\\\"]]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,7],[\\\"entity.builda-price.operations.incoming.bills-legacy.Import only new bills\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"button float-end button--spaced\\\"],[24,4,\\\"button\\\"],[4,[38,19],[[30,0],\\\"importInvoices\\\",[30,0,[\\\"importedInvoices\\\",\\\"invoices\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,7],[\\\"common.Import all\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--plain button--spaced\\\"],[24,4,\\\"button\\\"],[4,[38,36],[\\\"click\\\",[28,[37,13],[[28,[37,14],[[30,0,[\\\"importedInvoices\\\"]]],null],null],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,7],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"invoiceTypeResponseHandlerVisible\\\"]],[[[1,\\\"    \\\"],[8,[39,59],null,[[\\\"@responses\\\",\\\"@onCancel\\\"],[[30,0,[\\\"invoiceResponses\\\"]],[28,[37,19],[[30,0],\\\"onInvoiceTypeResponseHandlerCancel\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]]]],[\\\"si\\\",\\\"invoice\\\",\\\"identifier\\\",\\\"invoiceGroup\\\",\\\"groupIdentifier\\\",\\\"invoice\\\",\\\"identifier\\\",\\\"invoice\\\",\\\"invoice\\\"],false,[\\\"if\\\",\\\"eq\\\",\\\"component\\\",\\\"-outlet\\\",\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"t\\\",\\\"article\\\",\\\"div\\\",\\\"h1\\\",\\\"sup\\\",\\\"input\\\",\\\"fn\\\",\\\"mut\\\",\\\"label\\\",\\\"fa-icon\\\",\\\"overlaid-dropdown\\\",\\\"file-importer\\\",\\\"action\\\",\\\"button\\\",\\\"span\\\",\\\"link-to\\\",\\\"not\\\",\\\"and\\\",\\\"concat\\\",\\\"gt\\\",\\\"or\\\",\\\"loading-icon\\\",\\\"page-filters/pill\\\",\\\"moment-format\\\",\\\"not-eq\\\",\\\"convert-to-title-case\\\",\\\"page-filters\\\",\\\"page-filters/item\\\",\\\"date-range-selector\\\",\\\"on\\\",\\\"select-input\\\",\\\"did-insert\\\",\\\"active-table\\\",\\\"lazy-each\\\",\\\"supplier-invoices-pm/invoice-row\\\",\\\"supplier-invoices-pm/invoice\\\",\\\"h2\\\",\\\"h3\\\",\\\"modal-dialog\\\",\\\"p\\\",\\\"footer\\\",\\\"confirm-delete\\\",\\\"allocation-selector\\\",\\\"table\\\",\\\"tr\\\",\\\"th\\\",\\\"each\\\",\\\"-track-array\\\",\\\"td\\\",\\\"number-format\\\",\\\"loading-button\\\",\\\"math\\\",\\\"invoice-type-response-handler\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/incoming/bills-legacy.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/incoming/bills-legacy/bill\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title=(t 'common.Bills')}}\n    />\n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component\n        'mobile-title-bar/back-button'\n        titleBarBack='entity.builda-price.operations.incoming.bills-legacy'\n      }}\n    />\n  {{/unless}}\n  \n  <article\n    class='m-4 page-wrapper {{if this.showValidations \"show-validations\"}}'\n  >\n    <div class='mb-2'>\n      <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n    </div>\n    <header class='border-bottom mb-3 align-items-center d-flex'>\n      {{#if (media 'isDesktop')}}\n        <h2 class='my-2'>\n          {{this.pageTitle}}\n        </h2>\n      {{/if}}\n  \n      {{#unless this.isEditing}}\n        <div class='ms-auto mb-2 d-flex align-items-center flex-wrap'>\n          {{#if (gt this.model.invoices.length 1)}}\n            <button\n              class='button button--plain button--spaced my-1 invoice-editor__header-navigation-button'\n              disabled={{not this.nextInvoice.previous}}\n              type='button'\n              {{action\n                'transitionTo'\n                'entity.builda-price.operations.incoming.bills-legacy.bill'\n                this.nextInvoice.previous\n              }}\n            >\n              <FaIcon @icon='angle-left' @fixedWidth={{true}} />&nbsp;{{t\n                'entity.builda-price.operations.incoming.bills-legacy.bill.Previous'\n              }}\n            </button>\n            <button\n              class='button button--plain button--spaced my-1 invoice-editor__header-navigation-button'\n              disabled={{not this.nextInvoice.next}}\n              type='button'\n              {{action\n                'transitionTo'\n                'entity.builda-price.operations.incoming.bills-legacy.bill'\n                this.nextInvoice.next\n              }}\n            >\n              {{t\n                'entity.builda-price.operations.incoming.bills-legacy.bill.Next'\n              }}&nbsp;<FaIcon @icon='angle-right' @fixedWidth={{true}} />\n            </button>\n          {{/if}}\n          {{#if (includes-feature-flags 'canManageBills')}}\n            <button\n              class='button button--add button--spaced my-1'\n              type='button'\n              {{action\n                'transitionTo'\n                'entity.builda-price.operations.incoming.bills-legacy.bill'\n                'new'\n              }}\n            >{{t 'common.New bill'}}</button>\n          {{/if}}\n        </div>\n  \n      {{/unless}}\n    </header>\n  \n    <div class='d-flex align-items-center flex-wrap'>\n      {{#unless (or this.isEditing this.model.invoice.isNew)}}\n        {{! Badges }}\n        {{! Denotes that this invoice originated from ITM (eAccounts) or Step Connect }}\n        {{#if (or this.model.invoice.eaccountsFileName this.model.invoice.ipsId)}}\n          <IntegrationIcon\n            @imported={{true}}\n            @title={{t\n              'entity.builda-price.operations.incoming.bills-legacy.bill.This bill was imported automatically'\n            }}\n            data-test-edi-icon\n          />\n        {{/if}}\n  \n        {{! Denote that the invoice has been sent to Accounting platform }}\n        {{#if\n          (or this.model.invoice.xeroLinked this.model.invoice.quickbooksLinked)\n        }}\n          <IntegrationIcon\n            @exported={{true}}\n            @title={{t\n              'entity.builda-price.operations.incoming.bills-legacy.bill.aCopyOfThisBillHasBeenSentToYourAccountingPackage'\n            }}\n            data-test-xero-icon\n          />\n        {{/if}}\n  \n        {{#if this.model.invoice.isAutoMapped}}\n          <FaIcon\n            @icon='magic'\n            @class='integration-icon'\n            @title={{t\n              'entity.builda-price.operations.incoming.bills-legacy.bill.Bill was auto mapped'\n            }}\n          />\n        {{/if}}\n  \n        {{! Status }}\n        {{#unless (eq this.model.invoice.status 'DRAFT')}}\n          <span class='button--spaced my-1 d-flex align-items-center'>\n            <span for='invoice-status'>&nbsp;&nbsp;{{t\n                'common.Status'\n              }}:&nbsp;</span>\n            <SelectInput\n              @value={{this.model.invoice.status}}\n              @id='invoice-status'\n              @disabled={{not (includes-feature-flags 'canManageBills')}}\n              @class='tabular-form-controls__cell select-box'\n              @action={{action 'changeStatus'}}\n              as |si|\n            >\n              <si.option @value='DRAFT'>{{t 'common.Draft'}}</si.option>\n              <si.option @value='ACCEPTED'>{{t 'common.Accepted'}}</si.option>\n              <si.option @value='ARCHIVED'>{{t 'common.Archived'}}</si.option>\n              <si.option @value='HELD'>{{t 'common.Held'}}</si.option>\n              <si.option @value='PAID'>{{t 'common.Paid'}}</si.option>\n            </SelectInput>\n          </span>\n        {{/unless}}\n      {{/unless}}\n      {{#if (includes-feature-flags 'canManageBills')}}\n        <div class='ms-auto d-flex align-items-center flex-wrap'>\n          {{#unless this.model.invoice.isNew}}\n            {{#if this.isEditing}}\n              {{! Cancel button if in edit or new mode }}\n              <button\n                class='button button--spaced my-1 button--plain'\n                data-test-cancel-edit-button=''\n                type='button'\n                {{action 'cancel'}}\n              >\n                {{t 'common.Cancel'}}\n              </button>\n  \n            {{else}}\n              {{! Cannot use attachments while in edit mode }}\n              <AttachmentDropdownList\n                @buttonClass='button button--spaced my-1 button--plain'\n                @attachments={{this.model.invoice.myAttachments}}\n                @parent={{this.model.invoice}}\n                @onUploadComplete={{action 'attachmentsUploadComplete'}}\n                @onDownloadAttachment={{action 'downloadAttachment'}}\n                @onDeleteAttachment={{action 'deleteAttachment'}}\n                @isDragAndDropVisible={{true}}\n              />\n  \n              {{! Edit button }}\n              <button\n                class='button button--spaced my-1\n                  {{unless this.invoiceIsValid \"invalid\"}}'\n                data-test-edit-button=''\n                type='button'\n                {{action this.set 'isEditing' true}}\n              >\n                {{t 'common.Edit'}}\n              </button>\n  \n              {{#if this.xeroIntegration.ready}}\n                {{! Button that takes you to Xero if the invoice is also in Xero }}\n                {{#if this.model.invoice.xeroLinked}}\n                  <ComboButton\n                    @class='button--spaced my-1'\n                    @buttonText={{t 'common.View in Xero'}}\n                    @title='Xero Actions'\n                    @action={{action\n                      'viewInvoiceInXero'\n                      this.entityXeroCompanyId\n                      this.model.invoice.xeroDeeplinkPath\n                    }}\n                  >\n                    {{#unless this.loadingXero}}\n                      <div\n                        class='overlaid-dropdown__option'\n                        {{action 'sendToXero'}}\n                        data-test-send-to-xero=''\n                      >\n                        {{t\n                          'entity.builda-price.operations.incoming.bills-legacy.bill.Update in Xero'\n                        }}\n                      </div>\n                    {{else}}\n                      <div class='overlaid-dropdown__option text-center'>\n                        <LoadingIcon @type='spinner' />\n                      </div>\n                    {{/unless}}\n                  </ComboButton>\n                {{else}}\n                  {{! Send to Xero button if the xero integration is set up }}\n                  <LoadingButton\n                    @class='button button--spaced my-1'\n                    @action={{action 'acceptInvoiceAndSendToXero'}}\n                    data-test-send-to-xero\n                    @buttonText={{if\n                      (eq this.model.invoice.status 'DRAFT')\n                      (t\n                        'entity.builda-price.operations.incoming.bills-legacy.bill.Accept bill to send to Xero'\n                      )\n                      (t 'shared.bill.Send to Xero')\n                    }}\n                    @isLoading={{this.loadingXero}}\n                    @disabled={{not this.model.invoice.status 'DRAFT'}}\n                  />\n                {{/if}}\n              {{/if}}\n  \n              {{#if this.quickbooks.ready}}\n                {{#if this.model.invoice.quickbooksLinked}}\n                  <ComboButton\n                    @class='button--spaced my-1'\n                    @buttonText={{t\n                      'entity.settings.contacts.View in QuickBooks'\n                    }}\n                    @title='QuickBooks Actions'\n                    @action={{action\n                      'viewBillInQuickbooks'\n                      this.model.invoice.quickbooksDeeplinkPath\n                    }}\n                  >\n                    {{#unless this.loadingQuickbooks}}\n                      <div\n                        class='overlaid-dropdown__option'\n                        {{action 'sendToQuickBooks'}}\n                        data-test-send-to-xero=''\n                      >\n                        {{t\n                          'entity.builda-price.operations.incoming.bills-legacy.bill.Update in QuickBooks'\n                        }}\n                      </div>\n                    {{else}}\n                      <div class='overlaid-dropdown__option text-center'>\n                        <LoadingIcon @type='spinner' />\n                      </div>\n                    {{/unless}}\n                  </ComboButton>\n                {{else}}\n                  <LoadingButton\n                    @class='button button--spaced my-1'\n                    @action={{action 'acceptInvoiceAndSendToQuickbooks'}}\n                    @buttonText={{if\n                      (eq this.model.invoice.status 'DRAFT')\n                      (t\n                        'entity.builda-price.operations.incoming.bills-legacy.bill.Accept bill to send to QuickBooks'\n                      )\n                      (t 'shared.bill.Send to QuickBooks')\n                    }}\n                    @isLoading={{this.loadingQuickbooks}}\n                    @disabled={{not this.model.invoice.status 'DRAFT'}}\n                  />\n                {{/if}}\n              {{/if}}\n            {{/if}}\n          {{/unless}}\n        </div>\n      {{/if}}\n    </div>\n  \n    <section class='invoice-editor__invoice-info-section'>\n      <div class='invoice-editor__inputs-column'>\n        <div class='invoice-editor__inputs-row'>\n          {{! Supplier }}\n          <label\n            class='tabular-form-controls__cell--label'\n            for='invoice-issuer'\n          >{{t 'common.Issuer'}}</label>\n          {{#if this.isEditing}}\n            <ComboBox\n              @class={{concat\n                'tabular-form-controls__cell text-input'\n                (unless this.model.invoice.issuer ' invalid')\n              }}\n              @key='name'\n              @value={{this.model.invoice.issuer}}\n              @options={{this.issuers}}\n              @onSet={{action 'setInvoiceIssuer'}}\n              data-test-bill-issuer-input\n            />\n          {{else}}\n            <div\n              class='tabular-form-controls__cell invoice-editor__controls-input-padding'\n            >\n              {{this.model.invoice.issuer}}\n            </div>\n          {{/if}}\n        </div>\n  \n        <div class='invoice-editor__inputs-row'>\n          {{! Invoice Number }}\n          <label class='tabular-form-controls__cell--label' for='invoice-number'>\n            {{t 'common.Bill number'}}\n            {{#if this.model.invoice.hasDuplicate}}\n              <span\n                class='invoice-editor__inputs-row-warning-triangle'\n                data-test-duplicate-warning=''\n              >\n                &nbsp;<InfoPopup\n                  @iconName='exclamation-triangle'\n                  class='text-danger'\n                  @text={{t\n                    'entity.builda-price.operations.incoming.bills-legacy.bill.This bill number has already been used'\n                  }}\n                />\n              </span>\n            {{/if}}\n          </label>\n          {{#if this.isEditing}}\n            <Input\n              id='invoice-number'\n              class={{concat\n                'tabular-form-controls__cell text-input'\n                (unless\n                  (or this.model.invoice.billNumber this.model.invoice.reference)\n                  ' invalid'\n                )\n              }}\n              @value={{this.model.invoice.billNumber}}\n              data-test-bill-number-input\n              autocomplete='off'\n            />\n          {{else}}\n            <div\n              class='tabular-form-controls__cell invoice-editor__controls-input-padding'\n            >\n              {{or this.model.invoice.billNumber '—'}}\n            </div>\n          {{/if}}\n        </div>\n  \n        <div class='invoice-editor__inputs-row'>\n          {{! Invoice Date }}\n          <label\n            class='tabular-form-controls__cell--label'\n            for='invoice-issue-date'\n          >{{t 'common.Issue date'}}</label>\n          {{#if this.isEditing}}\n            <PtlInput\n              @type='date'\n              @containerClass='mb-0'\n              @key='issueDate'\n              @model={{this.model.invoice}}\n              class={{if\n                this.isIssueDateInvalid\n                'text-input invalid'\n                'text-input'\n              }}\n              data-test-bill-issue-date-input\n            />\n          {{else}}\n            <div\n              class='tabular-form-controls__cell invoice-editor__controls-input-padding'\n            >\n              {{if\n                this.model.invoice.issueDate\n                (moment-format\n                  this.model.invoice.issueDate (t 'date.longWithoutWeekday')\n                )\n                '—'\n              }}\n            </div>\n          {{/if}}\n        </div>\n  \n        <div\n          class='invoice-editor__inputs-row d-flex align-items-start'\n          style='min-heigh:60px'\n        >\n          <label\n            class='tabular-form-controls__cell--label'\n            for='invoice-notes'\n          >{{t 'common.Notes'}}</label>\n          {{#if this.isEditing}}\n            <Textarea\n              id='invoice-notes'\n              class='form-control tabular-form-controls__cell text-input'\n              style='min-height:60px; max-height:60px; margin-top: 3px;'\n              @value={{this.model.invoice.notes}}\n            />\n          {{else}}\n            <div\n              class='tabular-form-controls__cell invoice-editor__controls-input-padding text-break overflow-auto'\n              style='max-height:60px'\n            >\n              {{or this.model.invoice.notes '—'}}\n            </div>\n          {{/if}}\n        </div>\n      </div>\n  \n      <div class='invoice-editor__inputs-column'>\n        <div class='invoice-editor__inputs-row'>\n          {{! Supplier type }}\n          <label class='tabular-form-controls__cell--label' for='allocate-as'>{{t\n              'entity.builda-price.operations.incoming.bills-legacy.bill.Allocate as'\n            }}</label>\n          {{#if this.isEditing}}\n            <span class={{unless this.model.invoice.allocationType 'invalid'}}>\n              <label>\n                <input\n                  type='radio'\n                  name='allocate-as'\n                  checked={{eq this.model.invoice.allocationType 'MATERIALS'}}\n                  onchange={{action\n                    this.set\n                    'model.invoice.allocationType'\n                    'MATERIALS'\n                  }}\n                  data-test-bill-pick-materials=''\n                />\n                {{t 'common.Material'}}\n              </label>\n              &nbsp;&nbsp;\n              <label>\n                <input\n                  type='radio'\n                  name='allocate-as'\n                  checked={{eq\n                    this.model.invoice.allocationType\n                    'SUBCONTRACTORS'\n                  }}\n                  onchange={{action\n                    this.set\n                    'model.invoice.allocationType'\n                    'SUBCONTRACTORS'\n                  }}\n                  data-test-bill-pick-subcontractor=''\n                />\n                {{t 'common.Subcontractor'}}\n              </label>\n              &nbsp;&nbsp;\n              <label>\n                <input\n                  type='radio'\n                  name='allocate-as'\n                  checked={{eq this.model.invoice.allocationType 'LABOUR'}}\n                  onchange={{action\n                    this.set\n                    'model.invoice.allocationType'\n                    'LABOUR'\n                  }}\n                  data-test-bill-pick-labour=''\n                />\n                {{t 'common.Labour'}}\n              </label>\n            </span>\n          {{else}}\n            <div\n              class='tabular-form-controls__cell invoice-editor__controls-input-padding'\n            >\n              {{#if (eq this.model.invoice.allocationType 'LABOUR')}}\n                {{t 'common.Labour'}}\n              {{else if (eq this.model.invoice.allocationType 'MATERIALS')}}\n                {{t 'common.Materials'}}\n              {{else if (eq this.model.invoice.allocationType 'SUBCONTRACTORS')}}\n                {{t 'common.Subcontractors'}}\n              {{/if}}\n            </div>\n          {{/if}}\n        </div>\n  \n        <div class='invoice-editor__inputs-row'>\n          {{! Reference }}\n          <label class='tabular-form-controls__cell--label' for='invoice-name'>{{t\n              'common.Reference'\n            }}</label>\n          {{#if this.isEditing}}\n            <ComboBox\n              @class={{concat\n                'tabular-form-controls__cell text-input'\n                (unless\n                  (or this.model.invoice.billNumber this.model.invoice.reference)\n                  ' invalid'\n                )\n              }}\n              @key='reference'\n              @value={{this.model.invoice.reference}}\n              @options={{this.references}}\n              @onSet={{action (mut this.model.invoice.reference)}}\n              data-test-bill-name-input\n            />\n          {{else}}\n            <div\n              class='tabular-form-controls__cell invoice-editor__controls-input-padding'\n            >\n              {{or this.model.invoice.reference '—'}}\n            </div>\n          {{/if}}\n        </div>\n  \n        <div class='invoice-editor__inputs-row'>\n          {{! Due Date }}\n          <label\n            class='tabular-form-controls__cell--label'\n            for='invoice-due-date'\n          >{{t 'common.Due date'}}</label>\n          {{#if this.isEditing}}\n            <PtlInput\n              @type='date'\n              @containerClass='mb-0'\n              class={{if this.isDueDateInvalid 'text-input invalid' 'text-input'}}\n              @key='dueDate'\n              @model={{this.model.invoice}}\n              data-test-bill-due-date-input\n            />\n          {{else}}\n            <div\n              class='tabular-form-controls__cell invoice-editor__controls-input-padding'\n            >\n              {{if\n                this.model.invoice.dueDate\n                (moment-format\n                  this.model.invoice.dueDate (t 'date.longWithoutWeekday')\n                )\n                '—'\n              }}\n            </div>\n          {{/if}}\n        </div>\n      </div>\n    </section>\n  \n    {{#if (and this.model.invoice.isNew (lt this.newInvoiceStep 1))}}\n      {{! Show a continue button instead of the items when first arriving at a new invoice }}\n      <section>\n        <button\n          class='button float-end'\n          data-test-next-step-button=''\n          type='button'\n          {{action 'nextStep'}}\n        >\n          {{t\n            'entity.builda-price.operations.incoming.bills-legacy.bill.Proceed to create items'\n          }}\n        </button>\n      </section>\n    {{else}}\n      {{! Items section }}\n      <div class='invoice-editor__divider'></div>\n  \n      <section>\n        <span class='h2'>{{t 'common.Items'}}</span>\n        {{#if\n          (and (not this.isEditing) (includes-feature-flags 'canManageBills'))\n        }}\n          {{! Assign items button }}\n          <button\n            class='button button--spaced float-end'\n            disabled={{not this.selectedItems.length}}\n            data-test-allocate-items-button=''\n            type='button'\n            {{action this.set 'allocatingItems' true}}\n          >\n            {{if\n              this.selectedItems.length\n              (t\n                'entity.builda-price.operations.incoming.bills-legacy.bill.Allocate selected items'\n              )\n              (t\n                'entity.builda-price.operations.incoming.bills-legacy.bill.Select items to allocate'\n              )\n            }}\n          </button>\n          {{! Auto map button }}\n          {{#if this.model.directives.length}}\n            <LoadingButton\n              @class='button button--spaced float-end'\n              @buttonText={{t\n                'entity.builda-price.operations.incoming.bills-legacy.bill.Auto map'\n              }}\n              @action={{action 'autoMap'}}\n              @isLoading={{this.isAutoMapping}}\n              data-test-auto-map-button\n            />\n          {{/if}}\n        {{/if}}\n  \n        <InvoiceItemTablePm\n          @invoice={{this.model.invoice}}\n          @allSelected={{this.allSelected}}\n          @isSelected={{this.isSelected}}\n          @isEditing={{this.isEditing}}\n          @names={{this.names}}\n          @toggleSelectAll={{action 'toggleSelectAll'}}\n          @toggleSelectItem={{action 'toggleSelectItem'}}\n          @addItem={{action 'addItem'}}\n          @deleteItem={{action 'deleteItem'}}\n          {{! xero }}\n          @xeroAccounts={{this.model.xeroAccounts}}\n          @xeroFetching={{this.xeroFetching}}\n          @xeroIntegration={{this.xeroIntegration}}\n          @setItemXeroAccount={{action 'setItemXeroAccount'}}\n          @updateXeroAccounts={{action 'updateXeroAccounts'}}\n          {{! quickbooks }}\n          @quickbooksAccounts={{this.model.quickbooksAccounts}}\n          @quickbooksFetching={{this.quickbooksFetching}}\n          @quickbooksIntegration={{this.quickbooks}}\n          @setItemQuickbooksAccount={{action 'setItemQuickbooksAccount'}}\n          @updateQuickbooksAccounts={{action 'updateQuickbooksAccounts'}}\n        />\n      </section>\n  \n      {{! Add item button }}\n      {{#if this.isEditing}}\n        <section>\n          <button\n            class='button button--add invoice-editor-center-button button--spaced'\n            data-test-add-item-button=''\n            type='button'\n            {{action 'addItem'}}\n          >\n            {{t\n              'entity.builda-price.operations.incoming.bills-legacy.bill.Add another item'\n            }}\n          </button>\n        </section>\n      {{/if}}\n  \n      <div class='invoice-editor__divider'></div>\n  \n      <div class='invoice-editor__footer'>\n        <div class='invoice-editor__inputs-column float-end'>\n          <div class='invoice-editor__inputs-row'>\n            {{! Invoice Total }}\n            <span class='tabular-form-controls__cell--label'>{{t\n                'common.Total'\n              }}</span>\n            <div\n              class='tabular-form-controls__cell invoice-editor__controls-input-padding'\n            >\n              {{number-format\n                this.model.invoice.totalPrice\n                style='currency'\n                dashZero=true\n              }}\n            </div>\n          </div>\n  \n          {{#if (includes-feature-flags 'canManageBills')}}\n            {{#if this.isEditing}}\n              <div class='invoice-editor__inputs-row'>\n                <LoadingButton\n                  @class='button float-end'\n                  @buttonText={{if\n                    this.invoice.isNew\n                    (t 'common.Finish')\n                    (t 'common.Save')\n                  }}\n                  @isLoading={{this.isSaving}}\n                  @action={{action 'save'}}\n                  data-test-save-button\n                />\n              </div>\n            {{else if (eq this.model.invoice.status 'DRAFT')}}\n              <div class='invoice-editor__inputs-row'>\n                <LoadingButton\n                  @class='button float-end'\n                  @action={{action 'acceptInvoice'}}\n                  @isLoading={{this.isAccepting}}\n                  @buttonText={{t\n                    'entity.builda-price.operations.incoming.bills-legacy.bill.Accept bill'\n                  }}\n                  data-test-accept-bill-button\n                />\n              </div>\n            {{/if}}\n          {{/if}}\n        </div>\n      </div>\n    {{/if}}\n  </article>\n  \n  {{#if this.showCreditNoteMessage}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.showCreditNoteMessage) false}}\n      @translucentOverlay={{true}}\n      @containerClass='block-module'\n    >\n      {{#if this.xeroIntegration.ready}}\n        <p>{{t\n            'entity.builda-price.operations.incoming.bills-legacy.bill.sentToXeroAsCreditNote'\n          }}</p>\n        <p>{{t\n            'entity.builda-price.operations.incoming.bills-legacy.bill.needToAllocateTheCreditNote'\n          }}</p>\n        <div class='block-module__footer'>\n          <div class='pull-right'>\n            <button\n              class='button button--plain button--spaced'\n              type='button'\n              {{action this.set 'showCreditNoteMessage' false}}\n            >\n              {{t 'common.Cancel'}}\n            </button>\n            <LoadingButton\n              @class='button button--spaced'\n              @action={{action 'sendToXero' true}}\n              data-test-send-to-xero\n              @buttonText={{t\n                'entity.builda-price.operations.incoming.bills-legacy.bill.Accept and send'\n              }}\n              @isLoading={{this.loadingXero}}\n              @disabled={{eq this.model.invoice.status 'DRAFT'}}\n            />\n          </div>\n        </div>\n  \n      {{/if}}\n      {{#if this.quickbooks.ready}}\n        <p\n        >{{'The total for this bill is negative. It will therefore be sent to QuickBooks as a \"Credit Note\"'}}</p>\n        <p\n        >{{'You will need to allocate the \"Credit Note\" to an invoice from within in QuickBooks'}}</p>\n        <div class='block-module__footer'>\n          <div class='pull-right'>\n            <button\n              class='button button--plain button--spaced'\n              type='button'\n              {{action this.set 'showCreditNoteMessage' false}}\n            >\n              {{t 'common.Cancel'}}\n            </button>\n            <LoadingButton\n              @class='button button--spaced'\n              @action={{action 'sendToQuickBooks' true}}\n              data-test-send-to-xero\n              @buttonText={{t\n                'entity.builda-price.operations.incoming.bills-legacy.bill.Accept and send'\n              }}\n              @isLoading={{this.loadingQuickbooks}}\n              @disabled={{eq this.model.invoice.status 'DRAFT'}}\n            />\n          </div>\n        </div>\n      {{/if}}\n    </ModalDialog>\n  {{/if}}\n  \n  {{! Project/task selection modal }}\n  {{#if this.allocatingItems}}\n    <AllocationSelector\n      @onCancel={{action this.set 'allocatingItems' false}}\n      @onAllocateSelected={{action 'allocateSelected'}}\n      @onAllocateAndAcceptSelected={{action 'allocateAndAcceptSelected'}}\n      @onAllocateAcceptAndSendToXeroSelected={{action\n        'allocateAcceptAndSendToXeroSelected'\n      }}\n      @isAllocating={{or this.isAllocating this.isSecondaryAllocating}}\n      @items={{this.selectedItems}}\n      @projects={{this.model.projects}}\n      @tasks={{this.model.tasks}}\n      {{! xero }}\n      @xeroIntegration={{this.xeroIntegration}}\n      @isXeroFetching={{this.xeroFetching}}\n      @xeroAccounts={{this.model.xeroAccounts}}\n      @onUpdateXeroAccounts={{action 'updateXeroAccounts'}}\n      {{! quickbooks }}\n      @quickbooksIntegration={{this.quickbooks}}\n      @quickbooksAccounts={{this.model.quickbooksAccounts}}\n      @isQuickbooksFetching={{this.quickbooksFetching}}\n      @onUpdateQuickbooksAccounts={{action 'updateQuickbooksAccounts'}}\n    />\n  {{/if}}\n  \n  {{! Unmapped accept warning }}\n  {{#if this.unmappedInvoiceWarningModalVisible}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.unmappedInvoiceWarningModalVisible) false}}\n      @translucentOverlay={{true}}\n      @containerClass='block-module'\n    >\n      <p>{{t\n          'entity.builda-price.operations.incoming.bills-legacy.bill.youAreAboutToAcceptAnBillThatIsNotCompletelyAllocatedDoYouWantToContinue'\n        }}</p>\n  \n      <footer class='block-module__footer'>\n        <label><Input\n            @type='checkbox'\n            @checked={{this.doNotWarnForUnmappedInvoice}}\n          />\n          {{t 'shared.bill.Do not warn me again'}}</label>\n        <button\n          class='float-end button button--spaced'\n          type='button'\n          {{action\n            (if\n              (eq this.continueActionAfterUnmappedWarning 'acceptAndSend')\n              'acceptInvoiceAndSendToXero'\n              'acceptInvoice'\n            )\n            true\n          }}\n        >\n          {{t 'common.Continue'}}\n        </button>\n  \n        <button\n          class='float-end button button--plain button--spaced'\n          type='button'\n          {{action (mut this.unmappedInvoiceWarningModalVisible) false}}\n        >{{t 'common.Cancel'}}</button>\n      </footer>\n    </ModalDialog>\n  {{/if}}\n  \n  <NewSupplierPrompt\n    @visible={{this.newSupplierUpdateVisible}}\n    @close={{action this.set 'newSupplierUpdateVisible' false}}\n    @newSupplier={{this.nextNewSupplier}}\n    @updateSupplier={{action 'updateNewSupplier'}}\n    @isSaving={{this.isSaving}}\n  />\n  \n  {{#if this.invoiceTypeResponseHandlerVisible}}\n    <InvoiceTypeResponseHandler\n      @responses={{this.invoiceResponses}}\n      @onCancel={{action 'onInvoiceTypeResponseHandlerCancel'}}\n    />\n  {{/if}}\n  */\n  {\n    \"id\": \"fhUNhvkx\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"common.Bills\\\"],null]]]]]],null],[1,\\\"\\\\n  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/back-button\\\",0,null,[[\\\"titleBarBack\\\"],[\\\"entity.builda-price.operations.incoming.bills-legacy\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[10,\\\"article\\\"],[15,0,[29,[\\\"m-4 page-wrapper \\\",[52,[30,0,[\\\"showValidations\\\"]],\\\"show-validations\\\"]]]],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"mb-2\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,8],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 align-items-center d-flex\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[10,\\\"h2\\\"],[14,0,\\\"my-2\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,0,[\\\"pageTitle\\\"]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"isEditing\\\"]]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"ms-auto mb-2 d-flex align-items-center flex-wrap\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[[30,0,[\\\"model\\\",\\\"invoices\\\",\\\"length\\\"]],1],null],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--plain button--spaced my-1 invoice-editor__header-navigation-button\\\"],[16,\\\"disabled\\\",[28,[37,13],[[30,0,[\\\"nextInvoice\\\",\\\"previous\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,14],[[30,0],\\\"transitionTo\\\",\\\"entity.builda-price.operations.incoming.bills-legacy.bill\\\",[30,0,[\\\"nextInvoice\\\",\\\"previous\\\"]]],null],[12],[1,\\\"\\\\n            \\\"],[8,[39,15],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"angle-left\\\",true]],null],[1,\\\" \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.incoming.bills-legacy.bill.Previous\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--plain button--spaced my-1 invoice-editor__header-navigation-button\\\"],[16,\\\"disabled\\\",[28,[37,13],[[30,0,[\\\"nextInvoice\\\",\\\"next\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,14],[[30,0],\\\"transitionTo\\\",\\\"entity.builda-price.operations.incoming.bills-legacy.bill\\\",[30,0,[\\\"nextInvoice\\\",\\\"next\\\"]]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.incoming.bills-legacy.bill.Next\\\"],null]],[1,\\\" \\\"],[8,[39,15],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"angle-right\\\",true]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,16],[\\\"canManageBills\\\"],null],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add button--spaced my-1\\\"],[24,4,\\\"button\\\"],[4,[38,14],[[30,0],\\\"transitionTo\\\",\\\"entity.builda-price.operations.incoming.bills-legacy.bill\\\",\\\"new\\\"],null],[12],[1,[28,[35,4],[\\\"common.New bill\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"d-flex align-items-center flex-wrap\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[28,[37,17],[[30,0,[\\\"isEditing\\\"]],[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"isNew\\\"]]],null]],[[[41,[28,[37,17],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"eaccountsFileName\\\"]],[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"ipsId\\\"]]],null],[[[1,\\\"        \\\"],[8,[39,18],[[24,\\\"data-test-edi-icon\\\",\\\"\\\"]],[[\\\"@imported\\\",\\\"@title\\\"],[true,[28,[37,4],[\\\"entity.builda-price.operations.incoming.bills-legacy.bill.This bill was imported automatically\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,17],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"xeroLinked\\\"]],[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"quickbooksLinked\\\"]]],null],[[[1,\\\"        \\\"],[8,[39,18],[[24,\\\"data-test-xero-icon\\\",\\\"\\\"]],[[\\\"@exported\\\",\\\"@title\\\"],[true,[28,[37,4],[\\\"entity.builda-price.operations.incoming.bills-legacy.bill.aCopyOfThisBillHasBeenSentToYourAccountingPackage\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"isAutoMapped\\\"]],[[[1,\\\"        \\\"],[8,[39,15],null,[[\\\"@icon\\\",\\\"@class\\\",\\\"@title\\\"],[\\\"magic\\\",\\\"integration-icon\\\",[28,[37,4],[\\\"entity.builda-price.operations.incoming.bills-legacy.bill.Bill was auto mapped\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[51,[28,[37,19],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"status\\\"]],\\\"DRAFT\\\"],null]],[[[1,\\\"        \\\"],[10,1],[14,0,\\\"button--spaced my-1 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n          \\\"],[10,1],[14,\\\"for\\\",\\\"invoice-status\\\"],[12],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Status\\\"],null]],[1,\\\": \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[39,21],null,[[\\\"@value\\\",\\\"@id\\\",\\\"@disabled\\\",\\\"@class\\\",\\\"@action\\\"],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"status\\\"]],\\\"invoice-status\\\",[28,[37,13],[[28,[37,16],[\\\"canManageBills\\\"],null]],null],\\\"tabular-form-controls__cell select-box\\\",[28,[37,14],[[30,0],\\\"changeStatus\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"DRAFT\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Draft\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ACCEPTED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Accepted\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ARCHIVED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Archived\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"HELD\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Held\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"PAID\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Paid\\\"],null]]],[]]]]],[1,\\\"\\\\n          \\\"]],[1]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[28,[37,16],[\\\"canManageBills\\\"],null],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"ms-auto d-flex align-items-center flex-wrap\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"isNew\\\"]]],[[[41,[30,0,[\\\"isEditing\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--spaced my-1 button--plain\\\"],[24,\\\"data-test-cancel-edit-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,14],[[30,0],\\\"cancel\\\"],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[8,[39,22],null,[[\\\"@buttonClass\\\",\\\"@attachments\\\",\\\"@parent\\\",\\\"@onUploadComplete\\\",\\\"@onDownloadAttachment\\\",\\\"@onDeleteAttachment\\\",\\\"@isDragAndDropVisible\\\"],[\\\"button button--spaced my-1 button--plain\\\",[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"myAttachments\\\"]],[30,0,[\\\"model\\\",\\\"invoice\\\"]],[28,[37,14],[[30,0],\\\"attachmentsUploadComplete\\\"],null],[28,[37,14],[[30,0],\\\"downloadAttachment\\\"],null],[28,[37,14],[[30,0],\\\"deleteAttachment\\\"],null],true]],null],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"            \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"button button--spaced my-1\\\\n                \\\",[52,[51,[30,0,[\\\"invoiceIsValid\\\"]]],\\\"invalid\\\"]]]],[24,\\\"data-test-edit-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,14],[[30,0],[30,0,[\\\"set\\\"]],\\\"isEditing\\\",true],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"common.Edit\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"xeroIntegration\\\",\\\"ready\\\"]],[[[41,[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"xeroLinked\\\"]],[[[1,\\\"                \\\"],[8,[39,23],null,[[\\\"@class\\\",\\\"@buttonText\\\",\\\"@title\\\",\\\"@action\\\"],[\\\"button--spaced my-1\\\",[28,[37,4],[\\\"common.View in Xero\\\"],null],\\\"Xero Actions\\\",[28,[37,14],[[30,0],\\\"viewInvoiceInXero\\\",[30,0,[\\\"entityXeroCompanyId\\\"]],[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"xeroDeeplinkPath\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"loadingXero\\\"]]],[[[1,\\\"                    \\\"],[11,0],[24,0,\\\"overlaid-dropdown__option\\\"],[24,\\\"data-test-send-to-xero\\\",\\\"\\\"],[4,[38,14],[[30,0],\\\"sendToXero\\\"],null],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.incoming.bills-legacy.bill.Update in Xero\\\"],null]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                    \\\"],[10,0],[14,0,\\\"overlaid-dropdown__option text-center\\\"],[12],[1,\\\"\\\\n                      \\\"],[8,[39,24],null,[[\\\"@type\\\"],[\\\"spinner\\\"]],null],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[8,[39,25],[[24,\\\"data-test-send-to-xero\\\",\\\"\\\"]],[[\\\"@class\\\",\\\"@action\\\",\\\"@buttonText\\\",\\\"@isLoading\\\",\\\"@disabled\\\"],[\\\"button button--spaced my-1\\\",[28,[37,14],[[30,0],\\\"acceptInvoiceAndSendToXero\\\"],null],[52,[28,[37,19],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"status\\\"]],\\\"DRAFT\\\"],null],[28,[37,4],[\\\"entity.builda-price.operations.incoming.bills-legacy.bill.Accept bill to send to Xero\\\"],null],[28,[37,4],[\\\"shared.bill.Send to Xero\\\"],null]],[30,0,[\\\"loadingXero\\\"]],[28,[37,13],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"status\\\"]],\\\"DRAFT\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]]]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"quickbooks\\\",\\\"ready\\\"]],[[[41,[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"quickbooksLinked\\\"]],[[[1,\\\"                \\\"],[8,[39,23],null,[[\\\"@class\\\",\\\"@buttonText\\\",\\\"@title\\\",\\\"@action\\\"],[\\\"button--spaced my-1\\\",[28,[37,4],[\\\"entity.settings.contacts.View in QuickBooks\\\"],null],\\\"QuickBooks Actions\\\",[28,[37,14],[[30,0],\\\"viewBillInQuickbooks\\\",[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"quickbooksDeeplinkPath\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"loadingQuickbooks\\\"]]],[[[1,\\\"                    \\\"],[11,0],[24,0,\\\"overlaid-dropdown__option\\\"],[24,\\\"data-test-send-to-xero\\\",\\\"\\\"],[4,[38,14],[[30,0],\\\"sendToQuickBooks\\\"],null],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.incoming.bills-legacy.bill.Update in QuickBooks\\\"],null]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                    \\\"],[10,0],[14,0,\\\"overlaid-dropdown__option text-center\\\"],[12],[1,\\\"\\\\n                      \\\"],[8,[39,24],null,[[\\\"@type\\\"],[\\\"spinner\\\"]],null],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[8,[39,25],null,[[\\\"@class\\\",\\\"@action\\\",\\\"@buttonText\\\",\\\"@isLoading\\\",\\\"@disabled\\\"],[\\\"button button--spaced my-1\\\",[28,[37,14],[[30,0],\\\"acceptInvoiceAndSendToQuickbooks\\\"],null],[52,[28,[37,19],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"status\\\"]],\\\"DRAFT\\\"],null],[28,[37,4],[\\\"entity.builda-price.operations.incoming.bills-legacy.bill.Accept bill to send to QuickBooks\\\"],null],[28,[37,4],[\\\"shared.bill.Send to QuickBooks\\\"],null]],[30,0,[\\\"loadingQuickbooks\\\"]],[28,[37,13],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"status\\\"]],\\\"DRAFT\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]]]],[]],null]],[]]]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"section\\\"],[14,0,\\\"invoice-editor__invoice-info-section\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"invoice-editor__inputs-column\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"invoice-editor__inputs-row\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"        \\\"],[10,\\\"label\\\"],[14,0,\\\"tabular-form-controls__cell--label\\\"],[14,\\\"for\\\",\\\"invoice-issuer\\\"],[12],[1,[28,[35,4],[\\\"common.Issuer\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEditing\\\"]],[[[1,\\\"          \\\"],[8,[39,28],[[24,\\\"data-test-bill-issuer-input\\\",\\\"\\\"]],[[\\\"@class\\\",\\\"@key\\\",\\\"@value\\\",\\\"@options\\\",\\\"@onSet\\\"],[[28,[37,29],[\\\"tabular-form-controls__cell text-input\\\",[52,[51,[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"issuer\\\"]]],\\\" invalid\\\"]],null],\\\"name\\\",[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"issuer\\\"]],[30,0,[\\\"issuers\\\"]],[28,[37,14],[[30,0],\\\"setInvoiceIssuer\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"tabular-form-controls__cell invoice-editor__controls-input-padding\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"issuer\\\"]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"invoice-editor__inputs-row\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"        \\\"],[10,\\\"label\\\"],[14,0,\\\"tabular-form-controls__cell--label\\\"],[14,\\\"for\\\",\\\"invoice-number\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Bill number\\\"],null]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"hasDuplicate\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"invoice-editor__inputs-row-warning-triangle\\\"],[14,\\\"data-test-duplicate-warning\\\",\\\"\\\"],[12],[1,\\\"\\\\n               \\\"],[8,[39,30],[[24,0,\\\"text-danger\\\"]],[[\\\"@iconName\\\",\\\"@text\\\"],[\\\"exclamation-triangle\\\",[28,[37,4],[\\\"entity.builda-price.operations.incoming.bills-legacy.bill.This bill number has already been used\\\"],null]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEditing\\\"]],[[[1,\\\"          \\\"],[8,[39,31],[[24,1,\\\"invoice-number\\\"],[16,0,[28,[37,29],[\\\"tabular-form-controls__cell text-input\\\",[52,[51,[28,[37,17],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"billNumber\\\"]],[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"reference\\\"]]],null]],\\\" invalid\\\"]],null]],[24,\\\"data-test-bill-number-input\\\",\\\"\\\"],[24,\\\"autocomplete\\\",\\\"off\\\"]],[[\\\"@value\\\"],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"billNumber\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"tabular-form-controls__cell invoice-editor__controls-input-padding\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,17],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"billNumber\\\"]],\\\"—\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"invoice-editor__inputs-row\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"        \\\"],[10,\\\"label\\\"],[14,0,\\\"tabular-form-controls__cell--label\\\"],[14,\\\"for\\\",\\\"invoice-issue-date\\\"],[12],[1,[28,[35,4],[\\\"common.Issue date\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEditing\\\"]],[[[1,\\\"          \\\"],[8,[39,32],[[16,0,[52,[30,0,[\\\"isIssueDateInvalid\\\"]],\\\"text-input invalid\\\",\\\"text-input\\\"]],[24,\\\"data-test-bill-issue-date-input\\\",\\\"\\\"]],[[\\\"@type\\\",\\\"@containerClass\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"date\\\",\\\"mb-0\\\",\\\"issueDate\\\",[30,0,[\\\"model\\\",\\\"invoice\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"tabular-form-controls__cell invoice-editor__controls-input-padding\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[52,[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"issueDate\\\"]],[28,[37,33],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"issueDate\\\"]],[28,[37,4],[\\\"date.longWithoutWeekday\\\"],null]],null],\\\"—\\\"]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"invoice-editor__inputs-row d-flex align-items-start\\\"],[14,5,\\\"min-heigh:60px\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"tabular-form-controls__cell--label\\\"],[14,\\\"for\\\",\\\"invoice-notes\\\"],[12],[1,[28,[35,4],[\\\"common.Notes\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEditing\\\"]],[[[1,\\\"          \\\"],[8,[39,34],[[24,1,\\\"invoice-notes\\\"],[24,0,\\\"form-control tabular-form-controls__cell text-input\\\"],[24,5,\\\"min-height:60px; max-height:60px; margin-top: 3px;\\\"]],[[\\\"@value\\\"],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"notes\\\"]]]],null],[1,\\\"\\\"]],[]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"tabular-form-controls__cell invoice-editor__controls-input-padding text-break overflow-auto\\\"],[14,5,\\\"max-height:60px\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,17],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"notes\\\"]],\\\"—\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"invoice-editor__inputs-column\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"invoice-editor__inputs-row\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"        \\\"],[10,\\\"label\\\"],[14,0,\\\"tabular-form-controls__cell--label\\\"],[14,\\\"for\\\",\\\"allocate-as\\\"],[12],[1,[28,[35,4],[\\\"entity.builda-price.operations.incoming.bills-legacy.bill.Allocate as\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEditing\\\"]],[[[1,\\\"          \\\"],[10,1],[15,0,[52,[51,[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"allocationType\\\"]]],\\\"invalid\\\"]],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"input\\\"],[14,3,\\\"allocate-as\\\"],[15,\\\"checked\\\",[28,[37,19],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"allocationType\\\"]],\\\"MATERIALS\\\"],null]],[15,\\\"onchange\\\",[28,[37,14],[[30,0],[30,0,[\\\"set\\\"]],\\\"model.invoice.allocationType\\\",\\\"MATERIALS\\\"],null]],[14,\\\"data-test-bill-pick-materials\\\",\\\"\\\"],[14,4,\\\"radio\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"common.Material\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n              \\\\n            \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"input\\\"],[14,3,\\\"allocate-as\\\"],[15,\\\"checked\\\",[28,[37,19],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"allocationType\\\"]],\\\"SUBCONTRACTORS\\\"],null]],[15,\\\"onchange\\\",[28,[37,14],[[30,0],[30,0,[\\\"set\\\"]],\\\"model.invoice.allocationType\\\",\\\"SUBCONTRACTORS\\\"],null]],[14,\\\"data-test-bill-pick-subcontractor\\\",\\\"\\\"],[14,4,\\\"radio\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"common.Subcontractor\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n              \\\\n            \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"input\\\"],[14,3,\\\"allocate-as\\\"],[15,\\\"checked\\\",[28,[37,19],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"allocationType\\\"]],\\\"LABOUR\\\"],null]],[15,\\\"onchange\\\",[28,[37,14],[[30,0],[30,0,[\\\"set\\\"]],\\\"model.invoice.allocationType\\\",\\\"LABOUR\\\"],null]],[14,\\\"data-test-bill-pick-labour\\\",\\\"\\\"],[14,4,\\\"radio\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"common.Labour\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"tabular-form-controls__cell invoice-editor__controls-input-padding\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,19],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"allocationType\\\"]],\\\"LABOUR\\\"],null],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Labour\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,19],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"allocationType\\\"]],\\\"MATERIALS\\\"],null],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Materials\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,19],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"allocationType\\\"]],\\\"SUBCONTRACTORS\\\"],null],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Subcontractors\\\"],null]],[1,\\\"\\\\n            \\\"]],[]],null]],[]]]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"invoice-editor__inputs-row\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"        \\\"],[10,\\\"label\\\"],[14,0,\\\"tabular-form-controls__cell--label\\\"],[14,\\\"for\\\",\\\"invoice-name\\\"],[12],[1,[28,[35,4],[\\\"common.Reference\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEditing\\\"]],[[[1,\\\"          \\\"],[8,[39,28],[[24,\\\"data-test-bill-name-input\\\",\\\"\\\"]],[[\\\"@class\\\",\\\"@key\\\",\\\"@value\\\",\\\"@options\\\",\\\"@onSet\\\"],[[28,[37,29],[\\\"tabular-form-controls__cell text-input\\\",[52,[51,[28,[37,17],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"billNumber\\\"]],[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"reference\\\"]]],null]],\\\" invalid\\\"]],null],\\\"reference\\\",[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"reference\\\"]],[30,0,[\\\"references\\\"]],[28,[37,14],[[30,0],[28,[37,35],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"reference\\\"]]],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"tabular-form-controls__cell invoice-editor__controls-input-padding\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,17],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"reference\\\"]],\\\"—\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"invoice-editor__inputs-row\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"        \\\"],[10,\\\"label\\\"],[14,0,\\\"tabular-form-controls__cell--label\\\"],[14,\\\"for\\\",\\\"invoice-due-date\\\"],[12],[1,[28,[35,4],[\\\"common.Due date\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEditing\\\"]],[[[1,\\\"          \\\"],[8,[39,32],[[16,0,[52,[30,0,[\\\"isDueDateInvalid\\\"]],\\\"text-input invalid\\\",\\\"text-input\\\"]],[24,\\\"data-test-bill-due-date-input\\\",\\\"\\\"]],[[\\\"@type\\\",\\\"@containerClass\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"date\\\",\\\"mb-0\\\",\\\"dueDate\\\",[30,0,[\\\"model\\\",\\\"invoice\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"tabular-form-controls__cell invoice-editor__controls-input-padding\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[52,[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"dueDate\\\"]],[28,[37,33],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"dueDate\\\"]],[28,[37,4],[\\\"date.longWithoutWeekday\\\"],null]],null],\\\"—\\\"]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,36],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"isNew\\\"]],[28,[37,37],[[30,0,[\\\"newInvoiceStep\\\"]],1],null]],null],[[[1,\\\"    \\\"],[10,\\\"section\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"button float-end\\\"],[24,\\\"data-test-next-step-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,14],[[30,0],\\\"nextStep\\\"],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.incoming.bills-legacy.bill.Proceed to create items\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"invoice-editor__divider\\\"],[12],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"section\\\"],[12],[1,\\\"\\\\n      \\\"],[10,1],[14,0,\\\"h2\\\"],[12],[1,[28,[35,4],[\\\"common.Items\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,36],[[28,[37,13],[[30,0,[\\\"isEditing\\\"]]],null],[28,[37,16],[\\\"canManageBills\\\"],null]],null],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--spaced float-end\\\"],[16,\\\"disabled\\\",[28,[37,13],[[30,0,[\\\"selectedItems\\\",\\\"length\\\"]]],null]],[24,\\\"data-test-allocate-items-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,14],[[30,0],[30,0,[\\\"set\\\"]],\\\"allocatingItems\\\",true],null],[12],[1,\\\"\\\\n          \\\"],[1,[52,[30,0,[\\\"selectedItems\\\",\\\"length\\\"]],[28,[37,4],[\\\"entity.builda-price.operations.incoming.bills-legacy.bill.Allocate selected items\\\"],null],[28,[37,4],[\\\"entity.builda-price.operations.incoming.bills-legacy.bill.Select items to allocate\\\"],null]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"directives\\\",\\\"length\\\"]],[[[1,\\\"          \\\"],[8,[39,25],[[24,\\\"data-test-auto-map-button\\\",\\\"\\\"]],[[\\\"@class\\\",\\\"@buttonText\\\",\\\"@action\\\",\\\"@isLoading\\\"],[\\\"button button--spaced float-end\\\",[28,[37,4],[\\\"entity.builda-price.operations.incoming.bills-legacy.bill.Auto map\\\"],null],[28,[37,14],[[30,0],\\\"autoMap\\\"],null],[30,0,[\\\"isAutoMapping\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n      \\\"],[8,[39,38],null,[[\\\"@invoice\\\",\\\"@allSelected\\\",\\\"@isSelected\\\",\\\"@isEditing\\\",\\\"@names\\\",\\\"@toggleSelectAll\\\",\\\"@toggleSelectItem\\\",\\\"@addItem\\\",\\\"@deleteItem\\\",\\\"@xeroAccounts\\\",\\\"@xeroFetching\\\",\\\"@xeroIntegration\\\",\\\"@setItemXeroAccount\\\",\\\"@updateXeroAccounts\\\",\\\"@quickbooksAccounts\\\",\\\"@quickbooksFetching\\\",\\\"@quickbooksIntegration\\\",\\\"@setItemQuickbooksAccount\\\",\\\"@updateQuickbooksAccounts\\\"],[[30,0,[\\\"model\\\",\\\"invoice\\\"]],[30,0,[\\\"allSelected\\\"]],[30,0,[\\\"isSelected\\\"]],[30,0,[\\\"isEditing\\\"]],[30,0,[\\\"names\\\"]],[28,[37,14],[[30,0],\\\"toggleSelectAll\\\"],null],[28,[37,14],[[30,0],\\\"toggleSelectItem\\\"],null],[28,[37,14],[[30,0],\\\"addItem\\\"],null],[28,[37,14],[[30,0],\\\"deleteItem\\\"],null],[30,0,[\\\"model\\\",\\\"xeroAccounts\\\"]],[30,0,[\\\"xeroFetching\\\"]],[30,0,[\\\"xeroIntegration\\\"]],[28,[37,14],[[30,0],\\\"setItemXeroAccount\\\"],null],[28,[37,14],[[30,0],\\\"updateXeroAccounts\\\"],null],[30,0,[\\\"model\\\",\\\"quickbooksAccounts\\\"]],[30,0,[\\\"quickbooksFetching\\\"]],[30,0,[\\\"quickbooks\\\"]],[28,[37,14],[[30,0],\\\"setItemQuickbooksAccount\\\"],null],[28,[37,14],[[30,0],\\\"updateQuickbooksAccounts\\\"],null]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isEditing\\\"]],[[[1,\\\"      \\\"],[10,\\\"section\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add invoice-editor-center-button button--spaced\\\"],[24,\\\"data-test-add-item-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,14],[[30,0],\\\"addItem\\\"],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.incoming.bills-legacy.bill.Add another item\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"invoice-editor__divider\\\"],[12],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"invoice-editor__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"invoice-editor__inputs-column float-end\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"invoice-editor__inputs-row\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"          \\\"],[10,1],[14,0,\\\"tabular-form-controls__cell--label\\\"],[12],[1,[28,[35,4],[\\\"common.Total\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"tabular-form-controls__cell invoice-editor__controls-input-padding\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,39],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"totalPrice\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,16],[\\\"canManageBills\\\"],null],[[[41,[30,0,[\\\"isEditing\\\"]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"invoice-editor__inputs-row\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,25],[[24,\\\"data-test-save-button\\\",\\\"\\\"]],[[\\\"@class\\\",\\\"@buttonText\\\",\\\"@isLoading\\\",\\\"@action\\\"],[\\\"button float-end\\\",[52,[30,0,[\\\"invoice\\\",\\\"isNew\\\"]],[28,[37,4],[\\\"common.Finish\\\"],null],[28,[37,4],[\\\"common.Save\\\"],null]],[30,0,[\\\"isSaving\\\"]],[28,[37,14],[[30,0],\\\"save\\\"],null]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,19],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"status\\\"]],\\\"DRAFT\\\"],null],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"invoice-editor__inputs-row\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,25],[[24,\\\"data-test-accept-bill-button\\\",\\\"\\\"]],[[\\\"@class\\\",\\\"@action\\\",\\\"@isLoading\\\",\\\"@buttonText\\\"],[\\\"button float-end\\\",[28,[37,14],[[30,0],\\\"acceptInvoice\\\"],null],[30,0,[\\\"isAccepting\\\"]],[28,[37,4],[\\\"entity.builda-price.operations.incoming.bills-legacy.bill.Accept bill\\\"],null]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"]],[]],null]],[]]]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"showCreditNoteMessage\\\"]],[[[1,\\\"  \\\"],[8,[39,40],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\"],[\\\"modal\\\",[28,[37,41],[[28,[37,35],[[30,0,[\\\"showCreditNoteMessage\\\"]]],null],false],null],true,\\\"block-module\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"xeroIntegration\\\",\\\"ready\\\"]],[[[1,\\\"      \\\"],[10,2],[12],[1,[28,[35,4],[\\\"entity.builda-price.operations.incoming.bills-legacy.bill.sentToXeroAsCreditNote\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,[28,[35,4],[\\\"entity.builda-price.operations.incoming.bills-legacy.bill.needToAllocateTheCreditNote\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"pull-right\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--plain button--spaced\\\"],[24,4,\\\"button\\\"],[4,[38,14],[[30,0],[30,0,[\\\"set\\\"]],\\\"showCreditNoteMessage\\\",false],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[39,25],[[24,\\\"data-test-send-to-xero\\\",\\\"\\\"]],[[\\\"@class\\\",\\\"@action\\\",\\\"@buttonText\\\",\\\"@isLoading\\\",\\\"@disabled\\\"],[\\\"button button--spaced\\\",[28,[37,14],[[30,0],\\\"sendToXero\\\",true],null],[28,[37,4],[\\\"entity.builda-price.operations.incoming.bills-legacy.bill.Accept and send\\\"],null],[30,0,[\\\"loadingXero\\\"]],[28,[37,19],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"status\\\"]],\\\"DRAFT\\\"],null]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[]],null],[41,[30,0,[\\\"quickbooks\\\",\\\"ready\\\"]],[[[1,\\\"      \\\"],[10,2],[12],[1,\\\"The total for this bill is negative. It will therefore be sent to QuickBooks as a \\\\\\\"Credit Note\\\\\\\"\\\"],[13],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"You will need to allocate the \\\\\\\"Credit Note\\\\\\\" to an invoice from within in QuickBooks\\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"pull-right\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--plain button--spaced\\\"],[24,4,\\\"button\\\"],[4,[38,14],[[30,0],[30,0,[\\\"set\\\"]],\\\"showCreditNoteMessage\\\",false],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[39,25],[[24,\\\"data-test-send-to-xero\\\",\\\"\\\"]],[[\\\"@class\\\",\\\"@action\\\",\\\"@buttonText\\\",\\\"@isLoading\\\",\\\"@disabled\\\"],[\\\"button button--spaced\\\",[28,[37,14],[[30,0],\\\"sendToQuickBooks\\\",true],null],[28,[37,4],[\\\"entity.builda-price.operations.incoming.bills-legacy.bill.Accept and send\\\"],null],[30,0,[\\\"loadingQuickbooks\\\"]],[28,[37,19],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"status\\\"]],\\\"DRAFT\\\"],null]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"allocatingItems\\\"]],[[[1,\\\"  \\\"],[8,[39,43],null,[[\\\"@onCancel\\\",\\\"@onAllocateSelected\\\",\\\"@onAllocateAndAcceptSelected\\\",\\\"@onAllocateAcceptAndSendToXeroSelected\\\",\\\"@isAllocating\\\",\\\"@items\\\",\\\"@projects\\\",\\\"@tasks\\\",\\\"@xeroIntegration\\\",\\\"@isXeroFetching\\\",\\\"@xeroAccounts\\\",\\\"@onUpdateXeroAccounts\\\",\\\"@quickbooksIntegration\\\",\\\"@quickbooksAccounts\\\",\\\"@isQuickbooksFetching\\\",\\\"@onUpdateQuickbooksAccounts\\\"],[[28,[37,14],[[30,0],[30,0,[\\\"set\\\"]],\\\"allocatingItems\\\",false],null],[28,[37,14],[[30,0],\\\"allocateSelected\\\"],null],[28,[37,14],[[30,0],\\\"allocateAndAcceptSelected\\\"],null],[28,[37,14],[[30,0],\\\"allocateAcceptAndSendToXeroSelected\\\"],null],[28,[37,17],[[30,0,[\\\"isAllocating\\\"]],[30,0,[\\\"isSecondaryAllocating\\\"]]],null],[30,0,[\\\"selectedItems\\\"]],[30,0,[\\\"model\\\",\\\"projects\\\"]],[30,0,[\\\"model\\\",\\\"tasks\\\"]],[30,0,[\\\"xeroIntegration\\\"]],[30,0,[\\\"xeroFetching\\\"]],[30,0,[\\\"model\\\",\\\"xeroAccounts\\\"]],[28,[37,14],[[30,0],\\\"updateXeroAccounts\\\"],null],[30,0,[\\\"quickbooks\\\"]],[30,0,[\\\"model\\\",\\\"quickbooksAccounts\\\"]],[30,0,[\\\"quickbooksFetching\\\"]],[28,[37,14],[[30,0],\\\"updateQuickbooksAccounts\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"unmappedInvoiceWarningModalVisible\\\"]],[[[1,\\\"  \\\"],[8,[39,40],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\"],[\\\"modal\\\",[28,[37,41],[[28,[37,35],[[30,0,[\\\"unmappedInvoiceWarningModalVisible\\\"]]],null],false],null],true,\\\"block-module\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,2],[12],[1,[28,[35,4],[\\\"entity.builda-price.operations.incoming.bills-legacy.bill.youAreAboutToAcceptAnBillThatIsNotCompletelyAllocatedDoYouWantToContinue\\\"],null]],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[12],[8,[39,31],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"doNotWarnForUnmappedInvoice\\\"]]]],null],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"shared.bill.Do not warn me again\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"float-end button button--spaced\\\"],[24,4,\\\"button\\\"],[4,[38,14],[[30,0],[52,[28,[37,19],[[30,0,[\\\"continueActionAfterUnmappedWarning\\\"]],\\\"acceptAndSend\\\"],null],\\\"acceptInvoiceAndSendToXero\\\",\\\"acceptInvoice\\\"],true],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"common.Continue\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"float-end button button--plain button--spaced\\\"],[24,4,\\\"button\\\"],[4,[38,14],[[30,0],[28,[37,35],[[30,0,[\\\"unmappedInvoiceWarningModalVisible\\\"]]],null],false],null],[12],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[8,[39,45],null,[[\\\"@visible\\\",\\\"@close\\\",\\\"@newSupplier\\\",\\\"@updateSupplier\\\",\\\"@isSaving\\\"],[[30,0,[\\\"newSupplierUpdateVisible\\\"]],[28,[37,14],[[30,0],[30,0,[\\\"set\\\"]],\\\"newSupplierUpdateVisible\\\",false],null],[30,0,[\\\"nextNewSupplier\\\"]],[28,[37,14],[[30,0],\\\"updateNewSupplier\\\"],null],[30,0,[\\\"isSaving\\\"]]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"invoiceTypeResponseHandlerVisible\\\"]],[[[1,\\\"  \\\"],[8,[39,46],null,[[\\\"@responses\\\",\\\"@onCancel\\\"],[[30,0,[\\\"invoiceResponses\\\"]],[28,[37,14],[[30,0],\\\"onInvoiceTypeResponseHandlerCancel\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"si\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"if\\\",\\\"div\\\",\\\"page-title-breadcrumbs\\\",\\\"header\\\",\\\"h2\\\",\\\"gt\\\",\\\"button\\\",\\\"not\\\",\\\"action\\\",\\\"fa-icon\\\",\\\"includes-feature-flags\\\",\\\"or\\\",\\\"integration-icon\\\",\\\"eq\\\",\\\"span\\\",\\\"select-input\\\",\\\"attachment-dropdown-list\\\",\\\"combo-button\\\",\\\"loading-icon\\\",\\\"loading-button\\\",\\\"section\\\",\\\"label\\\",\\\"combo-box\\\",\\\"concat\\\",\\\"info-popup\\\",\\\"input\\\",\\\"ptl-input\\\",\\\"moment-format\\\",\\\"textarea\\\",\\\"mut\\\",\\\"and\\\",\\\"lt\\\",\\\"invoice-item-table-pm\\\",\\\"number-format\\\",\\\"modal-dialog\\\",\\\"fn\\\",\\\"p\\\",\\\"allocation-selector\\\",\\\"footer\\\",\\\"new-supplier-prompt\\\",\\\"invoice-type-response-handler\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/incoming/bills-legacy/bill.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/incoming/bills\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <PageHeader @title={{t 'common.Bills'}}>\n    <div class='ms-auto d-flex'>\n      {{#if (includes-feature-flags 'canManageBills')}}\n        <DropdownButton\n          @buttonText={{t 'common.New bill'}}\n          @icon='plus'\n          @disabled={{@isAllocating}}\n          @route='entity.builda-price.operations.incoming.bills.bill'\n          @model='new'\n          @btnClass='btn btn-success'\n          @popOverFixed={{true}}\n        >\n          <LinkTo\n            @route='entity.builda-price.operations.incoming.bills.bill'\n            @model='new-credit-note'\n            class='dropdown-item text-nowrap fs-5'\n          >\n            {{t 'entity.builda-price.operations.incoming.bills.New credit note'}}\n          </LinkTo>\n          <button\n            type='button'\n            class='dropdown-item text-nowrap fs-5'\n            {{on 'click' (fn (mut this.showBillsUploader) true)}}\n          >\n            {{t 'common.Import'}}\n            CSV\n          </button>\n          {{#if this.ips.ready}}\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5 d-flex align-items-center gap-2'\n              disabled={{not this.ips.canSubmitDocuments}}\n              {{on 'click' (fn (mut this.showPdfUploader) true)}}\n            >\n              <span>{{t 'common.Import'}} PDF</span>\n              <span\n                class='badge rounded-pill text-bg-secondary align-self-center lh-1'\n              >{{t 'common.IPS'}}</span>\n            </button>\n          {{/if}}\n        </DropdownButton>\n      {{/if}}\n    </div>\n  </PageHeader>\n  \n  {{#if this.ips.ready}}\n    <IpsUsage @alertOnly={{true}} class='mx-3 mt-3 mb-0' />\n  {{/if}}\n  \n  <div class='bill-layout-container'>\n    <div\n      class='bill-layout-left overflow-auto d-flex flex-column\n        {{if\n          (is-active \"entity.builda-price.operations.incoming.bills.bill\")\n          \"is-condensed\"\n        }}'\n    >\n      <div class='d-flex p-3'>\n        <Input\n          class='form-control me-3'\n          @type='search'\n          @value={{this.searchString}}\n          placeholder={{t\n            'entity.builda-price.operations.incoming.bills.Search for bills or bill items'\n          }}\n          autofocus='true'\n          data-test-bill-search\n          {{on 'input' (perform this.onChangeSearchTerm)}}\n        />\n  \n        <PopOver @disableBlur={{true}} @direction='bottom-left' as |po|>\n          <button type='button' class='btn btn-secondary'>\n            <FaIcon @icon='filter' />\n          </button>\n          <po.Content class='py-3 px-3' style='width: 250px;'>\n            <div>\n              <label class='no-wrap mb-1'>{{t 'common.Status'}}</label>\n              <SelectInput\n                @value={{this.status}}\n                @action={{fn (mut this.status)}}\n                @class='form-control select-box w-100'\n                as |si|\n              >\n                <si.option @value=''>All</si.option>\n                <si.option @value='DRAFT'>{{t 'common.Draft'}}</si.option>\n                <si.option @value='ACCEPTED'>{{t 'common.Accepted'}}</si.option>\n                <si.option @value='ARCHIVED'>{{t 'common.Archived'}}</si.option>\n                <si.option @value='HELD'>{{t 'common.Held'}}</si.option>\n                <si.option @value='PAID'>{{t 'common.Paid'}}</si.option>\n              </SelectInput>\n            </div>\n  \n            <div class='mt-3'>\n              <label class='no-wrap mb-1'>{{t 'common.Type'}}</label>\n              <SelectInput\n                @value={{this.billType}}\n                @action={{fn (mut this.billType)}}\n                @class='form-control select-box w-100'\n                as |si|\n              >\n                <si.option @value=''>All</si.option>\n                <si.option @value='BILL'>{{t 'common.Bill'}}</si.option>\n                <si.option @value='CREDIT_NOTE'>\n                  {{t 'common.Credit note'}}\n                </si.option>\n              </SelectInput>\n            </div>\n  \n            <div class='mt-3'>\n              <label class='no-wrap mb-1'>{{t 'common.Allocation type'}}</label>\n              <SelectInput\n                @value={{this.allocationType}}\n                @action={{fn (mut this.allocationType)}}\n                @class='form-control select-box w-100'\n                as |si|\n              >\n                <si.option @value=''>All</si.option>\n                <si.option @value='LABOUR'> {{t 'common.Labour'}}</si.option>\n                <si.option @value='MATERIALS'>\n                  {{t 'common.Materials'}}\n                </si.option>\n                <si.option @value='SUBCONTRACTORS'>\n                  {{t 'common.Subcontractors'}}\n                </si.option>\n              </SelectInput>\n            </div>\n  \n            <div>\n              <label class='align-items-center mt-3'>\n                {{t 'common.From date'}}\n              </label>\n              <input\n                class='form-control w-100'\n                type='date'\n                value={{this.startDate}}\n                {{on 'change' this.onFromDateChange}}\n              />\n            </div>\n  \n            <div>\n              <label class='align-items-center mt-3'>\n                {{t 'common.To date'}}\n              </label>\n              <input\n                class='form-control w-100'\n                type='date'\n                value={{this.endDate}}\n                {{on 'change' this.onToDateChange}}\n              />\n            </div>\n          </po.Content>\n        </PopOver>\n      </div>\n  \n      <div class='d-flex px-2'>\n        {{#if this.status}}\n          <FilterPill {{on 'click' (fn (mut this.status) '')}}>\n            {{t 'common.Status'}}:\n            {{this.humanReadableStatusPill}}\n          </FilterPill>\n        {{/if}}\n  \n        {{#if this.startDate}}\n          <FilterPill {{on 'click' (fn (mut this.startDate) undefined)}}>\n            {{t 'common.Start date'}}:\n            {{this.startDate}}\n          </FilterPill>\n        {{/if}}\n  \n        {{#if this.endDate}}\n          <FilterPill {{on 'click' (fn (mut this.endDate) undefined)}}>\n            {{t 'common.End date'}}:\n            {{this.endDate}}\n          </FilterPill>\n        {{/if}}\n  \n        {{#if this.billType}}\n          <FilterPill {{on 'click' (fn (mut this.billType) '')}}>\n            {{t 'common.Type'}}:\n            {{this.humanReadableBillTypePill}}\n          </FilterPill>\n        {{/if}}\n        {{#if this.allocationType}}\n          <FilterPill {{on 'click' (fn (mut this.allocationType) '')}}>\n            {{t 'common.Allocation type'}}:\n            {{this.humanReadableAllocationTypePill}}\n          </FilterPill>\n        {{/if}}\n      </div>\n  \n      <BillsTable\n        @filter={{this.model.filter}}\n        @pageSize={{this.model.pageSize}}\n        @sort={{this.model.sort}}\n        @fields={{this.model.fields}}\n        @onOrderBy={{fn (mut this.sort)}}\n        @condensed={{or\n          (is-active 'entity.builda-price.operations.incoming.bills.bill')\n          (not (media 'isDesktop'))\n        }}\n        @billStatus={{this.status}}\n      />\n    </div>\n  \n    {{#if (is-active 'entity.builda-price.operations.incoming.bills.bill')}}\n      <div class='bill-layout-right overflow-auto border-start'>\n        {{outlet}}\n      </div>\n    {{/if}}\n  </div>\n  \n  {{#if this.showPdfUploader}}\n    <IpsUploader @onClose={{fn (mut this.showPdfUploader) false}} />\n  {{/if}}\n  \n  {{#if this.showBillsUploader}}\n    <BillsUploader\n      @onUploadBillsCSV={{this.onUploadBillsCSV}}\n      @onClose={{fn (mut this.showBillsUploader) false}}\n    />\n  {{/if}}\n  */\n  {\n    \"id\": \"rqFECMbw\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@title\\\"],[[28,[37,1],[\\\"common.Bills\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"ms-auto d-flex\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"canManageBills\\\"],null],[[[1,\\\"      \\\"],[8,[39,5],null,[[\\\"@buttonText\\\",\\\"@icon\\\",\\\"@disabled\\\",\\\"@route\\\",\\\"@model\\\",\\\"@btnClass\\\",\\\"@popOverFixed\\\"],[[28,[37,1],[\\\"common.New bill\\\"],null],\\\"plus\\\",[30,1],\\\"entity.builda-price.operations.incoming.bills.bill\\\",\\\"new\\\",\\\"btn btn-success\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[39,6],[[24,0,\\\"dropdown-item text-nowrap fs-5\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.builda-price.operations.incoming.bills.bill\\\",\\\"new-credit-note\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,1],[\\\"entity.builda-price.operations.incoming.bills.New credit note\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"showBillsUploader\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,1],[\\\"common.Import\\\"],null]],[1,\\\"\\\\n          CSV\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"ips\\\",\\\"ready\\\"]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5 d-flex align-items-center gap-2\\\"],[16,\\\"disabled\\\",[28,[37,11],[[30,0,[\\\"ips\\\",\\\"canSubmitDocuments\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"showPdfUploader\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,1],[12],[1,[28,[35,1],[\\\"common.Import\\\"],null]],[1,\\\" PDF\\\"],[13],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"badge rounded-pill text-bg-secondary align-self-center lh-1\\\"],[12],[1,[28,[35,1],[\\\"common.IPS\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"ips\\\",\\\"ready\\\"]],[[[1,\\\"  \\\"],[8,[39,13],[[24,0,\\\"mx-3 mt-3 mb-0\\\"]],[[\\\"@alertOnly\\\"],[true]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"bill-layout-container\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[15,0,[29,[\\\"bill-layout-left overflow-auto d-flex flex-column\\\\n      \\\",[52,[28,[37,14],[\\\"entity.builda-price.operations.incoming.bills.bill\\\"],null],\\\"is-condensed\\\"]]]],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex p-3\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,15],[[24,0,\\\"form-control me-3\\\"],[16,\\\"placeholder\\\",[28,[37,1],[\\\"entity.builda-price.operations.incoming.bills.Search for bills or bill items\\\"],null]],[24,\\\"autofocus\\\",\\\"true\\\"],[24,\\\"data-test-bill-search\\\",\\\"\\\"],[4,[38,8],[\\\"input\\\",[28,[37,16],[[30,0,[\\\"onChangeSearchTerm\\\"]]],null]],null]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"search\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,17],null,[[\\\"@disableBlur\\\",\\\"@direction\\\"],[true,\\\"bottom-left\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,18],null,[[\\\"@icon\\\"],[\\\"filter\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,2,[\\\"Content\\\"]],[[24,0,\\\"py-3 px-3\\\"],[24,5,\\\"width: 250px;\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[10,0],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"no-wrap mb-1\\\"],[12],[1,[28,[35,1],[\\\"common.Status\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[8,[39,20],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"status\\\"]],[28,[37,9],[[28,[37,10],[[30,0,[\\\"status\\\"]]],null]],null],\\\"form-control select-box w-100\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"\\\"]],[[\\\"default\\\"],[[[[1,\\\"All\\\"]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"DRAFT\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,1],[\\\"common.Draft\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ACCEPTED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,1],[\\\"common.Accepted\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ARCHIVED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,1],[\\\"common.Archived\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"HELD\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,1],[\\\"common.Held\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"PAID\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,1],[\\\"common.Paid\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"]],[3]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"mt-3\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"no-wrap mb-1\\\"],[12],[1,[28,[35,1],[\\\"common.Type\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[8,[39,20],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"billType\\\"]],[28,[37,9],[[28,[37,10],[[30,0,[\\\"billType\\\"]]],null]],null],\\\"form-control select-box w-100\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[8,[30,4,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"\\\"]],[[\\\"default\\\"],[[[[1,\\\"All\\\"]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,4,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"BILL\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,1],[\\\"common.Bill\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,4,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"CREDIT_NOTE\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[1,[28,[35,1],[\\\"common.Credit note\\\"],null]],[1,\\\"\\\\n              \\\"]],[]]]]],[1,\\\"\\\\n            \\\"]],[4]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"mt-3\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"no-wrap mb-1\\\"],[12],[1,[28,[35,1],[\\\"common.Allocation type\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[8,[39,20],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"allocationType\\\"]],[28,[37,9],[[28,[37,10],[[30,0,[\\\"allocationType\\\"]]],null]],null],\\\"form-control select-box w-100\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[8,[30,5,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"\\\"]],[[\\\"default\\\"],[[[[1,\\\"All\\\"]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,5,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"LABOUR\\\"]],[[\\\"default\\\"],[[[[1,\\\" \\\"],[1,[28,[35,1],[\\\"common.Labour\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,5,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"MATERIALS\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[1,[28,[35,1],[\\\"common.Materials\\\"],null]],[1,\\\"\\\\n              \\\"]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,5,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"SUBCONTRACTORS\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[1,[28,[35,1],[\\\"common.Subcontractors\\\"],null]],[1,\\\"\\\\n              \\\"]],[]]]]],[1,\\\"\\\\n            \\\"]],[5]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"align-items-center mt-3\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,1],[\\\"common.From date\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control w-100\\\"],[16,2,[30,0,[\\\"startDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,8],[\\\"change\\\",[30,0,[\\\"onFromDateChange\\\"]]],null],[12],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"align-items-center mt-3\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,1],[\\\"common.To date\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control w-100\\\"],[16,2,[30,0,[\\\"endDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,8],[\\\"change\\\",[30,0,[\\\"onToDateChange\\\"]]],null],[12],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[2]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex px-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"status\\\"]],[[[1,\\\"        \\\"],[8,[39,21],[[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"status\\\"]]],null],\\\"\\\"],null]],null]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,1],[\\\"common.Status\\\"],null]],[1,\\\":\\\\n          \\\"],[1,[30,0,[\\\"humanReadableStatusPill\\\"]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"startDate\\\"]],[[[1,\\\"        \\\"],[8,[39,21],[[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"startDate\\\"]]],null],[27]],null]],null]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,1],[\\\"common.Start date\\\"],null]],[1,\\\":\\\\n          \\\"],[1,[30,0,[\\\"startDate\\\"]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"endDate\\\"]],[[[1,\\\"        \\\"],[8,[39,21],[[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"endDate\\\"]]],null],[27]],null]],null]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,1],[\\\"common.End date\\\"],null]],[1,\\\":\\\\n          \\\"],[1,[30,0,[\\\"endDate\\\"]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"billType\\\"]],[[[1,\\\"        \\\"],[8,[39,21],[[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"billType\\\"]]],null],\\\"\\\"],null]],null]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,1],[\\\"common.Type\\\"],null]],[1,\\\":\\\\n          \\\"],[1,[30,0,[\\\"humanReadableBillTypePill\\\"]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"allocationType\\\"]],[[[1,\\\"        \\\"],[8,[39,21],[[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"allocationType\\\"]]],null],\\\"\\\"],null]],null]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,1],[\\\"common.Allocation type\\\"],null]],[1,\\\":\\\\n          \\\"],[1,[30,0,[\\\"humanReadableAllocationTypePill\\\"]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[8,[39,22],null,[[\\\"@filter\\\",\\\"@pageSize\\\",\\\"@sort\\\",\\\"@fields\\\",\\\"@onOrderBy\\\",\\\"@condensed\\\",\\\"@billStatus\\\"],[[30,0,[\\\"model\\\",\\\"filter\\\"]],[30,0,[\\\"model\\\",\\\"pageSize\\\"]],[30,0,[\\\"model\\\",\\\"sort\\\"]],[30,0,[\\\"model\\\",\\\"fields\\\"]],[28,[37,9],[[28,[37,10],[[30,0,[\\\"sort\\\"]]],null]],null],[28,[37,23],[[28,[37,14],[\\\"entity.builda-price.operations.incoming.bills.bill\\\"],null],[28,[37,11],[[28,[37,24],[\\\"isDesktop\\\"],null]],null]],null],[30,0,[\\\"status\\\"]]]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,14],[\\\"entity.builda-price.operations.incoming.bills.bill\\\"],null],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"bill-layout-right overflow-auto border-start\\\"],[12],[1,\\\"\\\\n      \\\"],[46,[28,[37,26],null,null],null,null,null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"showPdfUploader\\\"]],[[[1,\\\"  \\\"],[8,[39,27],null,[[\\\"@onClose\\\"],[[28,[37,9],[[28,[37,10],[[30,0,[\\\"showPdfUploader\\\"]]],null],false],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showBillsUploader\\\"]],[[[1,\\\"  \\\"],[8,[39,28],null,[[\\\"@onUploadBillsCSV\\\",\\\"@onClose\\\"],[[30,0,[\\\"onUploadBillsCSV\\\"]],[28,[37,9],[[28,[37,10],[[30,0,[\\\"showBillsUploader\\\"]]],null],false],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@isAllocating\\\",\\\"po\\\",\\\"si\\\",\\\"si\\\",\\\"si\\\"],false,[\\\"page-header\\\",\\\"t\\\",\\\"div\\\",\\\"if\\\",\\\"includes-feature-flags\\\",\\\"dropdown-button\\\",\\\"link-to\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"not\\\",\\\"span\\\",\\\"ips-usage\\\",\\\"is-active\\\",\\\"input\\\",\\\"perform\\\",\\\"pop-over\\\",\\\"fa-icon\\\",\\\"label\\\",\\\"select-input\\\",\\\"filter-pill\\\",\\\"bills-table\\\",\\\"or\\\",\\\"media\\\",\\\"component\\\",\\\"-outlet\\\",\\\"ips-uploader\\\",\\\"bills-uploader\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/incoming/bills.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/incoming/bills/bill\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <BillEditor @bill={{this.model.bill}} @billStatus={{this.model.billStatus}} />\n  */\n  {\n    \"id\": \"ptuW+ZWY\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@bill\\\",\\\"@billStatus\\\"],[[30,0,[\\\"model\\\",\\\"bill\\\"]],[30,0,[\\\"model\\\",\\\"billStatus\\\"]]]],null]],[],false,[\\\"bill-editor\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/incoming/bills/bill.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/incoming/statements\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4 h-100 d-flex flex-column'>\n    <header class='border-bottom mb-3 pb-2 d-flex align-items-center flex-wrap'>\n      {{#if (media 'isDesktop')}}\n        <h2 class='flex-grow-1 m-0 my-2'>{{t 'common.Statements'}}</h2>\n      {{/if}}\n    </header>\n  \n    {{#if this.ips.ready}}\n      <IpsUsage @alertOnly={{true}} class='mb-3 flex-shrink-0' />\n    {{/if}}\n  \n    <iframe\n      src={{this.iframeSrc}}\n      class='buildaprice-frame flex-grow-1'\n      title={{t 'common.Statements'}}\n    ></iframe>\n  </article>\n  */\n  {\n    \"id\": \"M0VnM65f\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4 h-100 d-flex flex-column\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 pb-2 d-flex align-items-center flex-wrap\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,[28,[35,5],[\\\"common.Statements\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"ips\\\",\\\"ready\\\"]],[[[1,\\\"    \\\"],[8,[39,6],[[24,0,\\\"mb-3 flex-shrink-0\\\"]],[[\\\"@alertOnly\\\"],[true]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[10,\\\"iframe\\\"],[15,\\\"src\\\",[30,0,[\\\"iframeSrc\\\"]]],[14,0,\\\"buildaprice-frame flex-grow-1\\\"],[15,\\\"title\\\",[28,[37,5],[\\\"common.Statements\\\"],null]],[12],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"article\\\",\\\"header\\\",\\\"if\\\",\\\"media\\\",\\\"h2\\\",\\\"t\\\",\\\"ips-usage\\\",\\\"iframe\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/incoming/statements.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/incoming/timesheets-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"6IH+Ee33\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/incoming/timesheets-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/incoming/timesheets\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t 'common.Timesheets')\n      }}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    {{! TODO not actually sticky anymore due to compatibility with embed route }}\n    {{! look at fixing when there is time }}\n    <div class='timesheets__sticky-header'>\n      <div class='border-bottom mb-3 d-flex align-items-center pb-3'>\n        {{#if (media 'isDesktop')}}\n          <h1 class='m-0'>\n            {{t 'common.Timesheets'}}\n          </h1>\n        {{/if}}\n        <div class='ms-auto'>\n          <LinkTo\n            @route={{concat this.model.basePath '.timesheets.timesheet'}}\n            @query={{hash date=(moment-format this.today 'YYYY-MM-DD') worker=''}}\n            class='button button--add button--spaced'\n            data-test-timesheet\n          >\n            {{t\n              'entity.builda-price.operations.incoming.timesheets.New timesheet'\n            }}\n          </LinkTo>\n        </div>\n      </div>\n  \n      <div class='timesheets__controls'>\n        {{#if this.showForemanControls}}\n          <button\n            class='button button--spaced'\n            disabled={{not this.filteredTimesheets.length}}\n            type='button'\n            {{on 'click' (action 'toggleGroupsSelected')}}\n          >\n            {{if\n              this.allSelected\n              (t 'common.Deselect all')\n              (t 'common.Select all')\n            }}\n          </button>\n  \n          <OverlaidDropdown\n            @buttonText={{t 'common.Actions'}}\n            @class='button--spaced'\n            @disabled={{not this.anySelected}}\n            @buttonClasses='button button--secondary'\n            @title={{concat this.nSelected ' ' (t 'common.selected')}}\n          >\n            {{#if (or this.acceptingTimesheets)}}\n              <div class='overlaid-dropdown__option text-center'>\n                <LoadingIcon @type='spinner' />\n              </div>\n            {{else}}\n              <div\n                class='overlaid-dropdown__option'\n                {{on 'click' (action 'acceptSelectedTimesheets')}}\n              >\n                {{t\n                  'entity.builda-price.operations.incoming.timesheets.Accept selected'\n                }}\n              </div>\n              <div\n                class='overlaid-dropdown__option'\n                {{on 'click' (action 'undoAcceptSelectedTimesheets')}}\n              >\n                {{t\n                  'entity.builda-price.operations.incoming.timesheets.Return to pending'\n                }}\n              </div>\n            {{/if}}\n          </OverlaidDropdown>\n        {{/if}}\n  \n        <div class='float-end'>\n          {{t 'common.Date range'}}:&nbsp;\n          <DateRangeSelector\n            @align='right'\n            @startDate={{this.jsStartDate}}\n            @endDate={{this.jsEndDate}}\n            @onApply={{action 'setDateRange'}}\n          />\n  \n          &nbsp;&nbsp;\n  \n          <div class='timesheets__controls-select button--spaced'>\n            {{t 'common.Status'}}:\n            <SelectInput\n              @value={{this.selectedTimesheetStatus}}\n              @action={{fn (mut this.selectedTimesheetStatus)}}\n              @class='select-box'\n              as |si|\n            >\n              <si.option @value='all'>{{t 'common.All'}}</si.option>\n              <si.option @value='pending'>{{t 'common.Pending'}}</si.option>\n              <si.option @value='accepted'>{{t 'common.Accepted'}}</si.option>\n            </SelectInput>\n          </div>\n  \n          &nbsp;&nbsp;\n  \n          <span class='timesheets__controls-search'>\n            <FaIcon @icon='search' />\n            <Input\n              @value={{this.searchString}}\n              class='text-input'\n              placeholder={{t 'common.workersProjectsOrTasks'}}\n            />\n          </span>\n        </div>\n      </div>\n    </div>\n  \n    <div class='timesheets__timesheets-section mt-5'>\n      {{#if this.filteredTimesheets.length}}\n        <TimesheetsTablePm\n          @groupedTimesheetData={{this.groupedTimesheets}}\n          @toggleGroupSelected={{action 'toggleGroupSelected'}}\n          @toggleGroupExpanded={{action 'toggleGroupExpanded'}}\n          @link={{concat this.model.basePath '.timesheets.timesheet'}}\n          @allGroupsSelected={{this.allGroupsSelected}}\n          @acceptAndLockTimesheet={{action 'acceptAndLockTimesheet'}}\n          @undoAcceptAndLockTimesheet={{action 'undoAcceptAndLockTimesheet'}}\n          @acceptingTimesheets={{this.acceptingTimesheets}}\n          @showForemanControls={{this.showForemanControls}}\n        />\n      {{else}}\n        <div class='error-page error-page--no-data'>\n          <h2 class='h2 error-page__icon'><FaIcon @icon='info-circle' /></h2>\n          <h3 class='h3 error-page__title'>{{t\n              'shared.timesheet.No timesheets'\n            }}</h3>\n        </div>\n      {{/if}}\n    </div>\n  </article>\n  {{outlet}}\n  */\n  {\n    \"id\": \"n2KwyL8Q\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"common.Timesheets\\\"],null]]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"  \\\"],[10,0],[14,0,\\\"timesheets__sticky-header\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"border-bottom mb-3 d-flex align-items-center pb-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h1\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Timesheets\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[10,0],[14,0,\\\"ms-auto\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,9],[[24,0,\\\"button button--add button--spaced\\\"],[24,\\\"data-test-timesheet\\\",\\\"\\\"]],[[\\\"@route\\\",\\\"@query\\\"],[[28,[37,10],[[30,0,[\\\"model\\\",\\\"basePath\\\"]],\\\".timesheets.timesheet\\\"],null],[28,[37,11],null,[[\\\"date\\\",\\\"worker\\\"],[[28,[37,12],[[30,0,[\\\"today\\\"]],\\\"YYYY-MM-DD\\\"],null],\\\"\\\"]]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.incoming.timesheets.New timesheet\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"timesheets__controls\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showForemanControls\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--spaced\\\"],[16,\\\"disabled\\\",[28,[37,14],[[30,0,[\\\"filteredTimesheets\\\",\\\"length\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[28,[37,16],[[30,0],\\\"toggleGroupsSelected\\\"],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[52,[30,0,[\\\"allSelected\\\"]],[28,[37,4],[\\\"common.Deselect all\\\"],null],[28,[37,4],[\\\"common.Select all\\\"],null]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,17],null,[[\\\"@buttonText\\\",\\\"@class\\\",\\\"@disabled\\\",\\\"@buttonClasses\\\",\\\"@title\\\"],[[28,[37,4],[\\\"common.Actions\\\"],null],\\\"button--spaced\\\",[28,[37,14],[[30,0,[\\\"anySelected\\\"]]],null],\\\"button button--secondary\\\",[28,[37,10],[[30,0,[\\\"nSelected\\\"]],\\\" \\\",[28,[37,4],[\\\"common.selected\\\"],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[28,[37,18],[[30,0,[\\\"acceptingTimesheets\\\"]]],null],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"overlaid-dropdown__option text-center\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,19],null,[[\\\"@type\\\"],[\\\"spinner\\\"]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[11,0],[24,0,\\\"overlaid-dropdown__option\\\"],[4,[38,15],[\\\"click\\\",[28,[37,16],[[30,0],\\\"acceptSelectedTimesheets\\\"],null]],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.incoming.timesheets.Accept selected\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[11,0],[24,0,\\\"overlaid-dropdown__option\\\"],[4,[38,15],[\\\"click\\\",[28,[37,16],[[30,0],\\\"undoAcceptSelectedTimesheets\\\"],null]],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.incoming.timesheets.Return to pending\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"float-end\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"common.Date range\\\"],null]],[1,\\\": \\\\n        \\\"],[8,[39,20],null,[[\\\"@align\\\",\\\"@startDate\\\",\\\"@endDate\\\",\\\"@onApply\\\"],[\\\"right\\\",[30,0,[\\\"jsStartDate\\\"]],[30,0,[\\\"jsEndDate\\\"]],[28,[37,16],[[30,0],\\\"setDateRange\\\"],null]]],null],[1,\\\"\\\\n\\\\n          \\\\n\\\\n        \\\"],[10,0],[14,0,\\\"timesheets__controls-select button--spaced\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Status\\\"],null]],[1,\\\":\\\\n          \\\"],[8,[39,21],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"selectedTimesheetStatus\\\"]],[28,[37,22],[[28,[37,23],[[30,0,[\\\"selectedTimesheetStatus\\\"]]],null]],null],\\\"select-box\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"all\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.All\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"pending\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Pending\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"accepted\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Accepted\\\"],null]]],[]]]]],[1,\\\"\\\\n          \\\"]],[1]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n          \\\\n\\\\n        \\\"],[10,1],[14,0,\\\"timesheets__controls-search\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,25],null,[[\\\"@icon\\\"],[\\\"search\\\"]],null],[1,\\\"\\\\n          \\\"],[8,[39,26],[[24,0,\\\"text-input\\\"],[16,\\\"placeholder\\\",[28,[37,4],[\\\"common.workersProjectsOrTasks\\\"],null]]],[[\\\"@value\\\"],[[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"timesheets__timesheets-section mt-5\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"filteredTimesheets\\\",\\\"length\\\"]],[[[1,\\\"      \\\"],[8,[39,27],null,[[\\\"@groupedTimesheetData\\\",\\\"@toggleGroupSelected\\\",\\\"@toggleGroupExpanded\\\",\\\"@link\\\",\\\"@allGroupsSelected\\\",\\\"@acceptAndLockTimesheet\\\",\\\"@undoAcceptAndLockTimesheet\\\",\\\"@acceptingTimesheets\\\",\\\"@showForemanControls\\\"],[[30,0,[\\\"groupedTimesheets\\\"]],[28,[37,16],[[30,0],\\\"toggleGroupSelected\\\"],null],[28,[37,16],[[30,0],\\\"toggleGroupExpanded\\\"],null],[28,[37,10],[[30,0,[\\\"model\\\",\\\"basePath\\\"]],\\\".timesheets.timesheet\\\"],null],[30,0,[\\\"allGroupsSelected\\\"]],[28,[37,16],[[30,0],\\\"acceptAndLockTimesheet\\\"],null],[28,[37,16],[[30,0],\\\"undoAcceptAndLockTimesheet\\\"],null],[30,0,[\\\"acceptingTimesheets\\\"]],[30,0,[\\\"showForemanControls\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"error-page error-page--no-data\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2 error-page__icon\\\"],[12],[8,[39,25],null,[[\\\"@icon\\\"],[\\\"info-circle\\\"]],null],[13],[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3 error-page__title\\\"],[12],[1,[28,[35,4],[\\\"shared.timesheet.No timesheets\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[46,[28,[37,30],null,null],null,null,null]],[\\\"si\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"div\\\",\\\"if\\\",\\\"h1\\\",\\\"link-to\\\",\\\"concat\\\",\\\"hash\\\",\\\"moment-format\\\",\\\"button\\\",\\\"not\\\",\\\"on\\\",\\\"action\\\",\\\"overlaid-dropdown\\\",\\\"or\\\",\\\"loading-icon\\\",\\\"date-range-selector\\\",\\\"select-input\\\",\\\"fn\\\",\\\"mut\\\",\\\"span\\\",\\\"fa-icon\\\",\\\"input\\\",\\\"timesheets-table-pm\\\",\\\"h2\\\",\\\"h3\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/incoming/timesheets.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/incoming/timesheets/timesheet\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.date}}\n    <ModalDialog\n      @onClose={{action 'clear'}}\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n      @containerClass='block-module'\n    >\n      {{! TODO action bubbles }}\n      {{! close=(action 'clear') }}\n      <div class='timesheet'>\n        {{#if this.isLoading}}\n          <div class='timesheet__placeholder'>\n            <p class='text-center'>\n              <LoadingIcon @type='spinner' />\n            </p>\n          </div>\n        {{else}}\n          <div class='timesheet__selectors'>\n            <div class='timesheet__selectors-row'>\n              <div class='timesheet__selectors-column'>\n                <h3 class='h3'>{{t 'common.Worker'}}</h3>\n  \n                <div\n                  class='select-box-replacement timesheet__worker-date-row-input'\n                >\n                  {{#if this.selectedWorker}}\n                    <span data-test-worker>{{this.selectedWorker.fullName}}</span>\n                  {{else}}\n                    <span\n                      data-test-worker\n                      class='select-box-replacement__placeholder'\n                    >{{t 'shared.timesheet.Select a worker'}}</span>\n                  {{/if}}\n  \n                  <select\n                    class='select-box-replacement__select-box'\n                    oninput={{action (mut this.worker) value='target.value'}}\n                    data-test-worker-select\n                  >\n                    {{#unless this.selectedWorker}}\n                      <option selected>–</option>\n                    {{/unless}}\n  \n                    {{#each this.activeWorkers as |worker|}}\n                      <option\n                        value={{worker.id}}\n                        selected={{eq worker this.selectedWorker}}\n                      >{{worker.fullName}}</option>\n                    {{/each}}\n                  </select>\n                </div>\n              </div>\n  \n              <div class='timesheet__selectors-column'>\n                <h3 class='h3'>{{t 'common.Date'}}</h3>\n                <input\n                  class='form-control'\n                  type='date'\n                  value={{this.selectedDate}}\n                  {{on 'change' (fn (mut this.selectedDate))}}\n                  autocomplete='off'\n                />\n              </div>\n            </div>\n  \n            {{! (and '' '') doesn't work  }}\n            {{#if this.model.hasDateAndWorker}}\n              {{#if this.timesheetsByProject.projectMetas}}\n                <div class='timesheet__selectors-row'>\n                  <div class='timesheet__selectors-column'>\n                    <h4 class='h4'>{{if\n                        this.canCurrentlyBeForeman\n                        (t 'common.workerS')\n                        (t 'common.Daily')\n                      }}\n                      note</h4>\n                    <Textarea\n                      placeholder={{t\n                        'entity.builda-price.operations.incoming.timesheets.timesheet.workerSNotes'\n                      }}\n                      disabled={{not this.workerIsSelf}}\n                      @value={{this.model.note.body}}\n                      class='timesheet__notes-row-input text-input'\n                      data-test-note='note'\n                      rows={{4}}\n                    />\n                  </div>\n  \n                  {{#if this.canCurrentlyBeForeman}}\n                    <div class='timesheet__selectors-column'>\n                      <h4 class='h4'>{{t 'shared.timesheet.Admin note'}}</h4>\n                      <Textarea\n                        placeholder={{t\n                          'entity.builda-price.operations.incoming.timesheets.timesheet.adminSNotes'\n                        }}\n                        @value={{this.model.note.adminNote}}\n                        class='timesheet__notes-row-input text-input'\n                        data-test-note='note'\n                        rows={{4}}\n                      />\n                    </div>\n                  {{/if}}\n                </div>\n              {{/if}}\n            {{/if}}\n          </div>\n  \n          <div class='timesheet__detail'>\n            {{#if this.model.hasDateAndWorker}}\n              {{#each this.filteredProjectMetas as |group groupIndex|}}\n                <div\n                  class='timesheet__detail\n                    {{unless\n                      (or group.canBeForeman group.isSelf)\n                      \"timesheets-table__entry--disabled\"\n                    }}\n                    {{if\n                      (and\n                        (not group.canBeForeman)\n                        (eq group.timesheetStatus.status \"accepted\")\n                      )\n                      \"timesheets-table__entry--disabled\"\n                    }}'\n                >\n                  <div\n                    class='timesheet__title'\n                    data-test-timesheet-project={{group.project.id}}\n                  >\n                    <h3 class='h3'>{{group.project.name}}</h3>\n                    &nbsp; &nbsp;\n                    {{#if group.canBeForeman}}\n                      <SelectInput\n                        @class='select-box'\n                        @value={{or group.timesheetStatus.status 'pending'}}\n                        @action={{action 'changeStatus' group}}\n                        as |si|\n                      >\n                        {{#each this.statuses as |status|}}\n                          <si.option\n                            @value={{status.value}}\n                          >{{status.label}}</si.option>\n                        {{/each}}\n                      </SelectInput>\n                    {{else}}\n                      <div\n                        class='timesheets-table__entry-status\n                          {{if\n                            (eq group.timesheetStatus.status \"accepted\")\n                            \"timesheets-table__entry-status--accepted\"\n                          }}'\n                      >\n                        {{timesheet-status-label group.timesheetStatus.status}}\n                      </div>\n                    {{/if}}\n                  </div>\n  \n                  {{#if this.projectMeta.timesheetStatus.didEdit}}\n                    <div class='timesheets-table__card-note--edited'>\n                      <span><FaIcon @icon='exclamation-triangle' />\n                        {{t 'shared.timesheet.Edited by admin because'}}:</span>\n                      <br />\n                      {{or\n                        this.projectMeta.timesheetStatus.editNote\n                        (t 'shared.timesheet.No reason given')\n                      }}\n                    </div>\n                  {{/if}}\n  \n                  <table class='data-table timesheet__table'>\n                    <tbody>\n                      {{#each group.timesheets as |timesheet sheetIndex|}}\n                        {{#unless timesheet.isDeleted}}\n                          <TimesheetLinePm\n                            @deleteTimesheet={{action\n                              'deleteTimesheet'\n                              timesheet\n                            }}\n                            @setTask={{action 'setTask' timesheet}}\n                            @timesheet={{timesheet}}\n                            @group={{group}}\n                            @index={{concat groupIndex '-' sheetIndex}}\n                            @disabled={{or\n                              (and (not group.canBeForeman) (not group.isSelf))\n                              (and\n                                (not group.canBeForeman)\n                                (eq group.timesheetStatus.status 'accepted')\n                              )\n                            }}\n                          />\n                        {{/unless}}\n                      {{/each}}\n                    </tbody>\n                  </table>\n  \n                  {{#if\n                    (and\n                      group.hasTasksToSelect (or group.isSelf group.canBeForeman)\n                    )\n                  }}\n                    {{#unless\n                      (and\n                        (not group.canBeForeman)\n                        (eq group.timesheetStatus.status 'accepted')\n                      )\n                    }}\n                      <button\n                        class='button button--add center timesheet__button'\n                        data-test-add-cc={{group.project.id}}\n                        type='button'\n                        {{action 'addTask' group.project}}\n                      >\n                        {{t\n                          'entity.builda-price.operations.incoming.timesheets.timesheet.Add task for'\n                        }}\n                        {{group.project.name}}\n                      </button>\n                    {{/unless}}\n                  {{/if}}\n                </div>\n              {{/each}}\n  \n              {{#if this.remainingProjects.length}}\n                <div class='timesheet__add-project'>\n                  <span class='button button--add'>{{t\n                      'entity.builda-price.operations.incoming.timesheets.timesheet.Add a project'\n                    }}</span>\n  \n                  <div class='select-box-replacement__select-box'>\n                    <PowerSelect\n                      @tagName='div'\n                      @searchEnabled={{true}}\n                      @options={{this.remainingProjects}}\n                      @selected={{this.timesheet.task}}\n                      @searchField='name'\n                      @onChange={{action 'setNextProject'}}\n                      data-test-job-select\n                      as |project|\n                    >\n                      {{project.name}}\n                    </PowerSelect>\n                  </div>\n                </div>\n              {{/if}}\n            {{/if}}\n          </div>\n        {{/if}}\n      </div>\n  \n      <footer class='block-module__footer'>\n        <button\n          type='button'\n          class='button button--plain button--spaced'\n          {{action 'clear'}}\n        >\n          {{t 'common.Close'}}\n        </button>\n  \n        {{#if\n          (and\n            this.model.hasDateAndWorker\n            (or this.workerIsSelf this.canCurrentlyBeForeman)\n            this.timesheetsByProject.projectMetas.length\n          )\n        }}\n          <LoadingButton\n            @isLoading={{this.isSaving}}\n            @class='button button--spaced float-end'\n            @action={{action 'save'}}\n            data-test-save='save'\n          >\n            {{t 'common.Save'}}\n          </LoadingButton>\n        {{/if}}\n      </footer>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.showReasonDialog}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{action this.set 'showReasonDialog' false}}\n      @translucentOverlay={{true}}\n      @containerClass='block-module'\n    >\n      <div class='block-module__header'>\n        {{t\n          'entity.builda-price.operations.incoming.timesheets.timesheet.pleaseGiveAReasonForHavingEditedNameTimesheets'\n          name=this.selectedWorker.firstName\n        }}\n      </div>\n      {{#each this.timesheetsByProject.projectMetas as |projectMeta|}}\n        {{#if projectMeta.canBeForeman}}\n          {{projectMeta.project.name}}\n          <br />\n          <Textarea\n            class='timesheet__notes-row-input text-input'\n            @value={{projectMeta.timesheetStatus.editNote}}\n          />\n        {{/if}}\n      {{/each}}\n      <div class='block-module__footer'>\n        <LoadingButton\n          @class='button button--primary float-end'\n          @buttonText={{t 'common.Submit'}}\n          @action={{action 'save' true}}\n          @isLoading={{this.isSaving}}\n        />\n        <button\n          class='button button--secondary'\n          type='button'\n          {{action this.set 'showReasonDialog' false}}\n        >{{t 'common.Cancel'}}</button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"z1PhBjPq\",\n    \"block\": \"[[[41,[30,0,[\\\"date\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@onClose\\\",\\\"@overlayClass\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\"],[[28,[37,2],[[30,0],\\\"clear\\\"],null],\\\"modal\\\",true,\\\"block-module\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[1,\\\"    \\\"],[10,0],[14,0,\\\"timesheet\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"timesheet__placeholder\\\"],[12],[1,\\\"\\\\n          \\\"],[10,2],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,5],null,[[\\\"@type\\\"],[\\\"spinner\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"timesheet__selectors\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"timesheet__selectors-row\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"timesheet__selectors-column\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3\\\"],[12],[1,[28,[35,7],[\\\"common.Worker\\\"],null]],[13],[1,\\\"\\\\n\\\\n              \\\"],[10,0],[14,0,\\\"select-box-replacement timesheet__worker-date-row-input\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"selectedWorker\\\"]],[[[1,\\\"                  \\\"],[10,1],[14,\\\"data-test-worker\\\",\\\"\\\"],[12],[1,[30,0,[\\\"selectedWorker\\\",\\\"fullName\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[10,1],[14,\\\"data-test-worker\\\",\\\"\\\"],[14,0,\\\"select-box-replacement__placeholder\\\"],[12],[1,[28,[35,7],[\\\"shared.timesheet.Select a worker\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n                \\\"],[10,\\\"select\\\"],[14,0,\\\"select-box-replacement__select-box\\\"],[15,\\\"oninput\\\",[28,[37,2],[[30,0],[28,[37,10],[[30,0,[\\\"worker\\\"]]],null]],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[14,\\\"data-test-worker-select\\\",\\\"\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"selectedWorker\\\"]]],[[[1,\\\"                    \\\"],[10,\\\"option\\\"],[14,\\\"selected\\\",\\\"\\\"],[12],[1,\\\"–\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[42,[28,[37,14],[[28,[37,14],[[30,0,[\\\"activeWorkers\\\"]]],null]],null],null,[[[1,\\\"                    \\\"],[10,\\\"option\\\"],[15,2,[30,1,[\\\"id\\\"]]],[15,\\\"selected\\\",[28,[37,15],[[30,1],[30,0,[\\\"selectedWorker\\\"]]],null]],[12],[1,[30,1,[\\\"fullName\\\"]]],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[10,0],[14,0,\\\"timesheet__selectors-column\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3\\\"],[12],[1,[28,[35,7],[\\\"common.Date\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control\\\"],[16,2,[30,0,[\\\"selectedDate\\\"]]],[24,\\\"autocomplete\\\",\\\"off\\\"],[24,4,\\\"date\\\"],[4,[38,17],[\\\"change\\\",[28,[37,18],[[28,[37,10],[[30,0,[\\\"selectedDate\\\"]]],null]],null]],null],[12],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"hasDateAndWorker\\\"]],[[[41,[30,0,[\\\"timesheetsByProject\\\",\\\"projectMetas\\\"]],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"timesheet__selectors-row\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"timesheet__selectors-column\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"h4\\\"],[14,0,\\\"h4\\\"],[12],[1,[52,[30,0,[\\\"canCurrentlyBeForeman\\\"]],[28,[37,7],[\\\"common.workerS\\\"],null],[28,[37,7],[\\\"common.Daily\\\"],null]]],[1,\\\"\\\\n                    note\\\"],[13],[1,\\\"\\\\n                  \\\"],[8,[39,20],[[16,\\\"placeholder\\\",[28,[37,7],[\\\"entity.builda-price.operations.incoming.timesheets.timesheet.workerSNotes\\\"],null]],[16,\\\"disabled\\\",[28,[37,21],[[30,0,[\\\"workerIsSelf\\\"]]],null]],[24,0,\\\"timesheet__notes-row-input text-input\\\"],[24,\\\"data-test-note\\\",\\\"note\\\"],[16,\\\"rows\\\",4]],[[\\\"@value\\\"],[[30,0,[\\\"model\\\",\\\"note\\\",\\\"body\\\"]]]],null],[1,\\\"                \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"canCurrentlyBeForeman\\\"]],[[[1,\\\"                  \\\"],[10,0],[14,0,\\\"timesheet__selectors-column\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"h4\\\"],[14,0,\\\"h4\\\"],[12],[1,[28,[35,7],[\\\"shared.timesheet.Admin note\\\"],null]],[13],[1,\\\"\\\\n                    \\\"],[8,[39,20],[[16,\\\"placeholder\\\",[28,[37,7],[\\\"entity.builda-price.operations.incoming.timesheets.timesheet.adminSNotes\\\"],null]],[24,0,\\\"timesheet__notes-row-input text-input\\\"],[24,\\\"data-test-note\\\",\\\"note\\\"],[16,\\\"rows\\\",4]],[[\\\"@value\\\"],[[30,0,[\\\"model\\\",\\\"note\\\",\\\"adminNote\\\"]]]],null],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"timesheet__detail\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"hasDateAndWorker\\\"]],[[[42,[28,[37,14],[[28,[37,14],[[30,0,[\\\"filteredProjectMetas\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,0],[15,0,[29,[\\\"timesheet__detail\\\\n                  \\\",[52,[51,[28,[37,22],[[30,2,[\\\"canBeForeman\\\"]],[30,2,[\\\"isSelf\\\"]]],null]],\\\"timesheets-table__entry--disabled\\\"],\\\"\\\\n                  \\\",[52,[28,[37,23],[[28,[37,21],[[30,2,[\\\"canBeForeman\\\"]]],null],[28,[37,15],[[30,2,[\\\"timesheetStatus\\\",\\\"status\\\"]],\\\"accepted\\\"],null]],null],\\\"timesheets-table__entry--disabled\\\"]]]],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"timesheet__title\\\"],[15,\\\"data-test-timesheet-project\\\",[30,2,[\\\"project\\\",\\\"id\\\"]]],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3\\\"],[12],[1,[30,2,[\\\"project\\\",\\\"name\\\"]]],[13],[1,\\\"\\\\n                     \\\\n\\\"],[41,[30,2,[\\\"canBeForeman\\\"]],[[[1,\\\"                    \\\"],[8,[39,24],null,[[\\\"@class\\\",\\\"@value\\\",\\\"@action\\\"],[\\\"select-box\\\",[28,[37,22],[[30,2,[\\\"timesheetStatus\\\",\\\"status\\\"]],\\\"pending\\\"],null],[28,[37,2],[[30,0],\\\"changeStatus\\\",[30,2]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,14],[[28,[37,14],[[30,0,[\\\"statuses\\\"]]],null]],null],null,[[[1,\\\"                        \\\"],[8,[30,4,[\\\"option\\\"]],null,[[\\\"@value\\\"],[[30,5,[\\\"value\\\"]]]],[[\\\"default\\\"],[[[[1,[30,5,[\\\"label\\\"]]]],[]]]]],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"                    \\\"]],[4]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                    \\\"],[10,0],[15,0,[29,[\\\"timesheets-table__entry-status\\\\n                        \\\",[52,[28,[37,15],[[30,2,[\\\"timesheetStatus\\\",\\\"status\\\"]],\\\"accepted\\\"],null],\\\"timesheets-table__entry-status--accepted\\\"]]]],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,25],[[30,2,[\\\"timesheetStatus\\\",\\\"status\\\"]]],null]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"projectMeta\\\",\\\"timesheetStatus\\\",\\\"didEdit\\\"]],[[[1,\\\"                  \\\"],[10,0],[14,0,\\\"timesheets-table__card-note--edited\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,1],[12],[8,[39,26],null,[[\\\"@icon\\\"],[\\\"exclamation-triangle\\\"]],null],[1,\\\"\\\\n                      \\\"],[1,[28,[35,7],[\\\"shared.timesheet.Edited by admin because\\\"],null]],[1,\\\":\\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[1,[28,[35,22],[[30,0,[\\\"projectMeta\\\",\\\"timesheetStatus\\\",\\\"editNote\\\"]],[28,[37,7],[\\\"shared.timesheet.No reason given\\\"],null]],null]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n                \\\"],[10,\\\"table\\\"],[14,0,\\\"data-table timesheet__table\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,14],[[28,[37,14],[[30,2,[\\\"timesheets\\\"]]],null]],null],null,[[[41,[51,[30,6,[\\\"isDeleted\\\"]]],[[[1,\\\"                        \\\"],[8,[39,30],null,[[\\\"@deleteTimesheet\\\",\\\"@setTask\\\",\\\"@timesheet\\\",\\\"@group\\\",\\\"@index\\\",\\\"@disabled\\\"],[[28,[37,2],[[30,0],\\\"deleteTimesheet\\\",[30,6]],null],[28,[37,2],[[30,0],\\\"setTask\\\",[30,6]],null],[30,6],[30,2],[28,[37,31],[[30,3],\\\"-\\\",[30,7]],null],[28,[37,22],[[28,[37,23],[[28,[37,21],[[30,2,[\\\"canBeForeman\\\"]]],null],[28,[37,21],[[30,2,[\\\"isSelf\\\"]]],null]],null],[28,[37,23],[[28,[37,21],[[30,2,[\\\"canBeForeman\\\"]]],null],[28,[37,15],[[30,2,[\\\"timesheetStatus\\\",\\\"status\\\"]],\\\"accepted\\\"],null]],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[6,7]],null],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,23],[[30,2,[\\\"hasTasksToSelect\\\"]],[28,[37,22],[[30,2,[\\\"isSelf\\\"]],[30,2,[\\\"canBeForeman\\\"]]],null]],null],[[[41,[51,[28,[37,23],[[28,[37,21],[[30,2,[\\\"canBeForeman\\\"]]],null],[28,[37,15],[[30,2,[\\\"timesheetStatus\\\",\\\"status\\\"]],\\\"accepted\\\"],null]],null]],[[[1,\\\"                    \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add center timesheet__button\\\"],[16,\\\"data-test-add-cc\\\",[30,2,[\\\"project\\\",\\\"id\\\"]]],[24,4,\\\"button\\\"],[4,[38,2],[[30,0],\\\"addTask\\\",[30,2,[\\\"project\\\"]]],null],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,7],[\\\"entity.builda-price.operations.incoming.timesheets.timesheet.Add task for\\\"],null]],[1,\\\"\\\\n                      \\\"],[1,[30,2,[\\\"project\\\",\\\"name\\\"]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[2,3]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"remainingProjects\\\",\\\"length\\\"]],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"timesheet__add-project\\\"],[12],[1,\\\"\\\\n                \\\"],[10,1],[14,0,\\\"button button--add\\\"],[12],[1,[28,[35,7],[\\\"entity.builda-price.operations.incoming.timesheets.timesheet.Add a project\\\"],null]],[13],[1,\\\"\\\\n\\\\n                \\\"],[10,0],[14,0,\\\"select-box-replacement__select-box\\\"],[12],[1,\\\"\\\\n                  \\\"],[8,[39,33],[[24,\\\"data-test-job-select\\\",\\\"\\\"]],[[\\\"@tagName\\\",\\\"@searchEnabled\\\",\\\"@options\\\",\\\"@selected\\\",\\\"@searchField\\\",\\\"@onChange\\\"],[\\\"div\\\",true,[30,0,[\\\"remainingProjects\\\"]],[30,0,[\\\"timesheet\\\",\\\"task\\\"]],\\\"name\\\",[28,[37,2],[[30,0],\\\"setNextProject\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                    \\\"],[1,[30,8,[\\\"name\\\"]]],[1,\\\"\\\\n                  \\\"]],[8]]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--plain button--spaced\\\"],[24,4,\\\"button\\\"],[4,[38,2],[[30,0],\\\"clear\\\"],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,7],[\\\"common.Close\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,23],[[30,0,[\\\"model\\\",\\\"hasDateAndWorker\\\"]],[28,[37,22],[[30,0,[\\\"workerIsSelf\\\"]],[30,0,[\\\"canCurrentlyBeForeman\\\"]]],null],[30,0,[\\\"timesheetsByProject\\\",\\\"projectMetas\\\",\\\"length\\\"]]],null],[[[1,\\\"        \\\"],[8,[39,35],[[24,\\\"data-test-save\\\",\\\"save\\\"]],[[\\\"@isLoading\\\",\\\"@class\\\",\\\"@action\\\"],[[30,0,[\\\"isSaving\\\"]],\\\"button button--spaced float-end\\\",[28,[37,2],[[30,0],\\\"save\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,7],[\\\"common.Save\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showReasonDialog\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\"],[\\\"modal\\\",[28,[37,2],[[30,0],[30,0,[\\\"set\\\"]],\\\"showReasonDialog\\\",false],null],true,\\\"block-module\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"block-module__header\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,7],[\\\"entity.builda-price.operations.incoming.timesheets.timesheet.pleaseGiveAReasonForHavingEditedNameTimesheets\\\"],[[\\\"name\\\"],[[30,0,[\\\"selectedWorker\\\",\\\"firstName\\\"]]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,14],[[28,[37,14],[[30,0,[\\\"timesheetsByProject\\\",\\\"projectMetas\\\"]]],null]],null],null,[[[41,[30,9,[\\\"canBeForeman\\\"]],[[[1,\\\"        \\\"],[1,[30,9,[\\\"project\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[8,[39,20],[[24,0,\\\"timesheet__notes-row-input text-input\\\"]],[[\\\"@value\\\"],[[30,9,[\\\"timesheetStatus\\\",\\\"editNote\\\"]]]],null],[1,\\\"\\\"]],[]],null]],[9]],null],[1,\\\"    \\\"],[10,0],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,35],null,[[\\\"@class\\\",\\\"@buttonText\\\",\\\"@action\\\",\\\"@isLoading\\\"],[\\\"button button--primary float-end\\\",[28,[37,7],[\\\"common.Submit\\\"],null],[28,[37,2],[[30,0],\\\"save\\\",true],null],[30,0,[\\\"isSaving\\\"]]]],null],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--secondary\\\"],[24,4,\\\"button\\\"],[4,[38,2],[[30,0],[30,0,[\\\"set\\\"]],\\\"showReasonDialog\\\",false],null],[12],[1,[28,[35,7],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"worker\\\",\\\"group\\\",\\\"groupIndex\\\",\\\"si\\\",\\\"status\\\",\\\"timesheet\\\",\\\"sheetIndex\\\",\\\"project\\\",\\\"projectMeta\\\"],false,[\\\"if\\\",\\\"modal-dialog\\\",\\\"action\\\",\\\"div\\\",\\\"p\\\",\\\"loading-icon\\\",\\\"h3\\\",\\\"t\\\",\\\"span\\\",\\\"select\\\",\\\"mut\\\",\\\"unless\\\",\\\"option\\\",\\\"each\\\",\\\"-track-array\\\",\\\"eq\\\",\\\"input\\\",\\\"on\\\",\\\"fn\\\",\\\"h4\\\",\\\"textarea\\\",\\\"not\\\",\\\"or\\\",\\\"and\\\",\\\"select-input\\\",\\\"timesheet-status-label\\\",\\\"fa-icon\\\",\\\"br\\\",\\\"table\\\",\\\"tbody\\\",\\\"timesheet-line-pm\\\",\\\"concat\\\",\\\"button\\\",\\\"power-select\\\",\\\"footer\\\",\\\"loading-button\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/incoming/timesheets/timesheet.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/outgoing\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if (media 'isDesktop')}}\n    <ModuleNavigation::Operations::Outgoing />\n  \n    <main class='page__container-content gap-zendesk-support-widget'>\n      {{outlet}}\n    </main>\n  {{else}}\n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component 'mobile-title-bar/burger-button'}}\n    />\n  \n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t 'common.Dashboard')\n      }}\n    />\n  \n    <main class='page__container-content gap-zendesk-support-widget'>\n      {{outlet}}\n    </main>\n  {{/if}}\n  */\n  {\n    \"id\": \"5Toau6h8\",\n    \"block\": \"[[[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"  \\\"],[8,[39,2],null,null,null],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content gap-zendesk-support-widget\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,5],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[8,[39,6],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/burger-button\\\",0,null,null]]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,6],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,7],[\\\"common.Dashboard\\\"],null]]]]]],null],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content gap-zendesk-support-widget\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,5],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"media\\\",\\\"module-navigation/operations/outgoing\\\",\\\"main\\\",\\\"component\\\",\\\"-outlet\\\",\\\"to-elsewhere\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/outgoing.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/outgoing/invoices/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <article class='mx-4 mt-4'>\n      <header class='border-bottom mb-3 pb-2 d-flex align-items-center flex-wrap'>\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>{{t 'common.Invoices'}}</h2>\n        {{/if}}\n  \n        {{#if (includes-feature-flags 'canManageInvoices')}}\n          <button\n            type='button'\n            class='btn btn-secondary text-white text-nowrap m-1'\n            disabled={{this.isLoading}}\n            {{on 'click' (fn (mut this.showInvoicesUploader) true)}}\n          >\n            <FaIcon @icon='upload' />&nbsp;&nbsp;{{t\n              'entity.builda-price.operations.outgoing.invoices.Import invoices'\n            }}\n          </button>\n          <button\n            type='button'\n            class='btn btn-secondary text-white text-nowrap m-1'\n            disabled={{or this.isLoading this.downloadAsCSV.isRunning}}\n            {{on 'click' (fn (mut this.showDownloadCsvModal) true)}}\n            data-test-download-csv\n          >\n            {{t 'shared.report.Download as CSV'}}\n          </button>\n          <button\n            type='button'\n            class='btn btn-success text-white text-nowrap m-1'\n            {{on 'click' this.openNewInvoiceForm}}\n            disabled={{this.isLoading}}\n            data-test-add-new-invoice\n          >\n            <FaIcon @icon='plus' />&nbsp;&nbsp;\n            {{t 'common.New'}}\n          </button>\n        {{/if}}\n      </header>\n  \n      <div\n        class='d-flex align-items-center justify-content-end flex-wrap-reverse mb-2'\n      >\n        {{#if (and this.startDate this.endDate)}}\n          <PageFilters::Pill @onClose={{this.clearDateRange}}>\n            {{t 'common.Date range'}}:\n            {{moment-format this.startDate (t 'date.shortSlashDmy')}}\n            {{t 'common.to'}}\n            {{moment-format this.endDate (t 'date.shortSlashDmy')}}\n          </PageFilters::Pill>\n        {{/if}}\n        {{#if (not-eq this.invoiceType 'ALL')}}\n          <PageFilters::Pill @onClose={{fn (mut this.invoiceType) 'ALL'}}>\n            {{t 'common.Type'}}:\n            {{#if (eq this.invoiceType 'INVOICE')}}\n              {{t 'common.Invoice'}}\n            {{else}}\n              {{t 'common.Credit note'}}\n            {{/if}}\n          </PageFilters::Pill>\n        {{/if}}\n        {{#if (not-eq this.status 'ALL')}}\n          <PageFilters::Pill @onClose={{fn (mut this.status) 'ALL'}}>\n            {{t 'common.Status'}}:\n            {{#if (eq this.status 'DRAFT')}}\n              {{t 'common.Draft'}}\n            {{else if (eq this.status 'AWAITING_APPROVAL')}}\n              {{t 'common.Awaiting approval'}}\n            {{else if (eq this.status 'COMPLETED')}}\n              {{t 'common.Sent'}}\n            {{else if (eq this.status 'APPROVED')}}\n              {{t 'common.Approved'}}\n            {{/if}}\n          </PageFilters::Pill>\n        {{/if}}\n        {{#if this.contact}}\n          <PageFilters::Pill @onClose={{this.clearFilterContact}}>\n            {{t 'common.Contact'}}:\n            {{this.contact}}\n          </PageFilters::Pill>\n        {{/if}}\n  \n        <PageFilters class='m-1' @align='right' @disable={{this.isLoading}}>\n          <PageFilters::Item @label={{t 'common.Date range'}}>\n            <DateRangeSelector\n              @align='right'\n              @startDate={{this.jsStartDate}}\n              @endDate={{this.jsEndDate}}\n              @onApply={{this.setDateRange}}\n            />\n          </PageFilters::Item>\n  \n          <PageFilters::Item @label={{t 'common.Type'}}>\n            <SelectInput\n              class='select-box'\n              @action={{fn (mut this.invoiceType)}}\n              @value={{this.invoiceType}}\n              as |si|\n            >\n              <si.option @value='ALL'>{{t 'common.All'}}</si.option>\n              <si.option @value='INVOICE'>{{t 'common.Invoice'}}</si.option>\n              <si.option @value='CREDIT_NOTE'>{{t\n                  'common.Credit note'\n                }}</si.option>\n            </SelectInput>\n          </PageFilters::Item>\n  \n          <PageFilters::Item @label={{t 'common.Status'}}>\n            <SelectInput\n              class='select-box'\n              @action={{fn (mut this.status)}}\n              @value={{this.status}}\n              as |si|\n            >\n              <si.option @value='ALL'>{{t 'common.All'}}</si.option>\n              <si.option @value='DRAFT'>{{t 'common.Draft'}}</si.option>\n              <si.option @value='AWAITING_APPROVAL'>{{t\n                  'common.Awaiting approval'\n                }}</si.option>\n              <si.option @value='APPROVED'>{{t 'common.Approved'}}</si.option>\n              <si.option @value='COMPLETED'>{{t 'common.Completed'}}</si.option>\n            </SelectInput>\n          </PageFilters::Item>\n  \n          <PageFilters::Item @label={{t 'common.Contact'}}>\n            <SearchSelector\n              @onSelect={{this.setFilterContact}}\n              @onLoad={{this.loadContacts}}\n              @noDataMessage={{t 'common.Create a contact'}}\n              @noDataRoute='entity.settings.contacts.contact'\n              @showNoDataRouteWithResults={{true}}\n              @key='contact'\n              @optionKeys={{array 'name'}}\n              @model={{this.contactFilterModel}}\n            />\n          </PageFilters::Item>\n        </PageFilters>\n  \n        <Input\n          class='form-control m-1 w-auto'\n          placeholder={{t 'common.Search'}}\n          aria-label='Search…'\n          @type='search'\n          @value={{this.invoiceSearchTerm}}\n          disabled={{this.isLoading}}\n          {{on 'input' (perform this.onChangeInvoiceSearchTerm)}}\n          autofocus={{true}}\n          data-test-invoice-search\n        />\n      </div>\n  \n      {{#if this.isLoading}}\n        <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n      {{else}}\n        {{#if this.model.invoices.lastSuccessful.value.length}}\n          {{#if (media 'isDesktop')}}\n            <div class='px-3'>\n              <div class='row'>\n                <div\n                  class='col-3 fw-bold'\n                  role='button'\n                  {{on 'click' (fn this.sortColumn 'invoiceNumber')}}\n                >\n                  {{t 'common.Invoice number'}}\n                  {{#if this.invoiceNumberIconName}}\n                    <FaIcon @icon={{this.invoiceNumberIconName}} />\n                  {{/if}}\n                </div>\n                <div class='col-2 fw-bold'>{{t 'common.Contact'}}</div>\n                <div\n                  class='col-2 fw-bold'\n                  role='button'\n                  {{on 'click' (fn this.sortColumn 'issueDate')}}\n                >\n                  {{t 'common.Issue date'}}\n                  {{#if this.issueDateIconName}}\n                    <FaIcon @icon={{this.issueDateIconName}} />\n                  {{/if}}\n                </div>\n                <div\n                  class='col-2 fw-bold'\n                  role='button'\n                  {{on 'click' (fn this.sortColumn 'dateCreated')}}\n                >\n                  {{t 'common.Created date'}}\n                  {{#if this.dateCreatedIconName}}\n                    <FaIcon @icon={{this.dateCreatedIconName}} />\n                  {{/if}}\n                </div>\n                <div\n                  class='col-1 fw-bold text-center'\n                  role='button'\n                  {{on 'click' (fn this.sortColumn 'status')}}\n                >\n                  {{t 'common.Status'}}\n                  {{#if this.statusIconName}}\n                    <FaIcon @icon={{this.statusIconName}} />\n                  {{/if}}\n                </div>\n                <div class='col-1 fw-bold text-center'>\n                  {{t 'common.Total'}}\n                </div>\n                <div class='col-1 fw-bold'></div>\n              </div>\n            </div>\n          {{/if}}\n  \n          <InfinityScroll\n            @onLoadMore={{perform this.onLoadMoreInvoices}}\n            as |didInsert|\n          >\n            <div\n              class='overflow-auto'\n              style='height: calc(100vh - 320px);'\n              {{did-insert didInsert}}\n            >\n              {{#each this.model.invoices.lastSuccessful.value as |invoice|}}\n                <div class='py-2'>\n                  <LinkTo\n                    @route='entity.builda-price.operations.outgoing.invoices.invoice'\n                    @model={{invoice.id}}\n                    class='project-card__card card shadow-sm text-dark p-3'\n                    role='button'\n                    data-test-project={{invoice.id}}\n                  >\n                    <div class='row align-items-center'>\n                      <div\n                        class='col project-card__project-name fs-2 d-flex align-items-center'\n                        data-test-project-card-name\n                      >\n                        {{invoice.invoiceNumber}}\n                        {{#if (eq invoice.invoiceType 'CREDIT_NOTE')}}\n                          <span class='badge bg-info ms-1 fs-7'>\n                            {{invoice.typeLabel}}\n                          </span>\n                        {{/if}}\n                      </div>\n  \n                      {{#if (media 'isDesktop')}}\n                        <div class='col-2 fs-5'>\n                          {{#if invoice.toContact.name}}\n                            {{invoice.toContact.name}}\n                          {{else}}\n                            —\n                          {{/if}}\n                        </div>\n  \n                        <div class='col-2 fs-5'>\n                          {{#if invoice.issueDate}}\n                            {{moment-format\n                              invoice.issueDate\n                              (t 'date.shortWithWeekday')\n                            }}\n                          {{else}}\n                            —\n                          {{/if}}\n                        </div>\n  \n                        <div class='col-2 fs-5'>\n                          {{#if invoice.dateCreated}}\n                            {{moment-format\n                              invoice.dateCreated\n                              (t 'date.shortWithWeekday')\n                            }}\n                          {{else}}\n                            —\n                          {{/if}}\n                        </div>\n                      {{/if}}\n                      <div class='col-lg-1 col-3 d-flex justify-content-center'>\n                        <span\n                          class='badge rounded-pill fs-6 px-3 py-2\n                            {{if (eq invoice.status \"COMPLETED\") \"bg-success\"}}\n                            {{if (eq invoice.status \"DRAFT\") \"bg-secondary\"}}\n                            {{if\n                              (eq invoice.status \"AWAITING_APPROVAL\")\n                              \"bg-warning text-dark\"\n                            }}\n                            {{if (eq invoice.status \"APPROVED\") \"bg-info\"}}\n                            '\n                        >\n                          {{invoice.statusLabel}}\n                        </span>\n                      </div>\n                      <div class='col-lg-1 col fs-5 text-center text-nowrap'>\n                        {{number-format\n                          invoice.totalPrice\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </div>\n  \n                      <div\n                        class='col-1 d-flex align-items-center justify-content-end'\n                      >\n                        <FaIcon @icon='chevron-right' class='fs-2' />\n                      </div>\n                    </div>\n                  </LinkTo>\n                </div>\n              {{/each}}\n            </div>\n          </InfinityScroll>\n        {{else}}\n          <div class='error-page error-page--no-data'>\n            <h2 class='h2 error-page__icon'><FaIcon @icon='info-circle' /></h2>\n            <h3 class='h3 error-page__title'>{{t\n                'entity.builda-price.operations.outgoing.invoices.No invoices'\n              }}</h3>\n          </div>\n        {{/if}}\n      {{/if}}\n    </article>\n  {{/if}}\n  \n  {{#if this.invoiceChangeSet}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{this.onClose}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body'>\n        <form data-test-new-invoice-form>\n          <PtlInput\n            @type='select'\n            @required={{true}}\n            @label={{t 'common.Type'}}\n            @key='invoiceType'\n            @options={{this.invoiceTypes}}\n            @selectNoBlankOption={{true}}\n            @disabled={{this.onSaveInvoice.isRunning}}\n            @model={{this.invoiceChangeSet}}\n            @onChange={{this.onChangeInvoiceType}}\n            @forceValidationVisible={{gt this.onSaveInvoice.performCount 0}}\n          />\n          {{#if (eq this.invoiceChangeSet.invoiceType 'CREDIT_NOTE')}}\n            <div class='mb-3'>\n              <label class='mb-1'>\n                {{t\n                  'entity.builda-price.operations.outgoing.invoices.From Invoice number'\n                }}&nbsp;\n                <InfoPopup\n                  @class='ms-1'\n                  @text={{t\n                    'entity.builda-price.operations.outgoing.invoices.fromInvoiceInfo'\n                  }}\n                />\n              </label>\n  \n              <SearchSelector\n                @onSelect={{this.setReferencedInvoice}}\n                disabled={{or this.onSaveInvoice.isRunning}}\n                @onLoad={{this.loadCompletedInvoices}}\n                @noDataMessage={{t\n                  'entity.builda-price.operations.outgoing.invoices.No invoices'\n                }}\n                @key='referencedInvoice'\n                @optionKeys={{array 'invoiceNumber'}}\n                @model={{this.invoiceChangeSet}}\n                @forceValidationVisible={{gt this.onSaveInvoice.performCount 0}}\n              />\n            </div>\n          {{/if}}\n          <PtlInput\n            @type='text'\n            @required={{true}}\n            @label={{t 'common.Invoice number'}}\n            @key='invoiceNumber'\n            @model={{this.invoiceChangeSet}}\n            disabled={{or this.onSaveInvoice.isRunning}}\n            placeholder={{this.nextInvoiceNumber}}\n            @forceValidationVisible={{gt this.onSaveInvoice.performCount 0}}\n          />\n  \n          {{#if\n            (or\n              (not-eq this.invoiceChangeSet.invoiceType 'CREDIT_NOTE')\n              (and\n                (eq this.invoiceChangeSet.invoiceType 'CREDIT_NOTE')\n                (not this.invoiceChangeSet.referenceInvoiceNumber)\n              )\n            )\n          }}\n            <div class='mb-3'>\n              <label class='mb-1'>{{t 'common.Contact'}}\n                <sup class='text-danger'>*</sup>\n              </label>\n              <SearchSelector\n                @onSelect={{this.setToContact}}\n                @onLoad={{this.loadContacts}}\n                @noDataMessage={{t 'common.Create a contact'}}\n                @noDataRoute='entity.settings.contacts.contact'\n                @showNoDataRouteWithResults={{true}}\n                @key='toContact'\n                @optionKeys={{array 'name'}}\n                @model={{this.invoiceChangeSet}}\n                @disabled={{or this.onSaveInvoice.isRunning}}\n                @forceValidationVisible={{gt this.onSaveInvoice.performCount 0}}\n              />\n            </div>\n          {{/if}}\n  \n          <PtlInput\n            @type='date'\n            @label={{t 'common.Issue date'}}\n            @key='issueDate'\n            @model={{this.invoiceChangeSet}}\n            disabled={{or this.onSaveInvoice.isRunning}}\n            @forceValidationVisible={{gt this.onSaveInvoice.performCount 0}}\n          />\n  \n          {{#unless (eq this.invoiceChangeSet.invoiceType 'CREDIT_NOTE')}}\n            <PtlInput\n              @type='date'\n              @label={{t 'common.Due date'}}\n              @key='dueDate'\n              @model={{this.invoiceChangeSet}}\n              disabled={{or this.onSaveInvoice.isRunning}}\n              @forceValidationVisible={{gt this.onSaveInvoice.performCount 0}}\n            />\n          {{/unless}}\n        </form>\n      </div>\n      <div class='modal-footer d-flex'>\n        <div class='d-flex align-items-center'>\n          <button\n            type='button'\n            class='btn btn-secondary text-white ms-2'\n            data-test-new-invoice-close-button\n            disabled={{this.onSaveInvoice.isRunning}}\n            {{on 'click' this.onClose}}\n          >{{t 'common.Cancel'}}</button>\n          <button\n            type='button'\n            class='btn btn-primary ms-2'\n            disabled={{this.onSaveInvoice.isRunning}}\n            {{on 'click' (perform this.onSaveInvoice this.invoiceChangeSet)}}\n          >\n            {{#if this.onSaveInvoice.isRunning}}\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t 'common.Creating'}}&hellip;\n            {{else}}\n              {{t 'common.Create'}}\n            {{/if}}\n          </button>\n        </div>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.showDownloadCsvModal}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.showDownloadCsvModal) false}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body mt-2'>\n        <p>{{t\n            'entity.builda-price.operations.outgoing.invoices.downloadCSVMessage'\n          }}</p>\n  \n        <DateRangeSelector\n          @align='right'\n          @startDate={{this.jsExportFromDate}}\n          @endDate={{this.jsExportToDate}}\n          @onApply={{this.setExportDateRange}}\n        />\n      </div>\n  \n      <div class='modal-footer d-flex'>\n        <div class='d-flex align-items-center'>\n          <button\n            type='button'\n            class='btn btn-secondary text-white ms-2'\n            disabled={{this.downloadAsCSV.isRunning}}\n            {{on 'click' (fn (mut this.showDownloadCsvModal) false)}}\n          >{{t 'common.Cancel'}}</button>\n          <button\n            type='button'\n            class='btn btn-primary ms-2'\n            disabled={{this.downloadAsCSV.isRunning}}\n            {{on 'click' (perform this.downloadAsCSV)}}\n          >\n            {{#if this.downloadAsCSV.isRunning}}\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t 'common.Downloading'}}&hellip;\n            {{else}}\n              {{t 'common.Download'}}\n            {{/if}}\n          </button>\n        </div>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.showInvoicesUploader}}\n    <InvoicesUploader\n      @onUploadInvoices={{this.onUploadInvoiceCSV}}\n      @onClose={{fn (mut this.showInvoicesUploader) false}}\n    />\n  {{/if}}\n  */\n  {\n    \"id\": \"fUJ0jHj1\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 pb-2 d-flex align-items-center flex-wrap\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,[28,[35,6],[\\\"common.Invoices\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"canManageInvoices\\\"],null],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white text-nowrap m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[24,4,\\\"button\\\"],[4,[38,9],[\\\"click\\\",[28,[37,10],[[28,[37,11],[[30,0,[\\\"showInvoicesUploader\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[\\\"upload\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,6],[\\\"entity.builda-price.operations.outgoing.invoices.Import invoices\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white text-nowrap m-1\\\"],[16,\\\"disabled\\\",[28,[37,13],[[30,0,[\\\"isLoading\\\"]],[30,0,[\\\"downloadAsCSV\\\",\\\"isRunning\\\"]]],null]],[24,\\\"data-test-download-csv\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,9],[\\\"click\\\",[28,[37,10],[[28,[37,11],[[30,0,[\\\"showDownloadCsvModal\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"shared.report.Download as CSV\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[24,\\\"data-test-add-new-invoice\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,9],[\\\"click\\\",[30,0,[\\\"openNewInvoiceForm\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\\n          \\\"],[1,[28,[35,6],[\\\"common.New\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center justify-content-end flex-wrap-reverse mb-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,15],[[30,0,[\\\"startDate\\\"]],[30,0,[\\\"endDate\\\"]]],null],[[[1,\\\"        \\\"],[8,[39,16],null,[[\\\"@onClose\\\"],[[30,0,[\\\"clearDateRange\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"common.Date range\\\"],null]],[1,\\\":\\\\n          \\\"],[1,[28,[35,17],[[30,0,[\\\"startDate\\\"]],[28,[37,6],[\\\"date.shortSlashDmy\\\"],null]],null]],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"common.to\\\"],null]],[1,\\\"\\\\n          \\\"],[1,[28,[35,17],[[30,0,[\\\"endDate\\\"]],[28,[37,6],[\\\"date.shortSlashDmy\\\"],null]],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,18],[[30,0,[\\\"invoiceType\\\"]],\\\"ALL\\\"],null],[[[1,\\\"        \\\"],[8,[39,16],null,[[\\\"@onClose\\\"],[[28,[37,10],[[28,[37,11],[[30,0,[\\\"invoiceType\\\"]]],null],\\\"ALL\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"common.Type\\\"],null]],[1,\\\":\\\\n\\\"],[41,[28,[37,19],[[30,0,[\\\"invoiceType\\\"]],\\\"INVOICE\\\"],null],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"common.Invoice\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"common.Credit note\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,18],[[30,0,[\\\"status\\\"]],\\\"ALL\\\"],null],[[[1,\\\"        \\\"],[8,[39,16],null,[[\\\"@onClose\\\"],[[28,[37,10],[[28,[37,11],[[30,0,[\\\"status\\\"]]],null],\\\"ALL\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"common.Status\\\"],null]],[1,\\\":\\\\n\\\"],[41,[28,[37,19],[[30,0,[\\\"status\\\"]],\\\"DRAFT\\\"],null],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"common.Draft\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,19],[[30,0,[\\\"status\\\"]],\\\"AWAITING_APPROVAL\\\"],null],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"common.Awaiting approval\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,19],[[30,0,[\\\"status\\\"]],\\\"COMPLETED\\\"],null],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"common.Sent\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,19],[[30,0,[\\\"status\\\"]],\\\"APPROVED\\\"],null],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"common.Approved\\\"],null]],[1,\\\"\\\\n          \\\"]],[]],null]],[]]]],[]]]],[]]],[1,\\\"        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"contact\\\"]],[[[1,\\\"        \\\"],[8,[39,16],null,[[\\\"@onClose\\\"],[[30,0,[\\\"clearFilterContact\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"common.Contact\\\"],null]],[1,\\\":\\\\n          \\\"],[1,[30,0,[\\\"contact\\\"]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[8,[39,20],[[24,0,\\\"m-1\\\"]],[[\\\"@align\\\",\\\"@disable\\\"],[\\\"right\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[39,21],null,[[\\\"@label\\\"],[[28,[37,6],[\\\"common.Date range\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,22],null,[[\\\"@align\\\",\\\"@startDate\\\",\\\"@endDate\\\",\\\"@onApply\\\"],[\\\"right\\\",[30,0,[\\\"jsStartDate\\\"]],[30,0,[\\\"jsEndDate\\\"]],[30,0,[\\\"setDateRange\\\"]]]],null],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,21],null,[[\\\"@label\\\"],[[28,[37,6],[\\\"common.Type\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,23],[[24,0,\\\"select-box\\\"]],[[\\\"@action\\\",\\\"@value\\\"],[[28,[37,10],[[28,[37,11],[[30,0,[\\\"invoiceType\\\"]]],null]],null],[30,0,[\\\"invoiceType\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ALL\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.All\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"INVOICE\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.Invoice\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"CREDIT_NOTE\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.Credit note\\\"],null]]],[]]]]],[1,\\\"\\\\n          \\\"]],[1]]]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,21],null,[[\\\"@label\\\"],[[28,[37,6],[\\\"common.Status\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,23],[[24,0,\\\"select-box\\\"]],[[\\\"@action\\\",\\\"@value\\\"],[[28,[37,10],[[28,[37,11],[[30,0,[\\\"status\\\"]]],null]],null],[30,0,[\\\"status\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[30,2,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ALL\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.All\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,2,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"DRAFT\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.Draft\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,2,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"AWAITING_APPROVAL\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.Awaiting approval\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,2,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"APPROVED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.Approved\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,2,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"COMPLETED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.Completed\\\"],null]]],[]]]]],[1,\\\"\\\\n          \\\"]],[2]]]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,21],null,[[\\\"@label\\\"],[[28,[37,6],[\\\"common.Contact\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,24],null,[[\\\"@onSelect\\\",\\\"@onLoad\\\",\\\"@noDataMessage\\\",\\\"@noDataRoute\\\",\\\"@showNoDataRouteWithResults\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@model\\\"],[[30,0,[\\\"setFilterContact\\\"]],[30,0,[\\\"loadContacts\\\"]],[28,[37,6],[\\\"common.Create a contact\\\"],null],\\\"entity.settings.contacts.contact\\\",true,\\\"contact\\\",[28,[37,25],[\\\"name\\\"],null],[30,0,[\\\"contactFilterModel\\\"]]]],null],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,26],[[24,0,\\\"form-control m-1 w-auto\\\"],[16,\\\"placeholder\\\",[28,[37,6],[\\\"common.Search\\\"],null]],[24,\\\"aria-label\\\",\\\"Search…\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[16,\\\"autofocus\\\",true],[24,\\\"data-test-invoice-search\\\",\\\"\\\"],[4,[38,9],[\\\"input\\\",[28,[37,27],[[30,0,[\\\"onChangeInvoiceSearchTerm\\\"]]],null]],null]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"search\\\",[30,0,[\\\"invoiceSearchTerm\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"      \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"model\\\",\\\"invoices\\\",\\\"lastSuccessful\\\",\\\"value\\\",\\\"length\\\"]],[[[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"px-3\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n              \\\"],[11,0],[24,0,\\\"col-3 fw-bold\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,9],[\\\"click\\\",[28,[37,10],[[30,0,[\\\"sortColumn\\\"]],\\\"invoiceNumber\\\"],null]],null],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,6],[\\\"common.Invoice number\\\"],null]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"invoiceNumberIconName\\\"]],[[[1,\\\"                  \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[[30,0,[\\\"invoiceNumberIconName\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-2 fw-bold\\\"],[12],[1,[28,[35,6],[\\\"common.Contact\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[11,0],[24,0,\\\"col-2 fw-bold\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,9],[\\\"click\\\",[28,[37,10],[[30,0,[\\\"sortColumn\\\"]],\\\"issueDate\\\"],null]],null],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,6],[\\\"common.Issue date\\\"],null]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"issueDateIconName\\\"]],[[[1,\\\"                  \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[[30,0,[\\\"issueDateIconName\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n              \\\"],[11,0],[24,0,\\\"col-2 fw-bold\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,9],[\\\"click\\\",[28,[37,10],[[30,0,[\\\"sortColumn\\\"]],\\\"dateCreated\\\"],null]],null],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,6],[\\\"common.Created date\\\"],null]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"dateCreatedIconName\\\"]],[[[1,\\\"                  \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[[30,0,[\\\"dateCreatedIconName\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n              \\\"],[11,0],[24,0,\\\"col-1 fw-bold text-center\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,9],[\\\"click\\\",[28,[37,10],[[30,0,[\\\"sortColumn\\\"]],\\\"status\\\"],null]],null],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,6],[\\\"common.Status\\\"],null]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"statusIconName\\\"]],[[[1,\\\"                  \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[[30,0,[\\\"statusIconName\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-1 fw-bold text-center\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,6],[\\\"common.Total\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-1 fw-bold\\\"],[12],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n        \\\"],[8,[39,28],null,[[\\\"@onLoadMore\\\"],[[28,[37,27],[[30,0,[\\\"onLoadMoreInvoices\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,0],[24,0,\\\"overflow-auto\\\"],[24,5,\\\"height: calc(100vh - 320px);\\\"],[4,[38,29],[[30,3]],null],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,31],[[28,[37,31],[[30,0,[\\\"model\\\",\\\"invoices\\\",\\\"lastSuccessful\\\",\\\"value\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,0],[14,0,\\\"py-2\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,32],[[24,0,\\\"project-card__card card shadow-sm text-dark p-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[16,\\\"data-test-project\\\",[30,4,[\\\"id\\\"]]]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.builda-price.operations.outgoing.invoices.invoice\\\",[30,4,[\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"row align-items-center\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"col project-card__project-name fs-2 d-flex align-items-center\\\"],[14,\\\"data-test-project-card-name\\\",\\\"\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[30,4,[\\\"invoiceNumber\\\"]]],[1,\\\"\\\\n\\\"],[41,[28,[37,19],[[30,4,[\\\"invoiceType\\\"]],\\\"CREDIT_NOTE\\\"],null],[[[1,\\\"                        \\\"],[10,1],[14,0,\\\"badge bg-info ms-1 fs-7\\\"],[12],[1,\\\"\\\\n                          \\\"],[1,[30,4,[\\\"typeLabel\\\"]]],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"                      \\\"],[10,0],[14,0,\\\"col-2 fs-5\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,4,[\\\"toContact\\\",\\\"name\\\"]],[[[1,\\\"                          \\\"],[1,[30,4,[\\\"toContact\\\",\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                          —\\\\n\\\"]],[]]],[1,\\\"                      \\\"],[13],[1,\\\"\\\\n\\\\n                      \\\"],[10,0],[14,0,\\\"col-2 fs-5\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,4,[\\\"issueDate\\\"]],[[[1,\\\"                          \\\"],[1,[28,[35,17],[[30,4,[\\\"issueDate\\\"]],[28,[37,6],[\\\"date.shortWithWeekday\\\"],null]],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                          —\\\\n\\\"]],[]]],[1,\\\"                      \\\"],[13],[1,\\\"\\\\n\\\\n                      \\\"],[10,0],[14,0,\\\"col-2 fs-5\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,4,[\\\"dateCreated\\\"]],[[[1,\\\"                          \\\"],[1,[28,[35,17],[[30,4,[\\\"dateCreated\\\"]],[28,[37,6],[\\\"date.shortWithWeekday\\\"],null]],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                          —\\\\n\\\"]],[]]],[1,\\\"                      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                    \\\"],[10,0],[14,0,\\\"col-lg-1 col-3 d-flex justify-content-center\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,1],[15,0,[29,[\\\"badge rounded-pill fs-6 px-3 py-2\\\\n                          \\\",[52,[28,[37,19],[[30,4,[\\\"status\\\"]],\\\"COMPLETED\\\"],null],\\\"bg-success\\\"],\\\"\\\\n                          \\\",[52,[28,[37,19],[[30,4,[\\\"status\\\"]],\\\"DRAFT\\\"],null],\\\"bg-secondary\\\"],\\\"\\\\n                          \\\",[52,[28,[37,19],[[30,4,[\\\"status\\\"]],\\\"AWAITING_APPROVAL\\\"],null],\\\"bg-warning text-dark\\\"],\\\"\\\\n                          \\\",[52,[28,[37,19],[[30,4,[\\\"status\\\"]],\\\"APPROVED\\\"],null],\\\"bg-info\\\"],\\\"\\\\n                          \\\"]]],[12],[1,\\\"\\\\n                        \\\"],[1,[30,4,[\\\"statusLabel\\\"]]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"col-lg-1 col fs-5 text-center text-nowrap\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,34],[[30,4,[\\\"totalPrice\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\\n                    \\\"],[10,0],[14,0,\\\"col-1 d-flex align-items-center justify-content-end\\\"],[12],[1,\\\"\\\\n                      \\\"],[8,[39,12],[[24,0,\\\"fs-2\\\"]],[[\\\"@icon\\\"],[\\\"chevron-right\\\"]],null],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"]],[]]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"]],[3]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"error-page error-page--no-data\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2 error-page__icon\\\"],[12],[8,[39,12],null,[[\\\"@icon\\\"],[\\\"info-circle\\\"]],null],[13],[1,\\\"\\\\n          \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3 error-page__title\\\"],[12],[1,[28,[35,6],[\\\"entity.builda-price.operations.outgoing.invoices.No invoices\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"invoiceChangeSet\\\"]],[[[1,\\\"  \\\"],[8,[39,36],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[30,0,[\\\"onClose\\\"]],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"form\\\"],[14,\\\"data-test-new-invoice-form\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,38],null,[[\\\"@type\\\",\\\"@required\\\",\\\"@label\\\",\\\"@key\\\",\\\"@options\\\",\\\"@selectNoBlankOption\\\",\\\"@disabled\\\",\\\"@model\\\",\\\"@onChange\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",true,[28,[37,6],[\\\"common.Type\\\"],null],\\\"invoiceType\\\",[30,0,[\\\"invoiceTypes\\\"]],true,[30,0,[\\\"onSaveInvoice\\\",\\\"isRunning\\\"]],[30,0,[\\\"invoiceChangeSet\\\"]],[30,0,[\\\"onChangeInvoiceType\\\"]],[28,[37,39],[[30,0,[\\\"onSaveInvoice\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,19],[[30,0,[\\\"invoiceChangeSet\\\",\\\"invoiceType\\\"]],\\\"CREDIT_NOTE\\\"],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"entity.builda-price.operations.outgoing.invoices.From Invoice number\\\"],null]],[1,\\\" \\\\n              \\\"],[8,[39,41],null,[[\\\"@class\\\",\\\"@text\\\"],[\\\"ms-1\\\",[28,[37,6],[\\\"entity.builda-price.operations.outgoing.invoices.fromInvoiceInfo\\\"],null]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[8,[39,24],[[16,\\\"disabled\\\",[28,[37,13],[[30,0,[\\\"onSaveInvoice\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@onSelect\\\",\\\"@onLoad\\\",\\\"@noDataMessage\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[[30,0,[\\\"setReferencedInvoice\\\"]],[30,0,[\\\"loadCompletedInvoices\\\"]],[28,[37,6],[\\\"entity.builda-price.operations.outgoing.invoices.No invoices\\\"],null],\\\"referencedInvoice\\\",[28,[37,25],[\\\"invoiceNumber\\\"],null],[30,0,[\\\"invoiceChangeSet\\\"]],[28,[37,39],[[30,0,[\\\"onSaveInvoice\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[8,[39,38],[[16,\\\"disabled\\\",[28,[37,13],[[30,0,[\\\"onSaveInvoice\\\",\\\"isRunning\\\"]]],null]],[16,\\\"placeholder\\\",[30,0,[\\\"nextInvoiceNumber\\\"]]]],[[\\\"@type\\\",\\\"@required\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",true,[28,[37,6],[\\\"common.Invoice number\\\"],null],\\\"invoiceNumber\\\",[30,0,[\\\"invoiceChangeSet\\\"]],[28,[37,39],[[30,0,[\\\"onSaveInvoice\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,13],[[28,[37,18],[[30,0,[\\\"invoiceChangeSet\\\",\\\"invoiceType\\\"]],\\\"CREDIT_NOTE\\\"],null],[28,[37,15],[[28,[37,19],[[30,0,[\\\"invoiceChangeSet\\\",\\\"invoiceType\\\"]],\\\"CREDIT_NOTE\\\"],null],[28,[37,42],[[30,0,[\\\"invoiceChangeSet\\\",\\\"referenceInvoiceNumber\\\"]]],null]],null]],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,[28,[35,6],[\\\"common.Contact\\\"],null]],[1,\\\"\\\\n              \\\"],[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[8,[39,24],null,[[\\\"@onSelect\\\",\\\"@onLoad\\\",\\\"@noDataMessage\\\",\\\"@noDataRoute\\\",\\\"@showNoDataRouteWithResults\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@model\\\",\\\"@disabled\\\",\\\"@forceValidationVisible\\\"],[[30,0,[\\\"setToContact\\\"]],[30,0,[\\\"loadContacts\\\"]],[28,[37,6],[\\\"common.Create a contact\\\"],null],\\\"entity.settings.contacts.contact\\\",true,\\\"toContact\\\",[28,[37,25],[\\\"name\\\"],null],[30,0,[\\\"invoiceChangeSet\\\"]],[28,[37,13],[[30,0,[\\\"onSaveInvoice\\\",\\\"isRunning\\\"]]],null],[28,[37,39],[[30,0,[\\\"onSaveInvoice\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n        \\\"],[8,[39,38],[[16,\\\"disabled\\\",[28,[37,13],[[30,0,[\\\"onSaveInvoice\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"date\\\",[28,[37,6],[\\\"common.Issue date\\\"],null],\\\"issueDate\\\",[30,0,[\\\"invoiceChangeSet\\\"]],[28,[37,39],[[30,0,[\\\"onSaveInvoice\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[28,[37,19],[[30,0,[\\\"invoiceChangeSet\\\",\\\"invoiceType\\\"]],\\\"CREDIT_NOTE\\\"],null]],[[[1,\\\"          \\\"],[8,[39,38],[[16,\\\"disabled\\\",[28,[37,13],[[30,0,[\\\"onSaveInvoice\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"date\\\",[28,[37,6],[\\\"common.Due date\\\"],null],\\\"dueDate\\\",[30,0,[\\\"invoiceChangeSet\\\"]],[28,[37,39],[[30,0,[\\\"onSaveInvoice\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer d-flex\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[24,\\\"data-test-new-invoice-close-button\\\",\\\"\\\"],[16,\\\"disabled\\\",[30,0,[\\\"onSaveInvoice\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,9],[\\\"click\\\",[30,0,[\\\"onClose\\\"]]],null],[12],[1,[28,[35,6],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"onSaveInvoice\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,9],[\\\"click\\\",[28,[37,27],[[30,0,[\\\"onSaveInvoice\\\"]],[30,0,[\\\"invoiceChangeSet\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"onSaveInvoice\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,6],[\\\"common.Creating\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"common.Create\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showDownloadCsvModal\\\"]],[[[1,\\\"  \\\"],[8,[39,36],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[28,[37,10],[[28,[37,11],[[30,0,[\\\"showDownloadCsvModal\\\"]]],null],false],null],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body mt-2\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,[28,[35,6],[\\\"entity.builda-price.operations.outgoing.invoices.downloadCSVMessage\\\"],null]],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,22],null,[[\\\"@align\\\",\\\"@startDate\\\",\\\"@endDate\\\",\\\"@onApply\\\"],[\\\"right\\\",[30,0,[\\\"jsExportFromDate\\\"]],[30,0,[\\\"jsExportToDate\\\"]],[30,0,[\\\"setExportDateRange\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer d-flex\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsCSV\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,9],[\\\"click\\\",[28,[37,10],[[28,[37,11],[[30,0,[\\\"showDownloadCsvModal\\\"]]],null],false],null]],null],[12],[1,[28,[35,6],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsCSV\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,9],[\\\"click\\\",[28,[37,27],[[30,0,[\\\"downloadAsCSV\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCSV\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,6],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"common.Download\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showInvoicesUploader\\\"]],[[[1,\\\"  \\\"],[8,[39,46],null,[[\\\"@onUploadInvoices\\\",\\\"@onClose\\\"],[[30,0,[\\\"onUploadInvoiceCSV\\\"]],[28,[37,10],[[28,[37,11],[[30,0,[\\\"showInvoicesUploader\\\"]]],null],false],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"si\\\",\\\"si\\\",\\\"didInsert\\\",\\\"invoice\\\"],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"article\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"t\\\",\\\"includes-feature-flags\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"fa-icon\\\",\\\"or\\\",\\\"div\\\",\\\"and\\\",\\\"page-filters/pill\\\",\\\"moment-format\\\",\\\"not-eq\\\",\\\"eq\\\",\\\"page-filters\\\",\\\"page-filters/item\\\",\\\"date-range-selector\\\",\\\"select-input\\\",\\\"search-selector\\\",\\\"array\\\",\\\"input\\\",\\\"perform\\\",\\\"infinity-scroll\\\",\\\"did-insert\\\",\\\"each\\\",\\\"-track-array\\\",\\\"link-to\\\",\\\"span\\\",\\\"number-format\\\",\\\"h3\\\",\\\"modal-dialog\\\",\\\"form\\\",\\\"ptl-input\\\",\\\"gt\\\",\\\"label\\\",\\\"info-popup\\\",\\\"not\\\",\\\"sup\\\",\\\"unless\\\",\\\"p\\\",\\\"invoices-uploader\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/outgoing/invoices/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/outgoing/invoices/invoice\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title=(t 'common.Invoice')}}\n    />\n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component\n        'mobile-title-bar/back-button'\n        titleBarBack='entity.builda-price.operations.outgoing.invoices.index'\n      }}\n    />\n  {{/unless}}\n  \n  <article class='mx-4 mt-4'>\n    <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n    <header class='border-bottom mb-3 pb-2 d-flex align-items-center flex-wrap'>\n  \n      {{#unless this.isLoading}}\n  \n        <h2 class='flex-grow-1 m-0 my-2 d-flex align-items-center'>\n          {{this.model.invoice.last.value.typeLabel}}&nbsp;{{this.model.invoice.last.value.invoiceNumber}}\n          <span\n            class='badge ms-1 fs-7\n              {{if (eq this.status \"COMPLETED\") \"bg-success\"}}\n              {{if (eq this.status \"DRAFT\") \"bg-secondary\"}}\n              {{if (eq this.status \"AWAITING_APPROVAL\") \"bg-warning text-dark\"}}\n              {{if (eq this.status \"APPROVED\") \"bg-info\"}}\n              '\n          >\n            {{this.invoice.statusLabel}}\n          </span>\n        </h2>\n  \n        <LinkTo\n          @route='entity.builda-price.reports.company.notes'\n          @query={{hash invoiceId=this.model.invoice.last.value.id}}\n          class='btn btn-link p-0 m-1'\n        >View timesheet notes\n          <FaIcon class='ms-1' @icon='external-link-alt' />\n        </LinkTo>\n  \n        <button\n          type='button'\n          class='btn btn-link text-primary text-decoration-underline m-1'\n          {{on 'click' this.showConfigureBreakdownOptionsModalDialog}}\n        >\n          {{t\n            'entity.builda-price.operations.outgoing.invoices.invoice.Breakdown options'\n          }}\n        </button>\n  \n        {{#if (eq this.relatedDocuments.length 1)}}\n          <button\n            type='button'\n            class='btn btn-primary text-white m-1'\n            disabled={{this.isLoading}}\n            {{on\n              'click'\n              (perform\n                (get this.relatedDocuments '0.action')\n                (get this.relatedDocuments '0.id')\n              )\n            }}\n          >\n            {{get this.relatedDocuments '0.label'}}\n          </button>\n        {{else if (gt this.relatedDocuments.length 1)}}\n          <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n            <button type='button' class='btn btn-primary text-white m-1'>\n              {{this.relatedDocuments.length}}\n              {{t\n                'entity.builda-price.operations.outgoing.invoices.invoice.Related documents'\n              }}&nbsp;&nbsp;\n              <FaIcon @icon='caret-down' />\n            </button>\n            <po.Content>\n              {{#each this.relatedDocuments as |document|}}\n                <button\n                  type='button'\n                  class='dropdown-item text-nowrap fs-5'\n                  {{on 'click' (perform document.action document.id)}}\n                >\n                  {{document.label}}\n                </button>\n              {{/each}}\n            </po.Content>\n          </PopOver>\n        {{/if}}\n  \n        {{#if this.invoiceItems.length}}\n          {{#if this.accountingPlatform.isActive}}\n            {{#if\n              (or\n                (and\n                  (eq this.accountingPlatform.activePlatform 'xero')\n                  this.invoice.xeroInvoiceId\n                )\n                (and\n                  (eq this.accountingPlatform.activePlatform 'quickbooks')\n                  this.invoice.quickbooksInvoiceId\n                )\n              )\n            }}\n              <button\n                type='button'\n                class='btn btn-link text-primary text-decoration-underline m-1'\n                {{on 'click' (perform this.viewInAccountingPackage)}}\n                disabled={{this.viewInAccountingPackage.isRunning}}\n              >\n                {{#if this.viewInAccountingPackage.isRunning}}\n                  {{t 'common.Sending'}}&hellip;\n                {{else}}\n                  {{t\n                    'entity.builda-price.operations.outgoing.invoices.invoice.viewInLabel'\n                    label=this.accountingPlatform.label\n                  }}\n                  <FaIcon class='ms-1' @icon='external-link-alt' />\n                {{/if}}\n              </button>\n            {{/if}}\n  \n            {{!other accounting packages go here}}\n          {{/if}}\n  \n          {{#if\n            (and\n              this.invoiceActions.primaryAction\n              (not this.invoiceActions.secondaryActions.length)\n            )\n          }}\n            <button\n              type='button'\n              class='btn btn-primary text-white m-1'\n              disabled={{or this.isLoading this.isActionsRunning}}\n              {{on\n                'click'\n                (perform\n                  this.invoiceActions.primaryAction.action\n                  this.invoiceActions.primaryAction.targetStatus\n                )\n              }}\n            >\n              {{#if this.isActionsRunning}}\n                {{t 'common.Syncing'}}&hellip;\n              {{else}}\n                {{this.invoiceActions.primaryAction.name}}\n              {{/if}}\n            </button>\n          {{else if\n            (and\n              this.invoiceActions.primaryAction\n              this.invoiceActions.secondaryActions.length\n            )\n          }}\n            <div class='m-1 d-flex'>\n              <button\n                type='button'\n                class='btn btn-primary rounded-0 rounded-start text-white'\n                disabled={{or this.isLoading this.isActionsRunning}}\n                {{on\n                  'click'\n                  (perform\n                    this.invoiceActions.primaryAction.action\n                    this.invoiceActions.primaryAction.targetStatus\n                    this.invoiceActions.primaryAction.syncToAccountingPackage\n                  )\n                }}\n              >\n                {{#if this.isActionsRunning}}\n                  {{t 'common.Saving'}}&hellip;\n                {{else}}\n                  {{this.invoiceActions.primaryAction.name}}\n                {{/if}}\n              </button>\n  \n              <PopOver\n                @direction='bottom-left'\n                @disabled={{or this.isLoading this.isActionsRunning}}\n                as |po|\n              >\n                <button\n                  type='button'\n                  class='btn btn-primary rounded-0 rounded-end text-white'\n                  disabled={{or this.isLoading this.isActionsRunning}}\n                >\n                  <FaIcon @icon='caret-down' />\n                </button>\n                <po.Content>\n                  {{#each this.invoiceActions.secondaryActions as |action|}}\n                    <button\n                      type='button'\n                      class='dropdown-item text-nowrap fs-5'\n                      {{on\n                        'click'\n                        (perform\n                          action.action\n                          action.targetStatus\n                          action.syncToAccountingPackage\n                        )\n                      }}\n                      disabled={{action.action.isRunning}}\n                    >\n                      {{#if action.action.isRunning}}\n                        {{t 'common.Updating'}}&hellip;\n                      {{else}}\n                        {{action.name}}\n                      {{/if}}\n                    </button>\n                  {{/each}}\n                </po.Content>\n              </PopOver>\n            </div>\n          {{/if}}\n        {{/if}}\n  \n        {{#if this.canUseFileStorage}}\n          <AttachmentDropdownList\n            @buttonClass='btn btn-secondary text-white m-1'\n            @attachments={{this.model.invoice.last.value.myAttachments}}\n            @parent={{this.model.invoice.last.value}}\n            @onUploadComplete={{this.attachmentsUploadComplete}}\n            @onDownloadAttachment={{this.downloadAttachment}}\n            @onDeleteAttachment={{this.deleteAttachment}}\n            @isDragAndDropVisible={{this.canManageFileStorage}}\n          />\n        {{/if}}\n  \n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (fn this.setDownloadInvoice 'pdf')}}\n              disabled={{this.isDownloadingInvoice}}\n            >\n              {{#if this.isDownloadingInvoice}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.report.Download as PDF'}}\n              {{/if}}\n            </button>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (fn this.setDownloadInvoice 'csv')}}\n              disabled={{this.isDownloadingInvoice}}\n            >\n              {{#if this.isDownloadingInvoice}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.report.Download as CSV'}}\n              {{/if}}\n            </button>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (fn this.setDownloadInvoice 'excel')}}\n              disabled={{this.isDownloadingInvoice}}\n            >\n              {{#if this.isDownloadingInvoice}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.report.Download as Excel'}}\n              {{/if}}\n            </button>\n          </po.Content>\n        </PopOver>\n      {{/unless}}\n  \n    </header>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='d-flex flex-column border rounded mb-4'>\n        <div class='pt-3 px-3 flex-grow-1 d-flex align-items-center'>\n          <h4 class='m-0 p-0'>{{t 'common.Details'}}</h4>\n          <button\n            class='ms-auto btn btn-sm btn-primary\n              {{if\n                this.invoiceChangeSet.isInvalid\n                \"invoice__edit-button--warning\"\n              }}'\n            type='button'\n            {{on 'click' (fn (mut this.isEditingInvoice) true)}}\n            id={{this.invoiceEditButtonId}}\n          >\n            {{t 'common.Edit'}}&nbsp;\n            <FaIcon @icon='edit' />\n          </button>\n        </div>\n  \n        <div class='row m-0'>\n          <div class='col flex-column d-flex p-3'>\n            <h5 class='mb-1'>{{t 'common.Invoice number'}}</h5>\n            <p class='m-0'>\n              {{this.invoice.invoiceNumber}}\n            </p>\n          </div>\n          <div class='col flex-column d-flex p-3'>\n            <h5 class='mb-1'>{{t 'common.Contact'}}</h5>\n            <p class='m-0'>\n              {{#if (includes-feature-flags 'canUseSuppliers')}}\n                {{#if this.invoice.toContact.name}}\n                  <div\n                    role='button'\n                    {{on 'click' this.goToSupplier}}\n                    class='btn btn-link p-0'\n                  >\n                    {{this.invoice.toContact.name}}&nbsp;\n                    <FaIcon @icon='external-link-alt' />\n                  </div>\n                {{else}}\n                  &mdash;\n                {{/if}}\n              {{else}}\n                {{this.invoice.toContact.name}}\n              {{/if}}\n            </p>\n          </div>\n          <div class='col flex-column d-flex p-3'>\n            <h5 class='mb-1'>{{t 'common.Issue date'}}</h5>\n            <p class='m-0'>\n              {{#if this.invoice.issueDate}}\n                {{moment-format\n                  this.invoice.issueDate\n                  (t 'date.shortWithWeekday')\n                }}\n              {{else}}\n                &mdash;\n              {{/if}}\n            </p>\n          </div>\n          <div class='col flex-column d-flex p-3'>\n            <h5 class='mb-1'>{{t 'common.Due date'}}</h5>\n            <p class='m-0'>\n              {{#if this.invoice.dueDate}}\n                {{moment-format this.invoice.dueDate (t 'date.shortWithWeekday')}}\n              {{else}}\n                &mdash;\n              {{/if}}\n            </p>\n          </div>\n        </div>\n      </div>\n  \n      <div class='mb-2 d-flex justify-content-end align-items-center'>\n        {{#if this.canEdit}}\n          <div class='flex-grow-1'>\n            {{#if this.selectedItemIndexes.size}}\n              <button\n                class='btn btn-link text-danger text-decoration-underline'\n                type='button'\n                {{on 'click' (perform this.deleteInvoiceItems)}}\n                disabled={{not this.selectedItemIndexes.size}}\n              >\n                {{t\n                  'entity.builda-price.operations.outgoing.invoices.invoice.Delete items'\n                }}\n              </button>\n            {{/if}}\n          </div>\n          {{#if this.canAddItems}}\n            <button\n              type='button'\n              class='btn btn-success text-white text-nowrap'\n              disabled={{this.deleteInvoiceItems.isRunning}}\n              {{on 'click' this.addInvoiceItem}}\n            >\n              <FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Add'}}\n            </button>\n          {{/if}}\n        {{/if}}\n      </div>\n  \n      <div class='invoice__invoice-items-table-container'>\n        <PaginationTable\n          @tableHeader={{this.itemTableHeader}}\n          @tableData={{this.itemTableData}}\n          @noDataText={{t 'common.No items'}}\n          @isLoading={{this.model.invoiceItems.isRunning}}\n          @hidePagination={{true}}\n          @class='table-bordered\n            {{if this.invoiceTotalError \"invoice__invoice-items-table--invalid\"}}'\n          @validationMessage={{this.invoiceTotalError}}\n        />\n      </div>\n      <div class='invoice__footer mt-3'>\n        {{#if this.canManageOrApproveInvoice}}\n          <div class='d-flex align-items-center justify-content-between mt-3'>\n            <div>\n              {{#if\n                (and\n                  (eq this.status 'COMPLETED')\n                  (not-eq this.invoice.invoiceType 'CREDIT_NOTE')\n                  (not this.relatedDocuments.length)\n                )\n              }}\n                <button\n                  type='button'\n                  class='btn btn-link text-danger text-decoration-underline'\n                  disabled={{or\n                    this.saveInvoice.isRunning\n                    this.onDeleteInvoice.isRunning\n                  }}\n                  {{on 'click' (fn (mut this.isCreatingCreditNote) true)}}\n                >\n                  {{t\n                    'entity.builda-price.operations.outgoing.invoices.invoice.Create credit note'\n                  }}\n                </button>\n              {{else if (not-eq this.status 'COMPLETED')}}\n                <button\n                  type='button'\n                  class='btn btn-link text-danger text-decoration-underline'\n                  disabled={{or\n                    this.saveInvoice.isRunning\n                    this.onDeleteInvoice.isRunning\n                  }}\n                  {{on 'click' (fn (mut this.isDeletingInvoice) true)}}\n                >\n                  {{t\n                    'entity.builda-price.operations.outgoing.invoices.invoice.Delete invoice'\n                  }}\n                </button>\n              {{/if}}\n            </div>\n            {{#if this.totalFooter}}\n              {{#if this.totalFooter}}\n                <div class='my-2 text-end'>\n                  <div class='mb-1'>{{t 'common.Subtotal'}}:\n                    {{this.totalFooter.subtotal}}</div>\n                  <div class='mb-1'>{{t 'common.Tax'}}:\n                    {{this.totalFooter.tax}}</div>\n                  <div class='mb-1'>{{t 'common.Total'}}:\n                    {{this.totalFooter.total}}</div>\n                </div>\n              {{/if}}\n            {{/if}}\n          </div>\n        {{/if}}\n      </div>\n    {{/if}}\n  </article>\n  \n  {{#if this.isDeletingInvoice}}\n    <ModalDialog\n      @overlayClass='modal'\n      @containerClass='modal-content w-auto'\n      @onClose={{fn (mut this.isDeletingInvoice) false}}\n      @translucentOverlay={{true}}\n    >\n      <div\n        class='modal-content'\n        {{did-insert (perform this.validateInvoiceSafeToDelete)}}\n      >\n        {{#if this.validateInvoiceSafeToDelete.isRunning}}\n          <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n        {{else}}\n          <div class='modal-body'>\n            {{#unless this.validateInvoiceSafeToDelete.last.value}}\n              <div class='alert alert-warning pb-0 pt-0'>\n                <p>\n                  {{html-safe\n                    (t\n                      'entity.builda-price.operations.outgoing.invoices.invoice.deleteInvoiceCalculationDependencyWarning'\n                    )\n                  }}\n                </p>\n              </div>\n            {{/unless}}\n  \n            <p class='ms-1'>\n              {{t\n                'entity.builda-price.operations.outgoing.invoices.invoice.deleteInvoicePrompt'\n              }}\n            </p>\n          </div>\n  \n          <div class='modal-footer'>\n            <button\n              class='btn btn-danger text-white'\n              type='button'\n              disabled={{this.onDeleteInvoice.isRunning}}\n              {{on 'click' (perform this.onDeleteInvoice)}}\n            >\n              {{#if this.onDeleteInvoice.isRunning}}\n                {{t 'common.Deleting'}}&hellip;\n              {{else}}\n                {{t 'common.Delete'}}\n              {{/if}}\n            </button>\n            <button\n              class='btn btn-secondary text-white'\n              type='button'\n              disabled={{this.onDeleteInvoice.isRunning}}\n              {{on 'click' (fn (mut this.isDeletingInvoice) false)}}\n            >{{t 'common.Cancel'}}</button>\n          </div>\n        {{/if}}\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.isCreatingCreditNote}}\n    <ModalDialog\n      @overlayClass='modal'\n      @containerClass='modal-content w-auto'\n      @onClose={{fn (mut this.isCreatingCreditNote) false}}\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-content'>\n        <div class='modal-body'>\n          <p>\n            {{t\n              'entity.builda-price.operations.outgoing.invoices.invoice.createCreditNoteConfirmMessage'\n            }}\n          </p>\n        </div>\n        <div class='modal-footer'>\n          <button\n            class='btn btn-secondary text-white'\n            type='button'\n            disabled={{this.createCreditNote.isRunning}}\n            {{on 'click' (fn (mut this.isCreatingCreditNote) false)}}\n          >\n            {{t 'common.Cancel'}}\n          </button>\n          <button\n            class='btn btn-primary text-white'\n            type='button'\n            disabled={{this.createCreditNote.isRunning}}\n            {{on 'click' (perform this.createCreditNote)}}\n          >\n            {{#if this.createCreditNote.isRunning}}\n              {{t 'common.Creating'}}&hellip;\n            {{else}}\n              {{t 'common.Create'}}\n            {{/if}}\n          </button>\n        </div>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.isRevertCompletedToDraftInvoice}}\n    <ModalDialog\n      @overlayClass='modal'\n      @containerClass='modal-content w-auto'\n      @onClose={{fn (mut this.isRevertCompletedToDraftInvoice) false}}\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-content'>\n        <div class='modal-body'>\n          <p>\n            {{t\n              'entity.builda-price.operations.outgoing.invoices.invoice.revertDraftInvoicePrompt'\n            }}\n          </p>\n        </div>\n  \n        <div class='modal-footer'>\n          <button\n            class='btn btn-secondary text-white'\n            type='button'\n            disabled={{this.changeStatus.isRunning}}\n            {{on 'click' (fn (mut this.isRevertCompletedToDraftInvoice) false)}}\n          >\n            {{t 'common.Cancel'}}\n          </button>\n          <button\n            class='btn btn-danger text-white'\n            type='button'\n            disabled={{this.changeStatus.isRunning}}\n            {{on 'click' (perform this.changeStatus 'DRAFT' false)}}\n          >\n            {{#if this.changeStatus.isRunning}}\n              {{t 'common.Reverting'}}&hellip;\n            {{else}}\n              {{t 'common.Revert'}}\n            {{/if}}\n          </button>\n        </div>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.isEditingInvoice}}\n    <ModalDialog\n      @overlayClass='modal'\n      @containerClass='modal-content w-auto'\n      @onClose={{this.closeInvoiceEditModal}}\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-content'>\n        <div class='modal-body'>\n          <PtlInput\n            @type='text'\n            @label={{t 'common.Invoice number'}}\n            @key='invoiceNumber'\n            @required={{true}}\n            @model={{this.invoiceChangeSet}}\n            disabled={{or this.saveInvoice.isRunning (not this.canEdit)}}\n            @forceValidationVisible={{gt this.saveInvoice.performCount 0}}\n          />\n  \n          <div class='mb-2'>\n            <label class='mb-1'>\n              {{t 'common.Contact'}}\n              <sup class='text-danger'>*</sup>\n            </label>\n            <SearchSelector\n              @onSelect={{this.setToContact}}\n              @onLoad={{this.loadContacts}}\n              @noDataMessage={{t 'common.Create a contact'}}\n              @noDataRoute='entity.settings.contacts.contact'\n              @showNoDataRouteWithResults={{true}}\n              @key='toContact'\n              @optionKeys={{array 'name'}}\n              @model={{this.invoiceChangeSet}}\n              @forceValidationVisible={{gt this.saveInvoice.performCount 0}}\n              @disabled={{or this.saveInvoice.isRunning (not this.canEdit)}}\n            />\n            {{#if\n              (and\n                this.invoiceChangeSet.toContact\n                (includes-feature-flags 'canUseSuppliers')\n              )\n            }}\n              <div\n                role='button'\n                {{on 'click' this.goToSupplier}}\n                class='form-text link me-auto'\n              >\n                {{t\n                  'entity.builda-price.operations.outgoing.invoices.invoice.See details'\n                }}&nbsp;\n                <FaIcon @icon='external-link-alt' />\n              </div>\n            {{/if}}\n          </div>\n  \n          <PtlInput\n            @type='date'\n            @label={{t 'common.Issue date'}}\n            @key='issueDate'\n            @model={{this.invoiceChangeSet}}\n            disabled={{or this.saveInvoice.isRunning (not this.canEdit)}}\n            @forceValidationVisible={{gt this.saveInvoice.performCount 0}}\n          />\n  \n          <PtlInput\n            @type='date'\n            @label={{t 'common.Due date'}}\n            @key='dueDate'\n            @model={{this.invoiceChangeSet}}\n            @forceValidationVisible={{gt this.saveInvoice.performCount 0}}\n            disabled={{or this.saveInvoice.isRunning (not this.canEdit)}}\n          />\n        </div>\n  \n        <div class='modal-footer'>\n          <button\n            type='button'\n            class='btn btn-secondary'\n            {{on 'click' this.closeInvoiceEditModal}}\n            disabled={{this.saveInvoice.isRunning}}\n          >\n            {{t 'common.Close'}}\n          </button>\n  \n          {{#if this.canEdit}}\n            <button\n              type='button'\n              class='btn btn-primary'\n              disabled={{this.saveInvoice.isRunning}}\n              {{on 'click' (perform this.saveInvoice)}}\n            >\n              {{#if this.saveInvoice.isRunning}}\n                <span\n                  class='spinner-border spinner-border-sm'\n                ></span>&nbsp;&nbsp;{{t 'common.Saving'}}&hellip;\n              {{else}}\n                {{t 'common.Save'}}\n              {{/if}}\n            </button>\n          {{/if}}\n        </div>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.currentInvoiceItem}}\n    <InvoiceItemEditorModal\n      @headerText={{this.invoiceItemEditorHeader}}\n      @item={{this.currentInvoiceItem}}\n      @onClose={{this.closeInvoiceItemEditor}}\n      @onSave={{this.saveInvoiceItem}}\n      @onDelete={{this.deleteInvoiceItem}}\n      @editDisabled={{not this.canEdit}}\n      @allocationDisabled={{not this.canAllocate}}\n    />\n  {{/if}}\n  \n  {{#if this.downloadInvoice}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.downloadInvoice) null}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t\n            'entity.builda-price.operations.outgoing.invoices.invoice.reportExportOptionDescription'\n          }}\n        </p>\n        {{#each this.exportOptions as |option index|}}\n          <div class='form-check mb-1'>\n            <Input\n              @type='checkbox'\n              class='form-check-input'\n              name={{option.name}}\n              @checked={{option.value}}\n              id={{index}}\n            />\n            <label for={{index}}>{{option.name}}</label>\n          </div>\n        {{/each}}\n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' (fn (mut this.downloadInvoice) null)}}\n        >\n          {{t 'common.Cancel'}}\n        </button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          {{on 'click' this.downloadInvoice}}\n          disabled={{this.isDownloadingInvoice}}\n        >\n          {{#if this.isDownloadingInvoice}}\n            {{t 'common.Exporting'}}&hellip;\n          {{else}}\n            {{t 'common.Export'}}\n          {{/if}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.showConfigureBreakdownOptionsModal}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.showConfigureBreakdownOptionsModal) false}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-header'>\n        <h5 class='modal-title'>\n          {{t\n            'entity.builda-price.operations.outgoing.invoices.invoice.Breakdown options'\n          }}\n        </h5>\n      </div>\n  \n      <div\n        class='modal-body p-0 d-flex align-items-stretch justify-content-center invoice__break-down-options-modal-body'\n      >\n        {{#if this.initInvoiceBreakdown.isRunning}}\n          <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n        {{else}}\n          <div class='overflow-auto p-3 border-right' style='min-width: 380px;'>\n            {{#if\n              (and\n                this.canManageOrApproveInvoice\n                this.hasCompanyBreakdownOptionChanges\n              )\n            }}\n              <button\n                type='button'\n                class='btn btn-link text-decoration-underline ps-0 mb-2'\n                disabled={{or\n                  this.saveBreakdownOptions.isRunning\n                  this.saveBreakdownOptionsAsCompanyDefault.isRunning\n                }}\n                {{on 'click' (perform this.saveBreakdownOptionsAsCompanyDefault)}}\n              >\n                {{#if this.saveBreakdownOptionsAsCompanyDefault.isRunning}}\n                  {{t 'common.Saving'}}&hellip;\n                {{else}}\n                  {{t\n                    'entity.builda-price.operations.outgoing.invoices.invoice.Save as company default?'\n                  }}\n                {{/if}}\n              </button>\n            {{/if}}\n            <PtlInput\n              @type='textarea'\n              @label={{t\n                'entity.builda-price.operations.outgoing.invoices.invoice.Additional notes'\n              }}\n              @key='breakdownNotes'\n              @model={{this.invoiceBreakdownOptions}}\n              {{on 'blur' (perform this.getInvoiceBreakdownHtml)}}\n              disabled={{or\n                this.saveBreakdownOptions.isRunning\n                (not this.canManageOrApproveInvoice)\n              }}\n            />\n  \n            <PtlInput\n              @containerClass='form-check mb-2'\n              @type='checkbox'\n              @label={{t\n                'entity.builda-price.operations.outgoing.invoices.invoice.Include billable'\n              }}\n              @key='includeBillable'\n              @model={{this.invoiceBreakdownOptions}}\n              @description={{t\n                'entity.builda-price.operations.outgoing.invoices.invoice.includeBillableDescription'\n              }}\n              disabled={{or\n                this.saveBreakdownOptions.isRunning\n                (not this.canManageOrApproveInvoice)\n              }}\n              {{on 'change' this.onChangeBreakdownOptionCheckbox}}\n            />\n            <PtlInput\n              @containerClass='form-check mb-2'\n              @type='checkbox'\n              @label={{t\n                'entity.builda-price.operations.outgoing.invoices.invoice.Include previously invoiced'\n              }}\n              @key='includeInvoiced'\n              @model={{this.invoiceBreakdownOptions}}\n              @description={{t\n                'entity.builda-price.operations.outgoing.invoices.invoice.includeInvoicedDescription'\n              }}\n              disabled={{or\n                this.saveBreakdownOptions.isRunning\n                (not this.canManageOrApproveInvoice)\n              }}\n              {{on 'change' this.onChangeBreakdownOptionCheckbox}}\n            />\n            <label class='mb-1'>\n              {{t\n                'entity.builda-price.operations.outgoing.invoices.invoice.First group by'\n              }}\n            </label>\n            <div class='d-flex align-items-center gap-3 ms-1'>\n              <PtlInput\n                @type='radio'\n                @key='firstGroupBy'\n                @id='groupByTask'\n                @model={{this.invoiceBreakdownOptions}}\n                @label={{t 'common.Task'}}\n                @value='TASK'\n                disabled={{or\n                  this.saveBreakdownOptions.isRunning\n                  (not this.canManageOrApproveInvoice)\n                }}\n                {{on 'change' this.onChangeFirstGroupBy}}\n              />\n              <PtlInput\n                @type='radio'\n                @key='firstGroupBy'\n                @id='groupByAllocationType'\n                @model={{this.invoiceBreakdownOptions}}\n                @label={{t 'common.Allocation type'}}\n                @value='ALLOCATION_TYPE'\n                disabled={{or\n                  this.saveBreakdownOptions.isRunning\n                  (not this.canManageOrApproveInvoice)\n                }}\n                {{on 'change' this.onChangeFirstGroupBy}}\n              />\n            </div>\n  \n            <label class='mb-1'>\n              {{t\n                'entity.builda-price.operations.outgoing.invoices.invoice.Labour bills'\n              }}\n            </label>\n            <div class='d-flex align-items-center gap-3 ms-1'>\n              <PtlInput\n                @type='radio'\n                @key='labourDetail'\n                @id='labourSection'\n                @model={{this.invoiceBreakdownOptions}}\n                disabled={{or\n                  this.saveBreakdownOptions.isRunning\n                  (not this.canManageOrApproveInvoice)\n                }}\n                {{on 'change' (perform this.getInvoiceBreakdownHtml)}}\n                @label={{t\n                  'entity.builda-price.operations.outgoing.invoices.invoice.Total only'\n                }}\n                @value='TOTAL'\n                @containerClass='mb-1'\n              />\n              <PtlInput\n                @type='radio'\n                @key='labourDetail'\n                @id='labourBill'\n                @model={{this.invoiceBreakdownOptions}}\n                disabled={{or\n                  this.saveBreakdownOptions.isRunning\n                  (not this.canManageOrApproveInvoice)\n                }}\n                {{on 'change' (perform this.getInvoiceBreakdownHtml)}}\n                @label={{t 'common.Bill'}}\n                @value='BILL'\n                @containerClass='mb-1'\n              />\n              <PtlInput\n                @type='radio'\n                @key='labourDetail'\n                @id='labourItem'\n                @model={{this.invoiceBreakdownOptions}}\n                disabled={{or\n                  this.saveBreakdownOptions.isRunning\n                  (not this.canManageOrApproveInvoice)\n                }}\n                {{on 'change' (perform this.getInvoiceBreakdownHtml)}}\n                @label={{t\n                  'entity.builda-price.operations.outgoing.invoices.invoice.Bill item'\n                }}\n                @value='BILL_ITEM'\n                @containerClass='mb-1'\n              />\n            </div>\n            <div class='ms-1'>\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'entity.builda-price.operations.outgoing.invoices.invoice.Show cost margin'\n                }}\n                @key='includeLabourBillsProfitMargins'\n                @model={{this.invoiceBreakdownOptions}}\n                @description={{t\n                  'entity.builda-price.operations.outgoing.invoices.invoice.includeProfitMarginsDescription'\n                }}\n                disabled={{or\n                  this.saveBreakdownOptions.isRunning\n                  (not this.canManageOrApproveInvoice)\n                }}\n                {{on 'change' this.onChangeBreakdownOptionCheckbox}}\n              />\n            </div>\n  \n            <label class='mb-1'>\n              {{t 'common.Timesheets'}}\n            </label>\n            <div class='ms-1 mb-1'>\n              <GroupingSelector\n                @groups={{this.timesheetGroupingOptions}}\n                @value={{this.invoiceBreakdownOptions.timesheetDetails}}\n                @onChange={{pipe\n                  (fn (mut this.invoiceBreakdownOptions.timesheetDetails))\n                  (perform this.getInvoiceBreakdownHtml)\n                }}\n                as |gs|\n              >\n                {{#each gs.axes as |axis i|}}\n                  <label class='pdf-export-options__grouping-label'>\n                    {{#if (eq i 0)}}\n                      {{t 'shared.report-builder.First break down by'}}…\n                    {{else}}\n                      …{{t 'shared.report-builder.and then by'}}…\n                    {{/if}}\n                  </label>\n  \n                  <select\n                    class='pdf-export-options__grouping-control'\n                    {{on 'change' (action axis.update value='target.value')}}\n                    disabled={{or\n                      this.saveBreakdownOptions.isRunning\n                      (not this.canManageOrApproveInvoice)\n                    }}\n                  >\n                    {{#each axis.options as |opt|}}\n                      <option value={{opt.key}} selected={{opt.isSelected}}>\n                        {{opt.name}}\n                      </option>\n                    {{/each}}\n                  </select>\n                  <br />\n                {{/each}}\n              </GroupingSelector>\n            </div>\n  \n            {{#if\n              this.sessionData.entity.effectiveProfitMargin.additionalLabourMargin.value\n            }}\n              <div class='ms-1'>\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'entity.builda-price.operations.outgoing.invoices.invoice.Additional margin'\n                  }}\n                  @key='includeTimesheetsProfitMargins'\n                  @model={{this.invoiceBreakdownOptions}}\n                  @description={{t\n                    'entity.builda-price.operations.outgoing.invoices.invoice.includeTimesheetsProfitMarginsDescription'\n                  }}\n                  disabled={{or\n                    this.saveBreakdownOptions.isRunning\n                    (not this.canManageOrApproveInvoice)\n                  }}\n                  {{on\n                    'change'\n                    (fn\n                      this.onToggleTimesheetMargin\n                      'includeTimesheetsProfitMargins'\n                      'includeTimesheetsCostMargins'\n                    )\n                  }}\n                />\n              </div>\n            {{/if}}\n  \n            <div class='ms-1'>\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'entity.builda-price.operations.outgoing.invoices.invoice.Show cost margin'\n                }}\n                @key='includeTimesheetsCostMargins'\n                @model={{this.invoiceBreakdownOptions}}\n                @description={{t\n                  'entity.builda-price.operations.outgoing.invoices.invoice.includeTimesheetsCostMarginsDescription'\n                }}\n                disabled={{or\n                  this.saveBreakdownOptions.isRunning\n                  (not this.canManageOrApproveInvoice)\n                }}\n                {{on\n                  'change'\n                  (fn\n                    this.onToggleTimesheetMargin\n                    'includeTimesheetsCostMargins'\n                    'includeTimesheetsProfitMargins'\n                  )\n                }}\n              />\n            </div>\n  \n            <label class='mb-1'>\n              {{t\n                'entity.builda-price.operations.outgoing.invoices.invoice.Material bills'\n              }}\n            </label>\n            <div class='d-flex align-items-center gap-3 ms-1'>\n              <PtlInput\n                @type='radio'\n                @key='materialsDetail'\n                @id='materialsSection'\n                @model={{this.invoiceBreakdownOptions}}\n                @label={{t\n                  'entity.builda-price.operations.outgoing.invoices.invoice.Total only'\n                }}\n                @value='TOTAL'\n                disabled={{or\n                  this.saveBreakdownOptions.isRunning\n                  (not this.canManageOrApproveInvoice)\n                }}\n                {{on 'change' (perform this.getInvoiceBreakdownHtml)}}\n                @containerClass='mb-1'\n              />\n              <PtlInput\n                @type='radio'\n                @key='materialsDetail'\n                @id='materialsBill'\n                @model={{this.invoiceBreakdownOptions}}\n                @label={{t 'common.Bill'}}\n                @value='BILL'\n                disabled={{or\n                  this.saveBreakdownOptions.isRunning\n                  (not this.canManageOrApproveInvoice)\n                }}\n                {{on 'change' (perform this.getInvoiceBreakdownHtml)}}\n                @containerClass='mb-1'\n              />\n              <PtlInput\n                @type='radio'\n                @key='materialsDetail'\n                @id='materialsItem'\n                @model={{this.invoiceBreakdownOptions}}\n                @label={{t\n                  'entity.builda-price.operations.outgoing.invoices.invoice.Bill item'\n                }}\n                @value='BILL_ITEM'\n                disabled={{or\n                  this.saveBreakdownOptions.isRunning\n                  (not this.canManageOrApproveInvoice)\n                }}\n                {{on 'change' (perform this.getInvoiceBreakdownHtml)}}\n                @containerClass='mb-1'\n              />\n            </div>\n  \n            <div class='ms-1'>\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'entity.builda-price.operations.outgoing.invoices.invoice.Show cost margin'\n                }}\n                @key='includeMaterialBillsProfitMargins'\n                @model={{this.invoiceBreakdownOptions}}\n                @description={{t\n                  'entity.builda-price.operations.outgoing.invoices.invoice.includeProfitMarginsDescription'\n                }}\n                disabled={{or\n                  this.saveBreakdownOptions.isRunning\n                  (not this.canManageOrApproveInvoice)\n                }}\n                {{on 'change' this.onChangeBreakdownOptionCheckbox}}\n              />\n            </div>\n  \n            <label class='mb-1'>\n              {{t\n                'entity.builda-price.operations.outgoing.invoices.invoice.Subcontractor bills'\n              }}\n            </label>\n            <div class='d-flex align-items-center gap-3 ms-1'>\n              <PtlInput\n                @type='radio'\n                @key='subcontractorsDetail'\n                @id='subcontractorsSection'\n                @model={{this.invoiceBreakdownOptions}}\n                disabled={{or\n                  this.saveBreakdownOptions.isRunning\n                  (not this.canManageOrApproveInvoice)\n                }}\n                {{on 'change' (perform this.getInvoiceBreakdownHtml)}}\n                @label={{t\n                  'entity.builda-price.operations.outgoing.invoices.invoice.Total only'\n                }}\n                @value='TOTAL'\n                @containerClass='mb-1'\n              />\n              <PtlInput\n                @type='radio'\n                @key='subcontractorsDetail'\n                @id='subcontractorsBill'\n                @model={{this.invoiceBreakdownOptions}}\n                disabled={{or\n                  this.saveBreakdownOptions.isRunning\n                  (not this.canManageOrApproveInvoice)\n                }}\n                {{on 'change' (perform this.getInvoiceBreakdownHtml)}}\n                @label={{t 'common.Bill'}}\n                @value='BILL'\n                @containerClass='mb-1'\n              />\n              <PtlInput\n                @type='radio'\n                @key='subcontractorsDetail'\n                @id='subcontractorsItem'\n                @model={{this.invoiceBreakdownOptions}}\n                disabled={{or\n                  this.saveBreakdownOptions.isRunning\n                  (not this.canManageOrApproveInvoice)\n                }}\n                {{on 'change' (perform this.getInvoiceBreakdownHtml)}}\n                @label={{t\n                  'entity.builda-price.operations.outgoing.invoices.invoice.Bill item'\n                }}\n                @value='BILL_ITEM'\n                @containerClass='mb-1'\n              />\n            </div>\n  \n            <div class='ms-1'>\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'entity.builda-price.operations.outgoing.invoices.invoice.Show cost margin'\n                }}\n                @key='includeSubcontractorBillsProfitMargins'\n                @model={{this.invoiceBreakdownOptions}}\n                @description={{t\n                  'entity.builda-price.operations.outgoing.invoices.invoice.includeProfitMarginsDescription'\n                }}\n                disabled={{or\n                  this.saveBreakdownOptions.isRunning\n                  (not this.canManageOrApproveInvoice)\n                }}\n                {{on 'change' this.onChangeBreakdownOptionCheckbox}}\n              />\n            </div>\n  \n          </div>\n  \n          <div class='d-flex flex-column p-3'>\n            <div class='mb-2 d-flex align-items-center'>\n              <h5 class='mb-0'>{{t 'common.Preview'}}</h5>\n              {{#if this.invoiceItems.length}}\n                <span class='badge bg-success ms-2'>{{t 'common.LIVE'}}</span>\n                <span class='text-muted small ms-2'>\n                  {{t\n                    'entity.builda-price.operations.outgoing.invoices.invoice.layoutMayDifferSlightlyFromPDFVersion'\n                  }}\n                </span>\n              {{/if}}\n            </div>\n  \n            {{#if this.invoiceItems.length}}\n              <iframe\n                title='Live preview'\n                srcdoc={{this.getInvoiceBreakdownHtml.lastSuccessful.value}}\n                class='flex-grow-1 p-3 rounded border invoice__break-down-options-modal-document-width'\n              ></iframe>\n            {{else}}\n              <div\n                class='flex-grow-1 d-flex align-items-center justify-content-center'\n              >\n                <p class='text-muted'>\n                  {{t\n                    'entity.builda-price.operations.outgoing.invoices.invoice.noInvoiceItemInBreakdown'\n                  }}\n                </p>\n              </div>\n            {{/if}}\n          </div>\n        {{/if}}\n      </div>\n  \n      <div class='modal-footer'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' (fn (mut this.showConfigureBreakdownOptionsModal) false)}}\n        >\n          {{t 'common.Cancel'}}\n        </button>\n        {{#if this.canManageOrApproveInvoice}}\n          <button\n            type='button'\n            class='btn btn-primary'\n            disabled={{or\n              this.saveBreakdownOptions.isRunning\n              this.saveBreakdownOptionsAsCompanyDefault.isRunning\n            }}\n            {{on 'click' (perform this.saveBreakdownOptions)}}\n          >\n            {{#if this.saveBreakdownOptions.isRunning}}\n              <span class='spinner-border spinner-border-sm'></span>\n              &nbsp;&nbsp;{{t 'common.Saving'}}&hellip;\n            {{else}}\n              {{t\n                'entity.builda-price.operations.outgoing.invoices.invoice.Save options'\n              }}\n            {{/if}}\n          </button>\n        {{/if}}\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"2vCrElAB\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"common.Invoice\\\"],null]]]]]],null],[1,\\\"\\\\n  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/back-button\\\",0,null,[[\\\"titleBarBack\\\"],[\\\"entity.builda-price.operations.outgoing.invoices.index\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4\\\"],[12],[1,\\\"\\\\n  \\\"],[8,[39,6],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 pb-2 d-flex align-items-center flex-wrap\\\"],[12],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"isLoading\\\"]]],[[[1,\\\"\\\\n      \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"last\\\",\\\"value\\\",\\\"typeLabel\\\"]]],[1,\\\" \\\"],[1,[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"last\\\",\\\"value\\\",\\\"invoiceNumber\\\"]]],[1,\\\"\\\\n        \\\"],[10,1],[15,0,[29,[\\\"badge ms-1 fs-7\\\\n            \\\",[52,[28,[37,11],[[30,0,[\\\"status\\\"]],\\\"COMPLETED\\\"],null],\\\"bg-success\\\"],\\\"\\\\n            \\\",[52,[28,[37,11],[[30,0,[\\\"status\\\"]],\\\"DRAFT\\\"],null],\\\"bg-secondary\\\"],\\\"\\\\n            \\\",[52,[28,[37,11],[[30,0,[\\\"status\\\"]],\\\"AWAITING_APPROVAL\\\"],null],\\\"bg-warning text-dark\\\"],\\\"\\\\n            \\\",[52,[28,[37,11],[[30,0,[\\\"status\\\"]],\\\"APPROVED\\\"],null],\\\"bg-info\\\"],\\\"\\\\n            \\\"]]],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"invoice\\\",\\\"statusLabel\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,12],[[24,0,\\\"btn btn-link p-0 m-1\\\"]],[[\\\"@route\\\",\\\"@query\\\"],[\\\"entity.builda-price.reports.company.notes\\\",[28,[37,13],null,[[\\\"invoiceId\\\"],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"last\\\",\\\"value\\\",\\\"id\\\"]]]]]]],[[\\\"default\\\"],[[[[1,\\\"View timesheet notes\\\\n        \\\"],[8,[39,14],[[24,0,\\\"ms-1\\\"]],[[\\\"@icon\\\"],[\\\"external-link-alt\\\"]],null],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-primary text-decoration-underline m-1\\\"],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[30,0,[\\\"showConfigureBreakdownOptionsModalDialog\\\"]]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Breakdown options\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,11],[[30,0,[\\\"relatedDocuments\\\",\\\"length\\\"]],1],null],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary text-white m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[28,[37,18],[[30,0,[\\\"relatedDocuments\\\"]],\\\"0.action\\\"],null],[28,[37,18],[[30,0,[\\\"relatedDocuments\\\"]],\\\"0.id\\\"],null]],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,18],[[30,0,[\\\"relatedDocuments\\\"]],\\\"0.label\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,19],[[30,0,[\\\"relatedDocuments\\\",\\\"length\\\"]],1],null],[[[1,\\\"        \\\"],[8,[39,20],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[30,0,[\\\"relatedDocuments\\\",\\\"length\\\"]]],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Related documents\\\"],null]],[1,\\\"  \\\\n            \\\"],[8,[39,14],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,22],[[28,[37,22],[[30,0,[\\\"relatedDocuments\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,2,[\\\"action\\\"]],[30,2,[\\\"id\\\"]]],null]],null],[12],[1,\\\"\\\\n                \\\"],[1,[30,2,[\\\"label\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[1]]]]],[1,\\\"\\\\n      \\\"]],[]],null]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"invoiceItems\\\",\\\"length\\\"]],[[[41,[30,0,[\\\"accountingPlatform\\\",\\\"isActive\\\"]],[[[41,[28,[37,23],[[28,[37,24],[[28,[37,11],[[30,0,[\\\"accountingPlatform\\\",\\\"activePlatform\\\"]],\\\"xero\\\"],null],[30,0,[\\\"invoice\\\",\\\"xeroInvoiceId\\\"]]],null],[28,[37,24],[[28,[37,11],[[30,0,[\\\"accountingPlatform\\\",\\\"activePlatform\\\"]],\\\"quickbooks\\\"],null],[30,0,[\\\"invoice\\\",\\\"quickbooksInvoiceId\\\"]]],null]],null],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-primary text-decoration-underline m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"viewInAccountingPackage\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"viewInAccountingPackage\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"viewInAccountingPackage\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"common.Sending\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.viewInLabel\\\"],[[\\\"label\\\"],[[30,0,[\\\"accountingPlatform\\\",\\\"label\\\"]]]]]],[1,\\\"\\\\n                \\\"],[8,[39,14],[[24,0,\\\"ms-1\\\"]],[[\\\"@icon\\\"],[\\\"external-link-alt\\\"]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,24],[[30,0,[\\\"invoiceActions\\\",\\\"primaryAction\\\"]],[28,[37,25],[[30,0,[\\\"invoiceActions\\\",\\\"secondaryActions\\\",\\\"length\\\"]]],null]],null],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary text-white m-1\\\"],[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"isLoading\\\"]],[30,0,[\\\"isActionsRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"invoiceActions\\\",\\\"primaryAction\\\",\\\"action\\\"]],[30,0,[\\\"invoiceActions\\\",\\\"primaryAction\\\",\\\"targetStatus\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isActionsRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Syncing\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[30,0,[\\\"invoiceActions\\\",\\\"primaryAction\\\",\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,24],[[30,0,[\\\"invoiceActions\\\",\\\"primaryAction\\\"]],[30,0,[\\\"invoiceActions\\\",\\\"secondaryActions\\\",\\\"length\\\"]]],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"m-1 d-flex\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary rounded-0 rounded-start text-white\\\"],[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"isLoading\\\"]],[30,0,[\\\"isActionsRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"invoiceActions\\\",\\\"primaryAction\\\",\\\"action\\\"]],[30,0,[\\\"invoiceActions\\\",\\\"primaryAction\\\",\\\"targetStatus\\\"]],[30,0,[\\\"invoiceActions\\\",\\\"primaryAction\\\",\\\"syncToAccountingPackage\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isActionsRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[30,0,[\\\"invoiceActions\\\",\\\"primaryAction\\\",\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[8,[39,20],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[28,[37,23],[[30,0,[\\\"isLoading\\\"]],[30,0,[\\\"isActionsRunning\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary rounded-0 rounded-end text-white\\\"],[15,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"isLoading\\\"]],[30,0,[\\\"isActionsRunning\\\"]]],null]],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,14],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,22],[[28,[37,22],[[30,0,[\\\"invoiceActions\\\",\\\"secondaryActions\\\"]]],null]],null],null,[[[1,\\\"                  \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,4,[\\\"action\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,4,[\\\"action\\\"]],[30,4,[\\\"targetStatus\\\"]],[30,4,[\\\"syncToAccountingPackage\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,4,[\\\"action\\\",\\\"isRunning\\\"]],[[[1,\\\"                      \\\"],[1,[28,[35,4],[\\\"common.Updating\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                      \\\"],[1,[30,4,[\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"              \\\"]],[]]]]],[1,\\\"\\\\n            \\\"]],[3]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]],null]],[]]]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canUseFileStorage\\\"]],[[[1,\\\"        \\\"],[8,[39,27],null,[[\\\"@buttonClass\\\",\\\"@attachments\\\",\\\"@parent\\\",\\\"@onUploadComplete\\\",\\\"@onDownloadAttachment\\\",\\\"@onDeleteAttachment\\\",\\\"@isDragAndDropVisible\\\"],[\\\"btn btn-secondary text-white m-1\\\",[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"last\\\",\\\"value\\\",\\\"myAttachments\\\"]],[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"attachmentsUploadComplete\\\"]],[30,0,[\\\"downloadAttachment\\\"]],[30,0,[\\\"deleteAttachment\\\"]],[30,0,[\\\"canManageFileStorage\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[8,[39,20],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,14],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,5,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isDownloadingInvoice\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,28],[[30,0,[\\\"setDownloadInvoice\\\"]],\\\"pdf\\\"],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isDownloadingInvoice\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"shared.report.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isDownloadingInvoice\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,28],[[30,0,[\\\"setDownloadInvoice\\\"]],\\\"csv\\\"],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isDownloadingInvoice\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"shared.report.Download as CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isDownloadingInvoice\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,28],[[30,0,[\\\"setDownloadInvoice\\\"]],\\\"excel\\\"],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isDownloadingInvoice\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"shared.report.Download as Excel\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[5]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,29],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"d-flex flex-column border rounded mb-4\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"pt-3 px-3 flex-grow-1 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 p-0\\\"],[12],[1,[28,[35,4],[\\\"common.Details\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"ms-auto btn btn-sm btn-primary\\\\n            \\\",[52,[30,0,[\\\"invoiceChangeSet\\\",\\\"isInvalid\\\"]],\\\"invoice__edit-button--warning\\\"]]]],[16,1,[30,0,[\\\"invoiceEditButtonId\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,28],[[28,[37,31],[[30,0,[\\\"isEditingInvoice\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Edit\\\"],null]],[1,\\\" \\\\n          \\\"],[8,[39,14],null,[[\\\"@icon\\\"],[\\\"edit\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"row m-0\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col flex-column d-flex p-3\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h5\\\"],[14,0,\\\"mb-1\\\"],[12],[1,[28,[35,4],[\\\"common.Invoice number\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,2],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[30,0,[\\\"invoice\\\",\\\"invoiceNumber\\\"]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col flex-column d-flex p-3\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h5\\\"],[14,0,\\\"mb-1\\\"],[12],[1,[28,[35,4],[\\\"common.Contact\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,2],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,34],[\\\"canUseSuppliers\\\"],null],[[[41,[30,0,[\\\"invoice\\\",\\\"toContact\\\",\\\"name\\\"]],[[[1,\\\"                \\\"],[11,0],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"btn btn-link p-0\\\"],[4,[38,16],[\\\"click\\\",[30,0,[\\\"goToSupplier\\\"]]],null],[12],[1,\\\"\\\\n                  \\\"],[1,[30,0,[\\\"invoice\\\",\\\"toContact\\\",\\\"name\\\"]]],[1,\\\" \\\\n                  \\\"],[8,[39,14],null,[[\\\"@icon\\\"],[\\\"external-link-alt\\\"]],null],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                —\\\\n\\\"]],[]]]],[]],[[[1,\\\"              \\\"],[1,[30,0,[\\\"invoice\\\",\\\"toContact\\\",\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col flex-column d-flex p-3\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h5\\\"],[14,0,\\\"mb-1\\\"],[12],[1,[28,[35,4],[\\\"common.Issue date\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,2],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"invoice\\\",\\\"issueDate\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,35],[[30,0,[\\\"invoice\\\",\\\"issueDate\\\"]],[28,[37,4],[\\\"date.shortWithWeekday\\\"],null]],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              —\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col flex-column d-flex p-3\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h5\\\"],[14,0,\\\"mb-1\\\"],[12],[1,[28,[35,4],[\\\"common.Due date\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,2],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"invoice\\\",\\\"dueDate\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,35],[[30,0,[\\\"invoice\\\",\\\"dueDate\\\"]],[28,[37,4],[\\\"date.shortWithWeekday\\\"],null]],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              —\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"mb-2 d-flex justify-content-end align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canEdit\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"selectedItemIndexes\\\",\\\"size\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline\\\"],[16,\\\"disabled\\\",[28,[37,25],[[30,0,[\\\"selectedItemIndexes\\\",\\\"size\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"deleteInvoiceItems\\\"]]],null]],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Delete items\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canAddItems\\\"]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteInvoiceItems\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[30,0,[\\\"addInvoiceItem\\\"]]],null],[12],[1,\\\"\\\\n            \\\"],[8,[39,14],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"invoice__invoice-items-table-container\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,36],null,[[\\\"@tableHeader\\\",\\\"@tableData\\\",\\\"@noDataText\\\",\\\"@isLoading\\\",\\\"@hidePagination\\\",\\\"@class\\\",\\\"@validationMessage\\\"],[[30,0,[\\\"itemTableHeader\\\"]],[30,0,[\\\"itemTableData\\\"]],[28,[37,4],[\\\"common.No items\\\"],null],[30,0,[\\\"model\\\",\\\"invoiceItems\\\",\\\"isRunning\\\"]],true,[29,[\\\"table-bordered\\\\n          \\\",[52,[30,0,[\\\"invoiceTotalError\\\"]],\\\"invoice__invoice-items-table--invalid\\\"]]],[30,0,[\\\"invoiceTotalError\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"invoice__footer mt-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canManageOrApproveInvoice\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"d-flex align-items-center justify-content-between mt-3\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,24],[[28,[37,11],[[30,0,[\\\"status\\\"]],\\\"COMPLETED\\\"],null],[28,[37,37],[[30,0,[\\\"invoice\\\",\\\"invoiceType\\\"]],\\\"CREDIT_NOTE\\\"],null],[28,[37,25],[[30,0,[\\\"relatedDocuments\\\",\\\"length\\\"]]],null]],null],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline\\\"],[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveInvoice\\\",\\\"isRunning\\\"]],[30,0,[\\\"onDeleteInvoice\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,28],[[28,[37,31],[[30,0,[\\\"isCreatingCreditNote\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Create credit note\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,37],[[30,0,[\\\"status\\\"]],\\\"COMPLETED\\\"],null],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline\\\"],[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveInvoice\\\",\\\"isRunning\\\"]],[30,0,[\\\"onDeleteInvoice\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,28],[[28,[37,31],[[30,0,[\\\"isDeletingInvoice\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Delete invoice\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"]],[]],null]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"totalFooter\\\"]],[[[41,[30,0,[\\\"totalFooter\\\"]],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"my-2 text-end\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"mb-1\\\"],[12],[1,[28,[35,4],[\\\"common.Subtotal\\\"],null]],[1,\\\":\\\\n                  \\\"],[1,[30,0,[\\\"totalFooter\\\",\\\"subtotal\\\"]]],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"mb-1\\\"],[12],[1,[28,[35,4],[\\\"common.Tax\\\"],null]],[1,\\\":\\\\n                  \\\"],[1,[30,0,[\\\"totalFooter\\\",\\\"tax\\\"]]],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"mb-1\\\"],[12],[1,[28,[35,4],[\\\"common.Total\\\"],null]],[1,\\\":\\\\n                  \\\"],[1,[30,0,[\\\"totalFooter\\\",\\\"total\\\"]]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isDeletingInvoice\\\"]],[[[1,\\\"  \\\"],[8,[39,38],null,[[\\\"@overlayClass\\\",\\\"@containerClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",\\\"modal-content w-auto\\\",[28,[37,28],[[28,[37,31],[[30,0,[\\\"isDeletingInvoice\\\"]]],null],false],null],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[11,0],[24,0,\\\"modal-content\\\"],[4,[38,39],[[28,[37,17],[[30,0,[\\\"validateInvoiceSafeToDelete\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"validateInvoiceSafeToDelete\\\",\\\"isRunning\\\"]],[[[1,\\\"        \\\"],[8,[39,29],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"validateInvoiceSafeToDelete\\\",\\\"last\\\",\\\"value\\\"]]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"alert alert-warning pb-0 pt-0\\\"],[12],[1,\\\"\\\\n              \\\"],[10,2],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,40],[[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.deleteInvoiceCalculationDependencyWarning\\\"],null]],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n          \\\"],[10,2],[14,0,\\\"ms-1\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.deleteInvoicePrompt\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger text-white\\\"],[16,\\\"disabled\\\",[30,0,[\\\"onDeleteInvoice\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"onDeleteInvoice\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"onDeleteInvoice\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Deleting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white\\\"],[16,\\\"disabled\\\",[30,0,[\\\"onDeleteInvoice\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,28],[[28,[37,31],[[30,0,[\\\"isDeletingInvoice\\\"]]],null],false],null]],null],[12],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isCreatingCreditNote\\\"]],[[[1,\\\"  \\\"],[8,[39,38],null,[[\\\"@overlayClass\\\",\\\"@containerClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",\\\"modal-content w-auto\\\",[28,[37,28],[[28,[37,31],[[30,0,[\\\"isCreatingCreditNote\\\"]]],null],false],null],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n        \\\"],[10,2],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.createCreditNoteConfirmMessage\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white\\\"],[16,\\\"disabled\\\",[30,0,[\\\"createCreditNote\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,28],[[28,[37,31],[[30,0,[\\\"isCreatingCreditNote\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary text-white\\\"],[16,\\\"disabled\\\",[30,0,[\\\"createCreditNote\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"createCreditNote\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"createCreditNote\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,4],[\\\"common.Creating\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,4],[\\\"common.Create\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isRevertCompletedToDraftInvoice\\\"]],[[[1,\\\"  \\\"],[8,[39,38],null,[[\\\"@overlayClass\\\",\\\"@containerClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",\\\"modal-content w-auto\\\",[28,[37,28],[[28,[37,31],[[30,0,[\\\"isRevertCompletedToDraftInvoice\\\"]]],null],false],null],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n        \\\"],[10,2],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.revertDraftInvoicePrompt\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white\\\"],[16,\\\"disabled\\\",[30,0,[\\\"changeStatus\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,28],[[28,[37,31],[[30,0,[\\\"isRevertCompletedToDraftInvoice\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger text-white\\\"],[16,\\\"disabled\\\",[30,0,[\\\"changeStatus\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"changeStatus\\\"]],\\\"DRAFT\\\",false],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"changeStatus\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,4],[\\\"common.Reverting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,4],[\\\"common.Revert\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEditingInvoice\\\"]],[[[1,\\\"  \\\"],[8,[39,38],null,[[\\\"@overlayClass\\\",\\\"@containerClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",\\\"modal-content w-auto\\\",[30,0,[\\\"closeInvoiceEditModal\\\"]],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveInvoice\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canEdit\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@required\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,4],[\\\"common.Invoice number\\\"],null],\\\"invoiceNumber\\\",true,[30,0,[\\\"invoiceChangeSet\\\"]],[28,[37,19],[[30,0,[\\\"saveInvoice\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"mb-2\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"common.Contact\\\"],null]],[1,\\\"\\\\n            \\\"],[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[39,44],null,[[\\\"@onSelect\\\",\\\"@onLoad\\\",\\\"@noDataMessage\\\",\\\"@noDataRoute\\\",\\\"@showNoDataRouteWithResults\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@disabled\\\"],[[30,0,[\\\"setToContact\\\"]],[30,0,[\\\"loadContacts\\\"]],[28,[37,4],[\\\"common.Create a contact\\\"],null],\\\"entity.settings.contacts.contact\\\",true,\\\"toContact\\\",[28,[37,45],[\\\"name\\\"],null],[30,0,[\\\"invoiceChangeSet\\\"]],[28,[37,19],[[30,0,[\\\"saveInvoice\\\",\\\"performCount\\\"]],0],null],[28,[37,23],[[30,0,[\\\"saveInvoice\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canEdit\\\"]]],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,24],[[30,0,[\\\"invoiceChangeSet\\\",\\\"toContact\\\"]],[28,[37,34],[\\\"canUseSuppliers\\\"],null]],null],[[[1,\\\"            \\\"],[11,0],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"form-text link me-auto\\\"],[4,[38,16],[\\\"click\\\",[30,0,[\\\"goToSupplier\\\"]]],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.See details\\\"],null]],[1,\\\" \\\\n              \\\"],[8,[39,14],null,[[\\\"@icon\\\"],[\\\"external-link-alt\\\"]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveInvoice\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canEdit\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"date\\\",[28,[37,4],[\\\"common.Issue date\\\"],null],\\\"issueDate\\\",[30,0,[\\\"invoiceChangeSet\\\"]],[28,[37,19],[[30,0,[\\\"saveInvoice\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveInvoice\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canEdit\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"date\\\",[28,[37,4],[\\\"common.Due date\\\"],null],\\\"dueDate\\\",[30,0,[\\\"invoiceChangeSet\\\"]],[28,[37,19],[[30,0,[\\\"saveInvoice\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveInvoice\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[30,0,[\\\"closeInvoiceEditModal\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Close\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"canEdit\\\"]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveInvoice\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"saveInvoice\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveInvoice\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Save\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"currentInvoiceItem\\\"]],[[[1,\\\"  \\\"],[8,[39,46],null,[[\\\"@headerText\\\",\\\"@item\\\",\\\"@onClose\\\",\\\"@onSave\\\",\\\"@onDelete\\\",\\\"@editDisabled\\\",\\\"@allocationDisabled\\\"],[[30,0,[\\\"invoiceItemEditorHeader\\\"]],[30,0,[\\\"currentInvoiceItem\\\"]],[30,0,[\\\"closeInvoiceItemEditor\\\"]],[30,0,[\\\"saveInvoiceItem\\\"]],[30,0,[\\\"deleteInvoiceItem\\\"]],[28,[37,25],[[30,0,[\\\"canEdit\\\"]]],null],[28,[37,25],[[30,0,[\\\"canAllocate\\\"]]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadInvoice\\\"]],[[[1,\\\"  \\\"],[8,[39,38],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[28,[37,28],[[28,[37,31],[[30,0,[\\\"downloadInvoice\\\"]]],null],null],null],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.reportExportOptionDescription\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,22],[[28,[37,22],[[30,0,[\\\"exportOptions\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"form-check mb-1\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,47],[[24,0,\\\"form-check-input\\\"],[16,3,[30,6,[\\\"name\\\"]]],[16,1,[30,7]]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,6,[\\\"value\\\"]]]],null],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[15,\\\"for\\\",[30,7]],[12],[1,[30,6,[\\\"name\\\"]]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[6,7]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,28],[[28,[37,31],[[30,0,[\\\"downloadInvoice\\\"]]],null],null],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isDownloadingInvoice\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[30,0,[\\\"downloadInvoice\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isDownloadingInvoice\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,4],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,4],[\\\"common.Export\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showConfigureBreakdownOptionsModal\\\"]],[[[1,\\\"  \\\"],[8,[39,38],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[28,[37,28],[[28,[37,31],[[30,0,[\\\"showConfigureBreakdownOptionsModal\\\"]]],null],false],null],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h5\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Breakdown options\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-body p-0 d-flex align-items-stretch justify-content-center invoice__break-down-options-modal-body\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"initInvoiceBreakdown\\\",\\\"isRunning\\\"]],[[[1,\\\"        \\\"],[8,[39,29],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"overflow-auto p-3 border-right\\\"],[14,5,\\\"min-width: 380px;\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,24],[[30,0,[\\\"canManageOrApproveInvoice\\\"]],[30,0,[\\\"hasCompanyBreakdownOptionChanges\\\"]]],null],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-decoration-underline ps-0 mb-2\\\"],[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[30,0,[\\\"saveBreakdownOptionsAsCompanyDefault\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"saveBreakdownOptionsAsCompanyDefault\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveBreakdownOptionsAsCompanyDefault\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Save as company default?\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"blur\\\",[28,[37,17],[[30,0,[\\\"getInvoiceBreakdownHtml\\\"]]],null]],null]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"textarea\\\",[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Additional notes\\\"],null],\\\"breakdownNotes\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]]]],null],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[30,0,[\\\"onChangeBreakdownOptionCheckbox\\\"]]],null]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@description\\\"],[\\\"form-check mb-2\\\",\\\"checkbox\\\",[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Include billable\\\"],null],\\\"includeBillable\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.includeBillableDescription\\\"],null]]],null],[1,\\\"\\\\n          \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[30,0,[\\\"onChangeBreakdownOptionCheckbox\\\"]]],null]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@description\\\"],[\\\"form-check mb-2\\\",\\\"checkbox\\\",[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Include previously invoiced\\\"],null],\\\"includeInvoiced\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.includeInvoicedDescription\\\"],null]]],null],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.First group by\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"d-flex align-items-center gap-3 ms-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[30,0,[\\\"onChangeFirstGroupBy\\\"]]],null]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\"],[\\\"radio\\\",\\\"firstGroupBy\\\",\\\"groupByTask\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"common.Task\\\"],null],\\\"TASK\\\"]],null],[1,\\\"\\\\n            \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[30,0,[\\\"onChangeFirstGroupBy\\\"]]],null]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\"],[\\\"radio\\\",\\\"firstGroupBy\\\",\\\"groupByAllocationType\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"common.Allocation type\\\"],null],\\\"ALLOCATION_TYPE\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Labour bills\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"d-flex align-items-center gap-3 ms-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[28,[37,17],[[30,0,[\\\"getInvoiceBreakdownHtml\\\"]]],null]],null]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\",\\\"@containerClass\\\"],[\\\"radio\\\",\\\"labourDetail\\\",\\\"labourSection\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Total only\\\"],null],\\\"TOTAL\\\",\\\"mb-1\\\"]],null],[1,\\\"\\\\n            \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[28,[37,17],[[30,0,[\\\"getInvoiceBreakdownHtml\\\"]]],null]],null]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\",\\\"@containerClass\\\"],[\\\"radio\\\",\\\"labourDetail\\\",\\\"labourBill\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"common.Bill\\\"],null],\\\"BILL\\\",\\\"mb-1\\\"]],null],[1,\\\"\\\\n            \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[28,[37,17],[[30,0,[\\\"getInvoiceBreakdownHtml\\\"]]],null]],null]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\",\\\"@containerClass\\\"],[\\\"radio\\\",\\\"labourDetail\\\",\\\"labourItem\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Bill item\\\"],null],\\\"BILL_ITEM\\\",\\\"mb-1\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"ms-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[30,0,[\\\"onChangeBreakdownOptionCheckbox\\\"]]],null]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@description\\\"],[\\\"checkbox\\\",[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Show cost margin\\\"],null],\\\"includeLabourBillsProfitMargins\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.includeProfitMarginsDescription\\\"],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"common.Timesheets\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"ms-1 mb-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,48],null,[[\\\"@groups\\\",\\\"@value\\\",\\\"@onChange\\\"],[[30,0,[\\\"timesheetGroupingOptions\\\"]],[30,0,[\\\"invoiceBreakdownOptions\\\",\\\"timesheetDetails\\\"]],[28,[37,49],[[28,[37,28],[[28,[37,31],[[30,0,[\\\"invoiceBreakdownOptions\\\",\\\"timesheetDetails\\\"]]],null]],null],[28,[37,17],[[30,0,[\\\"getInvoiceBreakdownHtml\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,22],[[28,[37,22],[[30,8,[\\\"axes\\\"]]],null]],null],null,[[[1,\\\"                \\\"],[10,\\\"label\\\"],[14,0,\\\"pdf-export-options__grouping-label\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[[30,10],0],null],[[[1,\\\"                    \\\"],[1,[28,[35,4],[\\\"shared.report-builder.First break down by\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                    …\\\"],[1,[28,[35,4],[\\\"shared.report-builder.and then by\\\"],null]],[1,\\\"…\\\\n\\\"]],[]]],[1,\\\"                \\\"],[13],[1,\\\"\\\\n\\\\n                \\\"],[11,\\\"select\\\"],[24,0,\\\"pdf-export-options__grouping-control\\\"],[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[28,[37,51],[[30,0],[30,9,[\\\"update\\\"]]],[[\\\"value\\\"],[\\\"target.value\\\"]]]],null],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,22],[[28,[37,22],[[30,9,[\\\"options\\\"]]],null]],null],null,[[[1,\\\"                    \\\"],[10,\\\"option\\\"],[15,2,[30,11,[\\\"key\\\"]]],[15,\\\"selected\\\",[30,11,[\\\"isSelected\\\"]]],[12],[1,\\\"\\\\n                      \\\"],[1,[30,11,[\\\"name\\\"]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[11]],null],[1,\\\"                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[9,10]],null],[1,\\\"            \\\"]],[8]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"effectiveProfitMargin\\\",\\\"additionalLabourMargin\\\",\\\"value\\\"]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"ms-1\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[28,[37,28],[[30,0,[\\\"onToggleTimesheetMargin\\\"]],\\\"includeTimesheetsProfitMargins\\\",\\\"includeTimesheetsCostMargins\\\"],null]],null]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@description\\\"],[\\\"checkbox\\\",[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Additional margin\\\"],null],\\\"includeTimesheetsProfitMargins\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.includeTimesheetsProfitMarginsDescription\\\"],null]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"ms-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[28,[37,28],[[30,0,[\\\"onToggleTimesheetMargin\\\"]],\\\"includeTimesheetsCostMargins\\\",\\\"includeTimesheetsProfitMargins\\\"],null]],null]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@description\\\"],[\\\"checkbox\\\",[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Show cost margin\\\"],null],\\\"includeTimesheetsCostMargins\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.includeTimesheetsCostMarginsDescription\\\"],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Material bills\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"d-flex align-items-center gap-3 ms-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[28,[37,17],[[30,0,[\\\"getInvoiceBreakdownHtml\\\"]]],null]],null]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\",\\\"@containerClass\\\"],[\\\"radio\\\",\\\"materialsDetail\\\",\\\"materialsSection\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Total only\\\"],null],\\\"TOTAL\\\",\\\"mb-1\\\"]],null],[1,\\\"\\\\n            \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[28,[37,17],[[30,0,[\\\"getInvoiceBreakdownHtml\\\"]]],null]],null]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\",\\\"@containerClass\\\"],[\\\"radio\\\",\\\"materialsDetail\\\",\\\"materialsBill\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"common.Bill\\\"],null],\\\"BILL\\\",\\\"mb-1\\\"]],null],[1,\\\"\\\\n            \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[28,[37,17],[[30,0,[\\\"getInvoiceBreakdownHtml\\\"]]],null]],null]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\",\\\"@containerClass\\\"],[\\\"radio\\\",\\\"materialsDetail\\\",\\\"materialsItem\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Bill item\\\"],null],\\\"BILL_ITEM\\\",\\\"mb-1\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"ms-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[30,0,[\\\"onChangeBreakdownOptionCheckbox\\\"]]],null]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@description\\\"],[\\\"checkbox\\\",[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Show cost margin\\\"],null],\\\"includeMaterialBillsProfitMargins\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.includeProfitMarginsDescription\\\"],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Subcontractor bills\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"d-flex align-items-center gap-3 ms-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[28,[37,17],[[30,0,[\\\"getInvoiceBreakdownHtml\\\"]]],null]],null]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\",\\\"@containerClass\\\"],[\\\"radio\\\",\\\"subcontractorsDetail\\\",\\\"subcontractorsSection\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Total only\\\"],null],\\\"TOTAL\\\",\\\"mb-1\\\"]],null],[1,\\\"\\\\n            \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[28,[37,17],[[30,0,[\\\"getInvoiceBreakdownHtml\\\"]]],null]],null]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\",\\\"@containerClass\\\"],[\\\"radio\\\",\\\"subcontractorsDetail\\\",\\\"subcontractorsBill\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"common.Bill\\\"],null],\\\"BILL\\\",\\\"mb-1\\\"]],null],[1,\\\"\\\\n            \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[28,[37,17],[[30,0,[\\\"getInvoiceBreakdownHtml\\\"]]],null]],null]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\",\\\"@containerClass\\\"],[\\\"radio\\\",\\\"subcontractorsDetail\\\",\\\"subcontractorsItem\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Bill item\\\"],null],\\\"BILL_ITEM\\\",\\\"mb-1\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"ms-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[30,0,[\\\"onChangeBreakdownOptionCheckbox\\\"]]],null]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@description\\\"],[\\\"checkbox\\\",[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Show cost margin\\\"],null],\\\"includeSubcontractorBillsProfitMargins\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.includeProfitMarginsDescription\\\"],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-column p-3\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"mb-2 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h5\\\"],[14,0,\\\"mb-0\\\"],[12],[1,[28,[35,4],[\\\"common.Preview\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"invoiceItems\\\",\\\"length\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"badge bg-success ms-2\\\"],[12],[1,[28,[35,4],[\\\"common.LIVE\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[10,1],[14,0,\\\"text-muted small ms-2\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.layoutMayDifferSlightlyFromPDFVersion\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"invoiceItems\\\",\\\"length\\\"]],[[[1,\\\"            \\\"],[10,\\\"iframe\\\"],[14,\\\"title\\\",\\\"Live preview\\\"],[15,\\\"srcdoc\\\",[30,0,[\\\"getInvoiceBreakdownHtml\\\",\\\"lastSuccessful\\\",\\\"value\\\"]]],[14,0,\\\"flex-grow-1 p-3 rounded border invoice__break-down-options-modal-document-width\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"flex-grow-1 d-flex align-items-center justify-content-center\\\"],[12],[1,\\\"\\\\n              \\\"],[10,2],[14,0,\\\"text-muted\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.noInvoiceItemInBreakdown\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,28],[[28,[37,31],[[30,0,[\\\"showConfigureBreakdownOptionsModal\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canManageOrApproveInvoice\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[30,0,[\\\"saveBreakdownOptionsAsCompanyDefault\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"saveBreakdownOptions\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Save options\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"po\\\",\\\"document\\\",\\\"po\\\",\\\"action\\\",\\\"po\\\",\\\"option\\\",\\\"index\\\",\\\"gs\\\",\\\"axis\\\",\\\"i\\\",\\\"opt\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"page-title-breadcrumbs\\\",\\\"header\\\",\\\"h2\\\",\\\"span\\\",\\\"if\\\",\\\"eq\\\",\\\"link-to\\\",\\\"hash\\\",\\\"fa-icon\\\",\\\"button\\\",\\\"on\\\",\\\"perform\\\",\\\"get\\\",\\\"gt\\\",\\\"pop-over\\\",\\\"each\\\",\\\"-track-array\\\",\\\"or\\\",\\\"and\\\",\\\"not\\\",\\\"div\\\",\\\"attachment-dropdown-list\\\",\\\"fn\\\",\\\"loading-icon\\\",\\\"h4\\\",\\\"mut\\\",\\\"h5\\\",\\\"p\\\",\\\"includes-feature-flags\\\",\\\"moment-format\\\",\\\"pagination-table\\\",\\\"not-eq\\\",\\\"modal-dialog\\\",\\\"did-insert\\\",\\\"html-safe\\\",\\\"ptl-input\\\",\\\"label\\\",\\\"sup\\\",\\\"search-selector\\\",\\\"array\\\",\\\"invoice-item-editor-modal\\\",\\\"input\\\",\\\"grouping-selector\\\",\\\"pipe\\\",\\\"select\\\",\\\"action\\\",\\\"option\\\",\\\"br\\\",\\\"iframe\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/outgoing/invoices/invoice.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/outgoing/payroll-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"3GK8+Z7x\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/outgoing/payroll-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/outgoing/payroll\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title=(t 'common.Payroll')}}\n    />\n  {{/unless}}\n  <article class='m-4 payroll-page-wrapper'>\n    {{#if (media 'isDesktop')}}\n      <header class='border-bottom mb-3'>\n        <div class='float-end'>\n  \n          <PopOver class='float-end' @direction='bottom-left' as |po|>\n            <button type='button' class='btn btn-secondary text-white'>\n              {{t 'common.Export'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n            </button>\n            <po.Content>\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{action 'exportAsCSV'}}\n                disabled={{this.isSyncingToXero}}\n              >\n                {{t 'common.Generic'}}\n                CSV\n              </button>\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{action 'exportAsExcel'}}\n                disabled={{this.isSyncingToXero}}\n              >\n                Excel\n              </button>\n  \n              {{#if\n                (includes-feature-flags 'canManagePayroll' 'entityCanUseKeypay')\n              }}\n                <button\n                  type='button'\n                  class='dropdown-item text-nowrap fs-5'\n                  {{action 'exportAsKeypay'}}\n                  disabled={{this.isSyncingToXero}}\n                >\n                  Keypay CSV\n                </button>\n              {{/if}}\n  \n              {{#if\n                (and\n                  (includes-feature-flags 'canManagePayroll')\n                  (includes-feature-flags 'entityCanUseSmartPayroll')\n                )\n              }}\n                <button\n                  type='button'\n                  class='dropdown-item text-nowrap fs-5'\n                  {{action 'exportAsSmartPayrollCSV'}}\n                  disabled={{this.isSyncingToXero}}\n                >\n                  Smartly CSV\n                </button>\n              {{/if}}\n  \n              {{#if\n                (and\n                  (includes-feature-flags 'canManagePayroll')\n                  (includes-feature-flags 'entityCanUseCrystalPayroll')\n                )\n              }}\n                <button\n                  type='button'\n                  class='dropdown-item text-nowrap fs-5'\n                  {{action 'exportAsCrystalCSV'}}\n                  disabled={{this.isSyncingToXero}}\n                >\n                  Crystal CSV\n                </button>\n              {{/if}}\n  \n              {{#if\n                (and\n                  (includes-feature-flags 'canUseXeroIntegration')\n                  this.xeroIntegration.ready\n                )\n              }}\n                <button\n                  type='button'\n                  class='dropdown-item text-nowrap fs-5'\n                  {{action 'exportForXero'}}\n                  disabled={{this.isSyncingToXero}}\n                >\n                  {{t\n                    'entity.builda-price.operations.outgoing.payroll.Export to Xero'\n                  }}\n                </button>\n              {{/if}}\n  \n              {{#if this.quickbooks.ready}}\n                <button\n                  type='button'\n                  class='dropdown-item text-nowrap fs-5'\n                  {{action 'exportForQuickbooks'}}\n                  disabled={{this.isSyncingToQuickbooks}}\n                >\n                  {{t\n                    'entity.builda-price.operations.outgoing.payroll.Export to QuickBooks'\n                  }}\n                </button>\n              {{/if}}\n            </po.Content>\n          </PopOver>\n        </div>\n        <h1 class='h1'>{{t 'common.Payroll'}}</h1>\n      </header>\n  \n      <div class='payroll-controls'>\n        <div class='payroll-controls__element'>\n          <label class='payroll-controls__label'>{{t\n              'common.Date range'\n            }}:</label>\n          <DateRangeSelector\n            @align='left'\n            @startDate={{this.jsStartDate}}\n            @endDate={{this.jsEndDate}}\n            @onApply={{action 'setDateRange'}}\n          />\n        </div>\n        <div class='payroll-controls__element'>\n          <div class='payroll-controls__input'>\n            <button\n              class='text-button'\n              data-test-button-backwardShift=''\n              type='button'\n              {{action 'shiftDays' -7}}\n            >◀</button>\n            {{t 'common.Shift Week'}}\n            <button\n              class='text-button'\n              data-test-button-forwardShift=''\n              type='button'\n              {{action 'shiftDays' 7}}\n            >▶</button>\n          </div>\n        </div>\n  \n        <div class='payroll-controls__element'>\n          <label class='payroll-controls__label'>{{t\n              'common.Filter by worker'\n            }}:</label>\n          <SelectInput\n            @value={{this.selectedWorker}}\n            @action={{fn (mut this.selectedWorker)}}\n            @class='select-box payroll-controls__input'\n            data-test-worker-filter\n            as |si|\n          >\n            <si.option @value={{null}}>{{t\n                'shared.timesheet.Select a worker'\n              }}…</si.option>\n            {{#each this.activeWorkers as |worker|}}\n              <si.option @value={{worker}}>{{worker.fullName}}</si.option>\n            {{/each}}\n          </SelectInput>\n          {{#if this.selectedWorker}}\n            <button\n              class='text-button'\n              type='button'\n              {{on 'click' (fn (mut this.selectedWorker) null)}}\n            >\n              <FaIcon @icon='times' />&nbsp;{{t 'common.Remove filter'}}\n            </button>\n          {{/if}}\n        </div>\n      </div>\n    {{else}}\n  \n      <div class='payroll-controls'>\n        <div class='payroll-controls__element'>\n          <label class='payroll-controls__label'>{{t\n              'common.Start date'\n            }}:</label>\n          <PtlInput\n            @type='date'\n            @containerClass='mb-0'\n            @key='startDate'\n            @model={{this}}\n            class='payroll-controls__input'\n          />\n  \n          <label class='payroll-controls__label'>{{t 'common.End date'}}:</label>\n          <PtlInput\n            @type='date'\n            @containerClass='mb-0'\n            @key='endDate'\n            @model={{this}}\n            class='payroll-controls__input'\n          />\n        </div>\n  \n        <div class='payroll-controls__element'>\n          <label class='payroll-controls__label'>{{t\n              'common.Filter by project'\n            }}:</label>\n          <SelectInput\n            @value={{this.selectedProject}}\n            @action={{fn (mut this.selectedProject)}}\n            @class='select-box payroll-controls__input'\n            as |si|\n          >\n            <si.option @value={{null}}>{{t\n                'common.No project selected'\n              }}&hellip;</si.option>\n            {{#each this.model.projects as |project|}}\n              <si.option @value={{project}}>{{project.name}}</si.option>\n            {{/each}}\n          </SelectInput>\n          {{#if this.selectedProject}}\n            <button\n              class='text-button payroll-controls__label'\n              type='button'\n              {{on 'click' (fn (mut this.selectedProject) null)}}\n            >\n              <FaIcon @icon='times' />&nbsp;{{t 'common.Remove filter'}}\n            </button>\n          {{/if}}\n        </div>\n      </div>\n    {{/if}}\n  \n    {{#if this.unacceptedStatusesMessage}}\n      <span class='placeholder-text payroll-controls__error-placeholder'>\n        <FaIcon\n          @icon='info-circle'\n        />&nbsp;{{this.unacceptedStatusesMessage}}&nbsp;<LinkTo\n          @route='entity.builda-price.operations.incoming.timesheets'\n          data-test-click-seeTimesheets\n          class='link d-inline'\n        >{{t 'common.See timesheets'}}</LinkTo>\n      </span>\n    {{/if}}\n    {{#if this.report.length}}\n      <table class='data-table payroll-table'>\n        <thead>\n          <tr>\n            <th>{{t 'common.Worker'}}</th>\n            {{#if (includes-feature-flags 'canManagePayroll')}}\n              <th>{{if\n                  this.isChargeOut\n                  (t 'common.Charge-out rate')\n                  (t 'common.Pay rate')\n                }}</th>\n            {{/if}}\n            <th>{{t 'common.Hours'}}</th>\n            {{#if (includes-feature-flags 'canManagePayroll')}}\n              <th>{{if\n                  this.isChargeOut\n                  (t 'entity.builda-price.operations.outgoing.payroll.Charge out')\n                  (t 'entity.builda-price.operations.outgoing.payroll.Pay')\n                }}</th>\n            {{/if}}\n            <th>{{t 'common.Project'}}</th>\n            <th>{{t 'common.Task'}}</th>\n            {{#if (media 'isDesktop')}}\n              {{#each this.reportDays as |day|}}\n                <th\n                  class={{if\n                    (or\n                      (eq (moment-format day 'd') '6')\n                      (eq (moment-format day 'd') '0')\n                    )\n                    'payroll-table__cell--weekend'\n                  }}\n                >\n                  {{moment-format day 'ddd'}}\n                  <br />\n                  {{moment-format day (t 'date.dayMonthAbbr')}}\n                </th>\n              {{/each}}\n            {{/if}}\n          </tr>\n        </thead>\n        <tbody>\n          {{#each this.report as |row index|}}\n            <tr\n              class='{{if row.worker \"payroll-table__worker-total-row\"}}\n                {{if row.project \"payroll-table__job-total-row\"}}\n                '\n            >\n              <td\n                class='payroll-table__large-cell'\n                data-test-workerName=''\n              >{{row.worker.fullName}}</td>\n              {{#if (includes-feature-flags 'canManagePayroll')}}\n                <td\n                  class='payroll-table__alert-cell\n                    {{if\n                      (and (eq index 0) (not row.worker.isNotFocused))\n                      \" payroll-table__alert-cell--popup-visible\"\n                    }}'\n                >\n                  {{#if (and this.isChargeOut row.worker)}}\n                    <span onclick={{action (mut row.worker.isNotFocused) true}}>\n                      <FormattedInput\n                        @placeholder={{number-format\n                          row.worker.chargeOutRate\n                          style='currency'\n                          dashZero=true\n                        }}\n                        @update={{fn (mut row.worker.currentChargeOutRate)}}\n                        @number={{row.worker.currentChargeOutRate}}\n                        @format='currency'\n                        @class={{concat\n                          'data-table__cell-cover text-input'\n                          (unless\n                            row.worker.isNotFocused ' payroll-table__alert-input'\n                          )\n                        }}\n                      />\n                    </span>\n                    <span class='float-end'>\n                      <InfoPopup\n                        @iconName='question-circle'\n                        @text={{t\n                          'entity.builda-price.operations.outgoing.payroll.overrideWorkersChargeOutRateInfo'\n                        }}\n                      />\n                    </span>\n                  {{else}}\n                    {{row.worker.payRate}}\n                  {{/if}}\n                </td>\n              {{/if}}\n              <td>{{format-duration row.totalHours}}</td>\n              {{#if (includes-feature-flags 'canManagePayroll')}}\n                <td>\n                  {{number-format\n                    (if this.isChargeOut row.totalChargeOut row.totalPay)\n                    maximumFractionDigits=2\n                    dashZero=true\n                  }}\n                </td>\n              {{/if}}\n              <td class='payroll-table__small-cell'>{{row.project.name}}</td>\n              <td class='payroll-table__small-cell'>\n                {{#if row.taskBreadcrumbs}}\n                  <LabelPopup @text={{row.taskBreadcrumbs}}>\n                    {{row.task.name}}\n                  </LabelPopup>\n                {{else}}\n                  {{row.task.name}}\n                {{/if}}\n              </td>\n              {{#if (media 'isDesktop')}}\n                {{#each row.dayTotals as |dayTotal|}}\n                  <td\n                    class='{{unless\n                        (or\n                          (not dayTotal.status)\n                          (not dayTotal.totalHours)\n                          (eq dayTotal.status.status \"accepted\")\n                        )\n                        \"payroll-table__not-accepted-cell\"\n                      }}'\n                  >\n                    {{format-duration dayTotal.totalHours}}\n                  </td>\n                {{/each}}\n              {{/if}}\n            </tr>\n          {{/each}}\n        </tbody>\n      </table>\n  \n      {{#if this.payRateClashNote}}\n        <span class='placeholder-text'>\n          <FaIcon @icon='info-circle' />&nbsp;{{this.payRateClashNote}}\n        </span>\n      {{/if}}\n    {{else}}\n      <span class='placeholder-text'>\n        {{t\n          'entity.builda-price.operations.outgoing.payroll.thereAreNoTimesheetsForTheCurrentlySelectedPeriodOrWorker'\n        }}\n      </span>\n    {{/if}}\n  </article>\n  \n  {{#if this.xeroTimesheetsResponseData}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.xeroTimesheetsResponseData) null}}\n      @translucentOverlay={{true}}\n      @containerClass='block-module'\n    >\n      <h4>{{this.xeroTimesheetsResponseData.message}}</h4>\n  \n      <div style='max-height: 400px; overflow-y: auto;'>\n        {{#each this.xeroTimesheetsResponseData.workerSummaries as |summary|}}\n          <p>\n            {{#if summary.failures.length}}\n              <FaIcon\n                @icon='exclamation-circle'\n                class='xero-timesheet-sync__status xero-timesheet-sync__status--warning'\n              />\n            {{else}}\n              <FaIcon\n                @icon='check-circle'\n                class='xero-timesheet-sync__status xero-timesheet-sync__status--success'\n              />\n            {{/if}}\n  \n            {{summary.worker.fullName}}\n  \n            {{#unless summary.failures.length}}\n              —\n              {{t\n                'entity.builda-price.operations.outgoing.payroll.xDaysTimesheetsSuccessfullySyncedWithNoErrors'\n                number=summary.success.length\n              }}\n            {{/unless}}\n  \n            {{#if summary.failures.length}}\n              <ul>\n                <li>\n                  {{t\n                    'entity.builda-price.operations.outgoing.payroll.xDaysTimesheetsSuccessfullySynced'\n                    number=summary.success.length\n                  }}\n                </li>\n                {{#each summary.failures as |failure|}}\n                  <li>\n                    {{failure.message}}\n                  </li>\n                {{/each}}\n              </ul>\n            {{/if}}\n          </p>\n        {{/each}}\n      </div>\n  \n      <footer class='block-module__footer'>\n        <button\n          class='float-end button'\n          type='button'\n          {{on 'click' (fn (mut this.xeroTimesheetsResponseData) null)}}\n        >\n          {{t 'common.Okay'}}\n        </button>\n      </footer>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.quickbooksTimesheetsResponseData}}\n    <ModalDialog\n      @onClose={{fn (mut this.quickbooksTimesheetsResponseData) null}}\n      @translucentOverlay={{true}}\n      @containerClass='block-module'\n    >\n      <h4>{{this.quickbooksTimesheetsResponseData.message}}</h4>\n  \n      <div style='max-height: 400px; overflow-y: auto;'>\n        {{#each\n          this.quickbooksTimesheetsResponseData.workerSummaries\n          as |summary|\n        }}\n          <p>\n            {{#if summary.failures.length}}\n              <FaIcon\n                @icon='exclamation-circle'\n                class='xero-timesheet-sync__status xero-timesheet-sync__status--warning'\n              />\n            {{else}}\n              <FaIcon\n                @icon='check-circle'\n                class='xero-timesheet-sync__status xero-timesheet-sync__status--success'\n              />\n            {{/if}}\n  \n            {{summary.worker.fullName}}\n  \n            {{#unless summary.failures.length}}\n              —\n              {{t\n                'entity.builda-price.operations.outgoing.payroll.xDaysTimesheetsSuccessfullySyncedWithNoErrors'\n                number=summary.success.length\n              }}\n            {{/unless}}\n  \n            {{#if summary.failures.length}}\n              <ul>\n                <li>\n                  {{t\n                    'entity.builda-price.operations.outgoing.payroll.xDaysTimesheetsSuccessfullySynced'\n                    number=summary.success.length\n                  }}\n                </li>\n                {{#each summary.failures as |failure|}}\n                  <li>\n                    {{failure.message}}\n                  </li>\n                {{/each}}\n              </ul>\n            {{/if}}\n          </p>\n        {{/each}}\n      </div>\n  \n      <footer class='block-module__footer'>\n        <button\n          class='pull-right button'\n          type='button'\n          {{on 'click' (fn (mut this.quickbooksTimesheetsResponseData) null)}}\n        >\n          {{t 'common.Okay'}}\n        </button>\n      </footer>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.confirmExportActionName}}\n    <ModalDialog\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n      @containerClass='block-module'\n      @onClose={{action this.set 'confirmExportActionName' null}}\n    >\n      <p>{{this.unacceptedStatusesMessage}}</p>\n      <footer aria-label='export-footer' class='block-module__footer'>\n        <button\n          class='float-end button button--spaced'\n          type='button'\n          {{action this.confirmExportActionName true}}\n        >{{t\n            'entity.builda-price.operations.outgoing.payroll.Accept and export'\n          }}</button>\n        <button\n          class='float-end button button--plain button--spaced'\n          type='button'\n          {{action\n            (pipe\n              (action (mut this.skipDayLocking) true)\n              (action this.confirmExportActionName true)\n            )\n          }}\n        >\n          {{t 'entity.builda-price.operations.outgoing.payroll.Export anyway'}}\n        </button>\n        <button\n          class='float-end button button--plain button--spaced'\n          type='button'\n          {{action this.set 'confirmExportActionName' null}}\n        >{{t 'common.Cancel'}}</button>\n      </footer>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"i32SNnVk\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"common.Payroll\\\"],null]]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4 payroll-page-wrapper\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"float-end\\\"],[12],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,9],[[24,0,\\\"float-end\\\"]],[[\\\"@direction\\\"],[\\\"bottom-left\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"common.Export\\\"],null]],[1,\\\"  \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isSyncingToXero\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],\\\"exportAsCSV\\\"],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"common.Generic\\\"],null]],[1,\\\"\\\\n              CSV\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isSyncingToXero\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],\\\"exportAsExcel\\\"],null],[12],[1,\\\"\\\\n              Excel\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,13],[\\\"canManagePayroll\\\",\\\"entityCanUseKeypay\\\"],null],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isSyncingToXero\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],\\\"exportAsKeypay\\\"],null],[12],[1,\\\"\\\\n                Keypay CSV\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,14],[[28,[37,13],[\\\"canManagePayroll\\\"],null],[28,[37,13],[\\\"entityCanUseSmartPayroll\\\"],null]],null],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isSyncingToXero\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],\\\"exportAsSmartPayrollCSV\\\"],null],[12],[1,\\\"\\\\n                Smartly CSV\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,14],[[28,[37,13],[\\\"canManagePayroll\\\"],null],[28,[37,13],[\\\"entityCanUseCrystalPayroll\\\"],null]],null],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isSyncingToXero\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],\\\"exportAsCrystalCSV\\\"],null],[12],[1,\\\"\\\\n                Crystal CSV\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,14],[[28,[37,13],[\\\"canUseXeroIntegration\\\"],null],[30,0,[\\\"xeroIntegration\\\",\\\"ready\\\"]]],null],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isSyncingToXero\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],\\\"exportForXero\\\"],null],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.payroll.Export to Xero\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"quickbooks\\\",\\\"ready\\\"]],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isSyncingToQuickbooks\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],\\\"exportForQuickbooks\\\"],null],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.payroll.Export to QuickBooks\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[1]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1\\\"],[12],[1,[28,[35,4],[\\\"common.Payroll\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"payroll-controls\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"payroll-controls__element\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"payroll-controls__label\\\"],[12],[1,[28,[35,4],[\\\"common.Date range\\\"],null]],[1,\\\":\\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,17],null,[[\\\"@align\\\",\\\"@startDate\\\",\\\"@endDate\\\",\\\"@onApply\\\"],[\\\"left\\\",[30,0,[\\\"jsStartDate\\\"]],[30,0,[\\\"jsEndDate\\\"]],[28,[37,12],[[30,0],\\\"setDateRange\\\"],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"payroll-controls__element\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"payroll-controls__input\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,\\\"data-test-button-backwardShift\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],\\\"shiftDays\\\",-7],null],[12],[1,\\\"◀\\\"],[13],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Shift Week\\\"],null]],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,\\\"data-test-button-forwardShift\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],\\\"shiftDays\\\",7],null],[12],[1,\\\"▶\\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"payroll-controls__element\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"payroll-controls__label\\\"],[12],[1,[28,[35,4],[\\\"common.Filter by worker\\\"],null]],[1,\\\":\\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,18],[[24,\\\"data-test-worker-filter\\\",\\\"\\\"]],[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"selectedWorker\\\"]],[28,[37,19],[[28,[37,20],[[30,0,[\\\"selectedWorker\\\"]]],null]],null],\\\"select-box payroll-controls__input\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,2,[\\\"option\\\"]],null,[[\\\"@value\\\"],[null]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"shared.timesheet.Select a worker\\\"],null]],[1,\\\"…\\\"]],[]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,22],[[28,[37,22],[[30,0,[\\\"activeWorkers\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[8,[30,2,[\\\"option\\\"]],null,[[\\\"@value\\\"],[[30,3]]],[[\\\"default\\\"],[[[[1,[30,3,[\\\"fullName\\\"]]]],[]]]]],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"        \\\"]],[2]]]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"selectedWorker\\\"]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,4,\\\"button\\\"],[4,[38,23],[\\\"click\\\",[28,[37,19],[[28,[37,20],[[30,0,[\\\"selectedWorker\\\"]]],null],null],null]],null],[12],[1,\\\"\\\\n            \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\" \\\"],[1,[28,[35,4],[\\\"common.Remove filter\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"payroll-controls\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"payroll-controls__element\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"payroll-controls__label\\\"],[12],[1,[28,[35,4],[\\\"common.Start date\\\"],null]],[1,\\\":\\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,24],[[24,0,\\\"payroll-controls__input\\\"]],[[\\\"@type\\\",\\\"@containerClass\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"date\\\",\\\"mb-0\\\",\\\"startDate\\\",[30,0]]],null],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"payroll-controls__label\\\"],[12],[1,[28,[35,4],[\\\"common.End date\\\"],null]],[1,\\\":\\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,24],[[24,0,\\\"payroll-controls__input\\\"]],[[\\\"@type\\\",\\\"@containerClass\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"date\\\",\\\"mb-0\\\",\\\"endDate\\\",[30,0]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"payroll-controls__element\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"payroll-controls__label\\\"],[12],[1,[28,[35,4],[\\\"common.Filter by project\\\"],null]],[1,\\\":\\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,18],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"selectedProject\\\"]],[28,[37,19],[[28,[37,20],[[30,0,[\\\"selectedProject\\\"]]],null]],null],\\\"select-box payroll-controls__input\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,4,[\\\"option\\\"]],null,[[\\\"@value\\\"],[null]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.No project selected\\\"],null]],[1,\\\"…\\\"]],[]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,22],[[28,[37,22],[[30,0,[\\\"model\\\",\\\"projects\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[8,[30,4,[\\\"option\\\"]],null,[[\\\"@value\\\"],[[30,5]]],[[\\\"default\\\"],[[[[1,[30,5,[\\\"name\\\"]]]],[]]]]],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"        \\\"]],[4]]]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"selectedProject\\\"]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button payroll-controls__label\\\"],[24,4,\\\"button\\\"],[4,[38,23],[\\\"click\\\",[28,[37,19],[[28,[37,20],[[30,0,[\\\"selectedProject\\\"]]],null],null],null]],null],[12],[1,\\\"\\\\n            \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\" \\\"],[1,[28,[35,4],[\\\"common.Remove filter\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"unacceptedStatusesMessage\\\"]],[[[1,\\\"    \\\"],[10,1],[14,0,\\\"placeholder-text payroll-controls__error-placeholder\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"info-circle\\\"]],null],[1,\\\" \\\"],[1,[30,0,[\\\"unacceptedStatusesMessage\\\"]]],[1,\\\" \\\"],[8,[39,26],[[24,\\\"data-test-click-seeTimesheets\\\",\\\"\\\"],[24,0,\\\"link d-inline\\\"]],[[\\\"@route\\\"],[\\\"entity.builda-price.operations.incoming.timesheets\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.See timesheets\\\"],null]]],[]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"report\\\",\\\"length\\\"]],[[[1,\\\"    \\\"],[10,\\\"table\\\"],[14,0,\\\"data-table payroll-table\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,4],[\\\"common.Worker\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,13],[\\\"canManagePayroll\\\"],null],[[[1,\\\"            \\\"],[10,\\\"th\\\"],[12],[1,[52,[30,0,[\\\"isChargeOut\\\"]],[28,[37,4],[\\\"common.Charge-out rate\\\"],null],[28,[37,4],[\\\"common.Pay rate\\\"],null]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,4],[\\\"common.Hours\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,13],[\\\"canManagePayroll\\\"],null],[[[1,\\\"            \\\"],[10,\\\"th\\\"],[12],[1,[52,[30,0,[\\\"isChargeOut\\\"]],[28,[37,4],[\\\"entity.builda-price.operations.outgoing.payroll.Charge out\\\"],null],[28,[37,4],[\\\"entity.builda-price.operations.outgoing.payroll.Pay\\\"],null]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,4],[\\\"common.Project\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,4],[\\\"common.Task\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[42,[28,[37,22],[[28,[37,22],[[30,0,[\\\"reportDays\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,\\\"th\\\"],[15,0,[52,[28,[37,31],[[28,[37,32],[[28,[37,33],[[30,6],\\\"d\\\"],null],\\\"6\\\"],null],[28,[37,32],[[28,[37,33],[[30,6],\\\"d\\\"],null],\\\"0\\\"],null]],null],\\\"payroll-table__cell--weekend\\\"]],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,33],[[30,6],\\\"ddd\\\"],null]],[1,\\\"\\\\n                \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                \\\"],[1,[28,[35,33],[[30,6],[28,[37,4],[\\\"date.dayMonthAbbr\\\"],null]],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[6]],null]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,22],[[28,[37,22],[[30,0,[\\\"report\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[10,\\\"tr\\\"],[15,0,[29,[[52,[30,7,[\\\"worker\\\"]],\\\"payroll-table__worker-total-row\\\"],\\\"\\\\n              \\\",[52,[30,7,[\\\"project\\\"]],\\\"payroll-table__job-total-row\\\"],\\\"\\\\n              \\\"]]],[12],[1,\\\"\\\\n            \\\"],[10,\\\"td\\\"],[14,0,\\\"payroll-table__large-cell\\\"],[14,\\\"data-test-workerName\\\",\\\"\\\"],[12],[1,[30,7,[\\\"worker\\\",\\\"fullName\\\"]]],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,13],[\\\"canManagePayroll\\\"],null],[[[1,\\\"              \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"payroll-table__alert-cell\\\\n                  \\\",[52,[28,[37,14],[[28,[37,32],[[30,8],0],null],[28,[37,37],[[30,7,[\\\"worker\\\",\\\"isNotFocused\\\"]]],null]],null],\\\" payroll-table__alert-cell--popup-visible\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,14],[[30,0,[\\\"isChargeOut\\\"]],[30,7,[\\\"worker\\\"]]],null],[[[1,\\\"                  \\\"],[10,1],[15,\\\"onclick\\\",[28,[37,12],[[30,0],[28,[37,20],[[30,7,[\\\"worker\\\",\\\"isNotFocused\\\"]]],null],true],null]],[12],[1,\\\"\\\\n                    \\\"],[8,[39,38],null,[[\\\"@placeholder\\\",\\\"@update\\\",\\\"@number\\\",\\\"@format\\\",\\\"@class\\\"],[[28,[37,39],[[30,7,[\\\"worker\\\",\\\"chargeOutRate\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]],[28,[37,19],[[28,[37,20],[[30,7,[\\\"worker\\\",\\\"currentChargeOutRate\\\"]]],null]],null],[30,7,[\\\"worker\\\",\\\"currentChargeOutRate\\\"]],\\\"currency\\\",[28,[37,40],[\\\"data-table__cell-cover text-input\\\",[52,[51,[30,7,[\\\"worker\\\",\\\"isNotFocused\\\"]]],\\\" payroll-table__alert-input\\\"]],null]]],null],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,1],[14,0,\\\"float-end\\\"],[12],[1,\\\"\\\\n                    \\\"],[8,[39,41],null,[[\\\"@iconName\\\",\\\"@text\\\"],[\\\"question-circle\\\",[28,[37,4],[\\\"entity.builda-price.operations.outgoing.payroll.overrideWorkersChargeOutRateInfo\\\"],null]]],null],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[30,7,[\\\"worker\\\",\\\"payRate\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,42],[[30,7,[\\\"totalHours\\\"]]],null]],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,13],[\\\"canManagePayroll\\\"],null],[[[1,\\\"              \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,39],[[52,[30,0,[\\\"isChargeOut\\\"]],[30,7,[\\\"totalChargeOut\\\"]],[30,7,[\\\"totalPay\\\"]]]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[2,true]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"td\\\"],[14,0,\\\"payroll-table__small-cell\\\"],[12],[1,[30,7,[\\\"project\\\",\\\"name\\\"]]],[13],[1,\\\"\\\\n            \\\"],[10,\\\"td\\\"],[14,0,\\\"payroll-table__small-cell\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,7,[\\\"taskBreadcrumbs\\\"]],[[[1,\\\"                \\\"],[8,[39,43],null,[[\\\"@text\\\"],[[30,7,[\\\"taskBreadcrumbs\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                  \\\"],[1,[30,7,[\\\"task\\\",\\\"name\\\"]]],[1,\\\"\\\\n                \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[30,7,[\\\"task\\\",\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[42,[28,[37,22],[[28,[37,22],[[30,7,[\\\"dayTotals\\\"]]],null]],null],null,[[[1,\\\"                \\\"],[10,\\\"td\\\"],[15,0,[29,[[52,[51,[28,[37,31],[[28,[37,37],[[30,9,[\\\"status\\\"]]],null],[28,[37,37],[[30,9,[\\\"totalHours\\\"]]],null],[28,[37,32],[[30,9,[\\\"status\\\",\\\"status\\\"]],\\\"accepted\\\"],null]],null]],\\\"payroll-table__not-accepted-cell\\\"]]]],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,42],[[30,9,[\\\"totalHours\\\"]]],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[9]],null]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[7,8]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"payRateClashNote\\\"]],[[[1,\\\"      \\\"],[10,1],[14,0,\\\"placeholder-text\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"info-circle\\\"]],null],[1,\\\" \\\"],[1,[30,0,[\\\"payRateClashNote\\\"]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[1,\\\"    \\\"],[10,1],[14,0,\\\"placeholder-text\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.payroll.thereAreNoTimesheetsForTheCurrentlySelectedPeriodOrWorker\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"xeroTimesheetsResponseData\\\"]],[[[1,\\\"  \\\"],[8,[39,44],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\"],[\\\"modal\\\",[28,[37,19],[[28,[37,20],[[30,0,[\\\"xeroTimesheetsResponseData\\\"]]],null],null],null],true,\\\"block-module\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,\\\"h4\\\"],[12],[1,[30,0,[\\\"xeroTimesheetsResponseData\\\",\\\"message\\\"]]],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,5,\\\"max-height: 400px; overflow-y: auto;\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,22],[[28,[37,22],[[30,0,[\\\"xeroTimesheetsResponseData\\\",\\\"workerSummaries\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,2],[12],[1,\\\"\\\\n\\\"],[41,[30,10,[\\\"failures\\\",\\\"length\\\"]],[[[1,\\\"            \\\"],[8,[39,11],[[24,0,\\\"xero-timesheet-sync__status xero-timesheet-sync__status--warning\\\"]],[[\\\"@icon\\\"],[\\\"exclamation-circle\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[8,[39,11],[[24,0,\\\"xero-timesheet-sync__status xero-timesheet-sync__status--success\\\"]],[[\\\"@icon\\\"],[\\\"check-circle\\\"]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n          \\\"],[1,[30,10,[\\\"worker\\\",\\\"fullName\\\"]]],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,10,[\\\"failures\\\",\\\"length\\\"]]],[[[1,\\\"            —\\\\n            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.payroll.xDaysTimesheetsSuccessfullySyncedWithNoErrors\\\"],[[\\\"number\\\"],[[30,10,[\\\"success\\\",\\\"length\\\"]]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,10,[\\\"failures\\\",\\\"length\\\"]],[[[1,\\\"            \\\"],[10,\\\"ul\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.payroll.xDaysTimesheetsSuccessfullySynced\\\"],[[\\\"number\\\"],[[30,10,[\\\"success\\\",\\\"length\\\"]]]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,22],[[28,[37,22],[[30,10,[\\\"failures\\\"]]],null]],null],null,[[[1,\\\"                \\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[30,11,[\\\"message\\\"]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[11]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[10]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"float-end button\\\"],[24,4,\\\"button\\\"],[4,[38,23],[\\\"click\\\",[28,[37,19],[[28,[37,20],[[30,0,[\\\"xeroTimesheetsResponseData\\\"]]],null],null],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"common.Okay\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"quickbooksTimesheetsResponseData\\\"]],[[[1,\\\"  \\\"],[8,[39,44],null,[[\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\"],[[28,[37,19],[[28,[37,20],[[30,0,[\\\"quickbooksTimesheetsResponseData\\\"]]],null],null],null],true,\\\"block-module\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,\\\"h4\\\"],[12],[1,[30,0,[\\\"quickbooksTimesheetsResponseData\\\",\\\"message\\\"]]],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,5,\\\"max-height: 400px; overflow-y: auto;\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,22],[[28,[37,22],[[30,0,[\\\"quickbooksTimesheetsResponseData\\\",\\\"workerSummaries\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,2],[12],[1,\\\"\\\\n\\\"],[41,[30,12,[\\\"failures\\\",\\\"length\\\"]],[[[1,\\\"            \\\"],[8,[39,11],[[24,0,\\\"xero-timesheet-sync__status xero-timesheet-sync__status--warning\\\"]],[[\\\"@icon\\\"],[\\\"exclamation-circle\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[8,[39,11],[[24,0,\\\"xero-timesheet-sync__status xero-timesheet-sync__status--success\\\"]],[[\\\"@icon\\\"],[\\\"check-circle\\\"]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n          \\\"],[1,[30,12,[\\\"worker\\\",\\\"fullName\\\"]]],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,12,[\\\"failures\\\",\\\"length\\\"]]],[[[1,\\\"            —\\\\n            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.payroll.xDaysTimesheetsSuccessfullySyncedWithNoErrors\\\"],[[\\\"number\\\"],[[30,12,[\\\"success\\\",\\\"length\\\"]]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,12,[\\\"failures\\\",\\\"length\\\"]],[[[1,\\\"            \\\"],[10,\\\"ul\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.payroll.xDaysTimesheetsSuccessfullySynced\\\"],[[\\\"number\\\"],[[30,12,[\\\"success\\\",\\\"length\\\"]]]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,22],[[28,[37,22],[[30,12,[\\\"failures\\\"]]],null]],null],null,[[[1,\\\"                \\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[30,13,[\\\"message\\\"]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[13]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[12]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"pull-right button\\\"],[24,4,\\\"button\\\"],[4,[38,23],[\\\"click\\\",[28,[37,19],[[28,[37,20],[[30,0,[\\\"quickbooksTimesheetsResponseData\\\"]]],null],null],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"common.Okay\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"confirmExportActionName\\\"]],[[[1,\\\"  \\\"],[8,[39,44],null,[[\\\"@overlayClass\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\",\\\"@onClose\\\"],[\\\"modal\\\",true,\\\"block-module\\\",[28,[37,12],[[30,0],[30,0,[\\\"set\\\"]],\\\"confirmExportActionName\\\",null],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,2],[12],[1,[30,0,[\\\"unacceptedStatusesMessage\\\"]]],[13],[1,\\\"\\\\n    \\\"],[10,\\\"footer\\\"],[14,\\\"aria-label\\\",\\\"export-footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"float-end button button--spaced\\\"],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],[30,0,[\\\"confirmExportActionName\\\"]],true],null],[12],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.payroll.Accept and export\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"float-end button button--plain button--spaced\\\"],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],[28,[37,50],[[28,[37,12],[[30,0],[28,[37,20],[[30,0,[\\\"skipDayLocking\\\"]]],null],true],null],[28,[37,12],[[30,0],[30,0,[\\\"confirmExportActionName\\\"]],true],null]],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.payroll.Export anyway\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"float-end button button--plain button--spaced\\\"],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],[30,0,[\\\"set\\\"]],\\\"confirmExportActionName\\\",null],null],[12],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"po\\\",\\\"si\\\",\\\"worker\\\",\\\"si\\\",\\\"project\\\",\\\"day\\\",\\\"row\\\",\\\"index\\\",\\\"dayTotal\\\",\\\"summary\\\",\\\"failure\\\",\\\"summary\\\",\\\"failure\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"if\\\",\\\"header\\\",\\\"div\\\",\\\"pop-over\\\",\\\"button\\\",\\\"fa-icon\\\",\\\"action\\\",\\\"includes-feature-flags\\\",\\\"and\\\",\\\"h1\\\",\\\"label\\\",\\\"date-range-selector\\\",\\\"select-input\\\",\\\"fn\\\",\\\"mut\\\",\\\"each\\\",\\\"-track-array\\\",\\\"on\\\",\\\"ptl-input\\\",\\\"span\\\",\\\"link-to\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"or\\\",\\\"eq\\\",\\\"moment-format\\\",\\\"br\\\",\\\"tbody\\\",\\\"td\\\",\\\"not\\\",\\\"formatted-input\\\",\\\"number-format\\\",\\\"concat\\\",\\\"info-popup\\\",\\\"format-duration\\\",\\\"label-popup\\\",\\\"modal-dialog\\\",\\\"h4\\\",\\\"p\\\",\\\"ul\\\",\\\"li\\\",\\\"footer\\\",\\\"pipe\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/outgoing/payroll.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/outgoing/purchase-orders/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <article class='mx-4 mt-4'>\n      <header class='border-bottom mb-3 pb-2 d-flex align-items-center flex-wrap'>\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>{{t 'common.Purchase orders'}}</h2>\n        {{/if}}\n        {{#if (includes-feature-flags 'canManagePurchaseOrders')}}\n          <button\n            type='button'\n            class='btn btn-success text-white text-nowrap m-1'\n            {{on 'click' this.openNewPOForm}}\n            disabled={{this.isLoading}}\n            data-test-add-new-purchase-order\n          >\n            <FaIcon @icon='plus' />&nbsp;&nbsp;\n            {{t 'common.New'}}\n          </button>\n        {{/if}}\n      </header>\n  \n      <div class='d-flex align-items-center mb-3 flex-column flex-md-row-reverse'>\n        <span class='m-1'>\n          <Input\n            class='form-control'\n            placeholder={{t 'common.Search'}}\n            aria-label='Search…'\n            @type='search'\n            @value={{this.searchString}}\n            disabled={{this.isLoading}}\n            {{on 'input' (perform this.onChangeSearchTerm)}}\n            autofocus={{true}}\n            data-test-purchase-order-search\n          />\n        </span>\n        <div class='d-flex align-items-center'>\n          <PageFilters::Pill>\n            {{t 'common.Date range'}}:\n            {{moment-format this.startDate (t 'date.shortSlashDmy')}}\n            {{t 'common.to'}}\n            {{moment-format this.endDate (t 'date.shortSlashDmy')}}\n          </PageFilters::Pill>\n          {{#if (not-eq this.status 'ALL')}}\n            <PageFilters::Pill @onClose={{fn (mut this.status) 'ALL'}}>\n              {{t 'common.Status'}}:\n              {{#if (eq this.status 'DRAFT')}}\n                {{t 'common.Draft'}}\n              {{else if (eq this.status 'AWAITING_APPROVAL')}}\n                {{t 'common.Awaiting approval'}}\n              {{else if (eq this.status 'SENT')}}\n                {{t 'common.Sent'}}\n              {{else if (eq this.status 'APPROVED')}}\n                {{t 'common.Approved'}}\n              {{/if}}\n            </PageFilters::Pill>\n          {{/if}}\n          <PageFilters class='m-1' @align='right' @disable={{this.isLoading}}>\n            <PageFilters::Item @label={{t 'common.Date range'}}>\n              <DateRangeSelector\n                @align='right'\n                @startDate={{this.jsStartDate}}\n                @endDate={{this.jsEndDate}}\n                @onApply={{this.setDateRange}}\n                @maxRange={{31}}\n              />\n            </PageFilters::Item>\n  \n            <PageFilters::Item @label={{t 'common.Status'}}>\n              <SelectInput\n                class='select-box'\n                @action={{fn (mut this.status)}}\n                @value={{this.status}}\n                as |si|\n              >\n                <si.option @value='ALL'>{{t 'common.All'}}</si.option>\n                <si.option @value='DRAFT'>{{t 'common.Draft'}}</si.option>\n                <si.option @value='AWAITING_APPROVAL'>{{t\n                    'common.Awaiting approval'\n                  }}</si.option>\n                <si.option @value='APPROVED'>{{t 'common.Approved'}}</si.option>\n                <si.option @value='SENT'>{{t 'common.Sent'}}</si.option>\n              </SelectInput>\n            </PageFilters::Item>\n          </PageFilters>\n        </div>\n      </div>\n      {{#if this.isLoading}}\n        <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n      {{else}}\n        {{#if this.model.purchaseOrders.last.value.length}}\n          {{#if (media 'isDesktop')}}\n            <div class='px-3'>\n              <div class='row'>\n                <div\n                  class='col-2 fw-bold'\n                  role='button'\n                  {{on 'click' (fn this.sortColumn 'purchaseOrderNumber')}}\n                >\n                  {{t\n                    'entity.builda-price.operations.outgoing.purchase-orders.PO Number'\n                  }}\n                  {{#if this.purchaseOrderNumberIconName}}\n                    <FaIcon @icon={{this.purchaseOrderNumberIconName}} />\n                  {{/if}}\n                </div>\n                <div\n                  class='col-2 fw-bold'\n                  role='button'\n                  {{on 'click' (fn this.sortColumn 'supplier.name')}}\n                >\n                  {{t 'common.Supplier'}}\n                  {{#if this.supplierIconName}}\n                    <FaIcon @icon={{this.supplierIconName}} />\n                  {{/if}}\n                </div>\n                <div\n                  class='col-2 fw-bold'\n                  role='button'\n                  {{on 'click' (fn this.sortColumn 'dateOrderPlaced')}}\n                >\n                  {{t 'shared.purchase-order.Order submitted date'}}\n                  {{#if this.dateOrderPlacedIconName}}\n                    <FaIcon @icon={{this.dateOrderPlacedIconName}} />\n                  {{/if}}\n                </div>\n                <div\n                  class='col-2 fw-bold'\n                  role='button'\n                  {{on 'click' (fn this.sortColumn 'dateCreated')}}\n                >\n                  {{t 'common.Created date'}}\n                  {{#if this.dateCreatedIconName}}\n                    <FaIcon @icon={{this.dateCreatedIconName}} />\n                  {{/if}}\n                </div>\n                <div\n                  class='col-1 fw-bold'\n                  role='button'\n                  {{on 'click' (fn this.sortColumn 'deliveryStatus')}}\n                >\n                  {{t\n                    'entity.builda-price.operations.outgoing.purchase-orders.Delivery status'\n                  }}\n                  {{#if this.deliveryStatusIconName}}\n                    <FaIcon @icon={{this.deliveryStatusIconName}} />\n                  {{/if}}\n                </div>\n                <div\n                  class='col-1 fw-bold text-center'\n                  role='button'\n                  {{on 'click' (fn this.sortColumn 'status')}}\n                >\n                  {{t 'common.Status'}}\n                  {{#if this.statusIconName}}\n                    <FaIcon @icon={{this.statusIconName}} />\n                  {{/if}}\n                </div>\n                <div class='col-1 fw-bold text-center'>{{t 'common.Total'}}</div>\n                <div class='col-1 fw-bold'></div>\n              </div>\n            </div>\n          {{/if}}\n          <LazyEach\n            @items={{this.filteredPurchaseOrders}}\n            @automatic={{true}}\n            @initialNumberOfItemsVisible='30'\n            @increment='10'\n            @itemDisplayName='purchase orders'\n            as |purchaseOrder identifier|\n          >\n            <div class='{{identifier}} py-2'>\n              <LinkTo\n                @route='entity.builda-price.operations.outgoing.purchase-orders.purchase-order'\n                @model={{purchaseOrder.id}}\n                class='project-card__card card shadow-sm text-dark p-3'\n                role='button'\n                data-test-project={{purchaseOrder.id}}\n              >\n                <div class='row align-items-center'>\n                  <div\n                    class='col project-card__project-name fs-2'\n                    data-test-project-card-name\n                  >\n                    {{purchaseOrder.purchaseOrderNumber}}\n                  </div>\n  \n                  {{#if (media 'isDesktop')}}\n                    <div class='col-2 fs-5'>\n                      {{#if purchaseOrder.supplier.name}}\n                        {{purchaseOrder.supplier.name}}\n                      {{else}}\n                        —\n                      {{/if}}\n                    </div>\n  \n                    <div class='col-2 fs-5'>\n                      {{#if purchaseOrder.dateOrderPlaced}}\n                        {{moment-format\n                          purchaseOrder.dateOrderPlaced\n                          (t 'date.shortWithWeekday')\n                        }}\n                      {{else}}\n                        —\n                      {{/if}}\n                    </div>\n  \n                    <div class='col-2 fs-5'>\n                      {{#if purchaseOrder.dateCreated}}\n                        {{moment-format\n                          purchaseOrder.dateCreated\n                          (t 'date.shortWithWeekday')\n                        }}\n                      {{else}}\n                        —\n                      {{/if}}\n                    </div>\n                    <div class='col-1'>\n                      {{#if purchaseOrder.deliveryStatus}}\n                        {{purchaseOrder.deliveryStatusLabel}}\n                      {{else}}\n                        —\n                      {{/if}}\n                    </div>\n                  {{/if}}\n                  <div class='col-lg-1 col-3 d-flex justify-content-center'>\n                    <span\n                      class='badge rounded-pill fs-6 px-3 py-2\n                        {{if\n                          (or\n                            (eq purchaseOrder.status \"SENT\")\n                            (eq purchaseOrder.status \"APPROVED\")\n                          )\n                          \"bg-success\"\n                        }}\n                        {{if\n                          (eq purchaseOrder.status \"DRAFT\")\n                          \"bg-warning text-dark\"\n                        }}\n                        {{if\n                          (eq purchaseOrder.status \"AWAITING_APPROVAL\")\n                          \"bg-info\"\n                        }}\n                        {{if (eq purchaseOrder.status \"SENT\") \"bg-primary\"}}\n                        '\n                    >\n                      {{purchaseOrder.statusLabel}}\n                    </span>\n                  </div>\n                  <div class='col-lg-1 col fs-5 text-center'>\n                    {{number-format\n                      purchaseOrder.totalPrice\n                      style='currency'\n                      dashZero=true\n                    }}\n                  </div>\n  \n                  <div\n                    class='col-1 d-flex align-items-center justify-content-end'\n                  >\n                    <FaIcon @icon='chevron-right' class='fs-2' />\n                  </div>\n                </div>\n              </LinkTo>\n            </div>\n          </LazyEach>\n        {{else}}\n          <div class='error-page error-page--no-data'>\n            <h2 class='h2 error-page__icon'><FaIcon @icon='info-circle' /></h2>\n            <h3 class='h3 error-page__title'>{{t\n                'shared.purchase-order.No purchase orders'\n              }}</h3>\n          </div>\n        {{/if}}\n      {{/if}}\n  \n    </article>\n  {{/if}}\n  \n  {{#if this.purchaseOrderChangeSet}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{this.onClose}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body'>\n        <form data-test-new-purchase-order-form>\n          <PtlInput\n            @type='text'\n            @required={{true}}\n            @label={{t 'shared.purchase-order.Purchase order number'}}\n            @key='purchaseOrderNumber'\n            @model={{this.purchaseOrderChangeSet}}\n            placeholder={{this.nextPurchaseOrderNumber}}\n            @forceValidationVisible={{gt this.onSavePurchaseOrder.performCount 0}}\n          />\n          <div class='mb-3'>\n            <label class='mb-1'>{{t 'common.Supplier'}}\n              <sup class='text-danger'>*</sup>\n            </label>\n            <SearchSelector\n              @noDataMessage={{t 'common.No suppliers'}}\n              @key='supplier'\n              @optionKeys={{array 'name'}}\n              @model={{this.purchaseOrderChangeSet}}\n              @forceValidationVisible={{gt\n                this.onSavePurchaseOrder.performCount\n                0\n              }}\n              @onSelect={{this.setSupplier}}\n              @onLoad={{this.loadSuppliers}}\n            />\n          </div>\n          <NewComboBox\n            @isLoading={{false}}\n            @list={{this.addressList}}\n            @noDataMessage={{t 'shared.purchase-order.No project address'}}\n            @onSelect={{this.setAddress}}\n            @onSearch={{this.onSearchAddress}}\n            @label={{t 'common.Address'}}\n            @key='address'\n            @model={{this.purchaseOrderChangeSet}}\n            @hasNextPage={{false}}\n            @forceValidationVisible={{gt this.onSavePurchaseOrder.performCount 0}}\n          />\n        </form>\n      </div>\n      <div class='modal-footer d-flex'>\n        <div class='d-flex align-items-center'>\n          <button\n            type='button'\n            class='btn btn-secondary text-white ms-2'\n            data-test-new-purchase-order-close-button\n            disabled={{this.onSavePurchaseOrder.isRunning}}\n            {{on 'click' this.onClose}}\n          >{{t 'common.Cancel'}}</button>\n          <button\n            type='button'\n            class='btn btn-primary ms-2'\n            disabled={{this.onSavePurchaseOrder.isRunning}}\n            {{on\n              'click'\n              (perform this.onSavePurchaseOrder this.purchaseOrderChangeSet)\n            }}\n          >\n            {{#if this.onSavePurchaseOrder.isRunning}}\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t 'common.Creating'}}…\n            {{else}}\n              {{t 'common.Create'}}\n            {{/if}}\n          </button>\n        </div>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"3Or77OZf\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 pb-2 d-flex align-items-center flex-wrap\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,[28,[35,6],[\\\"common.Purchase orders\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,7],[\\\"canManagePurchaseOrders\\\"],null],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[24,\\\"data-test-add-new-purchase-order\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,9],[\\\"click\\\",[30,0,[\\\"openNewPOForm\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,10],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\\n          \\\"],[1,[28,[35,6],[\\\"common.New\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center mb-3 flex-column flex-md-row-reverse\\\"],[12],[1,\\\"\\\\n      \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,13],[[24,0,\\\"form-control\\\"],[16,\\\"placeholder\\\",[28,[37,6],[\\\"common.Search\\\"],null]],[24,\\\"aria-label\\\",\\\"Search…\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[16,\\\"autofocus\\\",true],[24,\\\"data-test-purchase-order-search\\\",\\\"\\\"],[4,[38,9],[\\\"input\\\",[28,[37,14],[[30,0,[\\\"onChangeSearchTerm\\\"]]],null]],null]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"search\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,15],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"common.Date range\\\"],null]],[1,\\\":\\\\n          \\\"],[1,[28,[35,16],[[30,0,[\\\"startDate\\\"]],[28,[37,6],[\\\"date.shortSlashDmy\\\"],null]],null]],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"common.to\\\"],null]],[1,\\\"\\\\n          \\\"],[1,[28,[35,16],[[30,0,[\\\"endDate\\\"]],[28,[37,6],[\\\"date.shortSlashDmy\\\"],null]],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"],[41,[28,[37,17],[[30,0,[\\\"status\\\"]],\\\"ALL\\\"],null],[[[1,\\\"          \\\"],[8,[39,15],null,[[\\\"@onClose\\\"],[[28,[37,18],[[28,[37,19],[[30,0,[\\\"status\\\"]]],null],\\\"ALL\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"common.Status\\\"],null]],[1,\\\":\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"status\\\"]],\\\"DRAFT\\\"],null],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"common.Draft\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,20],[[30,0,[\\\"status\\\"]],\\\"AWAITING_APPROVAL\\\"],null],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"common.Awaiting approval\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,20],[[30,0,[\\\"status\\\"]],\\\"SENT\\\"],null],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"common.Sent\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,20],[[30,0,[\\\"status\\\"]],\\\"APPROVED\\\"],null],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"common.Approved\\\"],null]],[1,\\\"\\\\n            \\\"]],[]],null]],[]]]],[]]]],[]]],[1,\\\"          \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[8,[39,21],[[24,0,\\\"m-1\\\"]],[[\\\"@align\\\",\\\"@disable\\\"],[\\\"right\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,22],null,[[\\\"@label\\\"],[[28,[37,6],[\\\"common.Date range\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[39,23],null,[[\\\"@align\\\",\\\"@startDate\\\",\\\"@endDate\\\",\\\"@onApply\\\",\\\"@maxRange\\\"],[\\\"right\\\",[30,0,[\\\"jsStartDate\\\"]],[30,0,[\\\"jsEndDate\\\"]],[30,0,[\\\"setDateRange\\\"]],31]],null],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,22],null,[[\\\"@label\\\"],[[28,[37,6],[\\\"common.Status\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[39,24],[[24,0,\\\"select-box\\\"]],[[\\\"@action\\\",\\\"@value\\\"],[[28,[37,18],[[28,[37,19],[[30,0,[\\\"status\\\"]]],null]],null],[30,0,[\\\"status\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ALL\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.All\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"DRAFT\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.Draft\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"AWAITING_APPROVAL\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.Awaiting approval\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"APPROVED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.Approved\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"SENT\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.Sent\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"]],[1]]]]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"      \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"model\\\",\\\"purchaseOrders\\\",\\\"last\\\",\\\"value\\\",\\\"length\\\"]],[[[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"px-3\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n              \\\"],[11,0],[24,0,\\\"col-2 fw-bold\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,9],[\\\"click\\\",[28,[37,18],[[30,0,[\\\"sortColumn\\\"]],\\\"purchaseOrderNumber\\\"],null]],null],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,6],[\\\"entity.builda-price.operations.outgoing.purchase-orders.PO Number\\\"],null]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"purchaseOrderNumberIconName\\\"]],[[[1,\\\"                  \\\"],[8,[39,10],null,[[\\\"@icon\\\"],[[30,0,[\\\"purchaseOrderNumberIconName\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n              \\\"],[11,0],[24,0,\\\"col-2 fw-bold\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,9],[\\\"click\\\",[28,[37,18],[[30,0,[\\\"sortColumn\\\"]],\\\"supplier.name\\\"],null]],null],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,6],[\\\"common.Supplier\\\"],null]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"supplierIconName\\\"]],[[[1,\\\"                  \\\"],[8,[39,10],null,[[\\\"@icon\\\"],[[30,0,[\\\"supplierIconName\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n              \\\"],[11,0],[24,0,\\\"col-2 fw-bold\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,9],[\\\"click\\\",[28,[37,18],[[30,0,[\\\"sortColumn\\\"]],\\\"dateOrderPlaced\\\"],null]],null],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,6],[\\\"shared.purchase-order.Order submitted date\\\"],null]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"dateOrderPlacedIconName\\\"]],[[[1,\\\"                  \\\"],[8,[39,10],null,[[\\\"@icon\\\"],[[30,0,[\\\"dateOrderPlacedIconName\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n              \\\"],[11,0],[24,0,\\\"col-2 fw-bold\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,9],[\\\"click\\\",[28,[37,18],[[30,0,[\\\"sortColumn\\\"]],\\\"dateCreated\\\"],null]],null],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,6],[\\\"common.Created date\\\"],null]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"dateCreatedIconName\\\"]],[[[1,\\\"                  \\\"],[8,[39,10],null,[[\\\"@icon\\\"],[[30,0,[\\\"dateCreatedIconName\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n              \\\"],[11,0],[24,0,\\\"col-1 fw-bold\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,9],[\\\"click\\\",[28,[37,18],[[30,0,[\\\"sortColumn\\\"]],\\\"deliveryStatus\\\"],null]],null],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,6],[\\\"entity.builda-price.operations.outgoing.purchase-orders.Delivery status\\\"],null]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deliveryStatusIconName\\\"]],[[[1,\\\"                  \\\"],[8,[39,10],null,[[\\\"@icon\\\"],[[30,0,[\\\"deliveryStatusIconName\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n              \\\"],[11,0],[24,0,\\\"col-1 fw-bold text-center\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,9],[\\\"click\\\",[28,[37,18],[[30,0,[\\\"sortColumn\\\"]],\\\"status\\\"],null]],null],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,6],[\\\"common.Status\\\"],null]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"statusIconName\\\"]],[[[1,\\\"                  \\\"],[8,[39,10],null,[[\\\"@icon\\\"],[[30,0,[\\\"statusIconName\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-1 fw-bold text-center\\\"],[12],[1,[28,[35,6],[\\\"common.Total\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-1 fw-bold\\\"],[12],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[8,[39,25],null,[[\\\"@items\\\",\\\"@automatic\\\",\\\"@initialNumberOfItemsVisible\\\",\\\"@increment\\\",\\\"@itemDisplayName\\\"],[[30,0,[\\\"filteredPurchaseOrders\\\"]],true,\\\"30\\\",\\\"10\\\",\\\"purchase orders\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[10,0],[15,0,[29,[[30,3],\\\" py-2\\\"]]],[12],[1,\\\"\\\\n            \\\"],[8,[39,26],[[24,0,\\\"project-card__card card shadow-sm text-dark p-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[16,\\\"data-test-project\\\",[30,2,[\\\"id\\\"]]]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.builda-price.operations.outgoing.purchase-orders.purchase-order\\\",[30,2,[\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"row align-items-center\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col project-card__project-name fs-2\\\"],[14,\\\"data-test-project-card-name\\\",\\\"\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[30,2,[\\\"purchaseOrderNumber\\\"]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"                  \\\"],[10,0],[14,0,\\\"col-2 fs-5\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"supplier\\\",\\\"name\\\"]],[[[1,\\\"                      \\\"],[1,[30,2,[\\\"supplier\\\",\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                      —\\\\n\\\"]],[]]],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n\\\\n                  \\\"],[10,0],[14,0,\\\"col-2 fs-5\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"dateOrderPlaced\\\"]],[[[1,\\\"                      \\\"],[1,[28,[35,16],[[30,2,[\\\"dateOrderPlaced\\\"]],[28,[37,6],[\\\"date.shortWithWeekday\\\"],null]],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                      —\\\\n\\\"]],[]]],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n\\\\n                  \\\"],[10,0],[14,0,\\\"col-2 fs-5\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"dateCreated\\\"]],[[[1,\\\"                      \\\"],[1,[28,[35,16],[[30,2,[\\\"dateCreated\\\"]],[28,[37,6],[\\\"date.shortWithWeekday\\\"],null]],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                      —\\\\n\\\"]],[]]],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"col-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"deliveryStatus\\\"]],[[[1,\\\"                      \\\"],[1,[30,2,[\\\"deliveryStatusLabel\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                      —\\\\n\\\"]],[]]],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                \\\"],[10,0],[14,0,\\\"col-lg-1 col-3 d-flex justify-content-center\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,1],[15,0,[29,[\\\"badge rounded-pill fs-6 px-3 py-2\\\\n                      \\\",[52,[28,[37,27],[[28,[37,20],[[30,2,[\\\"status\\\"]],\\\"SENT\\\"],null],[28,[37,20],[[30,2,[\\\"status\\\"]],\\\"APPROVED\\\"],null]],null],\\\"bg-success\\\"],\\\"\\\\n                      \\\",[52,[28,[37,20],[[30,2,[\\\"status\\\"]],\\\"DRAFT\\\"],null],\\\"bg-warning text-dark\\\"],\\\"\\\\n                      \\\",[52,[28,[37,20],[[30,2,[\\\"status\\\"]],\\\"AWAITING_APPROVAL\\\"],null],\\\"bg-info\\\"],\\\"\\\\n                      \\\",[52,[28,[37,20],[[30,2,[\\\"status\\\"]],\\\"SENT\\\"],null],\\\"bg-primary\\\"],\\\"\\\\n                      \\\"]]],[12],[1,\\\"\\\\n                    \\\"],[1,[30,2,[\\\"statusLabel\\\"]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-lg-1 col fs-5 text-center\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,28],[[30,2,[\\\"totalPrice\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\\n                \\\"],[10,0],[14,0,\\\"col-1 d-flex align-items-center justify-content-end\\\"],[12],[1,\\\"\\\\n                  \\\"],[8,[39,10],[[24,0,\\\"fs-2\\\"]],[[\\\"@icon\\\"],[\\\"chevron-right\\\"]],null],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[2,3]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"error-page error-page--no-data\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2 error-page__icon\\\"],[12],[8,[39,10],null,[[\\\"@icon\\\"],[\\\"info-circle\\\"]],null],[13],[1,\\\"\\\\n          \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3 error-page__title\\\"],[12],[1,[28,[35,6],[\\\"shared.purchase-order.No purchase orders\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"purchaseOrderChangeSet\\\"]],[[[1,\\\"  \\\"],[8,[39,30],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[30,0,[\\\"onClose\\\"]],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"form\\\"],[14,\\\"data-test-new-purchase-order-form\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,32],[[16,\\\"placeholder\\\",[30,0,[\\\"nextPurchaseOrderNumber\\\"]]]],[[\\\"@type\\\",\\\"@required\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",true,[28,[37,6],[\\\"shared.purchase-order.Purchase order number\\\"],null],\\\"purchaseOrderNumber\\\",[30,0,[\\\"purchaseOrderChangeSet\\\"]],[28,[37,33],[[30,0,[\\\"onSavePurchaseOrder\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,[28,[35,6],[\\\"common.Supplier\\\"],null]],[1,\\\"\\\\n            \\\"],[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[39,36],null,[[\\\"@noDataMessage\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@onSelect\\\",\\\"@onLoad\\\"],[[28,[37,6],[\\\"common.No suppliers\\\"],null],\\\"supplier\\\",[28,[37,37],[\\\"name\\\"],null],[30,0,[\\\"purchaseOrderChangeSet\\\"]],[28,[37,33],[[30,0,[\\\"onSavePurchaseOrder\\\",\\\"performCount\\\"]],0],null],[30,0,[\\\"setSupplier\\\"]],[30,0,[\\\"loadSuppliers\\\"]]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,38],null,[[\\\"@isLoading\\\",\\\"@list\\\",\\\"@noDataMessage\\\",\\\"@onSelect\\\",\\\"@onSearch\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@hasNextPage\\\",\\\"@forceValidationVisible\\\"],[false,[30,0,[\\\"addressList\\\"]],[28,[37,6],[\\\"shared.purchase-order.No project address\\\"],null],[30,0,[\\\"setAddress\\\"]],[30,0,[\\\"onSearchAddress\\\"]],[28,[37,6],[\\\"common.Address\\\"],null],\\\"address\\\",[30,0,[\\\"purchaseOrderChangeSet\\\"]],false,[28,[37,33],[[30,0,[\\\"onSavePurchaseOrder\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer d-flex\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[24,\\\"data-test-new-purchase-order-close-button\\\",\\\"\\\"],[16,\\\"disabled\\\",[30,0,[\\\"onSavePurchaseOrder\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,9],[\\\"click\\\",[30,0,[\\\"onClose\\\"]]],null],[12],[1,[28,[35,6],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"onSavePurchaseOrder\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,9],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"onSavePurchaseOrder\\\"]],[30,0,[\\\"purchaseOrderChangeSet\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"onSavePurchaseOrder\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,6],[\\\"common.Creating\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"common.Create\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"si\\\",\\\"purchaseOrder\\\",\\\"identifier\\\"],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"article\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"t\\\",\\\"includes-feature-flags\\\",\\\"button\\\",\\\"on\\\",\\\"fa-icon\\\",\\\"div\\\",\\\"span\\\",\\\"input\\\",\\\"perform\\\",\\\"page-filters/pill\\\",\\\"moment-format\\\",\\\"not-eq\\\",\\\"fn\\\",\\\"mut\\\",\\\"eq\\\",\\\"page-filters\\\",\\\"page-filters/item\\\",\\\"date-range-selector\\\",\\\"select-input\\\",\\\"lazy-each\\\",\\\"link-to\\\",\\\"or\\\",\\\"number-format\\\",\\\"h3\\\",\\\"modal-dialog\\\",\\\"form\\\",\\\"ptl-input\\\",\\\"gt\\\",\\\"label\\\",\\\"sup\\\",\\\"search-selector\\\",\\\"array\\\",\\\"new-combo-box\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/outgoing/purchase-orders/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/outgoing/purchase-orders/purchase-order\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t 'common.Purchase order')\n      }}\n    />\n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component\n        'mobile-title-bar/back-button'\n        titleBarBack='entity.builda-price.operations.outgoing.purchase-orders.index'\n      }}\n    />\n  {{/unless}}\n  \n  <article class='mx-4 mt-4'>\n    <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n  \n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n  \n      <header class='border-bottom mb-3 pb-2 d-flex align-items-center flex-wrap'>\n        <h2 class='flex-grow-1 m-0 my-2 d-flex align-items-center'>\n          {{this.model.purchaseOrder.last.value.supplier.name}}\n  \n          <span\n            class='badge fs-7 m-1\n              {{if\n                (or (eq this.status \"SENT\") (eq this.status \"APPROVED\"))\n                \"bg-success\"\n              }}\n              {{if (eq this.status \"DRAFT\") \"bg-warning text-dark\"}}\n              {{if (eq this.status \"AWAITING_APPROVAL\") \"bg-info\"}}\n              '\n          >\n            {{this.purchaseOrder.statusLabel}}\n          </span>\n  \n          {{#if this.model.purchaseOrder.last.value.dateOrderPlaced}}\n            <div class='badge bg-secondary fs-7 m-1'>\n              {{t 'shared.purchase-order.Order submitted date'}}:\n              {{moment-format\n                this.model.purchaseOrder.last.value.dateOrderPlaced\n                (t 'date.longWithoutWeekday')\n              }}\n            </div>\n          {{/if}}\n        </h2>\n  \n        {{#if\n          (and\n            this.poActions.primaryAction\n            (not this.poActions.secondaryActions.length)\n          )\n        }}\n          <button\n            type='button'\n            class='btn btn-primary text-white m-1'\n            disabled={{this.isActionsRunning}}\n            {{on\n              'click'\n              (perform\n                this.poActions.primaryAction.action\n                this.poActions.primaryAction.targetStatus\n              )\n            }}\n          >\n            {{#if this.isActionsRunning}}\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t 'common.Loading'}}&hellip;\n            {{else}}\n              {{this.poActions.primaryAction.name}}\n            {{/if}}\n          </button>\n        {{else if\n          (and\n            this.poActions.primaryAction this.poActions.secondaryActions.length\n          )\n        }}\n          <div class='m-1 d-flex'>\n            <DropdownButton\n              @buttonText={{if\n                this.isActionsRunning\n                (t 'common.Loading')\n                this.poActions.primaryAction.name\n              }}\n              @onPrimaryClick={{(perform\n                this.poActions.primaryAction.action\n                this.poActions.primaryAction.targetStatus\n              )}}\n              @disabled={{this.isActionsRunning}}\n            >\n              {{#each this.poActions.secondaryActions as |action|}}\n                <button\n                  type='button'\n                  class='dropdown-item text-nowrap fs-5'\n                  {{on 'click' (perform action.action action.targetStatus)}}\n                  disabled={{action.action.isRunning}}\n                >\n                  {{#if action.action.isRunning}}\n                    {{t 'common.Updating'}}&hellip;\n                  {{else}}\n                    {{action.name}}\n                  {{/if}}\n                </button>\n              {{/each}}\n            </DropdownButton>\n          </div>\n        {{/if}}\n  \n        {{#if this.canUseFileStorage}}\n          <AttachmentDropdownList\n            @buttonClass='btn btn-secondary text-white m-1'\n            @attachments={{this.model.purchaseOrder.last.value.myAttachments}}\n            @parent={{this.model.purchaseOrder.last.value}}\n            @onUploadComplete={{this.attachmentsUploadComplete}}\n            @onDownloadAttachment={{this.downloadAttachment}}\n            @onDeleteAttachment={{this.deleteAttachment}}\n            @isDragAndDropVisible={{this.canManageFileStorage}}\n          />\n        {{/if}}\n  \n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.report.Download as PDF'}}\n              {{/if}}\n            </button>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsCsv)}}\n              disabled={{this.downloadAsCsv.isRunning}}\n            >\n              {{#if this.downloadAsCsv.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.report.Download as CSV'}}\n              {{/if}}\n            </button>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsExcel)}}\n              disabled={{this.downloadAsExcel.isRunning}}\n            >\n              {{#if this.downloadAsExcel.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.report.Download as Excel'}}\n              {{/if}}\n            </button>\n          </po.Content>\n        </PopOver>\n  \n      </header>\n  \n      <div class='row mt-2'>\n        <div class='col-md-3 col-12'>\n          <PtlInput\n            @type='text'\n            @label={{t 'shared.purchase-order.Purchase order number'}}\n            @key='purchaseOrderNumber'\n            @required={{true}}\n            @model={{this.purchaseOrderChangeSet}}\n            disabled={{not this.isEditable}}\n            @forceValidationVisible={{gt this.onSavePurchaseOrder.performCount 0}}\n          />\n        </div>\n        <div class='col-md-3 col-12'>\n          <PtlInput\n            @type='date'\n            @label={{t\n              'entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Delivery requested date'\n            }}\n            @key='requestedDeliveryDate'\n            @model={{this.purchaseOrderChangeSet}}\n            disabled={{not this.isEditable}}\n            @forceValidationVisible={{gt this.onSavePurchaseOrder.performCount 0}}\n          />\n        </div>\n        <div class='col-md-3 col-12'>\n          <NewComboBox\n            @isLoading={{false}}\n            @list={{this.addressList}}\n            @noDataMessage={{t 'shared.purchase-order.No project address'}}\n            @onSelect={{this.setAddress}}\n            @onSearch={{this.onSearchAddress}}\n            @label={{t 'common.Address'}}\n            @key='address'\n            @model={{this.purchaseOrderChangeSet}}\n            @hasNextPage={{false}}\n            @forceValidationVisible={{gt this.onSavePurchaseOrder.performCount 0}}\n            @disabled={{not this.isEditable}}\n          />\n        </div>\n        <div class='col-md-3 col-12'>\n          <PtlInput\n            @type='currency'\n            @label={{t\n              'entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Freight charges'\n            }}\n            @key='freightCharges'\n            @model={{this.purchaseOrderChangeSet}}\n            disabled={{not this.isEditable}}\n            @forceValidationVisible={{gt this.onSavePurchaseOrder.performCount 0}}\n          />\n        </div>\n      </div>\n      <div class='row'>\n        <div class='col-md-3 col-12'>\n          <PtlInput\n            @type='textarea'\n            @label={{t\n              'entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Delivery note'\n            }}\n            @key='deliveryNote'\n            rows='3'\n            style='max-height:111.5px'\n            @model={{this.purchaseOrderChangeSet}}\n            disabled={{not this.isEditable}}\n            @forceValidationVisible={{gt this.onSavePurchaseOrder.performCount 0}}\n          />\n        </div>\n        <div class='col-md-3 col-12'>\n          <PtlInput\n            @type='textarea'\n            @label={{t\n              'entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Order note'\n            }}\n            @key='orderNote'\n            rows='3'\n            style='max-height:111.5px'\n            @model={{this.purchaseOrderChangeSet}}\n            disabled={{not this.isEditable}}\n            @forceValidationVisible={{gt this.onSavePurchaseOrder.performCount 0}}\n          />\n        </div>\n      </div>\n      <div class='mb-2 d-flex justify-content-end align-items-center'>\n        {{#if this.isEditable}}\n          <div class='flex-grow-1'>\n            <button\n              class='btn btn-link text-danger text-decoration-underline float-start'\n              type='button'\n              {{on 'click' (perform this.deleteProducts)}}\n              disabled={{not this.selectedItemIndexes.size}}\n            >\n              {{t\n                'entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Delete products'\n              }}\n            </button>\n          </div>\n          {{#if this.showUpdatePriceButton}}\n            <button\n              class='btn btn btn-primary m-1'\n              type='button'\n              {{on 'click' (perform this.updateProductPrices)}}\n              disabled={{not this.selectedItemIndexes.size}}\n            >\n              {{#if this.updateProductPrices.isRunning}}\n                <span\n                  class='spinner-border spinner-border-sm'\n                ></span>&nbsp;&nbsp;Updating&hellip;\n              {{else}}\n                {{t\n                  'entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Update prices'\n                }}\n              {{/if}}\n            </button>\n          {{/if}}\n          {{#if (eq this.purchaseOrder.status 'SENT')}}\n            <button\n              class='btn btn-primary'\n              type='button'\n              {{on 'click' (perform this.updateDeliveryStatus)}}\n              disabled={{or\n                (not this.selectedItemIndexes.size)\n                this.updateDeliveryStatus.Running\n              }}\n            >\n              {{#if this.updateDeliveryStatus.isRunning}}\n                <span\n                  class='spinner-border spinner-border-sm'\n                ></span>&nbsp;&nbsp;{{t 'common.Updating'}}&hellip;\n              {{else}}\n                {{t\n                  'entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Mark as delivered'\n                }}\n              {{/if}}\n            </button>\n          {{/if}}\n          {{#if this.canAddProducts}}\n            <button\n              type='button'\n              class='btn btn-success text-white text-nowrap m-1'\n              disabled={{or\n                this.deleteProducts.isRunning\n                this.updateProductPrices.isRunning\n              }}\n              {{on 'click' (fn (mut this.isAddingProducts) true)}}\n            >\n              <FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Add'}}\n            </button>\n          {{/if}}\n        {{/if}}\n      </div>\n      <div class='purchase-order__purchase-order-items-table-container'>\n        <PaginationTable\n          @tableHeader={{this.productTableHeader}}\n          @tableData={{this.productTableData}}\n          @noDataText={{t 'common.No data'}}\n          @isLoading={{this.model.products.isRunning}}\n          @hidePagination={{true}}\n          @class='table-bordered'\n        />\n      </div>\n      <div class='purchase-order__footer mt-3'>\n        {{#if this.totalPriceFooter}}\n          <div class='d-flex justify-content-end align-items-center my-2'>\n            <span>{{t 'common.Total'}}: {{this.totalPriceFooter}}</span>\n          </div>\n        {{/if}}\n        {{#if this.isEditable}}\n          <div class='d-flex align-items-center justify-content-between mt-1'>\n            <button\n              type='button'\n              class='btn btn-link text-danger text-decoration-underline'\n              disabled={{or\n                this.onSavePurchaseOrder.isRunning\n                this.onDeletePurchaseOrder.isRunning\n              }}\n              {{on 'click' (fn (mut this.isDeletingPurchaseOrder) true)}}\n            >\n              {{t\n                'entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Delete purchase order'\n              }}\n            </button>\n            <button\n              type='button'\n              class='btn btn-primary'\n              disabled={{this.onSavePurchaseOrder.isRunning}}\n              {{on 'click' (perform this.onSavePurchaseOrder)}}\n            >\n              {{#if this.onSavePurchaseOrder.isRunning}}\n                <span\n                  class='spinner-border spinner-border-sm'\n                ></span>&nbsp;&nbsp;{{t 'common.Saving'}}&hellip;\n              {{else}}\n                {{t 'common.Save'}}\n              {{/if}}\n            </button>\n          </div>\n        {{/if}}\n      </div>\n    {{/if}}\n  </article>\n  \n  {{#if this.isAddingProducts}}\n    <PurchaseOrderItemSelector\n      @onClose={{fn (mut this.isAddingProducts) false}}\n      @projects={{this.canManagePurchaseOrderProjects}}\n      @onSavePurchaseOrderItems={{this.onSavePurchaseOrderItems}}\n      @purchaseOrder={{this.model.purchaseOrder.last.value}}\n      @purchaseOrderItems={{this.purchaseOrderItems}}\n    />\n  {{/if}}\n  \n  {{#if this.isDeletingPurchaseOrder}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.isDeletingPurchaseOrder) false}}\n      @translucentOverlay={{true}}\n      @containerClass='block-module'\n    >\n      <p data-test-project-settings-delete-dialog>\n        {{t\n          'entity.builda-price.operations.outgoing.purchase-orders.purchase-order.areYouSureYouWantToDeleteThisPurchaseOrder'\n        }}\n      </p>\n      <footer class='block-module__footer'>\n        <div class='float-end d-flex align-items-center'>\n          {{#if this.onDeletePurchaseOrder.isRunning}}\n            <button\n              type='button'\n              class='btn btn-danger text-white ms-2'\n              disabled={{true}}\n            >\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t 'common.Deleting'}}&hellip;\n            </button>\n          {{else}}\n            <button\n              class='btn btn-danger text-white ms-2'\n              type='button'\n              disabled={{this.onDeletePurchaseOrder.isRunning}}\n              {{on 'click' (perform this.onDeletePurchaseOrder)}}\n            >\n              {{t 'common.Delete'}}\n            </button>\n            <button\n              class='btn btn-secondary text-white ms-2'\n              type='button'\n              disabled={{this.onDeletePurchaseOrder.isRunning}}\n              {{on 'click' (fn (mut this.isDeletingPurchaseOrder) false)}}\n            >{{t 'common.Cancel'}}</button>\n          {{/if}}\n        </div>\n      </footer>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.isApproveAndSendEmail}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.isSendEmail) false}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body mt-2'>\n        {{#unless this.supplierContactDetailsExists}}\n          <div\n            class='alert alert-warning d-flex flex-row align-items-center justify-content-center'\n            role='alert'\n          >\n            {{t\n              'entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Supplier contact information is missing'\n            }}\n            <LinkTo\n              @route='entity.settings.contacts.contact'\n              @model={{this.model.purchaseOrder.last.value.supplier.id}}\n              class='btn btn-outline-primary btn-sm ms-2'\n            >{{t 'common.Update details'}}</LinkTo>\n          </div>\n        {{/unless}}\n        <div class='form-check'>\n          <label for='includeAllAttachments' class='form-check-label'>\n            <input\n              type='checkbox'\n              id='includeAllAttachments'\n              class='form-check-input'\n              disabled={{this.approveAndSend.isRunning}}\n              checked={{this.includeAllAttachmentsInSubmissionEmail}}\n              {{on\n                'click'\n                (fn this.toggleProperty 'includeAllAttachmentsInSubmissionEmail')\n              }}\n            />\n            {{t\n              'entity.builda-price.operations.outgoing.purchase-orders.purchase-order.includeAllAttachmentsInSubmissionEmail'\n            }}\n          </label>\n        </div>\n      </div>\n  \n      <div class='modal-footer d-flex'>\n        <div class='d-flex align-items-center'>\n          <button\n            class='btn btn-secondary text-white ms-2'\n            type='button'\n            disabled={{this.approveAndSend.isRunning}}\n            {{on 'click' (fn (mut this.isApproveAndSendEmail) false)}}\n          >{{t 'common.Cancel'}}</button>\n          <button\n            type='button'\n            class='btn btn-primary ms-2'\n            disabled={{or\n              this.approveAndSend.isRunning\n              (not this.supplierContactDetailsExists)\n            }}\n            {{on\n              'click'\n              (perform this.approveAndSend this.purchaseOrderChangeSet)\n            }}\n          >\n            {{#if this.approveAndSend.isRunning}}\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t 'common.Approving'}}&hellip;\n            {{else}}\n              {{t 'common.approveSend'}}\n            {{/if}}\n          </button>\n        </div>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.isSendEmail}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.isSendEmail) false}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body mt-2'>\n        {{#unless this.supplierContactDetailsExists}}\n          <div\n            class='alert alert-warning d-flex flex-row align-items-center justify-content-center'\n            role='alert'\n          >\n            {{t\n              'entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Supplier contact information is missing'\n            }}\n            <LinkTo\n              @route='entity.settings.contacts.contact'\n              @model={{this.model.purchaseOrder.last.value.supplier.id}}\n              class='btn btn-outline-primary btn-sm ms-2'\n            >{{t 'common.Update details'}}</LinkTo>\n          </div>\n        {{/unless}}\n        <div class='form-check'>\n          <label for='includeAllAttachments' class='form-check-label'>\n            <input\n              type='checkbox'\n              class='form-check-input'\n              disabled={{this.send.isRunning}}\n              checked={{this.includeAllAttachmentsInSubmissionEmail}}\n              {{on\n                'click'\n                (fn this.toggleProperty 'includeAllAttachmentsInSubmissionEmail')\n              }}\n            />\n            {{t\n              'entity.builda-price.operations.outgoing.purchase-orders.purchase-order.includeAllAttachmentsInSubmissionEmail'\n            }}\n          </label>\n        </div>\n      </div>\n  \n      <div class='modal-footer d-flex'>\n        <div class='d-flex align-items-center'>\n          <button\n            class='btn btn-secondary text-white ms-2'\n            type='button'\n            disabled={{this.sendEmail.isRunning}}\n            {{on 'click' (fn (mut this.isSendEmail) false)}}\n          >{{t 'common.Cancel'}}</button>\n          <button\n            type='button'\n            class='btn btn-primary ms-2'\n            disabled={{or\n              this.send.isRunning\n              (not this.supplierContactDetailsExists)\n            }}\n            {{on 'click' (perform this.sendEmail this.purchaseOrderChangeSet)}}\n          >\n            {{#if this.sendEmail.isRunning}}\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t 'common.Sending'}}&hellip;\n            {{else}}\n              {{t 'common.Send'}}\n            {{/if}}\n          </button>\n        </div>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"d/GD+KF0\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"common.Purchase order\\\"],null]]]]]],null],[1,\\\"\\\\n  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/back-button\\\",0,null,[[\\\"titleBarBack\\\"],[\\\"entity.builda-price.operations.outgoing.purchase-orders.index\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4\\\"],[12],[1,\\\"\\\\n  \\\"],[8,[39,6],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,8],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 pb-2 d-flex align-items-center flex-wrap\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,0,[\\\"model\\\",\\\"purchaseOrder\\\",\\\"last\\\",\\\"value\\\",\\\"supplier\\\",\\\"name\\\"]]],[1,\\\"\\\\n\\\\n        \\\"],[10,1],[15,0,[29,[\\\"badge fs-7 m-1\\\\n            \\\",[52,[28,[37,12],[[28,[37,13],[[30,0,[\\\"status\\\"]],\\\"SENT\\\"],null],[28,[37,13],[[30,0,[\\\"status\\\"]],\\\"APPROVED\\\"],null]],null],\\\"bg-success\\\"],\\\"\\\\n            \\\",[52,[28,[37,13],[[30,0,[\\\"status\\\"]],\\\"DRAFT\\\"],null],\\\"bg-warning text-dark\\\"],\\\"\\\\n            \\\",[52,[28,[37,13],[[30,0,[\\\"status\\\"]],\\\"AWAITING_APPROVAL\\\"],null],\\\"bg-info\\\"],\\\"\\\\n            \\\"]]],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"purchaseOrder\\\",\\\"statusLabel\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"purchaseOrder\\\",\\\"last\\\",\\\"value\\\",\\\"dateOrderPlaced\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"badge bg-secondary fs-7 m-1\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"shared.purchase-order.Order submitted date\\\"],null]],[1,\\\":\\\\n            \\\"],[1,[28,[35,15],[[30,0,[\\\"model\\\",\\\"purchaseOrder\\\",\\\"last\\\",\\\"value\\\",\\\"dateOrderPlaced\\\"]],[28,[37,4],[\\\"date.longWithoutWeekday\\\"],null]],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,16],[[30,0,[\\\"poActions\\\",\\\"primaryAction\\\"]],[28,[37,17],[[30,0,[\\\"poActions\\\",\\\"secondaryActions\\\",\\\"length\\\"]]],null]],null],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary text-white m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isActionsRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,20],[[30,0,[\\\"poActions\\\",\\\"primaryAction\\\",\\\"action\\\"]],[30,0,[\\\"poActions\\\",\\\"primaryAction\\\",\\\"targetStatus\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isActionsRunning\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Loading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[30,0,[\\\"poActions\\\",\\\"primaryAction\\\",\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,16],[[30,0,[\\\"poActions\\\",\\\"primaryAction\\\"]],[30,0,[\\\"poActions\\\",\\\"secondaryActions\\\",\\\"length\\\"]]],null],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"m-1 d-flex\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,21],null,[[\\\"@buttonText\\\",\\\"@onPrimaryClick\\\",\\\"@disabled\\\"],[[52,[30,0,[\\\"isActionsRunning\\\"]],[28,[37,4],[\\\"common.Loading\\\"],null],[30,0,[\\\"poActions\\\",\\\"primaryAction\\\",\\\"name\\\"]]],[28,[37,20],[[30,0,[\\\"poActions\\\",\\\"primaryAction\\\",\\\"action\\\"]],[30,0,[\\\"poActions\\\",\\\"primaryAction\\\",\\\"targetStatus\\\"]]],null],[30,0,[\\\"isActionsRunning\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,23],[[28,[37,23],[[30,0,[\\\"poActions\\\",\\\"secondaryActions\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,1,[\\\"action\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,20],[[30,1,[\\\"action\\\"]],[30,1,[\\\"targetStatus\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"action\\\",\\\"isRunning\\\"]],[[[1,\\\"                  \\\"],[1,[28,[35,4],[\\\"common.Updating\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]],null]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canUseFileStorage\\\"]],[[[1,\\\"        \\\"],[8,[39,24],null,[[\\\"@buttonClass\\\",\\\"@attachments\\\",\\\"@parent\\\",\\\"@onUploadComplete\\\",\\\"@onDownloadAttachment\\\",\\\"@onDeleteAttachment\\\",\\\"@isDragAndDropVisible\\\"],[\\\"btn btn-secondary text-white m-1\\\",[30,0,[\\\"model\\\",\\\"purchaseOrder\\\",\\\"last\\\",\\\"value\\\",\\\"myAttachments\\\"]],[30,0,[\\\"model\\\",\\\"purchaseOrder\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"attachmentsUploadComplete\\\"]],[30,0,[\\\"downloadAttachment\\\"]],[30,0,[\\\"deleteAttachment\\\"]],[30,0,[\\\"canManageFileStorage\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[8,[39,25],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,26],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,2,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,20],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"shared.report.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,20],[[30,0,[\\\"downloadAsCsv\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"shared.report.Download as CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsExcel\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,20],[[30,0,[\\\"downloadAsExcel\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsExcel\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"shared.report.Download as Excel\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[2]]]]],[1,\\\"\\\\n\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"row mt-2\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"col-md-3 col-12\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,27],[[16,\\\"disabled\\\",[28,[37,17],[[30,0,[\\\"isEditable\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@required\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,4],[\\\"shared.purchase-order.Purchase order number\\\"],null],\\\"purchaseOrderNumber\\\",true,[30,0,[\\\"purchaseOrderChangeSet\\\"]],[28,[37,28],[[30,0,[\\\"onSavePurchaseOrder\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"col-md-3 col-12\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,27],[[16,\\\"disabled\\\",[28,[37,17],[[30,0,[\\\"isEditable\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"date\\\",[28,[37,4],[\\\"entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Delivery requested date\\\"],null],\\\"requestedDeliveryDate\\\",[30,0,[\\\"purchaseOrderChangeSet\\\"]],[28,[37,28],[[30,0,[\\\"onSavePurchaseOrder\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"col-md-3 col-12\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,29],null,[[\\\"@isLoading\\\",\\\"@list\\\",\\\"@noDataMessage\\\",\\\"@onSelect\\\",\\\"@onSearch\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@hasNextPage\\\",\\\"@forceValidationVisible\\\",\\\"@disabled\\\"],[false,[30,0,[\\\"addressList\\\"]],[28,[37,4],[\\\"shared.purchase-order.No project address\\\"],null],[30,0,[\\\"setAddress\\\"]],[30,0,[\\\"onSearchAddress\\\"]],[28,[37,4],[\\\"common.Address\\\"],null],\\\"address\\\",[30,0,[\\\"purchaseOrderChangeSet\\\"]],false,[28,[37,28],[[30,0,[\\\"onSavePurchaseOrder\\\",\\\"performCount\\\"]],0],null],[28,[37,17],[[30,0,[\\\"isEditable\\\"]]],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"col-md-3 col-12\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,27],[[16,\\\"disabled\\\",[28,[37,17],[[30,0,[\\\"isEditable\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"currency\\\",[28,[37,4],[\\\"entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Freight charges\\\"],null],\\\"freightCharges\\\",[30,0,[\\\"purchaseOrderChangeSet\\\"]],[28,[37,28],[[30,0,[\\\"onSavePurchaseOrder\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"col-md-3 col-12\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,27],[[24,\\\"rows\\\",\\\"3\\\"],[24,5,\\\"max-height:111.5px\\\"],[16,\\\"disabled\\\",[28,[37,17],[[30,0,[\\\"isEditable\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"textarea\\\",[28,[37,4],[\\\"entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Delivery note\\\"],null],\\\"deliveryNote\\\",[30,0,[\\\"purchaseOrderChangeSet\\\"]],[28,[37,28],[[30,0,[\\\"onSavePurchaseOrder\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"col-md-3 col-12\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,27],[[24,\\\"rows\\\",\\\"3\\\"],[24,5,\\\"max-height:111.5px\\\"],[16,\\\"disabled\\\",[28,[37,17],[[30,0,[\\\"isEditable\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"textarea\\\",[28,[37,4],[\\\"entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Order note\\\"],null],\\\"orderNote\\\",[30,0,[\\\"purchaseOrderChangeSet\\\"]],[28,[37,28],[[30,0,[\\\"onSavePurchaseOrder\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"mb-2 d-flex justify-content-end align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEditable\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline float-start\\\"],[16,\\\"disabled\\\",[28,[37,17],[[30,0,[\\\"selectedItemIndexes\\\",\\\"size\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,20],[[30,0,[\\\"deleteProducts\\\"]]],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Delete products\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showUpdatePriceButton\\\"]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn btn-primary m-1\\\"],[16,\\\"disabled\\\",[28,[37,17],[[30,0,[\\\"selectedItemIndexes\\\",\\\"size\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,20],[[30,0,[\\\"updateProductPrices\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"updateProductPrices\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  Updating…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Update prices\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,13],[[30,0,[\\\"purchaseOrder\\\",\\\"status\\\"]],\\\"SENT\\\"],null],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[28,[37,12],[[28,[37,17],[[30,0,[\\\"selectedItemIndexes\\\",\\\"size\\\"]]],null],[30,0,[\\\"updateDeliveryStatus\\\",\\\"Running\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,20],[[30,0,[\\\"updateDeliveryStatus\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"updateDeliveryStatus\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Updating\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Mark as delivered\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"canAddProducts\\\"]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[16,\\\"disabled\\\",[28,[37,12],[[30,0,[\\\"deleteProducts\\\",\\\"isRunning\\\"]],[30,0,[\\\"updateProductPrices\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,30],[[28,[37,31],[[30,0,[\\\"isAddingProducts\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[8,[39,26],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"purchase-order__purchase-order-items-table-container\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,32],null,[[\\\"@tableHeader\\\",\\\"@tableData\\\",\\\"@noDataText\\\",\\\"@isLoading\\\",\\\"@hidePagination\\\",\\\"@class\\\"],[[30,0,[\\\"productTableHeader\\\"]],[30,0,[\\\"productTableData\\\"]],[28,[37,4],[\\\"common.No data\\\"],null],[30,0,[\\\"model\\\",\\\"products\\\",\\\"isRunning\\\"]],true,\\\"table-bordered\\\"]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"purchase-order__footer mt-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"totalPriceFooter\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"d-flex justify-content-end align-items-center my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[10,1],[12],[1,[28,[35,4],[\\\"common.Total\\\"],null]],[1,\\\": \\\"],[1,[30,0,[\\\"totalPriceFooter\\\"]]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"isEditable\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"d-flex align-items-center justify-content-between mt-1\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline\\\"],[16,\\\"disabled\\\",[28,[37,12],[[30,0,[\\\"onSavePurchaseOrder\\\",\\\"isRunning\\\"]],[30,0,[\\\"onDeletePurchaseOrder\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,30],[[28,[37,31],[[30,0,[\\\"isDeletingPurchaseOrder\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Delete purchase order\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"onSavePurchaseOrder\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,20],[[30,0,[\\\"onSavePurchaseOrder\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"onSavePurchaseOrder\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Save\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isAddingProducts\\\"]],[[[1,\\\"  \\\"],[8,[39,33],null,[[\\\"@onClose\\\",\\\"@projects\\\",\\\"@onSavePurchaseOrderItems\\\",\\\"@purchaseOrder\\\",\\\"@purchaseOrderItems\\\"],[[28,[37,30],[[28,[37,31],[[30,0,[\\\"isAddingProducts\\\"]]],null],false],null],[30,0,[\\\"canManagePurchaseOrderProjects\\\"]],[30,0,[\\\"onSavePurchaseOrderItems\\\"]],[30,0,[\\\"model\\\",\\\"purchaseOrder\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"purchaseOrderItems\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isDeletingPurchaseOrder\\\"]],[[[1,\\\"  \\\"],[8,[39,34],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\"],[\\\"modal\\\",[28,[37,30],[[28,[37,31],[[30,0,[\\\"isDeletingPurchaseOrder\\\"]]],null],false],null],true,\\\"block-module\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,2],[14,\\\"data-test-project-settings-delete-dialog\\\",\\\"\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.purchase-orders.purchase-order.areYouSureYouWantToDeleteThisPurchaseOrder\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"float-end d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"onDeletePurchaseOrder\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-danger text-white ms-2\\\"],[15,\\\"disabled\\\",true],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Deleting\\\"],null]],[1,\\\"…\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"onDeletePurchaseOrder\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,20],[[30,0,[\\\"onDeletePurchaseOrder\\\"]]],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"onDeletePurchaseOrder\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,30],[[28,[37,31],[[30,0,[\\\"isDeletingPurchaseOrder\\\"]]],null],false],null]],null],[12],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isApproveAndSendEmail\\\"]],[[[1,\\\"  \\\"],[8,[39,34],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[28,[37,30],[[28,[37,31],[[30,0,[\\\"isSendEmail\\\"]]],null],false],null],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body mt-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"supplierContactDetailsExists\\\"]]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"alert alert-warning d-flex flex-row align-items-center justify-content-center\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Supplier contact information is missing\\\"],null]],[1,\\\"\\\\n          \\\"],[8,[39,37],[[24,0,\\\"btn btn-outline-primary btn-sm ms-2\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.settings.contacts.contact\\\",[30,0,[\\\"model\\\",\\\"purchaseOrder\\\",\\\"last\\\",\\\"value\\\",\\\"supplier\\\",\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Update details\\\"],null]]],[]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[10,0],[14,0,\\\"form-check\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"includeAllAttachments\\\"],[14,0,\\\"form-check-label\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"input\\\"],[24,1,\\\"includeAllAttachments\\\"],[24,0,\\\"form-check-input\\\"],[16,\\\"disabled\\\",[30,0,[\\\"approveAndSend\\\",\\\"isRunning\\\"]]],[16,\\\"checked\\\",[30,0,[\\\"includeAllAttachmentsInSubmissionEmail\\\"]]],[24,4,\\\"checkbox\\\"],[4,[38,19],[\\\"click\\\",[28,[37,30],[[30,0,[\\\"toggleProperty\\\"]],\\\"includeAllAttachmentsInSubmissionEmail\\\"],null]],null],[12],[13],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.purchase-orders.purchase-order.includeAllAttachmentsInSubmissionEmail\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer d-flex\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"approveAndSend\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,30],[[28,[37,31],[[30,0,[\\\"isApproveAndSendEmail\\\"]]],null],false],null]],null],[12],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[16,\\\"disabled\\\",[28,[37,12],[[30,0,[\\\"approveAndSend\\\",\\\"isRunning\\\"]],[28,[37,17],[[30,0,[\\\"supplierContactDetailsExists\\\"]]],null]],null]],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,20],[[30,0,[\\\"approveAndSend\\\"]],[30,0,[\\\"purchaseOrderChangeSet\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"approveAndSend\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Approving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,4],[\\\"common.approveSend\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isSendEmail\\\"]],[[[1,\\\"  \\\"],[8,[39,34],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[28,[37,30],[[28,[37,31],[[30,0,[\\\"isSendEmail\\\"]]],null],false],null],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body mt-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"supplierContactDetailsExists\\\"]]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"alert alert-warning d-flex flex-row align-items-center justify-content-center\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Supplier contact information is missing\\\"],null]],[1,\\\"\\\\n          \\\"],[8,[39,37],[[24,0,\\\"btn btn-outline-primary btn-sm ms-2\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.settings.contacts.contact\\\",[30,0,[\\\"model\\\",\\\"purchaseOrder\\\",\\\"last\\\",\\\"value\\\",\\\"supplier\\\",\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Update details\\\"],null]]],[]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[10,0],[14,0,\\\"form-check\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"includeAllAttachments\\\"],[14,0,\\\"form-check-label\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"input\\\"],[24,0,\\\"form-check-input\\\"],[16,\\\"disabled\\\",[30,0,[\\\"send\\\",\\\"isRunning\\\"]]],[16,\\\"checked\\\",[30,0,[\\\"includeAllAttachmentsInSubmissionEmail\\\"]]],[24,4,\\\"checkbox\\\"],[4,[38,19],[\\\"click\\\",[28,[37,30],[[30,0,[\\\"toggleProperty\\\"]],\\\"includeAllAttachmentsInSubmissionEmail\\\"],null]],null],[12],[13],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.purchase-orders.purchase-order.includeAllAttachmentsInSubmissionEmail\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer d-flex\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"sendEmail\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,30],[[28,[37,31],[[30,0,[\\\"isSendEmail\\\"]]],null],false],null]],null],[12],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[16,\\\"disabled\\\",[28,[37,12],[[30,0,[\\\"send\\\",\\\"isRunning\\\"]],[28,[37,17],[[30,0,[\\\"supplierContactDetailsExists\\\"]]],null]],null]],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,20],[[30,0,[\\\"sendEmail\\\"]],[30,0,[\\\"purchaseOrderChangeSet\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"sendEmail\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Sending\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,4],[\\\"common.Send\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"action\\\",\\\"po\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"page-title-breadcrumbs\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"header\\\",\\\"h2\\\",\\\"span\\\",\\\"or\\\",\\\"eq\\\",\\\"div\\\",\\\"moment-format\\\",\\\"and\\\",\\\"not\\\",\\\"button\\\",\\\"on\\\",\\\"perform\\\",\\\"dropdown-button\\\",\\\"each\\\",\\\"-track-array\\\",\\\"attachment-dropdown-list\\\",\\\"pop-over\\\",\\\"fa-icon\\\",\\\"ptl-input\\\",\\\"gt\\\",\\\"new-combo-box\\\",\\\"fn\\\",\\\"mut\\\",\\\"pagination-table\\\",\\\"purchase-order-item-selector\\\",\\\"modal-dialog\\\",\\\"p\\\",\\\"footer\\\",\\\"link-to\\\",\\\"label\\\",\\\"input\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/outgoing/purchase-orders/purchase-order.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/outgoing/report-builder/csv\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t\n          'entity.builda-price.operations.outgoing.report-builder.csv.CSV export'\n        )\n      }}\n    />\n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component\n        'mobile-title-bar/back-button'\n        titleBarBack='entity.builda-price.operations.outgoing.report-builder'\n      }}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    {{#if (media 'isDesktop')}}\n      <div class='mb-2'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <header class='border-bottom mb-3 d-flex'>\n        <h2 class='my-2'>\n          {{t\n            'entity.builda-price.operations.outgoing.report-builder.csv.CSV export'\n          }}\n        </h2>\n  \n        <div class='ms-auto report-builder__sub-header-dropdown'>\n          {{#if this.download.isRunning}}\n            <button type='button' class='btn btn-primary ms-2' disabled={{true}}>\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t 'common.Downloading'}}…\n            </button>\n          {{else}}\n            <button\n              type='button'\n              class='btn btn-primary ms-2'\n              {{on 'click' (perform this.download)}}\n            >\n              <FaIcon class='me-1' @icon='download' />\n              {{t 'common.Download'}}\n              CSV\n            </button>\n          {{/if}}\n        </div>\n      </header>\n    {{else}}\n      <div class='mb-3'>\n        {{#if this.download.isRunning}}\n          <button type='button' class='btn btn-primary ms-2' disabled={{true}}>\n            <span class='spinner-border spinner-border-sm'></span>&nbsp;&nbsp;{{t\n              'common.Downloading'\n            }}…\n          </button>\n        {{else}}\n          <button\n            type='button'\n            class='btn btn-primary ms-2'\n            {{on 'click' (perform this.download)}}\n          >\n            <FaIcon class='me-1' @icon='download' />\n            {{t 'common.Download'}}\n            CSV\n          </button>\n        {{/if}}\n      </div>\n    {{/if}}\n  \n    <div class='width--large'>\n      <form class='grid-form box'>\n        <section class='box__section'>\n          <div class='box__section-desc'>\n            <h3>{{t 'shared.report-builder.Export options'}}</h3>\n            <p>\n              {{t\n                'shared.report-builder.chooseHowYouWouldLikeYourAttachmentsAndItemsHandled'\n              }}\n            </p>\n          </div>\n          <div class='box__section-content'>\n            <p>\n              <label>\n                {{t\n                  'entity.builda-price.operations.outgoing.report-builder.csv.Include attachments on export'\n                }}\n                <Input\n                  @type='checkbox'\n                  @checked={{this.includeAttachmentsOnExport}}\n                />\n              </label>\n            </p>\n            <p>\n              <label>\n                {{t 'shared.report-builder.markSelectedItemsAsReportedOnExport'}}\n                <Input @type='checkbox' @checked={{this.markReportedOnExport}} />\n              </label>\n            </p>\n          </div>\n        </section>\n      </form>\n    </div>\n  </article>\n  */\n  {\n    \"id\": \"ZnoymJVg\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"entity.builda-price.operations.outgoing.report-builder.csv.CSV export\\\"],null]]]]]],null],[1,\\\"\\\\n  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/back-button\\\",0,null,[[\\\"titleBarBack\\\"],[\\\"entity.builda-price.operations.outgoing.report-builder\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-2\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,8],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h2\\\"],[14,0,\\\"my-2\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.csv.CSV export\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"ms-auto report-builder__sub-header-dropdown\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"download\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary ms-2\\\"],[15,\\\"disabled\\\",true],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"download\\\"]]],null]],null],[12],[1,\\\"\\\\n            \\\"],[8,[39,15],[[24,0,\\\"me-1\\\"]],[[\\\"@icon\\\"],[\\\"download\\\"]],null],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"common.Download\\\"],null]],[1,\\\"\\\\n            CSV\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"download\\\",\\\"isRunning\\\"]],[[[1,\\\"        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary ms-2\\\"],[15,\\\"disabled\\\",true],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"download\\\"]]],null]],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,15],[[24,0,\\\"me-1\\\"]],[[\\\"@icon\\\"],[\\\"download\\\"]],null],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Download\\\"],null]],[1,\\\"\\\\n          CSV\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"width--large\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"form\\\"],[14,0,\\\"grid-form box\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"section\\\"],[14,0,\\\"box__section\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"box__section-desc\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h3\\\"],[12],[1,[28,[35,4],[\\\"shared.report-builder.Export options\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,2],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"shared.report-builder.chooseHowYouWouldLikeYourAttachmentsAndItemsHandled\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"box__section-content\\\"],[12],[1,\\\"\\\\n          \\\"],[10,2],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.csv.Include attachments on export\\\"],null]],[1,\\\"\\\\n              \\\"],[8,[39,21],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"includeAttachmentsOnExport\\\"]]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,2],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"shared.report-builder.markSelectedItemsAsReportedOnExport\\\"],null]],[1,\\\"\\\\n              \\\"],[8,[39,21],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"markReportedOnExport\\\"]]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"if\\\",\\\"div\\\",\\\"page-title-breadcrumbs\\\",\\\"header\\\",\\\"h2\\\",\\\"button\\\",\\\"span\\\",\\\"on\\\",\\\"perform\\\",\\\"fa-icon\\\",\\\"form\\\",\\\"section\\\",\\\"h3\\\",\\\"p\\\",\\\"label\\\",\\\"input\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/outgoing/report-builder/csv.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/outgoing/report-builder/excel\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t\n          'entity.builda-price.operations.outgoing.report-builder.excel.Excel export'\n        )\n      }}\n    />\n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component\n        'mobile-title-bar/back-button'\n        titleBarBack='entity.builda-price.operations.outgoing.report-builder'\n      }}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    {{#if (media 'isDesktop')}}\n      <div class='mb-2'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <header class='border-bottom mb-3 d-flex'>\n        <h2 class='my-2'>\n          {{t\n            'entity.builda-price.operations.outgoing.report-builder.excel.Excel export'\n          }}\n        </h2>\n  \n        <div class='ms-auto report-builder__sub-header-dropdown'>\n          {{#if this.download.isRunning}}\n            <button type='button' class='btn btn-primary ms-2' disabled={{true}}>\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t 'common.Downloading'}}…\n            </button>\n          {{else}}\n            <button\n              type='button'\n              class='btn btn-primary ms-2'\n              {{on 'click' (perform this.download)}}\n            >\n              <FaIcon class='me-1' @icon='download' />\n              {{t 'common.Download'}}\n              Excel\n            </button>\n          {{/if}}\n        </div>\n  \n      </header>\n    {{else}}\n      <div class='mb-3'>\n        {{#if this.download.isRunning}}\n          <button type='button' class='btn btn-primary ms-2' disabled={{true}}>\n            <span class='spinner-border spinner-border-sm'></span>&nbsp;&nbsp;{{t\n              'common.Downloading'\n            }}…\n          </button>\n        {{else}}\n          <button\n            type='button'\n            class='btn btn-primary ms-2'\n            {{on 'click' (perform this.download)}}\n          >\n            <FaIcon class='me-1' @icon='download' />\n            {{t 'common.Download'}}\n            Excel\n          </button>\n        {{/if}}\n      </div>\n    {{/if}}\n  \n    <div class='width--large'>\n      <form class='grid-form box'>\n        <section class='box__section'>\n          <div class='box__section-desc'>\n            <h3>Export Options</h3>\n            <p>\n              {{t\n                'shared.report-builder.chooseHowYouWouldLikeYourAttachmentsAndItemsHandled'\n              }}\n            </p>\n          </div>\n          <div class='box__section-content'>\n            <p>\n              <label>\n                {{t 'shared.report-builder.Include attachments with export'}}\n                <Input\n                  @type='checkbox'\n                  @checked={{this.includeAttachmentsOnExport}}\n                />\n              </label>\n            </p>\n            <p>\n              <label>\n                {{t 'shared.report-builder.markSelectedItemsAsReportedOnExport'}}\n                <Input @type='checkbox' @checked={{this.markReportedOnExport}} />\n              </label>\n            </p>\n          </div>\n        </section>\n      </form>\n    </div>\n  </article>\n  */\n  {\n    \"id\": \"dtNhz9NL\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"entity.builda-price.operations.outgoing.report-builder.excel.Excel export\\\"],null]]]]]],null],[1,\\\"\\\\n  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/back-button\\\",0,null,[[\\\"titleBarBack\\\"],[\\\"entity.builda-price.operations.outgoing.report-builder\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-2\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,8],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h2\\\"],[14,0,\\\"my-2\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.excel.Excel export\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"ms-auto report-builder__sub-header-dropdown\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"download\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary ms-2\\\"],[15,\\\"disabled\\\",true],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"download\\\"]]],null]],null],[12],[1,\\\"\\\\n            \\\"],[8,[39,15],[[24,0,\\\"me-1\\\"]],[[\\\"@icon\\\"],[\\\"download\\\"]],null],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"common.Download\\\"],null]],[1,\\\"\\\\n            Excel\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"download\\\",\\\"isRunning\\\"]],[[[1,\\\"        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary ms-2\\\"],[15,\\\"disabled\\\",true],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"download\\\"]]],null]],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,15],[[24,0,\\\"me-1\\\"]],[[\\\"@icon\\\"],[\\\"download\\\"]],null],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Download\\\"],null]],[1,\\\"\\\\n          Excel\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"width--large\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"form\\\"],[14,0,\\\"grid-form box\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"section\\\"],[14,0,\\\"box__section\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"box__section-desc\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h3\\\"],[12],[1,\\\"Export Options\\\"],[13],[1,\\\"\\\\n          \\\"],[10,2],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"shared.report-builder.chooseHowYouWouldLikeYourAttachmentsAndItemsHandled\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"box__section-content\\\"],[12],[1,\\\"\\\\n          \\\"],[10,2],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"shared.report-builder.Include attachments with export\\\"],null]],[1,\\\"\\\\n              \\\"],[8,[39,21],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"includeAttachmentsOnExport\\\"]]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,2],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"shared.report-builder.markSelectedItemsAsReportedOnExport\\\"],null]],[1,\\\"\\\\n              \\\"],[8,[39,21],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"markReportedOnExport\\\"]]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"if\\\",\\\"div\\\",\\\"page-title-breadcrumbs\\\",\\\"header\\\",\\\"h2\\\",\\\"button\\\",\\\"span\\\",\\\"on\\\",\\\"perform\\\",\\\"fa-icon\\\",\\\"form\\\",\\\"section\\\",\\\"h3\\\",\\\"p\\\",\\\"label\\\",\\\"input\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/outgoing/report-builder/excel.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/outgoing/report-builder/index-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"aFshvT+G\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/outgoing/report-builder/index-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/outgoing/report-builder/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t 'common.Report builder')\n      }}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    {{#if (media 'isDesktop')}}\n      <header class='border-bottom mb-3'>\n        <div class='report-builder__sub-header-dropdown float-end'>\n          <PopOver\n            class='button--spaced'\n            @direction='bottom-left'\n            @disabled={{not this.selectedProject}}\n            data-test-export-dropdown=''\n            as |po|\n          >\n            <button\n              type='button'\n              class='btn btn-secondary text-white'\n              disabled={{not this.selectedProject}}\n            >\n              {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n            </button>\n            <po.Content>\n  \n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{action 'downloadReport' 'pdf'}}\n                data-test-export-pdf=''\n              >\n                {{t\n                  'entity.builda-price.operations.outgoing.report-builder.Prepare PDF report'\n                }}\n              </button>\n  \n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{action 'downloadReport' 'excel'}}\n                data-test-export-excel=''\n              >\n                {{t\n                  'entity.builda-price.operations.outgoing.report-builder.Prepare Excel report'\n                }}\n              </button>\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{action 'downloadReport' 'csv'}}\n                data-test-export-csv=''\n              >\n                {{t\n                  'entity.builda-price.operations.outgoing.report-builder.Prepare CSV report'\n                }}\n              </button>\n            </po.Content>\n          </PopOver>\n        </div>\n  \n        <h1 class='h1'>\n          {{t 'common.Report builder'}}\n        </h1>\n      </header>\n    {{else}}\n      <div class='mb-3'>\n        <OverlaidDropdown\n          @buttonClasses='button button--download button--spaced'\n          @buttonText='Download report'\n          @title='Download Report'\n          @disabled={{not this.selectedProject}}\n          @align='right'\n          data-test-export-dropdown\n        >\n          <label\n            class='overlaid-dropdown__option'\n            {{action 'downloadReport' 'pdf'}}\n            data-test-export-pdf=''\n          >\n            <span class='no-wrap'>{{t\n                'entity.builda-price.operations.outgoing.report-builder.Prepare PDF report'\n              }}</span>\n          </label>\n          <label\n            class='overlaid-dropdown__option'\n            {{action 'downloadReport' 'excel'}}\n            data-test-export-excel=''\n          >\n            <span class='no-wrap'>{{t\n                'entity.builda-price.operations.outgoing.report-builder.Prepare Excel report'\n              }}</span>\n          </label>\n          <label\n            class='overlaid-dropdown__option'\n            {{action 'downloadReport' 'csv'}}\n            data-test-export-csv=''\n          >\n            <span class='no-wrap'>\n              {{t\n                'entity.builda-price.operations.outgoing.report-builder.Prepare CSV report'\n              }}</span>\n          </label>\n        </OverlaidDropdown>\n      </div>\n    {{/if}}\n  \n    {{! Page controls, date, project, task }}\n    <div class='report-builder__sub-header'>\n      <span class='report-builder__sub-header-item'>\n        <DateRangeSelector\n          @disabled={{if this.filterByDate false true}}\n          @align='left'\n          @startDate={{this.jsStartDate}}\n          @endDate={{this.jsEndDate}}\n          @onApply={{action 'setDateRange'}}\n        />\n      </span>\n      <span class='report-builder__sub-header-item ms-2'>\n        <label>\n          <Input\n            class='mx-2'\n            @type='checkbox'\n            @checked={{this.filterByDate}}\n            data-test-report-builder-filterCheckBox=''\n            {{on 'click' (action 'toggleFilter')}}\n          />{{t 'common.Filter by date'}}</label>\n      </span>\n      <span class='report-builder__sub-header-item'>\n        <label>&nbsp;&nbsp;&nbsp;&nbsp;{{t\n            'common.Selected project'\n          }}:&nbsp;&nbsp;</label>\n        <PowerSelect\n          data-test-report-builder-project=''\n          @searchEnabled={{true}}\n          @options={{this.groupedProjects}}\n          @selected={{this.selectedProject}}\n          @searchField='name'\n          @placeholder=' – '\n          @onChange={{action 'setProject'}}\n          as |project|\n        >\n          {{project.name}}\n        </PowerSelect>\n      </span>\n  \n      {{#if this.selectedProject}}\n        <span class='report-builder__sub-header-item'>\n          <label>&nbsp;&nbsp;&nbsp;&nbsp;{{t\n              'common.Selected tasks'\n            }}:&nbsp;&nbsp;</label>\n          <MultiTaskSelectorInput\n            @showTaskPopUp={{this.showTaskPopUp}}\n            @selectedProject={{this.selectedProject}}\n            @selectedTasks={{this.selectedTasks}}\n            @setSelectedTasks={{action 'setSelectedTasks'}}\n            @removeSelectedTask={{action 'removeSelectedTask'}}\n          />\n          {{#if this.selectedTasks.length}}\n            &nbsp;&nbsp;\n            <button\n              class='text-button'\n              type='button'\n              {{action 'removeAllTaskFilters'}}\n            >\n              <FaIcon @icon='times' />&nbsp;{{t 'common.Remove filter'}}\n            </button>\n          {{/if}}\n        </span>\n      {{/if}}\n    </div>\n  \n    {{#unless this.selectedProject}}\n      {{! If no project is selected, promt the user to do so }}\n      <div class='error-page error-page--no-data'>\n        <h2 class='h2 error-page__icon'><FaIcon @icon='info-circle' /></h2>\n        <h3 class='h3 error-page__title'>{{t 'common.Select a project'}}</h3>\n      </div>\n    {{else}}\n      {{! If a project is selected, show the page content }}\n  \n      {{! Totals bar (sticky) }}\n      <div class='report-builder__sub-header--fixed'>\n        <h2 class='float-start'>{{t 'shared.report-builder.Report total'}}</h2>\n        <span class='report-builder__section-total'>\n          <span\n            class='report-builder__section-total-column'\n            data-test-report-builder-subtotal=''\n          >\n            <span>{{t\n                'entity.builda-price.operations.outgoing.report-builder.Subtotal'\n              }}</span>\n            {{number-format\n              this.computedTotals.total.subtotal\n              style='currency'\n              dashZero=true\n            }}\n          </span>\n  \n          <span class='report-builder__section-total-column'>\n            <span>{{t\n                'entity.builda-price.operations.outgoing.report-builder.Margin total'\n              }}</span>\n            {{number-format\n              this.computedTotals.total.margin\n              style='currency'\n              dashZero=true\n            }}\n          </span>\n  \n          <span\n            class='report-builder__section-total-column'\n            data-test-report-builder-total=''\n          >\n            <span>{{t 'common.Total'}}</span>\n            {{number-format\n              this.computedTotals.total.total\n              style='currency'\n              dashZero=true\n            }}\n          </span>\n        </span>\n      </div>\n  \n      {{! Materials section }}\n      <section class='report-builder__section' data-test-materials>\n        <div class='report-builder__section-header'>\n          {{! Materials heading (toggle) }}\n          <h2\n            class='h2'\n            {{action this.toggleProperty 'materialsSectionExpanded'}}\n          >\n            {{t 'common.Materials'}}&nbsp;&nbsp;<FaIcon\n              @icon={{if\n                this.materialsSectionExpanded\n                'angle-down'\n                'angle-right'\n              }}\n            />\n          </h2>\n        </div>\n  \n        {{! Materials content, only show when expanded }}\n        {{#if this.materialsSectionExpanded}}\n          {{#unless this.materialInvoices.length}}\n            {{! Message for when there are no invoices to show }}\n            {{#unless this.filterByDate}}\n              <p class='report-builder__section-empty'>\n                {{t\n                  'entity.builda-price.operations.outgoing.report-builder.There are no materials bills'\n                }}\n              </p>\n            {{else}}\n              <p class='report-builder__section-empty'>\n                {{t\n                  'entity.builda-price.operations.outgoing.report-builder.thereAreNoMaterialsBillsWithAnIssueDateBetween'\n                  start=(moment-format this.startDate (t 'date.shortWithWeekday'))\n                  end=(moment-format this.endDate (t 'date.shortWithWeekday'))\n                }}\n              </p>\n            {{/unless}}\n          {{else}}\n            <button\n              class='text-button text-button--spaced report-builder__section-header-button'\n              type='button'\n              {{action 'toggleMaterialsReportedSelected'}}\n            >\n              {{t\n                'entity.builda-price.operations.outgoing.report-builder.Select previously unreported items'\n              }}\n            </button>\n  \n            <ReportBuilderPm::InvoiceTypeTable\n              @title={{t\n                'entity.builda-price.operations.outgoing.report-builder.Material bills'\n              }}\n              @toggleAllSelected={{action 'toggleMaterialsSelected'}}\n              @toggleResourceItemsSelected={{action\n                'toggleResourceItemsSelected'\n              }}\n              @toggleItemsVisible={{action 'toggleItemsVisible'}}\n              @toggleInvoiceItemSelected={{action 'toggleInvoiceItemSelected'}}\n              @setItemReportedFalse={{action 'setItemReportedFalse'}}\n              @setItemsReportedFalse={{action 'setItemsReportedFalse'}}\n              @allSelected={{this.allMaterialsSelected}}\n              @partSelected={{this.partMaterialsSelected}}\n              @invoices={{this.materialInvoices}}\n            />\n          {{/unless}}\n  \n          {{! List of manual items to add to the material invoices part of the report }}\n          {{#if this.manualMaterials.length}}\n            <ReportBuilderPm::ManualTypeTable\n              @title={{t\n                'entity.builda-price.operations.outgoing.report-builder.Manual items'\n              }}\n              @items={{this.manualMaterials}}\n              @deleteItem={{action 'deleteManualItem'}}\n              @manualKey='material'\n            />\n          {{/if}}\n          <button\n            class='button button--add report-builder__section-button-add'\n            type='button'\n            {{action 'addManualItem' 'material'}}\n          >\n            {{t\n              'entity.builda-price.operations.outgoing.report-builder.Add manual item'\n            }}\n          </button>\n        {{/if}}\n  \n        {{! Materials totals }}\n        <span class='report-builder__section-total'>\n          <span class='report-builder__section-total-column'>\n            <span>{{t 'shared.report-builder.Materials subtotal'}}</span>\n            {{number-format\n              this.computedTotals.invoice.subtotal\n              style='currency'\n              dashZero=true\n            }}\n          </span>\n  \n          <span\n            class='report-builder__section-total-column'\n            data-test-materials-markup\n          >\n            <SelectInput\n              @value={{this.invoiceProfitType}}\n              @action={{action 'setProfitType' 'invoice'}}\n              @class='report-builder__section-total-column-select-box-replacement'\n              as |si|\n            >\n              <si.option @value='dollar'>{{t 'common.Markup'}}-{{t\n                  'common.Currency'\n                }}\n              </si.option>\n              <si.option @value='margin'>{{t 'common.Margin'}}-{{t\n                  'common.Percentage'\n                }}</si.option>\n              <si.option @value='markup'>{{t 'common.Markup'}}-{{t\n                  'common.Percentage'\n                }}</si.option>\n            </SelectInput>\n            {{#if (eq this.invoiceProfitType 'dollar')}}\n              <FormattedInput\n                @class='text-input'\n                @placeholder='$0.00'\n                @update={{action (mut this.invoiceProfit)}}\n                @number={{this.invoiceDollarProfit}}\n                @format='currency'\n                @selectOnFocus={{true}}\n              />\n            {{else if (eq this.invoiceProfitType 'margin')}}\n              <FormattedInput\n                @class='text-input'\n                @placeholder='0%'\n                @update={{action (mut this.invoiceProfit)}}\n                @number={{this.invoiceMargin}}\n                @format='percentage'\n                @selectOnFocus={{true}}\n              />\n            {{else if (eq this.invoiceProfitType 'markup')}}\n              <FormattedInput\n                @class='text-input'\n                @placeholder='0%'\n                @update={{action (mut this.invoiceProfit)}}\n                @number={{this.invoiceMarkup}}\n                @format='percentage'\n                @selectOnFocus={{true}}\n              />\n            {{/if}}\n          </span>\n  \n          <span class='report-builder__section-total-column'>\n            <span>{{t 'shared.report-builder.Materials total'}}</span>\n            {{number-format\n              this.computedTotals.invoice.total\n              style='currency'\n              dashZero=true\n            }}\n          </span>\n        </span>\n      </section>\n  \n      {{! Labour section }}\n      <section class='report-builder__section' data-test-labour>\n        <div class='report-builder__section-header'>\n          {{! Labour header (toggle) }}\n          <h2 class='h2' {{action this.toggleProperty 'labourSectionExpanded'}}>\n            {{t 'common.Labour'}}&nbsp;&nbsp;<FaIcon\n              @icon={{if this.labourSectionExpanded 'angle-down' 'angle-right'}}\n            />\n          </h2>\n  \n          {{! Charge out rates toggle, only necessary when timesheets are found }}\n          {{#if this.workers.length}}\n            <span class='report-builder__section-header-meta'>\n              <label for='use-charge-out-rate-toggle'>{{t\n                  'entity.builda-price.operations.outgoing.report-builder.Use charge out rates'\n                }}</label>\n              <Input\n                @type='checkbox'\n                id='use-charge-out-rate-toggle'\n                @checked={{this.useChargeOutRates}}\n              />\n            </span>\n          {{/if}}\n        </div>\n  \n        {{! Labour content, only show if section expanded }}\n        {{#if this.labourSectionExpanded}}\n          {{#unless (or this.workers.length this.labourInvoices.length)}}\n            {{! Message for when there are no timesheets }}\n            {{#unless this.filterByDate}}\n              <p class='report-builder__section-empty'>\n                {{t\n                  'entity.builda-price.operations.outgoing.report-builder.There are no timesheets'\n                }}\n              </p>\n            {{else}}\n              <p class='report-builder__section-empty'>\n                {{t\n                  'entity.builda-price.operations.outgoing.report-builder.thereAreNoTimesheetsCreatedBetweenXAndY'\n                  start=(moment-format this.startDate (t 'date.shortWithWeekday'))\n                  end=(moment-format this.endDate (t 'date.shortWithWeekday'))\n                }}\n              </p>\n            {{/unless}}\n          {{else}}\n            <button\n              class='text-button text-button--spaced report-builder__section-header-button'\n              type='button'\n              {{action 'toggleTimesheetsReportedSelected'}}\n            >\n              {{t\n                'entity.builda-price.operations.outgoing.report-builder.Select previously unreported items'\n              }}\n            </button>\n  \n            {{#if this.workers.length}}\n              <ReportBuilderPm::TimesheetTypeTable\n                @title={{t 'common.Timesheets'}}\n                @headingName='Task'\n                @workers={{this.workers}}\n                @allTimesheetsSelected={{this.allTimesheetsSelected}}\n                @partTimesheetsSelected={{this.partTimesheetsSelected}}\n                @useChargeOutRates={{this.useChargeOutRates}}\n                @toggleTimesheetsSelected={{action 'toggleTimesheetsSelected'}}\n                @toggleWorkersTimesheetsSelected={{action\n                  'toggleWorkersTimesheetsSelected'\n                }}\n                @toggleItemsVisible={{action 'toggleItemsVisible'}}\n                @toggleTimesheetSelected={{action 'toggleTimesheetSelected'}}\n                @setItemsReportedFalse={{action 'setItemsReportedFalse'}}\n                @setItemReportedFalse={{action 'setItemReportedFalse'}}\n              />\n            {{/if}}\n  \n            {{#if this.labourInvoices.length}}\n              <ReportBuilderPm::InvoiceTypeTable\n                @title={{t 'shared.report-builder.Labour bills'}}\n                @headingName='Task'\n                @toggleAllSelected={{action 'toggleLabourSelected'}}\n                @toggleResourceItemsSelected={{action\n                  'toggleResourceItemsSelected'\n                }}\n                @toggleItemsVisible={{action 'toggleItemsVisible'}}\n                @toggleInvoiceItemSelected={{action 'toggleInvoiceItemSelected'}}\n                @setItemReportedFalse={{action 'setItemReportedFalse'}}\n                @setItemsReportedFalse={{action 'setItemsReportedFalse'}}\n                @allSelected={{this.allLabourSelected}}\n                @partSelected={{this.partLabourSelected}}\n                @invoices={{this.labourInvoices}}\n              />\n            {{/if}}\n          {{/unless}}\n  \n          {{! Things that are manually added to the labour section of the report }}\n          {{#if this.manualTimesheets.length}}\n            <ReportBuilderPm::ManualTypeTable\n              @title={{t\n                'entity.builda-price.operations.outgoing.report-builder.Manual items'\n              }}\n              @items={{this.manualTimesheets}}\n              @deleteItem={{action 'deleteManualItem'}}\n              @manualKey='timesheet'\n            />\n          {{/if}}\n  \n          <button\n            class='button button--add report-builder__section-button-add'\n            type='button'\n            {{action 'addManualItem' 'timesheet'}}\n          >\n            {{t\n              'entity.builda-price.operations.outgoing.report-builder.Add manual item'\n            }}\n          </button>\n        {{/if}}\n  \n        {{! Labour totals line }}\n        <span class='report-builder__section-total'>\n          <span class='report-builder__section-total-column'>\n            <span>{{t\n                'entity.builda-price.operations.outgoing.report-builder.Labour hours total'\n              }}</span>\n            {{format-duration\n              this.computedTotals.timesheet.manHoursTotal\n              emptyPlaceholder='–'\n            }}\n          </span>\n  \n          <span class='report-builder__section-total-column'>\n            <span>{{t 'shared.report-builder.Labour subtotal'}}</span>\n            {{number-format\n              this.computedTotals.timesheet.subtotal\n              style='currency'\n              dashZero=true\n            }}\n          </span>\n  \n          <span\n            class='report-builder__section-total-column'\n            data-test-labour-markup\n          >\n            <SelectInput\n              @value={{this.timesheetProfitType}}\n              @action={{action 'setProfitType' 'timesheet'}}\n              @class='report-builder__section-total-column-select-box-replacement'\n              as |si|\n            >\n              <si.option @value='dollar'>{{t 'common.Markup'}}-{{t\n                  'common.Currency'\n                }}\n              </si.option>\n              <si.option @value='margin'>{{t 'common.Margin'}}-{{t\n                  'common.Percentage'\n                }}</si.option>\n              <si.option @value='markup'>{{t 'common.Markup'}}-{{t\n                  'common.Percentage'\n                }}</si.option>\n            </SelectInput>\n            {{#if (eq this.timesheetProfitType 'dollar')}}\n              <FormattedInput\n                @class='text-input'\n                @placeholder='$0.00'\n                @update={{action (mut this.timesheetProfit)}}\n                @number={{this.timesheetDollarProfit}}\n                @format='currency'\n                @selectOnFocus={{true}}\n              />\n            {{else if (eq this.timesheetProfitType 'margin')}}\n              <FormattedInput\n                @class='text-input'\n                @placeholder='0%'\n                @update={{action (mut this.timesheetProfit)}}\n                @number={{this.timesheetMargin}}\n                @format='percentage'\n                @selectOnFocus={{true}}\n              />\n            {{else if (eq this.timesheetProfitType 'markup')}}\n              <FormattedInput\n                @class='text-input'\n                @placeholder='0%'\n                @update={{action (mut this.timesheetProfit)}}\n                @number={{this.timesheetMarkup}}\n                @format='percentage'\n                @selectOnFocus={{true}}\n              />\n            {{/if}}\n          </span>\n  \n          <span class='report-builder__section-total-column'>\n            <span>{{t 'shared.report-builder.Labour total'}}</span>\n            {{number-format\n              this.computedTotals.timesheet.total\n              style='currency'\n              dashZero=true\n            }}\n          </span>\n        </span>\n      </section>\n  \n      {{! Subcontractor invocies section }}\n      <section class='report-builder__section' data-test-subcontractors>\n        <div class='report-builder__section-header'>\n          {{! Subcontractors header (toggle) }}\n          <h2\n            class='h2'\n            {{action this.toggleProperty 'subcontractorsSectionExpanded'}}\n          >\n            {{t 'common.Subcontractors'}}&nbsp;&nbsp;<FaIcon\n              @icon={{if\n                this.subcontractorsSectionExpanded\n                'angle-down'\n                'angle-right'\n              }}\n            />\n          </h2>\n        </div>\n  \n        {{! Subcontractor invoices content }}\n        {{#if this.subcontractorsSectionExpanded}}\n          {{#unless this.subcontractorInvoices.length}}\n            {{! Message for when there are no subcontractor invoices in the report }}\n            {{#unless this.filterByDate}}\n              <p class='report-builder__section-empty'>\n                {{t\n                  'entity.builda-price.operations.outgoing.report-builder.There are no subcontractor bills'\n                }}\n              </p>\n            {{else}}\n              <p class='report-builder__section-empty'>\n                {{t\n                  'entity.builda-price.operations.outgoing.report-builder.thereAreNoSubcontractorBillsWithAnIssueDateBetweenXAndY'\n                  start=(moment-format this.startDate (t 'date.shortWithWeekday'))\n                  end=(moment-format this.endDate (t 'date.shortWithWeekday'))\n                }}\n              </p>\n            {{/unless}}\n  \n          {{else}}\n            <button\n              class='text-button text-button--spaced report-builder__section-header-button'\n              type='button'\n              {{action 'toggleSubcontractorsReportedSelected'}}\n            >\n              {{t\n                'entity.builda-price.operations.outgoing.report-builder.Select previously unreported items'\n              }}\n            </button>\n  \n            <ReportBuilderPm::InvoiceTypeTable\n              @title={{t 'shared.report-builder.Subcontractor bills'}}\n              @headingName='Task'\n              @toggleAllSelected={{action 'toggleSubcontractorsSelected'}}\n              @toggleResourceItemsSelected={{action\n                'toggleResourceItemsSelected'\n              }}\n              @toggleItemsVisible={{action 'toggleItemsVisible'}}\n              @toggleInvoiceItemSelected={{action 'toggleInvoiceItemSelected'}}\n              @setItemReportedFalse={{action 'setItemReportedFalse'}}\n              @setItemsReportedFalse={{action 'setItemsReportedFalse'}}\n              @allSelected={{this.allSubcontractorsSelected}}\n              @partSelected={{this.partSubcontractorsSelected}}\n              @invoices={{this.subcontractorInvoices}}\n            />\n          {{/unless}}\n  \n          {{! Items that are manually added to the subcontractor section }}\n          {{#if this.manualSubcontractors.length}}\n            <ReportBuilderPm::ManualTypeTable\n              @title={{t\n                'entity.builda-price.operations.outgoing.report-builder.Manual items'\n              }}\n              @items={{this.manualSubcontractors}}\n              @deleteItem={{action 'deleteManualItem'}}\n              @manualKey='subcontractor'\n            />\n          {{/if}}\n          <button\n            class='button button--add report-builder__section-button-add'\n            type='button'\n            {{action 'addManualItem' 'subcontractor'}}\n          >\n            {{t\n              'entity.builda-price.operations.outgoing.report-builder.Add manual item'\n            }}\n          </button>\n        {{/if}}\n  \n        {{! Subcontractors totals }}\n        <span class='report-builder__section-total'>\n          <span class='report-builder__section-total-column'>\n            <span>{{t\n                'entity.builda-price.operations.outgoing.report-builder.Subcontractors subtotal'\n              }}</span>\n            {{number-format\n              this.computedTotals.subcontractor.subtotal\n              style='currency'\n              dashZero=true\n            }}\n          </span>\n  \n          <span\n            class='report-builder__section-total-column'\n            data-test-subcontractors-markup\n          >\n            <SelectInput\n              @value={{this.subcontractorProfitType}}\n              @action={{action 'setProfitType' 'subcontractor'}}\n              @class='report-builder__section-total-column-select-box-replacement'\n              as |si|\n            >\n              <si.option @value='dollar'>{{t 'common.Markup'}}-{{t\n                  'common.Currency'\n                }}\n              </si.option>\n              <si.option @value='margin'>{{t 'common.Margin'}}-{{t\n                  'common.Percentage'\n                }}</si.option>\n              <si.option @value='markup'>{{t 'common.Markup'}}-{{t\n                  'common.Percentage'\n                }}</si.option>\n            </SelectInput>\n            {{#if (eq this.subcontractorProfitType 'dollar')}}\n              <FormattedInput\n                @class='text-input'\n                @placeholder='$0.00'\n                @update={{action (mut this.subcontractorProfit)}}\n                @number={{this.subcontractorDollarProfit}}\n                @format='currency'\n                @selectOnFocus={{true}}\n              />\n            {{else if (eq this.subcontractorProfitType 'margin')}}\n              <FormattedInput\n                @class='text-input'\n                @placeholder='0%'\n                @update={{action (mut this.subcontractorProfit)}}\n                @number={{this.subcontractorMargin}}\n                @format='percentage'\n                @selectOnFocus={{true}}\n              />\n            {{else if (eq this.subcontractorProfitType 'markup')}}\n              <FormattedInput\n                @class='text-input'\n                @placeholder='0%'\n                @update={{action (mut this.subcontractorProfit)}}\n                @number={{this.subcontractorMarkup}}\n                @format='percentage'\n                @selectOnFocus={{true}}\n              />\n            {{/if}}\n          </span>\n  \n          <span class='report-builder__section-total-column'>\n            <span>{{t\n                'entity.builda-price.operations.outgoing.report-builder.Subcontractors total'\n              }}</span>\n            {{number-format\n              this.computedTotals.subcontractor.total\n              style='currency'\n              dashZero=true\n            }}\n          </span>\n        </span>\n      </section>\n      <br />\n      <br />\n    {{/unless}}\n  </article>\n  */\n  {\n    \"id\": \"t3v6p2SE\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"common.Report builder\\\"],null]]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"report-builder__sub-header-dropdown float-end\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,9],[[24,0,\\\"button--spaced\\\"],[24,\\\"data-test-export-dropdown\\\",\\\"\\\"]],[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[28,[37,10],[[30,0,[\\\"selectedProject\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white\\\"],[15,\\\"disabled\\\",[28,[37,10],[[30,0,[\\\"selectedProject\\\"]]],null]],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,\\\"data-test-export-pdf\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,13],[[30,0],\\\"downloadReport\\\",\\\"pdf\\\"],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.Prepare PDF report\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,\\\"data-test-export-excel\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,13],[[30,0],\\\"downloadReport\\\",\\\"excel\\\"],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.Prepare Excel report\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,\\\"data-test-export-csv\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,13],[[30,0],\\\"downloadReport\\\",\\\"csv\\\"],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.Prepare CSV report\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[1]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"common.Report builder\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,15],[[24,\\\"data-test-export-dropdown\\\",\\\"\\\"]],[[\\\"@buttonClasses\\\",\\\"@buttonText\\\",\\\"@title\\\",\\\"@disabled\\\",\\\"@align\\\"],[\\\"button button--download button--spaced\\\",\\\"Download report\\\",\\\"Download Report\\\",[28,[37,10],[[30,0,[\\\"selectedProject\\\"]]],null],\\\"right\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[11,\\\"label\\\"],[24,0,\\\"overlaid-dropdown__option\\\"],[24,\\\"data-test-export-pdf\\\",\\\"\\\"],[4,[38,13],[[30,0],\\\"downloadReport\\\",\\\"pdf\\\"],null],[12],[1,\\\"\\\\n          \\\"],[10,1],[14,0,\\\"no-wrap\\\"],[12],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.Prepare PDF report\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"label\\\"],[24,0,\\\"overlaid-dropdown__option\\\"],[24,\\\"data-test-export-excel\\\",\\\"\\\"],[4,[38,13],[[30,0],\\\"downloadReport\\\",\\\"excel\\\"],null],[12],[1,\\\"\\\\n          \\\"],[10,1],[14,0,\\\"no-wrap\\\"],[12],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.Prepare Excel report\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"label\\\"],[24,0,\\\"overlaid-dropdown__option\\\"],[24,\\\"data-test-export-csv\\\",\\\"\\\"],[4,[38,13],[[30,0],\\\"downloadReport\\\",\\\"csv\\\"],null],[12],[1,\\\"\\\\n          \\\"],[10,1],[14,0,\\\"no-wrap\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.Prepare CSV report\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[1,\\\"  \\\"],[10,0],[14,0,\\\"report-builder__sub-header\\\"],[12],[1,\\\"\\\\n    \\\"],[10,1],[14,0,\\\"report-builder__sub-header-item\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,18],null,[[\\\"@disabled\\\",\\\"@align\\\",\\\"@startDate\\\",\\\"@endDate\\\",\\\"@onApply\\\"],[[52,[30,0,[\\\"filterByDate\\\"]],false,true],\\\"left\\\",[30,0,[\\\"jsStartDate\\\"]],[30,0,[\\\"jsEndDate\\\"]],[28,[37,13],[[30,0],\\\"setDateRange\\\"],null]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,1],[14,0,\\\"report-builder__sub-header-item ms-2\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,19],[[24,0,\\\"mx-2\\\"],[24,\\\"data-test-report-builder-filterCheckBox\\\",\\\"\\\"],[4,[38,20],[\\\"click\\\",[28,[37,13],[[30,0],\\\"toggleFilter\\\"],null]],null]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"filterByDate\\\"]]]],null],[1,[28,[35,4],[\\\"common.Filter by date\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,1],[14,0,\\\"report-builder__sub-header-item\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[12],[1,\\\"    \\\"],[1,[28,[35,4],[\\\"common.Selected project\\\"],null]],[1,\\\":  \\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,21],[[24,\\\"data-test-report-builder-project\\\",\\\"\\\"]],[[\\\"@searchEnabled\\\",\\\"@options\\\",\\\"@selected\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@onChange\\\"],[true,[30,0,[\\\"groupedProjects\\\"]],[30,0,[\\\"selectedProject\\\"]],\\\"name\\\",\\\" – \\\",[28,[37,13],[[30,0],\\\"setProject\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[30,2,[\\\"name\\\"]]],[1,\\\"\\\\n      \\\"]],[2]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"selectedProject\\\"]],[[[1,\\\"      \\\"],[10,1],[14,0,\\\"report-builder__sub-header-item\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[12],[1,\\\"    \\\"],[1,[28,[35,4],[\\\"common.Selected tasks\\\"],null]],[1,\\\":  \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,22],null,[[\\\"@showTaskPopUp\\\",\\\"@selectedProject\\\",\\\"@selectedTasks\\\",\\\"@setSelectedTasks\\\",\\\"@removeSelectedTask\\\"],[[30,0,[\\\"showTaskPopUp\\\"]],[30,0,[\\\"selectedProject\\\"]],[30,0,[\\\"selectedTasks\\\"]],[28,[37,13],[[30,0],\\\"setSelectedTasks\\\"],null],[28,[37,13],[[30,0],\\\"removeSelectedTask\\\"],null]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"selectedTasks\\\",\\\"length\\\"]],[[[1,\\\"            \\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,4,\\\"button\\\"],[4,[38,13],[[30,0],\\\"removeAllTaskFilters\\\"],null],[12],[1,\\\"\\\\n            \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\" \\\"],[1,[28,[35,4],[\\\"common.Remove filter\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"selectedProject\\\"]]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"error-page error-page--no-data\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2 error-page__icon\\\"],[12],[8,[39,12],null,[[\\\"@icon\\\"],[\\\"info-circle\\\"]],null],[13],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3 error-page__title\\\"],[12],[1,[28,[35,4],[\\\"common.Select a project\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\n\\\"],[1,\\\"    \\\"],[10,0],[14,0,\\\"report-builder__sub-header--fixed\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h2\\\"],[14,0,\\\"float-start\\\"],[12],[1,[28,[35,4],[\\\"shared.report-builder.Report total\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,1],[14,0,\\\"report-builder__section-total\\\"],[12],[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"report-builder__section-total-column\\\"],[14,\\\"data-test-report-builder-subtotal\\\",\\\"\\\"],[12],[1,\\\"\\\\n          \\\"],[10,1],[12],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.Subtotal\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[1,[28,[35,25],[[30,0,[\\\"computedTotals\\\",\\\"total\\\",\\\"subtotal\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,1],[14,0,\\\"report-builder__section-total-column\\\"],[12],[1,\\\"\\\\n          \\\"],[10,1],[12],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.Margin total\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[1,[28,[35,25],[[30,0,[\\\"computedTotals\\\",\\\"total\\\",\\\"margin\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,1],[14,0,\\\"report-builder__section-total-column\\\"],[14,\\\"data-test-report-builder-total\\\",\\\"\\\"],[12],[1,\\\"\\\\n          \\\"],[10,1],[12],[1,[28,[35,4],[\\\"common.Total\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[1,[28,[35,25],[[30,0,[\\\"computedTotals\\\",\\\"total\\\",\\\"total\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"    \\\"],[10,\\\"section\\\"],[14,0,\\\"report-builder__section\\\"],[14,\\\"data-test-materials\\\",\\\"\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"report-builder__section-header\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"        \\\"],[11,\\\"h2\\\"],[24,0,\\\"h2\\\"],[4,[38,13],[[30,0],[30,0,[\\\"toggleProperty\\\"]],\\\"materialsSectionExpanded\\\"],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Materials\\\"],null]],[1,\\\"  \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"materialsSectionExpanded\\\"]],\\\"angle-down\\\",\\\"angle-right\\\"]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"materialsSectionExpanded\\\"]],[[[41,[51,[30,0,[\\\"materialInvoices\\\",\\\"length\\\"]]],[[[41,[51,[30,0,[\\\"filterByDate\\\"]]],[[[1,\\\"            \\\"],[10,2],[14,0,\\\"report-builder__section-empty\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.There are no materials bills\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[10,2],[14,0,\\\"report-builder__section-empty\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.thereAreNoMaterialsBillsWithAnIssueDateBetween\\\"],[[\\\"start\\\",\\\"end\\\"],[[28,[37,28],[[30,0,[\\\"startDate\\\"]],[28,[37,4],[\\\"date.shortWithWeekday\\\"],null]],null],[28,[37,28],[[30,0,[\\\"endDate\\\"]],[28,[37,4],[\\\"date.shortWithWeekday\\\"],null]],null]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--spaced report-builder__section-header-button\\\"],[24,4,\\\"button\\\"],[4,[38,13],[[30,0],\\\"toggleMaterialsReportedSelected\\\"],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.Select previously unreported items\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,29],null,[[\\\"@title\\\",\\\"@toggleAllSelected\\\",\\\"@toggleResourceItemsSelected\\\",\\\"@toggleItemsVisible\\\",\\\"@toggleInvoiceItemSelected\\\",\\\"@setItemReportedFalse\\\",\\\"@setItemsReportedFalse\\\",\\\"@allSelected\\\",\\\"@partSelected\\\",\\\"@invoices\\\"],[[28,[37,4],[\\\"entity.builda-price.operations.outgoing.report-builder.Material bills\\\"],null],[28,[37,13],[[30,0],\\\"toggleMaterialsSelected\\\"],null],[28,[37,13],[[30,0],\\\"toggleResourceItemsSelected\\\"],null],[28,[37,13],[[30,0],\\\"toggleItemsVisible\\\"],null],[28,[37,13],[[30,0],\\\"toggleInvoiceItemSelected\\\"],null],[28,[37,13],[[30,0],\\\"setItemReportedFalse\\\"],null],[28,[37,13],[[30,0],\\\"setItemsReportedFalse\\\"],null],[30,0,[\\\"allMaterialsSelected\\\"]],[30,0,[\\\"partMaterialsSelected\\\"]],[30,0,[\\\"materialInvoices\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"manualMaterials\\\",\\\"length\\\"]],[[[1,\\\"          \\\"],[8,[39,30],null,[[\\\"@title\\\",\\\"@items\\\",\\\"@deleteItem\\\",\\\"@manualKey\\\"],[[28,[37,4],[\\\"entity.builda-price.operations.outgoing.report-builder.Manual items\\\"],null],[30,0,[\\\"manualMaterials\\\"]],[28,[37,13],[[30,0],\\\"deleteManualItem\\\"],null],\\\"material\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add report-builder__section-button-add\\\"],[24,4,\\\"button\\\"],[4,[38,13],[[30,0],\\\"addManualItem\\\",\\\"material\\\"],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.Add manual item\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[1,\\\"      \\\"],[10,1],[14,0,\\\"report-builder__section-total\\\"],[12],[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"report-builder__section-total-column\\\"],[12],[1,\\\"\\\\n          \\\"],[10,1],[12],[1,[28,[35,4],[\\\"shared.report-builder.Materials subtotal\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[1,[28,[35,25],[[30,0,[\\\"computedTotals\\\",\\\"invoice\\\",\\\"subtotal\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,1],[14,0,\\\"report-builder__section-total-column\\\"],[14,\\\"data-test-materials-markup\\\",\\\"\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,31],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"invoiceProfitType\\\"]],[28,[37,13],[[30,0],\\\"setProfitType\\\",\\\"invoice\\\"],null],\\\"report-builder__section-total-column-select-box-replacement\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"dollar\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Markup\\\"],null]],[1,\\\"-\\\"],[1,[28,[35,4],[\\\"common.Currency\\\"],null]],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"margin\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Margin\\\"],null]],[1,\\\"-\\\"],[1,[28,[35,4],[\\\"common.Percentage\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"markup\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Markup\\\"],null]],[1,\\\"-\\\"],[1,[28,[35,4],[\\\"common.Percentage\\\"],null]]],[]]]]],[1,\\\"\\\\n          \\\"]],[3]]]]],[1,\\\"\\\\n\\\"],[41,[28,[37,32],[[30,0,[\\\"invoiceProfitType\\\"]],\\\"dollar\\\"],null],[[[1,\\\"            \\\"],[8,[39,33],null,[[\\\"@class\\\",\\\"@placeholder\\\",\\\"@update\\\",\\\"@number\\\",\\\"@format\\\",\\\"@selectOnFocus\\\"],[\\\"text-input\\\",\\\"$0.00\\\",[28,[37,13],[[30,0],[28,[37,34],[[30,0,[\\\"invoiceProfit\\\"]]],null]],null],[30,0,[\\\"invoiceDollarProfit\\\"]],\\\"currency\\\",true]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,32],[[30,0,[\\\"invoiceProfitType\\\"]],\\\"margin\\\"],null],[[[1,\\\"            \\\"],[8,[39,33],null,[[\\\"@class\\\",\\\"@placeholder\\\",\\\"@update\\\",\\\"@number\\\",\\\"@format\\\",\\\"@selectOnFocus\\\"],[\\\"text-input\\\",\\\"0%\\\",[28,[37,13],[[30,0],[28,[37,34],[[30,0,[\\\"invoiceProfit\\\"]]],null]],null],[30,0,[\\\"invoiceMargin\\\"]],\\\"percentage\\\",true]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,32],[[30,0,[\\\"invoiceProfitType\\\"]],\\\"markup\\\"],null],[[[1,\\\"            \\\"],[8,[39,33],null,[[\\\"@class\\\",\\\"@placeholder\\\",\\\"@update\\\",\\\"@number\\\",\\\"@format\\\",\\\"@selectOnFocus\\\"],[\\\"text-input\\\",\\\"0%\\\",[28,[37,13],[[30,0],[28,[37,34],[[30,0,[\\\"invoiceProfit\\\"]]],null]],null],[30,0,[\\\"invoiceMarkup\\\"]],\\\"percentage\\\",true]],null],[1,\\\"\\\\n          \\\"]],[]],null]],[]]]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,1],[14,0,\\\"report-builder__section-total-column\\\"],[12],[1,\\\"\\\\n          \\\"],[10,1],[12],[1,[28,[35,4],[\\\"shared.report-builder.Materials total\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[1,[28,[35,25],[[30,0,[\\\"computedTotals\\\",\\\"invoice\\\",\\\"total\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"    \\\"],[10,\\\"section\\\"],[14,0,\\\"report-builder__section\\\"],[14,\\\"data-test-labour\\\",\\\"\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"report-builder__section-header\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"        \\\"],[11,\\\"h2\\\"],[24,0,\\\"h2\\\"],[4,[38,13],[[30,0],[30,0,[\\\"toggleProperty\\\"]],\\\"labourSectionExpanded\\\"],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Labour\\\"],null]],[1,\\\"  \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"labourSectionExpanded\\\"]],\\\"angle-down\\\",\\\"angle-right\\\"]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"workers\\\",\\\"length\\\"]],[[[1,\\\"          \\\"],[10,1],[14,0,\\\"report-builder__section-header-meta\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"use-charge-out-rate-toggle\\\"],[12],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.Use charge out rates\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[8,[39,19],[[24,1,\\\"use-charge-out-rate-toggle\\\"]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"useChargeOutRates\\\"]]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"labourSectionExpanded\\\"]],[[[41,[51,[28,[37,35],[[30,0,[\\\"workers\\\",\\\"length\\\"]],[30,0,[\\\"labourInvoices\\\",\\\"length\\\"]]],null]],[[[41,[51,[30,0,[\\\"filterByDate\\\"]]],[[[1,\\\"            \\\"],[10,2],[14,0,\\\"report-builder__section-empty\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.There are no timesheets\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[10,2],[14,0,\\\"report-builder__section-empty\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.thereAreNoTimesheetsCreatedBetweenXAndY\\\"],[[\\\"start\\\",\\\"end\\\"],[[28,[37,28],[[30,0,[\\\"startDate\\\"]],[28,[37,4],[\\\"date.shortWithWeekday\\\"],null]],null],[28,[37,28],[[30,0,[\\\"endDate\\\"]],[28,[37,4],[\\\"date.shortWithWeekday\\\"],null]],null]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--spaced report-builder__section-header-button\\\"],[24,4,\\\"button\\\"],[4,[38,13],[[30,0],\\\"toggleTimesheetsReportedSelected\\\"],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.Select previously unreported items\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"workers\\\",\\\"length\\\"]],[[[1,\\\"            \\\"],[8,[39,36],null,[[\\\"@title\\\",\\\"@headingName\\\",\\\"@workers\\\",\\\"@allTimesheetsSelected\\\",\\\"@partTimesheetsSelected\\\",\\\"@useChargeOutRates\\\",\\\"@toggleTimesheetsSelected\\\",\\\"@toggleWorkersTimesheetsSelected\\\",\\\"@toggleItemsVisible\\\",\\\"@toggleTimesheetSelected\\\",\\\"@setItemsReportedFalse\\\",\\\"@setItemReportedFalse\\\"],[[28,[37,4],[\\\"common.Timesheets\\\"],null],\\\"Task\\\",[30,0,[\\\"workers\\\"]],[30,0,[\\\"allTimesheetsSelected\\\"]],[30,0,[\\\"partTimesheetsSelected\\\"]],[30,0,[\\\"useChargeOutRates\\\"]],[28,[37,13],[[30,0],\\\"toggleTimesheetsSelected\\\"],null],[28,[37,13],[[30,0],\\\"toggleWorkersTimesheetsSelected\\\"],null],[28,[37,13],[[30,0],\\\"toggleItemsVisible\\\"],null],[28,[37,13],[[30,0],\\\"toggleTimesheetSelected\\\"],null],[28,[37,13],[[30,0],\\\"setItemsReportedFalse\\\"],null],[28,[37,13],[[30,0],\\\"setItemReportedFalse\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"labourInvoices\\\",\\\"length\\\"]],[[[1,\\\"            \\\"],[8,[39,29],null,[[\\\"@title\\\",\\\"@headingName\\\",\\\"@toggleAllSelected\\\",\\\"@toggleResourceItemsSelected\\\",\\\"@toggleItemsVisible\\\",\\\"@toggleInvoiceItemSelected\\\",\\\"@setItemReportedFalse\\\",\\\"@setItemsReportedFalse\\\",\\\"@allSelected\\\",\\\"@partSelected\\\",\\\"@invoices\\\"],[[28,[37,4],[\\\"shared.report-builder.Labour bills\\\"],null],\\\"Task\\\",[28,[37,13],[[30,0],\\\"toggleLabourSelected\\\"],null],[28,[37,13],[[30,0],\\\"toggleResourceItemsSelected\\\"],null],[28,[37,13],[[30,0],\\\"toggleItemsVisible\\\"],null],[28,[37,13],[[30,0],\\\"toggleInvoiceItemSelected\\\"],null],[28,[37,13],[[30,0],\\\"setItemReportedFalse\\\"],null],[28,[37,13],[[30,0],\\\"setItemsReportedFalse\\\"],null],[30,0,[\\\"allLabourSelected\\\"]],[30,0,[\\\"partLabourSelected\\\"]],[30,0,[\\\"labourInvoices\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"manualTimesheets\\\",\\\"length\\\"]],[[[1,\\\"          \\\"],[8,[39,30],null,[[\\\"@title\\\",\\\"@items\\\",\\\"@deleteItem\\\",\\\"@manualKey\\\"],[[28,[37,4],[\\\"entity.builda-price.operations.outgoing.report-builder.Manual items\\\"],null],[30,0,[\\\"manualTimesheets\\\"]],[28,[37,13],[[30,0],\\\"deleteManualItem\\\"],null],\\\"timesheet\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add report-builder__section-button-add\\\"],[24,4,\\\"button\\\"],[4,[38,13],[[30,0],\\\"addManualItem\\\",\\\"timesheet\\\"],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.Add manual item\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[1,\\\"      \\\"],[10,1],[14,0,\\\"report-builder__section-total\\\"],[12],[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"report-builder__section-total-column\\\"],[12],[1,\\\"\\\\n          \\\"],[10,1],[12],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.Labour hours total\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[1,[28,[35,37],[[30,0,[\\\"computedTotals\\\",\\\"timesheet\\\",\\\"manHoursTotal\\\"]]],[[\\\"emptyPlaceholder\\\"],[\\\"–\\\"]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,1],[14,0,\\\"report-builder__section-total-column\\\"],[12],[1,\\\"\\\\n          \\\"],[10,1],[12],[1,[28,[35,4],[\\\"shared.report-builder.Labour subtotal\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[1,[28,[35,25],[[30,0,[\\\"computedTotals\\\",\\\"timesheet\\\",\\\"subtotal\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,1],[14,0,\\\"report-builder__section-total-column\\\"],[14,\\\"data-test-labour-markup\\\",\\\"\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,31],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"timesheetProfitType\\\"]],[28,[37,13],[[30,0],\\\"setProfitType\\\",\\\"timesheet\\\"],null],\\\"report-builder__section-total-column-select-box-replacement\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[30,4,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"dollar\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Markup\\\"],null]],[1,\\\"-\\\"],[1,[28,[35,4],[\\\"common.Currency\\\"],null]],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,4,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"margin\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Margin\\\"],null]],[1,\\\"-\\\"],[1,[28,[35,4],[\\\"common.Percentage\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,4,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"markup\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Markup\\\"],null]],[1,\\\"-\\\"],[1,[28,[35,4],[\\\"common.Percentage\\\"],null]]],[]]]]],[1,\\\"\\\\n          \\\"]],[4]]]]],[1,\\\"\\\\n\\\"],[41,[28,[37,32],[[30,0,[\\\"timesheetProfitType\\\"]],\\\"dollar\\\"],null],[[[1,\\\"            \\\"],[8,[39,33],null,[[\\\"@class\\\",\\\"@placeholder\\\",\\\"@update\\\",\\\"@number\\\",\\\"@format\\\",\\\"@selectOnFocus\\\"],[\\\"text-input\\\",\\\"$0.00\\\",[28,[37,13],[[30,0],[28,[37,34],[[30,0,[\\\"timesheetProfit\\\"]]],null]],null],[30,0,[\\\"timesheetDollarProfit\\\"]],\\\"currency\\\",true]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,32],[[30,0,[\\\"timesheetProfitType\\\"]],\\\"margin\\\"],null],[[[1,\\\"            \\\"],[8,[39,33],null,[[\\\"@class\\\",\\\"@placeholder\\\",\\\"@update\\\",\\\"@number\\\",\\\"@format\\\",\\\"@selectOnFocus\\\"],[\\\"text-input\\\",\\\"0%\\\",[28,[37,13],[[30,0],[28,[37,34],[[30,0,[\\\"timesheetProfit\\\"]]],null]],null],[30,0,[\\\"timesheetMargin\\\"]],\\\"percentage\\\",true]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,32],[[30,0,[\\\"timesheetProfitType\\\"]],\\\"markup\\\"],null],[[[1,\\\"            \\\"],[8,[39,33],null,[[\\\"@class\\\",\\\"@placeholder\\\",\\\"@update\\\",\\\"@number\\\",\\\"@format\\\",\\\"@selectOnFocus\\\"],[\\\"text-input\\\",\\\"0%\\\",[28,[37,13],[[30,0],[28,[37,34],[[30,0,[\\\"timesheetProfit\\\"]]],null]],null],[30,0,[\\\"timesheetMarkup\\\"]],\\\"percentage\\\",true]],null],[1,\\\"\\\\n          \\\"]],[]],null]],[]]]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,1],[14,0,\\\"report-builder__section-total-column\\\"],[12],[1,\\\"\\\\n          \\\"],[10,1],[12],[1,[28,[35,4],[\\\"shared.report-builder.Labour total\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[1,[28,[35,25],[[30,0,[\\\"computedTotals\\\",\\\"timesheet\\\",\\\"total\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"    \\\"],[10,\\\"section\\\"],[14,0,\\\"report-builder__section\\\"],[14,\\\"data-test-subcontractors\\\",\\\"\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"report-builder__section-header\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"        \\\"],[11,\\\"h2\\\"],[24,0,\\\"h2\\\"],[4,[38,13],[[30,0],[30,0,[\\\"toggleProperty\\\"]],\\\"subcontractorsSectionExpanded\\\"],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Subcontractors\\\"],null]],[1,\\\"  \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"subcontractorsSectionExpanded\\\"]],\\\"angle-down\\\",\\\"angle-right\\\"]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"subcontractorsSectionExpanded\\\"]],[[[41,[51,[30,0,[\\\"subcontractorInvoices\\\",\\\"length\\\"]]],[[[41,[51,[30,0,[\\\"filterByDate\\\"]]],[[[1,\\\"            \\\"],[10,2],[14,0,\\\"report-builder__section-empty\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.There are no subcontractor bills\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[10,2],[14,0,\\\"report-builder__section-empty\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.thereAreNoSubcontractorBillsWithAnIssueDateBetweenXAndY\\\"],[[\\\"start\\\",\\\"end\\\"],[[28,[37,28],[[30,0,[\\\"startDate\\\"]],[28,[37,4],[\\\"date.shortWithWeekday\\\"],null]],null],[28,[37,28],[[30,0,[\\\"endDate\\\"]],[28,[37,4],[\\\"date.shortWithWeekday\\\"],null]],null]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--spaced report-builder__section-header-button\\\"],[24,4,\\\"button\\\"],[4,[38,13],[[30,0],\\\"toggleSubcontractorsReportedSelected\\\"],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.Select previously unreported items\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,29],null,[[\\\"@title\\\",\\\"@headingName\\\",\\\"@toggleAllSelected\\\",\\\"@toggleResourceItemsSelected\\\",\\\"@toggleItemsVisible\\\",\\\"@toggleInvoiceItemSelected\\\",\\\"@setItemReportedFalse\\\",\\\"@setItemsReportedFalse\\\",\\\"@allSelected\\\",\\\"@partSelected\\\",\\\"@invoices\\\"],[[28,[37,4],[\\\"shared.report-builder.Subcontractor bills\\\"],null],\\\"Task\\\",[28,[37,13],[[30,0],\\\"toggleSubcontractorsSelected\\\"],null],[28,[37,13],[[30,0],\\\"toggleResourceItemsSelected\\\"],null],[28,[37,13],[[30,0],\\\"toggleItemsVisible\\\"],null],[28,[37,13],[[30,0],\\\"toggleInvoiceItemSelected\\\"],null],[28,[37,13],[[30,0],\\\"setItemReportedFalse\\\"],null],[28,[37,13],[[30,0],\\\"setItemsReportedFalse\\\"],null],[30,0,[\\\"allSubcontractorsSelected\\\"]],[30,0,[\\\"partSubcontractorsSelected\\\"]],[30,0,[\\\"subcontractorInvoices\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"manualSubcontractors\\\",\\\"length\\\"]],[[[1,\\\"          \\\"],[8,[39,30],null,[[\\\"@title\\\",\\\"@items\\\",\\\"@deleteItem\\\",\\\"@manualKey\\\"],[[28,[37,4],[\\\"entity.builda-price.operations.outgoing.report-builder.Manual items\\\"],null],[30,0,[\\\"manualSubcontractors\\\"]],[28,[37,13],[[30,0],\\\"deleteManualItem\\\"],null],\\\"subcontractor\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add report-builder__section-button-add\\\"],[24,4,\\\"button\\\"],[4,[38,13],[[30,0],\\\"addManualItem\\\",\\\"subcontractor\\\"],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.Add manual item\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[1,\\\"      \\\"],[10,1],[14,0,\\\"report-builder__section-total\\\"],[12],[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"report-builder__section-total-column\\\"],[12],[1,\\\"\\\\n          \\\"],[10,1],[12],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.Subcontractors subtotal\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[1,[28,[35,25],[[30,0,[\\\"computedTotals\\\",\\\"subcontractor\\\",\\\"subtotal\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,1],[14,0,\\\"report-builder__section-total-column\\\"],[14,\\\"data-test-subcontractors-markup\\\",\\\"\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,31],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"subcontractorProfitType\\\"]],[28,[37,13],[[30,0],\\\"setProfitType\\\",\\\"subcontractor\\\"],null],\\\"report-builder__section-total-column-select-box-replacement\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[30,5,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"dollar\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Markup\\\"],null]],[1,\\\"-\\\"],[1,[28,[35,4],[\\\"common.Currency\\\"],null]],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,5,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"margin\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Margin\\\"],null]],[1,\\\"-\\\"],[1,[28,[35,4],[\\\"common.Percentage\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,5,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"markup\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Markup\\\"],null]],[1,\\\"-\\\"],[1,[28,[35,4],[\\\"common.Percentage\\\"],null]]],[]]]]],[1,\\\"\\\\n          \\\"]],[5]]]]],[1,\\\"\\\\n\\\"],[41,[28,[37,32],[[30,0,[\\\"subcontractorProfitType\\\"]],\\\"dollar\\\"],null],[[[1,\\\"            \\\"],[8,[39,33],null,[[\\\"@class\\\",\\\"@placeholder\\\",\\\"@update\\\",\\\"@number\\\",\\\"@format\\\",\\\"@selectOnFocus\\\"],[\\\"text-input\\\",\\\"$0.00\\\",[28,[37,13],[[30,0],[28,[37,34],[[30,0,[\\\"subcontractorProfit\\\"]]],null]],null],[30,0,[\\\"subcontractorDollarProfit\\\"]],\\\"currency\\\",true]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,32],[[30,0,[\\\"subcontractorProfitType\\\"]],\\\"margin\\\"],null],[[[1,\\\"            \\\"],[8,[39,33],null,[[\\\"@class\\\",\\\"@placeholder\\\",\\\"@update\\\",\\\"@number\\\",\\\"@format\\\",\\\"@selectOnFocus\\\"],[\\\"text-input\\\",\\\"0%\\\",[28,[37,13],[[30,0],[28,[37,34],[[30,0,[\\\"subcontractorProfit\\\"]]],null]],null],[30,0,[\\\"subcontractorMargin\\\"]],\\\"percentage\\\",true]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,32],[[30,0,[\\\"subcontractorProfitType\\\"]],\\\"markup\\\"],null],[[[1,\\\"            \\\"],[8,[39,33],null,[[\\\"@class\\\",\\\"@placeholder\\\",\\\"@update\\\",\\\"@number\\\",\\\"@format\\\",\\\"@selectOnFocus\\\"],[\\\"text-input\\\",\\\"0%\\\",[28,[37,13],[[30,0],[28,[37,34],[[30,0,[\\\"subcontractorProfit\\\"]]],null]],null],[30,0,[\\\"subcontractorMarkup\\\"]],\\\"percentage\\\",true]],null],[1,\\\"\\\\n          \\\"]],[]],null]],[]]]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,1],[14,0,\\\"report-builder__section-total-column\\\"],[12],[1,\\\"\\\\n          \\\"],[10,1],[12],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.Subcontractors total\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[1,[28,[35,25],[[30,0,[\\\"computedTotals\\\",\\\"subcontractor\\\",\\\"total\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n    \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"po\\\",\\\"project\\\",\\\"si\\\",\\\"si\\\",\\\"si\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"if\\\",\\\"header\\\",\\\"div\\\",\\\"pop-over\\\",\\\"not\\\",\\\"button\\\",\\\"fa-icon\\\",\\\"action\\\",\\\"h1\\\",\\\"overlaid-dropdown\\\",\\\"label\\\",\\\"span\\\",\\\"date-range-selector\\\",\\\"input\\\",\\\"on\\\",\\\"power-select\\\",\\\"multi-task-selector-input\\\",\\\"h2\\\",\\\"h3\\\",\\\"number-format\\\",\\\"section\\\",\\\"p\\\",\\\"moment-format\\\",\\\"report-builder-pm/invoice-type-table\\\",\\\"report-builder-pm/manual-type-table\\\",\\\"select-input\\\",\\\"eq\\\",\\\"formatted-input\\\",\\\"mut\\\",\\\"or\\\",\\\"report-builder-pm/timesheet-type-table\\\",\\\"format-duration\\\",\\\"br\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/outgoing/report-builder/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/outgoing/report-builder/pdf\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t\n          'entity.builda-price.operations.outgoing.report-builder.pdf.PDF export'\n        )\n      }}\n    />\n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component\n        'mobile-title-bar/back-button'\n        titleBarBack='entity.builda-price.operations.outgoing.report-builder'\n      }}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    {{#if (media 'isDesktop')}}\n      <div class='mb-2'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <header class='border-bottom mb-3 d-flex'>\n        <h2 class='my-2'>\n          {{t\n            'entity.builda-price.operations.outgoing.report-builder.pdf.PDF export'\n          }}\n        </h2>\n        <div class='ms-auto report-builder__sub-header-dropdown'>\n          {{#if this.isDownloading}}\n            <button type='button' class='btn btn-primary ms-2' disabled={{true}}>\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t 'common.Downloading'}}…\n            </button>\n          {{else}}\n            <button\n              type='button'\n              class='btn btn-primary ms-2'\n              {{on 'click' this.download}}\n            >\n              <FaIcon class='me-1' @icon='download' />\n              {{t 'common.Download'}}\n              PDF\n            </button>\n          {{/if}}\n        </div>\n      </header>\n    {{else}}\n      <div class='mb-3'>\n        {{#if this.isDownloading}}\n          <button type='button' class='btn btn-primary ms-2' disabled={{true}}>\n            <span class='spinner-border spinner-border-sm'></span>&nbsp;&nbsp;{{t\n              'common.Downloading'\n            }}…\n          </button>\n        {{else}}\n          <button\n            type='button'\n            class='btn btn-primary ms-2'\n            {{on 'click' this.download}}\n          >\n            <FaIcon class='me-1' @icon='download' />\n            {{t 'common.Download'}}\n            PDF\n          </button>\n        {{/if}}\n      </div>\n    {{/if}}\n  \n    <ReportExporterPm @model={{this.model}} />\n  </article>\n  */\n  {\n    \"id\": \"7z+AHyzX\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"entity.builda-price.operations.outgoing.report-builder.pdf.PDF export\\\"],null]]]]]],null],[1,\\\"\\\\n  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/back-button\\\",0,null,[[\\\"titleBarBack\\\"],[\\\"entity.builda-price.operations.outgoing.report-builder\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-2\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,8],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h2\\\"],[14,0,\\\"my-2\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.pdf.PDF export\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"ms-auto report-builder__sub-header-dropdown\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isDownloading\\\"]],[[[1,\\\"          \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary ms-2\\\"],[15,\\\"disabled\\\",true],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"download\\\"]]],null],[12],[1,\\\"\\\\n            \\\"],[8,[39,14],[[24,0,\\\"me-1\\\"]],[[\\\"@icon\\\"],[\\\"download\\\"]],null],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"common.Download\\\"],null]],[1,\\\"\\\\n            PDF\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isDownloading\\\"]],[[[1,\\\"        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary ms-2\\\"],[15,\\\"disabled\\\",true],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"download\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,14],[[24,0,\\\"me-1\\\"]],[[\\\"@icon\\\"],[\\\"download\\\"]],null],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Download\\\"],null]],[1,\\\"\\\\n          PDF\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n  \\\"],[8,[39,15],null,[[\\\"@model\\\"],[[30,0,[\\\"model\\\"]]]],null],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"if\\\",\\\"div\\\",\\\"page-title-breadcrumbs\\\",\\\"header\\\",\\\"h2\\\",\\\"button\\\",\\\"span\\\",\\\"on\\\",\\\"fa-icon\\\",\\\"report-exporter-pm\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/outgoing/report-builder/pdf.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/products\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component 'mobile-title-bar/burger-button'}}\n    />\n  \n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t 'common.Products')\n      }}\n    />\n  {{/unless}}\n  \n  <main class='page__container-content gap-zendesk-support-widget'>\n    <article class='mx-4 mt-4'>\n      <header class='border-bottom mb-3 pb-2 d-flex align-items-center'>\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>{{t 'common.Products'}}</h2>\n        {{/if}}\n      </header>\n      <div class='mb-1 pb-2 d-lg-flex justify-content-end align-items-center'>\n        {{#if (and this.isEditable this.productTableData.length)}}\n          <div class='flex-grow-1'>\n            <button\n              class='btn btn-link text-danger text-decoration-underline float-start'\n              type='button'\n              {{on 'click' (fn (mut this.isDeletingProducts) true)}}\n              disabled={{or (not this.selectProductIds.size) this.isLoading}}\n            >\n              {{t 'common.Delete'}}\n            </button>\n          </div>\n        {{/if}}\n        {{#if this.showFilters}}\n          <div class='mx-1'>\n            <SearchSelector\n              style='width: 200px;'\n              @disabled={{this.isLoading}}\n              @key='supplierName'\n              @optionKeys={{array 'supplierName'}}\n              @model={{this.supplierChangeSet}}\n              @noDataMessage={{t 'common.No suppliers'}}\n              @onLoad={{this.loadMoreSuppliers}}\n              @onSelect={{this.setSupplier}}\n              @placeholder={{t 'shared.product.Filter by supplier'}}\n            />\n          </div>\n          <Input\n            class='form-control m-1 w-auto'\n            placeholder={{t 'common.Search'}}\n            @value={{this.searchString}}\n            @type='text'\n            autofocus='true'\n            {{on 'input' (perform this.onChangeSearchTerm)}}\n            data-test-task-product-search\n          />\n        {{/if}}\n        {{#if this.isEditable}}\n          <button\n            type='button'\n            class='btn btn-secondary text-white text-nowrap m-1'\n            disabled={{this.isLoading}}\n            {{on 'click' (fn (mut this.addingProductsFromFile) true)}}\n          >\n            <FaIcon @icon='upload' />&nbsp;&nbsp;{{t\n              'shared.product.Add products from a file'\n            }}\n          </button>\n          <button\n            type='button'\n            class='btn btn-success text-white text-nowrap m-1'\n            disabled={{this.isLoading}}\n            {{on 'click' (fn (mut this.isAddingProduct) true)}}\n          >\n            <FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Add'}}\n          </button>\n        {{/if}}\n      </div>\n      <div class='entity-products__table-container'>\n        <PaginationTable\n          @tableHeader={{this.productTableHeader}}\n          @tableData={{this.productTableData}}\n          @noDataText={{t 'common.No data'}}\n          @pageSizes={{this.model.pageSizes}}\n          @pageSize={{this.model.pageSize}}\n          @pageIndex={{this.model.pageIndex}}\n          @onChangePageIndex={{this.onChangePageIndex}}\n          @onChangePageSize={{this.onChangePageSize}}\n          @isLoading={{this.model.products.isRunning}}\n          @totalRecords={{this.totalRecords}}\n          @class='table-bordered'\n        />\n      </div>\n    </article>\n  </main>\n  \n  {{#if this.isEditingProduct}}\n    <ProductEditor\n      @onSaveProduct={{this.onSaveProduct}}\n      @target={{this.model.entity}}\n      @productTable={{'entity-product'}}\n      @entity={{this.sessionData.entity}}\n      @productId={{this.selectedProductId}}\n      @onClose={{fn (mut this.isEditingProduct) false}}\n    />\n  {{/if}}\n  \n  {{#if this.isAddingProduct}}\n    <ProductSelector\n      @onAddProduct={{this.onAddProduct}}\n      @onCreateProduct={{this.onCreateProduct}}\n      @onClose={{fn (mut this.isAddingProduct) false}}\n    />\n  {{/if}}\n  \n  {{#if this.addingProductsFromFile}}\n    <ProductsUploader\n      @onUploadProducts={{this.updateProductList}}\n      @saveTarget={{'entity-products'}}\n      @onClose={{fn (mut this.addingProductsFromFile) false}}\n    />\n  {{/if}}\n  \n  {{#if this.isDeletingProducts}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.isDeletingProducts) false}}\n      @translucentOverlay={{true}}\n      @containerClass='block-module'\n    >\n      <p>\n        {{t\n          'shared.product.areYouSureYouWantToDeleteXProducts'\n          number=this.selectProductIds.size\n          products=(pluralize this.selectProductIds.size 'product')\n        }}\n      </p>\n      <footer class='block-module__footer'>\n        <div class='float-end d-flex align-items-center'>\n          {{#if this.deleteProducts.isRunning}}\n            <button\n              type='button'\n              class='btn btn-danger text-white ms-2'\n              disabled={{true}}\n            >\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t 'common.Deleting'}}…\n            </button>\n          {{else}}\n            <button\n              class='btn btn-danger text-white ms-2'\n              type='button'\n              disabled={{this.deleteProducts.isRunning}}\n              {{on 'click' (perform this.deleteProducts)}}\n            >\n              {{t 'common.Delete'}}\n            </button>\n            <button\n              class='btn btn-secondary text-white ms-2'\n              type='button'\n              disabled={{this.deleteProducts.isRunning}}\n              {{on 'click' (fn (mut this.isDeletingProducts) false)}}\n            >{{t 'common.Cancel'}}</button>\n          {{/if}}\n        </div>\n      </footer>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"w7qSrQLJ\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/burger-button\\\",0,null,null]]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"common.Products\\\"],null]]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content gap-zendesk-support-widget\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 pb-2 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,[28,[35,4],[\\\"common.Products\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"mb-1 pb-2 d-lg-flex justify-content-end align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[[30,0,[\\\"isEditable\\\"]],[30,0,[\\\"productTableData\\\",\\\"length\\\"]]],null],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline float-start\\\"],[16,\\\"disabled\\\",[28,[37,13],[[28,[37,14],[[30,0,[\\\"selectProductIds\\\",\\\"size\\\"]]],null],[30,0,[\\\"isLoading\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"isDeletingProducts\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"showFilters\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"mx-1\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,18],[[24,5,\\\"width: 200px;\\\"]],[[\\\"@disabled\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@model\\\",\\\"@noDataMessage\\\",\\\"@onLoad\\\",\\\"@onSelect\\\",\\\"@placeholder\\\"],[[30,0,[\\\"isLoading\\\"]],\\\"supplierName\\\",[28,[37,19],[\\\"supplierName\\\"],null],[30,0,[\\\"supplierChangeSet\\\"]],[28,[37,4],[\\\"common.No suppliers\\\"],null],[30,0,[\\\"loadMoreSuppliers\\\"]],[30,0,[\\\"setSupplier\\\"]],[28,[37,4],[\\\"shared.product.Filter by supplier\\\"],null]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,20],[[24,0,\\\"form-control m-1 w-auto\\\"],[16,\\\"placeholder\\\",[28,[37,4],[\\\"common.Search\\\"],null]],[24,\\\"autofocus\\\",\\\"true\\\"],[24,\\\"data-test-task-product-search\\\",\\\"\\\"],[4,[38,15],[\\\"input\\\",[28,[37,21],[[30,0,[\\\"onChangeSearchTerm\\\"]]],null]],null]],[[\\\"@value\\\",\\\"@type\\\"],[[30,0,[\\\"searchString\\\"]],\\\"text\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"isEditable\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white text-nowrap m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"addingProductsFromFile\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,22],null,[[\\\"@icon\\\"],[\\\"upload\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"shared.product.Add products from a file\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"isAddingProduct\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,22],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"entity-products__table-container\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,23],null,[[\\\"@tableHeader\\\",\\\"@tableData\\\",\\\"@noDataText\\\",\\\"@pageSizes\\\",\\\"@pageSize\\\",\\\"@pageIndex\\\",\\\"@onChangePageIndex\\\",\\\"@onChangePageSize\\\",\\\"@isLoading\\\",\\\"@totalRecords\\\",\\\"@class\\\"],[[30,0,[\\\"productTableHeader\\\"]],[30,0,[\\\"productTableData\\\"]],[28,[37,4],[\\\"common.No data\\\"],null],[30,0,[\\\"model\\\",\\\"pageSizes\\\"]],[30,0,[\\\"model\\\",\\\"pageSize\\\"]],[30,0,[\\\"model\\\",\\\"pageIndex\\\"]],[30,0,[\\\"onChangePageIndex\\\"]],[30,0,[\\\"onChangePageSize\\\"]],[30,0,[\\\"model\\\",\\\"products\\\",\\\"isRunning\\\"]],[30,0,[\\\"totalRecords\\\"]],\\\"table-bordered\\\"]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isEditingProduct\\\"]],[[[1,\\\"  \\\"],[8,[39,24],null,[[\\\"@onSaveProduct\\\",\\\"@target\\\",\\\"@productTable\\\",\\\"@entity\\\",\\\"@productId\\\",\\\"@onClose\\\"],[[30,0,[\\\"onSaveProduct\\\"]],[30,0,[\\\"model\\\",\\\"entity\\\"]],\\\"entity-product\\\",[30,0,[\\\"sessionData\\\",\\\"entity\\\"]],[30,0,[\\\"selectedProductId\\\"]],[28,[37,16],[[28,[37,17],[[30,0,[\\\"isEditingProduct\\\"]]],null],false],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isAddingProduct\\\"]],[[[1,\\\"  \\\"],[8,[39,25],null,[[\\\"@onAddProduct\\\",\\\"@onCreateProduct\\\",\\\"@onClose\\\"],[[30,0,[\\\"onAddProduct\\\"]],[30,0,[\\\"onCreateProduct\\\"]],[28,[37,16],[[28,[37,17],[[30,0,[\\\"isAddingProduct\\\"]]],null],false],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"addingProductsFromFile\\\"]],[[[1,\\\"  \\\"],[8,[39,26],null,[[\\\"@onUploadProducts\\\",\\\"@saveTarget\\\",\\\"@onClose\\\"],[[30,0,[\\\"updateProductList\\\"]],\\\"entity-products\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"addingProductsFromFile\\\"]]],null],false],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isDeletingProducts\\\"]],[[[1,\\\"  \\\"],[8,[39,27],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\"],[\\\"modal\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"isDeletingProducts\\\"]]],null],false],null],true,\\\"block-module\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,2],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,4],[\\\"shared.product.areYouSureYouWantToDeleteXProducts\\\"],[[\\\"number\\\",\\\"products\\\"],[[30,0,[\\\"selectProductIds\\\",\\\"size\\\"]],[28,[37,29],[[30,0,[\\\"selectProductIds\\\",\\\"size\\\"]],\\\"product\\\"],null]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"float-end d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteProducts\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-danger text-white ms-2\\\"],[15,\\\"disabled\\\",true],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Deleting\\\"],null]],[1,\\\"…\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteProducts\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[28,[37,21],[[30,0,[\\\"deleteProducts\\\"]]],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteProducts\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"isDeletingProducts\\\"]]],null],false],null]],null],[12],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"main\\\",\\\"article\\\",\\\"header\\\",\\\"if\\\",\\\"h2\\\",\\\"div\\\",\\\"and\\\",\\\"button\\\",\\\"or\\\",\\\"not\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"search-selector\\\",\\\"array\\\",\\\"input\\\",\\\"perform\\\",\\\"fa-icon\\\",\\\"pagination-table\\\",\\\"product-editor\\\",\\\"product-selector\\\",\\\"products-uploader\\\",\\\"modal-dialog\\\",\\\"p\\\",\\\"pluralize\\\",\\\"footer\\\",\\\"span\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/products.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if (media 'isDesktop')}}\n    {{outlet}}\n  {{else}}\n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component 'mobile-title-bar/burger-button'}}\n    />\n  \n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t 'common.Projects')\n      }}\n    />\n    {{outlet}}\n  {{/if}}\n  */\n  {\n    \"id\": \"qKZU41Xk\",\n    \"block\": \"[[[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"  \\\"],[46,[28,[37,3],null,null],null,null,null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[8,[39,4],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/burger-button\\\",0,null,null]]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,4],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,5],[\\\"common.Projects\\\"],null]]]]]],null],[1,\\\"\\\\n  \\\"],[46,[28,[37,3],null,null],null,null,null],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"media\\\",\\\"component\\\",\\\"-outlet\\\",\\\"to-elsewhere\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <main class='page__container-content gap-zendesk-support-widget'>\n    <article class='m-4 flex-grow-1'>\n      <header class='border-bottom mb-3 pb-2 d-flex align-items-center'>\n        {{#if (media 'isDesktop')}}\n          <h1 class='flex-grow-1 m-0 my-2'>\n            {{t 'common.Projects'}}\n          </h1>\n        {{/if}}\n        <div class='d-flex align-items-center'>\n          {{#if (media 'isDesktop')}}\n            <span class='m-1'>\n              <SelectInput\n                @value={{this.status}}\n                @action={{fn (mut this.status)}}\n                @class='form-control select-box'\n                data-test-project-status-filter\n                as |si|\n              >\n                <si.option @value='OPEN'>{{t 'common.Open projects'}}</si.option>\n                <si.option @value='ALL'>{{t 'common.All projects'}}</si.option>\n                <si.option @value='HELD'>{{t 'common.Held projects'}}</si.option>\n                <si.option @value='CLOSED'>{{t\n                    'common.Closed projects'\n                  }}</si.option>\n                <si.option @value='ARCHIVED'>{{t\n                    'common.Archived projects'\n                  }}</si.option>\n              </SelectInput>\n            </span>\n  \n            <span class='m-1'>\n              <Input\n                class='form-control'\n                placeholder={{t 'common.Search'}}\n                aria-label='Search'\n                @type='text'\n                @value={{this.searchString}}\n                data-test-project-search\n              />\n            </span>\n          {{/if}}\n          {{#if this.canManageProjects}}\n            <button\n              type='button'\n              class='btn btn-success text-white text-nowrap m-1'\n              {{on 'click' this.openNewProjectForm}}\n              data-test-project-add-new-project\n            >\n              <FaIcon @icon='plus' />&nbsp;{{t 'common.New'}}\n            </button>\n          {{/if}}\n        </div>\n      </header>\n  \n      {{#if this.model.projects.isRunning}}\n        <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n      {{else}}\n        {{#if this.filteredProjects.length}}\n          {{#if (media 'isDesktop')}}\n            <div class='px-3'>\n              <div class='row'>\n                {{#if (includes-feature-flags 'canUseProjectCopy')}}\n                  <div class='offset-3 col-1 fw-bold'>{{t\n                      'common.Reference'\n                    }}</div>\n                  <div class='col-3 fw-bold'>{{t 'common.Address'}}</div>\n                  <div class='col-2 fw-bold'>{{t 'common.Project start'}}</div>\n                  <div class='col-2 fw-bold text-center'>{{t\n                      'common.Status'\n                    }}</div>\n                  <div class='col-1 fw-bold text-center'>{{t\n                      'common.Actions'\n                    }}</div>\n                {{else}}\n                  <div class='offset-3 col-2 fw-bold'>{{t\n                      'common.Reference'\n                    }}</div>\n                  <div class='col-3 fw-bold'>{{t 'common.Address'}}</div>\n                  <div class='col-2 fw-bold'>{{t 'common.Project start'}}</div>\n                  <div class='col-2 fw-bold text-center'>{{t\n                      'common.Status'\n                    }}</div>\n                {{/if}}\n              </div>\n            </div>\n          {{/if}}\n          <DragSortList\n            @list={{this.filteredProjects}}\n            @onUpdate={{perform this.onProjectListUpdate}}\n            {{! you can only reorder projects when you can modify the entire list }}\n            @disableDragging={{not this.canManageProjects}}\n            {{! the component also needs to disable dragging because of a issue with a draggable link to }}\n            @itemComponent={{component\n              'project-card'\n              disableDragging=(not this.canManageProjects)\n            }}\n          />\n        {{else}}\n          <div class='error-page error-page--no-data'>\n            <h2 class='h2 error-page__icon'><FaIcon @icon='info-circle' /></h2>\n            <h3 class='h3 error-page__title'>{{t 'common.No projects'}}</h3>\n          </div>\n        {{/if}}\n        {{#if (includes-feature-flags 'entityHasSubcontractorPackage')}}\n          <div class='mt-5 d-flex justify-content-center align-items-center'>\n            <p style='margin: 0; font-size: 14px;'>\n              {{t 'shared.branding.Proudly powered by'}}</p>\n            <img\n              style='margin-left: 10px; width: 180px;'\n              src={{this.attentionSafetyLogoSrc}}\n            />\n          </div>\n        {{/if}}\n      {{/if}}\n    </article>\n  </main>\n  \n  {{#if this.newProjectData}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.newProjectData) false}}\n      @translucentOverlay={{true}}\n      @containerClass='modal-content w-auto'\n    >\n  \n      <form data-test-new-project-form>\n        {{#let\n          (changeset this.newProjectData this.projectValidationMap)\n          as |projectModel|\n        }}\n          <div class='modal-body'>\n            <PtlInput\n              @type='text'\n              @label={{t 'common.Name'}}\n              @key='name'\n              @model={{projectModel}}\n              @forceValidationVisible={{gt this.createProject.performCount 0}}\n              @required={{true}}\n              disabled={{this.createProject.isRunning}}\n              data-test-new-project-name\n            />\n            <PtlInput\n              @type='select'\n              @label={{t 'shared.task.Contract type'}}\n              @key='contractType'\n              @selectNoBlankOption={{true}}\n              @options={{this.contractType}}\n              @model={{projectModel}}\n              @forceValidationVisible={{gt this.createProject.performCount 0}}\n              @required={{true}}\n              disabled={{this.createProject.isRunning}}\n              data-test-new-project-name\n            />\n  \n            <PtlInput\n              @type='text'\n              @label={{t 'common.Reference'}}\n              @key='projectReference'\n              @model={{projectModel}}\n              @forceValidationVisible={{gt this.createProject.performCount 0}}\n              disabled={{this.createProject.isRunning}}\n              data-test-new-project-reference\n            />\n            <NewComboBox\n              @isLoading={{this.onAddressChange.isRunning}}\n              @list={{this.addressSuggestions}}\n              @noDataMessage={{t\n                'entity.builda-price.projects.project.settings.No address found'\n              }}\n              @onSelect={{fn this.setAddress projectModel}}\n              @onSearch={{this.onAddressChange}}\n              @debounce={{400}}\n              @label={{t 'common.Address'}}\n              @key='address'\n              @model={{projectModel}}\n              @hasNextPage={{false}}\n              @disabled={{this.createProject.isRunning}}\n              @forceValidationVisible={{gt this.createProject.performCount 0}}\n              data-test-new-project-address\n            />\n            <PtlInput\n              @type='date'\n              @label={{t 'common.Start date'}}\n              @key='startDate'\n              @model={{projectModel}}\n              @forceValidationVisible={{gt this.createProject.performCount 0}}\n              @required={{true}}\n              disabled={{this.createProject.isRunning}}\n              data-test-new-project-start-date\n            />\n            <PtlInput\n              @type='textarea'\n              @label={{t 'common.Description'}}\n              @key='description'\n              @model={{projectModel}}\n              @forceValidationVisible={{gt this.createProject.performCount 0}}\n              disabled={{this.createProject.isRunning}}\n              data-test-new-project-description\n            />\n          </div>\n  \n          <div class='modal-footer'>\n            <PtlInput\n              @containerClass='form-check'\n              @labelClass='m-0'\n              @type='checkbox'\n              @label={{t 'common.Open project after creation'}}\n              @key='openAndSave'\n              @model={{projectModel}}\n              @forceValidationVisible={{gt this.createProject.performCount 0}}\n              disabled={{this.createProject.isRunning}}\n              data-test-new-project-open-and-save\n            />\n  \n            <button\n              type='button'\n              class='btn btn-secondary text-white'\n              {{on 'click' this.closeNewProjectForm}}\n              data-test-new-project-close-button\n            >\n              {{t 'common.Cancel'}}\n            </button>\n            <button\n              type='button'\n              class='btn btn-primary'\n              disabled={{this.createProject.isRunning}}\n              {{on 'click' (perform this.createProject projectModel)}}\n              data-test-new-project-save-button\n            >\n              {{#if this.createProject.isRunning}}\n                {{t 'common.Creating project'}}&hellip;\n              {{else}}\n                {{t 'common.Create project'}}\n              {{/if}}\n            </button>\n          </div>\n        {{/let}}\n      </form>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"qG+2Ig7m\",\n    \"block\": \"[[[10,\\\"main\\\"],[14,0,\\\"page__container-content gap-zendesk-support-widget\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"article\\\"],[14,0,\\\"m-4 flex-grow-1\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 pb-2 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h1\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"common.Projects\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"          \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],[[24,\\\"data-test-project-status-filter\\\",\\\"\\\"]],[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"status\\\"]],[28,[37,10],[[28,[37,11],[[30,0,[\\\"status\\\"]]],null]],null],\\\"form-control select-box\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"OPEN\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.Open projects\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ALL\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.All projects\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"HELD\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.Held projects\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"CLOSED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.Closed projects\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ARCHIVED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.Archived projects\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"]],[1]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,12],[[24,0,\\\"form-control\\\"],[16,\\\"placeholder\\\",[28,[37,6],[\\\"common.Search\\\"],null]],[24,\\\"aria-label\\\",\\\"Search\\\"],[24,\\\"data-test-project-search\\\",\\\"\\\"]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"canManageProjects\\\"]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[24,\\\"data-test-project-add-new-project\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,14],[\\\"click\\\",[30,0,[\\\"openNewProjectForm\\\"]]],null],[12],[1,\\\"\\\\n            \\\"],[8,[39,15],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\" \\\"],[1,[28,[35,6],[\\\"common.New\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"projects\\\",\\\"isRunning\\\"]],[[[1,\\\"      \\\"],[8,[39,16],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"filteredProjects\\\",\\\"length\\\"]],[[[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"px-3\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,17],[\\\"canUseProjectCopy\\\"],null],[[[1,\\\"                \\\"],[10,0],[14,0,\\\"offset-3 col-1 fw-bold\\\"],[12],[1,[28,[35,6],[\\\"common.Reference\\\"],null]],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-3 fw-bold\\\"],[12],[1,[28,[35,6],[\\\"common.Address\\\"],null]],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-2 fw-bold\\\"],[12],[1,[28,[35,6],[\\\"common.Project start\\\"],null]],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-2 fw-bold text-center\\\"],[12],[1,[28,[35,6],[\\\"common.Status\\\"],null]],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-1 fw-bold text-center\\\"],[12],[1,[28,[35,6],[\\\"common.Actions\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[10,0],[14,0,\\\"offset-3 col-2 fw-bold\\\"],[12],[1,[28,[35,6],[\\\"common.Reference\\\"],null]],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-3 fw-bold\\\"],[12],[1,[28,[35,6],[\\\"common.Address\\\"],null]],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-2 fw-bold\\\"],[12],[1,[28,[35,6],[\\\"common.Project start\\\"],null]],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-2 fw-bold text-center\\\"],[12],[1,[28,[35,6],[\\\"common.Status\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[8,[39,18],null,[[\\\"@list\\\",\\\"@onUpdate\\\",\\\"@disableDragging\\\",\\\"@itemComponent\\\"],[[30,0,[\\\"filteredProjects\\\"]],[28,[37,19],[[30,0,[\\\"onProjectListUpdate\\\"]]],null],[28,[37,20],[[30,0,[\\\"canManageProjects\\\"]]],null],[50,\\\"project-card\\\",0,null,[[\\\"disableDragging\\\"],[[28,[37,20],[[30,0,[\\\"canManageProjects\\\"]]],null]]]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"error-page error-page--no-data\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2 error-page__icon\\\"],[12],[8,[39,15],null,[[\\\"@icon\\\"],[\\\"info-circle\\\"]],null],[13],[1,\\\"\\\\n          \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3 error-page__title\\\"],[12],[1,[28,[35,6],[\\\"common.No projects\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[41,[28,[37,17],[\\\"entityHasSubcontractorPackage\\\"],null],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"mt-5 d-flex justify-content-center align-items-center\\\"],[12],[1,\\\"\\\\n          \\\"],[10,2],[14,5,\\\"margin: 0; font-size: 14px;\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"shared.branding.Proudly powered by\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,\\\"img\\\"],[14,5,\\\"margin-left: 10px; width: 180px;\\\"],[15,\\\"src\\\",[30,0,[\\\"attentionSafetyLogoSrc\\\"]]],[12],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"newProjectData\\\"]],[[[1,\\\"  \\\"],[8,[39,26],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\"],[\\\"modal\\\",[28,[37,10],[[28,[37,11],[[30,0,[\\\"newProjectData\\\"]]],null],false],null],true,\\\"modal-content w-auto\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"form\\\"],[14,\\\"data-test-new-project-form\\\",\\\"\\\"],[12],[1,\\\"\\\\n\\\"],[44,[[28,[37,29],[[30,0,[\\\"newProjectData\\\"]],[30,0,[\\\"projectValidationMap\\\"]]],null]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,30],[[16,\\\"disabled\\\",[30,0,[\\\"createProject\\\",\\\"isRunning\\\"]]],[24,\\\"data-test-new-project-name\\\",\\\"\\\"]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@required\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Name\\\"],null],\\\"name\\\",[30,2],[28,[37,31],[[30,0,[\\\"createProject\\\",\\\"performCount\\\"]],0],null],true]],null],[1,\\\"\\\\n          \\\"],[8,[39,30],[[16,\\\"disabled\\\",[30,0,[\\\"createProject\\\",\\\"isRunning\\\"]]],[24,\\\"data-test-new-project-name\\\",\\\"\\\"]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@selectNoBlankOption\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@required\\\"],[\\\"select\\\",[28,[37,6],[\\\"shared.task.Contract type\\\"],null],\\\"contractType\\\",true,[30,0,[\\\"contractType\\\"]],[30,2],[28,[37,31],[[30,0,[\\\"createProject\\\",\\\"performCount\\\"]],0],null],true]],null],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,30],[[16,\\\"disabled\\\",[30,0,[\\\"createProject\\\",\\\"isRunning\\\"]]],[24,\\\"data-test-new-project-reference\\\",\\\"\\\"]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Reference\\\"],null],\\\"projectReference\\\",[30,2],[28,[37,31],[[30,0,[\\\"createProject\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[8,[39,32],[[24,\\\"data-test-new-project-address\\\",\\\"\\\"]],[[\\\"@isLoading\\\",\\\"@list\\\",\\\"@noDataMessage\\\",\\\"@onSelect\\\",\\\"@onSearch\\\",\\\"@debounce\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@hasNextPage\\\",\\\"@disabled\\\",\\\"@forceValidationVisible\\\"],[[30,0,[\\\"onAddressChange\\\",\\\"isRunning\\\"]],[30,0,[\\\"addressSuggestions\\\"]],[28,[37,6],[\\\"entity.builda-price.projects.project.settings.No address found\\\"],null],[28,[37,10],[[30,0,[\\\"setAddress\\\"]],[30,2]],null],[30,0,[\\\"onAddressChange\\\"]],400,[28,[37,6],[\\\"common.Address\\\"],null],\\\"address\\\",[30,2],false,[30,0,[\\\"createProject\\\",\\\"isRunning\\\"]],[28,[37,31],[[30,0,[\\\"createProject\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[8,[39,30],[[16,\\\"disabled\\\",[30,0,[\\\"createProject\\\",\\\"isRunning\\\"]]],[24,\\\"data-test-new-project-start-date\\\",\\\"\\\"]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@required\\\"],[\\\"date\\\",[28,[37,6],[\\\"common.Start date\\\"],null],\\\"startDate\\\",[30,2],[28,[37,31],[[30,0,[\\\"createProject\\\",\\\"performCount\\\"]],0],null],true]],null],[1,\\\"\\\\n          \\\"],[8,[39,30],[[16,\\\"disabled\\\",[30,0,[\\\"createProject\\\",\\\"isRunning\\\"]]],[24,\\\"data-test-new-project-description\\\",\\\"\\\"]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"textarea\\\",[28,[37,6],[\\\"common.Description\\\"],null],\\\"description\\\",[30,2],[28,[37,31],[[30,0,[\\\"createProject\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,30],[[16,\\\"disabled\\\",[30,0,[\\\"createProject\\\",\\\"isRunning\\\"]]],[24,\\\"data-test-new-project-open-and-save\\\",\\\"\\\"]],[[\\\"@containerClass\\\",\\\"@labelClass\\\",\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"form-check\\\",\\\"m-0\\\",\\\"checkbox\\\",[28,[37,6],[\\\"common.Open project after creation\\\"],null],\\\"openAndSave\\\",[30,2],[28,[37,31],[[30,0,[\\\"createProject\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white\\\"],[24,\\\"data-test-new-project-close-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,14],[\\\"click\\\",[30,0,[\\\"closeNewProjectForm\\\"]]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"createProject\\\",\\\"isRunning\\\"]]],[24,\\\"data-test-new-project-save-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,14],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"createProject\\\"]],[30,2]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"createProject\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"common.Creating project\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"common.Create project\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[2]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"si\\\",\\\"projectModel\\\"],false,[\\\"main\\\",\\\"article\\\",\\\"header\\\",\\\"if\\\",\\\"media\\\",\\\"h1\\\",\\\"t\\\",\\\"div\\\",\\\"span\\\",\\\"select-input\\\",\\\"fn\\\",\\\"mut\\\",\\\"input\\\",\\\"button\\\",\\\"on\\\",\\\"fa-icon\\\",\\\"loading-icon\\\",\\\"includes-feature-flags\\\",\\\"drag-sort-list\\\",\\\"perform\\\",\\\"not\\\",\\\"component\\\",\\\"h2\\\",\\\"h3\\\",\\\"p\\\",\\\"img\\\",\\\"modal-dialog\\\",\\\"form\\\",\\\"let\\\",\\\"changeset\\\",\\\"ptl-input\\\",\\\"gt\\\",\\\"new-combo-box\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if (media 'isDesktop')}}\n    <ModuleNavigation::Project\n      @selectedProject={{this.model.project.last.value}}\n      @openProjects={{this.model.openProjects.last.value}}\n      @selectedProjectIsLoading={{this.model.project.isRunning}}\n      @openProjectsIsLoading={{this.model.openProjects.isRunning}}\n    />\n  \n    <main class='page__container-content gap-zendesk-support-widget'>\n      {{outlet}}\n    </main>\n  {{else}}\n    <ToElsewhere\n      @named='mobile-side-menu-content'\n      @send={{component\n        'module-navigation/project'\n        model=this.model.project.last.value.id\n        selectedProject=this.model.project.last.value\n        openProjects=this.model.openProjects.last.value\n        selectedProjectIsLoading=this.model.project.isRunning\n        openProjectsIsLoading=this.model.openProjects.isRunning\n      }}\n    />\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title=(t 'common.Project')}}\n    />\n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component 'mobile-title-bar/burger-button'}}\n    />\n    <main class='page__container-content gap-zendesk-support-widget'>\n      {{outlet}}\n    </main>\n  {{/if}}\n  */\n  {\n    \"id\": \"jQBPmjfM\",\n    \"block\": \"[[[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@selectedProject\\\",\\\"@openProjects\\\",\\\"@selectedProjectIsLoading\\\",\\\"@openProjectsIsLoading\\\"],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"model\\\",\\\"openProjects\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"model\\\",\\\"project\\\",\\\"isRunning\\\"]],[30,0,[\\\"model\\\",\\\"openProjects\\\",\\\"isRunning\\\"]]]],null],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content gap-zendesk-support-widget\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,5],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[8,[39,6],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-side-menu-content\\\",[50,\\\"module-navigation/project\\\",0,null,[[\\\"model\\\",\\\"selectedProject\\\",\\\"openProjects\\\",\\\"selectedProjectIsLoading\\\",\\\"openProjectsIsLoading\\\"],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"id\\\"]],[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"model\\\",\\\"openProjects\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"model\\\",\\\"project\\\",\\\"isRunning\\\"]],[30,0,[\\\"model\\\",\\\"openProjects\\\",\\\"isRunning\\\"]]]]]]],null],[1,\\\"\\\\n  \\\"],[8,[39,6],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,7],[\\\"common.Project\\\"],null]]]]]],null],[1,\\\"\\\\n  \\\"],[8,[39,6],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/burger-button\\\",0,null,null]]],null],[1,\\\"\\\\n  \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content gap-zendesk-support-widget\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,5],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"media\\\",\\\"module-navigation/project\\\",\\\"main\\\",\\\"component\\\",\\\"-outlet\\\",\\\"to-elsewhere\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/documents\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='mx-4 mt-4 h-100'>\n    <header class='border-bottom mb-3 pb-2 d-flex align-items-center'>\n      {{#if (media 'isDesktop')}}\n        <h2 class='flex-grow-1 m-0 my-2'>{{t 'common.Documents'}}</h2>\n      {{/if}}\n    </header>\n    <div class='mt-3'>\n      {{#if this.isLoading}}\n        <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n      {{else}}\n        <div class='card width--large'>\n          <DragAndDropContainer\n            @parent={{this.project}}\n            @onUploadComplete={{this.onUploadComplete}}\n            @isDragAndDropVisible={{this.isEditable}}\n          >\n            <AttachmentTable\n              @attachments={{this.attachments}}\n              @parent={{this.project}}\n              @project={{this.project}}\n              @users={{this.model.users.last.value}}\n            />\n          </DragAndDropContainer>\n        </div>\n      {{/if}}\n    </div>\n  </article>\n  */\n  {\n    \"id\": \"bryRq7OU\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4 h-100\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 pb-2 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,[28,[35,5],[\\\"common.Documents\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"mt-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"      \\\"],[8,[39,7],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"card width--large\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,8],null,[[\\\"@parent\\\",\\\"@onUploadComplete\\\",\\\"@isDragAndDropVisible\\\"],[[30,0,[\\\"project\\\"]],[30,0,[\\\"onUploadComplete\\\"]],[30,0,[\\\"isEditable\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,9],null,[[\\\"@attachments\\\",\\\"@parent\\\",\\\"@project\\\",\\\"@users\\\"],[[30,0,[\\\"attachments\\\"]],[30,0,[\\\"project\\\"]],[30,0,[\\\"project\\\"]],[30,0,[\\\"model\\\",\\\"users\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"article\\\",\\\"header\\\",\\\"if\\\",\\\"media\\\",\\\"h2\\\",\\\"t\\\",\\\"div\\\",\\\"loading-icon\\\",\\\"drag-and-drop-container\\\",\\\"attachment-table\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/documents.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/estimate\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"iyZe6Am+\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/estimate.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/estimates/estimate-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"PYdlXigs\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/estimates/estimate-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/estimates/estimate\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t 'common.Estimates')\n      }}\n    />\n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component\n        'mobile-title-bar/back-button'\n        titleBarBack='entity.builda-price.projects.project.estimates'\n      }}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    <LinkTo @route='entity.builda-price.projects.project.estimates' class='fs-5'>\n      {{t 'common.Estimates'}}\n    </LinkTo>\n    <FaIcon @icon='chevron-right' class='mx-2 fs-6 text-secondary' />\n    <span class='fw-bold fs-5'>\n      {{this.model.estimate.name}}\n    </span>\n    <header class='border-bottom align-items-center mb-3'>\n      <h2 class='my-2'>{{this.model.estimate.name}}</h2>\n    </header>\n    <div class='embed-builda-price-client-addon'>\n      {{outlet}}\n    </div>\n  </article>\n  */\n  {\n    \"id\": \"t4xOPaL4\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"common.Estimates\\\"],null]]]]]],null],[1,\\\"\\\\n  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/back-button\\\",0,null,[[\\\"titleBarBack\\\"],[\\\"entity.builda-price.projects.project.estimates\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n  \\\"],[8,[39,6],[[24,0,\\\"fs-5\\\"]],[[\\\"@route\\\"],[\\\"entity.builda-price.projects.project.estimates\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[1,[28,[35,4],[\\\"common.Estimates\\\"],null]],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n  \\\"],[8,[39,7],[[24,0,\\\"mx-2 fs-6 text-secondary\\\"]],[[\\\"@icon\\\"],[\\\"chevron-right\\\"]],null],[1,\\\"\\\\n  \\\"],[10,1],[14,0,\\\"fw-bold fs-5\\\"],[12],[1,\\\"\\\\n    \\\"],[1,[30,0,[\\\"model\\\",\\\"estimate\\\",\\\"name\\\"]]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom align-items-center mb-3\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h2\\\"],[14,0,\\\"my-2\\\"],[12],[1,[30,0,[\\\"model\\\",\\\"estimate\\\",\\\"name\\\"]]],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"embed-builda-price-client-addon\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,12],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"link-to\\\",\\\"fa-icon\\\",\\\"span\\\",\\\"header\\\",\\\"h2\\\",\\\"div\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/estimates/estimate.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/estimates/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! template-lint-disable no-nested-interactive }}\n  {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t 'common.Estimates')\n      }}\n    />\n  {{/unless}}\n  \n  <article class='mx-4 mt-4'>\n    <header class='border-bottom mb-3 pb-2 d-flex align-items-center'>\n      {{#if (media 'isDesktop')}}\n        <h2 class='flex-grow-1 m-0 my-2'>{{t 'common.Estimates'}}</h2>\n      {{/if}}\n  \n      <div class='d-flex align-items-center flex-wrap'>\n        {{#if\n          (includes-feature-flags\n            this.model.project.last.value 'canManageEstimates'\n          )\n        }}\n          {{#if this.model.unlinkedEstimates.last.value.length}}\n            <span class='m-1'>\n              <button\n                type='button'\n                class='btn btn-primary text-white text-nowrap'\n                {{on 'click' (fn (mut this.showUnlinkedEstimatesDialog) true)}}\n                data-test-estimate-import-estimates-from-pricing\n              >\n                <FaIcon @icon='link' />&nbsp;&nbsp;{{t\n                  'entity.builda-price.projects.project.estimates.Import unlinked estimates from Pricing'\n                }}\n              </button>\n            </span>\n          {{/if}}\n        {{/if}}\n  \n        {{#if (media 'isDesktop')}}\n          <span class='m-1'>\n            <SelectInput\n              @value={{this.filter}}\n              @action={{fn (mut this.filter)}}\n              @class='form-control select-box'\n              data-test-estimate-status-filter\n              as |si|\n            >\n              <si.option @value='all'>{{t\n                  'entity.builda-price.projects.project.estimates.All estimates'\n                }}</si.option>\n              <si.option @value='DRAFT'>{{t\n                  'entity.builda-price.projects.project.estimates.Draft estimates'\n                }}</si.option>\n              <si.option @value='IMPORTED'>{{t\n                  'entity.builda-price.projects.project.estimates.Imported estimates'\n                }}</si.option>\n              <si.option @value='APPROVED'>{{t\n                  'entity.builda-price.projects.project.estimates.Approved estimates'\n                }}</si.option>\n              <si.option @value='REJECTED'>{{t\n                  'entity.builda-price.projects.project.estimates.Rejected estimates'\n                }}</si.option>\n            </SelectInput>\n          </span>\n  \n          <span class='m-1'>\n            <Input\n              class='form-control'\n              placeholder={{t\n                'entity.builda-price.projects.project.estimates.Search for estimates'\n              }}\n              @type='text'\n              @value={{this.searchString}}\n              data-test-estimate-search\n            />\n          </span>\n        {{/if}}\n  \n        {{#if\n          (includes-feature-flags\n            this.model.project.last.value 'canManageEstimates'\n          )\n        }}\n          <span class='m-1'>\n            <button\n              type='button'\n              class='btn btn-success text-white text-nowrap'\n              {{on 'click' (perform this.openNewEstimateForm)}}\n              data-test-estimate-create\n            >\n              <FaIcon @icon='plus' />&nbsp;&nbsp;{{t\n                'entity.builda-price.projects.project.estimates.Create new estimate'\n              }}\n            </button>\n          </span>\n        {{/if}}\n      </div>\n    </header>\n    {{#if this.model.estimates.isRunning}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      {{#if (media 'isDesktop')}}\n        <div class='px-3'>\n          <div class='row'>\n            {{#if\n              (includes-feature-flags\n                this.model.project.last.value 'canManageEstimates'\n              )\n            }}\n              <div class='col-3 offset-3 fw-bold'>{{t 'common.Merchant'}}</div>\n              <div class='col-2 fw-bold'>{{t 'shared.report.Date created'}}</div>\n              <div class='col-2 fw-bold text-center'>{{t 'common.Status'}}</div>\n              <div class='col-2 fw-bold text-center'>{{t 'common.Actions'}}</div>\n            {{else}}\n              <div class='col-3 offset-3 fw-bold'>{{t 'common.Merchant'}}</div>\n              <div class='col-3 fw-bold'>{{t 'shared.report.Date created'}}</div>\n              <div class='col-3 fw-bold text-center'>{{t 'common.Status'}}</div>\n            {{/if}}\n          </div>\n        </div>\n      {{/if}}\n  \n      {{#each this.filteredEstimates as |estimate|}}\n        <div\n          role='button'\n          class='estimates__card card shadow-sm text-dark p-3 my-3'\n          {{on 'click' (fn this.onEstimateRowClick estimate.id)}}\n          data-test-estimate={{estimate.id}}\n        >\n          {{#if\n            (includes-feature-flags\n              this.model.project.last.value 'canManageEstimates'\n            )\n          }}\n            <div class='row align-items-center'>\n              <div\n                class='col fs-2 estimates__card-estimate-name'\n                data-test-estimate-name={{estimate.id}}\n              >\n                {{estimate.name}}\n              </div>\n              {{#if (media 'isDesktop')}}\n                <div class='col-3 d-flex flex-row flex-wrap fs-5'>\n                  {{#if estimate.pricingMerchantName}}\n                    {{estimate.pricingMerchantName}}\n                  {{else}}\n                    —\n                  {{/if}}\n                </div>\n                <div class='col-2 d-flex flex-row flex-wrap fs-5'>\n                  {{#if estimate.dateCreated}}\n                    {{moment-format\n                      estimate.dateCreated\n                      (t 'date.shortWithWeekday')\n                    }}\n                  {{else}}\n                    —\n                  {{/if}}\n                </div>\n              {{/if}}\n              <div class='col-lg-2 col-3 d-flex justify-content-center'>\n                <span\n                  class='badge rounded-pill fs-6 px-3 py-2\n                    {{if (eq estimate.status \"APPROVED\") \"bg-success\"}}\n                    {{if (eq estimate.status \"REJECTED\") \"bg-danger\"}}\n                    {{if (eq estimate.status \"DRAFT\") \"bg-warning text-dark\"}}\n                    {{if (eq estimate.status \"IMPORTED\") \"bg-info\"}}\n                    '\n                  data-test-estimate-status={{estimate.id}}\n                >\n                  {{convert-to-title-case estimate.status}}\n                </span>\n              </div>\n              <div class='col-2 d-flex align-items-center justify-content-center'>\n                <PopOver\n                  class='p-2'\n                  @direction='bottom-left'\n                  {{on 'click' this.noop}}\n                  as |po|\n                >\n                  <FaIcon @icon='ellipsis-h' role='button' class='fs-3' />\n                  <po.Content>\n                    <button\n                      type='button'\n                      class='dropdown-item text-nowrap fs-5'\n                      {{on\n                        'click'\n                        (stop-propagation (fn this.openEditEstimateForm estimate))\n                      }}\n                      data-test-estimate-edit\n                    >\n                      <FaIcon @icon='pen' />&nbsp;&nbsp;{{t 'common.Edit'}}\n                    </button>\n                    <button\n                      type='button'\n                      class='dropdown-item text-nowrap fs-5'\n                      data-test-estimate-duplicate\n                      {{on\n                        'click'\n                        (stop-propagation\n                          (fn (mut this.duplicateEstimateData) estimate)\n                        )\n                      }}\n                    >\n                      <FaIcon @icon='clone' />&nbsp;&nbsp;{{t 'common.Duplicate'}}\n                    </button>\n                    <button\n                      type='button'\n                      class='dropdown-item text-nowrap fs-5'\n                      data-test-estimate-add-templates\n                      {{on\n                        'click'\n                        (stop-propagation\n                          (perform this.getTemplateOptions estimate)\n                        )\n                      }}\n                    >\n                      <FaIcon @icon='folder' />&nbsp;&nbsp;{{t\n                        'entity.builda-price.projects.project.estimates.Import template'\n                      }}\n                    </button>\n                    <button\n                      type='button'\n                      class='dropdown-item text-nowrap fs-5'\n                      {{on\n                        'click'\n                        (stop-propagation\n                          (perform this.getPreloadedQuotes estimate)\n                        )\n                      }}\n                    >\n                      <FaIcon @icon='folder-open' />&nbsp;&nbsp;{{t\n                        'entity.builda-price.projects.project.estimates.Import materials'\n                      }}\n                    </button>\n                    <button\n                      type='button'\n                      class='dropdown-item text-nowrap fs-5'\n                      {{on\n                        'click'\n                        (stop-propagation\n                          (fn (mut this.estimateForGenerateTasks) estimate)\n                        )\n                      }}\n                    >\n                      <FaIcon @icon='file-export' />&nbsp;&nbsp;{{t\n                        'entity.builda-price.projects.project.estimates.Generate tasks'\n                      }}\n                    </button>\n                  </po.Content>\n                </PopOver>\n              </div>\n            </div>\n          {{else}}\n            <div class='row align-items-center'>\n              <div\n                class='col fs-2 estimates__card-estimate-name'\n                data-test-estimate-name={{estimate.id}}\n              >\n                {{estimate.name}}\n              </div>\n              {{#if (media 'isDesktop')}}\n                <div class='col-3 d-flex flex-row flex-wrap fs-5'>\n                  {{#if estimate.pricingMerchantName}}\n                    {{estimate.pricingMerchantName}}\n                  {{else}}\n                    —\n                  {{/if}}\n                </div>\n                <div class='col-3 d-flex flex-row flex-wrap fs-5'>\n                  {{#if estimate.dateCreated}}\n                    {{moment-format\n                      estimate.dateCreated\n                      (t 'date.shortWithWeekday')\n                    }}\n                  {{else}}\n                    —\n                  {{/if}}\n                </div>\n              {{/if}}\n              <div class='col-3 d-flex justify-content-center'>\n                <span\n                  class='badge rounded-pill fs-6 px-3 py-2\n                    {{if (eq estimate.status \"APPROVED\") \"bg-success\"}}\n                    {{if (eq estimate.status \"REJECTED\") \"bg-danger\"}}\n                    {{if (eq estimate.status \"DRAFT\") \"bg-warning text-dark\"}}\n                    {{if (eq estimate.status \"IMPORTED\") \"bg-info\"}}\n                    '\n                  data-test-estimate-status={{estimate.id}}\n                >\n                  {{convert-to-title-case estimate.status}}\n                </span>\n              </div>\n            </div>\n          {{/if}}\n        </div>\n      {{else}}\n        <div class='error-page error-page--no-data'>\n          <h2 class='h2 error-page__icon'><FaIcon @icon='info-circle' /></h2>\n          <h3 class='h3 error-page__title'>{{t\n              'entity.builda-price.projects.project.estimates.No estimates'\n            }}</h3>\n        </div>\n      {{/each}}\n  \n    {{/if}}\n  </article>\n  {{#if this.editingEstimateData}}\n    <ModalDialog\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n      @onClose={{fn (mut this.editingEstimateData) null}}\n      @containerClass='modal-content estimates__modal-container'\n    >\n  \n      <form data-test-edit-estimate-form>\n        {{#let\n          (changeset this.editingEstimateData this.editEstimateValidationMap)\n          as |estimateModel|\n        }}\n          <div class='modal-body'>\n            <PtlInput\n              @type='text'\n              @label={{t 'common.Name'}}\n              @key='name'\n              @model={{estimateModel}}\n              @forceValidationVisible={{gt this.editEstimate.performCount 0}}\n              @required={{true}}\n              disabled={{this.editEstimate.isRunning}}\n              data-test-edit-estimate-name\n            />\n            <PtlInput\n              @type='select'\n              @label={{t 'common.Status'}}\n              @key='status'\n              @options={{this.status}}\n              @model={{estimateModel}}\n              @forceValidationVisible={{gt this.editEstimate.performCount 0}}\n              @required={{true}}\n              disabled={{this.editEstimate.isRunning}}\n              data-test-edit-estimate-status\n            />\n          </div>\n  \n          <div class='modal-footer'>\n            <div class='me-auto'>\n              {{#unless this.editEstimate.isRunning}}\n                <button\n                  type='button'\n                  class='btn btn-link text-danger text-decoration-underline'\n                  {{on\n                    'click'\n                    (fn this.openDeleteModal this.editingEstimateData.estimate)\n                  }}\n                  data-test-edit-estimate-delete-button\n                >\n                  {{t\n                    'entity.builda-price.projects.project.estimates.Delete estimate'\n                  }}\n                </button>\n              {{/unless}}\n            </div>\n            <div>\n              {{#if this.editEstimate.isRunning}}\n                <button\n                  type='button'\n                  class='btn btn-primary ms-2'\n                  disabled={{true}}\n                >\n                  <span\n                    class='spinner-border spinner-border-sm'\n                  ></span>&nbsp;&nbsp;{{t\n                    'entity.builda-price.projects.project.estimates.Editing estimate'\n                  }}…\n                </button>\n              {{else}}\n                <button\n                  type='button'\n                  class='btn btn-secondary text-white ms-2'\n                  {{on 'click' (fn (mut this.editingEstimateData) null)}}\n                  data-test-edit-estimate-close-button\n                >{{t 'common.Cancel'}}</button>\n                <button\n                  type='button'\n                  class='btn btn-primary ms-2'\n                  disabled={{this.editEstimate.isRunning}}\n                  {{on 'click' (perform this.editEstimate estimateModel)}}\n                  data-test-edit-estimate-save-button\n                >{{t 'common.Save'}}</button>\n              {{/if}}\n            </div>\n          </div>\n  \n        {{/let}}\n      </form>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.newEstimateData}}\n    <ModalDialog\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n      @onClose={{fn (mut this.newEstimateData) null}}\n      @containerClass='modal-content estimates__modal-container'\n    >\n      {{#if this.openNewEstimateForm.isRunning}}\n        <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n      {{else}}\n  \n        <form data-test-new-estimate-form>\n          {{#let\n            (changeset this.newEstimateData this.createNewEstimateValidationMap)\n            as |estimateModel|\n          }}\n            <div class='modal-body'>\n  \n              <PtlInput\n                @type='text'\n                @label={{t 'common.Name'}}\n                @key='name'\n                @model={{estimateModel}}\n                @forceValidationVisible={{gt this.createEstimate.performCount 0}}\n                @required={{true}}\n                disabled={{this.createEstimate.isRunning}}\n                data-test-new-estimate-name\n              />\n              <PtlInput\n                @type='select'\n                @label={{t 'common.Merchant'}}\n                @key='merchant'\n                @options={{this.merchantList}}\n                @model={{estimateModel}}\n                @forceValidationVisible={{gt this.createEstimate.performCount 0}}\n                @required={{true}}\n                disabled={{this.createEstimate.isRunning}}\n                data-test-new-estimate-merchant\n              />\n            </div>\n  \n            <div class='modal-footer'>\n              <div class='d-flex align-items-center'>\n                {{#if this.createEstimate.isRunning}}\n                  <button\n                    type='button'\n                    class='btn btn-primary ms-2'\n                    disabled={{true}}\n                  >\n                    <span\n                      class='spinner-border spinner-border-sm'\n                    ></span>&nbsp;&nbsp;{{t\n                      'entity.builda-price.projects.project.estimates.Creating estimate'\n                    }}…\n                  </button>\n                {{else}}\n                  <PtlInput\n                    @containerClass='form-check'\n                    @labelClass='m-0'\n                    @type='checkbox'\n                    @label={{t\n                      'entity.builda-price.projects.project.estimates.Open estimate after creation'\n                    }}\n                    @key='openAndSave'\n                    @model={{estimateModel}}\n                    @forceValidationVisible={{gt\n                      this.createEstimate.performCount\n                      0\n                    }}\n                    disabled={{this.createEstimate.isRunning}}\n                    data-test-new-estimate-open-and-save\n                  />\n  \n                  <button\n                    type='button'\n                    class='btn btn-secondary text-white ms-2'\n                    {{on 'click' (fn (mut this.newEstimateData) null)}}\n                    data-test-new-estimate-close-button\n                  >{{t 'common.Cancel'}}</button>\n                  <button\n                    type='button'\n                    class='btn btn-primary ms-2'\n                    disabled={{this.createEstimate.isRunning}}\n                    {{on 'click' (perform this.createEstimate estimateModel)}}\n                    data-test-new-estimate-save-button\n                  >{{t\n                      'entity.builda-price.projects.project.estimates.Create estimate'\n                    }}</button>\n                {{/if}}\n              </div>\n            </div>\n          {{/let}}\n        </form>\n      {{/if}}\n    </ModalDialog>\n  {{/if}}\n  \n  <ConfirmDelete\n    @visible={{this.deletingEstimateData}}\n    @message={{this.deleteMessages}}\n    @title={{t 'entity.builda-price.projects.project.estimates.Delete estimate'}}\n    @confirmText={{t\n      'entity.builda-price.projects.project.estimates.delete estimate'\n    }}\n    @deleteButtonText={{t\n      'entity.builda-price.projects.project.estimates.Delete estimate'\n    }}\n    @deletingButtonText={{t 'common.Deleting'}}\n    @onDelete={{perform this.deleteEstimate}}\n    @onCancel={{fn this.closeDeleteModal this.deletingEstimateData}}\n  >\n    <p>{{t 'shared.estimate.This action cannot be undone'}}</p>\n  </ConfirmDelete>\n  \n  {{#if this.duplicateEstimateData}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.duplicateEstimateData) null}}\n      @translucentOverlay={{true}}\n      @containerClass='modal-content modal-dialog-scrollable w-auto max-width-75 h-auto'\n    >\n      <div class='modal-body'>\n        <p>\n          {{t\n            'entity.builda-price.projects.project.estimates.areYouSureYouWantToDuplicateThisEstimate'\n          }}\n        </p>\n      </div>\n      <div class='modal-footer'>\n        {{#if this.duplicateEstimate.isRunning}}\n          <button type='button' class='btn btn-primary ms-2' disabled={{true}}>\n            <span class='spinner-border spinner-border-sm'></span>&nbsp;&nbsp;{{t\n              'entity.builda-price.projects.project.estimates.Duplicating estimate'\n            }}…\n          </button>\n        {{else}}\n          <div class='form-check'>\n            <Input\n              data-test-attach-duplicate-estimate-to-current-project\n              @type='checkbox'\n              id='duplicateAndAttach'\n              class='form-check-input'\n              disabled={{this.duplicateEstimate.isRunning}}\n              {{on\n                'click'\n                (fn (mut this.attachToProject) (not this.attachToProject))\n              }}\n            />\n            <label for='duplicateAndAttach'>{{t\n                'entity.builda-price.projects.project.estimates.Attach to current project'\n              }}\n            </label>\n          </div>\n  \n          <button\n            class='btn btn-secondary text-white'\n            type='button'\n            disabled={{this.duplicateEstimate.isRunning}}\n            {{on 'click' (fn (mut this.duplicateEstimateData) null)}}\n          >\n            {{t 'common.Cancel'}}\n          </button>\n          <button\n            class='btn btn-primary text-white'\n            type='button'\n            disabled={{this.duplicateEstimate.isRunning}}\n            {{on 'click' (perform this.duplicateEstimate)}}\n            data-test-duplicate-estimate-btn\n          >\n            {{t 'common.Duplicate'}}\n          </button>\n        {{/if}}\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.importTemplateData}}\n    <ModalDialog\n      @overlayClass='modal'\n      @containerClass='modal-content estimates__modal-container'\n      @onClose={{fn (mut this.importTemplateData) null}}\n      @translucentOverlay={{true}}\n    >\n      {{#if this.getTemplateOptions.isRunning}}\n        <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n      {{else}}\n        <form>\n          <div class='modal-body'>\n            <p>{{t\n                'entity.builda-price.projects.project.estimates.pleaseSelectTheTemplatesYouWouldLikeToImport'\n              }}</p>\n            <div class='ember-power-select--auto-height'>\n              <PowerSelectMultiple\n                @options={{this.templates}}\n                @selected={{this.selectedTemplates}}\n                @searchEnabled={{true}}\n                @searchField='name'\n                @allowClear={{true}}\n                @required={{true}}\n                @placeholder={{t\n                  'entity.builda-price.projects.project.estimates.Select templates'\n                }}\n                @onChange={{fn (mut this.selectedTemplates)}}\n                as |template|\n              >\n                {{template.name}}\n              </PowerSelectMultiple>\n            </div>\n          </div>\n          <div class='modal-footer'>\n            {{#if this.importTemplates.isRunning}}\n              <button\n                type='button'\n                class='btn btn-primary ms-2'\n                disabled={{true}}\n              >\n                <span class='spinner-border spinner-border-sm'>\n                </span>&nbsp;&nbsp;{{t\n                  'entity.builda-price.projects.project.estimates.Importing templates'\n                }}&hellip;\n              </button>{{else}}\n              <button\n                type='button'\n                class='btn btn-secondary text-white ms-2'\n                {{on 'click' (fn (mut this.importTemplateData) null)}}\n              >{{t 'common.Cancel'}}</button>\n              <button\n                type='button'\n                class='btn btn-primary ms-2'\n                {{on 'click' (perform this.importTemplates)}}\n              >\n                {{t 'common.Import'}}\n              </button>\n            {{/if}}\n          </div>\n        </form>\n      {{/if}}\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.importMaterialsData}}\n    <ModalDialog\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n      @onClose={{this.destroyImportMaterialsModal}}\n      @containerClass='modal-content modal-dialog-scrollable w-auto max-width-75 h-auto'\n    >\n      {{#if this.getPreloadedQuotes.isRunning}}\n        <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n      {{else}}\n        <div class='modal-body'>\n          {{#if this.newFeatureFlags.entityIsCalStudent}}\n            <p class='alert alert-warning'>\n              {{t\n                'entity.builda-price.projects.project.estimates.importMaterialsWarning'\n              }}\n            </p>\n          {{/if}}\n  \n          <p id='labelForImportMaterials'>\n            {{t\n              'entity.builda-price.projects.project.estimates.selectYourMaterialsQuoteFromTheListOrUploadYourOwn'\n            }}\n          </p>\n          <PowerSelect\n            @options={{this.quotes}}\n            @selected={{this.selectedQuote}}\n            @searchEnabled={{true}}\n            @searchField='quoteNumber'\n            @allowClear={{true}}\n            @onChange={{fn (mut this.selectedQuote)}}\n            @closeOnSelect={{true}}\n            @afterOptionsComponent={{component\n              'pricing-quote-uploader'\n              onFileUpload=this.onFileUpload\n              fileFormats=this.supportedFileFormats\n            }}\n            @placeholder={{t\n              'entity.builda-price.projects.project.estimates.Select an existing quote file'\n            }}\n            as |quote|\n          >\n  \n            {{quote.quoteNumber}}\n            {{#if quote.quoteVersion}}\n              - v{{quote.quoteVersion}}\n            {{/if}}\n            {{#if quote.dateCreated}}\n              {{moment-format quote.dateCreated (t 'date.longWithoutWeekday')}}\n            {{/if}}\n  \n          </PowerSelect>\n        </div>\n        <div class='modal-footer'>\n          <button\n            class='btn btn-secondary text-white'\n            type='button'\n            {{on 'click' this.destroyImportMaterialsModal}}\n          >{{t 'common.Cancel'}}</button>\n          <button\n            type='button'\n            class='btn btn-primary ms-2'\n            disabled={{or\n              (not this.selectedQuote)\n              this.importMaterials.isRunning\n            }}\n            {{on 'click' (perform this.importMaterials)}}\n          >\n            {{#if this.importMaterials.isRunning}}\n              &nbsp;&nbsp;{{t\n                'entity.builda-price.projects.project.estimates.Importing materials'\n              }}&hellip;\n            {{else}}\n              {{t\n                'entity.builda-price.projects.project.estimates.Import materials'\n              }}\n            {{/if}}\n          </button>\n        </div>\n      {{/if}}\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.estimateForGenerateTasks}}\n    <ModalDialog\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n      @onClose={{this.closeGenerateTasks}}\n      @containerClass='modal-content estimates__modal-container'\n    >\n      <div class='modal-body'>\n        <p>\n          {{t\n            'entity.builda-price.projects.project.estimates.thisProcessWillGenerateTasksFromEachOfTheItemsInYourEstimate'\n          }}\n        </p>\n        <p class='fw-bold mb-2'>{{t\n            'entity.builda-price.projects.project.estimates.Task generation options'\n          }}:</p>\n        <label>{{t\n            'entity.builda-price.projects.project.estimates.Labour and materials'\n          }}&nbsp;\n          <InfoPopup\n            @text={{t\n              'entity.builda-price.projects.project.estimates.groupingItemsBySubheadingThenProductUsageExplanation'\n            }}\n          />\n        </label>\n  \n        <div class='d-flex my-1'>\n          <div class='px-2'>\n            <div class='form-check'>\n              <input\n                type='radio'\n                id='groupLabourAndMaterialUsage'\n                class='form-check-input'\n                disabled={{this.estimateForGenerateTasks.isRunning}}\n                checked={{not this.groupLabourAndMaterialBySubheading}}\n                {{on\n                  'click'\n                  (fn (mut this.groupLabourAndMaterialBySubheading) false)\n                }}\n              />\n  \n              <label for='groupLabourAndMaterialUsage'>\n                {{t 'common.Subheading'}}\n                <FaIcon @icon='chevron-right' class='mx-1 fs-6 text-secondary' />\n                {{t 'common.usage'}}\n              </label>\n            </div>\n          </div>\n          <div class='px-2'>\n            <div class='form-check'>\n              <input\n                type='radio'\n                id='groupLabourAndMaterialBySubheading'\n                class='form-check-input'\n                disabled={{this.estimateForGenerateTasks.isRunning}}\n                checked={{this.groupLabourAndMaterialBySubheading}}\n                {{on\n                  'click'\n                  (fn (mut this.groupLabourAndMaterialBySubheading) true)\n                }}\n              />\n              <label for='groupLabourAndMaterialBySubheading'>{{t\n                  'common.Subheading'\n                }}</label>\n            </div>\n          </div>\n        </div>\n  \n        <label class='pt-1'>{{t 'common.Miscellaneous'}}&nbsp;\n          <InfoPopup\n            @text={{t\n              'entity.builda-price.projects.project.estimates.groupingItemsByHeadingSubheadingExplanation'\n            }}\n          /></label>\n  \n        <div class='d-flex my-1'>\n          <div class='px-2'>\n            <div class='form-check'>\n              <input\n                type='radio'\n                id='groupMiscByItems'\n                class='form-check-input'\n                disabled={{this.estimateForGenerateTasks.isRunning}}\n                checked={{this.groupMiscByItems}}\n                {{on\n                  'click'\n                  (pipe\n                    (action (mut this.groupMiscByItems) true)\n                    (action (mut this.groupMiscBySubheading) false)\n                    (action (mut this.groupMiscByHeading) false)\n                  )\n                }}\n              />\n              <label for='groupMiscByItems'>{{t 'common.Items'}}</label>\n            </div>\n          </div>\n          <div class='px-2'>\n            <div class='form-check'>\n              <input\n                type='radio'\n                id='groupMiscBySubheading'\n                class='form-check-input'\n                disabled={{this.estimateForGenerateTasks.isRunning}}\n                checked={{this.groupMiscBySubheading}}\n                {{on\n                  'click'\n                  (pipe\n                    (action (mut this.groupMiscByItems) false)\n                    (action (mut this.groupMiscBySubheading) true)\n                    (action (mut this.groupMiscByHeading) false)\n                  )\n                }}\n              />\n              <label for='groupMiscBySubheading'>{{t\n                  'common.Subheadings'\n                }}</label>\n            </div>\n          </div>\n          <div class='px-2'>\n            <div class='form-check'>\n              <input\n                type='radio'\n                id='groupMiscByHeading'\n                class='form-check-input'\n                disabled={{this.estimateForGenerateTasks.isRunning}}\n                checked={{this.groupMiscByHeading}}\n                {{on\n                  'click'\n                  (pipe\n                    (action (mut this.groupMiscByItems) false)\n                    (action (mut this.groupMiscBySubheading) false)\n                    (action (mut this.groupMiscByHeading) true)\n                  )\n                }}\n              />\n              <label for='groupMiscByHeading'>{{t 'common.Headings'}}</label>\n            </div>\n          </div>\n        </div>\n  \n        <label class='pt-1'>{{t 'common.Subcontractors'}}&nbsp;\n          <InfoPopup\n            @text={{t\n              'entity.builda-price.projects.project.estimates.groupingItemsBySubheadingOptionExplanation'\n            }}\n          /></label>\n  \n        <div class='d-flex my-1'>\n          <div class='px-2'>\n            <div class='form-check'>\n              <input\n                type='radio'\n                id='groupSubcontractorsUsage'\n                class='form-check-input'\n                disabled={{this.estimateForGenerateTasks.isRunning}}\n                checked={{not this.groupSubcontractorsBySubheading}}\n                {{on\n                  'click'\n                  (fn (mut this.groupSubcontractorsBySubheading) false)\n                }}\n              />\n              <label for='groupSubcontractorsUsage'>{{t 'common.Subheading'}}\n                <FaIcon @icon='chevron-right' class='mx-1 fs-6 text-secondary' />\n                {{t 'common.option'}}</label>\n            </div>\n          </div>\n          <div class='px-2'>\n            <div class='form-check'>\n              <input\n                type='radio'\n                id='groupSubcontractorsBySubheading'\n                class='form-check-input'\n                disabled={{this.estimateForGenerateTasks.isRunning}}\n                checked={{this.groupSubcontractorsBySubheading}}\n                {{on\n                  'click'\n                  (fn (mut this.groupSubcontractorsBySubheading) true)\n                }}\n              />\n              <label for='groupSubcontractorsBySubheading'>{{t\n                  'common.Subheading'\n                }}</label>\n            </div>\n          </div>\n        </div>\n  \n        <label class='pt-1'>{{t 'common.Overheads'}}&nbsp;\n          <InfoPopup\n            @text={{t\n              'entity.builda-price.projects.project.estimates.groupingItemsByHeadingSubheadingExplanation'\n            }}\n          /></label>\n        <div class='d-flex my-1'>\n          <div class='px-2'>\n            <div class='form-check'>\n              <input\n                type='radio'\n                id='groupOverheadByItems'\n                class='form-check-input'\n                disabled={{this.estimateForGenerateTasks.isRunning}}\n                checked={{this.groupOverheadByItems}}\n                {{on\n                  'click'\n                  (pipe\n                    (action (mut this.groupOverheadByItems) true)\n                    (action (mut this.groupOverheadByHeading) false)\n                    (action (mut this.groupOverheadBySubheading) false)\n                  )\n                }}\n              />\n              <label for='groupOverheadByItems'>{{t 'common.Items'}}</label>\n            </div>\n          </div>\n          <div class='px-2'>\n            <div class='form-check'>\n              <input\n                type='radio'\n                id='groupOverheadBySubheading'\n                class='form-check-input'\n                disabled={{this.estimateForGenerateTasks.isRunning}}\n                checked={{this.groupOverheadBySubheading}}\n                {{on\n                  'click'\n                  (pipe\n                    (action (mut this.groupOverheadByItems) false)\n                    (action (mut this.groupOverheadByHeading) false)\n                    (action (mut this.groupOverheadBySubheading) true)\n                  )\n                }}\n              />\n              <label for='groupOverheadBySubheading'>{{t\n                  'common.Subheadings'\n                }}</label>\n            </div>\n          </div>\n          <div class='px-2'>\n            <div class='form-check'>\n              <input\n                type='radio'\n                id='groupOverheadByHeading'\n                class='form-check-input'\n                disabled={{this.estimateForGenerateTasks.isRunning}}\n                checked={{this.groupOverheadByHeading}}\n                {{on\n                  'click'\n                  (pipe\n                    (action (mut this.groupOverheadByItems) false)\n                    (action (mut this.groupOverheadByHeading) true)\n                    (action (mut this.groupOverheadBySubheading) false)\n                  )\n                }}\n              />\n              <label for='groupOverheadByHeading'>{{t 'common.Headings'}}</label>\n            </div>\n          </div>\n        </div>\n      </div>\n  \n      <div class='modal-footer'>\n        {{#if this.generateTasks.isRunning}}\n          <button type='button' class='btn btn-primary ms-2' disabled={{true}}>\n            <span class='spinner-border spinner-border-sm'></span>&nbsp;&nbsp;{{t\n              'entity.builda-price.projects.project.estimates.Generating tasks'\n            }}…\n          </button>\n        {{else}}\n          <button\n            type='button'\n            class='btn btn-secondary text-white ms-2'\n            {{on 'click' this.closeGenerateTasks}}\n          >{{t 'common.Cancel'}}</button>\n          <button\n            type='button'\n            class='btn btn-primary ms-2'\n            {{on 'click' (perform this.generateTasks)}}\n          >{{t\n              'entity.builda-price.projects.project.estimates.Generate tasks'\n            }}</button>\n        {{/if}}\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.showUnlinkedEstimatesDialog}}\n    <ModalDialog\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n      @onClose={{this.destroyImportUnlinkedEstimatesData}}\n      @containerClass='modal-content modal-dialog-scrollable w-auto max-width-50 h-auto'\n    >\n      <div class='modal-body'>\n        <p>\n          {{t\n            'entity.builda-price.projects.project.estimates.theEstimatesBelowWereCreatedInPricingAndAreNotYetLinkedWithAnyProject'\n          }}<br />\n          {{t\n            'entity.builda-price.projects.project.estimates.selectTheEstimatesForThisProjectFromTheListBelowImportingEstimatesWillLinkThemWithThisProject'\n          }}\n        </p>\n        <div\n          class='ember-power-select--auto-height'\n          data-test-import-estimate-from-pricing\n        >\n          <PowerSelectMultiple\n            @options={{this.model.unlinkedEstimates.last.value}}\n            @selected={{this.selectedUnlinkedEstimates}}\n            @searchEnabled={{true}}\n            @searchField='optionDescription'\n            @allowClear={{true}}\n            @required={{true}}\n            @placeholder={{t\n              'entity.builda-price.projects.project.estimates.Select the estimates for this project'\n            }}\n            @onChange={{fn (mut this.selectedUnlinkedEstimates)}}\n            as |template|\n          >\n            {{template.optionDescription}}\n          </PowerSelectMultiple>\n        </div>\n      </div>\n      <div class='modal-footer'>\n        <button\n          type='button'\n          class='btn btn-secondary text-white'\n          {{on 'click' this.destroyImportUnlinkedEstimatesData}}\n        >\n          {{t 'common.Cancel'}}\n        </button>\n        <button\n          type='button'\n          class='btn btn-primary ms-2'\n          data-test-import-estimate-save-button\n          {{on 'click' (perform this.importSelectedUnlinkedEstimates)}}\n        >\n          {{#if this.importSelectedUnlinkedEstimates.isRunning}}\n            {{t\n              'entity.builda-price.projects.project.estimates.Importing estimates'\n            }}&hellip;\n          {{else}}\n            {{t\n              'entity.builda-price.projects.project.estimates.Import selected estimates'\n            }}\n          {{/if}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"eKgcu+p5\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"common.Estimates\\\"],null]]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 pb-2 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,[28,[35,4],[\\\"common.Estimates\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center flex-wrap\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,10],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageEstimates\\\"],null],[[[41,[30,0,[\\\"model\\\",\\\"unlinkedEstimates\\\",\\\"last\\\",\\\"value\\\",\\\"length\\\"]],[[[1,\\\"          \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary text-white text-nowrap\\\"],[24,\\\"data-test-estimate-import-estimates-from-pricing\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"showUnlinkedEstimatesDialog\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n              \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"link\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.Import unlinked estimates from Pricing\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,17],[[24,\\\"data-test-estimate-status-filter\\\",\\\"\\\"]],[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"filter\\\"]],[28,[37,14],[[28,[37,15],[[30,0,[\\\"filter\\\"]]],null]],null],\\\"form-control select-box\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"all\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.All estimates\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"DRAFT\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.Draft estimates\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"IMPORTED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.Imported estimates\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"APPROVED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.Approved estimates\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"REJECTED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.Rejected estimates\\\"],null]]],[]]]]],[1,\\\"\\\\n          \\\"]],[1]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,18],[[24,0,\\\"form-control\\\"],[16,\\\"placeholder\\\",[28,[37,4],[\\\"entity.builda-price.projects.project.estimates.Search for estimates\\\"],null]],[24,\\\"data-test-estimate-search\\\",\\\"\\\"]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,10],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageEstimates\\\"],null],[[[1,\\\"        \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap\\\"],[24,\\\"data-test-estimate-create\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"openNewEstimateForm\\\"]]],null]],null],[12],[1,\\\"\\\\n            \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.Create new estimate\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"estimates\\\",\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[8,[39,20],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"px-3\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,10],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageEstimates\\\"],null],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"col-3 offset-3 fw-bold\\\"],[12],[1,[28,[35,4],[\\\"common.Merchant\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-2 fw-bold\\\"],[12],[1,[28,[35,4],[\\\"shared.report.Date created\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-2 fw-bold text-center\\\"],[12],[1,[28,[35,4],[\\\"common.Status\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-2 fw-bold text-center\\\"],[12],[1,[28,[35,4],[\\\"common.Actions\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"col-3 offset-3 fw-bold\\\"],[12],[1,[28,[35,4],[\\\"common.Merchant\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-3 fw-bold\\\"],[12],[1,[28,[35,4],[\\\"shared.report.Date created\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-3 fw-bold text-center\\\"],[12],[1,[28,[35,4],[\\\"common.Status\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[42,[28,[37,22],[[28,[37,22],[[30,0,[\\\"filteredEstimates\\\"]]],null]],null],null,[[[1,\\\"      \\\"],[11,0],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"estimates__card card shadow-sm text-dark p-3 my-3\\\"],[16,\\\"data-test-estimate\\\",[30,2,[\\\"id\\\"]]],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"onEstimateRowClick\\\"]],[30,2,[\\\"id\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,10],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageEstimates\\\"],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"row align-items-center\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col fs-2 estimates__card-estimate-name\\\"],[15,\\\"data-test-estimate-name\\\",[30,2,[\\\"id\\\"]]],[12],[1,\\\"\\\\n              \\\"],[1,[30,2,[\\\"name\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"col-3 d-flex flex-row flex-wrap fs-5\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"pricingMerchantName\\\"]],[[[1,\\\"                  \\\"],[1,[30,2,[\\\"pricingMerchantName\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  —\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-2 d-flex flex-row flex-wrap fs-5\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"dateCreated\\\"]],[[[1,\\\"                  \\\"],[1,[28,[35,23],[[30,2,[\\\"dateCreated\\\"]],[28,[37,4],[\\\"date.shortWithWeekday\\\"],null]],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  —\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,0],[14,0,\\\"col-lg-2 col-3 d-flex justify-content-center\\\"],[12],[1,\\\"\\\\n              \\\"],[10,1],[15,0,[29,[\\\"badge rounded-pill fs-6 px-3 py-2\\\\n                  \\\",[52,[28,[37,24],[[30,2,[\\\"status\\\"]],\\\"APPROVED\\\"],null],\\\"bg-success\\\"],\\\"\\\\n                  \\\",[52,[28,[37,24],[[30,2,[\\\"status\\\"]],\\\"REJECTED\\\"],null],\\\"bg-danger\\\"],\\\"\\\\n                  \\\",[52,[28,[37,24],[[30,2,[\\\"status\\\"]],\\\"DRAFT\\\"],null],\\\"bg-warning text-dark\\\"],\\\"\\\\n                  \\\",[52,[28,[37,24],[[30,2,[\\\"status\\\"]],\\\"IMPORTED\\\"],null],\\\"bg-info\\\"],\\\"\\\\n                  \\\"]]],[15,\\\"data-test-estimate-status\\\",[30,2,[\\\"id\\\"]]],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,25],[[30,2,[\\\"status\\\"]]],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-2 d-flex align-items-center justify-content-center\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,26],[[24,0,\\\"p-2\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"noop\\\"]]],null]],[[\\\"@direction\\\"],[\\\"bottom-left\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[8,[39,16],[[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"fs-3\\\"]],[[\\\"@icon\\\"],[\\\"ellipsis-h\\\"]],null],[1,\\\"\\\\n                \\\"],[8,[30,3,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n                  \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,\\\"data-test-estimate-edit\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,27],[[28,[37,14],[[30,0,[\\\"openEditEstimateForm\\\"]],[30,2]],null]],null]],null],[12],[1,\\\"\\\\n                    \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"pen\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Edit\\\"],null]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,\\\"data-test-estimate-duplicate\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,27],[[28,[37,14],[[28,[37,15],[[30,0,[\\\"duplicateEstimateData\\\"]]],null],[30,2]],null]],null]],null],[12],[1,\\\"\\\\n                    \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"clone\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Duplicate\\\"],null]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,\\\"data-test-estimate-add-templates\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,27],[[28,[37,19],[[30,0,[\\\"getTemplateOptions\\\"]],[30,2]],null]],null]],null],[12],[1,\\\"\\\\n                    \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"folder\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.Import template\\\"],null]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,27],[[28,[37,19],[[30,0,[\\\"getPreloadedQuotes\\\"]],[30,2]],null]],null]],null],[12],[1,\\\"\\\\n                    \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"folder-open\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.Import materials\\\"],null]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,27],[[28,[37,14],[[28,[37,15],[[30,0,[\\\"estimateForGenerateTasks\\\"]]],null],[30,2]],null]],null]],null],[12],[1,\\\"\\\\n                    \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"file-export\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.Generate tasks\\\"],null]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"]],[]]]]],[1,\\\"\\\\n              \\\"]],[3]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"row align-items-center\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col fs-2 estimates__card-estimate-name\\\"],[15,\\\"data-test-estimate-name\\\",[30,2,[\\\"id\\\"]]],[12],[1,\\\"\\\\n              \\\"],[1,[30,2,[\\\"name\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"col-3 d-flex flex-row flex-wrap fs-5\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"pricingMerchantName\\\"]],[[[1,\\\"                  \\\"],[1,[30,2,[\\\"pricingMerchantName\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  —\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-3 d-flex flex-row flex-wrap fs-5\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"dateCreated\\\"]],[[[1,\\\"                  \\\"],[1,[28,[35,23],[[30,2,[\\\"dateCreated\\\"]],[28,[37,4],[\\\"date.shortWithWeekday\\\"],null]],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  —\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,0],[14,0,\\\"col-3 d-flex justify-content-center\\\"],[12],[1,\\\"\\\\n              \\\"],[10,1],[15,0,[29,[\\\"badge rounded-pill fs-6 px-3 py-2\\\\n                  \\\",[52,[28,[37,24],[[30,2,[\\\"status\\\"]],\\\"APPROVED\\\"],null],\\\"bg-success\\\"],\\\"\\\\n                  \\\",[52,[28,[37,24],[[30,2,[\\\"status\\\"]],\\\"REJECTED\\\"],null],\\\"bg-danger\\\"],\\\"\\\\n                  \\\",[52,[28,[37,24],[[30,2,[\\\"status\\\"]],\\\"DRAFT\\\"],null],\\\"bg-warning text-dark\\\"],\\\"\\\\n                  \\\",[52,[28,[37,24],[[30,2,[\\\"status\\\"]],\\\"IMPORTED\\\"],null],\\\"bg-info\\\"],\\\"\\\\n                  \\\"]]],[15,\\\"data-test-estimate-status\\\",[30,2,[\\\"id\\\"]]],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,25],[[30,2,[\\\"status\\\"]]],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"error-page error-page--no-data\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2 error-page__icon\\\"],[12],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"info-circle\\\"]],null],[13],[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3 error-page__title\\\"],[12],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.No estimates\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"editingEstimateData\\\"]],[[[1,\\\"  \\\"],[8,[39,29],null,[[\\\"@overlayClass\\\",\\\"@translucentOverlay\\\",\\\"@onClose\\\",\\\"@containerClass\\\"],[\\\"modal\\\",true,[28,[37,14],[[28,[37,15],[[30,0,[\\\"editingEstimateData\\\"]]],null],null],null],\\\"modal-content estimates__modal-container\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"form\\\"],[14,\\\"data-test-edit-estimate-form\\\",\\\"\\\"],[12],[1,\\\"\\\\n\\\"],[44,[[28,[37,32],[[30,0,[\\\"editingEstimateData\\\"]],[30,0,[\\\"editEstimateValidationMap\\\"]]],null]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,33],[[16,\\\"disabled\\\",[30,0,[\\\"editEstimate\\\",\\\"isRunning\\\"]]],[24,\\\"data-test-edit-estimate-name\\\",\\\"\\\"]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@required\\\"],[\\\"text\\\",[28,[37,4],[\\\"common.Name\\\"],null],\\\"name\\\",[30,4],[28,[37,34],[[30,0,[\\\"editEstimate\\\",\\\"performCount\\\"]],0],null],true]],null],[1,\\\"\\\\n          \\\"],[8,[39,33],[[16,\\\"disabled\\\",[30,0,[\\\"editEstimate\\\",\\\"isRunning\\\"]]],[24,\\\"data-test-edit-estimate-status\\\",\\\"\\\"]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@required\\\"],[\\\"select\\\",[28,[37,4],[\\\"common.Status\\\"],null],\\\"status\\\",[30,0,[\\\"status\\\"]],[30,4],[28,[37,34],[[30,0,[\\\"editEstimate\\\",\\\"performCount\\\"]],0],null],true]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"me-auto\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"editEstimate\\\",\\\"isRunning\\\"]]],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline\\\"],[24,\\\"data-test-edit-estimate-delete-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"openDeleteModal\\\"]],[30,0,[\\\"editingEstimateData\\\",\\\"estimate\\\"]]],null]],null],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.Delete estimate\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"editEstimate\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary ms-2\\\"],[15,\\\"disabled\\\",true],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n                \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.Editing estimate\\\"],null]],[1,\\\"…\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[24,\\\"data-test-edit-estimate-close-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"editingEstimateData\\\"]]],null],null],null]],null],[12],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"editEstimate\\\",\\\"isRunning\\\"]]],[24,\\\"data-test-edit-estimate-save-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"editEstimate\\\"]],[30,4]],null]],null],[12],[1,[28,[35,4],[\\\"common.Save\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[4]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newEstimateData\\\"]],[[[1,\\\"  \\\"],[8,[39,29],null,[[\\\"@overlayClass\\\",\\\"@translucentOverlay\\\",\\\"@onClose\\\",\\\"@containerClass\\\"],[\\\"modal\\\",true,[28,[37,14],[[28,[37,15],[[30,0,[\\\"newEstimateData\\\"]]],null],null],null],\\\"modal-content estimates__modal-container\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"openNewEstimateForm\\\",\\\"isRunning\\\"]],[[[1,\\\"      \\\"],[8,[39,20],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\n      \\\"],[10,\\\"form\\\"],[14,\\\"data-test-new-estimate-form\\\",\\\"\\\"],[12],[1,\\\"\\\\n\\\"],[44,[[28,[37,32],[[30,0,[\\\"newEstimateData\\\"]],[30,0,[\\\"createNewEstimateValidationMap\\\"]]],null]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n\\\\n            \\\"],[8,[39,33],[[16,\\\"disabled\\\",[30,0,[\\\"createEstimate\\\",\\\"isRunning\\\"]]],[24,\\\"data-test-new-estimate-name\\\",\\\"\\\"]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@required\\\"],[\\\"text\\\",[28,[37,4],[\\\"common.Name\\\"],null],\\\"name\\\",[30,5],[28,[37,34],[[30,0,[\\\"createEstimate\\\",\\\"performCount\\\"]],0],null],true]],null],[1,\\\"\\\\n            \\\"],[8,[39,33],[[16,\\\"disabled\\\",[30,0,[\\\"createEstimate\\\",\\\"isRunning\\\"]]],[24,\\\"data-test-new-estimate-merchant\\\",\\\"\\\"]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@required\\\"],[\\\"select\\\",[28,[37,4],[\\\"common.Merchant\\\"],null],\\\"merchant\\\",[30,0,[\\\"merchantList\\\"]],[30,5],[28,[37,34],[[30,0,[\\\"createEstimate\\\",\\\"performCount\\\"]],0],null],true]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"createEstimate\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary ms-2\\\"],[15,\\\"disabled\\\",true],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.Creating estimate\\\"],null]],[1,\\\"…\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[8,[39,33],[[16,\\\"disabled\\\",[30,0,[\\\"createEstimate\\\",\\\"isRunning\\\"]]],[24,\\\"data-test-new-estimate-open-and-save\\\",\\\"\\\"]],[[\\\"@containerClass\\\",\\\"@labelClass\\\",\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"form-check\\\",\\\"m-0\\\",\\\"checkbox\\\",[28,[37,4],[\\\"entity.builda-price.projects.project.estimates.Open estimate after creation\\\"],null],\\\"openAndSave\\\",[30,5],[28,[37,34],[[30,0,[\\\"createEstimate\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[24,\\\"data-test-new-estimate-close-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"newEstimateData\\\"]]],null],null],null]],null],[12],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"createEstimate\\\",\\\"isRunning\\\"]]],[24,\\\"data-test-new-estimate-save-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"createEstimate\\\"]],[30,5]],null]],null],[12],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.Create estimate\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[5]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[8,[39,35],null,[[\\\"@visible\\\",\\\"@message\\\",\\\"@title\\\",\\\"@confirmText\\\",\\\"@deleteButtonText\\\",\\\"@deletingButtonText\\\",\\\"@onDelete\\\",\\\"@onCancel\\\"],[[30,0,[\\\"deletingEstimateData\\\"]],[30,0,[\\\"deleteMessages\\\"]],[28,[37,4],[\\\"entity.builda-price.projects.project.estimates.Delete estimate\\\"],null],[28,[37,4],[\\\"entity.builda-price.projects.project.estimates.delete estimate\\\"],null],[28,[37,4],[\\\"entity.builda-price.projects.project.estimates.Delete estimate\\\"],null],[28,[37,4],[\\\"common.Deleting\\\"],null],[28,[37,19],[[30,0,[\\\"deleteEstimate\\\"]]],null],[28,[37,14],[[30,0,[\\\"closeDeleteModal\\\"]],[30,0,[\\\"deletingEstimateData\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[10,2],[12],[1,[28,[35,4],[\\\"shared.estimate.This action cannot be undone\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"duplicateEstimateData\\\"]],[[[1,\\\"  \\\"],[8,[39,29],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\"],[\\\"modal\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"duplicateEstimateData\\\"]]],null],null],null],true,\\\"modal-content modal-dialog-scrollable w-auto max-width-75 h-auto\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.areYouSureYouWantToDuplicateThisEstimate\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"duplicateEstimate\\\",\\\"isRunning\\\"]],[[[1,\\\"        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary ms-2\\\"],[15,\\\"disabled\\\",true],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.Duplicating estimate\\\"],null]],[1,\\\"…\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"form-check\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,18],[[24,\\\"data-test-attach-duplicate-estimate-to-current-project\\\",\\\"\\\"],[24,1,\\\"duplicateAndAttach\\\"],[24,0,\\\"form-check-input\\\"],[16,\\\"disabled\\\",[30,0,[\\\"duplicateEstimate\\\",\\\"isRunning\\\"]]],[4,[38,13],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"attachToProject\\\"]]],null],[28,[37,37],[[30,0,[\\\"attachToProject\\\"]]],null]],null]],null]],[[\\\"@type\\\"],[\\\"checkbox\\\"]],null],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"duplicateAndAttach\\\"],[12],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.Attach to current project\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white\\\"],[16,\\\"disabled\\\",[30,0,[\\\"duplicateEstimate\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"duplicateEstimateData\\\"]]],null],null],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary text-white\\\"],[16,\\\"disabled\\\",[30,0,[\\\"duplicateEstimate\\\",\\\"isRunning\\\"]]],[24,\\\"data-test-duplicate-estimate-btn\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"duplicateEstimate\\\"]]],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Duplicate\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"importTemplateData\\\"]],[[[1,\\\"  \\\"],[8,[39,29],null,[[\\\"@overlayClass\\\",\\\"@containerClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",\\\"modal-content estimates__modal-container\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"importTemplateData\\\"]]],null],null],null],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"getTemplateOptions\\\",\\\"isRunning\\\"]],[[[1,\\\"      \\\"],[8,[39,20],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,\\\"form\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n          \\\"],[10,2],[12],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.pleaseSelectTheTemplatesYouWouldLikeToImport\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"ember-power-select--auto-height\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,39],null,[[\\\"@options\\\",\\\"@selected\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@allowClear\\\",\\\"@required\\\",\\\"@placeholder\\\",\\\"@onChange\\\"],[[30,0,[\\\"templates\\\"]],[30,0,[\\\"selectedTemplates\\\"]],true,\\\"name\\\",true,true,[28,[37,4],[\\\"entity.builda-price.projects.project.estimates.Select templates\\\"],null],[28,[37,14],[[28,[37,15],[[30,0,[\\\"selectedTemplates\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[1,[30,6,[\\\"name\\\"]]],[1,\\\"\\\\n            \\\"]],[6]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"importTemplates\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary ms-2\\\"],[15,\\\"disabled\\\",true],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n              \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[1,\\\"\\\\n              \\\"],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.Importing templates\\\"],null]],[1,\\\"…\\\\n            \\\"],[13]],[]],[[[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"importTemplateData\\\"]]],null],null],null]],null],[12],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"importTemplates\\\"]]],null]],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"common.Import\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"importMaterialsData\\\"]],[[[1,\\\"  \\\"],[8,[39,29],null,[[\\\"@overlayClass\\\",\\\"@translucentOverlay\\\",\\\"@onClose\\\",\\\"@containerClass\\\"],[\\\"modal\\\",true,[30,0,[\\\"destroyImportMaterialsModal\\\"]],\\\"modal-content modal-dialog-scrollable w-auto max-width-75 h-auto\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"getPreloadedQuotes\\\",\\\"isRunning\\\"]],[[[1,\\\"      \\\"],[8,[39,20],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityIsCalStudent\\\"]],[[[1,\\\"          \\\"],[10,2],[14,0,\\\"alert alert-warning\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.importMaterialsWarning\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n        \\\"],[10,2],[14,1,\\\"labelForImportMaterials\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.selectYourMaterialsQuoteFromTheListOrUploadYourOwn\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,40],null,[[\\\"@options\\\",\\\"@selected\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@allowClear\\\",\\\"@onChange\\\",\\\"@closeOnSelect\\\",\\\"@afterOptionsComponent\\\",\\\"@placeholder\\\"],[[30,0,[\\\"quotes\\\"]],[30,0,[\\\"selectedQuote\\\"]],true,\\\"quoteNumber\\\",true,[28,[37,14],[[28,[37,15],[[30,0,[\\\"selectedQuote\\\"]]],null]],null],true,[50,\\\"pricing-quote-uploader\\\",0,null,[[\\\"onFileUpload\\\",\\\"fileFormats\\\"],[[30,0,[\\\"onFileUpload\\\"]],[30,0,[\\\"supportedFileFormats\\\"]]]]],[28,[37,4],[\\\"entity.builda-price.projects.project.estimates.Select an existing quote file\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\\n          \\\"],[1,[30,7,[\\\"quoteNumber\\\"]]],[1,\\\"\\\\n\\\"],[41,[30,7,[\\\"quoteVersion\\\"]],[[[1,\\\"            - v\\\"],[1,[30,7,[\\\"quoteVersion\\\"]]],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,7,[\\\"dateCreated\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,23],[[30,7,[\\\"dateCreated\\\"]],[28,[37,4],[\\\"date.longWithoutWeekday\\\"],null]],null]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n        \\\"]],[7]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"destroyImportMaterialsModal\\\"]]],null],[12],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[16,\\\"disabled\\\",[28,[37,41],[[28,[37,37],[[30,0,[\\\"selectedQuote\\\"]]],null],[30,0,[\\\"importMaterials\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"importMaterials\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"importMaterials\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.Importing materials\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.Import materials\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"estimateForGenerateTasks\\\"]],[[[1,\\\"  \\\"],[8,[39,29],null,[[\\\"@overlayClass\\\",\\\"@translucentOverlay\\\",\\\"@onClose\\\",\\\"@containerClass\\\"],[\\\"modal\\\",true,[30,0,[\\\"closeGenerateTasks\\\"]],\\\"modal-content estimates__modal-container\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.thisProcessWillGenerateTasksFromEachOfTheItemsInYourEstimate\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"fw-bold mb-2\\\"],[12],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.Task generation options\\\"],null]],[1,\\\":\\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[12],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.Labour and materials\\\"],null]],[1,\\\" \\\\n        \\\"],[8,[39,42],null,[[\\\"@text\\\"],[[28,[37,4],[\\\"entity.builda-price.projects.project.estimates.groupingItemsBySubheadingThenProductUsageExplanation\\\"],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"d-flex my-1\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"px-2\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"form-check\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"input\\\"],[24,1,\\\"groupLabourAndMaterialUsage\\\"],[24,0,\\\"form-check-input\\\"],[16,\\\"disabled\\\",[30,0,[\\\"estimateForGenerateTasks\\\",\\\"isRunning\\\"]]],[16,\\\"checked\\\",[28,[37,37],[[30,0,[\\\"groupLabourAndMaterialBySubheading\\\"]]],null]],[24,4,\\\"radio\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"groupLabourAndMaterialBySubheading\\\"]]],null],false],null]],null],[12],[13],[1,\\\"\\\\n\\\\n            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"groupLabourAndMaterialUsage\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"common.Subheading\\\"],null]],[1,\\\"\\\\n              \\\"],[8,[39,16],[[24,0,\\\"mx-1 fs-6 text-secondary\\\"]],[[\\\"@icon\\\"],[\\\"chevron-right\\\"]],null],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"common.usage\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"px-2\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"form-check\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"input\\\"],[24,1,\\\"groupLabourAndMaterialBySubheading\\\"],[24,0,\\\"form-check-input\\\"],[16,\\\"disabled\\\",[30,0,[\\\"estimateForGenerateTasks\\\",\\\"isRunning\\\"]]],[16,\\\"checked\\\",[30,0,[\\\"groupLabourAndMaterialBySubheading\\\"]]],[24,4,\\\"radio\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"groupLabourAndMaterialBySubheading\\\"]]],null],true],null]],null],[12],[13],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"groupLabourAndMaterialBySubheading\\\"],[12],[1,[28,[35,4],[\\\"common.Subheading\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"pt-1\\\"],[12],[1,[28,[35,4],[\\\"common.Miscellaneous\\\"],null]],[1,\\\" \\\\n        \\\"],[8,[39,42],null,[[\\\"@text\\\"],[[28,[37,4],[\\\"entity.builda-price.projects.project.estimates.groupingItemsByHeadingSubheadingExplanation\\\"],null]]],null],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"d-flex my-1\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"px-2\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"form-check\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"input\\\"],[24,1,\\\"groupMiscByItems\\\"],[24,0,\\\"form-check-input\\\"],[16,\\\"disabled\\\",[30,0,[\\\"estimateForGenerateTasks\\\",\\\"isRunning\\\"]]],[16,\\\"checked\\\",[30,0,[\\\"groupMiscByItems\\\"]]],[24,4,\\\"radio\\\"],[4,[38,13],[\\\"click\\\",[28,[37,43],[[28,[37,44],[[30,0],[28,[37,15],[[30,0,[\\\"groupMiscByItems\\\"]]],null],true],null],[28,[37,44],[[30,0],[28,[37,15],[[30,0,[\\\"groupMiscBySubheading\\\"]]],null],false],null],[28,[37,44],[[30,0],[28,[37,15],[[30,0,[\\\"groupMiscByHeading\\\"]]],null],false],null]],null]],null],[12],[13],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"groupMiscByItems\\\"],[12],[1,[28,[35,4],[\\\"common.Items\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"px-2\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"form-check\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"input\\\"],[24,1,\\\"groupMiscBySubheading\\\"],[24,0,\\\"form-check-input\\\"],[16,\\\"disabled\\\",[30,0,[\\\"estimateForGenerateTasks\\\",\\\"isRunning\\\"]]],[16,\\\"checked\\\",[30,0,[\\\"groupMiscBySubheading\\\"]]],[24,4,\\\"radio\\\"],[4,[38,13],[\\\"click\\\",[28,[37,43],[[28,[37,44],[[30,0],[28,[37,15],[[30,0,[\\\"groupMiscByItems\\\"]]],null],false],null],[28,[37,44],[[30,0],[28,[37,15],[[30,0,[\\\"groupMiscBySubheading\\\"]]],null],true],null],[28,[37,44],[[30,0],[28,[37,15],[[30,0,[\\\"groupMiscByHeading\\\"]]],null],false],null]],null]],null],[12],[13],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"groupMiscBySubheading\\\"],[12],[1,[28,[35,4],[\\\"common.Subheadings\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"px-2\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"form-check\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"input\\\"],[24,1,\\\"groupMiscByHeading\\\"],[24,0,\\\"form-check-input\\\"],[16,\\\"disabled\\\",[30,0,[\\\"estimateForGenerateTasks\\\",\\\"isRunning\\\"]]],[16,\\\"checked\\\",[30,0,[\\\"groupMiscByHeading\\\"]]],[24,4,\\\"radio\\\"],[4,[38,13],[\\\"click\\\",[28,[37,43],[[28,[37,44],[[30,0],[28,[37,15],[[30,0,[\\\"groupMiscByItems\\\"]]],null],false],null],[28,[37,44],[[30,0],[28,[37,15],[[30,0,[\\\"groupMiscBySubheading\\\"]]],null],false],null],[28,[37,44],[[30,0],[28,[37,15],[[30,0,[\\\"groupMiscByHeading\\\"]]],null],true],null]],null]],null],[12],[13],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"groupMiscByHeading\\\"],[12],[1,[28,[35,4],[\\\"common.Headings\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"pt-1\\\"],[12],[1,[28,[35,4],[\\\"common.Subcontractors\\\"],null]],[1,\\\" \\\\n        \\\"],[8,[39,42],null,[[\\\"@text\\\"],[[28,[37,4],[\\\"entity.builda-price.projects.project.estimates.groupingItemsBySubheadingOptionExplanation\\\"],null]]],null],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"d-flex my-1\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"px-2\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"form-check\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"input\\\"],[24,1,\\\"groupSubcontractorsUsage\\\"],[24,0,\\\"form-check-input\\\"],[16,\\\"disabled\\\",[30,0,[\\\"estimateForGenerateTasks\\\",\\\"isRunning\\\"]]],[16,\\\"checked\\\",[28,[37,37],[[30,0,[\\\"groupSubcontractorsBySubheading\\\"]]],null]],[24,4,\\\"radio\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"groupSubcontractorsBySubheading\\\"]]],null],false],null]],null],[12],[13],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"groupSubcontractorsUsage\\\"],[12],[1,[28,[35,4],[\\\"common.Subheading\\\"],null]],[1,\\\"\\\\n              \\\"],[8,[39,16],[[24,0,\\\"mx-1 fs-6 text-secondary\\\"]],[[\\\"@icon\\\"],[\\\"chevron-right\\\"]],null],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"common.option\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"px-2\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"form-check\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"input\\\"],[24,1,\\\"groupSubcontractorsBySubheading\\\"],[24,0,\\\"form-check-input\\\"],[16,\\\"disabled\\\",[30,0,[\\\"estimateForGenerateTasks\\\",\\\"isRunning\\\"]]],[16,\\\"checked\\\",[30,0,[\\\"groupSubcontractorsBySubheading\\\"]]],[24,4,\\\"radio\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"groupSubcontractorsBySubheading\\\"]]],null],true],null]],null],[12],[13],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"groupSubcontractorsBySubheading\\\"],[12],[1,[28,[35,4],[\\\"common.Subheading\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"pt-1\\\"],[12],[1,[28,[35,4],[\\\"common.Overheads\\\"],null]],[1,\\\" \\\\n        \\\"],[8,[39,42],null,[[\\\"@text\\\"],[[28,[37,4],[\\\"entity.builda-price.projects.project.estimates.groupingItemsByHeadingSubheadingExplanation\\\"],null]]],null],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex my-1\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"px-2\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"form-check\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"input\\\"],[24,1,\\\"groupOverheadByItems\\\"],[24,0,\\\"form-check-input\\\"],[16,\\\"disabled\\\",[30,0,[\\\"estimateForGenerateTasks\\\",\\\"isRunning\\\"]]],[16,\\\"checked\\\",[30,0,[\\\"groupOverheadByItems\\\"]]],[24,4,\\\"radio\\\"],[4,[38,13],[\\\"click\\\",[28,[37,43],[[28,[37,44],[[30,0],[28,[37,15],[[30,0,[\\\"groupOverheadByItems\\\"]]],null],true],null],[28,[37,44],[[30,0],[28,[37,15],[[30,0,[\\\"groupOverheadByHeading\\\"]]],null],false],null],[28,[37,44],[[30,0],[28,[37,15],[[30,0,[\\\"groupOverheadBySubheading\\\"]]],null],false],null]],null]],null],[12],[13],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"groupOverheadByItems\\\"],[12],[1,[28,[35,4],[\\\"common.Items\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"px-2\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"form-check\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"input\\\"],[24,1,\\\"groupOverheadBySubheading\\\"],[24,0,\\\"form-check-input\\\"],[16,\\\"disabled\\\",[30,0,[\\\"estimateForGenerateTasks\\\",\\\"isRunning\\\"]]],[16,\\\"checked\\\",[30,0,[\\\"groupOverheadBySubheading\\\"]]],[24,4,\\\"radio\\\"],[4,[38,13],[\\\"click\\\",[28,[37,43],[[28,[37,44],[[30,0],[28,[37,15],[[30,0,[\\\"groupOverheadByItems\\\"]]],null],false],null],[28,[37,44],[[30,0],[28,[37,15],[[30,0,[\\\"groupOverheadByHeading\\\"]]],null],false],null],[28,[37,44],[[30,0],[28,[37,15],[[30,0,[\\\"groupOverheadBySubheading\\\"]]],null],true],null]],null]],null],[12],[13],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"groupOverheadBySubheading\\\"],[12],[1,[28,[35,4],[\\\"common.Subheadings\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"px-2\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"form-check\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"input\\\"],[24,1,\\\"groupOverheadByHeading\\\"],[24,0,\\\"form-check-input\\\"],[16,\\\"disabled\\\",[30,0,[\\\"estimateForGenerateTasks\\\",\\\"isRunning\\\"]]],[16,\\\"checked\\\",[30,0,[\\\"groupOverheadByHeading\\\"]]],[24,4,\\\"radio\\\"],[4,[38,13],[\\\"click\\\",[28,[37,43],[[28,[37,44],[[30,0],[28,[37,15],[[30,0,[\\\"groupOverheadByItems\\\"]]],null],false],null],[28,[37,44],[[30,0],[28,[37,15],[[30,0,[\\\"groupOverheadByHeading\\\"]]],null],true],null],[28,[37,44],[[30,0],[28,[37,15],[[30,0,[\\\"groupOverheadBySubheading\\\"]]],null],false],null]],null]],null],[12],[13],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"groupOverheadByHeading\\\"],[12],[1,[28,[35,4],[\\\"common.Headings\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"generateTasks\\\",\\\"isRunning\\\"]],[[[1,\\\"        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary ms-2\\\"],[15,\\\"disabled\\\",true],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.Generating tasks\\\"],null]],[1,\\\"…\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"closeGenerateTasks\\\"]]],null],[12],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"generateTasks\\\"]]],null]],null],[12],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.Generate tasks\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showUnlinkedEstimatesDialog\\\"]],[[[1,\\\"  \\\"],[8,[39,29],null,[[\\\"@overlayClass\\\",\\\"@translucentOverlay\\\",\\\"@onClose\\\",\\\"@containerClass\\\"],[\\\"modal\\\",true,[30,0,[\\\"destroyImportUnlinkedEstimatesData\\\"]],\\\"modal-content modal-dialog-scrollable w-auto max-width-50 h-auto\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.theEstimatesBelowWereCreatedInPricingAndAreNotYetLinkedWithAnyProject\\\"],null]],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.selectTheEstimatesForThisProjectFromTheListBelowImportingEstimatesWillLinkThemWithThisProject\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"ember-power-select--auto-height\\\"],[14,\\\"data-test-import-estimate-from-pricing\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,39],null,[[\\\"@options\\\",\\\"@selected\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@allowClear\\\",\\\"@required\\\",\\\"@placeholder\\\",\\\"@onChange\\\"],[[30,0,[\\\"model\\\",\\\"unlinkedEstimates\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"selectedUnlinkedEstimates\\\"]],true,\\\"optionDescription\\\",true,true,[28,[37,4],[\\\"entity.builda-price.projects.project.estimates.Select the estimates for this project\\\"],null],[28,[37,14],[[28,[37,15],[[30,0,[\\\"selectedUnlinkedEstimates\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[30,8,[\\\"optionDescription\\\"]]],[1,\\\"\\\\n        \\\"]],[8]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"destroyImportUnlinkedEstimatesData\\\"]]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[24,\\\"data-test-import-estimate-save-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"importSelectedUnlinkedEstimates\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"importSelectedUnlinkedEstimates\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.Importing estimates\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.Import selected estimates\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"si\\\",\\\"estimate\\\",\\\"po\\\",\\\"estimateModel\\\",\\\"estimateModel\\\",\\\"template\\\",\\\"quote\\\",\\\"template\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"header\\\",\\\"if\\\",\\\"h2\\\",\\\"div\\\",\\\"includes-feature-flags\\\",\\\"span\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"fa-icon\\\",\\\"select-input\\\",\\\"input\\\",\\\"perform\\\",\\\"loading-icon\\\",\\\"each\\\",\\\"-track-array\\\",\\\"moment-format\\\",\\\"eq\\\",\\\"convert-to-title-case\\\",\\\"pop-over\\\",\\\"stop-propagation\\\",\\\"h3\\\",\\\"modal-dialog\\\",\\\"form\\\",\\\"let\\\",\\\"changeset\\\",\\\"ptl-input\\\",\\\"gt\\\",\\\"confirm-delete\\\",\\\"p\\\",\\\"not\\\",\\\"label\\\",\\\"power-select-multiple\\\",\\\"power-select\\\",\\\"or\\\",\\\"info-popup\\\",\\\"pipe\\\",\\\"action\\\",\\\"br\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/estimates/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/financials\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='mx-4 mt-4 h-100'>\n    <header class='border-bottom mb-3 pb-2 d-flex align-items-center'>\n      {{#if (media 'isDesktop')}}\n        <h2 class='flex-grow-1 m-0 my-2'>{{t 'common.Financials'}}</h2>\n      {{/if}}\n    </header>\n  \n    {{#if (and this.isLoadingBudget this.isLoadingQuote)}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mt-3 d-flex flex-column align-items-start'>\n        <div class='d-flex flex-row align-items-start flex-wrap'>\n          {{#if\n            (includes-feature-flags\n              this.model.project.last.value 'canUseBudgetVersions'\n            )\n          }}\n            <div\n              class='border rounded p-4 d-flex flex-column mb-4 me-4'\n              style='min-width: 350px;'\n            >\n              <div class='d-flex align-items-center mb-3'>\n                <h2 class='m-0'>\n                  {{t 'common.Budget'}}\n                </h2>\n                {{#if\n                  (and\n                    (not this.isLoadingBudget)\n                    this.model.project.last.value.currentBudgetVersion\n                  )\n                }}\n                  <span class='ms-2 badge rounded-pill bg-primary'>\n                    {{t 'common.Version'}}\n                    {{this.model.project.last.value.currentBudgetVersion.versionNumber}}\n                  </span>\n                {{/if}}\n              </div>\n              {{#if this.isLoadingBudget}}\n                <LoadingIcon @type='ripple' />\n              {{else}}\n                {{#if this.model.project.last.value.currentBudgetVersion}}\n                  {{#if\n                    (and\n                      (gt\n                        this.model.project.last.value.draftBudgetChangeSet.changes.length\n                        0\n                      )\n                      this.canManageBudgetVersions\n                    )\n                  }}\n                    <div\n                      class='alert alert-primary d-flex flex-column'\n                      role='alert'\n                    >{{t\n                        'entity.builda-price.projects.project.financials.thereHasBeenXChangeToTheBudgetSinceTheLastVersion'\n                        changes=(pluralize\n                          this.model.project.last.value.draftBudgetChangeSet.changes.length\n                          'change'\n                        )\n                        number=this.model.project.last.value.draftBudgetChangeSet.changes.length\n                      }}\n                      {{t\n                        'entity.builda-price.projects.project.financials.Create a version to update your budget'\n                      }}\n                      <button\n                        class='mt-3 btn btn-outline-primary btn-sm align-self-end'\n                        type='button'\n                        {{on 'click' (fn (mut this.creatingBudgetVersion) true)}}\n                      >\n                        {{t 'shared.financial.Create a version'}}\n                      </button>\n                    </div>\n                  {{/if}}\n  \n                  <table class='table'>\n                    <thead>\n                      <tr>\n                        <th></th>\n                        <th class='text-right'></th>\n                      </tr>\n                    </thead>\n                    <tbody>\n                      <tr>\n                        <th>{{t 'common.Labour hours'}}</th>\n                        <td class='text-right'>\n                          {{format-duration\n                            this.model.project.last.value.currentBudgetVersion.manHours\n                            emptyPlaceholder='–'\n                          }}\n                        </td>\n                      </tr>\n                      <tr>\n                        <td colspan='4'>&nbsp;</td>\n                      </tr>\n                      <tr>\n                        <th>{{t 'common.Labour'}}</th>\n                        <td class='text-right'>\n                          {{number-format\n                            this.model.project.last.value.currentBudgetVersion.labour\n                            style='currency'\n                            dashZero=true\n                          }}\n                        </td>\n                      </tr>\n                      <tr>\n                        <th>{{t 'common.Materials'}}</th>\n                        <td class='text-right'>\n                          {{number-format\n                            this.model.project.last.value.currentBudgetVersion.materials\n                            style='currency'\n                            dashZero=true\n                          }}\n                        </td>\n                      </tr>\n                      <tr>\n                        <th>{{t 'common.Subcontractors'}}</th>\n                        <td class='text-right'>\n                          {{number-format\n                            this.model.project.last.value.currentBudgetVersion.subcontractors\n                            style='currency'\n                            dashZero=true\n                          }}\n                        </td>\n                      </tr>\n                      <tr>\n                        <th>{{t 'common.Sums'}}</th>\n                        <td class='text-right'>\n                          {{number-format\n                            this.model.project.last.value.currentBudgetVersion.sums\n                            style='currency'\n                            dashZero=true\n                          }}\n                        </td>\n                      </tr>\n                    </tbody>\n                    <tfoot>\n                      <tr>\n                        <th></th>\n                        <td class='text-right'>\n                          {{number-format\n                            this.model.project.last.value.currentBudgetVersion.total\n                            style='currency'\n                            dashZero=true\n                          }}\n                        </td>\n                      </tr>\n                    </tfoot>\n                  </table>\n                {{else}}\n                  {{#if\n                    (gt\n                      this.model.project.last.value.draftBudgetChangeSet.changes.length\n                      0\n                    )\n                  }}\n                    <p class='m-0 mb-3'>\n                      {{if\n                        this.canManageBudgetVersions\n                        (t\n                          'entity.builda-price.projects.project.financials.whenYouAreHappyWithYourTaskBudgetsYouCanCommitThemAsYourFirstBudgetVersion'\n                        )\n                        (t\n                          'entity.builda-price.projects.project.financials.thereIsNoCommittedBudgetVersionForThisProject'\n                        )\n                      }}\n                    </p>\n                    {{#if this.canManageBudgetVersions}}\n                      <button\n                        type='button'\n                        class='btn btn-primary align-self-end'\n                        {{on 'click' (fn (mut this.creatingBudgetVersion) true)}}\n                      >\n                        {{t\n                          'entity.builda-price.projects.project.financials.Create the first budget version'\n                        }}\n                      </button>\n                    {{/if}}\n  \n                  {{else}}\n                    <p class='m-0 mb-3'>\n                      {{if\n                        this.canManageBudgetVersions\n                        (t\n                          'entity.builda-price.projects.project.financials.noneOfYourTasksHaveBudgetsToCreateABudgetCreateSomeTasksWithABudget'\n                        )\n                        (t\n                          'entity.builda-price.projects.project.financials.None of your tasks have budgets'\n                        )\n                      }}\n                    </p>\n                    <LinkTo\n                      class='btn btn-primary align-self-end'\n                      @route='entity.builda-price.projects.project.tasks'\n                    >\n                      {{t 'common.Go to tasks'}}&nbsp;\n                      <FaIcon @icon='external-link-alt' />\n                    </LinkTo>\n                  {{/if}}\n                {{/if}}\n              {{/if}}\n            </div>\n          {{/if}}\n  \n          {{#if\n            (includes-feature-flags\n              this.model.project.last.value 'canUseQuoteVersions'\n            )\n          }}\n            <div\n              class='border rounded p-4 d-flex flex-column mb-4'\n              style='min-width: 350px;'\n            >\n              <div class='d-flex align-items-center mb-3'>\n                <h2 class='m-0'>\n                  {{t 'common.Quote'}}\n                </h2>\n                {{#if\n                  (and\n                    (not this.isLoadingQuote)\n                    this.model.project.last.value.currentQuoteVersion\n                  )\n                }}\n                  <span class='ms-2 badge rounded-pill bg-primary'>\n                    {{t 'common.Version'}}\n                    {{this.model.project.last.value.currentQuoteVersion.versionNumber}}\n                  </span>\n                {{/if}}\n              </div>\n              {{#if this.isLoadingQuote}}\n                <LoadingIcon @type='ripple' />\n              {{else}}\n                {{#if this.model.project.last.value.currentQuoteVersion}}\n                  {{#if\n                    (and\n                      (gt\n                        this.model.project.last.value.draftQuoteChangeSet.changes.length\n                        0\n                      )\n                      this.canManageQuoteVersions\n                    )\n                  }}\n                    <div\n                      class='alert alert-primary d-flex flex-column'\n                      role='alert'\n                    >\n                      {{t\n                        'entity.builda-price.projects.project.financials.thereHasBeenXChangeToTheQuoteSinceTheLastVersion'\n                        changes=(pluralize\n                          this.model.project.last.value.draftQuoteChangeSet.changes.length\n                          'change'\n                        )\n                        number=this.model.project.last.value.draftQuoteChangeSet.changes.length\n                      }}\n                      {{t\n                        'entity.builda-price.projects.project.financials.Create a version to update your quote'\n                      }}\n                      <button\n                        class='mt-3 btn btn-outline-primary btn-sm align-self-end'\n                        type='button'\n                        {{on 'click' (fn (mut this.creatingQuoteVersion) true)}}\n                      >\n                        {{t 'shared.financial.Create a version'}}\n                      </button>\n                    </div>\n                  {{/if}}\n  \n                  <table class='table'>\n                    <thead>\n                      <tr>\n                        <th></th>\n                        <th class='text-right'>{{t 'common.Total'}}</th>\n                      </tr>\n                    </thead>\n                    <tbody>\n                      <tr>\n                        <th>{{t 'common.Labour'}}</th>\n                        <td class='text-right'>\n                          {{number-format\n                            this.model.project.last.value.currentQuoteVersion.labour\n                            style='currency'\n                            dashZero=true\n                          }}\n                        </td>\n                      </tr>\n                      <tr>\n                        <th>{{t 'common.Materials'}}</th>\n                        <td class='text-right'>\n                          {{number-format\n                            this.model.project.last.value.currentQuoteVersion.materials\n                            style='currency'\n                            dashZero=true\n                          }}\n                        </td>\n                      </tr>\n                      <tr>\n                        <th>{{t 'common.Subcontractors'}}</th>\n                        <td class='text-right'>\n                          {{number-format\n                            this.model.project.last.value.currentQuoteVersion.subcontractors\n                            style='currency'\n                            dashZero=true\n                          }}\n                        </td>\n                      </tr>\n                      <tr>\n                        <th>{{t 'common.Sums'}}</th>\n                        <td class='text-right'>\n                          {{number-format\n                            this.model.project.last.value.currentQuoteVersion.sums\n                            style='currency'\n                            dashZero=true\n                          }}\n                        </td>\n                      </tr>\n                    </tbody>\n                    <tfoot>\n                      <tr>\n                        <th></th>\n                        <td class='text-right'>\n                          {{number-format\n                            this.model.project.last.value.currentQuoteVersion.total\n                            style='currency'\n                            dashZero=true\n                          }}\n                        </td>\n                      </tr>\n                    </tfoot>\n                  </table>\n                {{else}}\n                  {{#if\n                    (gt\n                      this.model.project.last.value.draftQuoteChangeSet.changes.length\n                      0\n                    )\n                  }}\n                    <p class='m-0 mb-3'>\n                      {{if\n                        this.canManageBudgetVersions\n                        (t\n                          'entity.builda-price.projects.project.financials.whenYouAreHappyWithYourTaskQuotesYouCanCommitThemAsYourFirstQuoteVersion'\n                        )\n                        (t\n                          'entity.builda-price.projects.project.financials.thereIsNoCommittedQuoteVersionForThisProject'\n                        )\n                      }}\n                    </p>\n                    {{#if this.canManageQuoteVersions}}\n                      <button\n                        type='button'\n                        class='btn btn-primary align-self-end'\n                        {{on 'click' (fn (mut this.creatingQuoteVersion) true)}}\n                      >\n                        {{t\n                          'entity.builda-price.projects.project.financials.Create the first quote version'\n                        }}\n                      </button>\n                    {{/if}}\n                  {{else}}\n                    <p class='m-0 mb-3'>\n                      {{if\n                        this.canManageQuoteVersions\n                        (t\n                          'entity.builda-price.projects.project.financials.noneOfYourTasksHaveQuotesToCreateAQuoteCreateSomeTasksWithAQuote'\n                        )\n                        (t\n                          'entity.builda-price.projects.project.financials.None of your tasks have quotes'\n                        )\n                      }}\n                    </p>\n  \n                    <LinkTo\n                      class='btn btn-primary align-self-end'\n                      @route='entity.builda-price.projects.project.tasks'\n                    >\n                      {{t 'common.Go to tasks'}}&nbsp;\n                      <FaIcon @icon='external-link-alt' />\n                    </LinkTo>\n                  {{/if}}\n                {{/if}}\n              {{/if}}\n            </div>\n          {{/if}}\n        </div>\n      </div>\n    {{/if}}\n  </article>\n  \n  {{#if this.creatingBudgetVersion}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.creatingBudgetVersion) false}}\n      @translucentOverlay={{true}}\n      @containerClass='modal-content w-auto'\n    >\n      <div class='modal-body'>\n        {{#if this.createBudgetVersion.isRunning}}\n          <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n        {{else}}\n          <p>\n            {{t\n              'entity.builda-price.projects.project.financials.thereHasBeenXChangeToTheBudgetSinceTheLastVersion'\n              changes=(pluralize\n                this.model.project.last.value.draftBudgetChangeSet.changes.length\n                'change'\n              )\n              number=this.model.project.last.value.draftBudgetChangeSet.changes.length\n            }}\n          </p>\n          <ProjectChangeSetDescription\n            @version={{this.model.project.last.value.currentBudgetVersion}}\n            @changeSet={{this.model.project.last.value.draftBudgetChangeSet}}\n          />\n        {{/if}}\n      </div>\n  \n      <div class='modal-footer'>\n        <button\n          type='button'\n          class='btn btn-secondary text-white'\n          {{on 'click' (fn (mut this.creatingBudgetVersion) false)}}\n        >\n          {{t 'common.Cancel'}}\n        </button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          {{on 'click' (perform this.createBudgetVersion)}}\n        >\n          {{#if this.createBudgetVersion.isRunning}}\n            {{t 'common.Creating version'}}&hellip;\n          {{else}}\n            {{t 'common.Create version'}}\n          {{/if}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.creatingQuoteVersion}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.creatingQuoteVersion) false}}\n      @translucentOverlay={{true}}\n      @containerClass='modal-content w-auto'\n    >\n      <div class='modal-body'>\n        {{#if this.createQuoteVersion.isRunning}}\n          <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n        {{else}}\n          <p>\n            {{t\n              'entity.builda-price.projects.project.financials.thereHasBeenXChangeToTheQuoteSinceTheLastVersion'\n              changes=(pluralize\n                this.model.project.last.value.draftQuoteChangeSet.changes.length\n                'change'\n              )\n              number=this.model.project.last.value.draftQuoteChangeSet.changes.length\n            }}\n          </p>\n  \n          <ProjectChangeSetDescription\n            @version={{this.model.project.last.value.currentQuoteVersion}}\n            @changeSet={{this.model.project.last.value.draftQuoteChangeSet}}\n            @hideManHours={{true}}\n          />\n        {{/if}}\n      </div>\n  \n      <div class='modal-footer'>\n        <button\n          type='button'\n          class='btn btn-secondary text-white'\n          {{on 'click' (fn (mut this.creatingQuoteVersion) false)}}\n        >\n          {{t 'common.Cancel'}}\n        </button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          {{on 'click' (perform this.createQuoteVersion)}}\n        >\n          {{#if this.createQuoteVersion.isRunning}}\n            {{t 'common.Creating version'}}&hellip;\n          {{else}}\n            {{t 'common.Create version'}}\n          {{/if}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"eOu4vw0P\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4 h-100\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 pb-2 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,[28,[35,5],[\\\"common.Financials\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,6],[[30,0,[\\\"isLoadingBudget\\\"]],[30,0,[\\\"isLoadingQuote\\\"]]],null],[[[1,\\\"    \\\"],[8,[39,7],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mt-3 d-flex flex-column align-items-start\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex flex-row align-items-start flex-wrap\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,9],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\"]],\\\"canUseBudgetVersions\\\"],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"border rounded p-4 d-flex flex-column mb-4 me-4\\\"],[14,5,\\\"min-width: 350px;\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"d-flex align-items-center mb-3\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"h2\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,5],[\\\"common.Budget\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[[28,[37,10],[[30,0,[\\\"isLoadingBudget\\\"]]],null],[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"currentBudgetVersion\\\"]]],null],[[[1,\\\"                \\\"],[10,1],[14,0,\\\"ms-2 badge rounded-pill bg-primary\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,5],[\\\"common.Version\\\"],null]],[1,\\\"\\\\n                  \\\"],[1,[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"currentBudgetVersion\\\",\\\"versionNumber\\\"]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoadingBudget\\\"]],[[[1,\\\"              \\\"],[8,[39,7],null,[[\\\"@type\\\"],[\\\"ripple\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"currentBudgetVersion\\\"]],[[[41,[28,[37,6],[[28,[37,12],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"draftBudgetChangeSet\\\",\\\"changes\\\",\\\"length\\\"]],0],null],[30,0,[\\\"canManageBudgetVersions\\\"]]],null],[[[1,\\\"                  \\\"],[10,0],[14,0,\\\"alert alert-primary d-flex flex-column\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.financials.thereHasBeenXChangeToTheBudgetSinceTheLastVersion\\\"],[[\\\"changes\\\",\\\"number\\\"],[[28,[37,13],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"draftBudgetChangeSet\\\",\\\"changes\\\",\\\"length\\\"]],\\\"change\\\"],null],[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"draftBudgetChangeSet\\\",\\\"changes\\\",\\\"length\\\"]]]]]],[1,\\\"\\\\n                    \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.financials.Create a version to update your budget\\\"],null]],[1,\\\"\\\\n                    \\\"],[11,\\\"button\\\"],[24,0,\\\"mt-3 btn btn-outline-primary btn-sm align-self-end\\\"],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"creatingBudgetVersion\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,5],[\\\"shared.financial.Create a version\\\"],null]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n                \\\"],[10,\\\"table\\\"],[14,0,\\\"table\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"th\\\"],[12],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"th\\\"],[14,0,\\\"text-right\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,5],[\\\"common.Labour hours\\\"],null]],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[35,24],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"currentBudgetVersion\\\",\\\"manHours\\\"]]],[[\\\"emptyPlaceholder\\\"],[\\\"–\\\"]]]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"4\\\"],[12],[1,\\\" \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,5],[\\\"common.Labour\\\"],null]],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[35,25],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"currentBudgetVersion\\\",\\\"labour\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,5],[\\\"common.Materials\\\"],null]],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[35,25],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"currentBudgetVersion\\\",\\\"materials\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,5],[\\\"common.Subcontractors\\\"],null]],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[35,25],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"currentBudgetVersion\\\",\\\"subcontractors\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,5],[\\\"common.Sums\\\"],null]],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[35,25],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"currentBudgetVersion\\\",\\\"sums\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"tfoot\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"th\\\"],[12],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[35,25],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"currentBudgetVersion\\\",\\\"total\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,12],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"draftBudgetChangeSet\\\",\\\"changes\\\",\\\"length\\\"]],0],null],[[[1,\\\"                  \\\"],[10,2],[14,0,\\\"m-0 mb-3\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[52,[30,0,[\\\"canManageBudgetVersions\\\"]],[28,[37,5],[\\\"entity.builda-price.projects.project.financials.whenYouAreHappyWithYourTaskBudgetsYouCanCommitThemAsYourFirstBudgetVersion\\\"],null],[28,[37,5],[\\\"entity.builda-price.projects.project.financials.thereIsNoCommittedBudgetVersionForThisProject\\\"],null]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canManageBudgetVersions\\\"]],[[[1,\\\"                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary align-self-end\\\"],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"creatingBudgetVersion\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.financials.Create the first budget version\\\"],null]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[10,2],[14,0,\\\"m-0 mb-3\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[52,[30,0,[\\\"canManageBudgetVersions\\\"]],[28,[37,5],[\\\"entity.builda-price.projects.project.financials.noneOfYourTasksHaveBudgetsToCreateABudgetCreateSomeTasksWithABudget\\\"],null],[28,[37,5],[\\\"entity.builda-price.projects.project.financials.None of your tasks have budgets\\\"],null]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[8,[39,28],[[24,0,\\\"btn btn-primary align-self-end\\\"]],[[\\\"@route\\\"],[\\\"entity.builda-price.projects.project.tasks\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                    \\\"],[1,[28,[35,5],[\\\"common.Go to tasks\\\"],null]],[1,\\\" \\\\n                    \\\"],[8,[39,29],null,[[\\\"@icon\\\"],[\\\"external-link-alt\\\"]],null],[1,\\\"\\\\n                  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]]]],[]]]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,9],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\"]],\\\"canUseQuoteVersions\\\"],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"border rounded p-4 d-flex flex-column mb-4\\\"],[14,5,\\\"min-width: 350px;\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"d-flex align-items-center mb-3\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"h2\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,5],[\\\"common.Quote\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[[28,[37,10],[[30,0,[\\\"isLoadingQuote\\\"]]],null],[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"currentQuoteVersion\\\"]]],null],[[[1,\\\"                \\\"],[10,1],[14,0,\\\"ms-2 badge rounded-pill bg-primary\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,5],[\\\"common.Version\\\"],null]],[1,\\\"\\\\n                  \\\"],[1,[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"currentQuoteVersion\\\",\\\"versionNumber\\\"]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoadingQuote\\\"]],[[[1,\\\"              \\\"],[8,[39,7],null,[[\\\"@type\\\"],[\\\"ripple\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"currentQuoteVersion\\\"]],[[[41,[28,[37,6],[[28,[37,12],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"draftQuoteChangeSet\\\",\\\"changes\\\",\\\"length\\\"]],0],null],[30,0,[\\\"canManageQuoteVersions\\\"]]],null],[[[1,\\\"                  \\\"],[10,0],[14,0,\\\"alert alert-primary d-flex flex-column\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.financials.thereHasBeenXChangeToTheQuoteSinceTheLastVersion\\\"],[[\\\"changes\\\",\\\"number\\\"],[[28,[37,13],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"draftQuoteChangeSet\\\",\\\"changes\\\",\\\"length\\\"]],\\\"change\\\"],null],[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"draftQuoteChangeSet\\\",\\\"changes\\\",\\\"length\\\"]]]]]],[1,\\\"\\\\n                    \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.financials.Create a version to update your quote\\\"],null]],[1,\\\"\\\\n                    \\\"],[11,\\\"button\\\"],[24,0,\\\"mt-3 btn btn-outline-primary btn-sm align-self-end\\\"],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"creatingQuoteVersion\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,5],[\\\"shared.financial.Create a version\\\"],null]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n                \\\"],[10,\\\"table\\\"],[14,0,\\\"table\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"th\\\"],[12],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"th\\\"],[14,0,\\\"text-right\\\"],[12],[1,[28,[35,5],[\\\"common.Total\\\"],null]],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,5],[\\\"common.Labour\\\"],null]],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[35,25],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"currentQuoteVersion\\\",\\\"labour\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,5],[\\\"common.Materials\\\"],null]],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[35,25],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"currentQuoteVersion\\\",\\\"materials\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,5],[\\\"common.Subcontractors\\\"],null]],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[35,25],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"currentQuoteVersion\\\",\\\"subcontractors\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,5],[\\\"common.Sums\\\"],null]],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[35,25],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"currentQuoteVersion\\\",\\\"sums\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"tfoot\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"th\\\"],[12],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[35,25],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"currentQuoteVersion\\\",\\\"total\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,12],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"draftQuoteChangeSet\\\",\\\"changes\\\",\\\"length\\\"]],0],null],[[[1,\\\"                  \\\"],[10,2],[14,0,\\\"m-0 mb-3\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[52,[30,0,[\\\"canManageBudgetVersions\\\"]],[28,[37,5],[\\\"entity.builda-price.projects.project.financials.whenYouAreHappyWithYourTaskQuotesYouCanCommitThemAsYourFirstQuoteVersion\\\"],null],[28,[37,5],[\\\"entity.builda-price.projects.project.financials.thereIsNoCommittedQuoteVersionForThisProject\\\"],null]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canManageQuoteVersions\\\"]],[[[1,\\\"                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary align-self-end\\\"],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"creatingQuoteVersion\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.financials.Create the first quote version\\\"],null]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[1,\\\"                  \\\"],[10,2],[14,0,\\\"m-0 mb-3\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[52,[30,0,[\\\"canManageQuoteVersions\\\"]],[28,[37,5],[\\\"entity.builda-price.projects.project.financials.noneOfYourTasksHaveQuotesToCreateAQuoteCreateSomeTasksWithAQuote\\\"],null],[28,[37,5],[\\\"entity.builda-price.projects.project.financials.None of your tasks have quotes\\\"],null]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\\n                  \\\"],[8,[39,28],[[24,0,\\\"btn btn-primary align-self-end\\\"]],[[\\\"@route\\\"],[\\\"entity.builda-price.projects.project.tasks\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                    \\\"],[1,[28,[35,5],[\\\"common.Go to tasks\\\"],null]],[1,\\\" \\\\n                    \\\"],[8,[39,29],null,[[\\\"@icon\\\"],[\\\"external-link-alt\\\"]],null],[1,\\\"\\\\n                  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]]]],[]]]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"creatingBudgetVersion\\\"]],[[[1,\\\"  \\\"],[8,[39,30],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\"],[\\\"modal\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"creatingBudgetVersion\\\"]]],null],false],null],true,\\\"modal-content w-auto\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"createBudgetVersion\\\",\\\"isRunning\\\"]],[[[1,\\\"        \\\"],[8,[39,7],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,2],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.financials.thereHasBeenXChangeToTheBudgetSinceTheLastVersion\\\"],[[\\\"changes\\\",\\\"number\\\"],[[28,[37,13],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"draftBudgetChangeSet\\\",\\\"changes\\\",\\\"length\\\"]],\\\"change\\\"],null],[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"draftBudgetChangeSet\\\",\\\"changes\\\",\\\"length\\\"]]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,31],null,[[\\\"@version\\\",\\\"@changeSet\\\"],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"currentBudgetVersion\\\"]],[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"draftBudgetChangeSet\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white\\\"],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"creatingBudgetVersion\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[28,[37,32],[[30,0,[\\\"createBudgetVersion\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"createBudgetVersion\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"common.Creating version\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"common.Create version\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"creatingQuoteVersion\\\"]],[[[1,\\\"  \\\"],[8,[39,30],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\"],[\\\"modal\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"creatingQuoteVersion\\\"]]],null],false],null],true,\\\"modal-content w-auto\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"createQuoteVersion\\\",\\\"isRunning\\\"]],[[[1,\\\"        \\\"],[8,[39,7],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,2],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.financials.thereHasBeenXChangeToTheQuoteSinceTheLastVersion\\\"],[[\\\"changes\\\",\\\"number\\\"],[[28,[37,13],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"draftQuoteChangeSet\\\",\\\"changes\\\",\\\"length\\\"]],\\\"change\\\"],null],[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"draftQuoteChangeSet\\\",\\\"changes\\\",\\\"length\\\"]]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,31],null,[[\\\"@version\\\",\\\"@changeSet\\\",\\\"@hideManHours\\\"],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"currentQuoteVersion\\\"]],[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"draftQuoteChangeSet\\\"]],true]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white\\\"],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"creatingQuoteVersion\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[28,[37,32],[[30,0,[\\\"createQuoteVersion\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"createQuoteVersion\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"common.Creating version\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"common.Create version\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[],false,[\\\"article\\\",\\\"header\\\",\\\"if\\\",\\\"media\\\",\\\"h2\\\",\\\"t\\\",\\\"and\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"includes-feature-flags\\\",\\\"not\\\",\\\"span\\\",\\\"gt\\\",\\\"pluralize\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"tbody\\\",\\\"td\\\",\\\"format-duration\\\",\\\"number-format\\\",\\\"tfoot\\\",\\\"p\\\",\\\"link-to\\\",\\\"fa-icon\\\",\\\"modal-dialog\\\",\\\"project-change-set-description\\\",\\\"perform\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/financials.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/health-and-safety\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"Cxla7gWt\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/health-and-safety.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/health-and-safety/index-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"wOHy+jj9\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/health-and-safety/index-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/health-and-safety/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='mx-4 mt-4'>\n    <header class='border-bottom mb-3 pb-2 d-flex align-items-center'>\n      <h2 class='flex-grow-1 m-0 my-2'>{{t 'common.healthAndSafety'}}</h2>\n    </header>\n    {{#if this.model.project.isRunning}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      {{outlet}}\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"qP1w83f9\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 pb-2 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,[28,[35,3],[\\\"common.healthAndSafety\\\"],null]],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"project\\\",\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[8,[39,5],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[46,[28,[37,7],null,null],null,null,null],[1,\\\"\\\\n\\\"]],[]]],[13]],[],false,[\\\"article\\\",\\\"header\\\",\\\"h2\\\",\\\"t\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/health-and-safety/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/people\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='mx-4 mt-4 h-100'>\n    <header class='border-bottom mb-3 pb-2 d-flex align-items-center'>\n      {{#if (media 'isDesktop')}}\n        <h2 class='flex-grow-1 m-0 my-2'>{{t 'common.People'}}</h2>\n      {{/if}}\n    </header>\n    {{#if this.model.project.isRunning}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='d-flex mt-3 width--large'>\n        <ul class='list-group' style='min-width: 200px;'>\n          {{#each this.tabs as |tab|}}\n            <LinkTo\n              @route={{tab.route}}\n              draggable={{false}}\n              class='list-group-item'\n            >\n              <FaIcon @icon={{tab.icon}} @fixedWidth={{true}} @size='md' />\n              {{tab.name}}\n            </LinkTo>\n          {{/each}}\n        </ul>\n        <div class='flex-grow-1 ms-3'>\n          {{outlet}}\n        </div>\n      </div>\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"dyvuK2Fs\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4 h-100\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 pb-2 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,[28,[35,5],[\\\"common.People\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"project\\\",\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[8,[39,6],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"d-flex mt-3 width--large\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"ul\\\"],[14,0,\\\"list-group\\\"],[14,5,\\\"min-width: 200px;\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[30,0,[\\\"tabs\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[8,[39,11],[[16,\\\"draggable\\\",false],[24,0,\\\"list-group-item\\\"]],[[\\\"@route\\\"],[[30,1,[\\\"route\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[39,12],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[[30,1,[\\\"icon\\\"]],true,\\\"md\\\"]],null],[1,\\\"\\\\n            \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"flex-grow-1 ms-3\\\"],[12],[1,\\\"\\\\n        \\\"],[46,[28,[37,14],null,null],null,null,null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"tab\\\"],false,[\\\"article\\\",\\\"header\\\",\\\"if\\\",\\\"media\\\",\\\"h2\\\",\\\"t\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"ul\\\",\\\"each\\\",\\\"-track-array\\\",\\\"link-to\\\",\\\"fa-icon\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/people.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/people/clients\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"DG/k/LgG\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/people/clients.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/people/clients/client\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='flex-grow-1'>\n    {{#if this.isRunning}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mb-3 ms-1 mt-1'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <PtlForm class='mb-3'>\n        <h3 class='mb-0'>{{t 'common.Details'}}</h3>\n        <p class='mb-3'>\n          {{this.model.client.last.value.fullName}}\n          {{t 'shared.people-editor.is assigned to the project'}}\n        </p>\n  \n        <div class='d-flex'>\n          <LinkTo\n            class='btn btn-primary m-1'\n            @route='entity.settings.people.clients.client'\n            @model={{this.model.client.last.value.id}}\n          >\n            {{t 'shared.people-editor.clients.client.View client details'}}\n            <FaIcon @icon='external-link-alt' @fixedWidth={{true}} @size='md' />\n          </LinkTo>\n  \n          {{#if (includes-feature-flags 'canManageUsers')}}\n            <button\n              type='button'\n              class='btn btn-secondary m-1'\n              disabled={{this.deleteClient.isRunning}}\n              {{on 'click' (perform this.deleteClient)}}\n            >\n              {{#if this.deleteClient.isRunning}}\n                {{if\n                  this.userIsYou\n                  (t 'shared.people-editor.Removing you from project')\n                  (t 'shared.people-editor.Removing from project')\n                }}&hellip;\n              {{else}}\n                {{if\n                  this.userIsYou\n                  (t 'shared.people-editor.Remove yourself from project')\n                  (t 'shared.people-editor.Removing from project')\n                }}\n              {{/if}}\n            </button>\n          {{/if}}\n        </div>\n      </PtlForm>\n  \n      {{#if (includes-feature-flags 'canManageUsers')}}\n        <PtlForm class='mb-3'>\n          <h3 class='mb-0'>{{t 'shared.people-editor.Permissions'}}</h3>\n          <p class='mb-4'>\n            {{t\n              'entity.builda-price.projects.project.people.clients.client.clientProjectPermissionsExplanation'\n            }}\n          </p>\n          <div\n            class='d-flex align-items-center mb-3'\n            role='button'\n            {{on\n              'click'\n              (fn\n                (mut this.projectPermissionsVisible)\n                (not this.projectPermissionsVisible)\n              )\n            }}\n          >\n            <h4 class='m-0'>\n              {{t 'common.Project'}}\n            </h4>\n            {{#if this.projectPermissionsCount}}\n              <span class='ms-2 badge bg-info'>\n                {{this.projectPermissionsCount}}\n              </span>\n            {{/if}}\n            <h4 class='m-0 ms-auto'>\n              <FaIcon\n                @icon={{if\n                  this.projectPermissionsVisible\n                  'chevron-down'\n                  'chevron-right'\n                }}\n              />\n            </h4>\n          </div>\n          {{#if this.projectPermissionsVisible}}\n            <PtlInput\n              @type='checkbox'\n              @label={{t\n                'shared.people-editor.Can see all the tasks for this project'\n              }}\n              @key='canViewTasks'\n              @model={{this.model.permissionsChangeset.last.value}}\n              @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n              disabled={{this.savePermissions.isRunning}}\n            />\n  \n            {{#unless this.canSeeTaskVisibilityChecks}}\n              <PtlInput\n                @type='powerSelectMultiple'\n                @label='Task visibility'\n                @key='taskAttributes'\n                @description={{t\n                  'entity.builda-price.projects.project.people.client.theTypesOfTasksTheClientCanSeeOnThisProject'\n                }}\n                @optionKeys={{array 'name'}}\n                @options={{this.model.taskVisibilityOptions.last.value}}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @searchEnabled={{true}}\n                @searchField={{'name'}}\n                @disabled={{this.saveUserPermissions.isRunning}}\n              />\n            {{/unless}}\n          {{/if}}\n          {{#if this.newFeatureFlags.entityCanUseScheduling}}\n            <div\n              class='d-flex align-items-center mb-3'\n              role='button'\n              {{on\n                'click'\n                (fn\n                  (mut this.schedulingPermissionsVisible)\n                  (not this.schedulingPermissionsVisible)\n                )\n              }}\n            >\n              <h4 class='m-0'>\n                {{t 'common.Scheduling'}}\n              </h4>\n              {{#if this.schedulingPermissionsCount}}\n                <span class='ms-2 badge bg-info'>\n                  {{this.schedulingPermissionsCount}}\n                </span>\n              {{/if}}\n              <h4 class='m-0 ms-auto'>\n                <FaIcon\n                  @icon={{if\n                    this.schedulingPermissionsVisible\n                    'chevron-down'\n                    'chevron-right'\n                  }}\n                />\n              </h4>\n            </div>\n            {{#if this.schedulingPermissionsVisible}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see scheduling reports'}}\n                @key='canViewSchedulingReports'\n                @description={{t\n                  'shared.people-editor.Gives access to see the timeline'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n            {{/if}}\n          {{/if}}\n  \n          <div\n            class='d-flex align-items-center mb-3'\n            role='button'\n            {{on\n              'click'\n              (fn\n                (mut this.reportsPermissionsVisible)\n                (not this.reportsPermissionsVisible)\n              )\n            }}\n          >\n            <h4 class='m-0'>\n              {{t 'common.Reports'}}\n            </h4>\n            {{#if this.reportsPermissionsCount}}\n              <span class='ms-2 badge bg-info'>\n                {{this.reportsPermissionsCount}}\n              </span>\n            {{/if}}\n            <h4 class='m-0 ms-auto'>\n              <FaIcon\n                @icon={{if\n                  this.reportsPermissionsVisible\n                  'chevron-down'\n                  'chevron-right'\n                }}\n              />\n            </h4>\n          </div>\n          {{#if this.reportsPermissionsVisible}}\n            <div class='alert alert-primary' role='alert'>\n              <FaIcon @icon='info-circle' @size='lg' class='me-2' />\n              <span class='me-2'>\n                {{#if this.canViewReports.length}}\n                  {{t\n                    'entity.builda-price.projects.project.people.clients.client.withThesePermissionsThisClientCanSeeTheFollowingReports'\n                  }}:\n                  <span class='fw-bold'>{{this.canViewReports}}</span>.\n                {{else}}\n                  {{t\n                    'entity.builda-price.projects.project.people.clients.client.withThesePermissionsThisClientCannotSeeAnyReports'\n                  }}\n                {{/if}}\n              </span>\n            </div>\n            {{#if this.newFeatureFlags.entityCanUseClientReports}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.users.user.canViewClientReportsLabel'\n                }}\n                @key='canViewClientReports'\n                @description={{t\n                  'shared.people-editor.users.user.canViewClientReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see budget data in reports'}}\n                @description={{t\n                  'shared.people-editor.users.user.canSeeAllBudgetDataInReportsDescription'\n                }}\n                @key='canViewBudgetFinancialReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.users.user.canViewBudgetHourReportsLabel'\n                }}\n                @description={{t\n                  'shared.people-editor.users.user.canViewBudgetHourReportsLabelDescription'\n                }}\n                @key='canViewBudgetLabourHourReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see quote data in reports'}}\n                @key='canViewQuoteReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n            {{/if}}\n            {{#if\n              (or\n                this.newFeatureFlags.entityCanUseTimesheets\n                this.newFeatureFlags.entityCanUseBills\n              )\n            }}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see cost data in reports'}}\n                @key='canViewCostFinancialReports'\n                @description={{t\n                  'shared.people-editor.canSeeAllCostDataInReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.users.user.canViewActualHourReportsLabel'\n                }}\n                @key='canViewCostLabourHourReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.Can see work value data in reports'\n                }}\n                @key='canViewChargeupReports'\n                @description={{t\n                  'shared.people-editor.canSeeAllWorkValueDataInReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.Can see progress data in reports'\n                }}\n                @key='canViewProgressReports'\n                @description={{t\n                  'shared.people-editor.canSeeProgressDataInReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n  \n              {{#if this.newFeatureFlags.entityCanUseInvoicingReport}}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'shared.people-editor.users.user.Can see all invoicing data in reports'\n                  }}\n                  @key='canViewInvoicingReports'\n                  @description={{t\n                    'shared.people-editor.users.user.canViewInvoicingReportsDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  disabled={{this.savePermissions.isRunning}}\n                />\n              {{/if}}\n            {{/if}}\n          {{/if}}\n          <div class='d-flex flex-grow-1 mt-2'>\n            <button\n              type='button'\n              class='btn btn-primary ms-auto'\n              disabled={{this.savePermissions.isRunning}}\n              {{on\n                'click'\n                (perform\n                  this.savePermissions this.model.permissionsChangeset.last.value\n                )\n              }}\n            >\n              {{#if this.savePermissions.isRunning}}\n                {{t 'shared.people-editor.Saving permissions'}}&hellip;\n              {{else}}\n                {{t 'shared.people-editor.Save permissions'}}\n              {{/if}}\n            </button>\n          </div>\n        </PtlForm>\n      {{/if}}\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"XWFnvjGs\",\n    \"block\": \"[[[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-3 ms-1 mt-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,3],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-0\\\"],[12],[1,[28,[35,6],[\\\"common.Details\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,0,[\\\"model\\\",\\\"client\\\",\\\"last\\\",\\\"value\\\",\\\"fullName\\\"]]],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"shared.people-editor.is assigned to the project\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"d-flex\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,8],[[24,0,\\\"btn btn-primary m-1\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.settings.people.clients.client\\\",[30,0,[\\\"model\\\",\\\"client\\\",\\\"last\\\",\\\"value\\\",\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"shared.people-editor.clients.client.View client details\\\"],null]],[1,\\\"\\\\n          \\\"],[8,[39,9],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",true,\\\"md\\\"]],null],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,10],[\\\"canManageUsers\\\"],null],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteClient\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"deleteClient\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteClient\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[52,[30,0,[\\\"userIsYou\\\"]],[28,[37,6],[\\\"shared.people-editor.Removing you from project\\\"],null],[28,[37,6],[\\\"shared.people-editor.Removing from project\\\"],null]]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[52,[30,0,[\\\"userIsYou\\\"]],[28,[37,6],[\\\"shared.people-editor.Remove yourself from project\\\"],null],[28,[37,6],[\\\"shared.people-editor.Removing from project\\\"],null]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,10],[\\\"canManageUsers\\\"],null],[[[1,\\\"      \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-0\\\"],[12],[1,[28,[35,6],[\\\"shared.people-editor.Permissions\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[10,2],[14,0,\\\"mb-4\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"entity.builda-price.projects.project.people.clients.client.clientProjectPermissionsExplanation\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"projectPermissionsVisible\\\"]]],null],[28,[37,16],[[30,0,[\\\"projectPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"common.Project\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"projectPermissionsCount\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"projectPermissionsCount\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"projectPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"projectPermissionsVisible\\\"]],[[[1,\\\"          \\\"],[8,[39,19],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all the tasks for this project\\\"],null],\\\"canViewTasks\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,20],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"canSeeTaskVisibilityChecks\\\"]]],[[[1,\\\"            \\\"],[8,[39,19],null,[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@optionKeys\\\",\\\"@options\\\",\\\"@model\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@disabled\\\"],[\\\"powerSelectMultiple\\\",\\\"Task visibility\\\",\\\"taskAttributes\\\",[28,[37,6],[\\\"entity.builda-price.projects.project.people.client.theTypesOfTasksTheClientCanSeeOnThisProject\\\"],null],[28,[37,22],[\\\"name\\\"],null],[30,0,[\\\"model\\\",\\\"taskVisibilityOptions\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],true,\\\"name\\\",[30,0,[\\\"saveUserPermissions\\\",\\\"isRunning\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseScheduling\\\"]],[[[1,\\\"          \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"schedulingPermissionsVisible\\\"]]],null],[28,[37,16],[[30,0,[\\\"schedulingPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"common.Scheduling\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"schedulingPermissionsCount\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"schedulingPermissionsCount\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"schedulingPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"schedulingPermissionsVisible\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see scheduling reports\\\"],null],\\\"canViewSchedulingReports\\\",[28,[37,6],[\\\"shared.people-editor.Gives access to see the timeline\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,20],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n        \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"reportsPermissionsVisible\\\"]]],null],[28,[37,16],[[30,0,[\\\"reportsPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"common.Reports\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"reportsPermissionsCount\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"reportsPermissionsCount\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"reportsPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"reportsPermissionsVisible\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"alert alert-primary\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],[[24,0,\\\"me-2\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"info-circle\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canViewReports\\\",\\\"length\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"entity.builda-price.projects.project.people.clients.client.withThesePermissionsThisClientCanSeeTheFollowingReports\\\"],null]],[1,\\\":\\\\n                \\\"],[10,1],[14,0,\\\"fw-bold\\\"],[12],[1,[30,0,[\\\"canViewReports\\\"]]],[13],[1,\\\".\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"entity.builda-price.projects.project.people.clients.client.withThesePermissionsThisClientCannotSeeAnyReports\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseClientReports\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewClientReportsLabel\\\"],null],\\\"canViewClientReports\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewClientReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,20],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see budget data in reports\\\"],null],[28,[37,6],[\\\"shared.people-editor.users.user.canSeeAllBudgetDataInReportsDescription\\\"],null],\\\"canViewBudgetFinancialReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,20],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewBudgetHourReportsLabel\\\"],null],[28,[37,6],[\\\"shared.people-editor.users.user.canViewBudgetHourReportsLabelDescription\\\"],null],\\\"canViewBudgetLabourHourReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,20],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see quote data in reports\\\"],null],\\\"canViewQuoteReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,20],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,23],[[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseTimesheets\\\"]],[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseBills\\\"]]],null],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see cost data in reports\\\"],null],\\\"canViewCostFinancialReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllCostDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,20],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewActualHourReportsLabel\\\"],null],\\\"canViewCostLabourHourReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,20],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see work value data in reports\\\"],null],\\\"canViewChargeupReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllWorkValueDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,20],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see progress data in reports\\\"],null],\\\"canViewProgressReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeProgressDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,20],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseInvoicingReport\\\"]],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.Can see all invoicing data in reports\\\"],null],\\\"canViewInvoicingReports\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewInvoicingReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,20],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null],[1,\\\"        \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-2\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"savePermissions\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Saving permissions\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Save permissions\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[13]],[],false,[\\\"div\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"page-title-breadcrumbs\\\",\\\"ptl-form\\\",\\\"h3\\\",\\\"t\\\",\\\"p\\\",\\\"link-to\\\",\\\"fa-icon\\\",\\\"includes-feature-flags\\\",\\\"button\\\",\\\"on\\\",\\\"perform\\\",\\\"fn\\\",\\\"mut\\\",\\\"not\\\",\\\"h4\\\",\\\"span\\\",\\\"ptl-input\\\",\\\"gt\\\",\\\"unless\\\",\\\"array\\\",\\\"or\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/people/clients/client.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/people/clients/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <div class='float-end mb-1 d-flex align-items-center'>\n      <span class='m-1'>\n        <Input\n          class='form-control'\n          placeholder={{t 'shared.people-editor.clients.Search for clients'}}\n          @type='text'\n          @value={{this.searchString}}\n        />\n      </span>\n      {{#if (includes-feature-flags 'canManageUsers')}}\n        <button\n          type='button'\n          class='btn btn-success text-white text-nowrap m-1'\n          {{on 'click' (fn (mut this.isAddingClientToProject) true)}}\n        >\n          <FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Add'}}\n        </button>\n      {{/if}}\n    </div>\n    <PeopleTable\n      @filteredList={{this.filteredClients}}\n      @noData={{t 'shared.people-editor.clients.No clients yet'}}\n      @route={{concat this.model.basePath '.clients.client'}}\n    />\n  {{/if}}\n  \n  {{#if this.isAddingClientToProject}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.isAddingClientToProject) false}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-header'>\n        <h3 class='modal-title'>\n          {{t\n            'entity.builda-price.projects.project.people.clients.Add client to project'\n          }}\n        </h3>\n      </div>\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t\n            'entity.builda-price.projects.project.people.clients.addClientsToProjectDescription'\n          }}\n        </p>\n  \n        <PowerSelect\n          @tagName='div'\n          class='mb-1'\n          @options={{this.unassignedClients}}\n          @selected={{this.clientToAddToProject}}\n          @onChange={{fn (mut this.clientToAddToProject)}}\n          @searchEnabled={{true}}\n          @searchField='name'\n          @placeholder={{t 'shared.people-editor.clients.Find a client'}}\n          @allowClear={{true}}\n          as |client|\n        >\n          {{client.firstName}}\n          {{client.lastName}}\n          ({{client.email}})\n        </PowerSelect>\n        <LinkTo\n          class='link'\n          @route='entity.settings.people.clients.client'\n          @model='new'\n        >\n          {{t\n            'entity.builda-price.projects.project.people.clients.donNotSeeTheClientAddThemToTheCompany'\n          }}\n          <FaIcon @icon='external-link-alt' @fixedWidth={{true}} @size='md' />\n        </LinkTo>\n  \n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          disabled={{this.addClientToProject.isRunning}}\n          {{on 'click' (fn (mut this.isAddingClientToProject) false)}}\n        >{{t 'common.Cancel'}}</button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          disabled={{or\n            (not this.clientToAddToProject)\n            this.addClientToProject.isRunning\n          }}\n          {{on 'click' (perform this.addClientToProject)}}\n        >\n          {{#if this.addClientToProject.isRunning}}\n            {{t 'common.Adding'}}&hellip;\n          {{else}}\n            {{t 'common.Add'}}\n          {{/if}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"l4RxA+SJ\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"float-end mb-1 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],[[24,0,\\\"form-control\\\"],[16,\\\"placeholder\\\",[28,[37,5],[\\\"shared.people-editor.clients.Search for clients\\\"],null]]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[\\\"canManageUsers\\\"],null],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"isAddingClientToProject\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n        \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,5],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,12],null,[[\\\"@filteredList\\\",\\\"@noData\\\",\\\"@route\\\"],[[30,0,[\\\"filteredClients\\\"]],[28,[37,5],[\\\"shared.people-editor.clients.No clients yet\\\"],null],[28,[37,13],[[30,0,[\\\"model\\\",\\\"basePath\\\"]],\\\".clients.client\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isAddingClientToProject\\\"]],[[[1,\\\"  \\\"],[8,[39,14],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"isAddingClientToProject\\\"]]],null],false],null],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.people.clients.Add client to project\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.people.clients.addClientsToProjectDescription\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,17],[[24,0,\\\"mb-1\\\"]],[[\\\"@tagName\\\",\\\"@options\\\",\\\"@selected\\\",\\\"@onChange\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@allowClear\\\"],[\\\"div\\\",[30,0,[\\\"unassignedClients\\\"]],[30,0,[\\\"clientToAddToProject\\\"]],[28,[37,9],[[28,[37,10],[[30,0,[\\\"clientToAddToProject\\\"]]],null]],null],true,\\\"name\\\",[28,[37,5],[\\\"shared.people-editor.clients.Find a client\\\"],null],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[30,1,[\\\"firstName\\\"]]],[1,\\\"\\\\n        \\\"],[1,[30,1,[\\\"lastName\\\"]]],[1,\\\"\\\\n        (\\\"],[1,[30,1,[\\\"email\\\"]]],[1,\\\")\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n      \\\"],[8,[39,18],[[24,0,\\\"link\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.settings.people.clients.client\\\",\\\"new\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.people.clients.donNotSeeTheClientAddThemToTheCompany\\\"],null]],[1,\\\"\\\\n        \\\"],[8,[39,11],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",true,\\\"md\\\"]],null],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"addClientToProject\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"isAddingClientToProject\\\"]]],null],false],null]],null],[12],[1,[28,[35,5],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[28,[37,19],[[28,[37,20],[[30,0,[\\\"clientToAddToProject\\\"]]],null],[30,0,[\\\"addClientToProject\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,21],[[30,0,[\\\"addClientToProject\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"addClientToProject\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"common.Adding\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"client\\\"],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"span\\\",\\\"input\\\",\\\"t\\\",\\\"includes-feature-flags\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"fa-icon\\\",\\\"people-table\\\",\\\"concat\\\",\\\"modal-dialog\\\",\\\"h3\\\",\\\"p\\\",\\\"power-select\\\",\\\"link-to\\\",\\\"or\\\",\\\"not\\\",\\\"perform\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/people/clients/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/people/subcontractors\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"8RkrhkUo\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/people/subcontractors.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/people/subcontractors/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <div class='float-end mb-1 d-flex align-items-center'>\n      <span class='m-1' style='width: 200px;'>\n        <Input\n          class='form-control'\n          placeholder={{t\n            'shared.people-editor.subcontractors.Search for subcontractors'\n          }}\n          @type='text'\n          @value={{this.searchString}}\n        />\n      </span>\n      {{#if (includes-feature-flags 'canManageSubcontractors')}}\n        <button\n          type='button'\n          class='btn btn-success text-white text-nowrap m-1'\n          {{on 'click' (fn (mut this.isAddingSubcontractorToProject) true)}}\n        >\n          <FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Add'}}\n        </button>\n      {{/if}}\n    </div>\n    <PeopleTable\n      @filteredList={{this.filteredSubcontractors}}\n      @noData={{t 'shared.people-editor.subcontractors.No subcontractors yet'}}\n      @route={{concat this.model.basePath '.subcontractors.subcontractor'}}\n    />\n  {{/if}}\n  \n  {{#if this.isAddingSubcontractorToProject}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.isAddingSubcontractorToProject) false}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-header'>\n        <h3 class='modal-title'>\n          {{t\n            'entity.builda-price.projects.project.people.subcontractors.Add subcontractor to project'\n          }}\n        </h3>\n      </div>\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t\n            'entity.builda-price.projects.project.people.subcontractors.addSubcontractorToProjectDescription'\n          }}\n        </p>\n  \n        <PowerSelect\n          @tagName='div'\n          class='mb-1'\n          @options={{this.unassignedSubcontractors}}\n          @selected={{this.subcontractorToAddToProject}}\n          @onChange={{fn (mut this.subcontractorToAddToProject)}}\n          @searchEnabled={{true}}\n          @searchField='name'\n          @placeholder={{t\n            'shared.people-editor.subcontractors.Find a subcontractor'\n          }}\n          @allowClear={{true}}\n          as |user|\n        >\n          {{user.firstName}}\n          {{user.lastName}}\n          ({{user.email}})\n        </PowerSelect>\n        <LinkTo\n          class='link ps-0'\n          @route='entity.settings.people.subcontractors.subcontractor'\n          @model='new'\n        >\n          {{t\n            'entity.builda-price.projects.project.people.subcontractors.doNotSeeTheSubcontractorAddThemToTheCompany'\n          }}\n          <FaIcon @icon='external-link-alt' @fixedWidth={{true}} @size='md' />\n        </LinkTo>\n  \n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          disabled={{this.addSubcontractorToProject.isRunning}}\n          {{on 'click' (fn (mut this.isAddingSubcontractorToProject) false)}}\n        >{{t 'common.Cancel'}}</button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          disabled={{or\n            (not this.subcontractorToAddToProject)\n            this.addSubcontractorToProject.isRunning\n          }}\n          {{on 'click' (perform this.addSubcontractorToProject)}}\n        >\n          {{#if this.addSubcontractorToProject.isRunning}}\n            {{t 'common.Adding'}}&hellip;\n          {{else}}\n            {{t 'common.Add'}}\n          {{/if}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"7sLEhcbJ\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"float-end mb-1 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,1],[14,0,\\\"m-1\\\"],[14,5,\\\"width: 200px;\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],[[24,0,\\\"form-control\\\"],[16,\\\"placeholder\\\",[28,[37,5],[\\\"shared.people-editor.subcontractors.Search for subcontractors\\\"],null]]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[\\\"canManageSubcontractors\\\"],null],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"isAddingSubcontractorToProject\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n        \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,5],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,12],null,[[\\\"@filteredList\\\",\\\"@noData\\\",\\\"@route\\\"],[[30,0,[\\\"filteredSubcontractors\\\"]],[28,[37,5],[\\\"shared.people-editor.subcontractors.No subcontractors yet\\\"],null],[28,[37,13],[[30,0,[\\\"model\\\",\\\"basePath\\\"]],\\\".subcontractors.subcontractor\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isAddingSubcontractorToProject\\\"]],[[[1,\\\"  \\\"],[8,[39,14],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"isAddingSubcontractorToProject\\\"]]],null],false],null],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.people.subcontractors.Add subcontractor to project\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.people.subcontractors.addSubcontractorToProjectDescription\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,17],[[24,0,\\\"mb-1\\\"]],[[\\\"@tagName\\\",\\\"@options\\\",\\\"@selected\\\",\\\"@onChange\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@allowClear\\\"],[\\\"div\\\",[30,0,[\\\"unassignedSubcontractors\\\"]],[30,0,[\\\"subcontractorToAddToProject\\\"]],[28,[37,9],[[28,[37,10],[[30,0,[\\\"subcontractorToAddToProject\\\"]]],null]],null],true,\\\"name\\\",[28,[37,5],[\\\"shared.people-editor.subcontractors.Find a subcontractor\\\"],null],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[30,1,[\\\"firstName\\\"]]],[1,\\\"\\\\n        \\\"],[1,[30,1,[\\\"lastName\\\"]]],[1,\\\"\\\\n        (\\\"],[1,[30,1,[\\\"email\\\"]]],[1,\\\")\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n      \\\"],[8,[39,18],[[24,0,\\\"link ps-0\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.settings.people.subcontractors.subcontractor\\\",\\\"new\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.people.subcontractors.doNotSeeTheSubcontractorAddThemToTheCompany\\\"],null]],[1,\\\"\\\\n        \\\"],[8,[39,11],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",true,\\\"md\\\"]],null],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"addSubcontractorToProject\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"isAddingSubcontractorToProject\\\"]]],null],false],null]],null],[12],[1,[28,[35,5],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[28,[37,19],[[28,[37,20],[[30,0,[\\\"subcontractorToAddToProject\\\"]]],null],[30,0,[\\\"addSubcontractorToProject\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,21],[[30,0,[\\\"addSubcontractorToProject\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"addSubcontractorToProject\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"common.Adding\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"user\\\"],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"span\\\",\\\"input\\\",\\\"t\\\",\\\"includes-feature-flags\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"fa-icon\\\",\\\"people-table\\\",\\\"concat\\\",\\\"modal-dialog\\\",\\\"h3\\\",\\\"p\\\",\\\"power-select\\\",\\\"link-to\\\",\\\"or\\\",\\\"not\\\",\\\"perform\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/people/subcontractors/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/people/subcontractors/subcontractor\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='flex-grow-1'>\n    {{#if this.isRunning}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mb-3 ms-1 mt-1'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <PtlForm class='mb-3'>\n        <h3 class='mb-0'>{{t 'common.Details'}}</h3>\n        <p class='mb-3'>\n          {{this.model.subcontractor.last.value.fullName}}\n          {{t 'shared.people-editor.is assigned to the project'}}\n        </p>\n  \n        <div class='d-flex'>\n          <LinkTo\n            class='btn btn-primary m-1'\n            @route='entity.settings.people.subcontractors.subcontractor'\n            @model={{this.model.subcontractor.last.value.id}}\n          >\n            {{t\n              'shared.people-editor.subcontractors.subcontractor.View subcontractor details'\n            }}\n            <FaIcon @icon='external-link-alt' @fixedWidth={{true}} @size='md' />\n          </LinkTo>\n  \n          {{#if (includes-feature-flags 'canManageSubcontractors')}}\n            <button\n              type='button'\n              class='btn btn-secondary m-1'\n              disabled={{this.deleteUser.isRunning}}\n              {{on 'click' (perform this.deleteUser)}}\n            >\n              {{#if this.deleteUser.isRunning}}\n                {{if\n                  this.userIsYou\n                  (t 'shared.people-editor.Removing you from project')\n                  (t 'shared.people-editor.Removing from project')\n                }}&hellip;\n              {{else}}\n                {{if\n                  this.userIsYou\n                  (t 'shared.people-editor.Remove yourself from project')\n                  (t 'shared.people-editor.Removing from project')\n                }}\n              {{/if}}\n            </button>\n          {{/if}}\n        </div>\n      </PtlForm>\n      {{#if (includes-feature-flags 'canManageSubcontractors')}}\n        <PtlForm class='mb-3'>\n          <h3 class='mb-0'>{{t 'shared.people-editor.Permissions'}}</h3>\n          <p class='mb-4'>\n            {{t\n              'entity.builda-price.projects.project.people.subcontractors.subcontractor.subcontractorProjectPermissionsExplanation'\n            }}\n          </p>\n  \n          <div\n            class='d-flex align-items-center mb-3'\n            role='button'\n            {{on\n              'click'\n              (fn\n                (mut this.projectPermissionsVisible)\n                (not this.projectPermissionsVisible)\n              )\n            }}\n          >\n            <h4 class='m-0'>\n              {{t 'common.Project'}}\n            </h4>\n            {{#if this.projectPermissionsCount}}\n              <span class='ms-2 badge bg-info'>\n                {{this.projectPermissionsCount}}\n              </span>\n            {{/if}}\n            <h4 class='m-0 ms-auto'>\n              <FaIcon\n                @icon={{if\n                  this.projectPermissionsVisible\n                  'chevron-down'\n                  'chevron-right'\n                }}\n              />\n            </h4>\n          </div>\n          {{#if this.projectPermissionsVisible}}\n            <PtlInput\n              @type='checkbox'\n              @label={{t 'shared.people-editor.Can make changes to the project'}}\n              @key='canManageProjects'\n              @description={{t\n                'shared.people-editor.canMakeChangesToTheProjectDescription'\n              }}\n              @model={{this.model.permissionsChangeset.last.value}}\n              @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n              @toolTip={{if\n                this.entityCanManageProjects\n                this.permissionSupersededMessage\n              }}\n              disabled={{or\n                this.entityCanManageProjects\n                this.savePermissions.isRunning\n              }}\n              @checked={{or\n                this.entityCanManageProjects\n                (get\n                  this.model.permissionsChangeset.last.value 'canManageProjects'\n                )\n              }}\n            />\n            {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see the project budget'}}\n                @key='canViewBudgets'\n                @description={{t\n                  'shared.people-editor.canSeeTheProjectBudgetDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewBudgets\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewBudgets\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewBudgets\n                  (get\n                    this.model.permissionsChangeset.last.value 'canViewBudgets'\n                  )\n                }}\n              />\n              {{#if\n                (or\n                  this.entityCanViewBudgets\n                  this.model.permissionsChangeset.last.value.canManageBudgets\n                  this.model.permissionsChangeset.last.value.canViewBudgets\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'shared.people-editor.Can create budget versions'}}\n                  @key='canManageBudgets'\n                  @description={{t\n                    'shared.people-editor.canCreateBudgetVersionsDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.entityCanManageBudgets\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.entityCanManageBudgets\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.entityCanManageBudgets\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canManageBudgets'\n                    )\n                  }}\n                />\n              {{/if}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see the project quote'}}\n                @key='canViewQuotes'\n                @description={{t\n                  'shared.people-editor.canSeeTheProjectQuoteDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewQuotes\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewQuotes\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewQuotes\n                  (get this.model.permissionsChangeset.last.value 'canViewQuotes')\n                }}\n              />\n              {{#if\n                (or\n                  this.entityCanViewQuotes\n                  this.model.permissionsChangeset.last.value.canManageQuotes\n                  this.model.permissionsChangeset.last.value.canViewQuotes\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'shared.people-editor.Can create quote versions'}}\n                  @key='canManageQuotes'\n                  @description={{t\n                    'shared.people-editor.canCreateQuoteVersionsDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.entityCanManageQuotes\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.entityCanManageQuotes\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.entityCanManageQuotes\n                    (get\n                      this.model.permissionsChangeset.last.value 'canManageQuotes'\n                    )\n                  }}\n                />\n              {{/if}}\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseProjectProgress}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see the project progress'}}\n                @key='canViewProgress'\n                @description={{t\n                  'shared.people-editor.Lets the user see the project progress'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewProgress\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewProgress\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewProgress\n                  (get\n                    this.model.permissionsChangeset.last.value 'canViewProgress'\n                  )\n                }}\n              />\n              {{#if\n                (or\n                  this.entityCanViewProgress\n                  this.model.permissionsChangeset.last.value.canManageProgress\n                  this.model.permissionsChangeset.last.value.canViewProgress\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'shared.people-editor.Can create progress versions'}}\n                  @key='canManageProgress'\n                  @description={{t\n                    'shared.people-editor.canCreateProgressVersionsDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.entityCanManageProgress\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.entityCanManageProgress\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.entityCanManageProgress\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canManageProgress'\n                    )\n                  }}\n                />\n              {{/if}}\n            {{/if}}\n            <PtlInput\n              @type='checkbox'\n              @label={{t\n                'shared.people-editor.Can see all the tasks for this project'\n              }}\n              @key='canViewTasks'\n              @model={{this.model.permissionsChangeset.last.value}}\n              @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n              @toolTip={{if\n                this.entityCanViewTasks\n                this.permissionSupersededMessage\n              }}\n              disabled={{or\n                this.entityCanViewTasks\n                this.savePermissions.isRunning\n              }}\n              @checked={{or\n                this.entityCanViewTasks\n                (get this.model.permissionsChangeset.last.value 'canViewTasks')\n              }}\n            />\n            {{#if\n              (or\n                this.entityCanViewTasks\n                this.model.permissionsChangeset.last.value.canManageTasks\n                this.model.permissionsChangeset.last.value.canViewTasks\n              )\n            }}\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.Can manage tasks for the project'\n                }}\n                @key='canManageTasks'\n                @description={{t\n                  'shared.people-editor.canManageTasksForTheProjectDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanManageTasks\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanManageTasks\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanManageTasks\n                  (get\n                    this.model.permissionsChangeset.last.value 'canManageTasks'\n                  )\n                }}\n              />\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.Can see all documents for the project'\n                }}\n                @key='canViewFileStorage'\n                @description={{t\n                  'shared.people-editor.canSeeAllDocumentsForTheProjectDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewFileStorage\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewFileStorage\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewFileStorage\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewFileStorage'\n                  )\n                }}\n              />\n              {{#if\n                (or\n                  this.entityCanViewFileStorage\n                  this.model.permissionsChangeset.last.value.canManageFileStorage\n                  this.model.permissionsChangeset.last.value.canViewFileStorage\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'shared.people-editor.canManageAllDocumentsForTheProject'\n                  }}\n                  @key='canManageFileStorage'\n                  @description={{t\n                    'shared.people-editor.canManageAllDocumentsForTheProjectDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.entityCanManageFileStorage\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.entityCanManageFileStorage\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.entityCanManageFileStorage\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canManageFileStorage'\n                    )\n                  }}\n                />\n              {{/if}}\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseProducts}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.Can see all products for the project'\n                }}\n                @key='canViewProducts'\n                @description={{t\n                  'shared.people-editor.canSeeAllProductsForTheProjectDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewProducts\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewProducts\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewProducts\n                  (get\n                    this.model.permissionsChangeset.last.value 'canViewProducts'\n                  )\n                }}\n              />\n              {{#if\n                (or\n                  this.entityCanViewProducts\n                  this.model.permissionsChangeset.last.value.canManageProducts\n                  this.model.permissionsChangeset.last.value.canViewProducts\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'shared.people-editor.Can manage all products for the project'\n                  }}\n                  @key='canManageProducts'\n                  @description={{t\n                    'shared.people-editor.canManageAllProductsForTheProjectDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.entityCanManageProducts\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.entityCanManageProducts\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.entityCanManageProducts\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canManageProducts'\n                    )\n                  }}\n                />\n              {{/if}}\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseEstimates}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see and manage estimates'}}\n                @key='canManageEstimates'\n                @description={{t\n                  'shared.people-editor.canSeeAndManageEstimatesDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanManageEstimates\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanManageEstimates\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanManageEstimates\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canManageEstimates'\n                  )\n                }}\n              />\n            {{/if}}\n          {{/if}}\n          {{#if this.newFeatureFlags.entityCanUseScheduling}}\n            <div\n              class='d-flex align-items-center mb-3'\n              role='button'\n              {{on\n                'click'\n                (fn\n                  (mut this.schedulingPermissionsVisible)\n                  (not this.schedulingPermissionsVisible)\n                )\n              }}\n            >\n              <h4 class='m-0'>\n                {{t 'common.Scheduling'}}\n              </h4>\n              {{#if this.schedulingPermissionsCount}}\n                <span class='ms-2 badge bg-info'>\n                  {{this.schedulingPermissionsCount}}\n                </span>\n              {{/if}}\n              <h4 class='m-0 ms-auto'>\n                <FaIcon\n                  @icon={{if\n                    this.schedulingPermissionsVisible\n                    'chevron-down'\n                    'chevron-right'\n                  }}\n                />\n              </h4>\n            </div>\n            {{#if this.schedulingPermissionsVisible}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see scheduling reports'}}\n                @key='canViewSchedulingReports'\n                @description={{t\n                  'shared.people-editor.Gives access to see the timeline'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewSchedulingReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewSchedulingReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewSchedulingReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewSchedulingReports'\n                  )\n                }}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can make scheduling changes'}}\n                @key='canManageSchedulingReports'\n                @description={{t\n                  'entity.builda-price.projects.project.people.subcontractors.subcontractor.canMakeSchedulingChangesProjectDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanManageSchedulingReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanManageSchedulingReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanManageSchedulingReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canManageSchedulingReports'\n                  )\n                }}\n              />\n            {{/if}}\n          {{/if}}\n          {{#if this.newFeatureFlags.entityCanUseTimesheets}}\n            <div\n              class='d-flex align-items-center mb-3'\n              role='button'\n              {{on\n                'click'\n                (fn\n                  (mut this.allocationsPermissionsVisible)\n                  (not this.allocationsPermissionsVisible)\n                )\n              }}\n            >\n              <h4 class='m-0'>\n                {{t 'common.Allocations'}}\n              </h4>\n              {{#if this.allocationsPermissionsCount}}\n                <span class='ms-2 badge bg-info'>\n                  {{this.allocationsPermissionsCount}}\n                </span>\n              {{/if}}\n              <h4 class='m-0 ms-auto'>\n                <FaIcon\n                  @icon={{if\n                    this.allocationsPermissionsVisible\n                    'chevron-down'\n                    'chevron-right'\n                  }}\n                />\n              </h4>\n            </div>\n            {{#if this.allocationsPermissionsVisible}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see and manage timesheets'}}\n                @key='canManageTimesheets'\n                @description={{t\n                  'shared.people-editor.canSeeAndManageTimesheetsProjectDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanManageTimesheets\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanManageTimesheets\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanManageTimesheets\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canManageTimesheets'\n                  )\n                }}\n              />\n            {{/if}}\n          {{/if}}\n          <div\n            class='d-flex align-items-center mb-3'\n            role='button'\n            {{on\n              'click'\n              (fn\n                (mut this.reportsPermissionsVisible)\n                (not this.reportsPermissionsVisible)\n              )\n            }}\n          >\n            <h4 class='m-0'>\n              {{t 'common.Reports'}}\n            </h4>\n            {{#if this.reportsPermissionsCount}}\n              <span class='ms-2 badge bg-info'>\n                {{this.reportsPermissionsCount}}\n              </span>\n            {{/if}}\n            <h4 class='m-0 ms-auto'>\n              <FaIcon\n                @icon={{if\n                  this.reportsPermissionsVisible\n                  'chevron-down'\n                  'chevron-right'\n                }}\n              />\n            </h4>\n          </div>\n          {{#if this.reportsPermissionsVisible}}\n            <div class='alert alert-primary' role='alert'>\n              <FaIcon @icon='info-circle' @size='lg' class='me-2' />\n              <span class='me-2'>\n                {{#if this.canViewReports.length}}\n                  {{t\n                    'shared.people-editor.withThesePermissionsThisSubcontractorCanSeeTheFollowingReports'\n                  }}:\n                  <span class='fw-bold'>{{this.canViewReports}}</span>.\n                {{else}}\n                  {{t\n                    'shared.people-editor.subcontractors.subcontractor.withThesePermissionsThisSubcontractorCanNotSeeAnyReports'\n                  }}\n                {{/if}}\n              </span>\n            </div>\n            {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see budget data in reports'}}\n                @description={{t\n                  'shared.people-editor.users.user.canSeeAllBudgetDataInReportsDescription'\n                }}\n                @key='canViewBudgetFinancialReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewBudgetReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewBudgetReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewBudgetReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewBudgetFinancialReports'\n                  )\n                }}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.users.user.canViewBudgetHourReportsLabel'\n                }}\n                @description={{t\n                  'shared.people-editor.users.user.canViewBudgetHourReportsLabelDescription'\n                }}\n                @key='canViewBudgetLabourHourReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewBudgetLabourHourReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewBudgetLabourHourReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewBudgetLabourHourReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewBudgetLabourHourReports'\n                  )\n                }}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see quote data in reports'}}\n                @key='canViewQuoteReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewQuoteReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewQuoteReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewQuoteReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewQuoteReports'\n                  )\n                }}\n              />\n            {{/if}}\n            {{#if\n              (or\n                this.newFeatureFlags.entityCanUseTimesheets\n                this.newFeatureFlags.entityCanUseBills\n              )\n            }}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see cost data in reports'}}\n                @key='canViewCostFinancialReports'\n                @description={{t\n                  'shared.people-editor.canSeeAllCostDataInReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewCostReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewCostReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewCostReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewCostFinancialReports'\n                  )\n                }}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.users.user.canViewActualHourReportsLabel'\n                }}\n                @key='canViewCostLabourHourReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewCostLabourHourReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewCostLabourHourReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewCostLabourHourReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewCostLabourHourReports'\n                  )\n                }}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.Can see work value data in reports'\n                }}\n                @key='canViewChargeupReports'\n                @description={{t\n                  'shared.people-editor.canSeeAllWorkValueDataInReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewChargeupReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewChargeupReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewChargeupReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewChargeupReports'\n                  )\n                }}\n              />\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.Can see progress data in reports'\n                }}\n                @key='canViewProgressReports'\n                @description={{t\n                  'shared.people-editor.canSeeProgressDataInReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewProgressReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewProgressReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewProgressReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewProgressReports'\n                  )\n                }}\n              />\n              {{#if this.newFeatureFlags.entityCanUseInvoicingReport}}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'shared.people-editor.users.user.Can see all invoicing data in reports'\n                  }}\n                  @key='canViewInvoicingReports'\n                  @description={{t\n                    'shared.people-editor.users.user.canViewInvoicingReportsDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.entityCanViewInvoicingReports\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.entityCanViewInvoicingReports\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.entityCanViewInvoicingReports\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canViewInvoicingReports'\n                    )\n                  }}\n                />\n              {{/if}}\n            {{/if}}\n          {{/if}}\n          {{#if this.newFeatureFlags.entityCanUseHealthAndSafety}}\n            <div\n              class='d-flex align-items-center mb-3'\n              role='button'\n              {{on\n                'click'\n                (fn\n                  (mut this.healthAndSafetyPermissionsVisible)\n                  (not this.healthAndSafetyPermissionsVisible)\n                )\n              }}\n            >\n              <h4 class='m-0'>\n                {{t 'common.healthAndSafety'}}\n              </h4>\n              {{#if this.healthAndSafetyPermissionsCount}}\n                <span class='ms-2 badge bg-info'>\n                  {{this.healthAndSafetyPermissionsCount}}\n                </span>\n              {{/if}}\n              <h4 class='m-0 ms-auto'>\n                <FaIcon\n                  @icon={{if\n                    this.healthAndSafetyPermissionsVisible\n                    'chevron-down'\n                    'chevron-right'\n                  }}\n                />\n              </h4>\n            </div>\n            {{#if this.healthAndSafetyPermissionsVisible}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.canUseHealthAndSafety'}}\n                @key='canCreateHealthAndSafety'\n                @description={{t\n                  'shared.people-editor.canUseHealthAndSafetyDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanCreateHealthAndSafety\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanCreateHealthAndSafety\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanCreateHealthAndSafety\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canCreateHealthAndSafety'\n                  )\n                }}\n              />\n              {{#if\n                (or\n                  this.model.permissionsChangeset.last.value.canManageHealthAndSafety\n                  this.model.permissionsChangeset.last.value.canCreateHealthAndSafety\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'shared.people-editor.canManageHealthAndSafety'}}\n                  @key='canManageHealthAndSafety'\n                  @description={{t\n                    'shared.people-editor.canManageHealthAndSafetyDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.entityCanManageHealthAndSafety\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.entityCanManageHealthAndSafety\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.entityCanManageHealthAndSafety\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canManageHealthAndSafety'\n                    )\n                  }}\n                />\n              {{/if}}\n            {{/if}}\n          {{/if}}\n          <div class='d-flex flex-grow-1 mt-2'>\n            <button\n              type='button'\n              class='btn btn-primary ms-auto'\n              disabled={{this.savePermissions.isRunning}}\n              {{on\n                'click'\n                (perform\n                  this.savePermissions this.model.permissionsChangeset.last.value\n                )\n              }}\n            >\n              {{#if this.savePermissions.isRunning}}\n                {{t 'shared.people-editor.Saving permissions'}}&hellip;\n              {{else}}\n                {{t 'shared.people-editor.Save permissions'}}\n              {{/if}}\n            </button>\n          </div>\n        </PtlForm>\n      {{/if}}\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"+/qNf+vZ\",\n    \"block\": \"[[[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-3 ms-1 mt-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,3],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-0\\\"],[12],[1,[28,[35,6],[\\\"common.Details\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,0,[\\\"model\\\",\\\"subcontractor\\\",\\\"last\\\",\\\"value\\\",\\\"fullName\\\"]]],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"shared.people-editor.is assigned to the project\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"d-flex\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,8],[[24,0,\\\"btn btn-primary m-1\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.settings.people.subcontractors.subcontractor\\\",[30,0,[\\\"model\\\",\\\"subcontractor\\\",\\\"last\\\",\\\"value\\\",\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"shared.people-editor.subcontractors.subcontractor.View subcontractor details\\\"],null]],[1,\\\"\\\\n          \\\"],[8,[39,9],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",true,\\\"md\\\"]],null],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,10],[\\\"canManageSubcontractors\\\"],null],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteUser\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"deleteUser\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteUser\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[52,[30,0,[\\\"userIsYou\\\"]],[28,[37,6],[\\\"shared.people-editor.Removing you from project\\\"],null],[28,[37,6],[\\\"shared.people-editor.Removing from project\\\"],null]]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[52,[30,0,[\\\"userIsYou\\\"]],[28,[37,6],[\\\"shared.people-editor.Remove yourself from project\\\"],null],[28,[37,6],[\\\"shared.people-editor.Removing from project\\\"],null]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"],[41,[28,[37,10],[\\\"canManageSubcontractors\\\"],null],[[[1,\\\"      \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-0\\\"],[12],[1,[28,[35,6],[\\\"shared.people-editor.Permissions\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[10,2],[14,0,\\\"mb-4\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"entity.builda-price.projects.project.people.subcontractors.subcontractor.subcontractorProjectPermissionsExplanation\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"projectPermissionsVisible\\\"]]],null],[28,[37,16],[[30,0,[\\\"projectPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"common.Project\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"projectPermissionsCount\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"projectPermissionsCount\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"projectPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"projectPermissionsVisible\\\"]],[[[1,\\\"          \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManageProjects\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can make changes to the project\\\"],null],\\\"canManageProjects\\\",[28,[37,6],[\\\"shared.people-editor.canMakeChangesToTheProjectDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManageProjects\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManageProjects\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageProjects\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewBudgets\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see the project budget\\\"],null],\\\"canViewBudgets\\\",[28,[37,6],[\\\"shared.people-editor.canSeeTheProjectBudgetDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewBudgets\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewBudgets\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewBudgets\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"entityCanViewBudgets\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageBudgets\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewBudgets\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManageBudgets\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can create budget versions\\\"],null],\\\"canManageBudgets\\\",[28,[37,6],[\\\"shared.people-editor.canCreateBudgetVersionsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManageBudgets\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManageBudgets\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageBudgets\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewQuotes\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see the project quote\\\"],null],\\\"canViewQuotes\\\",[28,[37,6],[\\\"shared.people-editor.canSeeTheProjectQuoteDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewQuotes\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewQuotes\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewQuotes\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"entityCanViewQuotes\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageQuotes\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewQuotes\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManageQuotes\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can create quote versions\\\"],null],\\\"canManageQuotes\\\",[28,[37,6],[\\\"shared.people-editor.canCreateQuoteVersionsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManageQuotes\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManageQuotes\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageQuotes\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectProgress\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewProgress\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see the project progress\\\"],null],\\\"canViewProgress\\\",[28,[37,6],[\\\"shared.people-editor.Lets the user see the project progress\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewProgress\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewProgress\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewProgress\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"entityCanViewProgress\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageProgress\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewProgress\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManageProgress\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can create progress versions\\\"],null],\\\"canManageProgress\\\",[28,[37,6],[\\\"shared.people-editor.canCreateProgressVersionsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManageProgress\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManageProgress\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageProgress\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"          \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewTasks\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all the tasks for this project\\\"],null],\\\"canViewTasks\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewTasks\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewTasks\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewTasks\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"entityCanViewTasks\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageTasks\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewTasks\\\"]]],null],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManageTasks\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage tasks for the project\\\"],null],\\\"canManageTasks\\\",[28,[37,6],[\\\"shared.people-editor.canManageTasksForTheProjectDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManageTasks\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManageTasks\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageTasks\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewFileStorage\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all documents for the project\\\"],null],\\\"canViewFileStorage\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllDocumentsForTheProjectDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewFileStorage\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewFileStorage\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewFileStorage\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"entityCanViewFileStorage\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageFileStorage\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewFileStorage\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManageFileStorage\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canManageAllDocumentsForTheProject\\\"],null],\\\"canManageFileStorage\\\",[28,[37,6],[\\\"shared.people-editor.canManageAllDocumentsForTheProjectDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManageFileStorage\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManageFileStorage\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageFileStorage\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProducts\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewProducts\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all products for the project\\\"],null],\\\"canViewProducts\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllProductsForTheProjectDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewProducts\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewProducts\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewProducts\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"entityCanViewProducts\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageProducts\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewProducts\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManageProducts\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all products for the project\\\"],null],\\\"canManageProducts\\\",[28,[37,6],[\\\"shared.people-editor.canManageAllProductsForTheProjectDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManageProducts\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManageProducts\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageProducts\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseEstimates\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManageEstimates\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see and manage estimates\\\"],null],\\\"canManageEstimates\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAndManageEstimatesDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManageEstimates\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManageEstimates\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageEstimates\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseScheduling\\\"]],[[[1,\\\"          \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"schedulingPermissionsVisible\\\"]]],null],[28,[37,16],[[30,0,[\\\"schedulingPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"common.Scheduling\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"schedulingPermissionsCount\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"schedulingPermissionsCount\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"schedulingPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"schedulingPermissionsVisible\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewSchedulingReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see scheduling reports\\\"],null],\\\"canViewSchedulingReports\\\",[28,[37,6],[\\\"shared.people-editor.Gives access to see the timeline\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewSchedulingReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewSchedulingReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewSchedulingReports\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManageSchedulingReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can make scheduling changes\\\"],null],\\\"canManageSchedulingReports\\\",[28,[37,6],[\\\"entity.builda-price.projects.project.people.subcontractors.subcontractor.canMakeSchedulingChangesProjectDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManageSchedulingReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManageSchedulingReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageSchedulingReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseTimesheets\\\"]],[[[1,\\\"          \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"allocationsPermissionsVisible\\\"]]],null],[28,[37,16],[[30,0,[\\\"allocationsPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"common.Allocations\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"allocationsPermissionsCount\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"allocationsPermissionsCount\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"allocationsPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"allocationsPermissionsVisible\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManageTimesheets\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see and manage timesheets\\\"],null],\\\"canManageTimesheets\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAndManageTimesheetsProjectDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManageTimesheets\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManageTimesheets\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageTimesheets\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"        \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"reportsPermissionsVisible\\\"]]],null],[28,[37,16],[[30,0,[\\\"reportsPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"common.Reports\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"reportsPermissionsCount\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"reportsPermissionsCount\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"reportsPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"reportsPermissionsVisible\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"alert alert-primary\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],[[24,0,\\\"me-2\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"info-circle\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canViewReports\\\",\\\"length\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"shared.people-editor.withThesePermissionsThisSubcontractorCanSeeTheFollowingReports\\\"],null]],[1,\\\":\\\\n                \\\"],[10,1],[14,0,\\\"fw-bold\\\"],[12],[1,[30,0,[\\\"canViewReports\\\"]]],[13],[1,\\\".\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"shared.people-editor.subcontractors.subcontractor.withThesePermissionsThisSubcontractorCanNotSeeAnyReports\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewBudgetReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see budget data in reports\\\"],null],[28,[37,6],[\\\"shared.people-editor.users.user.canSeeAllBudgetDataInReportsDescription\\\"],null],\\\"canViewBudgetFinancialReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewBudgetReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewBudgetReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewBudgetFinancialReports\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewBudgetLabourHourReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewBudgetHourReportsLabel\\\"],null],[28,[37,6],[\\\"shared.people-editor.users.user.canViewBudgetHourReportsLabelDescription\\\"],null],\\\"canViewBudgetLabourHourReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewBudgetLabourHourReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewBudgetLabourHourReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewBudgetLabourHourReports\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewQuoteReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see quote data in reports\\\"],null],\\\"canViewQuoteReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewQuoteReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewQuoteReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewQuoteReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,20],[[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseTimesheets\\\"]],[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseBills\\\"]]],null],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewCostReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see cost data in reports\\\"],null],\\\"canViewCostFinancialReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllCostDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewCostReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewCostReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewCostFinancialReports\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewCostLabourHourReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewActualHourReportsLabel\\\"],null],\\\"canViewCostLabourHourReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewCostLabourHourReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewCostLabourHourReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewCostLabourHourReports\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewChargeupReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see work value data in reports\\\"],null],\\\"canViewChargeupReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllWorkValueDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewChargeupReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewChargeupReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewChargeupReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewProgressReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see progress data in reports\\\"],null],\\\"canViewProgressReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeProgressDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewProgressReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewProgressReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewProgressReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseInvoicingReport\\\"]],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewInvoicingReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.Can see all invoicing data in reports\\\"],null],\\\"canViewInvoicingReports\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewInvoicingReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewInvoicingReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewInvoicingReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewInvoicingReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseHealthAndSafety\\\"]],[[[1,\\\"          \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"healthAndSafetyPermissionsVisible\\\"]]],null],[28,[37,16],[[30,0,[\\\"healthAndSafetyPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"common.healthAndSafety\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"healthAndSafetyPermissionsCount\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"healthAndSafetyPermissionsCount\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"healthAndSafetyPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"healthAndSafetyPermissionsVisible\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanCreateHealthAndSafety\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canUseHealthAndSafety\\\"],null],\\\"canCreateHealthAndSafety\\\",[28,[37,6],[\\\"shared.people-editor.canUseHealthAndSafetyDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanCreateHealthAndSafety\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanCreateHealthAndSafety\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canCreateHealthAndSafety\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageHealthAndSafety\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canCreateHealthAndSafety\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManageHealthAndSafety\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canManageHealthAndSafety\\\"],null],\\\"canManageHealthAndSafety\\\",[28,[37,6],[\\\"shared.people-editor.canManageHealthAndSafetyDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManageHealthAndSafety\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManageHealthAndSafety\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageHealthAndSafety\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null],[1,\\\"        \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-2\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"savePermissions\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Saving permissions\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Save permissions\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[13]],[],false,[\\\"div\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"page-title-breadcrumbs\\\",\\\"ptl-form\\\",\\\"h3\\\",\\\"t\\\",\\\"p\\\",\\\"link-to\\\",\\\"fa-icon\\\",\\\"includes-feature-flags\\\",\\\"button\\\",\\\"on\\\",\\\"perform\\\",\\\"fn\\\",\\\"mut\\\",\\\"not\\\",\\\"h4\\\",\\\"span\\\",\\\"ptl-input\\\",\\\"or\\\",\\\"gt\\\",\\\"get\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/people/subcontractors/subcontractor.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/people/users\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"CJwM1g94\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/people/users.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/people/users/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <div class='float-end mb-1 d-flex align-items-center'>\n      <span class='m-1'>\n        <Input\n          class='form-control'\n          placeholder={{t 'shared.people-editor.users.Search for users'}}\n          @type='text'\n          @value={{this.searchString}}\n        />\n      </span>\n      {{#if (includes-feature-flags 'canManageUsers')}}\n        <button\n          type='button'\n          class='btn btn-success text-white text-nowrap m-1'\n          {{on 'click' (fn (mut this.isAddingUserToProject) true)}}\n        >\n          <FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Add'}}\n        </button>\n      {{/if}}\n    </div>\n    <PeopleTable\n      @filteredList={{this.filteredUsers}}\n      @noData={{t 'shared.people-editor.users.No users yet'}}\n      @route={{concat this.model.basePath '.users.user'}}\n    />\n  {{/if}}\n  \n  {{#if this.isAddingUserToProject}}\n    <ModalDialog\n      @overlayClass='modal'\n      @containerClass='modal-content w-auto'\n      @onClose={{fn (mut this.isAddingUserToProject) false}}\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-header'>\n        <h3 class='modal-title'>\n          {{t\n            'entity.builda-price.projects.project.people.users.Add user to project'\n          }}\n        </h3>\n      </div>\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t\n            'entity.builda-price.projects.project.people.users.addingAUserToAProjectIsUsefulWhenYouWantToGiveSomeoneAccessOnlyToAParticularProject'\n          }}\n        </p>\n  \n        <PowerSelect\n          @tagName='div'\n          class='mb-1'\n          @options={{this.unassignedUsers}}\n          @selected={{this.userToAddToProject}}\n          @onChange={{fn (mut this.userToAddToProject)}}\n          @searchEnabled={{true}}\n          @searchField='name'\n          @placeholder={{t 'shared.people-editor.users.Find a user'}}\n          @allowClear={{true}}\n          as |user|\n        >\n          {{user.firstName}}\n          {{user.lastName}}\n          ({{user.email}})\n        </PowerSelect>\n        <LinkTo\n          class='link ps-0'\n          @route='entity.settings.people.users.user'\n          @model='new'\n        >\n          {{t\n            'entity.builda-price.projects.project.people.users.doNotSeeTheUserAddThemToTheCompany'\n          }}\n          <FaIcon @icon='external-link-alt' @fixedWidth={{true}} @size='md' />\n        </LinkTo>\n  \n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          disabled={{this.addUserToProject.isRunning}}\n          {{on 'click' (fn (mut this.isAddingUserToProject) false)}}\n        >{{t 'common.Cancel'}}</button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          disabled={{or\n            (not this.userToAddToProject)\n            this.addUserToProject.isRunning\n          }}\n          {{on 'click' (perform this.addUserToProject)}}\n        >\n          {{#if this.addUserToProject.isRunning}}\n            {{t 'common.Adding'}}&hellip;\n          {{else}}\n            {{t 'common.Add'}}\n          {{/if}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"KLGGDl7U\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"float-end mb-1 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],[[24,0,\\\"form-control\\\"],[16,\\\"placeholder\\\",[28,[37,5],[\\\"shared.people-editor.users.Search for users\\\"],null]]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[\\\"canManageUsers\\\"],null],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"isAddingUserToProject\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n        \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,5],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,12],null,[[\\\"@filteredList\\\",\\\"@noData\\\",\\\"@route\\\"],[[30,0,[\\\"filteredUsers\\\"]],[28,[37,5],[\\\"shared.people-editor.users.No users yet\\\"],null],[28,[37,13],[[30,0,[\\\"model\\\",\\\"basePath\\\"]],\\\".users.user\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isAddingUserToProject\\\"]],[[[1,\\\"  \\\"],[8,[39,14],null,[[\\\"@overlayClass\\\",\\\"@containerClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",\\\"modal-content w-auto\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"isAddingUserToProject\\\"]]],null],false],null],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.people.users.Add user to project\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.people.users.addingAUserToAProjectIsUsefulWhenYouWantToGiveSomeoneAccessOnlyToAParticularProject\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,17],[[24,0,\\\"mb-1\\\"]],[[\\\"@tagName\\\",\\\"@options\\\",\\\"@selected\\\",\\\"@onChange\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@allowClear\\\"],[\\\"div\\\",[30,0,[\\\"unassignedUsers\\\"]],[30,0,[\\\"userToAddToProject\\\"]],[28,[37,9],[[28,[37,10],[[30,0,[\\\"userToAddToProject\\\"]]],null]],null],true,\\\"name\\\",[28,[37,5],[\\\"shared.people-editor.users.Find a user\\\"],null],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[30,1,[\\\"firstName\\\"]]],[1,\\\"\\\\n        \\\"],[1,[30,1,[\\\"lastName\\\"]]],[1,\\\"\\\\n        (\\\"],[1,[30,1,[\\\"email\\\"]]],[1,\\\")\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n      \\\"],[8,[39,18],[[24,0,\\\"link ps-0\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.settings.people.users.user\\\",\\\"new\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.people.users.doNotSeeTheUserAddThemToTheCompany\\\"],null]],[1,\\\"\\\\n        \\\"],[8,[39,11],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",true,\\\"md\\\"]],null],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"addUserToProject\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"isAddingUserToProject\\\"]]],null],false],null]],null],[12],[1,[28,[35,5],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[28,[37,19],[[28,[37,20],[[30,0,[\\\"userToAddToProject\\\"]]],null],[30,0,[\\\"addUserToProject\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,21],[[30,0,[\\\"addUserToProject\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"addUserToProject\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"common.Adding\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"user\\\"],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"span\\\",\\\"input\\\",\\\"t\\\",\\\"includes-feature-flags\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"fa-icon\\\",\\\"people-table\\\",\\\"concat\\\",\\\"modal-dialog\\\",\\\"h3\\\",\\\"p\\\",\\\"power-select\\\",\\\"link-to\\\",\\\"or\\\",\\\"not\\\",\\\"perform\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/people/users/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/people/users/user\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='flex-grow-1'>\n    {{#if this.isRunning}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mb-3 ms-1 mt-1'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <PtlForm class='mb-3'>\n        <h3 class='mb-0'>{{t 'common.Details'}}</h3>\n        <p class='mb-3'>\n          {{this.model.user.last.value.fullName}}\n          {{t 'shared.people-editor.is assigned to the project'}}\n        </p>\n  \n        <div class='d-flex'>\n          <LinkTo\n            class='btn btn-primary m-1'\n            @route='entity.settings.people.users.user'\n            @model={{this.model.user.last.value.id}}\n          >\n            {{t 'shared.people-editor.users.user.View user details'}}\n            <FaIcon @icon='external-link-alt' @fixedWidth={{true}} @size='md' />\n          </LinkTo>\n  \n          {{#if (includes-feature-flags 'canManageUsers')}}\n            <button\n              type='button'\n              class='btn btn-secondary m-1'\n              disabled={{this.deleteUser.isRunning}}\n              {{on 'click' (perform this.deleteUser)}}\n            >\n              {{#if this.deleteUser.isRunning}}\n                {{if\n                  this.userIsYou\n                  (t 'shared.people-editor.Removing you from project')\n                  (t 'shared.people-editor.Removing from project')\n                }}&hellip;\n              {{else}}\n                {{if\n                  this.userIsYou\n                  (t 'shared.people-editor.Remove yourself from project')\n                  (t 'shared.people-editor.Removing from project')\n                }}\n              {{/if}}\n            </button>\n          {{/if}}\n        </div>\n      </PtlForm>\n  \n      {{#if (includes-feature-flags 'canManageUsers')}}\n        <PtlForm class='mb-3'>\n          <h3 class='mb-0'>{{t 'shared.people-editor.Permissions'}}</h3>\n          <p class='mb-4'>\n            {{t\n              'entity.builda-price.projects.project.people.users.user.userProjectPermissionsExplanation'\n            }}\n          </p>\n  \n          <div\n            class='d-flex align-items-center mb-3'\n            role='button'\n            {{on\n              'click'\n              (fn\n                (mut this.projectPermissionsVisible)\n                (not this.projectPermissionsVisible)\n              )\n            }}\n          >\n            <h4 class='m-0'>\n              {{t 'common.Project'}}\n            </h4>\n            {{#if this.projectPermissionsCount}}\n              <span class='ms-2 badge bg-info'>\n                {{this.projectPermissionsCount}}\n              </span>\n            {{/if}}\n            <h4 class='m-0 ms-auto'>\n              <FaIcon\n                @icon={{if\n                  this.projectPermissionsVisible\n                  'chevron-down'\n                  'chevron-right'\n                }}\n              />\n            </h4>\n          </div>\n          {{#if this.projectPermissionsVisible}}\n            <PtlInput\n              @type='checkbox'\n              @label={{t 'shared.people-editor.Can make changes to the project'}}\n              @key='canManageProjects'\n              @description={{t\n                'shared.people-editor.canMakeChangesToTheProjectDescription'\n              }}\n              @model={{this.model.permissionsChangeset.last.value}}\n              @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n              @toolTip={{if\n                this.entityCanManageProjects\n                this.permissionSupersededMessage\n              }}\n              disabled={{or\n                this.entityCanManageProjects\n                this.savePermissions.isRunning\n              }}\n              @checked={{or\n                this.entityCanManageProjects\n                (get\n                  this.model.permissionsChangeset.last.value 'canManageProjects'\n                )\n              }}\n            />\n            {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see the project budget'}}\n                @key='canViewBudgets'\n                @description={{t\n                  'shared.people-editor.canSeeTheProjectBudgetDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewBudgets\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewBudgets\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewBudgets\n                  (get\n                    this.model.permissionsChangeset.last.value 'canViewBudgets'\n                  )\n                }}\n              />\n              {{#if\n                (or\n                  this.entityCanViewBudgets\n                  this.model.permissionsChangeset.last.value.canManageBudgets\n                  this.model.permissionsChangeset.last.value.canViewBudgets\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'shared.people-editor.Can create budget versions'}}\n                  @key='canManageBudgets'\n                  @description={{t\n                    'shared.people-editor.canCreateBudgetVersionsDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.entityCanManageBudgets\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.entityCanManageBudgets\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.entityCanManageBudgets\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canManageBudgets'\n                    )\n                  }}\n                />\n              {{/if}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see the project quote'}}\n                @key='canViewQuotes'\n                @description={{t\n                  'shared.people-editor.canSeeTheProjectQuoteDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewQuotes\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewQuotes\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewQuotes\n                  (get this.model.permissionsChangeset.last.value 'canViewQuotes')\n                }}\n              />\n              {{#if\n                (or\n                  this.entityCanViewQuotes\n                  this.model.permissionsChangeset.last.value.canManageQuotes\n                  this.model.permissionsChangeset.last.value.canViewQuotes\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'shared.people-editor.Can create quote versions'}}\n                  @key='canManageQuotes'\n                  @description={{t\n                    'shared.people-editor.canCreateQuoteVersionsDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.entityCanManageQuotes\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.entityCanManageQuotes\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.entityCanManageQuotes\n                    (get\n                      this.model.permissionsChangeset.last.value 'canManageQuotes'\n                    )\n                  }}\n                />\n              {{/if}}\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseProjectProgress}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see the project progress'}}\n                @key='canViewProgress'\n                @description={{t\n                  'shared.people-editor.Lets the user see the project progress'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewProgress\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewProgress\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewProgress\n                  (get\n                    this.model.permissionsChangeset.last.value 'canViewProgress'\n                  )\n                }}\n              />\n              {{#if\n                (or\n                  this.entityCanViewProgress\n                  this.model.permissionsChangeset.last.value.canManageProgress\n                  this.model.permissionsChangeset.last.value.canViewProgress\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'shared.people-editor.Can create progress versions'}}\n                  @key='canManageProgress'\n                  @description={{t\n                    'shared.people-editor.canCreateProgressVersionsDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.entityCanManageProgress\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.entityCanManageProgress\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.entityCanManageProgress\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canManageProgress'\n                    )\n                  }}\n                />\n              {{/if}}\n            {{/if}}\n            <PtlInput\n              @type='checkbox'\n              @label={{t\n                'entity.builda-price.projects.project.people.users.user.Can see all the tasks for the project'\n              }}\n              @key='canViewTasks'\n              @model={{this.model.permissionsChangeset.last.value}}\n              @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n              @toolTip={{if\n                this.entityCanViewTasks\n                this.permissionSupersededMessage\n              }}\n              disabled={{or\n                this.entityCanViewTasks\n                this.savePermissions.isRunning\n              }}\n              @checked={{or\n                this.entityCanViewTasks\n                (get this.model.permissionsChangeset.last.value 'canViewTasks')\n              }}\n            />\n            {{#if\n              (or\n                this.entityCanViewTasks\n                this.model.permissionsChangeset.last.value.canManageTasks\n                this.model.permissionsChangeset.last.value.canViewTasks\n              )\n            }}\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.Can manage tasks for the project'\n                }}\n                @key='canManageTasks'\n                @description={{t\n                  'shared.people-editor.canManageTasksForTheProjectDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanManageTasks\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanManageTasks\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanManageTasks\n                  (get\n                    this.model.permissionsChangeset.last.value 'canManageTasks'\n                  )\n                }}\n              />\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.Can see all documents for the project'\n                }}\n                @key='canViewFileStorage'\n                @description={{t\n                  'shared.people-editor.canSeeAllDocumentsForTheProjectDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewFileStorage\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewFileStorage\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewFileStorage\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewFileStorage'\n                  )\n                }}\n              />\n              {{#if\n                (or\n                  this.entityCanViewFileStorage\n                  this.model.permissionsChangeset.last.value.canManageFileStorage\n                  this.model.permissionsChangeset.last.value.canViewFileStorage\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'shared.people-editor.canManageAllDocumentsForTheProject'\n                  }}\n                  @key='canManageFileStorage'\n                  @description={{t\n                    'shared.people-editor.canManageAllDocumentsForTheProjectDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.entityCanManageFileStorage\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.entityCanManageFileStorage\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.entityCanManageFileStorage\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canManageFileStorage'\n                    )\n                  }}\n                />\n              {{/if}}\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseProducts}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.Can see all products for the project'\n                }}\n                @key='canViewProducts'\n                @description={{t\n                  'shared.people-editor.canSeeAllProductsForTheProjectDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewProducts\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewProducts\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewProducts\n                  (get\n                    this.model.permissionsChangeset.last.value 'canViewProducts'\n                  )\n                }}\n              />\n              {{#if\n                (or\n                  this.entityCanViewProducts\n                  this.model.permissionsChangeset.last.value.canManageProducts\n                  this.model.permissionsChangeset.last.value.canViewProducts\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'shared.people-editor.Can manage all products for the project'\n                  }}\n                  @key='canManageProducts'\n                  @description={{t\n                    'shared.people-editor.canManageAllProductsForTheProjectDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.entityCanManageProducts\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.entityCanManageProducts\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.entityCanManageProducts\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canManageProducts'\n                    )\n                  }}\n                />\n              {{/if}}\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseEstimates}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see and manage estimates'}}\n                @key='canManageEstimates'\n                @description={{t\n                  'shared.people-editor.canSeeAndManageEstimatesDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanManageEstimates\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanManageEstimates\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanManageEstimates\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canManageEstimates'\n                  )\n                }}\n              />\n            {{/if}}\n          {{/if}}\n          {{#if this.newFeatureFlags.entityCanUseScheduling}}\n            <div\n              class='d-flex align-items-center mb-3'\n              role='button'\n              {{on\n                'click'\n                (fn\n                  (mut this.schedulingPermissionsVisible)\n                  (not this.schedulingPermissionsVisible)\n                )\n              }}\n            >\n              <h4 class='m-0'>\n                {{t 'common.Scheduling'}}\n              </h4>\n              {{#if this.schedulingPermissionsCount}}\n                <span class='ms-2 badge bg-info'>\n                  {{this.schedulingPermissionsCount}}\n                </span>\n              {{/if}}\n              <h4 class='m-0 ms-auto'>\n                <FaIcon\n                  @icon={{if\n                    this.schedulingPermissionsVisible\n                    'chevron-down'\n                    'chevron-right'\n                  }}\n                />\n              </h4>\n            </div>\n            {{#if this.schedulingPermissionsVisible}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see scheduling reports'}}\n                @key='canViewSchedulingReports'\n                @description={{t\n                  'shared.people-editor.Gives access to see the timeline'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewSchedulingReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewSchedulingReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewSchedulingReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewSchedulingReports'\n                  )\n                }}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can make scheduling changes'}}\n                @key='canManageSchedulingReports'\n                @description={{t\n                  'shared.people-editor.canMakeSchedulingChangesDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanManageSchedulingReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanManageSchedulingReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanManageSchedulingReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canManageSchedulingReports'\n                  )\n                }}\n              />\n            {{/if}}\n          {{/if}}\n          {{#if this.newFeatureFlags.entityCanUseTimesheets}}\n            <div\n              class='d-flex align-items-center mb-3'\n              role='button'\n              {{on\n                'click'\n                (fn\n                  (mut this.allocationsPermissionsVisible)\n                  (not this.allocationsPermissionsVisible)\n                )\n              }}\n            >\n              <h4 class='m-0'>\n                {{t 'common.Allocations'}}\n              </h4>\n              {{#if this.allocationsPermissionsCount}}\n                <span class='ms-2 badge bg-info'>\n                  {{this.allocationsPermissionsCount}}\n                </span>\n              {{/if}}\n              <h4 class='m-0 ms-auto'>\n                <FaIcon\n                  @icon={{if\n                    this.allocationsPermissionsVisible\n                    'chevron-down'\n                    'chevron-right'\n                  }}\n                />\n              </h4>\n            </div>\n  \n            {{#if this.allocationsPermissionsVisible}}\n              {{#if this.newFeatureFlags.entityCanUseTimesheets}}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'shared.people-editor.Can see and manage timesheets'\n                  }}\n                  @key='canManageTimesheets'\n                  @description={{t\n                    'shared.people-editor.canSeeAndManageTimesheetsProjectDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.entityCanManageTimesheets\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.entityCanManageTimesheets\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.entityCanManageTimesheets\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canManageTimesheets'\n                    )\n                  }}\n                />\n              {{/if}}\n              {{#if this.newFeatureFlags.entityCanUseInvoices}}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'shared.people-editor.users.user.project.Can see all invoices'\n                  }}\n                  @description={{t\n                    'shared.people-editor.users.user.project.canViewInvoicesDescription'\n                  }}\n                  @key='canViewInvoices'\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.entityCanViewInvoices\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.entityCanViewInvoices\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.entityCanViewInvoices\n                    (get\n                      this.model.permissionsChangeset.last.value 'canViewInvoices'\n                    )\n                  }}\n                />\n                {{#if\n                  (or\n                    this.model.permissionsChangeset.last.value.canManageInvoices\n                    this.model.permissionsChangeset.last.value.canViewInvoices\n                    this.entityCanManageInvoices\n                    this.entityCanViewInvoices\n                  )\n                }}\n                  <PtlInput\n                    @type='checkbox'\n                    @label={{t\n                      'shared.people-editor.users.user.project.Can create invoices'\n                    }}\n                    @description={{t\n                      'shared.people-editor.users.user.project.canManageInvoicesDescription'\n                    }}\n                    @key='canManageInvoices'\n                    @model={{this.model.permissionsChangeset.last.value}}\n                    @forceValidationVisible={{gt\n                      this.savePermissions.performCount\n                      0\n                    }}\n                    @toolTip={{if\n                      this.entityCanManageInvoices\n                      this.permissionSupersededMessage\n                    }}\n                    disabled={{or\n                      this.entityCanManageInvoices\n                      this.savePermissions.isRunning\n                    }}\n                    @checked={{or\n                      this.entityCanManageInvoices\n                      (get\n                        this.model.permissionsChangeset.last.value\n                        'canManageInvoices'\n                      )\n                    }}\n                  />\n                {{/if}}\n                {{#if\n                  (or\n                    this.model.permissionsChangeset.last.value.canManageInvoices\n                    this.model.permissionsChangeset.last.value.canApproveInvoices\n                    this.entityCanManageInvoices\n                    this.entityCanApproveInvoices\n                  )\n                }}\n                  <PtlInput\n                    @type='checkbox'\n                    @label={{t\n                      'shared.people-editor.users.user.project.Can approve invoices'\n                    }}\n                    @description={{t\n                      'shared.people-editor.users.user.project.canApproveInvoicesDescription'\n                    }}\n                    @key='canApproveInvoices'\n                    @model={{this.model.permissionsChangeset.last.value}}\n                    @forceValidationVisible={{gt\n                      this.savePermissions.performCount\n                      0\n                    }}\n                    @toolTip={{if\n                      this.entityCanApproveInvoices\n                      this.permissionSupersededMessage\n                    }}\n                    disabled={{or\n                      this.entityCanApproveInvoices\n                      this.savePermissions.isRunning\n                    }}\n                    @checked={{or\n                      this.entityCanApproveInvoices\n                      (get\n                        this.model.permissionsChangeset.last.value\n                        'canApproveInvoices'\n                      )\n                    }}\n                  />\n                {{/if}}\n              {{/if}}\n              {{#if this.newFeatureFlags.entityCanUsePurchaseOrders}}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'entity.builda-price.projects.project.people.users.user.Can see purchase orders'\n                  }}\n                  @description={{t\n                    'entity.builda-price.projects.project.people.users.user.canSeePurchaseOrdersDescription'\n                  }}\n                  @key='canViewPurchaseOrders'\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.entityCanViewPurchaseOrders\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.entityCanViewPurchaseOrders\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.entityCanViewPurchaseOrders\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canViewPurchaseOrders'\n                    )\n                  }}\n                />\n                {{#if\n                  (or\n                    this.model.permissionsChangeset.last.value.canManagePurchaseOrders\n                    this.model.permissionsChangeset.last.value.canViewPurchaseOrders\n                    this.entityCanManagePurchaseOrders\n                    this.entityCanViewPurchaseOrders\n                  )\n                }}\n                  <PtlInput\n                    @type='checkbox'\n                    @label={{t\n                      'entity.builda-price.projects.project.people.users.user.canManagePurchaseOrders'\n                    }}\n                    @description={{t\n                      'entity.builda-price.projects.project.people.users.user.canManagePurchaseOrdersDescription'\n                    }}\n                    @key='canManagePurchaseOrders'\n                    @model={{this.model.permissionsChangeset.last.value}}\n                    @forceValidationVisible={{gt\n                      this.savePermissions.performCount\n                      0\n                    }}\n                    @toolTip={{if\n                      this.entityCanManagePurchaseOrders\n                      this.permissionSupersededMessage\n                    }}\n                    disabled={{or\n                      this.entityCanManagePurchaseOrders\n                      this.savePermissions.isRunning\n                    }}\n                    @checked={{or\n                      this.entityCanManagePurchaseOrders\n                      (get\n                        this.model.permissionsChangeset.last.value\n                        'canManagePurchaseOrders'\n                      )\n                    }}\n                  />\n                {{/if}}\n                {{#if\n                  (or\n                    this.model.permissionsChangeset.last.value.canManagePurchaseOrders\n                    this.model.permissionsChangeset.last.value.canApprovePurchaseOrders\n                    this.entityCanManagePurchaseOrders\n                    this.entityCanApprovePurchaseOrders\n                  )\n                }}\n                  <PtlInput\n                    @type='checkbox'\n                    @label={{t\n                      'entity.builda-price.projects.project.people.users.user.canApprovePurchaseOrders'\n                    }}\n                    @description={{t\n                      'entity.builda-price.projects.project.people.users.user.canApprovePurchaseOrdersDescription'\n                    }}\n                    @key='canApprovePurchaseOrders'\n                    @model={{this.model.permissionsChangeset.last.value}}\n                    @forceValidationVisible={{gt\n                      this.savePermissions.performCount\n                      0\n                    }}\n                    @toolTip={{if\n                      this.entityCanApprovePurchaseOrders\n                      this.permissionSupersededMessage\n                    }}\n                    disabled={{or\n                      this.entityCanApprovePurchaseOrders\n                      this.savePermissions.isRunning\n                    }}\n                    @checked={{or\n                      this.entityCanApprovePurchaseOrders\n                      (get\n                        this.model.permissionsChangeset.last.value\n                        'canApprovePurchaseOrders'\n                      )\n                    }}\n                  />\n                {{/if}}\n              {{/if}}\n              {{#if this.newFeatureFlags.entityCanUseStagePayments}}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'entity.builda-price.projects.project.people.users.user.Can see stage payments'\n                  }}\n                  @description={{t\n                    'entity.builda-price.projects.project.people.users.user.canSeeStagePaymentsDescription'\n                  }}\n                  @key='canViewStagePayments'\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.entityCanViewStagePayments\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.entityCanViewStagePayments\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.entityCanViewStagePayments\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canViewStagePayments'\n                    )\n                  }}\n                />\n                {{#if\n                  (or\n                    this.model.permissionsChangeset.last.value.canManageStagePayments\n                    this.model.permissionsChangeset.last.value.canViewStagePayments\n                    this.entityCanManageStagePayments\n                    this.entityCanViewStagePayments\n                  )\n                }}\n                  <PtlInput\n                    @type='checkbox'\n                    @label={{t\n                      'entity.builda-price.projects.project.people.users.user.canManageStagePayments'\n                    }}\n                    @description={{t\n                      'entity.builda-price.projects.project.people.users.user.canManageStagePaymentsDescription'\n                    }}\n                    @key='canManageStagePayments'\n                    @model={{this.model.permissionsChangeset.last.value}}\n                    @forceValidationVisible={{gt\n                      this.savePermissions.performCount\n                      0\n                    }}\n                    @toolTip={{if\n                      this.entityCanManageStagePayments\n                      this.permissionSupersededMessage\n                    }}\n                    disabled={{or\n                      this.entityCanManageStagePayments\n                      this.savePermissions.isRunning\n                    }}\n                    @checked={{or\n                      this.entityCanManageStagePayments\n                      (get\n                        this.model.permissionsChangeset.last.value\n                        'canManageStagePayments'\n                      )\n                    }}\n                  />\n                {{/if}}\n              {{/if}}\n            {{/if}}\n          {{/if}}\n          <div\n            class='d-flex align-items-center mb-3'\n            role='button'\n            {{on\n              'click'\n              (fn\n                (mut this.reportsPermissionsVisible)\n                (not this.reportsPermissionsVisible)\n              )\n            }}\n          >\n            <h4 class='m-0'>\n              {{t 'common.Reports'}}\n            </h4>\n            {{#if this.reportsPermissionsCount}}\n              <span class='ms-2 badge bg-info'>\n                {{this.reportsPermissionsCount}}\n              </span>\n            {{/if}}\n            <h4 class='m-0 ms-auto'>\n              <FaIcon\n                @icon={{if\n                  this.reportsPermissionsVisible\n                  'chevron-down'\n                  'chevron-right'\n                }}\n              />\n            </h4>\n          </div>\n          {{#if this.reportsPermissionsVisible}}\n            <div class='alert alert-primary' role='alert'>\n              <FaIcon @icon='info-circle' @size='lg' class='me-2' />\n              <span class='me-2'>\n                {{#if this.canViewReports.length}}\n                  {{t\n                    'shared.people-editor.withThesePermissionsThisUserCanSeeTheFollowingReports'\n                  }}:\n                  <span class='fw-bold'>{{this.canViewReports}}</span>.\n                {{else}}\n                  {{t\n                    'shared.people-editor.withThesePermissionsThisUserCanNotSeeAnyReports'\n                  }}\n                {{/if}}\n              </span>\n            </div>\n            {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see budget data in reports'}}\n                @description={{t\n                  'shared.people-editor.users.user.canSeeAllBudgetDataInReportsDescription'\n                }}\n                @key='canViewBudgetFinancialReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewBudgetReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewBudgetReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewBudgetReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewBudgetFinancialReports'\n                  )\n                }}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.users.user.canViewBudgetHourReportsLabel'\n                }}\n                @description={{t\n                  'shared.people-editor.users.user.canViewBudgetHourReportsLabelDescription'\n                }}\n                @key='canViewBudgetLabourHourReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewBudgetLabourHourReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewBudgetLabourHourReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewBudgetLabourHourReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewBudgetLabourHourReports'\n                  )\n                }}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see quote data in reports'}}\n                @key='canViewQuoteReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewQuoteReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewQuoteReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewQuoteReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewQuoteReports'\n                  )\n                }}\n              />\n            {{/if}}\n            {{#if\n              (or\n                this.newFeatureFlags.entityCanUseTimesheets\n                this.newFeatureFlags.entityCanUseBills\n              )\n            }}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see cost data in reports'}}\n                @key='canViewCostFinancialReports'\n                @description={{t\n                  'shared.people-editor.canSeeAllCostDataInReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewCostReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewCostReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewCostReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewCostFinancialReports'\n                  )\n                }}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.users.user.canViewActualHourReportsLabel'\n                }}\n                @key='canViewCostLabourHourReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewCostLabourHourReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewCostLabourHourReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewCostLabourHourReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewCostLabourHourReports'\n                  )\n                }}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.Can see work value data in reports'\n                }}\n                @key='canViewChargeupReports'\n                @description={{t\n                  'shared.people-editor.canSeeAllWorkValueDataInReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewChargeupReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewChargeupReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewChargeupReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewChargeupReports'\n                  )\n                }}\n              />\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.Can see progress data in reports'\n                }}\n                @key='canViewProgressReports'\n                @description={{t\n                  'shared.people-editor.canSeeProgressDataInReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewProgressReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewProgressReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewProgressReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewProgressReports'\n                  )\n                }}\n              />\n              {{#if this.newFeatureFlags.entityCanUseInvoicingReport}}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'shared.people-editor.users.user.Can see all invoicing data in reports'\n                  }}\n                  @key='canViewInvoicingReports'\n                  @description={{t\n                    'shared.people-editor.users.user.canViewInvoicingReportsDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.entityCanViewInvoicingReports\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.entityCanViewInvoicingReports\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.entityCanViewInvoicingReports\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canViewInvoicingReports'\n                    )\n                  }}\n                />\n              {{/if}}\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseGeofencing}}\n              <PtlInput\n                @type='checkbox'\n                @label='Can see all site access data in reports?'\n                @key='canViewAccessReports'\n                @description='Site access reports show real-time site occupancy and access history.'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewAccessReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewAccessReports\n                  this.savePermissions.isRunning\n                }}\n                checked={{or\n                  this.entityCanViewAccessReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewAccessReports'\n                  )\n                }}\n              />\n            {{/if}}\n          {{/if}}\n          {{#if this.newFeatureFlags.entityCanUseHealthAndSafety}}\n            <div\n              class='d-flex align-items-center mb-3'\n              role='button'\n              {{on\n                'click'\n                (fn\n                  (mut this.healthAndSafetyPermissionsVisible)\n                  (not this.healthAndSafetyPermissionsVisible)\n                )\n              }}\n            >\n              <h4 class='m-0'>\n                {{t 'common.healthAndSafety'}}\n              </h4>\n              {{#if this.healthAndSafetyPermissionsCount}}\n                <span class='ms-2 badge bg-info'>\n                  {{this.healthAndSafetyPermissionsCount}}\n                </span>\n              {{/if}}\n              <h4 class='m-0 ms-auto'>\n                <FaIcon\n                  @icon={{if\n                    this.healthAndSafetyPermissionsVisible\n                    'chevron-down'\n                    'chevron-right'\n                  }}\n                />\n              </h4>\n            </div>\n            {{#if this.healthAndSafetyPermissionsVisible}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.canUseHealthAndSafety'}}\n                @key='canCreateHealthAndSafety'\n                @description={{t\n                  'shared.people-editor.canUseHealthAndSafetyDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanCreateHealthAndSafety\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanCreateHealthAndSafety\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanCreateHealthAndSafety\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canCreateHealthAndSafety'\n                  )\n                }}\n              />\n              {{#if\n                (or\n                  this.model.permissionsChangeset.last.value.canManageHealthAndSafety\n                  this.model.permissionsChangeset.last.value.canCreateHealthAndSafety\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'shared.people-editor.canManageHealthAndSafety'}}\n                  @key='canManageHealthAndSafety'\n                  @description={{t\n                    'shared.people-editor.canManageHealthAndSafetyDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.entityCanManageHealthAndSafety\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.entityCanManageHealthAndSafety\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.entityCanManageHealthAndSafety\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canManageHealthAndSafety'\n                    )\n                  }}\n                />\n              {{/if}}\n            {{/if}}\n          {{/if}}\n          <div class='d-flex flex-grow-1 mt-2'>\n            <button\n              type='button'\n              class='btn btn-primary ms-auto'\n              disabled={{this.savePermissions.isRunning}}\n              {{on\n                'click'\n                (perform\n                  this.savePermissions this.model.permissionsChangeset.last.value\n                )\n              }}\n            >\n              {{#if this.savePermissions.isRunning}}\n                {{t 'shared.people-editor.Saving permissions'}}&hellip;\n              {{else}}\n                {{t 'shared.people-editor.Save permissions'}}\n              {{/if}}\n            </button>\n          </div>\n        </PtlForm>\n      {{/if}}\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"1LJb7heu\",\n    \"block\": \"[[[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-3 ms-1 mt-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,3],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-0\\\"],[12],[1,[28,[35,6],[\\\"common.Details\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,0,[\\\"model\\\",\\\"user\\\",\\\"last\\\",\\\"value\\\",\\\"fullName\\\"]]],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"shared.people-editor.is assigned to the project\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"d-flex\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,8],[[24,0,\\\"btn btn-primary m-1\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.settings.people.users.user\\\",[30,0,[\\\"model\\\",\\\"user\\\",\\\"last\\\",\\\"value\\\",\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"shared.people-editor.users.user.View user details\\\"],null]],[1,\\\"\\\\n          \\\"],[8,[39,9],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",true,\\\"md\\\"]],null],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,10],[\\\"canManageUsers\\\"],null],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteUser\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"deleteUser\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteUser\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[52,[30,0,[\\\"userIsYou\\\"]],[28,[37,6],[\\\"shared.people-editor.Removing you from project\\\"],null],[28,[37,6],[\\\"shared.people-editor.Removing from project\\\"],null]]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[52,[30,0,[\\\"userIsYou\\\"]],[28,[37,6],[\\\"shared.people-editor.Remove yourself from project\\\"],null],[28,[37,6],[\\\"shared.people-editor.Removing from project\\\"],null]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,10],[\\\"canManageUsers\\\"],null],[[[1,\\\"      \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-0\\\"],[12],[1,[28,[35,6],[\\\"shared.people-editor.Permissions\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[10,2],[14,0,\\\"mb-4\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"entity.builda-price.projects.project.people.users.user.userProjectPermissionsExplanation\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"projectPermissionsVisible\\\"]]],null],[28,[37,16],[[30,0,[\\\"projectPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"common.Project\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"projectPermissionsCount\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"projectPermissionsCount\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"projectPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"projectPermissionsVisible\\\"]],[[[1,\\\"          \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManageProjects\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can make changes to the project\\\"],null],\\\"canManageProjects\\\",[28,[37,6],[\\\"shared.people-editor.canMakeChangesToTheProjectDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManageProjects\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManageProjects\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageProjects\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewBudgets\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see the project budget\\\"],null],\\\"canViewBudgets\\\",[28,[37,6],[\\\"shared.people-editor.canSeeTheProjectBudgetDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewBudgets\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewBudgets\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewBudgets\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"entityCanViewBudgets\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageBudgets\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewBudgets\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManageBudgets\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can create budget versions\\\"],null],\\\"canManageBudgets\\\",[28,[37,6],[\\\"shared.people-editor.canCreateBudgetVersionsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManageBudgets\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManageBudgets\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageBudgets\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewQuotes\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see the project quote\\\"],null],\\\"canViewQuotes\\\",[28,[37,6],[\\\"shared.people-editor.canSeeTheProjectQuoteDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewQuotes\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewQuotes\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewQuotes\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"entityCanViewQuotes\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageQuotes\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewQuotes\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManageQuotes\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can create quote versions\\\"],null],\\\"canManageQuotes\\\",[28,[37,6],[\\\"shared.people-editor.canCreateQuoteVersionsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManageQuotes\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManageQuotes\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageQuotes\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectProgress\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewProgress\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see the project progress\\\"],null],\\\"canViewProgress\\\",[28,[37,6],[\\\"shared.people-editor.Lets the user see the project progress\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewProgress\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewProgress\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewProgress\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"entityCanViewProgress\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageProgress\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewProgress\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManageProgress\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can create progress versions\\\"],null],\\\"canManageProgress\\\",[28,[37,6],[\\\"shared.people-editor.canCreateProgressVersionsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManageProgress\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManageProgress\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageProgress\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"          \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewTasks\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.builda-price.projects.project.people.users.user.Can see all the tasks for the project\\\"],null],\\\"canViewTasks\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewTasks\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewTasks\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewTasks\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"entityCanViewTasks\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageTasks\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewTasks\\\"]]],null],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManageTasks\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage tasks for the project\\\"],null],\\\"canManageTasks\\\",[28,[37,6],[\\\"shared.people-editor.canManageTasksForTheProjectDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManageTasks\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManageTasks\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageTasks\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewFileStorage\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all documents for the project\\\"],null],\\\"canViewFileStorage\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllDocumentsForTheProjectDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewFileStorage\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewFileStorage\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewFileStorage\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"entityCanViewFileStorage\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageFileStorage\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewFileStorage\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManageFileStorage\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canManageAllDocumentsForTheProject\\\"],null],\\\"canManageFileStorage\\\",[28,[37,6],[\\\"shared.people-editor.canManageAllDocumentsForTheProjectDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManageFileStorage\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManageFileStorage\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageFileStorage\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProducts\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewProducts\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all products for the project\\\"],null],\\\"canViewProducts\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllProductsForTheProjectDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewProducts\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewProducts\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewProducts\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"entityCanViewProducts\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageProducts\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewProducts\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManageProducts\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all products for the project\\\"],null],\\\"canManageProducts\\\",[28,[37,6],[\\\"shared.people-editor.canManageAllProductsForTheProjectDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManageProducts\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManageProducts\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageProducts\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseEstimates\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManageEstimates\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see and manage estimates\\\"],null],\\\"canManageEstimates\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAndManageEstimatesDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManageEstimates\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManageEstimates\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageEstimates\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseScheduling\\\"]],[[[1,\\\"          \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"schedulingPermissionsVisible\\\"]]],null],[28,[37,16],[[30,0,[\\\"schedulingPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"common.Scheduling\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"schedulingPermissionsCount\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"schedulingPermissionsCount\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"schedulingPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"schedulingPermissionsVisible\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewSchedulingReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see scheduling reports\\\"],null],\\\"canViewSchedulingReports\\\",[28,[37,6],[\\\"shared.people-editor.Gives access to see the timeline\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewSchedulingReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewSchedulingReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewSchedulingReports\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManageSchedulingReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can make scheduling changes\\\"],null],\\\"canManageSchedulingReports\\\",[28,[37,6],[\\\"shared.people-editor.canMakeSchedulingChangesDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManageSchedulingReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManageSchedulingReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageSchedulingReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseTimesheets\\\"]],[[[1,\\\"          \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"allocationsPermissionsVisible\\\"]]],null],[28,[37,16],[[30,0,[\\\"allocationsPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"common.Allocations\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"allocationsPermissionsCount\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"allocationsPermissionsCount\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"allocationsPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"allocationsPermissionsVisible\\\"]],[[[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseTimesheets\\\"]],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManageTimesheets\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see and manage timesheets\\\"],null],\\\"canManageTimesheets\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAndManageTimesheetsProjectDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManageTimesheets\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManageTimesheets\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageTimesheets\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseInvoices\\\"]],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewInvoices\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.project.Can see all invoices\\\"],null],[28,[37,6],[\\\"shared.people-editor.users.user.project.canViewInvoicesDescription\\\"],null],\\\"canViewInvoices\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewInvoices\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewInvoices\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewInvoices\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageInvoices\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewInvoices\\\"]],[30,0,[\\\"entityCanManageInvoices\\\"]],[30,0,[\\\"entityCanViewInvoices\\\"]]],null],[[[1,\\\"                \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManageInvoices\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.project.Can create invoices\\\"],null],[28,[37,6],[\\\"shared.people-editor.users.user.project.canManageInvoicesDescription\\\"],null],\\\"canManageInvoices\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManageInvoices\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManageInvoices\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageInvoices\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,20],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageInvoices\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canApproveInvoices\\\"]],[30,0,[\\\"entityCanManageInvoices\\\"]],[30,0,[\\\"entityCanApproveInvoices\\\"]]],null],[[[1,\\\"                \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanApproveInvoices\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.project.Can approve invoices\\\"],null],[28,[37,6],[\\\"shared.people-editor.users.user.project.canApproveInvoicesDescription\\\"],null],\\\"canApproveInvoices\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanApproveInvoices\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanApproveInvoices\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canApproveInvoices\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUsePurchaseOrders\\\"]],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewPurchaseOrders\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.builda-price.projects.project.people.users.user.Can see purchase orders\\\"],null],[28,[37,6],[\\\"entity.builda-price.projects.project.people.users.user.canSeePurchaseOrdersDescription\\\"],null],\\\"canViewPurchaseOrders\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewPurchaseOrders\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewPurchaseOrders\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewPurchaseOrders\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManagePurchaseOrders\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewPurchaseOrders\\\"]],[30,0,[\\\"entityCanManagePurchaseOrders\\\"]],[30,0,[\\\"entityCanViewPurchaseOrders\\\"]]],null],[[[1,\\\"                \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManagePurchaseOrders\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.builda-price.projects.project.people.users.user.canManagePurchaseOrders\\\"],null],[28,[37,6],[\\\"entity.builda-price.projects.project.people.users.user.canManagePurchaseOrdersDescription\\\"],null],\\\"canManagePurchaseOrders\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManagePurchaseOrders\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManagePurchaseOrders\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManagePurchaseOrders\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,20],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManagePurchaseOrders\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canApprovePurchaseOrders\\\"]],[30,0,[\\\"entityCanManagePurchaseOrders\\\"]],[30,0,[\\\"entityCanApprovePurchaseOrders\\\"]]],null],[[[1,\\\"                \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanApprovePurchaseOrders\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.builda-price.projects.project.people.users.user.canApprovePurchaseOrders\\\"],null],[28,[37,6],[\\\"entity.builda-price.projects.project.people.users.user.canApprovePurchaseOrdersDescription\\\"],null],\\\"canApprovePurchaseOrders\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanApprovePurchaseOrders\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanApprovePurchaseOrders\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canApprovePurchaseOrders\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseStagePayments\\\"]],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewStagePayments\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.builda-price.projects.project.people.users.user.Can see stage payments\\\"],null],[28,[37,6],[\\\"entity.builda-price.projects.project.people.users.user.canSeeStagePaymentsDescription\\\"],null],\\\"canViewStagePayments\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewStagePayments\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewStagePayments\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewStagePayments\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageStagePayments\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewStagePayments\\\"]],[30,0,[\\\"entityCanManageStagePayments\\\"]],[30,0,[\\\"entityCanViewStagePayments\\\"]]],null],[[[1,\\\"                \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManageStagePayments\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.builda-price.projects.project.people.users.user.canManageStagePayments\\\"],null],[28,[37,6],[\\\"entity.builda-price.projects.project.people.users.user.canManageStagePaymentsDescription\\\"],null],\\\"canManageStagePayments\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManageStagePayments\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManageStagePayments\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageStagePayments\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null]],[]],null],[1,\\\"        \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"reportsPermissionsVisible\\\"]]],null],[28,[37,16],[[30,0,[\\\"reportsPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"common.Reports\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"reportsPermissionsCount\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"reportsPermissionsCount\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"reportsPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"reportsPermissionsVisible\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"alert alert-primary\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],[[24,0,\\\"me-2\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"info-circle\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canViewReports\\\",\\\"length\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"shared.people-editor.withThesePermissionsThisUserCanSeeTheFollowingReports\\\"],null]],[1,\\\":\\\\n                \\\"],[10,1],[14,0,\\\"fw-bold\\\"],[12],[1,[30,0,[\\\"canViewReports\\\"]]],[13],[1,\\\".\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"shared.people-editor.withThesePermissionsThisUserCanNotSeeAnyReports\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewBudgetReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see budget data in reports\\\"],null],[28,[37,6],[\\\"shared.people-editor.users.user.canSeeAllBudgetDataInReportsDescription\\\"],null],\\\"canViewBudgetFinancialReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewBudgetReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewBudgetReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewBudgetFinancialReports\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewBudgetLabourHourReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewBudgetHourReportsLabel\\\"],null],[28,[37,6],[\\\"shared.people-editor.users.user.canViewBudgetHourReportsLabelDescription\\\"],null],\\\"canViewBudgetLabourHourReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewBudgetLabourHourReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewBudgetLabourHourReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewBudgetLabourHourReports\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewQuoteReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see quote data in reports\\\"],null],\\\"canViewQuoteReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewQuoteReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewQuoteReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewQuoteReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,20],[[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseTimesheets\\\"]],[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseBills\\\"]]],null],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewCostReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see cost data in reports\\\"],null],\\\"canViewCostFinancialReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllCostDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewCostReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewCostReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewCostFinancialReports\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewCostLabourHourReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewActualHourReportsLabel\\\"],null],\\\"canViewCostLabourHourReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewCostLabourHourReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewCostLabourHourReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewCostLabourHourReports\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewChargeupReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see work value data in reports\\\"],null],\\\"canViewChargeupReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllWorkValueDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewChargeupReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewChargeupReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewChargeupReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewProgressReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see progress data in reports\\\"],null],\\\"canViewProgressReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeProgressDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewProgressReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewProgressReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewProgressReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseInvoicingReport\\\"]],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewInvoicingReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.Can see all invoicing data in reports\\\"],null],\\\"canViewInvoicingReports\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewInvoicingReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewInvoicingReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewInvoicingReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewInvoicingReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseGeofencing\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewAccessReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]],[16,\\\"checked\\\",[28,[37,20],[[30,0,[\\\"entityCanViewAccessReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewAccessReports\\\"],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\"],[\\\"checkbox\\\",\\\"Can see all site access data in reports?\\\",\\\"canViewAccessReports\\\",\\\"Site access reports show real-time site occupancy and access history.\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewAccessReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseHealthAndSafety\\\"]],[[[1,\\\"          \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"healthAndSafetyPermissionsVisible\\\"]]],null],[28,[37,16],[[30,0,[\\\"healthAndSafetyPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"common.healthAndSafety\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"healthAndSafetyPermissionsCount\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"healthAndSafetyPermissionsCount\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"healthAndSafetyPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"healthAndSafetyPermissionsVisible\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanCreateHealthAndSafety\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canUseHealthAndSafety\\\"],null],\\\"canCreateHealthAndSafety\\\",[28,[37,6],[\\\"shared.people-editor.canUseHealthAndSafetyDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanCreateHealthAndSafety\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanCreateHealthAndSafety\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canCreateHealthAndSafety\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageHealthAndSafety\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canCreateHealthAndSafety\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManageHealthAndSafety\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canManageHealthAndSafety\\\"],null],\\\"canManageHealthAndSafety\\\",[28,[37,6],[\\\"shared.people-editor.canManageHealthAndSafetyDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManageHealthAndSafety\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManageHealthAndSafety\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageHealthAndSafety\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null],[1,\\\"        \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-2\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"savePermissions\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Saving permissions\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Save permissions\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[13]],[],false,[\\\"div\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"page-title-breadcrumbs\\\",\\\"ptl-form\\\",\\\"h3\\\",\\\"t\\\",\\\"p\\\",\\\"link-to\\\",\\\"fa-icon\\\",\\\"includes-feature-flags\\\",\\\"button\\\",\\\"on\\\",\\\"perform\\\",\\\"fn\\\",\\\"mut\\\",\\\"not\\\",\\\"h4\\\",\\\"span\\\",\\\"ptl-input\\\",\\\"or\\\",\\\"gt\\\",\\\"get\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/people/users/user.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/people/workers\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"otPd6mln\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/people/workers.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/people/workers/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <div class='float-end mb-1 d-flex align-items-center'>\n      <span class='m-1'>\n        <Input\n          class='form-control'\n          placeholder={{t 'shared.people-editor.workers.Search for workers'}}\n          @type='text'\n          @value={{this.searchString}}\n        />\n      </span>\n      {{#if (includes-feature-flags 'canManageWorkers')}}\n        <button\n          type='button'\n          class='btn btn-success text-white text-nowrap m-1'\n          {{on 'click' (fn (mut this.isAddingWorkerToProject) true)}}\n        >\n          <FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Add'}}\n        </button>\n      {{/if}}\n    </div>\n    <PeopleTable\n      @filteredList={{this.filteredWorkers}}\n      @noData={{t 'shared.people-editor.workers.No workers yet'}}\n      @route={{concat this.model.basePath '.workers.worker'}}\n    />\n  {{/if}}\n  \n  {{#if this.isAddingWorkerToProject}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.isAddingWorkerToProject) false}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-header'>\n        <h3 class='modal-title'>\n          {{t\n            'entity.builda-price.projects.project.people.workers.Add worker to project'\n          }}\n        </h3>\n      </div>\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t\n            'entity.builda-price.projects.project.people.workers.addingAWorkerToAProjectIsUsefulWhenYouWantToGiveSomeoneAccessOnlyToAParticularProject'\n          }}\n        </p>\n  \n        <PowerSelect\n          @tagName='div'\n          class='mb-1'\n          @options={{this.unassignedWorkers}}\n          @selected={{this.workerToAddToProject}}\n          @onChange={{fn (mut this.workerToAddToProject)}}\n          @searchEnabled={{true}}\n          @searchField='searchString'\n          @placeholder={{t 'shared.people-editor.workers.Find a worker'}}\n          @allowClear={{true}}\n          as |worker|\n        >\n          {{worker.firstName}}\n          {{worker.lastName}}\n          ({{worker.email}})\n        </PowerSelect>\n        <LinkTo\n          class='link ps-0'\n          @route='entity.settings.people.workers.worker'\n          @model='new'\n        >\n          {{t\n            'entity.builda-price.projects.project.people.workers.doNotSeeTheWorkerAddThemToTheCompany'\n          }}\n          <FaIcon @icon='external-link-alt' @fixedWidth={{true}} @size='md' />\n        </LinkTo>\n  \n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          disabled={{this.addWorkerToProject.isRunning}}\n          {{on 'click' (fn (mut this.isAddingWorkerToProject) false)}}\n        >{{t 'common.Cancel'}}</button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          disabled={{or\n            (not this.workerToAddToProject)\n            this.addWorkerToProject.isRunning\n          }}\n          {{on 'click' (perform this.addWorkerToProject)}}\n        >\n          {{#if this.addWorkerToProject.isRunning}}\n            {{t 'common.Adding'}}&hellip;\n          {{else}}\n            {{t 'common.Add'}}\n          {{/if}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"Xoo+6kzb\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"float-end mb-1 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],[[24,0,\\\"form-control\\\"],[16,\\\"placeholder\\\",[28,[37,5],[\\\"shared.people-editor.workers.Search for workers\\\"],null]]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[\\\"canManageWorkers\\\"],null],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"isAddingWorkerToProject\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n        \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,5],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,12],null,[[\\\"@filteredList\\\",\\\"@noData\\\",\\\"@route\\\"],[[30,0,[\\\"filteredWorkers\\\"]],[28,[37,5],[\\\"shared.people-editor.workers.No workers yet\\\"],null],[28,[37,13],[[30,0,[\\\"model\\\",\\\"basePath\\\"]],\\\".workers.worker\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isAddingWorkerToProject\\\"]],[[[1,\\\"  \\\"],[8,[39,14],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"isAddingWorkerToProject\\\"]]],null],false],null],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.people.workers.Add worker to project\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.people.workers.addingAWorkerToAProjectIsUsefulWhenYouWantToGiveSomeoneAccessOnlyToAParticularProject\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,17],[[24,0,\\\"mb-1\\\"]],[[\\\"@tagName\\\",\\\"@options\\\",\\\"@selected\\\",\\\"@onChange\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@allowClear\\\"],[\\\"div\\\",[30,0,[\\\"unassignedWorkers\\\"]],[30,0,[\\\"workerToAddToProject\\\"]],[28,[37,9],[[28,[37,10],[[30,0,[\\\"workerToAddToProject\\\"]]],null]],null],true,\\\"searchString\\\",[28,[37,5],[\\\"shared.people-editor.workers.Find a worker\\\"],null],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[30,1,[\\\"firstName\\\"]]],[1,\\\"\\\\n        \\\"],[1,[30,1,[\\\"lastName\\\"]]],[1,\\\"\\\\n        (\\\"],[1,[30,1,[\\\"email\\\"]]],[1,\\\")\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n      \\\"],[8,[39,18],[[24,0,\\\"link ps-0\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.settings.people.workers.worker\\\",\\\"new\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.people.workers.doNotSeeTheWorkerAddThemToTheCompany\\\"],null]],[1,\\\"\\\\n        \\\"],[8,[39,11],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",true,\\\"md\\\"]],null],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"addWorkerToProject\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"isAddingWorkerToProject\\\"]]],null],false],null]],null],[12],[1,[28,[35,5],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[28,[37,19],[[28,[37,20],[[30,0,[\\\"workerToAddToProject\\\"]]],null],[30,0,[\\\"addWorkerToProject\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,21],[[30,0,[\\\"addWorkerToProject\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"addWorkerToProject\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"common.Adding\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"worker\\\"],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"span\\\",\\\"input\\\",\\\"t\\\",\\\"includes-feature-flags\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"fa-icon\\\",\\\"people-table\\\",\\\"concat\\\",\\\"modal-dialog\\\",\\\"h3\\\",\\\"p\\\",\\\"power-select\\\",\\\"link-to\\\",\\\"or\\\",\\\"not\\\",\\\"perform\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/people/workers/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/people/workers/worker\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='flex-grow-1'>\n    {{#if this.isRunning}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mb-3 ms-1 mt-1'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <PtlForm class='mb-3'>\n        <h3 class='mb-0'>{{t 'common.Details'}}</h3>\n        <p class='mb-3'>\n          {{this.model.worker.last.value.fullName}}\n          {{t 'shared.people-editor.is assigned to the project'}}\n        </p>\n  \n        <div class='d-flex'>\n          <LinkTo\n            class='btn btn-primary m-1'\n            @route='entity.settings.people.workers.worker'\n            @model={{this.model.worker.last.value.id}}\n          >\n            {{t 'shared.people-editor.workers.worker.View worker details'}}\n            <FaIcon @icon='external-link-alt' @fixedWidth={{true}} @size='md' />\n          </LinkTo>\n  \n          {{#if (includes-feature-flags 'canManageWorkers')}}\n            <button\n              type='button'\n              class='btn btn-secondary m-1'\n              disabled={{this.deleteWorker.isRunning}}\n              {{on 'click' (perform this.deleteWorker)}}\n            >\n              {{#if this.deleteWorker.isRunning}}\n                {{t 'shared.people-editor.Removing from project'}}\n              {{else}}\n                {{t\n                  'entity.builda-price.projects.project.people.workers.worker.Remove from project'\n                }}\n              {{/if}}\n            </button>\n          {{/if}}\n        </div>\n      </PtlForm>\n  \n      {{#if\n        (and\n          this.newFeatureFlags.entityCanUseHealthAndSafety\n          (includes-feature-flags 'canManageWorkers')\n        )\n      }}\n        <PtlForm class='mb-3'>\n          <h3 class='mb-0'>{{t 'shared.people-editor.Permissions'}}</h3>\n          <p class='mb-4'>\n            {{t\n              'entity.builda-price.projects.project.people.workers.worker.workerProjectPermissionsExplanation'\n            }}\n          </p>\n  \n          <div\n            class='d-flex align-items-center mb-3'\n            role='button'\n            {{on\n              'click'\n              (fn\n                (mut this.projectPermissionsVisible)\n                (not this.projectPermissionsVisible)\n              )\n            }}\n          >\n            <h4 class='m-0'>\n              {{t 'common.Project'}}\n            </h4>\n            {{#if this.projectPermissionsCount}}\n              <span class='ms-2 badge bg-info'>\n                {{this.projectPermissionsCount}}\n              </span>\n            {{/if}}\n            <h4 class='m-0 ms-auto'>\n              <FaIcon\n                @icon={{if\n                  this.projectPermissionsVisible\n                  'chevron-down'\n                  'chevron-right'\n                }}\n              />\n            </h4>\n          </div>\n          {{#if this.projectPermissionsVisible}}\n            <PtlInput\n              @type='checkbox'\n              @label={{t\n                'shared.people-editor.Can see all the tasks for this project'\n              }}\n              @key='canViewTasks'\n              @model={{this.model.permissionsChangeset.last.value}}\n              @description={{t\n                'entity.builda-price.projects.project.people.workers.worker.canSeeAllTheTasksForThisProjectDescription'\n              }}\n              @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n              @toolTip={{if\n                this.entityCanViewTasks\n                this.permissionSupersededMessage\n              }}\n              disabled={{or\n                this.entityCanViewTasks\n                this.savePermissions.isRunning\n              }}\n              @checked={{or\n                this.entityCanViewTasks\n                (get this.model.permissionsChangeset.last.value 'canViewTasks')\n              }}\n            />\n          {{/if}}\n          <div\n            class='d-flex align-items-center mb-3'\n            role='button'\n            {{on\n              'click'\n              (fn\n                (mut this.healthAndSafetyPermissionsVisible)\n                (not this.healthAndSafetyPermissionsVisible)\n              )\n            }}\n          >\n            <h4 class='m-0'>\n              {{t 'common.healthAndSafety'}}\n            </h4>\n            {{#if\n              (and\n                (not this.healthAndSafetyPermissionsVisible)\n                this.healthAndSafetyPermissionsCount\n              )\n            }}\n              <span class='ms-2 badge bg-info'>\n                {{this.healthAndSafetyPermissionsCount}}\n              </span>\n            {{/if}}\n            <h4 class='m-0 ms-auto'>\n              <FaIcon\n                @icon={{if\n                  this.healthAndSafetyPermissionsVisible\n                  'chevron-down'\n                  'chevron-right'\n                }}\n              />\n            </h4>\n          </div>\n          {{#if this.healthAndSafetyPermissionsVisible}}\n            <PtlInput\n              @type='checkbox'\n              @label={{t 'shared.people-editor.canUseHealthAndSafety'}}\n              @key='canCreateHealthAndSafety'\n              @description={{t\n                'shared.people-editor.canUseHealthAndSafetyDescription'\n              }}\n              @model={{this.model.permissionsChangeset.last.value}}\n              @forceValidationVisible={{gt\n                this.saveWorkerPermissions.performCount\n                0\n              }}\n              @toolTip={{if\n                this.entityCanCreateHealthAndSafety\n                this.permissionSupersededMessage\n              }}\n              disabled={{or\n                this.entityCanCreateHealthAndSafety\n                this.saveWorkerPermissions.isRunning\n              }}\n              @checked={{or\n                this.entityCanCreateHealthAndSafety\n                (get\n                  this.model.permissionsChangeset.last.value\n                  'canCreateHealthAndSafety'\n                )\n              }}\n            />\n          {{/if}}\n  \n          <div class='d-flex flex-grow-1 mt-2'>\n            <button\n              type='button'\n              class='btn btn-primary ms-auto'\n              disabled={{this.saveWorkerPermissions.isRunning}}\n              {{on\n                'click'\n                (perform\n                  this.saveWorkerPermissions\n                  this.model.permissionsChangeset.last.value\n                )\n              }}\n            >\n              {{#if this.saveWorkerPermissions.isRunning}}\n                {{t 'shared.people-editor.Saving permissions'}}&hellip;\n              {{else}}\n                {{t 'shared.people-editor.Save permissions'}}\n              {{/if}}\n            </button>\n          </div>\n        </PtlForm>\n      {{/if}}\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"8aA/vIGz\",\n    \"block\": \"[[[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-3 ms-1 mt-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,3],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-0\\\"],[12],[1,[28,[35,6],[\\\"common.Details\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,0,[\\\"model\\\",\\\"worker\\\",\\\"last\\\",\\\"value\\\",\\\"fullName\\\"]]],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"shared.people-editor.is assigned to the project\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"d-flex\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,8],[[24,0,\\\"btn btn-primary m-1\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.settings.people.workers.worker\\\",[30,0,[\\\"model\\\",\\\"worker\\\",\\\"last\\\",\\\"value\\\",\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"shared.people-editor.workers.worker.View worker details\\\"],null]],[1,\\\"\\\\n          \\\"],[8,[39,9],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",true,\\\"md\\\"]],null],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,10],[\\\"canManageWorkers\\\"],null],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteWorker\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"deleteWorker\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteWorker\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Removing from project\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"entity.builda-price.projects.project.people.workers.worker.Remove from project\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,14],[[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseHealthAndSafety\\\"]],[28,[37,10],[\\\"canManageWorkers\\\"],null]],null],[[[1,\\\"      \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-0\\\"],[12],[1,[28,[35,6],[\\\"shared.people-editor.Permissions\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[10,2],[14,0,\\\"mb-4\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"entity.builda-price.projects.project.people.workers.worker.workerProjectPermissionsExplanation\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,15],[[28,[37,16],[[30,0,[\\\"projectPermissionsVisible\\\"]]],null],[28,[37,17],[[30,0,[\\\"projectPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"common.Project\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"projectPermissionsCount\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"projectPermissionsCount\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"projectPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"projectPermissionsVisible\\\"]],[[[1,\\\"          \\\"],[8,[39,20],[[16,\\\"disabled\\\",[28,[37,21],[[30,0,[\\\"entityCanViewTasks\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@description\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all the tasks for this project\\\"],null],\\\"canViewTasks\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,6],[\\\"entity.builda-price.projects.project.people.workers.worker.canSeeAllTheTasksForThisProjectDescription\\\"],null],[28,[37,22],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewTasks\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,21],[[30,0,[\\\"entityCanViewTasks\\\"]],[28,[37,23],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewTasks\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,15],[[28,[37,16],[[30,0,[\\\"healthAndSafetyPermissionsVisible\\\"]]],null],[28,[37,17],[[30,0,[\\\"healthAndSafetyPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"common.healthAndSafety\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,14],[[28,[37,17],[[30,0,[\\\"healthAndSafetyPermissionsVisible\\\"]]],null],[30,0,[\\\"healthAndSafetyPermissionsCount\\\"]]],null],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"healthAndSafetyPermissionsCount\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"healthAndSafetyPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"healthAndSafetyPermissionsVisible\\\"]],[[[1,\\\"          \\\"],[8,[39,20],[[16,\\\"disabled\\\",[28,[37,21],[[30,0,[\\\"entityCanCreateHealthAndSafety\\\"]],[30,0,[\\\"saveWorkerPermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canUseHealthAndSafety\\\"],null],\\\"canCreateHealthAndSafety\\\",[28,[37,6],[\\\"shared.people-editor.canUseHealthAndSafetyDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,22],[[30,0,[\\\"saveWorkerPermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanCreateHealthAndSafety\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,21],[[30,0,[\\\"entityCanCreateHealthAndSafety\\\"]],[28,[37,23],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canCreateHealthAndSafety\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-2\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveWorkerPermissions\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"saveWorkerPermissions\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveWorkerPermissions\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Saving permissions\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Save permissions\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[13]],[],false,[\\\"div\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"page-title-breadcrumbs\\\",\\\"ptl-form\\\",\\\"h3\\\",\\\"t\\\",\\\"p\\\",\\\"link-to\\\",\\\"fa-icon\\\",\\\"includes-feature-flags\\\",\\\"button\\\",\\\"on\\\",\\\"perform\\\",\\\"and\\\",\\\"fn\\\",\\\"mut\\\",\\\"not\\\",\\\"h4\\\",\\\"span\\\",\\\"ptl-input\\\",\\\"or\\\",\\\"gt\\\",\\\"get\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/people/workers/worker.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/products\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t 'common.Products')\n      }}\n    />\n  {{/unless}}\n  <article class='mx-4 mt-4'>\n    <header class='border-bottom mb-3 pb-2 d-flex align-items-center'>\n      {{#if (media 'isDesktop')}}\n        <h2 class='flex-grow-1 m-0 my-2'>{{t 'common.Products'}}</h2>\n      {{/if}}\n  \n      {{#if this.showFilters}}\n        <div class='mx-1'>\n          <SearchSelector\n            style='width: 200px;'\n            @disabled={{this.isLoading}}\n            @key='supplierName'\n            @optionKeys={{array 'supplierName'}}\n            @model={{this.supplierChangeSet}}\n            @noDataMessage={{t 'common.No suppliers'}}\n            @onLoad={{this.loadMoreSuppliers}}\n            @onSelect={{this.setSupplier}}\n            @placeholder={{t 'shared.product.Filter by supplier'}}\n          />\n        </div>\n        <Input\n          class='form-control m-1 w-auto'\n          placeholder={{t 'shared.product.Search products'}}\n          @type='text'\n          autofocus='true'\n          @value={{this.searchString}}\n          {{on 'input' (perform this.onChangeSearchTerm)}}\n          data-test-products-project-search\n        />\n      {{/if}}\n      {{#if this.isEditable}}\n        <button\n          type='button'\n          class='btn btn-secondary text-white text-nowrap m-1'\n          disabled={{this.isLoading}}\n          {{on 'click' (fn (mut this.addingProductsFromFile) true)}}\n        >\n          <FaIcon @icon='upload' />&nbsp;&nbsp;{{t\n            'shared.product.Add products from a file'\n          }}\n        </button>\n        <button\n          type='button'\n          class='btn btn-success text-white text-nowrap m-1'\n          disabled={{this.isLoading}}\n          {{on 'click' (fn (mut this.isAddingProduct) true)}}\n        >\n          <FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Add'}}\n        </button>\n      {{/if}}\n    </header>\n    {{#if this.model.project.isRunning}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mb-1 pb-2 d-lg-flex justify-content-end align-items-center'>\n        {{#if (and this.isEditable this.productTableData.length)}}\n          <div class='flex-grow-1'>\n            <button\n              class='btn btn-link text-danger text-decoration-underline float-start'\n              type='button'\n              {{on 'click' (fn (mut this.isDeletingProducts) true)}}\n              disabled={{or (not this.selectProductIds.size) this.isLoading}}\n            >\n              {{t 'common.Delete'}}\n            </button>\n          </div>\n        {{/if}}\n      </div>\n      <div class='project-products__table-container'>\n        <PaginationTable\n          @tableHeader={{this.productTableHeader}}\n          @tableData={{this.productTableData}}\n          @noDataText={{t 'common.No data'}}\n          @pageSizes={{this.model.pageSizes}}\n          @pageSize={{this.model.pageSize}}\n          @pageIndex={{this.model.pageIndex}}\n          @onChangePageIndex={{this.onChangePageIndex}}\n          @onChangePageSize={{this.onChangePageSize}}\n          @isLoading={{this.model.products.isRunning}}\n          @totalRecords={{this.totalRecords}}\n          @class='table-bordered'\n        />\n      </div>\n    {{/if}}\n  </article>\n  \n  {{#if this.isEditingProduct}}\n    <ProductEditor\n      @onSaveProduct={{this.onSaveProduct}}\n      @target={{this.model.project.last.value}}\n      @productTable={{'project-product'}}\n      @entity={{this.sessionData.entity}}\n      @productId={{this.selectedProductId}}\n      @onClose={{fn (mut this.isEditingProduct) false}}\n    />\n  {{/if}}\n  \n  {{#if this.isAddingProduct}}\n    <ProductSelector\n      @onAddProduct={{this.onAddProduct}}\n      @onCreateProduct={{this.onCreateProduct}}\n      @onClose={{fn (mut this.isAddingProduct) false}}\n    />\n  {{/if}}\n  \n  {{#if this.addingProductsFromFile}}\n    <ProductsUploader\n      @onUploadProducts={{this.updateProductList}}\n      @saveTarget={{'project-products'}}\n      @project={{this.model.project.last.value}}\n      @onClose={{fn (mut this.addingProductsFromFile) false}}\n    />\n  {{/if}}\n  \n  {{#if this.isDeletingProducts}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.isDeletingProducts) false}}\n      @translucentOverlay={{true}}\n      @containerClass='block-module'\n    >\n      <p>\n        {{t\n          'shared.product.areYouSureYouWantToDeleteXProducts'\n          number=this.selectProductIds.size\n          products=(pluralize this.selectProductIds.size 'product')\n        }}\n      </p>\n      <footer class='block-module__footer'>\n        <div class='float-end d-flex align-items-center'>\n          {{#if this.deleteProducts.isRunning}}\n            <button\n              type='button'\n              class='btn btn-danger text-white ms-2'\n              disabled={{true}}\n            >\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t 'common.Deleting'}}…\n            </button>\n          {{else}}\n            <button\n              class='btn btn-danger text-white ms-2'\n              type='button'\n              disabled={{this.deleteProducts.isRunning}}\n              {{on 'click' (perform this.deleteProducts)}}\n            >\n              {{t 'common.Delete'}}\n            </button>\n            <button\n              class='btn btn-secondary text-white ms-2'\n              type='button'\n              disabled={{this.deleteProducts.isRunning}}\n              {{on 'click' (fn (mut this.isDeletingProducts) false)}}\n            >{{t 'common.Cancel'}}</button>\n          {{/if}}\n        </div>\n      </footer>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"f2wNqOgS\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"common.Products\\\"],null]]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 pb-2 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,[28,[35,4],[\\\"common.Products\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showFilters\\\"]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"mx-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,10],[[24,5,\\\"width: 200px;\\\"]],[[\\\"@disabled\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@model\\\",\\\"@noDataMessage\\\",\\\"@onLoad\\\",\\\"@onSelect\\\",\\\"@placeholder\\\"],[[30,0,[\\\"isLoading\\\"]],\\\"supplierName\\\",[28,[37,11],[\\\"supplierName\\\"],null],[30,0,[\\\"supplierChangeSet\\\"]],[28,[37,4],[\\\"common.No suppliers\\\"],null],[30,0,[\\\"loadMoreSuppliers\\\"]],[30,0,[\\\"setSupplier\\\"]],[28,[37,4],[\\\"shared.product.Filter by supplier\\\"],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,12],[[24,0,\\\"form-control m-1 w-auto\\\"],[16,\\\"placeholder\\\",[28,[37,4],[\\\"shared.product.Search products\\\"],null]],[24,\\\"autofocus\\\",\\\"true\\\"],[24,\\\"data-test-products-project-search\\\",\\\"\\\"],[4,[38,13],[\\\"input\\\",[28,[37,14],[[30,0,[\\\"onChangeSearchTerm\\\"]]],null]],null]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"isEditable\\\"]],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white text-nowrap m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"addingProductsFromFile\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n        \\\"],[8,[39,18],null,[[\\\"@icon\\\"],[\\\"upload\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"shared.product.Add products from a file\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"isAddingProduct\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n        \\\"],[8,[39,18],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"project\\\",\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[8,[39,19],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-1 pb-2 d-lg-flex justify-content-end align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"isEditable\\\"]],[30,0,[\\\"productTableData\\\",\\\"length\\\"]]],null],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline float-start\\\"],[16,\\\"disabled\\\",[28,[37,21],[[28,[37,22],[[30,0,[\\\"selectProductIds\\\",\\\"size\\\"]]],null],[30,0,[\\\"isLoading\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"isDeletingProducts\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"project-products__table-container\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,23],null,[[\\\"@tableHeader\\\",\\\"@tableData\\\",\\\"@noDataText\\\",\\\"@pageSizes\\\",\\\"@pageSize\\\",\\\"@pageIndex\\\",\\\"@onChangePageIndex\\\",\\\"@onChangePageSize\\\",\\\"@isLoading\\\",\\\"@totalRecords\\\",\\\"@class\\\"],[[30,0,[\\\"productTableHeader\\\"]],[30,0,[\\\"productTableData\\\"]],[28,[37,4],[\\\"common.No data\\\"],null],[30,0,[\\\"model\\\",\\\"pageSizes\\\"]],[30,0,[\\\"model\\\",\\\"pageSize\\\"]],[30,0,[\\\"model\\\",\\\"pageIndex\\\"]],[30,0,[\\\"onChangePageIndex\\\"]],[30,0,[\\\"onChangePageSize\\\"]],[30,0,[\\\"model\\\",\\\"products\\\",\\\"isRunning\\\"]],[30,0,[\\\"totalRecords\\\"]],\\\"table-bordered\\\"]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isEditingProduct\\\"]],[[[1,\\\"  \\\"],[8,[39,24],null,[[\\\"@onSaveProduct\\\",\\\"@target\\\",\\\"@productTable\\\",\\\"@entity\\\",\\\"@productId\\\",\\\"@onClose\\\"],[[30,0,[\\\"onSaveProduct\\\"]],[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\"]],\\\"project-product\\\",[30,0,[\\\"sessionData\\\",\\\"entity\\\"]],[30,0,[\\\"selectedProductId\\\"]],[28,[37,16],[[28,[37,17],[[30,0,[\\\"isEditingProduct\\\"]]],null],false],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isAddingProduct\\\"]],[[[1,\\\"  \\\"],[8,[39,25],null,[[\\\"@onAddProduct\\\",\\\"@onCreateProduct\\\",\\\"@onClose\\\"],[[30,0,[\\\"onAddProduct\\\"]],[30,0,[\\\"onCreateProduct\\\"]],[28,[37,16],[[28,[37,17],[[30,0,[\\\"isAddingProduct\\\"]]],null],false],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"addingProductsFromFile\\\"]],[[[1,\\\"  \\\"],[8,[39,26],null,[[\\\"@onUploadProducts\\\",\\\"@saveTarget\\\",\\\"@project\\\",\\\"@onClose\\\"],[[30,0,[\\\"updateProductList\\\"]],\\\"project-products\\\",[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,16],[[28,[37,17],[[30,0,[\\\"addingProductsFromFile\\\"]]],null],false],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isDeletingProducts\\\"]],[[[1,\\\"  \\\"],[8,[39,27],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\"],[\\\"modal\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"isDeletingProducts\\\"]]],null],false],null],true,\\\"block-module\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,2],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,4],[\\\"shared.product.areYouSureYouWantToDeleteXProducts\\\"],[[\\\"number\\\",\\\"products\\\"],[[30,0,[\\\"selectProductIds\\\",\\\"size\\\"]],[28,[37,29],[[30,0,[\\\"selectProductIds\\\",\\\"size\\\"]],\\\"product\\\"],null]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"float-end d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteProducts\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-danger text-white ms-2\\\"],[15,\\\"disabled\\\",true],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Deleting\\\"],null]],[1,\\\"…\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteProducts\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"deleteProducts\\\"]]],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteProducts\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"isDeletingProducts\\\"]]],null],false],null]],null],[12],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"header\\\",\\\"if\\\",\\\"h2\\\",\\\"div\\\",\\\"search-selector\\\",\\\"array\\\",\\\"input\\\",\\\"on\\\",\\\"perform\\\",\\\"button\\\",\\\"fn\\\",\\\"mut\\\",\\\"fa-icon\\\",\\\"loading-icon\\\",\\\"and\\\",\\\"or\\\",\\\"not\\\",\\\"pagination-table\\\",\\\"product-editor\\\",\\\"product-selector\\\",\\\"products-uploader\\\",\\\"modal-dialog\\\",\\\"p\\\",\\\"pluralize\\\",\\\"footer\\\",\\\"span\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/products.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/progress\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t 'shared.progress.Labour progress')\n      }}\n    />\n  {{/unless}}\n  <article class='m-4 flex-grow-1'>\n    {{#if (media 'isDesktop')}}\n      <header class='border-bottom mb-3 pb-2 d-flex align-items-center'>\n        <div class='flex-grow-1 d-flex align-items-center'>\n          <h2 class='m-0 my-2'>\n            {{t 'shared.progress.Labour progress'}}\n          </h2>\n  \n          {{#if this.showTaskControls}}\n            {{#unless (or this.isSaving this.isLoading)}}\n              {{#if this.isDraft}}\n                <div class='ms-2 badge rounded-pill bg-info'>\n                  {{t 'common.Draft'}}\n                </div>\n              {{else if this.latestVersion}}\n                <div class='ms-2 badge rounded-pill bg-primary'>\n                  {{t 'common.Version'}}\n                  {{this.latestVersion.versionNumber}}\n                </div>\n              {{/if}}\n            {{else}}\n              <div class='ms-2 badge rounded-pill bg-secondary'>\n                <div class='spinner-border spinner-border-sm text-light'></div>\n              </div>\n            {{/unless}}\n          {{/if}}\n        </div>\n      </header>\n    {{/if}}\n  \n    {{#if\n      (and\n        this.showTaskControls\n        (or this.canSeeSaveDraftButton this.canSeeCreateVersionButton)\n      )\n    }}\n      <div class='d-flex align-items-center justify-content-end'>\n        {{#if this.canSeeSaveDraftButton}}\n          <button\n            type='button'\n            disabled={{or this.isLoading this.isSaving}}\n            class='btn btn-primary text-nowrap m-1'\n            {{on 'click' (perform this.saveDraftProgress)}}\n          >\n            {{#if this.saveDraftProgress.isRunning}}\n              {{t 'common.Saving'}}&hellip;\n            {{else}}\n              {{t 'common.Save draft'}}\n            {{/if}}\n          </button>\n        {{/if}}\n  \n        {{#if this.canSeeCreateVersionButton}}\n          <button\n            type='button'\n            disabled={{or this.isLoading (not this.isDraft) this.isSaving}}\n            class='btn btn-primary text-nowrap m-1'\n            {{on 'click' (fn (mut this.showCommitProgressModal) true)}}\n          >\n            {{t 'common.Create version'}}\n          </button>\n        {{/if}}\n      </div>\n    {{/if}}\n  \n    <p>\n      {{t\n        'entity.builda-price.projects.project.progress.labourProgressExplanation'\n      }}\n    </p>\n  \n    {{#if (or this.isLoading)}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      {{#if this.model.progressList.last.value.length}}\n        {{#if this.canCompleteTasks}}\n          <div class='row px-3'>\n            <div class='col fw-bold'></div>\n            <div class='col-1 fw-bold text-center'>\n              <LabelPopup\n                @text={{t\n                  'entity.builda-price.projects.project.progress.completeExplanation'\n                }}\n              >\n                {{t 'common.Complete'}}\n              </LabelPopup>\n            </div>\n          </div>\n        {{/if}}\n        {{#each this.progressList as |item|}}\n          <TaskProgressPositionRow\n            @item={{item}}\n            @isSaving={{this.isSaving}}\n            @showCompleteColumn={{this.canCompleteTasks}}\n          />\n        {{/each}}\n      {{else}}\n        <div class='mt-5 d-flex flex-column align-items-center'>\n          <FaIcon @icon='tasks' @size='2x' class='mt-0 mb-3' />\n          <p class='fs-4 mt-0 mb-3'>\n            <b>\n              {{t 'shared.progress.thisProjectDoesNotHaveAnyTasksYet'}}\n            </b>\n          </p>\n          <LinkTo\n            @route='entity.builda-price.projects.project.tasks'\n            @model={{this.model.project.last.value.id}}\n            class='btn btn-primary'\n          >\n            {{t 'shared.progress.Create some tasks'}}\n          </LinkTo>\n        </div>\n      {{/if}}\n    {{/if}}\n  </article>\n  \n  {{#if this.showCommitProgressModal}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.showCommitProgressModal) false}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-header'>\n        <h3 class='modal-title'>\n          {{t\n            'entity.builda-price.projects.project.progress.Make a progress version'\n          }}\n        </h3>\n      </div>\n  \n      <div class='modal-body'>\n        {{#if this.numberOfChanges}}\n          {{t\n            'entity.builda-price.projects.project.progress.thereHasBeenXChangeToTheProgressSinceTheLastVersion'\n            number=this.numberOfChanges\n            changes=(pluralize this.numberOfChanges 'change')\n          }}\n        {{else}}\n          {{t\n            'entity.builda-price.projects.project.progress.thereHaveBeenNoChangesToTheProgressSinceTheLastVersion'\n          }}\n        {{/if}}\n      </div>\n  \n      <div class='modal-footer text-right'>\n        {{#if this.commitProgressVersion.isRunning}}\n          <button type='button' class='btn btn-primary ms-2' disabled={{true}}>\n            <span class='spinner-border spinner-border-sm'></span>&nbsp;&nbsp;{{t\n              'common.Creating version'\n            }}…\n          </button>\n        {{else}}\n          <button\n            type='button'\n            class='btn btn-secondary text-white m-1'\n            {{on 'click' (fn (mut this.showCommitProgressModal) false)}}\n          >\n            {{t 'common.Cancel'}}\n          </button>\n          <button\n            type='button'\n            disabled={{this.isSaving}}\n            class='btn btn-primary m-1'\n            {{on 'click' (perform this.commitProgressVersion)}}\n          >\n            {{t 'common.Create version'}}\n          </button>\n        {{/if}}\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"7Aqs+u8Y\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"shared.progress.Labour progress\\\"],null]]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4 flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 pb-2 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"flex-grow-1 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h2\\\"],[14,0,\\\"m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"shared.progress.Labour progress\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"showTaskControls\\\"]],[[[41,[51,[28,[37,10],[[30,0,[\\\"isSaving\\\"]],[30,0,[\\\"isLoading\\\"]]],null]],[[[41,[30,0,[\\\"isDraft\\\"]],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"ms-2 badge rounded-pill bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,4],[\\\"common.Draft\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"latestVersion\\\"]],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"ms-2 badge rounded-pill bg-primary\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,4],[\\\"common.Version\\\"],null]],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"latestVersion\\\",\\\"versionNumber\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"]],[]],null]],[]]]],[]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"ms-2 badge rounded-pill bg-secondary\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"spinner-border spinner-border-sm text-light\\\"],[12],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[[30,0,[\\\"showTaskControls\\\"]],[28,[37,10],[[30,0,[\\\"canSeeSaveDraftButton\\\"]],[30,0,[\\\"canSeeCreateVersionButton\\\"]]],null]],null],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"d-flex align-items-center justify-content-end\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canSeeSaveDraftButton\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[16,\\\"disabled\\\",[28,[37,10],[[30,0,[\\\"isLoading\\\"]],[30,0,[\\\"isSaving\\\"]]],null]],[24,0,\\\"btn btn-primary text-nowrap m-1\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"saveDraftProgress\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveDraftProgress\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,4],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,4],[\\\"common.Save draft\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canSeeCreateVersionButton\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[16,\\\"disabled\\\",[28,[37,10],[[30,0,[\\\"isLoading\\\"]],[28,[37,15],[[30,0,[\\\"isDraft\\\"]]],null],[30,0,[\\\"isSaving\\\"]]],null]],[24,0,\\\"btn btn-primary text-nowrap m-1\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"showCommitProgressModal\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Create version\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[10,2],[12],[1,\\\"\\\\n    \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.progress.labourProgressExplanation\\\"],null]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,10],[[30,0,[\\\"isLoading\\\"]]],null],[[[1,\\\"    \\\"],[8,[39,19],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"model\\\",\\\"progressList\\\",\\\"last\\\",\\\"value\\\",\\\"length\\\"]],[[[41,[30,0,[\\\"canCompleteTasks\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"row px-3\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"col fw-bold\\\"],[12],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"col-1 fw-bold text-center\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,20],null,[[\\\"@text\\\"],[[28,[37,4],[\\\"entity.builda-price.projects.project.progress.completeExplanation\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"common.Complete\\\"],null]],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[42,[28,[37,22],[[28,[37,22],[[30,0,[\\\"progressList\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[8,[39,23],null,[[\\\"@item\\\",\\\"@isSaving\\\",\\\"@showCompleteColumn\\\"],[[30,1],[30,0,[\\\"isSaving\\\"]],[30,0,[\\\"canCompleteTasks\\\"]]]],null],[1,\\\"\\\\n\\\"]],[1]],null]],[]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"mt-5 d-flex flex-column align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,24],[[24,0,\\\"mt-0 mb-3\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"tasks\\\",\\\"2x\\\"]],null],[1,\\\"\\\\n        \\\"],[10,2],[14,0,\\\"fs-4 mt-0 mb-3\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"b\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"shared.progress.thisProjectDoesNotHaveAnyTasksYet\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,26],[[24,0,\\\"btn btn-primary\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.builda-price.projects.project.tasks\\\",[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"shared.progress.Create some tasks\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"showCommitProgressModal\\\"]],[[[1,\\\"  \\\"],[8,[39,27],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"showCommitProgressModal\\\"]]],null],false],null],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.progress.Make a progress version\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"numberOfChanges\\\"]],[[[1,\\\"        \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.progress.thereHasBeenXChangeToTheProgressSinceTheLastVersion\\\"],[[\\\"number\\\",\\\"changes\\\"],[[30,0,[\\\"numberOfChanges\\\"]],[28,[37,29],[[30,0,[\\\"numberOfChanges\\\"]],\\\"change\\\"],null]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.progress.thereHaveBeenNoChangesToTheProgressSinceTheLastVersion\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"commitProgressVersion\\\",\\\"isRunning\\\"]],[[[1,\\\"        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary ms-2\\\"],[15,\\\"disabled\\\",true],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Creating version\\\"],null]],[1,\\\"…\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white m-1\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"showCommitProgressModal\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isSaving\\\"]]],[24,0,\\\"btn btn-primary m-1\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"commitProgressVersion\\\"]]],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Create version\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"item\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"if\\\",\\\"header\\\",\\\"div\\\",\\\"h2\\\",\\\"or\\\",\\\"and\\\",\\\"button\\\",\\\"on\\\",\\\"perform\\\",\\\"not\\\",\\\"fn\\\",\\\"mut\\\",\\\"p\\\",\\\"loading-icon\\\",\\\"label-popup\\\",\\\"each\\\",\\\"-track-array\\\",\\\"task-progress-position-row\\\",\\\"fa-icon\\\",\\\"b\\\",\\\"link-to\\\",\\\"modal-dialog\\\",\\\"h3\\\",\\\"pluralize\\\",\\\"span\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/progress.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/settings\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='mx-4 mt-4 h-100'>\n    <header class='border-bottom mb-3 pb-2 d-flex align-items-center'>\n      {{#if (media 'isDesktop')}}\n        <h2 class='flex-grow-1 m-0 my-2'>{{t 'common.Settings'}}</h2>\n      {{/if}}\n    </header>\n    <div class='mt-3'>\n      {{#if this.isLoading}}\n        <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n      {{else}}\n        <PtlForm class='width--large mb-4'>\n          <h3 class='mb-3'>{{t 'common.Details'}}</h3>\n          <PtlInput\n            @type='text'\n            @label={{t 'common.Name'}}\n            @key='name'\n            @model={{this.model.projectChangeset.last.value}}\n            @required={{true}}\n            @forceValidationVisible={{gt this.saveProject.performCount 0}}\n            disabled={{or this.saveProject.isRunning (not this.canManageProject)}}\n          />\n          <PtlInput\n            @type='select'\n            @label={{t 'common.Status'}}\n            @key='status'\n            @options={{this.status}}\n            @required={{true}}\n            @model={{this.model.projectChangeset.last.value}}\n            @forceValidationVisible={{gt this.saveProject.performCount 0}}\n            disabled={{or this.saveProject.isRunning (not this.canManageProject)}}\n          />\n          <PtlInput\n            @type='text'\n            @label={{t 'common.Reference'}}\n            @key='projectReference'\n            @model={{this.model.projectChangeset.last.value}}\n            @forceValidationVisible={{gt this.saveProject.performCount 0}}\n            disabled={{or this.saveProject.isRunning (not this.canManageProject)}}\n          />\n          <NewComboBox\n            @isLoading={{this.onAddressChange.isRunning}}\n            @list={{this.addressSuggestions}}\n            @noDataMessage={{t\n              'entity.builda-price.projects.project.settings.No address found'\n            }}\n            @onSelect={{this.setAddress}}\n            @onSearch={{this.onAddressChange}}\n            @debounce={{400}}\n            @label={{t 'common.Address'}}\n            @key='address'\n            @model={{this.model.projectChangeset.last.value}}\n            @hasNextPage={{false}}\n            disabled={{or this.saveProject.isRunning (not this.canManageProject)}}\n            @forceValidationVisible={{gt this.saveProject.performCount 0}}\n          />\n  \n          {{#if\n            (and\n              this.newFeatureFlags.entityCanUseGeofencing this.canManageProject\n            )\n          }}\n            <PtlInput\n              @type='checkbox'\n              @label={{t\n                'entity.builda-price.projects.project.settings.Enable Geofencing'\n              }}\n              @description={{t\n                'entity.builda-price.projects.project.settings.geoFencingDescription'\n              }}\n              @key='geofencingEnabled'\n              @model={{this.model.projectChangeset.last.value}}\n              @forceValidationVisible={{gt this.saveProject.performCount 0}}\n              disabled={{or\n                this.saveProject.isRunning\n                (not this.canManageProject)\n              }}\n            />\n  \n            {{#if this.model.projectChangeset.last.value.geofencingEnabled}}\n              <div class='mb-3'>\n                <GoogleMap\n                  @lat={{this.model.projectChangeset.last.value.lat}}\n                  @lng={{this.model.projectChangeset.last.value.lng}}\n                  {{! dirty number cast }}\n                  @radius={{math\n                    (or this.model.projectChangeset.last.value.rad 0)\n                    '*'\n                    1\n                  }}\n                  @maxRadius={{500}}\n                  @minRadius={{100}}\n                  @onRadiusChange={{this.onRadiusChange}}\n                  @onClick={{this.onClickMap}}\n                >\n                  <NewComboBox\n                    @isLoading={{this.onAddressChange.isRunning}}\n                    @list={{this.addressSuggestions}}\n                    @noDataMessage={{t\n                      'entity.builda-price.projects.project.settings.No address found'\n                    }}\n                    @onSelect={{this.setGoogleMapAddress}}\n                    @onSearch={{this.onAddressChange}}\n                    @debounce={{400}}\n                    @key='address'\n                    @model={{this.googleMapAddressFinder}}\n                    @hasNextPage={{false}}\n                    @placeholder={{t\n                      'entity.builda-price.projects.project.settings.Search for an address'\n                    }}\n                  />\n                </GoogleMap>\n              </div>\n            {{/if}}\n          {{/if}}\n  \n          <PtlInput\n            @type='textarea'\n            @label={{t 'common.Description'}}\n            @key='description'\n            @model={{this.model.projectChangeset.last.value}}\n            @forceValidationVisible={{gt this.saveProject.performCount 0}}\n            disabled={{or this.saveProject.isRunning (not this.canManageProject)}}\n          />\n  \n          <PtlInput\n            @type='select'\n            @label={{t 'shared.task.Contract type'}}\n            @key='contractType'\n            @selectNoBlankOption={{true}}\n            @options={{this.contractType}}\n            @required={{true}}\n            @model={{this.model.projectChangeset.last.value}}\n            @forceValidationVisible={{gt this.saveProject.performCount 0}}\n            disabled={{or this.saveProject.isRunning (not this.canManageProject)}}\n          />\n  \n          <PtlInput\n            @type='date'\n            @label={{t 'common.Start date'}}\n            @key='startDate'\n            @dependantValidationKeys={{array 'completionDate'}}\n            @model={{this.model.projectChangeset.last.value}}\n            @forceValidationVisible={{gt this.saveProject.performCount 0}}\n            @required={{true}}\n            disabled={{or this.saveProject.isRunning (not this.canManageProject)}}\n          />\n          <PtlInput\n            @type='date'\n            @label={{t 'common.Completion date'}}\n            @key='completionDate'\n            @dependantValidationKeys={{array 'startDate'}}\n            @model={{this.model.projectChangeset.last.value}}\n            @forceValidationVisible={{gt this.saveProject.performCount 0}}\n            disabled={{or this.saveProject.isRunning (not this.canManageProject)}}\n          />\n          {{#if\n            (includes-feature-flags\n              this.model.project.lastSuccessful.value 'canUseWorkerJobAllocation'\n            )\n          }}\n            <div class='mb-3'>\n              <label class='mb-1' for='charge-out-rate-modal-button'>\n                {{t\n                  'entity.builda-price.projects.project.settings.Charge-out rates'\n                }}\n              </label>\n              <div class='input-group'>\n                <button\n                  id='charge-out-rate-modal-button'\n                  type='button'\n                  class='btn btn-primary align-self-start'\n                  disabled={{this.saveProject.isRunning}}\n                  {{on 'click' (fn (mut this.workerAllocationModalVisible) true)}}\n                >{{t\n                    'entity.builda-price.projects.project.settings.Edit worker charge-out rates'\n                  }}</button>\n              </div>\n            </div>\n          {{/if}}\n  \n          {{#if\n            (includes\n              this.accountingPlatform.glAccountVisibleFields 'purchasesGlAccount'\n            )\n          }}\n            <div class='d-flex align-items-center mb-3'>\n              <div class='flex-grow-1'>\n                <PtlInput\n                  @containerClass='m-0'\n                  @type='powerSelect'\n                  @label={{t\n                    'entity.builda-price.projects.project.settings.Default purchases account'\n                  }}\n                  @key={{if\n                    this.purchasesGlAccountIsOverridden\n                    'purchasesGlAccount'\n                    'defaultPurchasesGlAccount'\n                  }}\n                  @optionKeys={{array 'code' 'name'}}\n                  @options={{this.model.glAccounts.last.value}}\n                  @allowClear={{true}}\n                  @model={{this.model.projectChangeset.last.value}}\n                  @description={{t\n                    'entity.builda-price.projects.project.settings.purchasesGlAccountDescription'\n                  }}\n                  @placeholder={{t\n                    'entity.builda-price.projects.project.settings.No default account'\n                  }}\n                  @searchEnabled={{true}}\n                  @searchField={{this.accountingPlatform.glAccountsSearchField}}\n                  @forceValidationVisible={{gt this.saveProject.performCount 0}}\n                  @disabled={{or\n                    (not this.purchasesGlAccountIsOverridden)\n                    this.saveProject.isRunning\n                    (not this.canManageProject)\n                  }}\n                />\n              </div>\n  \n              <label class='mx-3 d-flex align-items-center mt-1'>\n                <span>{{t 'common.Override'}}</span>\n                <Input\n                  @type='checkbox'\n                  class='form-check-input m-0 ms-1'\n                  @checked={{this.purchasesGlAccountIsOverridden}}\n                  {{on\n                    'click'\n                    (fn\n                      this.togglePurchasesGlAccountOverride\n                      this.model.projectChangeset.last.value\n                    )\n                  }}\n                  disabled={{or\n                    this.saveProject.isRunning\n                    (not this.canManageProject)\n                  }}\n                />\n              </label>\n            </div>\n          {{/if}}\n  \n          {{#if\n            (includes\n              this.accountingPlatform.glAccountVisibleFields 'salesGlAccount'\n            )\n          }}\n            <div class='d-flex align-items-center mb-3'>\n              <div class='flex-grow-1'>\n                <PtlInput\n                  @containerClass='m-0'\n                  @type='powerSelect'\n                  @label={{t\n                    'entity.builda-price.projects.project.settings.Default sales account'\n                  }}\n                  @key={{if\n                    this.salesGlAccountIsOverridden\n                    'salesGlAccount'\n                    'defaultSalesGlAccount'\n                  }}\n                  @optionKeys={{array 'code' 'name'}}\n                  @options={{this.model.glAccounts.last.value}}\n                  @allowClear={{true}}\n                  @model={{this.model.projectChangeset.last.value}}\n                  @description={{t\n                    'entity.builda-price.projects.project.settings.salesGlAccountDescription'\n                  }}\n                  @placeholder={{t\n                    'entity.builda-price.projects.project.settings.No default account'\n                  }}\n                  @searchEnabled={{true}}\n                  @searchField={{this.accountingPlatform.glAccountsSearchField}}\n                  @forceValidationVisible={{gt this.saveProject.performCount 0}}\n                  @disabled={{or\n                    (not this.salesGlAccountIsOverridden)\n                    this.saveProject.isRunning\n                    (not this.canManageProject)\n                  }}\n                />\n              </div>\n              <label class='mx-3 d-flex align-items-center mt-1'>\n                <span>{{t 'common.Override'}}</span>\n                <Input\n                  @type='checkbox'\n                  class='form-check-input m-0 ms-1'\n                  @checked={{this.salesGlAccountIsOverridden}}\n                  {{on\n                    'click'\n                    (fn\n                      this.toggleSalesGlAccountOverride\n                      this.model.projectChangeset.last.value\n                    )\n                  }}\n                  disabled={{or\n                    this.saveProject.isRunning\n                    (not this.canManageProject)\n                  }}\n                />\n              </label>\n            </div>\n          {{/if}}\n  \n          {{#if\n            (and\n              this.accountingPlatform.isActive\n              (eq this.accountingPlatform.activePlatform 'xero')\n              (includes-feature-flags 'canUseXeroIntegration')\n            )\n          }}\n            {{#if (eq this.sessionData.entity.region 'AUS')}}\n              <PtlInput\n                @type='powerSelect'\n                @label={{t\n                  'entity.builda-price.projects.project.settings.Xero tracking category'\n                }}\n                @key='xeroTrackingOption'\n                @optionKeys={{array 'trackingOptionName'}}\n                @options={{this.xeroTrackingOptions}}\n                @model={{this.model.projectChangeset.last.value}}\n                @searchEnabled={{true}}\n                @allowClear={{true}}\n                @searchField='trackingOptionName'\n                @afterOptionsComponent={{component\n                  'power-select-after-options-button'\n                  onClick=(perform this.syncXeroTrackingCategoryOptions)\n                  icon='sync'\n                  text=(t\n                    'entity.builda-price.projects.project.settings.Reload Xero category options'\n                  )\n                  isLoading=this.syncXeroTrackingCategoryOptions.isRunning\n                  loadingText=(t\n                    'entity.builda-price.projects.project.settings.Loading Xero tracking options'\n                  )\n                }}\n                @forceValidationVisible={{gt this.saveProject.performCount 0}}\n                disabled={{this.saveProject.isRunning}}\n                @description={{t\n                  'entity.builda-price.projects.project.settings.xeroProvidesTrackingCategoriesToTagLineItemsInXeroToAidReporting'\n                }}\n              />\n            {{/if}}\n          {{/if}}\n  \n          {{! assume contact info is restricted to project managers - pretty shit }}\n          {{#if this.canManageProject}}\n            <h4 class='my-2'>{{t\n                'entity.builda-price.projects.project.settings.Primary contact details'\n              }}</h4>\n            <PtlInput\n              @type='text'\n              @label={{t 'common.Name'}}\n              @key='contactName'\n              @model={{this.model.projectChangeset.last.value}}\n              @forceValidationVisible={{gt this.saveProject.performCount 0}}\n              disabled={{or\n                this.saveProject.isRunning\n                (not this.canManageProject)\n              }}\n            />\n            <PtlInput\n              @type='text'\n              @label={{t 'common.Email'}}\n              @key='contactEmail'\n              @model={{this.model.projectChangeset.last.value}}\n              @forceValidationVisible={{gt this.saveProject.performCount 0}}\n              disabled={{or\n                this.saveProject.isRunning\n                (not this.canManageProject)\n              }}\n            />\n            <PtlInput\n              @type='text'\n              @label={{t 'common.Phone number'}}\n              @key='contactNumber'\n              @model={{this.model.projectChangeset.last.value}}\n              @forceValidationVisible={{gt this.saveProject.performCount 0}}\n              disabled={{or\n                this.saveProject.isRunning\n                (not this.canManageProject)\n              }}\n            />\n            <PtlInput\n              @type='text'\n              @label={{t\n                'entity.builda-price.projects.project.settings.Postal address'\n              }}\n              @key='contactAddress'\n              @model={{this.model.projectChangeset.last.value}}\n              @forceValidationVisible={{gt this.saveProject.performCount 0}}\n              disabled={{or\n                this.saveProject.isRunning\n                (not this.canManageProject)\n              }}\n            />\n          {{/if}}\n  \n          {{#if this.canManageProject}}\n            <div class='d-flex flex-grow-1 mt-3'>\n              {{#if this.canManageProject}}\n                <button\n                  type='button'\n                  class='btn btn-link text-danger text-decoration-underline'\n                  disabled={{or\n                    this.deleteProject.isRunning\n                    this.saveProject.isRunning\n                  }}\n                  {{on\n                    'click'\n                    (if\n                      this.canDelete\n                      (action (mut this.isDeletingProject) true)\n                      (action (mut this.isArchivingProject) true)\n                    )\n                  }}\n                  data-test-project-settings-delete-or-archive-button\n                >\n                  {{#if\n                    (or\n                      this.archiveProject.isRunning this.deleteProject.isRunning\n                    )\n                  }}\n                    &nbsp;&nbsp;{{t 'common.Deleting'}}…\n                  {{else}}\n                    {{t\n                      'entity.builda-price.projects.project.settings.Delete project'\n                    }}\n                  {{/if}}\n                </button>\n              {{/if}}\n  \n              <button\n                type='button'\n                class='btn btn-primary ms-auto'\n                disabled={{this.saveProject.isRunning}}\n                {{on\n                  'click'\n                  (perform\n                    this.saveProject this.model.projectChangeset.last.value\n                  )\n                }}\n              >\n                {{#if this.saveProject.isRunning}}\n                  <span\n                    class='spinner-border spinner-border-sm'\n                  ></span>&nbsp;&nbsp;{{t 'common.Saving'}}…\n                {{else}}\n                  {{t 'common.Save details'}}\n                {{/if}}\n              </button>\n            </div>\n          {{/if}}\n        </PtlForm>\n  \n        {{#if\n          (includes-feature-flags\n            this.model.project.last.value 'canManageProfitMargin'\n          )\n        }}\n          <PtlForm class='width--large'>\n            <ProfitMarginForm\n              @default={{this.model.project.last.value.defaultPercentageValues}}\n              @profitMargin={{this.model.profitMarginChangeset.last.value}}\n              @description={{t 'shared.profit-margins.profitMarginDescription'}}\n              @forceValidationVisible={{gt this.saveProject.performCount 0}}\n              @disabled={{this.saveProfitMargin.isRunning}}\n            />\n  \n            {{#if this.canManageProfitMargin}}\n              <div class='d-flex flex-grow-1 mt-3'>\n                <button\n                  type='button'\n                  class='btn btn-primary ms-auto'\n                  disabled={{this.saveProfitMargin.isRunning}}\n                  {{on\n                    'click'\n                    (perform\n                      this.saveProfitMargin\n                      this.model.projectChangeset.last.value\n                      this.model.profitMarginChangeset.last.value\n                    )\n                  }}\n                >\n                  {{#if this.saveProfitMargin.isRunning}}\n                    <span\n                      class='spinner-border spinner-border-sm'\n                    ></span>&nbsp;&nbsp;{{t 'common.Saving'}}…\n                  {{else}}\n                    {{t 'shared.profit-margins.Save profit margins'}}\n                  {{/if}}\n                </button>\n              </div>\n            {{/if}}\n          </PtlForm>\n        {{/if}}\n      {{/if}}\n    </div>\n  </article>\n  \n  <ConfirmDelete\n    @visible={{this.isDeletingProject}}\n    @title={{t 'entity.builda-price.projects.project.settings.Delete project'}}\n    @messages={{this.deleteMessages}}\n    @confirmText={{t\n      'entity.builda-price.projects.project.settings.delete project'\n    }}\n    @deleteButtonText={{t\n      'entity.builda-price.projects.project.settings.Delete project'\n    }}\n    @deletingButtonText={{t 'common.Deleting'}}\n    @onDelete={{perform this.deleteProject}}\n    @onCancel={{fn (mut this.isDeletingProject) false}}\n  />\n  \n  {{#if this.isArchivingProject}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.isArchivingProject) false}}\n      @translucentOverlay={{true}}\n      @containerClass='modal-content w-auto'\n    >\n      <div class='modal-header'>\n        <h5 class='modal-title'>\n          {{t 'entity.builda-price.projects.project.settings.Delete project'}}\n        </h5>\n      </div>\n  \n      <div class='modal-body' data-test-confirm-delete-dialog>\n        <p data-test-project-settings-archive-dialog>\n          {{t\n            'entity.builda-price.projects.project.settings.youCannotDeleteThisProjectBecauseItHasCostsAssignedToIt'\n          }}\n        </p>\n        <p>{{t\n            'entity.builda-price.projects.project.settings.wouldYouLikeToArchiveTheProjectInstead'\n          }}</p>\n      </div>\n  \n      <footer class='modal-footer'>\n        <div class='float-end d-flex align-items-center'>\n          {{#if this.archiveProject.isRunning}}\n            <button\n              type='button'\n              class='btn btn-danger text-white ms-2'\n              disabled={{true}}\n            >\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t\n                'entity.builda-price.projects.project.settings.Archiving project'\n              }}…\n            </button>\n          {{else}}\n            <button\n              class='btn btn-secondary text-white ms-2'\n              type='button'\n              disabled={{this.archiveProject.isRunning}}\n              {{on 'click' (fn (mut this.isArchivingProject) false)}}\n            >{{t 'common.Cancel'}}</button>\n            <button\n              class='btn btn-danger text-white ms-2'\n              type='button'\n              disabled={{this.archiveProject.isRunning}}\n              {{on 'click' (perform this.archiveProject)}}\n            >\n              {{t\n                'entity.builda-price.projects.project.settings.Archive project'\n              }}\n            </button>\n          {{/if}}\n        </div>\n      </footer>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.workerAllocationModalVisible}}\n    <WorkerProjectAllocationModal\n      @project={{this.model.project.last.value}}\n      @onClose={{fn (mut this.workerAllocationModalVisible) false}}\n    />\n  {{/if}}\n  */\n  {\n    \"id\": \"uZ7l85ac\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4 h-100\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 pb-2 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,[28,[35,5],[\\\"common.Settings\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"mt-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"      \\\"],[8,[39,7],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[8,[39,8],[[24,0,\\\"width--large mb-4\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-3\\\"],[12],[1,[28,[35,5],[\\\"common.Details\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[8,[39,10],[[16,\\\"disabled\\\",[28,[37,11],[[30,0,[\\\"saveProject\\\",\\\"isRunning\\\"]],[28,[37,12],[[30,0,[\\\"canManageProject\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,5],[\\\"common.Name\\\"],null],\\\"name\\\",[30,0,[\\\"model\\\",\\\"projectChangeset\\\",\\\"last\\\",\\\"value\\\"]],true,[28,[37,13],[[30,0,[\\\"saveProject\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[8,[39,10],[[16,\\\"disabled\\\",[28,[37,11],[[30,0,[\\\"saveProject\\\",\\\"isRunning\\\"]],[28,[37,12],[[30,0,[\\\"canManageProject\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@options\\\",\\\"@required\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",[28,[37,5],[\\\"common.Status\\\"],null],\\\"status\\\",[30,0,[\\\"status\\\"]],true,[30,0,[\\\"model\\\",\\\"projectChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,13],[[30,0,[\\\"saveProject\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[8,[39,10],[[16,\\\"disabled\\\",[28,[37,11],[[30,0,[\\\"saveProject\\\",\\\"isRunning\\\"]],[28,[37,12],[[30,0,[\\\"canManageProject\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,5],[\\\"common.Reference\\\"],null],\\\"projectReference\\\",[30,0,[\\\"model\\\",\\\"projectChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,13],[[30,0,[\\\"saveProject\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[8,[39,14],[[16,\\\"disabled\\\",[28,[37,11],[[30,0,[\\\"saveProject\\\",\\\"isRunning\\\"]],[28,[37,12],[[30,0,[\\\"canManageProject\\\"]]],null]],null]]],[[\\\"@isLoading\\\",\\\"@list\\\",\\\"@noDataMessage\\\",\\\"@onSelect\\\",\\\"@onSearch\\\",\\\"@debounce\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@hasNextPage\\\",\\\"@forceValidationVisible\\\"],[[30,0,[\\\"onAddressChange\\\",\\\"isRunning\\\"]],[30,0,[\\\"addressSuggestions\\\"]],[28,[37,5],[\\\"entity.builda-price.projects.project.settings.No address found\\\"],null],[30,0,[\\\"setAddress\\\"]],[30,0,[\\\"onAddressChange\\\"]],400,[28,[37,5],[\\\"common.Address\\\"],null],\\\"address\\\",[30,0,[\\\"model\\\",\\\"projectChangeset\\\",\\\"last\\\",\\\"value\\\"]],false,[28,[37,13],[[30,0,[\\\"saveProject\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,15],[[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseGeofencing\\\"]],[30,0,[\\\"canManageProject\\\"]]],null],[[[1,\\\"          \\\"],[8,[39,10],[[16,\\\"disabled\\\",[28,[37,11],[[30,0,[\\\"saveProject\\\",\\\"isRunning\\\"]],[28,[37,12],[[30,0,[\\\"canManageProject\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,5],[\\\"entity.builda-price.projects.project.settings.Enable Geofencing\\\"],null],[28,[37,5],[\\\"entity.builda-price.projects.project.settings.geoFencingDescription\\\"],null],\\\"geofencingEnabled\\\",[30,0,[\\\"model\\\",\\\"projectChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,13],[[30,0,[\\\"saveProject\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"projectChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"geofencingEnabled\\\"]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,16],null,[[\\\"@lat\\\",\\\"@lng\\\",\\\"@radius\\\",\\\"@maxRadius\\\",\\\"@minRadius\\\",\\\"@onRadiusChange\\\",\\\"@onClick\\\"],[[30,0,[\\\"model\\\",\\\"projectChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"lat\\\"]],[30,0,[\\\"model\\\",\\\"projectChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"lng\\\"]],[28,[37,17],[[28,[37,11],[[30,0,[\\\"model\\\",\\\"projectChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"rad\\\"]],0],null],\\\"*\\\",1],null],500,100,[30,0,[\\\"onRadiusChange\\\"]],[30,0,[\\\"onClickMap\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[8,[39,14],null,[[\\\"@isLoading\\\",\\\"@list\\\",\\\"@noDataMessage\\\",\\\"@onSelect\\\",\\\"@onSearch\\\",\\\"@debounce\\\",\\\"@key\\\",\\\"@model\\\",\\\"@hasNextPage\\\",\\\"@placeholder\\\"],[[30,0,[\\\"onAddressChange\\\",\\\"isRunning\\\"]],[30,0,[\\\"addressSuggestions\\\"]],[28,[37,5],[\\\"entity.builda-price.projects.project.settings.No address found\\\"],null],[30,0,[\\\"setGoogleMapAddress\\\"]],[30,0,[\\\"onAddressChange\\\"]],400,\\\"address\\\",[30,0,[\\\"googleMapAddressFinder\\\"]],false,[28,[37,5],[\\\"entity.builda-price.projects.project.settings.Search for an address\\\"],null]]],null],[1,\\\"\\\\n              \\\"]],[]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n        \\\"],[8,[39,10],[[16,\\\"disabled\\\",[28,[37,11],[[30,0,[\\\"saveProject\\\",\\\"isRunning\\\"]],[28,[37,12],[[30,0,[\\\"canManageProject\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"textarea\\\",[28,[37,5],[\\\"common.Description\\\"],null],\\\"description\\\",[30,0,[\\\"model\\\",\\\"projectChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,13],[[30,0,[\\\"saveProject\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,10],[[16,\\\"disabled\\\",[28,[37,11],[[30,0,[\\\"saveProject\\\",\\\"isRunning\\\"]],[28,[37,12],[[30,0,[\\\"canManageProject\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@selectNoBlankOption\\\",\\\"@options\\\",\\\"@required\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",[28,[37,5],[\\\"shared.task.Contract type\\\"],null],\\\"contractType\\\",true,[30,0,[\\\"contractType\\\"]],true,[30,0,[\\\"model\\\",\\\"projectChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,13],[[30,0,[\\\"saveProject\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,10],[[16,\\\"disabled\\\",[28,[37,11],[[30,0,[\\\"saveProject\\\",\\\"isRunning\\\"]],[28,[37,12],[[30,0,[\\\"canManageProject\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@dependantValidationKeys\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@required\\\"],[\\\"date\\\",[28,[37,5],[\\\"common.Start date\\\"],null],\\\"startDate\\\",[28,[37,18],[\\\"completionDate\\\"],null],[30,0,[\\\"model\\\",\\\"projectChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,13],[[30,0,[\\\"saveProject\\\",\\\"performCount\\\"]],0],null],true]],null],[1,\\\"\\\\n        \\\"],[8,[39,10],[[16,\\\"disabled\\\",[28,[37,11],[[30,0,[\\\"saveProject\\\",\\\"isRunning\\\"]],[28,[37,12],[[30,0,[\\\"canManageProject\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@dependantValidationKeys\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"date\\\",[28,[37,5],[\\\"common.Completion date\\\"],null],\\\"completionDate\\\",[28,[37,18],[\\\"startDate\\\"],null],[30,0,[\\\"model\\\",\\\"projectChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,13],[[30,0,[\\\"saveProject\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,19],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"lastSuccessful\\\",\\\"value\\\"]],\\\"canUseWorkerJobAllocation\\\"],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[14,\\\"for\\\",\\\"charge-out-rate-modal-button\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.settings.Charge-out rates\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"input-group\\\"],[12],[1,\\\"\\\\n              \\\"],[11,\\\"button\\\"],[24,1,\\\"charge-out-rate-modal-button\\\"],[24,0,\\\"btn btn-primary align-self-start\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveProject\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,22],[\\\"click\\\",[28,[37,23],[[28,[37,24],[[30,0,[\\\"workerAllocationModalVisible\\\"]]],null],true],null]],null],[12],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.settings.Edit worker charge-out rates\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,25],[[30,0,[\\\"accountingPlatform\\\",\\\"glAccountVisibleFields\\\"]],\\\"purchasesGlAccount\\\"],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"d-flex align-items-center mb-3\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,10],null,[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@options\\\",\\\"@allowClear\\\",\\\"@model\\\",\\\"@description\\\",\\\"@placeholder\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@forceValidationVisible\\\",\\\"@disabled\\\"],[\\\"m-0\\\",\\\"powerSelect\\\",[28,[37,5],[\\\"entity.builda-price.projects.project.settings.Default purchases account\\\"],null],[52,[30,0,[\\\"purchasesGlAccountIsOverridden\\\"]],\\\"purchasesGlAccount\\\",\\\"defaultPurchasesGlAccount\\\"],[28,[37,18],[\\\"code\\\",\\\"name\\\"],null],[30,0,[\\\"model\\\",\\\"glAccounts\\\",\\\"last\\\",\\\"value\\\"]],true,[30,0,[\\\"model\\\",\\\"projectChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,5],[\\\"entity.builda-price.projects.project.settings.purchasesGlAccountDescription\\\"],null],[28,[37,5],[\\\"entity.builda-price.projects.project.settings.No default account\\\"],null],true,[30,0,[\\\"accountingPlatform\\\",\\\"glAccountsSearchField\\\"]],[28,[37,13],[[30,0,[\\\"saveProject\\\",\\\"performCount\\\"]],0],null],[28,[37,11],[[28,[37,12],[[30,0,[\\\"purchasesGlAccountIsOverridden\\\"]]],null],[30,0,[\\\"saveProject\\\",\\\"isRunning\\\"]],[28,[37,12],[[30,0,[\\\"canManageProject\\\"]]],null]],null]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"mx-3 d-flex align-items-center mt-1\\\"],[12],[1,\\\"\\\\n              \\\"],[10,1],[12],[1,[28,[35,5],[\\\"common.Override\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[8,[39,27],[[24,0,\\\"form-check-input m-0 ms-1\\\"],[16,\\\"disabled\\\",[28,[37,11],[[30,0,[\\\"saveProject\\\",\\\"isRunning\\\"]],[28,[37,12],[[30,0,[\\\"canManageProject\\\"]]],null]],null]],[4,[38,22],[\\\"click\\\",[28,[37,23],[[30,0,[\\\"togglePurchasesGlAccountOverride\\\"]],[30,0,[\\\"model\\\",\\\"projectChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"purchasesGlAccountIsOverridden\\\"]]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,25],[[30,0,[\\\"accountingPlatform\\\",\\\"glAccountVisibleFields\\\"]],\\\"salesGlAccount\\\"],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"d-flex align-items-center mb-3\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,10],null,[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@options\\\",\\\"@allowClear\\\",\\\"@model\\\",\\\"@description\\\",\\\"@placeholder\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@forceValidationVisible\\\",\\\"@disabled\\\"],[\\\"m-0\\\",\\\"powerSelect\\\",[28,[37,5],[\\\"entity.builda-price.projects.project.settings.Default sales account\\\"],null],[52,[30,0,[\\\"salesGlAccountIsOverridden\\\"]],\\\"salesGlAccount\\\",\\\"defaultSalesGlAccount\\\"],[28,[37,18],[\\\"code\\\",\\\"name\\\"],null],[30,0,[\\\"model\\\",\\\"glAccounts\\\",\\\"last\\\",\\\"value\\\"]],true,[30,0,[\\\"model\\\",\\\"projectChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,5],[\\\"entity.builda-price.projects.project.settings.salesGlAccountDescription\\\"],null],[28,[37,5],[\\\"entity.builda-price.projects.project.settings.No default account\\\"],null],true,[30,0,[\\\"accountingPlatform\\\",\\\"glAccountsSearchField\\\"]],[28,[37,13],[[30,0,[\\\"saveProject\\\",\\\"performCount\\\"]],0],null],[28,[37,11],[[28,[37,12],[[30,0,[\\\"salesGlAccountIsOverridden\\\"]]],null],[30,0,[\\\"saveProject\\\",\\\"isRunning\\\"]],[28,[37,12],[[30,0,[\\\"canManageProject\\\"]]],null]],null]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"mx-3 d-flex align-items-center mt-1\\\"],[12],[1,\\\"\\\\n              \\\"],[10,1],[12],[1,[28,[35,5],[\\\"common.Override\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[8,[39,27],[[24,0,\\\"form-check-input m-0 ms-1\\\"],[16,\\\"disabled\\\",[28,[37,11],[[30,0,[\\\"saveProject\\\",\\\"isRunning\\\"]],[28,[37,12],[[30,0,[\\\"canManageProject\\\"]]],null]],null]],[4,[38,22],[\\\"click\\\",[28,[37,23],[[30,0,[\\\"toggleSalesGlAccountOverride\\\"]],[30,0,[\\\"model\\\",\\\"projectChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"salesGlAccountIsOverridden\\\"]]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,15],[[30,0,[\\\"accountingPlatform\\\",\\\"isActive\\\"]],[28,[37,28],[[30,0,[\\\"accountingPlatform\\\",\\\"activePlatform\\\"]],\\\"xero\\\"],null],[28,[37,19],[\\\"canUseXeroIntegration\\\"],null]],null],[[[41,[28,[37,28],[[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"region\\\"]],\\\"AUS\\\"],null],[[[1,\\\"            \\\"],[8,[39,10],[[16,\\\"disabled\\\",[30,0,[\\\"saveProject\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@options\\\",\\\"@model\\\",\\\"@searchEnabled\\\",\\\"@allowClear\\\",\\\"@searchField\\\",\\\"@afterOptionsComponent\\\",\\\"@forceValidationVisible\\\",\\\"@description\\\"],[\\\"powerSelect\\\",[28,[37,5],[\\\"entity.builda-price.projects.project.settings.Xero tracking category\\\"],null],\\\"xeroTrackingOption\\\",[28,[37,18],[\\\"trackingOptionName\\\"],null],[30,0,[\\\"xeroTrackingOptions\\\"]],[30,0,[\\\"model\\\",\\\"projectChangeset\\\",\\\"last\\\",\\\"value\\\"]],true,true,\\\"trackingOptionName\\\",[50,\\\"power-select-after-options-button\\\",0,null,[[\\\"onClick\\\",\\\"icon\\\",\\\"text\\\",\\\"isLoading\\\",\\\"loadingText\\\"],[[28,[37,30],[[30,0,[\\\"syncXeroTrackingCategoryOptions\\\"]]],null],\\\"sync\\\",[28,[37,5],[\\\"entity.builda-price.projects.project.settings.Reload Xero category options\\\"],null],[30,0,[\\\"syncXeroTrackingCategoryOptions\\\",\\\"isRunning\\\"]],[28,[37,5],[\\\"entity.builda-price.projects.project.settings.Loading Xero tracking options\\\"],null]]]],[28,[37,13],[[30,0,[\\\"saveProject\\\",\\\"performCount\\\"]],0],null],[28,[37,5],[\\\"entity.builda-price.projects.project.settings.xeroProvidesTrackingCategoriesToTagLineItemsInXeroToAidReporting\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canManageProject\\\"]],[[[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"my-2\\\"],[12],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.settings.Primary contact details\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[8,[39,10],[[16,\\\"disabled\\\",[28,[37,11],[[30,0,[\\\"saveProject\\\",\\\"isRunning\\\"]],[28,[37,12],[[30,0,[\\\"canManageProject\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,5],[\\\"common.Name\\\"],null],\\\"contactName\\\",[30,0,[\\\"model\\\",\\\"projectChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,13],[[30,0,[\\\"saveProject\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[8,[39,10],[[16,\\\"disabled\\\",[28,[37,11],[[30,0,[\\\"saveProject\\\",\\\"isRunning\\\"]],[28,[37,12],[[30,0,[\\\"canManageProject\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,5],[\\\"common.Email\\\"],null],\\\"contactEmail\\\",[30,0,[\\\"model\\\",\\\"projectChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,13],[[30,0,[\\\"saveProject\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[8,[39,10],[[16,\\\"disabled\\\",[28,[37,11],[[30,0,[\\\"saveProject\\\",\\\"isRunning\\\"]],[28,[37,12],[[30,0,[\\\"canManageProject\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,5],[\\\"common.Phone number\\\"],null],\\\"contactNumber\\\",[30,0,[\\\"model\\\",\\\"projectChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,13],[[30,0,[\\\"saveProject\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[8,[39,10],[[16,\\\"disabled\\\",[28,[37,11],[[30,0,[\\\"saveProject\\\",\\\"isRunning\\\"]],[28,[37,12],[[30,0,[\\\"canManageProject\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,5],[\\\"entity.builda-price.projects.project.settings.Postal address\\\"],null],\\\"contactAddress\\\",[30,0,[\\\"model\\\",\\\"projectChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,13],[[30,0,[\\\"saveProject\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canManageProject\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canManageProject\\\"]],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline\\\"],[16,\\\"disabled\\\",[28,[37,11],[[30,0,[\\\"deleteProject\\\",\\\"isRunning\\\"]],[30,0,[\\\"saveProject\\\",\\\"isRunning\\\"]]],null]],[24,\\\"data-test-project-settings-delete-or-archive-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,22],[\\\"click\\\",[52,[30,0,[\\\"canDelete\\\"]],[28,[37,32],[[30,0],[28,[37,24],[[30,0,[\\\"isDeletingProject\\\"]]],null],true],null],[28,[37,32],[[30,0],[28,[37,24],[[30,0,[\\\"isArchivingProject\\\"]]],null],true],null]]],null],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[[30,0,[\\\"archiveProject\\\",\\\"isRunning\\\"]],[30,0,[\\\"deleteProject\\\",\\\"isRunning\\\"]]],null],[[[1,\\\"                    \\\"],[1,[28,[35,5],[\\\"common.Deleting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.settings.Delete project\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveProject\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,22],[\\\"click\\\",[28,[37,30],[[30,0,[\\\"saveProject\\\"]],[30,0,[\\\"model\\\",\\\"projectChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveProject\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,5],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,5],[\\\"common.Save details\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,19],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageProfitMargin\\\"],null],[[[1,\\\"        \\\"],[8,[39,8],[[24,0,\\\"width--large\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,33],null,[[\\\"@default\\\",\\\"@profitMargin\\\",\\\"@description\\\",\\\"@forceValidationVisible\\\",\\\"@disabled\\\"],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"defaultPercentageValues\\\"]],[30,0,[\\\"model\\\",\\\"profitMarginChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,5],[\\\"shared.profit-margins.profitMarginDescription\\\"],null],[28,[37,13],[[30,0,[\\\"saveProject\\\",\\\"performCount\\\"]],0],null],[30,0,[\\\"saveProfitMargin\\\",\\\"isRunning\\\"]]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"canManageProfitMargin\\\"]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-3\\\"],[12],[1,\\\"\\\\n              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveProfitMargin\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,22],[\\\"click\\\",[28,[37,30],[[30,0,[\\\"saveProfitMargin\\\"]],[30,0,[\\\"model\\\",\\\"projectChangeset\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"model\\\",\\\"profitMarginChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveProfitMargin\\\",\\\"isRunning\\\"]],[[[1,\\\"                  \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,5],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[28,[35,5],[\\\"shared.profit-margins.Save profit margins\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[8,[39,34],null,[[\\\"@visible\\\",\\\"@title\\\",\\\"@messages\\\",\\\"@confirmText\\\",\\\"@deleteButtonText\\\",\\\"@deletingButtonText\\\",\\\"@onDelete\\\",\\\"@onCancel\\\"],[[30,0,[\\\"isDeletingProject\\\"]],[28,[37,5],[\\\"entity.builda-price.projects.project.settings.Delete project\\\"],null],[30,0,[\\\"deleteMessages\\\"]],[28,[37,5],[\\\"entity.builda-price.projects.project.settings.delete project\\\"],null],[28,[37,5],[\\\"entity.builda-price.projects.project.settings.Delete project\\\"],null],[28,[37,5],[\\\"common.Deleting\\\"],null],[28,[37,30],[[30,0,[\\\"deleteProject\\\"]]],null],[28,[37,23],[[28,[37,24],[[30,0,[\\\"isDeletingProject\\\"]]],null],false],null]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isArchivingProject\\\"]],[[[1,\\\"  \\\"],[8,[39,35],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\"],[\\\"modal\\\",[28,[37,23],[[28,[37,24],[[30,0,[\\\"isArchivingProject\\\"]]],null],false],null],true,\\\"modal-content w-auto\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h5\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.settings.Delete project\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[14,\\\"data-test-confirm-delete-dialog\\\",\\\"\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,\\\"data-test-project-settings-archive-dialog\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.settings.youCannotDeleteThisProjectBecauseItHasCostsAssignedToIt\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.settings.wouldYouLikeToArchiveTheProjectInstead\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"float-end d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"archiveProject\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-danger text-white ms-2\\\"],[15,\\\"disabled\\\",true],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.settings.Archiving project\\\"],null]],[1,\\\"…\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"archiveProject\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,22],[\\\"click\\\",[28,[37,23],[[28,[37,24],[[30,0,[\\\"isArchivingProject\\\"]]],null],false],null]],null],[12],[1,[28,[35,5],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"archiveProject\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,22],[\\\"click\\\",[28,[37,30],[[30,0,[\\\"archiveProject\\\"]]],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.settings.Archive project\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"workerAllocationModalVisible\\\"]],[[[1,\\\"  \\\"],[8,[39,39],null,[[\\\"@project\\\",\\\"@onClose\\\"],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,23],[[28,[37,24],[[30,0,[\\\"workerAllocationModalVisible\\\"]]],null],false],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[],false,[\\\"article\\\",\\\"header\\\",\\\"if\\\",\\\"media\\\",\\\"h2\\\",\\\"t\\\",\\\"div\\\",\\\"loading-icon\\\",\\\"ptl-form\\\",\\\"h3\\\",\\\"ptl-input\\\",\\\"or\\\",\\\"not\\\",\\\"gt\\\",\\\"new-combo-box\\\",\\\"and\\\",\\\"google-map\\\",\\\"math\\\",\\\"array\\\",\\\"includes-feature-flags\\\",\\\"label\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"includes\\\",\\\"span\\\",\\\"input\\\",\\\"eq\\\",\\\"component\\\",\\\"perform\\\",\\\"h4\\\",\\\"action\\\",\\\"profit-margin-form\\\",\\\"confirm-delete\\\",\\\"modal-dialog\\\",\\\"h5\\\",\\\"p\\\",\\\"footer\\\",\\\"worker-project-allocation-modal\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/settings.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/stage-payments\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4 flex-grow-1'>\n    {{#if (media 'isDesktop')}}\n      <header class='border-bottom mb-3 pb-2 d-flex align-items-center'>\n        <div class='flex-grow-1 d-flex justify-content-end align-items-center'>\n          <div class='flex-grow-1'>\n            <h2 class='m-0 my-2'>\n              {{t 'shared.stage-payments.Stage payments'}}\n            </h2>\n          </div>\n          <span class='me-1'>\n            <SelectInput\n              @value={{this.status}}\n              @action={{fn (mut this.status)}}\n              @class='form-control select-box'\n              @disabled={{this.pageIsLoading}}\n              as |si|\n            >\n              <si.option @value='ALL'>{{t\n                  'entity.builda-price.projects.project.stage-payments.All stages'\n                }}</si.option>\n              <si.option @value='CLAIMED'>{{t\n                  'entity.builda-price.projects.project.stage-payments.Claimed stages'\n                }}</si.option>\n              <si.option @value='UNCLAIMED'>{{t\n                  'entity.builda-price.projects.project.stage-payments.Unclaimed stages'\n                }}</si.option>\n            </SelectInput>\n          </span>\n          <div class='m-0 p-0 me-1'>\n            <button\n              type='button'\n              class='btn btn-secondary text-white'\n              disabled={{or this.pageIsLoading this.downloadAsPdf.isRunning}}\n              {{on 'click' (fn (mut this.showDownloadOptions) true)}}\n            >\n              {{t 'common.Download'}}\n            </button>\n          </div>\n        </div>\n      </header>\n    {{/if}}\n    {{#if this.pageIsLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      {{#if this.isEditable}}\n        <div class='d-flex mb-3 justify-content-end align-items-center'>\n          <button\n            type='button'\n            class='btn btn-link text-primary text-decoration-underline me-2'\n            {{on 'click' (fn (mut this.showProjectLevelContractTermsModal) true)}}\n          >\n            {{t 'entity.builda-price.projects.project.stage-payments.Set notes'}}\n          </button>\n  \n          <div class='d-flex align-items-center'>\n            <DropdownButton\n              @buttonText={{if\n                this.addStagePayments.isRunning\n                (t 'common.Adding')\n                (t 'common.Add')\n              }}\n              @onPrimaryClick={{(perform this.addStagePayments 1)}}\n              @disabled={{this.pageIsLoading}}\n              @btnClass='btn btn-success'\n            >\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (fn (mut this.showCreateStagesModal) true)}}\n              >\n                {{t\n                  'entity.builda-price.projects.project.stage-payments.Add multiple'\n                }}\n              </button>\n            </DropdownButton>\n          </div>\n        </div>\n      {{/if}}\n  \n      {{#if this.model.stagePayments.lastSuccessful.value.length}}\n        <div class='d-flex flex-column flex-lg-row border card rounded mb-3'>\n          <div class='col-lg-4'>\n            <div class='card-body'>\n              <h5 class='card-title'>{{t 'common.Quote'}}</h5>\n              <p class='card-text'>\n                {{number-format\n                  this.model.stagePaymentsValues.lastSuccessful.value.quote\n                  style='currency'\n                }}\n              </p>\n            </div>\n          </div>\n          <div class='col-lg-4'>\n            <div class='card-body'>\n              <h5 class='card-title'>{{t\n                  'entity.builda-price.projects.project.stage-payments.Stages allocated'\n                }}</h5>\n              <p class='card-text'>\n                {{number-format\n                  this.model.stagePaymentsValues.lastSuccessful.value.stagesValue\n                  style='currency'\n                }}\n              </p>\n            </div>\n          </div>\n          <div class='col-lg-4'>\n            <div class='card-body'>\n              <h5 class='card-title'>{{t\n                  'entity.builda-price.projects.project.stage-payments.Remaining quote'\n                }}</h5>\n              <p class='card-text'>\n                {{number-format this.remainingQuote style='currency'}}\n              </p>\n            </div>\n          </div>\n        </div>\n  \n        <div class='mb-2'>\n          {{#if this.selectedStages.size}}\n            <button\n              class='btn btn-link text-danger text-decoration-underline'\n              type='button'\n              {{on 'click' (fn (mut this.showBulkDeleteStagesModal) true)}}\n              disabled={{or (not this.selectedStages.size) this.pageIsLoading}}\n            >\n              {{t 'common.Delete'}}\n            </button>\n            <button\n              type='button'\n              class='btn btn-link text-primary text-decoration-underline'\n              {{on 'click' (fn (mut this.showBulkActionsModal) true)}}\n            >\n              {{t\n                'entity.builda-price.projects.project.stage-payments.Set value'\n              }}\n            </button>\n          {{else}}\n            <div style='min-height: 33.5px'></div>\n          {{/if}}\n        </div>\n        <div class='stage-payments__table-container'>\n          <PaginationTable\n            @tableHeader={{this.tableHeader}}\n            @tableData={{this.tableData}}\n            @onChangePageIndex={{this.onChangePage}}\n            @onChangePageSize={{this.onChangePageSize}}\n            @noDataText={{t 'common.No data'}}\n            @pageSizes={{this.model.pageSizes}}\n            @pageSize={{this.model.pageSize}}\n            @pageIndex={{this.model.pageNumber}}\n            @isLoading={{this.tableIsLoading}}\n            @totalRecords={{this.totalRecords}}\n          />\n        </div>\n      {{else}}\n        <div class='mt-5 d-flex flex-column align-items-center'>\n          <FaIcon @icon='coins' @size='2x' class='mt-0 mb-3' />\n          <p class='fs-4 mt-0 mb-3'>\n            <b>\n              {{t\n                'entity.builda-price.projects.project.stage-payments.thisProjectDoesNotHaveAnyStagesPaymentsYet'\n              }}\n            </b>\n          </p>\n          <button\n            class='btn btn btn-primary m-1'\n            type='button'\n            {{on 'click' (fn (mut this.showCreateStagesModal) true)}}\n          >\n            {{t\n              'entity.builda-price.projects.project.stage-payments.Create stages'\n            }}\n          </button>\n        </div>\n      {{/if}}\n    {{/if}}\n  </article>\n  \n  {{#if this.showCreateStagesModal}}\n    <ModalDialog\n      @containerClass='modal-content w-auto'\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n      @onClose={{fn (mut this.showCreateStagesModal) false}}\n    >\n      <div class='modal-body'>\n        <label class='mb-1' for='stages'>\n          {{t\n            'entity.builda-price.projects.project.stage-payments.Enter number of stages'\n          }}<sup class='text-danger'>*</sup>\n        </label>\n        <div class='input-group'>\n          <Input\n            class='form-control'\n            id='stages'\n            @type='number'\n            @value={{this.numberOfStages}}\n            step='1'\n            min='1'\n            disabled={{this.addStagePayments.isRunning}}\n            {{on 'input' this.preventNegative}}\n          />\n        </div>\n      </div>\n      <div class='modal-footer'>\n        <button\n          class='btn btn-secondary'\n          type='button'\n          {{on\n            'click'\n            (pipe\n              (fn (mut this.showCreateStagesModal) false)\n              (fn (mut this.numberOfStages) null)\n            )\n          }}\n        >\n          {{t 'common.Cancel'}}\n        </button>\n        <button\n          class='btn btn-primary'\n          type='button'\n          {{on 'click' (perform this.addStagePayments this.numberOfStages)}}\n          disabled={{or\n            (not this.numberOfStages)\n            this.addStagePayments.isRunning\n          }}\n        >\n          {{#if this.addStagePayments.isRunning}}\n            {{t 'common.Creating'}}&hellip;\n          {{else}}\n            {{t 'common.Create'}}\n          {{/if}}\n        </button>\n  \n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.showNameEditor}}\n    <ModalDialog\n      @containerClass='modal-content w-auto'\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n      @onClose={{fn (mut this.showNameEditor) false}}\n    >\n      {{#let\n        (changeset this.currentStagePayment this.stagePaymentValidationMap)\n        as |stagePayment|\n      }}\n        <div class='modal-body'>\n          <PtlInput\n            @type='text'\n            @label={{t 'common.Name'}}\n            @key='name'\n            @model={{stagePayment}}\n            @forceValidationVisible={{gt this.saveCurrentStage.performCount 0}}\n            disabled={{or this.saveCurrentStage.isRunning (not this.isEditable)}}\n          />\n          <PtlInput\n            @type='number'\n            step='1'\n            min='1'\n            max={{this.totalRecords}}\n            @label={{t\n              'entity.builda-price.projects.project.stage-payments.Stage'\n            }}\n            @key='stageNumber'\n            @model={{stagePayment}}\n            @required={{true}}\n            @forceValidationVisible={{gt this.saveCurrentStage.performCount 0}}\n            disabled={{or this.saveCurrentStage.isRunning (not this.isEditable)}}\n          />\n  \n          <PtlInput\n            @type='percentage'\n            @label={{t 'common.Retentions'}}\n            @key='retention'\n            placeholder='0.0%'\n            @model={{stagePayment}}\n            @forceValidationVisible={{gt this.saveCurrentStage.performCount 0}}\n            disabled={{or this.saveCurrentStage.isRunning (not this.isEditable)}}\n          />\n        </div>\n  \n        <div class='modal-footer'>\n  \n          <button\n            class='btn btn-secondary'\n            type='button'\n            {{on 'click' (fn (mut this.showNameEditor) false)}}\n          >\n            {{t 'common.Cancel'}}\n          </button>\n          {{#if this.isEditable}}\n            <button\n              class='btn btn-primary'\n              type='button'\n              {{on 'click' (perform this.saveCurrentStage stagePayment)}}\n              disabled={{this.saveCurrentStage.isRunning}}\n            >\n              {{#if this.saveCurrentStage.isRunning}}\n                {{t 'common.Saving'}}&hellip;\n              {{else}}\n                {{t 'common.Save'}}\n              {{/if}}\n            </button>\n          {{/if}}\n        </div>\n      {{/let}}\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.showValueEditor}}\n    <ModalDialog\n      @containerClass='modal-content w-auto'\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n      @onClose={{fn (mut this.showValueEditor) false}}\n    >\n  \n      <div hidden {{did-insert (perform this.loadDataForValueModal)}} />\n  \n      {{#if this.loadData.isRunning}}\n        <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n      {{else}}\n        {{#let\n          (changeset this.currentStagePayment this.stagePaymentValidationMap)\n          as |stagePayment|\n        }}\n          <div class='modal-body'>\n            <PtlInput\n              @type='currency'\n              @label={{t 'common.Value'}}\n              @key='value'\n              @model={{stagePayment}}\n              @required={{true}}\n              placeholder='$0.00'\n              @forceValidationVisible={{gt this.saveCurrentStage.performCount 0}}\n              disabled={{this.saveCurrentStage.isRunning}}\n            />\n            <div class='d-flex align-items-center'>\n              <button\n                type='button'\n                class='btn btn-link text-decoration-underline'\n                disabled={{or\n                  (not this.model.project.last.value.currentQuoteVersion)\n                  (lt this.useValueFromTasks 1)\n                }}\n                {{on 'click' (perform this.setUseValueFromTasks stagePayment)}}\n              >\n                {{t\n                  'entity.builda-price.projects.project.stage-payments.Use tasks value'\n                }}\n              </button>\n              <button\n                type='button'\n                class='btn btn-link text-decoration-underline ms-2'\n                disabled={{or\n                  (not this.model.project.last.value.currentQuoteVersion)\n                  (not this.remainingQuoteValue)\n                }}\n                {{on 'click' (perform this.setRemainingQuoteValue stagePayment)}}\n              >\n                {{t\n                  'entity.builda-price.projects.project.stage-payments.Use remaining quote'\n                }}\n                {{number-format this.remainingQuote style='currency'}}\n              </button>\n            </div>\n          </div>\n          <div class='modal-footer'>\n            <button\n              class='btn btn-secondary'\n              type='button'\n              {{on 'click' (fn (mut this.showValueEditor) false)}}\n            >\n              {{t 'common.Cancel'}}\n            </button>\n            <button\n              class='btn btn-primary'\n              type='button'\n              {{on 'click' (perform this.saveCurrentStage stagePayment)}}\n              disabled={{this.saveCurrentStage.isRunning}}\n            >\n              {{#if this.saveCurrentStage.isRunning}}\n                {{t 'common.Saving'}}&hellip;\n              {{else}}\n                {{t 'common.Save'}}\n              {{/if}}\n            </button>\n          </div>\n        {{/let}}\n      {{/if}}\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.showDateEditor}}\n    <ModalDialog\n      @containerClass='modal-content w-auto'\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n      @onClose={{fn (mut this.showDateEditor) false}}\n    >\n      {{#let\n        (changeset this.currentStagePayment this.stagePaymentValidationMap)\n        as |stagePayment|\n      }}\n        <div class='modal-body'>\n          <PtlInput\n            @type='date'\n            @label={{t 'common.Due date'}}\n            @key='dueDate'\n            @model={{stagePayment}}\n            @forceValidationVisible={{gt this.saveCurrentStage.performCount 0}}\n            disabled={{this.saveCurrentStage.isRunning}}\n          />\n        </div>\n  \n        <div class='modal-footer'>\n          <button\n            class='btn btn-secondary'\n            type='button'\n            {{on 'click' (fn (mut this.showDateEditor) false)}}\n          >\n            {{t 'common.Cancel'}}\n          </button>\n          <button\n            class='btn btn-primary'\n            type='button'\n            {{on 'click' (perform this.saveCurrentStage stagePayment)}}\n            disabled={{this.saveCurrentStage.isRunning}}\n          >\n            {{#if this.saveCurrentStage.isRunning}}\n              {{t 'common.Saving'}}&hellip;\n            {{else}}\n              {{t 'common.Save'}}\n            {{/if}}\n          </button>\n        </div>\n      {{/let}}\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.showTaskSelectorModal}}\n    <StagePaymentTaskSelector\n      @project={{this.model.project.last.value}}\n      @currentStageLinkedTasks={{this.currentStageLinkedTasks}}\n      @allStageLinkedTasks={{this.allStageLinkedTasks}}\n      @stagePayment={{this.currentStagePayment}}\n      @onClose={{fn (mut this.showTaskSelectorModal) false}}\n      @editable={{and\n        this.isEditable\n        (not-eq this.currentStagePayment.status 'CLAIMED')\n      }}\n    />\n  {{/if}}\n  \n  {{#if this.showChecklistModal}}\n    <Checklist\n      @checklist={{this.currentChecklist}}\n      @editable={{and\n        this.isEditable\n        (not-eq this.currentStagePayment.status 'CLAIMED')\n      }}\n      @stagePayment={{this.currentStagePayment}}\n      @addNewQuestion={{this.addNewQuestion}}\n      @deleteQuestion={{this.deleteQuestion}}\n      @onClose={{fn (mut this.showChecklistModal) false}}\n    />\n  {{/if}}\n  \n  {{#if this.showBulkDeleteStagesModal}}\n    <ModalDialog\n      @onClose={{fn (mut this.showBulkDeleteStagesModal) false}}\n      @containerClass='modal-content w-auto'\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body'>\n        <p>\n          {{t\n            'entity.builda-price.projects.project.stage-payments.areYouSureYouWantToDeleteStage'\n            stage=(pluralize this.selectedStages.size 'stage')\n          }}\n        </p>\n      </div>\n      <div class='modal-footer'>\n        <button\n          class='btn btn-danger text-white'\n          type='button'\n          disabled={{this.deleteStages.isRunning}}\n          {{on 'click' (perform this.deleteStages)}}\n        >\n          {{#if this.deleteStages.isRunning}}\n            {{t 'common.Deleting'}}&hellip;\n          {{else}}\n            {{t 'common.Delete'}}\n          {{/if}}\n        </button>\n        <button\n          class='btn btn-secondary text-white'\n          type='button'\n          disabled={{this.deleteStages.isRunning}}\n          {{on 'click' (fn (mut this.showBulkDeleteStagesModal) false)}}\n        >\n          {{t 'common.Cancel'}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.showBulkActionsModal}}\n    <ModalDialog\n      @containerClass='modal-content w-auto'\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n      @onClose={{fn (mut this.showBulkActionsModal) false}}\n    >\n      <div class='modal-body'>\n        <div class='mb-3'>\n          <label class='mb-1' for='value'>\n            {{t 'common.Value'}}\n          </label>\n          <div class='input-group'>\n            <FormattedInput\n              required={{true}}\n              @class='text-input w-100'\n              placeholder='$0.00'\n              @update={{action (mut this.bulkActionsStageValue)}}\n              @number={{this.bulkActionsStageValue}}\n              @format='currency'\n              disabled={{this.saveBulkActionDistributeValue.isRunning}}\n            />\n          </div>\n        </div>\n        <div class='d-flex align-items-center'>\n          <button\n            type='button'\n            class='btn btn-link text-decoration-underline'\n            {{on 'click' this.distributeRemainingQuoteAcrossStages}}\n          >\n            {{t 'entity.builda-price.projects.project.stage-payments.Use quote'}}\n            {{number-format\n              this.remainingQuoteValueInContextWithStages\n              style='currency'\n            }}\n          </button>\n        </div>\n      </div>\n  \n      <div class='modal-footer'>\n        <button\n          class='btn btn-secondary'\n          type='button'\n          {{on\n            'click'\n            (pipe\n              (fn (mut this.showBulkActionsModal) false)\n              (fn (mut this.bulkActionsStageValue) 0)\n            )\n          }}\n        >\n          {{t 'common.Cancel'}}\n        </button>\n        <button\n          class='btn btn-primary'\n          type='button'\n          {{on 'click' (perform this.saveBulkActionDistributeValue)}}\n          disabled={{this.saveBulkActionDistributeValue.isRunning}}\n        >\n          {{#if this.saveBulkActionDistributeValue.isRunning}}\n            {{t 'common.Saving'}}&hellip;\n          {{else}}\n            {{t 'common.Save'}}\n          {{/if}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.showProjectLevelContractTermsModal}}\n    <ModalDialog\n      @containerClass='modal-content w-auto'\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n      @onClose={{fn (mut this.showProjectLevelContractTermsModal) false}}\n    >\n      {{#let\n        (changeset this.stagePaymentOption this.stagePaymentsOptionsValidationMap)\n        as |stagePaymentOptionsModel|\n      }}\n        <div class='modal-body'>\n          <PtlInput\n            @type='textarea'\n            @label={{t\n              'entity.builda-price.projects.project.stage-payments.Additional notes'\n            }}\n            @key='footerNotes'\n            @model={{stagePaymentOptionsModel}}\n            disabled={{this.saveStagePaymentOptions.isRunning}}\n            @forceValidationVisible={{gt\n              this.saveStagePaymentOptions.performCount\n              0\n            }}\n          />\n        </div>\n        <div class='modal-footer'>\n          <button\n            class='btn btn-secondary'\n            type='button'\n            {{on\n              'click'\n              (fn (mut this.showProjectLevelContractTermsModal) false)\n            }}\n          >\n            {{t 'common.Cancel'}}\n          </button>\n          <button\n            class='btn btn-primary'\n            type='button'\n            {{on\n              'click'\n              (perform this.saveStagePaymentOptions stagePaymentOptionsModel)\n            }}\n            disabled={{this.saveStagePaymentOptions.isRunning}}\n          >\n            {{#if this.saveStagePaymentOptions.isRunning}}\n              {{t 'common.Saving'}}&hellip;\n            {{else}}\n              {{t 'common.Save'}}\n            {{/if}}\n          </button>\n        </div>\n      {{/let}}\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.showDownloadOptions}}\n    <ModalDialog\n      @onClose={{this.closeDownloadOptions}}\n      @containerClass='modal-content w-auto'\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body'>\n        <div class='form-check mt-1'>\n          <label for='includeTasks' class='form-check-label'>\n            <input\n              type='checkbox'\n              id='includeTasks'\n              class='form-check-input'\n              disabled={{this.downloadAsPdf.isRunning}}\n              checked={{this.includeTasks}}\n              {{on 'click' (fn this.toggleProperty 'includeTasks')}}\n            />\n            {{t\n              'entity.builda-price.projects.project.stage-payments.Include tasks'\n            }}\n          </label>\n        </div>\n        <div class='form-check mt-1 mb-1'>\n          <label for='includeCheckListItems' class='form-check-label'>\n            <input\n              type='checkbox'\n              id='includeCheckListItems'\n              class='form-check-input'\n              disabled={{this.downloadAsPdf.isRunning}}\n              checked={{this.includeCheckListItems}}\n              {{on 'click' (fn this.toggleProperty 'includeCheckListItems')}}\n            />\n            {{t\n              'entity.builda-price.projects.project.stage-payments.Include checklist'\n            }}\n          </label>\n        </div>\n      </div>\n      <div class='modal-footer'>\n        <button\n          class='btn btn-secondary'\n          type='button'\n          {{on 'click' this.closeDownloadOptions}}\n        >\n          {{t 'common.Cancel'}}\n        </button>\n        <button\n          class='btn btn-primary'\n          type='button'\n          {{on 'click' (perform this.downloadAsPdf)}}\n          disabled={{this.downloadAsPdf.isRunning}}\n        >\n          {{#if this.downloadAsPdf.isRunning}}\n            {{t 'common.Downloading'}}&hellip;\n          {{else}}\n            {{t 'common.Download'}}\n          {{/if}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"HHtwgXsR\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4 flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,2],[\\\"isDesktop\\\"],null],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 pb-2 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"flex-grow-1 d-flex justify-content-end align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h2\\\"],[14,0,\\\"m-0 my-2\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"shared.stage-payments.Stage payments\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"me-1\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,8],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\",\\\"@disabled\\\"],[[30,0,[\\\"status\\\"]],[28,[37,9],[[28,[37,10],[[30,0,[\\\"status\\\"]]],null]],null],\\\"form-control select-box\\\",[30,0,[\\\"pageIsLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ALL\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"entity.builda-price.projects.project.stage-payments.All stages\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"CLAIMED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"entity.builda-price.projects.project.stage-payments.Claimed stages\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"UNCLAIMED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"entity.builda-price.projects.project.stage-payments.Unclaimed stages\\\"],null]]],[]]]]],[1,\\\"\\\\n          \\\"]],[1]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"m-0 p-0 me-1\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white\\\"],[16,\\\"disabled\\\",[28,[37,12],[[30,0,[\\\"pageIsLoading\\\"]],[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"showDownloadOptions\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"common.Download\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"pageIsLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,14],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"isEditable\\\"]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"d-flex mb-3 justify-content-end align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-primary text-decoration-underline me-2\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"showProjectLevelContractTermsModal\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"entity.builda-price.projects.project.stage-payments.Set notes\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,15],null,[[\\\"@buttonText\\\",\\\"@onPrimaryClick\\\",\\\"@disabled\\\",\\\"@btnClass\\\"],[[52,[30,0,[\\\"addStagePayments\\\",\\\"isRunning\\\"]],[28,[37,6],[\\\"common.Adding\\\"],null],[28,[37,6],[\\\"common.Add\\\"],null]],[28,[37,16],[[30,0,[\\\"addStagePayments\\\"]],1],null],[30,0,[\\\"pageIsLoading\\\"]],\\\"btn btn-success\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"showCreateStagesModal\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"entity.builda-price.projects.project.stage-payments.Add multiple\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"stagePayments\\\",\\\"lastSuccessful\\\",\\\"value\\\",\\\"length\\\"]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"d-flex flex-column flex-lg-row border card rounded mb-3\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-lg-4\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"card-body\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h5\\\"],[14,0,\\\"card-title\\\"],[12],[1,[28,[35,6],[\\\"common.Quote\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[10,2],[14,0,\\\"card-text\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,19],[[30,0,[\\\"model\\\",\\\"stagePaymentsValues\\\",\\\"lastSuccessful\\\",\\\"value\\\",\\\"quote\\\"]]],[[\\\"style\\\"],[\\\"currency\\\"]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-lg-4\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"card-body\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h5\\\"],[14,0,\\\"card-title\\\"],[12],[1,[28,[35,6],[\\\"entity.builda-price.projects.project.stage-payments.Stages allocated\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[10,2],[14,0,\\\"card-text\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,19],[[30,0,[\\\"model\\\",\\\"stagePaymentsValues\\\",\\\"lastSuccessful\\\",\\\"value\\\",\\\"stagesValue\\\"]]],[[\\\"style\\\"],[\\\"currency\\\"]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-lg-4\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"card-body\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h5\\\"],[14,0,\\\"card-title\\\"],[12],[1,[28,[35,6],[\\\"entity.builda-price.projects.project.stage-payments.Remaining quote\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[10,2],[14,0,\\\"card-text\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,19],[[30,0,[\\\"remainingQuote\\\"]]],[[\\\"style\\\"],[\\\"currency\\\"]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"mb-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"selectedStages\\\",\\\"size\\\"]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline\\\"],[16,\\\"disabled\\\",[28,[37,12],[[28,[37,20],[[30,0,[\\\"selectedStages\\\",\\\"size\\\"]]],null],[30,0,[\\\"pageIsLoading\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"showBulkDeleteStagesModal\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-primary text-decoration-underline\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"showBulkActionsModal\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"entity.builda-price.projects.project.stage-payments.Set value\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,0],[14,5,\\\"min-height: 33.5px\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"stage-payments__table-container\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,21],null,[[\\\"@tableHeader\\\",\\\"@tableData\\\",\\\"@onChangePageIndex\\\",\\\"@onChangePageSize\\\",\\\"@noDataText\\\",\\\"@pageSizes\\\",\\\"@pageSize\\\",\\\"@pageIndex\\\",\\\"@isLoading\\\",\\\"@totalRecords\\\"],[[30,0,[\\\"tableHeader\\\"]],[30,0,[\\\"tableData\\\"]],[30,0,[\\\"onChangePage\\\"]],[30,0,[\\\"onChangePageSize\\\"]],[28,[37,6],[\\\"common.No data\\\"],null],[30,0,[\\\"model\\\",\\\"pageSizes\\\"]],[30,0,[\\\"model\\\",\\\"pageSize\\\"]],[30,0,[\\\"model\\\",\\\"pageNumber\\\"]],[30,0,[\\\"tableIsLoading\\\"]],[30,0,[\\\"totalRecords\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"mt-5 d-flex flex-column align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,22],[[24,0,\\\"mt-0 mb-3\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"coins\\\",\\\"2x\\\"]],null],[1,\\\"\\\\n        \\\"],[10,2],[14,0,\\\"fs-4 mt-0 mb-3\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"b\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"entity.builda-price.projects.project.stage-payments.thisProjectDoesNotHaveAnyStagesPaymentsYet\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn btn-primary m-1\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"showCreateStagesModal\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"entity.builda-price.projects.project.stage-payments.Create stages\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"showCreateStagesModal\\\"]],[[[1,\\\"  \\\"],[8,[39,24],null,[[\\\"@containerClass\\\",\\\"@overlayClass\\\",\\\"@translucentOverlay\\\",\\\"@onClose\\\"],[\\\"modal-content w-auto\\\",\\\"modal\\\",true,[28,[37,9],[[28,[37,10],[[30,0,[\\\"showCreateStagesModal\\\"]]],null],false],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[14,\\\"for\\\",\\\"stages\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"entity.builda-price.projects.project.stage-payments.Enter number of stages\\\"],null]],[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"input-group\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,27],[[24,0,\\\"form-control\\\"],[24,1,\\\"stages\\\"],[24,\\\"step\\\",\\\"1\\\"],[24,\\\"min\\\",\\\"1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"addStagePayments\\\",\\\"isRunning\\\"]]],[4,[38,13],[\\\"input\\\",[30,0,[\\\"preventNegative\\\"]]],null]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"number\\\",[30,0,[\\\"numberOfStages\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,28],[[28,[37,9],[[28,[37,10],[[30,0,[\\\"showCreateStagesModal\\\"]]],null],false],null],[28,[37,9],[[28,[37,10],[[30,0,[\\\"numberOfStages\\\"]]],null],null],null]],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[28,[37,12],[[28,[37,20],[[30,0,[\\\"numberOfStages\\\"]]],null],[30,0,[\\\"addStagePayments\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"addStagePayments\\\"]],[30,0,[\\\"numberOfStages\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"addStagePayments\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,6],[\\\"common.Creating\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,6],[\\\"common.Create\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showNameEditor\\\"]],[[[1,\\\"  \\\"],[8,[39,24],null,[[\\\"@containerClass\\\",\\\"@overlayClass\\\",\\\"@translucentOverlay\\\",\\\"@onClose\\\"],[\\\"modal-content w-auto\\\",\\\"modal\\\",true,[28,[37,9],[[28,[37,10],[[30,0,[\\\"showNameEditor\\\"]]],null],false],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[44,[[28,[37,30],[[30,0,[\\\"currentStagePayment\\\"]],[30,0,[\\\"stagePaymentValidationMap\\\"]]],null]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,31],[[16,\\\"disabled\\\",[28,[37,12],[[30,0,[\\\"saveCurrentStage\\\",\\\"isRunning\\\"]],[28,[37,20],[[30,0,[\\\"isEditable\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Name\\\"],null],\\\"name\\\",[30,2],[28,[37,32],[[30,0,[\\\"saveCurrentStage\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[8,[39,31],[[24,\\\"step\\\",\\\"1\\\"],[24,\\\"min\\\",\\\"1\\\"],[16,\\\"max\\\",[30,0,[\\\"totalRecords\\\"]]],[16,\\\"disabled\\\",[28,[37,12],[[30,0,[\\\"saveCurrentStage\\\",\\\"isRunning\\\"]],[28,[37,20],[[30,0,[\\\"isEditable\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"number\\\",[28,[37,6],[\\\"entity.builda-price.projects.project.stage-payments.Stage\\\"],null],\\\"stageNumber\\\",[30,2],true,[28,[37,32],[[30,0,[\\\"saveCurrentStage\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,31],[[24,\\\"placeholder\\\",\\\"0.0%\\\"],[16,\\\"disabled\\\",[28,[37,12],[[30,0,[\\\"saveCurrentStage\\\",\\\"isRunning\\\"]],[28,[37,20],[[30,0,[\\\"isEditable\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"percentage\\\",[28,[37,6],[\\\"common.Retentions\\\"],null],\\\"retention\\\",[30,2],[28,[37,32],[[30,0,[\\\"saveCurrentStage\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"showNameEditor\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEditable\\\"]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveCurrentStage\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"saveCurrentStage\\\"]],[30,2]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveCurrentStage\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"common.Save\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[2]]],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showValueEditor\\\"]],[[[1,\\\"  \\\"],[8,[39,24],null,[[\\\"@containerClass\\\",\\\"@overlayClass\\\",\\\"@translucentOverlay\\\",\\\"@onClose\\\"],[\\\"modal-content w-auto\\\",\\\"modal\\\",true,[28,[37,9],[[28,[37,10],[[30,0,[\\\"showValueEditor\\\"]]],null],false],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\\n    \\\"],[11,0],[24,\\\"hidden\\\",\\\"\\\"],[4,[38,33],[[28,[37,16],[[30,0,[\\\"loadDataForValueModal\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"loadData\\\",\\\"isRunning\\\"]],[[[1,\\\"      \\\"],[8,[39,14],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[44,[[28,[37,30],[[30,0,[\\\"currentStagePayment\\\"]],[30,0,[\\\"stagePaymentValidationMap\\\"]]],null]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,31],[[24,\\\"placeholder\\\",\\\"$0.00\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveCurrentStage\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"currency\\\",[28,[37,6],[\\\"common.Value\\\"],null],\\\"value\\\",[30,3],true,[28,[37,32],[[30,0,[\\\"saveCurrentStage\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-decoration-underline\\\"],[16,\\\"disabled\\\",[28,[37,12],[[28,[37,20],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"currentQuoteVersion\\\"]]],null],[28,[37,34],[[30,0,[\\\"useValueFromTasks\\\"]],1],null]],null]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"setUseValueFromTasks\\\"]],[30,3]],null]],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"entity.builda-price.projects.project.stage-payments.Use tasks value\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-decoration-underline ms-2\\\"],[16,\\\"disabled\\\",[28,[37,12],[[28,[37,20],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"currentQuoteVersion\\\"]]],null],[28,[37,20],[[30,0,[\\\"remainingQuoteValue\\\"]]],null]],null]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"setRemainingQuoteValue\\\"]],[30,3]],null]],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"entity.builda-price.projects.project.stage-payments.Use remaining quote\\\"],null]],[1,\\\"\\\\n              \\\"],[1,[28,[35,19],[[30,0,[\\\"remainingQuote\\\"]]],[[\\\"style\\\"],[\\\"currency\\\"]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"showValueEditor\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveCurrentStage\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"saveCurrentStage\\\"]],[30,3]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveCurrentStage\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"common.Save\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[3]]]],[]]],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showDateEditor\\\"]],[[[1,\\\"  \\\"],[8,[39,24],null,[[\\\"@containerClass\\\",\\\"@overlayClass\\\",\\\"@translucentOverlay\\\",\\\"@onClose\\\"],[\\\"modal-content w-auto\\\",\\\"modal\\\",true,[28,[37,9],[[28,[37,10],[[30,0,[\\\"showDateEditor\\\"]]],null],false],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[44,[[28,[37,30],[[30,0,[\\\"currentStagePayment\\\"]],[30,0,[\\\"stagePaymentValidationMap\\\"]]],null]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,31],[[16,\\\"disabled\\\",[30,0,[\\\"saveCurrentStage\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"date\\\",[28,[37,6],[\\\"common.Due date\\\"],null],\\\"dueDate\\\",[30,4],[28,[37,32],[[30,0,[\\\"saveCurrentStage\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"showDateEditor\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveCurrentStage\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"saveCurrentStage\\\"]],[30,4]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveCurrentStage\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"common.Save\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[4]]],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showTaskSelectorModal\\\"]],[[[1,\\\"  \\\"],[8,[39,35],null,[[\\\"@project\\\",\\\"@currentStageLinkedTasks\\\",\\\"@allStageLinkedTasks\\\",\\\"@stagePayment\\\",\\\"@onClose\\\",\\\"@editable\\\"],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"currentStageLinkedTasks\\\"]],[30,0,[\\\"allStageLinkedTasks\\\"]],[30,0,[\\\"currentStagePayment\\\"]],[28,[37,9],[[28,[37,10],[[30,0,[\\\"showTaskSelectorModal\\\"]]],null],false],null],[28,[37,36],[[30,0,[\\\"isEditable\\\"]],[28,[37,37],[[30,0,[\\\"currentStagePayment\\\",\\\"status\\\"]],\\\"CLAIMED\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showChecklistModal\\\"]],[[[1,\\\"  \\\"],[8,[39,38],null,[[\\\"@checklist\\\",\\\"@editable\\\",\\\"@stagePayment\\\",\\\"@addNewQuestion\\\",\\\"@deleteQuestion\\\",\\\"@onClose\\\"],[[30,0,[\\\"currentChecklist\\\"]],[28,[37,36],[[30,0,[\\\"isEditable\\\"]],[28,[37,37],[[30,0,[\\\"currentStagePayment\\\",\\\"status\\\"]],\\\"CLAIMED\\\"],null]],null],[30,0,[\\\"currentStagePayment\\\"]],[30,0,[\\\"addNewQuestion\\\"]],[30,0,[\\\"deleteQuestion\\\"]],[28,[37,9],[[28,[37,10],[[30,0,[\\\"showChecklistModal\\\"]]],null],false],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showBulkDeleteStagesModal\\\"]],[[[1,\\\"  \\\"],[8,[39,24],null,[[\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@overlayClass\\\",\\\"@translucentOverlay\\\"],[[28,[37,9],[[28,[37,10],[[30,0,[\\\"showBulkDeleteStagesModal\\\"]]],null],false],null],\\\"modal-content w-auto\\\",\\\"modal\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"entity.builda-price.projects.project.stage-payments.areYouSureYouWantToDeleteStage\\\"],[[\\\"stage\\\"],[[28,[37,39],[[30,0,[\\\"selectedStages\\\",\\\"size\\\"]],\\\"stage\\\"],null]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger text-white\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteStages\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"deleteStages\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteStages\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,6],[\\\"common.Deleting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,6],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteStages\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"showBulkDeleteStagesModal\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showBulkActionsModal\\\"]],[[[1,\\\"  \\\"],[8,[39,24],null,[[\\\"@containerClass\\\",\\\"@overlayClass\\\",\\\"@translucentOverlay\\\",\\\"@onClose\\\"],[\\\"modal-content w-auto\\\",\\\"modal\\\",true,[28,[37,9],[[28,[37,10],[[30,0,[\\\"showBulkActionsModal\\\"]]],null],false],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[14,\\\"for\\\",\\\"value\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"common.Value\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"input-group\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,40],[[16,\\\"required\\\",true],[24,\\\"placeholder\\\",\\\"$0.00\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveBulkActionDistributeValue\\\",\\\"isRunning\\\"]]]],[[\\\"@class\\\",\\\"@update\\\",\\\"@number\\\",\\\"@format\\\"],[\\\"text-input w-100\\\",[28,[37,41],[[30,0],[28,[37,10],[[30,0,[\\\"bulkActionsStageValue\\\"]]],null]],null],[30,0,[\\\"bulkActionsStageValue\\\"]],\\\"currency\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-decoration-underline\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"distributeRemainingQuoteAcrossStages\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"entity.builda-price.projects.project.stage-payments.Use quote\\\"],null]],[1,\\\"\\\\n          \\\"],[1,[28,[35,19],[[30,0,[\\\"remainingQuoteValueInContextWithStages\\\"]]],[[\\\"style\\\"],[\\\"currency\\\"]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,28],[[28,[37,9],[[28,[37,10],[[30,0,[\\\"showBulkActionsModal\\\"]]],null],false],null],[28,[37,9],[[28,[37,10],[[30,0,[\\\"bulkActionsStageValue\\\"]]],null],0],null]],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveBulkActionDistributeValue\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"saveBulkActionDistributeValue\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveBulkActionDistributeValue\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,6],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,6],[\\\"common.Save\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showProjectLevelContractTermsModal\\\"]],[[[1,\\\"  \\\"],[8,[39,24],null,[[\\\"@containerClass\\\",\\\"@overlayClass\\\",\\\"@translucentOverlay\\\",\\\"@onClose\\\"],[\\\"modal-content w-auto\\\",\\\"modal\\\",true,[28,[37,9],[[28,[37,10],[[30,0,[\\\"showProjectLevelContractTermsModal\\\"]]],null],false],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[44,[[28,[37,30],[[30,0,[\\\"stagePaymentOption\\\"]],[30,0,[\\\"stagePaymentsOptionsValidationMap\\\"]]],null]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,31],[[16,\\\"disabled\\\",[30,0,[\\\"saveStagePaymentOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"textarea\\\",[28,[37,6],[\\\"entity.builda-price.projects.project.stage-payments.Additional notes\\\"],null],\\\"footerNotes\\\",[30,5],[28,[37,32],[[30,0,[\\\"saveStagePaymentOptions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"showProjectLevelContractTermsModal\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveStagePaymentOptions\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"saveStagePaymentOptions\\\"]],[30,5]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveStagePaymentOptions\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"common.Save\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[5]]],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showDownloadOptions\\\"]],[[[1,\\\"  \\\"],[8,[39,24],null,[[\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@overlayClass\\\",\\\"@translucentOverlay\\\"],[[30,0,[\\\"closeDownloadOptions\\\"]],\\\"modal-content w-auto\\\",\\\"modal\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"form-check mt-1\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"includeTasks\\\"],[14,0,\\\"form-check-label\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"input\\\"],[24,1,\\\"includeTasks\\\"],[24,0,\\\"form-check-input\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[16,\\\"checked\\\",[30,0,[\\\"includeTasks\\\"]]],[24,4,\\\"checkbox\\\"],[4,[38,13],[\\\"click\\\",[28,[37,9],[[30,0,[\\\"toggleProperty\\\"]],\\\"includeTasks\\\"],null]],null],[12],[13],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"entity.builda-price.projects.project.stage-payments.Include tasks\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"form-check mt-1 mb-1\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"includeCheckListItems\\\"],[14,0,\\\"form-check-label\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"input\\\"],[24,1,\\\"includeCheckListItems\\\"],[24,0,\\\"form-check-input\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[16,\\\"checked\\\",[30,0,[\\\"includeCheckListItems\\\"]]],[24,4,\\\"checkbox\\\"],[4,[38,13],[\\\"click\\\",[28,[37,9],[[30,0,[\\\"toggleProperty\\\"]],\\\"includeCheckListItems\\\"],null]],null],[12],[13],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"entity.builda-price.projects.project.stage-payments.Include checklist\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"closeDownloadOptions\\\"]]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,6],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,6],[\\\"common.Download\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"si\\\",\\\"stagePayment\\\",\\\"stagePayment\\\",\\\"stagePayment\\\",\\\"stagePaymentOptionsModel\\\"],false,[\\\"article\\\",\\\"if\\\",\\\"media\\\",\\\"header\\\",\\\"div\\\",\\\"h2\\\",\\\"t\\\",\\\"span\\\",\\\"select-input\\\",\\\"fn\\\",\\\"mut\\\",\\\"button\\\",\\\"or\\\",\\\"on\\\",\\\"loading-icon\\\",\\\"dropdown-button\\\",\\\"perform\\\",\\\"h5\\\",\\\"p\\\",\\\"number-format\\\",\\\"not\\\",\\\"pagination-table\\\",\\\"fa-icon\\\",\\\"b\\\",\\\"modal-dialog\\\",\\\"label\\\",\\\"sup\\\",\\\"input\\\",\\\"pipe\\\",\\\"let\\\",\\\"changeset\\\",\\\"ptl-input\\\",\\\"gt\\\",\\\"did-insert\\\",\\\"lt\\\",\\\"stage-payment-task-selector\\\",\\\"and\\\",\\\"not-eq\\\",\\\"checklist\\\",\\\"pluralize\\\",\\\"formatted-input\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/stage-payments.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/tasks\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"X4KuA/i+\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/tasks.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/tasks/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title=(t 'common.Tasks')}}\n    />\n  {{/unless}}\n  \n  <article class='m-4'>\n    <header class='border-bottom pb-2 mb-2 d-flex align-items-center'>\n      {{#if (media 'isDesktop')}}\n        <h2 class='flex-grow-1 m-0 my-2'>{{t 'common.Tasks'}}</h2>\n      {{/if}}\n      {{#unless this.isLoading}}\n        <div class='d-md-flex align-items-center'>\n          {{#if this.canManageTasks}}\n            {{#if (includes-feature-flags 'entityCanUseCsvTaskFileUploader')}}\n              <button\n                type='button'\n                class='btn btn-secondary text-white text-nowrap m-1'\n                disabled={{this.onLoadTaskTemplate.isRunning}}\n                {{on 'click' (fn (mut this.addingTasksFromTakeoff) true)}}\n              >\n                <FaIcon @icon='upload' />&nbsp;&nbsp;{{t\n                  'shared.task.Add tasks from a file'\n                }}\n              </button>\n            {{/if}}\n  \n            <button\n              type='button'\n              class='btn btn-success text-white text-nowrap m-1'\n              disabled={{this.onLoadTaskTemplate.isRunning}}\n              {{on 'click' (fn (mut this.addingTaskFromTemplate) true)}}\n            >\n              <FaIcon @icon='plus' />&nbsp;&nbsp;{{t\n                'shared.task.Add tasks from template'\n              }}\n            </button>\n          {{/if}}\n        </div>\n      {{/unless}}\n    </header>\n  \n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      {{#if this.taskList.length}}\n        <DragSortList\n          class='d-flex flex-column'\n          @onUpdate={{perform this.onTaskListUpdate}}\n          @itemComponent={{component\n            'nested-task-card'\n            saveNewTask=this.saveNewTask\n            readOnly=(not this.canManageTasks)\n            disableActions=this.onTaskListUpdate.isRunning\n          }}\n          @list={{this.taskList}}\n          {{! to update the order of the tasks you need to see all the tasks }}\n          @disableDragging={{not this.canManageTasks}}\n        />\n        {{#if this.canManageTasks}}\n          <NestedTaskCard::AddTask\n            @saveNewTask={{perform this.saveNewTask}}\n            @disabled={{or this.saveNewTask.isRunning (not this.canManageTasks)}}\n            @autofocus={{true}}\n            @placeholder={{t 'shared.task.Add task'}}\n            data-test-add-parent-task\n          />\n        {{/if}}\n      {{else}}\n        <div class='p-3 d-flex flex-column align-items-center'>\n          <FaIcon @icon='tasks' @size='2x' class='mt-0 mb-3' />\n          <p class='fs-4 mt-0 mb-3'>\n            <b>\n              {{if\n                this.canManageTasks\n                (t\n                  'entity.builda-price.projects.project.tasks.youHaveNotCreatedAnyTasksYet'\n                )\n                (t\n                  'entity.builda-price.projects.project.tasks.There are no tasks'\n                )\n              }}\n            </b>\n          </p>\n          {{#if this.canManageTasks}}\n            <p class='mt-0 mb-3'>\n              {{t\n                'entity.builda-price.projects.project.tasks.Create your first task to get started'\n              }}\n            </p>\n            <div class='d-flex'>\n              <Input\n                aria-label='New task name'\n                placeholder={{t\n                  'entity.builda-price.projects.project.tasks.Task name'\n                }}\n                class='form-control me-2'\n                @type='text'\n                {{on 'keypress' this.onTaskNameInputKeypress}}\n                @value={{this.firstTaskName}}\n              />\n              <button\n                type='button'\n                class='btn btn-primary text-nowrap'\n                disabled={{not this.firstTaskName}}\n                {{on\n                  'click'\n                  (perform this.saveNewTask this.firstTaskName undefined)\n                }}\n              >\n                {{t 'shared.task.Add task'}}\n              </button>\n            </div>\n          {{/if}}\n        </div>\n      {{/if}}\n    {{/if}}\n  </article>\n  \n  {{#if this.addingTasksFromTakeoff}}\n    <TakeoffUploaderModal\n      @project={{this.model.project.last.value}}\n      @onLoadTakeoff={{perform this.onLoadTakeoff}}\n      @onClose={{fn (mut this.addingTasksFromTakeoff) false}}\n    />\n  {{/if}}\n  {{#if this.addingTaskFromTemplate}}\n    <TaskTemplateModal\n      @onLoadTaskTemplate={{perform this.onLoadTaskTemplate}}\n      @parentTasks={{this.parentTasks}}\n      @onClose={{fn (mut this.addingTaskFromTemplate) false}}\n    />\n  {{/if}}\n  */\n  {\n    \"id\": \"hSZelLo/\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"common.Tasks\\\"],null]]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom pb-2 mb-2 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,[28,[35,4],[\\\"common.Tasks\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[51,[30,0,[\\\"isLoading\\\"]]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"d-md-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canManageTasks\\\"]],[[[41,[28,[37,10],[\\\"entityCanUseCsvTaskFileUploader\\\"],null],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white text-nowrap m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"onLoadTaskTemplate\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[28,[37,14],[[30,0,[\\\"addingTasksFromTakeoff\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n              \\\"],[8,[39,15],null,[[\\\"@icon\\\"],[\\\"upload\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"shared.task.Add tasks from a file\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"onLoadTaskTemplate\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[28,[37,14],[[30,0,[\\\"addingTaskFromTemplate\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[8,[39,15],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"shared.task.Add tasks from template\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,16],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"taskList\\\",\\\"length\\\"]],[[[1,\\\"      \\\"],[8,[39,17],[[24,0,\\\"d-flex flex-column\\\"]],[[\\\"@onUpdate\\\",\\\"@itemComponent\\\",\\\"@list\\\",\\\"@disableDragging\\\"],[[28,[37,18],[[30,0,[\\\"onTaskListUpdate\\\"]]],null],[50,\\\"nested-task-card\\\",0,null,[[\\\"saveNewTask\\\",\\\"readOnly\\\",\\\"disableActions\\\"],[[30,0,[\\\"saveNewTask\\\"]],[28,[37,19],[[30,0,[\\\"canManageTasks\\\"]]],null],[30,0,[\\\"onTaskListUpdate\\\",\\\"isRunning\\\"]]]]],[30,0,[\\\"taskList\\\"]],[28,[37,19],[[30,0,[\\\"canManageTasks\\\"]]],null]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canManageTasks\\\"]],[[[1,\\\"        \\\"],[8,[39,20],[[24,\\\"data-test-add-parent-task\\\",\\\"\\\"]],[[\\\"@saveNewTask\\\",\\\"@disabled\\\",\\\"@autofocus\\\",\\\"@placeholder\\\"],[[28,[37,18],[[30,0,[\\\"saveNewTask\\\"]]],null],[28,[37,21],[[30,0,[\\\"saveNewTask\\\",\\\"isRunning\\\"]],[28,[37,19],[[30,0,[\\\"canManageTasks\\\"]]],null]],null],true,[28,[37,4],[\\\"shared.task.Add task\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"p-3 d-flex flex-column align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,15],[[24,0,\\\"mt-0 mb-3\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"tasks\\\",\\\"2x\\\"]],null],[1,\\\"\\\\n        \\\"],[10,2],[14,0,\\\"fs-4 mt-0 mb-3\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"b\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[52,[30,0,[\\\"canManageTasks\\\"]],[28,[37,4],[\\\"entity.builda-price.projects.project.tasks.youHaveNotCreatedAnyTasksYet\\\"],null],[28,[37,4],[\\\"entity.builda-price.projects.project.tasks.There are no tasks\\\"],null]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canManageTasks\\\"]],[[[1,\\\"          \\\"],[10,2],[14,0,\\\"mt-0 mb-3\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.tasks.Create your first task to get started\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"d-flex\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,24],[[24,\\\"aria-label\\\",\\\"New task name\\\"],[16,\\\"placeholder\\\",[28,[37,4],[\\\"entity.builda-price.projects.project.tasks.Task name\\\"],null]],[24,0,\\\"form-control me-2\\\"],[4,[38,12],[\\\"keypress\\\",[30,0,[\\\"onTaskNameInputKeypress\\\"]]],null]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"firstTaskName\\\"]]]],null],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary text-nowrap\\\"],[16,\\\"disabled\\\",[28,[37,19],[[30,0,[\\\"firstTaskName\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,18],[[30,0,[\\\"saveNewTask\\\"]],[30,0,[\\\"firstTaskName\\\"]],[27]],null]],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"shared.task.Add task\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"addingTasksFromTakeoff\\\"]],[[[1,\\\"  \\\"],[8,[39,25],null,[[\\\"@project\\\",\\\"@onLoadTakeoff\\\",\\\"@onClose\\\"],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,18],[[30,0,[\\\"onLoadTakeoff\\\"]]],null],[28,[37,13],[[28,[37,14],[[30,0,[\\\"addingTasksFromTakeoff\\\"]]],null],false],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"addingTaskFromTemplate\\\"]],[[[1,\\\"  \\\"],[8,[39,26],null,[[\\\"@onLoadTaskTemplate\\\",\\\"@parentTasks\\\",\\\"@onClose\\\"],[[28,[37,18],[[30,0,[\\\"onLoadTaskTemplate\\\"]]],null],[30,0,[\\\"parentTasks\\\"]],[28,[37,13],[[28,[37,14],[[30,0,[\\\"addingTaskFromTemplate\\\"]]],null],false],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"header\\\",\\\"if\\\",\\\"h2\\\",\\\"div\\\",\\\"includes-feature-flags\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"fa-icon\\\",\\\"loading-icon\\\",\\\"drag-sort-list\\\",\\\"perform\\\",\\\"not\\\",\\\"nested-task-card/add-task\\\",\\\"or\\\",\\\"p\\\",\\\"b\\\",\\\"input\\\",\\\"takeoff-uploader-modal\\\",\\\"task-template-modal\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/tasks/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/tasks/task\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title=(t 'common.Task')}}\n    />\n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component\n        'mobile-title-bar/back-button'\n        titleBarBack='entity.builda-price.projects.project.tasks'\n      }}\n    />\n  {{/unless}}\n  \n  <article class='mx-4 mt-4'>\n    {{#unless this.model.task.isRunning}}\n      <div class='mb-2'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      {{#if (media 'isDesktop')}}\n        <header class='border-bottom align-items-center mb-3'>\n          <h2 class='my-2'>{{this.model.task.last.value.name}}</h2>\n        </header>\n      {{/if}}\n      <ContentTabs @tabs={{this.tabs}} />\n      {{outlet}}\n    {{else}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{/unless}}\n  </article>\n  */\n  {\n    \"id\": \"QAsCbnlT\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"common.Task\\\"],null]]]]]],null],[1,\\\"\\\\n  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/back-button\\\",0,null,[[\\\"titleBarBack\\\"],[\\\"entity.builda-price.projects.project.tasks\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"model\\\",\\\"task\\\",\\\"isRunning\\\"]]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-2\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,7],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom align-items-center mb-3\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h2\\\"],[14,0,\\\"my-2\\\"],[12],[1,[30,0,[\\\"model\\\",\\\"task\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[8,[39,11],null,[[\\\"@tabs\\\"],[[30,0,[\\\"tabs\\\"]]]],null],[1,\\\"\\\\n    \\\"],[46,[28,[37,12],null,null],null,null,null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[8,[39,13],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]]],[13]],[],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"div\\\",\\\"page-title-breadcrumbs\\\",\\\"if\\\",\\\"header\\\",\\\"h2\\\",\\\"content-tabs\\\",\\\"-outlet\\\",\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/tasks/task.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/tasks/task/documents\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='mt-3'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='card width--large'>\n        <DragAndDropContainer\n          @parent={{this.task}}\n          @onUploadComplete={{this.onUploadComplete}}\n          @isDragAndDropVisible={{this.isEditable}}\n        >\n          <AttachmentTable\n            @attachments={{this.attachments}}\n            @parent={{this.task}}\n            @project={{this.project}}\n            @users={{this.model.users.last.value}}\n          />\n        </DragAndDropContainer>\n      </div>\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"1MXYMu/j\",\n    \"block\": \"[[[10,0],[14,0,\\\"mt-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"card width--large\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,3],null,[[\\\"@parent\\\",\\\"@onUploadComplete\\\",\\\"@isDragAndDropVisible\\\"],[[30,0,[\\\"task\\\"]],[30,0,[\\\"onUploadComplete\\\"]],[30,0,[\\\"isEditable\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[39,4],null,[[\\\"@attachments\\\",\\\"@parent\\\",\\\"@project\\\",\\\"@users\\\"],[[30,0,[\\\"attachments\\\"]],[30,0,[\\\"task\\\"]],[30,0,[\\\"project\\\"]],[30,0,[\\\"model\\\",\\\"users\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[],false,[\\\"div\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"drag-and-drop-container\\\",\\\"attachment-table\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/tasks/task/documents.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/tasks/task/financials\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <div class='mt-3 d-flex flex-column align-items-start'>\n      {{#if\n        (and\n          this.hasBothDraftBudgetAndQuoteChanges\n          this.canManageProjectBudgetAndQuote\n        )\n      }}\n        <div class='alert alert-primary' role='alert'>\n          {{t\n            'entity.builda-price.projects.project.tasks.task.financials.thisBudgetAndQuoteHaveBeenModifiedToApplyTheseChangesToTheProject'\n          }}\n          <LinkTo @route='entity.builda-price.projects.project.financials'>{{t\n              'shared.financial.Create a version'\n            }}</LinkTo>.\n        </div>\n      {{else if (and this.hasDraftBudgetChanges this.canManageProjectBudget)}}\n        <div class='alert alert-primary' role='alert'>\n          {{t\n            'entity.builda-price.projects.project.tasks.task.financials.thisBudgetHasBeenModifiedToApplyTheseChangesToTheProjectBudget'\n          }}\n          <LinkTo @route='entity.builda-price.projects.project.financials'>{{t\n              'entity.builda-price.projects.project.tasks.task.financials.create a project budget version'\n            }}</LinkTo>.\n        </div>\n      {{else if (and this.hasDraftQuoteChanges this.canManageProjectQuote)}}\n        <div class='alert alert-primary' role='alert'>\n          {{t\n            'entity.builda-price.projects.project.tasks.task.financials.thisQuoteHasBeenModifiedToApplyTheseChangesToTheProjectQuote'\n          }}\n          <LinkTo @route='entity.builda-price.projects.project.financials'>{{t\n              'entity.builda-price.projects.project.tasks.task.financials.create a project quote version'\n            }}</LinkTo>.\n        </div>\n      {{/if}}\n  \n      <div class='d-flex flex-row align-items-start flex-wrap'>\n        {{#if this.canViewBudget}}\n          <div class='border rounded p-4 d-flex flex-column mb-4 me-4'>\n            <h2>{{t 'common.Budget'}}</h2>\n            {{#if this.model.loadBudget.isRunning}}\n              <LoadingIcon @type='ripple' />\n            {{else}}\n              {{#if this.hasBudget}}\n                <table class='table'>\n                  <thead>\n                    <tr>\n                      <th></th>\n                      <th class='text-right'>{{t 'common.This task'}}</th>\n                      <th class='text-right text-muted'>{{t\n                          'common.Subtasks'\n                        }}</th>\n                      <th class='text-right'>{{t 'common.Total'}}</th>\n                    </tr>\n                  </thead>\n                  <tbody>\n                    <tr>\n                      <th>{{t 'common.Labour hours'}}</th>\n                      <td class='text-right'>\n                        <FormatDurationWithUnit\n                          @value={{this.task.draftBudgetManHours}}\n                          @suffix={{' hrs'}}\n                          @emptyPlaceholder='–'\n                        />\n                      </td>\n                      <td class='text-right text-muted'>\n                        <FormatDurationWithUnit\n                          @value={{this.task.childrenDraftBudgetManHours}}\n                          @suffix={{' hrs'}}\n                          @emptyPlaceholder='–'\n                        />\n                      </td>\n                      <td class='text-right'>\n                        <FormatDurationWithUnit\n                          @value={{this.task.totalDraftBudgetManHours}}\n                          @suffix={{' hrs'}}\n                          @emptyPlaceholder='–'\n                        />\n                      </td>\n                    </tr>\n                    <tr>\n                      <td colspan='4'>&nbsp;</td>\n                    </tr>\n                    <tr>\n                      <th>{{t 'common.Labour'}}</th>\n                      <td class='text-right'>\n                        {{number-format\n                          this.task.draftBudgetLabour\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                      <td class='text-right text-muted'>\n                        {{number-format\n                          this.task.childrenDraftBudgetLabour\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                      <td class='text-right'>\n                        {{number-format\n                          this.task.totalDraftBudgetLabour\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                    </tr>\n                    <tr>\n                      <th>{{t 'common.Materials'}}</th>\n                      <td class='text-right'>\n                        {{number-format\n                          this.task.draftBudgetMaterials\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                      <td class='text-right text-muted'>\n                        {{number-format\n                          this.task.childrenDraftBudgetMaterials\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                      <td class='text-right'>\n                        {{number-format\n                          this.task.totalDraftBudgetMaterials\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                    </tr>\n                    <tr>\n                      <th>{{t 'common.Subcontractors'}}</th>\n                      <td class='text-right'>\n                        {{number-format\n                          this.task.draftBudgetSubcontractors\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                      <td class='text-right text-muted'>\n                        {{number-format\n                          this.task.childrenDraftBudgetSubcontractors\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                      <td class='text-right'>\n                        {{number-format\n                          this.task.totalDraftBudgetSubcontractors\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                    </tr>\n                    <tr>\n                      <th>{{t 'common.Sums'}}</th>\n                      <td class='text-right'>\n                        {{number-format\n                          this.task.draftBudgetSums\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                      <td class='text-right text-muted'>\n                        {{number-format\n                          this.task.childrenDraftBudgetSums\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                      <td class='text-right'>\n                        {{number-format\n                          this.task.totalDraftBudgetSums\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                    </tr>\n                  </tbody>\n                  <tfoot>\n                    <tr>\n                      <th></th>\n                      <td class='text-right'>\n                        {{number-format\n                          this.totalDraftBudgetCurrency\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                      <td class='text-right text-muted'>\n                        {{number-format\n                          this.totalDraftChildrenBudgetCurrency\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                      <td class='text-right'>\n                        {{number-format\n                          this.totalTotalDraftBudgetCurrency\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                    </tr>\n                  </tfoot>\n                </table>\n                {{#if this.canManageBudget}}\n                  <button\n                    class='btn btn-primary align-self-end'\n                    type='button'\n                    {{on 'click' this.openUpdateBudgetForm}}\n                  >\n                    {{t\n                      'entity.builda-price.projects.project.tasks.task.financials.Update budget'\n                    }}\n                  </button>\n                {{/if}}\n              {{else}}\n                <p class='m-0 mb-3'>\n                  {{if\n                    this.canManageBudget\n                    (t\n                      'entity.builda-price.projects.project.tasks.task.financials.createABudgetForThisTaskToCompareYourCostsAgainst'\n                    )\n                    (t\n                      'entity.builda-price.projects.project.tasks.task.financials.There is no budget for this task'\n                    )\n                  }}\n                </p>\n                {{#if this.canManageBudget}}\n                  <button\n                    class='btn btn-primary align-self-end'\n                    type='button'\n                    {{on 'click' this.openUpdateBudgetForm}}\n                  >\n                    {{t\n                      'entity.builda-price.projects.project.tasks.task.financials.Create a budget'\n                    }}\n                  </button>\n                {{/if}}\n              {{/if}}\n            {{/if}}\n          </div>\n        {{/if}}\n  \n        {{#if this.canViewQuote}}\n          <div class='border rounded p-4 d-flex flex-column mb-4'>\n            <h2>{{t 'common.Quote'}}</h2>\n            {{#if this.model.loadQuote.isRunning}}\n              <LoadingIcon @type='ripple' />\n            {{else}}\n              {{#if this.hasQuote}}\n                <table class='table'>\n                  <thead>\n                    <tr>\n                      <th></th>\n                      <th class='text-right'>{{t 'common.This task'}}</th>\n                      <th class='text-right text-muted'>{{t\n                          'common.Subtasks'\n                        }}</th>\n                      <th class='text-right'>{{t 'common.Total'}}</th>\n                    </tr>\n                  </thead>\n                  <tbody>\n                    <tr>\n                      <th>{{t 'common.Labour'}}</th>\n                      <td class='text-right'>\n                        {{number-format\n                          this.task.draftQuoteLabour\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                      <td class='text-right text-muted'>\n                        {{number-format\n                          this.task.childrenDraftQuoteLabour\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                      <td class='text-right'>\n                        {{number-format\n                          this.task.totalDraftQuoteLabour\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                    </tr>\n                    <tr>\n                      <th>{{t 'common.Materials'}}</th>\n                      <td class='text-right'>\n                        {{number-format\n                          this.task.draftQuoteMaterials\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                      <td class='text-right text-muted'>\n                        {{number-format\n                          this.task.childrenDraftQuoteMaterials\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                      <td class='text-right'>\n                        {{number-format\n                          this.task.totalDraftQuoteMaterials\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                    </tr>\n                    <tr>\n                      <th>{{t 'common.Subcontractors'}}</th>\n                      <td class='text-right'>\n                        {{number-format\n                          this.task.draftQuoteSubcontractors\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                      <td class='text-right text-muted'>\n                        {{number-format\n                          this.task.childrenDraftQuoteSubcontractors\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                      <td class='text-right'>\n                        {{number-format\n                          this.task.totalDraftQuoteSubcontractors\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                    </tr>\n                    <tr>\n                      <th>{{t 'common.Sums'}}</th>\n                      <td class='text-right'>\n                        {{number-format\n                          this.task.draftQuoteSums\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                      <td class='text-right text-muted'>\n                        {{number-format\n                          this.task.childrenDraftQuoteSums\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                      <td class='text-right'>\n                        {{number-format\n                          this.task.totalDraftQuoteSums\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                    </tr>\n                  </tbody>\n                  <tfoot>\n                    <tr>\n                      <th></th>\n                      <td class='text-right'>\n                        {{number-format\n                          this.totalDraftQuoteCurrency\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                      <td class='text-right text-muted'>\n                        {{number-format\n                          this.totalDraftChildrenQuoteCurrency\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                      <td class='text-right'>\n                        {{number-format\n                          this.totalTotalDraftQuoteCurrency\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                    </tr>\n                  </tfoot>\n                </table>\n  \n                {{#if this.canManageQuote}}\n                  <button\n                    class='btn btn-primary align-self-end'\n                    type='button'\n                    {{on 'click' this.openUpdateQuoteForm}}\n                  >\n                    {{t\n                      'entity.builda-price.projects.project.tasks.task.financials.Update quote'\n                    }}\n                  </button>\n                {{/if}}\n              {{else}}\n                <p class='m-0 mb-3'>\n                  {{if\n                    this.canManageQuote\n                    (t\n                      'entity.builda-price.projects.project.tasks.task.financials.createAQuoteForThisTaskToCompareYourCostsAgainst'\n                    )\n                    (t\n                      'entity.builda-price.projects.project.tasks.task.financials.There is no quote for this task'\n                    )\n                  }}\n                </p>\n                {{#if this.canManageQuote}}\n                  <button\n                    class='btn btn-primary align-self-end'\n                    type='button'\n                    {{on 'click' this.openUpdateQuoteForm}}\n                  >\n                    {{t\n                      'entity.builda-price.projects.project.tasks.task.financials.Create a quote'\n                    }}\n                  </button>\n                {{/if}}\n              {{/if}}\n            {{/if}}\n          </div>\n        {{/if}}\n      </div>\n    </div>\n  {{/if}}\n  \n  {{#if this.updateBudgetData}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.updateBudgetData) null}}\n      @translucentOverlay={{true}}\n      @containerClass='modal-content w-auto'\n    >\n      {{#let\n        (changeset this.updateBudgetData this.budgetValidationMap)\n        as |budgetModel|\n      }}\n        <div class='modal-body'>\n          <label class='mb-1' for='manHours'>\n            {{t 'common.Labour hours'}}\n          </label>\n          <div class='d-flex flex-wrap'>\n            <div class='flex-grow-1'>\n              <PtlInput\n                @type='duration'\n                @key='manHours'\n                @model={{budgetModel}}\n                @onChange={{fn this.budgetValueChanged budgetModel 'manHours'}}\n                @forceValidationVisible={{gt this.updateBudget.performCount 0}}\n                disabled={{this.updateBudget.isRunning}}\n              />\n            </div>\n            {{#if (media 'isDesktop')}}\n              <div class='flex-1'>\n                <div class='mx-1'>\n                  <div\n                    style='min-width: 90px; display: block;'\n                    class='input-group-text text-muted text-end'\n                  >\n                    <FormatDurationWithUnit\n                      @value={{this.task.childrenDraftBudgetManHours}}\n                      @suffix={{' hrs'}}\n                      @emptyPlaceholder='–'\n                    />\n                  </div>\n                  <div class='form-text text-muted'>{{t 'common.Subtasks'}}</div>\n                </div>\n              </div>\n              <div class='flex-1'>\n                <div>\n                  <div\n                    style='min-width: 90px; display: block;'\n                    class='input-group-text text-muted text-end'\n                  >\n                    <FormatDurationWithUnit\n                      @value={{budgetModel.manHoursTotal}}\n                      @suffix={{' hrs'}}\n                      @emptyPlaceholder='–'\n                    />\n                  </div>\n                  <div class='form-text text-muted'>{{t 'common.Total'}}</div>\n                </div>\n              </div>\n            {{/if}}\n          </div>\n  \n          <label class='mb-1' for='labour'>\n            {{t 'common.Labour'}}\n          </label>\n          <div class='d-flex flex-wrap'>\n            <div class='flex-grow-1'>\n              <PtlInput\n                @type='currency'\n                @key='labour'\n                @model={{budgetModel}}\n                @onChange={{fn this.budgetValueChanged budgetModel 'labour'}}\n                @forceValidationVisible={{gt this.updateBudget.performCount 0}}\n                disabled={{this.updateBudget.isRunning}}\n              />\n            </div>\n            {{#if (media 'isDesktop')}}\n              <div class='flex-1'>\n                <div class='mx-1'>\n                  <div\n                    style='min-width: 90px; display: block;'\n                    class='input-group-text text-muted text-end'\n                  >\n                    {{number-format\n                      this.task.childrenDraftBudgetLabour\n                      style='currency'\n                      dashZero=true\n                    }}\n                  </div>\n                  <div class='form-text text-muted'>{{t 'common.Subtasks'}}</div>\n                </div>\n              </div>\n              <div class='flex-1'>\n                <div>\n                  <div\n                    style='min-width: 90px; display: block;'\n                    class='input-group-text text-muted text-end'\n                  >\n                    {{number-format\n                      budgetModel.labourTotal\n                      style='currency'\n                      dashZero=true\n                    }}\n                  </div>\n                </div>\n                <div class='form-text text-muted'>{{t 'common.Total'}}</div>\n              </div>\n            {{/if}}\n          </div>\n  \n          <label class='mb-1' for='materials'>\n            {{t 'common.Materials'}}\n          </label>\n          <div class='d-flex flex-wrap'>\n            <div class='flex-grow-1 mb-3'>\n              <PtlInput\n                @type='currency'\n                @key='materials'\n                @containerClass='mb-0'\n                @model={{budgetModel}}\n                @onChange={{fn this.budgetValueChanged budgetModel 'materials'}}\n                @forceValidationVisible={{gt this.updateBudget.performCount 0}}\n                disabled={{this.updateBudget.isRunning}}\n              />\n              {{#if this.totalProductCurrency}}\n                <div\n                  {{on\n                    'click'\n                    (fn this.setMaterialBudgetFromProducts budgetModel)\n                  }}\n                  type='button'\n                  class='form-text btn-link'\n                >{{t\n                    'entity.builda-price.projects.project.tasks.task.financials.Use total from products'\n                  }}:\n                  {{number-format\n                    this.totalProductCurrency\n                    style='currency'\n                    dashZero=true\n                  }}\n                </div>\n              {{/if}}\n            </div>\n            {{#if (media 'isDesktop')}}\n              <div class='flex-1'>\n                <div class='mx-1'>\n                  <div\n                    style='min-width: 90px; display: block;'\n                    class='input-group-text text-muted text-end'\n                  >\n                    {{number-format\n                      this.task.childrenDraftBudgetMaterials\n                      style='currency'\n                      dashZero=true\n                    }}\n                  </div>\n                  <div class='form-text text-muted'>{{t 'common.Subtasks'}}</div>\n                </div>\n              </div>\n              <div class='flex-1'>\n                <div>\n                  <div\n                    style='min-width: 90px; display: block;'\n                    class='input-group-text text-muted text-end'\n                  >\n                    {{number-format\n                      budgetModel.materialsTotal\n                      style='currency'\n                      dashZero=true\n                    }}\n                  </div>\n                </div>\n                <div class='form-text text-muted'>{{t 'common.Total'}}</div>\n              </div>\n            {{/if}}\n          </div>\n  \n          <label class='mb-1' for='subcontractors'>\n            {{t 'common.Subcontractors'}}\n          </label>\n          <div class='d-flex flex-wrap'>\n            <div class='flex-grow-1'>\n              <PtlInput\n                @type='currency'\n                @key='subcontractors'\n                @model={{budgetModel}}\n                @onChange={{fn\n                  this.budgetValueChanged\n                  budgetModel\n                  'subcontractors'\n                }}\n                @forceValidationVisible={{gt this.updateBudget.performCount 0}}\n                disabled={{this.updateBudget.isRunning}}\n              />\n            </div>\n            {{#if (media 'isDesktop')}}\n              <div class='flex-1'>\n                <div class='mx-1'>\n                  <div\n                    style='min-width: 90px; display: block;'\n                    class='input-group-text text-muted text-end'\n                  >\n                    {{number-format\n                      this.task.childrenDraftBudgetSubcontractors\n                      style='currency'\n                      dashZero=true\n                    }}\n                  </div>\n                  <div class='form-text text-muted'>{{t 'common.Subtasks'}}</div>\n                </div>\n              </div>\n              <div class='flex-1'>\n                <div>\n                  <div\n                    style='min-width: 90px; display: block;'\n                    class='input-group-text text-muted text-end'\n                  >\n                    {{number-format\n                      budgetModel.subcontractorsTotal\n                      style='currency'\n                      dashZero=true\n                    }}\n                  </div>\n                </div>\n                <div class='form-text text-muted'>{{t 'common.Total'}}</div>\n              </div>\n            {{/if}}\n          </div>\n  \n          <label class='mb-1' for='sums'>\n            {{t 'common.Sums'}}\n          </label>\n          <div class='d-flex flex-wrap'>\n            <div class='flex-grow-1'>\n              <PtlInput\n                @type='currency'\n                @key='sums'\n                @model={{budgetModel}}\n                @onChange={{fn this.budgetValueChanged budgetModel 'sums'}}\n                @forceValidationVisible={{gt this.updateBudget.performCount 0}}\n                disabled={{this.updateBudget.isRunning}}\n              />\n            </div>\n            {{#if (media 'isDesktop')}}\n              <div class='flex-1'>\n                <div class='mx-1'>\n                  <div\n                    style='min-width: 90px; display: block;'\n                    class='input-group-text text-muted text-end'\n                  >\n                    {{number-format\n                      this.task.childrenDraftBudgetSums\n                      style='currency'\n                      dashZero=true\n                    }}\n                  </div>\n                  <div class='form-text text-muted'>{{t 'common.Subtasks'}}</div>\n                </div>\n              </div>\n              <div class='flex-1'>\n                <div>\n                  <div\n                    style='min-width: 90px; display: block;'\n                    class='input-group-text text-muted text-end'\n                  >\n                    {{number-format\n                      budgetModel.sumsTotal\n                      style='currency'\n                      dashZero=true\n                    }}\n                  </div>\n                </div>\n                <div class='form-text text-muted'>{{t 'common.Total'}}</div>\n              </div>\n            {{/if}}\n          </div>\n  \n          {{! Total }}\n          {{#if (media 'isDesktop')}}\n            <div class='d-flex justify-content-end mt-4'>\n              <div>\n                <div\n                  style='min-width: 90px; display: block;'\n                  class='input-group-text text-muted text-end'\n                >\n                  {{number-format\n                    budgetModel.total\n                    style='currency'\n                    dashZero=true\n                  }}\n                </div>\n                <div class='form-text text-muted'>{{t\n                    'entity.builda-price.projects.project.tasks.task.financials.Total budget'\n                  }}</div>\n              </div>\n            </div>\n          {{/if}}\n        </div>\n        <div class='modal-footer'>\n          <button\n            type='button'\n            class='btn btn-secondary text-white'\n            {{on 'click' (fn (mut this.updateBudgetData) null)}}\n          >\n            {{t 'common.Cancel'}}\n          </button>\n          <button\n            type='button'\n            class='btn btn-primary'\n            {{on 'click' (perform this.updateBudget budgetModel)}}\n            disabled={{budgetModel.isPristine}}\n          >\n            {{#if this.updateBudget.isRunning}}\n              {{t\n                'entity.builda-price.projects.project.tasks.task.financials.Updating budget'\n              }}&hellip;\n            {{else}}\n              {{t\n                'entity.builda-price.projects.project.tasks.task.financials.Update budget'\n              }}\n            {{/if}}\n          </button>\n        </div>\n      {{/let}}\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.updateQuoteData}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.updateQuoteData) null}}\n      @translucentOverlay={{true}}\n      @containerClass='modal-content w-auto'\n    >\n      {{#let\n        (changeset this.updateQuoteData this.quoteValidationMap)\n        as |quoteModel|\n      }}\n        <div class='modal-body'>\n          {{! Labour }}\n          <label class='mb-1' for='labourPercentage'>\n            {{t 'common.Labour'}}\n          </label>\n          <div class='d-flex flex-wrap'>\n            {{#if this.task.draftBudgetLabour}}\n              <div class='me-1' style='width: 145px;'>\n                <PtlInput\n                  @type='percentage'\n                  @key='labourPercentage'\n                  @model={{quoteModel}}\n                  @forceValidationVisible={{gt this.updateQuote.performCount 0}}\n                  disabled={{not this.task.draftBudgetLabour}}\n                  @onChange={{fn this.profitMarginChanged quoteModel 'labour'}}\n                  @inputGroupText={{profit-type-label\n                    this.task.effectiveProfitMargin.labourPercentage.type\n                  }}\n                  @description={{if\n                    this.task.effectiveProfitMargin.labourPercentage.value\n                    (concat\n                      'Default '\n                      (number-format\n                        this.task.effectiveProfitMargin.labourPercentage.value\n                        style='percent'\n                        dashZero=true\n                        maximumFractionDigits=2\n                        minimumFractionDigits=2\n                      )\n                    )\n                    (t 'shared.financial.There is no default value')\n                  }}\n                />\n              </div>\n            {{/if}}\n            <div class='flex-grow-1'>\n              <PtlInput\n                @type='currency'\n                @key='labour'\n                @model={{quoteModel}}\n                @forceValidationVisible={{gt this.updateQuote.performCount 0}}\n                disabled={{this.updateQuote.isRunning}}\n                @onChange={{fn this.quoteValueChanged quoteModel 'labour'}}\n                @description={{if\n                  this.task.draftBudgetLabour\n                  (concat\n                    (t 'common.Budget')\n                    ' '\n                    (number-format\n                      this.task.draftBudgetLabour style='currency' dashZero=true\n                    )\n                  )\n                  (t\n                    'entity.builda-price.projects.project.tasks.task.financials.There is no labour budget'\n                  )\n                }}\n              />\n            </div>\n            {{#if (media 'isDesktop')}}\n              <div class='flex-1'>\n                <div class='mx-1'>\n                  <div\n                    style='min-width: 90px; display: block;'\n                    class='input-group-text text-muted text-end'\n                  >\n                    {{number-format\n                      this.task.childrenDraftQuoteLabour\n                      style='currency'\n                      dashZero=true\n                    }}\n                  </div>\n                  <div class='form-text text-muted'>{{t 'common.Subtasks'}}</div>\n                </div>\n              </div>\n              <div class='flex-1'>\n                <div>\n                  <div\n                    style='min-width: 90px; display: block;'\n                    class='input-group-text text-muted text-end'\n                  >\n                    {{number-format\n                      quoteModel.labourTotal\n                      style='currency'\n                      dashZero=true\n                    }}\n                  </div>\n                </div>\n                <div class='form-text text-muted'>{{t 'common.Total'}}</div>\n              </div>\n            {{/if}}\n          </div>\n  \n          {{! Materials }}\n          <label class='mb-1' for='materialsPercentage'>\n            {{t 'common.Materials'}}\n          </label>\n          <div class='d-flex flex-wrap'>\n            {{#if this.task.draftBudgetMaterials}}\n              <div class='me-1' style='width: 145px;'>\n                <PtlInput\n                  @type='percentage'\n                  @key='materialsPercentage'\n                  @model={{quoteModel}}\n                  @forceValidationVisible={{gt this.updateQuote.performCount 0}}\n                  disabled={{not this.task.draftBudgetMaterials}}\n                  @onChange={{fn this.profitMarginChanged quoteModel 'materials'}}\n                  @inputGroupText={{profit-type-label\n                    this.task.effectiveProfitMargin.materialsPercentage.type\n                  }}\n                  @description={{if\n                    this.task.effectiveProfitMargin.materialsPercentage.value\n                    (concat\n                      (t 'common.Default')\n                      ' '\n                      (number-format\n                        this.task.effectiveProfitMargin.materialsPercentage.value\n                        style='percent'\n                        dashZero=true\n                        maximumFractionDigits=2\n                        minimumFractionDigits=2\n                      )\n                    )\n                    (t 'shared.financial.There is no default value')\n                  }}\n                />\n              </div>\n            {{/if}}\n            <div class='flex-grow-1'>\n              <PtlInput\n                @type='currency'\n                @key='materials'\n                @model={{quoteModel}}\n                @forceValidationVisible={{gt this.updateQuote.performCount 0}}\n                disabled={{this.updateQuote.isRunning}}\n                @onChange={{fn this.quoteValueChanged quoteModel 'materials'}}\n                @description={{if\n                  this.task.draftBudgetMaterials\n                  (concat\n                    (t 'common.Budget')\n                    ' '\n                    (number-format\n                      this.task.draftBudgetMaterials\n                      style='currency'\n                      dashZero=true\n                    )\n                  )\n                  (t\n                    'entity.builda-price.projects.project.tasks.task.financials.There is no materials budget'\n                  )\n                }}\n              />\n            </div>\n            {{#if (media 'isDesktop')}}\n              <div class='flex-1'>\n                <div class='mx-1'>\n                  <div\n                    style='min-width: 90px; display: block;'\n                    class='input-group-text text-muted text-end'\n                  >\n                    {{number-format\n                      this.task.childrenDraftQuoteMaterials\n                      style='currency'\n                      dashZero=true\n                    }}\n                  </div>\n                  <div class='form-text text-muted'>{{t 'common.Subtasks'}}</div>\n                </div>\n              </div>\n              <div class='flex-1'>\n                <div>\n                  <div\n                    style='min-width: 90px; display: block;'\n                    class='input-group-text text-muted text-end'\n                  >\n                    {{number-format\n                      quoteModel.materialsTotal\n                      style='currency'\n                      dashZero=true\n                    }}\n                  </div>\n                </div>\n                <div class='form-text text-muted'>{{t 'common.Total'}}</div>\n              </div>\n            {{/if}}\n          </div>\n  \n          {{! Subcontractors }}\n          <label class='mb-1' for='subcontractorsPercentage'>\n            {{t 'common.Subcontractors'}}\n          </label>\n          <div class='d-flex flex-wrap'>\n            {{#if this.task.draftBudgetSubcontractors}}\n              <div class='me-1' style='width: 145px;'>\n                <PtlInput\n                  @type='percentage'\n                  @key='subcontractorsPercentage'\n                  @model={{quoteModel}}\n                  @forceValidationVisible={{gt this.updateQuote.performCount 0}}\n                  disabled={{not this.task.draftBudgetSubcontractors}}\n                  @onChange={{fn\n                    this.profitMarginChanged\n                    quoteModel\n                    'subcontractors'\n                  }}\n                  @inputGroupText={{profit-type-label\n                    this.task.effectiveProfitMargin.subcontractorsPercentage.type\n                  }}\n                  @description={{if\n                    this.task.effectiveProfitMargin.subcontractorsPercentage.value\n                    (concat\n                      (t 'common.Default')\n                      ' '\n                      (number-format\n                        this.task.effectiveProfitMargin.subcontractorsPercentage.value\n                        style='percent'\n                        dashZero=true\n                        maximumFractionDigits=2\n                        minimumFractionDigits=2\n                      )\n                    )\n                    (t 'shared.financial.There is no default value')\n                  }}\n                />\n              </div>\n            {{/if}}\n            <div class='flex-grow-1'>\n              <PtlInput\n                @type='currency'\n                @key='subcontractors'\n                @model={{quoteModel}}\n                @forceValidationVisible={{gt this.updateQuote.performCount 0}}\n                disabled={{this.updateQuote.isRunning}}\n                @onChange={{fn\n                  this.quoteValueChanged\n                  quoteModel\n                  'subcontractors'\n                }}\n                @description={{if\n                  this.task.draftBudgetSubcontractors\n                  (concat\n                    (t 'common.Budget')\n                    ' '\n                    (number-format\n                      this.task.draftBudgetSubcontractors\n                      style='currency'\n                      dashZero=true\n                    )\n                  )\n                  (t\n                    'entity.builda-price.projects.project.tasks.task.financials.There is no subcontractors budget'\n                  )\n                }}\n              />\n            </div>\n            {{#if (media 'isDesktop')}}\n              <div class='flex-1'>\n                <div class='mx-1'>\n                  <div\n                    style='min-width: 90px; display: block;'\n                    class='input-group-text text-muted text-end'\n                  >\n                    {{number-format\n                      this.task.childrenDraftQuoteSubcontractors\n                      style='currency'\n                      dashZero=true\n                    }}\n                  </div>\n  \n                  <div class='form-text text-muted'>{{t 'common.Subtasks'}}</div>\n                </div>\n              </div>\n              <div class='flex-1'>\n                <div>\n                  <div\n                    style='min-width: 90px; display: block;'\n                    class='input-group-text text-muted text-end'\n                  >\n                    {{number-format\n                      quoteModel.subcontractorsTotal\n                      style='currency'\n                      dashZero=true\n                    }}\n                  </div>\n                  <div class='form-text text-muted'>{{t 'common.Total'}}</div>\n                </div>\n              </div>\n            {{/if}}\n          </div>\n  \n          {{! Sums }}\n          <label class='mb-1' for='sumsPercentage'>\n            {{t 'common.Sums'}}\n          </label>\n          <div class='d-flex flex-wrap'>\n            {{#if this.task.draftBudgetSums}}\n              <div class='me-1' style='width: 145px;'>\n                <PtlInput\n                  @type='percentage'\n                  @key='sumsPercentage'\n                  @model={{quoteModel}}\n                  @forceValidationVisible={{gt this.updateQuote.performCount 0}}\n                  disabled={{not this.task.draftBudgetSums}}\n                  @onChange={{fn this.profitMarginChanged quoteModel 'sums'}}\n                  @inputGroupText={{profit-type-label\n                    this.task.effectiveProfitMargin.sumsPercentage.type\n                  }}\n                  @description={{if\n                    this.task.effectiveProfitMargin.sumsPercentage.value\n                    (concat\n                      (t 'common.Default')\n                      ' '\n                      (number-format\n                        this.task.effectiveProfitMargin.sumsPercentage.value\n                        style='percent'\n                        dashZero=true\n                        maximumFractionDigits=2\n                        minimumFractionDigits=2\n                      )\n                    )\n                    (t 'shared.financial.There is no default value')\n                  }}\n                />\n              </div>\n            {{/if}}\n            <div class='flex-grow-1'>\n              <PtlInput\n                @type='currency'\n                @key='sums'\n                @model={{quoteModel}}\n                @forceValidationVisible={{gt this.updateQuote.performCount 0}}\n                disabled={{this.updateQuote.isRunning}}\n                @onChange={{fn this.quoteValueChanged quoteModel 'sums'}}\n                @description={{if\n                  this.task.draftBudgetSums\n                  (concat\n                    (t 'common.Budget')\n                    ' '\n                    (number-format\n                      this.task.draftBudgetSums style='currency' dashZero=true\n                    )\n                  )\n                  (t\n                    'entity.builda-price.projects.project.tasks.task.financials.There is no sums budget'\n                  )\n                }}\n              />\n            </div>\n            {{#if (media 'isDesktop')}}\n              <div class='flex-1' style='margin-left: auto;'>\n                <div class='mx-1'>\n                  <div\n                    style='min-width: 90px; display: block;'\n                    class='input-group-text text-muted text-end'\n                  >\n                    {{number-format\n                      this.task.childrenDraftQuoteSums\n                      style='currency'\n                      dashZero=true\n                    }}\n                  </div>\n                  <div class='form-text text-muted'>{{t 'common.Subtasks'}}</div>\n                </div>\n              </div>\n              <div class='flex-1' style='margin-left: auto;'>\n                <div>\n                  <div\n                    style='min-width: 90px; display: block;'\n                    class='input-group-text text-muted text-end'\n                  >\n                    {{number-format\n                      quoteModel.sumsTotal\n                      style='currency'\n                      dashZero=true\n                    }}\n                  </div>\n                </div>\n                <div class='form-text text-muted'>{{t 'common.Total'}}</div>\n              </div>\n            {{/if}}\n          </div>\n  \n          {{! Total }}\n          {{#if (media 'isDesktop')}}\n            <div class='d-flex justify-content-end mt-4'>\n              <div>\n                <div\n                  style='min-width: 90px; display: block;'\n                  class='input-group-text text-muted text-end'\n                >\n                  {{number-format\n                    quoteModel.total\n                    style='currency'\n                    dashZero=true\n                  }}\n                </div>\n                <div class='form-text text-muted'>{{t\n                    'shared.financial.Total quote'\n                  }}</div>\n              </div>\n            </div>\n          {{/if}}\n        </div>\n  \n        <div class='modal-footer'>\n          <button\n            type='button'\n            class='btn btn-secondary text-white'\n            {{on 'click' (fn (mut this.updateQuoteData) null)}}\n          >\n            {{t 'common.Cancel'}}\n          </button>\n          {{!TODO add pristine state for quote modal}}\n          <button\n            type='button'\n            class='btn btn-primary'\n            {{on 'click' (perform this.updateQuote quoteModel)}}\n          >\n            {{#if this.updateQuote.isRunning}}\n              {{t\n                'entity.builda-price.projects.project.tasks.task.financials.Updating quote'\n              }}&hellip;\n            {{else}}\n              {{t\n                'entity.builda-price.projects.project.tasks.task.financials.Update quote'\n              }}\n            {{/if}}\n          </button>\n        </div>\n      {{/let}}\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"1rja9nXW\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"mt-3 d-flex flex-column align-items-start\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[[30,0,[\\\"hasBothDraftBudgetAndQuoteChanges\\\"]],[30,0,[\\\"canManageProjectBudgetAndQuote\\\"]]],null],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"alert alert-primary\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.tasks.task.financials.thisBudgetAndQuoteHaveBeenModifiedToApplyTheseChangesToTheProject\\\"],null]],[1,\\\"\\\\n        \\\"],[8,[39,5],null,[[\\\"@route\\\"],[\\\"entity.builda-price.projects.project.financials\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"shared.financial.Create a version\\\"],null]]],[]]]]],[1,\\\".\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,3],[[30,0,[\\\"hasDraftBudgetChanges\\\"]],[30,0,[\\\"canManageProjectBudget\\\"]]],null],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"alert alert-primary\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.tasks.task.financials.thisBudgetHasBeenModifiedToApplyTheseChangesToTheProjectBudget\\\"],null]],[1,\\\"\\\\n        \\\"],[8,[39,5],null,[[\\\"@route\\\"],[\\\"entity.builda-price.projects.project.financials\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"entity.builda-price.projects.project.tasks.task.financials.create a project budget version\\\"],null]]],[]]]]],[1,\\\".\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,3],[[30,0,[\\\"hasDraftQuoteChanges\\\"]],[30,0,[\\\"canManageProjectQuote\\\"]]],null],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"alert alert-primary\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.tasks.task.financials.thisQuoteHasBeenModifiedToApplyTheseChangesToTheProjectQuote\\\"],null]],[1,\\\"\\\\n        \\\"],[8,[39,5],null,[[\\\"@route\\\"],[\\\"entity.builda-price.projects.project.financials\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"entity.builda-price.projects.project.tasks.task.financials.create a project quote version\\\"],null]]],[]]]]],[1,\\\".\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]],null]],[]]]],[]]],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex flex-row align-items-start flex-wrap\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canViewBudget\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"border rounded p-4 d-flex flex-column mb-4 me-4\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h2\\\"],[12],[1,[28,[35,4],[\\\"common.Budget\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"loadBudget\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[8,[39,1],null,[[\\\"@type\\\"],[\\\"ripple\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"hasBudget\\\"]],[[[1,\\\"              \\\"],[10,\\\"table\\\"],[14,0,\\\"table\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[14,0,\\\"text-right\\\"],[12],[1,[28,[35,4],[\\\"common.This task\\\"],null]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[14,0,\\\"text-right text-muted\\\"],[12],[1,[28,[35,4],[\\\"common.Subtasks\\\"],null]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[14,0,\\\"text-right\\\"],[12],[1,[28,[35,4],[\\\"common.Total\\\"],null]],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,4],[\\\"common.Labour hours\\\"],null]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      \\\"],[8,[39,13],null,[[\\\"@value\\\",\\\"@suffix\\\",\\\"@emptyPlaceholder\\\"],[[30,0,[\\\"task\\\",\\\"draftBudgetManHours\\\"]],\\\" hrs\\\",\\\"–\\\"]],null],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right text-muted\\\"],[12],[1,\\\"\\\\n                      \\\"],[8,[39,13],null,[[\\\"@value\\\",\\\"@suffix\\\",\\\"@emptyPlaceholder\\\"],[[30,0,[\\\"task\\\",\\\"childrenDraftBudgetManHours\\\"]],\\\" hrs\\\",\\\"–\\\"]],null],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      \\\"],[8,[39,13],null,[[\\\"@value\\\",\\\"@suffix\\\",\\\"@emptyPlaceholder\\\"],[[30,0,[\\\"task\\\",\\\"totalDraftBudgetManHours\\\"]],\\\" hrs\\\",\\\"–\\\"]],null],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"4\\\"],[12],[1,\\\" \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,4],[\\\"common.Labour\\\"],null]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"draftBudgetLabour\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right text-muted\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"childrenDraftBudgetLabour\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"totalDraftBudgetLabour\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,4],[\\\"common.Materials\\\"],null]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"draftBudgetMaterials\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right text-muted\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"childrenDraftBudgetMaterials\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"totalDraftBudgetMaterials\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,4],[\\\"common.Subcontractors\\\"],null]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"draftBudgetSubcontractors\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right text-muted\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"childrenDraftBudgetSubcontractors\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"totalDraftBudgetSubcontractors\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,4],[\\\"common.Sums\\\"],null]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"draftBudgetSums\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right text-muted\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"childrenDraftBudgetSums\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"totalDraftBudgetSums\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"tfoot\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"totalDraftBudgetCurrency\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right text-muted\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"totalDraftChildrenBudgetCurrency\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"totalTotalDraftBudgetCurrency\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canManageBudget\\\"]],[[[1,\\\"                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary align-self-end\\\"],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[30,0,[\\\"openUpdateBudgetForm\\\"]]],null],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.tasks.task.financials.Update budget\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[1,\\\"              \\\"],[10,2],[14,0,\\\"m-0 mb-3\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[52,[30,0,[\\\"canManageBudget\\\"]],[28,[37,4],[\\\"entity.builda-price.projects.project.tasks.task.financials.createABudgetForThisTaskToCompareYourCostsAgainst\\\"],null],[28,[37,4],[\\\"entity.builda-price.projects.project.tasks.task.financials.There is no budget for this task\\\"],null]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canManageBudget\\\"]],[[[1,\\\"                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary align-self-end\\\"],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[30,0,[\\\"openUpdateBudgetForm\\\"]]],null],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.tasks.task.financials.Create a budget\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canViewQuote\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"border rounded p-4 d-flex flex-column mb-4\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h2\\\"],[12],[1,[28,[35,4],[\\\"common.Quote\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"loadQuote\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[8,[39,1],null,[[\\\"@type\\\"],[\\\"ripple\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"hasQuote\\\"]],[[[1,\\\"              \\\"],[10,\\\"table\\\"],[14,0,\\\"table\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[14,0,\\\"text-right\\\"],[12],[1,[28,[35,4],[\\\"common.This task\\\"],null]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[14,0,\\\"text-right text-muted\\\"],[12],[1,[28,[35,4],[\\\"common.Subtasks\\\"],null]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[14,0,\\\"text-right\\\"],[12],[1,[28,[35,4],[\\\"common.Total\\\"],null]],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,4],[\\\"common.Labour\\\"],null]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"draftQuoteLabour\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right text-muted\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"childrenDraftQuoteLabour\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"totalDraftQuoteLabour\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,4],[\\\"common.Materials\\\"],null]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"draftQuoteMaterials\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right text-muted\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"childrenDraftQuoteMaterials\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"totalDraftQuoteMaterials\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,4],[\\\"common.Subcontractors\\\"],null]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"draftQuoteSubcontractors\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right text-muted\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"childrenDraftQuoteSubcontractors\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"totalDraftQuoteSubcontractors\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,4],[\\\"common.Sums\\\"],null]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"draftQuoteSums\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right text-muted\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"childrenDraftQuoteSums\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"totalDraftQuoteSums\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"tfoot\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"totalDraftQuoteCurrency\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right text-muted\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"totalDraftChildrenQuoteCurrency\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"totalTotalDraftQuoteCurrency\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"canManageQuote\\\"]],[[[1,\\\"                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary align-self-end\\\"],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[30,0,[\\\"openUpdateQuoteForm\\\"]]],null],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.tasks.task.financials.Update quote\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[1,\\\"              \\\"],[10,2],[14,0,\\\"m-0 mb-3\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[52,[30,0,[\\\"canManageQuote\\\"]],[28,[37,4],[\\\"entity.builda-price.projects.project.tasks.task.financials.createAQuoteForThisTaskToCompareYourCostsAgainst\\\"],null],[28,[37,4],[\\\"entity.builda-price.projects.project.tasks.task.financials.There is no quote for this task\\\"],null]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canManageQuote\\\"]],[[[1,\\\"                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary align-self-end\\\"],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[30,0,[\\\"openUpdateQuoteForm\\\"]]],null],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.tasks.task.financials.Create a quote\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"updateBudgetData\\\"]],[[[1,\\\"  \\\"],[8,[39,19],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\"],[\\\"modal\\\",[28,[37,20],[[28,[37,21],[[30,0,[\\\"updateBudgetData\\\"]]],null],null],null],true,\\\"modal-content w-auto\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[44,[[28,[37,23],[[30,0,[\\\"updateBudgetData\\\"]],[30,0,[\\\"budgetValidationMap\\\"]]],null]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[14,\\\"for\\\",\\\"manHours\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Labour hours\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-wrap\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,25],[[16,\\\"disabled\\\",[30,0,[\\\"updateBudget\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@onChange\\\",\\\"@forceValidationVisible\\\"],[\\\"duration\\\",\\\"manHours\\\",[30,1],[28,[37,20],[[30,0,[\\\"budgetValueChanged\\\"]],[30,1],\\\"manHours\\\"],null],[28,[37,26],[[30,0,[\\\"updateBudget\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,27],[\\\"isDesktop\\\"],null],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"flex-1\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"mx-1\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,5,\\\"min-width: 90px; display: block;\\\"],[14,0,\\\"input-group-text text-muted text-end\\\"],[12],[1,\\\"\\\\n                  \\\"],[8,[39,13],null,[[\\\"@value\\\",\\\"@suffix\\\",\\\"@emptyPlaceholder\\\"],[[30,0,[\\\"task\\\",\\\"childrenDraftBudgetManHours\\\"]],\\\" hrs\\\",\\\"–\\\"]],null],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,[28,[35,4],[\\\"common.Subtasks\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"flex-1\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,5,\\\"min-width: 90px; display: block;\\\"],[14,0,\\\"input-group-text text-muted text-end\\\"],[12],[1,\\\"\\\\n                  \\\"],[8,[39,13],null,[[\\\"@value\\\",\\\"@suffix\\\",\\\"@emptyPlaceholder\\\"],[[30,1,[\\\"manHoursTotal\\\"]],\\\" hrs\\\",\\\"–\\\"]],null],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,[28,[35,4],[\\\"common.Total\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[14,\\\"for\\\",\\\"labour\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Labour\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-wrap\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,25],[[16,\\\"disabled\\\",[30,0,[\\\"updateBudget\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@onChange\\\",\\\"@forceValidationVisible\\\"],[\\\"currency\\\",\\\"labour\\\",[30,1],[28,[37,20],[[30,0,[\\\"budgetValueChanged\\\"]],[30,1],\\\"labour\\\"],null],[28,[37,26],[[30,0,[\\\"updateBudget\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,27],[\\\"isDesktop\\\"],null],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"flex-1\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"mx-1\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,5,\\\"min-width: 90px; display: block;\\\"],[14,0,\\\"input-group-text text-muted text-end\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"childrenDraftBudgetLabour\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,[28,[35,4],[\\\"common.Subtasks\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"flex-1\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,5,\\\"min-width: 90px; display: block;\\\"],[14,0,\\\"input-group-text text-muted text-end\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,14],[[30,1,[\\\"labourTotal\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,[28,[35,4],[\\\"common.Total\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[14,\\\"for\\\",\\\"materials\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Materials\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-wrap\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"flex-grow-1 mb-3\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,25],[[16,\\\"disabled\\\",[30,0,[\\\"updateBudget\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@containerClass\\\",\\\"@model\\\",\\\"@onChange\\\",\\\"@forceValidationVisible\\\"],[\\\"currency\\\",\\\"materials\\\",\\\"mb-0\\\",[30,1],[28,[37,20],[[30,0,[\\\"budgetValueChanged\\\"]],[30,1],\\\"materials\\\"],null],[28,[37,26],[[30,0,[\\\"updateBudget\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"totalProductCurrency\\\"]],[[[1,\\\"              \\\"],[11,0],[24,0,\\\"form-text btn-link\\\"],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[28,[37,20],[[30,0,[\\\"setMaterialBudgetFromProducts\\\"]],[30,1]],null]],null],[12],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.tasks.task.financials.Use total from products\\\"],null]],[1,\\\":\\\\n                \\\"],[1,[28,[35,14],[[30,0,[\\\"totalProductCurrency\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,27],[\\\"isDesktop\\\"],null],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"flex-1\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"mx-1\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,5,\\\"min-width: 90px; display: block;\\\"],[14,0,\\\"input-group-text text-muted text-end\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"childrenDraftBudgetMaterials\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,[28,[35,4],[\\\"common.Subtasks\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"flex-1\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,5,\\\"min-width: 90px; display: block;\\\"],[14,0,\\\"input-group-text text-muted text-end\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,14],[[30,1,[\\\"materialsTotal\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,[28,[35,4],[\\\"common.Total\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[14,\\\"for\\\",\\\"subcontractors\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Subcontractors\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-wrap\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,25],[[16,\\\"disabled\\\",[30,0,[\\\"updateBudget\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@onChange\\\",\\\"@forceValidationVisible\\\"],[\\\"currency\\\",\\\"subcontractors\\\",[30,1],[28,[37,20],[[30,0,[\\\"budgetValueChanged\\\"]],[30,1],\\\"subcontractors\\\"],null],[28,[37,26],[[30,0,[\\\"updateBudget\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,27],[\\\"isDesktop\\\"],null],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"flex-1\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"mx-1\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,5,\\\"min-width: 90px; display: block;\\\"],[14,0,\\\"input-group-text text-muted text-end\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"childrenDraftBudgetSubcontractors\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,[28,[35,4],[\\\"common.Subtasks\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"flex-1\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,5,\\\"min-width: 90px; display: block;\\\"],[14,0,\\\"input-group-text text-muted text-end\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,14],[[30,1,[\\\"subcontractorsTotal\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,[28,[35,4],[\\\"common.Total\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[14,\\\"for\\\",\\\"sums\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Sums\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-wrap\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,25],[[16,\\\"disabled\\\",[30,0,[\\\"updateBudget\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@onChange\\\",\\\"@forceValidationVisible\\\"],[\\\"currency\\\",\\\"sums\\\",[30,1],[28,[37,20],[[30,0,[\\\"budgetValueChanged\\\"]],[30,1],\\\"sums\\\"],null],[28,[37,26],[[30,0,[\\\"updateBudget\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,27],[\\\"isDesktop\\\"],null],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"flex-1\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"mx-1\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,5,\\\"min-width: 90px; display: block;\\\"],[14,0,\\\"input-group-text text-muted text-end\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"childrenDraftBudgetSums\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,[28,[35,4],[\\\"common.Subtasks\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"flex-1\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,5,\\\"min-width: 90px; display: block;\\\"],[14,0,\\\"input-group-text text-muted text-end\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,14],[[30,1,[\\\"sumsTotal\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,[28,[35,4],[\\\"common.Total\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,27],[\\\"isDesktop\\\"],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"d-flex justify-content-end mt-4\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,5,\\\"min-width: 90px; display: block;\\\"],[14,0,\\\"input-group-text text-muted text-end\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,14],[[30,1,[\\\"total\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.tasks.task.financials.Total budget\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white\\\"],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[28,[37,20],[[28,[37,21],[[30,0,[\\\"updateBudgetData\\\"]]],null],null],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,1,[\\\"isPristine\\\"]]],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[28,[37,28],[[30,0,[\\\"updateBudget\\\"]],[30,1]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"updateBudget\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.tasks.task.financials.Updating budget\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.tasks.task.financials.Update budget\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[1]]],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"updateQuoteData\\\"]],[[[1,\\\"  \\\"],[8,[39,19],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\"],[\\\"modal\\\",[28,[37,20],[[28,[37,21],[[30,0,[\\\"updateQuoteData\\\"]]],null],null],null],true,\\\"modal-content w-auto\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[44,[[28,[37,23],[[30,0,[\\\"updateQuoteData\\\"]],[30,0,[\\\"quoteValidationMap\\\"]]],null]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"        \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[14,\\\"for\\\",\\\"labourPercentage\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Labour\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-wrap\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"task\\\",\\\"draftBudgetLabour\\\"]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"me-1\\\"],[14,5,\\\"width: 145px;\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,25],[[16,\\\"disabled\\\",[28,[37,29],[[30,0,[\\\"task\\\",\\\"draftBudgetLabour\\\"]]],null]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@onChange\\\",\\\"@inputGroupText\\\",\\\"@description\\\"],[\\\"percentage\\\",\\\"labourPercentage\\\",[30,2],[28,[37,26],[[30,0,[\\\"updateQuote\\\",\\\"performCount\\\"]],0],null],[28,[37,20],[[30,0,[\\\"profitMarginChanged\\\"]],[30,2],\\\"labour\\\"],null],[28,[37,30],[[30,0,[\\\"task\\\",\\\"effectiveProfitMargin\\\",\\\"labourPercentage\\\",\\\"type\\\"]]],null],[52,[30,0,[\\\"task\\\",\\\"effectiveProfitMargin\\\",\\\"labourPercentage\\\",\\\"value\\\"]],[28,[37,31],[\\\"Default \\\",[28,[37,14],[[30,0,[\\\"task\\\",\\\"effectiveProfitMargin\\\",\\\"labourPercentage\\\",\\\"value\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]]],null],[28,[37,4],[\\\"shared.financial.There is no default value\\\"],null]]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,25],[[16,\\\"disabled\\\",[30,0,[\\\"updateQuote\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@onChange\\\",\\\"@description\\\"],[\\\"currency\\\",\\\"labour\\\",[30,2],[28,[37,26],[[30,0,[\\\"updateQuote\\\",\\\"performCount\\\"]],0],null],[28,[37,20],[[30,0,[\\\"quoteValueChanged\\\"]],[30,2],\\\"labour\\\"],null],[52,[30,0,[\\\"task\\\",\\\"draftBudgetLabour\\\"]],[28,[37,31],[[28,[37,4],[\\\"common.Budget\\\"],null],\\\" \\\",[28,[37,14],[[30,0,[\\\"task\\\",\\\"draftBudgetLabour\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],null],[28,[37,4],[\\\"entity.builda-price.projects.project.tasks.task.financials.There is no labour budget\\\"],null]]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,27],[\\\"isDesktop\\\"],null],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"flex-1\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"mx-1\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,5,\\\"min-width: 90px; display: block;\\\"],[14,0,\\\"input-group-text text-muted text-end\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"childrenDraftQuoteLabour\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,[28,[35,4],[\\\"common.Subtasks\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"flex-1\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,5,\\\"min-width: 90px; display: block;\\\"],[14,0,\\\"input-group-text text-muted text-end\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,14],[[30,2,[\\\"labourTotal\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,[28,[35,4],[\\\"common.Total\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"        \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[14,\\\"for\\\",\\\"materialsPercentage\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Materials\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-wrap\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"task\\\",\\\"draftBudgetMaterials\\\"]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"me-1\\\"],[14,5,\\\"width: 145px;\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,25],[[16,\\\"disabled\\\",[28,[37,29],[[30,0,[\\\"task\\\",\\\"draftBudgetMaterials\\\"]]],null]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@onChange\\\",\\\"@inputGroupText\\\",\\\"@description\\\"],[\\\"percentage\\\",\\\"materialsPercentage\\\",[30,2],[28,[37,26],[[30,0,[\\\"updateQuote\\\",\\\"performCount\\\"]],0],null],[28,[37,20],[[30,0,[\\\"profitMarginChanged\\\"]],[30,2],\\\"materials\\\"],null],[28,[37,30],[[30,0,[\\\"task\\\",\\\"effectiveProfitMargin\\\",\\\"materialsPercentage\\\",\\\"type\\\"]]],null],[52,[30,0,[\\\"task\\\",\\\"effectiveProfitMargin\\\",\\\"materialsPercentage\\\",\\\"value\\\"]],[28,[37,31],[[28,[37,4],[\\\"common.Default\\\"],null],\\\" \\\",[28,[37,14],[[30,0,[\\\"task\\\",\\\"effectiveProfitMargin\\\",\\\"materialsPercentage\\\",\\\"value\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]]],null],[28,[37,4],[\\\"shared.financial.There is no default value\\\"],null]]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,25],[[16,\\\"disabled\\\",[30,0,[\\\"updateQuote\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@onChange\\\",\\\"@description\\\"],[\\\"currency\\\",\\\"materials\\\",[30,2],[28,[37,26],[[30,0,[\\\"updateQuote\\\",\\\"performCount\\\"]],0],null],[28,[37,20],[[30,0,[\\\"quoteValueChanged\\\"]],[30,2],\\\"materials\\\"],null],[52,[30,0,[\\\"task\\\",\\\"draftBudgetMaterials\\\"]],[28,[37,31],[[28,[37,4],[\\\"common.Budget\\\"],null],\\\" \\\",[28,[37,14],[[30,0,[\\\"task\\\",\\\"draftBudgetMaterials\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],null],[28,[37,4],[\\\"entity.builda-price.projects.project.tasks.task.financials.There is no materials budget\\\"],null]]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,27],[\\\"isDesktop\\\"],null],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"flex-1\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"mx-1\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,5,\\\"min-width: 90px; display: block;\\\"],[14,0,\\\"input-group-text text-muted text-end\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"childrenDraftQuoteMaterials\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,[28,[35,4],[\\\"common.Subtasks\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"flex-1\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,5,\\\"min-width: 90px; display: block;\\\"],[14,0,\\\"input-group-text text-muted text-end\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,14],[[30,2,[\\\"materialsTotal\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,[28,[35,4],[\\\"common.Total\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"        \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[14,\\\"for\\\",\\\"subcontractorsPercentage\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Subcontractors\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-wrap\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"task\\\",\\\"draftBudgetSubcontractors\\\"]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"me-1\\\"],[14,5,\\\"width: 145px;\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,25],[[16,\\\"disabled\\\",[28,[37,29],[[30,0,[\\\"task\\\",\\\"draftBudgetSubcontractors\\\"]]],null]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@onChange\\\",\\\"@inputGroupText\\\",\\\"@description\\\"],[\\\"percentage\\\",\\\"subcontractorsPercentage\\\",[30,2],[28,[37,26],[[30,0,[\\\"updateQuote\\\",\\\"performCount\\\"]],0],null],[28,[37,20],[[30,0,[\\\"profitMarginChanged\\\"]],[30,2],\\\"subcontractors\\\"],null],[28,[37,30],[[30,0,[\\\"task\\\",\\\"effectiveProfitMargin\\\",\\\"subcontractorsPercentage\\\",\\\"type\\\"]]],null],[52,[30,0,[\\\"task\\\",\\\"effectiveProfitMargin\\\",\\\"subcontractorsPercentage\\\",\\\"value\\\"]],[28,[37,31],[[28,[37,4],[\\\"common.Default\\\"],null],\\\" \\\",[28,[37,14],[[30,0,[\\\"task\\\",\\\"effectiveProfitMargin\\\",\\\"subcontractorsPercentage\\\",\\\"value\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]]],null],[28,[37,4],[\\\"shared.financial.There is no default value\\\"],null]]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,25],[[16,\\\"disabled\\\",[30,0,[\\\"updateQuote\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@onChange\\\",\\\"@description\\\"],[\\\"currency\\\",\\\"subcontractors\\\",[30,2],[28,[37,26],[[30,0,[\\\"updateQuote\\\",\\\"performCount\\\"]],0],null],[28,[37,20],[[30,0,[\\\"quoteValueChanged\\\"]],[30,2],\\\"subcontractors\\\"],null],[52,[30,0,[\\\"task\\\",\\\"draftBudgetSubcontractors\\\"]],[28,[37,31],[[28,[37,4],[\\\"common.Budget\\\"],null],\\\" \\\",[28,[37,14],[[30,0,[\\\"task\\\",\\\"draftBudgetSubcontractors\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],null],[28,[37,4],[\\\"entity.builda-price.projects.project.tasks.task.financials.There is no subcontractors budget\\\"],null]]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,27],[\\\"isDesktop\\\"],null],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"flex-1\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"mx-1\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,5,\\\"min-width: 90px; display: block;\\\"],[14,0,\\\"input-group-text text-muted text-end\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"childrenDraftQuoteSubcontractors\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\\n                \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,[28,[35,4],[\\\"common.Subtasks\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"flex-1\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,5,\\\"min-width: 90px; display: block;\\\"],[14,0,\\\"input-group-text text-muted text-end\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,14],[[30,2,[\\\"subcontractorsTotal\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,[28,[35,4],[\\\"common.Total\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"        \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[14,\\\"for\\\",\\\"sumsPercentage\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Sums\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-wrap\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"task\\\",\\\"draftBudgetSums\\\"]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"me-1\\\"],[14,5,\\\"width: 145px;\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,25],[[16,\\\"disabled\\\",[28,[37,29],[[30,0,[\\\"task\\\",\\\"draftBudgetSums\\\"]]],null]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@onChange\\\",\\\"@inputGroupText\\\",\\\"@description\\\"],[\\\"percentage\\\",\\\"sumsPercentage\\\",[30,2],[28,[37,26],[[30,0,[\\\"updateQuote\\\",\\\"performCount\\\"]],0],null],[28,[37,20],[[30,0,[\\\"profitMarginChanged\\\"]],[30,2],\\\"sums\\\"],null],[28,[37,30],[[30,0,[\\\"task\\\",\\\"effectiveProfitMargin\\\",\\\"sumsPercentage\\\",\\\"type\\\"]]],null],[52,[30,0,[\\\"task\\\",\\\"effectiveProfitMargin\\\",\\\"sumsPercentage\\\",\\\"value\\\"]],[28,[37,31],[[28,[37,4],[\\\"common.Default\\\"],null],\\\" \\\",[28,[37,14],[[30,0,[\\\"task\\\",\\\"effectiveProfitMargin\\\",\\\"sumsPercentage\\\",\\\"value\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]]],null],[28,[37,4],[\\\"shared.financial.There is no default value\\\"],null]]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,25],[[16,\\\"disabled\\\",[30,0,[\\\"updateQuote\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@onChange\\\",\\\"@description\\\"],[\\\"currency\\\",\\\"sums\\\",[30,2],[28,[37,26],[[30,0,[\\\"updateQuote\\\",\\\"performCount\\\"]],0],null],[28,[37,20],[[30,0,[\\\"quoteValueChanged\\\"]],[30,2],\\\"sums\\\"],null],[52,[30,0,[\\\"task\\\",\\\"draftBudgetSums\\\"]],[28,[37,31],[[28,[37,4],[\\\"common.Budget\\\"],null],\\\" \\\",[28,[37,14],[[30,0,[\\\"task\\\",\\\"draftBudgetSums\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],null],[28,[37,4],[\\\"entity.builda-price.projects.project.tasks.task.financials.There is no sums budget\\\"],null]]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,27],[\\\"isDesktop\\\"],null],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"flex-1\\\"],[14,5,\\\"margin-left: auto;\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"mx-1\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,5,\\\"min-width: 90px; display: block;\\\"],[14,0,\\\"input-group-text text-muted text-end\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"childrenDraftQuoteSums\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,[28,[35,4],[\\\"common.Subtasks\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"flex-1\\\"],[14,5,\\\"margin-left: auto;\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,5,\\\"min-width: 90px; display: block;\\\"],[14,0,\\\"input-group-text text-muted text-end\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,14],[[30,2,[\\\"sumsTotal\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,[28,[35,4],[\\\"common.Total\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,27],[\\\"isDesktop\\\"],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"d-flex justify-content-end mt-4\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,5,\\\"min-width: 90px; display: block;\\\"],[14,0,\\\"input-group-text text-muted text-end\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,14],[[30,2,[\\\"total\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,[28,[35,4],[\\\"shared.financial.Total quote\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white\\\"],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[28,[37,20],[[28,[37,21],[[30,0,[\\\"updateQuoteData\\\"]]],null],null],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[28,[37,28],[[30,0,[\\\"updateQuote\\\"]],[30,2]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"updateQuote\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.tasks.task.financials.Updating quote\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.tasks.task.financials.Update quote\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[2]]],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"budgetModel\\\",\\\"quoteModel\\\"],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"and\\\",\\\"t\\\",\\\"link-to\\\",\\\"h2\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"tbody\\\",\\\"td\\\",\\\"format-duration-with-unit\\\",\\\"number-format\\\",\\\"tfoot\\\",\\\"button\\\",\\\"on\\\",\\\"p\\\",\\\"modal-dialog\\\",\\\"fn\\\",\\\"mut\\\",\\\"let\\\",\\\"changeset\\\",\\\"label\\\",\\\"ptl-input\\\",\\\"gt\\\",\\\"media\\\",\\\"perform\\\",\\\"not\\\",\\\"profit-type-label\\\",\\\"concat\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/tasks/task/financials.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/tasks/task/people\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.model.task.isRunning}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <div class='d-flex mt-3 width--large'>\n      <ul class='list-group' style='min-width: 200px;'>\n        {{#each this.tabs as |tab|}}\n          <LinkTo\n            @route={{tab.route}}\n            draggable={{false}}\n            class='list-group-item'\n          >\n            <FaIcon @icon={{tab.icon}} @fixedWidth={{true}} @size='md' />\n            {{tab.name}}\n          </LinkTo>\n        {{/each}}\n      </ul>\n      <div class='flex-grow-1 ms-3'>\n        {{outlet}}\n      </div>\n    </div>\n  {{/if}}\n  */\n  {\n    \"id\": \"k8g6q3wt\",\n    \"block\": \"[[[41,[30,0,[\\\"model\\\",\\\"task\\\",\\\"isRunning\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"d-flex mt-3 width--large\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"ul\\\"],[14,0,\\\"list-group\\\"],[14,5,\\\"min-width: 200px;\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,5],[[28,[37,5],[[30,0,[\\\"tabs\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[8,[39,6],[[16,\\\"draggable\\\",false],[24,0,\\\"list-group-item\\\"]],[[\\\"@route\\\"],[[30,1,[\\\"route\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,7],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[[30,1,[\\\"icon\\\"]],true,\\\"md\\\"]],null],[1,\\\"\\\\n          \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"flex-grow-1 ms-3\\\"],[12],[1,\\\"\\\\n      \\\"],[46,[28,[37,9],null,null],null,null,null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[\\\"tab\\\"],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"ul\\\",\\\"each\\\",\\\"-track-array\\\",\\\"link-to\\\",\\\"fa-icon\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/tasks/task/people.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/tasks/task/people/clients\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"+ouxlBCj\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/tasks/task/people/clients.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/tasks/task/people/clients/client\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='flex-grow-1'>\n    {{#if this.isRunning}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mb-3 ms-1 mt-1'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <PtlForm class='mb-3'>\n        <h3 class='mb-0'>{{t 'common.Details'}}</h3>\n        <p class='mb-3'>\n          {{this.model.client.last.value.fullName}}\n          {{t 'shared.people-editor.is assigned to the task'}}\n        </p>\n        <div class='d-flex'>\n          <LinkTo\n            class='btn btn-primary m-1'\n            @route='entity.settings.people.clients.client'\n            @model={{this.model.client.last.value.id}}\n          >\n            {{t 'shared.people-editor.clients.client.View client details'}}\n            <FaIcon @icon='external-link-alt' @fixedWidth={{true}} @size='md' />\n          </LinkTo>\n  \n          {{#if (includes-feature-flags 'canManageUsers')}}\n            <button\n              type='button'\n              class='btn btn-secondary m-1'\n              disabled={{this.deleteUser.isRunning}}\n              {{on 'click' (perform this.deleteUser)}}\n            >\n              {{#if this.deleteUser.isRunning}}\n                {{if\n                  this.userIsYou\n                  (t 'shared.people-editor.Removing you from task')\n                  (t 'shared.people-editor.Removing from task')\n                }}&hellip;\n              {{else}}\n                {{if\n                  this.userIsYou\n                  (t 'shared.people-editor.Remove yourself from task')\n                  (t 'shared.people-editor.Remove from task')\n                }}\n              {{/if}}\n            </button>\n          {{/if}}\n        </div>\n      </PtlForm>\n      {{#if (includes-feature-flags 'canManageUsers')}}\n        <PtlForm class='mb-3'>\n          <h3 class='mb-0'>{{t 'shared.people-editor.Permissions'}}</h3>\n          <p class='mb-4'>\n            {{t\n              'entity.builda-price.projects.project.tasks.task.people.clients.client.clientTaskPermissionsExplanation'\n            }}\n          </p>\n  \n          <div\n            class='d-flex align-items-center mb-3'\n            role='button'\n            {{on\n              'click'\n              (fn\n                (mut this.taskPermissionsVisible)\n                (not this.taskPermissionsVisible)\n              )\n            }}\n          >\n            <h4 class='m-0'>\n              {{t 'common.Task'}}\n            </h4>\n            {{#if this.taskPermissionsCount}}\n              <span class='ms-2 badge bg-info'>\n                {{this.taskPermissionsCount}}\n              </span>\n            {{/if}}\n            <h4 class='m-0 ms-auto'>\n              <FaIcon\n                @icon={{if\n                  this.taskPermissionsVisible\n                  'chevron-down'\n                  'chevron-right'\n                }}\n              />\n            </h4>\n          </div>\n          {{#if this.taskPermissionsVisible}}\n            {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see the task budget'}}\n                @key='canViewBudgets'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewBudgets\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewBudgets\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewBudgets\n                  (get\n                    this.model.permissionsChangeset.last.value 'canViewBudgets'\n                  )\n                }}\n              />\n  \n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see the task quote'}}\n                @key='canViewQuotes'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewQuotes\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewQuotes\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewQuotes\n                  (get this.model.permissionsChangeset.last.value 'canViewQuotes')\n                }}\n              />\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseProjectProgress}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see the task progress'}}\n                @key='canViewProgress'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewProgress\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewProgress\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewProgress\n                  (get\n                    this.model.permissionsChangeset.last.value 'canViewProgress'\n                  )\n                }}\n              />\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see all task documents'}}\n                @key='canViewFileStorage'\n                @description={{t\n                  'shared.people-editor.canSeeAllTaskDocumentsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewFileStorage\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewFileStorage\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewFileStorage\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewFileStorage'\n                  )\n                }}\n              />\n            {{/if}}\n          {{/if}}\n          {{#if this.newFeatureFlags.entityCanUseScheduling}}\n            <div\n              class='d-flex align-items-center mb-3'\n              role='button'\n              {{on\n                'click'\n                (fn\n                  (mut this.schedulingPermissionsVisible)\n                  (not this.schedulingPermissionsVisible)\n                )\n              }}\n            >\n              <h4 class='m-0'>\n                {{t 'common.Scheduling'}}\n              </h4>\n              {{#if this.schedulingPermissionsCount}}\n                <span class='ms-2 badge bg-info'>\n                  {{this.schedulingPermissionsCount}}\n                </span>\n              {{/if}}\n              <h4 class='m-0 ms-auto'>\n                <FaIcon\n                  @icon={{if\n                    this.schedulingPermissionsVisible\n                    'chevron-down'\n                    'chevron-right'\n                  }}\n                />\n              </h4>\n            </div>\n            {{#if this.schedulingPermissionsVisible}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see scheduling reports'}}\n                @key='canViewSchedulingReports'\n                @description={{t\n                  'shared.people-editor.Gives access to see the timeline'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewSchedulingReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewSchedulingReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewSchedulingReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewSchedulingReports'\n                  )\n                }}\n              />\n            {{/if}}\n          {{/if}}\n  \n          <div\n            class='d-flex align-items-center mb-3'\n            role='button'\n            {{on\n              'click'\n              (fn\n                (mut this.reportsPermissionsVisible)\n                (not this.reportsPermissionsVisible)\n              )\n            }}\n          >\n            <h4 class='m-0'>\n              {{t 'common.Reports'}}\n            </h4>\n            {{#if this.reportsPermissionsCount}}\n              <span class='ms-2 badge bg-info'>\n                {{this.reportsPermissionsCount}}\n              </span>\n            {{/if}}\n            <h4 class='m-0 ms-auto'>\n              <FaIcon\n                @icon={{if\n                  this.reportsPermissionsVisible\n                  'chevron-down'\n                  'chevron-right'\n                }}\n              />\n            </h4>\n          </div>\n          {{#if this.reportsPermissionsVisible}}\n            <div class='alert alert-primary' role='alert'>\n              <FaIcon @icon='info-circle' @size='lg' class='me-2' />\n              <span class='me-2'>\n                {{#if this.canViewReports.length}}\n                  {{t\n                    'shared.people-editor.withThesePermissionsThisUserCanSeeTheFollowingReports'\n                  }}:\n                  <span class='fw-bold'>{{this.canViewReports}}</span>.\n                {{else}}\n                  {{t\n                    'shared.people-editor.withThesePermissionsThisUserCanNotSeeAnyReports'\n                  }}\n                {{/if}}\n              </span>\n            </div>\n            {{#if this.newFeatureFlags.entityCanUseClientReports}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.users.user.canViewClientReportsLabel'\n                }}\n                @key='canViewClientReports'\n                @description={{t\n                  'shared.people-editor.users.user.canViewClientReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewClientReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewClientReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewClientReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewClientReports'\n                  )\n                }}\n              />\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see budget data in reports'}}\n                @description={{t\n                  'shared.people-editor.users.user.canSeeAllBudgetDataInReportsDescription'\n                }}\n                @key='canViewBudgetFinancialReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewBudgetReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewBudgetReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewBudgetReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewBudgetFinancialReports'\n                  )\n                }}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.users.user.canViewBudgetHourReportsLabel'\n                }}\n                @description={{t\n                  'shared.people-editor.users.user.canViewBudgetHourReportsLabelDescription'\n                }}\n                @key='canViewBudgetLabourHourReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewBudgetLabourHourReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewBudgetLabourHourReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewBudgetLabourHourReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewBudgetLabourHourReports'\n                  )\n                }}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see quote data in reports'}}\n                @key='canViewQuoteReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewQuoteReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewQuoteReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewQuoteReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewQuoteReports'\n                  )\n                }}\n              />\n            {{/if}}\n            {{#if\n              (or\n                this.newFeatureFlags.entityCanUseTimesheets\n                this.newFeatureFlags.entityCanUseBills\n              )\n            }}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see cost data in reports'}}\n                @key='canViewCostFinancialReports'\n                @description={{t\n                  'shared.people-editor.canSeeAllCostDataInReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewCostReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewCostReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewCostReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewCostFinancialReports'\n                  )\n                }}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.users.user.canViewActualHourReportsLabel'\n                }}\n                @key='canViewCostLabourHourReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewCostLabourHourReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewCostLabourHourReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewCostLabourHourReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewCostLabourHourReports'\n                  )\n                }}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.Can see work value data in reports'\n                }}\n                @key='canViewChargeupReports'\n                @description={{t\n                  'shared.people-editor.canSeeAllWorkValueDataInReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewChargeupReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewChargeupReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewChargeupReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewChargeupReports'\n                  )\n                }}\n              />\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.Can see progress data in reports'\n                }}\n                @key='canViewProgressReports'\n                @description={{t\n                  'shared.people-editor.canSeeProgressDataInReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewProgressReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewProgressReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewProgressReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewProgressReports'\n                  )\n                }}\n              />\n              {{#if this.newFeatureFlags.entityCanUseInvoicingReport}}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'shared.people-editor.users.user.Can see all invoicing data in reports'\n                  }}\n                  @key='canViewInvoicingReports'\n                  @description={{t\n                    'shared.people-editor.users.user.canViewInvoicingReportsDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.projectCanViewInvoicingReports\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.projectCanViewInvoicingReports\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.projectCanViewInvoicingReports\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canViewInvoicingReports'\n                    )\n                  }}\n                />\n              {{/if}}\n            {{/if}}\n          {{/if}}\n  \n          <div class='d-flex flex-grow-1 mt-2'>\n            <button\n              type='button'\n              class='btn btn-primary ms-auto'\n              disabled={{this.savePermissions.isRunning}}\n              {{on\n                'click'\n                (perform\n                  this.savePermissions this.model.permissionsChangeset.last.value\n                )\n              }}\n            >\n              {{#if this.savePermissions.isRunning}}\n                {{t 'shared.people-editor.Saving permissions'}}&hellip;\n              {{else}}\n                {{t 'shared.people-editor.Save permissions'}}\n              {{/if}}\n            </button>\n          </div>\n        </PtlForm>\n      {{/if}}\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"lvjbXZvD\",\n    \"block\": \"[[[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-3 ms-1 mt-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,3],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-0\\\"],[12],[1,[28,[35,6],[\\\"common.Details\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,0,[\\\"model\\\",\\\"client\\\",\\\"last\\\",\\\"value\\\",\\\"fullName\\\"]]],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"shared.people-editor.is assigned to the task\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,8],[[24,0,\\\"btn btn-primary m-1\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.settings.people.clients.client\\\",[30,0,[\\\"model\\\",\\\"client\\\",\\\"last\\\",\\\"value\\\",\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"shared.people-editor.clients.client.View client details\\\"],null]],[1,\\\"\\\\n          \\\"],[8,[39,9],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",true,\\\"md\\\"]],null],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,10],[\\\"canManageUsers\\\"],null],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteUser\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"deleteUser\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteUser\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[52,[30,0,[\\\"userIsYou\\\"]],[28,[37,6],[\\\"shared.people-editor.Removing you from task\\\"],null],[28,[37,6],[\\\"shared.people-editor.Removing from task\\\"],null]]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[52,[30,0,[\\\"userIsYou\\\"]],[28,[37,6],[\\\"shared.people-editor.Remove yourself from task\\\"],null],[28,[37,6],[\\\"shared.people-editor.Remove from task\\\"],null]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"],[41,[28,[37,10],[\\\"canManageUsers\\\"],null],[[[1,\\\"      \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-0\\\"],[12],[1,[28,[35,6],[\\\"shared.people-editor.Permissions\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[10,2],[14,0,\\\"mb-4\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"entity.builda-price.projects.project.tasks.task.people.clients.client.clientTaskPermissionsExplanation\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"taskPermissionsVisible\\\"]]],null],[28,[37,16],[[30,0,[\\\"taskPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"common.Task\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"taskPermissionsCount\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"taskPermissionsCount\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"taskPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"taskPermissionsVisible\\\"]],[[[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewBudgets\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see the task budget\\\"],null],\\\"canViewBudgets\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewBudgets\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewBudgets\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewBudgets\\\"],null]],null]]],null],[1,\\\"\\\\n\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewQuotes\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see the task quote\\\"],null],\\\"canViewQuotes\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewQuotes\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewQuotes\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewQuotes\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectProgress\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewProgress\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see the task progress\\\"],null],\\\"canViewProgress\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewProgress\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewProgress\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewProgress\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewFileStorage\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all task documents\\\"],null],\\\"canViewFileStorage\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllTaskDocumentsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewFileStorage\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewFileStorage\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewFileStorage\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseScheduling\\\"]],[[[1,\\\"          \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"schedulingPermissionsVisible\\\"]]],null],[28,[37,16],[[30,0,[\\\"schedulingPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"common.Scheduling\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"schedulingPermissionsCount\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"schedulingPermissionsCount\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"schedulingPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"schedulingPermissionsVisible\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewSchedulingReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see scheduling reports\\\"],null],\\\"canViewSchedulingReports\\\",[28,[37,6],[\\\"shared.people-editor.Gives access to see the timeline\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewSchedulingReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewSchedulingReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewSchedulingReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n        \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"reportsPermissionsVisible\\\"]]],null],[28,[37,16],[[30,0,[\\\"reportsPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"common.Reports\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"reportsPermissionsCount\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"reportsPermissionsCount\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"reportsPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"reportsPermissionsVisible\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"alert alert-primary\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],[[24,0,\\\"me-2\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"info-circle\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canViewReports\\\",\\\"length\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"shared.people-editor.withThesePermissionsThisUserCanSeeTheFollowingReports\\\"],null]],[1,\\\":\\\\n                \\\"],[10,1],[14,0,\\\"fw-bold\\\"],[12],[1,[30,0,[\\\"canViewReports\\\"]]],[13],[1,\\\".\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"shared.people-editor.withThesePermissionsThisUserCanNotSeeAnyReports\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseClientReports\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewClientReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewClientReportsLabel\\\"],null],\\\"canViewClientReports\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewClientReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewClientReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewClientReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewClientReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewBudgetReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see budget data in reports\\\"],null],[28,[37,6],[\\\"shared.people-editor.users.user.canSeeAllBudgetDataInReportsDescription\\\"],null],\\\"canViewBudgetFinancialReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewBudgetReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewBudgetReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewBudgetFinancialReports\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewBudgetLabourHourReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewBudgetHourReportsLabel\\\"],null],[28,[37,6],[\\\"shared.people-editor.users.user.canViewBudgetHourReportsLabelDescription\\\"],null],\\\"canViewBudgetLabourHourReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewBudgetLabourHourReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewBudgetLabourHourReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewBudgetLabourHourReports\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewQuoteReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see quote data in reports\\\"],null],\\\"canViewQuoteReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewQuoteReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewQuoteReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewQuoteReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,20],[[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseTimesheets\\\"]],[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseBills\\\"]]],null],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewCostReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see cost data in reports\\\"],null],\\\"canViewCostFinancialReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllCostDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewCostReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewCostReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewCostFinancialReports\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewCostLabourHourReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewActualHourReportsLabel\\\"],null],\\\"canViewCostLabourHourReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewCostLabourHourReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewCostLabourHourReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewCostLabourHourReports\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewChargeupReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see work value data in reports\\\"],null],\\\"canViewChargeupReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllWorkValueDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewChargeupReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewChargeupReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewChargeupReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewProgressReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see progress data in reports\\\"],null],\\\"canViewProgressReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeProgressDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewProgressReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewProgressReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewProgressReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseInvoicingReport\\\"]],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewInvoicingReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.Can see all invoicing data in reports\\\"],null],\\\"canViewInvoicingReports\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewInvoicingReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewInvoicingReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewInvoicingReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewInvoicingReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-2\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"savePermissions\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Saving permissions\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Save permissions\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[13]],[],false,[\\\"div\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"page-title-breadcrumbs\\\",\\\"ptl-form\\\",\\\"h3\\\",\\\"t\\\",\\\"p\\\",\\\"link-to\\\",\\\"fa-icon\\\",\\\"includes-feature-flags\\\",\\\"button\\\",\\\"on\\\",\\\"perform\\\",\\\"fn\\\",\\\"mut\\\",\\\"not\\\",\\\"h4\\\",\\\"span\\\",\\\"ptl-input\\\",\\\"or\\\",\\\"gt\\\",\\\"get\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/tasks/task/people/clients/client.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/tasks/task/people/clients/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <div class='float-end mb-1 d-flex align-items-center'>\n      <span class='m-1' style='width: 200px;'>\n        <Input\n          class='form-control'\n          placeholder={{t 'shared.people-editor.clients.Search for clients'}}\n          @type='text'\n          @value={{this.searchString}}\n        />\n      </span>\n      {{#if (includes-feature-flags 'canManageUsers')}}\n        <button\n          type='button'\n          class='btn btn-success text-white text-nowrap m-1'\n          {{on 'click' (fn (mut this.isAddingClientToTask) true)}}\n        >\n          <FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Add'}}\n        </button>\n      {{/if}}\n    </div>\n    <PeopleTable\n      @filteredList={{this.filteredClients}}\n      @noData={{t 'shared.people-editor.clients.No clients yet'}}\n      @route={{concat this.model.basePath '.clients.client'}}\n    />\n  {{/if}}\n  \n  {{#if this.isAddingClientToTask}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.isAddingClientToTask) false}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-header'>\n        <h3 class='modal-title'>\n          {{t\n            'entity.builda-price.projects.project.tasks.task.people.clients.Add client to task'\n          }}\n        </h3>\n      </div>\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t\n            'entity.builda-price.projects.project.tasks.task.people.clients.addClientsToTaskExplanation'\n          }}\n        </p>\n  \n        <PowerSelect\n          @tagName='div'\n          class='mb-1'\n          @options={{this.unassignedClients}}\n          @selected={{this.clientToAddToTask}}\n          @onChange={{fn (mut this.clientToAddToTask)}}\n          @searchEnabled={{true}}\n          @searchField='name'\n          @placeholder={{t 'shared.people-editor.clients.Find a client'}}\n          @allowClear={{true}}\n          as |user|\n        >\n          {{user.firstName}}\n          {{user.lastName}}\n          ({{user.email}})\n        </PowerSelect>\n        <LinkTo\n          class='link ps-0'\n          @route='entity.builda-price.projects.project.people.clients'\n          @model={{this.model.project.last.value.id}}\n        >\n          {{t\n            'entity.builda-price.projects.project.tasks.task.people.clients.doNotSeeTheClientAddThemToTheProject'\n          }}\n          <FaIcon @icon='external-link-alt' @fixedWidth={{true}} @size='md' />\n        </LinkTo>\n  \n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          disabled={{this.addClientToTask.isRunning}}\n          {{on 'click' (fn (mut this.isAddingClientToTask) false)}}\n        >{{t 'common.Cancel'}}</button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          disabled={{or\n            (not this.clientToAddToTask)\n            this.addClientToTask.isRunning\n          }}\n          {{on 'click' (perform this.addClientToTask)}}\n        >\n          {{#if this.addClientToTask.isRunning}}\n            {{t 'common.Adding'}}&hellip;\n          {{else}}\n            {{t 'common.Add'}}\n          {{/if}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"2zSP9Lr1\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"float-end mb-1 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,1],[14,0,\\\"m-1\\\"],[14,5,\\\"width: 200px;\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],[[24,0,\\\"form-control\\\"],[16,\\\"placeholder\\\",[28,[37,5],[\\\"shared.people-editor.clients.Search for clients\\\"],null]]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[\\\"canManageUsers\\\"],null],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"isAddingClientToTask\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n        \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,5],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,12],null,[[\\\"@filteredList\\\",\\\"@noData\\\",\\\"@route\\\"],[[30,0,[\\\"filteredClients\\\"]],[28,[37,5],[\\\"shared.people-editor.clients.No clients yet\\\"],null],[28,[37,13],[[30,0,[\\\"model\\\",\\\"basePath\\\"]],\\\".clients.client\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isAddingClientToTask\\\"]],[[[1,\\\"  \\\"],[8,[39,14],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"isAddingClientToTask\\\"]]],null],false],null],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.tasks.task.people.clients.Add client to task\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.tasks.task.people.clients.addClientsToTaskExplanation\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,17],[[24,0,\\\"mb-1\\\"]],[[\\\"@tagName\\\",\\\"@options\\\",\\\"@selected\\\",\\\"@onChange\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@allowClear\\\"],[\\\"div\\\",[30,0,[\\\"unassignedClients\\\"]],[30,0,[\\\"clientToAddToTask\\\"]],[28,[37,9],[[28,[37,10],[[30,0,[\\\"clientToAddToTask\\\"]]],null]],null],true,\\\"name\\\",[28,[37,5],[\\\"shared.people-editor.clients.Find a client\\\"],null],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[30,1,[\\\"firstName\\\"]]],[1,\\\"\\\\n        \\\"],[1,[30,1,[\\\"lastName\\\"]]],[1,\\\"\\\\n        (\\\"],[1,[30,1,[\\\"email\\\"]]],[1,\\\")\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n      \\\"],[8,[39,18],[[24,0,\\\"link ps-0\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.builda-price.projects.project.people.clients\\\",[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.tasks.task.people.clients.doNotSeeTheClientAddThemToTheProject\\\"],null]],[1,\\\"\\\\n        \\\"],[8,[39,11],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",true,\\\"md\\\"]],null],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"addClientToTask\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"isAddingClientToTask\\\"]]],null],false],null]],null],[12],[1,[28,[35,5],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[28,[37,19],[[28,[37,20],[[30,0,[\\\"clientToAddToTask\\\"]]],null],[30,0,[\\\"addClientToTask\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,21],[[30,0,[\\\"addClientToTask\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"addClientToTask\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"common.Adding\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"user\\\"],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"span\\\",\\\"input\\\",\\\"t\\\",\\\"includes-feature-flags\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"fa-icon\\\",\\\"people-table\\\",\\\"concat\\\",\\\"modal-dialog\\\",\\\"h3\\\",\\\"p\\\",\\\"power-select\\\",\\\"link-to\\\",\\\"or\\\",\\\"not\\\",\\\"perform\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/tasks/task/people/clients/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/tasks/task/people/subcontractors\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"Vk+x8x2j\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/tasks/task/people/subcontractors.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/tasks/task/people/subcontractors/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <div class='float-end mb-1 d-flex align-items-center'>\n      <span class='m-1' style='width: 200px;'>\n        <Input\n          class='form-control'\n          placeholder={{t\n            'shared.people-editor.subcontractors.Search for subcontractors'\n          }}\n          @type='text'\n          @value={{this.searchString}}\n        />\n      </span>\n      {{#if (includes-feature-flags 'canManageSubcontractors')}}\n        <button\n          type='button'\n          class='btn btn-success text-white text-nowrap m-1'\n          {{on 'click' (fn (mut this.isAddingSubcontractorToTask) true)}}\n        >\n          <FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Add'}}\n        </button>\n      {{/if}}\n    </div>\n    <PeopleTable\n      @filteredList={{this.filteredSubcontractors}}\n      @noData={{t 'shared.people-editor.subcontractors.No subcontractors yet'}}\n      @route={{concat this.model.basePath '.subcontractors.subcontractor'}}\n    />\n  {{/if}}\n  \n  {{#if this.isAddingSubcontractorToTask}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.isAddingSubcontractorToTask) false}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-header'>\n        <h3 class='modal-title'>\n          {{t\n            'entity.builda-price.projects.project.tasks.task.people.subcontractors.Add subcontractor to task'\n          }}\n        </h3>\n      </div>\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t\n            'entity.builda-price.projects.project.tasks.task.people.subcontractors.addSubcontractorToTaskExplanation'\n          }}\n        </p>\n  \n        <PowerSelect\n          @tagName='div'\n          class='mb-1'\n          @options={{this.unassignedSubcontractors}}\n          @selected={{this.subcontractorToAddToTask}}\n          @onChange={{fn (mut this.subcontractorToAddToTask)}}\n          @searchEnabled={{true}}\n          @searchField='name'\n          @placeholder={{t\n            'shared.people-editor.subcontractors.Find a subcontractor'\n          }}\n          @allowClear={{true}}\n          as |subcontractor|\n        >\n          {{subcontractor.firstName}}\n          {{subcontractor.lastName}}\n          ({{subcontractor.email}})\n        </PowerSelect>\n        <LinkTo\n          class='link ps-0'\n          @route='entity.builda-price.projects.project.people.subcontractors'\n          @model={{this.model.project.last.value.id}}\n        >\n          {{t\n            'entity.builda-price.projects.project.tasks.task.people.subcontractors.doNotSeeTheSubcontractorAddThemToTheProject'\n          }}\n          <FaIcon @icon='external-link-alt' @fixedWidth={{true}} @size='md' />\n        </LinkTo>\n  \n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          disabled={{this.addSubcontractorToTask.isRunning}}\n          {{on 'click' (fn (mut this.isAddingSubcontractorToTask) false)}}\n        >{{t 'common.Cancel'}}</button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          disabled={{or\n            (not this.subcontractorToAddToTask)\n            this.addSubcontractorToTask.isRunning\n          }}\n          {{on 'click' (perform this.addSubcontractorToTask)}}\n        >\n          {{#if this.addSubcontractorToTask.isRunning}}\n            {{t 'common.Adding'}}&hellip;\n          {{else}}\n            {{t 'common.Add'}}\n          {{/if}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"v+fHHSrx\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"float-end mb-1 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,1],[14,0,\\\"m-1\\\"],[14,5,\\\"width: 200px;\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],[[24,0,\\\"form-control\\\"],[16,\\\"placeholder\\\",[28,[37,5],[\\\"shared.people-editor.subcontractors.Search for subcontractors\\\"],null]]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[\\\"canManageSubcontractors\\\"],null],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"isAddingSubcontractorToTask\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n        \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,5],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,12],null,[[\\\"@filteredList\\\",\\\"@noData\\\",\\\"@route\\\"],[[30,0,[\\\"filteredSubcontractors\\\"]],[28,[37,5],[\\\"shared.people-editor.subcontractors.No subcontractors yet\\\"],null],[28,[37,13],[[30,0,[\\\"model\\\",\\\"basePath\\\"]],\\\".subcontractors.subcontractor\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isAddingSubcontractorToTask\\\"]],[[[1,\\\"  \\\"],[8,[39,14],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"isAddingSubcontractorToTask\\\"]]],null],false],null],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.tasks.task.people.subcontractors.Add subcontractor to task\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.tasks.task.people.subcontractors.addSubcontractorToTaskExplanation\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,17],[[24,0,\\\"mb-1\\\"]],[[\\\"@tagName\\\",\\\"@options\\\",\\\"@selected\\\",\\\"@onChange\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@allowClear\\\"],[\\\"div\\\",[30,0,[\\\"unassignedSubcontractors\\\"]],[30,0,[\\\"subcontractorToAddToTask\\\"]],[28,[37,9],[[28,[37,10],[[30,0,[\\\"subcontractorToAddToTask\\\"]]],null]],null],true,\\\"name\\\",[28,[37,5],[\\\"shared.people-editor.subcontractors.Find a subcontractor\\\"],null],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[30,1,[\\\"firstName\\\"]]],[1,\\\"\\\\n        \\\"],[1,[30,1,[\\\"lastName\\\"]]],[1,\\\"\\\\n        (\\\"],[1,[30,1,[\\\"email\\\"]]],[1,\\\")\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n      \\\"],[8,[39,18],[[24,0,\\\"link ps-0\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.builda-price.projects.project.people.subcontractors\\\",[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.tasks.task.people.subcontractors.doNotSeeTheSubcontractorAddThemToTheProject\\\"],null]],[1,\\\"\\\\n        \\\"],[8,[39,11],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",true,\\\"md\\\"]],null],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"addSubcontractorToTask\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"isAddingSubcontractorToTask\\\"]]],null],false],null]],null],[12],[1,[28,[35,5],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[28,[37,19],[[28,[37,20],[[30,0,[\\\"subcontractorToAddToTask\\\"]]],null],[30,0,[\\\"addSubcontractorToTask\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,21],[[30,0,[\\\"addSubcontractorToTask\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"addSubcontractorToTask\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"common.Adding\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"subcontractor\\\"],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"span\\\",\\\"input\\\",\\\"t\\\",\\\"includes-feature-flags\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"fa-icon\\\",\\\"people-table\\\",\\\"concat\\\",\\\"modal-dialog\\\",\\\"h3\\\",\\\"p\\\",\\\"power-select\\\",\\\"link-to\\\",\\\"or\\\",\\\"not\\\",\\\"perform\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/tasks/task/people/subcontractors/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/tasks/task/people/subcontractors/subcontractor\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='flex-grow-1'>\n    {{#if this.isRunning}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mb-3 ms-1 mt-1'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <PtlForm class='mb-3'>\n        <h3 class='mb-0'>{{t 'common.Details'}}</h3>\n        <p class='mb-3'>\n          {{this.model.subcontractor.last.value.fullName}}\n          {{t 'shared.people-editor.is assigned to the task'}}\n        </p>\n        <div class='d-flex'>\n          <LinkTo\n            class='btn btn-primary m-1'\n            @route='entity.settings.people.subcontractors.subcontractor'\n            @model={{this.model.subcontractor.last.value.id}}\n          >\n            {{t\n              'shared.people-editor.subcontractors.subcontractor.View subcontractor details'\n            }}\n            <FaIcon @icon='external-link-alt' @fixedWidth={{true}} @size='md' />\n          </LinkTo>\n  \n          {{#if (includes-feature-flags 'canManageSubcontractors')}}\n            <button\n              type='button'\n              class='btn btn-secondary m-1'\n              disabled={{this.deleteUser.isRunning}}\n              {{on 'click' (perform this.deleteUser)}}\n            >\n              {{#if this.deleteUser.isRunning}}\n                {{if\n                  this.userIsYou\n                  (t 'shared.people-editor.Removing you from task')\n                  (t 'shared.people-editor.Removing from task')\n                }}&hellip;\n              {{else}}\n                {{if\n                  this.userIsYou\n                  (t 'shared.people-editor.Remove yourself from task')\n                  (t 'shared.people-editor.Remove from task')\n                }}\n              {{/if}}\n            </button>\n          {{/if}}\n        </div>\n      </PtlForm>\n  \n      {{#if (includes-feature-flags 'canManageSubcontractors')}}\n        <PtlForm class='mb-3'>\n          <h3 class='mb-0'>{{t 'shared.people-editor.Permissions'}}</h3>\n          <p class='mb-4'>\n            {{t\n              'entity.builda-price.projects.project.tasks.task.people.subcontractors.subcontractor.subcontractorTaskPermissionsExplanation'\n            }}\n          </p>\n  \n          <div\n            class='d-flex align-items-center mb-3'\n            role='button'\n            {{on\n              'click'\n              (fn\n                (mut this.taskPermissionsVisible)\n                (not this.taskPermissionsVisible)\n              )\n            }}\n          >\n            <h4 class='m-0'>\n              {{t 'common.Task'}}\n            </h4>\n            {{#if this.taskPermissionsCount}}\n              <span class='ms-2 badge bg-info'>\n                {{this.taskPermissionsCount}}\n              </span>\n            {{/if}}\n            <h4 class='m-0 ms-auto'>\n              <FaIcon\n                @icon={{if\n                  this.taskPermissionsVisible\n                  'chevron-down'\n                  'chevron-right'\n                }}\n              />\n            </h4>\n          </div>\n          {{#if this.taskPermissionsVisible}}\n            <PtlInput\n              @type='checkbox'\n              @label={{t 'shared.people-editor.Can make changes to the task'}}\n              @key='canManageTasks'\n              @description={{t\n                'shared.people-editor.canMakeChangesToTheTaskDescription'\n              }}\n              @model={{this.model.permissionsChangeset.last.value}}\n              @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n              @toolTip={{if\n                this.projectCanManageTasks\n                this.permissionSupersededMessage\n              }}\n              disabled={{or\n                this.projectCanManageTasks\n                this.savePermissions.isRunning\n              }}\n              @checked={{or\n                this.projectCanManageTasks\n                (get this.model.permissionsChangeset.last.value 'canManageTasks')\n              }}\n            />\n            {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see the task budget'}}\n                @key='canViewBudgets'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewBudgets\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewBudgets\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewBudgets\n                  (get\n                    this.model.permissionsChangeset.last.value 'canViewBudgets'\n                  )\n                }}\n              />\n              {{#if\n                (or\n                  this.projectCanViewBudgets\n                  this.model.permissionsChangeset.last.value.canManageBudgets\n                  this.model.permissionsChangeset.last.value.canViewBudgets\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'shared.people-editor.Can manage the task budget'}}\n                  @key='canManageBudgets'\n                  @description={{t\n                    'shared.people-editor.canManageTheTaskBudgetDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.projectCanManageBudgets\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.projectCanManageBudgets\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.projectCanManageBudgets\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canManageBudgets'\n                    )\n                  }}\n                />\n              {{/if}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see the task quote'}}\n                @key='canViewQuotes'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewQuotes\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewQuotes\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewQuotes\n                  (get this.model.permissionsChangeset.last.value 'canViewQuotes')\n                }}\n              />\n              {{#if\n                (or\n                  this.projectCanViewQuotes\n                  this.model.permissionsChangeset.last.value.canManageQuotes\n                  this.model.permissionsChangeset.last.value.canViewQuotes\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'shared.people-editor.Can manage the task quote'}}\n                  @key='canManageQuotes'\n                  @description={{t\n                    'shared.people-editor.canManageTheTaskQuoteDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.projectCanManageQuotes\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.projectCanManageQuotes\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.projectCanManageQuotes\n                    (get\n                      this.model.permissionsChangeset.last.value 'canManageQuotes'\n                    )\n                  }}\n                />\n              {{/if}}\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseProjectProgress}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see the task progress'}}\n                @key='canViewProgress'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewProgress\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewProgress\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewProgress\n                  (get\n                    this.model.permissionsChangeset.last.value 'canViewProgress'\n                  )\n                }}\n              />\n              {{#if\n                (or\n                  this.projectCanViewProgress\n                  this.model.permissionsChangeset.last.value.canManageProgress\n                  this.model.permissionsChangeset.last.value.canViewProgress\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'shared.people-editor.Can manage the task progress'}}\n                  @key='canManageProgress'\n                  @description={{t\n                    'shared.people-editor.canManageTheTaskProgressDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.projectCanManageProgress\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.projectCanManageProgress\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.projectCanManageProgress\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canManageProgress'\n                    )\n                  }}\n                />\n              {{/if}}\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see all task documents'}}\n                @key='canViewFileStorage'\n                @description={{t\n                  'shared.people-editor.canSeeAllTaskDocumentsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewFileStorage\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewFileStorage\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewFileStorage\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewFileStorage'\n                  )\n                }}\n              />\n              {{#if\n                (or\n                  this.projectCanViewFileStorage\n                  this.model.permissionsChangeset.last.value.canManageFileStorage\n                  this.model.permissionsChangeset.last.value.canViewFileStorage\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'entity.builda-price.projects.project.tasks.task.people.subcontractors.subcontractor.Can manage all task documents'\n                  }}\n                  @key='canManageFileStorage'\n                  @description={{t\n                    'entity.builda-price.projects.project.tasks.task.people.subcontractors.subcontractor.canManageAllDocumentsForTheTaskDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.projectCanManageFileStorage\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.projectCanManageFileStorage\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.projectCanManageFileStorage\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canManageFileStorage'\n                    )\n                  }}\n                />\n              {{/if}}\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseProducts}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.Can see all products for the task'\n                }}\n                @key='canViewProducts'\n                @description={{t\n                  'shared.people-editor.canSeeAllProductsForTheTaskDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewProducts\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewProducts\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewProducts\n                  (get\n                    this.model.permissionsChangeset.last.value 'canViewProducts'\n                  )\n                }}\n              />\n              {{#if\n                (or\n                  this.projectCanViewProducts\n                  this.model.permissionsChangeset.last.value.canManageProducts\n                  this.model.permissionsChangeset.last.value.canViewProducts\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'shared.people-editor.Can manage all products for the task'\n                  }}\n                  @key='canManageProducts'\n                  @description={{t\n                    'shared.people-editor.canManageAllProductsForTheTaskDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.projectCanManageProducts\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.projectCanManageProducts\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.projectCanManageProducts\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canManageProducts'\n                    )\n                  }}\n                />\n              {{/if}}\n            {{/if}}\n          {{/if}}\n          {{#if this.newFeatureFlags.entityCanUseScheduling}}\n            <div\n              class='d-flex align-items-center mb-3'\n              role='button'\n              {{on\n                'click'\n                (fn\n                  (mut this.schedulingPermissionsVisible)\n                  (not this.schedulingPermissionsVisible)\n                )\n              }}\n            >\n              <h4 class='m-0'>\n                {{t 'common.Scheduling'}}\n              </h4>\n              {{#if this.schedulingPermissionsCount}}\n                <span class='ms-2 badge bg-info'>\n                  {{this.schedulingPermissionsCount}}\n                </span>\n              {{/if}}\n              <h4 class='m-0 ms-auto'>\n                <FaIcon\n                  @icon={{if\n                    this.schedulingPermissionsVisible\n                    'chevron-down'\n                    'chevron-right'\n                  }}\n                />\n              </h4>\n            </div>\n            {{#if this.schedulingPermissionsVisible}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see scheduling reports'}}\n                @key='canViewSchedulingReports'\n                @description={{t\n                  'shared.people-editor.Gives access to see the timeline'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewSchedulingReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewSchedulingReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewSchedulingReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewSchedulingReports'\n                  )\n                }}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can make scheduling changes'}}\n                @key='canManageSchedulingReports'\n                @description={{t\n                  'shared.people-editor.canMakeSchedulingChangesDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanManageSchedulingReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanManageSchedulingReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanManageSchedulingReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canManageSchedulingReports'\n                  )\n                }}\n              />\n            {{/if}}\n          {{/if}}\n          {{#if this.newFeatureFlags.entityCanUseTimesheets}}\n            <div\n              class='d-flex align-items-center mb-3'\n              role='button'\n              {{on\n                'click'\n                (fn\n                  (mut this.allocationsPermissionsVisible)\n                  (not this.allocationsPermissionsVisible)\n                )\n              }}\n            >\n              <h4 class='m-0'>\n                {{t 'common.Allocations'}}\n              </h4>\n              {{#if this.allocationsPermissionsCount}}\n                <span class='ms-2 badge bg-info'>\n                  {{this.allocationsPermissionsCount}}\n                </span>\n              {{/if}}\n              <h4 class='m-0 ms-auto'>\n                <FaIcon\n                  @icon={{if\n                    this.allocationsPermissionsVisible\n                    'chevron-down'\n                    'chevron-right'\n                  }}\n                />\n              </h4>\n            </div>\n            {{#if this.allocationsPermissionsVisible}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see and manage timesheets'}}\n                @key='canManageTimesheets'\n                @description={{t\n                  'shared.people-editor.canSeeAndManageTimesheetsTaskDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanManageTimesheets\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanManageTimesheets\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanManageTimesheets\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canManageTimesheets'\n                  )\n                }}\n              />\n            {{/if}}\n          {{/if}}\n  \n          <div\n            class='d-flex align-items-center mb-3'\n            role='button'\n            {{on\n              'click'\n              (fn\n                (mut this.reportsPermissionsVisible)\n                (not this.reportsPermissionsVisible)\n              )\n            }}\n          >\n            <h4 class='m-0'>\n              {{t 'common.Reports'}}\n            </h4>\n            {{#if this.reportsPermissionsCount}}\n              <span class='ms-2 badge bg-info'>\n                {{this.reportsPermissionsCount}}\n              </span>\n            {{/if}}\n            <h4 class='m-0 ms-auto'>\n              <FaIcon\n                @icon={{if\n                  this.reportsPermissionsVisible\n                  'chevron-down'\n                  'chevron-right'\n                }}\n              />\n            </h4>\n          </div>\n          {{#if this.reportsPermissionsVisible}}\n            <div class='alert alert-primary' role='alert'>\n              <FaIcon @icon='info-circle' @size='lg' class='me-2' />\n              <span class='me-2'>\n                {{#if this.canViewReports.length}}\n                  {{t\n                    'shared.people-editor.withThesePermissionsThisSubcontractorCanSeeTheFollowingReports'\n                  }}:\n                  <span class='fw-bold'>{{this.canViewReports}}</span>.\n                {{else}}\n                  {{t\n                    'shared.people-editor.subcontractors.subcontractor.withThesePermissionsThisSubcontractorCanNotSeeAnyReports'\n                  }}\n                {{/if}}\n              </span>\n            </div>\n            {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see budget data in reports'}}\n                @description={{t\n                  'shared.people-editor.users.user.canSeeAllBudgetDataInReportsDescription'\n                }}\n                @key='canViewBudgetFinancialReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewBudgetReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewBudgetReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewBudgetReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewBudgetFinancialReports'\n                  )\n                }}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.users.user.canViewBudgetHourReportsLabel'\n                }}\n                @description={{t\n                  'shared.people-editor.users.user.canViewBudgetHourReportsLabelDescription'\n                }}\n                @key='canViewBudgetLabourHourReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewBudgetLabourHourReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewBudgetLabourHourReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewBudgetLabourHourReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewBudgetLabourHourReports'\n                  )\n                }}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see quote data in reports'}}\n                @key='canViewQuoteReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewQuoteReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewQuoteReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewQuoteReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewQuoteReports'\n                  )\n                }}\n              />\n            {{/if}}\n            {{#if\n              (or\n                this.newFeatureFlags.entityCanUseTimesheets\n                this.newFeatureFlags.entityCanUseBills\n              )\n            }}\n              <div></div>\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see cost data in reports'}}\n                @key='canViewCostFinancialReports'\n                @description={{t\n                  'shared.people-editor.canSeeAllCostDataInReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewCostReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewCostReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewCostReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewCostFinancialReports'\n                  )\n                }}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.users.user.canViewActualHourReportsLabel'\n                }}\n                @key='canViewCostLabourHourReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewCostLabourHourReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewCostLabourHourReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewCostLabourHourReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewCostLabourHourReports'\n                  )\n                }}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.Can see work value data in reports'\n                }}\n                @key='canViewChargeupReports'\n                @description={{t\n                  'shared.people-editor.canSeeWorkValueDataInReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewChargeupReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewChargeupReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewChargeupReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewChargeupReports'\n                  )\n                }}\n              />\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.Can see progress data in reports'\n                }}\n                @key='canViewProgressReports'\n                @description={{t\n                  'shared.people-editor.canSeeProgressDataInReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewProgressReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewProgressReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewProgressReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewProgressReports'\n                  )\n                }}\n              />\n              {{#if this.newFeatureFlags.entityCanUseInvoicingReport}}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'shared.people-editor.users.user.Can see all invoicing data in reports'\n                  }}\n                  @key='canViewInvoicingReports'\n                  @description={{t\n                    'shared.people-editor.users.user.canViewInvoicingReportsDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.projectCanViewInvoicingReports\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.projectCanViewInvoicingReports\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.projectCanViewInvoicingReports\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canViewInvoicingReports'\n                    )\n                  }}\n                />\n              {{/if}}\n            {{/if}}\n          {{/if}}\n  \n          <div class='d-flex flex-grow-1 mt-2'>\n            <button\n              type='button'\n              class='btn btn-primary ms-auto'\n              disabled={{this.savePermissions.isRunning}}\n              {{on\n                'click'\n                (perform\n                  this.savePermissions this.model.permissionsChangeset.last.value\n                )\n              }}\n            >\n              {{#if this.savePermissions.isRunning}}\n                {{t 'shared.people-editor.Saving permissions'}}&hellip;\n              {{else}}\n                {{t 'shared.people-editor.Save permissions'}}\n              {{/if}}\n            </button>\n          </div>\n        </PtlForm>\n      {{/if}}\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"RiAnB6zD\",\n    \"block\": \"[[[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-3 ms-1 mt-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,3],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-0\\\"],[12],[1,[28,[35,6],[\\\"common.Details\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,0,[\\\"model\\\",\\\"subcontractor\\\",\\\"last\\\",\\\"value\\\",\\\"fullName\\\"]]],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"shared.people-editor.is assigned to the task\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,8],[[24,0,\\\"btn btn-primary m-1\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.settings.people.subcontractors.subcontractor\\\",[30,0,[\\\"model\\\",\\\"subcontractor\\\",\\\"last\\\",\\\"value\\\",\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"shared.people-editor.subcontractors.subcontractor.View subcontractor details\\\"],null]],[1,\\\"\\\\n          \\\"],[8,[39,9],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",true,\\\"md\\\"]],null],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,10],[\\\"canManageSubcontractors\\\"],null],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteUser\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"deleteUser\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteUser\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[52,[30,0,[\\\"userIsYou\\\"]],[28,[37,6],[\\\"shared.people-editor.Removing you from task\\\"],null],[28,[37,6],[\\\"shared.people-editor.Removing from task\\\"],null]]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[52,[30,0,[\\\"userIsYou\\\"]],[28,[37,6],[\\\"shared.people-editor.Remove yourself from task\\\"],null],[28,[37,6],[\\\"shared.people-editor.Remove from task\\\"],null]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,10],[\\\"canManageSubcontractors\\\"],null],[[[1,\\\"      \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-0\\\"],[12],[1,[28,[35,6],[\\\"shared.people-editor.Permissions\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[10,2],[14,0,\\\"mb-4\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"entity.builda-price.projects.project.tasks.task.people.subcontractors.subcontractor.subcontractorTaskPermissionsExplanation\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"taskPermissionsVisible\\\"]]],null],[28,[37,16],[[30,0,[\\\"taskPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"common.Task\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"taskPermissionsCount\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"taskPermissionsCount\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"taskPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"taskPermissionsVisible\\\"]],[[[1,\\\"          \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanManageTasks\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can make changes to the task\\\"],null],\\\"canManageTasks\\\",[28,[37,6],[\\\"shared.people-editor.canMakeChangesToTheTaskDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanManageTasks\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanManageTasks\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageTasks\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewBudgets\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see the task budget\\\"],null],\\\"canViewBudgets\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewBudgets\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewBudgets\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewBudgets\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"projectCanViewBudgets\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageBudgets\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewBudgets\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanManageBudgets\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage the task budget\\\"],null],\\\"canManageBudgets\\\",[28,[37,6],[\\\"shared.people-editor.canManageTheTaskBudgetDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanManageBudgets\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanManageBudgets\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageBudgets\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewQuotes\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see the task quote\\\"],null],\\\"canViewQuotes\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewQuotes\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewQuotes\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewQuotes\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"projectCanViewQuotes\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageQuotes\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewQuotes\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanManageQuotes\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage the task quote\\\"],null],\\\"canManageQuotes\\\",[28,[37,6],[\\\"shared.people-editor.canManageTheTaskQuoteDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanManageQuotes\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanManageQuotes\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageQuotes\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectProgress\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewProgress\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see the task progress\\\"],null],\\\"canViewProgress\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewProgress\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewProgress\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewProgress\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"projectCanViewProgress\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageProgress\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewProgress\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanManageProgress\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage the task progress\\\"],null],\\\"canManageProgress\\\",[28,[37,6],[\\\"shared.people-editor.canManageTheTaskProgressDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanManageProgress\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanManageProgress\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageProgress\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewFileStorage\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all task documents\\\"],null],\\\"canViewFileStorage\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllTaskDocumentsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewFileStorage\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewFileStorage\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewFileStorage\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"projectCanViewFileStorage\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageFileStorage\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewFileStorage\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanManageFileStorage\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.builda-price.projects.project.tasks.task.people.subcontractors.subcontractor.Can manage all task documents\\\"],null],\\\"canManageFileStorage\\\",[28,[37,6],[\\\"entity.builda-price.projects.project.tasks.task.people.subcontractors.subcontractor.canManageAllDocumentsForTheTaskDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanManageFileStorage\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanManageFileStorage\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageFileStorage\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProducts\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewProducts\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all products for the task\\\"],null],\\\"canViewProducts\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllProductsForTheTaskDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewProducts\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewProducts\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewProducts\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"projectCanViewProducts\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageProducts\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewProducts\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanManageProducts\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all products for the task\\\"],null],\\\"canManageProducts\\\",[28,[37,6],[\\\"shared.people-editor.canManageAllProductsForTheTaskDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanManageProducts\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanManageProducts\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageProducts\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseScheduling\\\"]],[[[1,\\\"          \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"schedulingPermissionsVisible\\\"]]],null],[28,[37,16],[[30,0,[\\\"schedulingPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"common.Scheduling\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"schedulingPermissionsCount\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"schedulingPermissionsCount\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"schedulingPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"schedulingPermissionsVisible\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewSchedulingReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see scheduling reports\\\"],null],\\\"canViewSchedulingReports\\\",[28,[37,6],[\\\"shared.people-editor.Gives access to see the timeline\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewSchedulingReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewSchedulingReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewSchedulingReports\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanManageSchedulingReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can make scheduling changes\\\"],null],\\\"canManageSchedulingReports\\\",[28,[37,6],[\\\"shared.people-editor.canMakeSchedulingChangesDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanManageSchedulingReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanManageSchedulingReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageSchedulingReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseTimesheets\\\"]],[[[1,\\\"          \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"allocationsPermissionsVisible\\\"]]],null],[28,[37,16],[[30,0,[\\\"allocationsPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"common.Allocations\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"allocationsPermissionsCount\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"allocationsPermissionsCount\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"allocationsPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"allocationsPermissionsVisible\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanManageTimesheets\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see and manage timesheets\\\"],null],\\\"canManageTimesheets\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAndManageTimesheetsTaskDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanManageTimesheets\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanManageTimesheets\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageTimesheets\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n        \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"reportsPermissionsVisible\\\"]]],null],[28,[37,16],[[30,0,[\\\"reportsPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"common.Reports\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"reportsPermissionsCount\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"reportsPermissionsCount\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"reportsPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"reportsPermissionsVisible\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"alert alert-primary\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],[[24,0,\\\"me-2\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"info-circle\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canViewReports\\\",\\\"length\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"shared.people-editor.withThesePermissionsThisSubcontractorCanSeeTheFollowingReports\\\"],null]],[1,\\\":\\\\n                \\\"],[10,1],[14,0,\\\"fw-bold\\\"],[12],[1,[30,0,[\\\"canViewReports\\\"]]],[13],[1,\\\".\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"shared.people-editor.subcontractors.subcontractor.withThesePermissionsThisSubcontractorCanNotSeeAnyReports\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewBudgetReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see budget data in reports\\\"],null],[28,[37,6],[\\\"shared.people-editor.users.user.canSeeAllBudgetDataInReportsDescription\\\"],null],\\\"canViewBudgetFinancialReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewBudgetReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewBudgetReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewBudgetFinancialReports\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewBudgetLabourHourReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewBudgetHourReportsLabel\\\"],null],[28,[37,6],[\\\"shared.people-editor.users.user.canViewBudgetHourReportsLabelDescription\\\"],null],\\\"canViewBudgetLabourHourReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewBudgetLabourHourReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewBudgetLabourHourReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewBudgetLabourHourReports\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewQuoteReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see quote data in reports\\\"],null],\\\"canViewQuoteReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewQuoteReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewQuoteReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewQuoteReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,20],[[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseTimesheets\\\"]],[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseBills\\\"]]],null],[[[1,\\\"            \\\"],[10,0],[12],[13],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewCostReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see cost data in reports\\\"],null],\\\"canViewCostFinancialReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllCostDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewCostReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewCostReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewCostFinancialReports\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewCostLabourHourReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewActualHourReportsLabel\\\"],null],\\\"canViewCostLabourHourReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewCostLabourHourReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewCostLabourHourReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewCostLabourHourReports\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewChargeupReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see work value data in reports\\\"],null],\\\"canViewChargeupReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeWorkValueDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewChargeupReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewChargeupReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewChargeupReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewProgressReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see progress data in reports\\\"],null],\\\"canViewProgressReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeProgressDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewProgressReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewProgressReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewProgressReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseInvoicingReport\\\"]],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewInvoicingReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.Can see all invoicing data in reports\\\"],null],\\\"canViewInvoicingReports\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewInvoicingReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewInvoicingReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewInvoicingReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewInvoicingReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-2\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"savePermissions\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Saving permissions\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Save permissions\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[13]],[],false,[\\\"div\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"page-title-breadcrumbs\\\",\\\"ptl-form\\\",\\\"h3\\\",\\\"t\\\",\\\"p\\\",\\\"link-to\\\",\\\"fa-icon\\\",\\\"includes-feature-flags\\\",\\\"button\\\",\\\"on\\\",\\\"perform\\\",\\\"fn\\\",\\\"mut\\\",\\\"not\\\",\\\"h4\\\",\\\"span\\\",\\\"ptl-input\\\",\\\"or\\\",\\\"gt\\\",\\\"get\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/tasks/task/people/subcontractors/subcontractor.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/tasks/task/people/users\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"X4dmyMOk\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/tasks/task/people/users.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/tasks/task/people/users/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <div class='float-end mb-1 d-flex align-items-center'>\n      <span class='m-1'>\n        <Input\n          class='form-control'\n          placeholder={{t 'shared.people-editor.users.Search for users'}}\n          @type='text'\n          @value={{this.searchString}}\n        />\n      </span>\n      {{#if (includes-feature-flags 'canManageUsers')}}\n        <button\n          type='button'\n          class='btn btn-success text-white text-nowrap m-1'\n          {{on 'click' (fn (mut this.isAddingUserToTask) true)}}\n        >\n          <FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Add'}}\n        </button>\n      {{/if}}\n    </div>\n    <PeopleTable\n      @filteredList={{this.filteredUsers}}\n      @noData={{t 'shared.people-editor.users.No users yet'}}\n      @route={{concat this.model.basePath '.users.user'}}\n    />\n  {{/if}}\n  \n  {{#if this.isAddingUserToTask}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.isAddingUserToTask) false}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-header'>\n        <h3 class='modal-title'>\n          {{t\n            'entity.builda-price.projects.project.tasks.task.people.users.Add user to task'\n          }}\n        </h3>\n      </div>\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t\n            'entity.builda-price.projects.project.tasks.task.people.users.addUserToTaskExplanation'\n          }}\n        </p>\n  \n        <PowerSelect\n          @tagName='div'\n          class='mb-1'\n          @options={{this.unassignedUsers}}\n          @selected={{this.userToAddToTask}}\n          @onChange={{fn (mut this.userToAddToTask)}}\n          @searchEnabled={{true}}\n          @searchField='name'\n          @placeholder={{t 'shared.people-editor.users.Find a user'}}\n          @allowClear={{true}}\n          as |user|\n        >\n          {{user.firstName}}\n          {{user.lastName}}\n          ({{user.email}})\n        </PowerSelect>\n        <LinkTo\n          class='link ps-0'\n          @route='entity.builda-price.projects.project.people.users'\n          @model={{this.model.project.last.value.id}}\n        >\n          {{t\n            'entity.builda-price.projects.project.tasks.task.people.users.doNotSeeTheUserAddThemToTheProject'\n          }}\n          <FaIcon @icon='external-link-alt' @fixedWidth={{true}} @size='md' />\n        </LinkTo>\n  \n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          disabled={{this.userToAddToTask.isRunning}}\n          {{on 'click' (fn (mut this.isAddingUserToTask) false)}}\n        >{{t 'common.Cancel'}}</button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          disabled={{or (not this.userToAddToTask) this.addUserToTask.isRunning}}\n          {{on 'click' (perform this.addUserToTask)}}\n        >\n          {{#if this.addUserToTask.isRunning}}\n            {{t 'common.Adding'}}&hellip;\n          {{else}}\n            {{t 'common.Add'}}\n          {{/if}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"14iFBEJk\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"float-end mb-1 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],[[24,0,\\\"form-control\\\"],[16,\\\"placeholder\\\",[28,[37,5],[\\\"shared.people-editor.users.Search for users\\\"],null]]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[\\\"canManageUsers\\\"],null],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"isAddingUserToTask\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n        \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,5],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,12],null,[[\\\"@filteredList\\\",\\\"@noData\\\",\\\"@route\\\"],[[30,0,[\\\"filteredUsers\\\"]],[28,[37,5],[\\\"shared.people-editor.users.No users yet\\\"],null],[28,[37,13],[[30,0,[\\\"model\\\",\\\"basePath\\\"]],\\\".users.user\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isAddingUserToTask\\\"]],[[[1,\\\"  \\\"],[8,[39,14],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"isAddingUserToTask\\\"]]],null],false],null],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.tasks.task.people.users.Add user to task\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.tasks.task.people.users.addUserToTaskExplanation\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,17],[[24,0,\\\"mb-1\\\"]],[[\\\"@tagName\\\",\\\"@options\\\",\\\"@selected\\\",\\\"@onChange\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@allowClear\\\"],[\\\"div\\\",[30,0,[\\\"unassignedUsers\\\"]],[30,0,[\\\"userToAddToTask\\\"]],[28,[37,9],[[28,[37,10],[[30,0,[\\\"userToAddToTask\\\"]]],null]],null],true,\\\"name\\\",[28,[37,5],[\\\"shared.people-editor.users.Find a user\\\"],null],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[30,1,[\\\"firstName\\\"]]],[1,\\\"\\\\n        \\\"],[1,[30,1,[\\\"lastName\\\"]]],[1,\\\"\\\\n        (\\\"],[1,[30,1,[\\\"email\\\"]]],[1,\\\")\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n      \\\"],[8,[39,18],[[24,0,\\\"link ps-0\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.builda-price.projects.project.people.users\\\",[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.tasks.task.people.users.doNotSeeTheUserAddThemToTheProject\\\"],null]],[1,\\\"\\\\n        \\\"],[8,[39,11],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",true,\\\"md\\\"]],null],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"userToAddToTask\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"isAddingUserToTask\\\"]]],null],false],null]],null],[12],[1,[28,[35,5],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[28,[37,19],[[28,[37,20],[[30,0,[\\\"userToAddToTask\\\"]]],null],[30,0,[\\\"addUserToTask\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,21],[[30,0,[\\\"addUserToTask\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"addUserToTask\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"common.Adding\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"user\\\"],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"span\\\",\\\"input\\\",\\\"t\\\",\\\"includes-feature-flags\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"fa-icon\\\",\\\"people-table\\\",\\\"concat\\\",\\\"modal-dialog\\\",\\\"h3\\\",\\\"p\\\",\\\"power-select\\\",\\\"link-to\\\",\\\"or\\\",\\\"not\\\",\\\"perform\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/tasks/task/people/users/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/tasks/task/people/users/user\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='flex-grow-1'>\n    {{#if this.isRunning}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mb-3 ms-1 mt-1'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <PtlForm class='mb-3'>\n        <h3 class='mb-0'>{{t 'common.Details'}}</h3>\n        <p class='mb-3'>\n          {{this.model.user.last.value.fullName}}\n          {{t 'shared.people-editor.is assigned to the task'}}\n        </p>\n        <div class='d-flex'>\n          <LinkTo\n            class='btn btn-primary m-1'\n            @route='entity.settings.people.users.user'\n            @model={{this.model.user.last.value.id}}\n          >\n            {{t 'shared.people-editor.users.user.View user details'}}\n            <FaIcon @icon='external-link-alt' @fixedWidth={{true}} @size='md' />\n          </LinkTo>\n  \n          {{#if (includes-feature-flags 'canManageUsers')}}\n            <button\n              type='button'\n              class='btn btn-secondary m-1'\n              disabled={{this.deleteUser.isRunning}}\n              {{on 'click' (perform this.deleteUser)}}\n            >\n              {{#if this.deleteUser.isRunning}}\n                {{if\n                  this.userIsYou\n                  (t 'shared.people-editor.Removing you from task')\n                  (t 'shared.people-editor.Removing from task')\n                }}&hellip;\n              {{else}}\n                {{if\n                  this.userIsYou\n                  (t 'shared.people-editor.Remove yourself from task')\n                  (t 'shared.people-editor.Remove from task')\n                }}\n              {{/if}}\n            </button>\n          {{/if}}\n        </div>\n      </PtlForm>\n      {{#if (includes-feature-flags 'canManageUsers')}}\n        <PtlForm class='mb-3'>\n          <h3 class='mb-0'>{{t 'shared.people-editor.Permissions'}}</h3>\n          <p class='mb-4'>\n            {{t\n              'entity.builda-price.projects.project.tasks.task.people.users.user.userTaskPermissionsExplanation'\n            }}\n          </p>\n  \n          <div\n            class='d-flex align-items-center mb-3'\n            role='button'\n            {{on\n              'click'\n              (fn\n                (mut this.taskPermissionsVisible)\n                (not this.taskPermissionsVisible)\n              )\n            }}\n          >\n            <h4 class='m-0'>\n              {{t 'common.Task'}}\n            </h4>\n            {{#if this.taskPermissionsCount}}\n              <span class='ms-2 badge bg-info'>\n                {{this.taskPermissionsCount}}\n              </span>\n            {{/if}}\n            <h4 class='m-0 ms-auto'>\n              <FaIcon\n                @icon={{if\n                  this.taskPermissionsVisible\n                  'chevron-down'\n                  'chevron-right'\n                }}\n              />\n            </h4>\n          </div>\n          {{#if this.taskPermissionsVisible}}\n            <PtlInput\n              @type='checkbox'\n              @label={{t 'shared.people-editor.Can make changes to the task'}}\n              @key='canManageTasks'\n              @description={{t\n                'shared.people-editor.canMakeChangesToTheTaskDescription'\n              }}\n              @model={{this.model.permissionsChangeset.last.value}}\n              @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n              @toolTip={{if\n                this.projectCanManageTasks\n                this.permissionSupersededMessage\n              }}\n              disabled={{or\n                this.projectCanManageTasks\n                this.savePermissions.isRunning\n              }}\n              @checked={{or\n                this.projectCanManageTasks\n                (get this.model.permissionsChangeset.last.value 'canManageTasks')\n              }}\n            />\n            {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see the task budget'}}\n                @key='canViewBudgets'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewBudgets\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewBudgets\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewBudgets\n                  (get\n                    this.model.permissionsChangeset.last.value 'canViewBudgets'\n                  )\n                }}\n              />\n              {{#if\n                (or\n                  this.projectCanViewBudgets\n                  this.model.permissionsChangeset.last.value.canManageBudgets\n                  this.model.permissionsChangeset.last.value.canViewBudgets\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'shared.people-editor.Can manage the task budget'}}\n                  @key='canManageBudgets'\n                  @description={{t\n                    'shared.people-editor.canManageTheTaskBudgetDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.projectCanManageBudgets\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.projectCanManageBudgets\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.projectCanManageBudgets\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canManageBudgets'\n                    )\n                  }}\n                />\n              {{/if}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see the task quote'}}\n                @key='canViewQuotes'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewQuotes\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewQuotes\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewQuotes\n                  (get this.model.permissionsChangeset.last.value 'canViewQuotes')\n                }}\n              />\n              {{#if\n                (or\n                  this.projectCanViewQuotes\n                  this.model.permissionsChangeset.last.value.canManageQuotes\n                  this.model.permissionsChangeset.last.value.canViewQuotes\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'shared.people-editor.Can manage the task quote'}}\n                  @key='canManageQuotes'\n                  @description={{t\n                    'shared.people-editor.canManageTheTaskQuoteDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.projectCanManageQuotes\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.projectCanManageQuotes\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.projectCanManageQuotes\n                    (get\n                      this.model.permissionsChangeset.last.value 'canManageQuotes'\n                    )\n                  }}\n                />\n              {{/if}}\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseProjectProgress}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see the task progress'}}\n                @key='canViewProgress'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewProgress\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewProgress\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewProgress\n                  (get\n                    this.model.permissionsChangeset.last.value 'canViewProgress'\n                  )\n                }}\n              />\n              {{#if\n                (or\n                  this.projectCanViewProgress\n                  this.model.permissionsChangeset.last.value.canManageProgress\n                  this.model.permissionsChangeset.last.value.canViewProgress\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'shared.people-editor.Can manage the task progress'}}\n                  @key='canManageProgress'\n                  @description={{t\n                    'shared.people-editor.canManageTheTaskProgressDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.projectCanManageProgress\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.projectCanManageProgress\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.projectCanManageProgress\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canManageProgress'\n                    )\n                  }}\n                />\n              {{/if}}\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see all task documents'}}\n                @key='canViewFileStorage'\n                @description={{t\n                  'shared.people-editor.canSeeAllTaskDocumentsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewFileStorage\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewFileStorage\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewFileStorage\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewFileStorage'\n                  )\n                }}\n              />\n              {{#if\n                (or\n                  this.projectCanViewFileStorage\n                  this.model.permissionsChangeset.last.value.canManageFileStorage\n                  this.model.permissionsChangeset.last.value.canViewFileStorage\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'shared.people-editor.Can manage all documents'}}\n                  @key='canManageFileStorage'\n                  @description={{t\n                    'shared.people-editor.canManageAllDocumentsDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.projectCanManageFileStorage\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.projectCanManageFileStorage\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.projectCanManageFileStorage\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canManageFileStorage'\n                    )\n                  }}\n                />\n              {{/if}}\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseProducts}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.Can see all products for the task'\n                }}\n                @key='canViewProducts'\n                @description={{t\n                  'shared.people-editor.canSeeAllProductsForTheTaskDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewProducts\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewProducts\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewProducts\n                  (get\n                    this.model.permissionsChangeset.last.value 'canViewProducts'\n                  )\n                }}\n              />\n              {{#if\n                (or\n                  this.projectCanViewProducts\n                  this.model.permissionsChangeset.last.value.canManageProducts\n                  this.model.permissionsChangeset.last.value.canViewProducts\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'shared.people-editor.Can manage all products for the task'\n                  }}\n                  @key='canManageProducts'\n                  @description={{t\n                    'shared.people-editor.canManageAllProductsForTheTaskDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.projectCanManageProducts\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.projectCanManageProducts\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.projectCanManageProducts\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canManageProducts'\n                    )\n                  }}\n                />\n              {{/if}}\n            {{/if}}\n          {{/if}}\n          {{#if this.newFeatureFlags.entityCanUseScheduling}}\n            <div\n              class='d-flex align-items-center mb-3'\n              role='button'\n              {{on\n                'click'\n                (fn\n                  (mut this.schedulingPermissionsVisible)\n                  (not this.schedulingPermissionsVisible)\n                )\n              }}\n            >\n              <h4 class='m-0'>\n                {{t 'common.Scheduling'}}\n              </h4>\n              {{#if this.schedulingPermissionsCount}}\n                <span class='ms-2 badge bg-info'>\n                  {{this.schedulingPermissionsCount}}\n                </span>\n              {{/if}}\n              <h4 class='m-0 ms-auto'>\n                <FaIcon\n                  @icon={{if\n                    this.schedulingPermissionsVisible\n                    'chevron-down'\n                    'chevron-right'\n                  }}\n                />\n              </h4>\n            </div>\n            {{#if this.schedulingPermissionsVisible}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see scheduling reports'}}\n                @key='canViewSchedulingReports'\n                @description={{t\n                  'shared.people-editor.Gives access to see the timeline'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewSchedulingReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewSchedulingReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewSchedulingReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewSchedulingReports'\n                  )\n                }}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can make scheduling changes'}}\n                @key='canManageSchedulingReports'\n                @description={{t\n                  'shared.people-editor.canMakeSchedulingChangesDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanManageSchedulingReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanManageSchedulingReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanManageSchedulingReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canManageSchedulingReports'\n                  )\n                }}\n              />\n            {{/if}}\n          {{/if}}\n          {{#if this.newFeatureFlags.entityCanUseTimesheets}}\n            <div\n              class='d-flex align-items-center mb-3'\n              role='button'\n              {{on\n                'click'\n                (fn\n                  (mut this.allocationsPermissionsVisible)\n                  (not this.allocationsPermissionsVisible)\n                )\n              }}\n            >\n              <h4 class='m-0'>\n                {{t 'common.Allocations'}}\n              </h4>\n              {{#if this.allocationsPermissionsCount}}\n                <span class='ms-2 badge bg-info'>\n                  {{this.allocationsPermissionsCount}}\n                </span>\n              {{/if}}\n              <h4 class='m-0 ms-auto'>\n                <FaIcon\n                  @icon={{if\n                    this.allocationsPermissionsVisible\n                    'chevron-down'\n                    'chevron-right'\n                  }}\n                />\n              </h4>\n            </div>\n            {{#if this.allocationsPermissionsVisible}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see and manage timesheets'}}\n                @key='canManageTimesheets'\n                @description={{t\n                  'shared.people-editor.canSeeAndManageTimesheetsTaskDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanManageTimesheets\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanManageTimesheets\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanManageTimesheets\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canManageTimesheets'\n                  )\n                }}\n              />\n            {{/if}}\n          {{/if}}\n          <div\n            class='d-flex align-items-center mb-3'\n            role='button'\n            {{on\n              'click'\n              (fn\n                (mut this.reportsPermissionsVisible)\n                (not this.reportsPermissionsVisible)\n              )\n            }}\n          >\n            <h4 class='m-0'>\n              {{t 'common.Reports'}}\n            </h4>\n            {{#if this.reportsPermissionsCount}}\n              <span class='ms-2 badge bg-info'>\n                {{this.reportsPermissionsCount}}\n              </span>\n            {{/if}}\n            <h4 class='m-0 ms-auto'>\n              <FaIcon\n                @icon={{if\n                  this.reportsPermissionsVisible\n                  'chevron-down'\n                  'chevron-right'\n                }}\n              />\n            </h4>\n          </div>\n          {{#if this.reportsPermissionsVisible}}\n            <div class='alert alert-primary' role='alert'>\n              <FaIcon @icon='info-circle' @size='lg' class='me-2' />\n              <span class='me-2'>\n                {{#if this.canViewReports.length}}\n                  {{t\n                    'shared.people-editor.withThesePermissionsThisUserCanSeeTheFollowingReports'\n                  }}:\n                  <span class='fw-bold'>{{this.canViewReports}}</span>.\n                {{else}}\n                  {{t\n                    'shared.people-editor.withThesePermissionsThisUserCanNotSeeAnyReports'\n                  }}\n                {{/if}}\n              </span>\n            </div>\n            {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see budget data in reports'}}\n                @description={{t\n                  'shared.people-editor.users.user.canSeeAllBudgetDataInReportsDescription'\n                }}\n                @key='canViewBudgetFinancialReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewBudgetReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewBudgetReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewBudgetReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewBudgetFinancialReports'\n                  )\n                }}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.users.user.canViewBudgetHourReportsLabel'\n                }}\n                @description={{t\n                  'shared.people-editor.users.user.canViewBudgetHourReportsLabelDescription'\n                }}\n                @key='canViewBudgetLabourHourReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewBudgetLabourHourReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewBudgetLabourHourReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewBudgetLabourHourReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewBudgetLabourHourReports'\n                  )\n                }}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see quote data in reports'}}\n                @key='canViewQuoteReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewQuoteReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewQuoteReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewQuoteReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewQuoteReports'\n                  )\n                }}\n              />\n            {{/if}}\n            {{#if\n              (or\n                this.newFeatureFlags.entityCanUseTimesheets\n                this.newFeatureFlags.entityCanUseBills\n              )\n            }}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see cost data in reports'}}\n                @key='canViewCostFinancialReports'\n                @description={{t\n                  'shared.people-editor.canSeeAllCostDataInReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewCostReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewCostReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewCostReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewCostFinancialReports'\n                  )\n                }}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.users.user.canViewActualHourReportsLabel'\n                }}\n                @key='canViewCostLabourHourReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewCostLabourHourReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewCostLabourHourReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewCostLabourHourReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewCostLabourHourReports'\n                  )\n                }}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.Can see work value data in reports'\n                }}\n                @key='canViewChargeupReports'\n                @description={{t\n                  'shared.people-editor.canSeeWorkValueDataInReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewChargeupReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewChargeupReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewChargeupReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewChargeupReports'\n                  )\n                }}\n              />\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.Can see progress data in reports'\n                }}\n                @key='canViewProgressReports'\n                @description={{t\n                  'shared.people-editor.canSeeProgressDataInReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewProgressReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewProgressReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewProgressReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewProgressReports'\n                  )\n                }}\n              />\n              {{#if this.newFeatureFlags.entityCanUseInvoicingReport}}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'shared.people-editor.users.user.Can see all invoicing data in reports'\n                  }}\n                  @key='canViewInvoicingReports'\n                  @description={{t\n                    'shared.people-editor.users.user.canViewInvoicingReportsDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.projectCanViewInvoicingReports\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.projectCanViewInvoicingReports\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.projectCanViewInvoicingReports\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canViewInvoicingReports'\n                    )\n                  }}\n                />\n              {{/if}}\n            {{/if}}\n          {{/if}}\n  \n          <div class='d-flex flex-grow-1 mt-2'>\n            <button\n              type='button'\n              class='btn btn-primary ms-auto'\n              disabled={{this.savePermissions.isRunning}}\n              {{on\n                'click'\n                (perform\n                  this.savePermissions this.model.permissionsChangeset.last.value\n                )\n              }}\n            >\n              {{#if this.savePermissions.isRunning}}\n                {{t 'shared.people-editor.Saving permissions'}}&hellip;\n              {{else}}\n                {{t 'shared.people-editor.Save permissions'}}\n              {{/if}}\n            </button>\n          </div>\n        </PtlForm>\n      {{/if}}\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"/yEUsPu2\",\n    \"block\": \"[[[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-3 ms-1 mt-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,3],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-0\\\"],[12],[1,[28,[35,6],[\\\"common.Details\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,0,[\\\"model\\\",\\\"user\\\",\\\"last\\\",\\\"value\\\",\\\"fullName\\\"]]],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"shared.people-editor.is assigned to the task\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,8],[[24,0,\\\"btn btn-primary m-1\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.settings.people.users.user\\\",[30,0,[\\\"model\\\",\\\"user\\\",\\\"last\\\",\\\"value\\\",\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"shared.people-editor.users.user.View user details\\\"],null]],[1,\\\"\\\\n          \\\"],[8,[39,9],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",true,\\\"md\\\"]],null],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,10],[\\\"canManageUsers\\\"],null],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteUser\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"deleteUser\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteUser\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[52,[30,0,[\\\"userIsYou\\\"]],[28,[37,6],[\\\"shared.people-editor.Removing you from task\\\"],null],[28,[37,6],[\\\"shared.people-editor.Removing from task\\\"],null]]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[52,[30,0,[\\\"userIsYou\\\"]],[28,[37,6],[\\\"shared.people-editor.Remove yourself from task\\\"],null],[28,[37,6],[\\\"shared.people-editor.Remove from task\\\"],null]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"],[41,[28,[37,10],[\\\"canManageUsers\\\"],null],[[[1,\\\"      \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-0\\\"],[12],[1,[28,[35,6],[\\\"shared.people-editor.Permissions\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[10,2],[14,0,\\\"mb-4\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"entity.builda-price.projects.project.tasks.task.people.users.user.userTaskPermissionsExplanation\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"taskPermissionsVisible\\\"]]],null],[28,[37,16],[[30,0,[\\\"taskPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"common.Task\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"taskPermissionsCount\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"taskPermissionsCount\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"taskPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"taskPermissionsVisible\\\"]],[[[1,\\\"          \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanManageTasks\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can make changes to the task\\\"],null],\\\"canManageTasks\\\",[28,[37,6],[\\\"shared.people-editor.canMakeChangesToTheTaskDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanManageTasks\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanManageTasks\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageTasks\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewBudgets\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see the task budget\\\"],null],\\\"canViewBudgets\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewBudgets\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewBudgets\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewBudgets\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"projectCanViewBudgets\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageBudgets\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewBudgets\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanManageBudgets\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage the task budget\\\"],null],\\\"canManageBudgets\\\",[28,[37,6],[\\\"shared.people-editor.canManageTheTaskBudgetDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanManageBudgets\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanManageBudgets\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageBudgets\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewQuotes\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see the task quote\\\"],null],\\\"canViewQuotes\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewQuotes\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewQuotes\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewQuotes\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"projectCanViewQuotes\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageQuotes\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewQuotes\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanManageQuotes\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage the task quote\\\"],null],\\\"canManageQuotes\\\",[28,[37,6],[\\\"shared.people-editor.canManageTheTaskQuoteDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanManageQuotes\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanManageQuotes\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageQuotes\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectProgress\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewProgress\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see the task progress\\\"],null],\\\"canViewProgress\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewProgress\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewProgress\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewProgress\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"projectCanViewProgress\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageProgress\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewProgress\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanManageProgress\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage the task progress\\\"],null],\\\"canManageProgress\\\",[28,[37,6],[\\\"shared.people-editor.canManageTheTaskProgressDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanManageProgress\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanManageProgress\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageProgress\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewFileStorage\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all task documents\\\"],null],\\\"canViewFileStorage\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllTaskDocumentsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewFileStorage\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewFileStorage\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewFileStorage\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"projectCanViewFileStorage\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageFileStorage\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewFileStorage\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanManageFileStorage\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all documents\\\"],null],\\\"canManageFileStorage\\\",[28,[37,6],[\\\"shared.people-editor.canManageAllDocumentsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanManageFileStorage\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanManageFileStorage\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageFileStorage\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProducts\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewProducts\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all products for the task\\\"],null],\\\"canViewProducts\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllProductsForTheTaskDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewProducts\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewProducts\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewProducts\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"projectCanViewProducts\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageProducts\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewProducts\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanManageProducts\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all products for the task\\\"],null],\\\"canManageProducts\\\",[28,[37,6],[\\\"shared.people-editor.canManageAllProductsForTheTaskDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanManageProducts\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanManageProducts\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageProducts\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseScheduling\\\"]],[[[1,\\\"          \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"schedulingPermissionsVisible\\\"]]],null],[28,[37,16],[[30,0,[\\\"schedulingPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"common.Scheduling\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"schedulingPermissionsCount\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"schedulingPermissionsCount\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"schedulingPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"schedulingPermissionsVisible\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewSchedulingReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see scheduling reports\\\"],null],\\\"canViewSchedulingReports\\\",[28,[37,6],[\\\"shared.people-editor.Gives access to see the timeline\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewSchedulingReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewSchedulingReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewSchedulingReports\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanManageSchedulingReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can make scheduling changes\\\"],null],\\\"canManageSchedulingReports\\\",[28,[37,6],[\\\"shared.people-editor.canMakeSchedulingChangesDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanManageSchedulingReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanManageSchedulingReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageSchedulingReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseTimesheets\\\"]],[[[1,\\\"          \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"allocationsPermissionsVisible\\\"]]],null],[28,[37,16],[[30,0,[\\\"allocationsPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"common.Allocations\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"allocationsPermissionsCount\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"allocationsPermissionsCount\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"allocationsPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"allocationsPermissionsVisible\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanManageTimesheets\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see and manage timesheets\\\"],null],\\\"canManageTimesheets\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAndManageTimesheetsTaskDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanManageTimesheets\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanManageTimesheets\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageTimesheets\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"        \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"reportsPermissionsVisible\\\"]]],null],[28,[37,16],[[30,0,[\\\"reportsPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"common.Reports\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"reportsPermissionsCount\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"reportsPermissionsCount\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"reportsPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"reportsPermissionsVisible\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"alert alert-primary\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],[[24,0,\\\"me-2\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"info-circle\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canViewReports\\\",\\\"length\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"shared.people-editor.withThesePermissionsThisUserCanSeeTheFollowingReports\\\"],null]],[1,\\\":\\\\n                \\\"],[10,1],[14,0,\\\"fw-bold\\\"],[12],[1,[30,0,[\\\"canViewReports\\\"]]],[13],[1,\\\".\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"shared.people-editor.withThesePermissionsThisUserCanNotSeeAnyReports\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewBudgetReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see budget data in reports\\\"],null],[28,[37,6],[\\\"shared.people-editor.users.user.canSeeAllBudgetDataInReportsDescription\\\"],null],\\\"canViewBudgetFinancialReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewBudgetReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewBudgetReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewBudgetFinancialReports\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewBudgetLabourHourReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewBudgetHourReportsLabel\\\"],null],[28,[37,6],[\\\"shared.people-editor.users.user.canViewBudgetHourReportsLabelDescription\\\"],null],\\\"canViewBudgetLabourHourReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewBudgetLabourHourReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewBudgetLabourHourReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewBudgetLabourHourReports\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewQuoteReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see quote data in reports\\\"],null],\\\"canViewQuoteReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewQuoteReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewQuoteReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewQuoteReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,20],[[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseTimesheets\\\"]],[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseBills\\\"]]],null],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewCostReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see cost data in reports\\\"],null],\\\"canViewCostFinancialReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllCostDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewCostReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewCostReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewCostFinancialReports\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewCostLabourHourReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewActualHourReportsLabel\\\"],null],\\\"canViewCostLabourHourReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewCostLabourHourReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewCostLabourHourReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewCostLabourHourReports\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewChargeupReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see work value data in reports\\\"],null],\\\"canViewChargeupReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeWorkValueDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewChargeupReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewChargeupReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewChargeupReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewProgressReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see progress data in reports\\\"],null],\\\"canViewProgressReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeProgressDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewProgressReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewProgressReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewProgressReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseInvoicingReport\\\"]],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewInvoicingReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.Can see all invoicing data in reports\\\"],null],\\\"canViewInvoicingReports\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewInvoicingReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewInvoicingReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewInvoicingReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewInvoicingReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-2\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"savePermissions\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Saving permissions\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Save permissions\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[13]],[],false,[\\\"div\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"page-title-breadcrumbs\\\",\\\"ptl-form\\\",\\\"h3\\\",\\\"t\\\",\\\"p\\\",\\\"link-to\\\",\\\"fa-icon\\\",\\\"includes-feature-flags\\\",\\\"button\\\",\\\"on\\\",\\\"perform\\\",\\\"fn\\\",\\\"mut\\\",\\\"not\\\",\\\"h4\\\",\\\"span\\\",\\\"ptl-input\\\",\\\"or\\\",\\\"gt\\\",\\\"get\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/tasks/task/people/users/user.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/tasks/task/people/workers\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"vOE0Iao4\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/tasks/task/people/workers.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/tasks/task/people/workers/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <div class='float-end mb-1 d-flex align-items-center'>\n      <span class='m-1'>\n        <Input\n          class='form-control'\n          placeholder={{t 'shared.people-editor.workers.Search for workers'}}\n          @type='text'\n          @value={{this.searchString}}\n        />\n      </span>\n      {{#if (includes-feature-flags 'canManageWorkers')}}\n        <button\n          type='button'\n          class='btn btn-success text-white text-nowrap m-1'\n          {{on 'click' (fn (mut this.isAddingWorkerToTask) true)}}\n        >\n          <FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Add'}}\n        </button>\n      {{/if}}\n    </div>\n    <PeopleTable\n      @filteredList={{this.filteredWorkers}}\n      @noData={{t 'shared.people-editor.workers.No workers yet'}}\n      @route={{concat this.model.basePath '.workers.worker'}}\n    />\n  {{/if}}\n  \n  {{#if this.isAddingWorkerToTask}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.isAddingWorkerToTask) false}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-header'>\n        <h3 class='modal-title'>\n          {{t\n            'entity.builda-price.projects.project.tasks.task.people.workers.Add worker to task'\n          }}\n        </h3>\n      </div>\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t\n            'entity.builda-price.projects.project.tasks.task.people.workers.addWorkerToTaskExplanation'\n          }}\n        </p>\n  \n        <PowerSelect\n          @tagName='div'\n          class='mb-1'\n          @options={{this.unassignedWorkers}}\n          @selected={{this.workerToAddToTask}}\n          @onChange={{fn (mut this.workerToAddToTask)}}\n          @searchEnabled={{true}}\n          @searchField='searchString'\n          @placeholder={{t 'shared.people-editor.workers.Find a worker'}}\n          @allowClear={{true}}\n          as |worker|\n        >\n          {{worker.firstName}}\n          {{worker.lastName}}\n          ({{worker.email}})\n        </PowerSelect>\n        <LinkTo\n          class='link ps-0'\n          @route='entity.builda-price.projects.project.people.workers'\n          @model={{this.model.task.last.value.project.id}}\n        >\n          {{t\n            'entity.builda-price.projects.project.tasks.task.people.workers.doNotSeeTheWorkerAddThemToTheProject'\n          }}\n          <FaIcon @icon='external-link-alt' @fixedWidth={{true}} @size='md' />\n        </LinkTo>\n  \n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          disabled={{this.addWorkerToTask.isRunning}}\n          {{on 'click' (fn (mut this.isAddingWorkerToTask) false)}}\n        >{{t 'common.Cancel'}}</button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          disabled={{or\n            (not this.workerToAddToTask)\n            this.addWorkerToTask.isRunning\n          }}\n          {{on 'click' (perform this.addWorkerToTask)}}\n        >\n          {{#if this.addWorkerToTask.isRunning}}\n            {{t 'common.Adding'}}&hellip;\n          {{else}}\n            {{t 'common.Add'}}\n          {{/if}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"Cr6PdtVF\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"float-end mb-1 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],[[24,0,\\\"form-control\\\"],[16,\\\"placeholder\\\",[28,[37,5],[\\\"shared.people-editor.workers.Search for workers\\\"],null]]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[\\\"canManageWorkers\\\"],null],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"isAddingWorkerToTask\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n        \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,5],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,12],null,[[\\\"@filteredList\\\",\\\"@noData\\\",\\\"@route\\\"],[[30,0,[\\\"filteredWorkers\\\"]],[28,[37,5],[\\\"shared.people-editor.workers.No workers yet\\\"],null],[28,[37,13],[[30,0,[\\\"model\\\",\\\"basePath\\\"]],\\\".workers.worker\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isAddingWorkerToTask\\\"]],[[[1,\\\"  \\\"],[8,[39,14],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"isAddingWorkerToTask\\\"]]],null],false],null],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.tasks.task.people.workers.Add worker to task\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.tasks.task.people.workers.addWorkerToTaskExplanation\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,17],[[24,0,\\\"mb-1\\\"]],[[\\\"@tagName\\\",\\\"@options\\\",\\\"@selected\\\",\\\"@onChange\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@allowClear\\\"],[\\\"div\\\",[30,0,[\\\"unassignedWorkers\\\"]],[30,0,[\\\"workerToAddToTask\\\"]],[28,[37,9],[[28,[37,10],[[30,0,[\\\"workerToAddToTask\\\"]]],null]],null],true,\\\"searchString\\\",[28,[37,5],[\\\"shared.people-editor.workers.Find a worker\\\"],null],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[30,1,[\\\"firstName\\\"]]],[1,\\\"\\\\n        \\\"],[1,[30,1,[\\\"lastName\\\"]]],[1,\\\"\\\\n        (\\\"],[1,[30,1,[\\\"email\\\"]]],[1,\\\")\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n      \\\"],[8,[39,18],[[24,0,\\\"link ps-0\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.builda-price.projects.project.people.workers\\\",[30,0,[\\\"model\\\",\\\"task\\\",\\\"last\\\",\\\"value\\\",\\\"project\\\",\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.tasks.task.people.workers.doNotSeeTheWorkerAddThemToTheProject\\\"],null]],[1,\\\"\\\\n        \\\"],[8,[39,11],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",true,\\\"md\\\"]],null],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"addWorkerToTask\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"isAddingWorkerToTask\\\"]]],null],false],null]],null],[12],[1,[28,[35,5],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[28,[37,19],[[28,[37,20],[[30,0,[\\\"workerToAddToTask\\\"]]],null],[30,0,[\\\"addWorkerToTask\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,21],[[30,0,[\\\"addWorkerToTask\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"addWorkerToTask\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"common.Adding\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"worker\\\"],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"span\\\",\\\"input\\\",\\\"t\\\",\\\"includes-feature-flags\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"fa-icon\\\",\\\"people-table\\\",\\\"concat\\\",\\\"modal-dialog\\\",\\\"h3\\\",\\\"p\\\",\\\"power-select\\\",\\\"link-to\\\",\\\"or\\\",\\\"not\\\",\\\"perform\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/tasks/task/people/workers/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/tasks/task/people/workers/worker\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='flex-grow-1'>\n    {{#if this.isRunning}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mb-3 ms-1 mt-1'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <PtlForm class='mb-3'>\n        <h3 class='mb-0'>{{t 'common.Details'}}</h3>\n        <p class='mb-3'>\n          {{this.model.worker.last.value.fullName}}\n          {{t 'shared.people-editor.is assigned to the task'}}\n        </p>\n        <div class='d-flex'>\n          <LinkTo\n            class='btn btn-primary m-1'\n            @route='entity.settings.people.workers.worker'\n            @model={{this.model.worker.last.value.id}}\n          >\n            {{t 'shared.people-editor.workers.worker.View worker details'}}\n            <FaIcon @icon='external-link-alt' @fixedWidth={{true}} @size='md' />\n          </LinkTo>\n  \n          <button\n            type='button'\n            class='btn btn-secondary m-1'\n            disabled={{this.deleteWorker.isRunning}}\n            {{on 'click' (perform this.deleteWorker)}}\n          >\n            {{#if this.deleteWorker.isRunning}}\n              {{t 'shared.people-editor.Removing from task'}}\n            {{else}}\n              {{t 'shared.people-editor.Remove from task'}}\n            {{/if}}\n          </button>\n        </div>\n      </PtlForm>\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"fwj2dfCU\",\n    \"block\": \"[[[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-3 ms-1 mt-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,3],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-0\\\"],[12],[1,[28,[35,6],[\\\"common.Details\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,0,[\\\"model\\\",\\\"worker\\\",\\\"last\\\",\\\"value\\\",\\\"fullName\\\"]]],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"shared.people-editor.is assigned to the task\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,8],[[24,0,\\\"btn btn-primary m-1\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.settings.people.workers.worker\\\",[30,0,[\\\"model\\\",\\\"worker\\\",\\\"last\\\",\\\"value\\\",\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"shared.people-editor.workers.worker.View worker details\\\"],null]],[1,\\\"\\\\n          \\\"],[8,[39,9],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",true,\\\"md\\\"]],null],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteWorker\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,12],[[30,0,[\\\"deleteWorker\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteWorker\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Removing from task\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Remove from task\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]]],[13]],[],false,[\\\"div\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"page-title-breadcrumbs\\\",\\\"ptl-form\\\",\\\"h3\\\",\\\"t\\\",\\\"p\\\",\\\"link-to\\\",\\\"fa-icon\\\",\\\"button\\\",\\\"on\\\",\\\"perform\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/tasks/task/people/workers/worker.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/tasks/task/products\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='mt-3 h-100'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <header class='mb-1 pb-2 d-lg-flex justify-content-end align-items-center'>\n        {{#if (and this.isEditable this.productTableData.length)}}\n          <div class='flex-grow-1'>\n            <button\n              class='btn btn-link text-danger text-decoration-underline float-start'\n              type='button'\n              {{on 'click' (fn (mut this.isDeletingProducts) true)}}\n              disabled={{not this.selectProductIds.size}}\n            >\n              {{t 'common.Delete'}}\n            </button>\n          </div>\n        {{/if}}\n        <div class='d-flex'>\n          {{#if this.showFilters}}\n            <Input\n              class='form-control m-1 w-auto'\n              placeholder={{t 'shared.product.Search products'}}\n              @value={{this.searchString}}\n              @type='text'\n              autofocus='true'\n              {{on 'input' (perform this.onChangeSearchTerm)}}\n              data-test-task-product-search\n            />\n          {{/if}}\n          {{#if this.isEditable}}\n            <button\n              type='button'\n              class='btn btn-success text-white text-nowrap m-1'\n              disabled={{this.deleteProducts.isRunning}}\n              {{on 'click' (fn (mut this.isAddingProduct) true)}}\n            >\n              <FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Add'}}\n            </button>\n          {{/if}}\n        </div>\n      </header>\n      <div class='task-products__table-container'>\n        <PaginationTable\n          @tableHeader={{this.productTableHeader}}\n          @tableData={{this.productTableData}}\n          @noDataText={{t 'common.No data'}}\n          @pageSizes={{this.model.pageSizes}}\n          @pageSize={{this.model.pageSize}}\n          @pageIndex={{this.model.pageIndex}}\n          @onChangePageIndex={{this.onChangePageIndex}}\n          @onChangePageSize={{this.onChangePageSize}}\n          @isLoading={{this.model.products.isRunning}}\n          @totalRecords={{this.totalRecords}}\n          @class='table-bordered'\n        />\n      </div>\n    {{/if}}\n  </div>\n  \n  {{#if this.isEditingProduct}}\n    <ProductEditor\n      @onSaveProduct={{this.onSaveProduct}}\n      @target={{this.model.task.last.value}}\n      @productTable={{'task-product'}}\n      @entity={{this.sessionData.entity}}\n      @productId={{this.selectedProductId}}\n      @onClose={{fn (mut this.isEditingProduct) false}}\n    />\n  {{/if}}\n  \n  {{#if this.isAddingProduct}}\n    <ProductSelector\n      @onAddProduct={{this.onAddProduct}}\n      @onCreateProduct={{this.onCreateProduct}}\n      @onClose={{fn (mut this.isAddingProduct) false}}\n    />\n  {{/if}}\n  \n  {{#if this.isDeletingProducts}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.isDeletingProducts) false}}\n      @translucentOverlay={{true}}\n      @containerClass='block-module'\n    >\n      <p>\n        {{t\n          'shared.product.areYouSureYouWantToDeleteXProducts'\n          number=this.selectProductIds.size\n          products=(pluralize this.selectProductIds.size 'product')\n        }}\n      </p>\n      <footer class='block-module__footer'>\n        <div class='float-end d-flex align-items-center'>\n          {{#if this.deleteProducts.isRunning}}\n            <button\n              type='button'\n              class='btn btn-danger text-white ms-2'\n              disabled={{true}}\n            >\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t 'common.Deleting'}}…\n            </button>\n          {{else}}\n            <button\n              class='btn btn-danger text-white ms-2'\n              type='button'\n              disabled={{this.deleteProducts.isRunning}}\n              {{on 'click' (perform this.deleteProducts)}}\n            >\n              {{t 'common.Delete'}}\n            </button>\n            <button\n              class='btn btn-secondary text-white ms-2'\n              type='button'\n              disabled={{this.deleteProducts.isRunning}}\n              {{on 'click' (fn (mut this.isDeletingProducts) false)}}\n            >{{t 'common.Cancel'}}</button>\n          {{/if}}\n        </div>\n      </footer>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"lio+IZ2S\",\n    \"block\": \"[[[10,0],[14,0,\\\"mt-3 h-100\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"mb-1 pb-2 d-lg-flex justify-content-end align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[[30,0,[\\\"isEditable\\\"]],[30,0,[\\\"productTableData\\\",\\\"length\\\"]]],null],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline float-start\\\"],[16,\\\"disabled\\\",[28,[37,6],[[30,0,[\\\"selectProductIds\\\",\\\"size\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,7],[\\\"click\\\",[28,[37,8],[[28,[37,9],[[30,0,[\\\"isDeletingProducts\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,10],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[10,0],[14,0,\\\"d-flex\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showFilters\\\"]],[[[1,\\\"          \\\"],[8,[39,11],[[24,0,\\\"form-control m-1 w-auto\\\"],[16,\\\"placeholder\\\",[28,[37,10],[\\\"shared.product.Search products\\\"],null]],[24,\\\"autofocus\\\",\\\"true\\\"],[24,\\\"data-test-task-product-search\\\",\\\"\\\"],[4,[38,7],[\\\"input\\\",[28,[37,12],[[30,0,[\\\"onChangeSearchTerm\\\"]]],null]],null]],[[\\\"@value\\\",\\\"@type\\\"],[[30,0,[\\\"searchString\\\"]],\\\"text\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"isEditable\\\"]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteProducts\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,7],[\\\"click\\\",[28,[37,8],[[28,[37,9],[[30,0,[\\\"isAddingProduct\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[8,[39,13],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,10],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"task-products__table-container\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,14],null,[[\\\"@tableHeader\\\",\\\"@tableData\\\",\\\"@noDataText\\\",\\\"@pageSizes\\\",\\\"@pageSize\\\",\\\"@pageIndex\\\",\\\"@onChangePageIndex\\\",\\\"@onChangePageSize\\\",\\\"@isLoading\\\",\\\"@totalRecords\\\",\\\"@class\\\"],[[30,0,[\\\"productTableHeader\\\"]],[30,0,[\\\"productTableData\\\"]],[28,[37,10],[\\\"common.No data\\\"],null],[30,0,[\\\"model\\\",\\\"pageSizes\\\"]],[30,0,[\\\"model\\\",\\\"pageSize\\\"]],[30,0,[\\\"model\\\",\\\"pageIndex\\\"]],[30,0,[\\\"onChangePageIndex\\\"]],[30,0,[\\\"onChangePageSize\\\"]],[30,0,[\\\"model\\\",\\\"products\\\",\\\"isRunning\\\"]],[30,0,[\\\"totalRecords\\\"]],\\\"table-bordered\\\"]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isEditingProduct\\\"]],[[[1,\\\"  \\\"],[8,[39,15],null,[[\\\"@onSaveProduct\\\",\\\"@target\\\",\\\"@productTable\\\",\\\"@entity\\\",\\\"@productId\\\",\\\"@onClose\\\"],[[30,0,[\\\"onSaveProduct\\\"]],[30,0,[\\\"model\\\",\\\"task\\\",\\\"last\\\",\\\"value\\\"]],\\\"task-product\\\",[30,0,[\\\"sessionData\\\",\\\"entity\\\"]],[30,0,[\\\"selectedProductId\\\"]],[28,[37,8],[[28,[37,9],[[30,0,[\\\"isEditingProduct\\\"]]],null],false],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isAddingProduct\\\"]],[[[1,\\\"  \\\"],[8,[39,16],null,[[\\\"@onAddProduct\\\",\\\"@onCreateProduct\\\",\\\"@onClose\\\"],[[30,0,[\\\"onAddProduct\\\"]],[30,0,[\\\"onCreateProduct\\\"]],[28,[37,8],[[28,[37,9],[[30,0,[\\\"isAddingProduct\\\"]]],null],false],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isDeletingProducts\\\"]],[[[1,\\\"  \\\"],[8,[39,17],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\"],[\\\"modal\\\",[28,[37,8],[[28,[37,9],[[30,0,[\\\"isDeletingProducts\\\"]]],null],false],null],true,\\\"block-module\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,2],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,10],[\\\"shared.product.areYouSureYouWantToDeleteXProducts\\\"],[[\\\"number\\\",\\\"products\\\"],[[30,0,[\\\"selectProductIds\\\",\\\"size\\\"]],[28,[37,19],[[30,0,[\\\"selectProductIds\\\",\\\"size\\\"]],\\\"product\\\"],null]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"float-end d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteProducts\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-danger text-white ms-2\\\"],[15,\\\"disabled\\\",true],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,10],[\\\"common.Deleting\\\"],null]],[1,\\\"…\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteProducts\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,7],[\\\"click\\\",[28,[37,12],[[30,0,[\\\"deleteProducts\\\"]]],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,10],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteProducts\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,7],[\\\"click\\\",[28,[37,8],[[28,[37,9],[[30,0,[\\\"isDeletingProducts\\\"]]],null],false],null]],null],[12],[1,[28,[35,10],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[],false,[\\\"div\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"header\\\",\\\"and\\\",\\\"button\\\",\\\"not\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"t\\\",\\\"input\\\",\\\"perform\\\",\\\"fa-icon\\\",\\\"pagination-table\\\",\\\"product-editor\\\",\\\"product-selector\\\",\\\"modal-dialog\\\",\\\"p\\\",\\\"pluralize\\\",\\\"footer\\\",\\\"span\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/tasks/task/products.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/tasks/task/settings\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='mt-3'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <PtlForm class='width--large mb-4'>\n        <h3 class='mb-3'>{{t 'common.Details'}}</h3>\n        <PtlInput\n          @type='text'\n          @label={{t 'common.Name'}}\n          @key='name'\n          @model={{this.model.taskChangeset.last.value}}\n          @required={{true}}\n          @forceValidationVisible={{gt this.saveTask.performCount 0}}\n          disabled={{or this.saveTask.isRunning (not this.canManageTask)}}\n        />\n        <PtlInput\n          @type='textarea'\n          @label={{t 'common.Description'}}\n          @key='description'\n          @model={{this.model.taskChangeset.last.value}}\n          @forceValidationVisible={{gt this.saveTask.performCount 0}}\n          disabled={{or this.saveTask.isRunning (not this.canManageTask)}}\n        />\n  \n        <div class='d-flex align-items-center mb-3'>\n          <div class='flex-grow-1'>\n            {{#if this.contractTypeIsOverridden}}\n              <PtlInput\n                @type='select'\n                @label={{t 'shared.task.Contract type'}}\n                @containerClass='m-0'\n                @options={{this.contractType}}\n                @key='contractType'\n                @selectNoBlankOption={{true}}\n                @model={{this.model.taskChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveTask.performCount 0}}\n                disabled={{or this.saveTask.isRunning (not this.canManageTask)}}\n              />\n            {{else}}\n              <div>\n                <label class='mb-1'>{{t 'shared.task.Contract type'}}</label>\n                <div class='input-group'>\n                  <Input\n                    class='form-control'\n                    @type='text'\n                    @value={{this.humanReadableContractType}}\n                    disabled={{true}}\n                  />\n                </div>\n              </div>\n            {{/if}}\n          </div>\n  \n          <label class='mx-3 d-flex align-items-center mt-4'>\n            <span>{{t 'common.Override'}}</span>\n            <Input\n              @type='checkbox'\n              class='form-check-input m-0 ms-1'\n              @checked={{this.contractTypeIsOverridden}}\n              {{on\n                'click'\n                (fn\n                  this.toggleContractTypeOverride\n                  this.model.taskChangeset.last.value\n                )\n              }}\n              disabled={{or this.saveTask.isRunning (not this.canManageTask)}}\n            />\n          </label>\n        </div>\n  \n        <PtlInput\n          @type='select'\n          @label={{t 'common.Task type'}}\n          @key='taskType'\n          @selectNoBlankOption={{true}}\n          @options={{this.taskTypes}}\n          @required={{true}}\n          @model={{this.model.taskChangeset.last.value}}\n          @forceValidationVisible={{gt this.saveTask.performCount 0}}\n          disabled={{or this.saveTask.isRunning (not this.canManageTask)}}\n        />\n        <PtlInput\n          @type='select'\n          @label={{t 'common.Status'}}\n          @key='timesheetStatus'\n          @selectNoBlankOption={{true}}\n          @options={{this.timesheetStatus}}\n          @required={{true}}\n          @model={{this.model.taskChangeset.last.value}}\n          @forceValidationVisible={{gt this.saveTask.performCount 0}}\n          @description={{t\n            'entity.builda-price.projects.project.tasks.task.settings.activeTasksAreAvailableToLogCostsAgainst'\n          }}\n          disabled={{or\n            this.saveTask.isRunning\n            this.hasInactiveParents\n            (not this.canManageTask)\n          }}\n        />\n  \n        {{#if\n          (includes\n            this.accountingPlatform.glAccountVisibleFields 'purchasesGlAccount'\n          )\n        }}\n          <div class='d-flex align-items-center mb-3'>\n            <div class='flex-grow-1'>\n              <PtlInput\n                @containerClass='m-0'\n                @type='powerSelect'\n                @label={{t\n                  'entity.builda-price.projects.project.tasks.task.settings.Default purchases account'\n                }}\n                @description={{t\n                  'entity.builda-price.projects.project.tasks.task.settings.purchasesGlAccountDescription'\n                }}\n                @key={{if\n                  this.purchasesGlAccountIsOverridden\n                  'purchasesGlAccount'\n                  'defaultPurchasesGlAccount'\n                }}\n                @optionKeys={{array 'code' 'name'}}\n                @options={{this.model.glAccounts.last.value}}\n                @allowClear={{true}}\n                @model={{this.model.taskChangeset.last.value}}\n                @searchEnabled={{true}}\n                @searchField='code'\n                @forceValidationVisible={{gt this.saveTask.performCount 0}}\n                @disabled={{or\n                  (not this.purchasesGlAccountIsOverridden)\n                  this.saveTask.isRunning\n                  (not this.canManageTask)\n                }}\n                @placeholder={{t\n                  'entity.builda-price.projects.project.tasks.task.settings.No default account'\n                }}\n              />\n            </div>\n  \n            <label class='mx-3 d-flex align-items-center mt-1'>\n              <span>{{t 'common.Override'}}</span>\n              <Input\n                @type='checkbox'\n                class='form-check-input m-0 ms-1'\n                @checked={{this.purchasesGlAccountIsOverridden}}\n                {{on\n                  'click'\n                  (fn\n                    this.togglePurchasesGlAccountOverride\n                    this.model.taskChangeset.last.value\n                  )\n                }}\n                disabled={{or this.saveTask.isRunning (not this.canManageTask)}}\n              />\n            </label>\n          </div>\n        {{/if}}\n  \n        {{#if\n          (includes\n            this.accountingPlatform.glAccountVisibleFields 'salesGlAccount'\n          )\n        }}\n          <div class='d-flex align-items-center mb-3'>\n            <div class='flex-grow-1'>\n              <PtlInput\n                @containerClass='m-0'\n                @type='powerSelect'\n                @label={{t\n                  'entity.builda-price.projects.project.tasks.task.settings.Default sales account'\n                }}\n                @description={{t\n                  'entity.builda-price.projects.project.tasks.task.settings.salesGlAccountDescription'\n                }}\n                @key={{if\n                  this.salesGlAccountIsOverridden\n                  'salesGlAccount'\n                  'defaultSalesGlAccount'\n                }}\n                @optionKeys={{array 'code' 'name'}}\n                @options={{this.model.glAccounts.last.value}}\n                @allowClear={{true}}\n                @model={{this.model.taskChangeset.last.value}}\n                @searchEnabled={{true}}\n                @searchField='code'\n                @forceValidationVisible={{gt this.saveTask.performCount 0}}\n                @disabled={{or\n                  (not this.salesGlAccountIsOverridden)\n                  this.saveTask.isRunning\n                  (not this.canManageTask)\n                }}\n                @placeholder={{t\n                  'entity.builda-price.projects.project.tasks.task.settings.No default account'\n                }}\n              />\n            </div>\n  \n            <label class='mx-3 d-flex align-items-center mt-1'>\n              <span>{{t 'common.Override'}}</span>\n              <Input\n                @type='checkbox'\n                class='form-check-input m-0 ms-1'\n                @checked={{this.salesGlAccountIsOverridden}}\n                {{on\n                  'click'\n                  (fn\n                    this.toggleSalesGlAccountOverride\n                    this.model.taskChangeset.last.value\n                  )\n                }}\n                disabled={{or this.saveTask.isRunning (not this.canManageTask)}}\n              />\n            </label>\n          </div>\n        {{/if}}\n  \n        {{#if this.canManageTask}}\n          <div class='d-flex flex-grow-1 mt-3'>\n            <button\n              type='button'\n              class='btn btn-link text-danger text-decoration-underline'\n              disabled={{this.deleteTask.isRunning}}\n              {{on 'click' this.openDeleteModal}}\n            >\n              {{#if this.deleteTask.isRunning}}\n                &nbsp;&nbsp;{{t 'common.Deleting'}}…\n              {{else}}\n                {{t 'common.Delete'}}\n              {{/if}}\n            </button>\n            <button\n              type='button'\n              class='btn btn-primary ms-auto'\n              disabled={{this.saveTask.isRunning}}\n              {{on\n                'click'\n                (perform\n                  this.saveTask\n                  this.model.taskChangeset.last.value\n                  this.model.profitMarginChangeset.last.value\n                )\n              }}\n            >\n              {{#if this.saveTask.isRunning}}\n                <span\n                  class='spinner-border spinner-border-sm'\n                ></span>&nbsp;&nbsp;{{t 'common.Saving'}}…\n              {{else}}\n                {{t 'common.Save details'}}\n              {{/if}}\n            </button>\n          </div>\n        {{/if}}\n      </PtlForm>\n  \n      {{#if\n        (includes-feature-flags\n          this.model.task.last.value 'canManageProfitMargin'\n        )\n      }}\n        <PtlForm class='width--large'>\n          <ProfitMarginForm\n            @default={{this.model.task.last.value.defaultPercentageValues}}\n            @profitMargin={{this.model.profitMarginChangeset.last.value}}\n            @description={{t 'shared.profit-margins.profitMarginDescription'}}\n            @forceValidationVisible={{gt this.saveProfitMargin.performCount 0}}\n            @disabled={{this.saveProfitMargin.isRunning}}\n          />\n  \n          <div class='d-flex flex-grow-1 mt-3'>\n            <button\n              type='button'\n              class='btn btn-primary ms-auto'\n              disabled={{this.saveProfitMargin.isRunning}}\n              {{on\n                'click'\n                (perform\n                  this.saveProfitMargin\n                  this.model.taskChangeset.last.value\n                  this.model.profitMarginChangeset.last.value\n                )\n              }}\n            >\n              {{#if this.saveProfitMargin.isRunning}}\n                <span\n                  class='spinner-border spinner-border-sm'\n                ></span>&nbsp;&nbsp;{{t 'common.Saving'}}…\n              {{else}}\n                {{t 'shared.profit-margins.Save profit margins'}}\n              {{/if}}\n            </button>\n          </div>\n        </PtlForm>\n      {{/if}}\n    {{/if}}\n  </div>\n  \n  <ConfirmDelete\n    @visible={{this.isDeletingTask}}\n    @title={{t\n      'entity.builda-price.projects.project.tasks.task.settings.Delete task'\n    }}\n    @messages={{this.deleteMessages}}\n    @confirmText={{this.deleteConfirmText}}\n    @deleteButtonText={{t\n      'entity.builda-price.projects.project.tasks.task.settings.deleteTask'\n      subtasks=(if\n        this.model.task.last.value.activeChildren.length\n        (t\n          'entity.builda-price.projects.project.tasks.task.settings.and its subtasks'\n        )\n      )\n    }}\n    @deletingButtonText={{t 'common.Deleting'}}\n    @onDelete={{perform this.deleteTask}}\n    @onCancel={{fn (mut this.isDeletingTask) false}}\n  />\n  \n  {{#if this.isDependencyTransferModalOpen}}\n    <ModalDialog\n      @onClose={{this.closeDependencyTransferModal}}\n      @containerClass='modal-content w-auto width--small'\n      @translucentOverlay={{true}}\n      @overlayClass='modal'\n    >\n      <div class='modal-header'>\n        <h5 class='modal-title'>\n          {{t\n            'entity.builda-price.projects.project.tasks.task.settings.This task has cost or other items mapped to it'\n          }}\n        </h5>\n      </div>\n  \n      <div class='modal-body'>\n        <p>\n          {{t\n            'entity.builda-price.projects.project.tasks.task.settings.selectAnotherTaskToMoveThemToBeforeDeletingThisTask'\n          }}\n        </p>\n        <TaskTransferSelector\n          @tasks={{this.availableDependencyTransferDestinationTasks}}\n          @excludedTasks={{array this.model.task.last.value}}\n          @selectedTask={{this.dependencyTransferDestinationTask}}\n          @onSelectTask={{this.selectDependencyTransferDestination}}\n        />\n      </div>\n  \n      <div class='modal-footer'>\n        <button\n          type='button'\n          class='btn btn-secondary text-white'\n          {{on 'click' this.closeDependencyTransferModal}}\n        >\n          {{t 'common.Cancel'}}\n        </button>\n        <button\n          type='button'\n          class='btn btn-danger text-white'\n          disabled={{or\n            (not this.dependencyTransferDestinationTask)\n            this.deleteTask.isRunning\n          }}\n          {{on\n            'click'\n            (perform this.deleteTask this.dependencyTransferDestinationTask)\n          }}\n        >\n          {{#if this.deleteTask.isRunning}}\n            <span class='spinner-border spinner-border-sm'></span>&nbsp;&nbsp;{{t\n              'common.Deleting'\n            }}&hellip;\n          {{else}}\n            {{t\n              'entity.builda-price.projects.project.tasks.task.settings.moveItemsDeleteTask'\n            }}\n          {{/if}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"76+vtM2V\",\n    \"block\": \"[[[10,0],[14,0,\\\"mt-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[8,[39,3],[[24,0,\\\"width--large mb-4\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-3\\\"],[12],[1,[28,[35,5],[\\\"common.Details\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[8,[39,6],[[16,\\\"disabled\\\",[28,[37,7],[[30,0,[\\\"saveTask\\\",\\\"isRunning\\\"]],[28,[37,8],[[30,0,[\\\"canManageTask\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,5],[\\\"common.Name\\\"],null],\\\"name\\\",[30,0,[\\\"model\\\",\\\"taskChangeset\\\",\\\"last\\\",\\\"value\\\"]],true,[28,[37,9],[[30,0,[\\\"saveTask\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,6],[[16,\\\"disabled\\\",[28,[37,7],[[30,0,[\\\"saveTask\\\",\\\"isRunning\\\"]],[28,[37,8],[[30,0,[\\\"canManageTask\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"textarea\\\",[28,[37,5],[\\\"common.Description\\\"],null],\\\"description\\\",[30,0,[\\\"model\\\",\\\"taskChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveTask\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center mb-3\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"contractTypeIsOverridden\\\"]],[[[1,\\\"            \\\"],[8,[39,6],[[16,\\\"disabled\\\",[28,[37,7],[[30,0,[\\\"saveTask\\\",\\\"isRunning\\\"]],[28,[37,8],[[30,0,[\\\"canManageTask\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@containerClass\\\",\\\"@options\\\",\\\"@key\\\",\\\"@selectNoBlankOption\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",[28,[37,5],[\\\"shared.task.Contract type\\\"],null],\\\"m-0\\\",[30,0,[\\\"contractType\\\"]],\\\"contractType\\\",true,[30,0,[\\\"model\\\",\\\"taskChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveTask\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[10,0],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,[28,[35,5],[\\\"shared.task.Contract type\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"input-group\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,11],[[24,0,\\\"form-control\\\"],[16,\\\"disabled\\\",true]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"humanReadableContractType\\\"]]]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"mx-3 d-flex align-items-center mt-4\\\"],[12],[1,\\\"\\\\n          \\\"],[10,1],[12],[1,[28,[35,5],[\\\"common.Override\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[8,[39,11],[[24,0,\\\"form-check-input m-0 ms-1\\\"],[16,\\\"disabled\\\",[28,[37,7],[[30,0,[\\\"saveTask\\\",\\\"isRunning\\\"]],[28,[37,8],[[30,0,[\\\"canManageTask\\\"]]],null]],null]],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"toggleContractTypeOverride\\\"]],[30,0,[\\\"model\\\",\\\"taskChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"contractTypeIsOverridden\\\"]]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,6],[[16,\\\"disabled\\\",[28,[37,7],[[30,0,[\\\"saveTask\\\",\\\"isRunning\\\"]],[28,[37,8],[[30,0,[\\\"canManageTask\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@selectNoBlankOption\\\",\\\"@options\\\",\\\"@required\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",[28,[37,5],[\\\"common.Task type\\\"],null],\\\"taskType\\\",true,[30,0,[\\\"taskTypes\\\"]],true,[30,0,[\\\"model\\\",\\\"taskChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveTask\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,6],[[16,\\\"disabled\\\",[28,[37,7],[[30,0,[\\\"saveTask\\\",\\\"isRunning\\\"]],[30,0,[\\\"hasInactiveParents\\\"]],[28,[37,8],[[30,0,[\\\"canManageTask\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@selectNoBlankOption\\\",\\\"@options\\\",\\\"@required\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@description\\\"],[\\\"select\\\",[28,[37,5],[\\\"common.Status\\\"],null],\\\"timesheetStatus\\\",true,[30,0,[\\\"timesheetStatus\\\"]],true,[30,0,[\\\"model\\\",\\\"taskChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveTask\\\",\\\"performCount\\\"]],0],null],[28,[37,5],[\\\"entity.builda-price.projects.project.tasks.task.settings.activeTasksAreAvailableToLogCostsAgainst\\\"],null]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,15],[[30,0,[\\\"accountingPlatform\\\",\\\"glAccountVisibleFields\\\"]],\\\"purchasesGlAccount\\\"],null],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"d-flex align-items-center mb-3\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,6],null,[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@options\\\",\\\"@allowClear\\\",\\\"@model\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@forceValidationVisible\\\",\\\"@disabled\\\",\\\"@placeholder\\\"],[\\\"m-0\\\",\\\"powerSelect\\\",[28,[37,5],[\\\"entity.builda-price.projects.project.tasks.task.settings.Default purchases account\\\"],null],[28,[37,5],[\\\"entity.builda-price.projects.project.tasks.task.settings.purchasesGlAccountDescription\\\"],null],[52,[30,0,[\\\"purchasesGlAccountIsOverridden\\\"]],\\\"purchasesGlAccount\\\",\\\"defaultPurchasesGlAccount\\\"],[28,[37,16],[\\\"code\\\",\\\"name\\\"],null],[30,0,[\\\"model\\\",\\\"glAccounts\\\",\\\"last\\\",\\\"value\\\"]],true,[30,0,[\\\"model\\\",\\\"taskChangeset\\\",\\\"last\\\",\\\"value\\\"]],true,\\\"code\\\",[28,[37,9],[[30,0,[\\\"saveTask\\\",\\\"performCount\\\"]],0],null],[28,[37,7],[[28,[37,8],[[30,0,[\\\"purchasesGlAccountIsOverridden\\\"]]],null],[30,0,[\\\"saveTask\\\",\\\"isRunning\\\"]],[28,[37,8],[[30,0,[\\\"canManageTask\\\"]]],null]],null],[28,[37,5],[\\\"entity.builda-price.projects.project.tasks.task.settings.No default account\\\"],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"mx-3 d-flex align-items-center mt-1\\\"],[12],[1,\\\"\\\\n            \\\"],[10,1],[12],[1,[28,[35,5],[\\\"common.Override\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[8,[39,11],[[24,0,\\\"form-check-input m-0 ms-1\\\"],[16,\\\"disabled\\\",[28,[37,7],[[30,0,[\\\"saveTask\\\",\\\"isRunning\\\"]],[28,[37,8],[[30,0,[\\\"canManageTask\\\"]]],null]],null]],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"togglePurchasesGlAccountOverride\\\"]],[30,0,[\\\"model\\\",\\\"taskChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"purchasesGlAccountIsOverridden\\\"]]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,15],[[30,0,[\\\"accountingPlatform\\\",\\\"glAccountVisibleFields\\\"]],\\\"salesGlAccount\\\"],null],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"d-flex align-items-center mb-3\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,6],null,[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@options\\\",\\\"@allowClear\\\",\\\"@model\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@forceValidationVisible\\\",\\\"@disabled\\\",\\\"@placeholder\\\"],[\\\"m-0\\\",\\\"powerSelect\\\",[28,[37,5],[\\\"entity.builda-price.projects.project.tasks.task.settings.Default sales account\\\"],null],[28,[37,5],[\\\"entity.builda-price.projects.project.tasks.task.settings.salesGlAccountDescription\\\"],null],[52,[30,0,[\\\"salesGlAccountIsOverridden\\\"]],\\\"salesGlAccount\\\",\\\"defaultSalesGlAccount\\\"],[28,[37,16],[\\\"code\\\",\\\"name\\\"],null],[30,0,[\\\"model\\\",\\\"glAccounts\\\",\\\"last\\\",\\\"value\\\"]],true,[30,0,[\\\"model\\\",\\\"taskChangeset\\\",\\\"last\\\",\\\"value\\\"]],true,\\\"code\\\",[28,[37,9],[[30,0,[\\\"saveTask\\\",\\\"performCount\\\"]],0],null],[28,[37,7],[[28,[37,8],[[30,0,[\\\"salesGlAccountIsOverridden\\\"]]],null],[30,0,[\\\"saveTask\\\",\\\"isRunning\\\"]],[28,[37,8],[[30,0,[\\\"canManageTask\\\"]]],null]],null],[28,[37,5],[\\\"entity.builda-price.projects.project.tasks.task.settings.No default account\\\"],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"mx-3 d-flex align-items-center mt-1\\\"],[12],[1,\\\"\\\\n            \\\"],[10,1],[12],[1,[28,[35,5],[\\\"common.Override\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[8,[39,11],[[24,0,\\\"form-check-input m-0 ms-1\\\"],[16,\\\"disabled\\\",[28,[37,7],[[30,0,[\\\"saveTask\\\",\\\"isRunning\\\"]],[28,[37,8],[[30,0,[\\\"canManageTask\\\"]]],null]],null]],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"toggleSalesGlAccountOverride\\\"]],[30,0,[\\\"model\\\",\\\"taskChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"salesGlAccountIsOverridden\\\"]]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canManageTask\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-3\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteTask\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"openDeleteModal\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteTask\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,5],[\\\"common.Deleting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,5],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveTask\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,18],[[30,0,[\\\"saveTask\\\"]],[30,0,[\\\"model\\\",\\\"taskChangeset\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"model\\\",\\\"profitMarginChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveTask\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,5],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,5],[\\\"common.Save details\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,19],[[30,0,[\\\"model\\\",\\\"task\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageProfitMargin\\\"],null],[[[1,\\\"      \\\"],[8,[39,3],[[24,0,\\\"width--large\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[39,20],null,[[\\\"@default\\\",\\\"@profitMargin\\\",\\\"@description\\\",\\\"@forceValidationVisible\\\",\\\"@disabled\\\"],[[30,0,[\\\"model\\\",\\\"task\\\",\\\"last\\\",\\\"value\\\",\\\"defaultPercentageValues\\\"]],[30,0,[\\\"model\\\",\\\"profitMarginChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,5],[\\\"shared.profit-margins.profitMarginDescription\\\"],null],[28,[37,9],[[30,0,[\\\"saveProfitMargin\\\",\\\"performCount\\\"]],0],null],[30,0,[\\\"saveProfitMargin\\\",\\\"isRunning\\\"]]]],null],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-3\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveProfitMargin\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,18],[[30,0,[\\\"saveProfitMargin\\\"]],[30,0,[\\\"model\\\",\\\"taskChangeset\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"model\\\",\\\"profitMarginChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveProfitMargin\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,5],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,5],[\\\"shared.profit-margins.Save profit margins\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[8,[39,21],null,[[\\\"@visible\\\",\\\"@title\\\",\\\"@messages\\\",\\\"@confirmText\\\",\\\"@deleteButtonText\\\",\\\"@deletingButtonText\\\",\\\"@onDelete\\\",\\\"@onCancel\\\"],[[30,0,[\\\"isDeletingTask\\\"]],[28,[37,5],[\\\"entity.builda-price.projects.project.tasks.task.settings.Delete task\\\"],null],[30,0,[\\\"deleteMessages\\\"]],[30,0,[\\\"deleteConfirmText\\\"]],[28,[37,5],[\\\"entity.builda-price.projects.project.tasks.task.settings.deleteTask\\\"],[[\\\"subtasks\\\"],[[52,[30,0,[\\\"model\\\",\\\"task\\\",\\\"last\\\",\\\"value\\\",\\\"activeChildren\\\",\\\"length\\\"]],[28,[37,5],[\\\"entity.builda-price.projects.project.tasks.task.settings.and its subtasks\\\"],null]]]]],[28,[37,5],[\\\"common.Deleting\\\"],null],[28,[37,18],[[30,0,[\\\"deleteTask\\\"]]],null],[28,[37,14],[[28,[37,22],[[30,0,[\\\"isDeletingTask\\\"]]],null],false],null]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isDependencyTransferModalOpen\\\"]],[[[1,\\\"  \\\"],[8,[39,23],null,[[\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\",\\\"@overlayClass\\\"],[[30,0,[\\\"closeDependencyTransferModal\\\"]],\\\"modal-content w-auto width--small\\\",true,\\\"modal\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h5\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.tasks.task.settings.This task has cost or other items mapped to it\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.tasks.task.settings.selectAnotherTaskToMoveThemToBeforeDeletingThisTask\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,26],null,[[\\\"@tasks\\\",\\\"@excludedTasks\\\",\\\"@selectedTask\\\",\\\"@onSelectTask\\\"],[[30,0,[\\\"availableDependencyTransferDestinationTasks\\\"]],[28,[37,16],[[30,0,[\\\"model\\\",\\\"task\\\",\\\"last\\\",\\\"value\\\"]]],null],[30,0,[\\\"dependencyTransferDestinationTask\\\"]],[30,0,[\\\"selectDependencyTransferDestination\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"closeDependencyTransferModal\\\"]]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger text-white\\\"],[16,\\\"disabled\\\",[28,[37,7],[[28,[37,8],[[30,0,[\\\"dependencyTransferDestinationTask\\\"]]],null],[30,0,[\\\"deleteTask\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,18],[[30,0,[\\\"deleteTask\\\"]],[30,0,[\\\"dependencyTransferDestinationTask\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteTask\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,5],[\\\"common.Deleting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.tasks.task.settings.moveItemsDeleteTask\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[],false,[\\\"div\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"ptl-form\\\",\\\"h3\\\",\\\"t\\\",\\\"ptl-input\\\",\\\"or\\\",\\\"not\\\",\\\"gt\\\",\\\"label\\\",\\\"input\\\",\\\"span\\\",\\\"on\\\",\\\"fn\\\",\\\"includes\\\",\\\"array\\\",\\\"button\\\",\\\"perform\\\",\\\"includes-feature-flags\\\",\\\"profit-margin-form\\\",\\\"confirm-delete\\\",\\\"mut\\\",\\\"modal-dialog\\\",\\\"h5\\\",\\\"p\\\",\\\"task-transfer-selector\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/tasks/task/settings.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"qu/FcpUr\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/company\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if (media 'isDesktop')}}\n    <ModuleNavigation::Reports::CompanyReports />\n    <main class='page__container-content gap-zendesk-support-widget'>\n      {{outlet}}\n    </main>\n  {{else}}\n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component 'mobile-title-bar/burger-button'}}\n    />\n  \n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title=(t 'common.Reports')}}\n    />\n  \n    <main class='page__container-content gap-zendesk-support-widget'>\n      {{outlet}}\n    </main>\n  {{/if}}\n  */\n  {\n    \"id\": \"jbA5hA8W\",\n    \"block\": \"[[[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"  \\\"],[8,[39,2],null,null,null],[1,\\\"\\\\n  \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content gap-zendesk-support-widget\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,5],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[8,[39,6],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/burger-button\\\",0,null,null]]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,6],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,7],[\\\"common.Reports\\\"],null]]]]]],null],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content gap-zendesk-support-widget\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,5],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"media\\\",\\\"module-navigation/reports/company-reports\\\",\\\"main\\\",\\\"component\\\",\\\"-outlet\\\",\\\"to-elsewhere\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/company.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/company/forecast-breakdown\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t\n          'entity.builda-price.reports.company.forecast-breakdown.Forecast report'\n        )\n      }}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.forecastTable.last.value.name}}\n          </h2>\n        {{/if}}\n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n              disabled={{this.downloadAsPdf.isRunning}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as PDF'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAndSavePdf)}}\n                disabled={{this.downloadAndSavePdf.isRunning}}\n              >\n                {{#if this.downloadAndSavePdf.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save PDF'}}\n                {{/if}}\n              </button>\n            {{/if}}\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsCsv false)}}\n              disabled={{this.downloadAsCsv.isRunning}}\n            >\n              {{#if this.downloadAsCsv.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as CSV'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAsCsv true)}}\n                disabled={{this.downloadAsCsv.isRunning}}\n              >\n                {{#if this.downloadAsCsv.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save CSV'}}\n                {{/if}}\n              </button>\n            {{/if}}\n          </po.Content>\n        </PopOver>\n      </header>\n      <p>\n        {{t 'shared.reports.forecastBreakdownReportExplanation'}}\n      </p>\n      <div class='d-flex align-items-center my-3'>\n        <PopOver\n          @disableBlur={{true}}\n          @direction='bottom-right'\n          @disabled={{this.isLoading}}\n          as |po|\n        >\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Filters'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content class='py-3 px-3' style='width: 250px;'>\n            <label class='align-items-center'>\n              <LabelPopup\n                class='mb-1'\n                @text={{t\n                  'shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications'\n                }}\n              >\n                {{t 'shared.reports.Report date'}}\n              </LabelPopup>\n              <input\n                class='form-control w-100'\n                placeholder={{t 'shared.reports.Pick a date'}}\n                type='date'\n                value={{this.controllerDate}}\n                {{on 'change' this.onDateChange}}\n              />\n            </label>\n  \n            <div class='mt-2'>\n              <label class='no-wrap mb-1'>{{t 'common.Status'}}</label>\n              <SelectInput\n                @value={{this.controllerStatus}}\n                @action={{this.filterStatus}}\n                @class='form-control select-box w-100'\n                as |si|\n              >\n                <si.option @value='OPEN'>{{t 'common.Open projects'}}</si.option>\n                <si.option @value='ALL'>{{t 'common.All projects'}}</si.option>\n                <si.option @value='HELD'>{{t 'common.Held projects'}}</si.option>\n                <si.option @value='CLOSED'>{{t\n                    'common.Closed projects'\n                  }}</si.option>\n                <si.option @value='ARCHIVED'>{{t\n                    'common.Archived projects'\n                  }}</si.option>\n              </SelectInput>\n            </div>\n  \n            <div class='mt-2'>\n              <label class='no-wrap mb-1'>{{t\n                  'shared.reports.Exclude projects'\n                }}</label>\n              <PowerSelectMultiple\n                @options={{this.filteredProjects}}\n                @selected={{this.excludedProjects}}\n                @searchEnabled={{true}}\n                @searchField='name'\n                @placeholder={{t 'shared.reports.selectProjectsToExclude'}}\n                @renderInPlace={{true}}\n                @onChange={{fn (mut this.excludedProjects)}}\n                as |project|\n              >\n                {{project.name}}\n              </PowerSelectMultiple>\n            </div>\n  \n            <div class='text-right mt-3'>\n              <button\n                class='btn btn-primary'\n                {{on 'click' this.applyFilter}}\n                type='button'\n              >{{t 'common.Apply filters'}}</button>\n            </div>\n          </po.Content>\n        </PopOver>\n        {{#if this.hasFilters}}\n          <button\n            class='text-button ms-2'\n            type='button'\n            {{on 'click' this.removeFilter}}\n          >\n            <FaIcon @icon='times' />&nbsp;{{t 'common.Reset filters'}}\n          </button>\n        {{/if}}\n      </div>\n      <div id={{this.pdfExportTargetId}}>\n        <ReportEngineElementContainer\n          @elements={{this.model.forecastTable.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"C1pQ9kql\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"entity.builda-price.reports.company.forecast-breakdown.Forecast report\\\"],null]]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,7],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"forecastTable\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,10],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"downloadAsCsv\\\"]],false],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"downloadAsCsv\\\"]],true],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"shared.reports.Download and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,2],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,4],[\\\"shared.reports.forecastBreakdownReportExplanation\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,10],null,[[\\\"@disableBlur\\\",\\\"@direction\\\",\\\"@disabled\\\"],[true,\\\"bottom-right\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Filters\\\"],null]],[1,\\\"  \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,2,[\\\"Content\\\"]],[[24,0,\\\"py-3 px-3\\\"],[24,5,\\\"width: 250px;\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"align-items-center\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,18],[[24,0,\\\"mb-1\\\"]],[[\\\"@text\\\"],[[28,[37,4],[\\\"shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"shared.reports.Report date\\\"],null]],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n            \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control w-100\\\"],[16,\\\"placeholder\\\",[28,[37,4],[\\\"shared.reports.Pick a date\\\"],null]],[16,2,[30,0,[\\\"controllerDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,13],[\\\"change\\\",[30,0,[\\\"onDateChange\\\"]]],null],[12],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"mt-2\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"no-wrap mb-1\\\"],[12],[1,[28,[35,4],[\\\"common.Status\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[8,[39,20],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"controllerStatus\\\"]],[30,0,[\\\"filterStatus\\\"]],\\\"form-control select-box w-100\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"OPEN\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Open projects\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ALL\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.All projects\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"HELD\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Held projects\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"CLOSED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Closed projects\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ARCHIVED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Archived projects\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"]],[3]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"mt-2\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"no-wrap mb-1\\\"],[12],[1,[28,[35,4],[\\\"shared.reports.Exclude projects\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[8,[39,21],null,[[\\\"@options\\\",\\\"@selected\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@renderInPlace\\\",\\\"@onChange\\\"],[[30,0,[\\\"filteredProjects\\\"]],[30,0,[\\\"excludedProjects\\\"]],true,\\\"name\\\",[28,[37,4],[\\\"shared.reports.selectProjectsToExclude\\\"],null],true,[28,[37,22],[[28,[37,23],[[30,0,[\\\"excludedProjects\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[1,[30,4,[\\\"name\\\"]]],[1,\\\"\\\\n            \\\"]],[4]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"text-right mt-3\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"applyFilter\\\"]]],null],[12],[1,[28,[35,4],[\\\"common.Apply filters\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[2]]]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"hasFilters\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button ms-2\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"removeFilter\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\" \\\"],[1,[28,[35,4],[\\\"common.Reset filters\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[15,1,[30,0,[\\\"pdfExportTargetId\\\"]]],[12],[1,\\\"\\\\n      \\\"],[8,[39,24],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"forecastTable\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"po\\\",\\\"po\\\",\\\"si\\\",\\\"project\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"header\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"p\\\",\\\"div\\\",\\\"label\\\",\\\"label-popup\\\",\\\"input\\\",\\\"select-input\\\",\\\"power-select-multiple\\\",\\\"fn\\\",\\\"mut\\\",\\\"report-engine-element-container\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/company/forecast-breakdown.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/company/invoicing\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t 'entity.builda-price.reports.company.invoicing.Invoicing report')\n      }}\n    />\n  {{/unless}}\n  <article class='m-4 flex-grow-1'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.invoiceTable.last.value.name}}\n          </h2>\n        {{/if}}\n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n              disabled={{this.downloadAsPdf.isRunning}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as PDF'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAndSavePdf)}}\n                disabled={{this.downloadAndSavePdf.isRunning}}\n              >\n                {{#if this.downloadAndSavePdf.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save PDF'}}\n                {{/if}}\n              </button>\n            {{/if}}\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (fn (mut this.csvExportOptions) true)}}\n            >\n              {{t 'shared.reports.Download as CSV'}}\n            </button>\n          </po.Content>\n        </PopOver>\n      </header>\n      <div class='d-flex align-items-center my-3'>\n        <label class='d-flex align-items-center m-1'>\n          <LabelPopup\n            @text={{t\n              'shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications'\n            }}\n          >\n            {{t 'shared.reports.Report date'}}\n          </LabelPopup>\n          <input\n            class='form-control ms-1'\n            style='width: auto;'\n            placeholder={{t 'shared.reports.Pick a date'}}\n            type='date'\n            value={{this.selectedDate}}\n            {{on 'change' (perform this.onDateChange)}}\n          />\n        </label>\n      </div>\n      <div id={{this.pdfExportTargetId}}>\n        <ReportEngineElementContainer\n          @elements={{this.model.invoiceTable.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  \n  {{#if this.csvExportOptions}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{this.closeCSVExport}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t 'shared.reports.selectTheReportsThatNeedToBeExportedBelow'}}\n        </p>\n        {{#each this.csvOptions as |option index|}}\n          <div class='form-check mb-1'>\n            <input\n              type='checkbox'\n              class='form-check-input'\n              name={{option.name}}\n              checked={{option.value}}\n              id={{index}}\n              {{on 'change' (fn this.toggleCsvOption index)}}\n            />\n            <label for={{index}}>{{option.name}}</label>\n          </div>\n        {{/each}}\n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' this.closeCSVExport}}\n        >\n          {{t 'common.Cancel'}}\n        </button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          disabled={{this.isExportDisabled}}\n          {{on\n            'click'\n            (pipe\n              (perform this.downloadAsCsv this.csvOptions false)\n              this.closeCSVExport\n            )\n          }}\n        >\n          {{#if this.downloadAsCsv.isRunning}}\n            {{t 'common.Exporting'}}&hellip;\n          {{else}}\n            {{t 'common.Export'}}\n          {{/if}}\n        </button>\n        {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n          <button\n            type='button'\n            class='btn btn-primary'\n            {{on\n              'click'\n              (pipe\n                (perform this.downloadAsCsv this.csvOptions true)\n                this.closeCSVExport\n              )\n            }}\n            disabled={{this.isExportDisabled}}\n          >\n            {{#if this.downloadAsCsv.isRunning}}\n              {{t 'common.Exporting'}}&hellip;\n            {{else}}\n              {{t 'shared.reports.Export and save CSV'}}\n            {{/if}}\n          </button>\n        {{/if}}\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"HWtJlXgw\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"entity.builda-price.reports.company.invoicing.Invoicing report\\\"],null]]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4 flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,7],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"invoiceTable\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,10],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,15],[[28,[37,16],[[30,0,[\\\"csvExportOptions\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"d-flex align-items-center m-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,19],null,[[\\\"@text\\\"],[[28,[37,4],[\\\"shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"shared.reports.Report date\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control ms-1\\\"],[24,5,\\\"width: auto;\\\"],[16,\\\"placeholder\\\",[28,[37,4],[\\\"shared.reports.Pick a date\\\"],null]],[16,2,[30,0,[\\\"selectedDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,13],[\\\"change\\\",[28,[37,14],[[30,0,[\\\"onDateChange\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[15,1,[30,0,[\\\"pdfExportTargetId\\\"]]],[12],[1,\\\"\\\\n      \\\"],[8,[39,21],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"invoiceTable\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"csvExportOptions\\\"]],[[[1,\\\"  \\\"],[8,[39,22],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[30,0,[\\\"closeCSVExport\\\"]],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"shared.reports.selectTheReportsThatNeedToBeExportedBelow\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,25],[[28,[37,25],[[30,0,[\\\"csvOptions\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"form-check mb-1\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"input\\\"],[24,0,\\\"form-check-input\\\"],[16,3,[30,2,[\\\"name\\\"]]],[16,\\\"checked\\\",[30,2,[\\\"value\\\"]]],[16,1,[30,3]],[24,4,\\\"checkbox\\\"],[4,[38,13],[\\\"change\\\",[28,[37,15],[[30,0,[\\\"toggleCsvOption\\\"]],[30,3]],null]],null],[12],[13],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[15,\\\"for\\\",[30,3]],[12],[1,[30,2,[\\\"name\\\"]]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[2,3]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"closeCSVExport\\\"]]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,26],[[28,[37,14],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],false],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,4],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,4],[\\\"common.Export\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,26],[[28,[37,14],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],true],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,4],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,4],[\\\"shared.reports.Export and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"po\\\",\\\"option\\\",\\\"index\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"header\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"fn\\\",\\\"mut\\\",\\\"div\\\",\\\"label\\\",\\\"label-popup\\\",\\\"input\\\",\\\"report-engine-element-container\\\",\\\"modal-dialog\\\",\\\"p\\\",\\\"each\\\",\\\"-track-array\\\",\\\"pipe\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/company/invoicing.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/company/labour-hours\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t\n          'entity.builda-price.reports.company.labour-hours.Labour hours report'\n        )\n      }}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.entityLevelReport.last.value.name}}\n          </h2>\n        {{/if}}\n        <div>\n          <SelectInput\n            @value={{this.status}}\n            @action={{fn (mut this.status)}}\n            @class='form-control select-box'\n            as |si|\n          >\n            <si.option @value='OPEN'>{{t 'common.Open projects'}}</si.option>\n            <si.option @value='ALL'>{{t 'common.All projects'}}</si.option>\n            <si.option @value='HELD'>{{t 'common.Held projects'}}</si.option>\n            <si.option @value='CLOSED'>{{t 'common.Closed projects'}}</si.option>\n            <si.option @value='ARCHIVED'>{{t\n                'common.Archived projects'\n              }}</si.option>\n          </SelectInput>\n        </div>\n        {{#if this.showDownloadButton}}\n          <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n            <button type='button' class='btn btn-secondary text-white m-1'>\n              {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n            </button>\n            <po.Content>\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAsPdf)}}\n                disabled={{this.downloadAsPdf.isRunning}}\n              >\n                {{#if this.downloadAsPdf.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download as PDF'}}\n                {{/if}}\n              </button>\n              {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n                <button\n                  type='button'\n                  class='dropdown-item text-nowrap fs-5'\n                  {{on 'click' (perform this.downloadAndSavePdf)}}\n                  disabled={{this.downloadAndSavePdf.isRunning}}\n                >\n                  {{#if this.downloadAndSavePdf.isRunning}}\n                    {{t 'common.Downloading'}}&hellip;\n                  {{else}}\n                    {{t 'shared.reports.Download and save PDF'}}\n                  {{/if}}\n                </button>\n              {{/if}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAsCsv false)}}\n                disabled={{this.downloadAsCsv.isRunning}}\n              >\n                {{#if this.downloadAsCsv.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download as CSV'}}\n                {{/if}}\n              </button>\n              {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n                <button\n                  type='button'\n                  class='dropdown-item text-nowrap fs-5'\n                  {{on 'click' (perform this.downloadAsCsv true)}}\n                  disabled={{this.downloadAsCsv.isRunning}}\n                >\n                  {{#if this.downloadAsCsv.isRunning}}\n                    {{t 'common.Downloading'}}&hellip;\n                  {{else}}\n                    {{t 'shared.reports.Download and save CSV'}}\n                  {{/if}}\n                </button>\n              {{/if}}\n            </po.Content>\n          </PopOver>\n        {{/if}}\n      </header>\n  \n      <div class='d-flex align-items-center my-3'>\n        <label class='d-flex align-items-center'>\n          <LabelPopup\n            @text={{t\n              'shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications'\n            }}\n          >\n            {{t 'shared.reports.Report date'}}\n          </LabelPopup>\n          <input\n            class='form-control ms-1'\n            style='width: auto;'\n            placeholder={{t 'shared.reports.Pick a date'}}\n            type='date'\n            value={{this.selectedDate}}\n            {{on 'change' (perform this.onDateChange)}}\n          />\n        </label>\n      </div>\n      <div id={{this.pdfExportTargetId}}>\n        <ReportEngineElementContainer\n          @elements={{this.model.entityLevelReport.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"lK+yAhQ1\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"entity.builda-price.reports.company.labour-hours.Labour hours report\\\"],null]]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,7],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"entityLevelReport\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[10,0],[12],[1,\\\"\\\\n        \\\"],[8,[39,11],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"status\\\"]],[28,[37,12],[[28,[37,13],[[30,0,[\\\"status\\\"]]],null]],null],\\\"form-control select-box\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"OPEN\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Open projects\\\"],null]]],[]]]]],[1,\\\"\\\\n          \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ALL\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.All projects\\\"],null]]],[]]]]],[1,\\\"\\\\n          \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"HELD\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Held projects\\\"],null]]],[]]]]],[1,\\\"\\\\n          \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"CLOSED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Closed projects\\\"],null]]],[]]]]],[1,\\\"\\\\n          \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ARCHIVED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Archived projects\\\"],null]]],[]]]]],[1,\\\"\\\\n        \\\"]],[1]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showDownloadButton\\\"]],[[[1,\\\"        \\\"],[8,[39,14],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[30,2,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[28,[37,18],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[28,[37,18],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                  \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[28,[35,4],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[28,[37,18],[[30,0,[\\\"downloadAsCsv\\\"]],false],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[28,[37,18],[[30,0,[\\\"downloadAsCsv\\\"]],true],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"                  \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[28,[35,4],[\\\"shared.reports.Download and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[2]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,20],null,[[\\\"@text\\\"],[[28,[37,4],[\\\"shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"shared.reports.Report date\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control ms-1\\\"],[24,5,\\\"width: auto;\\\"],[16,\\\"placeholder\\\",[28,[37,4],[\\\"shared.reports.Pick a date\\\"],null]],[16,2,[30,0,[\\\"selectedDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,17],[\\\"change\\\",[28,[37,18],[[30,0,[\\\"onDateChange\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[15,1,[30,0,[\\\"pdfExportTargetId\\\"]]],[12],[1,\\\"\\\\n      \\\"],[8,[39,22],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"entityLevelReport\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"si\\\",\\\"po\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"header\\\",\\\"h2\\\",\\\"div\\\",\\\"select-input\\\",\\\"fn\\\",\\\"mut\\\",\\\"pop-over\\\",\\\"button\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"label\\\",\\\"label-popup\\\",\\\"input\\\",\\\"report-engine-element-container\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/company/labour-hours.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/company/notes\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4 flex-grow-1'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.noteReport.last.value.name}}\n          </h2>\n        {{/if}}\n        {{#if this.showDownloadButton}}\n          <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n            <button type='button' class='btn btn-secondary text-white m-1'>\n              {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n            </button>\n            <po.Content>\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAsPdf)}}\n                disabled={{this.downloadAsPdf.isRunning}}\n              >\n                {{#if this.downloadAsPdf.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download as PDF'}}\n                {{/if}}\n              </button>\n              {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n                <button\n                  type='button'\n                  class='dropdown-item text-nowrap fs-5'\n                  {{on 'click' (perform this.downloadAndSavePdf)}}\n                  disabled={{this.downloadAndSavePdf.isRunning}}\n                >\n                  {{#if this.downloadAndSavePdf.isRunning}}\n                    {{t 'common.Downloading'}}&hellip;\n                  {{else}}\n                    {{t 'shared.reports.Download and save PDF'}}\n                  {{/if}}\n                </button>\n              {{/if}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAsCsv)}}\n              >\n                {{t 'shared.reports.Download as CSV'}}\n              </button>\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAsCsv true)}}\n              >\n                {{t 'shared.reports.Download and save CSV'}}\n              </button>\n            </po.Content>\n          </PopOver>\n        {{/if}}\n      </header>\n  \n      <div class='d-flex flex-wrap gap-3 my-3'>\n        {{#if this.invoiceId}}\n          <button\n            class='btn btn-primary'\n            type='button'\n            {{on 'click' this.removeAllProjectFilters}}\n          >\n            <FaIcon @icon='times' />&nbsp;&nbsp;{{t 'common.Remove filter'}}\n          </button>\n        {{else}}\n          <div class='d-flex align-items-center flex-wrap gap-3'>\n            {{t 'common.Date range'}}:&nbsp;\n            <DateRangeSelector\n              @align='left'\n              @startDate={{this.dateRangeSelectorStartDate}}\n              @endDate={{this.dateRangeSelectorEndDate}}\n              @onApply={{this.setDateRange}}\n            />\n          </div>\n          <div class='d-flex align-items-center'>\n            <label>{{t 'common.Selected projects'}}:&nbsp;&nbsp;</label>\n  \n            <PowerSelectMultiple\n              @options={{this.model.getProjects.last.value}}\n              @selected={{this.selectedProjects}}\n              @searchEnabled={{true}}\n              @placeholder='–'\n              @searchField='name'\n              @onChange={{fn (mut this.selectedProjects)}}\n              as |project|\n            >\n              {{project.name}}\n            </PowerSelectMultiple>\n  \n            {{#if this.selectedProjects.length}}\n              &nbsp;&nbsp;\n              <button\n                class='text-button'\n                type='button'\n                {{on 'click' this.removeAllProjectFilters}}\n              >\n                <FaIcon @icon='times' />&nbsp;{{t 'common.Remove filter'}}\n              </button>\n            {{/if}}\n          </div>\n          <div class='d-flex align-items-center'>\n            <label>{{t 'common.Selected workers'}}:&nbsp;&nbsp;</label>\n  \n            <PowerSelectMultiple\n              @options={{this.model.getWorkers.last.value}}\n              @selected={{this.selectedWorkers}}\n              @searchEnabled={{true}}\n              @placeholder='–'\n              @searchField='fullName'\n              @onChange={{fn (mut this.selectedWorkers)}}\n              as |worker|\n            >\n              {{worker.fullName}}\n            </PowerSelectMultiple>\n  \n            {{#if this.selectedWorkers.length}}\n              &nbsp;&nbsp;\n              <button\n                class='text-button'\n                type='button'\n                {{on 'click' this.removeAllWorkerFilters}}\n              >\n                <FaIcon @icon='times' />&nbsp;{{t 'common.Remove filter'}}\n              </button>\n            {{/if}}\n          </div>\n        {{/if}}\n      </div>\n  \n      <div id={{this.pdfExportTargetId}} class='container-sm p-0 m-0'>\n        <ReportEngineElementContainer\n          @elements={{this.model.noteReport.last.value.elements}}\n          @hideClass={{this.pdfExportHideClass}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"Sb8Gm5ti\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4 flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"noteReport\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"showDownloadButton\\\"]],[[[1,\\\"        \\\"],[8,[39,6],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,8],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                  \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[28,[35,8],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsCsv\\\"]]],null]],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,8],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsCsv\\\"]],true],null]],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,8],[\\\"shared.reports.Download and save CSV\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[1]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex flex-wrap gap-3 my-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"invoiceId\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"removeAllProjectFilters\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,8],[\\\"common.Remove filter\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"d-flex align-items-center flex-wrap gap-3\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.Date range\\\"],null]],[1,\\\": \\\\n          \\\"],[8,[39,13],null,[[\\\"@align\\\",\\\"@startDate\\\",\\\"@endDate\\\",\\\"@onApply\\\"],[\\\"left\\\",[30,0,[\\\"dateRangeSelectorStartDate\\\"]],[30,0,[\\\"dateRangeSelectorEndDate\\\"]],[30,0,[\\\"setDateRange\\\"]]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[12],[1,[28,[35,8],[\\\"common.Selected projects\\\"],null]],[1,\\\":  \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,15],null,[[\\\"@options\\\",\\\"@selected\\\",\\\"@searchEnabled\\\",\\\"@placeholder\\\",\\\"@searchField\\\",\\\"@onChange\\\"],[[30,0,[\\\"model\\\",\\\"getProjects\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"selectedProjects\\\"]],true,\\\"–\\\",\\\"name\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"selectedProjects\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[30,2,[\\\"name\\\"]]],[1,\\\"\\\\n          \\\"]],[2]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"selectedProjects\\\",\\\"length\\\"]],[[[1,\\\"              \\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"removeAllProjectFilters\\\"]]],null],[12],[1,\\\"\\\\n              \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\" \\\"],[1,[28,[35,8],[\\\"common.Remove filter\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[12],[1,[28,[35,8],[\\\"common.Selected workers\\\"],null]],[1,\\\":  \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,15],null,[[\\\"@options\\\",\\\"@selected\\\",\\\"@searchEnabled\\\",\\\"@placeholder\\\",\\\"@searchField\\\",\\\"@onChange\\\"],[[30,0,[\\\"model\\\",\\\"getWorkers\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"selectedWorkers\\\"]],true,\\\"–\\\",\\\"fullName\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"selectedWorkers\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[30,3,[\\\"fullName\\\"]]],[1,\\\"\\\\n          \\\"]],[3]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"selectedWorkers\\\",\\\"length\\\"]],[[[1,\\\"              \\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"removeAllWorkerFilters\\\"]]],null],[12],[1,\\\"\\\\n              \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\" \\\"],[1,[28,[35,8],[\\\"common.Remove filter\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[15,1,[30,0,[\\\"pdfExportTargetId\\\"]]],[14,0,\\\"container-sm p-0 m-0\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,18],null,[[\\\"@elements\\\",\\\"@hideClass\\\"],[[30,0,[\\\"model\\\",\\\"noteReport\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]],[30,0,[\\\"pdfExportHideClass\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"po\\\",\\\"project\\\",\\\"worker\\\"],false,[\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"div\\\",\\\"date-range-selector\\\",\\\"label\\\",\\\"power-select-multiple\\\",\\\"fn\\\",\\\"mut\\\",\\\"report-engine-element-container\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/company/notes.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/company/position\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t 'shared.reports.Position report')\n      }}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.entityLevelReport.last.value.name}}\n          </h2>\n        {{/if}}\n  \n        <div>\n          <SelectInput\n            @value={{this.status}}\n            @action={{fn (mut this.status)}}\n            @class='form-control select-box'\n            as |si|\n          >\n            <si.option @value='OPEN'>{{t 'common.Open projects'}}</si.option>\n            <si.option @value='ALL'>{{t 'common.All projects'}}</si.option>\n            <si.option @value='HELD'>{{t 'common.Held projects'}}</si.option>\n            <si.option @value='CLOSED'>{{t 'common.Closed projects'}}</si.option>\n            <si.option @value='ARCHIVED'>{{t\n                'common.Archived projects'\n              }}</si.option>\n          </SelectInput>\n        </div>\n        {{#if this.showDownloadButton}}\n          <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n            <button type='button' class='btn btn-secondary text-white m-1'>\n              {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n            </button>\n            <po.Content>\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAsPdf)}}\n                disabled={{this.downloadAsPdf.isRunning}}\n              >\n                {{#if this.downloadAsPdf.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download as PDF'}}\n                {{/if}}\n              </button>\n              {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n                <button\n                  type='button'\n                  class='dropdown-item text-nowrap fs-5'\n                  {{on 'click' (perform this.downloadAndSavePdf)}}\n                  disabled={{this.downloadAndSavePdf.isRunning}}\n                >\n                  {{#if this.downloadAndSavePdf.isRunning}}\n                    {{t 'common.Downloading'}}&hellip;\n                  {{else}}\n                    {{t 'shared.reports.Download and save PDF'}}\n                  {{/if}}\n                </button>\n              {{/if}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (fn (mut this.csvExportOptions) true)}}\n              >\n                {{t 'shared.reports.Download as CSV'}}\n              </button>\n            </po.Content>\n          </PopOver>\n        {{/if}}\n      </header>\n  \n      <div class='d-flex align-items-center my-3'>\n        <label class='d-flex align-items-center m-1'>\n          <LabelPopup\n            @text={{t\n              'shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications'\n            }}\n          >\n            {{t 'shared.reports.Report date'}}\n          </LabelPopup>\n          <input\n            class='form-control ms-1'\n            style='width: auto;'\n            placeholder={{t 'shared.reports.Pick a date'}}\n            type='date'\n            value={{this.selectedDate}}\n            {{on 'change' (perform this.onDateChange)}}\n          />\n        </label>\n      </div>\n      <div id={{this.pdfExportTargetId}}>\n        <ReportEngineElementContainer\n          @elements={{this.model.entityLevelReport.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  \n  {{#if this.csvExportOptions}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{this.closeCSVExport}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t 'shared.reports.selectTheReportsThatNeedToBeExportedBelow'}}\n        </p>\n        {{#each this.csvOptions as |option index|}}\n          <div class='form-check mb-1'>\n            <input\n              type='checkbox'\n              class='form-check-input'\n              name={{option.name}}\n              checked={{option.value}}\n              id={{index}}\n              {{on 'change' (fn this.toggleCsvOption index)}}\n            />\n            <label for={{index}}>{{option.name}}</label>\n          </div>\n        {{/each}}\n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' this.closeCSVExport}}\n        >\n          {{t 'common.Cancel'}}\n        </button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          disabled={{this.isExportDisabled}}\n          {{on\n            'click'\n            (pipe\n              (perform this.downloadAsCsv this.csvOptions false)\n              this.closeCSVExport\n            )\n          }}\n        >\n          {{t 'common.Export'}}\n        </button>\n        {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n          <button\n            type='button'\n            class='btn btn-primary'\n            disabled={{this.isExportDisabled}}\n            {{on\n              'click'\n              (pipe\n                (perform this.downloadAsCsv this.csvOptions true)\n                this.closeCSVExport\n              )\n            }}\n          >\n            {{#if this.downloadAndSaveCSV.isRunning}}\n              {{t 'common.Exporting'}}&hellip;\n            {{else}}\n              {{t 'shared.reports.Export and save CSV'}}\n            {{/if}}\n          </button>\n        {{/if}}\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"IFLa0rPE\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"shared.reports.Position report\\\"],null]]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,7],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"entityLevelReport\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[10,0],[12],[1,\\\"\\\\n        \\\"],[8,[39,11],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"status\\\"]],[28,[37,12],[[28,[37,13],[[30,0,[\\\"status\\\"]]],null]],null],\\\"form-control select-box\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"OPEN\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Open projects\\\"],null]]],[]]]]],[1,\\\"\\\\n          \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ALL\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.All projects\\\"],null]]],[]]]]],[1,\\\"\\\\n          \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"HELD\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Held projects\\\"],null]]],[]]]]],[1,\\\"\\\\n          \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"CLOSED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Closed projects\\\"],null]]],[]]]]],[1,\\\"\\\\n          \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ARCHIVED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Archived projects\\\"],null]]],[]]]]],[1,\\\"\\\\n        \\\"]],[1]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showDownloadButton\\\"]],[[[1,\\\"        \\\"],[8,[39,14],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[30,2,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[28,[37,18],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[28,[37,18],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                  \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[28,[35,4],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[28,[37,12],[[28,[37,13],[[30,0,[\\\"csvExportOptions\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[2]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"d-flex align-items-center m-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,20],null,[[\\\"@text\\\"],[[28,[37,4],[\\\"shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"shared.reports.Report date\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control ms-1\\\"],[24,5,\\\"width: auto;\\\"],[16,\\\"placeholder\\\",[28,[37,4],[\\\"shared.reports.Pick a date\\\"],null]],[16,2,[30,0,[\\\"selectedDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,17],[\\\"change\\\",[28,[37,18],[[30,0,[\\\"onDateChange\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[15,1,[30,0,[\\\"pdfExportTargetId\\\"]]],[12],[1,\\\"\\\\n      \\\"],[8,[39,22],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"entityLevelReport\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"csvExportOptions\\\"]],[[[1,\\\"  \\\"],[8,[39,23],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[30,0,[\\\"closeCSVExport\\\"]],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"shared.reports.selectTheReportsThatNeedToBeExportedBelow\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,26],[[28,[37,26],[[30,0,[\\\"csvOptions\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"form-check mb-1\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"input\\\"],[24,0,\\\"form-check-input\\\"],[16,3,[30,3,[\\\"name\\\"]]],[16,\\\"checked\\\",[30,3,[\\\"value\\\"]]],[16,1,[30,4]],[24,4,\\\"checkbox\\\"],[4,[38,17],[\\\"change\\\",[28,[37,12],[[30,0,[\\\"toggleCsvOption\\\"]],[30,4]],null]],null],[12],[13],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[15,\\\"for\\\",[30,4]],[12],[1,[30,3,[\\\"name\\\"]]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[3,4]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[30,0,[\\\"closeCSVExport\\\"]]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[28,[37,27],[[28,[37,18],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],false],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"common.Export\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[28,[37,27],[[28,[37,18],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],true],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSaveCSV\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,4],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,4],[\\\"shared.reports.Export and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"si\\\",\\\"po\\\",\\\"option\\\",\\\"index\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"header\\\",\\\"h2\\\",\\\"div\\\",\\\"select-input\\\",\\\"fn\\\",\\\"mut\\\",\\\"pop-over\\\",\\\"button\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"label\\\",\\\"label-popup\\\",\\\"input\\\",\\\"report-engine-element-container\\\",\\\"modal-dialog\\\",\\\"p\\\",\\\"each\\\",\\\"-track-array\\\",\\\"pipe\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/company/position.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/company/profit-margins\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t\n          'entity.builda-price.reports.company.profit-margins.Profit margin report'\n        )\n      }}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.profitMarginsTable.last.value.name}}</h2>\n        {{/if}}\n        {{#if this.showDownloadButton}}\n          <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n            <button type='button' class='btn btn-secondary text-white m-1'>\n              {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n            </button>\n            <po.Content>\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAsPdf)}}\n                disabled={{this.downloadAsPdf.isRunning}}\n              >\n                {{#if this.downloadAsPdf.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download as PDF'}}\n                {{/if}}\n              </button>\n              {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n                <button\n                  type='button'\n                  class='dropdown-item text-nowrap fs-5'\n                  {{on 'click' (perform this.downloadAndSavePdf)}}\n                  disabled={{this.downloadAndSavePdf.isRunning}}\n                >\n                  {{#if this.downloadAndSavePdf.isRunning}}\n                    {{t 'common.Downloading'}}&hellip;\n                  {{else}}\n                    {{t 'shared.reports.Download and save PDF'}}\n                  {{/if}}\n                </button>\n              {{/if}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAsCsv false)}}\n                disabled={{this.downloadAsCsv.isRunning}}\n              >\n                {{#if this.downloadAsCsv.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download as CSV'}}\n                {{/if}}\n              </button>\n              {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n                <button\n                  type='button'\n                  class='dropdown-item text-nowrap fs-5'\n                  {{on 'click' (perform this.downloadAsCsv true)}}\n                  disabled={{this.downloadAsCsv.isRunning}}\n                >\n                  {{#if this.downloadAsCsv.isRunning}}\n                    {{t 'common.Downloading'}}&hellip;\n                  {{else}}\n                    {{t 'shared.reports.Download and save CSV'}}\n                  {{/if}}\n                </button>\n              {{/if}}\n            </po.Content>\n          </PopOver>\n        {{/if}}\n      </header>\n      <div class='d-flex align-items-center my-3'>\n        <PopOver\n          @disableBlur={{true}}\n          @direction='bottom-right'\n          @disabled={{this.isLoading}}\n          as |po|\n        >\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Filters'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content class='py-3 px-3' style='width: 250px;'>\n            <label class='align-items-center'>\n              <LabelPopup\n                class='mb-1'\n                @text={{t\n                  'shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications'\n                }}\n              >\n                {{t 'shared.reports.Report date'}}\n              </LabelPopup>\n              <input\n                class='form-control w-100'\n                placeholder={{t 'shared.reports.Pick a date'}}\n                type='date'\n                value={{this.controllerDate}}\n                {{on 'change' this.onDateChange}}\n              />\n            </label>\n  \n            <div class='mt-2'>\n              <label class='no-wrap mb-1'>{{t 'common.Status'}}</label>\n              <SelectInput\n                @value={{this.controllerStatus}}\n                @action={{action 'filterStatus'}}\n                @class='form-control select-box w-100'\n                as |si|\n              >\n                <si.option @value='OPEN'>{{t 'common.Open projects'}}</si.option>\n                <si.option @value='ALL'>{{t 'common.All projects'}}</si.option>\n                <si.option @value='HELD'>{{t 'common.Held projects'}}</si.option>\n                <si.option @value='CLOSED'>{{t\n                    'common.Closed projects'\n                  }}</si.option>\n                <si.option @value='ARCHIVED'>{{t\n                    'common.Archived projects'\n                  }}</si.option>\n              </SelectInput>\n            </div>\n  \n            <div class='mt-2'>\n              <label class='no-wrap mb-1'>{{t\n                  'shared.reports.Exclude projects'\n                }}</label>\n              <PowerSelectMultiple\n                @options={{this.filteredProjects}}\n                @selected={{this.excludedProjects}}\n                @searchEnabled={{true}}\n                @searchField='name'\n                @placeholder={{t 'shared.reports.selectProjectsToExclude'}}\n                @renderInPlace={{true}}\n                @onChange={{fn (mut this.excludedProjects)}}\n                as |project|\n              >\n                {{project.name}}\n              </PowerSelectMultiple>\n            </div>\n  \n            <div class='text-right mt-3'>\n              <button\n                class='btn btn-primary'\n                {{on 'click' this.applyFilter}}\n                type='button'\n              >{{t 'common.Apply filters'}}</button>\n            </div>\n          </po.Content>\n        </PopOver>\n        {{#if this.hasFilters}}\n          <button\n            class='text-button ms-2'\n            type='button'\n            {{on 'click' this.removeFilter}}\n          >\n            <FaIcon @icon='times' />&nbsp;{{t 'common.Reset filters'}}\n          </button>\n        {{/if}}\n      </div>\n      <div id={{this.pdfExportTargetId}}>\n        <ReportEngineElementContainer\n          @elements={{this.model.profitMarginsTable.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"7rjJJWzR\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"entity.builda-price.reports.company.profit-margins.Profit margin report\\\"],null]]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,7],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"profitMarginsTable\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"showDownloadButton\\\"]],[[[1,\\\"        \\\"],[8,[39,10],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                  \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[28,[35,4],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"downloadAsCsv\\\"]],false],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"downloadAsCsv\\\"]],true],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"                  \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[28,[35,4],[\\\"shared.reports.Download and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[1]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,10],null,[[\\\"@disableBlur\\\",\\\"@direction\\\",\\\"@disabled\\\"],[true,\\\"bottom-right\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Filters\\\"],null]],[1,\\\"  \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,2,[\\\"Content\\\"]],[[24,0,\\\"py-3 px-3\\\"],[24,5,\\\"width: 250px;\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"align-items-center\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,17],[[24,0,\\\"mb-1\\\"]],[[\\\"@text\\\"],[[28,[37,4],[\\\"shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"shared.reports.Report date\\\"],null]],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n            \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control w-100\\\"],[16,\\\"placeholder\\\",[28,[37,4],[\\\"shared.reports.Pick a date\\\"],null]],[16,2,[30,0,[\\\"controllerDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,13],[\\\"change\\\",[30,0,[\\\"onDateChange\\\"]]],null],[12],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"mt-2\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"no-wrap mb-1\\\"],[12],[1,[28,[35,4],[\\\"common.Status\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[8,[39,19],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"controllerStatus\\\"]],[28,[37,20],[[30,0],\\\"filterStatus\\\"],null],\\\"form-control select-box w-100\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"OPEN\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Open projects\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ALL\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.All projects\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"HELD\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Held projects\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"CLOSED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Closed projects\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ARCHIVED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Archived projects\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"]],[3]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"mt-2\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"no-wrap mb-1\\\"],[12],[1,[28,[35,4],[\\\"shared.reports.Exclude projects\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[8,[39,21],null,[[\\\"@options\\\",\\\"@selected\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@renderInPlace\\\",\\\"@onChange\\\"],[[30,0,[\\\"filteredProjects\\\"]],[30,0,[\\\"excludedProjects\\\"]],true,\\\"name\\\",[28,[37,4],[\\\"shared.reports.selectProjectsToExclude\\\"],null],true,[28,[37,22],[[28,[37,23],[[30,0,[\\\"excludedProjects\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[1,[30,4,[\\\"name\\\"]]],[1,\\\"\\\\n            \\\"]],[4]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"text-right mt-3\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"applyFilter\\\"]]],null],[12],[1,[28,[35,4],[\\\"common.Apply filters\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[2]]]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"hasFilters\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button ms-2\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"removeFilter\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\" \\\"],[1,[28,[35,4],[\\\"common.Reset filters\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[15,1,[30,0,[\\\"pdfExportTargetId\\\"]]],[12],[1,\\\"\\\\n      \\\"],[8,[39,24],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"profitMarginsTable\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"po\\\",\\\"po\\\",\\\"si\\\",\\\"project\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"header\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"div\\\",\\\"label\\\",\\\"label-popup\\\",\\\"input\\\",\\\"select-input\\\",\\\"action\\\",\\\"power-select-multiple\\\",\\\"fn\\\",\\\"mut\\\",\\\"report-engine-element-container\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/company/profit-margins.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/company/wip\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t\n          'entity.builda-price.reports.company.wip.Work in progress report'\n        )\n      }}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.wipReportTable.last.value.name}}\n          </h2>\n        {{/if}}\n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n              disabled={{this.downloadAsPdf.isRunning}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as PDF'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAndSavePdf)}}\n                disabled={{this.downloadAndSavePdf.isRunning}}\n              >\n                {{#if this.downloadAndSavePdf.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save PDF'}}\n                {{/if}}\n              </button>\n            {{/if}}\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsCsv false)}}\n              disabled={{this.downloadAsCsv.isRunning}}\n            >\n              {{#if this.downloadAsCsv.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as CSV'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAsCsv true)}}\n                disabled={{this.downloadAsCsv.isRunning}}\n              >\n                {{#if this.downloadAsCsv.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save CSV'}}\n                {{/if}}\n              </button>\n            {{/if}}\n          </po.Content>\n        </PopOver>\n      </header>\n      <p>\n        {{t\n          'entity.builda-price.reports.company.wip.workInProgressReportExplanation'\n        }}\n      </p>\n      <div class='d-flex align-items-center my-3'>\n        <PopOver\n          @disableBlur={{true}}\n          @direction='bottom-right'\n          @disabled={{this.isLoading}}\n          as |po|\n        >\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Filters'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content class='py-3 px-3' style='width: 250px;'>\n            <div>\n              <label class='align-items-center mb-1'>\n                {{t 'entity.builda-price.reports.company.wip.Balance date'}}\n              </label>\n              <input\n                class='form-control w-100'\n                placeholder={{t 'shared.reports.Pick a date'}}\n                type='date'\n                value={{this.controllerDate}}\n                {{on 'change' this.onDateChange}}\n              />\n            </div>\n  \n            <div class='mt-2'>\n              <label class='no-wrap mb-1'>{{t 'common.Status'}}</label>\n              <SelectInput\n                @value={{this.controllerStatus}}\n                @action={{this.filterStatus}}\n                @class='form-control select-box w-100'\n                as |si|\n              >\n                <si.option @value='OPEN'>{{t 'common.Open projects'}}</si.option>\n                <si.option @value='ALL'>{{t 'common.All projects'}}</si.option>\n                <si.option @value='HELD'>{{t 'common.Held projects'}}</si.option>\n                <si.option @value='CLOSED'>{{t\n                    'common.Closed projects'\n                  }}</si.option>\n                <si.option @value='ARCHIVED'>{{t\n                    'common.Archived projects'\n                  }}</si.option>\n              </SelectInput>\n            </div>\n  \n            <div class='mt-2'>\n              <label class='no-wrap mb-1'>{{t\n                  'shared.reports.Exclude projects'\n                }}</label>\n              <PowerSelectMultiple\n                @options={{this.filteredProjects}}\n                @selected={{this.excludedProjects}}\n                @searchEnabled={{true}}\n                @searchField='name'\n                @placeholder={{t 'shared.reports.selectProjectsToExclude'}}\n                @renderInPlace={{true}}\n                @onChange={{fn (mut this.excludedProjects)}}\n                as |project|\n              >\n                {{project.name}}\n              </PowerSelectMultiple>\n            </div>\n  \n            <div class='text-right mt-3'>\n              <button\n                class='btn btn-primary'\n                {{on 'click' this.applyFilter}}\n                type='button'\n              >{{t 'common.Apply filters'}}</button>\n            </div>\n          </po.Content>\n        </PopOver>\n        {{#if this.hasFilters}}\n          <button\n            class='text-button ms-2'\n            type='button'\n            {{on 'click' this.removeFilter}}\n          >\n            <FaIcon @icon='times' />&nbsp;{{t 'common.Reset filters'}}\n          </button>\n        {{/if}}\n      </div>\n      <div id={{this.pdfExportTargetId}}>\n        <ReportEngineElementContainer\n          @elements={{this.model.wipReportTable.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"1l9XZja5\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"entity.builda-price.reports.company.wip.Work in progress report\\\"],null]]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,7],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"wipReportTable\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,10],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"downloadAsCsv\\\"]],false],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"downloadAsCsv\\\"]],true],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"shared.reports.Download and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,2],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,4],[\\\"entity.builda-price.reports.company.wip.workInProgressReportExplanation\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,10],null,[[\\\"@disableBlur\\\",\\\"@direction\\\",\\\"@disabled\\\"],[true,\\\"bottom-right\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Filters\\\"],null]],[1,\\\"  \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,2,[\\\"Content\\\"]],[[24,0,\\\"py-3 px-3\\\"],[24,5,\\\"width: 250px;\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[10,0],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"align-items-center mb-1\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.builda-price.reports.company.wip.Balance date\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control w-100\\\"],[16,\\\"placeholder\\\",[28,[37,4],[\\\"shared.reports.Pick a date\\\"],null]],[16,2,[30,0,[\\\"controllerDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,13],[\\\"change\\\",[30,0,[\\\"onDateChange\\\"]]],null],[12],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"mt-2\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"no-wrap mb-1\\\"],[12],[1,[28,[35,4],[\\\"common.Status\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[8,[39,19],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"controllerStatus\\\"]],[30,0,[\\\"filterStatus\\\"]],\\\"form-control select-box w-100\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"OPEN\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Open projects\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ALL\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.All projects\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"HELD\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Held projects\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"CLOSED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Closed projects\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ARCHIVED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Archived projects\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"]],[3]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"mt-2\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"no-wrap mb-1\\\"],[12],[1,[28,[35,4],[\\\"shared.reports.Exclude projects\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[8,[39,20],null,[[\\\"@options\\\",\\\"@selected\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@renderInPlace\\\",\\\"@onChange\\\"],[[30,0,[\\\"filteredProjects\\\"]],[30,0,[\\\"excludedProjects\\\"]],true,\\\"name\\\",[28,[37,4],[\\\"shared.reports.selectProjectsToExclude\\\"],null],true,[28,[37,21],[[28,[37,22],[[30,0,[\\\"excludedProjects\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[1,[30,4,[\\\"name\\\"]]],[1,\\\"\\\\n            \\\"]],[4]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"text-right mt-3\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"applyFilter\\\"]]],null],[12],[1,[28,[35,4],[\\\"common.Apply filters\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[2]]]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"hasFilters\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button ms-2\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"removeFilter\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\" \\\"],[1,[28,[35,4],[\\\"common.Reset filters\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[15,1,[30,0,[\\\"pdfExportTargetId\\\"]]],[12],[1,\\\"\\\\n      \\\"],[8,[39,23],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"wipReportTable\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"po\\\",\\\"po\\\",\\\"si\\\",\\\"project\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"header\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"p\\\",\\\"div\\\",\\\"label\\\",\\\"input\\\",\\\"select-input\\\",\\\"power-select-multiple\\\",\\\"fn\\\",\\\"mut\\\",\\\"report-engine-element-container\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/company/wip.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/projects\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if (media 'isDesktop')}}\n    {{outlet}}\n  {{else}}\n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component 'mobile-title-bar/burger-button'}}\n    />\n  \n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t 'common.Projects')\n      }}\n    />\n    {{outlet}}\n  {{/if}}\n  */\n  {\n    \"id\": \"c3peSh+m\",\n    \"block\": \"[[[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"  \\\"],[46,[28,[37,3],null,null],null,null,null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[8,[39,4],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/burger-button\\\",0,null,null]]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,4],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,5],[\\\"common.Projects\\\"],null]]]]]],null],[1,\\\"\\\\n  \\\"],[46,[28,[37,3],null,null],null,null,null],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"media\\\",\\\"component\\\",\\\"-outlet\\\",\\\"to-elsewhere\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/projects.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/projects/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <main class='page__container-content gap-zendesk-support-widget'>\n    <article class='m-4 flex-grow-1'>\n      <header class='border-bottom mb-3 pb-2 d-flex align-items-center'>\n        {{#if (media 'isDesktop')}}\n          <h1 class='flex-grow-1 m-0 my-2'>\n            {{t 'common.Projects'}}\n          </h1>\n        {{/if}}\n        <div class='d-flex align-items-center'>\n          <span class='m-1'>\n            <SelectInput\n              @value={{this.status}}\n              @action={{fn (mut this.status)}}\n              @class='form-control select-box'\n              data-test-project-status-filter\n              as |si|\n            >\n              <si.option @value='OPEN'>{{t 'common.Open projects'}}</si.option>\n              <si.option @value='ALL'>{{t 'common.All projects'}}</si.option>\n              <si.option @value='HELD'>{{t 'common.Held projects'}}</si.option>\n              <si.option @value='CLOSED'>{{t\n                  'common.Closed projects'\n                }}</si.option>\n              <si.option @value='ARCHIVED'>{{t\n                  'common.Archived projects'\n                }}</si.option>\n            </SelectInput>\n          </span>\n  \n          <span class='m-1'>\n            <Input\n              class='form-control'\n              placeholder={{t 'common.Search for projects'}}\n              aria-label='Search for projects'\n              @type='text'\n              @value={{this.searchString}}\n              data-test-project-search\n            />\n          </span>\n        </div>\n      </header>\n  \n      {{#if this.model.projectsData.isRunning}}\n        <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n      {{else}}\n        <ReportEngineElement @element={{this.projectsData}} class='p-0' />\n        {{#if (includes-feature-flags 'entityHasSubcontractorPackage')}}\n          <div class='mt-5 d-flex justify-content-center align-items-center'>\n            <p style='margin: 0; font-size: 14px;'>{{t\n                'shared.branding.Proudly powered by'\n              }}</p>\n            <img\n              style='margin-left: 10px; width: 180px;'\n              src={{this.attentionSafetyLogoSrc}}\n            />\n          </div>\n        {{/if}}\n      {{/if}}\n    </article>\n  </main>\n  */\n  {\n    \"id\": \"m0a4mQhT\",\n    \"block\": \"[[[10,\\\"main\\\"],[14,0,\\\"page__container-content gap-zendesk-support-widget\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"article\\\"],[14,0,\\\"m-4 flex-grow-1\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 pb-2 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h1\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"common.Projects\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,9],[[24,\\\"data-test-project-status-filter\\\",\\\"\\\"]],[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"status\\\"]],[28,[37,10],[[28,[37,11],[[30,0,[\\\"status\\\"]]],null]],null],\\\"form-control select-box\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"OPEN\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.Open projects\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ALL\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.All projects\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"HELD\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.Held projects\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"CLOSED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.Closed projects\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ARCHIVED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.Archived projects\\\"],null]]],[]]]]],[1,\\\"\\\\n          \\\"]],[1]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,12],[[24,0,\\\"form-control\\\"],[16,\\\"placeholder\\\",[28,[37,6],[\\\"common.Search for projects\\\"],null]],[24,\\\"aria-label\\\",\\\"Search for projects\\\"],[24,\\\"data-test-project-search\\\",\\\"\\\"]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"projectsData\\\",\\\"isRunning\\\"]],[[[1,\\\"      \\\"],[8,[39,13],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[8,[39,14],[[24,0,\\\"p-0\\\"]],[[\\\"@element\\\"],[[30,0,[\\\"projectsData\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,15],[\\\"entityHasSubcontractorPackage\\\"],null],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"mt-5 d-flex justify-content-center align-items-center\\\"],[12],[1,\\\"\\\\n          \\\"],[10,2],[14,5,\\\"margin: 0; font-size: 14px;\\\"],[12],[1,[28,[35,6],[\\\"shared.branding.Proudly powered by\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,\\\"img\\\"],[14,5,\\\"margin-left: 10px; width: 180px;\\\"],[15,\\\"src\\\",[30,0,[\\\"attentionSafetyLogoSrc\\\"]]],[12],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"si\\\"],false,[\\\"main\\\",\\\"article\\\",\\\"header\\\",\\\"if\\\",\\\"media\\\",\\\"h1\\\",\\\"t\\\",\\\"div\\\",\\\"span\\\",\\\"select-input\\\",\\\"fn\\\",\\\"mut\\\",\\\"input\\\",\\\"loading-icon\\\",\\\"report-engine-element\\\",\\\"includes-feature-flags\\\",\\\"p\\\",\\\"img\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/projects/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/projects/project\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if (media 'isDesktop')}}\n    <ModuleNavigation::Reports::Project\n      @selectedProject={{this.model.project.last.value}}\n      @openProjects={{this.model.openProjects.last.value}}\n      @selectedProjectIsLoading={{this.model.project.isRunning}}\n      @openProjectsIsLoading={{this.model.openProjects.isRunning}}\n    />\n    <main class='page__container-content gap-zendesk-support-widget'>\n      {{outlet}}\n    </main>\n  {{else}}\n    <ToElsewhere\n      @named='mobile-side-menu-content'\n      @send={{component\n        'module-navigation/reports/project'\n        model=this.model.project.last.value.id\n        selectedProject=this.model.project.last.value\n        openProjects=this.model.openProjects.last.value\n        selectedProjectIsLoading=this.model.project.isRunning\n        openProjectsIsLoading=this.model.openProjects.isRunning\n      }}\n    />\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title=(t 'common.Project')}}\n    />\n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component 'mobile-title-bar/burger-button'}}\n    />\n    <main class='page__container-content gap-zendesk-support-widget'>\n      {{outlet}}\n    </main>\n  {{/if}}\n  */\n  {\n    \"id\": \"doPK3UZ0\",\n    \"block\": \"[[[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@selectedProject\\\",\\\"@openProjects\\\",\\\"@selectedProjectIsLoading\\\",\\\"@openProjectsIsLoading\\\"],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"model\\\",\\\"openProjects\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"model\\\",\\\"project\\\",\\\"isRunning\\\"]],[30,0,[\\\"model\\\",\\\"openProjects\\\",\\\"isRunning\\\"]]]],null],[1,\\\"\\\\n  \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content gap-zendesk-support-widget\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,5],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[8,[39,6],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-side-menu-content\\\",[50,\\\"module-navigation/reports/project\\\",0,null,[[\\\"model\\\",\\\"selectedProject\\\",\\\"openProjects\\\",\\\"selectedProjectIsLoading\\\",\\\"openProjectsIsLoading\\\"],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"id\\\"]],[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"model\\\",\\\"openProjects\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"model\\\",\\\"project\\\",\\\"isRunning\\\"]],[30,0,[\\\"model\\\",\\\"openProjects\\\",\\\"isRunning\\\"]]]]]]],null],[1,\\\"\\\\n  \\\"],[8,[39,6],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,7],[\\\"common.Project\\\"],null]]]]]],null],[1,\\\"\\\\n  \\\"],[8,[39,6],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/burger-button\\\",0,null,null]]],null],[1,\\\"\\\\n  \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content gap-zendesk-support-widget\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,5],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"media\\\",\\\"module-navigation/reports/project\\\",\\\"main\\\",\\\"component\\\",\\\"-outlet\\\",\\\"to-elsewhere\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/projects/project.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/projects/project/access\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4 flex-grow-1'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.report.last.value.name}}\n          </h2>\n        {{/if}}\n  \n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button\n            type='button'\n            class='btn btn-secondary text-white m-1'\n            data-test-access-report-download\n          >\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n              disabled={{this.downloadAsPdf.isRunning}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.report.Download as PDF'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAndSavePdf)}}\n                disabled={{this.downloadAndSavePdf.isRunning}}\n              >\n                {{#if this.downloadAndSavePdf.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save PDF'}}\n                {{/if}}\n              </button>\n            {{/if}}\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsCsv)}}\n            >\n              {{t 'shared.report.Download as CSV'}}\n            </button>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsCsv true)}}\n            >\n              {{t 'shared.reports.Download and save CSV'}}\n            </button>\n          </po.Content>\n        </PopOver>\n      </header>\n  \n      <div class='d-flex flex-wrap gap-3 my-3'>\n        <div class='d-flex align-items-center'>\n          {{t 'common.Date range'}}:&nbsp;\n          <DateRangeSelector\n            @align='left'\n            @startDate={{this.dateRangeSelectorStartDate}}\n            @endDate={{this.dateRangeSelectorEndDate}}\n            @onApply={{this.setDateRange}}\n          />\n        </div>\n        <div class='d-flex align-items-center ms-2'>\n          <label>\n            <Input\n              @type='checkbox'\n              class='form-check-input ml-1 mb-1 mr-1'\n              @checked={{this.filterByDate}}\n              {{on 'click' (fn (mut this.filterByDate) (not this.filterByDate))}}\n            />\n            {{t 'common.Filter by date'}}\n          </label>\n        </div>\n        <div class='d-flex align-items-center'>\n          <label>{{t 'common.Selected workers'}}:&nbsp;&nbsp;</label>\n          <PowerSelectMultiple\n            @options={{this.model.workers.last.value}}\n            @selected={{this.selectedWorkers}}\n            @searchEnabled={{true}}\n            @searchField='fullName'\n            @placeholder='–'\n            @onChange={{fn (mut this.selectedWorkers)}}\n            as |worker|\n          >\n            {{worker.fullName}}\n          </PowerSelectMultiple>\n  \n          {{#if this.selectedWorkers.length}}\n            &nbsp;&nbsp;\n            <button\n              class='text-button'\n              type='button'\n              {{on 'click' this.removeAllWorkerFilters}}\n            >\n              <FaIcon @icon='times' />&nbsp;{{t 'common.Remove filter'}}\n            </button>\n          {{/if}}\n        </div>\n      </div>\n  \n      <div class='alert alert-secondary d-flex align-items-center' role='alert'>\n        <FaIcon @icon='info-circle' @size='lg' class='me-2' />\n        {{t\n          'entity.builda-price.reports.projects.project.access.accessReportDisclaimer'\n        }}\n      </div>\n  \n      <div id={{this.pdfExportTargetId}} class='container-sm p-0 m-0'>\n        <ReportEngineElementContainer\n          @elements={{this.model.report.last.value.elements}}\n          @hideClass={{this.pdfExportHideClass}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"zw5o6yS+\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4 flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"report\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[8,[39,6],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,\\\"data-test-access-report-download\\\",\\\"\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"shared.report.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsCsv\\\"]]],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,8],[\\\"shared.report.Download as CSV\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsCsv\\\"]],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,8],[\\\"shared.reports.Download and save CSV\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex flex-wrap gap-3 my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,8],[\\\"common.Date range\\\"],null]],[1,\\\": \\\\n        \\\"],[8,[39,13],null,[[\\\"@align\\\",\\\"@startDate\\\",\\\"@endDate\\\",\\\"@onApply\\\"],[\\\"left\\\",[30,0,[\\\"dateRangeSelectorStartDate\\\"]],[30,0,[\\\"dateRangeSelectorEndDate\\\"]],[30,0,[\\\"setDateRange\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center ms-2\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,15],[[24,0,\\\"form-check-input ml-1 mb-1 mr-1\\\"],[4,[38,10],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"filterByDate\\\"]]],null],[28,[37,18],[[30,0,[\\\"filterByDate\\\"]]],null]],null]],null]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"filterByDate\\\"]]]],null],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.Filter by date\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[12],[1,[28,[35,8],[\\\"common.Selected workers\\\"],null]],[1,\\\":  \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,19],null,[[\\\"@options\\\",\\\"@selected\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@onChange\\\"],[[30,0,[\\\"model\\\",\\\"workers\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"selectedWorkers\\\"]],true,\\\"fullName\\\",\\\"–\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"selectedWorkers\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[30,2,[\\\"fullName\\\"]]],[1,\\\"\\\\n        \\\"]],[2]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"selectedWorkers\\\",\\\"length\\\"]],[[[1,\\\"            \\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"removeAllWorkerFilters\\\"]]],null],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\" \\\"],[1,[28,[35,8],[\\\"common.Remove filter\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"alert alert-secondary d-flex align-items-center\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,9],[[24,0,\\\"me-2\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"info-circle\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n      \\\"],[1,[28,[35,8],[\\\"entity.builda-price.reports.projects.project.access.accessReportDisclaimer\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[15,1,[30,0,[\\\"pdfExportTargetId\\\"]]],[14,0,\\\"container-sm p-0 m-0\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,20],null,[[\\\"@elements\\\",\\\"@hideClass\\\"],[[30,0,[\\\"model\\\",\\\"report\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]],[30,0,[\\\"pdfExportHideClass\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"po\\\",\\\"worker\\\"],false,[\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"div\\\",\\\"date-range-selector\\\",\\\"label\\\",\\\"input\\\",\\\"fn\\\",\\\"mut\\\",\\\"not\\\",\\\"power-select-multiple\\\",\\\"report-engine-element-container\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/projects/project/access.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/projects/project/budget/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4 flex-grow-1'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.budgetTable.last.value.name}}\n          </h2>\n        {{/if}}\n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n              disabled={{this.downloadAsPdf.isRunning}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as PDF'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAndSavePdf)}}\n                disabled={{this.downloadAndSavePdf.isRunning}}\n              >\n                {{#if this.downloadAndSavePdf.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save PDF'}}\n                {{/if}}\n              </button>\n            {{/if}}\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (fn (mut this.csvExportOptions) true)}}\n            >\n              {{t 'shared.reports.Download as CSV'}}\n            </button>\n          </po.Content>\n        </PopOver>\n      </header>\n      <div class='d-flex align-items-center my-3'>\n        <label class='d-flex align-items-center m-1'>\n          <LabelPopup\n            @text={{t\n              'shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications'\n            }}\n          >\n            {{t 'shared.reports.Report date'}}\n          </LabelPopup>\n          <input\n            class='form-control ms-1'\n            style='width: auto;'\n            placeholder={{t 'shared.reports.Pick a date'}}\n            type='date'\n            value={{this.selectedDate}}\n            {{on 'change' (perform this.onDateChange)}}\n          />\n        </label>\n      </div>\n      <div id={{this.pdfExportTargetId}}>\n        <ReportEngineElementContainer\n          @elements={{this.model.budgetTable.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  \n  {{#if this.csvExportOptions}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{this.closeCSVExport}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t 'shared.reports.selectTheReportsThatNeedToBeExportedBelow'}}\n        </p>\n        {{#each this.csvOptions as |option index|}}\n          <div class='form-check mb-1'>\n            <input\n              type='checkbox'\n              class='form-check-input'\n              name={{option.name}}\n              checked={{option.value}}\n              id={{index}}\n              {{on 'change' (fn this.toggleCsvOption index)}}\n            />\n            <label for={{index}}>{{option.name}}</label>\n          </div>\n        {{/each}}\n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' this.closeCSVExport}}\n        >{{t 'common.Cancel'}}</button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          disabled={{this.isExportDisabled}}\n          {{on\n            'click'\n            (pipe\n              (perform this.downloadAsCsv this.csvOptions false)\n              this.closeCSVExport\n            )\n          }}\n        >\n          {{#if this.downloadAndSaveCSV.isRunning}}\n            {{t 'common.Exporting'}}&hellip;\n          {{else}}\n            {{t 'common.Export'}}\n          {{/if}}\n        </button>\n        {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n          <button\n            type='button'\n            class='btn btn-primary'\n            {{on\n              'click'\n              (pipe\n                (perform this.downloadAsCsv this.csvOptions true)\n                this.closeCSVExport\n              )\n            }}\n            disabled={{this.isExportDisabled}}\n          >\n            {{#if this.downloadAsCsv.isRunning}}\n              {{t 'common.Exporting'}}&hellip;\n            {{else}}\n              {{t 'shared.reports.Export and save CSV'}}\n            {{/if}}\n          </button>\n        {{/if}}\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"T639uE3Z\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4 flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"budgetTable\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,6],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,12],[[28,[37,13],[[30,0,[\\\"csvExportOptions\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,8],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"d-flex align-items-center m-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,16],null,[[\\\"@text\\\"],[[28,[37,8],[\\\"shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"shared.reports.Report date\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control ms-1\\\"],[24,5,\\\"width: auto;\\\"],[16,\\\"placeholder\\\",[28,[37,8],[\\\"shared.reports.Pick a date\\\"],null]],[16,2,[30,0,[\\\"selectedDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,10],[\\\"change\\\",[28,[37,11],[[30,0,[\\\"onDateChange\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[15,1,[30,0,[\\\"pdfExportTargetId\\\"]]],[12],[1,\\\"\\\\n      \\\"],[8,[39,18],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"budgetTable\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"csvExportOptions\\\"]],[[[1,\\\"  \\\"],[8,[39,19],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[30,0,[\\\"closeCSVExport\\\"]],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,8],[\\\"shared.reports.selectTheReportsThatNeedToBeExportedBelow\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,22],[[28,[37,22],[[30,0,[\\\"csvOptions\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"form-check mb-1\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"input\\\"],[24,0,\\\"form-check-input\\\"],[16,3,[30,2,[\\\"name\\\"]]],[16,\\\"checked\\\",[30,2,[\\\"value\\\"]]],[16,1,[30,3]],[24,4,\\\"checkbox\\\"],[4,[38,10],[\\\"change\\\",[28,[37,12],[[30,0,[\\\"toggleCsvOption\\\"]],[30,3]],null]],null],[12],[13],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[15,\\\"for\\\",[30,3]],[12],[1,[30,2,[\\\"name\\\"]]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[2,3]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"closeCSVExport\\\"]]],null],[12],[1,[28,[35,8],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,23],[[28,[37,11],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],false],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSaveCSV\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,8],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,8],[\\\"common.Export\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,23],[[28,[37,11],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],true],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,8],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,8],[\\\"shared.reports.Export and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"po\\\",\\\"option\\\",\\\"index\\\"],false,[\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"fn\\\",\\\"mut\\\",\\\"div\\\",\\\"label\\\",\\\"label-popup\\\",\\\"input\\\",\\\"report-engine-element-container\\\",\\\"modal-dialog\\\",\\\"p\\\",\\\"each\\\",\\\"-track-array\\\",\\\"pipe\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/projects/project/budget/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/projects/project/budget/task/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mb-2'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.budgetTable.last.value.name}}\n          </h2>\n        {{/if}}\n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n              disabled={{this.downloadAsPdf.isRunning}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as PDF'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAndSavePdf)}}\n                disabled={{this.downloadAndSavePdf.isRunning}}\n              >\n                {{#if this.downloadAndSavePdf.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save PDF'}}\n                {{/if}}\n              </button>\n            {{/if}}\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (fn (mut this.csvExportOptions) true)}}\n            >\n              {{t 'shared.reports.Download as CSV'}}\n            </button>\n          </po.Content>\n        </PopOver>\n      </header>\n  \n      <div class='d-flex align-items-center my-3'>\n        <label class='d-flex align-items-center m-1'>\n          <LabelPopup\n            @text={{t\n              'shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications'\n            }}\n          >\n            {{t 'shared.reports.Report date'}}\n          </LabelPopup>\n          <input\n            class='form-control ms-1'\n            style='width: auto;'\n            placeholder={{t 'shared.reports.Pick a date'}}\n            type='date'\n            value={{this.selectedDate}}\n            {{on 'change' (perform this.onDateChange)}}\n          />\n        </label>\n      </div>\n      <div id='{{this.pdfExportTargetId}}'>\n        <ReportEngineElementContainer\n          @elements={{this.model.budgetTable.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  \n  {{#if this.csvExportOptions}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{this.closeCSVExport}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t 'shared.reports.selectTheReportsThatNeedToBeExportedBelow'}}\n        </p>\n        {{#each this.csvOptions as |option index|}}\n          <div class='form-check mb-1'>\n            <input\n              type='checkbox'\n              class='form-check-input'\n              name={{option.name}}\n              checked={{option.value}}\n              id={{index}}\n              {{on 'change' (fn this.toggleCsvOption index)}}\n            />\n            <label for={{index}}>{{option.name}}</label>\n          </div>\n        {{/each}}\n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' this.closeCSVExport}}\n        >{{t 'common.Cancel'}}</button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          disabled={{this.isExportDisabled}}\n          {{on\n            'click'\n            (pipe\n              (perform this.downloadAsCsv this.csvOptions false)\n              this.closeCSVExport\n            )\n          }}\n        >\n          {{#if this.downloadAsCsv.isRunning}}\n            {{t 'common.Exporting'}}&hellip;\n          {{else}}\n            {{t 'common.Export'}}\n          {{/if}}\n        </button>\n        {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n          <button\n            type='button'\n            class='btn btn-primary'\n            {{on\n              'click'\n              (pipe\n                (perform this.downloadAsCsv this.csvOptions true)\n                this.closeCSVExport\n              )\n            }}\n            disabled={{this.isExportDisabled}}\n          >\n            {{#if this.downloadAsCsv.isRunning}}\n              {{t 'common.Exporting'}}&hellip;\n            {{else}}\n              {{t 'shared.reports.Export and save CSV'}}\n            {{/if}}\n          </button>\n        {{/if}}\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"9ialFKbd\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-2\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"budgetTable\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,8],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,10],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,10],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,10],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"csvExportOptions\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,10],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"d-flex align-items-center m-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,17],null,[[\\\"@text\\\"],[[28,[37,10],[\\\"shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,10],[\\\"shared.reports.Report date\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control ms-1\\\"],[24,5,\\\"width: auto;\\\"],[16,\\\"placeholder\\\",[28,[37,10],[\\\"shared.reports.Pick a date\\\"],null]],[16,2,[30,0,[\\\"selectedDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,12],[\\\"change\\\",[28,[37,13],[[30,0,[\\\"onDateChange\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[15,1,[29,[[30,0,[\\\"pdfExportTargetId\\\"]]]]],[12],[1,\\\"\\\\n      \\\"],[8,[39,19],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"budgetTable\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"csvExportOptions\\\"]],[[[1,\\\"  \\\"],[8,[39,20],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[30,0,[\\\"closeCSVExport\\\"]],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,10],[\\\"shared.reports.selectTheReportsThatNeedToBeExportedBelow\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,23],[[28,[37,23],[[30,0,[\\\"csvOptions\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"form-check mb-1\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"input\\\"],[24,0,\\\"form-check-input\\\"],[16,3,[30,2,[\\\"name\\\"]]],[16,\\\"checked\\\",[30,2,[\\\"value\\\"]]],[16,1,[30,3]],[24,4,\\\"checkbox\\\"],[4,[38,12],[\\\"change\\\",[28,[37,14],[[30,0,[\\\"toggleCsvOption\\\"]],[30,3]],null]],null],[12],[13],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[15,\\\"for\\\",[30,3]],[12],[1,[30,2,[\\\"name\\\"]]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[2,3]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[30,0,[\\\"closeCSVExport\\\"]]],null],[12],[1,[28,[35,10],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,24],[[28,[37,13],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],false],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,10],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,10],[\\\"common.Export\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,24],[[28,[37,13],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],true],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,10],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,10],[\\\"shared.reports.Export and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"po\\\",\\\"option\\\",\\\"index\\\"],false,[\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"page-title-breadcrumbs\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"fn\\\",\\\"mut\\\",\\\"label\\\",\\\"label-popup\\\",\\\"input\\\",\\\"report-engine-element-container\\\",\\\"modal-dialog\\\",\\\"p\\\",\\\"each\\\",\\\"-track-array\\\",\\\"pipe\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/projects/project/budget/task/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/projects/project/chargeup/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4 flex-grow-1'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.chargeupReport.last.value.name}}\n          </h2>\n        {{/if}}\n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n              disabled={{this.downloadAsPdf.isRunning}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as PDF'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAndSavePdf)}}\n                disabled={{this.downloadAndSavePdf.isRunning}}\n              >\n                {{#if this.downloadAndSavePdf.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save PDF'}}\n                {{/if}}\n              </button>\n            {{/if}}\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsCsv false)}}\n            >\n              {{#if this.downloadAsCsv.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as CSV'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAsCsv true)}}\n                disabled={{this.downloadAsCsv.isRunning}}\n              >\n                {{#if this.downloadAsCsv.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save CSV'}}\n                {{/if}}\n              </button>\n            {{/if}}\n          </po.Content>\n        </PopOver>\n      </header>\n      <div class='d-flex align-items-center my-3'>\n        <label class='d-flex align-items-center m-1'>\n          <LabelPopup\n            @text={{t\n              'shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications'\n            }}\n          >\n            {{t 'shared.reports.Report date'}}\n          </LabelPopup>\n          <input\n            class='form-control ms-1'\n            style='width: auto;'\n            placeholder={{t 'shared.reports.Pick a date'}}\n            type='date'\n            value={{this.selectedDate}}\n            {{on 'change' (perform this.onDateChange)}}\n          />\n        </label>\n      </div>\n      <div id={{this.pdfExportTargetId}}>\n        <ReportEngineElementContainer\n          @elements={{this.model.chargeupReport.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"iHNwd1iS\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4 flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"chargeupReport\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,6],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsCsv\\\"]],false],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsCsv\\\"]],true],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"shared.reports.Download and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"d-flex align-items-center m-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,14],null,[[\\\"@text\\\"],[[28,[37,8],[\\\"shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"shared.reports.Report date\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control ms-1\\\"],[24,5,\\\"width: auto;\\\"],[16,\\\"placeholder\\\",[28,[37,8],[\\\"shared.reports.Pick a date\\\"],null]],[16,2,[30,0,[\\\"selectedDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,10],[\\\"change\\\",[28,[37,11],[[30,0,[\\\"onDateChange\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[15,1,[30,0,[\\\"pdfExportTargetId\\\"]]],[12],[1,\\\"\\\\n      \\\"],[8,[39,16],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"chargeupReport\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"po\\\"],false,[\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"div\\\",\\\"label\\\",\\\"label-popup\\\",\\\"input\\\",\\\"report-engine-element-container\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/projects/project/chargeup/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/projects/project/chargeup/task/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mb-2'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.chargeupReport.last.value.name}}\n          </h2>\n        {{/if}}\n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n              disabled={{this.downloadAsPdf.isRunning}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as PDF'}}\n              {{/if}}\n            </button>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAndSavePdf)}}\n              disabled={{this.downloadAndSavePdf.isRunning}}\n            >\n              {{#if this.downloadAndSavePdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download and save PDF'}}\n              {{/if}}\n            </button>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsCsv false)}}\n            >\n              {{#if this.downloadAsCsv.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as CSV'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAsCsv true)}}\n                disabled={{this.downloadAsCsv.isRunning}}\n              >\n                {{#if this.downloadAsCsv.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save CSV'}}\n                {{/if}}\n              </button>\n            {{/if}}\n          </po.Content>\n        </PopOver>\n      </header>\n  \n      <div class='d-flex align-items-center my-3'>\n        <label class='d-flex align-items-center m-1'>\n          <LabelPopup\n            @text={{t\n              'shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications'\n            }}\n          >\n            {{t 'shared.reports.Report date'}}\n          </LabelPopup>\n          <input\n            class='form-control ms-1'\n            style='width: auto;'\n            placeholder={{t 'shared.reports.Pick a date'}}\n            type='date'\n            value={{this.selectedDate}}\n            {{on 'change' (perform this.onDateChange)}}\n          />\n        </label>\n      </div>\n      <div id='{{this.pdfExportTargetId}}'>\n        <ReportEngineElementContainer\n          @elements={{this.model.chargeupReport.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"B72Ahjhu\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-2\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"chargeupReport\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,8],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,10],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"downloadAsCsv\\\"]],false],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"downloadAsCsv\\\"]],true],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,10],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,10],[\\\"shared.reports.Download and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"d-flex align-items-center m-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,15],null,[[\\\"@text\\\"],[[28,[37,10],[\\\"shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,10],[\\\"shared.reports.Report date\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control ms-1\\\"],[24,5,\\\"width: auto;\\\"],[16,\\\"placeholder\\\",[28,[37,10],[\\\"shared.reports.Pick a date\\\"],null]],[16,2,[30,0,[\\\"selectedDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,12],[\\\"change\\\",[28,[37,13],[[30,0,[\\\"onDateChange\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[15,1,[29,[[30,0,[\\\"pdfExportTargetId\\\"]]]]],[12],[1,\\\"\\\\n      \\\"],[8,[39,17],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"chargeupReport\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"po\\\"],false,[\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"page-title-breadcrumbs\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"label\\\",\\\"label-popup\\\",\\\"input\\\",\\\"report-engine-element-container\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/projects/project/chargeup/task/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/projects/project/cost-to-complete/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.projectLevelReport.last.value.name}}\n          </h2>\n        {{/if}}\n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n              disabled={{this.downloadAsPdf.isRunning}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as PDF'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAndSavePdf)}}\n                disabled={{this.downloadAndSavePdf.isRunning}}\n              >\n                {{#if this.downloadAndSavePdf.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save PDF'}}\n                {{/if}}\n              </button>\n            {{/if}}\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (fn (mut this.csvExportOptions) true)}}\n            >\n              {{t 'shared.reports.Download as CSV'}}\n            </button>\n          </po.Content>\n        </PopOver>\n      </header>\n  \n      <div class='d-flex align-items-center my-3'>\n        <label class='d-flex align-items-center m-1'>\n          <LabelPopup\n            @text={{t\n              'shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications'\n            }}\n          >\n            {{t 'shared.reports.Report date'}}\n          </LabelPopup>\n          <input\n            class='form-control ms-1'\n            style='width: auto;'\n            placeholder={{t 'shared.reports.Pick a date'}}\n            type='date'\n            value={{this.selectedDate}}\n            {{on 'change' (perform this.onDateChange)}}\n          />\n        </label>\n      </div>\n      <div id={{this.pdfExportTargetId}}>\n        <div class='alert alert-secondary mb-3' role='alert'>\n          <FaIcon @icon='info-circle' @size='lg' class='me-2' />\n          <span>\n            {{t\n              'entity.builda-price.reports.projects.project.cost-to-complete.Values are GST exclusive'\n            }}\n          </span>\n        </div>\n        <ReportEngineElementContainer\n          @elements={{this.model.projectLevelReport.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  {{#if this.csvExportOptions}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{this.closeCSVExport}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t 'shared.reports.selectTheReportsThatNeedToBeExportedBelow'}}\n        </p>\n        {{#each this.csvOptions as |option index|}}\n          <div class='form-check mb-1'>\n            <input\n              type='checkbox'\n              class='form-check-input'\n              name={{option.name}}\n              checked={{option.value}}\n              id={{index}}\n              {{on 'change' (fn this.toggleCsvOption index)}}\n            />\n            <label for={{index}}>{{option.name}}</label>\n          </div>\n        {{/each}}\n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' this.closeCSVExport}}\n        >{{t 'common.Cancel'}}</button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          disabled={{this.isExportDisabled}}\n          {{on\n            'click'\n            (pipe\n              (perform this.downloadAsCsv this.csvOptions false)\n              this.closeCSVExport\n            )\n          }}\n        >\n          {{#if this.downloadAsCsv.isRunning}}\n            {{t 'common.Exporting'}}&hellip;\n          {{else}}\n            {{t 'common.Export'}}\n          {{/if}}\n        </button>\n        {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n          <button\n            type='button'\n            class='btn btn-primary'\n            {{on\n              'click'\n              (pipe\n                (perform this.downloadAsCsv this.csvOptions true)\n                this.closeCSVExport\n              )\n            }}\n            disabled={{this.isExportDisabled}}\n          >\n            {{#if this.downloadAsCsv.isRunning}}\n              {{t 'common.Exporting'}}&hellip;\n            {{else}}\n              {{t 'shared.reports.Export and save CSV'}}\n            {{/if}}\n          </button>\n        {{/if}}\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"1dx7/mEh\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"projectLevelReport\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,6],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,12],[[28,[37,13],[[30,0,[\\\"csvExportOptions\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,8],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"d-flex align-items-center m-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,16],null,[[\\\"@text\\\"],[[28,[37,8],[\\\"shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"shared.reports.Report date\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control ms-1\\\"],[24,5,\\\"width: auto;\\\"],[16,\\\"placeholder\\\",[28,[37,8],[\\\"shared.reports.Pick a date\\\"],null]],[16,2,[30,0,[\\\"selectedDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,10],[\\\"change\\\",[28,[37,11],[[30,0,[\\\"onDateChange\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[15,1,[30,0,[\\\"pdfExportTargetId\\\"]]],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"alert alert-secondary mb-3\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,9],[[24,0,\\\"me-2\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"info-circle\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n        \\\"],[10,1],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"entity.builda-price.reports.projects.project.cost-to-complete.Values are GST exclusive\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,19],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"projectLevelReport\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"csvExportOptions\\\"]],[[[1,\\\"  \\\"],[8,[39,20],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[30,0,[\\\"closeCSVExport\\\"]],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,8],[\\\"shared.reports.selectTheReportsThatNeedToBeExportedBelow\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,23],[[28,[37,23],[[30,0,[\\\"csvOptions\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"form-check mb-1\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"input\\\"],[24,0,\\\"form-check-input\\\"],[16,3,[30,2,[\\\"name\\\"]]],[16,\\\"checked\\\",[30,2,[\\\"value\\\"]]],[16,1,[30,3]],[24,4,\\\"checkbox\\\"],[4,[38,10],[\\\"change\\\",[28,[37,12],[[30,0,[\\\"toggleCsvOption\\\"]],[30,3]],null]],null],[12],[13],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[15,\\\"for\\\",[30,3]],[12],[1,[30,2,[\\\"name\\\"]]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[2,3]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"closeCSVExport\\\"]]],null],[12],[1,[28,[35,8],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,24],[[28,[37,11],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],false],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,8],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,8],[\\\"common.Export\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,24],[[28,[37,11],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],true],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,8],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,8],[\\\"shared.reports.Export and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"po\\\",\\\"option\\\",\\\"index\\\"],false,[\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"fn\\\",\\\"mut\\\",\\\"div\\\",\\\"label\\\",\\\"label-popup\\\",\\\"input\\\",\\\"span\\\",\\\"report-engine-element-container\\\",\\\"modal-dialog\\\",\\\"p\\\",\\\"each\\\",\\\"-track-array\\\",\\\"pipe\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/projects/project/cost-to-complete/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/projects/project/cost-to-complete/task/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mb-2'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.taskLevelReport.last.value.name}}\n          </h2>\n        {{/if}}\n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n              disabled={{this.downloadAsPdf.isRunning}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as PDF'}}\n              {{/if}}\n            </button>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAndSavePdf)}}\n              disabled={{this.downloadAndSavePdf.isRunning}}\n            >\n              {{#if this.downloadAndSavePdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download and save PDF'}}\n              {{/if}}\n            </button>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (fn (mut this.csvExportOptions) true)}}\n            >\n              {{t 'shared.reports.Download as CSV'}}\n            </button>\n          </po.Content>\n        </PopOver>\n      </header>\n  \n      <div class='d-flex align-items-center my-3'>\n        <label class='d-flex align-items-center m-1'>\n          <LabelPopup\n            @text={{t\n              'shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications'\n            }}\n          >\n            {{t 'shared.reports.Report date'}}\n          </LabelPopup>\n          <input\n            class='form-control ms-1'\n            style='width: auto;'\n            placeholder={{t 'shared.reports.Pick a date'}}\n            type='date'\n            value={{this.selectedDate}}\n            {{on 'change' (perform this.onDateChange)}}\n          />\n        </label>\n      </div>\n      <div id='{{this.pdfExportTargetId}}'>\n        <div class='alert alert-secondary mb-3' role='alert'>\n          <FaIcon @icon='info-circle' @size='lg' class='me-2' />\n          <span>{{t\n              'entity.builda-price.reports.projects.project.cost-to-complete.Values are GST exclusive'\n            }}</span>\n        </div>\n        <ReportEngineElementContainer\n          @elements={{this.model.taskLevelReport.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  {{#if this.csvExportOptions}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{this.closeCSVExport}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t 'shared.reports.selectTheReportsThatNeedToBeExportedBelow'}}\n        </p>\n        {{#each this.csvOptions as |option index|}}\n          <div class='form-check mb-1'>\n            <input\n              type='checkbox'\n              class='form-check-input'\n              name={{option.name}}\n              checked={{option.value}}\n              id={{index}}\n              {{on 'change' (fn this.toggleCsvOption index)}}\n            />\n            <label for={{index}}>{{option.name}}</label>\n          </div>\n        {{/each}}\n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' this.closeCSVExport}}\n        >{{t 'common.Cancel'}}</button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          disabled={{this.isExportDisabled}}\n          {{on\n            'click'\n            (pipe\n              (perform this.downloadAsCsv this.csvOptions false)\n              this.closeCSVExport\n            )\n          }}\n        >\n          {{#if this.downloadAsCsv.isRunning}}\n            {{t 'common.Exporting'}}&hellip;\n          {{else}}\n            {{t 'common.Export'}}\n          {{/if}}\n        </button>\n        {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n          <button\n            type='button'\n            class='btn btn-primary'\n            {{on\n              'click'\n              (pipe\n                (perform this.downloadAsCsv this.csvOptions true)\n                this.closeCSVExport\n              )\n            }}\n            disabled={{this.isExportDisabled}}\n          >\n            {{#if this.downloadAsCsv.isRunning}}\n              {{t 'common.Exporting'}}&hellip;\n            {{else}}\n              {{t 'shared.reports.Export and save CSV'}}\n            {{/if}}\n          </button>\n        {{/if}}\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"z99wAMt0\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-2\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"taskLevelReport\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,8],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,10],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"csvExportOptions\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,10],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"d-flex align-items-center m-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,17],null,[[\\\"@text\\\"],[[28,[37,10],[\\\"shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,10],[\\\"shared.reports.Report date\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control ms-1\\\"],[24,5,\\\"width: auto;\\\"],[16,\\\"placeholder\\\",[28,[37,10],[\\\"shared.reports.Pick a date\\\"],null]],[16,2,[30,0,[\\\"selectedDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,12],[\\\"change\\\",[28,[37,13],[[30,0,[\\\"onDateChange\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[15,1,[29,[[30,0,[\\\"pdfExportTargetId\\\"]]]]],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"alert alert-secondary mb-3\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,11],[[24,0,\\\"me-2\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"info-circle\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n        \\\"],[10,1],[12],[1,[28,[35,10],[\\\"entity.builda-price.reports.projects.project.cost-to-complete.Values are GST exclusive\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,20],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"taskLevelReport\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"csvExportOptions\\\"]],[[[1,\\\"  \\\"],[8,[39,21],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[30,0,[\\\"closeCSVExport\\\"]],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,10],[\\\"shared.reports.selectTheReportsThatNeedToBeExportedBelow\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,24],[[28,[37,24],[[30,0,[\\\"csvOptions\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"form-check mb-1\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"input\\\"],[24,0,\\\"form-check-input\\\"],[16,3,[30,2,[\\\"name\\\"]]],[16,\\\"checked\\\",[30,2,[\\\"value\\\"]]],[16,1,[30,3]],[24,4,\\\"checkbox\\\"],[4,[38,12],[\\\"change\\\",[28,[37,14],[[30,0,[\\\"toggleCsvOption\\\"]],[30,3]],null]],null],[12],[13],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[15,\\\"for\\\",[30,3]],[12],[1,[30,2,[\\\"name\\\"]]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[2,3]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[30,0,[\\\"closeCSVExport\\\"]]],null],[12],[1,[28,[35,10],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,25],[[28,[37,13],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],false],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,10],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,10],[\\\"common.Export\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,25],[[28,[37,13],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],true],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,10],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,10],[\\\"shared.reports.Export and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"po\\\",\\\"option\\\",\\\"index\\\"],false,[\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"page-title-breadcrumbs\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"fn\\\",\\\"mut\\\",\\\"label\\\",\\\"label-popup\\\",\\\"input\\\",\\\"span\\\",\\\"report-engine-element-container\\\",\\\"modal-dialog\\\",\\\"p\\\",\\\"each\\\",\\\"-track-array\\\",\\\"pipe\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/projects/project/cost-to-complete/task/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/projects/project/cost\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4 flex-grow-1'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.costTable.last.value.name}}\n          </h2>\n        {{/if}}\n        <div>\n          <SelectInput\n            @value={{this.costType}}\n            @action={{this.setCostType}}\n            @class='form-control select-box'\n            as |si|\n          >\n            <si.option @value='TIMESHEETS'>{{t 'common.Timesheets'}}</si.option>\n            <si.option @value='BILLS'>{{t 'common.Bills'}}</si.option>\n            <si.option @value='ALL'>{{t 'common.All'}}</si.option>\n          </SelectInput>\n        </div>\n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n              disabled={{this.downloadAsPdf.isRunning}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as PDF'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAndSavePdf)}}\n                disabled={{this.downloadAndSavePdf.isRunning}}\n              >\n                {{#if this.downloadAndSavePdf.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save PDF'}}\n                {{/if}}\n              </button>\n            {{/if}}\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (fn (mut this.csvExportOptions) true)}}\n            >\n              {{t 'shared.reports.Download as CSV'}}\n            </button>\n          </po.Content>\n        </PopOver>\n      </header>\n      <div class='d-flex my-3'>\n        <div class='d-flex align-items-center'>\n          {{t 'common.Date range'}}:&nbsp;\n          <DateRangeSelector\n            @align='left'\n            @startDate={{this.dateRangeSelectorStartDate}}\n            @endDate={{this.dateRangeSelectorEndDate}}\n            @onApply={{this.setDateRange}}\n          />\n        </div>\n        <div class='d-flex align-items-center ms-2'>\n          <label>\n            <Input\n              @type='checkbox'\n              class='form-check-input ms-1 mb-1 me-1'\n              @checked={{this.filterByDate}}\n              {{on 'click' this.setFilterByDate}}\n            />\n            {{t 'common.Filter by date'}}\n          </label>\n        </div>\n        <div class='d-flex align-items-center'>\n          <label>&nbsp;&nbsp;&nbsp;&nbsp;{{t\n              'common.Selected tasks'\n            }}:&nbsp;&nbsp;</label>\n          <MultiTaskSelectorInput\n            @showTaskPopUp={{this.showTaskPopUp}}\n            @selectedProject={{this.model.project.last.value}}\n            @selectedTasks={{this.selectedTasks}}\n            @setSelectedTasks={{this.setSelectedTasks}}\n            @removeSelectedTask={{this.removeSelectedTask}}\n          />\n          {{#if this.selectedTasks.length}}\n            &nbsp;&nbsp;\n            <button\n              class='text-button'\n              type='button'\n              {{on 'click' this.removeAllTaskFilters}}\n            >\n              <FaIcon @icon='times' />&nbsp;{{t 'common.Remove filter'}}\n            </button>\n          {{/if}}\n          {{#if this.showAllocationTypeFilter}}\n            <div class='ms-2'>\n              <FilterPill {{on 'click' (fn (mut this.allocationType) null)}}>\n                {{t 'common.Allocation type'}}:\n                {{this.allocationTypeLabel}}\n              </FilterPill>\n            </div>\n          {{/if}}\n        </div>\n      </div>\n  \n      <div id={{this.pdfExportTargetId}}>\n        <ReportEngineElementContainer\n          @elements={{this.model.costTable.last.value.elements}}\n          @hideClass={{this.pdfExportHideClass}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  \n  {{#if this.csvExportOptions}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{this.closeCSVExport}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t 'shared.reports.selectTheReportsThatNeedToBeExportedBelow'}}\n        </p>\n        {{#each this.csvOptions as |option index|}}\n          <div class='form-check mb-1'>\n            <input\n              type='checkbox'\n              class='form-check-input'\n              name={{option.name}}\n              checked={{option.value}}\n              id={{index}}\n              {{on 'change' (fn this.toggleCsvOption index)}}\n            />\n            <label for={{index}}>{{option.name}}</label>\n          </div>\n        {{/each}}\n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' this.closeCSVExport}}\n        >{{t 'common.Cancel'}}</button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          disabled={{this.isExportDisabled}}\n          {{on\n            'click'\n            (pipe\n              (perform this.downloadAsCsv this.csvOptions false)\n              this.closeCSVExport\n            )\n          }}\n        >\n          {{#if this.downloadAsCsv.isRunning}}\n            {{t 'common.Exporting'}}&hellip;\n          {{else}}\n            {{t 'common.Export'}}\n          {{/if}}\n        </button>\n        {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n          <button\n            type='button'\n            class='btn btn-primary'\n            {{on\n              'click'\n              (pipe\n                (perform this.downloadAsCsv this.csvOptions true)\n                this.closeCSVExport\n              )\n            }}\n            disabled={{this.isExportDisabled}}\n          >\n            {{#if this.downloadAsCsv.isRunning}}\n              {{t 'common.Exporting'}}&hellip;\n            {{else}}\n              {{t 'shared.reports.Export and save CSV'}}\n            {{/if}}\n          </button>\n        {{/if}}\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"oKkJZMkU\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4 flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"costTable\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[10,0],[12],[1,\\\"\\\\n        \\\"],[8,[39,7],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"costType\\\"]],[30,0,[\\\"setCostType\\\"]],\\\"form-control select-box\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"TIMESHEETS\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,8],[\\\"common.Timesheets\\\"],null]]],[]]]]],[1,\\\"\\\\n          \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"BILLS\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,8],[\\\"common.Bills\\\"],null]]],[]]]]],[1,\\\"\\\\n          \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ALL\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,8],[\\\"common.All\\\"],null]]],[]]]]],[1,\\\"\\\\n        \\\"]],[1]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,9],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.Download\\\"],null]],[1,\\\" \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,2,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"csvExportOptions\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,8],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[2]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,8],[\\\"common.Date range\\\"],null]],[1,\\\": \\\\n        \\\"],[8,[39,16],null,[[\\\"@align\\\",\\\"@startDate\\\",\\\"@endDate\\\",\\\"@onApply\\\"],[\\\"left\\\",[30,0,[\\\"dateRangeSelectorStartDate\\\"]],[30,0,[\\\"dateRangeSelectorEndDate\\\"]],[30,0,[\\\"setDateRange\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center ms-2\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,18],[[24,0,\\\"form-check-input ms-1 mb-1 me-1\\\"],[4,[38,12],[\\\"click\\\",[30,0,[\\\"setFilterByDate\\\"]]],null]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"filterByDate\\\"]]]],null],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.Filter by date\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[12],[1,\\\"    \\\"],[1,[28,[35,8],[\\\"common.Selected tasks\\\"],null]],[1,\\\":  \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,19],null,[[\\\"@showTaskPopUp\\\",\\\"@selectedProject\\\",\\\"@selectedTasks\\\",\\\"@setSelectedTasks\\\",\\\"@removeSelectedTask\\\"],[[30,0,[\\\"showTaskPopUp\\\"]],[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"selectedTasks\\\"]],[30,0,[\\\"setSelectedTasks\\\"]],[30,0,[\\\"removeSelectedTask\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"selectedTasks\\\",\\\"length\\\"]],[[[1,\\\"            \\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[30,0,[\\\"removeAllTaskFilters\\\"]]],null],[12],[1,\\\"\\\\n            \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\" \\\"],[1,[28,[35,8],[\\\"common.Remove filter\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"showAllocationTypeFilter\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"ms-2\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,20],[[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"allocationType\\\"]]],null],null],null]],null]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[1,[28,[35,8],[\\\"common.Allocation type\\\"],null]],[1,\\\":\\\\n              \\\"],[1,[30,0,[\\\"allocationTypeLabel\\\"]]],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[15,1,[30,0,[\\\"pdfExportTargetId\\\"]]],[12],[1,\\\"\\\\n      \\\"],[8,[39,21],null,[[\\\"@elements\\\",\\\"@hideClass\\\"],[[30,0,[\\\"model\\\",\\\"costTable\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]],[30,0,[\\\"pdfExportHideClass\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"csvExportOptions\\\"]],[[[1,\\\"  \\\"],[8,[39,22],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[30,0,[\\\"closeCSVExport\\\"]],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,8],[\\\"shared.reports.selectTheReportsThatNeedToBeExportedBelow\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,25],[[28,[37,25],[[30,0,[\\\"csvOptions\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"form-check mb-1\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"input\\\"],[24,0,\\\"form-check-input\\\"],[16,3,[30,3,[\\\"name\\\"]]],[16,\\\"checked\\\",[30,3,[\\\"value\\\"]]],[16,1,[30,4]],[24,4,\\\"checkbox\\\"],[4,[38,12],[\\\"change\\\",[28,[37,14],[[30,0,[\\\"toggleCsvOption\\\"]],[30,4]],null]],null],[12],[13],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[15,\\\"for\\\",[30,4]],[12],[1,[30,3,[\\\"name\\\"]]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[3,4]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[30,0,[\\\"closeCSVExport\\\"]]],null],[12],[1,[28,[35,8],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,26],[[28,[37,13],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],false],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,8],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,8],[\\\"common.Export\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,26],[[28,[37,13],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],true],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,8],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,8],[\\\"shared.reports.Export and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"si\\\",\\\"po\\\",\\\"option\\\",\\\"index\\\"],false,[\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"div\\\",\\\"select-input\\\",\\\"t\\\",\\\"pop-over\\\",\\\"button\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"fn\\\",\\\"mut\\\",\\\"date-range-selector\\\",\\\"label\\\",\\\"input\\\",\\\"multi-task-selector-input\\\",\\\"filter-pill\\\",\\\"report-engine-element-container\\\",\\\"modal-dialog\\\",\\\"p\\\",\\\"each\\\",\\\"-track-array\\\",\\\"pipe\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/projects/project/cost.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/projects/project/forecast-breakdown/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.forecastTable.last.value.name}}\n          </h2>\n        {{/if}}\n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n              disabled={{this.downloadAsPdf.isRunning}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as PDF'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAndSavePdf)}}\n                disabled={{this.downloadAndSavePdf.isRunning}}\n              >\n                {{#if this.downloadAndSavePdf.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save PDF'}}\n                {{/if}}\n              </button>\n            {{/if}}\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsCsv false)}}\n            >\n              {{#if this.downloadAsCsv.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as CSV'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAsCsv true)}}\n                disabled={{this.downloadAsCsv.isRunning}}\n              >\n                {{#if this.downloadAsCsv.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save CSV'}}\n                {{/if}}\n              </button>\n            {{/if}}\n          </po.Content>\n        </PopOver>\n      </header>\n      <p>\n        {{t 'shared.reports.forecastBreakdownReportExplanation'}}\n      </p>\n      <div class='d-flex align-items-center my-3'>\n        <label class='d-flex align-items-center m-1'>\n          <LabelPopup\n            @text={{t\n              'shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications'\n            }}\n          >\n            {{t 'shared.reports.Report date'}}\n          </LabelPopup>\n          <input\n            class='form-control ms-1'\n            style='width: auto;'\n            placeholder={{t 'shared.reports.Pick a date'}}\n            type='date'\n            value={{this.selectedDate}}\n            {{on 'change' (perform this.onDateChange)}}\n          />\n        </label>\n      </div>\n  \n      <div id={{this.pdfExportTargetId}}>\n        <ReportEngineElementContainer\n          @elements={{this.model.forecastTable.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"VwH6ERFp\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"forecastTable\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,6],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsCsv\\\"]],false],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsCsv\\\"]],true],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"shared.reports.Download and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,2],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,8],[\\\"shared.reports.forecastBreakdownReportExplanation\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"d-flex align-items-center m-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,15],null,[[\\\"@text\\\"],[[28,[37,8],[\\\"shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"shared.reports.Report date\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control ms-1\\\"],[24,5,\\\"width: auto;\\\"],[16,\\\"placeholder\\\",[28,[37,8],[\\\"shared.reports.Pick a date\\\"],null]],[16,2,[30,0,[\\\"selectedDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,10],[\\\"change\\\",[28,[37,11],[[30,0,[\\\"onDateChange\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[15,1,[30,0,[\\\"pdfExportTargetId\\\"]]],[12],[1,\\\"\\\\n      \\\"],[8,[39,17],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"forecastTable\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"po\\\"],false,[\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"p\\\",\\\"div\\\",\\\"label\\\",\\\"label-popup\\\",\\\"input\\\",\\\"report-engine-element-container\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/projects/project/forecast-breakdown/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/projects/project/forecast-breakdown/task/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t 'shared.reports.Position report')\n      }}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mb-2'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.forecastTable.last.value.name}}\n          </h2>\n        {{/if}}\n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n              disabled={{this.downloadAsPdf.isRunning}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as PDF'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAndSavePdf)}}\n                disabled={{this.downloadAndSavePdf.isRunning}}\n              >\n                {{#if this.downloadAndSavePdf.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save PDF'}}\n                {{/if}}\n              </button>\n            {{/if}}\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsCsv false)}}\n            >\n              {{#if this.downloadAsCsv.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as CSV'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAsCsv true)}}\n                disabled={{this.downloadAsCsv.isRunning}}\n              >\n                {{#if this.downloadAsCsv.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save CSV'}}\n                {{/if}}\n              </button>\n            {{/if}}\n          </po.Content>\n        </PopOver>\n      </header>\n      <p>\n        {{t 'shared.reports.forecastBreakdownReportExplanation'}}\n      </p>\n      <div class='d-flex align-items-center my-3'>\n        <label class='d-flex align-items-center m-1'>\n          <LabelPopup\n            @text={{t\n              'shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications'\n            }}\n          >\n            {{t 'shared.reports.Report date'}}\n          </LabelPopup>\n          <input\n            class='form-control ms-1'\n            style='width: auto;'\n            placeholder={{t 'shared.reports.Pick a date'}}\n            type='date'\n            value={{this.selectedDate}}\n            {{on 'change' (perform this.onDateChange)}}\n          />\n        </label>\n      </div>\n      <div id='{{this.pdfExportTargetId}}'>\n        <ReportEngineElementContainer\n          @elements={{this.model.forecastTable.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"r03pXb/C\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"shared.reports.Position report\\\"],null]]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,7],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-2\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,9],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"forecastTable\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,12],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,14],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"downloadAsCsv\\\"]],false],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"downloadAsCsv\\\"]],true],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"shared.reports.Download and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,2],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,4],[\\\"shared.reports.forecastBreakdownReportExplanation\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"d-flex align-items-center m-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,19],null,[[\\\"@text\\\"],[[28,[37,4],[\\\"shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"shared.reports.Report date\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control ms-1\\\"],[24,5,\\\"width: auto;\\\"],[16,\\\"placeholder\\\",[28,[37,4],[\\\"shared.reports.Pick a date\\\"],null]],[16,2,[30,0,[\\\"selectedDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,15],[\\\"change\\\",[28,[37,16],[[30,0,[\\\"onDateChange\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[15,1,[29,[[30,0,[\\\"pdfExportTargetId\\\"]]]]],[12],[1,\\\"\\\\n      \\\"],[8,[39,21],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"forecastTable\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"po\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"page-title-breadcrumbs\\\",\\\"header\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"p\\\",\\\"label\\\",\\\"label-popup\\\",\\\"input\\\",\\\"report-engine-element-container\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/projects/project/forecast-breakdown/task/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/projects/project/invoicing/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4 flex-grow-1'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.invoiceTable.last.value.name}}\n          </h2>\n        {{/if}}\n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n              disabled={{this.downloadAsPdf.isRunning}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as PDF'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAndSavePdf)}}\n                disabled={{this.downloadAndSavePdf.isRunning}}\n              >\n                {{#if this.downloadAndSavePdf.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save PDF'}}\n                {{/if}}\n              </button>\n            {{/if}}\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (fn (mut this.csvExportOptions) true)}}\n            >\n              {{t 'shared.reports.Download as CSV'}}\n            </button>\n          </po.Content>\n        </PopOver>\n      </header>\n      <div class='d-flex align-items-center my-3'>\n        <label class='d-flex align-items-center m-1'>\n          <LabelPopup\n            @text={{t\n              'shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications'\n            }}\n          >\n            {{t 'shared.reports.Report date'}}\n          </LabelPopup>\n          <input\n            class='form-control ms-1'\n            style='width: auto;'\n            placeholder={{t 'shared.reports.Pick a date'}}\n            type='date'\n            value={{this.selectedDate}}\n            {{on 'change' (perform this.onDateChange)}}\n          />\n        </label>\n      </div>\n      <div id={{this.pdfExportTargetId}}>\n        <ReportEngineElementContainer\n          @elements={{this.model.invoiceTable.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  \n  {{#if this.csvExportOptions}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{this.closeCSVExport}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t 'shared.reports.selectTheReportsThatNeedToBeExportedBelow'}}\n        </p>\n        {{#each this.csvOptions as |option index|}}\n          <div class='form-check mb-1'>\n            <input\n              type='checkbox'\n              class='form-check-input'\n              name={{option.name}}\n              checked={{option.value}}\n              id={{index}}\n              {{on 'change' (fn this.toggleCsvOption index)}}\n            />\n            <label for={{index}}>{{option.name}}</label>\n          </div>\n        {{/each}}\n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' this.closeCSVExport}}\n        >{{t 'common.Cancel'}}</button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          disabled={{this.isExportDisabled}}\n          {{on\n            'click'\n            (pipe\n              (perform this.downloadAsCsv this.csvOptions false)\n              this.closeCSVExport\n            )\n          }}\n        >\n          {{#if this.downloadAsCsv.isRunning}}\n            {{t 'common.Exporting'}}&hellip;\n          {{else}}\n            {{t 'common.Export'}}\n          {{/if}}\n        </button>\n        {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n          <button\n            type='button'\n            class='btn btn-primary'\n            {{on\n              'click'\n              (pipe\n                (perform this.downloadAsCsv this.csvOptions true)\n                this.closeCSVExport\n              )\n            }}\n            disabled={{this.isExportDisabled}}\n          >\n            {{#if this.downloadAsCsv.isRunning}}\n              {{t 'common.Exporting'}}&hellip;\n            {{else}}\n              {{t 'shared.reports.Export and save CSV'}}\n            {{/if}}\n          </button>\n        {{/if}}\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"eZPA8uMm\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4 flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"invoiceTable\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,6],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,12],[[28,[37,13],[[30,0,[\\\"csvExportOptions\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,8],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"d-flex align-items-center m-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,16],null,[[\\\"@text\\\"],[[28,[37,8],[\\\"shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"shared.reports.Report date\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control ms-1\\\"],[24,5,\\\"width: auto;\\\"],[16,\\\"placeholder\\\",[28,[37,8],[\\\"shared.reports.Pick a date\\\"],null]],[16,2,[30,0,[\\\"selectedDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,10],[\\\"change\\\",[28,[37,11],[[30,0,[\\\"onDateChange\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[15,1,[30,0,[\\\"pdfExportTargetId\\\"]]],[12],[1,\\\"\\\\n      \\\"],[8,[39,18],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"invoiceTable\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"csvExportOptions\\\"]],[[[1,\\\"  \\\"],[8,[39,19],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[30,0,[\\\"closeCSVExport\\\"]],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,8],[\\\"shared.reports.selectTheReportsThatNeedToBeExportedBelow\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,22],[[28,[37,22],[[30,0,[\\\"csvOptions\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"form-check mb-1\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"input\\\"],[24,0,\\\"form-check-input\\\"],[16,3,[30,2,[\\\"name\\\"]]],[16,\\\"checked\\\",[30,2,[\\\"value\\\"]]],[16,1,[30,3]],[24,4,\\\"checkbox\\\"],[4,[38,10],[\\\"change\\\",[28,[37,12],[[30,0,[\\\"toggleCsvOption\\\"]],[30,3]],null]],null],[12],[13],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[15,\\\"for\\\",[30,3]],[12],[1,[30,2,[\\\"name\\\"]]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[2,3]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"closeCSVExport\\\"]]],null],[12],[1,[28,[35,8],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,23],[[28,[37,11],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],false],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,8],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,8],[\\\"common.Export\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,23],[[28,[37,11],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],true],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,8],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,8],[\\\"shared.reports.Export and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"po\\\",\\\"option\\\",\\\"index\\\"],false,[\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"fn\\\",\\\"mut\\\",\\\"div\\\",\\\"label\\\",\\\"label-popup\\\",\\\"input\\\",\\\"report-engine-element-container\\\",\\\"modal-dialog\\\",\\\"p\\\",\\\"each\\\",\\\"-track-array\\\",\\\"pipe\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/projects/project/invoicing/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/projects/project/invoicing/task/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mb-2'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.invoiceTable.last.value.name}}\n          </h2>\n        {{/if}}\n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n              disabled={{this.downloadAsPdf.isRunning}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as PDF'}}\n              {{/if}}\n            </button>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAndSavePdf)}}\n              disabled={{this.downloadAndSavePdf.isRunning}}\n            >\n              {{#if this.downloadAndSavePdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download and save PDF'}}\n              {{/if}}\n            </button>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (fn (mut this.csvExportOptions) true)}}\n            >\n              {{t 'shared.reports.Download as CSV'}}\n            </button>\n          </po.Content>\n        </PopOver>\n      </header>\n  \n      <div class='d-flex align-items-center my-3'>\n        <label class='d-flex align-items-center m-1'>\n          <LabelPopup\n            @text={{t\n              'shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications'\n            }}\n          >\n            {{t 'shared.reports.Report date'}}\n          </LabelPopup>\n          <input\n            class='form-control ms-1'\n            style='width: auto;'\n            placeholder={{t 'shared.reports.Pick a date'}}\n            type='date'\n            value={{this.selectedDate}}\n            {{on 'change' (perform this.onDateChange)}}\n          />\n        </label>\n      </div>\n      <div id='{{this.pdfExportTargetId}}'>\n        <ReportEngineElementContainer\n          @elements={{this.model.invoiceTable.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  \n  {{#if this.csvExportOptions}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{this.closeCSVExport}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t 'shared.reports.selectTheReportsThatNeedToBeExportedBelow'}}\n        </p>\n        {{#each this.csvOptions as |option index|}}\n          <div class='form-check mb-1'>\n            <input\n              type='checkbox'\n              class='form-check-input'\n              name={{option.name}}\n              checked={{option.value}}\n              id={{index}}\n              {{on 'change' (fn this.toggleCsvOption index)}}\n            />\n            <label for={{index}}>{{option.name}}</label>\n          </div>\n        {{/each}}\n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' this.closeCSVExport}}\n        >{{t 'common.Cancel'}}</button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          disabled={{this.isExportDisabled}}\n          {{on\n            'click'\n            (pipe\n              (perform this.downloadAsCsv this.csvOptions false)\n              this.closeCSVExport\n            )\n          }}\n        >\n          {{#if this.downloadAsCsv.isRunning}}\n            {{t 'common.Exporting'}}&hellip;\n          {{else}}\n            {{t 'common.Export'}}\n          {{/if}}\n        </button>\n        {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n          <button\n            type='button'\n            class='btn btn-primary'\n            {{on\n              'click'\n              (pipe\n                (perform this.downloadAsCsv this.csvOptions true)\n                this.closeCSVExport\n              )\n            }}\n            disabled={{this.isExportDisabled}}\n          >\n            {{#if this.downloadAsCsv.isRunning}}\n              {{t 'common.Exporting'}}&hellip;\n            {{else}}\n              {{t 'shared.reports.Export and save CSV'}}\n            {{/if}}\n          </button>\n        {{/if}}\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"6uuME8Qv\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-2\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"invoiceTable\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,8],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,10],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"csvExportOptions\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,10],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"d-flex align-items-center m-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,17],null,[[\\\"@text\\\"],[[28,[37,10],[\\\"shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,10],[\\\"shared.reports.Report date\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control ms-1\\\"],[24,5,\\\"width: auto;\\\"],[16,\\\"placeholder\\\",[28,[37,10],[\\\"shared.reports.Pick a date\\\"],null]],[16,2,[30,0,[\\\"selectedDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,12],[\\\"change\\\",[28,[37,13],[[30,0,[\\\"onDateChange\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[15,1,[29,[[30,0,[\\\"pdfExportTargetId\\\"]]]]],[12],[1,\\\"\\\\n      \\\"],[8,[39,19],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"invoiceTable\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"csvExportOptions\\\"]],[[[1,\\\"  \\\"],[8,[39,20],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[30,0,[\\\"closeCSVExport\\\"]],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,10],[\\\"shared.reports.selectTheReportsThatNeedToBeExportedBelow\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,23],[[28,[37,23],[[30,0,[\\\"csvOptions\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"form-check mb-1\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"input\\\"],[24,0,\\\"form-check-input\\\"],[16,3,[30,2,[\\\"name\\\"]]],[16,\\\"checked\\\",[30,2,[\\\"value\\\"]]],[16,1,[30,3]],[24,4,\\\"checkbox\\\"],[4,[38,12],[\\\"change\\\",[28,[37,14],[[30,0,[\\\"toggleCsvOption\\\"]],[30,3]],null]],null],[12],[13],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[15,\\\"for\\\",[30,3]],[12],[1,[30,2,[\\\"name\\\"]]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[2,3]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[30,0,[\\\"closeCSVExport\\\"]]],null],[12],[1,[28,[35,10],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,24],[[28,[37,13],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],false],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,10],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,10],[\\\"common.Export\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,24],[[28,[37,13],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],true],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,10],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,10],[\\\"shared.reports.Export and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"po\\\",\\\"option\\\",\\\"index\\\"],false,[\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"page-title-breadcrumbs\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"fn\\\",\\\"mut\\\",\\\"label\\\",\\\"label-popup\\\",\\\"input\\\",\\\"report-engine-element-container\\\",\\\"modal-dialog\\\",\\\"p\\\",\\\"each\\\",\\\"-track-array\\\",\\\"pipe\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/projects/project/invoicing/task/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/projects/project/labour-hours/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4 flex-grow-1'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.labourHoursTable.last.value.name}}\n          </h2>\n        {{/if}}\n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n              disabled={{this.downloadAsPdf.isRunning}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as PDF'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAndSavePdf)}}\n                disabled={{this.downloadAndSavePdf.isRunning}}\n              >\n                {{#if this.downloadAndSavePdf.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save PDF'}}\n                {{/if}}\n              </button>\n            {{/if}}\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsCsv false)}}\n            >\n              {{#if this.downloadAsCsv.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as CSV'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAsCsv true)}}\n                disabled={{this.downloadAsCsv.isRunning}}\n              >\n                {{#if this.downloadAsCsv.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save CSV'}}\n                {{/if}}\n              </button>\n            {{/if}}\n          </po.Content>\n        </PopOver>\n      </header>\n      <div class='d-flex align-items-center my-3'>\n        <label class='d-flex align-items-center m-1'>\n          <LabelPopup\n            @text={{t\n              'shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications'\n            }}\n          >\n            {{t 'shared.reports.Report date'}}\n          </LabelPopup>\n          <input\n            class='form-control ms-1'\n            style='width: auto;'\n            placeholder={{t 'shared.reports.Pick a date'}}\n            type='date'\n            value={{this.selectedDate}}\n            {{on 'change' (perform this.onDateChange)}}\n          />\n        </label>\n      </div>\n  \n      <div id={{this.pdfExportTargetId}}>\n        <ReportEngineElementContainer\n          @elements={{this.model.labourHoursTable.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"BQKiDBly\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4 flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"labourHoursTable\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,6],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsCsv\\\"]],false],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsCsv\\\"]],true],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"shared.reports.Download and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"d-flex align-items-center m-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,14],null,[[\\\"@text\\\"],[[28,[37,8],[\\\"shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"shared.reports.Report date\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control ms-1\\\"],[24,5,\\\"width: auto;\\\"],[16,\\\"placeholder\\\",[28,[37,8],[\\\"shared.reports.Pick a date\\\"],null]],[16,2,[30,0,[\\\"selectedDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,10],[\\\"change\\\",[28,[37,11],[[30,0,[\\\"onDateChange\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[15,1,[30,0,[\\\"pdfExportTargetId\\\"]]],[12],[1,\\\"\\\\n      \\\"],[8,[39,16],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"labourHoursTable\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"po\\\"],false,[\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"div\\\",\\\"label\\\",\\\"label-popup\\\",\\\"input\\\",\\\"report-engine-element-container\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/projects/project/labour-hours/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/projects/project/labour-hours/task/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mb-2'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.taskLevelReport.last.value.name}}\n          </h2>\n        {{/if}}\n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n              disabled={{this.downloadAsPdf.isRunning}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as PDF'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAndSavePdf)}}\n                disabled={{this.downloadAndSavePdf.isRunning}}\n              >\n                {{#if this.downloadAndSavePdf.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save PDF'}}\n                {{/if}}\n              </button>\n            {{/if}}\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsCsv false)}}\n            >\n              {{#if this.downloadAsCsv.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as CSV'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAsCsv true)}}\n                disabled={{this.downloadAsCsv.isRunning}}\n              >\n                {{#if this.downloadAsCsv.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save CSV'}}\n                {{/if}}\n              </button>\n            {{/if}}\n          </po.Content>\n        </PopOver>\n      </header>\n  \n      <div class='d-flex align-items-center my-3'>\n        <label class='d-flex align-items-center m-1'>\n          <LabelPopup\n            @text={{t\n              'shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications'\n            }}\n          >\n            {{t 'shared.reports.Report date'}}\n          </LabelPopup>\n          <input\n            class='form-control ms-1'\n            style='width: auto;'\n            placeholder={{t 'shared.reports.Pick a date'}}\n            type='date'\n            value={{this.selectedDate}}\n            {{on 'change' (perform this.onDateChange)}}\n          />\n        </label>\n      </div>\n      <div id='{{this.pdfExportTargetId}}'>\n        <ReportEngineElementContainer\n          @elements={{this.model.taskLevelReport.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"dqgfREuC\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-2\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"taskLevelReport\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,8],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,10],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,10],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,10],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"downloadAsCsv\\\"]],false],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"downloadAsCsv\\\"]],true],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,10],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,10],[\\\"shared.reports.Download and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"d-flex align-items-center m-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,15],null,[[\\\"@text\\\"],[[28,[37,10],[\\\"shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,10],[\\\"shared.reports.Report date\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control ms-1\\\"],[24,5,\\\"width: auto;\\\"],[16,\\\"placeholder\\\",[28,[37,10],[\\\"shared.reports.Pick a date\\\"],null]],[16,2,[30,0,[\\\"selectedDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,12],[\\\"change\\\",[28,[37,13],[[30,0,[\\\"onDateChange\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[15,1,[29,[[30,0,[\\\"pdfExportTargetId\\\"]]]]],[12],[1,\\\"\\\\n      \\\"],[8,[39,17],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"taskLevelReport\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"po\\\"],false,[\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"page-title-breadcrumbs\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"label\\\",\\\"label-popup\\\",\\\"input\\\",\\\"report-engine-element-container\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/projects/project/labour-hours/task/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/projects/project/notes\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4 flex-grow-1'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.noteReport.last.value.name}}\n          </h2>\n        {{/if}}\n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n              disabled={{this.downloadAsPdf.isRunning}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as PDF'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAndSavePdf)}}\n                disabled={{this.downloadAndSavePdf.isRunning}}\n              >\n                {{#if this.downloadAndSavePdf.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save PDF'}}\n                {{/if}}\n              </button>\n            {{/if}}\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsCsv)}}\n            >\n              {{t 'shared.reports.Download as CSV'}}\n            </button>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsCsv true)}}\n            >\n              {{t 'shared.reports.Download and save CSV'}}\n            </button>\n          </po.Content>\n        </PopOver>\n      </header>\n  \n      <div class='d-flex flex-wrap gap-3 my-3'>\n        {{#if this.invoiceId}}\n          <button\n            class='btn btn-primary'\n            type='button'\n            {{on 'click' this.removeAllTaskFilters}}\n          >\n            <FaIcon @icon='times' />&nbsp;{{t 'common.Remove filter'}}\n          </button>\n        {{else}}\n          <div class='d-flex align-items-center flex-wrap gap-3'>\n            {{t 'common.Date range'}}:&nbsp;\n            <DateRangeSelector\n              @align='left'\n              @startDate={{this.dateRangeSelectorStartDate}}\n              @endDate={{this.dateRangeSelectorEndDate}}\n              @onApply={{this.setDateRange}}\n            />\n  \n            <div class='d-flex align-items-center'>\n              <label>\n                <Input\n                  @type='checkbox'\n                  class='form-check-input ml-1 mb-1 mr-1'\n                  @checked={{this.filterByDate}}\n                  {{on 'click' this.setFilterByDate}}\n                />\n                {{t 'common.Filter by date'}}\n              </label>\n            </div>\n          </div>\n          <div class='d-flex align-items-center'>\n            <label>{{t 'common.Selected tasks'}}:&nbsp;&nbsp;</label>\n            <MultiTaskSelectorInput\n              @showTaskPopUp={{this.showTaskPopUp}}\n              @selectedProject={{this.model.project.last.value}}\n              @selectedTasks={{this.selectedTasks}}\n              @setSelectedTasks={{this.setSelectedTasks}}\n              @removeSelectedTask={{this.removeSelectedTask}}\n            />\n            {{#if this.selectedTasks.length}}\n              &nbsp;&nbsp;\n              <button\n                class='text-button'\n                type='button'\n                {{on 'click' this.removeAllTaskFilters}}\n              >\n                <FaIcon @icon='times' />&nbsp;{{t 'common.Remove filter'}}\n              </button>\n            {{/if}}\n          </div>\n          <div class='d-flex align-items-center'>\n            <label>{{t 'common.Selected workers'}}:&nbsp;&nbsp;</label>\n  \n            <PowerSelectMultiple\n              @options={{this.model.getWorkers.last.value}}\n              @selected={{this.selectedWorkers}}\n              @searchEnabled={{true}}\n              @searchField='fullName'\n              @placeholder='–'\n              @onChange={{fn (mut this.selectedWorkers)}}\n              as |worker|\n            >\n              {{worker.fullName}}\n            </PowerSelectMultiple>\n  \n            {{#if this.selectedWorkers.length}}\n              &nbsp;&nbsp;\n              <button\n                class='text-button'\n                type='button'\n                {{on 'click' this.removeAllWorkerFilters}}\n              >\n                <FaIcon @icon='times' />&nbsp;{{t 'common.Remove filter'}}\n              </button>\n            {{/if}}\n          </div>\n        {{/if}}\n      </div>\n  \n      <div id={{this.pdfExportTargetId}} class='container-sm p-0 m-0'>\n        <ReportEngineElementContainer\n          @elements={{this.model.noteReport.last.value.elements}}\n          @hideClass={{this.pdfExportHideClass}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"PUCMiaoQ\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4 flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"noteReport\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,6],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsCsv\\\"]]],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,8],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsCsv\\\"]],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,8],[\\\"shared.reports.Download and save CSV\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex flex-wrap gap-3 my-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"invoiceId\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"removeAllTaskFilters\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\" \\\"],[1,[28,[35,8],[\\\"common.Remove filter\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"d-flex align-items-center flex-wrap gap-3\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.Date range\\\"],null]],[1,\\\": \\\\n          \\\"],[8,[39,13],null,[[\\\"@align\\\",\\\"@startDate\\\",\\\"@endDate\\\",\\\"@onApply\\\"],[\\\"left\\\",[30,0,[\\\"dateRangeSelectorStartDate\\\"]],[30,0,[\\\"dateRangeSelectorEndDate\\\"]],[30,0,[\\\"setDateRange\\\"]]]],null],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,15],[[24,0,\\\"form-check-input ml-1 mb-1 mr-1\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"setFilterByDate\\\"]]],null]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"filterByDate\\\"]]]],null],[1,\\\"\\\\n              \\\"],[1,[28,[35,8],[\\\"common.Filter by date\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[12],[1,[28,[35,8],[\\\"common.Selected tasks\\\"],null]],[1,\\\":  \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[39,16],null,[[\\\"@showTaskPopUp\\\",\\\"@selectedProject\\\",\\\"@selectedTasks\\\",\\\"@setSelectedTasks\\\",\\\"@removeSelectedTask\\\"],[[30,0,[\\\"showTaskPopUp\\\"]],[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"selectedTasks\\\"]],[30,0,[\\\"setSelectedTasks\\\"]],[30,0,[\\\"removeSelectedTask\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"selectedTasks\\\",\\\"length\\\"]],[[[1,\\\"              \\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"removeAllTaskFilters\\\"]]],null],[12],[1,\\\"\\\\n              \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\" \\\"],[1,[28,[35,8],[\\\"common.Remove filter\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[12],[1,[28,[35,8],[\\\"common.Selected workers\\\"],null]],[1,\\\":  \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,17],null,[[\\\"@options\\\",\\\"@selected\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@onChange\\\"],[[30,0,[\\\"model\\\",\\\"getWorkers\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"selectedWorkers\\\"]],true,\\\"fullName\\\",\\\"–\\\",[28,[37,18],[[28,[37,19],[[30,0,[\\\"selectedWorkers\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[30,2,[\\\"fullName\\\"]]],[1,\\\"\\\\n          \\\"]],[2]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"selectedWorkers\\\",\\\"length\\\"]],[[[1,\\\"              \\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"removeAllWorkerFilters\\\"]]],null],[12],[1,\\\"\\\\n              \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\" \\\"],[1,[28,[35,8],[\\\"common.Remove filter\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[15,1,[30,0,[\\\"pdfExportTargetId\\\"]]],[14,0,\\\"container-sm p-0 m-0\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,20],null,[[\\\"@elements\\\",\\\"@hideClass\\\"],[[30,0,[\\\"model\\\",\\\"noteReport\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]],[30,0,[\\\"pdfExportHideClass\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"po\\\",\\\"worker\\\"],false,[\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"div\\\",\\\"date-range-selector\\\",\\\"label\\\",\\\"input\\\",\\\"multi-task-selector-input\\\",\\\"power-select-multiple\\\",\\\"fn\\\",\\\"mut\\\",\\\"report-engine-element-container\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/projects/project/notes.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/projects/project/position/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.projectLevelReport.last.value.name}}\n          </h2>\n        {{/if}}\n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n              disabled={{this.downloadAsPdf.isRunning}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as PDF'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAndSavePdf)}}\n                disabled={{this.downloadAndSavePdf.isRunning}}\n              >\n                {{#if this.downloadAndSavePdf.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save PDF'}}\n                {{/if}}\n              </button>\n            {{/if}}\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (fn (mut this.csvExportOptions) true)}}\n            >\n              {{t 'shared.reports.Download as CSV'}}\n            </button>\n          </po.Content>\n        </PopOver>\n      </header>\n  \n      <div class='d-flex align-items-center my-3'>\n        <label class='d-flex align-items-center m-1'>\n          <LabelPopup\n            @text={{t\n              'shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications'\n            }}\n          >\n            {{t 'shared.reports.Report date'}}\n          </LabelPopup>\n          <input\n            class='form-control ms-1'\n            style='width: auto;'\n            placeholder={{t 'shared.reports.Pick a date'}}\n            type='date'\n            value={{this.selectedDate}}\n            {{on 'change' (perform this.onDateChange)}}\n          />\n        </label>\n      </div>\n      <div id={{this.pdfExportTargetId}}>\n        <ReportEngineElementContainer\n          @elements={{this.model.projectLevelReport.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  {{#if this.csvExportOptions}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{this.closeCSVExport}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t 'shared.reports.selectTheReportsThatNeedToBeExportedBelow'}}\n        </p>\n        {{#each this.csvOptions as |option index|}}\n          <div class='form-check mb-1'>\n            <input\n              type='checkbox'\n              class='form-check-input'\n              name={{option.name}}\n              checked={{option.value}}\n              id={{index}}\n              {{on 'change' (fn this.toggleCsvOption index)}}\n            />\n            <label for={{index}}>{{option.name}}</label>\n          </div>\n        {{/each}}\n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' this.closeCSVExport}}\n        >{{t 'common.Cancel'}}</button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          disabled={{this.isExportDisabled}}\n          {{on\n            'click'\n            (pipe\n              (perform this.downloadAsCsv this.csvOptions false)\n              this.closeCSVExport\n            )\n          }}\n        >\n          {{#if this.downloadAsCsv.isRunning}}\n            {{t 'common.Exporting'}}&hellip;\n          {{else}}\n            {{t 'common.Export'}}\n          {{/if}}\n        </button>\n        {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n          <button\n            type='button'\n            class='btn btn-primary'\n            {{on\n              'click'\n              (pipe\n                (perform this.downloadAsCsv this.csvOptions true)\n                this.closeCSVExport\n              )\n            }}\n            disabled={{this.isExportDisabled}}\n          >\n            {{#if this.downloadAsCsv.isRunning}}\n              {{t 'common.Exporting'}}&hellip;\n            {{else}}\n              {{t 'shared.reports.Export and save CSV'}}\n            {{/if}}\n          </button>\n        {{/if}}\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"GPUf379U\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"projectLevelReport\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,6],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,12],[[28,[37,13],[[30,0,[\\\"csvExportOptions\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,8],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"d-flex align-items-center m-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,16],null,[[\\\"@text\\\"],[[28,[37,8],[\\\"shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"shared.reports.Report date\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control ms-1\\\"],[24,5,\\\"width: auto;\\\"],[16,\\\"placeholder\\\",[28,[37,8],[\\\"shared.reports.Pick a date\\\"],null]],[16,2,[30,0,[\\\"selectedDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,10],[\\\"change\\\",[28,[37,11],[[30,0,[\\\"onDateChange\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[15,1,[30,0,[\\\"pdfExportTargetId\\\"]]],[12],[1,\\\"\\\\n      \\\"],[8,[39,18],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"projectLevelReport\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"csvExportOptions\\\"]],[[[1,\\\"  \\\"],[8,[39,19],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[30,0,[\\\"closeCSVExport\\\"]],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,8],[\\\"shared.reports.selectTheReportsThatNeedToBeExportedBelow\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,22],[[28,[37,22],[[30,0,[\\\"csvOptions\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"form-check mb-1\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"input\\\"],[24,0,\\\"form-check-input\\\"],[16,3,[30,2,[\\\"name\\\"]]],[16,\\\"checked\\\",[30,2,[\\\"value\\\"]]],[16,1,[30,3]],[24,4,\\\"checkbox\\\"],[4,[38,10],[\\\"change\\\",[28,[37,12],[[30,0,[\\\"toggleCsvOption\\\"]],[30,3]],null]],null],[12],[13],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[15,\\\"for\\\",[30,3]],[12],[1,[30,2,[\\\"name\\\"]]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[2,3]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"closeCSVExport\\\"]]],null],[12],[1,[28,[35,8],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,23],[[28,[37,11],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],false],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,8],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,8],[\\\"common.Export\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,23],[[28,[37,11],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],true],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,8],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,8],[\\\"shared.reports.Export and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"po\\\",\\\"option\\\",\\\"index\\\"],false,[\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"fn\\\",\\\"mut\\\",\\\"div\\\",\\\"label\\\",\\\"label-popup\\\",\\\"input\\\",\\\"report-engine-element-container\\\",\\\"modal-dialog\\\",\\\"p\\\",\\\"each\\\",\\\"-track-array\\\",\\\"pipe\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/projects/project/position/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/projects/project/position/task/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mb-2'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.taskLevelReport.last.value.name}}\n          </h2>\n        {{/if}}\n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n              disabled={{this.downloadAsPdf.isRunning}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as PDF'}}\n              {{/if}}\n            </button>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAndSavePdf)}}\n              disabled={{this.downloadAndSavePdf.isRunning}}\n            >\n              {{#if this.downloadAndSavePdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download and save PDF'}}\n              {{/if}}\n            </button>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (fn (mut this.csvExportOptions) true)}}\n            >\n              {{t 'shared.reports.Download as CSV'}}\n            </button>\n          </po.Content>\n        </PopOver>\n      </header>\n  \n      <div class='d-flex align-items-center my-3'>\n        <label class='d-flex align-items-center m-1'>\n          <LabelPopup\n            @text={{t\n              'shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications'\n            }}\n          >\n            {{t 'shared.reports.Report date'}}\n          </LabelPopup>\n          <input\n            class='form-control ms-1'\n            style='width: auto;'\n            placeholder={{t 'shared.reports.Pick a date'}}\n            type='date'\n            value={{this.selectedDate}}\n            {{on 'change' (perform this.onDateChange)}}\n          />\n        </label>\n      </div>\n      <div id='{{this.pdfExportTargetId}}'>\n        <ReportEngineElementContainer\n          @elements={{this.model.taskLevelReport.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  {{#if this.csvExportOptions}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{this.closeCSVExport}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t 'shared.reports.selectTheReportsThatNeedToBeExportedBelow'}}\n        </p>\n        {{#each this.csvOptions as |option index|}}\n          <div class='form-check mb-1'>\n            <input\n              type='checkbox'\n              class='form-check-input'\n              name={{option.name}}\n              checked={{option.value}}\n              id={{index}}\n              {{on 'change' (fn this.toggleCsvOption index)}}\n            />\n            <label for={{index}}>{{option.name}}</label>\n          </div>\n        {{/each}}\n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' this.closeCSVExport}}\n        >{{t 'common.Cancel'}}</button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          disabled={{this.isExportDisabled}}\n          {{on\n            'click'\n            (pipe\n              (perform this.downloadAsCsv this.csvOptions false)\n              this.closeCSVExport\n            )\n          }}\n        >\n          {{#if this.downloadAsCsv.isRunning}}\n            {{t 'common.Exporting'}}&hellip;\n          {{else}}\n            {{t 'common.Export'}}\n          {{/if}}\n        </button>\n        {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n          <button\n            type='button'\n            class='btn btn-primary'\n            {{on\n              'click'\n              (pipe\n                (perform this.downloadAsCsv this.csvOptions true)\n                this.closeCSVExport\n              )\n            }}\n            disabled={{this.isExportDisabled}}\n          >\n            {{#if this.downloadAsCsv.isRunning}}\n              {{t 'common.Exporting'}}&hellip;\n            {{else}}\n              {{t 'shared.reports.Export and save CSV'}}\n            {{/if}}\n          </button>\n        {{/if}}\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"9wgBODa5\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-2\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"taskLevelReport\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,8],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,10],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"csvExportOptions\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,10],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"d-flex align-items-center m-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,17],null,[[\\\"@text\\\"],[[28,[37,10],[\\\"shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,10],[\\\"shared.reports.Report date\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control ms-1\\\"],[24,5,\\\"width: auto;\\\"],[16,\\\"placeholder\\\",[28,[37,10],[\\\"shared.reports.Pick a date\\\"],null]],[16,2,[30,0,[\\\"selectedDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,12],[\\\"change\\\",[28,[37,13],[[30,0,[\\\"onDateChange\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[15,1,[29,[[30,0,[\\\"pdfExportTargetId\\\"]]]]],[12],[1,\\\"\\\\n      \\\"],[8,[39,19],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"taskLevelReport\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"csvExportOptions\\\"]],[[[1,\\\"  \\\"],[8,[39,20],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[30,0,[\\\"closeCSVExport\\\"]],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,10],[\\\"shared.reports.selectTheReportsThatNeedToBeExportedBelow\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,23],[[28,[37,23],[[30,0,[\\\"csvOptions\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"form-check mb-1\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"input\\\"],[24,0,\\\"form-check-input\\\"],[16,3,[30,2,[\\\"name\\\"]]],[16,\\\"checked\\\",[30,2,[\\\"value\\\"]]],[16,1,[30,3]],[24,4,\\\"checkbox\\\"],[4,[38,12],[\\\"change\\\",[28,[37,14],[[30,0,[\\\"toggleCsvOption\\\"]],[30,3]],null]],null],[12],[13],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[15,\\\"for\\\",[30,3]],[12],[1,[30,2,[\\\"name\\\"]]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[2,3]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[30,0,[\\\"closeCSVExport\\\"]]],null],[12],[1,[28,[35,10],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,24],[[28,[37,13],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],false],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,10],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,10],[\\\"common.Export\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,24],[[28,[37,13],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],true],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,10],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,10],[\\\"shared.reports.Export and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"po\\\",\\\"option\\\",\\\"index\\\"],false,[\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"page-title-breadcrumbs\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"fn\\\",\\\"mut\\\",\\\"label\\\",\\\"label-popup\\\",\\\"input\\\",\\\"report-engine-element-container\\\",\\\"modal-dialog\\\",\\\"p\\\",\\\"each\\\",\\\"-track-array\\\",\\\"pipe\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/projects/project/position/task/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/projects/project/profit-margins/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.profitMarginsTable.last.value.name}}\n          </h2>\n        {{/if}}\n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n              disabled={{this.downloadAsPdf.isRunning}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as PDF'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAndSavePdf)}}\n                disabled={{this.downloadAndSavePdf.isRunning}}\n              >\n                {{#if this.downloadAndSavePdf.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save PDF'}}\n                {{/if}}\n              </button>\n            {{/if}}\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsCsv false)}}\n            >\n              {{#if this.downloadAsCsv.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as CSV'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAsCsv true)}}\n                disabled={{this.downloadAsCsv.isRunning}}\n              >\n                {{#if this.downloadAsCsv.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save CSV'}}\n                {{/if}}\n              </button>\n            {{/if}}\n          </po.Content>\n        </PopOver>\n      </header>\n      <div class='d-flex align-items-center my-3'>\n        <label class='d-flex align-items-center m-1'>\n          <LabelPopup\n            @text={{t\n              'shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications'\n            }}\n          >\n            {{t 'shared.reports.Report date'}}\n          </LabelPopup>\n          <input\n            class='form-control ms-1'\n            style='width: auto;'\n            placeholder={{t 'shared.reports.Pick a date'}}\n            type='date'\n            value={{this.selectedDate}}\n            {{on 'change' (perform this.onDateChange)}}\n          />\n        </label>\n      </div>\n      <div id={{this.pdfExportTargetId}}>\n        <ReportEngineElementContainer\n          @elements={{this.model.profitMarginsTable.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"IiOOKi5/\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"profitMarginsTable\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,6],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsCsv\\\"]],false],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsCsv\\\"]],true],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"shared.reports.Download and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"d-flex align-items-center m-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,14],null,[[\\\"@text\\\"],[[28,[37,8],[\\\"shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"shared.reports.Report date\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control ms-1\\\"],[24,5,\\\"width: auto;\\\"],[16,\\\"placeholder\\\",[28,[37,8],[\\\"shared.reports.Pick a date\\\"],null]],[16,2,[30,0,[\\\"selectedDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,10],[\\\"change\\\",[28,[37,11],[[30,0,[\\\"onDateChange\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[15,1,[30,0,[\\\"pdfExportTargetId\\\"]]],[12],[1,\\\"\\\\n      \\\"],[8,[39,16],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"profitMarginsTable\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"po\\\"],false,[\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"div\\\",\\\"label\\\",\\\"label-popup\\\",\\\"input\\\",\\\"report-engine-element-container\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/projects/project/profit-margins/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/projects/project/profit-margins/task/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mb-2'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.profitMarginsTable.last.value.name}}\n          </h2>\n        {{/if}}\n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n              disabled={{this.downloadAsPdf.isRunning}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as PDF'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAndSavePdf)}}\n                disabled={{this.downloadAndSavePdf.isRunning}}\n              >\n                {{#if this.downloadAndSavePdf.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save PDF'}}\n                {{/if}}\n              </button>\n            {{/if}}\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsCsv false)}}\n            >\n              {{#if this.downloadAsCsv.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as CSV'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAsCsv true)}}\n                disabled={{this.downloadAsCsv.isRunning}}\n              >\n                {{#if this.downloadAsCsv.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save CSV'}}\n                {{/if}}\n              </button>\n            {{/if}}\n          </po.Content>\n        </PopOver>\n      </header>\n  \n      <div class='d-flex align-items-center my-3'>\n        <label class='d-flex align-items-center m-1'>\n          <LabelPopup\n            @text={{t\n              'shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications'\n            }}\n          >\n            {{t 'shared.reports.Report date'}}\n          </LabelPopup>\n          <input\n            class='form-control ms-1'\n            style='width: auto;'\n            placeholder={{t 'shared.reports.Pick a date'}}\n            type='date'\n            value={{this.selectedDate}}\n            {{on 'change' (perform this.onDateChange)}}\n          />\n        </label>\n      </div>\n      <div id='{{this.pdfExportTargetId}}'>\n        <ReportEngineElementContainer\n          @elements={{this.model.profitMarginsTable.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"QKbeiUDc\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-2\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"profitMarginsTable\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,8],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,10],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,10],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,10],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"downloadAsCsv\\\"]],false],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"downloadAsCsv\\\"]],true],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,10],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,10],[\\\"shared.reports.Download and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"d-flex align-items-center m-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,15],null,[[\\\"@text\\\"],[[28,[37,10],[\\\"shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,10],[\\\"shared.reports.Report date\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control ms-1\\\"],[24,5,\\\"width: auto;\\\"],[16,\\\"placeholder\\\",[28,[37,10],[\\\"shared.reports.Pick a date\\\"],null]],[16,2,[30,0,[\\\"selectedDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,12],[\\\"change\\\",[28,[37,13],[[30,0,[\\\"onDateChange\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[15,1,[29,[[30,0,[\\\"pdfExportTargetId\\\"]]]]],[12],[1,\\\"\\\\n      \\\"],[8,[39,17],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"profitMarginsTable\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"po\\\"],false,[\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"page-title-breadcrumbs\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"label\\\",\\\"label-popup\\\",\\\"input\\\",\\\"report-engine-element-container\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/projects/project/profit-margins/task/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/projects/project/quote/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4 flex-grow-1'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.quoteTable.last.value.name}}\n          </h2>\n        {{/if}}\n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n              disabled={{this.downloadAsPdf.isRunning}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as PDF'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAndSavePdf)}}\n                disabled={{this.downloadAndSavePdf.isRunning}}\n              >\n                {{#if this.downloadAndSavePdf.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save PDF'}}\n                {{/if}}\n              </button>\n            {{/if}}\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (fn (mut this.csvExportOptions) true)}}\n            >\n              {{t 'shared.reports.Download as CSV'}}\n            </button>\n          </po.Content>\n        </PopOver>\n      </header>\n      <div class='d-flex align-items-center my-3'>\n        <label class='d-flex align-items-center m-1'>\n          <LabelPopup\n            @text={{t\n              'shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications'\n            }}\n          >\n            {{t 'shared.reports.Report date'}}\n          </LabelPopup>\n          <input\n            class='form-control ms-1'\n            style='width: auto;'\n            placeholder={{t 'shared.reports.Pick a date'}}\n            type='date'\n            value={{this.selectedDate}}\n            {{on 'change' (perform this.onDateChange)}}\n          />\n        </label>\n      </div>\n      <div id={{this.pdfExportTargetId}}>\n        <ReportEngineElementContainer\n          @elements={{this.model.quoteTable.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  \n  {{#if this.csvExportOptions}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{this.closeCSVExport}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t 'shared.reports.selectTheReportsThatNeedToBeExportedBelow'}}\n        </p>\n        {{#each this.csvOptions as |option index|}}\n          <div class='form-check mb-1'>\n            <input\n              type='checkbox'\n              class='form-check-input'\n              name={{option.name}}\n              checked={{option.value}}\n              id={{index}}\n              {{on 'change' (fn this.toggleCsvOption index)}}\n            />\n            <label for={{index}}>{{option.name}}</label>\n          </div>\n        {{/each}}\n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' this.closeCSVExport}}\n        >{{t 'common.Cancel'}}</button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          disabled={{this.isExportDisabled}}\n          {{on\n            'click'\n            (pipe\n              (perform this.downloadAsCsv this.csvOptions false)\n              this.closeCSVExport\n            )\n          }}\n        >\n          {{#if this.downloadAsCsv.isRunning}}\n            {{t 'common.Exporting'}}&hellip;\n          {{else}}\n            {{t 'common.Export'}}\n          {{/if}}\n        </button>\n        {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n          <button\n            type='button'\n            class='btn btn-primary'\n            {{on\n              'click'\n              (pipe\n                (perform this.downloadAsCsv this.csvOptions true)\n                this.closeCSVExport\n              )\n            }}\n            disabled={{this.isExportDisabled}}\n          >\n            {{#if this.downloadAsCsv.isRunning}}\n              {{t 'common.Exporting'}}&hellip;\n            {{else}}\n              {{t 'shared.reports.Export and save CSV'}}\n            {{/if}}\n          </button>\n        {{/if}}\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"pzKVGpqu\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4 flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"quoteTable\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,6],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,12],[[28,[37,13],[[30,0,[\\\"csvExportOptions\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,8],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"d-flex align-items-center m-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,16],null,[[\\\"@text\\\"],[[28,[37,8],[\\\"shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"shared.reports.Report date\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control ms-1\\\"],[24,5,\\\"width: auto;\\\"],[16,\\\"placeholder\\\",[28,[37,8],[\\\"shared.reports.Pick a date\\\"],null]],[16,2,[30,0,[\\\"selectedDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,10],[\\\"change\\\",[28,[37,11],[[30,0,[\\\"onDateChange\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[15,1,[30,0,[\\\"pdfExportTargetId\\\"]]],[12],[1,\\\"\\\\n      \\\"],[8,[39,18],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"quoteTable\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"csvExportOptions\\\"]],[[[1,\\\"  \\\"],[8,[39,19],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[30,0,[\\\"closeCSVExport\\\"]],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,8],[\\\"shared.reports.selectTheReportsThatNeedToBeExportedBelow\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,22],[[28,[37,22],[[30,0,[\\\"csvOptions\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"form-check mb-1\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"input\\\"],[24,0,\\\"form-check-input\\\"],[16,3,[30,2,[\\\"name\\\"]]],[16,\\\"checked\\\",[30,2,[\\\"value\\\"]]],[16,1,[30,3]],[24,4,\\\"checkbox\\\"],[4,[38,10],[\\\"change\\\",[28,[37,12],[[30,0,[\\\"toggleCsvOption\\\"]],[30,3]],null]],null],[12],[13],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[15,\\\"for\\\",[30,3]],[12],[1,[30,2,[\\\"name\\\"]]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[2,3]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"closeCSVExport\\\"]]],null],[12],[1,[28,[35,8],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,23],[[28,[37,11],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],false],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,8],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,8],[\\\"common.Export\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,23],[[28,[37,11],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],true],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,8],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,8],[\\\"shared.reports.Export and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"po\\\",\\\"option\\\",\\\"index\\\"],false,[\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"fn\\\",\\\"mut\\\",\\\"div\\\",\\\"label\\\",\\\"label-popup\\\",\\\"input\\\",\\\"report-engine-element-container\\\",\\\"modal-dialog\\\",\\\"p\\\",\\\"each\\\",\\\"-track-array\\\",\\\"pipe\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/projects/project/quote/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/projects/project/quote/task/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mb-2'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.quoteTable.last.value.name}}\n          </h2>\n        {{/if}}\n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n              disabled={{this.downloadAsPdf.isRunning}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as PDF'}}\n              {{/if}}\n            </button>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAndSavePdf)}}\n              disabled={{this.downloadAndSavePdf.isRunning}}\n            >\n              {{#if this.downloadAndSavePdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download and save PDF'}}\n              {{/if}}\n            </button>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (fn (mut this.csvExportOptions) true)}}\n            >\n              {{t 'shared.reports.Download as CSV'}}\n            </button>\n          </po.Content>\n        </PopOver>\n      </header>\n  \n      <div class='d-flex align-items-center my-3'>\n        <label class='d-flex align-items-center m-1'>\n          <LabelPopup\n            @text={{t\n              'shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications'\n            }}\n          >\n            {{t 'shared.reports.Report date'}}\n          </LabelPopup>\n          <input\n            class='form-control ms-1'\n            style='width: auto;'\n            placeholder={{t 'shared.reports.Pick a date'}}\n            type='date'\n            value={{this.selectedDate}}\n            {{on 'change' (perform this.onDateChange)}}\n          />\n        </label>\n      </div>\n      <div id='{{this.pdfExportTargetId}}'>\n        <ReportEngineElementContainer\n          @elements={{this.model.quoteTable.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  \n  {{#if this.csvExportOptions}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{this.closeCSVExport}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t 'shared.reports.selectTheReportsThatNeedToBeExportedBelow'}}\n        </p>\n        {{#each this.csvOptions as |option index|}}\n          <div class='form-check mb-1'>\n            <input\n              type='checkbox'\n              class='form-check-input'\n              name={{option.name}}\n              checked={{option.value}}\n              id={{index}}\n              {{on 'change' (fn this.toggleCsvOption index)}}\n            />\n            <label for={{index}}>{{option.name}}</label>\n          </div>\n        {{/each}}\n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' this.closeCSVExport}}\n        >{{t 'common.Cancel'}}</button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          disabled={{this.isExportDisabled}}\n          {{on\n            'click'\n            (pipe\n              (perform this.downloadAsCsv this.csvOptions false)\n              this.closeCSVExport\n            )\n          }}\n        >\n          {{#if this.downloadAsCsv.isRunning}}\n            {{t 'common.Exporting'}}&hellip;\n          {{else}}\n            {{t 'common.Export'}}\n          {{/if}}\n        </button>\n        {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n          <button\n            type='button'\n            class='btn btn-primary'\n            {{on\n              'click'\n              (pipe\n                (perform this.downloadAsCsv this.csvOptions true)\n                this.closeCSVExport\n              )\n            }}\n            disabled={{this.isExportDisabled}}\n          >\n            {{#if this.downloadAsCsv.isRunning}}\n              {{t 'common.Exporting'}}&hellip;\n            {{else}}\n              {{t 'shared.reports.Export and save CSV'}}\n            {{/if}}\n          </button>\n        {{/if}}\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"dlhkBIc9\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-2\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"quoteTable\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,8],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,10],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"csvExportOptions\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,10],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"d-flex align-items-center m-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,17],null,[[\\\"@text\\\"],[[28,[37,10],[\\\"shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,10],[\\\"shared.reports.Report date\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control ms-1\\\"],[24,5,\\\"width: auto;\\\"],[16,\\\"placeholder\\\",[28,[37,10],[\\\"shared.reports.Pick a date\\\"],null]],[16,2,[30,0,[\\\"selectedDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,12],[\\\"change\\\",[28,[37,13],[[30,0,[\\\"onDateChange\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[15,1,[29,[[30,0,[\\\"pdfExportTargetId\\\"]]]]],[12],[1,\\\"\\\\n      \\\"],[8,[39,19],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"quoteTable\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"csvExportOptions\\\"]],[[[1,\\\"  \\\"],[8,[39,20],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[30,0,[\\\"closeCSVExport\\\"]],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,10],[\\\"shared.reports.selectTheReportsThatNeedToBeExportedBelow\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,23],[[28,[37,23],[[30,0,[\\\"csvOptions\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"form-check mb-1\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"input\\\"],[24,0,\\\"form-check-input\\\"],[16,3,[30,2,[\\\"name\\\"]]],[16,\\\"checked\\\",[30,2,[\\\"value\\\"]]],[16,1,[30,3]],[24,4,\\\"checkbox\\\"],[4,[38,12],[\\\"change\\\",[28,[37,14],[[30,0,[\\\"toggleCsvOption\\\"]],[30,3]],null]],null],[12],[13],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[15,\\\"for\\\",[30,3]],[12],[1,[30,2,[\\\"name\\\"]]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[2,3]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[30,0,[\\\"closeCSVExport\\\"]]],null],[12],[1,[28,[35,10],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,24],[[28,[37,13],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],false],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,10],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,10],[\\\"common.Export\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,24],[[28,[37,13],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],true],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,10],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,10],[\\\"shared.reports.Export and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"po\\\",\\\"option\\\",\\\"index\\\"],false,[\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"page-title-breadcrumbs\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"fn\\\",\\\"mut\\\",\\\"label\\\",\\\"label-popup\\\",\\\"input\\\",\\\"report-engine-element-container\\\",\\\"modal-dialog\\\",\\\"p\\\",\\\"each\\\",\\\"-track-array\\\",\\\"pipe\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/projects/project/quote/task/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/scheduling\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if (media 'isDesktop')}}\n    <main class='page__container-content overflow-hidden'>\n      {{outlet}}\n    </main>\n  \n  {{else}}\n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component 'mobile-title-bar/burger-button'}}\n    />\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title='Scheduling'}}\n    />\n    <main class='page__container-content overflow-hidden h-100'>\n      {{outlet}}\n    </main>\n  {{/if}}\n  */\n  {\n    \"id\": \"QPVtVjaQ\",\n    \"block\": \"[[[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"  \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content overflow-hidden\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,4],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[8,[39,5],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/burger-button\\\",0,null,null]]],null],[1,\\\"\\\\n  \\\"],[8,[39,5],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[\\\"Scheduling\\\"]]]]],null],[1,\\\"\\\\n  \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content overflow-hidden h-100\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,4],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"media\\\",\\\"main\\\",\\\"component\\\",\\\"-outlet\\\",\\\"to-elsewhere\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/scheduling.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/scheduling/timeline\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! TODO implement when there are more than two pages }}\n  {{!-- {{#unless (media 'isDesktop')}}\n    {{to-elsewhere\n      named='mobile-title-bar-middle-content'\n      send=(component 'mobile-title-bar/page-title' title='Timeline')\n    }}\n  {{/unless}} --}}\n  <article class='d-flex flex-column h-100'>\n    <div class='px-4 pt-4'>\n      <header class='border-bottom mb-3 pb-2 d-flex align-items-center flex-wrap'>\n        {{#if (media 'isDesktop')}}\n          <h1 class='ms-0 me-3 my-2'>{{t 'common.Scheduling'}}</h1>\n        {{/if}}\n        <PowerSelectMultiple\n          @options={{this.model.projects.last.value}}\n          @searchEnabled={{true}}\n          @searchField='name'\n          @selected={{this.selectedProjects}}\n          @placeholder={{t 'common.Select a project'}}\n          @onChange={{this.onSetProjects}}\n          as |project|\n        >\n          {{project.name}}\n        </PowerSelectMultiple>\n      </header>\n    </div>\n  \n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else if this.model.projects.last.value.length}}\n      <div\n        class='d-flex align-items-center mx-4 mb-3 flex-wrap'\n        {{did-insert (perform this.initializeGanttChart)}}\n      >\n        {{#if this.ganttChartIsVisible}}\n          <div class='d-flex align-items-center flex-lg-grow-1 flex-wrap'>\n            <div class='m-1 d-flex' role='group'>\n              <div class='position-relative'>\n                {{#if this.undoCount}}\n                  <span\n                    class='position-absolute gantt-chart__badge top-0 start-100 translate-middle badge rounded-pill bg-danger'\n                  >\n                    {{this.undoCount}}\n                  </span>\n                {{/if}}\n  \n                <button\n                  type='button'\n                  title='Undo'\n                  class='btn btn-outline-secondary fs-4 p-2 d-flex align-items-center rounded-0 rounded-start'\n                  disabled={{or (not this.undoCount) this.projectIsSetting}}\n                  {{on 'click' this.onUndo}}\n                >\n                  <FaIcon @icon='undo' />\n                </button>\n              </div>\n  \n              <div class='position-relative'>\n                {{#if this.redoCount}}\n                  <span\n                    class='position-absolute gantt-chart__badge top-0 start-100 translate-middle badge rounded-pill bg-danger'\n                  >\n                    {{this.redoCount}}\n                  </span>\n                {{/if}}\n  \n                <button\n                  type='button'\n                  title='Redo'\n                  class='btn btn-outline-secondary fs-4 p-2 d-flex align-items-center rounded-0 rounded-end'\n                  style='margin-left: -1px;'\n                  disabled={{or (not this.redoCount) this.projectIsSetting}}\n                  {{on 'click' this.onRedo}}\n                >\n                  <FaIcon @icon='redo' />\n                </button>\n              </div>\n            </div>\n  \n            <div class='btn-group m-1' role='group'>\n              <button\n                type='button'\n                title='Expand all'\n                class='btn btn-outline-secondary fs-4 p-2 d-flex align-items-center'\n                disabled={{this.projectIsSetting}}\n                {{on 'click' this.onCollapseAllClick}}\n              >\n                <FaIcon @icon='angle-double-down' />\n              </button>\n              <button\n                type='button'\n                title='Collapse all'\n                class='btn btn-outline-secondary fs-4 p-2 d-flex align-items-center'\n                disabled={{this.projectIsSetting}}\n                {{on 'click' this.onExpandAllClick}}\n              >\n                <FaIcon @icon='angle-double-up' />\n              </button>\n            </div>\n  \n            <div class='btn-group m-1' role='group'>\n              <button\n                type='button'\n                title='Zoom in'\n                class='btn btn-outline-secondary fs-4 p-2 d-flex align-items-center'\n                disabled={{this.projectIsSetting}}\n                {{on 'click' this.onZoomInClick}}\n              >\n                <FaIcon @icon='search-plus' />\n              </button>\n  \n              <button\n                type='button'\n                title='Zoom out'\n                class='btn btn-outline-secondary fs-4 p-2 d-flex align-items-center'\n                disabled={{this.projectIsSetting}}\n                {{on 'click' this.onZoomOutClick}}\n              >\n                <FaIcon @icon='search-minus' />\n              </button>\n              <button\n                type='button'\n                title='Zoom to fit'\n                class='btn btn-outline-secondary fs-4 p-2 d-flex align-items-center'\n                disabled={{this.projectIsSetting}}\n                {{on 'click' this.onZoomToFitClick}}\n              >\n                <FaIcon @icon='compress-arrows-alt' />\n              </button>\n  \n            </div>\n  \n            <div class='btn-group m-1' role='group'>\n              <button\n                type='button'\n                title='Previous time span'\n                class='btn btn-outline-secondary fs-4 p-2 d-flex align-items-center'\n                disabled={{this.projectIsSetting}}\n                {{on 'click' this.onShiftPreviousClick}}\n              >\n                <FaIcon @icon='caret-left' />\n              </button>\n              <button\n                type='button'\n                title='Go to today'\n                class='btn btn-outline-secondary fs-4 p-2 d-flex align-items-center'\n                disabled={{this.projectIsSetting}}\n                {{on 'click' this.onGoToTodayClick}}\n              >\n                <FaIcon @icon='calendar-day' />\n              </button>\n              <button\n                type='button'\n                title='Next time span'\n                class='btn btn-outline-secondary fs-4 p-2 d-flex align-items-center'\n                disabled={{this.projectIsSetting}}\n                {{on 'click' this.onShiftNextClick}}\n              >\n                <FaIcon @icon='caret-right' />\n              </button>\n            </div>\n  \n            <div class='btn-group m-1' role='group'>\n              <button\n                type='button'\n                class='btn btn-outline-secondary fs-4 p-2 d-flex align-items-center'\n                disabled={{or\n                  (not this.ganttChartIsVisible)\n                  this.projectIsSetting\n                }}\n                {{on 'click' this.downloadPDF}}\n              >\n                <FaIcon @icon='download' />\n              </button>\n            </div>\n  \n            <div class='btn-group m-1 position-relative' role='group'>\n              <PopOver @direction='bottom-right' {{on 'click' this.noop}} as |po|>\n                <button\n                  type='button'\n                  class='btn btn-outline-secondary fs-4 p-2 d-flex align-items-center'\n                  disabled={{this.projectIsSetting}}\n                >\n                  <FaIcon @icon='cog' />\n                </button>\n                <po.Content>\n                  <label\n                    class='dropdown-item text-nowrap fs-5'\n                    {{on\n                      'click'\n                      (fn this.toggleSetting 'ganttCriticalPathsEnabled')\n                    }}\n                  >\n                    <input\n                      type='checkbox'\n                      style='pointer-events: none;'\n                      checked={{this.ganttCriticalPathsEnabled}}\n                    />\n                    {{t 'entity.builda-price.scheduling.timeline.Critical paths'}}\n                  </label>\n                  <label\n                    class='dropdown-item text-nowrap fs-5'\n                    {{on\n                      'click'\n                      (fn this.toggleSetting 'ganttDependenciesEnabled')\n                    }}\n                  >\n                    <input\n                      type='checkbox'\n                      style='pointer-events: none;'\n                      checked={{this.ganttDependenciesEnabled}}\n                    />\n                    {{t\n                      'entity.builda-price.scheduling.timeline.Draw dependencies'\n                    }}\n                  </label>\n                  <label\n                    class='dropdown-item text-nowrap fs-5'\n                    {{on 'click' (fn this.toggleSetting 'ganttFillTicksEnabled')}}\n                  >\n                    <input\n                      type='checkbox'\n                      style='pointer-events: none;'\n                      checked={{this.ganttFillTicksEnabled}}\n                    />\n                    {{t\n                      'entity.builda-price.scheduling.timeline.Stretch tasks to fill ticks'\n                    }}\n                  </label>\n                  <label\n                    class='dropdown-item text-nowrap fs-5'\n                    {{on\n                      'click'\n                      (fn this.toggleSetting 'ganttNonWorkingTimeEnabled')\n                    }}\n                  >\n                    <input\n                      type='checkbox'\n                      style='pointer-events: none;'\n                      checked={{this.ganttNonWorkingTimeEnabled}}\n                    />\n                    {{t\n                      'entity.builda-price.scheduling.timeline.Highlight non-working time'\n                    }}\n                  </label>\n                  <label\n                    class='dropdown-item text-nowrap fs-5'\n                    {{on\n                      'click'\n                      (fn this.toggleSetting 'ganttColumnLinesEnabled')\n                    }}\n                  >\n                    <input\n                      type='checkbox'\n                      style='pointer-events: none;'\n                      checked={{this.ganttColumnLinesEnabled}}\n                    />\n                    {{t\n                      'entity.builda-price.scheduling.timeline.Show column lines'\n                    }}\n                  </label>\n                  <label\n                    class='dropdown-item text-nowrap fs-5'\n                    {{on 'click' (fn this.toggleSetting 'ganttRollupsEnabled')}}\n                  >\n                    <input\n                      type='checkbox'\n                      style='pointer-events: none;'\n                      checked={{this.ganttRollupsEnabled}}\n                    />\n                    {{t 'entity.builda-price.scheduling.timeline.Show rollups'}}\n                  </label>\n                  <label\n                    class='dropdown-item text-nowrap fs-5'\n                    {{on\n                      'click'\n                      (fn this.toggleSetting 'ganttProgressLineEnabled')\n                    }}\n                  >\n                    <input\n                      type='checkbox'\n                      style='pointer-events: none;'\n                      checked={{this.ganttProgressLineEnabled}}\n                    />\n                    {{t\n                      'entity.builda-price.scheduling.timeline.Show progress lines'\n                    }}\n                  </label>\n                  <label\n                    class='dropdown-item text-nowrap fs-5'\n                    {{on\n                      'click'\n                      (fn this.toggleSetting 'ganttParentAreaEnabled')\n                    }}\n                  >\n                    <input\n                      type='checkbox'\n                      style='pointer-events: none;'\n                      checked={{this.ganttParentAreaEnabled}}\n                    />\n                    {{t\n                      'entity.builda-price.scheduling.timeline.Show parent area'\n                    }}\n                  </label>\n                  <label\n                    class='dropdown-item text-nowrap fs-5'\n                    {{on 'click' (fn this.toggleSetting 'ganttLabelsEnabled')}}\n                  >\n                    <input\n                      type='checkbox'\n                      style='pointer-events: none;'\n                      checked={{this.ganttLabelsEnabled}}\n                    />\n                    {{t 'entity.builda-price.scheduling.timeline.Task labels'}}\n                  </label>\n                  <label\n                    class='dropdown-item text-nowrap fs-5'\n                    {{on\n                      'click'\n                      (fn this.toggleSetting 'ganttSubGridConfigsEnabled')\n                    }}\n                  >\n                    <input\n                      type='checkbox'\n                      style='pointer-events: none;'\n                      checked={{this.ganttSubGridConfigsEnabled}}\n                    />\n                    {{t 'entity.builda-price.scheduling.timeline.Hide schedule'}}\n                  </label>\n                  <label\n                    class='dropdown-item text-nowrap fs-5'\n                    {{on 'click' (fn this.toggleSetting 'ganttTableCollapsed')}}\n                    data-test-hide-table-setting\n                  >\n                    <input\n                      type='checkbox'\n                      style='pointer-events: none;'\n                      checked={{this.ganttTableCollapsed}}\n                    />\n                    {{t 'entity.builda-price.scheduling.timeline.Hide table'}}\n                  </label>\n                </po.Content>\n              </PopOver>\n            </div>\n          </div>\n  \n          <span class='m-1'>\n            <input\n              class='form-control'\n              placeholder={{t 'common.Search'}}\n              aria-label='Search'\n              value={{this.searchString}}\n              {{on 'input' this.onSearchChange}}\n            />\n          </span>\n  \n          {{#if this.canUseImportAndManage}}\n            <span class='m-1'>\n              <button\n                type='button'\n                class='btn btn-primary'\n                disabled={{this.projectIsSetting}}\n                {{on 'click' (fn (mut this.taskImportModalVisible) true)}}\n              >\n                <FaIcon @icon='tasks' />&nbsp;{{t\n                  'entity.builda-price.scheduling.timeline.Import tasks'\n                }}\n              </button>\n            </span>\n          {{/if}}\n  \n          <span class='m-1'>\n            {{#if this.onSyncGantt.isRunning}}\n              <button type='button' class='btn btn-primary' disabled={{true}}>\n                <span class='spinner-border spinner-border-sm'></span>&nbsp;{{t\n                  'common.Saving'\n                }}&hellip;\n              </button>\n            {{else}}\n              <button\n                type='button'\n                disabled={{or\n                  (not this.undoCount)\n                  (or (not this.ganttChartIsVisible) this.projectIsSetting)\n                }}\n                class='btn btn-primary text-nowrap'\n                {{on 'click' (perform this.onSyncGantt)}}\n              >\n                <FaIcon @icon='save' />&nbsp;{{t 'common.Save'}}\n              </button>\n            {{/if}}\n          </span>\n        {{/if}}\n      </div>\n  \n      {{#if this.ganttChartIsVisible}}\n        <div id='gantt-chart-container' class='flex-fill'></div>\n      {{else}}\n        <div class='p-3 d-flex flex-column align-items-center'>\n          <FaIcon @icon='tasks' @size='2x' class='mt-0 mb-3' />\n          <p class='fs-4 mt-0 mb-3'>\n            <b>\n              {{t\n                'entity.builda-price.scheduling.timeline.Choose a project to view its timeline'\n              }}\n            </b>\n          </p>\n        </div>\n      {{/if}}\n    {{else}}\n      <div class='p-3 d-flex flex-column align-items-center'>\n        <FaIcon @icon='tasks' @size='2x' class='mt-0 mb-3' />\n        <p class='fs-4 mt-0 mb-3'>\n          <b>\n            {{t\n              'entity.builda-price.scheduling.timeline.There are no projects yet'\n            }}\n          </b>\n        </p>\n        {{#if (includes-feature-flags 'canManageProjects')}}\n          <LinkTo @route='entity.builda-price.projects' class='btn btn-primary'>\n            {{t 'entity.builda-price.scheduling.timeline.Create a project'}}\n          </LinkTo>\n        {{/if}}\n      </div>\n    {{/if}}\n  </article>\n  \n  {{#if this.taskImportModalVisible}}\n    <TimelineTaskImportModal\n      @projects={{this.manageableProjects}}\n      @onClose={{this.onTaskImportModalClose}}\n    />\n  {{/if}}\n  */\n  {\n    \"id\": \"WjhouiId\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"d-flex flex-column h-100\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"px-4 pt-4\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 pb-2 d-flex align-items-center flex-wrap\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h1\\\"],[14,0,\\\"ms-0 me-3 my-2\\\"],[12],[1,[28,[35,6],[\\\"common.Scheduling\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,7],null,[[\\\"@options\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@selected\\\",\\\"@placeholder\\\",\\\"@onChange\\\"],[[30,0,[\\\"model\\\",\\\"projects\\\",\\\"last\\\",\\\"value\\\"]],true,\\\"name\\\",[30,0,[\\\"selectedProjects\\\"]],[28,[37,6],[\\\"common.Select a project\\\"],null],[30,0,[\\\"onSetProjects\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,8],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"model\\\",\\\"projects\\\",\\\"last\\\",\\\"value\\\",\\\"length\\\"]],[[[1,\\\"    \\\"],[11,0],[24,0,\\\"d-flex align-items-center mx-4 mb-3 flex-wrap\\\"],[4,[38,9],[[28,[37,10],[[30,0,[\\\"initializeGanttChart\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"ganttChartIsVisible\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"d-flex align-items-center flex-lg-grow-1 flex-wrap\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"m-1 d-flex\\\"],[14,\\\"role\\\",\\\"group\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"position-relative\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"undoCount\\\"]],[[[1,\\\"                \\\"],[10,1],[14,0,\\\"position-absolute gantt-chart__badge top-0 start-100 translate-middle badge rounded-pill bg-danger\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[30,0,[\\\"undoCount\\\"]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n              \\\"],[11,\\\"button\\\"],[24,\\\"title\\\",\\\"Undo\\\"],[24,0,\\\"btn btn-outline-secondary fs-4 p-2 d-flex align-items-center rounded-0 rounded-start\\\"],[16,\\\"disabled\\\",[28,[37,13],[[28,[37,14],[[30,0,[\\\"undoCount\\\"]]],null],[30,0,[\\\"projectIsSetting\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[30,0,[\\\"onUndo\\\"]]],null],[12],[1,\\\"\\\\n                \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"undo\\\"]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[10,0],[14,0,\\\"position-relative\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"redoCount\\\"]],[[[1,\\\"                \\\"],[10,1],[14,0,\\\"position-absolute gantt-chart__badge top-0 start-100 translate-middle badge rounded-pill bg-danger\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[30,0,[\\\"redoCount\\\"]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n              \\\"],[11,\\\"button\\\"],[24,\\\"title\\\",\\\"Redo\\\"],[24,0,\\\"btn btn-outline-secondary fs-4 p-2 d-flex align-items-center rounded-0 rounded-end\\\"],[24,5,\\\"margin-left: -1px;\\\"],[16,\\\"disabled\\\",[28,[37,13],[[28,[37,14],[[30,0,[\\\"redoCount\\\"]]],null],[30,0,[\\\"projectIsSetting\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[30,0,[\\\"onRedo\\\"]]],null],[12],[1,\\\"\\\\n                \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"redo\\\"]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"btn-group m-1\\\"],[14,\\\"role\\\",\\\"group\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,\\\"title\\\",\\\"Expand all\\\"],[24,0,\\\"btn btn-outline-secondary fs-4 p-2 d-flex align-items-center\\\"],[16,\\\"disabled\\\",[30,0,[\\\"projectIsSetting\\\"]]],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[30,0,[\\\"onCollapseAllClick\\\"]]],null],[12],[1,\\\"\\\\n              \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"angle-double-down\\\"]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,\\\"title\\\",\\\"Collapse all\\\"],[24,0,\\\"btn btn-outline-secondary fs-4 p-2 d-flex align-items-center\\\"],[16,\\\"disabled\\\",[30,0,[\\\"projectIsSetting\\\"]]],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[30,0,[\\\"onExpandAllClick\\\"]]],null],[12],[1,\\\"\\\\n              \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"angle-double-up\\\"]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"btn-group m-1\\\"],[14,\\\"role\\\",\\\"group\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,\\\"title\\\",\\\"Zoom in\\\"],[24,0,\\\"btn btn-outline-secondary fs-4 p-2 d-flex align-items-center\\\"],[16,\\\"disabled\\\",[30,0,[\\\"projectIsSetting\\\"]]],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[30,0,[\\\"onZoomInClick\\\"]]],null],[12],[1,\\\"\\\\n              \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"search-plus\\\"]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[11,\\\"button\\\"],[24,\\\"title\\\",\\\"Zoom out\\\"],[24,0,\\\"btn btn-outline-secondary fs-4 p-2 d-flex align-items-center\\\"],[16,\\\"disabled\\\",[30,0,[\\\"projectIsSetting\\\"]]],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[30,0,[\\\"onZoomOutClick\\\"]]],null],[12],[1,\\\"\\\\n              \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"search-minus\\\"]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,\\\"title\\\",\\\"Zoom to fit\\\"],[24,0,\\\"btn btn-outline-secondary fs-4 p-2 d-flex align-items-center\\\"],[16,\\\"disabled\\\",[30,0,[\\\"projectIsSetting\\\"]]],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[30,0,[\\\"onZoomToFitClick\\\"]]],null],[12],[1,\\\"\\\\n              \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"compress-arrows-alt\\\"]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"btn-group m-1\\\"],[14,\\\"role\\\",\\\"group\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,\\\"title\\\",\\\"Previous time span\\\"],[24,0,\\\"btn btn-outline-secondary fs-4 p-2 d-flex align-items-center\\\"],[16,\\\"disabled\\\",[30,0,[\\\"projectIsSetting\\\"]]],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[30,0,[\\\"onShiftPreviousClick\\\"]]],null],[12],[1,\\\"\\\\n              \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"caret-left\\\"]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,\\\"title\\\",\\\"Go to today\\\"],[24,0,\\\"btn btn-outline-secondary fs-4 p-2 d-flex align-items-center\\\"],[16,\\\"disabled\\\",[30,0,[\\\"projectIsSetting\\\"]]],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[30,0,[\\\"onGoToTodayClick\\\"]]],null],[12],[1,\\\"\\\\n              \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"calendar-day\\\"]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,\\\"title\\\",\\\"Next time span\\\"],[24,0,\\\"btn btn-outline-secondary fs-4 p-2 d-flex align-items-center\\\"],[16,\\\"disabled\\\",[30,0,[\\\"projectIsSetting\\\"]]],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[30,0,[\\\"onShiftNextClick\\\"]]],null],[12],[1,\\\"\\\\n              \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"caret-right\\\"]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"btn-group m-1\\\"],[14,\\\"role\\\",\\\"group\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-outline-secondary fs-4 p-2 d-flex align-items-center\\\"],[16,\\\"disabled\\\",[28,[37,13],[[28,[37,14],[[30,0,[\\\"ganttChartIsVisible\\\"]]],null],[30,0,[\\\"projectIsSetting\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[30,0,[\\\"downloadPDF\\\"]]],null],[12],[1,\\\"\\\\n              \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"download\\\"]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"btn-group m-1 position-relative\\\"],[14,\\\"role\\\",\\\"group\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,17],[[4,[38,15],[\\\"click\\\",[30,0,[\\\"noop\\\"]]],null]],[[\\\"@direction\\\"],[\\\"bottom-right\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-outline-secondary fs-4 p-2 d-flex align-items-center\\\"],[15,\\\"disabled\\\",[30,0,[\\\"projectIsSetting\\\"]]],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"cog\\\"]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[8,[30,2,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[11,\\\"label\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[4,[38,15],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"toggleSetting\\\"]],\\\"ganttCriticalPathsEnabled\\\"],null]],null],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"input\\\"],[14,5,\\\"pointer-events: none;\\\"],[15,\\\"checked\\\",[30,0,[\\\"ganttCriticalPathsEnabled\\\"]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[1,[28,[35,6],[\\\"entity.builda-price.scheduling.timeline.Critical paths\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[11,\\\"label\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[4,[38,15],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"toggleSetting\\\"]],\\\"ganttDependenciesEnabled\\\"],null]],null],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"input\\\"],[14,5,\\\"pointer-events: none;\\\"],[15,\\\"checked\\\",[30,0,[\\\"ganttDependenciesEnabled\\\"]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[1,[28,[35,6],[\\\"entity.builda-price.scheduling.timeline.Draw dependencies\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[11,\\\"label\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[4,[38,15],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"toggleSetting\\\"]],\\\"ganttFillTicksEnabled\\\"],null]],null],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"input\\\"],[14,5,\\\"pointer-events: none;\\\"],[15,\\\"checked\\\",[30,0,[\\\"ganttFillTicksEnabled\\\"]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[1,[28,[35,6],[\\\"entity.builda-price.scheduling.timeline.Stretch tasks to fill ticks\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[11,\\\"label\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[4,[38,15],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"toggleSetting\\\"]],\\\"ganttNonWorkingTimeEnabled\\\"],null]],null],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"input\\\"],[14,5,\\\"pointer-events: none;\\\"],[15,\\\"checked\\\",[30,0,[\\\"ganttNonWorkingTimeEnabled\\\"]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[1,[28,[35,6],[\\\"entity.builda-price.scheduling.timeline.Highlight non-working time\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[11,\\\"label\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[4,[38,15],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"toggleSetting\\\"]],\\\"ganttColumnLinesEnabled\\\"],null]],null],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"input\\\"],[14,5,\\\"pointer-events: none;\\\"],[15,\\\"checked\\\",[30,0,[\\\"ganttColumnLinesEnabled\\\"]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[1,[28,[35,6],[\\\"entity.builda-price.scheduling.timeline.Show column lines\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[11,\\\"label\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[4,[38,15],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"toggleSetting\\\"]],\\\"ganttRollupsEnabled\\\"],null]],null],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"input\\\"],[14,5,\\\"pointer-events: none;\\\"],[15,\\\"checked\\\",[30,0,[\\\"ganttRollupsEnabled\\\"]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[1,[28,[35,6],[\\\"entity.builda-price.scheduling.timeline.Show rollups\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[11,\\\"label\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[4,[38,15],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"toggleSetting\\\"]],\\\"ganttProgressLineEnabled\\\"],null]],null],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"input\\\"],[14,5,\\\"pointer-events: none;\\\"],[15,\\\"checked\\\",[30,0,[\\\"ganttProgressLineEnabled\\\"]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[1,[28,[35,6],[\\\"entity.builda-price.scheduling.timeline.Show progress lines\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[11,\\\"label\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[4,[38,15],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"toggleSetting\\\"]],\\\"ganttParentAreaEnabled\\\"],null]],null],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"input\\\"],[14,5,\\\"pointer-events: none;\\\"],[15,\\\"checked\\\",[30,0,[\\\"ganttParentAreaEnabled\\\"]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[1,[28,[35,6],[\\\"entity.builda-price.scheduling.timeline.Show parent area\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[11,\\\"label\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[4,[38,15],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"toggleSetting\\\"]],\\\"ganttLabelsEnabled\\\"],null]],null],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"input\\\"],[14,5,\\\"pointer-events: none;\\\"],[15,\\\"checked\\\",[30,0,[\\\"ganttLabelsEnabled\\\"]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[1,[28,[35,6],[\\\"entity.builda-price.scheduling.timeline.Task labels\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[11,\\\"label\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[4,[38,15],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"toggleSetting\\\"]],\\\"ganttSubGridConfigsEnabled\\\"],null]],null],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"input\\\"],[14,5,\\\"pointer-events: none;\\\"],[15,\\\"checked\\\",[30,0,[\\\"ganttSubGridConfigsEnabled\\\"]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[1,[28,[35,6],[\\\"entity.builda-price.scheduling.timeline.Hide schedule\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[11,\\\"label\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,\\\"data-test-hide-table-setting\\\",\\\"\\\"],[4,[38,15],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"toggleSetting\\\"]],\\\"ganttTableCollapsed\\\"],null]],null],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"input\\\"],[14,5,\\\"pointer-events: none;\\\"],[15,\\\"checked\\\",[30,0,[\\\"ganttTableCollapsed\\\"]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[1,[28,[35,6],[\\\"entity.builda-price.scheduling.timeline.Hide table\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"]],[]]]]],[1,\\\"\\\\n            \\\"]],[2]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control\\\"],[16,\\\"placeholder\\\",[28,[37,6],[\\\"common.Search\\\"],null]],[24,\\\"aria-label\\\",\\\"Search\\\"],[16,2,[30,0,[\\\"searchString\\\"]]],[4,[38,15],[\\\"input\\\",[30,0,[\\\"onSearchChange\\\"]]],null],[12],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"canUseImportAndManage\\\"]],[[[1,\\\"          \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"projectIsSetting\\\"]]],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[28,[37,19],[[28,[37,21],[[30,0,[\\\"taskImportModalVisible\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n              \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"tasks\\\"]],null],[1,\\\" \\\"],[1,[28,[35,6],[\\\"entity.builda-price.scheduling.timeline.Import tasks\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"onSyncGantt\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary\\\"],[15,\\\"disabled\\\",true],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n              \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\" \\\"],[1,[28,[35,6],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[16,\\\"disabled\\\",[28,[37,13],[[28,[37,14],[[30,0,[\\\"undoCount\\\"]]],null],[28,[37,13],[[28,[37,14],[[30,0,[\\\"ganttChartIsVisible\\\"]]],null],[30,0,[\\\"projectIsSetting\\\"]]],null]],null]],[24,0,\\\"btn btn-primary text-nowrap\\\"],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[28,[37,10],[[30,0,[\\\"onSyncGantt\\\"]]],null]],null],[12],[1,\\\"\\\\n              \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"save\\\"]],null],[1,\\\" \\\"],[1,[28,[35,6],[\\\"common.Save\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"ganttChartIsVisible\\\"]],[[[1,\\\"      \\\"],[10,0],[14,1,\\\"gantt-chart-container\\\"],[14,0,\\\"flex-fill\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"p-3 d-flex flex-column align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,16],[[24,0,\\\"mt-0 mb-3\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"tasks\\\",\\\"2x\\\"]],null],[1,\\\"\\\\n        \\\"],[10,2],[14,0,\\\"fs-4 mt-0 mb-3\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"b\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"entity.builda-price.scheduling.timeline.Choose a project to view its timeline\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"p-3 d-flex flex-column align-items-center\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,16],[[24,0,\\\"mt-0 mb-3\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"tasks\\\",\\\"2x\\\"]],null],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"fs-4 mt-0 mb-3\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"b\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"entity.builda-price.scheduling.timeline.There are no projects yet\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,24],[\\\"canManageProjects\\\"],null],[[[1,\\\"        \\\"],[8,[39,25],[[24,0,\\\"btn btn-primary\\\"]],[[\\\"@route\\\"],[\\\"entity.builda-price.projects\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"entity.builda-price.scheduling.timeline.Create a project\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"taskImportModalVisible\\\"]],[[[1,\\\"  \\\"],[8,[39,26],null,[[\\\"@projects\\\",\\\"@onClose\\\"],[[30,0,[\\\"manageableProjects\\\"]],[30,0,[\\\"onTaskImportModalClose\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"project\\\",\\\"po\\\"],false,[\\\"article\\\",\\\"div\\\",\\\"header\\\",\\\"if\\\",\\\"media\\\",\\\"h1\\\",\\\"t\\\",\\\"power-select-multiple\\\",\\\"loading-icon\\\",\\\"did-insert\\\",\\\"perform\\\",\\\"span\\\",\\\"button\\\",\\\"or\\\",\\\"not\\\",\\\"on\\\",\\\"fa-icon\\\",\\\"pop-over\\\",\\\"label\\\",\\\"fn\\\",\\\"input\\\",\\\"mut\\\",\\\"p\\\",\\\"b\\\",\\\"includes-feature-flags\\\",\\\"link-to\\\",\\\"timeline-task-import-modal\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/scheduling/timeline.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/disabled\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='m-4 text-center'>\n    <h1 class='h1'>Your company has been disabled.</h1>\n    <p class='p'>This is usually due to a subscription cancellation or a\n      non-payment.</p>\n  \n    {{#if\n      (and\n        (includes-feature-flags 'userIsEntityAdmin') this.hasChargebeeSubscription\n      )\n    }}\n      <p class='p'>\n        <button\n          class='button'\n          type='button'\n          {{on 'click' this.openChargebee}}\n        >Manage your subscription</button>\n      </p>\n    {{else}}\n      <p class='p'>\n        If you believe this to be in error, please\n        <a\n          class='link'\n          href='https://buildaprice.zendesk.com/hc/en-us/requests/new'\n          target='_blank'\n          rel='noopener noreferrer'\n        >click here</a>\n        to contact support.\n      </p>\n      <button class='button' type='button' {{on 'click' this.logout}}>Sign out</button>\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"xLSsrIsY\",\n    \"block\": \"[[[10,0],[14,0,\\\"m-4 text-center\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1\\\"],[12],[1,\\\"Your company has been disabled.\\\"],[13],[1,\\\"\\\\n  \\\"],[10,2],[14,0,\\\"p\\\"],[12],[1,\\\"This is usually due to a subscription cancellation or a\\\\n    non-payment.\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,4],[[28,[37,5],[\\\"userIsEntityAdmin\\\"],null],[30,0,[\\\"hasChargebeeSubscription\\\"]]],null],[[[1,\\\"    \\\"],[10,2],[14,0,\\\"p\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"button\\\"],[24,4,\\\"button\\\"],[4,[38,7],[\\\"click\\\",[30,0,[\\\"openChargebee\\\"]]],null],[12],[1,\\\"Manage your subscription\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,2],[14,0,\\\"p\\\"],[12],[1,\\\"\\\\n      If you believe this to be in error, please\\\\n      \\\"],[10,3],[14,0,\\\"link\\\"],[14,6,\\\"https://buildaprice.zendesk.com/hc/en-us/requests/new\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[12],[1,\\\"click here\\\"],[13],[1,\\\"\\\\n      to contact support.\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"button\\\"],[24,4,\\\"button\\\"],[4,[38,7],[\\\"click\\\",[30,0,[\\\"logout\\\"]]],null],[12],[1,\\\"Sign out\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[],false,[\\\"div\\\",\\\"h1\\\",\\\"p\\\",\\\"if\\\",\\\"and\\\",\\\"includes-feature-flags\\\",\\\"button\\\",\\\"on\\\",\\\"a\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/disabled.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"LKh/yDVu\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if (media 'isDesktop')}}\n    <EmberWormhole @to='title-bar__content'>\n  \n      {{#if (includes-feature-flags 'isAPBCustomer')}}\n        <a\n          href='https://www.buildaprice.co.nz'\n          target='_blank'\n          rel='noopener noreferrer'\n          class='btn btn-light btn-sm'\n        >\n          <img width='20' src={{this.buildaPriceLogoSrc}} />&nbsp;&nbsp;Powered by\n          Builda Price\n        </a>\n      {{/if}}\n  \n      <div\n        class='flex-grow-1 d-flex align-items-center justify-content-end text-light'\n      >\n        {{! month picker }}\n        <div class='d-flex align-items-center me-3'>\n          <MonthPicker @period={{this.sessionData.period}} @dark={{true}} />\n        </div>\n  \n        {{! support button }}\n        <a\n          href='https://support.otbs.co.nz/hc/en-us/categories/202045998-Financial-Portal'\n          target='_blank'\n          class='d-flex align-items-center link-light title-bar__icon'\n          rel='noopener noreferrer'\n        >\n          <FaIcon @icon='question-circle' />\n        </a>\n      </div>\n    </EmberWormhole>\n  \n    <div class='page__container'>\n      <ModuleNavigation::Financials />\n  \n      <main class='page__container-content'>\n        {{outlet}}\n      </main>\n    </div>\n  {{else}}\n    <ToElsewhere\n      @named='mobile-title-bar-avatar-content'\n      @send={{component\n        'mobile-title-bar/avatar/avatar-link'\n        label='Support'\n        link='https://support.otbs.co.nz/hc/en-us/categories/202045998-Financial-Portal'\n      }}\n    />\n  \n    <ToElsewhere\n      @named='mobile-title-bar-right-content'\n      @send={{component\n        'month-picker'\n        period=this.sessionData.period\n        compact=true\n      }}\n    />\n  \n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component 'mobile-title-bar/burger-button'}}\n    />\n  \n    <ToElsewhere\n      @named='mobile-side-menu-content'\n      @send={{component 'module-navigation/financials'}}\n    />\n    <main class='page__container-content'>\n      {{outlet}}\n    </main>\n  {{/if}}\n  */\n  {\n    \"id\": \"2evM6Xty\",\n    \"block\": \"[[[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@to\\\"],[\\\"title-bar__content\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,3],[\\\"isAPBCustomer\\\"],null],[[[1,\\\"      \\\"],[10,3],[14,6,\\\"https://www.buildaprice.co.nz\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[14,0,\\\"btn btn-light btn-sm\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"img\\\"],[14,\\\"width\\\",\\\"20\\\"],[15,\\\"src\\\",[30,0,[\\\"buildaPriceLogoSrc\\\"]]],[12],[13],[1,\\\"  Powered by\\\\n        Builda Price\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"flex-grow-1 d-flex align-items-center justify-content-end text-light\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"      \\\"],[10,0],[14,0,\\\"d-flex align-items-center me-3\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,7],null,[[\\\"@period\\\",\\\"@dark\\\"],[[30,0,[\\\"sessionData\\\",\\\"period\\\"]],true]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"      \\\"],[10,3],[14,6,\\\"https://support.otbs.co.nz/hc/en-us/categories/202045998-Financial-Portal\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,0,\\\"d-flex align-items-center link-light title-bar__icon\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,8],null,[[\\\"@icon\\\"],[\\\"question-circle\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"page__container\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,9],null,null,null],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content\\\"],[12],[1,\\\"\\\\n      \\\"],[46,[28,[37,12],null,null],null,null,null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[8,[39,13],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-avatar-content\\\",[50,\\\"mobile-title-bar/avatar/avatar-link\\\",0,null,[[\\\"label\\\",\\\"link\\\"],[\\\"Support\\\",\\\"https://support.otbs.co.nz/hc/en-us/categories/202045998-Financial-Portal\\\"]]]]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,13],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-right-content\\\",[50,\\\"month-picker\\\",0,null,[[\\\"period\\\",\\\"compact\\\"],[[30,0,[\\\"sessionData\\\",\\\"period\\\"]],true]]]]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,13],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/burger-button\\\",0,null,null]]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,13],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-side-menu-content\\\",[50,\\\"module-navigation/financials\\\",0,null,null]]],null],[1,\\\"\\\\n  \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,12],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"media\\\",\\\"ember-wormhole\\\",\\\"includes-feature-flags\\\",\\\"a\\\",\\\"img\\\",\\\"div\\\",\\\"month-picker\\\",\\\"fa-icon\\\",\\\"module-navigation/financials\\\",\\\"main\\\",\\\"component\\\",\\\"-outlet\\\",\\\"to-elsewhere\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/chart-of-accounts-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"Ts96xiYg\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/chart-of-accounts-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/chart-of-accounts\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title='Chart of accounts'}}\n    />\n  {{/unless}}\n  {{#unless this.isLoading}}\n    <StickyTop>\n      <div class='width--medium'>\n        <LoadingButton\n          @action={{action 'save'}}\n          @class='button float-end coa-editor__save-button'\n          @isLoading={{this.isSaving}}\n        >Save</LoadingButton>\n      </div>\n    </StickyTop>\n  {{/unless}}\n  \n  <div class='width--medium m-4'>\n    {{#if (media 'isDesktop')}}\n      <header class='border-bottom mb-3'>\n        <h1 class='h1'>Chart of accounts</h1>\n      </header>\n    {{/if}}\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='coa-editor block-module'>\n        <header class='block-module__header'>\n          <h2 class='h2'>Profit &amp; Loss</h2>\n        </header>\n  \n        <CoaEditor\n          @class='profit-and-loss-list'\n          @accounts={{this.model}}\n          @nestedAccounts={{this.nestedAccounts.profit-and-loss}}\n          @deleteAccount={{action 'deleteAccount'}}\n          @createChildAccount={{action 'createChildAccount'}}\n        />\n  \n        <footer class='block-module__footer'>\n          <button\n            class='button button--add float-end'\n            type='button'\n            {{action 'addLine' 'profit-and-loss'}}\n          >Add account</button>\n        </footer>\n      </div>\n  \n      <div class='coa-editor block-module'>\n        <header class='block-module__header'>\n          <h2 class='h2'>Balance Sheet</h2>\n        </header>\n  \n        <CoaEditor\n          @class='balance-sheet-list'\n          @accounts={{this.model}}\n          @nestedAccounts={{this.nestedAccounts.balance-sheet}}\n          @deleteAccount={{action 'deleteAccount'}}\n          @createChildAccount={{action 'createChildAccount'}}\n        />\n  \n        <footer class='block-module__footer'>\n          <button\n            class='button button--add float-end'\n            type='button'\n            {{action 'addLine' 'balance-sheet'}}\n          >Add account</button>\n        </footer>\n      </div>\n  \n      <div class='coa-editor block-module'>\n        <header class='block-module__header'>\n          <h2 class='h2'>Other Data</h2>\n        </header>\n  \n        <CoaEditor\n          @class='other-data-list'\n          @accounts={{this.model}}\n          @nestedAccounts={{this.nestedAccounts.other-data}}\n          @deleteAccount={{action 'deleteAccount'}}\n          @createChildAccount={{action 'createChildAccount'}}\n        />\n  \n        <footer class='block-module__footer'>\n          <button\n            class='button button--add float-end'\n            type='button'\n            {{action 'addLine' 'other-data'}}\n          >Add account</button>\n        </footer>\n      </div>\n  \n      {{#if this.isDeleting}}\n        <ModalDialog\n          @overlayClass='modal'\n          @translucentOverlay={{true}}\n          @containerClass='block-module'\n          @onClose={{action 'cancelDelete'}}\n        >\n          <p>Are you sure you want to delete this account? This action cannot be\n            undone and could break users’ reports.</p>\n          <footer>\n            <button\n              class='float-end button button--delete'\n              type='button'\n              {{action 'doDelete' this.account}}\n            >Delete</button>\n            <button\n              class='float-end button button--plain button--spaced'\n              type='button'\n              {{action 'cancelDelete'}}\n            >{{t 'common.Cancel'}}</button>\n          </footer>\n        </ModalDialog>\n      {{/if}}\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"G/0s0QOp\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[\\\"Chart of accounts\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[51,[30,0,[\\\"isLoading\\\"]]],[[[1,\\\"  \\\"],[8,[39,4],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"width--medium\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,6],null,[[\\\"@action\\\",\\\"@class\\\",\\\"@isLoading\\\"],[[28,[37,7],[[30,0],\\\"save\\\"],null],\\\"button float-end coa-editor__save-button\\\",[30,0,[\\\"isSaving\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"Save\\\"]],[]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"width--medium m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1\\\"],[12],[1,\\\"Chart of accounts\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,11],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"coa-editor block-module\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"header\\\"],[14,0,\\\"block-module__header\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2\\\"],[12],[1,\\\"Profit & Loss\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,13],null,[[\\\"@class\\\",\\\"@accounts\\\",\\\"@nestedAccounts\\\",\\\"@deleteAccount\\\",\\\"@createChildAccount\\\"],[\\\"profit-and-loss-list\\\",[30,0,[\\\"model\\\"]],[30,0,[\\\"nestedAccounts\\\",\\\"profit-and-loss\\\"]],[28,[37,7],[[30,0],\\\"deleteAccount\\\"],null],[28,[37,7],[[30,0],\\\"createChildAccount\\\"],null]]],null],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add float-end\\\"],[24,4,\\\"button\\\"],[4,[38,7],[[30,0],\\\"addLine\\\",\\\"profit-and-loss\\\"],null],[12],[1,\\\"Add account\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"coa-editor block-module\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"header\\\"],[14,0,\\\"block-module__header\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2\\\"],[12],[1,\\\"Balance Sheet\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,13],null,[[\\\"@class\\\",\\\"@accounts\\\",\\\"@nestedAccounts\\\",\\\"@deleteAccount\\\",\\\"@createChildAccount\\\"],[\\\"balance-sheet-list\\\",[30,0,[\\\"model\\\"]],[30,0,[\\\"nestedAccounts\\\",\\\"balance-sheet\\\"]],[28,[37,7],[[30,0],\\\"deleteAccount\\\"],null],[28,[37,7],[[30,0],\\\"createChildAccount\\\"],null]]],null],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add float-end\\\"],[24,4,\\\"button\\\"],[4,[38,7],[[30,0],\\\"addLine\\\",\\\"balance-sheet\\\"],null],[12],[1,\\\"Add account\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"coa-editor block-module\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"header\\\"],[14,0,\\\"block-module__header\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2\\\"],[12],[1,\\\"Other Data\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,13],null,[[\\\"@class\\\",\\\"@accounts\\\",\\\"@nestedAccounts\\\",\\\"@deleteAccount\\\",\\\"@createChildAccount\\\"],[\\\"other-data-list\\\",[30,0,[\\\"model\\\"]],[30,0,[\\\"nestedAccounts\\\",\\\"other-data\\\"]],[28,[37,7],[[30,0],\\\"deleteAccount\\\"],null],[28,[37,7],[[30,0],\\\"createChildAccount\\\"],null]]],null],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add float-end\\\"],[24,4,\\\"button\\\"],[4,[38,7],[[30,0],\\\"addLine\\\",\\\"other-data\\\"],null],[12],[1,\\\"Add account\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isDeleting\\\"]],[[[1,\\\"      \\\"],[8,[39,16],null,[[\\\"@overlayClass\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\",\\\"@onClose\\\"],[\\\"modal\\\",true,\\\"block-module\\\",[28,[37,7],[[30,0],\\\"cancelDelete\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,2],[12],[1,\\\"Are you sure you want to delete this account? This action cannot be\\\\n          undone and could break users’ reports.\\\"],[13],[1,\\\"\\\\n        \\\"],[10,\\\"footer\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"float-end button button--delete\\\"],[24,4,\\\"button\\\"],[4,[38,7],[[30,0],\\\"doDelete\\\",[30,0,[\\\"account\\\"]]],null],[12],[1,\\\"Delete\\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"float-end button button--plain button--spaced\\\"],[24,4,\\\"button\\\"],[4,[38,7],[[30,0],\\\"cancelDelete\\\"],null],[12],[1,[28,[35,18],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[13]],[],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"sticky-top\\\",\\\"div\\\",\\\"loading-button\\\",\\\"action\\\",\\\"if\\\",\\\"header\\\",\\\"h1\\\",\\\"loading-icon\\\",\\\"h2\\\",\\\"coa-editor\\\",\\\"footer\\\",\\\"button\\\",\\\"modal-dialog\\\",\\\"p\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/chart-of-accounts.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/dashboard\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title='Dashboard'}}\n    />\n  {{/unless}}\n  <div class='m-4 dashboard'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <Dashboard::ModuleRows\n        @modules={{this.model.modules}}\n        @data={{this.model.configData}}\n      />\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"EgT+IJcZ\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[\\\"Dashboard\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,0],[14,0,\\\"m-4 dashboard\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,6],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[8,[39,7],null,[[\\\"@modules\\\",\\\"@data\\\"],[[30,0,[\\\"model\\\",\\\"modules\\\"]],[30,0,[\\\"model\\\",\\\"configData\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]]],[13]],[],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"div\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"dashboard/module-rows\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/dashboard.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/general-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"l96IA54h\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/general-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/general\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title='Reporting period'}}\n    />\n  {{/unless}}\n  <div class='width--medium m-4'>\n    {{#if (media 'isDesktop')}}\n      <header class='border-bottom mb-3'>\n        <h1 class='h1'>Reporting period</h1>\n      </header>\n    {{/if}}\n    <form class='block-module'>\n      <div class='tabular-form-controls'>\n        <div class='tabular-form-controls__row'>\n          <label\n            class='tabular-form-controls__cell tabular-form-controls__cell--label'\n            for='opening-balance-date-input'\n          >Opening Balance Date</label>\n  \n          <div class='tabular-form-controls__cell'>\n            <SelectInput\n              @value={{this.balanceDate}}\n              @action={{fn (mut this.balanceDate)}}\n              @id='opening-balance-date-input'\n              @class='select-box'\n              as |si|\n            >\n              {{#each this.months as |month|}}\n                <si.option @value={{month.value}}>{{month.name}}</si.option>\n              {{/each}}\n            </SelectInput>\n          </div>\n        </div>\n  \n        <div class='tabular-form-controls__row'>\n          <label\n            class='tabular-form-controls__cell tabular-form-controls__cell--label'\n          >\n            {{this.firstClosedPeriodLabel}}\n            <InfoPopup @text={{this.firstClosedPeriodExplanation}} />\n          </label>\n  \n          <div class='tabular-form-controls__cell'>\n            <SelectInput\n              @value={{this.firstClosedMonth}}\n              @action={{fn (mut this.firstClosedMonth)}}\n              @disabled={{this.openAllPeriods}}\n              @class='select-box'\n              as |si|\n            >\n              {{#each this.months as |month|}}\n                <si.option @value={{month.value}}>{{month.name}}</si.option>\n              {{/each}}\n            </SelectInput>\n  \n            <SelectInput\n              @value={{this.firstClosedYear}}\n              @action={{fn (mut this.firstClosedYear)}}\n              @disabled={{this.openAllPeriods}}\n              @class='select-box'\n              as |si|\n            >\n              {{#each this.years as |year|}}\n                <si.option @value={{year}}>{{year}}</si.option>\n              {{/each}}\n            </SelectInput>\n  \n            <label>\n              <Input @type='checkbox' @checked={{this.openAllPeriods}} />\n              Open All Periods\n            </label>\n          </div>\n        </div>\n      </div>\n  \n      <footer class='block-module__footer'>\n        <LoadingButton\n          @class='float-end button'\n          @isLoading={{this.isSaving}}\n          @action={{action 'save'}}\n          @buttonText='Save Entity'\n        />\n      </footer>\n    </form>\n  </div>\n  */\n  {\n    \"id\": \"FFRQhMl/\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[\\\"Reporting period\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,0],[14,0,\\\"width--medium m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1\\\"],[12],[1,\\\"Reporting period\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[10,\\\"form\\\"],[14,0,\\\"block-module\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"tabular-form-controls\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"tabular-form-controls__row\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"tabular-form-controls__cell tabular-form-controls__cell--label\\\"],[14,\\\"for\\\",\\\"opening-balance-date-input\\\"],[12],[1,\\\"Opening Balance Date\\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"tabular-form-controls__cell\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,10],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@id\\\",\\\"@class\\\"],[[30,0,[\\\"balanceDate\\\"]],[28,[37,11],[[28,[37,12],[[30,0,[\\\"balanceDate\\\"]]],null]],null],\\\"opening-balance-date-input\\\",\\\"select-box\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,14],[[28,[37,14],[[30,0,[\\\"months\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[[30,2,[\\\"value\\\"]]]],[[\\\"default\\\"],[[[[1,[30,2,[\\\"name\\\"]]]],[]]]]],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"          \\\"]],[1]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"tabular-form-controls__row\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"tabular-form-controls__cell tabular-form-controls__cell--label\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"firstClosedPeriodLabel\\\"]]],[1,\\\"\\\\n          \\\"],[8,[39,15],null,[[\\\"@text\\\"],[[30,0,[\\\"firstClosedPeriodExplanation\\\"]]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"tabular-form-controls__cell\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,10],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@disabled\\\",\\\"@class\\\"],[[30,0,[\\\"firstClosedMonth\\\"]],[28,[37,11],[[28,[37,12],[[30,0,[\\\"firstClosedMonth\\\"]]],null]],null],[30,0,[\\\"openAllPeriods\\\"]],\\\"select-box\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,14],[[28,[37,14],[[30,0,[\\\"months\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[[30,4,[\\\"value\\\"]]]],[[\\\"default\\\"],[[[[1,[30,4,[\\\"name\\\"]]]],[]]]]],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"          \\\"]],[3]]]]],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,10],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@disabled\\\",\\\"@class\\\"],[[30,0,[\\\"firstClosedYear\\\"]],[28,[37,11],[[28,[37,12],[[30,0,[\\\"firstClosedYear\\\"]]],null]],null],[30,0,[\\\"openAllPeriods\\\"]],\\\"select-box\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,14],[[28,[37,14],[[30,0,[\\\"years\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[8,[30,5,[\\\"option\\\"]],null,[[\\\"@value\\\"],[[30,6]]],[[\\\"default\\\"],[[[[1,[30,6]]],[]]]]],[1,\\\"\\\\n\\\"]],[6]],null],[1,\\\"          \\\"]],[5]]]]],[1,\\\"\\\\n\\\\n          \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,16],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"openAllPeriods\\\"]]]],null],[1,\\\"\\\\n            Open All Periods\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,18],null,[[\\\"@class\\\",\\\"@isLoading\\\",\\\"@action\\\",\\\"@buttonText\\\"],[\\\"float-end button\\\",[30,0,[\\\"isSaving\\\"]],[28,[37,19],[[30,0],\\\"save\\\"],null],\\\"Save Entity\\\"]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"si\\\",\\\"month\\\",\\\"si\\\",\\\"month\\\",\\\"si\\\",\\\"year\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"div\\\",\\\"if\\\",\\\"header\\\",\\\"h1\\\",\\\"form\\\",\\\"label\\\",\\\"select-input\\\",\\\"fn\\\",\\\"mut\\\",\\\"each\\\",\\\"-track-array\\\",\\\"info-popup\\\",\\\"input\\\",\\\"footer\\\",\\\"loading-button\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/general.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/groups-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"iSm8OxT1\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/groups-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/groups\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title='Groups'}}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    {{#if (media 'isDesktop')}}\n      <header class='border-bottom mb-3'>\n        <h1 class='h1'>Groups</h1>\n      </header>\n    {{/if}}\n    <header>\n      <ul class='tabs'>\n        <li class='tabs__tab'><LinkTo\n            @route='entity.financials.groups.membership'\n          >Membership</LinkTo></li>\n        <li class='tabs__tab'><LinkTo\n            @route='entity.financials.groups.access'\n          >Access</LinkTo></li>\n        <li class='tabs__tab'><LinkTo\n            @route='entity.financials.groups.order'\n          >Order</LinkTo></li>\n      </ul>\n    </header>\n  \n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      {{outlet}}\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"qxNjXtl1\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[\\\"Groups\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1\\\"],[12],[1,\\\"Groups\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[10,\\\"header\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"ul\\\"],[14,0,\\\"tabs\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"li\\\"],[14,0,\\\"tabs__tab\\\"],[12],[8,[39,10],null,[[\\\"@route\\\"],[\\\"entity.financials.groups.membership\\\"]],[[\\\"default\\\"],[[[[1,\\\"Membership\\\"]],[]]]]],[13],[1,\\\"\\\\n      \\\"],[10,\\\"li\\\"],[14,0,\\\"tabs__tab\\\"],[12],[8,[39,10],null,[[\\\"@route\\\"],[\\\"entity.financials.groups.access\\\"]],[[\\\"default\\\"],[[[[1,\\\"Access\\\"]],[]]]]],[13],[1,\\\"\\\\n      \\\"],[10,\\\"li\\\"],[14,0,\\\"tabs__tab\\\"],[12],[8,[39,10],null,[[\\\"@route\\\"],[\\\"entity.financials.groups.order\\\"]],[[\\\"default\\\"],[[[[1,\\\"Order\\\"]],[]]]]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,11],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[46,[28,[37,12],null,null],null,null,null],[1,\\\"\\\\n\\\"]],[]]],[13]],[],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"article\\\",\\\"if\\\",\\\"header\\\",\\\"h1\\\",\\\"ul\\\",\\\"li\\\",\\\"link-to\\\",\\\"loading-icon\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/groups.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/groups/membership-and-access\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if (eq this.propertyToToggle 'isInGroup')}}\n    <p>You are currently editing\n      <strong>group membership</strong>. A check mark means a branch’s data will\n      be included in that group’s averages or totals.</p>\n  {{else}}\n    <p>You are currently editing\n      <strong>group access</strong>. A check mark means a branch has permission to\n      view that group’s averages or totals.</p>\n  {{/if}}\n  \n  {{#unless this.noEditGroups}}\n    {{! If the noEditGroups option is set, do not allow editing or saving }}\n    <p>\n      <LoadingButton\n        @action={{action 'save'}}\n        @class='button'\n        @isLoading={{this.isSaving}}\n      >Save</LoadingButton>\n      <button\n        class='button button--add'\n        type='button'\n        {{action 'addNewGroup'}}\n      >New group</button>\n    </p>\n  {{else}}\n    {{! This is to make sure that there is enough space where the buttons would have been }}\n    <br /><br />\n  {{/unless}}\n  \n  <table class='shrink groups-editor data-table'>\n    <thead>\n      <tr>\n        <th>Branches</th>\n        {{#each this.model.groups as |group|}}\n          <th><label><Input\n                @value={{group.name}}\n                placeholder='Unnamed'\n              /></label></th>\n        {{/each}}\n      </tr>\n    </thead>\n  \n    <tbody>\n      {{#each this.tableContent as |branch|}}\n        <tr>\n          <td>{{branch.name}}</td>\n  \n          {{! custom }}\n          {{#each branch.groupData as |groupData|}}\n            <td><label><Input\n                  @type='checkbox'\n                  @checked={{groupData.propertyToToggle}}\n                /></label></td>\n          {{/each}}\n        </tr>\n      {{/each}}\n    </tbody>\n  \n    <tfoot>\n      <tr class='subdued'>\n        <td>Consolidation group</td>\n        {{#each this.model.groups as |group|}}\n          <td><label><Input\n                @type='checkbox'\n                @checked={{group.consolidation}}\n              /></label></td>\n        {{/each}}\n      </tr>\n  \n      {{#unless this.noEditGroups}}\n        {{! Do not allow deleting if noEditGroups is true }}\n        <tr class='subdued'>\n          <td>Delete group…</td>\n  \n          {{#each this.model.groups as |group|}}\n            <td><button\n                class='text-button text-button--delete'\n                type='button'\n                {{action 'deleteGroup' group}}\n              ><FaIcon @icon='times' /></button></td>\n          {{/each}}\n        </tr>\n      {{/unless}}\n    </tfoot>\n  </table>\n  \n  {{#if this.groupBeingDeleted}}\n    <ModalDialog\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n      @containerClass='block-module'\n      @onClose={{action 'cancelDeleteGroup'}}\n    >\n      <header class='block-module__header'>\n        <h2 class='h2'>Delete group</h2>\n      </header>\n  \n      <p>Are you sure you want to delete ‘{{this.groupBeingDeleted.name}}’?</p>\n  \n      <footer class='block-module__footer'>\n        <LoadingButton\n          @action={{action 'confirmDeleteGroup' this.groupBeingDeleted}}\n          @isLoading={{this.isDeleting}}\n          @class='float-end button button--delete'\n        >\n          Delete\n        </LoadingButton>\n        <button\n          class='float-end button button--plain button--spaced'\n          type='button'\n          {{action 'cancelDeleteGroup'}}\n        >{{t 'common.Cancel'}}</button>\n      </footer>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"dyX6nipJ\",\n    \"block\": \"[[[41,[28,[37,1],[[30,0,[\\\"propertyToToggle\\\"]],\\\"isInGroup\\\"],null],[[[1,\\\"  \\\"],[10,2],[12],[1,\\\"You are currently editing\\\\n    \\\"],[10,\\\"strong\\\"],[12],[1,\\\"group membership\\\"],[13],[1,\\\". A check mark means a branch’s data will\\\\n    be included in that group’s averages or totals.\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,2],[12],[1,\\\"You are currently editing\\\\n    \\\"],[10,\\\"strong\\\"],[12],[1,\\\"group access\\\"],[13],[1,\\\". A check mark means a branch has permission to\\\\n    view that group’s averages or totals.\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"noEditGroups\\\"]]],[[[1,\\\"  \\\"],[10,2],[12],[1,\\\"\\\\n    \\\"],[8,[39,5],null,[[\\\"@action\\\",\\\"@class\\\",\\\"@isLoading\\\"],[[28,[37,6],[[30,0],\\\"save\\\"],null],\\\"button\\\",[30,0,[\\\"isSaving\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"Save\\\"]],[]]]]],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add\\\"],[24,4,\\\"button\\\"],[4,[38,6],[[30,0],\\\"addNewGroup\\\"],null],[12],[1,\\\"New group\\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,\\\"br\\\"],[12],[13],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[10,\\\"table\\\"],[14,0,\\\"shrink groups-editor data-table\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"th\\\"],[12],[1,\\\"Branches\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,14],[[28,[37,14],[[30,0,[\\\"model\\\",\\\"groups\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,\\\"th\\\"],[12],[10,\\\"label\\\"],[12],[8,[39,16],[[24,\\\"placeholder\\\",\\\"Unnamed\\\"]],[[\\\"@value\\\"],[[30,1,[\\\"name\\\"]]]],null],[13],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,14],[[28,[37,14],[[30,0,[\\\"tableContent\\\"]]],null]],null],null,[[[1,\\\"      \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"td\\\"],[12],[1,[30,2,[\\\"name\\\"]]],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,14],[[28,[37,14],[[30,2,[\\\"groupData\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[10,\\\"td\\\"],[12],[10,\\\"label\\\"],[12],[8,[39,16],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,3,[\\\"propertyToToggle\\\"]]]],null],[13],[13],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"tfoot\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"tr\\\"],[14,0,\\\"subdued\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"td\\\"],[12],[1,\\\"Consolidation group\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,14],[[28,[37,14],[[30,0,[\\\"model\\\",\\\"groups\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,\\\"td\\\"],[12],[10,\\\"label\\\"],[12],[8,[39,16],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,4,[\\\"consolidation\\\"]]]],null],[13],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"noEditGroups\\\"]]],[[[1,\\\"      \\\"],[10,\\\"tr\\\"],[14,0,\\\"subdued\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"td\\\"],[12],[1,\\\"Delete group…\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,14],[[28,[37,14],[[30,0,[\\\"model\\\",\\\"groups\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[10,\\\"td\\\"],[12],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--delete\\\"],[24,4,\\\"button\\\"],[4,[38,6],[[30,0],\\\"deleteGroup\\\",[30,5]],null],[12],[8,[39,20],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[13],[13],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"groupBeingDeleted\\\"]],[[[1,\\\"  \\\"],[8,[39,21],null,[[\\\"@overlayClass\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\",\\\"@onClose\\\"],[\\\"modal\\\",true,\\\"block-module\\\",[28,[37,6],[[30,0],\\\"cancelDeleteGroup\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"block-module__header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2\\\"],[12],[1,\\\"Delete group\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,2],[12],[1,\\\"Are you sure you want to delete ‘\\\"],[1,[30,0,[\\\"groupBeingDeleted\\\",\\\"name\\\"]]],[1,\\\"’?\\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,5],null,[[\\\"@action\\\",\\\"@isLoading\\\",\\\"@class\\\"],[[28,[37,6],[[30,0],\\\"confirmDeleteGroup\\\",[30,0,[\\\"groupBeingDeleted\\\"]]],null],[30,0,[\\\"isDeleting\\\"]],\\\"float-end button button--delete\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        Delete\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"float-end button button--plain button--spaced\\\"],[24,4,\\\"button\\\"],[4,[38,6],[[30,0],\\\"cancelDeleteGroup\\\"],null],[12],[1,[28,[35,25],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"group\\\",\\\"branch\\\",\\\"groupData\\\",\\\"group\\\",\\\"group\\\"],false,[\\\"if\\\",\\\"eq\\\",\\\"p\\\",\\\"strong\\\",\\\"unless\\\",\\\"loading-button\\\",\\\"action\\\",\\\"button\\\",\\\"br\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"each\\\",\\\"-track-array\\\",\\\"label\\\",\\\"input\\\",\\\"tbody\\\",\\\"td\\\",\\\"tfoot\\\",\\\"fa-icon\\\",\\\"modal-dialog\\\",\\\"header\\\",\\\"h2\\\",\\\"footer\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/groups/membership-and-access.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/groups/order\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <p>Here you can edit the order in which groups will appear.</p>\n  \n  {{#unless this.noEditGroups}}\n    {{! Do not allow saving if noEditGroups is true }}\n    <LoadingButton\n      @isLoading={{this.isSaving}}\n      @class='button'\n      @action={{action 'save'}}\n    >Save</LoadingButton>\n  {{/unless}}\n  \n  {{#if this.model.groups}}\n    <SortableList\n      @content={{this.model.groups}}\n      @property='name'\n      @class='block'\n    />\n  {{else}}\n    <p class='ptl-placeholder'>There are no groups yet. Go to the\n      <LinkTo @route='entity.financials.groups.access'>memebership</LinkTo>\n      tab to add some.</p>\n  {{/if}}\n  */\n  {\n    \"id\": \"SyvPE4tB\",\n    \"block\": \"[[[10,2],[12],[1,\\\"Here you can edit the order in which groups will appear.\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"noEditGroups\\\"]]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@isLoading\\\",\\\"@class\\\",\\\"@action\\\"],[[30,0,[\\\"isSaving\\\"]],\\\"button\\\",[28,[37,3],[[30,0],\\\"save\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"Save\\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"groups\\\"]],[[[1,\\\"  \\\"],[8,[39,5],null,[[\\\"@content\\\",\\\"@property\\\",\\\"@class\\\"],[[30,0,[\\\"model\\\",\\\"groups\\\"]],\\\"name\\\",\\\"block\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,2],[14,0,\\\"ptl-placeholder\\\"],[12],[1,\\\"There are no groups yet. Go to the\\\\n    \\\"],[8,[39,6],null,[[\\\"@route\\\"],[\\\"entity.financials.groups.access\\\"]],[[\\\"default\\\"],[[[[1,\\\"memebership\\\"]],[]]]]],[1,\\\"\\\\n    tab to add some.\\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"p\\\",\\\"unless\\\",\\\"loading-button\\\",\\\"action\\\",\\\"if\\\",\\\"sortable-list\\\",\\\"link-to\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/groups/order.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/import\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title='Import'}}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    <div class='width--large'>\n      {{#if (media 'isDesktop')}}\n        <header class='border-bottom mb-3'>\n          <h1 class='h1'>Import</h1>\n        </header>\n      {{/if}}\n  \n      <nav class='steps step-{{this.step}}'>\n        <ol>\n          <li><LinkTo @route='entity.financials.import.start' class='link'>Select\n              period</LinkTo></li>\n          <li><LinkTo\n              @route='entity.financials.import.data'\n              @model='profit-and-loss'\n              class='link'\n            >Profit &amp; Loss</LinkTo></li>\n          <li><LinkTo\n              @route='entity.financials.import.data'\n              @model='balance-sheet'\n              class='link'\n            >Balance Sheet</LinkTo></li>\n  \n          {{#if this.hasOtherData}}\n            <li><LinkTo\n                @route='entity.financials.import.data'\n                @model='other-data'\n                class='link'\n              >Other Data</LinkTo></li>\n          {{/if}}\n        </ol>\n      </nav>\n  \n      <div>\n        {{outlet}}\n      </div>\n    </div>\n  </article>\n  */\n  {\n    \"id\": \"X0WCS1Fk\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[\\\"Import\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"width--large\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1\\\"],[12],[1,\\\"Import\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n    \\\"],[10,\\\"nav\\\"],[15,0,[29,[\\\"steps step-\\\",[30,0,[\\\"step\\\"]]]]],[12],[1,\\\"\\\\n      \\\"],[10,\\\"ol\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"li\\\"],[12],[8,[39,12],[[24,0,\\\"link\\\"]],[[\\\"@route\\\"],[\\\"entity.financials.import.start\\\"]],[[\\\"default\\\"],[[[[1,\\\"Select\\\\n            period\\\"]],[]]]]],[13],[1,\\\"\\\\n        \\\"],[10,\\\"li\\\"],[12],[8,[39,12],[[24,0,\\\"link\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.financials.import.data\\\",\\\"profit-and-loss\\\"]],[[\\\"default\\\"],[[[[1,\\\"Profit & Loss\\\"]],[]]]]],[13],[1,\\\"\\\\n        \\\"],[10,\\\"li\\\"],[12],[8,[39,12],[[24,0,\\\"link\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.financials.import.data\\\",\\\"balance-sheet\\\"]],[[\\\"default\\\"],[[[[1,\\\"Balance Sheet\\\"]],[]]]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"hasOtherData\\\"]],[[[1,\\\"          \\\"],[10,\\\"li\\\"],[12],[8,[39,12],[[24,0,\\\"link\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.financials.import.data\\\",\\\"other-data\\\"]],[[\\\"default\\\"],[[[[1,\\\"Other Data\\\"]],[]]]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[12],[1,\\\"\\\\n      \\\"],[46,[28,[37,13],null,null],null,null,null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"article\\\",\\\"div\\\",\\\"if\\\",\\\"header\\\",\\\"h1\\\",\\\"nav\\\",\\\"ol\\\",\\\"li\\\",\\\"link-to\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/import.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/import/data\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <h2>\n    {{this.stepName}}\n    for\n    {{moment-format this.sessionData.period 'MMMM YYYY' 'YYYY-MM'}}\n  </h2>\n  \n  <div\n    class='financial-data-viewer limit-large\n      {{if this.isConfiguring \"configuring\"}}'\n  >\n    <FinancialDataTable\n      @accountList={{this.accountList}}\n      @selectedSystem={{this.selectedSystem}}\n      @remap={{action 'remap'}}\n      @invertMap={{action 'invertMap'}}\n      @toggleConfigPane={{action 'toggleConfigPane'}}\n    />\n  \n    <FinancialDataImporter\n      @period={{this.period}}\n      @systems={{this.visibleSystems}}\n      @selectedSystem={{this.selectedSystem}}\n      @canChangeSystem={{this.sessionData.entity.canChangeSystem}}\n      @maps={{this.unusedMaps}}\n      @isImporting={{this.isImporting}}\n      @importData={{this.model.import}}\n      @selectSystem={{action 'selectSystem'}}\n      @import={{action 'import'}}\n      @remap={{action 'remap'}}\n      @save={{action 'save'}}\n      @advance={{action 'advance'}}\n    />\n  </div>\n  */\n  {\n    \"id\": \"x/DCldKH\",\n    \"block\": \"[[[10,\\\"h2\\\"],[12],[1,\\\"\\\\n  \\\"],[1,[30,0,[\\\"stepName\\\"]]],[1,\\\"\\\\n  for\\\\n  \\\"],[1,[28,[35,1],[[30,0,[\\\"sessionData\\\",\\\"period\\\"]],\\\"MMMM YYYY\\\",\\\"YYYY-MM\\\"],null]],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,0],[15,0,[29,[\\\"financial-data-viewer limit-large\\\\n    \\\",[52,[30,0,[\\\"isConfiguring\\\"]],\\\"configuring\\\"]]]],[12],[1,\\\"\\\\n  \\\"],[8,[39,4],null,[[\\\"@accountList\\\",\\\"@selectedSystem\\\",\\\"@remap\\\",\\\"@invertMap\\\",\\\"@toggleConfigPane\\\"],[[30,0,[\\\"accountList\\\"]],[30,0,[\\\"selectedSystem\\\"]],[28,[37,5],[[30,0],\\\"remap\\\"],null],[28,[37,5],[[30,0],\\\"invertMap\\\"],null],[28,[37,5],[[30,0],\\\"toggleConfigPane\\\"],null]]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,6],null,[[\\\"@period\\\",\\\"@systems\\\",\\\"@selectedSystem\\\",\\\"@canChangeSystem\\\",\\\"@maps\\\",\\\"@isImporting\\\",\\\"@importData\\\",\\\"@selectSystem\\\",\\\"@import\\\",\\\"@remap\\\",\\\"@save\\\",\\\"@advance\\\"],[[30,0,[\\\"period\\\"]],[30,0,[\\\"visibleSystems\\\"]],[30,0,[\\\"selectedSystem\\\"]],[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"canChangeSystem\\\"]],[30,0,[\\\"unusedMaps\\\"]],[30,0,[\\\"isImporting\\\"]],[30,0,[\\\"model\\\",\\\"import\\\"]],[28,[37,5],[[30,0],\\\"selectSystem\\\"],null],[28,[37,5],[[30,0],\\\"import\\\"],null],[28,[37,5],[[30,0],\\\"remap\\\"],null],[28,[37,5],[[30,0],\\\"save\\\"],null],[28,[37,5],[[30,0],\\\"advance\\\"],null]]],null],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"h2\\\",\\\"moment-format\\\",\\\"div\\\",\\\"if\\\",\\\"financial-data-table\\\",\\\"action\\\",\\\"financial-data-importer\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/import/data.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/import/done\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='block-module block-module--centered'>\n    <h3 class='h3'>Your import is complete!</h3>\n    <p>Go to the\n      <LinkTo @route='entity.financials.reports.kpis.index' class='link'>KPIs page</LinkTo>\n      to view analysis of these numbers.</p>\n  </div>\n  */\n  {\n    \"id\": \"QAGyQujn\",\n    \"block\": \"[[[10,0],[14,0,\\\"block-module block-module--centered\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3\\\"],[12],[1,\\\"Your import is complete!\\\"],[13],[1,\\\"\\\\n  \\\"],[10,2],[12],[1,\\\"Go to the\\\\n    \\\"],[8,[39,3],[[24,0,\\\"link\\\"]],[[\\\"@route\\\"],[\\\"entity.financials.reports.kpis.index\\\"]],[[\\\"default\\\"],[[[[1,\\\"KPIs page\\\"]],[]]]]],[1,\\\"\\\\n    to view analysis of these numbers.\\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"div\\\",\\\"h3\\\",\\\"p\\\",\\\"link-to\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/import/done.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/import/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"ItP0sLvo\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/import/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/import/start\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='block-module block-module--centered'>\n    <p>Get started by selecting a month to add or change.</p>\n    <p><MonthPicker @period={{this.sessionData.period}} /></p>\n    <button class='button' type='button' {{action 'advance'}}>Continue</button>\n  </div>\n  */\n  {\n    \"id\": \"HbUj3OTR\",\n    \"block\": \"[[[10,0],[14,0,\\\"block-module block-module--centered\\\"],[12],[1,\\\"\\\\n  \\\"],[10,2],[12],[1,\\\"Get started by selecting a month to add or change.\\\"],[13],[1,\\\"\\\\n  \\\"],[10,2],[12],[8,[39,2],null,[[\\\"@period\\\"],[[30,0,[\\\"sessionData\\\",\\\"period\\\"]]]],null],[13],[1,\\\"\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"button\\\"],[24,4,\\\"button\\\"],[4,[38,4],[[30,0],\\\"advance\\\"],null],[12],[1,\\\"Continue\\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"div\\\",\\\"p\\\",\\\"month-picker\\\",\\\"button\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/import/start.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/kpis-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"21lgQEX0\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/kpis-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/kpis\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title='KPIs'}}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    {{#if this.model.length}}<LoadingButton\n        @isLoading={{this.isSaving}}\n        @action={{action 'save'}}\n        @class='float-end button'\n      >Save</LoadingButton>{{/if}}\n    {{#if (media 'isDesktop')}}\n      <header class='border-bottom mb-3'>\n        <h1 class='h1'>KPIs</h1>\n      </header>\n    {{/if}}\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      {{#if this.model.length}}\n        <section class='master-detail'>\n          <aside class='master-detail__master'>\n            <SortableList @content={{this.model}} as |kpi|>\n              <li data-id={{kpi.id}}><LinkTo\n                  @route='entity.financials.kpis.kpi'\n                  @model={{kpi.id}}\n                >{{kpi.name}}</LinkTo></li>\n            </SortableList>\n          </aside>\n  \n          <article class='master-detail__detail'>\n            {{outlet}}\n          </article>\n        </section>\n      {{else}}\n        <div class='error-page error-page--no-data'>\n          <h2 class='h2 error-page__icon'><FaIcon @icon='info-circle' /></h2>\n          <h3 class='h3 error-page__title'>There are no KPIs set up.</h3>\n        </div>\n      {{/if}}\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"keyJndr0\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[\\\"KPIs\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n  \\\"],[41,[30,0,[\\\"model\\\",\\\"length\\\"]],[[[8,[39,6],null,[[\\\"@isLoading\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"isSaving\\\"]],[28,[37,7],[[30,0],\\\"save\\\"],null],\\\"float-end button\\\"]],[[\\\"default\\\"],[[[[1,\\\"Save\\\"]],[]]]]]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1\\\"],[12],[1,\\\"KPIs\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,10],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"model\\\",\\\"length\\\"]],[[[1,\\\"      \\\"],[10,\\\"section\\\"],[14,0,\\\"master-detail\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"aside\\\"],[14,0,\\\"master-detail__master\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,13],null,[[\\\"@content\\\"],[[30,0,[\\\"model\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[10,\\\"li\\\"],[15,\\\"data-id\\\",[30,1,[\\\"id\\\"]]],[12],[8,[39,15],null,[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.financials.kpis.kpi\\\",[30,1,[\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,[30,1,[\\\"name\\\"]]]],[]]]]],[13],[1,\\\"\\\\n          \\\"]],[1]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"article\\\"],[14,0,\\\"master-detail__detail\\\"],[12],[1,\\\"\\\\n          \\\"],[46,[28,[37,16],null,null],null,null,null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"error-page error-page--no-data\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2 error-page__icon\\\"],[12],[8,[39,19],null,[[\\\"@icon\\\"],[\\\"info-circle\\\"]],null],[13],[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3 error-page__title\\\"],[12],[1,\\\"There are no KPIs set up.\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]],[13]],[\\\"kpi\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"article\\\",\\\"if\\\",\\\"loading-button\\\",\\\"action\\\",\\\"header\\\",\\\"h1\\\",\\\"loading-icon\\\",\\\"section\\\",\\\"aside\\\",\\\"sortable-list\\\",\\\"li\\\",\\\"link-to\\\",\\\"-outlet\\\",\\\"div\\\",\\\"h2\\\",\\\"fa-icon\\\",\\\"h3\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/kpis.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/kpis/kpi\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <header>\n    <h1 class='h1'>{{this.model.name}}</h1>\n  </header>\n  \n  <form>\n    <div class='tabular-form-controls'>\n      <div class='tabular-form-controls__row'>\n        <label\n          class='tabular-form-controls__cell tabular-form-controls__cell--label'\n          for='kpi-name'\n        >Name</label>\n        <Input\n          @value={{this.model.name}}\n          class='tabular-form-controls__cell text-input text-input--wide'\n          id='kpi-name'\n        />\n      </div>\n  \n      <div class='tabular-form-controls__row'>\n        <label\n          class='tabular-form-controls__cell tabular-form-controls__cell--label'\n          for='kpi-intro-line'\n        >Intro line</label>\n        <Input\n          @value={{this.model.introLine}}\n          class='tabular-form-controls__cell text-input text-input--wide'\n          id='kpi-intro-line'\n        />\n      </div>\n  \n      <div class='tabular-form-controls__row'>\n        <label\n          for='kpi-active'\n          class='tabular-form-controls__cell tabular-form-controls__cell--label'\n        >Active</label>\n        <label\n          class='tabular-form-controls__cell tabular-form-controls__cell--info'\n        >\n          <Input\n            @type='checkbox'\n            id='kpi-active'\n            @checked={{this.model.active}}\n          />\n          Active KPIs are available on the Dashboard and the KPIs page.</label>\n      </div>\n  \n      <div class='tabular-form-controls__row'>\n        <label\n          class='tabular-form-controls__cell tabular-form-controls__cell--label'\n          for='kpi-description'\n        >Description</label>\n        <Textarea\n          @value={{this.model.description}}\n          class='tabular-form-controls__cell text-input text-input--wide'\n          id='kpi-description'\n          rows='8'\n        />\n        <MarkdownToHtml\n          @class='tabular-form-controls__cell markdown-output'\n          @markdown={{this.model.description}}\n        />\n      </div>\n  \n      <div class='tabular-form-controls__row'>\n        <label\n          class='tabular-form-controls__cell tabular-form-controls__cell--label'\n          for='kpi-strategies'\n        >Strategies</label>\n        <Textarea\n          @value={{this.model.strategies}}\n          class='tabular-form-controls__cell text-input text-input--wide'\n          id='kpi-strategies'\n          rows='8'\n        />\n        <MarkdownToHtml\n          @class='tabular-form-controls__cell markdown-output'\n          @markdown={{this.model.strategies}}\n        />\n      </div>\n    </div>\n  </form>\n  */\n  {\n    \"id\": \"bWrUjMDY\",\n    \"block\": \"[[[10,\\\"header\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1\\\"],[12],[1,[30,0,[\\\"model\\\",\\\"name\\\"]]],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,\\\"form\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"tabular-form-controls\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"tabular-form-controls__row\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"tabular-form-controls__cell tabular-form-controls__cell--label\\\"],[14,\\\"for\\\",\\\"kpi-name\\\"],[12],[1,\\\"Name\\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,5],[[24,0,\\\"tabular-form-controls__cell text-input text-input--wide\\\"],[24,1,\\\"kpi-name\\\"]],[[\\\"@value\\\"],[[30,0,[\\\"model\\\",\\\"name\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"tabular-form-controls__row\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"tabular-form-controls__cell tabular-form-controls__cell--label\\\"],[14,\\\"for\\\",\\\"kpi-intro-line\\\"],[12],[1,\\\"Intro line\\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,5],[[24,0,\\\"tabular-form-controls__cell text-input text-input--wide\\\"],[24,1,\\\"kpi-intro-line\\\"]],[[\\\"@value\\\"],[[30,0,[\\\"model\\\",\\\"introLine\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"tabular-form-controls__row\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"kpi-active\\\"],[14,0,\\\"tabular-form-controls__cell tabular-form-controls__cell--label\\\"],[12],[1,\\\"Active\\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"tabular-form-controls__cell tabular-form-controls__cell--info\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,5],[[24,1,\\\"kpi-active\\\"]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"model\\\",\\\"active\\\"]]]],null],[1,\\\"\\\\n        Active KPIs are available on the Dashboard and the KPIs page.\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"tabular-form-controls__row\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"tabular-form-controls__cell tabular-form-controls__cell--label\\\"],[14,\\\"for\\\",\\\"kpi-description\\\"],[12],[1,\\\"Description\\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,6],[[24,0,\\\"tabular-form-controls__cell text-input text-input--wide\\\"],[24,1,\\\"kpi-description\\\"],[24,\\\"rows\\\",\\\"8\\\"]],[[\\\"@value\\\"],[[30,0,[\\\"model\\\",\\\"description\\\"]]]],null],[1,\\\"      \\\"],[8,[39,7],null,[[\\\"@class\\\",\\\"@markdown\\\"],[\\\"tabular-form-controls__cell markdown-output\\\",[30,0,[\\\"model\\\",\\\"description\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"tabular-form-controls__row\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"tabular-form-controls__cell tabular-form-controls__cell--label\\\"],[14,\\\"for\\\",\\\"kpi-strategies\\\"],[12],[1,\\\"Strategies\\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,6],[[24,0,\\\"tabular-form-controls__cell text-input text-input--wide\\\"],[24,1,\\\"kpi-strategies\\\"],[24,\\\"rows\\\",\\\"8\\\"]],[[\\\"@value\\\"],[[30,0,[\\\"model\\\",\\\"strategies\\\"]]]],null],[1,\\\"      \\\"],[8,[39,7],null,[[\\\"@class\\\",\\\"@markdown\\\"],[\\\"tabular-form-controls__cell markdown-output\\\",[30,0,[\\\"model\\\",\\\"strategies\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"header\\\",\\\"h1\\\",\\\"form\\\",\\\"div\\\",\\\"label\\\",\\\"input\\\",\\\"textarea\\\",\\\"markdown-to-html\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/kpis/kpi.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/planning/strategies\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title='Strategies'}}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    {{#if (media 'isDesktop')}}\n      <header class='border-bottom mb-3'>\n        <button\n          class='float-end button'\n          type='button'\n          {{action 'save'}}\n        >Save</button>\n        <h1 class='h1'>Strategies</h1>\n      </header>\n    {{/if}}\n  \n    <div class='width--large'>\n      <section>\n        <h2 class='h2'>Finances</h2>\n  \n        <StrategiesTable\n          @targets={{this.accountTargets}}\n          @metrics={{this.untargetedAccounts}}\n          @addTarget={{action 'addTarget'}}\n          @removeTarget={{action 'removeTarget'}}\n        />\n      </section>\n  \n      <section>\n        <h2 class='h2'>KPIs</h2>\n  \n        <StrategiesTable\n          @targets={{this.kpiTargets}}\n          @metrics={{this.untargetedKPIs}}\n          @includeBreakdowns={{true}}\n          @purgeEmptyBreakdownLines={{action 'purgeEmptyBreakdownLines'}}\n          @addTarget={{action 'addTarget'}}\n          @removeTarget={{action 'removeTarget'}}\n        />\n      </section>\n    </div>\n  </article>\n  */\n  {\n    \"id\": \"Nwzz8ozm\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[\\\"Strategies\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"float-end button\\\"],[24,4,\\\"button\\\"],[4,[38,8],[[30,0],\\\"save\\\"],null],[12],[1,\\\"Save\\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1\\\"],[12],[1,\\\"Strategies\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"width--large\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"section\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2\\\"],[12],[1,\\\"Finances\\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,13],null,[[\\\"@targets\\\",\\\"@metrics\\\",\\\"@addTarget\\\",\\\"@removeTarget\\\"],[[30,0,[\\\"accountTargets\\\"]],[30,0,[\\\"untargetedAccounts\\\"]],[28,[37,8],[[30,0],\\\"addTarget\\\"],null],[28,[37,8],[[30,0],\\\"removeTarget\\\"],null]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"section\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2\\\"],[12],[1,\\\"KPIs\\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,13],null,[[\\\"@targets\\\",\\\"@metrics\\\",\\\"@includeBreakdowns\\\",\\\"@purgeEmptyBreakdownLines\\\",\\\"@addTarget\\\",\\\"@removeTarget\\\"],[[30,0,[\\\"kpiTargets\\\"]],[30,0,[\\\"untargetedKPIs\\\"]],true,[28,[37,8],[[30,0],\\\"purgeEmptyBreakdownLines\\\"],null],[28,[37,8],[[30,0],\\\"addTarget\\\"],null],[28,[37,8],[[30,0],\\\"removeTarget\\\"],null]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"article\\\",\\\"if\\\",\\\"header\\\",\\\"button\\\",\\\"action\\\",\\\"h1\\\",\\\"div\\\",\\\"section\\\",\\\"h2\\\",\\\"strategies-table\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/planning/strategies.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/reports\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"07pKVGDn\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/reports.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/reports/general-ledger/balance-sheet-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"tGMVp2Xv\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/reports/general-ledger/balance-sheet-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/reports/general-ledger/balance-sheet\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title='Balance sheet'}}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    <header class='border-bottom mb-3'>\n      {{#if (or this.model.groupsRedacted this.model.ownDataWithheld)}}\n        <div class='data-withheld-notice-container'>\n          {{#if this.model.groupsRedacted}}\n            <GroupsRedactedNotice />\n          {{/if}}\n  \n          {{#if this.model.ownDataWithheld}}\n            <DataWithheldNotice />\n          {{/if}}\n        </div>\n      {{/if}}\n  \n      {{#if (media 'isDesktop')}}\n        <button\n          class='text-button text-button--download float-end'\n          type='button'\n          {{action 'downloadSheet'}}\n        >\n          Download report as CSV\n        </button>\n        <h1 class='h1'>Balance Sheet</h1>\n      {{/if}}\n    </header>\n  \n    {{#if this.model.entities}}\n      <table class='data-table financials-table'>\n        <thead>\n          <tr>\n            <th>Balance Sheet</th>\n  \n            {{#each this.orderedEntities as |entity|}}\n              <th class='financials-table__heading'>\n                <a\n                  {{action 'shiftFarLeft' entity}}\n                  class='financials-table__heading-link'\n                  title='Click to put this column first'\n                >\n                  {{entity.name}}\n                  {{if\n                    (is-array entity.members)\n                    (if entity.consolidation 'total' 'avg')\n                  }}\n                  {{#if entity.includedEntities}}\n                    <br />\n                    ({{entity.includedEntities}}\n                    /\n                    {{entity.members.length}}\n                    entities)\n                  {{/if}}\n                </a>\n              </th>\n            {{/each}}\n          </tr>\n        </thead>\n        <tbody>\n          <FinancialsTableSection\n            @canSeeBreakdown={{this.canSeeBreakdown}}\n            @toggleShowChildren={{action 'toggleShowChildren'}}\n            @toggleShowBreakdown={{action 'toggleShowBreakdown'}}\n            @accounts={{this.balanceSheet}}\n            @showMonth={{true}}\n            @showYTD={{false}}\n            @totalsRow='Net Equity'\n            @hasGroups={{true}}\n          />\n        </tbody>\n      </table>\n  \n      <p class='ptl-placeholder'>Click on any table column heading to put that\n        column first.</p>\n  \n      <p class='ptl-placeholder limit-small'>* Numbers in this row will be sum of\n        its subsections for a single branch but not necessarily for groups. More\n        information can be found on the\n        <a\n          href='http://support.otbs.co.nz/hc/en-us/sections/203085588'\n          class='link'\n        >support site.</a></p>\n  \n    {{else}}\n      <div class='error-page error-page--no-data'>\n        <h2 class='h2 error-page__icon'><FaIcon @icon='info-circle' /></h2>\n        <h3 class='h3 error-page__title'>There are no groups accessible.</h3>\n        <p>If you believe you have received this message in error, please check\n          with your system administrator.</p>\n      </div>\n    {{/if}}\n  \n    {{#if this.showBreakdown}}\n      <MetricBreakdown\n        @selectedMetric={{this.selectedMetric}}\n        @selectedGroup={{this.selectedGroup}}\n        @periodType={{this.selectedPeriodType}}\n        @overlay-class='breakdown'\n        @clickOutsideToClose={{true}}\n        @translucentOverlay={{true}}\n        @close={{action 'toggleShowBreakdown'}}\n        @accountType='balances'\n      />\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"meYSuJbW\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[\\\"Balance sheet\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[[30,0,[\\\"model\\\",\\\"groupsRedacted\\\"]],[30,0,[\\\"model\\\",\\\"ownDataWithheld\\\"]]],null],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"data-withheld-notice-container\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"groupsRedacted\\\"]],[[[1,\\\"          \\\"],[8,[39,9],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"ownDataWithheld\\\"]],[[[1,\\\"          \\\"],[8,[39,10],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--download float-end\\\"],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],\\\"downloadSheet\\\"],null],[12],[1,\\\"\\\\n        Download report as CSV\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1\\\"],[12],[1,\\\"Balance Sheet\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"entities\\\"]],[[[1,\\\"    \\\"],[10,\\\"table\\\"],[14,0,\\\"data-table financials-table\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"th\\\"],[12],[1,\\\"Balance Sheet\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,19],[[28,[37,19],[[30,0,[\\\"orderedEntities\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"\\\\n              \\\"],[11,3],[24,0,\\\"financials-table__heading-link\\\"],[24,\\\"title\\\",\\\"Click to put this column first\\\"],[4,[38,12],[[30,0],\\\"shiftFarLeft\\\",[30,1]],null],[12],[1,\\\"\\\\n                \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n                \\\"],[1,[52,[28,[37,21],[[30,1,[\\\"members\\\"]]],null],[52,[30,1,[\\\"consolidation\\\"]],\\\"total\\\",\\\"avg\\\"]]],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"includedEntities\\\"]],[[[1,\\\"                  \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                  (\\\"],[1,[30,1,[\\\"includedEntities\\\"]]],[1,\\\"\\\\n                  /\\\\n                  \\\"],[1,[30,1,[\\\"members\\\",\\\"length\\\"]]],[1,\\\"\\\\n                  entities)\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,24],null,[[\\\"@canSeeBreakdown\\\",\\\"@toggleShowChildren\\\",\\\"@toggleShowBreakdown\\\",\\\"@accounts\\\",\\\"@showMonth\\\",\\\"@showYTD\\\",\\\"@totalsRow\\\",\\\"@hasGroups\\\"],[[30,0,[\\\"canSeeBreakdown\\\"]],[28,[37,12],[[30,0],\\\"toggleShowChildren\\\"],null],[28,[37,12],[[30,0],\\\"toggleShowBreakdown\\\"],null],[30,0,[\\\"balanceSheet\\\"]],true,false,\\\"Net Equity\\\",true]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,2],[14,0,\\\"ptl-placeholder\\\"],[12],[1,\\\"Click on any table column heading to put that\\\\n      column first.\\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,2],[14,0,\\\"ptl-placeholder limit-small\\\"],[12],[1,\\\"* Numbers in this row will be sum of\\\\n      its subsections for a single branch but not necessarily for groups. More\\\\n      information can be found on the\\\\n      \\\"],[10,3],[14,6,\\\"http://support.otbs.co.nz/hc/en-us/sections/203085588\\\"],[14,0,\\\"link\\\"],[12],[1,\\\"support site.\\\"],[13],[13],[1,\\\"\\\\n\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"error-page error-page--no-data\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2 error-page__icon\\\"],[12],[8,[39,27],null,[[\\\"@icon\\\"],[\\\"info-circle\\\"]],null],[13],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3 error-page__title\\\"],[12],[1,\\\"There are no groups accessible.\\\"],[13],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"If you believe you have received this message in error, please check\\\\n        with your system administrator.\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showBreakdown\\\"]],[[[1,\\\"    \\\"],[8,[39,29],null,[[\\\"@selectedMetric\\\",\\\"@selectedGroup\\\",\\\"@periodType\\\",\\\"@overlay-class\\\",\\\"@clickOutsideToClose\\\",\\\"@translucentOverlay\\\",\\\"@close\\\",\\\"@accountType\\\"],[[30,0,[\\\"selectedMetric\\\"]],[30,0,[\\\"selectedGroup\\\"]],[30,0,[\\\"selectedPeriodType\\\"]],\\\"breakdown\\\",true,true,[28,[37,12],[[30,0],\\\"toggleShowBreakdown\\\"],null],\\\"balances\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[13]],[\\\"entity\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"article\\\",\\\"header\\\",\\\"if\\\",\\\"or\\\",\\\"div\\\",\\\"groups-redacted-notice\\\",\\\"data-withheld-notice\\\",\\\"button\\\",\\\"action\\\",\\\"h1\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"each\\\",\\\"-track-array\\\",\\\"a\\\",\\\"is-array\\\",\\\"br\\\",\\\"tbody\\\",\\\"financials-table-section\\\",\\\"p\\\",\\\"h2\\\",\\\"fa-icon\\\",\\\"h3\\\",\\\"metric-breakdown\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/reports/general-ledger/balance-sheet.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/reports/general-ledger/itm-profit-and-loss-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"m4XRRNIb\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/reports/general-ledger/itm-profit-and-loss-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/reports/general-ledger/itm-profit-and-loss\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title='ITM custom P&L'}}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    <header class='border-bottom mb-3'>\n      {{#if (or this.model.groupsRedacted this.model.ownDataWithheld)}}\n        <div class='data-withheld-notice-container'>\n          {{#if this.model.groupsRedacted}}\n            <GroupsRedactedNotice />\n          {{/if}}\n  \n          {{#if this.model.ownDataWithheld}}\n            <DataWithheldNotice />\n          {{/if}}\n        </div>\n      {{/if}}\n  \n      {{#if (media 'isDesktop')}}\n        <button\n          class='text-button text-button--download float-end'\n          type='button'\n          {{action 'downloadSheet'}}\n        >\n          Download report as CSV\n        </button>\n      {{/if}}\n  \n      <nav class='tabs'>\n        <ul class='tabs__group'>\n          <li class='tabs__tab'>\n            <a\n              class='{{if this.profitAndLossTableVisible \"active\"}}'\n              {{action 'setProfitAndLossTableVisible' true}}\n            >\n              Profit And Loss\n            </a>\n          </li>\n          <li class='tabs__tab'>\n            <a\n              class='{{unless this.profitAndLossTableVisible \"active\"}}'\n              {{action 'setProfitAndLossTableVisible' false}}\n            >\n              Expenses Table\n            </a>\n          </li>\n        </ul>\n      </nav>\n    </header>\n  \n    <div class='itm-financials-controls'>\n      <div class='itm-financials-controls__section'>\n        <span class='itm-financials-controls__section__title'>\n          Stores:\n        </span>\n        <PowerSelectMultiple\n          @options={{this.allowedEntities}}\n          @selected={{this.selectedEntities}}\n          @searchEnabled={{true}}\n          @searchField='name'\n          @placeholder='Click to add a store…'\n          @onChange={{action 'selectEntity'}}\n          as |entity|\n        >\n          {{entity.name}}\n        </PowerSelectMultiple>\n  \n        <span class='itm-financials-controls__section__title--last'>\n          Groups:\n        </span>\n        <PowerSelectMultiple\n          @options={{this.allowedGroups}}\n          @selected={{this.selectedGroups}}\n          @searchEnabled={{true}}\n          @searchField='name'\n          @placeholder='Click to add a group…'\n          @onChange={{action 'selectGroup'}}\n          as |group|\n        >\n          {{group.name}}\n        </PowerSelectMultiple>\n      </div>\n  \n      <div class='itm-financials-controls__section'>\n        {{! Only show this option if the user is an entity admin }}\n        {{#if (includes-feature-flags 'userIsEntityAdmin')}}\n          <button\n            class='button itm-financials-controls__invite-button'\n            type='button'\n            {{action this.set 'userCreateModalVisible' true}}\n          >\n            Invite Someone to Compare\n          </button>\n        {{/if}}\n  \n        <OverlaidDropdown\n          @buttonText='Filter Table'\n          @title='Filters'\n          @align='right'\n          @buttonClasses='button button--secondary file-input-button'\n        >\n          <label\n            class='overlaid-dropdown__option'\n            {{action 'toggleMonthVisible'}}\n          >\n            {{#if this.monthVisible}}\n              <FaIcon @icon='check-square' @fixedWidth={{true}} />\n            {{else}}\n              <FaIcon @icon='square' @prefix='far' @fixedWidth={{true}} />\n            {{/if}}\n            Show Month values\n          </label>\n  \n          <label class='overlaid-dropdown__option' {{action 'toggleYtdVisible'}}>\n            {{#if this.ytdVisible}}\n              <FaIcon @icon='check-square' @fixedWidth={{true}} />\n            {{else}}\n              <FaIcon @icon='square' @prefix='far' @fixedWidth={{true}} />\n            {{/if}}\n            Show YTD values\n          </label>\n  \n          <label\n            class='overlaid-dropdown__option'\n            {{action this.toggleProperty 'lastYearVisible'}}\n          >\n            {{#if this.lastYearVisible}}\n              <FaIcon @icon='check-square' @fixedWidth={{true}} />\n            {{else}}\n              <FaIcon @icon='square' @prefix='far' @fixedWidth={{true}} />\n            {{/if}}\n            Show last year values\n          </label>\n  \n          <label\n            class='overlaid-dropdown__option'\n            {{action this.toggleProperty 'percentageVisible'}}\n          >\n            {{#if this.percentageVisible}}\n              <FaIcon @icon='check-square' @fixedWidth={{true}} />\n            {{else}}\n              <FaIcon @icon='square' @prefix='far' @fixedWidth={{true}} />\n            {{/if}}\n            Show % of values\n          </label>\n        </OverlaidDropdown>\n      </div>\n    </div>\n  \n    {{#if this.model}}\n      {{#if this.profitAndLossTableVisible}}\n        <table class='data-table financials-table'>\n          <thead>\n            <tr>\n              <th class='financials-table__heading' colspan='2'></th>\n              {{#if this.sessionData.entity.parent.id}}\n                <th\n                  class='financials-table__heading'\n                  colspan={{this.financialsTableColspan}}\n                >\n                  <span\n                    class='financials-table__heading--center'\n                  >{{this.sessionData.entity.name}}</span>\n                </th>\n              {{/if}}\n              {{#each this.selectedEntities as |entity|}}\n                <th\n                  class='financials-table__heading'\n                  colspan={{this.financialsTableColspan}}\n                >\n                  <span\n                    class='financials-table__heading--center'\n                  >{{entity.name}}</span>\n                </th>\n              {{/each}}\n              {{#each this.selectedGroups as |group|}}\n                <th\n                  class='financials-table__heading'\n                  colspan={{this.financialsTableColspan}}\n                >\n                  <span\n                    class='financials-table__heading--center'\n                  >{{group.name}}{{if group.consolidation ' total' ' avg'}}</span>\n                </th>\n              {{/each}}\n            </tr>\n            <tr>\n              <th class='financials-table__heading' colspan='2'></th>\n              {{! TODO don't depend on netProfit for array length }}\n              {{#each this.model.netProfit.month}}\n                {{#if this.monthVisible}}\n                  <th\n                    class='financials-table__heading'\n                    colspan='{{if this.lastYearVisible 2 1}}'\n                  >\n                    <span class='financials-table__heading--center'>Current Month</span>\n                  </th>\n                {{/if}}\n                {{#if this.ytdVisible}}\n                  <th\n                    class='financials-table__heading'\n                    colspan='{{if this.lastYearVisible 2 1}}'\n                  >\n                    <span class='financials-table__heading--center'>Year To Date</span>\n                  </th>\n                {{/if}}\n              {{/each}}\n            </tr>\n            <tr class='data-table__subheading-row'>\n              <th class='financials-table__heading' colspan='2'>Description</th>\n              {{! TODO don't depend on netProfit for array length }}\n              {{#each this.model.netProfit.month}}\n                {{#if this.monthVisible}}\n                  <th class='financials-table__heading'>\n                    <div class='text-right'>\n                      Actual\n                      {{#if this.percentageVisible}}\n                        <span class='float-end financials-table__percentage'>% of\n                          Sales</span>\n                      {{/if}}\n                    </div>\n                  </th>\n                  {{#if this.lastYearVisible}}\n                    <th class='financials-table__heading'>\n                      <div class='text-right'>\n                        Last Year\n                        {{#if this.percentageVisible}}\n                          <span class='float-end financials-table__percentage'>%\n                            of Sales</span>\n                        {{/if}}\n                      </div>\n                    </th>\n                  {{/if}}\n                {{/if}}\n                {{#if this.ytdVisible}}\n                  <th class='financials-table__heading'>\n                    <div class='text-right'>\n                      Actual\n                      {{#if this.percentageVisible}}\n                        <span class='float-end financials-table__percentage'>% of\n                          Sales</span>\n                      {{/if}}\n                    </div>\n                  </th>\n                  {{#if this.lastYearVisible}}\n                    <th class='financials-table__heading'>\n                      <div class='text-right'>\n                        Last Year\n                        {{#if this.percentageVisible}}\n                          <span class='float-end financials-table__percentage'>%\n                            of Sales</span>\n                        {{/if}}\n                      </div>\n                    </th>\n                  {{/if}}\n                {{/if}}\n              {{/each}}\n            </tr>\n          </thead>\n  \n          <tbody>\n            {{! Cost Of Sales }}\n            <ItmFinancialTableSection\n              @lastYearVisible={{this.lastYearVisible}}\n              @percentageVisible={{this.percentageVisible}}\n              @ytdVisible={{this.ytdVisible}}\n              @monthVisible={{this.monthVisible}}\n              @expandableTotalRow={{true}}\n              @depth={{0}}\n              @data={{this.model.sales}}\n            />\n  \n            <ItmFinancialTableSection\n              @lastYearVisible={{this.lastYearVisible}}\n              @percentageVisible={{this.percentageVisible}}\n              @ytdVisible={{this.ytdVisible}}\n              @monthVisible={{this.monthVisible}}\n              @depth={{0}}\n              @data={{this.model.costOfSales}}\n            />\n  \n            <ItmFinancialTableSection\n              @lastYearVisible={{this.lastYearVisible}}\n              @percentageVisible={{this.percentageVisible}}\n              @ytdVisible={{this.ytdVisible}}\n              @monthVisible={{this.monthVisible}}\n              @depth={{0}}\n              @splitLines={{true}}\n              @data={{this.model.systemMargin}}\n              @title='System Margin'\n            />\n  \n            {{#each this.model.stockVariation.children as |child|}}\n              <ItmFinancialTableSection\n                @childrenHidden={{true}}\n                @lastYearVisible={{this.lastYearVisible}}\n                @percentageVisible={{this.percentageVisible}}\n                @ytdVisible={{this.ytdVisible}}\n                @monthVisible={{this.monthVisible}}\n                @depth={{0}}\n                @data={{child}}\n              />\n            {{/each}}\n  \n            <ItmFinancialTableSection\n              @lastYearVisible={{this.lastYearVisible}}\n              @percentageVisible={{this.percentageVisible}}\n              @ytdVisible={{this.ytdVisible}}\n              @monthVisible={{this.monthVisible}}\n              @depth={{0}}\n              @splitLines={{true}}\n              @data={{this.model.achievedMargin}}\n              @title='Achieved Margin'\n            />\n  \n            {{! Loyalties & Freight }}\n            {{#each this.model.loyaltiesAndFreight.children as |child|}}\n              <ItmFinancialTableSection\n                @lastYearVisible={{this.lastYearVisible}}\n                @percentageVisible={{this.percentageVisible}}\n                @ytdVisible={{this.ytdVisible}}\n                @monthVisible={{this.monthVisible}}\n                @depth={{0}}\n                @data={{child}}\n              />\n            {{/each}}\n  \n            <ItmFinancialTableSection\n              @lastYearVisible={{this.lastYearVisible}}\n              @percentageVisible={{this.percentageVisible}}\n              @ytdVisible={{this.ytdVisible}}\n              @monthVisible={{this.monthVisible}}\n              @depth={{0}}\n              @splitLines={{true}}\n              @data={{this.model.grossMargin}}\n              @title='Gross Margin'\n            />\n  \n            {{! Expenses }}\n            {{#each this.model.expenses.children as |child|}}\n              <ItmFinancialTableSection\n                @childrenHidden={{true}}\n                @lastYearVisible={{this.lastYearVisible}}\n                @percentageVisible={{this.percentageVisible}}\n                @ytdVisible={{this.ytdVisible}}\n                @monthVisible={{this.monthVisible}}\n                @depth={{0}}\n                @data={{child}}\n              />\n            {{/each}}\n  \n            <ItmFinancialTableSection\n              @childrenHidden={{true}}\n              @lastYearVisible={{this.lastYearVisible}}\n              @percentageVisible={{this.percentageVisible}}\n              @ytdVisible={{this.ytdVisible}}\n              @monthVisible={{this.monthVisible}}\n              @depth={{0}}\n              @data={{this.model.expenses}}\n              @highlighted={{true}}\n            />\n  \n            <ItmFinancialTableSection\n              @lastYearVisible={{this.lastYearVisible}}\n              @percentageVisible={{this.percentageVisible}}\n              @ytdVisible={{this.ytdVisible}}\n              @monthVisible={{this.monthVisible}}\n              @depth={{0}}\n              @splitLines={{true}}\n              @data={{this.model.ebitda}}\n              @title='EBITDA'\n            />\n  \n            {{! Sundry }}\n            {{#each this.model.otherIncomeAndDepreciation.children as |child|}}\n              <ItmFinancialTableSection\n                @lastYearVisible={{this.lastYearVisible}}\n                @percentageVisible={{this.percentageVisible}}\n                @ytdVisible={{this.ytdVisible}}\n                @monthVisible={{this.monthVisible}}\n                @depth={{0}}\n                @data={{child}}\n              />\n            {{/each}}\n  \n            <ItmFinancialTableSection\n              @lastYearVisible={{this.lastYearVisible}}\n              @percentageVisible={{this.percentageVisible}}\n              @ytdVisible={{this.ytdVisible}}\n              @monthVisible={{this.monthVisible}}\n              @depth={{0}}\n              @splitLines={{true}}\n              @data={{this.model.netProfit}}\n              @title='Net Profit'\n            />\n  \n          </tbody>\n        </table>\n      {{else}}\n        <table class='data-table financials-table'>\n          <thead>\n            <tr>\n              <th class='financials-table__heading' colspan='2'></th>\n              {{#if this.sessionData.entity.parent.id}}\n                <th\n                  class='financials-table__heading'\n                  colspan={{this.financialsTableColspan}}\n                >\n                  <span\n                    class='financials-table__heading--center'\n                  >{{this.sessionData.entity.name}}</span>\n                </th>\n              {{/if}}\n              {{#each this.selectedEntities as |entity|}}\n                <th\n                  class='financials-table__heading'\n                  colspan={{this.financialsTableColspan}}\n                >\n                  <span\n                    class='financials-table__heading--center'\n                  >{{entity.name}}</span>\n                </th>\n              {{/each}}\n              {{#each this.selectedGroups as |group|}}\n                <th\n                  class='financials-table__heading'\n                  colspan={{this.financialsTableColspan}}\n                >\n                  <span\n                    class='financials-table__heading--center'\n                  >{{group.name}}{{if group.consolidation ' total' ' avg'}}</span>\n                </th>\n              {{/each}}\n            </tr>\n            <tr>\n              <th class='financials-table__heading' colspan='2'></th>\n              {{! template-lint-disable no-unused-block-params }}\n              {{#each this.model.netProfit.month as |unused index|}}\n                {{#if this.monthVisible}}\n                  <th\n                    class='financials-table__heading'\n                    colspan='{{if this.lastYearVisible 2 1}}'\n                  >\n                    <span class='financials-table__heading--center'>Current Month</span>\n                  </th>\n                {{/if}}\n                {{#if this.ytdVisible}}\n                  <th\n                    class='financials-table__heading'\n                    colspan='{{if this.lastYearVisible 2 1}}'\n                  >\n                    <span class='financials-table__heading--center'>Year To Date</span>\n                  </th>\n                {{/if}}\n              {{/each}}\n            </tr>\n            <tr class='data-table__subheading-row'>\n              <th class='financials-table__heading' colspan='2'>Description</th>\n              {{! template-lint-disable no-unused-block-params }}\n              {{#each this.model.netProfit.month as |unused index|}}\n                {{#if this.monthVisible}}\n                  <th class='financials-table__heading'>\n                    <div class='text-right'>\n                      Actual\n                      {{#if this.percentageVisible}}\n                        <span class='float-end financials-table__percentage'>% of\n                          Sales</span>\n                      {{/if}}\n                    </div>\n                  </th>\n                  {{#if this.lastYearVisible}}\n                    <th class='financials-table__heading'>\n                      <div class='text-right'>\n                        Last Year\n                        {{#if this.percentageVisible}}\n                          <span class='float-end financials-table__percentage'>%\n                            of Sales</span>\n                        {{/if}}\n                      </div>\n                    </th>\n                  {{/if}}\n                {{/if}}\n                {{#if this.ytdVisible}}\n                  <th class='financials-table__heading'>\n                    <div class='text-right'>\n                      Actual\n                      {{#if this.percentageVisible}}\n                        <span class='float-end financials-table__percentage'>% of\n                          Sales</span>\n                      {{/if}}\n                    </div>\n                  </th>\n                  {{#if this.lastYearVisible}}\n                    <th class='financials-table__heading'>\n                      <div class='text-right'>\n                        Last Year\n                        {{#if this.percentageVisible}}\n                          <span class='float-end financials-table__percentage'>%\n                            of Sales</span>\n                        {{/if}}\n                      </div>\n                    </th>\n                  {{/if}}\n                {{/if}}\n              {{/each}}\n            </tr>\n          </thead>\n  \n          <tbody>\n            {{! Expenses }}\n            {{#each this.model.expenses.children as |child|}}\n              <ItmFinancialTableSection\n                @lastYearVisible={{this.lastYearVisible}}\n                @showChildren={{true}}\n                @percentageVisible={{this.percentageVisible}}\n                @ytdVisible={{this.ytdVisible}}\n                @monthVisible={{this.monthVisible}}\n                @depth={{0}}\n                @data={{child}}\n                @parentScoped={{false}}\n              />\n            {{/each}}\n  \n            <tr class='data-table__total-row'>\n              <td colspan='2'>Total Expenses</td>\n              {{! TODO don't depend on netProfit for array length }}\n              {{#each this.model.netProfit.month as |unused index|}}\n                {{#if this.monthVisible}}\n                  <td\n                    class='text-right\n                      {{if\n                        (lt this.model.expenses.month 0)\n                        \"financials-table__negative-value\"\n                      }}'\n                  >\n                    {{number-format\n                      (object-at this.model.expenses.month index)\n                      maximumFractionDigits=0\n                      dashZero=true\n                    }}\n                  </td>\n                  {{#if this.lastYearVisible}}\n                    <td\n                      class='text-right\n                        {{if\n                          (lt this.model.expenses.monthPrev 0)\n                          \"financials-table__negative-value\"\n                        }}'\n                    >\n                      {{number-format\n                        (object-at this.model.expenses.monthPrev index)\n                        maximumFractionDigits=0\n                        dashZero=true\n                      }}\n                    </td>\n                  {{/if}}\n                {{/if}}\n                {{#if this.ytdVisible}}\n                  <td\n                    class='text-right\n                      {{if\n                        (lt this.model.expenses.ytd 0)\n                        \"financials-table__negative-value\"\n                      }}'\n                  >\n                    {{number-format\n                      (object-at this.model.expenses.ytd index)\n                      maximumFractionDigits=0\n                      dashZero=true\n                    }}\n                  </td>\n                  {{#if this.lastYearVisible}}\n                    <td\n                      class='text-right\n                        {{if\n                          (lt this.model.expenses.ytdPrev 0)\n                          \"financials-table__negative-value\"\n                        }}'\n                    >\n                      {{number-format\n                        (object-at this.model.expenses.ytdPrev index)\n                        maximumFractionDigits=0\n                        dashZero=true\n                      }}\n                    </td>\n                  {{/if}}\n                {{/if}}\n              {{/each}}\n            </tr>\n          </tbody>\n        </table>\n      {{/if}}\n    {{else}}\n      <div class='text-center error no-data'>\n        <h2><FaIcon @icon='info-circle' /></h2>\n        <h3>Pick a store or group to see report.</h3>\n      </div>\n    {{/if}}\n  </article>\n  \n  {{#if this.userCreateModalVisible}}\n    <ModalDialog\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n      @containerClass='block-module'\n      @onClose={{action this.toggleProperty 'userCreateModalVisible'}}\n    >\n      <header class='block-module__header'>\n        <h2 class='h2'>Create User</h2>\n      </header>\n  \n      <div class='tabular-form-controls'>\n        <div class='tabular-form-controls__row'>\n          <label\n            class='tabular-form-controls__cell tabular-form-controls__cell--label'\n            for='user-first-name'\n          >First name</label>\n          <Input\n            class='tabular-form-controls__cell text-input'\n            @value={{this.newUserData.firstName}}\n            id='user-first-name'\n          />\n        </div>\n  \n        <div class='tabular-form-controls__row'>\n          <label\n            class='tabular-form-controls__cell tabular-form-controls__cell--label'\n            for='user-last-name'\n          >Last name</label>\n          <Input\n            class='tabular-form-controls__cell text-input'\n            @value={{this.newUserData.lastName}}\n            id='user-last-name'\n          />\n        </div>\n  \n        <div class='tabular-form-controls__row'>\n          <label\n            class='tabular-form-controls__cell tabular-form-controls__cell--label'\n            for='user-email'\n          >Email</label>\n          <Input\n            class='tabular-form-controls__cell text-input'\n            @value={{this.newUserData.email}}\n            @type='email'\n            id='user-email'\n          />\n        </div>\n      </div>\n  \n      <footer class='block-module__footer'>\n        <LoadingButton\n          @class='float-end button button--spaced'\n          @isLoading={{this.isCreatingNewUser}}\n          @action={{action 'createNewUser'}}\n          @buttonText='Create'\n        />\n        <button\n          class='float-end button button--plain button--spaced'\n          type='button'\n          {{action this.toggleProperty 'userCreateModalVisible'}}\n        >{{t 'common.Cancel'}}</button>\n      </footer>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"t1Bfr1pg\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[\\\"ITM custom P&L\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[[30,0,[\\\"model\\\",\\\"groupsRedacted\\\"]],[30,0,[\\\"model\\\",\\\"ownDataWithheld\\\"]]],null],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"data-withheld-notice-container\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"groupsRedacted\\\"]],[[[1,\\\"          \\\"],[8,[39,9],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"ownDataWithheld\\\"]],[[[1,\\\"          \\\"],[8,[39,10],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--download float-end\\\"],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],\\\"downloadSheet\\\"],null],[12],[1,\\\"\\\\n        Download report as CSV\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n    \\\"],[10,\\\"nav\\\"],[14,0,\\\"tabs\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"ul\\\"],[14,0,\\\"tabs__group\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"li\\\"],[14,0,\\\"tabs__tab\\\"],[12],[1,\\\"\\\\n          \\\"],[11,3],[16,0,[29,[[52,[30,0,[\\\"profitAndLossTableVisible\\\"]],\\\"active\\\"]]]],[4,[38,12],[[30,0],\\\"setProfitAndLossTableVisible\\\",true],null],[12],[1,\\\"\\\\n            Profit And Loss\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,\\\"li\\\"],[14,0,\\\"tabs__tab\\\"],[12],[1,\\\"\\\\n          \\\"],[11,3],[16,0,[29,[[52,[51,[30,0,[\\\"profitAndLossTableVisible\\\"]]],\\\"active\\\"]]]],[4,[38,12],[[30,0],\\\"setProfitAndLossTableVisible\\\",false],null],[12],[1,\\\"\\\\n            Expenses Table\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"itm-financials-controls\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"itm-financials-controls__section\\\"],[12],[1,\\\"\\\\n      \\\"],[10,1],[14,0,\\\"itm-financials-controls__section__title\\\"],[12],[1,\\\"\\\\n        Stores:\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,18],null,[[\\\"@options\\\",\\\"@selected\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@onChange\\\"],[[30,0,[\\\"allowedEntities\\\"]],[30,0,[\\\"selectedEntities\\\"]],true,\\\"name\\\",\\\"Click to add a store…\\\",[28,[37,12],[[30,0],\\\"selectEntity\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n\\\\n      \\\"],[10,1],[14,0,\\\"itm-financials-controls__section__title--last\\\"],[12],[1,\\\"\\\\n        Groups:\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,18],null,[[\\\"@options\\\",\\\"@selected\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@onChange\\\"],[[30,0,[\\\"allowedGroups\\\"]],[30,0,[\\\"selectedGroups\\\"]],true,\\\"name\\\",\\\"Click to add a group…\\\",[28,[37,12],[[30,0],\\\"selectGroup\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[30,2,[\\\"name\\\"]]],[1,\\\"\\\\n      \\\"]],[2]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"itm-financials-controls__section\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,19],[\\\"userIsEntityAdmin\\\"],null],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"button itm-financials-controls__invite-button\\\"],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],[30,0,[\\\"set\\\"]],\\\"userCreateModalVisible\\\",true],null],[12],[1,\\\"\\\\n          Invite Someone to Compare\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[8,[39,20],null,[[\\\"@buttonText\\\",\\\"@title\\\",\\\"@align\\\",\\\"@buttonClasses\\\"],[\\\"Filter Table\\\",\\\"Filters\\\",\\\"right\\\",\\\"button button--secondary file-input-button\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[11,\\\"label\\\"],[24,0,\\\"overlaid-dropdown__option\\\"],[4,[38,12],[[30,0],\\\"toggleMonthVisible\\\"],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"monthVisible\\\"]],[[[1,\\\"            \\\"],[8,[39,22],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"check-square\\\",true]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[8,[39,22],null,[[\\\"@icon\\\",\\\"@prefix\\\",\\\"@fixedWidth\\\"],[\\\"square\\\",\\\"far\\\",true]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          Show Month values\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[11,\\\"label\\\"],[24,0,\\\"overlaid-dropdown__option\\\"],[4,[38,12],[[30,0],\\\"toggleYtdVisible\\\"],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"ytdVisible\\\"]],[[[1,\\\"            \\\"],[8,[39,22],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"check-square\\\",true]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[8,[39,22],null,[[\\\"@icon\\\",\\\"@prefix\\\",\\\"@fixedWidth\\\"],[\\\"square\\\",\\\"far\\\",true]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          Show YTD values\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[11,\\\"label\\\"],[24,0,\\\"overlaid-dropdown__option\\\"],[4,[38,12],[[30,0],[30,0,[\\\"toggleProperty\\\"]],\\\"lastYearVisible\\\"],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"lastYearVisible\\\"]],[[[1,\\\"            \\\"],[8,[39,22],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"check-square\\\",true]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[8,[39,22],null,[[\\\"@icon\\\",\\\"@prefix\\\",\\\"@fixedWidth\\\"],[\\\"square\\\",\\\"far\\\",true]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          Show last year values\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[11,\\\"label\\\"],[24,0,\\\"overlaid-dropdown__option\\\"],[4,[38,12],[[30,0],[30,0,[\\\"toggleProperty\\\"]],\\\"percentageVisible\\\"],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"percentageVisible\\\"]],[[[1,\\\"            \\\"],[8,[39,22],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"check-square\\\",true]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[8,[39,22],null,[[\\\"@icon\\\",\\\"@prefix\\\",\\\"@fixedWidth\\\"],[\\\"square\\\",\\\"far\\\",true]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          Show % of values\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"model\\\"]],[[[41,[30,0,[\\\"profitAndLossTableVisible\\\"]],[[[1,\\\"      \\\"],[10,\\\"table\\\"],[14,0,\\\"data-table financials-table\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[14,\\\"colspan\\\",\\\"2\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"parent\\\",\\\"id\\\"]],[[[1,\\\"              \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[15,\\\"colspan\\\",[30,0,[\\\"financialsTableColspan\\\"]]],[12],[1,\\\"\\\\n                \\\"],[10,1],[14,0,\\\"financials-table__heading--center\\\"],[12],[1,[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"name\\\"]]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[42,[28,[37,28],[[28,[37,28],[[30,0,[\\\"selectedEntities\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[15,\\\"colspan\\\",[30,0,[\\\"financialsTableColspan\\\"]]],[12],[1,\\\"\\\\n                \\\"],[10,1],[14,0,\\\"financials-table__heading--center\\\"],[12],[1,[30,3,[\\\"name\\\"]]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],null],[42,[28,[37,28],[[28,[37,28],[[30,0,[\\\"selectedGroups\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[15,\\\"colspan\\\",[30,0,[\\\"financialsTableColspan\\\"]]],[12],[1,\\\"\\\\n                \\\"],[10,1],[14,0,\\\"financials-table__heading--center\\\"],[12],[1,[30,4,[\\\"name\\\"]]],[1,[52,[30,4,[\\\"consolidation\\\"]],\\\" total\\\",\\\" avg\\\"]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[14,\\\"colspan\\\",\\\"2\\\"],[12],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,28],[[28,[37,28],[[30,0,[\\\"model\\\",\\\"netProfit\\\",\\\"month\\\"]]],null]],null],null,[[[41,[30,0,[\\\"monthVisible\\\"]],[[[1,\\\"                \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[15,\\\"colspan\\\",[29,[[52,[30,0,[\\\"lastYearVisible\\\"]],2,1]]]],[12],[1,\\\"\\\\n                  \\\"],[10,1],[14,0,\\\"financials-table__heading--center\\\"],[12],[1,\\\"Current Month\\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"ytdVisible\\\"]],[[[1,\\\"                \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[15,\\\"colspan\\\",[29,[[52,[30,0,[\\\"lastYearVisible\\\"]],2,1]]]],[12],[1,\\\"\\\\n                  \\\"],[10,1],[14,0,\\\"financials-table__heading--center\\\"],[12],[1,\\\"Year To Date\\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[14,0,\\\"data-table__subheading-row\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[14,\\\"colspan\\\",\\\"2\\\"],[12],[1,\\\"Description\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,28],[[28,[37,28],[[30,0,[\\\"model\\\",\\\"netProfit\\\",\\\"month\\\"]]],null]],null],null,[[[41,[30,0,[\\\"monthVisible\\\"]],[[[1,\\\"                \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                    Actual\\\\n\\\"],[41,[30,0,[\\\"percentageVisible\\\"]],[[[1,\\\"                      \\\"],[10,1],[14,0,\\\"float-end financials-table__percentage\\\"],[12],[1,\\\"% of\\\\n                        Sales\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"lastYearVisible\\\"]],[[[1,\\\"                  \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      Last Year\\\\n\\\"],[41,[30,0,[\\\"percentageVisible\\\"]],[[[1,\\\"                        \\\"],[10,1],[14,0,\\\"float-end financials-table__percentage\\\"],[12],[1,\\\"%\\\\n                          of Sales\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"ytdVisible\\\"]],[[[1,\\\"                \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                    Actual\\\\n\\\"],[41,[30,0,[\\\"percentageVisible\\\"]],[[[1,\\\"                      \\\"],[10,1],[14,0,\\\"float-end financials-table__percentage\\\"],[12],[1,\\\"% of\\\\n                        Sales\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"lastYearVisible\\\"]],[[[1,\\\"                  \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      Last Year\\\\n\\\"],[41,[30,0,[\\\"percentageVisible\\\"]],[[[1,\\\"                        \\\"],[10,1],[14,0,\\\"float-end financials-table__percentage\\\"],[12],[1,\\\"%\\\\n                          of Sales\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"          \\\"],[8,[39,30],null,[[\\\"@lastYearVisible\\\",\\\"@percentageVisible\\\",\\\"@ytdVisible\\\",\\\"@monthVisible\\\",\\\"@expandableTotalRow\\\",\\\"@depth\\\",\\\"@data\\\"],[[30,0,[\\\"lastYearVisible\\\"]],[30,0,[\\\"percentageVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]],[30,0,[\\\"monthVisible\\\"]],true,0,[30,0,[\\\"model\\\",\\\"sales\\\"]]]],null],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,30],null,[[\\\"@lastYearVisible\\\",\\\"@percentageVisible\\\",\\\"@ytdVisible\\\",\\\"@monthVisible\\\",\\\"@depth\\\",\\\"@data\\\"],[[30,0,[\\\"lastYearVisible\\\"]],[30,0,[\\\"percentageVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]],[30,0,[\\\"monthVisible\\\"]],0,[30,0,[\\\"model\\\",\\\"costOfSales\\\"]]]],null],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,30],null,[[\\\"@lastYearVisible\\\",\\\"@percentageVisible\\\",\\\"@ytdVisible\\\",\\\"@monthVisible\\\",\\\"@depth\\\",\\\"@splitLines\\\",\\\"@data\\\",\\\"@title\\\"],[[30,0,[\\\"lastYearVisible\\\"]],[30,0,[\\\"percentageVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]],[30,0,[\\\"monthVisible\\\"]],0,true,[30,0,[\\\"model\\\",\\\"systemMargin\\\"]],\\\"System Margin\\\"]],null],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,28],[[28,[37,28],[[30,0,[\\\"model\\\",\\\"stockVariation\\\",\\\"children\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[8,[39,30],null,[[\\\"@childrenHidden\\\",\\\"@lastYearVisible\\\",\\\"@percentageVisible\\\",\\\"@ytdVisible\\\",\\\"@monthVisible\\\",\\\"@depth\\\",\\\"@data\\\"],[true,[30,0,[\\\"lastYearVisible\\\"]],[30,0,[\\\"percentageVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]],[30,0,[\\\"monthVisible\\\"]],0,[30,5]]],null],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"\\\\n          \\\"],[8,[39,30],null,[[\\\"@lastYearVisible\\\",\\\"@percentageVisible\\\",\\\"@ytdVisible\\\",\\\"@monthVisible\\\",\\\"@depth\\\",\\\"@splitLines\\\",\\\"@data\\\",\\\"@title\\\"],[[30,0,[\\\"lastYearVisible\\\"]],[30,0,[\\\"percentageVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]],[30,0,[\\\"monthVisible\\\"]],0,true,[30,0,[\\\"model\\\",\\\"achievedMargin\\\"]],\\\"Achieved Margin\\\"]],null],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,28],[[28,[37,28],[[30,0,[\\\"model\\\",\\\"loyaltiesAndFreight\\\",\\\"children\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[8,[39,30],null,[[\\\"@lastYearVisible\\\",\\\"@percentageVisible\\\",\\\"@ytdVisible\\\",\\\"@monthVisible\\\",\\\"@depth\\\",\\\"@data\\\"],[[30,0,[\\\"lastYearVisible\\\"]],[30,0,[\\\"percentageVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]],[30,0,[\\\"monthVisible\\\"]],0,[30,6]]],null],[1,\\\"\\\\n\\\"]],[6]],null],[1,\\\"\\\\n          \\\"],[8,[39,30],null,[[\\\"@lastYearVisible\\\",\\\"@percentageVisible\\\",\\\"@ytdVisible\\\",\\\"@monthVisible\\\",\\\"@depth\\\",\\\"@splitLines\\\",\\\"@data\\\",\\\"@title\\\"],[[30,0,[\\\"lastYearVisible\\\"]],[30,0,[\\\"percentageVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]],[30,0,[\\\"monthVisible\\\"]],0,true,[30,0,[\\\"model\\\",\\\"grossMargin\\\"]],\\\"Gross Margin\\\"]],null],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,28],[[28,[37,28],[[30,0,[\\\"model\\\",\\\"expenses\\\",\\\"children\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[8,[39,30],null,[[\\\"@childrenHidden\\\",\\\"@lastYearVisible\\\",\\\"@percentageVisible\\\",\\\"@ytdVisible\\\",\\\"@monthVisible\\\",\\\"@depth\\\",\\\"@data\\\"],[true,[30,0,[\\\"lastYearVisible\\\"]],[30,0,[\\\"percentageVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]],[30,0,[\\\"monthVisible\\\"]],0,[30,7]]],null],[1,\\\"\\\\n\\\"]],[7]],null],[1,\\\"\\\\n          \\\"],[8,[39,30],null,[[\\\"@childrenHidden\\\",\\\"@lastYearVisible\\\",\\\"@percentageVisible\\\",\\\"@ytdVisible\\\",\\\"@monthVisible\\\",\\\"@depth\\\",\\\"@data\\\",\\\"@highlighted\\\"],[true,[30,0,[\\\"lastYearVisible\\\"]],[30,0,[\\\"percentageVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]],[30,0,[\\\"monthVisible\\\"]],0,[30,0,[\\\"model\\\",\\\"expenses\\\"]],true]],null],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,30],null,[[\\\"@lastYearVisible\\\",\\\"@percentageVisible\\\",\\\"@ytdVisible\\\",\\\"@monthVisible\\\",\\\"@depth\\\",\\\"@splitLines\\\",\\\"@data\\\",\\\"@title\\\"],[[30,0,[\\\"lastYearVisible\\\"]],[30,0,[\\\"percentageVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]],[30,0,[\\\"monthVisible\\\"]],0,true,[30,0,[\\\"model\\\",\\\"ebitda\\\"]],\\\"EBITDA\\\"]],null],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,28],[[28,[37,28],[[30,0,[\\\"model\\\",\\\"otherIncomeAndDepreciation\\\",\\\"children\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[8,[39,30],null,[[\\\"@lastYearVisible\\\",\\\"@percentageVisible\\\",\\\"@ytdVisible\\\",\\\"@monthVisible\\\",\\\"@depth\\\",\\\"@data\\\"],[[30,0,[\\\"lastYearVisible\\\"]],[30,0,[\\\"percentageVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]],[30,0,[\\\"monthVisible\\\"]],0,[30,8]]],null],[1,\\\"\\\\n\\\"]],[8]],null],[1,\\\"\\\\n          \\\"],[8,[39,30],null,[[\\\"@lastYearVisible\\\",\\\"@percentageVisible\\\",\\\"@ytdVisible\\\",\\\"@monthVisible\\\",\\\"@depth\\\",\\\"@splitLines\\\",\\\"@data\\\",\\\"@title\\\"],[[30,0,[\\\"lastYearVisible\\\"]],[30,0,[\\\"percentageVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]],[30,0,[\\\"monthVisible\\\"]],0,true,[30,0,[\\\"model\\\",\\\"netProfit\\\"]],\\\"Net Profit\\\"]],null],[1,\\\"\\\\n\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,\\\"table\\\"],[14,0,\\\"data-table financials-table\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[14,\\\"colspan\\\",\\\"2\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"parent\\\",\\\"id\\\"]],[[[1,\\\"              \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[15,\\\"colspan\\\",[30,0,[\\\"financialsTableColspan\\\"]]],[12],[1,\\\"\\\\n                \\\"],[10,1],[14,0,\\\"financials-table__heading--center\\\"],[12],[1,[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"name\\\"]]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[42,[28,[37,28],[[28,[37,28],[[30,0,[\\\"selectedEntities\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[15,\\\"colspan\\\",[30,0,[\\\"financialsTableColspan\\\"]]],[12],[1,\\\"\\\\n                \\\"],[10,1],[14,0,\\\"financials-table__heading--center\\\"],[12],[1,[30,9,[\\\"name\\\"]]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[9]],null],[42,[28,[37,28],[[28,[37,28],[[30,0,[\\\"selectedGroups\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[15,\\\"colspan\\\",[30,0,[\\\"financialsTableColspan\\\"]]],[12],[1,\\\"\\\\n                \\\"],[10,1],[14,0,\\\"financials-table__heading--center\\\"],[12],[1,[30,10,[\\\"name\\\"]]],[1,[52,[30,10,[\\\"consolidation\\\"]],\\\" total\\\",\\\" avg\\\"]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[10]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[14,\\\"colspan\\\",\\\"2\\\"],[12],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,28],[[28,[37,28],[[30,0,[\\\"model\\\",\\\"netProfit\\\",\\\"month\\\"]]],null]],null],null,[[[41,[30,0,[\\\"monthVisible\\\"]],[[[1,\\\"                \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[15,\\\"colspan\\\",[29,[[52,[30,0,[\\\"lastYearVisible\\\"]],2,1]]]],[12],[1,\\\"\\\\n                  \\\"],[10,1],[14,0,\\\"financials-table__heading--center\\\"],[12],[1,\\\"Current Month\\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"ytdVisible\\\"]],[[[1,\\\"                \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[15,\\\"colspan\\\",[29,[[52,[30,0,[\\\"lastYearVisible\\\"]],2,1]]]],[12],[1,\\\"\\\\n                  \\\"],[10,1],[14,0,\\\"financials-table__heading--center\\\"],[12],[1,\\\"Year To Date\\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[11,12]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[14,0,\\\"data-table__subheading-row\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[14,\\\"colspan\\\",\\\"2\\\"],[12],[1,\\\"Description\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,28],[[28,[37,28],[[30,0,[\\\"model\\\",\\\"netProfit\\\",\\\"month\\\"]]],null]],null],null,[[[41,[30,0,[\\\"monthVisible\\\"]],[[[1,\\\"                \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                    Actual\\\\n\\\"],[41,[30,0,[\\\"percentageVisible\\\"]],[[[1,\\\"                      \\\"],[10,1],[14,0,\\\"float-end financials-table__percentage\\\"],[12],[1,\\\"% of\\\\n                        Sales\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"lastYearVisible\\\"]],[[[1,\\\"                  \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      Last Year\\\\n\\\"],[41,[30,0,[\\\"percentageVisible\\\"]],[[[1,\\\"                        \\\"],[10,1],[14,0,\\\"float-end financials-table__percentage\\\"],[12],[1,\\\"%\\\\n                          of Sales\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"ytdVisible\\\"]],[[[1,\\\"                \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                    Actual\\\\n\\\"],[41,[30,0,[\\\"percentageVisible\\\"]],[[[1,\\\"                      \\\"],[10,1],[14,0,\\\"float-end financials-table__percentage\\\"],[12],[1,\\\"% of\\\\n                        Sales\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"lastYearVisible\\\"]],[[[1,\\\"                  \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      Last Year\\\\n\\\"],[41,[30,0,[\\\"percentageVisible\\\"]],[[[1,\\\"                        \\\"],[10,1],[14,0,\\\"float-end financials-table__percentage\\\"],[12],[1,\\\"%\\\\n                          of Sales\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[13,14]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,28],[[28,[37,28],[[30,0,[\\\"model\\\",\\\"expenses\\\",\\\"children\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[8,[39,30],null,[[\\\"@lastYearVisible\\\",\\\"@showChildren\\\",\\\"@percentageVisible\\\",\\\"@ytdVisible\\\",\\\"@monthVisible\\\",\\\"@depth\\\",\\\"@data\\\",\\\"@parentScoped\\\"],[[30,0,[\\\"lastYearVisible\\\"]],true,[30,0,[\\\"percentageVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]],[30,0,[\\\"monthVisible\\\"]],0,[30,15],false]],null],[1,\\\"\\\\n\\\"]],[15]],null],[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[14,0,\\\"data-table__total-row\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"2\\\"],[12],[1,\\\"Total Expenses\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,28],[[28,[37,28],[[30,0,[\\\"model\\\",\\\"netProfit\\\",\\\"month\\\"]]],null]],null],null,[[[41,[30,0,[\\\"monthVisible\\\"]],[[[1,\\\"                \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n                    \\\",[52,[28,[37,32],[[30,0,[\\\"model\\\",\\\"expenses\\\",\\\"month\\\"]],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,33],[[28,[37,34],[[30,0,[\\\"model\\\",\\\"expenses\\\",\\\"month\\\"]],[30,17]],null]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"lastYearVisible\\\"]],[[[1,\\\"                  \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n                      \\\",[52,[28,[37,32],[[30,0,[\\\"model\\\",\\\"expenses\\\",\\\"monthPrev\\\"]],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,33],[[28,[37,34],[[30,0,[\\\"model\\\",\\\"expenses\\\",\\\"monthPrev\\\"]],[30,17]],null]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"ytdVisible\\\"]],[[[1,\\\"                \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n                    \\\",[52,[28,[37,32],[[30,0,[\\\"model\\\",\\\"expenses\\\",\\\"ytd\\\"]],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,33],[[28,[37,34],[[30,0,[\\\"model\\\",\\\"expenses\\\",\\\"ytd\\\"]],[30,17]],null]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"lastYearVisible\\\"]],[[[1,\\\"                  \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n                      \\\",[52,[28,[37,32],[[30,0,[\\\"model\\\",\\\"expenses\\\",\\\"ytdPrev\\\"]],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,33],[[28,[37,34],[[30,0,[\\\"model\\\",\\\"expenses\\\",\\\"ytdPrev\\\"]],[30,17]],null]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[16,17]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"text-center error no-data\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h2\\\"],[12],[8,[39,22],null,[[\\\"@icon\\\"],[\\\"info-circle\\\"]],null],[13],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[12],[1,\\\"Pick a store or group to see report.\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"userCreateModalVisible\\\"]],[[[1,\\\"  \\\"],[8,[39,37],null,[[\\\"@overlayClass\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\",\\\"@onClose\\\"],[\\\"modal\\\",true,\\\"block-module\\\",[28,[37,12],[[30,0],[30,0,[\\\"toggleProperty\\\"]],\\\"userCreateModalVisible\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"block-module__header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2\\\"],[12],[1,\\\"Create User\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"tabular-form-controls\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"tabular-form-controls__row\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"tabular-form-controls__cell tabular-form-controls__cell--label\\\"],[14,\\\"for\\\",\\\"user-first-name\\\"],[12],[1,\\\"First name\\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,38],[[24,0,\\\"tabular-form-controls__cell text-input\\\"],[24,1,\\\"user-first-name\\\"]],[[\\\"@value\\\"],[[30,0,[\\\"newUserData\\\",\\\"firstName\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"tabular-form-controls__row\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"tabular-form-controls__cell tabular-form-controls__cell--label\\\"],[14,\\\"for\\\",\\\"user-last-name\\\"],[12],[1,\\\"Last name\\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,38],[[24,0,\\\"tabular-form-controls__cell text-input\\\"],[24,1,\\\"user-last-name\\\"]],[[\\\"@value\\\"],[[30,0,[\\\"newUserData\\\",\\\"lastName\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"tabular-form-controls__row\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"tabular-form-controls__cell tabular-form-controls__cell--label\\\"],[14,\\\"for\\\",\\\"user-email\\\"],[12],[1,\\\"Email\\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,38],[[24,0,\\\"tabular-form-controls__cell text-input\\\"],[24,1,\\\"user-email\\\"]],[[\\\"@value\\\",\\\"@type\\\"],[[30,0,[\\\"newUserData\\\",\\\"email\\\"]],\\\"email\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,40],null,[[\\\"@class\\\",\\\"@isLoading\\\",\\\"@action\\\",\\\"@buttonText\\\"],[\\\"float-end button button--spaced\\\",[30,0,[\\\"isCreatingNewUser\\\"]],[28,[37,12],[[30,0],\\\"createNewUser\\\"],null],\\\"Create\\\"]],null],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"float-end button button--plain button--spaced\\\"],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],[30,0,[\\\"toggleProperty\\\"]],\\\"userCreateModalVisible\\\"],null],[12],[1,[28,[35,41],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"entity\\\",\\\"group\\\",\\\"entity\\\",\\\"group\\\",\\\"child\\\",\\\"child\\\",\\\"child\\\",\\\"child\\\",\\\"entity\\\",\\\"group\\\",\\\"unused\\\",\\\"index\\\",\\\"unused\\\",\\\"index\\\",\\\"child\\\",\\\"unused\\\",\\\"index\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"article\\\",\\\"header\\\",\\\"if\\\",\\\"or\\\",\\\"div\\\",\\\"groups-redacted-notice\\\",\\\"data-withheld-notice\\\",\\\"button\\\",\\\"action\\\",\\\"nav\\\",\\\"ul\\\",\\\"li\\\",\\\"a\\\",\\\"span\\\",\\\"power-select-multiple\\\",\\\"includes-feature-flags\\\",\\\"overlaid-dropdown\\\",\\\"label\\\",\\\"fa-icon\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"each\\\",\\\"-track-array\\\",\\\"tbody\\\",\\\"itm-financial-table-section\\\",\\\"td\\\",\\\"lt\\\",\\\"number-format\\\",\\\"object-at\\\",\\\"h2\\\",\\\"h3\\\",\\\"modal-dialog\\\",\\\"input\\\",\\\"footer\\\",\\\"loading-button\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/reports/general-ledger/itm-profit-and-loss.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/reports/general-ledger/other-data-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"781vr8D5\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/reports/general-ledger/other-data-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/reports/general-ledger/other-data\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title='Other data'}}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    {{#if (media 'isDesktop')}}\n      <header class='border-bottom mb-3'>\n        {{#if (or this.model.groupsRedacted this.model.ownDataWithheld)}}\n          <div class='data-withheld-notice-container'>\n            {{#if this.model.groupsRedacted}}\n              <GroupsRedactedNotice />\n            {{/if}}\n  \n            {{#if this.model.ownDataWithheld}}\n              <DataWithheldNotice />\n            {{/if}}\n          </div>\n        {{/if}}\n  \n        <button\n          class='text-button text-button--download float-end'\n          type='button'\n          {{action 'downloadSheet'}}\n        >\n          Download report as CSV\n        </button>\n  \n        <h1 class='h1'>Other Data</h1>\n      </header>\n    {{else}}\n      {{#if (or this.model.groupsRedacted this.model.ownDataWithheld)}}\n        <div class='data-withheld-notice-container'>\n          {{#if this.model.groupsRedacted}}\n            <GroupsRedactedNotice />\n          {{/if}}\n  \n          {{#if this.model.ownDataWithheld}}\n            <DataWithheldNotice />\n          {{/if}}\n        </div>\n      {{/if}}\n    {{/if}}\n  \n    {{#if this.otherData}}\n      {{#if this.model.entities}}\n        <table class='data-table financials-table'>\n          <thead>\n            <tr>\n              <th>Other Data</th>\n  \n              {{#each this.orderedEntities as |entity|}}\n                <th colspan={{this.colSpan}} class='financials-table__heading'>\n                  <a\n                    {{action 'shiftFarLeft' entity}}\n                    class='financials-table__heading-link'\n                    title='Click to put this column first'\n                  >\n                    {{entity.name}}\n                    {{if\n                      (is-array entity.members)\n                      (if entity.consolidation 'total' 'avg')\n                    }}\n                    {{#if entity.includedEntities}}\n                      <br />\n                      ({{entity.includedEntities}}\n                      /\n                      {{entity.members.length}}\n                      entities)\n                    {{/if}}\n                  </a>\n                </th>\n              {{/each}}\n            </tr>\n  \n            <tr class='data-table__subheading-row'>\n              <th></th>\n  \n              {{! template-lint-disable no-unused-block-params }}\n              {{#each this.orderedEntities as |entity|}}\n                <th class='financials-table__heading'>Month</th>\n                <th class='financials-table__heading'>YTD</th>\n              {{/each}}\n            </tr>\n          </thead>\n          <tbody>\n            <FinancialsTableSection\n              @canSeeBreakdown={{this.canSeeBreakdown}}\n              @toggleShowChildren={{action 'toggleShowChildren'}}\n              @toggleShowBreakdown={{action 'toggleShowBreakdown'}}\n              @accounts={{this.otherData}}\n              @showMonth={{true}}\n              @showYTD={{true}}\n            />\n          </tbody>\n        </table>\n  \n        <p class='ptl-placeholder'>Click on any table column heading to put that\n          column first.</p>\n  \n        <p class='ptl-placeholder limit-small'>* Numbers in this row will be sum\n          of its subsections for a single branch but not necessarily for groups.\n          More information can be found on the\n          <a\n            href='http://support.otbs.co.nz/hc/en-us/sections/203085588'\n            class='link'\n          >support site.</a></p>\n  \n      {{else}}\n        <div class='error-page error-page--no-data'>\n          <h2 class='h2 error-page__icon'><FaIcon @icon='info-circle' /></h2>\n          <h3 class='h3 error-page__title'>There are no groups accessible.</h3>\n          <p>If you believe you have received this message in error, please check\n            with your system administrator.</p>\n        </div>\n      {{/if}}\n    {{else}}\n      <div class='error-page error-page--no-data'>\n        <h2 class='h2 error-page__icon'><FaIcon @icon='info-circle' /></h2>\n        <h3 class='h3 error-page__title'>This entity has no accounts in this\n          section.</h3>\n      </div>\n    {{/if}}\n  </article>\n  \n  {{#if this.showBreakdown}}\n    <MetricBreakdown\n      @selectedMetric={{this.selectedMetric}}\n      @selectedGroup={{this.selectedGroup}}\n      @periodType={{this.selectedPeriodType}}\n      @overlay-class='breakdown'\n      @clickOutsideToClose={{true}}\n      @translucentOverlay={{true}}\n      @close={{action 'toggleShowBreakdown'}}\n      @accountType='balances'\n    />\n  {{/if}}\n  */\n  {\n    \"id\": \"WwqTnkLZ\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[\\\"Other data\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[[30,0,[\\\"model\\\",\\\"groupsRedacted\\\"]],[30,0,[\\\"model\\\",\\\"ownDataWithheld\\\"]]],null],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"data-withheld-notice-container\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"groupsRedacted\\\"]],[[[1,\\\"            \\\"],[8,[39,9],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"ownDataWithheld\\\"]],[[[1,\\\"            \\\"],[8,[39,10],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--download float-end\\\"],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],\\\"downloadSheet\\\"],null],[12],[1,\\\"\\\\n        Download report as CSV\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1\\\"],[12],[1,\\\"Other Data\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,7],[[30,0,[\\\"model\\\",\\\"groupsRedacted\\\"]],[30,0,[\\\"model\\\",\\\"ownDataWithheld\\\"]]],null],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"data-withheld-notice-container\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"groupsRedacted\\\"]],[[[1,\\\"          \\\"],[8,[39,9],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"ownDataWithheld\\\"]],[[[1,\\\"          \\\"],[8,[39,10],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"otherData\\\"]],[[[41,[30,0,[\\\"model\\\",\\\"entities\\\"]],[[[1,\\\"      \\\"],[10,\\\"table\\\"],[14,0,\\\"data-table financials-table\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Other Data\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,19],[[28,[37,19],[[30,0,[\\\"orderedEntities\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,\\\"th\\\"],[15,\\\"colspan\\\",[30,0,[\\\"colSpan\\\"]]],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"\\\\n                \\\"],[11,3],[24,0,\\\"financials-table__heading-link\\\"],[24,\\\"title\\\",\\\"Click to put this column first\\\"],[4,[38,12],[[30,0],\\\"shiftFarLeft\\\",[30,1]],null],[12],[1,\\\"\\\\n                  \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n                  \\\"],[1,[52,[28,[37,21],[[30,1,[\\\"members\\\"]]],null],[52,[30,1,[\\\"consolidation\\\"]],\\\"total\\\",\\\"avg\\\"]]],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"includedEntities\\\"]],[[[1,\\\"                    \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                    (\\\"],[1,[30,1,[\\\"includedEntities\\\"]]],[1,\\\"\\\\n                    /\\\\n                    \\\"],[1,[30,1,[\\\"members\\\",\\\"length\\\"]]],[1,\\\"\\\\n                    entities)\\\\n\\\"]],[]],null],[1,\\\"                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,\\\"tr\\\"],[14,0,\\\"data-table__subheading-row\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,19],[[28,[37,19],[[30,0,[\\\"orderedEntities\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"Month\\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"YTD\\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,24],null,[[\\\"@canSeeBreakdown\\\",\\\"@toggleShowChildren\\\",\\\"@toggleShowBreakdown\\\",\\\"@accounts\\\",\\\"@showMonth\\\",\\\"@showYTD\\\"],[[30,0,[\\\"canSeeBreakdown\\\"]],[28,[37,12],[[30,0],\\\"toggleShowChildren\\\"],null],[28,[37,12],[[30,0],\\\"toggleShowBreakdown\\\"],null],[30,0,[\\\"otherData\\\"]],true,true]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,2],[14,0,\\\"ptl-placeholder\\\"],[12],[1,\\\"Click on any table column heading to put that\\\\n        column first.\\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,2],[14,0,\\\"ptl-placeholder limit-small\\\"],[12],[1,\\\"* Numbers in this row will be sum\\\\n        of its subsections for a single branch but not necessarily for groups.\\\\n        More information can be found on the\\\\n        \\\"],[10,3],[14,6,\\\"http://support.otbs.co.nz/hc/en-us/sections/203085588\\\"],[14,0,\\\"link\\\"],[12],[1,\\\"support site.\\\"],[13],[13],[1,\\\"\\\\n\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"error-page error-page--no-data\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2 error-page__icon\\\"],[12],[8,[39,27],null,[[\\\"@icon\\\"],[\\\"info-circle\\\"]],null],[13],[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3 error-page__title\\\"],[12],[1,\\\"There are no groups accessible.\\\"],[13],[1,\\\"\\\\n        \\\"],[10,2],[12],[1,\\\"If you believe you have received this message in error, please check\\\\n          with your system administrator.\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"error-page error-page--no-data\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2 error-page__icon\\\"],[12],[8,[39,27],null,[[\\\"@icon\\\"],[\\\"info-circle\\\"]],null],[13],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3 error-page__title\\\"],[12],[1,\\\"This entity has no accounts in this\\\\n        section.\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"showBreakdown\\\"]],[[[1,\\\"  \\\"],[8,[39,29],null,[[\\\"@selectedMetric\\\",\\\"@selectedGroup\\\",\\\"@periodType\\\",\\\"@overlay-class\\\",\\\"@clickOutsideToClose\\\",\\\"@translucentOverlay\\\",\\\"@close\\\",\\\"@accountType\\\"],[[30,0,[\\\"selectedMetric\\\"]],[30,0,[\\\"selectedGroup\\\"]],[30,0,[\\\"selectedPeriodType\\\"]],\\\"breakdown\\\",true,true,[28,[37,12],[[30,0],\\\"toggleShowBreakdown\\\"],null],\\\"balances\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"entity\\\",\\\"entity\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"article\\\",\\\"if\\\",\\\"header\\\",\\\"or\\\",\\\"div\\\",\\\"groups-redacted-notice\\\",\\\"data-withheld-notice\\\",\\\"button\\\",\\\"action\\\",\\\"h1\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"each\\\",\\\"-track-array\\\",\\\"a\\\",\\\"is-array\\\",\\\"br\\\",\\\"tbody\\\",\\\"financials-table-section\\\",\\\"p\\\",\\\"h2\\\",\\\"fa-icon\\\",\\\"h3\\\",\\\"metric-breakdown\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/reports/general-ledger/other-data.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/reports/general-ledger/personal-data-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"2Bqeh+Jz\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/reports/general-ledger/personal-data-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/reports/general-ledger/personal-data\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title='Personal data'}}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    <header class='border-bottom mb-3'>\n      {{#if (media 'isDesktop')}}\n        <button\n          class='text-button text-button--download float-end'\n          type='button'\n          {{action 'downloadSheet'}}\n        >\n          Download report as CSV\n        </button>\n        <h1 class='h1'>Personal Data</h1>\n      {{/if}}\n    </header>\n  \n    {{#if this.model}}\n      <div class='financials-controls do-not-print control-wrapper'>\n        <label class='financials-controls__option'>\n          <Input @type='checkbox' @checked={{this.monthVisible}} />\n          Show month values\n        </label>\n  \n        <label class='financials-controls__option'>\n          <Input @type='checkbox' @checked={{this.ytdVisible}} />\n          Show YTD values\n        </label>\n  \n        <div class='financials-controls__option'>\n          <label class='options-selection' for='duration-picker'>\n            Number of periods:\n          </label>\n          <SelectInput\n            @value={{this.duration}}\n            @action={{fn (mut this.duration)}}\n            @class='select-box'\n            @id='duration-picker'\n            as |si|\n          >\n            {{#each this.durationOptions as |option|}}\n              <si.option @value={{option}}>{{option}}</si.option>\n            {{/each}}\n          </SelectInput>\n        </div>\n  \n        <div class='financials-controls__option'>\n          <label class='options-selection'>\n            Interval:\n          </label>\n          <SelectInput\n            @value={{this.interval}}\n            @action={{fn (mut this.interval)}}\n            @class='select-box'\n            as |si|\n          >\n            {{#each this.intervalOptions as |option|}}\n              <si.option @value={{option.value}}>{{option.name}}</si.option>\n            {{/each}}\n          </SelectInput>\n        </div>\n      </div>\n  \n      <table class='data-table financials-table'>\n        <thead>\n          <tr>\n            <th>Profit and Loss</th>\n  \n            {{#each this.dateRange as |date|}}\n              <th colspan={{this.colSpan}} class='financials-table__heading'>\n                <a class='financials-table__heading'>\n                  {{moment-format date 'MMM YYYY'}}\n                </a>\n              </th>\n            {{/each}}\n          </tr>\n  \n          <tr class='data-table__subheading-row'>\n            <th></th>\n            {{! Empty cell to line up }}\n            {{#each this.intervalCount}}\n              {{#if this.monthVisible}}\n                <th class='financials-table__heading'>Month</th>\n              {{/if}}\n  \n              {{#if this.ytdVisible}}\n                <th class='financials-table__heading'>YTD</th>\n              {{/if}}\n  \n              {{#if (not (or this.monthVisible this.ytdVisible))}}\n                <th></th>\n              {{/if}}\n            {{/each}}\n          </tr>\n  \n        </thead>\n  \n        <tbody>\n          <PersonalFinancialTableSection\n            @toggleShowChildren={{action 'toggleShowChildren'}}\n            @accounts={{this.profitAndLoss}}\n            @showMonth={{this.monthVisible}}\n            @showYTD={{this.ytdVisible}}\n            @totalsRow='Net Profit'\n            @filterHeaders={{true}}\n            @periodCount={{this.duration}}\n            @doNotPrintTotal={{this.doNotPrintNetProfit}}\n          />\n        </tbody>\n      </table>\n  \n      <table class='financials-table data-table'>\n        <thead>\n          <tr>\n            <th>Balance Sheet</th>\n  \n            {{#each this.dateRange as |date|}}\n              <th class='financials-table__heading'>\n                <a class='financials-table__heading'>\n                  {{moment-format date 'MMM YYYY'}}\n                </a>\n              </th>\n            {{/each}}\n          </tr>\n  \n          <tr class='data-table__subheading-row'>\n            <th></th>\n            {{! Empty cell to line up }}\n            {{#each this.intervalCount}}\n              <th class='financials-table__heading'>YTD</th>\n            {{/each}}\n          </tr>\n        </thead>\n  \n        <tbody>\n          <PersonalFinancialTableSection\n            @toggleShowChildren={{action 'toggleShowChildren'}}\n            @accounts={{this.balanceSheet}}\n            @showMonth={{true}}\n            @totalsRow='Net Equity'\n            @filterHeaders={{true}}\n            @periodCount={{this.duration}}\n            @doNotPrintTotal={{this.doNotPrintNetEquity}}\n          />\n        </tbody>\n      </table>\n  \n      <p>You can prevent sections from printing by clicking on the\n        <FaIcon @icon='eye' />\n        icons.</p>\n    {{else}}\n      <div class='text-center error no-data'>\n        <h2><FaIcon @icon='info-circle' /></h2>\n        <h3>There are no groups accessible.</h3>\n        <p>If you believe you have received this message in error, please check\n          with your system administrator.</p>\n      </div>\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"aHdhvCKc\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[\\\"Personal data\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--download float-end\\\"],[24,4,\\\"button\\\"],[4,[38,8],[[30,0],\\\"downloadSheet\\\"],null],[12],[1,\\\"\\\\n        Download report as CSV\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1\\\"],[12],[1,\\\"Personal Data\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"model\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"financials-controls do-not-print control-wrapper\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"financials-controls__option\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,12],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"monthVisible\\\"]]]],null],[1,\\\"\\\\n        Show month values\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"financials-controls__option\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,12],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"ytdVisible\\\"]]]],null],[1,\\\"\\\\n        Show YTD values\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"financials-controls__option\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"options-selection\\\"],[14,\\\"for\\\",\\\"duration-picker\\\"],[12],[1,\\\"\\\\n          Number of periods:\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,13],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\",\\\"@id\\\"],[[30,0,[\\\"duration\\\"]],[28,[37,14],[[28,[37,15],[[30,0,[\\\"duration\\\"]]],null]],null],\\\"select-box\\\",\\\"duration-picker\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,17],[[28,[37,17],[[30,0,[\\\"durationOptions\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[[30,2]]],[[\\\"default\\\"],[[[[1,[30,2]]],[]]]]],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"        \\\"]],[1]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"financials-controls__option\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"options-selection\\\"],[12],[1,\\\"\\\\n          Interval:\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,13],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"interval\\\"]],[28,[37,14],[[28,[37,15],[[30,0,[\\\"interval\\\"]]],null]],null],\\\"select-box\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,17],[[28,[37,17],[[30,0,[\\\"intervalOptions\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[[30,4,[\\\"value\\\"]]]],[[\\\"default\\\"],[[[[1,[30,4,[\\\"name\\\"]]]],[]]]]],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"        \\\"]],[3]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"table\\\"],[14,0,\\\"data-table financials-table\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"th\\\"],[12],[1,\\\"Profit and Loss\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,17],[[28,[37,17],[[30,0,[\\\"dateRange\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"th\\\"],[15,\\\"colspan\\\",[30,0,[\\\"colSpan\\\"]]],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"\\\\n              \\\"],[10,3],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,23],[[30,5],\\\"MMM YYYY\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"tr\\\"],[14,0,\\\"data-table__subheading-row\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"th\\\"],[12],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,17],[[28,[37,17],[[30,0,[\\\"intervalCount\\\"]]],null]],null],null,[[[41,[30,0,[\\\"monthVisible\\\"]],[[[1,\\\"              \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"Month\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"ytdVisible\\\"]],[[[1,\\\"              \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"YTD\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,24],[[28,[37,25],[[30,0,[\\\"monthVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]]],null]],null],[[[1,\\\"              \\\"],[10,\\\"th\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,27],null,[[\\\"@toggleShowChildren\\\",\\\"@accounts\\\",\\\"@showMonth\\\",\\\"@showYTD\\\",\\\"@totalsRow\\\",\\\"@filterHeaders\\\",\\\"@periodCount\\\",\\\"@doNotPrintTotal\\\"],[[28,[37,8],[[30,0],\\\"toggleShowChildren\\\"],null],[30,0,[\\\"profitAndLoss\\\"]],[30,0,[\\\"monthVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]],\\\"Net Profit\\\",true,[30,0,[\\\"duration\\\"]],[30,0,[\\\"doNotPrintNetProfit\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"table\\\"],[14,0,\\\"financials-table data-table\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"th\\\"],[12],[1,\\\"Balance Sheet\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,17],[[28,[37,17],[[30,0,[\\\"dateRange\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"\\\\n              \\\"],[10,3],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,23],[[30,6],\\\"MMM YYYY\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[6]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"tr\\\"],[14,0,\\\"data-table__subheading-row\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"th\\\"],[12],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,17],[[28,[37,17],[[30,0,[\\\"intervalCount\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"YTD\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,27],null,[[\\\"@toggleShowChildren\\\",\\\"@accounts\\\",\\\"@showMonth\\\",\\\"@totalsRow\\\",\\\"@filterHeaders\\\",\\\"@periodCount\\\",\\\"@doNotPrintTotal\\\"],[[28,[37,8],[[30,0],\\\"toggleShowChildren\\\"],null],[30,0,[\\\"balanceSheet\\\"]],true,\\\"Net Equity\\\",true,[30,0,[\\\"duration\\\"]],[30,0,[\\\"doNotPrintNetEquity\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,2],[12],[1,\\\"You can prevent sections from printing by clicking on the\\\\n      \\\"],[8,[39,29],null,[[\\\"@icon\\\"],[\\\"eye\\\"]],null],[1,\\\"\\\\n      icons.\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"text-center error no-data\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h2\\\"],[12],[8,[39,29],null,[[\\\"@icon\\\"],[\\\"info-circle\\\"]],null],[13],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[12],[1,\\\"There are no groups accessible.\\\"],[13],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"If you believe you have received this message in error, please check\\\\n        with your system administrator.\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"si\\\",\\\"option\\\",\\\"si\\\",\\\"option\\\",\\\"date\\\",\\\"date\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"article\\\",\\\"header\\\",\\\"if\\\",\\\"button\\\",\\\"action\\\",\\\"h1\\\",\\\"div\\\",\\\"label\\\",\\\"input\\\",\\\"select-input\\\",\\\"fn\\\",\\\"mut\\\",\\\"each\\\",\\\"-track-array\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"a\\\",\\\"moment-format\\\",\\\"not\\\",\\\"or\\\",\\\"tbody\\\",\\\"personal-financial-table-section\\\",\\\"p\\\",\\\"fa-icon\\\",\\\"h2\\\",\\\"h3\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/reports/general-ledger/personal-data.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/reports/general-ledger/profit-and-loss-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"br2Wd9IA\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/reports/general-ledger/profit-and-loss-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/reports/general-ledger/profit-and-loss\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title='Profit and loss'}}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    <header class='border-bottom mb-3'>\n      {{#if (or this.model.groupsRedacted this.model.ownDataWithheld)}}\n        <div class='data-withheld-notice-container'>\n          {{#if this.model.groupsRedacted}}\n            <GroupsRedactedNotice />\n          {{/if}}\n  \n          {{#if this.model.ownDataWithheld}}\n            <DataWithheldNotice />\n          {{/if}}\n        </div>\n      {{/if}}\n  \n      {{#if (media 'isDesktop')}}\n        <button\n          class='text-button text-button--download float-end'\n          type='button'\n          {{action 'downloadSheet'}}\n        >\n          Download report as CSV\n        </button>\n  \n        <h1 class='h1'>Profit and Loss</h1>\n      {{/if}}\n    </header>\n    {{#if this.showBreakdown}}\n      <MetricBreakdown\n        @selectedMetric={{this.selectedMetric}}\n        @selectedGroup={{this.selectedGroup}}\n        @periodType={{this.selectedPeriodType}}\n        @overlay-class='breakdown'\n        @clickOutsideToClose={{true}}\n        @translucentOverlay={{true}}\n        @close={{action 'toggleShowBreakdown'}}\n        @accountType='balances'\n      />\n    {{/if}}\n  \n    {{#if this.model.entities}}\n      <div class='financials-controls'>\n        <div class='control-wrapper'>\n          <label>\n            <Input @type='checkbox' @checked={{this.monthVisible}} />\n            Show month values\n          </label>\n  \n          <label>\n            <Input @type='checkbox' @checked={{this.ytdVisible}} />\n            Show YTD values\n          </label>\n        </div>\n      </div>\n  \n      <table class='data-table financials-table'>\n        <thead>\n          <tr>\n            <th>Profit and Loss</th>\n  \n            {{#each this.orderedEntities as |entity|}}\n              <th colspan={{this.colSpan}} class='financials-table__heading'>\n                <a\n                  {{action 'shiftFarLeft' entity}}\n                  class='financials-table__heading-link'\n                  title='Click to put this column first'\n                >\n                  {{entity.name}}\n                  {{if\n                    (is-array entity.members)\n                    (if entity.consolidation 'total' 'avg')\n                  }}\n                  {{#if entity.includedEntities}}\n                    <br />\n                    ({{entity.includedEntities}}\n                    /\n                    {{entity.members.length}}\n                    entities)\n                  {{/if}}\n                </a>\n              </th>\n            {{/each}}\n          </tr>\n  \n          <tr class='data-table__subheading-row'>\n            <th></th>\n  \n            {{! template-lint-disable no-unused-block-params }}\n            {{#each this.orderedEntities as |entity|}}\n              {{#if this.monthVisible}}\n                <th class='financials-table__heading'>Month</th>\n              {{/if}}\n  \n              {{#if this.ytdVisible}}\n                <th class='financials-table__heading'>YTD</th>\n              {{/if}}\n  \n              {{#if (not (or this.monthVisible this.ytdVisible))}}\n                <th class='financials-table__heading'>–</th>\n              {{/if}}\n            {{/each}}\n          </tr>\n        </thead>\n        <tbody>\n          <FinancialsTableSection\n            @canSeeBreakdown={{this.canSeeBreakdown}}\n            @toggleShowChildren={{action 'toggleShowChildren'}}\n            @toggleShowBreakdown={{action 'toggleShowBreakdown'}}\n            @accounts={{this.profitAndLoss}}\n            @showMonth={{this.monthVisible}}\n            @showYTD={{this.ytdVisible}}\n            @totalsRow='Net Profit'\n            @hasGroups={{true}}\n          />\n        </tbody>\n      </table>\n  \n      <div class='footnote'>\n        <p>Click on any table column heading to put that column first.</p>\n        <p>* Numbers in this row will be sum of its subsections for a single\n          branch but not necessarily for groups. More information can be found on\n          the\n          <a\n            href='http://support.otbs.co.nz/hc/en-us/sections/203085588'\n            class='link'\n          >support site.</a></p>\n      </div>\n    {{else}}\n      <div class='error-page error-page--no-data'>\n        <h2 class='h2 error-page__icon'><FaIcon @icon='info-circle' /></h2>\n        <h3 class='h3 error-page__title'>There are no groups accessible.</h3>\n        <p>If you believe you have received this message in error, please check\n          with your system administrator.</p>\n      </div>\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"Qn0F0TpQ\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[\\\"Profit and loss\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[[30,0,[\\\"model\\\",\\\"groupsRedacted\\\"]],[30,0,[\\\"model\\\",\\\"ownDataWithheld\\\"]]],null],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"data-withheld-notice-container\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"groupsRedacted\\\"]],[[[1,\\\"          \\\"],[8,[39,9],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"ownDataWithheld\\\"]],[[[1,\\\"          \\\"],[8,[39,10],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--download float-end\\\"],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],\\\"downloadSheet\\\"],null],[12],[1,\\\"\\\\n        Download report as CSV\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1\\\"],[12],[1,\\\"Profit and Loss\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showBreakdown\\\"]],[[[1,\\\"    \\\"],[8,[39,14],null,[[\\\"@selectedMetric\\\",\\\"@selectedGroup\\\",\\\"@periodType\\\",\\\"@overlay-class\\\",\\\"@clickOutsideToClose\\\",\\\"@translucentOverlay\\\",\\\"@close\\\",\\\"@accountType\\\"],[[30,0,[\\\"selectedMetric\\\"]],[30,0,[\\\"selectedGroup\\\"]],[30,0,[\\\"selectedPeriodType\\\"]],\\\"breakdown\\\",true,true,[28,[37,12],[[30,0],\\\"toggleShowBreakdown\\\"],null],\\\"balances\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"entities\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"financials-controls\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"control-wrapper\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,16],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"monthVisible\\\"]]]],null],[1,\\\"\\\\n          Show month values\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,16],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"ytdVisible\\\"]]]],null],[1,\\\"\\\\n          Show YTD values\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"table\\\"],[14,0,\\\"data-table financials-table\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"th\\\"],[12],[1,\\\"Profit and Loss\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,22],[[28,[37,22],[[30,0,[\\\"orderedEntities\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"th\\\"],[15,\\\"colspan\\\",[30,0,[\\\"colSpan\\\"]]],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"\\\\n              \\\"],[11,3],[24,0,\\\"financials-table__heading-link\\\"],[24,\\\"title\\\",\\\"Click to put this column first\\\"],[4,[38,12],[[30,0],\\\"shiftFarLeft\\\",[30,1]],null],[12],[1,\\\"\\\\n                \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n                \\\"],[1,[52,[28,[37,24],[[30,1,[\\\"members\\\"]]],null],[52,[30,1,[\\\"consolidation\\\"]],\\\"total\\\",\\\"avg\\\"]]],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"includedEntities\\\"]],[[[1,\\\"                  \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                  (\\\"],[1,[30,1,[\\\"includedEntities\\\"]]],[1,\\\"\\\\n                  /\\\\n                  \\\"],[1,[30,1,[\\\"members\\\",\\\"length\\\"]]],[1,\\\"\\\\n                  entities)\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"tr\\\"],[14,0,\\\"data-table__subheading-row\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"th\\\"],[12],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,22],[[28,[37,22],[[30,0,[\\\"orderedEntities\\\"]]],null]],null],null,[[[41,[30,0,[\\\"monthVisible\\\"]],[[[1,\\\"              \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"Month\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"ytdVisible\\\"]],[[[1,\\\"              \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"YTD\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,26],[[28,[37,7],[[30,0,[\\\"monthVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]]],null]],null],[[[1,\\\"              \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"–\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[2]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,28],null,[[\\\"@canSeeBreakdown\\\",\\\"@toggleShowChildren\\\",\\\"@toggleShowBreakdown\\\",\\\"@accounts\\\",\\\"@showMonth\\\",\\\"@showYTD\\\",\\\"@totalsRow\\\",\\\"@hasGroups\\\"],[[30,0,[\\\"canSeeBreakdown\\\"]],[28,[37,12],[[30,0],\\\"toggleShowChildren\\\"],null],[28,[37,12],[[30,0],\\\"toggleShowBreakdown\\\"],null],[30,0,[\\\"profitAndLoss\\\"]],[30,0,[\\\"monthVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]],\\\"Net Profit\\\",true]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"footnote\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"Click on any table column heading to put that column first.\\\"],[13],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"* Numbers in this row will be sum of its subsections for a single\\\\n        branch but not necessarily for groups. More information can be found on\\\\n        the\\\\n        \\\"],[10,3],[14,6,\\\"http://support.otbs.co.nz/hc/en-us/sections/203085588\\\"],[14,0,\\\"link\\\"],[12],[1,\\\"support site.\\\"],[13],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"error-page error-page--no-data\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2 error-page__icon\\\"],[12],[8,[39,31],null,[[\\\"@icon\\\"],[\\\"info-circle\\\"]],null],[13],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3 error-page__title\\\"],[12],[1,\\\"There are no groups accessible.\\\"],[13],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"If you believe you have received this message in error, please check\\\\n        with your system administrator.\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"entity\\\",\\\"entity\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"article\\\",\\\"header\\\",\\\"if\\\",\\\"or\\\",\\\"div\\\",\\\"groups-redacted-notice\\\",\\\"data-withheld-notice\\\",\\\"button\\\",\\\"action\\\",\\\"h1\\\",\\\"metric-breakdown\\\",\\\"label\\\",\\\"input\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"each\\\",\\\"-track-array\\\",\\\"a\\\",\\\"is-array\\\",\\\"br\\\",\\\"not\\\",\\\"tbody\\\",\\\"financials-table-section\\\",\\\"p\\\",\\\"h2\\\",\\\"fa-icon\\\",\\\"h3\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/reports/general-ledger/profit-and-loss.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/reports/imports-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"e5Wr5pst\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/reports/imports-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/reports/imports\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title='Data availability'}}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    {{#if (media 'isDesktop')}}\n      <header class='border-bottom mb-3'>\n        <h1 class='h1'>Data Availability</h1>\n      </header>\n    {{/if}}\n  \n    <table class='data-table import-timeline-table'>\n      <thead>\n        <tr>\n          <th></th>\n  \n          {{#each this.model.periods as |period index|}}\n            {{#if (or (eq index 0) (eq (moment-format period.date 'M') '1'))}}\n              <th\n                colspan={{math 13 '-' (moment-format period.date 'M')}}\n              >{{moment-format period.date 'YYYY'}}</th>\n            {{/if}}\n          {{/each}}\n        </tr>\n        <tr>\n          <th></th>\n  \n          {{#each this.model.periods as |period|}}\n            <th class='text-center'>{{moment-format period.date 'MM'}}</th>\n          {{/each}}\n        </tr>\n      </thead>\n      <tbody>\n        {{#each this.model.entities as |branch|}}\n          <tr>\n            <td>{{branch.name}}</td>\n  \n            {{#each branch.periods as |period|}}\n              <td class={{if period 'present'}}></td>\n            {{/each}}\n          </tr>\n        {{/each}}\n      </tbody>\n      <tfoot>\n        <tr class='data-table__total-row'>\n          <td>Total (out of {{this.model.entities.length}})</td>\n  \n          {{#each this.model.periods as |period|}}\n            <td>{{period.count}}</td>\n          {{/each}}\n        </tr>\n      </tfoot>\n    </table>\n  </article>\n  */\n  {\n    \"id\": \"V0WVpuPC\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[\\\"Data availability\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1\\\"],[12],[1,\\\"Data Availability\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[10,\\\"table\\\"],[14,0,\\\"data-table import-timeline-table\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"th\\\"],[12],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,13],[[28,[37,13],[[30,0,[\\\"model\\\",\\\"periods\\\"]]],null]],null],null,[[[41,[28,[37,14],[[28,[37,15],[[30,2],0],null],[28,[37,15],[[28,[37,16],[[30,1,[\\\"date\\\"]],\\\"M\\\"],null],\\\"1\\\"],null]],null],[[[1,\\\"            \\\"],[10,\\\"th\\\"],[15,\\\"colspan\\\",[28,[37,17],[13,\\\"-\\\",[28,[37,16],[[30,1,[\\\"date\\\"]],\\\"M\\\"],null]],null]],[12],[1,[28,[35,16],[[30,1,[\\\"date\\\"]],\\\"YYYY\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null]],[1,2]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"th\\\"],[12],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,13],[[28,[37,13],[[30,0,[\\\"model\\\",\\\"periods\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[10,\\\"th\\\"],[14,0,\\\"text-center\\\"],[12],[1,[28,[35,16],[[30,3,[\\\"date\\\"]],\\\"MM\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,13],[[28,[37,13],[[30,0,[\\\"model\\\",\\\"entities\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"td\\\"],[12],[1,[30,4,[\\\"name\\\"]]],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,13],[[28,[37,13],[[30,4,[\\\"periods\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"td\\\"],[15,0,[52,[30,5],\\\"present\\\"]],[12],[13],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"tfoot\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"tr\\\"],[14,0,\\\"data-table__total-row\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"td\\\"],[12],[1,\\\"Total (out of \\\"],[1,[30,0,[\\\"model\\\",\\\"entities\\\",\\\"length\\\"]]],[1,\\\")\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,13],[[28,[37,13],[[30,0,[\\\"model\\\",\\\"periods\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[10,\\\"td\\\"],[12],[1,[30,6,[\\\"count\\\"]]],[13],[1,\\\"\\\\n\\\"]],[6]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"period\\\",\\\"index\\\",\\\"period\\\",\\\"branch\\\",\\\"period\\\",\\\"period\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"article\\\",\\\"if\\\",\\\"header\\\",\\\"h1\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"each\\\",\\\"-track-array\\\",\\\"or\\\",\\\"eq\\\",\\\"moment-format\\\",\\\"math\\\",\\\"tbody\\\",\\\"td\\\",\\\"tfoot\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/reports/imports.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/reports/kpis-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"kfdiUxil\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/reports/kpis-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/reports/kpis\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"AFDDhDvm\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/reports/kpis.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/reports/kpis/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title='Key performance indicators'\n      }}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    {{#if (media 'isDesktop')}}\n      <header class='border-bottom mb-3'>\n        {{#if (or this.model.groupsRedacted this.model.ownDataWithheld)}}\n          <div class='data-withheld-notice-container'>\n            {{#if this.model.groupsRedacted}}\n              <GroupsRedactedNotice />\n            {{/if}}\n  \n            {{#if this.model.ownDataWithheld}}\n              <DataWithheldNotice />\n            {{/if}}\n          </div>\n        {{/if}}\n  \n        <button\n          class='text-button text-button--download float-end'\n          type='button'\n          {{action 'downloadSheet'}}\n        >\n          Download report as CSV\n        </button>\n        <h1 class='h1'>Key Performance Indicators</h1>\n  \n      </header>\n    {{else}}\n  \n      {{#if this.model.groupsRedacted}}\n        <p class='h4'>\n          Group data has not yet been released for this period\n        </p>\n      {{/if}}\n    {{/if}}\n  \n    {{#if (get this.model.kpis '0.data.length')}}\n      <div class='financials-controls'>\n        <label>\n          <Input @type='checkbox' @checked={{this.monthVisible}} />\n          Show month values\n        </label>\n  \n        <label>\n          <Input @type='checkbox' @checked={{this.ytdVisible}} />\n          Show YTD values\n        </label>\n      </div>\n  \n      <table class='data-table financials-table'>\n        <thead>\n          <tr>\n            <th>KPI</th>\n            {{#each this.orderedEntities as |entity|}}\n              <th colspan={{this.colSpan}} class='financials-table__heading'>\n                {{! template-lint-disable link-href-attributes }}\n                <a\n                  {{action 'shiftFarLeft' entity}}\n                  class='financials-table__heading-link'\n                  title='Click to put this column first'\n                >\n                  {{entity.name}}\n                  {{if\n                    (is-array entity.members)\n                    (if entity.consolidation 'total' 'avg')\n                  }}\n                  {{#if entity.includedEntities}}\n                    <br />\n                    ({{entity.includedEntities}}\n                    /\n                    {{entity.members.length}}\n                    entities)\n                  {{/if}}\n                </a>\n              </th>\n            {{/each}}\n          </tr>\n  \n          <tr class='data-table__subheading-row'>\n            <th>{{this.periodString}}</th>\n            {{! template-lint-disable no-unused-block-params }}\n            {{#each this.orderedEntities as |_entity|}}\n              {{#if this.monthVisible}}\n                <th class='financials-table__heading'>Month</th>\n              {{/if}}\n  \n              {{#if this.ytdVisible}}\n                <th class='financials-table__heading'>YTD</th>\n              {{/if}}\n  \n              {{#if (not (or this.monthVisible this.ytdVisible))}}\n                <th class='financials-table__heading'>–</th>\n              {{/if}}\n            {{/each}}\n          </tr>\n        </thead>\n        <tbody>\n          {{#each this.kpisSortedByEntity as |kpi|}}\n            <tr>\n              {{! KPI name column }}\n              <td>\n                {{#if this.linkToDetail}}\n                  <LinkTo\n                    @route='entity.financials.reports.kpis.kpi'\n                    @model={{kpi.slug}}\n                    class='link'\n                  >{{kpi.name}}</LinkTo>\n                {{else}}\n                  {{kpi.name}}\n                {{/if}}\n              </td>\n  \n              {{! Data columns }}\n              {{#each kpi.data as |data index|}}\n                {{#if this.monthVisible}}\n                  {{#if (and (not-eq index 0) this.canSeeBreakdown)}}\n                    <td\n                      {{action 'toggleShowBreakdown' kpi data.entity 'month'}}\n                      class='text-right financials-table__inspectable-cell'\n                    >\n                      {{number-format\n                        data.month\n                        style=(get this.formattedStyle kpi.format)\n                        maximumFractionDigits=2\n                        dashZero=true\n                      }}\n                    </td>\n                  {{else}}\n                    <td class='text-right'>\n                      {{number-format\n                        data.month\n                        style=(get this.formattedStyle kpi.format)\n                        maximumFractionDigits=2\n                        dashZero=true\n                      }}\n                    </td>\n                  {{/if}}\n                {{/if}}\n                {{#if this.ytdVisible}}\n                  {{#if (and (not-eq index 0) this.canSeeBreakdown)}}\n                    <td\n                      {{action 'toggleShowBreakdown' kpi data.entity 'ytd'}}\n                      class='text-right financials-table__inspectable-cell'\n                    >\n                      {{number-format\n                        data.ytd\n                        style=(get this.formattedStyle kpi.format)\n                        maximumFractionDigits=2\n                        dashZero=true\n                      }}\n                    </td>\n                  {{else}}\n                    <td class='text-right'>\n                      {{number-format\n                        data.ytd\n                        style=(get this.formattedStyle kpi.format)\n                        maximumFractionDigits=2\n                        dashZero=true\n                      }}\n                    </td>\n                  {{/if}}\n                {{/if}}\n              {{/each}}\n            </tr>\n          {{/each}}\n  \n        </tbody>\n  \n      </table>\n    {{else}}\n      <div class='text-center error no-data'>\n        <h2><FaIcon @icon='info-circle' /></h2>\n        <h3>There are no reports accessible.</h3>\n        <p>If you believe you have received this message in error, please check\n          with your system administrator.</p>\n      </div>\n    {{/if}}\n  </article>\n  \n  {{#if this.showBreakdown}}\n    <MetricBreakdown\n      @selectedMetric={{this.selectedMetric}}\n      @selectedGroup={{this.selectedGroup}}\n      @periodType={{this.selectedPeriodType}}\n      @clickOutsideToClose={{true}}\n      @translucentOverlay={{true}}\n      @close={{action 'toggleShowBreakdown'}}\n      @accountType='kpis'\n    />\n  {{/if}}\n  */\n  {\n    \"id\": \"TnvEg80Q\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[\\\"Key performance indicators\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[[30,0,[\\\"model\\\",\\\"groupsRedacted\\\"]],[30,0,[\\\"model\\\",\\\"ownDataWithheld\\\"]]],null],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"data-withheld-notice-container\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"groupsRedacted\\\"]],[[[1,\\\"            \\\"],[8,[39,9],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"ownDataWithheld\\\"]],[[[1,\\\"            \\\"],[8,[39,10],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--download float-end\\\"],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],\\\"downloadSheet\\\"],null],[12],[1,\\\"\\\\n        Download report as CSV\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1\\\"],[12],[1,\\\"Key Performance Indicators\\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"groupsRedacted\\\"]],[[[1,\\\"      \\\"],[10,2],[14,0,\\\"h4\\\"],[12],[1,\\\"\\\\n        Group data has not yet been released for this period\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[1,\\\"\\\\n\\\"],[41,[28,[37,15],[[30,0,[\\\"model\\\",\\\"kpis\\\"]],\\\"0.data.length\\\"],null],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"financials-controls\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,17],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"monthVisible\\\"]]]],null],[1,\\\"\\\\n        Show month values\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,17],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"ytdVisible\\\"]]]],null],[1,\\\"\\\\n        Show YTD values\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"table\\\"],[14,0,\\\"data-table financials-table\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"th\\\"],[12],[1,\\\"KPI\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,23],[[28,[37,23],[[30,0,[\\\"orderedEntities\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"th\\\"],[15,\\\"colspan\\\",[30,0,[\\\"colSpan\\\"]]],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"              \\\"],[11,3],[24,0,\\\"financials-table__heading-link\\\"],[24,\\\"title\\\",\\\"Click to put this column first\\\"],[4,[38,12],[[30,0],\\\"shiftFarLeft\\\",[30,1]],null],[12],[1,\\\"\\\\n                \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n                \\\"],[1,[52,[28,[37,25],[[30,1,[\\\"members\\\"]]],null],[52,[30,1,[\\\"consolidation\\\"]],\\\"total\\\",\\\"avg\\\"]]],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"includedEntities\\\"]],[[[1,\\\"                  \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                  (\\\"],[1,[30,1,[\\\"includedEntities\\\"]]],[1,\\\"\\\\n                  /\\\\n                  \\\"],[1,[30,1,[\\\"members\\\",\\\"length\\\"]]],[1,\\\"\\\\n                  entities)\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"tr\\\"],[14,0,\\\"data-table__subheading-row\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"th\\\"],[12],[1,[30,0,[\\\"periodString\\\"]]],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,23],[[28,[37,23],[[30,0,[\\\"orderedEntities\\\"]]],null]],null],null,[[[41,[30,0,[\\\"monthVisible\\\"]],[[[1,\\\"              \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"Month\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"ytdVisible\\\"]],[[[1,\\\"              \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"YTD\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,27],[[28,[37,7],[[30,0,[\\\"monthVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]]],null]],null],[[[1,\\\"              \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"–\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[2]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,23],[[28,[37,23],[[30,0,[\\\"kpisSortedByEntity\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"            \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"linkToDetail\\\"]],[[[1,\\\"                \\\"],[8,[39,30],[[24,0,\\\"link\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.financials.reports.kpis.kpi\\\",[30,3,[\\\"slug\\\"]]]],[[\\\"default\\\"],[[[[1,[30,3,[\\\"name\\\"]]]],[]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[30,3,[\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,23],[[28,[37,23],[[30,3,[\\\"data\\\"]]],null]],null],null,[[[41,[30,0,[\\\"monthVisible\\\"]],[[[41,[28,[37,31],[[28,[37,32],[[30,5],0],null],[30,0,[\\\"canSeeBreakdown\\\"]]],null],[[[1,\\\"                  \\\"],[11,\\\"td\\\"],[24,0,\\\"text-right financials-table__inspectable-cell\\\"],[4,[38,12],[[30,0],\\\"toggleShowBreakdown\\\",[30,3],[30,4,[\\\"entity\\\"]],\\\"month\\\"],null],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,33],[[30,4,[\\\"month\\\"]]],[[\\\"style\\\",\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[[28,[37,15],[[30,0,[\\\"formattedStyle\\\"]],[30,3,[\\\"format\\\"]]],null],2,true]]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,33],[[30,4,[\\\"month\\\"]]],[[\\\"style\\\",\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[[28,[37,15],[[30,0,[\\\"formattedStyle\\\"]],[30,3,[\\\"format\\\"]]],null],2,true]]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],null],[41,[30,0,[\\\"ytdVisible\\\"]],[[[41,[28,[37,31],[[28,[37,32],[[30,5],0],null],[30,0,[\\\"canSeeBreakdown\\\"]]],null],[[[1,\\\"                  \\\"],[11,\\\"td\\\"],[24,0,\\\"text-right financials-table__inspectable-cell\\\"],[4,[38,12],[[30,0],\\\"toggleShowBreakdown\\\",[30,3],[30,4,[\\\"entity\\\"]],\\\"ytd\\\"],null],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,33],[[30,4,[\\\"ytd\\\"]]],[[\\\"style\\\",\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[[28,[37,15],[[30,0,[\\\"formattedStyle\\\"]],[30,3,[\\\"format\\\"]]],null],2,true]]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,33],[[30,4,[\\\"ytd\\\"]]],[[\\\"style\\\",\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[[28,[37,15],[[30,0,[\\\"formattedStyle\\\"]],[30,3,[\\\"format\\\"]]],null],2,true]]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],null]],[4,5]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"text-center error no-data\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h2\\\"],[12],[8,[39,35],null,[[\\\"@icon\\\"],[\\\"info-circle\\\"]],null],[13],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[12],[1,\\\"There are no reports accessible.\\\"],[13],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"If you believe you have received this message in error, please check\\\\n        with your system administrator.\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"showBreakdown\\\"]],[[[1,\\\"  \\\"],[8,[39,37],null,[[\\\"@selectedMetric\\\",\\\"@selectedGroup\\\",\\\"@periodType\\\",\\\"@clickOutsideToClose\\\",\\\"@translucentOverlay\\\",\\\"@close\\\",\\\"@accountType\\\"],[[30,0,[\\\"selectedMetric\\\"]],[30,0,[\\\"selectedGroup\\\"]],[30,0,[\\\"selectedPeriodType\\\"]],true,true,[28,[37,12],[[30,0],\\\"toggleShowBreakdown\\\"],null],\\\"kpis\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"entity\\\",\\\"_entity\\\",\\\"kpi\\\",\\\"data\\\",\\\"index\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"article\\\",\\\"if\\\",\\\"header\\\",\\\"or\\\",\\\"div\\\",\\\"groups-redacted-notice\\\",\\\"data-withheld-notice\\\",\\\"button\\\",\\\"action\\\",\\\"h1\\\",\\\"p\\\",\\\"get\\\",\\\"label\\\",\\\"input\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"each\\\",\\\"-track-array\\\",\\\"a\\\",\\\"is-array\\\",\\\"br\\\",\\\"not\\\",\\\"tbody\\\",\\\"td\\\",\\\"link-to\\\",\\\"and\\\",\\\"not-eq\\\",\\\"number-format\\\",\\\"h2\\\",\\\"fa-icon\\\",\\\"h3\\\",\\\"metric-breakdown\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/reports/kpis/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/reports/kpis/kpi\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4'>\n    <header class='border-bottom mb-3'>\n      <RadioSlider\n        @options={{this.periodTypeOptions}}\n        @selected={{this.periodType}}\n        @class='float-end'\n      />\n      <h1 class='h1'>KPI Detail</h1>\n    </header>\n  \n    <section class='master-detail kpi-page'>\n      <aside class='master-detail__master'>\n        <ul>\n          {{#each this.model.kpiMeta as |kpi|}}\n            <li>\n              <LinkTo\n                @route='entity.financials.reports.kpis.kpi'\n                @model={{kpi.id}}\n              >\n                {{kpi.name}}\n              </LinkTo>\n            </li>\n          {{/each}}\n        </ul>\n      </aside>\n  \n      <article\n        class='master-detail__detail kpi-page__detail\n          {{if this.noData \"no-data error-page kpi-page--error\"}}'\n      >\n        {{#unless this.noData}}\n          {{#let this.currentStats as |stats|}}\n            <section class='stats'>\n              {{#if stats.rankable}}\n                <div class='metric ranking'>\n                  <div class='number'>\n                    {{#if stats.rankings}}\n                      {{get stats.rankings '0.rank'}}<sup>\n                        {{ordinal-for stats.rankings '0.rank'}}</sup>\n                    {{else}}\n                      –\n                    {{/if}}\n                  </div>\n                  <div class='label'>Ranking out of\n                    {{get stats.rankings '0.outOf'}}\n                    entities</div>\n                </div>\n                <div class='metric'>\n                  <div class='number'>{{if\n                      stats.best\n                      (number-format\n                        stats.best\n                        style=(get this.formattedStyle this.model.kpi.meta.format)\n                        maximumFractionDigits=2\n                        dashZero=false\n                      )\n                      '–'\n                    }}</div>\n                  <div class='label'>National best for\n                    {{moment-format this.period 'MM/YYYY' 'YYYY-MM'}}</div>\n                </div>\n              {{/if}}\n  \n              <div class='metric'>\n                <div class='number'>{{if\n                    stats.mean\n                    (number-format\n                      stats.mean\n                      style=(get this.formattedStyle this.model.kpi.meta.format)\n                      maximumFractionDigits=2\n                      dashZero=false\n                    )\n                    '–'\n                  }}</div>\n                <div class='label'>National average for\n                  {{moment-format this.period 'MM/YYYY' 'YYYY-MM'}}</div>\n              </div>\n  \n              <div class='metric'>\n                <div class='number'>\n                  {{#if\n                    (or\n                      (get stats.rankings '0.value')\n                      (eq (get stats.rankings '0.value') 0)\n                    )\n                  }}\n                    {{number-format\n                      stats.rankings\n                      '0.value'\n                      style=(get this.formattedStyle this.model.kpi.meta.format)\n                      maximumFractionDigits=2\n                      dashZero=false\n                    }}\n                  {{else}}\n                    –\n                  {{/if}}\n                </div>\n                <div class='label'>{{this.sessionData.branch.name}}\n                  for\n                  {{moment-format\n                    this.sessionData.period\n                    'MM/YYYY'\n                    'YYYY-MM'\n                  }}</div>\n              </div>\n            </section>\n          {{/let}}\n  \n          <section class='kpi-chart'>\n            <Charts::LineChart\n              @metrics={{this.model.kpi}}\n              @series={{this.model.series}}\n              @period={{this.chartPeriod}}\n              @reuse={{false}}\n            />\n          </section>\n  \n          {{#if this.selectedPeriodData}}\n            {{#let\n              (get this.selectedPeriodData.periodTypes this.periodType)\n              as |calculation|\n            }}\n              <section class='breakdown'>\n                <CalculationBreakdown\n                  @calc={{this.model.kpi.meta.calculationSteps}}\n                  @inputs={{calculation.inputs}}\n                  @result={{calculation.value}}\n                  @format={{get this.formattedStyle this.model.kpi.meta.format}}\n                />\n              </section>\n            {{/let}}\n          {{else}}\n            <section class='breakdown breakdown--no-data'>\n              No calculation data for current period\n            </section>\n          {{/if}}\n  \n          {{#if\n            (or this.model.kpi.meta.description this.model.kpi.meta.strategies)\n          }}\n            <section class='kpi-information'>\n              {{#if this.model.kpi.meta.description}}\n                <div>\n                  <h2>Explanation</h2>\n                  <MarkdownToHtml @markdown={{this.model.kpi.meta.description}} />\n                </div>\n              {{/if}}\n  \n              {{#if this.model.kpi.meta.strategies}}\n                <div>\n                  <h2>Strategies</h2>\n                  <MarkdownToHtml @markdown={{this.model.kpi.meta.strategies}} />\n                </div>\n              {{/if}}\n            </section>\n          {{/if}}\n        {{else}}\n          <p class='error-page__title'>There is no data to display for this\n            period.</p>\n        {{/unless}}\n      </article>\n    </section>\n  </article>\n  */\n  {\n    \"id\": \"d8BWObul\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,2],null,[[\\\"@options\\\",\\\"@selected\\\",\\\"@class\\\"],[[30,0,[\\\"periodTypeOptions\\\"]],[30,0,[\\\"periodType\\\"]],\\\"float-end\\\"]],null],[1,\\\"\\\\n    \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1\\\"],[12],[1,\\\"KPI Detail\\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"section\\\"],[14,0,\\\"master-detail kpi-page\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"aside\\\"],[14,0,\\\"master-detail__master\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"ul\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,0,[\\\"model\\\",\\\"kpiMeta\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,10],null,[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.financials.reports.kpis.kpi\\\",[30,1,[\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"article\\\"],[15,0,[29,[\\\"master-detail__detail kpi-page__detail\\\\n        \\\",[52,[30,0,[\\\"noData\\\"]],\\\"no-data error-page kpi-page--error\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"noData\\\"]]],[[[44,[[30,0,[\\\"currentStats\\\"]]],[[[1,\\\"          \\\"],[10,\\\"section\\\"],[14,0,\\\"stats\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"rankable\\\"]],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"metric ranking\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"number\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"rankings\\\"]],[[[1,\\\"                    \\\"],[1,[28,[35,15],[[30,2,[\\\"rankings\\\"]],\\\"0.rank\\\"],null]],[10,\\\"sup\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,17],[[30,2,[\\\"rankings\\\"]],\\\"0.rank\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                    –\\\\n\\\"]],[]]],[1,\\\"                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"label\\\"],[12],[1,\\\"Ranking out of\\\\n                  \\\"],[1,[28,[35,15],[[30,2,[\\\"rankings\\\"]],\\\"0.outOf\\\"],null]],[1,\\\"\\\\n                  entities\\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"metric\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"number\\\"],[12],[1,[52,[30,2,[\\\"best\\\"]],[28,[37,18],[[30,2,[\\\"best\\\"]]],[[\\\"style\\\",\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[[28,[37,15],[[30,0,[\\\"formattedStyle\\\"]],[30,0,[\\\"model\\\",\\\"kpi\\\",\\\"meta\\\",\\\"format\\\"]]],null],2,false]]],\\\"–\\\"]],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"label\\\"],[12],[1,\\\"National best for\\\\n                  \\\"],[1,[28,[35,19],[[30,0,[\\\"period\\\"]],\\\"MM/YYYY\\\",\\\"YYYY-MM\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"metric\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"number\\\"],[12],[1,[52,[30,2,[\\\"mean\\\"]],[28,[37,18],[[30,2,[\\\"mean\\\"]]],[[\\\"style\\\",\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[[28,[37,15],[[30,0,[\\\"formattedStyle\\\"]],[30,0,[\\\"model\\\",\\\"kpi\\\",\\\"meta\\\",\\\"format\\\"]]],null],2,false]]],\\\"–\\\"]],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"label\\\"],[12],[1,\\\"National average for\\\\n                \\\"],[1,[28,[35,19],[[30,0,[\\\"period\\\"]],\\\"MM/YYYY\\\",\\\"YYYY-MM\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[10,0],[14,0,\\\"metric\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"number\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[28,[37,15],[[30,2,[\\\"rankings\\\"]],\\\"0.value\\\"],null],[28,[37,21],[[28,[37,15],[[30,2,[\\\"rankings\\\"]],\\\"0.value\\\"],null],0],null]],null],[[[1,\\\"                  \\\"],[1,[28,[35,18],[[30,2,[\\\"rankings\\\"]],\\\"0.value\\\"],[[\\\"style\\\",\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[[28,[37,15],[[30,0,[\\\"formattedStyle\\\"]],[30,0,[\\\"model\\\",\\\"kpi\\\",\\\"meta\\\",\\\"format\\\"]]],null],2,false]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  –\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"label\\\"],[12],[1,[30,0,[\\\"sessionData\\\",\\\"branch\\\",\\\"name\\\"]]],[1,\\\"\\\\n                for\\\\n                \\\"],[1,[28,[35,19],[[30,0,[\\\"sessionData\\\",\\\"period\\\"]],\\\"MM/YYYY\\\",\\\"YYYY-MM\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[2]]],[1,\\\"\\\\n        \\\"],[10,\\\"section\\\"],[14,0,\\\"kpi-chart\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,22],null,[[\\\"@metrics\\\",\\\"@series\\\",\\\"@period\\\",\\\"@reuse\\\"],[[30,0,[\\\"model\\\",\\\"kpi\\\"]],[30,0,[\\\"model\\\",\\\"series\\\"]],[30,0,[\\\"chartPeriod\\\"]],false]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"selectedPeriodData\\\"]],[[[44,[[28,[37,15],[[30,0,[\\\"selectedPeriodData\\\",\\\"periodTypes\\\"]],[30,0,[\\\"periodType\\\"]]],null]],[[[1,\\\"            \\\"],[10,\\\"section\\\"],[14,0,\\\"breakdown\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,23],null,[[\\\"@calc\\\",\\\"@inputs\\\",\\\"@result\\\",\\\"@format\\\"],[[30,0,[\\\"model\\\",\\\"kpi\\\",\\\"meta\\\",\\\"calculationSteps\\\"]],[30,3,[\\\"inputs\\\"]],[30,3,[\\\"value\\\"]],[28,[37,15],[[30,0,[\\\"formattedStyle\\\"]],[30,0,[\\\"model\\\",\\\"kpi\\\",\\\"meta\\\",\\\"format\\\"]]],null]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[3]]]],[]],[[[1,\\\"          \\\"],[10,\\\"section\\\"],[14,0,\\\"breakdown breakdown--no-data\\\"],[12],[1,\\\"\\\\n            No calculation data for current period\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"model\\\",\\\"kpi\\\",\\\"meta\\\",\\\"description\\\"]],[30,0,[\\\"model\\\",\\\"kpi\\\",\\\"meta\\\",\\\"strategies\\\"]]],null],[[[1,\\\"          \\\"],[10,\\\"section\\\"],[14,0,\\\"kpi-information\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"kpi\\\",\\\"meta\\\",\\\"description\\\"]],[[[1,\\\"              \\\"],[10,0],[12],[1,\\\"\\\\n                \\\"],[10,\\\"h2\\\"],[12],[1,\\\"Explanation\\\"],[13],[1,\\\"\\\\n                \\\"],[8,[39,25],null,[[\\\"@markdown\\\"],[[30,0,[\\\"model\\\",\\\"kpi\\\",\\\"meta\\\",\\\"description\\\"]]]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"kpi\\\",\\\"meta\\\",\\\"strategies\\\"]],[[[1,\\\"              \\\"],[10,0],[12],[1,\\\"\\\\n                \\\"],[10,\\\"h2\\\"],[12],[1,\\\"Strategies\\\"],[13],[1,\\\"\\\\n                \\\"],[8,[39,25],null,[[\\\"@markdown\\\"],[[30,0,[\\\"model\\\",\\\"kpi\\\",\\\"meta\\\",\\\"strategies\\\"]]]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[1,\\\"        \\\"],[10,2],[14,0,\\\"error-page__title\\\"],[12],[1,\\\"There is no data to display for this\\\\n          period.\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"kpi\\\",\\\"stats\\\",\\\"calculation\\\"],false,[\\\"article\\\",\\\"header\\\",\\\"radio-slider\\\",\\\"h1\\\",\\\"section\\\",\\\"aside\\\",\\\"ul\\\",\\\"each\\\",\\\"-track-array\\\",\\\"li\\\",\\\"link-to\\\",\\\"if\\\",\\\"unless\\\",\\\"let\\\",\\\"div\\\",\\\"get\\\",\\\"sup\\\",\\\"ordinal-for\\\",\\\"number-format\\\",\\\"moment-format\\\",\\\"or\\\",\\\"eq\\\",\\\"charts/line-chart\\\",\\\"calculation-breakdown\\\",\\\"h2\\\",\\\"markdown-to-html\\\",\\\"p\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/reports/kpis/kpi.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/module-dashboard\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if (gt this.sessionData.entities.length 1)}}\n    <ToElsewhere\n      @named='mobile-side-menu-content'\n      @send={{component 'module-navigation/module-dashboard'}}\n    />\n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component 'mobile-title-bar/burger-button'}}\n    />\n  {{/if}}\n  <main class='page__container'>\n    <div class='dashboard-container'>\n      <div class='dashboard-section__modules'>\n        {{#if this.modules.allowedModules}}\n          <div class='dashboard-section__modules-container'>\n            <div class='dashboard-section__modules-row'>\n              {{#each this.modules.allowedModules as |module|}}\n                <span role='button' {{on 'click' (fn this.goToModule module)}}>\n                  <DashboardItem::Module @module={{module}} />\n                </span>\n              {{/each}}\n            </div>\n          </div>\n        {{else}}\n          <h2 class='h2'>\n            Your entity doesn't have any modules yet\n          </h2>\n        {{/if}}\n      </div>\n    </div>\n  </main>\n  */\n  {\n    \"id\": \"S+DbdrNd\",\n    \"block\": \"[[[41,[28,[37,1],[[30,0,[\\\"sessionData\\\",\\\"entities\\\",\\\"length\\\"]],1],null],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-side-menu-content\\\",[50,\\\"module-navigation/module-dashboard\\\",0,null,null]]],null],[1,\\\"\\\\n  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/burger-button\\\",0,null,null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"main\\\"],[14,0,\\\"page__container\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"dashboard-container\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"dashboard-section__modules\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"modules\\\",\\\"allowedModules\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"dashboard-section__modules-container\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"dashboard-section__modules-row\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[30,0,[\\\"modules\\\",\\\"allowedModules\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[11,1],[24,\\\"role\\\",\\\"button\\\"],[4,[38,9],[\\\"click\\\",[28,[37,10],[[30,0,[\\\"goToModule\\\"]],[30,1]],null]],null],[12],[1,\\\"\\\\n                \\\"],[8,[39,11],null,[[\\\"@module\\\"],[[30,1]]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2\\\"],[12],[1,\\\"\\\\n          Your entity doesn't have any modules yet\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"module\\\"],false,[\\\"if\\\",\\\"gt\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"main\\\",\\\"div\\\",\\\"each\\\",\\\"-track-array\\\",\\\"span\\\",\\\"on\\\",\\\"fn\\\",\\\"dashboard-item/module\\\",\\\"h2\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/module-dashboard.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if (media 'isDesktop')}}\n    <div class='page__container'>\n      <ModuleNavigation::Settings />\n  \n      <main class='page__container-content gap-zendesk-support-widget'>\n        {{outlet}}\n      </main>\n    </div>\n  {{else}}\n    <ToElsewhere\n      @named='mobile-side-menu-content'\n      @send={{component 'module-navigation/settings'}}\n    />\n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component 'mobile-title-bar/burger-button'}}\n    />\n    <main class='page__container-content'>\n      {{outlet}}\n    </main>\n  {{/if}}\n  */\n  {\n    \"id\": \"3aGiyhar\",\n    \"block\": \"[[[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"page__container\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,3],null,null,null],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content gap-zendesk-support-widget\\\"],[12],[1,\\\"\\\\n      \\\"],[46,[28,[37,6],null,null],null,null,null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[8,[39,7],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-side-menu-content\\\",[50,\\\"module-navigation/settings\\\",0,null,null]]],null],[1,\\\"\\\\n  \\\"],[8,[39,7],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/burger-button\\\",0,null,null]]],null],[1,\\\"\\\\n  \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,6],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"media\\\",\\\"div\\\",\\\"module-navigation/settings\\\",\\\"main\\\",\\\"component\\\",\\\"-outlet\\\",\\\"to-elsewhere\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/auto-mapping-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"afOjJVir\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/auto-mapping-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/auto-mapping\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t 'common.Auto mapping')\n      }}\n    />\n  {{/unless}}\n  <article class='mx-4 mt-4 h-100'>\n    <header class='border-bottom pb-2 mb-3 d-flex align-items-center'>\n      {{#if (media 'isDesktop')}}\n        <h2 class='flex-grow-1 m-0 my-2'>{{t 'common.Auto mapping'}}</h2>\n      {{/if}}\n    </header>\n    <form class='block-module width--large'>\n      <div class='block-module__header'>\n        <div>\n          <LoadingButton\n            @isLoading={{this.isSaving}}\n            @action={{action 'save'}}\n            @class='button float-end'\n            @buttonText={{t 'common.Save'}}\n            data-test-save-button\n          />\n          <h2 class='h2'>{{t\n              'entity.settings.auto-mapping.Bill Auto Mapping Directives'\n            }}</h2>\n        </div>\n  \n        <p>\n          {{t\n            'entity.settings.auto-mapping.theDirectivesBelowWillBeUsedWhenAnBillIsImported'\n          }}\n          {{! TODO make sure there is an auto-map button on the invoices }}\n        </p>\n        <p>\n          {{t\n            'entity.settings.auto-mapping.billReferenceDirectivesTakePrecedenceOverMerchantAccountOnes'\n          }}\n        </p>\n      </div>\n  \n      <div class='{{if this.showInvalid \"show-invalid\"}}'>\n        <div class='float-end'>\n          <span>{{t 'entity.settings.auto-mapping.Directive Type'}}:</span>\n          <RadioSlider\n            @options={{this.displayOptions}}\n            @selected={{this.selectedDisplayOption}}\n            @class='button--spaced'\n            data-test-toggle-directive-type\n          />\n        </div>\n  \n        {{#if (eq this.selectedDisplayOption 'reference')}}\n          {{! Reference type directives }}\n          <div>\n            <span class='h3 no-wrap'>{{t\n                'entity.settings.auto-mapping.Bill Reference Directives'\n              }}</span>\n            <button\n              class='text-button text-button--add button--spaced'\n              data-test-add-reference-directive=''\n              type='submit'\n              {{action 'addDirective' 'reference'}}\n            >{{t 'common.Add'}}</button>\n          </div>\n  \n          <br />\n  \n          <div class='auto-mapping__directive-section'>\n            {{#unless\n              (or\n                this.openReferenceDirectives.length\n                this.closedReferenceDirectives.length\n              )\n            }}\n              {{! If there are no reference directives, then show a message explainin what they are }}\n              <span data-test-no-reference-directives-message=''>\n                <p>{{t\n                    'entity.settings.auto-mapping.billReferenceDirectivesCauseNewBillsToBeAutoMappedToAProjectIfTheirReferenceMatchesSomeTextYouProvide'\n                  }}</p>\n                <p>{{t\n                    'entity.settings.auto-mapping.youDonNotHaveAnyBillReferenceDirectivesYet'\n                  }}</p>\n              </span>\n            {{else}}\n              {{! Show the list of open reference directives }}\n              {{#each this.openReferenceDirectives as |directive|}}\n                <br />\n                <AutoMapping::DirectivePm\n                  @class={{if\n                    (get this.duplicates directive.lowerValue)\n                    'invalid'\n                  }}\n                  @directive={{directive}}\n                  @projects={{this.model.projects}}\n                  @delete={{action this.set 'readyToDelete' directive}}\n                  data-test-directive='reference'\n                />\n              {{/each}}\n  \n              {{! Show a title for directives with projects that are not open }}\n              {{#if this.closedReferenceDirectives.length}}\n                <div class='h4' data-test-project-open-separator=''>\n                  {{! Show a separating line if there are directives with open projects to separate from }}\n                  {{#if this.openReferenceDirectives.length}}<br /><hr />{{/if}}\n                  {{t\n                    'entity.settings.auto-mapping.billReferenceDirectivesForClosedProjects'\n                  }}\n                  <br />\n                </div>\n              {{/if}}\n  \n              {{! Show the list of closed reference directives }}\n              {{#each this.closedReferenceDirectives as |directive|}}\n                <br />\n                <AutoMapping::DirectivePm\n                  @class={{if\n                    (get this.duplicates directive.lowerValue)\n                    'invalid'\n                  }}\n                  @directive={{directive}}\n                  @projects={{this.model.projects}}\n                  @delete={{action this.set 'readyToDelete' directive}}\n                  data-test-directive='reference'\n                />\n              {{/each}}\n            {{/unless}}\n          </div>\n  \n        {{else if (eq this.selectedDisplayOption 'account')}}\n          {{! Account type directives }}\n          <div>\n            <span class='h3'>{{t\n                'entity.settings.auto-mapping.Merchant Account Directives'\n              }}</span>\n            <button\n              class='text-button text-button--add button--spaced'\n              data-test-add-account-directive=''\n              type='submit'\n              {{action 'addDirective' 'account'}}\n            >{{t 'common.Add'}}</button>\n          </div>\n  \n          <br />\n  \n          <div class='auto-mapping__directive-section'>\n            {{#unless this.model.merchantAccounts.length}}\n              {{! Only show a message if there are no merchant accounts to pick from }}\n              <p>{{t\n                  'entity.settings.auto-mapping.weHavenNotSeenAnySuitableMerchantAccountsOnYourBillsYet'\n                }}\n                {{t\n                  'entity.settings.auto-mapping.thisSectionWillBecomeAvailableOnceWeDo'\n                }}\n                {{t\n                  'entity.settings.auto-mapping.theAccountsMustBeProjectSpecificSubAccounts'\n                }}</p>\n            {{else}}\n  \n              {{#unless this.accountDirectives.length}}\n                {{! If there are no account directives, show a message explaining them }}\n                <span data-test-no-account-directives-message=''>\n                  <p>{{t\n                      'entity.settings.auto-mapping.merchantAccountDirectiveCauseNewBillsToBeAutoMappedToAProjectIfTheyBilledToASpecificMerchantAccount'\n                    }}</p>\n                  <p>{{t\n                      'entity.settings.auto-mapping.youDonNotHaveAnyMerchantAccountDirectivesYet'\n                    }}</p>\n                </span>\n              {{else}}\n                {{! Show a list of account directives for open projects }}\n                {{#each this.openAccountDirectives as |directive|}}\n                  <br />\n                  <AutoMapping::DirectivePm\n                    @directive={{directive}}\n                    @projects={{this.model.projects}}\n                    @allAccounts={{this.model.merchantAccounts}}\n                    @unusedAccounts={{this.unusedAccounts}}\n                    @showInvalid={{this.showInvalid}}\n                    @delete={{action this.set 'readyToDelete' directive}}\n                    data-test-directive='account'\n                  />\n                {{/each}}\n  \n                {{! Show a title for directives with projects that are not open }}\n                {{#if this.closedAccountDirectives.length}}\n                  <div class='h4' data-test-project-open-separator=''>\n                    {{! Show a separating line if there are directives with open projects to separate from }}\n                    {{#if this.openAccountDirectives.length}}<br /><hr />{{/if}}\n                    {{t\n                      'entity.settings.auto-mapping.merchantAccountDirectivesForClosedProjects'\n                    }}\n                    <br />\n                  </div>\n  \n                  {{! Show a list of account directives for closed projects }}\n                  {{#each this.closedAccountDirectives as |directive|}}\n                    <br />\n                    <AutoMapping::DirectivePm\n                      @directive={{directive}}\n                      @projects={{this.model.projects}}\n                      @allAccounts={{this.model.merchantAccounts}}\n                      @unusedAccounts={{this.unusedAccounts}}\n                      @showInvalid={{this.showInvalid}}\n                      @delete={{action this.set 'readyToDelete' directive}}\n                      data-test-directive='account'\n                    />\n                  {{/each}}\n                {{/if}}\n              {{/unless}}\n            {{/unless}}\n          </div>\n        {{/if}}\n      </div>\n  \n      <footer class='block-module__footer'>\n        <LoadingButton\n          @isLoading={{this.isSaving}}\n          @action={{action 'save'}}\n          @class='button float-end'\n          @buttonText={{t 'common.Save'}}\n          data-test-save-button\n        />\n      </footer>\n    </form>\n  \n    {{#if this.readyToDelete}}\n      <ModalDialog\n        @overlayClass='modal'\n        @translucentOverlay={{true}}\n        @containerClass='block-module'\n        @onClose={{action this.set 'readyToDelete' null}}\n      >\n        <p>{{t\n            'entity.settings.auto-mapping.areYouSureYouWantToDeleteThisDirective'\n          }}\n          {{t 'common.This action cannot be undone'}}</p>\n        <LoadingButton\n          @class='float-end button button--spaced button--delete'\n          @action={{action 'deleteDirective' this.readyToDelete}}\n          @buttonText={{t 'common.Delete'}}\n          data-test-confirm-delete-button\n        />\n        <button\n          class='float-end button button--spaced button--plain'\n          type='button'\n          {{action this.set 'readyToDelete' null}}\n        >{{t 'common.Cancel'}}</button>\n      </ModalDialog>\n    {{/if}}\n  \n  </article>\n  */\n  {\n    \"id\": \"vf4NQug+\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"common.Auto mapping\\\"],null]]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4 h-100\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom pb-2 mb-3 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,[28,[35,4],[\\\"common.Auto mapping\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n  \\\"],[10,\\\"form\\\"],[14,0,\\\"block-module width--large\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"block-module__header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[12],[1,\\\"\\\\n        \\\"],[8,[39,11],[[24,\\\"data-test-save-button\\\",\\\"\\\"]],[[\\\"@isLoading\\\",\\\"@action\\\",\\\"@class\\\",\\\"@buttonText\\\"],[[30,0,[\\\"isSaving\\\"]],[28,[37,12],[[30,0],\\\"save\\\"],null],\\\"button float-end\\\",[28,[37,4],[\\\"common.Save\\\"],null]]],null],[1,\\\"\\\\n        \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2\\\"],[12],[1,[28,[35,4],[\\\"entity.settings.auto-mapping.Bill Auto Mapping Directives\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,2],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.settings.auto-mapping.theDirectivesBelowWillBeUsedWhenAnBillIsImported\\\"],null]],[1,\\\"\\\\n\\\"],[1,\\\"      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.settings.auto-mapping.billReferenceDirectivesTakePrecedenceOverMerchantAccountOnes\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[15,0,[29,[[52,[30,0,[\\\"showInvalid\\\"]],\\\"show-invalid\\\"]]]],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"float-end\\\"],[12],[1,\\\"\\\\n        \\\"],[10,1],[12],[1,[28,[35,4],[\\\"entity.settings.auto-mapping.Directive Type\\\"],null]],[1,\\\":\\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,15],[[24,\\\"data-test-toggle-directive-type\\\",\\\"\\\"]],[[\\\"@options\\\",\\\"@selected\\\",\\\"@class\\\"],[[30,0,[\\\"displayOptions\\\"]],[30,0,[\\\"selectedDisplayOption\\\"]],\\\"button--spaced\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,16],[[30,0,[\\\"selectedDisplayOption\\\"]],\\\"reference\\\"],null],[[[1,\\\"        \\\"],[10,0],[12],[1,\\\"\\\\n          \\\"],[10,1],[14,0,\\\"h3 no-wrap\\\"],[12],[1,[28,[35,4],[\\\"entity.settings.auto-mapping.Bill Reference Directives\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--add button--spaced\\\"],[24,\\\"data-test-add-reference-directive\\\",\\\"\\\"],[24,4,\\\"submit\\\"],[4,[38,12],[[30,0],\\\"addDirective\\\",\\\"reference\\\"],null],[12],[1,[28,[35,4],[\\\"common.Add\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"auto-mapping__directive-section\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[28,[37,19],[[30,0,[\\\"openReferenceDirectives\\\",\\\"length\\\"]],[30,0,[\\\"closedReferenceDirectives\\\",\\\"length\\\"]]],null]],[[[1,\\\"            \\\"],[10,1],[14,\\\"data-test-no-reference-directives-message\\\",\\\"\\\"],[12],[1,\\\"\\\\n              \\\"],[10,2],[12],[1,[28,[35,4],[\\\"entity.settings.auto-mapping.billReferenceDirectivesCauseNewBillsToBeAutoMappedToAProjectIfTheirReferenceMatchesSomeTextYouProvide\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[10,2],[12],[1,[28,[35,4],[\\\"entity.settings.auto-mapping.youDonNotHaveAnyBillReferenceDirectivesYet\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[42,[28,[37,21],[[28,[37,21],[[30,0,[\\\"openReferenceDirectives\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[8,[39,22],[[24,\\\"data-test-directive\\\",\\\"reference\\\"]],[[\\\"@class\\\",\\\"@directive\\\",\\\"@projects\\\",\\\"@delete\\\"],[[52,[28,[37,23],[[30,0,[\\\"duplicates\\\"]],[30,1,[\\\"lowerValue\\\"]]],null],\\\"invalid\\\"],[30,1],[30,0,[\\\"model\\\",\\\"projects\\\"]],[28,[37,12],[[30,0],[30,0,[\\\"set\\\"]],\\\"readyToDelete\\\",[30,1]],null]]],null],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"closedReferenceDirectives\\\",\\\"length\\\"]],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"h4\\\"],[14,\\\"data-test-project-open-separator\\\",\\\"\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"                \\\"],[41,[30,0,[\\\"openReferenceDirectives\\\",\\\"length\\\"]],[[[10,\\\"br\\\"],[12],[13],[10,\\\"hr\\\"],[12],[13]],[]],null],[1,\\\"\\\\n                \\\"],[1,[28,[35,4],[\\\"entity.settings.auto-mapping.billReferenceDirectivesForClosedProjects\\\"],null]],[1,\\\"\\\\n                \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[42,[28,[37,21],[[28,[37,21],[[30,0,[\\\"closedReferenceDirectives\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[8,[39,22],[[24,\\\"data-test-directive\\\",\\\"reference\\\"]],[[\\\"@class\\\",\\\"@directive\\\",\\\"@projects\\\",\\\"@delete\\\"],[[52,[28,[37,23],[[30,0,[\\\"duplicates\\\"]],[30,2,[\\\"lowerValue\\\"]]],null],\\\"invalid\\\"],[30,2],[30,0,[\\\"model\\\",\\\"projects\\\"]],[28,[37,12],[[30,0],[30,0,[\\\"set\\\"]],\\\"readyToDelete\\\",[30,2]],null]]],null],[1,\\\"\\\\n\\\"]],[2]],null]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[]],[[[41,[28,[37,16],[[30,0,[\\\"selectedDisplayOption\\\"]],\\\"account\\\"],null],[[[1,\\\"        \\\"],[10,0],[12],[1,\\\"\\\\n          \\\"],[10,1],[14,0,\\\"h3\\\"],[12],[1,[28,[35,4],[\\\"entity.settings.auto-mapping.Merchant Account Directives\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--add button--spaced\\\"],[24,\\\"data-test-add-account-directive\\\",\\\"\\\"],[24,4,\\\"submit\\\"],[4,[38,12],[[30,0],\\\"addDirective\\\",\\\"account\\\"],null],[12],[1,[28,[35,4],[\\\"common.Add\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"auto-mapping__directive-section\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"model\\\",\\\"merchantAccounts\\\",\\\"length\\\"]]],[[[1,\\\"            \\\"],[10,2],[12],[1,[28,[35,4],[\\\"entity.settings.auto-mapping.weHavenNotSeenAnySuitableMerchantAccountsOnYourBillsYet\\\"],null]],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.settings.auto-mapping.thisSectionWillBecomeAvailableOnceWeDo\\\"],null]],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.settings.auto-mapping.theAccountsMustBeProjectSpecificSubAccounts\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"accountDirectives\\\",\\\"length\\\"]]],[[[1,\\\"              \\\"],[10,1],[14,\\\"data-test-no-account-directives-message\\\",\\\"\\\"],[12],[1,\\\"\\\\n                \\\"],[10,2],[12],[1,[28,[35,4],[\\\"entity.settings.auto-mapping.merchantAccountDirectiveCauseNewBillsToBeAutoMappedToAProjectIfTheyBilledToASpecificMerchantAccount\\\"],null]],[13],[1,\\\"\\\\n                \\\"],[10,2],[12],[1,[28,[35,4],[\\\"entity.settings.auto-mapping.youDonNotHaveAnyMerchantAccountDirectivesYet\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[42,[28,[37,21],[[28,[37,21],[[30,0,[\\\"openAccountDirectives\\\"]]],null]],null],null,[[[1,\\\"                \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                \\\"],[8,[39,22],[[24,\\\"data-test-directive\\\",\\\"account\\\"]],[[\\\"@directive\\\",\\\"@projects\\\",\\\"@allAccounts\\\",\\\"@unusedAccounts\\\",\\\"@showInvalid\\\",\\\"@delete\\\"],[[30,3],[30,0,[\\\"model\\\",\\\"projects\\\"]],[30,0,[\\\"model\\\",\\\"merchantAccounts\\\"]],[30,0,[\\\"unusedAccounts\\\"]],[30,0,[\\\"showInvalid\\\"]],[28,[37,12],[[30,0],[30,0,[\\\"set\\\"]],\\\"readyToDelete\\\",[30,3]],null]]],null],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"closedAccountDirectives\\\",\\\"length\\\"]],[[[1,\\\"                \\\"],[10,0],[14,0,\\\"h4\\\"],[14,\\\"data-test-project-open-separator\\\",\\\"\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"                  \\\"],[41,[30,0,[\\\"openAccountDirectives\\\",\\\"length\\\"]],[[[10,\\\"br\\\"],[12],[13],[10,\\\"hr\\\"],[12],[13]],[]],null],[1,\\\"\\\\n                  \\\"],[1,[28,[35,4],[\\\"entity.settings.auto-mapping.merchantAccountDirectivesForClosedProjects\\\"],null]],[1,\\\"\\\\n                  \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,21],[[28,[37,21],[[30,0,[\\\"closedAccountDirectives\\\"]]],null]],null],null,[[[1,\\\"                  \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[8,[39,22],[[24,\\\"data-test-directive\\\",\\\"account\\\"]],[[\\\"@directive\\\",\\\"@projects\\\",\\\"@allAccounts\\\",\\\"@unusedAccounts\\\",\\\"@showInvalid\\\",\\\"@delete\\\"],[[30,4],[30,0,[\\\"model\\\",\\\"projects\\\"]],[30,0,[\\\"model\\\",\\\"merchantAccounts\\\"]],[30,0,[\\\"unusedAccounts\\\"]],[30,0,[\\\"showInvalid\\\"]],[28,[37,12],[[30,0],[30,0,[\\\"set\\\"]],\\\"readyToDelete\\\",[30,4]],null]]],null],[1,\\\"\\\\n\\\"]],[4]],null]],[]],null]],[]]]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]],null]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,11],[[24,\\\"data-test-save-button\\\",\\\"\\\"]],[[\\\"@isLoading\\\",\\\"@action\\\",\\\"@class\\\",\\\"@buttonText\\\"],[[30,0,[\\\"isSaving\\\"]],[28,[37,12],[[30,0],\\\"save\\\"],null],\\\"button float-end\\\",[28,[37,4],[\\\"common.Save\\\"],null]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"readyToDelete\\\"]],[[[1,\\\"    \\\"],[8,[39,26],null,[[\\\"@overlayClass\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\",\\\"@onClose\\\"],[\\\"modal\\\",true,\\\"block-module\\\",[28,[37,12],[[30,0],[30,0,[\\\"set\\\"]],\\\"readyToDelete\\\",null],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,2],[12],[1,[28,[35,4],[\\\"entity.settings.auto-mapping.areYouSureYouWantToDeleteThisDirective\\\"],null]],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"common.This action cannot be undone\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[8,[39,11],[[24,\\\"data-test-confirm-delete-button\\\",\\\"\\\"]],[[\\\"@class\\\",\\\"@action\\\",\\\"@buttonText\\\"],[\\\"float-end button button--spaced button--delete\\\",[28,[37,12],[[30,0],\\\"deleteDirective\\\",[30,0,[\\\"readyToDelete\\\"]]],null],[28,[37,4],[\\\"common.Delete\\\"],null]]],null],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"float-end button button--spaced button--plain\\\"],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],[30,0,[\\\"set\\\"]],\\\"readyToDelete\\\",null],null],[12],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[13]],[\\\"directive\\\",\\\"directive\\\",\\\"directive\\\",\\\"directive\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"header\\\",\\\"if\\\",\\\"h2\\\",\\\"form\\\",\\\"div\\\",\\\"loading-button\\\",\\\"action\\\",\\\"p\\\",\\\"span\\\",\\\"radio-slider\\\",\\\"eq\\\",\\\"button\\\",\\\"br\\\",\\\"or\\\",\\\"each\\\",\\\"-track-array\\\",\\\"auto-mapping/directive-pm\\\",\\\"get\\\",\\\"hr\\\",\\\"footer\\\",\\\"modal-dialog\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/auto-mapping.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/chart-of-accounts\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='mx-4 mt-4'>\n    <header class='border-bottom pb-2 mb-3 d-flex align-items-center'>\n      <h2 class='flex-grow-1 m-0 my-2'>\n        {{t 'entity.settings.chart-of-accounts.Chart of accounts'}}\n      </h2>\n    </header>\n    {{outlet}}\n  </article>\n  */\n  {\n    \"id\": \"2FfQmBsT\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom pb-2 mb-3 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,3],[\\\"entity.settings.chart-of-accounts.Chart of accounts\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[46,[28,[37,5],null,null],null,null,null],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"article\\\",\\\"header\\\",\\\"h2\\\",\\\"t\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/chart-of-accounts.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/chart-of-accounts/chart-of-account\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <div class='mb-3 ms-1 mt-1'>\n      <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n    </div>\n    <PtlForm class='width--medium'>\n      <div class='d-flex mb-3 align-items-center'>\n        <h3 class='m-0'>{{t 'common.Details'}}</h3>\n        {{#if this.showSyncIcon}}\n          <FaIcon\n            @title='This account is synced with your accounting package'\n            class='ms-3'\n            @icon='sync'\n          />\n        {{/if}}\n      </div>\n      {{#let\n        (changeset this.glAccount this.glAccountValidationMap)\n        as |glAccountModel|\n      }}\n  \n        {{#if (includes this.accountingPlatform.glAccountVisibleFields 'name')}}\n          <PtlInput\n            @type='text'\n            @label={{t 'common.Name'}}\n            @key='name'\n            @model={{glAccountModel}}\n            @required={{true}}\n            @forceValidationVisible={{gt this.saveAccount.performCount 0}}\n            disabled={{this.disableForm}}\n          />\n        {{/if}}\n        {{#if (includes this.accountingPlatform.glAccountVisibleFields 'code')}}\n          <PtlInput\n            @type='text'\n            @label={{t 'common.Code'}}\n            @key='code'\n            @model={{glAccountModel}}\n            @required={{true}}\n            @forceValidationVisible={{gt this.saveAccount.performCount 0}}\n            disabled={{this.disableForm}}\n          />\n        {{/if}}\n  \n        {{#if\n          (includes this.accountingPlatform.glAccountVisibleFields 'taxRate')\n        }}\n          <PtlInput\n            @type='percentage'\n            @label={{t 'common.Tax rate'}}\n            @key='taxRate'\n            @model={{glAccountModel}}\n            @forceValidationVisible={{gt this.saveAccount.performCount 0}}\n            disabled={{this.disableForm}}\n          />\n        {{/if}}\n        {{#if this.canEditGlAccounts}}\n          <div class='d-flex align-items-centers'>\n            {{#unless\n              (or\n                this.glAccount.isNew\n                this.glAccount.isLinkedToActiveAccountingPlatform\n              )\n            }}\n              <button\n                type='button'\n                class='btn btn-link text-danger text-decoration-underline'\n                disabled={{or\n                  this.deleteAccount.isRunning\n                  this.saveAccount.isRunning\n                }}\n                {{on 'click' (perform this.deleteAccount)}}\n              >\n                {{#if this.deleteAccount.isRunning}}\n                  <span class='spinner-border spinner-border-sm'></span>\n                  &nbsp;&nbsp;{{t 'common.Deleting'}}&hellip;\n                {{else}}\n                  {{t\n                    'entity.settings.chart-of-accounts.chart-of-account.Delete account'\n                  }}\n                {{/if}}\n              </button>\n            {{/unless}}\n            <div class='float-end ms-auto'>\n              {{#if\n                (and\n                  this.accountingPlatform.isActive\n                  this.glAccount.isLinkedToActiveAccountingPlatform\n                )\n              }}\n                <div>\n                  <a\n                    href={{this.glAccount.viewGlAccountUrl}}\n                    class='btn btn-primary'\n                    target='_blank'\n                    rel='noopener noreferrer'\n                    role='button'\n                    aria-disabled='true'\n                  >\n                    {{t\n                      'entity.settings.chart-of-accounts.chart-of-account.editAccountInLabel'\n                      label=this.accountingPlatform.label\n                    }}\n                  </a>\n                </div>\n              {{else}}\n                <button\n                  type='button'\n                  class='btn btn-primary ms-auto'\n                  disabled={{or\n                    this.deleteAccount.isRunning\n                    this.saveAccount.isRunning\n                  }}\n                  {{on 'click' (perform this.saveAccount glAccountModel)}}\n                >\n                  {{#if this.saveAccount.isRunning}}\n                    <span class='spinner-border spinner-border-sm'></span>\n                    &nbsp;&nbsp;{{t 'common.Saving'}}\n                    &hellip;\n                  {{else}}\n                    {{if\n                      this.glAccount.isNew\n                      (t 'common.Create')\n                      (t 'common.Save')\n                    }}\n                  {{/if}}\n                </button>\n              {{/if}}\n            </div>\n          </div>\n        {{/if}}\n      {{/let}}\n    </PtlForm>\n  {{/if}}\n  */\n  {\n    \"id\": \"+YUTDy2b\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"mb-3 ms-1 mt-1\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,3],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,4],[[24,0,\\\"width--medium\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex mb-3 align-items-center\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"m-0\\\"],[12],[1,[28,[35,6],[\\\"common.Details\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showSyncIcon\\\"]],[[[1,\\\"        \\\"],[8,[39,7],[[24,0,\\\"ms-3\\\"]],[[\\\"@title\\\",\\\"@icon\\\"],[\\\"This account is synced with your accounting package\\\",\\\"sync\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"],[44,[[28,[37,9],[[30,0,[\\\"glAccount\\\"]],[30,0,[\\\"glAccountValidationMap\\\"]]],null]],[[[1,\\\"\\\\n\\\"],[41,[28,[37,10],[[30,0,[\\\"accountingPlatform\\\",\\\"glAccountVisibleFields\\\"]],\\\"name\\\"],null],[[[1,\\\"        \\\"],[8,[39,11],[[16,\\\"disabled\\\",[30,0,[\\\"disableForm\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Name\\\"],null],\\\"name\\\",[30,1],true,[28,[37,12],[[30,0,[\\\"saveAccount\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,10],[[30,0,[\\\"accountingPlatform\\\",\\\"glAccountVisibleFields\\\"]],\\\"code\\\"],null],[[[1,\\\"        \\\"],[8,[39,11],[[16,\\\"disabled\\\",[30,0,[\\\"disableForm\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Code\\\"],null],\\\"code\\\",[30,1],true,[28,[37,12],[[30,0,[\\\"saveAccount\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,10],[[30,0,[\\\"accountingPlatform\\\",\\\"glAccountVisibleFields\\\"]],\\\"taxRate\\\"],null],[[[1,\\\"        \\\"],[8,[39,11],[[16,\\\"disabled\\\",[30,0,[\\\"disableForm\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"percentage\\\",[28,[37,6],[\\\"common.Tax rate\\\"],null],\\\"taxRate\\\",[30,1],[28,[37,12],[[30,0,[\\\"saveAccount\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"canEditGlAccounts\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"d-flex align-items-centers\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[28,[37,14],[[30,0,[\\\"glAccount\\\",\\\"isNew\\\"]],[30,0,[\\\"glAccount\\\",\\\"isLinkedToActiveAccountingPlatform\\\"]]],null]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline\\\"],[16,\\\"disabled\\\",[28,[37,14],[[30,0,[\\\"deleteAccount\\\",\\\"isRunning\\\"]],[30,0,[\\\"saveAccount\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"deleteAccount\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteAccount\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[1,[28,[35,6],[\\\"common.Deleting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"entity.settings.chart-of-accounts.chart-of-account.Delete account\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,0],[14,0,\\\"float-end ms-auto\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,19],[[30,0,[\\\"accountingPlatform\\\",\\\"isActive\\\"]],[30,0,[\\\"glAccount\\\",\\\"isLinkedToActiveAccountingPlatform\\\"]]],null],[[[1,\\\"              \\\"],[10,0],[12],[1,\\\"\\\\n                \\\"],[10,3],[15,6,[30,0,[\\\"glAccount\\\",\\\"viewGlAccountUrl\\\"]]],[14,0,\\\"btn btn-primary\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[14,\\\"role\\\",\\\"button\\\"],[14,\\\"aria-disabled\\\",\\\"true\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,6],[\\\"entity.settings.chart-of-accounts.chart-of-account.editAccountInLabel\\\"],[[\\\"label\\\"],[[30,0,[\\\"accountingPlatform\\\",\\\"label\\\"]]]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[28,[37,14],[[30,0,[\\\"deleteAccount\\\",\\\"isRunning\\\"]],[30,0,[\\\"saveAccount\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"saveAccount\\\"]],[30,1]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveAccount\\\",\\\"isRunning\\\"]],[[[1,\\\"                  \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[1,[28,[35,6],[\\\"common.Saving\\\"],null]],[1,\\\"\\\\n                  …\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[52,[30,0,[\\\"glAccount\\\",\\\"isNew\\\"]],[28,[37,6],[\\\"common.Create\\\"],null],[28,[37,6],[\\\"common.Save\\\"],null]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[1]]],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"glAccountModel\\\"],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"page-title-breadcrumbs\\\",\\\"ptl-form\\\",\\\"h3\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"let\\\",\\\"changeset\\\",\\\"includes\\\",\\\"ptl-input\\\",\\\"gt\\\",\\\"unless\\\",\\\"or\\\",\\\"button\\\",\\\"on\\\",\\\"perform\\\",\\\"span\\\",\\\"and\\\",\\\"a\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/chart-of-accounts/chart-of-account.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/chart-of-accounts/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='mb-1 pb-2 d-lg-flex justify-content-end align-items-center'>\n    {{#if (and this.isEditable this.model.glAccounts.last.value.length)}}\n      <div class='flex-grow-1'>\n        <button\n          class='btn btn-link text-danger text-decoration-underline float-start'\n          type='button'\n          {{on 'click' (fn (mut this.isDeletingAccounts) true)}}\n          disabled={{or (not this.selectedAccountIds.size) this.isLoading}}\n        >\n          {{t 'common.Delete'}}\n        </button>\n      </div>\n    {{/if}}\n  \n    <input\n      class='form-control m-1 w-auto'\n      placeholder={{t 'common.Search'}}\n      value={{this.searchString}}\n      data-test-gl-account-search\n      readonly={{this.isLoading}}\n      {{on 'input' (perform this.onChangeSearchTerm)}}\n      type='search'\n      autofocus='true'\n    />\n  \n    {{#if this.isEditable}}\n      {{#if this.accountingPlatform.isActive}}\n        <button\n          type='button'\n          class='btn btn-primary text-white text-nowrap m-1'\n          disabled={{this.syncWithAccountingPackage.isRunning}}\n          {{on 'click' (perform this.syncWithAccountingPackage)}}\n        >\n          {{#if this.syncWithAccountingPackage.isRunning}}\n            {{t 'common.Syncing'}}&hellip;\n          {{else}}\n            {{t 'common.syncWithLabel' label=this.accountingPlatform.label}}\n          {{/if}}\n        </button>\n      {{/if}}\n      <button\n        type='button'\n        class='btn btn-success text-white text-nowrap m-1'\n        disabled={{this.isLoading}}\n        {{on 'click' this.addNewGlAccount}}\n        data-test-add-gl-account\n      >\n        <FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Add'}}\n      </button>\n    {{/if}}\n  </div>\n  \n  <div class='gl-accounts__table-container'>\n    <PaginationTable\n      @tableHeader={{this.tableHeader}}\n      @tableData={{this.tableData}}\n      @noDataText={{t 'entity.settings.chart-of-accounts.No accounts'}}\n      @isLoading={{this.model.glAccounts.isRunning}}\n      @pageSizes={{this.model.pageSizes}}\n      @pageSize={{this.model.pageSize}}\n      @pageIndex={{this.model.pageNumber}}\n      @onChangePageIndex={{this.onChangePageIndex}}\n      @onChangePageSize={{this.onChangePageSize}}\n      @totalRecords={{this.totalRecords}}\n      @class='table-bordered'\n    />\n  </div>\n  \n  {{#if this.isDeletingAccounts}}\n    <ModalDialog\n      @overlayClass='modal'\n      @containerClass='block-module'\n      @translucentOverlay={{true}}\n      @onClose={{fn (mut this.isDeletingAccounts) false}}\n    >\n      <p>\n        {{t\n          'entity.settings.chart-of-accounts.areYouSureYouWantToDeleteXGlAccounts'\n          number=this.selectedAccountIds.size\n          accounts=(pluralize this.selectedAccountIds.size 'account')\n        }}\n      </p>\n      <footer class='block-module__footer'>\n        <div class='float-end d-flex align-items-center'>\n          <button\n            class='btn btn-danger text-white ms-2'\n            type='button'\n            disabled={{this.deleteAccounts.isRunning}}\n            {{on 'click' (perform this.deleteAccounts)}}\n          >\n            {{#if this.deleteAccounts.isRunning}}\n              {{t 'common.Deleting'}}&hellip;\n            {{else}}\n              {{t 'common.Delete'}}\n            {{/if}}\n          </button>\n          <button\n            class='btn btn-secondary text-white ms-2'\n            type='button'\n            disabled={{this.deleteAccounts.isRunning}}\n            {{on 'click' (fn (mut this.isDeletingAccounts) false)}}\n          >\n            {{t 'common.Cancel'}}\n          </button>\n        </div>\n      </footer>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"INNUDBRB\",\n    \"block\": \"[[[10,0],[14,0,\\\"mb-1 pb-2 d-lg-flex justify-content-end align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,2],[[30,0,[\\\"isEditable\\\"]],[30,0,[\\\"model\\\",\\\"glAccounts\\\",\\\"last\\\",\\\"value\\\",\\\"length\\\"]]],null],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline float-start\\\"],[16,\\\"disabled\\\",[28,[37,4],[[28,[37,5],[[30,0,[\\\"selectedAccountIds\\\",\\\"size\\\"]]],null],[30,0,[\\\"isLoading\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,7],[[28,[37,8],[[30,0,[\\\"isDeletingAccounts\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,9],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control m-1 w-auto\\\"],[16,\\\"placeholder\\\",[28,[37,9],[\\\"common.Search\\\"],null]],[16,2,[30,0,[\\\"searchString\\\"]]],[24,\\\"data-test-gl-account-search\\\",\\\"\\\"],[16,\\\"readonly\\\",[30,0,[\\\"isLoading\\\"]]],[24,\\\"autofocus\\\",\\\"true\\\"],[24,4,\\\"search\\\"],[4,[38,6],[\\\"input\\\",[28,[37,11],[[30,0,[\\\"onChangeSearchTerm\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isEditable\\\"]],[[[41,[30,0,[\\\"accountingPlatform\\\",\\\"isActive\\\"]],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary text-white text-nowrap m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"syncWithAccountingPackage\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"syncWithAccountingPackage\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"syncWithAccountingPackage\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,9],[\\\"common.Syncing\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,9],[\\\"common.syncWithLabel\\\"],[[\\\"label\\\"],[[30,0,[\\\"accountingPlatform\\\",\\\"label\\\"]]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[24,\\\"data-test-add-gl-account\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[30,0,[\\\"addNewGlAccount\\\"]]],null],[12],[1,\\\"\\\\n      \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,9],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[13],[1,\\\"\\\\n\\\\n\\\"],[10,0],[14,0,\\\"gl-accounts__table-container\\\"],[12],[1,\\\"\\\\n  \\\"],[8,[39,13],null,[[\\\"@tableHeader\\\",\\\"@tableData\\\",\\\"@noDataText\\\",\\\"@isLoading\\\",\\\"@pageSizes\\\",\\\"@pageSize\\\",\\\"@pageIndex\\\",\\\"@onChangePageIndex\\\",\\\"@onChangePageSize\\\",\\\"@totalRecords\\\",\\\"@class\\\"],[[30,0,[\\\"tableHeader\\\"]],[30,0,[\\\"tableData\\\"]],[28,[37,9],[\\\"entity.settings.chart-of-accounts.No accounts\\\"],null],[30,0,[\\\"model\\\",\\\"glAccounts\\\",\\\"isRunning\\\"]],[30,0,[\\\"model\\\",\\\"pageSizes\\\"]],[30,0,[\\\"model\\\",\\\"pageSize\\\"]],[30,0,[\\\"model\\\",\\\"pageNumber\\\"]],[30,0,[\\\"onChangePageIndex\\\"]],[30,0,[\\\"onChangePageSize\\\"]],[30,0,[\\\"totalRecords\\\"]],\\\"table-bordered\\\"]],null],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isDeletingAccounts\\\"]],[[[1,\\\"  \\\"],[8,[39,14],null,[[\\\"@overlayClass\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\",\\\"@onClose\\\"],[\\\"modal\\\",\\\"block-module\\\",true,[28,[37,7],[[28,[37,8],[[30,0,[\\\"isDeletingAccounts\\\"]]],null],false],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,2],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,9],[\\\"entity.settings.chart-of-accounts.areYouSureYouWantToDeleteXGlAccounts\\\"],[[\\\"number\\\",\\\"accounts\\\"],[[30,0,[\\\"selectedAccountIds\\\",\\\"size\\\"]],[28,[37,16],[[30,0,[\\\"selectedAccountIds\\\",\\\"size\\\"]],\\\"account\\\"],null]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"float-end d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteAccounts\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"deleteAccounts\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteAccounts\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,9],[\\\"common.Deleting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,9],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteAccounts\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,7],[[28,[37,8],[[30,0,[\\\"isDeletingAccounts\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,9],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[],false,[\\\"div\\\",\\\"if\\\",\\\"and\\\",\\\"button\\\",\\\"or\\\",\\\"not\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"t\\\",\\\"input\\\",\\\"perform\\\",\\\"fa-icon\\\",\\\"pagination-table\\\",\\\"modal-dialog\\\",\\\"p\\\",\\\"pluralize\\\",\\\"footer\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/chart-of-accounts/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/company-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"soLo31TY\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/company-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/company\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t 'entity.settings.company.Company details')\n      }}\n    />\n  {{/unless}}\n  \n  <article class='mx-4 mt-4 h-100'>\n    <header class='border-bottom pb-2 mb-3 d-flex align-items-center'>\n      {{#if (media 'isDesktop')}}\n        <h2 class='flex-grow-1 m-0 my-2'>{{t 'common.Settings'}}</h2>\n      {{/if}}\n    </header>\n    {{#if (or this.model.companyLogo.isRunning this.model.glAccounts.isRunning)}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <PtlForm class='width--small mb-4'>\n        <h3 class='mb-3'>{{t 'entity.settings.company.Company details'}}</h3>\n        {{#let\n          (changeset this.model.entity this.entityValidationMap)\n          as |entityModel|\n        }}\n          <PtlInput\n            @type='text'\n            @label={{t 'common.Name'}}\n            @key='name'\n            @model={{entityModel}}\n            @required={{true}}\n            disabled={{this.saveEntity.isRunning}}\n            @forceValidationVisible={{gt this.saveEntity.performCount 0}}\n          />\n          <PtlInput\n            @type='text'\n            @label={{t 'shared.contacts.Contact email'}}\n            @key='contactEmail'\n            @model={{entityModel}}\n            disabled={{this.saveEntity.isRunning}}\n            @forceValidationVisible={{gt this.saveEntity.performCount 0}}\n          />\n          <PtlInput\n            @type='text'\n            @label={{t 'common.Address'}}\n            @key='address'\n            @model={{entityModel}}\n            disabled={{this.saveEntity.isRunning}}\n            @forceValidationVisible={{gt this.saveEntity.performCount 0}}\n          />\n          <PtlInput\n            @type='text'\n            @label={{this.businessNumberLabel}}\n            @key='businessNumber'\n            @model={{entityModel}}\n            disabled={{this.saveEntity.isRunning}}\n            @forceValidationVisible={{gt this.saveEntity.performCount 0}}\n          />\n          {{#if (not-eq this.model.entity.region 'AUS')}}\n            <PtlInput\n              @type='text'\n              @label={{this.taxNumberLabel}}\n              @key='taxNumber'\n              @model={{entityModel}}\n              disabled={{this.saveEntity.isRunning}}\n              @forceValidationVisible={{gt this.saveEntity.performCount 0}}\n            />\n          {{/if}}\n  \n          {{#if\n            (includes\n              this.accountingPlatform.glAccountVisibleFields 'purchasesGlAccount'\n            )\n          }}\n            <PtlInput\n              @type='powerSelect'\n              @label={{t 'entity.settings.company.Default purchases account'}}\n              @key='purchasesGlAccount'\n              @optionKeys={{array 'code' 'name'}}\n              @options={{this.model.glAccounts.last.value}}\n              @model={{entityModel}}\n              @description={{t\n                'entity.settings.company.purchasesGlAccountDescription'\n              }}\n              @placeholder={{t 'entity.settings.company.No default account'}}\n              @searchEnabled={{true}}\n              @searchField='code'\n              @forceValidationVisible={{gt this.saveEntity.performCount 0}}\n              @allowClear={{true}}\n              @disabled={{this.saveEntity.isRunning}}\n            />\n          {{/if}}\n  \n          {{#if\n            (includes\n              this.accountingPlatform.glAccountVisibleFields 'salesGlAccount'\n            )\n          }}\n            <PtlInput\n              @type='powerSelect'\n              @label={{t 'entity.settings.company.Default sales account'}}\n              @key='salesGlAccount'\n              @optionKeys={{array 'code' 'name'}}\n              @options={{this.model.glAccounts.last.value}}\n              @model={{entityModel}}\n              @description={{t\n                'entity.settings.company.salesGlAccountDescription'\n              }}\n              @placeholder={{t 'entity.settings.company.No default account'}}\n              @searchEnabled={{true}}\n              @searchField='code'\n              @forceValidationVisible={{gt this.saveEntity.performCount 0}}\n              @allowClear={{true}}\n              @disabled={{this.saveEntity.isRunning}}\n            />\n          {{/if}}\n  \n          <h4>{{t 'common.Logo'}}</h4>\n          <div class='d-flex align-items-center' style='min-height: 60px;'>\n            {{#if entityModel.companyLogo}}\n              <img\n                class='d-inline-block overflow-hidden mb-2 me-2'\n                id='image-preview'\n                src={{entityModel.companyLogo.href}}\n                style='object-fit: contain; height:100px; width:100px'\n              />\n              <button\n                class='btn btn-link text-danger text-decoration-underline float-start'\n                type='button'\n                {{on 'click' (fn this.clearLogo entityModel)}}\n              >\n                {{t 'entity.settings.company.Clear logo'}}\n              </button>\n            {{else}}\n              <div\n                class='d-inline-block overflow-hidden bg-light rounded mb-2 me-2'\n                style='height:100px; width:100px'\n              ></div>\n              <input\n                aria-label='logo-upload'\n                type='file'\n                {{on 'change' (fn this.updateLogo entityModel)}}\n                accept='.jpg, .jpeg, .png, .gif'\n              />\n            {{/if}}\n          </div>\n  \n          <div class='d-flex flex-grow-1 mt-3'>\n            <button\n              type='button'\n              class='btn btn-primary ms-auto'\n              disabled={{this.saveEntity.isRunning}}\n              {{on 'click' (perform this.saveEntity entityModel)}}\n            >\n              {{#if this.saveEntity.isRunning}}\n                <span\n                  class='spinner-border spinner-border-sm'\n                ></span>&nbsp;&nbsp;{{t\n                  'entity.settings.company.Saving details'\n                }}&hellip;\n              {{else}}\n                {{t 'entity.settings.company.Save company details'}}\n              {{/if}}\n            </button>\n          </div>\n        {{/let}}\n      </PtlForm>\n    {{/if}}\n  \n    {{#if\n      (and (includes-feature-flags 'userIsEntityAdmin') this.chargebee.ready)\n    }}\n      <PtlForm class='width--small mb-4'>\n        <h3 class='h3'>{{t 'entity.settings.company.Subscription'}}</h3>\n        <p class='p'>{{t\n            'entity.settings.company.clickTheButtonBelowToManageYourSubscription'\n          }}</p>\n        <div class='d-flex'>\n          <button\n            class='button'\n            type='button'\n            {{on 'click' (action 'openChargebee')}}\n          >{{t 'entity.settings.company.Manage your subscription'}}</button>\n        </div>\n      </PtlForm>\n    {{/if}}\n  \n    {{#if (includes-feature-flags 'canUseInvoices')}}\n      <PtlForm class='width--small mb-4'>\n        {{#if this.model.invoiceOptions.isRunning}}\n          <LoadingIcon @type='ripple' />\n        {{else}}\n          <h3 class='mb-3'>{{t 'entity.settings.company.Invoicing details'}}</h3>\n          {{#let\n            (changeset\n              this.model.invoiceOptions.last.value this.invoiceValidationMap\n            )\n            as |invoiceOptionsModel|\n          }}\n            <h4 class='mb-2'>{{t 'common.Invoice'}}</h4>\n            <div class='d-flex align-items-centers'>\n              <div class='me-2'>\n                <PtlInput\n                  @type='text'\n                  @label={{t 'entity.settings.company.Prefix'}}\n                  @key='invoicePrefix'\n                  @model={{invoiceOptionsModel}}\n                  @toolTip=''\n                  disabled={{this.saveInvoiceOption.isRunning}}\n                  @forceValidationVisible={{gt\n                    this.saveInvoiceOption.performCount\n                    0\n                  }}\n                />\n              </div>\n              <div class='flex-grow-1'>\n                <PtlInput\n                  @type='text'\n                  @label={{t 'entity.settings.company.nextInvoiceNumber'}}\n                  @key='nextInvoiceNumber'\n                  @model={{invoiceOptionsModel}}\n                  @toolTip=''\n                  disabled={{this.saveInvoiceOption.isRunning}}\n                  @forceValidationVisible={{gt\n                    this.saveInvoiceOption.performCount\n                    0\n                  }}\n                />\n              </div>\n            </div>\n            <div class='mb-2'>\n              <label class='mb-1' for='paymentTermDay'>\n                {{t 'shared.contacts.Payment terms'}}\n              </label>\n              <div class='d-flex align-items-centers'>\n                <div class='me-2'>\n                  <PtlInput\n                    @type='number'\n                    @key='paymentTermDay'\n                    min='1'\n                    style='width: 75px;'\n                    @model={{invoiceOptionsModel}}\n                    @forceValidationVisible={{gt\n                      this.saveSupplier.performCount\n                      0\n                    }}\n                    disabled={{this.disableForm}}\n                  />\n                </div>\n                <div class='flex-grow-1'>\n                  <PtlInput\n                    @type='select'\n                    @key='paymentTermType'\n                    @selectNoBlankOption={{true}}\n                    @options={{this.paymentTermType}}\n                    @model={{invoiceOptionsModel}}\n                    @forceValidationVisible={{gt\n                      this.saveSupplier.performCount\n                      0\n                    }}\n                    disabled={{this.disableForm}}\n                  />\n                </div>\n              </div>\n            </div>\n            <PtlInput\n              @type='textarea'\n              @label={{t 'entity.settings.company.Footer notes'}}\n              @key='invoiceFooterNotes'\n              @model={{invoiceOptionsModel}}\n              disabled={{this.saveInvoiceOption.isRunning}}\n              @forceValidationVisible={{gt this.saveInvoiceOption.performCount 0}}\n            />\n            <h4 class='mb-2'>{{t 'common.Credit note'}}</h4>\n            <div class='d-flex align-items-centers'>\n              <div class='me-2'>\n                <PtlInput\n                  @type='text'\n                  @label={{t 'entity.settings.company.Prefix'}}\n                  @key='creditNotePrefix'\n                  @model={{invoiceOptionsModel}}\n                  @toolTip=''\n                  disabled={{this.saveInvoiceOption.isRunning}}\n                  @forceValidationVisible={{gt\n                    this.saveInvoiceOption.performCount\n                    0\n                  }}\n                />\n              </div>\n              <div class='flex-grow-1'>\n                <PtlInput\n                  @type='text'\n                  @label={{t 'entity.settings.company.nextCreditNoteNumber'}}\n                  @key='nextCreditNoteNumber'\n                  @model={{invoiceOptionsModel}}\n                  @toolTip=''\n                  disabled={{this.saveInvoiceOption.isRunning}}\n                  @forceValidationVisible={{gt\n                    this.saveInvoiceOption.performCount\n                    0\n                  }}\n                />\n              </div>\n            </div>\n            <PtlInput\n              @type='textarea'\n              @label={{t 'entity.settings.company.Footer notes'}}\n              @key='creditNoteFooterNotes'\n              @model={{invoiceOptionsModel}}\n              disabled={{this.saveInvoiceOption.isRunning}}\n              @forceValidationVisible={{gt this.saveInvoiceOption.performCount 0}}\n            />\n            <div class='text-left'>\n              <button\n                class='btn btn-link m-0 p-0 text-decoration-underline'\n                {{on 'click' this.initInvoiceBreakdown}}\n                type='button'\n              >\n                {{t 'entity.settings.company.Default breakdown options'}}\n              </button>\n            </div>\n            <div class='d-flex flex-grow-1 mt-3'>\n              <button\n                type='button'\n                class='btn btn-primary ms-auto'\n                disabled={{this.saveInvoiceOption.isRunning}}\n                {{on\n                  'click'\n                  (perform this.saveInvoiceOption invoiceOptionsModel)\n                }}\n              >\n                {{#if this.saveInvoiceOption.isRunning}}\n                  <span\n                    class='spinner-border spinner-border-sm'\n                  ></span>&nbsp;&nbsp;{{t 'common.Saving'}}&hellip;\n                {{else}}\n                  {{t 'entity.settings.company.Save invoicing details'}}\n                {{/if}}\n              </button>\n            </div>\n          {{/let}}\n        {{/if}}\n      </PtlForm>\n    {{/if}}\n  \n    {{#if (includes-feature-flags 'canUsePurchaseOrders')}}\n      <PtlForm class='width--small mb-4'>\n        {{#if this.model.purchaseOrderOptions.isRunning}}\n          <LoadingIcon @type='ripple' />\n        {{else}}\n          <h3 class='h3 mb-3'>{{t\n              'entity.settings.company.Purchase order details'\n            }}</h3>\n  \n          {{#let\n            (changeset\n              this.model.purchaseOrderOptions.last.value\n              this.purchaseOrderValidationMap\n            )\n            as |purchaseOrderOptionsModel|\n          }}\n            <div class='d-flex align-items-centers'>\n              <div class='me-2'>\n                <PtlInput\n                  @type='text'\n                  @label={{t 'entity.settings.company.Prefix'}}\n                  @key='prefix'\n                  @model={{purchaseOrderOptionsModel}}\n                  @toolTip=''\n                  disabled={{this.savePurchaseOrderOption.isRunning}}\n                  @forceValidationVisible={{gt\n                    this.savePurchaseOrderOption.performCount\n                    0\n                  }}\n                />\n              </div>\n              <div class='flex-grow-1'>\n                <PtlInput\n                  @type='text'\n                  @label={{t 'entity.settings.company.nextPurchaseOrderNumber'}}\n                  @key='nextPurchaseOrderNumber'\n                  @model={{purchaseOrderOptionsModel}}\n                  @toolTip=''\n                  disabled={{this.savePurchaseOrderOption.isRunning}}\n                  @forceValidationVisible={{gt\n                    this.savePurchaseOrderOption.performCount\n                    0\n                  }}\n                />\n              </div>\n            </div>\n            <PtlInput\n              @type='textarea'\n              @label={{t 'entity.settings.company.Footer notes'}}\n              @key='footerNotes'\n              @model={{purchaseOrderOptionsModel}}\n              disabled={{this.savePurchaseOrderOption.isRunning}}\n              @forceValidationVisible={{gt\n                this.savePurchaseOrderOption.performCount\n                0\n              }}\n            />\n            <PtlInput\n              @type='percentage'\n              @label={{t\n                'entity.settings.company.Percentage tolerance for matching'\n              }}\n              @key='matchingPercentageTolerance'\n              @model={{purchaseOrderOptionsModel}}\n              disabled={{this.savePurchaseOrderOption.isRunning}}\n              @forceValidationVisible={{gt\n                this.savePurchaseOrderOption.performCount\n                0\n              }}\n            />\n            <PtlInput\n              @type='currency'\n              @label={{t 'entity.settings.company.Amount tolerance for matching'}}\n              @key='matchingAmountTolerance'\n              @model={{purchaseOrderOptionsModel}}\n              disabled={{this.savePurchaseOrderOption.isRunning}}\n              @forceValidationVisible={{gt\n                this.savePurchaseOrderOption.performCount\n                0\n              }}\n            />\n  \n            <div class='d-flex flex-grow-1 mt-3'>\n              <button\n                type='button'\n                class='btn btn-primary ms-auto'\n                disabled={{this.savePurchaseOrderOption.isRunning}}\n                {{on\n                  'click'\n                  (perform this.savePurchaseOrderOption purchaseOrderOptionsModel)\n                }}\n              >\n                {{#if this.savePurchaseOrderOption.isRunning}}\n                  <span\n                    class='spinner-border spinner-border-sm'\n                  ></span>&nbsp;&nbsp;{{t 'common.Saving'}}&hellip;\n                {{else}}\n                  {{t 'entity.settings.company.Save purchase order details'}}\n                {{/if}}\n              </button>\n            </div>\n          {{/let}}\n        {{/if}}\n      </PtlForm>\n    {{/if}}\n  \n    {{#if (includes-feature-flags 'canUseStagePayments')}}\n      <PtlForm class='width--small mb-4'>\n        {{#if this.model.stagePaymentOptions.isRunning}}\n          <LoadingIcon @type='ripple' />\n        {{else}}\n          <h3 class='h3 mb-3'>\n            {{t 'entity.settings.company.Stage payment details'}}\n          </h3>\n          {{#let\n            (changeset\n              this.stagePaymentOption this.stagePaymentsOptionsValidationMap\n            )\n            as |stagePaymentOptionsModel|\n          }}\n            <PtlInput\n              @type='textarea'\n              @label={{t 'entity.settings.company.Default stage payment notes'}}\n              @key='footerNotes'\n              @model={{stagePaymentOptionsModel}}\n              disabled={{this.saveStagePaymentOptions.isRunning}}\n              @forceValidationVisible={{gt\n                this.saveStagePaymentOptions.performCount\n                0\n              }}\n            />\n  \n            <div class='d-flex flex-grow-1 mt-3'>\n              <button\n                type='button'\n                class='btn btn-primary ms-auto'\n                disabled={{this.saveStagePaymentOptions.isRunning}}\n                {{on\n                  'click'\n                  (perform this.saveStagePaymentOptions stagePaymentOptionsModel)\n                }}\n              >\n                {{#if this.saveStagePaymentOptions.isRunning}}\n                  <span class='spinner-border spinner-border-sm'>\n                  </span>{{t 'common.Saving'}}&hellip;\n                {{else}}\n                  {{t 'entity.settings.company.Save stage payment details'}}\n                {{/if}}\n              </button>\n            </div>\n          {{/let}}\n        {{/if}}\n      </PtlForm>\n    {{/if}}\n  \n    {{#if (includes-feature-flags 'canManageProfitMargin')}}\n      <PtlForm class='width--small mb-4'>\n        {{#if this.model.loadEntityProfitMargin.isRunning}}\n          <LoadingIcon @type='ripple' />\n        {{else}}\n  \n          {{#let\n            (changeset this.profitMargin this.profitMarginValidationMap)\n            as |profitMarginsModel|\n          }}\n            <h3 class='h3 mb-3'>{{t 'common.Profit margins'}}</h3>\n            <p>\n              {{t\n                'entity.settings.company.profitMarginsArePercentagesThatDefineYourDesiredProfitMarginsOnEachTypeOfSection'\n              }}\n              {{t\n                'entity.settings.company.generallyThisMarginWillBeUsedToCalculateQuoteFiguresFromABudget'\n              }}\n            </p>\n            <PtlInput\n              @type='select'\n              @toolTip={{t\n                'shared.profit-margins.marginIsThePercentageOfWhatYouAreChargingTheCustomerThatIsProfitMarkupIsThePercentageOfYourCostThatIsAddedToYourCostToGetProfit'\n              }}\n              @label={{t 'shared.profit-margins.Profit type'}}\n              @key='profitType'\n              @required={{true}}\n              @options={{this.profitTypes}}\n              @model={{profitMarginsModel}}\n              @forceValidationVisible={{gt\n                this.updateProfitMargins.performCount\n                0\n              }}\n              disabled={{this.updateProfitMargins.isRunning}}\n              @selectNoBlankOption={{true}}\n            />\n            <PtlInput\n              @type='percentage'\n              @label={{t 'common.Labour'}}\n              @key='labourPercentage'\n              @model={{profitMarginsModel}}\n              @forceValidationVisible={{gt\n                this.updateProfitMargins.performCount\n                0\n              }}\n              disabled={{this.updateProfitMargins.isRunning}}\n            />\n            <div class='mb-3'>\n              <label\n                class='form-check form-switch d-flex align-items-center mb-0'\n              >\n                <Input\n                  data-test-company-additional-labour-margin-toggle\n                  @type='checkbox'\n                  class='form-check-input mt-0 me-2'\n                  @checked={{not-eq\n                    profitMarginsModel.additionalLabourMargin\n                    null\n                  }}\n                  disabled={{this.updateProfitMargins.isRunning}}\n                  {{on\n                    'click'\n                    (fn this.toggleAdditionalLabourMargin profitMarginsModel)\n                  }}\n                />\n                {{t 'shared.profit-margins.Additional labour margin'}}\n              </label>\n            </div>\n            {{#if (not-eq profitMarginsModel.additionalLabourMargin null)}}\n              <PtlInput\n                data-test-company-additional-labour-margin-input\n                @type='percentage'\n                @key='additionalLabourMargin'\n                @model={{profitMarginsModel}}\n                @forceValidationVisible={{gt\n                  this.updateProfitMargins.performCount\n                  0\n                }}\n                disabled={{this.updateProfitMargins.isRunning}}\n                @description={{t\n                  'shared.profit-margins.additionalLabourMarginDescription'\n                }}\n              />\n            {{/if}}\n            <PtlInput\n              @type='percentage'\n              @label={{t 'common.Materials'}}\n              @key='materialsPercentage'\n              @model={{profitMarginsModel}}\n              @forceValidationVisible={{gt\n                this.updateProfitMargins.performCount\n                0\n              }}\n              disabled={{this.updateProfitMargins.isRunning}}\n            />\n            <PtlInput\n              @type='percentage'\n              @label={{t 'common.Subcontractors'}}\n              @key='subcontractorsPercentage'\n              @model={{profitMarginsModel}}\n              @forceValidationVisible={{gt\n                this.updateProfitMargins.performCount\n                0\n              }}\n              disabled={{this.updateProfitMargins.isRunning}}\n            />\n            <PtlInput\n              @type='percentage'\n              @label={{t 'common.Sums'}}\n              @key='sumsPercentage'\n              @model={{profitMarginsModel}}\n              @forceValidationVisible={{gt\n                this.updateProfitMargins.performCount\n                0\n              }}\n              disabled={{this.updateProfitMargins.isRunning}}\n            />\n  \n            <div class='d-flex flex-grow-1 mt-3'>\n              <button\n                type='button'\n                class='btn btn-primary ms-auto'\n                disabled={{this.updateProfitMargins.isRunning}}\n                {{on\n                  'click'\n                  (perform this.updateProfitMargins profitMarginsModel)\n                }}\n              >\n                {{#if this.updateProfitMargins.isRunning}}\n                  <span\n                    class='spinner-border spinner-border-sm'\n                  ></span>&nbsp;&nbsp;{{t\n                    'entity.settings.company.updating profit margins'\n                  }}…\n                {{else}}\n                  {{t 'shared.profit-margins.Save profit margins'}}\n                {{/if}}\n              </button>\n            </div>\n          {{/let}}\n        {{/if}}\n      </PtlForm>\n    {{/if}}\n  </article>\n  \n  {{#if this.invoiceBreakdownOptions}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.invoiceBreakdownOptions) null}}\n      @containerClass='modal-content w-auto h-auto modal-dialog-scrollable'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-header'>\n        <h5 class='modal-title'>\n          {{t 'entity.settings.company.Breakdown options'}}\n        </h5>\n      </div>\n  \n      <div class='modal-body'>\n        <PtlInput\n          @type='textarea'\n          @label={{t 'entity.settings.company.Notes'}}\n          @key='breakdownNotes'\n          @model={{this.invoiceBreakdownOptions}}\n          disabled={{this.saveBreakdownOptions.isRunning}}\n        />\n  \n        <PtlInput\n          @containerClass='form-check mb-2'\n          @type='checkbox'\n          @label={{t 'entity.settings.company.Include billable'}}\n          @key='includeBillable'\n          @model={{this.invoiceBreakdownOptions}}\n          @description={{t 'entity.settings.company.includeBillableDescription'}}\n          disabled={{this.saveBreakdownOptions.isRunning}}\n        />\n        <PtlInput\n          @containerClass='form-check mb-2'\n          @type='checkbox'\n          @label={{t 'entity.settings.company.Include previously invoiced'}}\n          @key='includeInvoiced'\n          @model={{this.invoiceBreakdownOptions}}\n          @description={{t 'entity.settings.company.includeInvoicedDescription'}}\n          disabled={{this.saveBreakdownOptions.isRunning}}\n        />\n  \n        <label class='mb-1'>\n          {{t 'entity.settings.company.First group by'}}\n        </label>\n        <div class='d-flex align-items-center gap-3 ms-1'>\n          <PtlInput\n            @type='radio'\n            @key='firstGroupBy'\n            @id='groupByTask'\n            @model={{this.invoiceBreakdownOptions}}\n            @label={{t 'common.Task'}}\n            @value='TASK'\n            disabled={{this.saveBreakdownOptions.isRunning}}\n          />\n          <PtlInput\n            @type='radio'\n            @key='firstGroupBy'\n            @id='groupByAllocationType'\n            @model={{this.invoiceBreakdownOptions}}\n            @label={{t 'common.Allocation type'}}\n            @value='ALLOCATION_TYPE'\n            disabled={{this.saveBreakdownOptions.isRunning}}\n          />\n        </div>\n  \n        <label class='mb-1'>\n          {{t 'entity.settings.company.Labour bills'}}\n        </label>\n        <div class='d-flex align-items-center gap-3 ms-1'>\n          <PtlInput\n            @type='radio'\n            @key='labourDetail'\n            @id='labourSection'\n            @model={{this.invoiceBreakdownOptions}}\n            disabled={{this.saveBreakdownOptions.isRunning}}\n            @label={{t 'entity.settings.company.Total only'}}\n            @value='TOTAL'\n            @containerClass='mb-1'\n          />\n          <PtlInput\n            @type='radio'\n            @key='labourDetail'\n            @id='labourBill'\n            @model={{this.invoiceBreakdownOptions}}\n            disabled={{this.saveBreakdownOptions.isRunning}}\n            @label={{t 'common.Bill'}}\n            @value='BILL'\n            @containerClass='mb-1'\n          />\n          <PtlInput\n            @type='radio'\n            @key='labourDetail'\n            @id='labourItem'\n            @model={{this.invoiceBreakdownOptions}}\n            disabled={{this.saveBreakdownOptions.isRunning}}\n            @label={{t 'entity.settings.company.Bill item'}}\n            @value='BILL_ITEM'\n            @containerClass='mb-1'\n          />\n        </div>\n        <div class='ms-1'>\n          <PtlInput\n            @type='checkbox'\n            @label={{t 'entity.settings.company.Include margin'}}\n            @key='includeLabourBillsProfitMargins'\n            @model={{this.invoiceBreakdownOptions}}\n            @description={{t\n              'entity.settings.company.includeProfitMarginsDescription'\n            }}\n            disabled={{this.saveBreakdownOptions.isRunning}}\n          />\n        </div>\n  \n        <label class='mb-1'>\n          {{t 'common.Timesheets'}}\n        </label>\n        <div class='ms-1 mb-1'>\n          <GroupingSelector\n            @groups={{this.timesheetGroupingOptions}}\n            @value={{this.invoiceBreakdownOptions.timesheetDetails}}\n            @onChange={{fn (mut this.invoiceBreakdownOptions.timesheetDetails)}}\n            as |gs|\n          >\n            {{#each gs.axes as |axis i|}}\n              <label class='pdf-export-options__grouping-label'>\n                {{#if (eq i 0)}}\n                  {{t 'shared.report-builder.First break down by'}}…\n                {{else}}\n                  …{{t 'shared.report-builder.and then by'}}…\n                {{/if}}\n              </label>\n  \n              <select\n                class='pdf-export-options__grouping-control'\n                {{on 'change' (action axis.update value='target.value')}}\n                disabled={{this.saveBreakdownOptions.isRunning}}\n              >\n                {{#each axis.options as |opt|}}\n                  <option value={{opt.key}} selected={{opt.isSelected}}>\n                    {{opt.name}}\n                  </option>\n                {{/each}}\n              </select>\n              <br />\n            {{/each}}\n          </GroupingSelector>\n        </div>\n        {{#if\n          this.model.entity.effectiveProfitMargin.additionalLabourMargin.value\n        }}\n          <div class='ms-1'>\n            <PtlInput\n              @type='checkbox'\n              @label={{t 'entity.settings.company.Additional margin'}}\n              @key='includeTimesheetsProfitMargins'\n              @model={{this.invoiceBreakdownOptions}}\n              @description={{t\n                'entity.settings.company.includeTimesheetsProfitMarginsDescription'\n              }}\n              disabled={{this.saveBreakdownOptions.isRunning}}\n              {{on\n                'change'\n                (fn\n                  this.onToggleTimesheetMargin\n                  'includeTimesheetsProfitMargins'\n                  'includeTimesheetsCostMargins'\n                )\n              }}\n            />\n          </div>\n        {{/if}}\n  \n        <div class='ms-1'>\n          <PtlInput\n            @type='checkbox'\n            @label={{t 'entity.settings.company.Show cost margin'}}\n            @key='includeTimesheetsCostMargins'\n            @model={{this.invoiceBreakdownOptions}}\n            @description={{t\n              'entity.settings.company.includeTimesheetsCostMarginsDescription'\n            }}\n            disabled={{this.saveBreakdownOptions.isRunning}}\n            {{on\n              'change'\n              (fn\n                this.onToggleTimesheetMargin\n                'includeTimesheetsCostMargins'\n                'includeTimesheetsProfitMargins'\n              )\n            }}\n          />\n        </div>\n  \n        <label class='mb-1'>\n          {{t 'entity.settings.company.Material bills'}}\n        </label>\n        <div class='d-flex align-items-center gap-3 ms-1'>\n          <PtlInput\n            @type='radio'\n            @key='materialsDetail'\n            @id='materialsSection'\n            @model={{this.invoiceBreakdownOptions}}\n            @label={{t 'entity.settings.company.Total only'}}\n            @value='TOTAL'\n            disabled={{this.saveBreakdownOptions.isRunning}}\n            @containerClass='mb-1'\n          />\n          <PtlInput\n            @type='radio'\n            @key='materialsDetail'\n            @id='materialsBill'\n            @model={{this.invoiceBreakdownOptions}}\n            @label={{t 'common.Bill'}}\n            @value='BILL'\n            disabled={{this.saveBreakdownOptions.isRunning}}\n            @containerClass='mb-1'\n          />\n          <PtlInput\n            @type='radio'\n            @key='materialsDetail'\n            @id='materialsItem'\n            @model={{this.invoiceBreakdownOptions}}\n            @label={{t 'entity.settings.company.Bill item'}}\n            @value='BILL_ITEM'\n            disabled={{this.saveBreakdownOptions.isRunning}}\n            @containerClass='mb-1'\n          />\n        </div>\n        <div class='ms-1'>\n          <PtlInput\n            @type='checkbox'\n            @label={{t 'entity.settings.company.Include margin'}}\n            @key='includeMaterialBillsProfitMargins'\n            @model={{this.invoiceBreakdownOptions}}\n            @description={{t\n              'entity.settings.company.includeProfitMarginsDescription'\n            }}\n            disabled={{this.saveBreakdownOptions.isRunning}}\n          />\n        </div>\n  \n        <label class='mb-1'>\n          {{t 'entity.settings.company.Subcontractor bills'}}\n        </label>\n        <div class='d-flex align-items-center gap-3 ms-1 mt-0'>\n          <PtlInput\n            @type='radio'\n            @key='subcontractorsDetail'\n            @id='subcontractorsSection'\n            @model={{this.invoiceBreakdownOptions}}\n            disabled={{this.saveBreakdownOptions.isRunning}}\n            @label={{t 'entity.settings.company.Total only'}}\n            @value='TOTAL'\n            @containerClass='mb-1'\n          />\n          <PtlInput\n            @type='radio'\n            @key='subcontractorsDetail'\n            @id='subcontractorsBill'\n            @model={{this.invoiceBreakdownOptions}}\n            disabled={{this.saveBreakdownOptions.isRunning}}\n            @label={{t 'common.Bill'}}\n            @value='BILL'\n            @containerClass='mb-1'\n          />\n          <PtlInput\n            @type='radio'\n            @key='subcontractorsDetail'\n            @id='subcontractorsItem'\n            @model={{this.invoiceBreakdownOptions}}\n            disabled={{this.saveBreakdownOptions.isRunning}}\n            @label={{t 'entity.settings.company.Bill item'}}\n            @value='BILL_ITEM'\n            @containerClass='mb-1'\n          />\n        </div>\n        <div class='ms-1'>\n          <PtlInput\n            @type='checkbox'\n            @label={{t 'entity.settings.company.Include margin'}}\n            @key='includeSubcontractorBillsProfitMargins'\n            @model={{this.invoiceBreakdownOptions}}\n            @description={{t\n              'entity.settings.company.includeProfitMarginsDescription'\n            }}\n            disabled={{this.saveBreakdownOptions.isRunning}}\n          />\n        </div>\n      </div>\n  \n      <div class='modal-footer'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' (fn (mut this.invoiceBreakdownOptions) null)}}\n        >\n          {{t 'common.Cancel'}}\n        </button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          {{on 'click' (perform this.saveBreakdownOptions)}}\n        >\n          {{#if this.saveBreakdownOptions.isRunning}}\n            <span class='spinner-border spinner-border-sm'></span>\n            &nbsp;&nbsp;{{t 'common.Saving'}}&hellip;\n          {{else}}\n            {{t 'common.Save'}}\n          {{/if}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"QHiyCAZz\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"entity.settings.company.Company details\\\"],null]]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4 h-100\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom pb-2 mb-3 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,[28,[35,4],[\\\"common.Settings\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,9],[[30,0,[\\\"model\\\",\\\"companyLogo\\\",\\\"isRunning\\\"]],[30,0,[\\\"model\\\",\\\"glAccounts\\\",\\\"isRunning\\\"]]],null],[[[1,\\\"    \\\"],[8,[39,10],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[8,[39,11],[[24,0,\\\"width--small mb-4\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-3\\\"],[12],[1,[28,[35,4],[\\\"entity.settings.company.Company details\\\"],null]],[13],[1,\\\"\\\\n\\\"],[44,[[28,[37,14],[[30,0,[\\\"model\\\",\\\"entity\\\"]],[30,0,[\\\"entityValidationMap\\\"]]],null]],[[[1,\\\"        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveEntity\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,4],[\\\"common.Name\\\"],null],\\\"name\\\",[30,1],true,[28,[37,16],[[30,0,[\\\"saveEntity\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveEntity\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,4],[\\\"shared.contacts.Contact email\\\"],null],\\\"contactEmail\\\",[30,1],[28,[37,16],[[30,0,[\\\"saveEntity\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveEntity\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,4],[\\\"common.Address\\\"],null],\\\"address\\\",[30,1],[28,[37,16],[[30,0,[\\\"saveEntity\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveEntity\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[30,0,[\\\"businessNumberLabel\\\"]],\\\"businessNumber\\\",[30,1],[28,[37,16],[[30,0,[\\\"saveEntity\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,17],[[30,0,[\\\"model\\\",\\\"entity\\\",\\\"region\\\"]],\\\"AUS\\\"],null],[[[1,\\\"          \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveEntity\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[30,0,[\\\"taxNumberLabel\\\"]],\\\"taxNumber\\\",[30,1],[28,[37,16],[[30,0,[\\\"saveEntity\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,18],[[30,0,[\\\"accountingPlatform\\\",\\\"glAccountVisibleFields\\\"]],\\\"purchasesGlAccount\\\"],null],[[[1,\\\"          \\\"],[8,[39,15],null,[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@options\\\",\\\"@model\\\",\\\"@description\\\",\\\"@placeholder\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@forceValidationVisible\\\",\\\"@allowClear\\\",\\\"@disabled\\\"],[\\\"powerSelect\\\",[28,[37,4],[\\\"entity.settings.company.Default purchases account\\\"],null],\\\"purchasesGlAccount\\\",[28,[37,19],[\\\"code\\\",\\\"name\\\"],null],[30,0,[\\\"model\\\",\\\"glAccounts\\\",\\\"last\\\",\\\"value\\\"]],[30,1],[28,[37,4],[\\\"entity.settings.company.purchasesGlAccountDescription\\\"],null],[28,[37,4],[\\\"entity.settings.company.No default account\\\"],null],true,\\\"code\\\",[28,[37,16],[[30,0,[\\\"saveEntity\\\",\\\"performCount\\\"]],0],null],true,[30,0,[\\\"saveEntity\\\",\\\"isRunning\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,18],[[30,0,[\\\"accountingPlatform\\\",\\\"glAccountVisibleFields\\\"]],\\\"salesGlAccount\\\"],null],[[[1,\\\"          \\\"],[8,[39,15],null,[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@options\\\",\\\"@model\\\",\\\"@description\\\",\\\"@placeholder\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@forceValidationVisible\\\",\\\"@allowClear\\\",\\\"@disabled\\\"],[\\\"powerSelect\\\",[28,[37,4],[\\\"entity.settings.company.Default sales account\\\"],null],\\\"salesGlAccount\\\",[28,[37,19],[\\\"code\\\",\\\"name\\\"],null],[30,0,[\\\"model\\\",\\\"glAccounts\\\",\\\"last\\\",\\\"value\\\"]],[30,1],[28,[37,4],[\\\"entity.settings.company.salesGlAccountDescription\\\"],null],[28,[37,4],[\\\"entity.settings.company.No default account\\\"],null],true,\\\"code\\\",[28,[37,16],[[30,0,[\\\"saveEntity\\\",\\\"performCount\\\"]],0],null],true,[30,0,[\\\"saveEntity\\\",\\\"isRunning\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n        \\\"],[10,\\\"h4\\\"],[12],[1,[28,[35,4],[\\\"common.Logo\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[14,5,\\\"min-height: 60px;\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"companyLogo\\\"]],[[[1,\\\"            \\\"],[10,\\\"img\\\"],[14,0,\\\"d-inline-block overflow-hidden mb-2 me-2\\\"],[14,1,\\\"image-preview\\\"],[15,\\\"src\\\",[30,1,[\\\"companyLogo\\\",\\\"href\\\"]]],[14,5,\\\"object-fit: contain; height:100px; width:100px\\\"],[12],[13],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline float-start\\\"],[24,4,\\\"button\\\"],[4,[38,24],[\\\"click\\\",[28,[37,25],[[30,0,[\\\"clearLogo\\\"]],[30,1]],null]],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.settings.company.Clear logo\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"d-inline-block overflow-hidden bg-light rounded mb-2 me-2\\\"],[14,5,\\\"height:100px; width:100px\\\"],[12],[13],[1,\\\"\\\\n            \\\"],[11,\\\"input\\\"],[24,\\\"aria-label\\\",\\\"logo-upload\\\"],[24,\\\"accept\\\",\\\".jpg, .jpeg, .png, .gif\\\"],[24,4,\\\"file\\\"],[4,[38,24],[\\\"change\\\",[28,[37,25],[[30,0,[\\\"updateLogo\\\"]],[30,1]],null]],null],[12],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-3\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveEntity\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,24],[\\\"click\\\",[28,[37,27],[[30,0,[\\\"saveEntity\\\"]],[30,1]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveEntity\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"entity.settings.company.Saving details\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"entity.settings.company.Save company details\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[1]]],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[28,[37,29],[[28,[37,30],[\\\"userIsEntityAdmin\\\"],null],[30,0,[\\\"chargebee\\\",\\\"ready\\\"]]],null],[[[1,\\\"    \\\"],[8,[39,11],[[24,0,\\\"width--small mb-4\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3\\\"],[12],[1,[28,[35,4],[\\\"entity.settings.company.Subscription\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"p\\\"],[12],[1,[28,[35,4],[\\\"entity.settings.company.clickTheButtonBelowToManageYourSubscription\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"button\\\"],[24,4,\\\"button\\\"],[4,[38,24],[\\\"click\\\",[28,[37,32],[[30,0],\\\"openChargebee\\\"],null]],null],[12],[1,[28,[35,4],[\\\"entity.settings.company.Manage your subscription\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,30],[\\\"canUseInvoices\\\"],null],[[[1,\\\"    \\\"],[8,[39,11],[[24,0,\\\"width--small mb-4\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"invoiceOptions\\\",\\\"isRunning\\\"]],[[[1,\\\"        \\\"],[8,[39,10],null,[[\\\"@type\\\"],[\\\"ripple\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-3\\\"],[12],[1,[28,[35,4],[\\\"entity.settings.company.Invoicing details\\\"],null]],[13],[1,\\\"\\\\n\\\"],[44,[[28,[37,14],[[30,0,[\\\"model\\\",\\\"invoiceOptions\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"invoiceValidationMap\\\"]]],null]],[[[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"mb-2\\\"],[12],[1,[28,[35,4],[\\\"common.Invoice\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"d-flex align-items-centers\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveInvoiceOption\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@toolTip\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,4],[\\\"entity.settings.company.Prefix\\\"],null],\\\"invoicePrefix\\\",[30,2],\\\"\\\",[28,[37,16],[[30,0,[\\\"saveInvoiceOption\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveInvoiceOption\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@toolTip\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,4],[\\\"entity.settings.company.nextInvoiceNumber\\\"],null],\\\"nextInvoiceNumber\\\",[30,2],\\\"\\\",[28,[37,16],[[30,0,[\\\"saveInvoiceOption\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"mb-2\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[14,\\\"for\\\",\\\"paymentTermDay\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"shared.contacts.Payment terms\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"d-flex align-items-centers\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,15],[[24,\\\"min\\\",\\\"1\\\"],[24,5,\\\"width: 75px;\\\"],[16,\\\"disabled\\\",[30,0,[\\\"disableForm\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"number\\\",\\\"paymentTermDay\\\",[30,2],[28,[37,16],[[30,0,[\\\"saveSupplier\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"disableForm\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@selectNoBlankOption\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",\\\"paymentTermType\\\",true,[30,0,[\\\"paymentTermType\\\"]],[30,2],[28,[37,16],[[30,0,[\\\"saveSupplier\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveInvoiceOption\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"textarea\\\",[28,[37,4],[\\\"entity.settings.company.Footer notes\\\"],null],\\\"invoiceFooterNotes\\\",[30,2],[28,[37,16],[[30,0,[\\\"saveInvoiceOption\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[10,\\\"h4\\\"],[14,0,\\\"mb-2\\\"],[12],[1,[28,[35,4],[\\\"common.Credit note\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"d-flex align-items-centers\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveInvoiceOption\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@toolTip\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,4],[\\\"entity.settings.company.Prefix\\\"],null],\\\"creditNotePrefix\\\",[30,2],\\\"\\\",[28,[37,16],[[30,0,[\\\"saveInvoiceOption\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveInvoiceOption\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@toolTip\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,4],[\\\"entity.settings.company.nextCreditNoteNumber\\\"],null],\\\"nextCreditNoteNumber\\\",[30,2],\\\"\\\",[28,[37,16],[[30,0,[\\\"saveInvoiceOption\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveInvoiceOption\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"textarea\\\",[28,[37,4],[\\\"entity.settings.company.Footer notes\\\"],null],\\\"creditNoteFooterNotes\\\",[30,2],[28,[37,16],[[30,0,[\\\"saveInvoiceOption\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"text-left\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link m-0 p-0 text-decoration-underline\\\"],[24,4,\\\"button\\\"],[4,[38,24],[\\\"click\\\",[30,0,[\\\"initInvoiceBreakdown\\\"]]],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.settings.company.Default breakdown options\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-3\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveInvoiceOption\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,24],[\\\"click\\\",[28,[37,27],[[30,0,[\\\"saveInvoiceOption\\\"]],[30,2]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveInvoiceOption\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"entity.settings.company.Save invoicing details\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[2]]]],[]]],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,30],[\\\"canUsePurchaseOrders\\\"],null],[[[1,\\\"    \\\"],[8,[39,11],[[24,0,\\\"width--small mb-4\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"purchaseOrderOptions\\\",\\\"isRunning\\\"]],[[[1,\\\"        \\\"],[8,[39,10],null,[[\\\"@type\\\"],[\\\"ripple\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3 mb-3\\\"],[12],[1,[28,[35,4],[\\\"entity.settings.company.Purchase order details\\\"],null]],[13],[1,\\\"\\\\n\\\\n\\\"],[44,[[28,[37,14],[[30,0,[\\\"model\\\",\\\"purchaseOrderOptions\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"purchaseOrderValidationMap\\\"]]],null]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"d-flex align-items-centers\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"savePurchaseOrderOption\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@toolTip\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,4],[\\\"entity.settings.company.Prefix\\\"],null],\\\"prefix\\\",[30,3],\\\"\\\",[28,[37,16],[[30,0,[\\\"savePurchaseOrderOption\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"savePurchaseOrderOption\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@toolTip\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,4],[\\\"entity.settings.company.nextPurchaseOrderNumber\\\"],null],\\\"nextPurchaseOrderNumber\\\",[30,3],\\\"\\\",[28,[37,16],[[30,0,[\\\"savePurchaseOrderOption\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"savePurchaseOrderOption\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"textarea\\\",[28,[37,4],[\\\"entity.settings.company.Footer notes\\\"],null],\\\"footerNotes\\\",[30,3],[28,[37,16],[[30,0,[\\\"savePurchaseOrderOption\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"savePurchaseOrderOption\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"percentage\\\",[28,[37,4],[\\\"entity.settings.company.Percentage tolerance for matching\\\"],null],\\\"matchingPercentageTolerance\\\",[30,3],[28,[37,16],[[30,0,[\\\"savePurchaseOrderOption\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"savePurchaseOrderOption\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"currency\\\",[28,[37,4],[\\\"entity.settings.company.Amount tolerance for matching\\\"],null],\\\"matchingAmountTolerance\\\",[30,3],[28,[37,16],[[30,0,[\\\"savePurchaseOrderOption\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-3\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"savePurchaseOrderOption\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,24],[\\\"click\\\",[28,[37,27],[[30,0,[\\\"savePurchaseOrderOption\\\"]],[30,3]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"savePurchaseOrderOption\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"entity.settings.company.Save purchase order details\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[3]]]],[]]],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,30],[\\\"canUseStagePayments\\\"],null],[[[1,\\\"    \\\"],[8,[39,11],[[24,0,\\\"width--small mb-4\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"stagePaymentOptions\\\",\\\"isRunning\\\"]],[[[1,\\\"        \\\"],[8,[39,10],null,[[\\\"@type\\\"],[\\\"ripple\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3 mb-3\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"entity.settings.company.Stage payment details\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[44,[[28,[37,14],[[30,0,[\\\"stagePaymentOption\\\"]],[30,0,[\\\"stagePaymentsOptionsValidationMap\\\"]]],null]],[[[1,\\\"          \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveStagePaymentOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"textarea\\\",[28,[37,4],[\\\"entity.settings.company.Default stage payment notes\\\"],null],\\\"footerNotes\\\",[30,4],[28,[37,16],[[30,0,[\\\"saveStagePaymentOptions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-3\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveStagePaymentOptions\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,24],[\\\"click\\\",[28,[37,27],[[30,0,[\\\"saveStagePaymentOptions\\\"]],[30,4]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveStagePaymentOptions\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[1,\\\"\\\\n                \\\"],[13],[1,[28,[35,4],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"entity.settings.company.Save stage payment details\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[4]]]],[]]],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,30],[\\\"canManageProfitMargin\\\"],null],[[[1,\\\"    \\\"],[8,[39,11],[[24,0,\\\"width--small mb-4\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"loadEntityProfitMargin\\\",\\\"isRunning\\\"]],[[[1,\\\"        \\\"],[8,[39,10],null,[[\\\"@type\\\"],[\\\"ripple\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\n\\\"],[44,[[28,[37,14],[[30,0,[\\\"profitMargin\\\"]],[30,0,[\\\"profitMarginValidationMap\\\"]]],null]],[[[1,\\\"          \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3 mb-3\\\"],[12],[1,[28,[35,4],[\\\"common.Profit margins\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,2],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"entity.settings.company.profitMarginsArePercentagesThatDefineYourDesiredProfitMarginsOnEachTypeOfSection\\\"],null]],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"entity.settings.company.generallyThisMarginWillBeUsedToCalculateQuoteFiguresFromABudget\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"updateProfitMargins\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@toolTip\\\",\\\"@label\\\",\\\"@key\\\",\\\"@required\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@selectNoBlankOption\\\"],[\\\"select\\\",[28,[37,4],[\\\"shared.profit-margins.marginIsThePercentageOfWhatYouAreChargingTheCustomerThatIsProfitMarkupIsThePercentageOfYourCostThatIsAddedToYourCostToGetProfit\\\"],null],[28,[37,4],[\\\"shared.profit-margins.Profit type\\\"],null],\\\"profitType\\\",true,[30,0,[\\\"profitTypes\\\"]],[30,5],[28,[37,16],[[30,0,[\\\"updateProfitMargins\\\",\\\"performCount\\\"]],0],null],true]],null],[1,\\\"\\\\n          \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"updateProfitMargins\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"percentage\\\",[28,[37,4],[\\\"common.Labour\\\"],null],\\\"labourPercentage\\\",[30,5],[28,[37,16],[[30,0,[\\\"updateProfitMargins\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"form-check form-switch d-flex align-items-center mb-0\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,26],[[24,\\\"data-test-company-additional-labour-margin-toggle\\\",\\\"\\\"],[24,0,\\\"form-check-input mt-0 me-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"updateProfitMargins\\\",\\\"isRunning\\\"]]],[4,[38,24],[\\\"click\\\",[28,[37,25],[[30,0,[\\\"toggleAdditionalLabourMargin\\\"]],[30,5]],null]],null]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,17],[[30,5,[\\\"additionalLabourMargin\\\"]],null],null]]],null],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"shared.profit-margins.Additional labour margin\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,17],[[30,5,[\\\"additionalLabourMargin\\\"]],null],null],[[[1,\\\"            \\\"],[8,[39,15],[[24,\\\"data-test-company-additional-labour-margin-input\\\",\\\"\\\"],[16,\\\"disabled\\\",[30,0,[\\\"updateProfitMargins\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@description\\\"],[\\\"percentage\\\",\\\"additionalLabourMargin\\\",[30,5],[28,[37,16],[[30,0,[\\\"updateProfitMargins\\\",\\\"performCount\\\"]],0],null],[28,[37,4],[\\\"shared.profit-margins.additionalLabourMarginDescription\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"updateProfitMargins\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"percentage\\\",[28,[37,4],[\\\"common.Materials\\\"],null],\\\"materialsPercentage\\\",[30,5],[28,[37,16],[[30,0,[\\\"updateProfitMargins\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"updateProfitMargins\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"percentage\\\",[28,[37,4],[\\\"common.Subcontractors\\\"],null],\\\"subcontractorsPercentage\\\",[30,5],[28,[37,16],[[30,0,[\\\"updateProfitMargins\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"updateProfitMargins\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"percentage\\\",[28,[37,4],[\\\"common.Sums\\\"],null],\\\"sumsPercentage\\\",[30,5],[28,[37,16],[[30,0,[\\\"updateProfitMargins\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-3\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"updateProfitMargins\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,24],[\\\"click\\\",[28,[37,27],[[30,0,[\\\"updateProfitMargins\\\"]],[30,5]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"updateProfitMargins\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"entity.settings.company.updating profit margins\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"shared.profit-margins.Save profit margins\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[5]]]],[]]],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"invoiceBreakdownOptions\\\"]],[[[1,\\\"  \\\"],[8,[39,34],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[28,[37,25],[[28,[37,35],[[30,0,[\\\"invoiceBreakdownOptions\\\"]]],null],null],null],\\\"modal-content w-auto h-auto modal-dialog-scrollable\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h5\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.settings.company.Breakdown options\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"textarea\\\",[28,[37,4],[\\\"entity.settings.company.Notes\\\"],null],\\\"breakdownNotes\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]]]],null],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@description\\\"],[\\\"form-check mb-2\\\",\\\"checkbox\\\",[28,[37,4],[\\\"entity.settings.company.Include billable\\\"],null],\\\"includeBillable\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.settings.company.includeBillableDescription\\\"],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@description\\\"],[\\\"form-check mb-2\\\",\\\"checkbox\\\",[28,[37,4],[\\\"entity.settings.company.Include previously invoiced\\\"],null],\\\"includeInvoiced\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.settings.company.includeInvoicedDescription\\\"],null]]],null],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.settings.company.First group by\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center gap-3 ms-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\"],[\\\"radio\\\",\\\"firstGroupBy\\\",\\\"groupByTask\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"common.Task\\\"],null],\\\"TASK\\\"]],null],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\"],[\\\"radio\\\",\\\"firstGroupBy\\\",\\\"groupByAllocationType\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"common.Allocation type\\\"],null],\\\"ALLOCATION_TYPE\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.settings.company.Labour bills\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center gap-3 ms-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\",\\\"@containerClass\\\"],[\\\"radio\\\",\\\"labourDetail\\\",\\\"labourSection\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.settings.company.Total only\\\"],null],\\\"TOTAL\\\",\\\"mb-1\\\"]],null],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\",\\\"@containerClass\\\"],[\\\"radio\\\",\\\"labourDetail\\\",\\\"labourBill\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"common.Bill\\\"],null],\\\"BILL\\\",\\\"mb-1\\\"]],null],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\",\\\"@containerClass\\\"],[\\\"radio\\\",\\\"labourDetail\\\",\\\"labourItem\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.settings.company.Bill item\\\"],null],\\\"BILL_ITEM\\\",\\\"mb-1\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"ms-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@description\\\"],[\\\"checkbox\\\",[28,[37,4],[\\\"entity.settings.company.Include margin\\\"],null],\\\"includeLabourBillsProfitMargins\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.settings.company.includeProfitMarginsDescription\\\"],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"common.Timesheets\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"ms-1 mb-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,37],null,[[\\\"@groups\\\",\\\"@value\\\",\\\"@onChange\\\"],[[30,0,[\\\"timesheetGroupingOptions\\\"]],[30,0,[\\\"invoiceBreakdownOptions\\\",\\\"timesheetDetails\\\"]],[28,[37,25],[[28,[37,35],[[30,0,[\\\"invoiceBreakdownOptions\\\",\\\"timesheetDetails\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,39],[[28,[37,39],[[30,6,[\\\"axes\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"label\\\"],[14,0,\\\"pdf-export-options__grouping-label\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,40],[[30,8],0],null],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"shared.report-builder.First break down by\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                …\\\"],[1,[28,[35,4],[\\\"shared.report-builder.and then by\\\"],null]],[1,\\\"…\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[11,\\\"select\\\"],[24,0,\\\"pdf-export-options__grouping-control\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]],[4,[38,24],[\\\"change\\\",[28,[37,32],[[30,0],[30,7,[\\\"update\\\"]]],[[\\\"value\\\"],[\\\"target.value\\\"]]]],null],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,39],[[28,[37,39],[[30,7,[\\\"options\\\"]]],null]],null],null,[[[1,\\\"                \\\"],[10,\\\"option\\\"],[15,2,[30,9,[\\\"key\\\"]]],[15,\\\"selected\\\",[30,9,[\\\"isSelected\\\"]]],[12],[1,\\\"\\\\n                  \\\"],[1,[30,9,[\\\"name\\\"]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[9]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[7,8]],null],[1,\\\"        \\\"]],[6]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"entity\\\",\\\"effectiveProfitMargin\\\",\\\"additionalLabourMargin\\\",\\\"value\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"ms-1\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]],[4,[38,24],[\\\"change\\\",[28,[37,25],[[30,0,[\\\"onToggleTimesheetMargin\\\"]],\\\"includeTimesheetsProfitMargins\\\",\\\"includeTimesheetsCostMargins\\\"],null]],null]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@description\\\"],[\\\"checkbox\\\",[28,[37,4],[\\\"entity.settings.company.Additional margin\\\"],null],\\\"includeTimesheetsProfitMargins\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.settings.company.includeTimesheetsProfitMarginsDescription\\\"],null]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"ms-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]],[4,[38,24],[\\\"change\\\",[28,[37,25],[[30,0,[\\\"onToggleTimesheetMargin\\\"]],\\\"includeTimesheetsCostMargins\\\",\\\"includeTimesheetsProfitMargins\\\"],null]],null]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@description\\\"],[\\\"checkbox\\\",[28,[37,4],[\\\"entity.settings.company.Show cost margin\\\"],null],\\\"includeTimesheetsCostMargins\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.settings.company.includeTimesheetsCostMarginsDescription\\\"],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.settings.company.Material bills\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center gap-3 ms-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\",\\\"@containerClass\\\"],[\\\"radio\\\",\\\"materialsDetail\\\",\\\"materialsSection\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.settings.company.Total only\\\"],null],\\\"TOTAL\\\",\\\"mb-1\\\"]],null],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\",\\\"@containerClass\\\"],[\\\"radio\\\",\\\"materialsDetail\\\",\\\"materialsBill\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"common.Bill\\\"],null],\\\"BILL\\\",\\\"mb-1\\\"]],null],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\",\\\"@containerClass\\\"],[\\\"radio\\\",\\\"materialsDetail\\\",\\\"materialsItem\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.settings.company.Bill item\\\"],null],\\\"BILL_ITEM\\\",\\\"mb-1\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"ms-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@description\\\"],[\\\"checkbox\\\",[28,[37,4],[\\\"entity.settings.company.Include margin\\\"],null],\\\"includeMaterialBillsProfitMargins\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.settings.company.includeProfitMarginsDescription\\\"],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.settings.company.Subcontractor bills\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center gap-3 ms-1 mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\",\\\"@containerClass\\\"],[\\\"radio\\\",\\\"subcontractorsDetail\\\",\\\"subcontractorsSection\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.settings.company.Total only\\\"],null],\\\"TOTAL\\\",\\\"mb-1\\\"]],null],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\",\\\"@containerClass\\\"],[\\\"radio\\\",\\\"subcontractorsDetail\\\",\\\"subcontractorsBill\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"common.Bill\\\"],null],\\\"BILL\\\",\\\"mb-1\\\"]],null],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\",\\\"@containerClass\\\"],[\\\"radio\\\",\\\"subcontractorsDetail\\\",\\\"subcontractorsItem\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.settings.company.Bill item\\\"],null],\\\"BILL_ITEM\\\",\\\"mb-1\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"ms-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@description\\\"],[\\\"checkbox\\\",[28,[37,4],[\\\"entity.settings.company.Include margin\\\"],null],\\\"includeSubcontractorBillsProfitMargins\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.settings.company.includeProfitMarginsDescription\\\"],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,24],[\\\"click\\\",[28,[37,25],[[28,[37,35],[[30,0,[\\\"invoiceBreakdownOptions\\\"]]],null],null],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[24,4,\\\"button\\\"],[4,[38,24],[\\\"click\\\",[28,[37,27],[[30,0,[\\\"saveBreakdownOptions\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,4],[\\\"common.Save\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"entityModel\\\",\\\"invoiceOptionsModel\\\",\\\"purchaseOrderOptionsModel\\\",\\\"stagePaymentOptionsModel\\\",\\\"profitMarginsModel\\\",\\\"gs\\\",\\\"axis\\\",\\\"i\\\",\\\"opt\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"header\\\",\\\"if\\\",\\\"h2\\\",\\\"or\\\",\\\"loading-icon\\\",\\\"ptl-form\\\",\\\"h3\\\",\\\"let\\\",\\\"changeset\\\",\\\"ptl-input\\\",\\\"gt\\\",\\\"not-eq\\\",\\\"includes\\\",\\\"array\\\",\\\"h4\\\",\\\"div\\\",\\\"img\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"input\\\",\\\"perform\\\",\\\"span\\\",\\\"and\\\",\\\"includes-feature-flags\\\",\\\"p\\\",\\\"action\\\",\\\"label\\\",\\\"modal-dialog\\\",\\\"mut\\\",\\\"h5\\\",\\\"grouping-selector\\\",\\\"each\\\",\\\"-track-array\\\",\\\"eq\\\",\\\"select\\\",\\\"option\\\",\\\"br\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/company.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/contacts\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='mx-4 mt-4'>\n    <header class='border-bottom pb-2 mb-3 d-flex align-items-center'>\n      <h2 class='flex-grow-1 m-0 my-2'>{{t 'common.contacts'}}</h2>\n    </header>\n    {{outlet}}\n  </article>\n  */\n  {\n    \"id\": \"5WbU548I\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom pb-2 mb-3 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,[28,[35,3],[\\\"common.contacts\\\"],null]],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[46,[28,[37,5],null,null],null,null,null],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"article\\\",\\\"header\\\",\\\"h2\\\",\\\"t\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/contacts.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/contacts/contact\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <div class='mb-3 ms-1 mt-1'>\n      <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n    </div>\n    <PtlForm class='width--medium'>\n      <div class='d-flex mb-3 align-items-center'>\n        <h3 class='m-0'>{{t 'common.Details'}}</h3>\n        {{#if this.supplier.isContactLinkedToAccountingPlatform}}\n          <FaIcon\n            @title='This supplier is synced with your accounting package'\n            class='ms-3'\n            @icon='sync'\n          />\n        {{/if}}\n      </div>\n      <PtlInput\n        @type='text'\n        @label={{t 'common.Name'}}\n        @key='name'\n        @model={{this.model.supplierChangeset.last.value}}\n        @required={{true}}\n        @forceValidationVisible={{gt this.saveSupplier.performCount 0}}\n        disabled={{this.disableForm}}\n      />\n      <PtlInput\n        @type='text'\n        @label={{t 'shared.contacts.Contact person'}}\n        @key='contactPerson'\n        @model={{this.model.supplierChangeset.last.value}}\n        @forceValidationVisible={{gt this.saveSupplier.performCount 0}}\n        disabled={{this.disableForm}}\n      />\n      <PtlInput\n        @type='text'\n        @label={{t 'shared.contacts.Contact number'}}\n        @key='contactNumber'\n        @model={{this.model.supplierChangeset.last.value}}\n        @forceValidationVisible={{gt this.saveSupplier.performCount 0}}\n        disabled={{this.disableForm}}\n      />\n      <PtlInput\n        @type='text'\n        @label={{t 'shared.contacts.Contact email'}}\n        @key='contactEmail'\n        @model={{this.model.supplierChangeset.last.value}}\n        @forceValidationVisible={{gt this.saveSupplier.performCount 0}}\n        disabled={{this.disableForm}}\n      />\n      <PtlInput\n        @type='text'\n        @label={{t 'common.Address'}}\n        @key='address'\n        @model={{this.model.supplierChangeset.last.value}}\n        @forceValidationVisible={{gt this.saveSupplier.performCount 0}}\n        disabled={{this.disableForm}}\n      />\n  \n      <label class='mb-1'>\n        {{t 'entity.settings.contacts.contact.Default allocation type'}}\n        &nbsp;<InfoPopup\n          @text={{t\n            'entity.settings.contacts.contact.defaultAllocationFeatureTooltip'\n          }}\n        />\n      </label>\n      <div class='d-flex align-items-center gap-3'>\n        <PtlInput\n          @type='radio'\n          @key='defaultBillAllocationType'\n          @id='MATERIALS'\n          @model={{this.model.supplierChangeset.last.value}}\n          disabled={{this.saveSupplier.isRunning}}\n          @label={{t 'common.Materials'}}\n          @value='MATERIALS'\n        />\n        <PtlInput\n          @type='radio'\n          @key='defaultBillAllocationType'\n          @id='SUBCONTRACTORS'\n          @model={{this.model.supplierChangeset.last.value}}\n          disabled={{this.saveSupplier.isRunning}}\n          @label={{t 'common.Subcontractors'}}\n          @value='SUBCONTRACTORS'\n        />\n        <PtlInput\n          @type='radio'\n          @key='defaultBillAllocationType'\n          @id='LABOUR'\n          @model={{this.model.supplierChangeset.last.value}}\n          disabled={{this.saveSupplier.isRunning}}\n          @label={{t 'common.Labour'}}\n          @value='LABOUR'\n        />\n      </div>\n  \n      <h4 class='mb-2'>{{t 'common.Purchases'}}</h4>\n      <div class='mb-3'>\n        <label class='mb-1' for='paymentTermDay'>\n          {{t 'shared.contacts.Payment terms'}}\n        </label>\n        {{#if this.supplier.isContactLinkedToAccountingPlatform}}\n          <Input\n            class='form-control'\n            id='paymentTermDay'\n            name='paymentTermDay'\n            @type='text'\n            placeholder={{this.supplier.purchaseDisplayPaymentTerm}}\n            autocomplete='off'\n            disabled={{true}}\n          />\n        {{else}}\n          <div class='d-flex align-items-centers'>\n            <div class='me-2'>\n              <PtlInput\n                @type='number'\n                @key='paymentTermDay'\n                @containerClass='m-0'\n                min='1'\n                style='width: 75px;'\n                @model={{this.model.supplierChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveSupplier.performCount 0}}\n                disabled={{this.disableForm}}\n              />\n            </div>\n            <div class='flex-grow-1'>\n              <PtlInput\n                @type='select'\n                @key='paymentTermType'\n                @containerClass='m-0'\n                @selectNoBlankOption={{true}}\n                @options={{this.paymentTermType}}\n                @model={{this.model.supplierChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveSupplier.performCount 0}}\n                disabled={{this.disableForm}}\n              />\n            </div>\n          </div>\n        {{/if}}\n      </div>\n  \n      <h4 class='mb-2'>{{t 'common.Sales'}}</h4>\n      <div class='mb-3'>\n        <label class='mb-1' for='salesPaymentTermDay'>\n          {{t 'shared.contacts.Payment terms'}}\n        </label>\n        {{#if this.supplier.isContactLinkedToAccountingPlatform}}\n          <Input\n            class='form-control'\n            id='salesPaymentTermDay'\n            name='salesPaymentTermDay'\n            @type='text'\n            placeholder={{this.supplier.salesDisplayPaymentTerm}}\n            autocomplete='off'\n            disabled={{true}}\n          />\n        {{else}}\n          <div class='d-flex align-items-centers'>\n            <div class='me-2'>\n              <PtlInput\n                @type='number'\n                @key='salesPaymentTermDay'\n                @containerClass='m-0'\n                min='1'\n                style='width: 75px;'\n                @model={{this.model.supplierChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveSupplier.performCount 0}}\n                disabled={{this.disableForm}}\n              />\n            </div>\n            <div class='flex-grow-1'>\n              <PtlInput\n                @type='select'\n                @containerClass='m-0'\n                @key='salesPaymentTermType'\n                @selectNoBlankOption={{true}}\n                @options={{this.salesPaymentTermType}}\n                @model={{this.model.supplierChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveSupplier.performCount 0}}\n                disabled={{this.disableForm}}\n              />\n            </div>\n          </div>\n        {{/if}}\n      </div>\n  \n      {{#if\n        (and\n          this.accountingPlatform.isActive\n          (not this.supplier.isContactLinkedToAccountingPlatform)\n        )\n      }}\n        <div class='mb-3'>\n          <label class='mb-1' for='sync-with-accounting-platform'>\n            <Input\n              class='form-check-input'\n              id='sync-with-accounting-platform'\n              name='sync-with-accounting-platform'\n              @type='checkbox'\n              @checked={{this.onChangeSyncWithAccountingPlatform}}\n              {{on\n                'change'\n                (fn\n                  (mut this.onChangeSyncWithAccountingPlatform)\n                  (not this.onChangeSyncWithAccountingPlatform)\n                )\n              }}\n              autocomplete='off'\n            />\n  \n            {{if\n              this.supplier.isNew\n              (t\n                'entity.settings.contacts.contact.alsoCreateInLabel'\n                label=this.accountingPlatform.label\n              )\n              (t\n                'entity.settings.contacts.contact.syncWithLabelOnSave'\n                label=this.accountingPlatform.label\n              )\n            }}\n  \n          </label>\n        </div>\n      {{/if}}\n  \n      <div class='d-flex justify-content-between align-items-center'>\n        <h4 class='m-0'>Aliases &nbsp;<InfoPopup\n            @text={{html-safe\n              (t 'entity.settings.contacts.contact.aliasFeatureTooltip')\n            }}\n          /></h4>\n        <button\n          type='button'\n          class='btn btn-link text-primary text-decoration-underline m-1'\n          disabled={{this.isLoading}}\n          {{on 'click' (fn (mut this.showAddAliasModal) true)}}\n        >\n          {{t 'entity.settings.contacts.contact.Add new alias'}}\n        </button>\n      </div>\n      <div class='mb-2'>\n        <PaginationTable\n          @tableHeader={{this.aliasesTableHeader}}\n          @tableData={{this.aliasesTableData}}\n          @isLoading={{this.isLoading}}\n          @noDataText='No aliases'\n          @class='table-bordered '\n          @hidePagination={{true}}\n        />\n      </div>\n  \n      {{#if this.canEditSupplier}}\n        <div class='d-flex align-items-center'>\n          {{#unless this.supplier.isNew}}\n            <LabelPopup @text={{this.deleteSupplierDisabledTitle}}>\n              <button\n                type='button'\n                class='btn btn-link text-danger text-decoration-underline'\n                disabled={{or\n                  this.deleteSupplier.isRunning\n                  this.saveSupplier.isRunning\n                  this.supplier.isLinkedToResources\n                  this.supplier.isLinkedToActiveAccountingPlatform\n                }}\n                {{on 'click' (fn (mut this.isDeletingSupplier) true)}}\n              >\n                {{t 'entity.settings.contacts.contact.Delete contact'}}\n              </button>\n            </LabelPopup>\n          {{/unless}}\n          {{#if this.supplier.isContactLinkedToAccountingPlatform}}\n            <div class='ms-auto d-flex gap-2'>\n              <a\n                href={{this.supplier.viewContactUrl}}\n                class='btn btn-primary'\n                target='_blank'\n                rel='noopener noreferrer'\n                role='button'\n                aria-disabled='true'\n              >\n                {{t\n                  'entity.settings.contacts.contact.editContactInLabel'\n                  label=this.accountingPlatform.label\n                }}\n              </a>\n              {{#if this.accountingPlatform.isActive}}\n                <button\n                  type='button'\n                  class='btn btn-primary'\n                  disabled={{this.updateSingleContact.isRunning}}\n                  {{on 'click' (perform this.updateSingleContact)}}\n                >\n                  {{#if this.updateSingleContact.isRunning}}\n                    <span class='spinner-border spinner-border-sm'>\n                    </span>&nbsp;&nbsp;{{t 'common.Updating'}}&hellip;\n                  {{else}}\n                    {{t\n                      'entity.settings.contacts.contact.updateFromLabel'\n                      label=this.accountingPlatform.label\n                    }}\n                  {{/if}}\n                </button>\n              {{/if}}\n            </div>\n          {{/if}}\n          <button\n            type='button'\n            class='btn btn-primary\n              {{if\n                this.supplier.isContactLinkedToAccountingPlatform\n                \"ms-2\"\n                \"ms-auto\"\n              }}'\n            disabled={{or\n              this.deleteSupplier.isRunning\n              this.saveSupplier.isRunning\n            }}\n            {{on\n              'click'\n              (perform this.saveSupplier this.model.supplierChangeset.last.value)\n            }}\n          >\n            {{#if this.saveSupplier.isRunning}}\n              <span class='spinner-border spinner-border-sm'>\n              </span>&nbsp;&nbsp;\n              {{t 'common.Saving'}}&hellip;\n            {{else}}\n              {{if this.supplier.isNew (t 'common.Create') (t 'common.Save')}}\n            {{/if}}\n          </button>\n        </div>\n      {{/if}}\n    </PtlForm>\n  {{/if}}\n  {{#if this.showAddAliasModal}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{this.closeAddAliasModal}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-header'>\n        <h3 class='modal-title'>\n          {{t 'entity.settings.contacts.contact.Add new alias'}}\n        </h3>\n      </div>\n  \n      <div class='modal-body'>\n        <label class='mb-1' for='alias'>\n          {{t 'entity.settings.contacts.contact.Alias name'}}\n          <sup class='text-danger'>*</sup>\n        </label>\n        <div class='input-group'>\n          <Input\n            class='form-control'\n            id='alias'\n            @type='text'\n            @value={{this.aliasNameInput}}\n            disabled={{this.addNewAlias.isRunning}}\n            {{did-insert this.focusInput}}\n          />\n        </div>\n      </div>\n      <div class='modal-footer'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' this.closeAddAliasModal}}\n        >\n          {{t 'common.Cancel'}}\n        </button>\n        <button\n          type='button'\n          class='btn btn-primary text-white'\n          disabled={{this.addNewAlias.isRunning}}\n          {{on 'click' (perform this.addNewAlias)}}\n        >\n          {{#if this.addNewAlias.isRunning}}\n            {{t 'common.Adding'}}&hellip;\n          {{else}}\n            {{t 'entity.settings.contacts.contact.Add alias'}}\n          {{/if}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.isDeletingSupplier}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.isDeletingSupplier) false}}\n      @translucentOverlay={{true}}\n      @containerClass='modal-content w-auto'\n    >\n  \n      <div class='modal-body'>\n        {{#if this.supplier.isContactLinkedToAccountingPlatform}}\n          <div class='alert alert-warning' role='alert'>\n            <FaIcon @icon='exclamation-triangle' @size='lg' class='me-2' />\n            <span class='me-2'>\n              {{t\n                'entity.settings.contacts.deleteAccountingPlatformSuppliersForNextSync'\n                label=this.accountingPlatform.label\n              }}\n            </span>\n            <a\n              role='button'\n              class='btn btn-outline-primary'\n              target='_blank'\n              href={{this.supplier.viewContactUrl}}\n              rel='noopener noreferrer'\n            >\n              {{t\n                'entity.settings.contacts.contact.viewInLabel'\n                label=this.accountingPlatform.label\n              }}\n            </a>\n          </div>\n        {{/if}}\n        <p>\n          {{t\n            'entity.settings.contacts.contact.areYouSureYouWantToDeleteTheContact'\n          }}\n          {{t 'common.This action cannot be undone'}}\n        </p>\n      </div>\n  \n      <div class='modal-footer'>\n  \n        <button\n          class='btn btn-danger text-white'\n          type='button'\n          disabled={{this.deleteSupplier.isRunning}}\n          {{on 'click' (perform this.deleteSupplier)}}\n        >\n          {{#if this.deleteSupplier.isRunning}}\n            {{t 'common.Deleting'}}&hellip;\n          {{else}}\n            {{t 'common.Delete'}}\n          {{/if}}\n        </button>\n        <button\n          class='btn btn-secondary text-white'\n          type='button'\n          disabled={{this.deleteSupplier.isRunning}}\n          {{on 'click' (fn (mut this.isDeletingSupplier) false)}}\n        >\n          {{t 'common.Cancel'}}\n        </button>\n  \n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"ZXWeuRr2\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"mb-3 ms-1 mt-1\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,3],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,4],[[24,0,\\\"width--medium\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex mb-3 align-items-center\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"m-0\\\"],[12],[1,[28,[35,6],[\\\"common.Details\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"supplier\\\",\\\"isContactLinkedToAccountingPlatform\\\"]],[[[1,\\\"        \\\"],[8,[39,7],[[24,0,\\\"ms-3\\\"]],[[\\\"@title\\\",\\\"@icon\\\"],[\\\"This supplier is synced with your accounting package\\\",\\\"sync\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,8],[[16,\\\"disabled\\\",[30,0,[\\\"disableForm\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Name\\\"],null],\\\"name\\\",[30,0,[\\\"model\\\",\\\"supplierChangeset\\\",\\\"last\\\",\\\"value\\\"]],true,[28,[37,9],[[30,0,[\\\"saveSupplier\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n    \\\"],[8,[39,8],[[16,\\\"disabled\\\",[30,0,[\\\"disableForm\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"shared.contacts.Contact person\\\"],null],\\\"contactPerson\\\",[30,0,[\\\"model\\\",\\\"supplierChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveSupplier\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n    \\\"],[8,[39,8],[[16,\\\"disabled\\\",[30,0,[\\\"disableForm\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"shared.contacts.Contact number\\\"],null],\\\"contactNumber\\\",[30,0,[\\\"model\\\",\\\"supplierChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveSupplier\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n    \\\"],[8,[39,8],[[16,\\\"disabled\\\",[30,0,[\\\"disableForm\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"shared.contacts.Contact email\\\"],null],\\\"contactEmail\\\",[30,0,[\\\"model\\\",\\\"supplierChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveSupplier\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n    \\\"],[8,[39,8],[[16,\\\"disabled\\\",[30,0,[\\\"disableForm\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Address\\\"],null],\\\"address\\\",[30,0,[\\\"model\\\",\\\"supplierChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveSupplier\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,6],[\\\"entity.settings.contacts.contact.Default allocation type\\\"],null]],[1,\\\"\\\\n       \\\"],[8,[39,11],null,[[\\\"@text\\\"],[[28,[37,6],[\\\"entity.settings.contacts.contact.defaultAllocationFeatureTooltip\\\"],null]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center gap-3\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,8],[[16,\\\"disabled\\\",[30,0,[\\\"saveSupplier\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\"],[\\\"radio\\\",\\\"defaultBillAllocationType\\\",\\\"MATERIALS\\\",[30,0,[\\\"model\\\",\\\"supplierChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,6],[\\\"common.Materials\\\"],null],\\\"MATERIALS\\\"]],null],[1,\\\"\\\\n      \\\"],[8,[39,8],[[16,\\\"disabled\\\",[30,0,[\\\"saveSupplier\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\"],[\\\"radio\\\",\\\"defaultBillAllocationType\\\",\\\"SUBCONTRACTORS\\\",[30,0,[\\\"model\\\",\\\"supplierChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,6],[\\\"common.Subcontractors\\\"],null],\\\"SUBCONTRACTORS\\\"]],null],[1,\\\"\\\\n      \\\"],[8,[39,8],[[16,\\\"disabled\\\",[30,0,[\\\"saveSupplier\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\"],[\\\"radio\\\",\\\"defaultBillAllocationType\\\",\\\"LABOUR\\\",[30,0,[\\\"model\\\",\\\"supplierChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,6],[\\\"common.Labour\\\"],null],\\\"LABOUR\\\"]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"h4\\\"],[14,0,\\\"mb-2\\\"],[12],[1,[28,[35,6],[\\\"common.Purchases\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[14,\\\"for\\\",\\\"paymentTermDay\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"shared.contacts.Payment terms\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"supplier\\\",\\\"isContactLinkedToAccountingPlatform\\\"]],[[[1,\\\"        \\\"],[8,[39,13],[[24,0,\\\"form-control\\\"],[24,1,\\\"paymentTermDay\\\"],[24,3,\\\"paymentTermDay\\\"],[16,\\\"placeholder\\\",[30,0,[\\\"supplier\\\",\\\"purchaseDisplayPaymentTerm\\\"]]],[24,\\\"autocomplete\\\",\\\"off\\\"],[16,\\\"disabled\\\",true]],[[\\\"@type\\\"],[\\\"text\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"d-flex align-items-centers\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,8],[[24,\\\"min\\\",\\\"1\\\"],[24,5,\\\"width: 75px;\\\"],[16,\\\"disabled\\\",[30,0,[\\\"disableForm\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@containerClass\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"number\\\",\\\"paymentTermDay\\\",\\\"m-0\\\",[30,0,[\\\"model\\\",\\\"supplierChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveSupplier\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,8],[[16,\\\"disabled\\\",[30,0,[\\\"disableForm\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@containerClass\\\",\\\"@selectNoBlankOption\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",\\\"paymentTermType\\\",\\\"m-0\\\",true,[30,0,[\\\"paymentTermType\\\"]],[30,0,[\\\"model\\\",\\\"supplierChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveSupplier\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"h4\\\"],[14,0,\\\"mb-2\\\"],[12],[1,[28,[35,6],[\\\"common.Sales\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[14,\\\"for\\\",\\\"salesPaymentTermDay\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"shared.contacts.Payment terms\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"supplier\\\",\\\"isContactLinkedToAccountingPlatform\\\"]],[[[1,\\\"        \\\"],[8,[39,13],[[24,0,\\\"form-control\\\"],[24,1,\\\"salesPaymentTermDay\\\"],[24,3,\\\"salesPaymentTermDay\\\"],[16,\\\"placeholder\\\",[30,0,[\\\"supplier\\\",\\\"salesDisplayPaymentTerm\\\"]]],[24,\\\"autocomplete\\\",\\\"off\\\"],[16,\\\"disabled\\\",true]],[[\\\"@type\\\"],[\\\"text\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"d-flex align-items-centers\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,8],[[24,\\\"min\\\",\\\"1\\\"],[24,5,\\\"width: 75px;\\\"],[16,\\\"disabled\\\",[30,0,[\\\"disableForm\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@containerClass\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"number\\\",\\\"salesPaymentTermDay\\\",\\\"m-0\\\",[30,0,[\\\"model\\\",\\\"supplierChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveSupplier\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,8],[[16,\\\"disabled\\\",[30,0,[\\\"disableForm\\\"]]]],[[\\\"@type\\\",\\\"@containerClass\\\",\\\"@key\\\",\\\"@selectNoBlankOption\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",\\\"m-0\\\",\\\"salesPaymentTermType\\\",true,[30,0,[\\\"salesPaymentTermType\\\"]],[30,0,[\\\"model\\\",\\\"supplierChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveSupplier\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,14],[[30,0,[\\\"accountingPlatform\\\",\\\"isActive\\\"]],[28,[37,15],[[30,0,[\\\"supplier\\\",\\\"isContactLinkedToAccountingPlatform\\\"]]],null]],null],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[14,\\\"for\\\",\\\"sync-with-accounting-platform\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,13],[[24,0,\\\"form-check-input\\\"],[24,1,\\\"sync-with-accounting-platform\\\"],[24,3,\\\"sync-with-accounting-platform\\\"],[24,\\\"autocomplete\\\",\\\"off\\\"],[4,[38,16],[\\\"change\\\",[28,[37,17],[[28,[37,18],[[30,0,[\\\"onChangeSyncWithAccountingPlatform\\\"]]],null],[28,[37,15],[[30,0,[\\\"onChangeSyncWithAccountingPlatform\\\"]]],null]],null]],null]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"onChangeSyncWithAccountingPlatform\\\"]]]],null],[1,\\\"\\\\n\\\\n          \\\"],[1,[52,[30,0,[\\\"supplier\\\",\\\"isNew\\\"]],[28,[37,6],[\\\"entity.settings.contacts.contact.alsoCreateInLabel\\\"],[[\\\"label\\\"],[[30,0,[\\\"accountingPlatform\\\",\\\"label\\\"]]]]],[28,[37,6],[\\\"entity.settings.contacts.contact.syncWithLabelOnSave\\\"],[[\\\"label\\\"],[[30,0,[\\\"accountingPlatform\\\",\\\"label\\\"]]]]]]],[1,\\\"\\\\n\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex justify-content-between align-items-center\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"Aliases  \\\"],[8,[39,11],null,[[\\\"@text\\\"],[[28,[37,19],[[28,[37,6],[\\\"entity.settings.contacts.contact.aliasFeatureTooltip\\\"],null]],null]]],null],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-primary text-decoration-underline m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[28,[37,18],[[30,0,[\\\"showAddAliasModal\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"entity.settings.contacts.contact.Add new alias\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"mb-2\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,21],null,[[\\\"@tableHeader\\\",\\\"@tableData\\\",\\\"@isLoading\\\",\\\"@noDataText\\\",\\\"@class\\\",\\\"@hidePagination\\\"],[[30,0,[\\\"aliasesTableHeader\\\"]],[30,0,[\\\"aliasesTableData\\\"]],[30,0,[\\\"isLoading\\\"]],\\\"No aliases\\\",\\\"table-bordered \\\",true]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"canEditSupplier\\\"]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"supplier\\\",\\\"isNew\\\"]]],[[[1,\\\"          \\\"],[8,[39,23],null,[[\\\"@text\\\"],[[30,0,[\\\"deleteSupplierDisabledTitle\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline\\\"],[16,\\\"disabled\\\",[28,[37,24],[[30,0,[\\\"deleteSupplier\\\",\\\"isRunning\\\"]],[30,0,[\\\"saveSupplier\\\",\\\"isRunning\\\"]],[30,0,[\\\"supplier\\\",\\\"isLinkedToResources\\\"]],[30,0,[\\\"supplier\\\",\\\"isLinkedToActiveAccountingPlatform\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[28,[37,18],[[30,0,[\\\"isDeletingSupplier\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"entity.settings.contacts.contact.Delete contact\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"supplier\\\",\\\"isContactLinkedToAccountingPlatform\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"ms-auto d-flex gap-2\\\"],[12],[1,\\\"\\\\n            \\\"],[10,3],[15,6,[30,0,[\\\"supplier\\\",\\\"viewContactUrl\\\"]]],[14,0,\\\"btn btn-primary\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[14,\\\"role\\\",\\\"button\\\"],[14,\\\"aria-disabled\\\",\\\"true\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"entity.settings.contacts.contact.editContactInLabel\\\"],[[\\\"label\\\"],[[30,0,[\\\"accountingPlatform\\\",\\\"label\\\"]]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"accountingPlatform\\\",\\\"isActive\\\"]],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"updateSingleContact\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,26],[[30,0,[\\\"updateSingleContact\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"updateSingleContact\\\",\\\"isRunning\\\"]],[[[1,\\\"                  \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"  \\\"],[1,[28,[35,6],[\\\"common.Updating\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[28,[35,6],[\\\"entity.settings.contacts.contact.updateFromLabel\\\"],[[\\\"label\\\"],[[30,0,[\\\"accountingPlatform\\\",\\\"label\\\"]]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"btn btn-primary\\\\n            \\\",[52,[30,0,[\\\"supplier\\\",\\\"isContactLinkedToAccountingPlatform\\\"]],\\\"ms-2\\\",\\\"ms-auto\\\"]]]],[16,\\\"disabled\\\",[28,[37,24],[[30,0,[\\\"deleteSupplier\\\",\\\"isRunning\\\"]],[30,0,[\\\"saveSupplier\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,26],[[30,0,[\\\"saveSupplier\\\"]],[30,0,[\\\"model\\\",\\\"supplierChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveSupplier\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[1,\\\"\\\\n            \\\"],[13],[1,\\\"  \\\\n            \\\"],[1,[28,[35,6],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[52,[30,0,[\\\"supplier\\\",\\\"isNew\\\"]],[28,[37,6],[\\\"common.Create\\\"],null],[28,[37,6],[\\\"common.Save\\\"],null]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]]],[41,[30,0,[\\\"showAddAliasModal\\\"]],[[[1,\\\"  \\\"],[8,[39,28],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[30,0,[\\\"closeAddAliasModal\\\"]],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"entity.settings.contacts.contact.Add new alias\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[14,\\\"for\\\",\\\"alias\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"entity.settings.contacts.contact.Alias name\\\"],null]],[1,\\\"\\\\n        \\\"],[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"input-group\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,13],[[24,0,\\\"form-control\\\"],[24,1,\\\"alias\\\"],[16,\\\"disabled\\\",[30,0,[\\\"addNewAlias\\\",\\\"isRunning\\\"]]],[4,[38,30],[[30,0,[\\\"focusInput\\\"]]],null]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"aliasNameInput\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[30,0,[\\\"closeAddAliasModal\\\"]]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary text-white\\\"],[16,\\\"disabled\\\",[30,0,[\\\"addNewAlias\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,26],[[30,0,[\\\"addNewAlias\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"addNewAlias\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,6],[\\\"common.Adding\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,6],[\\\"entity.settings.contacts.contact.Add alias\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isDeletingSupplier\\\"]],[[[1,\\\"  \\\"],[8,[39,28],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\"],[\\\"modal\\\",[28,[37,17],[[28,[37,18],[[30,0,[\\\"isDeletingSupplier\\\"]]],null],false],null],true,\\\"modal-content w-auto\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"supplier\\\",\\\"isContactLinkedToAccountingPlatform\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"alert alert-warning\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,7],[[24,0,\\\"me-2\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"exclamation-triangle\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n          \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"entity.settings.contacts.deleteAccountingPlatformSuppliersForNextSync\\\"],[[\\\"label\\\"],[[30,0,[\\\"accountingPlatform\\\",\\\"label\\\"]]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,3],[14,\\\"role\\\",\\\"button\\\"],[14,0,\\\"btn btn-outline-primary\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[15,6,[30,0,[\\\"supplier\\\",\\\"viewContactUrl\\\"]]],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"entity.settings.contacts.contact.viewInLabel\\\"],[[\\\"label\\\"],[[30,0,[\\\"accountingPlatform\\\",\\\"label\\\"]]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[10,2],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"entity.settings.contacts.contact.areYouSureYouWantToDeleteTheContact\\\"],null]],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"common.This action cannot be undone\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger text-white\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteSupplier\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,26],[[30,0,[\\\"deleteSupplier\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteSupplier\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,6],[\\\"common.Deleting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,6],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteSupplier\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[28,[37,18],[[30,0,[\\\"isDeletingSupplier\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"page-title-breadcrumbs\\\",\\\"ptl-form\\\",\\\"h3\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"ptl-input\\\",\\\"gt\\\",\\\"label\\\",\\\"info-popup\\\",\\\"h4\\\",\\\"input\\\",\\\"and\\\",\\\"not\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"html-safe\\\",\\\"button\\\",\\\"pagination-table\\\",\\\"unless\\\",\\\"label-popup\\\",\\\"or\\\",\\\"a\\\",\\\"perform\\\",\\\"span\\\",\\\"modal-dialog\\\",\\\"sup\\\",\\\"did-insert\\\",\\\"p\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/contacts/contact.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/contacts/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='mb-1 pb-2 d-lg-flex justify-content-end align-items-center'>\n    {{#if (and this.isEditable this.model.suppliers.last.value.length)}}\n      <div class='flex-grow-1'>\n        <button\n          class='btn btn-link text-danger text-decoration-underline float-start'\n          type='button'\n          {{on 'click' this.onDeletingSuppliers}}\n          disabled={{or (not this.selectedSupplierIds.size) this.isLoading}}\n        >\n          {{t 'common.Delete'}}\n        </button>\n      </div>\n    {{/if}}\n  \n    <input\n      class='form-control m-1 w-auto'\n      placeholder={{t 'common.Search'}}\n      value={{this.searchString}}\n      readonly={{this.isLoading}}\n      {{on 'input' (perform this.onChangeSearchTerm)}}\n      type='search'\n      autofocus='true'\n    />\n  \n    {{#if this.isEditable}}\n      {{#if this.model.hasDuplicateSuppliers.last.value}}\n        <button\n          class='btn btn-primary m-1'\n          {{on 'click' this.openMergeDuplicateSuppliersDialog}}\n          type='button'\n        >{{t 'entity.settings.contacts.Fix duplicates'}}</button>\n      {{/if}}\n      {{#if this.accountingPlatform.isActive}}\n        <button\n          type='button'\n          class='btn btn-primary text-white text-nowrap m-1'\n          disabled={{this.syncWithAccountingPackage.isRunning}}\n          {{on 'click' (perform this.syncWithAccountingPackage)}}\n        >\n          {{#if this.syncWithAccountingPackage.isRunning}}\n            {{t 'common.Syncing'}}&hellip;\n          {{else}}\n            {{t 'common.syncWithLabel' label=this.accountingPlatform.label}}\n          {{/if}}\n        </button>\n      {{/if}}\n      <button\n        type='button'\n        class='btn btn-success text-white text-nowrap m-1'\n        disabled={{this.isLoading}}\n        {{on 'click' this.goNewSupplier}}\n      >\n        <FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Add'}}\n      </button>\n    {{/if}}\n  </div>\n  \n  <div class='suppliers__table-container'>\n    <PaginationTable\n      @tableHeader={{this.supplierTableHeader}}\n      @tableData={{this.supplierTableData}}\n      @noDataText={{t 'common.No suppliers'}}\n      @isLoading={{this.model.suppliers.isRunning}}\n      @pageSizes={{this.model.pageSizes}}\n      @pageSize={{this.model.pageSize}}\n      @pageIndex={{this.model.pageNumber}}\n      @onChangePageIndex={{this.onChangePageIndex}}\n      @onChangePageSize={{this.onChangePageSize}}\n      @totalRecords={{this.totalRecords}}\n      @class='table-bordered'\n    />\n  </div>\n  \n  {{#if this.isDeletingSuppliers}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.isDeletingSuppliers) false}}\n      @translucentOverlay={{true}}\n      @containerClass='block-module'\n    >\n      {{#if this.needDeleteXeroSuppliers.length}}\n        <div class='alert alert-warning' role='alert'>\n          <FaIcon @icon='exclamation-triangle' @size='lg' class='me-2' />\n          <span class='me-2'>\n            {{t\n              'entity.settings.contacts.deleteAccountingPlatformSuppliersForNextSync'\n            }}\n          </span>\n  \n          <div class='suppliers__delete-xero-suppliers-container mt-3'>\n            {{#each this.needDeleteXeroSuppliers as |supplier|}}\n              <p class='mt-0'>\n                <a\n                  target='_blank'\n                  href='https://go.xero.com/organisationlogin/default.aspx?shortcode={{this.xeroIntegration.companyId}}&redirecturl=/Contacts/View/{{supplier.xeroContactId}}'\n                  rel='noopener noreferrer'\n                >\n                  <FaIcon @icon='external-link-alt' />\n                  {{supplier.name}}\n                </a>\n              </p>\n            {{/each}}\n          </div>\n        </div>\n      {{/if}}\n  \n      <p>\n        {{t 'entity.settings.contacts.Are you sure you want to delete'}}\n        {{pluralize this.selectedSupplierIds.size (t 'common.supplier')}}?\n        {{t 'common.This action cannot be undone'}}\n      </p>\n      <footer class='block-module__footer'>\n        <div class='float-end d-flex align-items-center'>\n          {{#if this.deleteSuppliers.isRunning}}\n            <button\n              type='button'\n              class='btn btn-danger text-white ms-2'\n              disabled={{true}}\n            >\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t 'common.Deleting'}}…\n            </button>\n          {{else}}\n            <button\n              class='btn btn-danger text-white ms-2'\n              type='button'\n              disabled={{this.deleteSuppliers.isRunning}}\n              {{on 'click' (perform this.deleteSuppliers)}}\n            >\n              {{t 'common.Delete'}}\n            </button>\n            <button\n              class='btn btn-secondary text-white ms-2'\n              type='button'\n              disabled={{this.deleteSuppliers.isRunning}}\n              {{on 'click' (fn (mut this.isDeletingSuppliers) false)}}\n            >{{t 'common.Cancel'}}</button>\n          {{/if}}\n        </div>\n      </footer>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.onMergeDuplicateSuppliers}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{this.closeDuplicateSupplierModal}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n  \n      {{#if this.onCheckingDuplicateSuppliers.isRunning}}\n        <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n      {{else}}\n        <div class='modal-header'>\n          <div>\n            <h2 class='h2'>{{t\n                'entity.settings.contacts.Fix duplicate suppliers'\n              }}</h2>\n          </div>\n        </div>\n  \n        <div class='modal-body suppliers__duplicate-supplier-list-container'>\n          <LazyEach\n            @items={{this.mergeOptions}}\n            @automatic={{true}}\n            @initialNumberOfItemsVisible='5'\n            @increment='5'\n            @itemDisplayName='suppliers'\n            @emptyText={{t 'entity.settings.contacts.No duplicate suppliers'}}\n            as |options identifier optionsIndex|\n          >\n            {{#if (get (get options 0) 'text')}}\n              <div\n                class='card shadow-sm p-3 mb-3 suppliers__duplicate-suppliers-card-{{optionsIndex}}'\n              >\n                <div class='row'>\n                  <div class='col-md col-12'>\n                    <div class='fw-bold'> {{get (get options 0) 'title'}}</div>\n                    <div> {{get (get options 0) 'text'}}</div>\n                  </div>\n                  <div class='col-md col-12'>\n                    <button\n                      class='btn btn-primary float-end'\n                      {{on 'click' (perform this.mergeDuplicatedSupplier)}}\n                      disabled={{this.mergeDuplicatedSupplier.isRunning}}\n                      type='button'\n                    >\n                      {{#if this.mergeDuplicatedSupplier.isRunning}}\n                        <span\n                          class='spinner-border spinner-border-sm'\n                        ></span>&nbsp;&nbsp;{{t 'common.Merging'}}…\n                      {{else}}\n                        <span>\n                          {{t 'common.Merge'}}\n                        </span>\n                      {{/if}}\n                    </button>\n                  </div>\n                </div>\n              </div>\n            {{else}}\n              <div\n                class='{{identifier}}\n                  card shadow-sm p-3 mb-3 suppliers__duplicate-suppliers-card-{{optionsIndex}}'\n              >\n                {{#each options as |option index|}}\n                  <div\n                    class='row py-2 align-items-center\n                      {{if\n                        (not-eq index (math options.length \"-\" 1))\n                        \"border-bottom\"\n                      }}'\n                  >\n                    <div class='col-md col-12'>\n                      <div\n                        class='fw-bold\n                          {{if\n                            (eq\n                              option.supplierInfo.name.attributeAction \"REMOVED\"\n                            )\n                            \"text-danger\"\n                          }}\n                          {{if\n                            (eq option.supplierInfo.name.attributeAction \"ADDED\")\n                            \"text-success\"\n                          }}'\n                      >\n                        {{option.supplierInfo.name.value}}\n                      </div>\n                      <div\n                        class='{{if\n                            (eq\n                              option.supplierInfo.contactPerson.attributeAction\n                              \"REMOVED\"\n                            )\n                            \"text-danger\"\n                          }}\n                          {{if\n                            (eq\n                              option.supplierInfo.contactPerson.attributeAction\n                              \"ADDED\"\n                            )\n                            \"text-success\"\n                          }}'\n                      >\n                        {{#if option.supplierInfo.contactPerson.value}}\n                          {{option.supplierInfo.contactPerson.value}}\n                        {{else}}\n                          {{t 'entity.settings.contacts.No contact person'}}\n                        {{/if}}\n                      </div>\n                    </div>\n                    <div class='col-md col-12'>\n                      <div\n                        class='{{if\n                            (eq\n                              option.supplierInfo.contactEmail.attributeAction\n                              \"REMOVED\"\n                            )\n                            \"text-danger\"\n                          }}\n                          {{if\n                            (eq\n                              option.supplierInfo.contactEmail.attributeAction\n                              \"ADDED\"\n                            )\n                            \"text-success\"\n                          }}'\n                      >\n                        {{#if option.supplierInfo.contactEmail.value}}\n                          {{option.supplierInfo.contactEmail.value}}\n                        {{else}}\n                          {{t 'entity.settings.contacts.No contact Email'}}\n                        {{/if}}\n                      </div>\n                      <div\n                        class='{{if\n                            (eq\n                              option.supplierInfo.contactNumber.attributeAction\n                              \"REMOVED\"\n                            )\n                            \"text-danger\"\n                          }}\n                          {{if\n                            (eq\n                              option.supplierInfo.contactNumber.attributeAction\n                              \"ADDED\"\n                            )\n                            \"text-success\"\n                          }}'\n                      >\n                        {{#if option.supplierInfo.contactNumber.value}}\n                          {{option.supplierInfo.contactNumber.value}}\n                        {{else}}\n                          {{t 'entity.settings.contacts.No contact number'}}\n                        {{/if}}\n                      </div>\n                    </div>\n                    <div class='col-md col-12'>\n                      <div\n                        class='{{if\n                            (eq\n                              option.supplierInfo.address.attributeAction\n                              \"REMOVED\"\n                            )\n                            \"text-danger\"\n                          }}\n                          {{if\n                            (eq\n                              option.supplierInfo.address.attributeAction \"ADDED\"\n                            )\n                            \"text-success\"\n                          }}'\n                      >\n                        {{#if option.supplierInfo.address.value}}\n                          {{option.supplierInfo.address.value}}\n                        {{else}}\n                          {{t 'entity.settings.contacts.No address'}}\n                        {{/if}}\n                      </div>\n                    </div>\n                    <div class='col-md col-12'>\n                      <div\n                        class='{{if\n                            (eq\n                              option.supplierInfo.paymentTerm.attributeAction\n                              \"REMOVED\"\n                            )\n                            \"text-danger\"\n                          }}\n                          {{if\n                            (eq\n                              option.supplierInfo.paymentTerm.attributeAction\n                              \"ADDED\"\n                            )\n                            \"text-success\"\n                          }}'\n                      >\n                        {{#if option.supplierInfo.paymentTerm.value}}\n                          {{option.supplierInfo.paymentTerm.value}}\n                        {{else}}\n                          {{t 'shared.contacts.No payment terms'}}\n                        {{/if}}\n                      </div>\n                    </div>\n                    <div class='col-md col-12'>\n                      {{#if\n                        (or\n                          (eq option.mergeType 'TARGET_ATTRIBUTES_READ_ONLY')\n                          (eq option.mergeType 'TARGET_ATTRIBUTES_UPDATED')\n                        )\n                      }}\n                        <button\n                          class='btn btn-primary float-end'\n                          {{on\n                            'click'\n                            (perform\n                              this.mergeAndUseDuplicatedSupplier options index\n                            )\n                          }}\n                          disabled={{and\n                            (eq this.mergeIndex optionsIndex)\n                            this.mergeAndUseDuplicatedSupplier.isRunning\n                          }}\n                          type='button'\n                        >\n                          {{#if\n                            (and\n                              (eq this.mergeIndex optionsIndex)\n                              this.mergeAndUseDuplicatedSupplier.isRunning\n                            )\n                          }}\n                            <span\n                              class='spinner-border spinner-border-sm'\n                            ></span>&nbsp;&nbsp;{{t 'common.Merging'}}…\n                          {{else}}\n                            <span>\n                              {{t 'common.mergeUse'}}\n                            </span>\n                          {{/if}}\n                        </button>\n                      {{/if}}\n                      {{#if (eq option.mergeType 'READ_ONLY')}}\n                        {{#if\n                          (and\n                            this.accountingPlatform.isActive\n                            option.supplierInfo.xeroContactId\n                          )\n                        }}\n                          <div class='pull-right'>\n                            <InfoPopup\n                              @text={{t\n                                'entity.settings.contacts.duplicatesSyncedFromYourAccountingSystemNeedToBeRemovedThereFirst'\n                              }}\n                            />\n                            <a\n                              href='https://go.xero.com/organisationlogin/default.aspx?shortcode={{this.xeroIntegration.companyId}}&redirecturl=/Contacts/View/{{option.supplierInfo.xeroContactId}}'\n                              class='btn btn-secondary ms-5'\n                              target='_blank'\n                              rel='noopener noreferrer'\n                              role='button'\n                            >\n                              {{t 'common.View in Xero'}}\n                            </a>\n                          </div>\n                        {{else if\n                          (and\n                            this.accountingPlatform.isActive\n                            option.supplierInfo.quickbooksContactId\n                          )\n                        }}\n                          <div class='pull-right'>\n                            <InfoPopup\n                              @text={{t\n                                'entity.settings.contacts.duplicatesSyncedFromYourAccountingSystemNeedToBeRemovedThereFirst'\n                              }}\n                            />\n                            <a\n                              href='{{this.quickbooks.quickbooksUrl}}/app/customerdetail?nameId={{option.supplierInfo.quickbooksContactId}}'\n                              class='btn btn-secondary ms-5'\n                              target='_blank'\n                              rel='noopener noreferrer'\n                              role='button'\n                            >\n                              {{t 'entity.settings.contacts.View in QuickBooks'}}\n                            </a>\n                          </div>\n  \n                        {{else if\n                          (and\n                            this.accountingPlatform.isActive\n                            option.supplierInfo.quickbooksVendorId\n                          )\n                        }}\n                          <div class='pull-right'>\n                            <InfoPopup\n                              @text={{t\n                                'entity.settings.contacts.duplicatesSyncedFromYourAccountingSystemNeedToBeRemovedThereFirst'\n                              }}\n                            />\n                            <a\n                              href='{{this.quickbooks.quickbooksUrl}}/app/vendordetail?nameId={{option.supplierInfo.quickbooksVendorId}}'\n                              class='btn btn-secondary ms-5'\n                              target='_blank'\n                              rel='noopener noreferrer'\n                              role='button'\n                            >\n                              {{t 'entity.settings.contacts.View in QuickBooks'}}\n                            </a>\n                          </div>\n                        {{/if}}\n                      {{/if}}\n                    </div>\n                  </div>\n                {{/each}}\n              </div>\n            {{/if}}\n          </LazyEach>\n        </div>\n  \n        <div class='modal-footer d-flex'>\n          <div class='d-flex align-items-center'>\n            <button\n              type='button'\n              class='btn btn-secondary text-white ms-2'\n              disabled={{or\n                this.mergeAndUseDuplicatedSupplier.isRunning\n                this.mergeDuplicatedSupplier.isRunning\n              }}\n              {{on 'click' this.closeDuplicateSupplierModal}}\n            >{{t 'common.Close'}}</button>\n          </div>\n        </div>\n      {{/if}}\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"AdE0TKIx\",\n    \"block\": \"[[[10,0],[14,0,\\\"mb-1 pb-2 d-lg-flex justify-content-end align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,2],[[30,0,[\\\"isEditable\\\"]],[30,0,[\\\"model\\\",\\\"suppliers\\\",\\\"last\\\",\\\"value\\\",\\\"length\\\"]]],null],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline float-start\\\"],[16,\\\"disabled\\\",[28,[37,4],[[28,[37,5],[[30,0,[\\\"selectedSupplierIds\\\",\\\"size\\\"]]],null],[30,0,[\\\"isLoading\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[30,0,[\\\"onDeletingSuppliers\\\"]]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,7],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control m-1 w-auto\\\"],[16,\\\"placeholder\\\",[28,[37,7],[\\\"common.Search\\\"],null]],[16,2,[30,0,[\\\"searchString\\\"]]],[16,\\\"readonly\\\",[30,0,[\\\"isLoading\\\"]]],[24,\\\"autofocus\\\",\\\"true\\\"],[24,4,\\\"search\\\"],[4,[38,6],[\\\"input\\\",[28,[37,9],[[30,0,[\\\"onChangeSearchTerm\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isEditable\\\"]],[[[41,[30,0,[\\\"model\\\",\\\"hasDuplicateSuppliers\\\",\\\"last\\\",\\\"value\\\"]],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary m-1\\\"],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[30,0,[\\\"openMergeDuplicateSuppliersDialog\\\"]]],null],[12],[1,[28,[35,7],[\\\"entity.settings.contacts.Fix duplicates\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"accountingPlatform\\\",\\\"isActive\\\"]],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary text-white text-nowrap m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"syncWithAccountingPackage\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,9],[[30,0,[\\\"syncWithAccountingPackage\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"syncWithAccountingPackage\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,7],[\\\"common.Syncing\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,7],[\\\"common.syncWithLabel\\\"],[[\\\"label\\\"],[[30,0,[\\\"accountingPlatform\\\",\\\"label\\\"]]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[30,0,[\\\"goNewSupplier\\\"]]],null],[12],[1,\\\"\\\\n      \\\"],[8,[39,10],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,7],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[13],[1,\\\"\\\\n\\\\n\\\"],[10,0],[14,0,\\\"suppliers__table-container\\\"],[12],[1,\\\"\\\\n  \\\"],[8,[39,11],null,[[\\\"@tableHeader\\\",\\\"@tableData\\\",\\\"@noDataText\\\",\\\"@isLoading\\\",\\\"@pageSizes\\\",\\\"@pageSize\\\",\\\"@pageIndex\\\",\\\"@onChangePageIndex\\\",\\\"@onChangePageSize\\\",\\\"@totalRecords\\\",\\\"@class\\\"],[[30,0,[\\\"supplierTableHeader\\\"]],[30,0,[\\\"supplierTableData\\\"]],[28,[37,7],[\\\"common.No suppliers\\\"],null],[30,0,[\\\"model\\\",\\\"suppliers\\\",\\\"isRunning\\\"]],[30,0,[\\\"model\\\",\\\"pageSizes\\\"]],[30,0,[\\\"model\\\",\\\"pageSize\\\"]],[30,0,[\\\"model\\\",\\\"pageNumber\\\"]],[30,0,[\\\"onChangePageIndex\\\"]],[30,0,[\\\"onChangePageSize\\\"]],[30,0,[\\\"totalRecords\\\"]],\\\"table-bordered\\\"]],null],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isDeletingSuppliers\\\"]],[[[1,\\\"  \\\"],[8,[39,12],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\"],[\\\"modal\\\",[28,[37,13],[[28,[37,14],[[30,0,[\\\"isDeletingSuppliers\\\"]]],null],false],null],true,\\\"block-module\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"needDeleteXeroSuppliers\\\",\\\"length\\\"]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"alert alert-warning\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,10],[[24,0,\\\"me-2\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"exclamation-triangle\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,7],[\\\"entity.settings.contacts.deleteAccountingPlatformSuppliersForNextSync\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"suppliers__delete-xero-suppliers-container mt-3\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,17],[[28,[37,17],[[30,0,[\\\"needDeleteXeroSuppliers\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n              \\\"],[10,3],[14,\\\"target\\\",\\\"_blank\\\"],[15,6,[29,[\\\"https://go.xero.com/organisationlogin/default.aspx?shortcode=\\\",[30,0,[\\\"xeroIntegration\\\",\\\"companyId\\\"]],\\\"&redirecturl=/Contacts/View/\\\",[30,1,[\\\"xeroContactId\\\"]]]]],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,10],null,[[\\\"@icon\\\"],[\\\"external-link-alt\\\"]],null],[1,\\\"\\\\n                \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n    \\\"],[10,2],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,7],[\\\"entity.settings.contacts.Are you sure you want to delete\\\"],null]],[1,\\\"\\\\n      \\\"],[1,[28,[35,20],[[30,0,[\\\"selectedSupplierIds\\\",\\\"size\\\"]],[28,[37,7],[\\\"common.supplier\\\"],null]],null]],[1,\\\"?\\\\n      \\\"],[1,[28,[35,7],[\\\"common.This action cannot be undone\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"float-end d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteSuppliers\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-danger text-white ms-2\\\"],[15,\\\"disabled\\\",true],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,7],[\\\"common.Deleting\\\"],null]],[1,\\\"…\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteSuppliers\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,9],[[30,0,[\\\"deleteSuppliers\\\"]]],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,7],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteSuppliers\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,13],[[28,[37,14],[[30,0,[\\\"isDeletingSuppliers\\\"]]],null],false],null]],null],[12],[1,[28,[35,7],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"onMergeDuplicateSuppliers\\\"]],[[[1,\\\"  \\\"],[8,[39,12],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[30,0,[\\\"closeDuplicateSupplierModal\\\"]],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"onCheckingDuplicateSuppliers\\\",\\\"isRunning\\\"]],[[[1,\\\"      \\\"],[8,[39,22],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2\\\"],[12],[1,[28,[35,7],[\\\"entity.settings.contacts.Fix duplicate suppliers\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"modal-body suppliers__duplicate-supplier-list-container\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,24],null,[[\\\"@items\\\",\\\"@automatic\\\",\\\"@initialNumberOfItemsVisible\\\",\\\"@increment\\\",\\\"@itemDisplayName\\\",\\\"@emptyText\\\"],[[30,0,[\\\"mergeOptions\\\"]],true,\\\"5\\\",\\\"5\\\",\\\"suppliers\\\",[28,[37,7],[\\\"entity.settings.contacts.No duplicate suppliers\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[28,[37,25],[[28,[37,25],[[30,2],0],null],\\\"text\\\"],null],[[[1,\\\"            \\\"],[10,0],[15,0,[29,[\\\"card shadow-sm p-3 mb-3 suppliers__duplicate-suppliers-card-\\\",[30,4]]]],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-md col-12\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"fw-bold\\\"],[12],[1,\\\" \\\"],[1,[28,[35,25],[[28,[37,25],[[30,2],0],null],\\\"title\\\"],null]],[13],[1,\\\"\\\\n                  \\\"],[10,0],[12],[1,\\\" \\\"],[1,[28,[35,25],[[28,[37,25],[[30,2],0],null],\\\"text\\\"],null]],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-md col-12\\\"],[12],[1,\\\"\\\\n                  \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary float-end\\\"],[16,\\\"disabled\\\",[30,0,[\\\"mergeDuplicatedSupplier\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,9],[[30,0,[\\\"mergeDuplicatedSupplier\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"mergeDuplicatedSupplier\\\",\\\"isRunning\\\"]],[[[1,\\\"                      \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,7],[\\\"common.Merging\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                      \\\"],[10,1],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[35,7],[\\\"common.Merge\\\"],null]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[10,0],[15,0,[29,[[30,3],\\\"\\\\n                card shadow-sm p-3 mb-3 suppliers__duplicate-suppliers-card-\\\",[30,4]]]],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,17],[[28,[37,17],[[30,2]],null]],null],null,[[[1,\\\"                \\\"],[10,0],[15,0,[29,[\\\"row py-2 align-items-center\\\\n                    \\\",[52,[28,[37,26],[[30,6],[28,[37,27],[[30,2,[\\\"length\\\"]],\\\"-\\\",1],null]],null],\\\"border-bottom\\\"]]]],[12],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"col-md col-12\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[15,0,[29,[\\\"fw-bold\\\\n                        \\\",[52,[28,[37,28],[[30,5,[\\\"supplierInfo\\\",\\\"name\\\",\\\"attributeAction\\\"]],\\\"REMOVED\\\"],null],\\\"text-danger\\\"],\\\"\\\\n                        \\\",[52,[28,[37,28],[[30,5,[\\\"supplierInfo\\\",\\\"name\\\",\\\"attributeAction\\\"]],\\\"ADDED\\\"],null],\\\"text-success\\\"]]]],[12],[1,\\\"\\\\n                      \\\"],[1,[30,5,[\\\"supplierInfo\\\",\\\"name\\\",\\\"value\\\"]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[15,0,[29,[[52,[28,[37,28],[[30,5,[\\\"supplierInfo\\\",\\\"contactPerson\\\",\\\"attributeAction\\\"]],\\\"REMOVED\\\"],null],\\\"text-danger\\\"],\\\"\\\\n                        \\\",[52,[28,[37,28],[[30,5,[\\\"supplierInfo\\\",\\\"contactPerson\\\",\\\"attributeAction\\\"]],\\\"ADDED\\\"],null],\\\"text-success\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[30,5,[\\\"supplierInfo\\\",\\\"contactPerson\\\",\\\"value\\\"]],[[[1,\\\"                        \\\"],[1,[30,5,[\\\"supplierInfo\\\",\\\"contactPerson\\\",\\\"value\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                        \\\"],[1,[28,[35,7],[\\\"entity.settings.contacts.No contact person\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"col-md col-12\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[15,0,[29,[[52,[28,[37,28],[[30,5,[\\\"supplierInfo\\\",\\\"contactEmail\\\",\\\"attributeAction\\\"]],\\\"REMOVED\\\"],null],\\\"text-danger\\\"],\\\"\\\\n                        \\\",[52,[28,[37,28],[[30,5,[\\\"supplierInfo\\\",\\\"contactEmail\\\",\\\"attributeAction\\\"]],\\\"ADDED\\\"],null],\\\"text-success\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[30,5,[\\\"supplierInfo\\\",\\\"contactEmail\\\",\\\"value\\\"]],[[[1,\\\"                        \\\"],[1,[30,5,[\\\"supplierInfo\\\",\\\"contactEmail\\\",\\\"value\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                        \\\"],[1,[28,[35,7],[\\\"entity.settings.contacts.No contact Email\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[15,0,[29,[[52,[28,[37,28],[[30,5,[\\\"supplierInfo\\\",\\\"contactNumber\\\",\\\"attributeAction\\\"]],\\\"REMOVED\\\"],null],\\\"text-danger\\\"],\\\"\\\\n                        \\\",[52,[28,[37,28],[[30,5,[\\\"supplierInfo\\\",\\\"contactNumber\\\",\\\"attributeAction\\\"]],\\\"ADDED\\\"],null],\\\"text-success\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[30,5,[\\\"supplierInfo\\\",\\\"contactNumber\\\",\\\"value\\\"]],[[[1,\\\"                        \\\"],[1,[30,5,[\\\"supplierInfo\\\",\\\"contactNumber\\\",\\\"value\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                        \\\"],[1,[28,[35,7],[\\\"entity.settings.contacts.No contact number\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"col-md col-12\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[15,0,[29,[[52,[28,[37,28],[[30,5,[\\\"supplierInfo\\\",\\\"address\\\",\\\"attributeAction\\\"]],\\\"REMOVED\\\"],null],\\\"text-danger\\\"],\\\"\\\\n                        \\\",[52,[28,[37,28],[[30,5,[\\\"supplierInfo\\\",\\\"address\\\",\\\"attributeAction\\\"]],\\\"ADDED\\\"],null],\\\"text-success\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[30,5,[\\\"supplierInfo\\\",\\\"address\\\",\\\"value\\\"]],[[[1,\\\"                        \\\"],[1,[30,5,[\\\"supplierInfo\\\",\\\"address\\\",\\\"value\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                        \\\"],[1,[28,[35,7],[\\\"entity.settings.contacts.No address\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"col-md col-12\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[15,0,[29,[[52,[28,[37,28],[[30,5,[\\\"supplierInfo\\\",\\\"paymentTerm\\\",\\\"attributeAction\\\"]],\\\"REMOVED\\\"],null],\\\"text-danger\\\"],\\\"\\\\n                        \\\",[52,[28,[37,28],[[30,5,[\\\"supplierInfo\\\",\\\"paymentTerm\\\",\\\"attributeAction\\\"]],\\\"ADDED\\\"],null],\\\"text-success\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[30,5,[\\\"supplierInfo\\\",\\\"paymentTerm\\\",\\\"value\\\"]],[[[1,\\\"                        \\\"],[1,[30,5,[\\\"supplierInfo\\\",\\\"paymentTerm\\\",\\\"value\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                        \\\"],[1,[28,[35,7],[\\\"shared.contacts.No payment terms\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"col-md col-12\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[[28,[37,28],[[30,5,[\\\"mergeType\\\"]],\\\"TARGET_ATTRIBUTES_READ_ONLY\\\"],null],[28,[37,28],[[30,5,[\\\"mergeType\\\"]],\\\"TARGET_ATTRIBUTES_UPDATED\\\"],null]],null],[[[1,\\\"                      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary float-end\\\"],[16,\\\"disabled\\\",[28,[37,2],[[28,[37,28],[[30,0,[\\\"mergeIndex\\\"]],[30,4]],null],[30,0,[\\\"mergeAndUseDuplicatedSupplier\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,9],[[30,0,[\\\"mergeAndUseDuplicatedSupplier\\\"]],[30,2],[30,6]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,2],[[28,[37,28],[[30,0,[\\\"mergeIndex\\\"]],[30,4]],null],[30,0,[\\\"mergeAndUseDuplicatedSupplier\\\",\\\"isRunning\\\"]]],null],[[[1,\\\"                          \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,7],[\\\"common.Merging\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                          \\\"],[10,1],[12],[1,\\\"\\\\n                            \\\"],[1,[28,[35,7],[\\\"common.mergeUse\\\"],null]],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,28],[[30,5,[\\\"mergeType\\\"]],\\\"READ_ONLY\\\"],null],[[[41,[28,[37,2],[[30,0,[\\\"accountingPlatform\\\",\\\"isActive\\\"]],[30,5,[\\\"supplierInfo\\\",\\\"xeroContactId\\\"]]],null],[[[1,\\\"                        \\\"],[10,0],[14,0,\\\"pull-right\\\"],[12],[1,\\\"\\\\n                          \\\"],[8,[39,29],null,[[\\\"@text\\\"],[[28,[37,7],[\\\"entity.settings.contacts.duplicatesSyncedFromYourAccountingSystemNeedToBeRemovedThereFirst\\\"],null]]],null],[1,\\\"\\\\n                          \\\"],[10,3],[15,6,[29,[\\\"https://go.xero.com/organisationlogin/default.aspx?shortcode=\\\",[30,0,[\\\"xeroIntegration\\\",\\\"companyId\\\"]],\\\"&redirecturl=/Contacts/View/\\\",[30,5,[\\\"supplierInfo\\\",\\\"xeroContactId\\\"]]]]],[14,0,\\\"btn btn-secondary ms-5\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[14,\\\"role\\\",\\\"button\\\"],[12],[1,\\\"\\\\n                            \\\"],[1,[28,[35,7],[\\\"common.View in Xero\\\"],null]],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,2],[[30,0,[\\\"accountingPlatform\\\",\\\"isActive\\\"]],[30,5,[\\\"supplierInfo\\\",\\\"quickbooksContactId\\\"]]],null],[[[1,\\\"                        \\\"],[10,0],[14,0,\\\"pull-right\\\"],[12],[1,\\\"\\\\n                          \\\"],[8,[39,29],null,[[\\\"@text\\\"],[[28,[37,7],[\\\"entity.settings.contacts.duplicatesSyncedFromYourAccountingSystemNeedToBeRemovedThereFirst\\\"],null]]],null],[1,\\\"\\\\n                          \\\"],[10,3],[15,6,[29,[[30,0,[\\\"quickbooks\\\",\\\"quickbooksUrl\\\"]],\\\"/app/customerdetail?nameId=\\\",[30,5,[\\\"supplierInfo\\\",\\\"quickbooksContactId\\\"]]]]],[14,0,\\\"btn btn-secondary ms-5\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[14,\\\"role\\\",\\\"button\\\"],[12],[1,\\\"\\\\n                            \\\"],[1,[28,[35,7],[\\\"entity.settings.contacts.View in QuickBooks\\\"],null]],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[]],[[[41,[28,[37,2],[[30,0,[\\\"accountingPlatform\\\",\\\"isActive\\\"]],[30,5,[\\\"supplierInfo\\\",\\\"quickbooksVendorId\\\"]]],null],[[[1,\\\"                        \\\"],[10,0],[14,0,\\\"pull-right\\\"],[12],[1,\\\"\\\\n                          \\\"],[8,[39,29],null,[[\\\"@text\\\"],[[28,[37,7],[\\\"entity.settings.contacts.duplicatesSyncedFromYourAccountingSystemNeedToBeRemovedThereFirst\\\"],null]]],null],[1,\\\"\\\\n                          \\\"],[10,3],[15,6,[29,[[30,0,[\\\"quickbooks\\\",\\\"quickbooksUrl\\\"]],\\\"/app/vendordetail?nameId=\\\",[30,5,[\\\"supplierInfo\\\",\\\"quickbooksVendorId\\\"]]]]],[14,0,\\\"btn btn-secondary ms-5\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[14,\\\"role\\\",\\\"button\\\"],[12],[1,\\\"\\\\n                            \\\"],[1,[28,[35,7],[\\\"entity.settings.contacts.View in QuickBooks\\\"],null]],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                      \\\"]],[]],null]],[]]]],[]]]],[]],null],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[5,6]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"]],[2,3,4]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"modal-footer d-flex\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[16,\\\"disabled\\\",[28,[37,4],[[30,0,[\\\"mergeAndUseDuplicatedSupplier\\\",\\\"isRunning\\\"]],[30,0,[\\\"mergeDuplicatedSupplier\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[30,0,[\\\"closeDuplicateSupplierModal\\\"]]],null],[12],[1,[28,[35,7],[\\\"common.Close\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"supplier\\\",\\\"options\\\",\\\"identifier\\\",\\\"optionsIndex\\\",\\\"option\\\",\\\"index\\\"],false,[\\\"div\\\",\\\"if\\\",\\\"and\\\",\\\"button\\\",\\\"or\\\",\\\"not\\\",\\\"on\\\",\\\"t\\\",\\\"input\\\",\\\"perform\\\",\\\"fa-icon\\\",\\\"pagination-table\\\",\\\"modal-dialog\\\",\\\"fn\\\",\\\"mut\\\",\\\"span\\\",\\\"each\\\",\\\"-track-array\\\",\\\"p\\\",\\\"a\\\",\\\"pluralize\\\",\\\"footer\\\",\\\"loading-icon\\\",\\\"h2\\\",\\\"lazy-each\\\",\\\"get\\\",\\\"not-eq\\\",\\\"math\\\",\\\"eq\\\",\\\"info-popup\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/contacts/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/estimates/embedded-page\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title=this.model.pageTitle}}\n    />\n  {{/unless}}\n  {{#if this.model.sessionId.isRunning}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    {{#if (or this.model.isUnknown (not this.model.sessionId.value))}}\n      <div\n        class='flex-grow-1 text-center p-5 d-flex flex-column align-items-center'\n      >\n        <FaIcon @icon='dizzy' @size='5x' class='mb-3' />\n        <h1 class='mb-0'>Oops!</h1>\n        <h3>{{t 'common.Could not load page'}}</h3>\n      </div>\n    {{else}}\n      <PricingPage\n        @path={{this.model.path}}\n        @sessionId={{this.model.sessionId.value}}\n      />\n    {{/if}}\n  {{/if}}\n  */\n  {\n    \"id\": \"Dzl8HJ9B\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[30,0,[\\\"model\\\",\\\"pageTitle\\\"]]]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"model\\\",\\\"sessionId\\\",\\\"isRunning\\\"]],[[[1,\\\"  \\\"],[8,[39,5],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,6],[[30,0,[\\\"model\\\",\\\"isUnknown\\\"]],[28,[37,7],[[30,0,[\\\"model\\\",\\\"sessionId\\\",\\\"value\\\"]]],null]],null],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"flex-grow-1 text-center p-5 d-flex flex-column align-items-center\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,9],[[24,0,\\\"mb-3\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"dizzy\\\",\\\"5x\\\"]],null],[1,\\\"\\\\n      \\\"],[10,\\\"h1\\\"],[14,0,\\\"mb-0\\\"],[12],[1,\\\"Oops!\\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[12],[1,[28,[35,12],[\\\"common.Could not load page\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[8,[39,13],null,[[\\\"@path\\\",\\\"@sessionId\\\"],[[30,0,[\\\"model\\\",\\\"path\\\"]],[30,0,[\\\"model\\\",\\\"sessionId\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]]]],[]]]],[],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"or\\\",\\\"not\\\",\\\"div\\\",\\\"fa-icon\\\",\\\"h1\\\",\\\"h3\\\",\\\"t\\\",\\\"pricing-page\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/estimates/embedded-page.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/integrations\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t 'common.Integrations')\n      }}\n    />\n  {{/unless}}\n  \n  <article class='mx-4 mt-4 h-100'>\n    <header class='border-bottom pb-2 mb-3 d-flex align-items-center'>\n      {{#if (media 'isDesktop')}}\n        <h2 class='flex-grow-1 m-0 my-2'>{{t 'common.Integrations'}}</h2>\n      {{/if}}\n    </header>\n  \n    {{#if this.model.defaultEntityFeatures.length}}\n      <PtlForm class='width--small mb-4'>\n        <h3 class='mb-3'>{{t\n            'entity.settings.integrations.Integration options'\n          }}</h3>\n        {{#each this.model.defaultEntityFeatures as |feature|}}\n          <PtlInput\n            @type='checkbox'\n            @label={{feature.label}}\n            @key={{feature.key}}\n            @description={{feature.description}}\n            @model={{this.model.featurePermissionsChangeset}}\n            disabled={{this.updateCompanyFeatures.isRunning}}\n          />\n        {{/each}}\n        <div class='d-flex flex-grow-1 mt-3'>\n          <button\n            type='button'\n            class='btn btn-primary ms-auto'\n            disabled={{this.updateCompanyFeatures.isRunning}}\n            {{on\n              'click'\n              (perform\n                this.updateCompanyFeatures this.model.featurePermissionsChangeset\n              )\n            }}\n          >\n            {{#if this.updateCompanyFeatures.isRunning}}\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t\n                'entity.settings.integrations.Saving options'\n              }}&hellip;\n            {{else}}\n              {{t 'entity.settings.integrations.Save options'}}\n            {{/if}}\n          </button>\n        </div>\n      </PtlForm>\n    {{/if}}\n  \n    {{#if this.newFeatureFlags.entityCanUseIPS}}\n      <PtlForm class='width--small mb-4'>\n        <h3 class='mb-3'>{{t 'common.IPS'}}</h3>\n  \n        {{#if this.ips.ready}}\n          <IpsUsage class='mt-0 mb-3' />\n        {{/if}}\n  \n        {{#if this.model.ipsConnection.isRunning}}\n          <LoadingIcon @type='ripple' />\n        {{else if this.model.ipsConnection.last.value}}\n          {{#let\n            (changeset\n              this.model.ipsConnection.last.value this.ipsConnectionValidator\n            )\n            as |ipsCon|\n          }}\n            {{#if ipsCon.isNew}}\n              {{! no connection yet, so this form creates one; the server issues the ipsEmail }}\n              <p class='mt-0'>\n                {{t\n                  'entity.settings.integrations.setUpIpsToStartProcessingYourDocuments'\n                }}\n              </p>\n  \n              <PtlInput\n                @type='email'\n                @label={{t\n                  'entity.settings.integrations.Email address for unprocessed documents'\n                }}\n                @key='contactEmail'\n                @model={{ipsCon}}\n                @required={{true}}\n                @description={{t\n                  'entity.settings.integrations.anyEmailsOrDocumentsThatIpsIsUnableToProcessWillBeSentToThisAddress'\n                }}\n                @forceValidationVisible={{gt\n                  this.saveIpsConnection.performCount\n                  0\n                }}\n                disabled={{this.saveIpsConnection.isRunning}}\n                data-test-ips-contact-email\n              />\n  \n              <div class='d-flex flex-grow-1 mt-3'>\n                <button\n                  data-test-ips-create\n                  type='button'\n                  class='btn btn-primary ms-auto'\n                  disabled={{this.saveIpsConnection.isRunning}}\n                  {{on 'click' (perform this.saveIpsConnection ipsCon)}}\n                >\n                  {{#if this.saveIpsConnection.isRunning}}\n                    <span\n                      class='spinner-border spinner-border-sm'\n                    ></span>&nbsp;&nbsp;{{t\n                      'entity.settings.integrations.Setting up IPS'\n                    }}&hellip;\n                  {{else}}\n                    {{t 'entity.settings.integrations.Set up IPS'}}\n                  {{/if}}\n                </button>\n              </div>\n            {{else}}\n              <div class='mb-3'>\n                <label class='mb-1' for='ips-email'>\n                  {{t 'entity.settings.integrations.Your IPS email address'}}\n                </label>\n                <Input\n                  data-test-ips-email\n                  class='form-control'\n                  id='ips-email'\n                  @type='text'\n                  @value={{ipsCon.ipsEmail}}\n                  disabled={{true}}\n                />\n                <div class='form-text text-muted'>\n                  {{t\n                    'entity.settings.integrations.documentsSentToThisAddressWillArriveInTheSystem'\n                  }}\n                </div>\n              </div>\n  \n              <PtlInput\n                @type='email'\n                @label={{t\n                  'entity.settings.integrations.Email address for unprocessed documents'\n                }}\n                @key='contactEmail'\n                @model={{ipsCon}}\n                @required={{true}}\n                @description={{t\n                  'entity.settings.integrations.anyEmailsOrDocumentsThatIpsIsUnableToProcessWillBeSentToThisAddress'\n                }}\n                @forceValidationVisible={{gt\n                  this.saveIpsConnection.performCount\n                  0\n                }}\n                disabled={{this.saveIpsConnection.isRunning}}\n                data-test-ips-contact-email\n              />\n  \n              <div class='d-flex flex-grow-1 mt-3'>\n                <button\n                  data-test-ips-save\n                  type='button'\n                  class='btn btn-primary ms-auto'\n                  disabled={{this.saveIpsConnection.isRunning}}\n                  {{on 'click' (perform this.saveIpsConnection ipsCon)}}\n                >\n                  {{#if this.saveIpsConnection.isRunning}}\n                    <span\n                      class='spinner-border spinner-border-sm'\n                    ></span>&nbsp;&nbsp;{{t 'common.Saving'}}&hellip;\n                  {{else}}\n                    {{t 'common.Save'}}\n                    {{t 'common.IPS'}}\n                  {{/if}}\n                </button>\n              </div>\n            {{/if}}\n          {{/let}}\n        {{else}}\n          <p class='mt-0'>\n            {{t\n              'entity.settings.integrations.noIpsConnectionFoundPleaseContactSupport'\n            }}\n          </p>\n        {{/if}}\n      </PtlForm>\n    {{/if}}\n  \n    {{#if\n      (includes-some-feature-flags\n        'canUsePayroll' 'canUseBills' 'canUseFinancialReporting'\n      )\n    }}\n      {{#unless this.quickbooks.ready}}\n        <PtlForm class='width--small mb-4'>\n          <h3 class='h2'>Xero</h3>\n          {{#if this.xeroCompanyName}}\n            <div class='row align-items-center mt-2 mb-3'>\n              <a\n                data-test-xero-organisation-link\n                class='link'\n                target='_black'\n                href='https://go.xero.com/organisationlogin/default.aspx?shortcode={{this.shortCode}}'\n              >\n                {{this.xeroCompanyName}}&nbsp;&nbsp;\n                <FaIcon @icon='external-link-alt' @fixedWidth={{true}} />\n              </a>\n            </div>\n          {{else}}\n            <div class='mt-2'>\n              <button\n                data-test-xero-connect\n                type='button'\n                class='btn btn-primary'\n                {{on 'click' (perform this.setXeroCompany)}}\n              >{{t\n                  'entity.settings.integrations.Connect Xero organisation'\n                }}</button>\n            </div>\n          {{/if}}\n  \n          {{#if this.xeroCompanyName}}\n            {{#let\n              (changeset this.xeroConnection this.xeroValidationMap)\n              as |xeroModel|\n            }}\n              <PtlInput\n                @type='select'\n                @label={{t 'entity.settings.integrations.Send bills with status'}}\n                @key='defaultInvoiceStatus'\n                @options={{this.defaultInvoiceStatusOptions}}\n                @model={{xeroModel}}\n                @forceValidationVisible={{gt this.saveEntity.performCount 0}}\n                disabled={{this.saveEntity.isRunning}}\n              />\n              <PtlInput\n                @type='select'\n                @label={{t\n                  'entity.settings.integrations.Send credit notes with status'\n                }}\n                @key='defaultCreditNoteStatus'\n                @options={{this.defaultCreditNoteStatusOptions}}\n                @model={{xeroModel}}\n                @forceValidationVisible={{gt this.saveEntity.performCount 0}}\n                disabled={{this.saveEntity.isRunning}}\n              />\n              <PtlInput\n                @type='select'\n                @label={{t\n                  'entity.settings.integrations.Send timesheets with status'\n                }}\n                @key='defaultTimesheetStatus'\n                @options={{this.defaultTimesheetStatusOptions}}\n                @model={{xeroModel}}\n                @forceValidationVisible={{gt this.saveEntity.performCount 0}}\n                disabled={{this.saveEntity.isRunning}}\n              />\n              <div class='d-flex flex-grow-1 mt-3'>\n                <button\n                  data-test-xero-disconnect\n                  type='button'\n                  class='btn btn-danger text-white'\n                  disabled={{this.removeXeroCompany.isRunning}}\n                  {{on 'click' (perform this.removeXeroCompany)}}\n                >\n                  {{#if this.removeXeroCompany.isRunning}}\n                    <span\n                      class='spinner-border spinner-border-sm'\n                    ></span>&nbsp;&nbsp;{{t 'common.Disconnecting'}}&hellip;\n                  {{else}}\n                    {{t 'common.Disconnect'}}\n                  {{/if}}\n                </button>\n                <button\n                  data-test-xero-save\n                  type='button'\n                  class='btn btn-primary ms-auto'\n                  disabled={{this.saveXeroConnection.isRunning}}\n                  {{on 'click' (perform this.saveXeroConnection xeroModel)}}\n                >\n                  {{#if this.saveXeroConnection.isRunning}}\n                    <span\n                      class='spinner-border spinner-border-sm'\n                    ></span>&nbsp;&nbsp;{{t 'common.Saving'}}&hellip;\n                  {{else}}\n                    {{t 'common.Save'}}\n                    Xero\n                  {{/if}}\n                </button>\n              </div>\n            {{/let}}\n          {{/if}}\n        </PtlForm>\n      {{/unless}}\n  \n      {{#unless this.xeroIntegration.ready}}\n        <PtlForm class='width--small mb-4'>\n          <h3 class='h2'>{{t 'common.QuickBooks'}}</h3>\n          {{#if (and this.quickbooks.companyName this.quickbooks.ready)}}\n            <div class='row align-items-center mt-2 mb-3'>\n              <a\n                class='link'\n                target='_black'\n                href='{{this.quickbooksUrl}}/app/get-things-done?companyid={{this.quickbooks.companyId}}'\n              >\n                {{this.quickbooks.companyName}}&nbsp;&nbsp;\n                <FaIcon @icon='external-link-alt' @fixedWidth={{true}} />\n              </a>\n            </div>\n  \n            <div class='d-flex flex-grow-1 mt-3'>\n              <button\n                type='button'\n                class='btn btn-danger text-white'\n                disabled={{this.removeQuickBooksCompany.isRunning}}\n                {{on 'click' (perform this.removeQuickBooksCompany)}}\n              >\n                {{#if this.removeQuickBooksCompany.isRunning}}\n                  <span\n                    class='spinner-border spinner-border-sm'\n                  ></span>&nbsp;&nbsp;{{t 'common.Disconnecting'}}&hellip;\n                {{else}}\n                  {{t 'common.Disconnect'}}\n                {{/if}}\n              </button>\n            </div>\n          {{else}}\n            <div class='mt-2'>\n              <button\n                type='button'\n                class='btn btn-primary'\n                {{on 'click' (perform this.setQuickBooksCompany)}}\n              >\n                {{t 'entity.settings.integrations.Connect to QuickBooks'}}\n              </button>\n            </div>\n          {{/if}}\n        </PtlForm>\n      {{/unless}}\n    {{/if}}\n  \n    {{#unless this.updatePlaceMakersIntegration.isRunning}}\n      {{#if (eq this.sessionData.entity.region 'NZL')}}\n        <PtlForm class='width--small mb-4'>\n          <h3 class='m-0'>PlaceMakers</h3>\n          {{! computed property is not computing value change, we added the task Running check to unload and render}}\n          {{#if (includes-feature-flags 'canUsePlaceMakers')}}\n            <PmIntegrationSettings />\n          {{else}}\n            <div class='m-0'>\n              <p>{{t\n                  'entity.settings.integrations.toUseThePlacemakersIntegrationPleaseEnableItFirst'\n                }}</p>\n              <button\n                type='button'\n                class='btn btn-primary'\n                {{on 'click' (perform this.updatePlaceMakersIntegration true)}}\n                disabled={{this.updatePlaceMakersIntegration.isRunning}}\n              >\n                {{#if this.updatePlaceMakersIntegration.isRunning}}\n                  <span\n                    class='spinner-border spinner-border-sm'\n                  ></span>&nbsp;&nbsp;{{t 'common.Enabling'}}&hellip;\n                {{else}}\n                  {{t 'common.Enable'}}\n                {{/if}}\n              </button>\n            </div>\n          {{/if}}\n        </PtlForm>\n      {{/if}}\n    {{/unless}}\n  \n    {{#if (includes-feature-flags 'canUseItmInvoiceIntegration')}}\n      {{#if (eq this.sessionData.entity.region 'NZL')}}\n        <PtlForm class='width--small mb-4'>\n          <h3>ITM {{t 'common.Invoice'}}</h3>\n          {{#if this.model.itmSuppliers.isRunning}}\n            <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n          {{else}}\n            <div>\n              <p>{{t\n                  'entity.settings.integrations.ifYouHaveAnAccountWithAnItmStoreWeCanImportYourInvoicesAutomatically'\n                }}</p>\n              <p>{{t\n                  'entity.settings.integrations.pleaseSelectTheITMStoresYouHaveAccountsWithAndClick'\n                }}\n                <i>{{t\n                    'entity.settings.integrations.Request Integration'\n                  }}</i>.</p>\n            </div>\n  \n            <PowerSelectMultiple\n              @tagName='div'\n              @options={{this.requestableItmStores}}\n              @selected={{this.selectedItmStores}}\n              @searchEnabled={{true}}\n              @searchField='name'\n              @placeholder={{t 'entity.settings.integrations.Select ITM stores'}}\n              @onChange={{fn (mut this.selectedItmStores)}}\n              as |store|\n            >\n              {{store.name}}\n            </PowerSelectMultiple>\n  \n            <div class='mt-2'>\n              <button\n                type='button'\n                class='btn btn-primary pull-right ms-auto'\n                disabled={{or\n                  this.requestItmStores.isRunning\n                  (not this.selectedItmStores.length)\n                }}\n                {{on 'click' (perform this.requestItmStores)}}\n              >\n                {{#if this.requestItmStores.isRunning}}\n                  {{t\n                    'entity.settings.integrations.Requesting Integration'\n                  }}&hellip;\n                {{else}}\n                  {{t 'entity.settings.integrations.Request Integration'}}\n                {{/if}}\n              </button>\n            </div>\n  \n            {{#if this.requestedItmStores.length}}\n              <div>\n                <p>{{t\n                    'entity.settings.integrations.integrationRequestsHaveBeenSentToTheFollowingStores'\n                  }}</p>\n                <p>{{t\n                    'entity.settings.integrations.itMayTakeAFewDaysForAStoreToFulfilTheRequestIfYouAreHavingIssuesWithYourIntegrationPlease'\n                  }}\n                  <a class='link' href='#' {{on 'click' this.contactSupport}}>{{t\n                      'entity.settings.integrations.Contact support'\n                    }}</a>.\n                </p>\n              </div>\n              <div>\n                <table class='itm-invoice-integration-settings-table'>\n                  <thead>\n                    <tr>\n                      <th>{{t 'common.Integration'}}</th>\n                      <th>{{t 'common.Status'}}</th>\n                      <th>{{t 'common.Action'}}</th>\n                    </tr>\n                  </thead>\n                  <tbody>\n                    {{#each this.requestedItmStores as |store|}}\n                      <tr>\n                        <td>{{store.name}}</td>\n                        <td>{{store.status}}</td>\n                        <td>\n                          {{#if\n                            (or\n                              (eq store.status 'Connected')\n                              (eq store.status 'Pending')\n                            )\n                          }}\n                            <button\n                              class='text-button'\n                              type='button'\n                              {{on 'click' (fn this.cancelItmStoreRequest store)}}\n                            >\n                              <FaIcon\n                                @icon='times'\n                                @fixedWidth={{true}}\n                                @size='1'\n                              />\n                              {{t 'common.Cancel'}}\n                            </button>\n                          {{else if (eq store.status 'Canceled')}}\n                            <button\n                              class='text-button'\n                              type='button'\n                              {{on\n                                'click'\n                                (fn this.reconnectITmStoreRequest store)\n                              }}\n                            >\n                              <FaIcon @icon='plug' @fixedWidth={{true}} />\n                              {{t 'common.Reconnect'}}\n                            </button>\n                          {{/if}}\n                        </td>\n                      </tr>\n                    {{/each}}\n                  </tbody>\n                </table>\n              </div>\n            {{else}}\n              <div class='itm-invoice-integration-settings-table__placeholder'>\n                <FaIcon @icon='cogs' @fixedWidth={{true}} @size='2' />\n                <p>{{t\n                    'entity.settings.integrations.yourIntegrationRequestsWillAppearHere'\n                  }}</p>\n              </div>\n            {{/if}}\n          {{/if}}\n        </PtlForm>\n      {{/if}}\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"tTh/Z40v\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"common.Integrations\\\"],null]]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4 h-100\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom pb-2 mb-3 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,[28,[35,4],[\\\"common.Integrations\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"defaultEntityFeatures\\\",\\\"length\\\"]],[[[1,\\\"    \\\"],[8,[39,9],[[24,0,\\\"width--small mb-4\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-3\\\"],[12],[1,[28,[35,4],[\\\"entity.settings.integrations.Integration options\\\"],null]],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,12],[[28,[37,12],[[30,0,[\\\"model\\\",\\\"defaultEntityFeatures\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[8,[39,13],[[16,\\\"disabled\\\",[30,0,[\\\"updateCompanyFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\"],[\\\"checkbox\\\",[30,1,[\\\"label\\\"]],[30,1,[\\\"key\\\"]],[30,1,[\\\"description\\\"]],[30,0,[\\\"model\\\",\\\"featurePermissionsChangeset\\\"]]]],null],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"      \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-3\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"updateCompanyFeatures\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"updateCompanyFeatures\\\"]],[30,0,[\\\"model\\\",\\\"featurePermissionsChangeset\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"updateCompanyFeatures\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"entity.settings.integrations.Saving options\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,4],[\\\"entity.settings.integrations.Save options\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseIPS\\\"]],[[[1,\\\"    \\\"],[8,[39,9],[[24,0,\\\"width--small mb-4\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-3\\\"],[12],[1,[28,[35,4],[\\\"common.IPS\\\"],null]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"ips\\\",\\\"ready\\\"]],[[[1,\\\"        \\\"],[8,[39,19],[[24,0,\\\"mt-0 mb-3\\\"]],null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"ipsConnection\\\",\\\"isRunning\\\"]],[[[1,\\\"        \\\"],[8,[39,20],null,[[\\\"@type\\\"],[\\\"ripple\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"model\\\",\\\"ipsConnection\\\",\\\"last\\\",\\\"value\\\"]],[[[44,[[28,[37,22],[[30,0,[\\\"model\\\",\\\"ipsConnection\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"ipsConnectionValidator\\\"]]],null]],[[[41,[30,2,[\\\"isNew\\\"]],[[[1,\\\"            \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.settings.integrations.setUpIpsToStartProcessingYourDocuments\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[8,[39,13],[[16,\\\"disabled\\\",[30,0,[\\\"saveIpsConnection\\\",\\\"isRunning\\\"]]],[24,\\\"data-test-ips-contact-email\\\",\\\"\\\"]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@description\\\",\\\"@forceValidationVisible\\\"],[\\\"email\\\",[28,[37,4],[\\\"entity.settings.integrations.Email address for unprocessed documents\\\"],null],\\\"contactEmail\\\",[30,2],true,[28,[37,4],[\\\"entity.settings.integrations.anyEmailsOrDocumentsThatIpsIsUnableToProcessWillBeSentToThisAddress\\\"],null],[28,[37,24],[[30,0,[\\\"saveIpsConnection\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n            \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-3\\\"],[12],[1,\\\"\\\\n              \\\"],[11,\\\"button\\\"],[24,\\\"data-test-ips-create\\\",\\\"\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveIpsConnection\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"saveIpsConnection\\\"]],[30,2]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveIpsConnection\\\",\\\"isRunning\\\"]],[[[1,\\\"                  \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"entity.settings.integrations.Setting up IPS\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[28,[35,4],[\\\"entity.settings.integrations.Set up IPS\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[14,\\\"for\\\",\\\"ips-email\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,4],[\\\"entity.settings.integrations.Your IPS email address\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[8,[39,26],[[24,\\\"data-test-ips-email\\\",\\\"\\\"],[24,0,\\\"form-control\\\"],[24,1,\\\"ips-email\\\"],[16,\\\"disabled\\\",true]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,2,[\\\"ipsEmail\\\"]]]],null],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,4],[\\\"entity.settings.integrations.documentsSentToThisAddressWillArriveInTheSystem\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[8,[39,13],[[16,\\\"disabled\\\",[30,0,[\\\"saveIpsConnection\\\",\\\"isRunning\\\"]]],[24,\\\"data-test-ips-contact-email\\\",\\\"\\\"]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@description\\\",\\\"@forceValidationVisible\\\"],[\\\"email\\\",[28,[37,4],[\\\"entity.settings.integrations.Email address for unprocessed documents\\\"],null],\\\"contactEmail\\\",[30,2],true,[28,[37,4],[\\\"entity.settings.integrations.anyEmailsOrDocumentsThatIpsIsUnableToProcessWillBeSentToThisAddress\\\"],null],[28,[37,24],[[30,0,[\\\"saveIpsConnection\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n            \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-3\\\"],[12],[1,\\\"\\\\n              \\\"],[11,\\\"button\\\"],[24,\\\"data-test-ips-save\\\",\\\"\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveIpsConnection\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"saveIpsConnection\\\"]],[30,2]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveIpsConnection\\\",\\\"isRunning\\\"]],[[[1,\\\"                  \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[28,[35,4],[\\\"common.Save\\\"],null]],[1,\\\"\\\\n                  \\\"],[1,[28,[35,4],[\\\"common.IPS\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[2]]]],[]],[[[1,\\\"        \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"entity.settings.integrations.noIpsConnectionFoundPleaseContactSupport\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]],[]]],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,27],[\\\"canUsePayroll\\\",\\\"canUseBills\\\",\\\"canUseFinancialReporting\\\"],null],[[[41,[51,[30,0,[\\\"quickbooks\\\",\\\"ready\\\"]]],[[[1,\\\"      \\\"],[8,[39,9],[[24,0,\\\"width--small mb-4\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"h2\\\"],[12],[1,\\\"Xero\\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"xeroCompanyName\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"row align-items-center mt-2 mb-3\\\"],[12],[1,\\\"\\\\n            \\\"],[10,3],[14,\\\"data-test-xero-organisation-link\\\",\\\"\\\"],[14,0,\\\"link\\\"],[14,\\\"target\\\",\\\"_black\\\"],[15,6,[29,[\\\"https://go.xero.com/organisationlogin/default.aspx?shortcode=\\\",[30,0,[\\\"shortCode\\\"]]]]],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"xeroCompanyName\\\"]]],[1,\\\"  \\\\n              \\\"],[8,[39,29],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"external-link-alt\\\",true]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"mt-2\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,\\\"data-test-xero-connect\\\",\\\"\\\"],[24,0,\\\"btn btn-primary\\\"],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"setXeroCompany\\\"]]],null]],null],[12],[1,[28,[35,4],[\\\"entity.settings.integrations.Connect Xero organisation\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"xeroCompanyName\\\"]],[[[44,[[28,[37,22],[[30,0,[\\\"xeroConnection\\\"]],[30,0,[\\\"xeroValidationMap\\\"]]],null]],[[[1,\\\"            \\\"],[8,[39,13],[[16,\\\"disabled\\\",[30,0,[\\\"saveEntity\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",[28,[37,4],[\\\"entity.settings.integrations.Send bills with status\\\"],null],\\\"defaultInvoiceStatus\\\",[30,0,[\\\"defaultInvoiceStatusOptions\\\"]],[30,3],[28,[37,24],[[30,0,[\\\"saveEntity\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,13],[[16,\\\"disabled\\\",[30,0,[\\\"saveEntity\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",[28,[37,4],[\\\"entity.settings.integrations.Send credit notes with status\\\"],null],\\\"defaultCreditNoteStatus\\\",[30,0,[\\\"defaultCreditNoteStatusOptions\\\"]],[30,3],[28,[37,24],[[30,0,[\\\"saveEntity\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,13],[[16,\\\"disabled\\\",[30,0,[\\\"saveEntity\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",[28,[37,4],[\\\"entity.settings.integrations.Send timesheets with status\\\"],null],\\\"defaultTimesheetStatus\\\",[30,0,[\\\"defaultTimesheetStatusOptions\\\"]],[30,3],[28,[37,24],[[30,0,[\\\"saveEntity\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-3\\\"],[12],[1,\\\"\\\\n              \\\"],[11,\\\"button\\\"],[24,\\\"data-test-xero-disconnect\\\",\\\"\\\"],[24,0,\\\"btn btn-danger text-white\\\"],[16,\\\"disabled\\\",[30,0,[\\\"removeXeroCompany\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"removeXeroCompany\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"removeXeroCompany\\\",\\\"isRunning\\\"]],[[[1,\\\"                  \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Disconnecting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[28,[35,4],[\\\"common.Disconnect\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n              \\\"],[11,\\\"button\\\"],[24,\\\"data-test-xero-save\\\",\\\"\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveXeroConnection\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"saveXeroConnection\\\"]],[30,3]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveXeroConnection\\\",\\\"isRunning\\\"]],[[[1,\\\"                  \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[28,[35,4],[\\\"common.Save\\\"],null]],[1,\\\"\\\\n                  Xero\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[3]]]],[]],null],[1,\\\"      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"xeroIntegration\\\",\\\"ready\\\"]]],[[[1,\\\"      \\\"],[8,[39,9],[[24,0,\\\"width--small mb-4\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"h2\\\"],[12],[1,[28,[35,4],[\\\"common.QuickBooks\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,30],[[30,0,[\\\"quickbooks\\\",\\\"companyName\\\"]],[30,0,[\\\"quickbooks\\\",\\\"ready\\\"]]],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"row align-items-center mt-2 mb-3\\\"],[12],[1,\\\"\\\\n            \\\"],[10,3],[14,0,\\\"link\\\"],[14,\\\"target\\\",\\\"_black\\\"],[15,6,[29,[[30,0,[\\\"quickbooksUrl\\\"]],\\\"/app/get-things-done?companyid=\\\",[30,0,[\\\"quickbooks\\\",\\\"companyId\\\"]]]]],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"quickbooks\\\",\\\"companyName\\\"]]],[1,\\\"  \\\\n              \\\"],[8,[39,29],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"external-link-alt\\\",true]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-3\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger text-white\\\"],[16,\\\"disabled\\\",[30,0,[\\\"removeQuickBooksCompany\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"removeQuickBooksCompany\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"removeQuickBooksCompany\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Disconnecting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"common.Disconnect\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"mt-2\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"setQuickBooksCompany\\\"]]],null]],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.settings.integrations.Connect to QuickBooks\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"updatePlaceMakersIntegration\\\",\\\"isRunning\\\"]]],[[[41,[28,[37,31],[[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"region\\\"]],\\\"NZL\\\"],null],[[[1,\\\"      \\\"],[8,[39,9],[[24,0,\\\"width--small mb-4\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"PlaceMakers\\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,32],[\\\"canUsePlaceMakers\\\"],null],[[[1,\\\"          \\\"],[8,[39,33],null,null,null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n            \\\"],[10,2],[12],[1,[28,[35,4],[\\\"entity.settings.integrations.toUseThePlacemakersIntegrationPleaseEnableItFirst\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"updatePlaceMakersIntegration\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"updatePlaceMakersIntegration\\\"]],true],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"updatePlaceMakersIntegration\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Enabling\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"common.Enable\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,32],[\\\"canUseItmInvoiceIntegration\\\"],null],[[[41,[28,[37,31],[[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"region\\\"]],\\\"NZL\\\"],null],[[[1,\\\"      \\\"],[8,[39,9],[[24,0,\\\"width--small mb-4\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[12],[1,\\\"ITM \\\"],[1,[28,[35,4],[\\\"common.Invoice\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"itmSuppliers\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[8,[39,20],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,0],[12],[1,\\\"\\\\n            \\\"],[10,2],[12],[1,[28,[35,4],[\\\"entity.settings.integrations.ifYouHaveAnAccountWithAnItmStoreWeCanImportYourInvoicesAutomatically\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[10,2],[12],[1,[28,[35,4],[\\\"entity.settings.integrations.pleaseSelectTheITMStoresYouHaveAccountsWithAndClick\\\"],null]],[1,\\\"\\\\n              \\\"],[10,\\\"i\\\"],[12],[1,[28,[35,4],[\\\"entity.settings.integrations.Request Integration\\\"],null]],[13],[1,\\\".\\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,35],null,[[\\\"@tagName\\\",\\\"@options\\\",\\\"@selected\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@onChange\\\"],[\\\"div\\\",[30,0,[\\\"requestableItmStores\\\"]],[30,0,[\\\"selectedItmStores\\\"]],true,\\\"name\\\",[28,[37,4],[\\\"entity.settings.integrations.Select ITM stores\\\"],null],[28,[37,36],[[28,[37,37],[[30,0,[\\\"selectedItmStores\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[30,4,[\\\"name\\\"]]],[1,\\\"\\\\n          \\\"]],[4]]]]],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"mt-2\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary pull-right ms-auto\\\"],[16,\\\"disabled\\\",[28,[37,38],[[30,0,[\\\"requestItmStores\\\",\\\"isRunning\\\"]],[28,[37,39],[[30,0,[\\\"selectedItmStores\\\",\\\"length\\\"]]],null]],null]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"requestItmStores\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"requestItmStores\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"entity.settings.integrations.Requesting Integration\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"entity.settings.integrations.Request Integration\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"requestedItmStores\\\",\\\"length\\\"]],[[[1,\\\"            \\\"],[10,0],[12],[1,\\\"\\\\n              \\\"],[10,2],[12],[1,[28,[35,4],[\\\"entity.settings.integrations.integrationRequestsHaveBeenSentToTheFollowingStores\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[10,2],[12],[1,[28,[35,4],[\\\"entity.settings.integrations.itMayTakeAFewDaysForAStoreToFulfilTheRequestIfYouAreHavingIssuesWithYourIntegrationPlease\\\"],null]],[1,\\\"\\\\n                \\\"],[11,3],[24,0,\\\"link\\\"],[24,6,\\\"#\\\"],[4,[38,16],[\\\"click\\\",[30,0,[\\\"contactSupport\\\"]]],null],[12],[1,[28,[35,4],[\\\"entity.settings.integrations.Contact support\\\"],null]],[13],[1,\\\".\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[12],[1,\\\"\\\\n              \\\"],[10,\\\"table\\\"],[14,0,\\\"itm-invoice-integration-settings-table\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,4],[\\\"common.Integration\\\"],null]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,4],[\\\"common.Status\\\"],null]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,4],[\\\"common.Action\\\"],null]],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,12],[[28,[37,12],[[30,0,[\\\"requestedItmStores\\\"]]],null]],null],null,[[[1,\\\"                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[12],[1,[30,5,[\\\"name\\\"]]],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[12],[1,[30,5,[\\\"status\\\"]]],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,38],[[28,[37,31],[[30,5,[\\\"status\\\"]],\\\"Connected\\\"],null],[28,[37,31],[[30,5,[\\\"status\\\"]],\\\"Pending\\\"],null]],null],[[[1,\\\"                          \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,36],[[30,0,[\\\"cancelItmStoreRequest\\\"]],[30,5]],null]],null],[12],[1,\\\"\\\\n                            \\\"],[8,[39,29],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"times\\\",true,\\\"1\\\"]],null],[1,\\\"\\\\n                            \\\"],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,31],[[30,5,[\\\"status\\\"]],\\\"Canceled\\\"],null],[[[1,\\\"                          \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,36],[[30,0,[\\\"reconnectITmStoreRequest\\\"]],[30,5]],null]],null],[12],[1,\\\"\\\\n                            \\\"],[8,[39,29],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"plug\\\",true]],null],[1,\\\"\\\\n                            \\\"],[1,[28,[35,4],[\\\"common.Reconnect\\\"],null]],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                        \\\"]],[]],null]],[]]],[1,\\\"                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"itm-invoice-integration-settings-table__placeholder\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,29],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"cogs\\\",true,\\\"2\\\"]],null],[1,\\\"\\\\n              \\\"],[10,2],[12],[1,[28,[35,4],[\\\"entity.settings.integrations.yourIntegrationRequestsWillAppearHere\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]],[1,\\\"      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[13]],[\\\"feature\\\",\\\"ipsCon\\\",\\\"xeroModel\\\",\\\"store\\\",\\\"store\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"header\\\",\\\"if\\\",\\\"h2\\\",\\\"ptl-form\\\",\\\"h3\\\",\\\"each\\\",\\\"-track-array\\\",\\\"ptl-input\\\",\\\"div\\\",\\\"button\\\",\\\"on\\\",\\\"perform\\\",\\\"span\\\",\\\"ips-usage\\\",\\\"loading-icon\\\",\\\"let\\\",\\\"changeset\\\",\\\"p\\\",\\\"gt\\\",\\\"label\\\",\\\"input\\\",\\\"includes-some-feature-flags\\\",\\\"a\\\",\\\"fa-icon\\\",\\\"and\\\",\\\"eq\\\",\\\"includes-feature-flags\\\",\\\"pm-integration-settings\\\",\\\"i\\\",\\\"power-select-multiple\\\",\\\"fn\\\",\\\"mut\\\",\\\"or\\\",\\\"not\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"tbody\\\",\\\"td\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/integrations.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/people\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4'>\n    <header class='border-bottom pb-2 mb-3 d-flex align-items-center'>\n      <h2 class='flex-grow-1 m-0 my-2'>{{t 'common.People'}}</h2>\n    </header>\n    <div class='d-flex mt-3 width--large'>\n      <ul class='list-group' style='min-width: 200px;'>\n        {{#each this.tabs as |tab|}}\n          <LinkTo\n            @route={{tab.route}}\n            draggable={{false}}\n            class='list-group-item'\n          >\n            <FaIcon @icon={{tab.icon}} @fixedWidth={{true}} @size='md' />\n            {{tab.name}}\n          </LinkTo>\n        {{/each}}\n      </ul>\n      <div class='flex-grow-1 ms-3'>\n        {{outlet}}\n      </div>\n    </div>\n  </article>\n  */\n  {\n    \"id\": \"a2v3DoTb\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom pb-2 mb-3 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,[28,[35,3],[\\\"common.People\\\"],null]],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"d-flex mt-3 width--large\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"ul\\\"],[14,0,\\\"list-group\\\"],[14,5,\\\"min-width: 200px;\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[30,0,[\\\"tabs\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[8,[39,8],[[16,\\\"draggable\\\",false],[24,0,\\\"list-group-item\\\"]],[[\\\"@route\\\"],[[30,1,[\\\"route\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,9],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[[30,1,[\\\"icon\\\"]],true,\\\"md\\\"]],null],[1,\\\"\\\\n          \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"flex-grow-1 ms-3\\\"],[12],[1,\\\"\\\\n      \\\"],[46,[28,[37,11],null,null],null,null,null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"tab\\\"],false,[\\\"article\\\",\\\"header\\\",\\\"h2\\\",\\\"t\\\",\\\"div\\\",\\\"ul\\\",\\\"each\\\",\\\"-track-array\\\",\\\"link-to\\\",\\\"fa-icon\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/people.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/people/clients\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"WbrVkX40\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/people/clients.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/people/clients/client\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='flex-grow-1'>\n    {{#if this.isRunning}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mb-3 ms-1 mt-1'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <PtlForm class='mb-3'>\n        <h3 class='mb-3'>{{t 'common.Details'}}</h3>\n        <PtlInput\n          @type='text'\n          @label={{t 'common.First name'}}\n          @key='firstName'\n          @model={{this.model.userChangeset.last.value}}\n          @required={{this.user.isNew}}\n          @forceValidationVisible={{gt this.saveUser.performCount 0}}\n          disabled={{or (not this.user.isNew) this.saveUser.isRunning}}\n        />\n        <PtlInput\n          @type='text'\n          @label={{t 'common.Last name'}}\n          @key='lastName'\n          @model={{this.model.userChangeset.last.value}}\n          @required={{this.user.isNew}}\n          @forceValidationVisible={{gt this.saveUser.performCount 0}}\n          disabled={{or (not this.user.isNew) this.saveUser.isRunning}}\n        />\n        <PtlInput\n          @type='text'\n          @label={{t 'common.Email'}}\n          @key='email'\n          @model={{this.model.userChangeset.last.value}}\n          @required={{this.user.isNew}}\n          @forceValidationVisible={{gt this.saveUser.performCount 0}}\n          disabled={{or (not this.user.isNew) this.saveUser.isRunning}}\n        />\n        <PtlInput\n          @type='tel'\n          @label={{t 'common.Phone number'}}\n          @key='phoneNumber'\n          @model={{this.model.userChangeset.last.value}}\n          @forceValidationVisible={{gt this.saveUser.performCount 0}}\n          disabled={{or (not this.user.isNew) this.saveUser.isRunning}}\n        />\n  \n        <div class='d-flex flex-grow-1 mt-2'>\n          {{#if this.user.isNew}}\n            <button\n              type='button'\n              class='btn btn-primary ms-auto'\n              disabled={{this.saveUser.isRunning}}\n              {{on\n                'click'\n                (perform this.saveUser this.model.userChangeset.last.value)\n              }}\n            >\n              {{#if this.saveUser.isRunning}}\n                {{t\n                  'entity.settings.people.clients.client.Saving client'\n                }}&hellip;\n              {{else}}\n                {{if\n                  this.user.isNew\n                  (t 'entity.settings.people.clients.client.Create client')\n                  (t 'entity.settings.people.clients.client.Save client')\n                }}\n              {{/if}}\n            </button>\n          {{else if this.canManageUser}}\n            <button\n              type='button'\n              class='btn btn-link text-danger text-decoration-underline'\n              disabled={{this.deleteUser.isRunning}}\n              {{on 'click' (perform this.deleteUser)}}\n            >\n              {{#if this.deleteUser.isRunning}}\n                {{t\n                  'entity.settings.people.clients.client.Deleting client'\n                }}&hellip;\n              {{else}}\n                {{t 'entity.settings.people.clients.client.Delete client'}}\n              {{/if}}\n            </button>\n  \n            {{#if (includes-feature-flags 'userIsAdmin')}}\n              {{#unless this.user.isNew}}\n                <div class='d-flex justify-content-end ms-auto'>\n                  <button\n                    class='btn btn-link ms-auto text-decoration-underline'\n                    type='button'\n                    {{on 'click' (fn this.loginAs this.user)}}\n                  >\n                    {{concat\n                      (t 'shared.people-editor.Login as')\n                      ' '\n                      this.user.fullName\n                    }}\n                  </button>\n                </div>\n              {{/unless}}\n            {{/if}}\n          {{/if}}\n        </div>\n      </PtlForm>\n  \n      {{#unless (or this.user.isNew (not this.canManageUser))}}\n        <PtlForm class='mb-3'>\n          <h3 class='mb-0'>{{t 'shared.people-editor.Permissions'}}</h3>\n          <p class='mb-3'>\n            {{t\n              'entity.settings.people.clients.client.clientEntityPermissionsExplanation'\n            }}\n          </p>\n  \n          <div class='d-flex'>\n            <LinkTo\n              class='btn btn-primary m-1'\n              @route='entity.builda-price.projects'\n            >\n              {{t 'entity.settings.people.clients.client.Go to projects'}}\n              <FaIcon @icon='external-link-alt' @fixedWidth={{true}} @size='md' />\n            </LinkTo>\n          </div>\n        </PtlForm>\n      {{/unless}}\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"o/pZ4KGr\",\n    \"block\": \"[[[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-3 ms-1 mt-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,3],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-3\\\"],[12],[1,[28,[35,6],[\\\"common.Details\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[28,[37,9],[[30,0,[\\\"user\\\",\\\"isNew\\\"]]],null],[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.First name\\\"],null],\\\"firstName\\\",[30,0,[\\\"model\\\",\\\"userChangeset\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"user\\\",\\\"isNew\\\"]],[28,[37,10],[[30,0,[\\\"saveUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[28,[37,9],[[30,0,[\\\"user\\\",\\\"isNew\\\"]]],null],[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Last name\\\"],null],\\\"lastName\\\",[30,0,[\\\"model\\\",\\\"userChangeset\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"user\\\",\\\"isNew\\\"]],[28,[37,10],[[30,0,[\\\"saveUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[28,[37,9],[[30,0,[\\\"user\\\",\\\"isNew\\\"]]],null],[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Email\\\"],null],\\\"email\\\",[30,0,[\\\"model\\\",\\\"userChangeset\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"user\\\",\\\"isNew\\\"]],[28,[37,10],[[30,0,[\\\"saveUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[28,[37,9],[[30,0,[\\\"user\\\",\\\"isNew\\\"]]],null],[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"tel\\\",[28,[37,6],[\\\"common.Phone number\\\"],null],\\\"phoneNumber\\\",[30,0,[\\\"model\\\",\\\"userChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"user\\\",\\\"isNew\\\"]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"saveUser\\\"]],[30,0,[\\\"model\\\",\\\"userChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"entity.settings.people.clients.client.Saving client\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[52,[30,0,[\\\"user\\\",\\\"isNew\\\"]],[28,[37,6],[\\\"entity.settings.people.clients.client.Create client\\\"],null],[28,[37,6],[\\\"entity.settings.people.clients.client.Save client\\\"],null]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"canManageUser\\\"]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteUser\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"deleteUser\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteUser\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"entity.settings.people.clients.client.Deleting client\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"entity.settings.people.clients.client.Delete client\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,14],[\\\"userIsAdmin\\\"],null],[[[41,[51,[30,0,[\\\"user\\\",\\\"isNew\\\"]]],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"d-flex justify-content-end ms-auto\\\"],[12],[1,\\\"\\\\n                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link ms-auto text-decoration-underline\\\"],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"loginAs\\\"]],[30,0,[\\\"user\\\"]]],null]],null],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,17],[[28,[37,6],[\\\"shared.people-editor.Login as\\\"],null],\\\" \\\",[30,0,[\\\"user\\\",\\\"fullName\\\"]]],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"        \\\"]],[]],null]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[28,[37,8],[[30,0,[\\\"user\\\",\\\"isNew\\\"]],[28,[37,9],[[30,0,[\\\"canManageUser\\\"]]],null]],null]],[[[1,\\\"      \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-0\\\"],[12],[1,[28,[35,6],[\\\"shared.people-editor.Permissions\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[10,2],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"entity.settings.people.clients.client.clientEntityPermissionsExplanation\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"d-flex\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,19],[[24,0,\\\"btn btn-primary m-1\\\"]],[[\\\"@route\\\"],[\\\"entity.builda-price.projects\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"entity.settings.people.clients.client.Go to projects\\\"],null]],[1,\\\"\\\\n            \\\"],[8,[39,20],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",true,\\\"md\\\"]],null],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[13]],[],false,[\\\"div\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"page-title-breadcrumbs\\\",\\\"ptl-form\\\",\\\"h3\\\",\\\"t\\\",\\\"ptl-input\\\",\\\"or\\\",\\\"not\\\",\\\"gt\\\",\\\"button\\\",\\\"on\\\",\\\"perform\\\",\\\"includes-feature-flags\\\",\\\"unless\\\",\\\"fn\\\",\\\"concat\\\",\\\"p\\\",\\\"link-to\\\",\\\"fa-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/people/clients/client.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/people/clients/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <div class='mb-1 d-flex align-items-center justify-content-end'>\n      <span class='m-1'>\n        <Input\n          class='form-control'\n          placeholder={{t 'shared.people-editor.clients.Search for clients'}}\n          @type='text'\n          @value={{this.searchString}}\n        />\n      </span>\n      {{#if (includes-feature-flags 'canManageUsers')}}\n        <div class='d-flex flex-column flex-lg-row'>\n          <LinkTo\n            @route={{concat this.model.basePath '.clients.client'}}\n            @model='new'\n            class='btn btn-success text-white text-nowrap m-1'\n          ><FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Add'}}</LinkTo>\n        </div>\n      {{/if}}\n    </div>\n    <PeopleTable\n      @filteredList={{this.filteredClients}}\n      @noData={{t 'shared.people-editor.clients.No clients yet'}}\n      @route={{concat this.model.basePath '.clients.client'}}\n      @showLoginAs={{includes-feature-flags 'userIsAdmin'}}\n      @onClickLoginAs={{this.loginAs}}\n    />\n  {{/if}}\n  */\n  {\n    \"id\": \"7ldE7v8F\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"mb-1 d-flex align-items-center justify-content-end\\\"],[12],[1,\\\"\\\\n    \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],[[24,0,\\\"form-control\\\"],[16,\\\"placeholder\\\",[28,[37,5],[\\\"shared.people-editor.clients.Search for clients\\\"],null]]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[\\\"canManageUsers\\\"],null],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"d-flex flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,7],[[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[[28,[37,8],[[30,0,[\\\"model\\\",\\\"basePath\\\"]],\\\".clients.client\\\"],null],\\\"new\\\"]],[[\\\"default\\\"],[[[[8,[39,9],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,5],[\\\"common.Add\\\"],null]]],[]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,10],null,[[\\\"@filteredList\\\",\\\"@noData\\\",\\\"@route\\\",\\\"@showLoginAs\\\",\\\"@onClickLoginAs\\\"],[[30,0,[\\\"filteredClients\\\"]],[28,[37,5],[\\\"shared.people-editor.clients.No clients yet\\\"],null],[28,[37,8],[[30,0,[\\\"model\\\",\\\"basePath\\\"]],\\\".clients.client\\\"],null],[28,[37,6],[\\\"userIsAdmin\\\"],null],[30,0,[\\\"loginAs\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"span\\\",\\\"input\\\",\\\"t\\\",\\\"includes-feature-flags\\\",\\\"link-to\\\",\\\"concat\\\",\\\"fa-icon\\\",\\\"people-table\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/people/clients/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/people/subcontractors\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"BcvWO5X4\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/people/subcontractors.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/people/subcontractors/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <div class='mb-1 d-flex align-items-center justify-content-end'>\n      <span class='m-1' style='width: 200px;'>\n        <Input\n          class='form-control'\n          placeholder={{t\n            'shared.people-editor.subcontractors.Search for subcontractors'\n          }}\n          @type='text'\n          @value={{this.searchString}}\n        />\n      </span>\n      {{#if (includes-feature-flags 'canManageUsers')}}\n        <div class='d-flex flex-column flex-lg-row'>\n          <LinkTo\n            @route={{concat this.model.basePath '.subcontractors.subcontractor'}}\n            @model='new'\n            class='btn btn-success text-white text-nowrap m-1'\n          ><FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Add'}}</LinkTo>\n        </div>\n      {{/if}}\n    </div>\n    <PeopleTable\n      @filteredList={{this.filteredSubcontractors}}\n      @noData={{t 'shared.people-editor.subcontractors.No subcontractors yet'}}\n      @route={{concat this.model.basePath '.subcontractors.subcontractor'}}\n      @showLoginAs={{includes-feature-flags 'userIsAdmin'}}\n      @onClickLoginAs={{this.loginAs}}\n    />\n  {{/if}}\n  */\n  {\n    \"id\": \"nJ4fVtuX\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"mb-1 d-flex align-items-center justify-content-end\\\"],[12],[1,\\\"\\\\n    \\\"],[10,1],[14,0,\\\"m-1\\\"],[14,5,\\\"width: 200px;\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],[[24,0,\\\"form-control\\\"],[16,\\\"placeholder\\\",[28,[37,5],[\\\"shared.people-editor.subcontractors.Search for subcontractors\\\"],null]]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[\\\"canManageUsers\\\"],null],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"d-flex flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,7],[[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[[28,[37,8],[[30,0,[\\\"model\\\",\\\"basePath\\\"]],\\\".subcontractors.subcontractor\\\"],null],\\\"new\\\"]],[[\\\"default\\\"],[[[[8,[39,9],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,5],[\\\"common.Add\\\"],null]]],[]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,10],null,[[\\\"@filteredList\\\",\\\"@noData\\\",\\\"@route\\\",\\\"@showLoginAs\\\",\\\"@onClickLoginAs\\\"],[[30,0,[\\\"filteredSubcontractors\\\"]],[28,[37,5],[\\\"shared.people-editor.subcontractors.No subcontractors yet\\\"],null],[28,[37,8],[[30,0,[\\\"model\\\",\\\"basePath\\\"]],\\\".subcontractors.subcontractor\\\"],null],[28,[37,6],[\\\"userIsAdmin\\\"],null],[30,0,[\\\"loginAs\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"span\\\",\\\"input\\\",\\\"t\\\",\\\"includes-feature-flags\\\",\\\"link-to\\\",\\\"concat\\\",\\\"fa-icon\\\",\\\"people-table\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/people/subcontractors/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/people/subcontractors/subcontractor\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='flex-grow-1'>\n    {{#if this.isRunning}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mb-3 ms-1 mt-1'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <PtlForm class='mb-3'>\n        <h3 class='mb-3'>{{t 'common.Details'}}</h3>\n        <PtlInput\n          @type='text'\n          @label={{t 'common.First name'}}\n          @key='firstName'\n          @model={{this.model.userChangeset.last.value}}\n          @required={{this.canEditUser}}\n          @forceValidationVisible={{gt this.saveUser.performCount 0}}\n          disabled={{or (not this.canEditUser) this.saveUser.isRunning}}\n        />\n        <PtlInput\n          @type='text'\n          @label={{t 'common.Last name'}}\n          @key='lastName'\n          @model={{this.model.userChangeset.last.value}}\n          @required={{this.canEditUser}}\n          @forceValidationVisible={{gt this.saveUser.performCount 0}}\n          disabled={{or (not this.canEditUser) this.saveUser.isRunning}}\n        />\n        <PtlInput\n          @type='text'\n          @label={{t 'common.Email'}}\n          @key='email'\n          @model={{this.model.userChangeset.last.value}}\n          @required={{this.canEditUser}}\n          @forceValidationVisible={{gt this.saveUser.performCount 0}}\n          disabled={{or (not this.canEditUser) this.saveUser.isRunning}}\n        />\n  \n        <PtlInput\n          @type='tel'\n          @label={{t 'common.Phone number'}}\n          @key='phoneNumber'\n          @model={{this.model.userChangeset.last.value}}\n          @forceValidationVisible={{gt this.saveUser.performCount 0}}\n          disabled={{or (not this.canEditUser) this.saveUser.isRunning}}\n        />\n  \n        {{#if this.canManageUser}}\n          <div class='d-flex flex-grow-1 mt-2'>\n            {{#unless this.user.isNew}}\n              <button\n                type='button'\n                class='btn btn-link text-danger text-decoration-underline'\n                disabled={{this.deleteUser.isRunning}}\n                {{on 'click' (perform this.deleteUser)}}\n              >\n                {{#if this.deleteUser.isRunning}}\n                  {{t 'shared.people-editor.Deleting user'}}\n                  &hellip;\n                {{else}}\n                  {{t 'shared.people-editor.Delete user'}}\n                {{/if}}\n              </button>\n            {{/unless}}\n  \n            {{#if this.canEditUser}}\n              <button\n                type='button'\n                class='btn btn-primary ms-auto'\n                disabled={{this.saveUser.isRunning}}\n                {{on\n                  'click'\n                  (perform this.saveUser this.model.userChangeset.last.value)\n                }}\n              >\n                {{#if this.saveUser.isRunning}}\n                  {{t\n                    'entity.settings.people.subcontractors.subcontractor.Saving subcontractor'\n                  }}&hellip;\n                {{else}}\n                  {{if\n                    this.user.isNew\n                    (t\n                      'entity.settings.people.subcontractors.subcontractor.Create subcontractor'\n                    )\n                    (t\n                      'entity.settings.people.subcontractors.subcontractor.Save subcontractor'\n                    )\n                  }}\n                {{/if}}\n              </button>\n            {{/if}}\n  \n            {{#if (includes-feature-flags 'userIsAdmin')}}\n              {{#unless this.user.isNew}}\n                <div class='d-flex justify-content-end ms-auto'>\n                  <button\n                    class='btn btn-link ms-auto text-decoration-underline'\n                    type='button'\n                    {{on 'click' (fn this.loginAs this.user)}}\n                  >\n                    {{concat\n                      (t 'shared.people-editor.Login as')\n                      ' '\n                      this.user.fullName\n                    }}\n                  </button>\n                </div>\n              {{/unless}}\n            {{/if}}\n          </div>\n        {{/if}}\n      </PtlForm>\n  \n      {{#unless\n        (or\n          (or this.user.isNew this.user.lastLoginDate)\n          (not this.canManageUserPermissions)\n        )\n      }}\n        <div class='alert alert-primary' role='alert'>\n          <FaIcon @icon='info-circle' @size='lg' class='me-2' />\n          <span class='me-2'>\n            {{this.user.firstName}}\n            {{t 'shared.people-editor.trySendReminderEmail'}}\n          </span>\n          <button\n            type='button'\n            class='btn btn-outline-primary'\n            {{on\n              'click'\n              (perform\n                this.sendPasswordResetEmail this.model.userChangeset.last.value\n              )\n            }}\n            disabled={{this.sendPasswordResetEmail.isRunning}}\n          >\n            {{#if this.sendPasswordResetEmail.isRunning}}\n              {{t 'shared.people-editor.Sending reminder email'}}&hellip;\n            {{else}}\n              {{t 'shared.people-editor.Send reminder email'}}\n            {{/if}}\n          </button>\n        </div>\n      {{/unless}}\n  \n      {{#if (and this.canManageUserPermissions (not this.user.isNew))}}\n        <PtlForm class='mb-3'>\n          <h3 class='mb-0'>{{t 'shared.people-editor.Permissions'}}</h3>\n          <p class='mb-4'>\n            {{t 'shared.people-editor.userPermissionsExplanation'}}\n          </p>\n  \n          <div\n            class='d-flex align-items-center mb-3'\n            role='button'\n            {{on\n              'click'\n              (fn\n                (mut this.projectPermissionsVisible)\n                (not this.projectPermissionsVisible)\n              )\n            }}\n          >\n            <h4 class='m-0'>\n              {{t 'common.Project'}}\n            </h4>\n            {{#if this.projectPermissionsCount}}\n              <span class='ms-2 badge bg-info'>\n                {{this.projectPermissionsCount}}\n              </span>\n            {{/if}}\n            <h4 class='m-0 ms-auto'>\n              <FaIcon\n                @icon={{if\n                  this.projectPermissionsVisible\n                  'chevron-down'\n                  'chevron-right'\n                }}\n              />\n            </h4>\n          </div>\n          {{#if this.projectPermissionsVisible}}\n            <PtlInput\n              @type='checkbox'\n              @label={{t 'shared.people-editor.Can see all projects'}}\n              @key='canViewProjects'\n              @model={{this.model.permissionsChangeset.last.value}}\n              @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n              disabled={{this.savePermissions.isRunning}}\n            />\n            {{#if\n              (or\n                this.model.permissionsChangeset.last.value.canManageProjects\n                this.model.permissionsChangeset.last.value.canViewProjects\n              )\n            }}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can manage all projects'}}\n                @description={{t\n                  'shared.people-editor.canManageAllProjectsDescription'\n                }}\n                @key='canManageProjects'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n            {{/if}}\n            <PtlInput\n              @type='checkbox'\n              @label={{t 'shared.people-editor.Can see all tasks'}}\n              @description={{t\n                'shared.people-editor.Lets the user see all tasks'\n              }}\n              @key='canViewTasks'\n              @model={{this.model.permissionsChangeset.last.value}}\n              @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n              disabled={{this.savePermissions.isRunning}}\n            />\n            {{#if\n              (or\n                this.model.permissionsChangeset.last.value.canManageTasks\n                this.model.permissionsChangeset.last.value.canViewTasks\n              )\n            }}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can manage all tasks'}}\n                @description={{t\n                  'shared.people-editor.canManageAllTasksDescription'\n                }}\n                @key='canManageTasks'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see all project budgets'}}\n                @description={{t\n                  'shared.people-editor.canSeeAllProjectBudgetsDescription'\n                }}\n                @key='canViewBudgets'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n              {{#if\n                (or\n                  this.model.permissionsChangeset.last.value.canManageBudgets\n                  this.model.permissionsChangeset.last.value.canViewBudgets\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'shared.people-editor.Can manage all project budgets'\n                  }}\n                  @description={{t\n                    'shared.people-editor.canManageAllProjectBudgetsDescription'\n                  }}\n                  @key='canManageBudgets'\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  disabled={{this.savePermissions.isRunning}}\n                />\n              {{/if}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see all project quotes'}}\n                @description={{t\n                  'shared.people-editor.canSeeAllProjectQuotesDescription'\n                }}\n                @key='canViewQuotes'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n              {{#if\n                (or\n                  this.model.permissionsChangeset.last.value.canManageQuotes\n                  this.model.permissionsChangeset.last.value.canViewQuotes\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'shared.people-editor.Can manage all project quotes'\n                  }}\n                  @description={{t\n                    'shared.people-editor.canManageAllProjectQuotesDescription'\n                  }}\n                  @key='canManageQuotes'\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  disabled={{this.savePermissions.isRunning}}\n                />\n              {{/if}}\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseProjectProgress}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see all project progress'}}\n                @description={{t\n                  'shared.people-editor.canSeeAllProjectProgressDescription'\n                }}\n                @key='canViewProgress'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n              {{#if\n                (or\n                  this.model.permissionsChangeset.last.value.canManageProgress\n                  this.model.permissionsChangeset.last.value.canViewProgress\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'shared.people-editor.Can manage all project progress'\n                  }}\n                  @description={{t\n                    'shared.people-editor.canManageAllProjectProgressDescription'\n                  }}\n                  @key='canManageProgress'\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  disabled={{this.savePermissions.isRunning}}\n                />\n              {{/if}}\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see all documents'}}\n                @description={{t\n                  'shared.people-editor.canSeeAllDocumentsDescription'\n                }}\n                @key='canViewFileStorage'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n              {{#if\n                (or\n                  this.model.permissionsChangeset.last.value.canManageFileStorage\n                  this.model.permissionsChangeset.last.value.canViewFileStorage\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'shared.people-editor.Can manage all documents'}}\n                  @description={{t\n                    'shared.people-editor.canManageAllDocumentsDescription'\n                  }}\n                  @key='canManageFileStorage'\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  disabled={{this.savePermissions.isRunning}}\n                />\n              {{/if}}\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseProducts}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see all products'}}\n                @description={{t\n                  'shared.people-editor.canSeeAllProductsDescription'\n                }}\n                @key='canViewProducts'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n              {{#if\n                (or\n                  this.model.permissionsChangeset.last.value.canManageProducts\n                  this.model.permissionsChangeset.last.value.canViewProducts\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'shared.people-editor.Can manage all products'}}\n                  @description={{t\n                    'shared.people-editor.canManageAllProductsDescription'\n                  }}\n                  @key='canManageProducts'\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  disabled={{this.savePermissions.isRunning}}\n                />\n              {{/if}}\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseEstimates}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can make estimates'}}\n                @key='canEstimate'\n                @description={{t\n                  'shared.people-editor.canMakeEstimatesDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.canManageEstimateSettings'}}\n                @key='canManageEstimateSettings'\n                @description={{t\n                  'shared.people-editor.canManageEstimateSettingsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n            {{/if}}\n          {{/if}}\n          {{#if this.newFeatureFlags.entityCanUseScheduling}}\n            <div\n              class='d-flex align-items-center mb-3'\n              role='button'\n              {{on\n                'click'\n                (fn\n                  (mut this.schedulingPermissionsVisible)\n                  (not this.schedulingPermissionsVisible)\n                )\n              }}\n            >\n              <h4 class='m-0'>\n                {{t 'common.Scheduling'}}\n              </h4>\n              {{#if this.schedulingPermissionsCount}}\n                <span class='ms-2 badge bg-info'>\n                  {{this.schedulingPermissionsCount}}\n                </span>\n              {{/if}}\n              <h4 class='m-0 ms-auto'>\n                <FaIcon\n                  @icon={{if\n                    this.schedulingPermissionsVisible\n                    'chevron-down'\n                    'chevron-right'\n                  }}\n                />\n              </h4>\n            </div>\n            {{#if this.schedulingPermissionsVisible}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see scheduling reports'}}\n                @key='canViewSchedulingReports'\n                @description={{t\n                  'shared.people-editor.Gives access to see the timeline'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can make scheduling changes'}}\n                @key='canManageSchedulingReports'\n                @description={{t\n                  'shared.people-editor.canMakeSchedulingChangesDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n            {{/if}}\n          {{/if}}\n          {{#if\n            (or\n              this.newFeatureFlags.entityCanUseTimesheets\n              this.newFeatureFlags.entityCanUseBills\n            )\n          }}\n            <div\n              class='d-flex align-items-center mb-3'\n              role='button'\n              {{on\n                'click'\n                (fn\n                  (mut this.allocationsPermissionsVisible)\n                  (not this.allocationsPermissionsVisible)\n                )\n              }}\n            >\n              <h4 class='m-0'>\n                {{t 'common.Allocations'}}\n              </h4>\n              {{#if this.allocationsPermissionsCount}}\n                <span class='ms-2 badge bg-info'>\n                  {{this.allocationsPermissionsCount}}\n                </span>\n              {{/if}}\n              <h4 class='m-0 ms-auto'>\n                <FaIcon\n                  @icon={{if\n                    this.allocationsPermissionsVisible\n                    'chevron-down'\n                    'chevron-right'\n                  }}\n                />\n              </h4>\n            </div>\n            {{#if this.allocationsPermissionsVisible}}\n              {{#if this.newFeatureFlags.entityCanUseTimesheets}}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'shared.people-editor.Can see all timesheets and notes'\n                  }}\n                  @key='canViewTimesheets'\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  disabled={{this.savePermissions.isRunning}}\n                />\n                {{#if\n                  (or\n                    this.model.permissionsChangeset.last.value.canManageTimesheets\n                    this.model.permissionsChangeset.last.value.canViewTimesheets\n                  )\n                }}\n                  <PtlInput\n                    @type='checkbox'\n                    @label={{t\n                      'shared.people-editor.Can manage all timesheets and notes'\n                    }}\n                    @description={{t\n                      'shared.people-editor.canManageAllTimesheetsAndNotesDescription'\n                    }}\n                    @key='canManageTimesheets'\n                    @model={{this.model.permissionsChangeset.last.value}}\n                    disabled={{this.savePermissions.isRunning}}\n                  />\n                {{/if}}\n                <PtlInput\n                  @type='powerSelectMultiple'\n                  @label={{t 'shared.people-editor.Timesheet workers'}}\n                  @key='workers'\n                  @description={{t\n                    'shared.people-editor.timesheetWorkersDescription'\n                  }}\n                  @optionKeys={{array 'fullName'}}\n                  @options={{this.model.workers.last.value}}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @searchEnabled={{true}}\n                  @searchField='fullName'\n                  @placeholder={{t\n                    'shared.people-editor.Select a worker grant permissions for'\n                  }}\n                  @disabled={{this.saveUserPermissions.isRunning}}\n                />\n              {{/if}}\n              {{#if this.newFeatureFlags.entityCanUseBills}}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'shared.people-editor.Can see all the bills'}}\n                  @key='canViewBills'\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  disabled={{this.savePermissions.isRunning}}\n                />\n                {{#if\n                  (or\n                    this.model.permissionsChangeset.last.value.canManageBills\n                    this.model.permissionsChangeset.last.value.canViewBills\n                  )\n                }}\n                  <PtlInput\n                    @type='checkbox'\n                    @label={{t 'shared.people-editor.Can manage all bills'}}\n                    @description={{t\n                      'shared.people-editor.Lets the user create and map bills'\n                    }}\n                    @key='canManageBills'\n                    @model={{this.model.permissionsChangeset.last.value}}\n                    disabled={{this.savePermissions.isRunning}}\n                  />\n                {{/if}}\n              {{/if}}\n            {{/if}}\n          {{/if}}\n          <div\n            class='d-flex align-items-center mb-3'\n            role='button'\n            {{on\n              'click'\n              (fn\n                (mut this.reportsPermissionsVisible)\n                (not this.reportsPermissionsVisible)\n              )\n            }}\n          >\n            <h4 class='m-0'>\n              {{t 'common.Reports'}}\n            </h4>\n            {{#if this.reportsPermissionsCount}}\n              <span class='ms-2 badge bg-info'>\n                {{this.reportsPermissionsCount}}\n              </span>\n            {{/if}}\n            <h4 class='m-0 ms-auto'>\n              <FaIcon\n                @icon={{if\n                  this.reportsPermissionsVisible\n                  'chevron-down'\n                  'chevron-right'\n                }}\n              />\n            </h4>\n          </div>\n          {{#if this.reportsPermissionsVisible}}\n  \n            <div class='alert alert-primary' role='alert'>\n              <FaIcon @icon='info-circle' @size='lg' class='me-2' />\n              <span class='me-2'>\n                {{#if this.canViewReports.length}}\n                  {{t\n                    'shared.people-editor.withThesePermissionsThisSubcontractorCanSeeTheFollowingReports'\n                  }}\n                  <span class='fw-bold'>{{this.canViewReports}}</span>.\n                {{else}}\n                  {{t\n                    'shared.people-editor.subcontractors.subcontractor.withThesePermissionsThisSubcontractorCanNotSeeAnyReports'\n                  }}\n                {{/if}}\n              </span>\n            </div>\n  \n            {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.canSeeAllBudgetDataInReports'}}\n                @key='canViewBudgetFinancialReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.users.user.canViewBudgetHourReportsLabel'\n                }}\n                @description={{t\n                  'shared.people-editor.users.user.canViewBudgetHourReportsLabelDescription'\n                }}\n                @key='canViewBudgetLabourHourReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.Can see all quote data in reports'\n                }}\n                @key='canViewQuoteReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n            {{/if}}\n            {{#if\n              (or\n                this.newFeatureFlags.entityCanUseTimesheets\n                this.newFeatureFlags.entityCanUseBills\n              )\n            }}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.canSeeAllCostDataInReports'}}\n                @key='canViewCostFinancialReports'\n                @description={{t\n                  'shared.people-editor.canSeeAllCostDataInReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.users.user.canViewActualHourReportsLabel'\n                }}\n                @key='canViewCostLabourHourReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.Can see all work value data in reports'\n                }}\n                @key='canViewChargeupReports'\n                @description={{t\n                  'shared.people-editor.canSeeAllWorkValueDataInReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.Can see all progress data in reports'\n                }}\n                @key='canViewProgressReports'\n                @description={{t\n                  'shared.people-editor.canSeeAllProgressDataInReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseInvoicingReport}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.users.user.Can see all invoicing data in reports'\n                }}\n                @key='canViewInvoicingReports'\n                @description={{t\n                  'shared.people-editor.users.user.canViewInvoicingReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n            {{/if}}\n          {{/if}}\n          {{#if this.newFeatureFlags.entityCanUseHealthAndSafety}}\n            <div\n              class='d-flex align-items-center mb-3'\n              role='button'\n              {{on\n                'click'\n                (fn\n                  (mut this.healthAndSafetyPermissionsVisible)\n                  (not this.healthAndSafetyPermissionsVisible)\n                )\n              }}\n            >\n              <h4 class='m-0'>\n                {{t 'common.healthAndSafety'}}\n              </h4>\n              {{#if this.healthAndSafetyPermissionsCount}}\n                <span class='ms-2 badge bg-info'>\n                  {{this.healthAndSafetyPermissionsCount}}\n                </span>\n              {{/if}}\n              <h4 class='m-0 ms-auto'>\n                <FaIcon\n                  @icon={{if\n                    this.healthAndSafetyPermissionsVisible\n                    'chevron-down'\n                    'chevron-right'\n                  }}\n                />\n              </h4>\n            </div>\n            {{#if this.healthAndSafetyPermissionsVisible}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.canUseHealthAndSafety'}}\n                @key='canCreateHealthAndSafety'\n                @description={{t\n                  'shared.people-editor.canUseHealthAndSafetyDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n              {{#if\n                (or\n                  this.model.permissionsChangeset.last.value.canManageHealthAndSafety\n                  this.model.permissionsChangeset.last.value.canCreateHealthAndSafety\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'shared.people-editor.canManageHealthAndSafety'}}\n                  @key='canManageHealthAndSafety'\n                  @description={{t\n                    'shared.people-editor.canManageHealthAndSafetyDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  disabled={{this.savePermissions.isRunning}}\n                />\n              {{/if}}\n            {{/if}}\n          {{/if}}\n          <div\n            class='d-flex align-items-center mb-3'\n            role='button'\n            {{on\n              'click'\n              (fn\n                (mut this.settingsPermissionsVisible)\n                (not this.settingsPermissionsVisible)\n              )\n            }}\n          >\n            <h4 class='m-0'>\n              {{t 'common.Settings'}}\n            </h4>\n            {{#if this.settingsPermissionsCount}}\n              <span class='ms-2 badge bg-info'>\n                {{this.settingsPermissionsCount}}\n              </span>\n            {{/if}}\n            <h4 class='m-0 ms-auto'>\n              <FaIcon\n                @icon={{if\n                  this.settingsPermissionsVisible\n                  'chevron-down'\n                  'chevron-right'\n                }}\n              />\n            </h4>\n          </div>\n          {{#if this.settingsPermissionsVisible}}\n            <PtlInput\n              @type='checkbox'\n              @label={{t 'shared.people-editor.canViewWorkers'}}\n              @key='canViewWorkers'\n              @description={{t 'shared.people-editor.Lets users view workers'}}\n              @model={{this.model.permissionsChangeset.last.value}}\n              @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n              disabled={{this.savePermissions.isRunning}}\n            />\n          {{/if}}\n  \n          <div class='d-flex flex-grow-1 mt-2'>\n            <button\n              type='button'\n              class='btn btn-primary ms-auto'\n              disabled={{this.savePermissions.isRunning}}\n              {{on\n                'click'\n                (perform\n                  this.savePermissions this.model.permissionsChangeset.last.value\n                )\n              }}\n            >\n              {{#if this.savePermissions.isRunning}}\n                {{t 'shared.people-editor.Saving permissions'}}&hellip;\n              {{else}}\n                {{t 'shared.people-editor.Save permissions'}}\n              {{/if}}\n            </button>\n          </div>\n        </PtlForm>\n      {{/if}}\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"D0i/EvsA\",\n    \"block\": \"[[[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-3 ms-1 mt-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,3],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-3\\\"],[12],[1,[28,[35,6],[\\\"common.Details\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[28,[37,9],[[30,0,[\\\"canEditUser\\\"]]],null],[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.First name\\\"],null],\\\"firstName\\\",[30,0,[\\\"model\\\",\\\"userChangeset\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"canEditUser\\\"]],[28,[37,10],[[30,0,[\\\"saveUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[28,[37,9],[[30,0,[\\\"canEditUser\\\"]]],null],[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Last name\\\"],null],\\\"lastName\\\",[30,0,[\\\"model\\\",\\\"userChangeset\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"canEditUser\\\"]],[28,[37,10],[[30,0,[\\\"saveUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[28,[37,9],[[30,0,[\\\"canEditUser\\\"]]],null],[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Email\\\"],null],\\\"email\\\",[30,0,[\\\"model\\\",\\\"userChangeset\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"canEditUser\\\"]],[28,[37,10],[[30,0,[\\\"saveUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[28,[37,9],[[30,0,[\\\"canEditUser\\\"]]],null],[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"tel\\\",[28,[37,6],[\\\"common.Phone number\\\"],null],\\\"phoneNumber\\\",[30,0,[\\\"model\\\",\\\"userChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"canManageUser\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"user\\\",\\\"isNew\\\"]]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteUser\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"deleteUser\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteUser\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Deleting user\\\"],null]],[1,\\\"\\\\n                …\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Delete user\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canEditUser\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"saveUser\\\"]],[30,0,[\\\"model\\\",\\\"userChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"entity.settings.people.subcontractors.subcontractor.Saving subcontractor\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[52,[30,0,[\\\"user\\\",\\\"isNew\\\"]],[28,[37,6],[\\\"entity.settings.people.subcontractors.subcontractor.Create subcontractor\\\"],null],[28,[37,6],[\\\"entity.settings.people.subcontractors.subcontractor.Save subcontractor\\\"],null]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,15],[\\\"userIsAdmin\\\"],null],[[[41,[51,[30,0,[\\\"user\\\",\\\"isNew\\\"]]],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"d-flex justify-content-end ms-auto\\\"],[12],[1,\\\"\\\\n                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link ms-auto text-decoration-underline\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"loginAs\\\"]],[30,0,[\\\"user\\\"]]],null]],null],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,17],[[28,[37,6],[\\\"shared.people-editor.Login as\\\"],null],\\\" \\\",[30,0,[\\\"user\\\",\\\"fullName\\\"]]],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[28,[37,8],[[28,[37,8],[[30,0,[\\\"user\\\",\\\"isNew\\\"]],[30,0,[\\\"user\\\",\\\"lastLoginDate\\\"]]],null],[28,[37,9],[[30,0,[\\\"canManageUserPermissions\\\"]]],null]],null]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"alert alert-primary\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,18],[[24,0,\\\"me-2\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"info-circle\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"user\\\",\\\"firstName\\\"]]],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"shared.people-editor.trySendReminderEmail\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-outline-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"sendPasswordResetEmail\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"sendPasswordResetEmail\\\"]],[30,0,[\\\"model\\\",\\\"userChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"sendPasswordResetEmail\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Sending reminder email\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Send reminder email\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"canManageUserPermissions\\\"]],[28,[37,9],[[30,0,[\\\"user\\\",\\\"isNew\\\"]]],null]],null],[[[1,\\\"      \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-0\\\"],[12],[1,[28,[35,6],[\\\"shared.people-editor.Permissions\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[10,2],[14,0,\\\"mb-4\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"shared.people-editor.userPermissionsExplanation\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[28,[37,22],[[30,0,[\\\"projectPermissionsVisible\\\"]]],null],[28,[37,9],[[30,0,[\\\"projectPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"common.Project\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"projectPermissionsCount\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"projectPermissionsCount\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,18],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"projectPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"projectPermissionsVisible\\\"]],[[[1,\\\"          \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all projects\\\"],null],\\\"canViewProjects\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageProjects\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewProjects\\\"]]],null],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all projects\\\"],null],[28,[37,6],[\\\"shared.people-editor.canManageAllProjectsDescription\\\"],null],\\\"canManageProjects\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all tasks\\\"],null],[28,[37,6],[\\\"shared.people-editor.Lets the user see all tasks\\\"],null],\\\"canViewTasks\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageTasks\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewTasks\\\"]]],null],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all tasks\\\"],null],[28,[37,6],[\\\"shared.people-editor.canManageAllTasksDescription\\\"],null],\\\"canManageTasks\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all project budgets\\\"],null],[28,[37,6],[\\\"shared.people-editor.canSeeAllProjectBudgetsDescription\\\"],null],\\\"canViewBudgets\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageBudgets\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewBudgets\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all project budgets\\\"],null],[28,[37,6],[\\\"shared.people-editor.canManageAllProjectBudgetsDescription\\\"],null],\\\"canManageBudgets\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all project quotes\\\"],null],[28,[37,6],[\\\"shared.people-editor.canSeeAllProjectQuotesDescription\\\"],null],\\\"canViewQuotes\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageQuotes\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewQuotes\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all project quotes\\\"],null],[28,[37,6],[\\\"shared.people-editor.canManageAllProjectQuotesDescription\\\"],null],\\\"canManageQuotes\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectProgress\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all project progress\\\"],null],[28,[37,6],[\\\"shared.people-editor.canSeeAllProjectProgressDescription\\\"],null],\\\"canViewProgress\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageProgress\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewProgress\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all project progress\\\"],null],[28,[37,6],[\\\"shared.people-editor.canManageAllProjectProgressDescription\\\"],null],\\\"canManageProgress\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all documents\\\"],null],[28,[37,6],[\\\"shared.people-editor.canSeeAllDocumentsDescription\\\"],null],\\\"canViewFileStorage\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageFileStorage\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewFileStorage\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all documents\\\"],null],[28,[37,6],[\\\"shared.people-editor.canManageAllDocumentsDescription\\\"],null],\\\"canManageFileStorage\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProducts\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all products\\\"],null],[28,[37,6],[\\\"shared.people-editor.canSeeAllProductsDescription\\\"],null],\\\"canViewProducts\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageProducts\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewProducts\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all products\\\"],null],[28,[37,6],[\\\"shared.people-editor.canManageAllProductsDescription\\\"],null],\\\"canManageProducts\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseEstimates\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can make estimates\\\"],null],\\\"canEstimate\\\",[28,[37,6],[\\\"shared.people-editor.canMakeEstimatesDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canManageEstimateSettings\\\"],null],\\\"canManageEstimateSettings\\\",[28,[37,6],[\\\"shared.people-editor.canManageEstimateSettingsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseScheduling\\\"]],[[[1,\\\"          \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[28,[37,22],[[30,0,[\\\"schedulingPermissionsVisible\\\"]]],null],[28,[37,9],[[30,0,[\\\"schedulingPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"common.Scheduling\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"schedulingPermissionsCount\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"schedulingPermissionsCount\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,18],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"schedulingPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"schedulingPermissionsVisible\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see scheduling reports\\\"],null],\\\"canViewSchedulingReports\\\",[28,[37,6],[\\\"shared.people-editor.Gives access to see the timeline\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can make scheduling changes\\\"],null],\\\"canManageSchedulingReports\\\",[28,[37,6],[\\\"shared.people-editor.canMakeSchedulingChangesDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[28,[37,8],[[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseTimesheets\\\"]],[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseBills\\\"]]],null],[[[1,\\\"          \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[28,[37,22],[[30,0,[\\\"allocationsPermissionsVisible\\\"]]],null],[28,[37,9],[[30,0,[\\\"allocationsPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"common.Allocations\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"allocationsPermissionsCount\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"allocationsPermissionsCount\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,18],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"allocationsPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"allocationsPermissionsVisible\\\"]],[[[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseTimesheets\\\"]],[[[1,\\\"              \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all timesheets and notes\\\"],null],\\\"canViewTimesheets\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageTimesheets\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewTimesheets\\\"]]],null],[[[1,\\\"                \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all timesheets and notes\\\"],null],[28,[37,6],[\\\"shared.people-editor.canManageAllTimesheetsAndNotesDescription\\\"],null],\\\"canManageTimesheets\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[8,[39,7],null,[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@optionKeys\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@disabled\\\"],[\\\"powerSelectMultiple\\\",[28,[37,6],[\\\"shared.people-editor.Timesheet workers\\\"],null],\\\"workers\\\",[28,[37,6],[\\\"shared.people-editor.timesheetWorkersDescription\\\"],null],[28,[37,24],[\\\"fullName\\\"],null],[30,0,[\\\"model\\\",\\\"workers\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],true,\\\"fullName\\\",[28,[37,6],[\\\"shared.people-editor.Select a worker grant permissions for\\\"],null],[30,0,[\\\"saveUserPermissions\\\",\\\"isRunning\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseBills\\\"]],[[[1,\\\"              \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all the bills\\\"],null],\\\"canViewBills\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageBills\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewBills\\\"]]],null],[[[1,\\\"                \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all bills\\\"],null],[28,[37,6],[\\\"shared.people-editor.Lets the user create and map bills\\\"],null],\\\"canManageBills\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null]],[]],null],[1,\\\"        \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[28,[37,22],[[30,0,[\\\"reportsPermissionsVisible\\\"]]],null],[28,[37,9],[[30,0,[\\\"reportsPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"common.Reports\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"reportsPermissionsCount\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"reportsPermissionsCount\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,18],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"reportsPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"reportsPermissionsVisible\\\"]],[[[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"alert alert-primary\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,18],[[24,0,\\\"me-2\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"info-circle\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canViewReports\\\",\\\"length\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"shared.people-editor.withThesePermissionsThisSubcontractorCanSeeTheFollowingReports\\\"],null]],[1,\\\"\\\\n                \\\"],[10,1],[14,0,\\\"fw-bold\\\"],[12],[1,[30,0,[\\\"canViewReports\\\"]]],[13],[1,\\\".\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"shared.people-editor.subcontractors.subcontractor.withThesePermissionsThisSubcontractorCanNotSeeAnyReports\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllBudgetDataInReports\\\"],null],\\\"canViewBudgetFinancialReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewBudgetHourReportsLabel\\\"],null],[28,[37,6],[\\\"shared.people-editor.users.user.canViewBudgetHourReportsLabelDescription\\\"],null],\\\"canViewBudgetLabourHourReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all quote data in reports\\\"],null],\\\"canViewQuoteReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,8],[[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseTimesheets\\\"]],[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseBills\\\"]]],null],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllCostDataInReports\\\"],null],\\\"canViewCostFinancialReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllCostDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewActualHourReportsLabel\\\"],null],\\\"canViewCostLabourHourReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all work value data in reports\\\"],null],\\\"canViewChargeupReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllWorkValueDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all progress data in reports\\\"],null],\\\"canViewProgressReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllProgressDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseInvoicingReport\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.Can see all invoicing data in reports\\\"],null],\\\"canViewInvoicingReports\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewInvoicingReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseHealthAndSafety\\\"]],[[[1,\\\"          \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[28,[37,22],[[30,0,[\\\"healthAndSafetyPermissionsVisible\\\"]]],null],[28,[37,9],[[30,0,[\\\"healthAndSafetyPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"common.healthAndSafety\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"healthAndSafetyPermissionsCount\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"healthAndSafetyPermissionsCount\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,18],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"healthAndSafetyPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"healthAndSafetyPermissionsVisible\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canUseHealthAndSafety\\\"],null],\\\"canCreateHealthAndSafety\\\",[28,[37,6],[\\\"shared.people-editor.canUseHealthAndSafetyDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageHealthAndSafety\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canCreateHealthAndSafety\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canManageHealthAndSafety\\\"],null],\\\"canManageHealthAndSafety\\\",[28,[37,6],[\\\"shared.people-editor.canManageHealthAndSafetyDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null],[1,\\\"        \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[28,[37,22],[[30,0,[\\\"settingsPermissionsVisible\\\"]]],null],[28,[37,9],[[30,0,[\\\"settingsPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"common.Settings\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"settingsPermissionsCount\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"settingsPermissionsCount\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,18],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"settingsPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"settingsPermissionsVisible\\\"]],[[[1,\\\"          \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canViewWorkers\\\"],null],\\\"canViewWorkers\\\",[28,[37,6],[\\\"shared.people-editor.Lets users view workers\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-2\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"savePermissions\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Saving permissions\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Save permissions\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[13]],[],false,[\\\"div\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"page-title-breadcrumbs\\\",\\\"ptl-form\\\",\\\"h3\\\",\\\"t\\\",\\\"ptl-input\\\",\\\"or\\\",\\\"not\\\",\\\"gt\\\",\\\"unless\\\",\\\"button\\\",\\\"on\\\",\\\"perform\\\",\\\"includes-feature-flags\\\",\\\"fn\\\",\\\"concat\\\",\\\"fa-icon\\\",\\\"span\\\",\\\"and\\\",\\\"p\\\",\\\"mut\\\",\\\"h4\\\",\\\"array\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/people/subcontractors/subcontractor.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/people/users\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"E9jATaW6\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/people/users.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/people/users/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <div class='mb-1 d-flex align-items-center justify-content-end'>\n      <span class='m-1'>\n        <Input\n          class='form-control'\n          placeholder={{t 'shared.people-editor.users.Search for users'}}\n          data-test-user-search\n          @type='text'\n          @value={{this.searchString}}\n        />\n      </span>\n      {{#if (includes-feature-flags 'canManageUsers')}}\n        <div class='d-flex flex-column flex-lg-row'>\n          <LinkTo\n            @route={{concat this.model.basePath '.users.user'}}\n            @model='new'\n            class='btn btn-success text-white text-nowrap m-1'\n          ><FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Add'}}</LinkTo>\n        </div>\n      {{/if}}\n    </div>\n    <PeopleTable\n      @filteredList={{this.filteredUsers}}\n      @noData={{t 'shared.people-editor.users.No users yet'}}\n      @route={{concat this.model.basePath '.users.user'}}\n      @showLoginAs={{includes-feature-flags 'userIsAdmin'}}\n      @onClickLoginAs={{this.loginAs}}\n    />\n  {{/if}}\n  */\n  {\n    \"id\": \"5RgJo2CI\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"mb-1 d-flex align-items-center justify-content-end\\\"],[12],[1,\\\"\\\\n    \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],[[24,0,\\\"form-control\\\"],[16,\\\"placeholder\\\",[28,[37,5],[\\\"shared.people-editor.users.Search for users\\\"],null]],[24,\\\"data-test-user-search\\\",\\\"\\\"]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[\\\"canManageUsers\\\"],null],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"d-flex flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,7],[[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[[28,[37,8],[[30,0,[\\\"model\\\",\\\"basePath\\\"]],\\\".users.user\\\"],null],\\\"new\\\"]],[[\\\"default\\\"],[[[[8,[39,9],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,5],[\\\"common.Add\\\"],null]]],[]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,10],null,[[\\\"@filteredList\\\",\\\"@noData\\\",\\\"@route\\\",\\\"@showLoginAs\\\",\\\"@onClickLoginAs\\\"],[[30,0,[\\\"filteredUsers\\\"]],[28,[37,5],[\\\"shared.people-editor.users.No users yet\\\"],null],[28,[37,8],[[30,0,[\\\"model\\\",\\\"basePath\\\"]],\\\".users.user\\\"],null],[28,[37,6],[\\\"userIsAdmin\\\"],null],[30,0,[\\\"loginAs\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"span\\\",\\\"input\\\",\\\"t\\\",\\\"includes-feature-flags\\\",\\\"link-to\\\",\\\"concat\\\",\\\"fa-icon\\\",\\\"people-table\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/people/users/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/people/users/user\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='flex-grow-1'>\n    {{#if this.isRunning}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mb-3 ms-1 mt-1'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <PtlForm class='mb-3'>\n        <h3 class='mb-3'>{{t 'common.Details'}}</h3>\n        <PtlInput\n          @type='text'\n          @label={{t 'common.First name'}}\n          @key='firstName'\n          @model={{this.model.userChangeset.last.value}}\n          @required={{this.canEditUser}}\n          @forceValidationVisible={{gt this.saveUser.performCount 0}}\n          disabled={{or (not this.canEditUser) this.saveUser.isRunning}}\n        />\n        <PtlInput\n          @type='text'\n          @label={{t 'common.Last name'}}\n          @key='lastName'\n          @model={{this.model.userChangeset.last.value}}\n          @required={{this.canEditUser}}\n          @forceValidationVisible={{gt this.saveUser.performCount 0}}\n          disabled={{or (not this.canEditUser) this.saveUser.isRunning}}\n        />\n        <PtlInput\n          @type='text'\n          @label={{t 'common.Email'}}\n          @key='email'\n          @model={{this.model.userChangeset.last.value}}\n          @required={{this.canEditUser}}\n          @forceValidationVisible={{gt this.saveUser.performCount 0}}\n          disabled={{or (not this.canEditUser) this.saveUser.isRunning}}\n        />\n        <PtlInput\n          @type='tel'\n          @label={{t 'common.Phone number'}}\n          @key='phoneNumber'\n          @model={{this.model.userChangeset.last.value}}\n          @forceValidationVisible={{gt this.saveUser.performCount 0}}\n          disabled={{or (not this.canEditUser) this.saveUser.isRunning}}\n        />\n        {{#if this.canManageUser}}\n          <div class='d-flex flex-grow-1 mt-2'>\n            {{#unless this.user.isNew}}\n              <button\n                type='button'\n                class='btn btn-link text-danger text-decoration-underline'\n                disabled={{this.deleteUser.isRunning}}\n                {{on 'click' (perform this.deleteUser)}}\n              >\n                {{#if this.deleteUser.isRunning}}\n                  {{t 'shared.people-editor.Deleting user'}}\n                  &hellip;\n                {{else}}\n                  {{t 'shared.people-editor.Delete user'}}\n                {{/if}}\n              </button>\n            {{/unless}}\n  \n            {{#if (includes-feature-flags 'userIsAdmin')}}\n              {{#unless this.user.isNew}}\n                <div class='d-flex justify-content-end ms-auto'>\n                  <button\n                    class='btn btn-link ms-auto text-decoration-underline'\n                    type='button'\n                    {{on 'click' (fn this.loginAs this.user)}}\n                  >\n                    {{concat\n                      (t 'shared.people-editor.Login as')\n                      ' '\n                      this.user.fullName\n                    }}\n                  </button>\n                </div>\n              {{/unless}}\n            {{/if}}\n  \n            {{#if this.canEditUser}}\n              <button\n                type='button'\n                class='btn btn-primary ms-auto'\n                disabled={{this.saveUser.isRunning}}\n                {{on\n                  'click'\n                  (perform this.saveUser this.model.userChangeset.last.value)\n                }}\n              >\n                {{#if this.saveUser.isRunning}}\n                  {{t 'entity.settings.people.users.user.Saving user'}}&hellip;\n                {{else}}\n                  {{if\n                    this.user.isNew\n                    (t 'entity.settings.people.users.user.Create user')\n                    (t 'entity.settings.people.users.user.Save user')\n                  }}\n                {{/if}}\n              </button>\n            {{/if}}\n          </div>\n        {{/if}}\n      </PtlForm>\n  \n      {{#unless\n        (or\n          (or this.user.isNew this.user.lastLoginDate)\n          (not this.canManageUserPermissions)\n        )\n      }}\n        <div class='alert alert-primary' role='alert'>\n          <FaIcon @icon='info-circle' @size='lg' class='me-2' />\n          <span class='me-2'>\n            {{this.user.firstName}}\n            {{t 'shared.people-editor.trySendReminderEmail'}}\n          </span>\n          <button\n            type='button'\n            class='btn btn-outline-primary'\n            {{on\n              'click'\n              (perform\n                this.sendPasswordResetEmail this.model.userChangeset.last.value\n              )\n            }}\n            disabled={{this.sendPasswordResetEmail.isRunning}}\n          >\n            {{#if this.sendPasswordResetEmail.isRunning}}\n              {{t 'shared.people-editor.Sending reminder email'}}&hellip;\n            {{else}}\n              {{t 'shared.people-editor.Send reminder email'}}\n            {{/if}}\n          </button>\n        </div>\n      {{/unless}}\n  \n      {{#if (and this.canManageUserPermissions (not this.user.isNew))}}\n        <PtlForm class='mb-3'>\n          <h3 class='mb-0'>{{t 'shared.people-editor.Permissions'}}</h3>\n  \n          {{#if this.permissionsDescription}}\n            <p class='mb-4'>\n              {{this.permissionsDescription}}\n            </p>\n          {{/if}}\n  \n          {{#if (includes-feature-flags 'userIsEntityAdmin')}}\n            <PtlInput\n              @type='checkbox'\n              @label={{t\n                'entity.settings.people.users.user.Can be a company administrator'\n              }}\n              @key='isCompanyAdministrator'\n              @description={{t\n                'entity.settings.people.users.user.canBeACompanyAdministratorDescription'\n              }}\n              @model={{this.model.permissionsChangeset.last.value}}\n              @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n              disabled={{this.savePermissions.isRunning}}\n            />\n          {{/if}}\n  \n          {{#if (includes-feature-flags 'canUseBuildaPrice')}}\n            {{#unless\n              this.model.permissionsChangeset.last.value.isCompanyAdministrator\n            }}\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'entity.settings.people.users.user.Can be a company manager'\n                }}\n                @key='canManageEverything'\n                @description={{t\n                  'entity.settings.people.users.user.canBeACompanyManagerDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n  \n              {{#unless\n                this.model.permissionsChangeset.last.value.canManageEverything\n              }}\n                <div\n                  class='d-flex align-items-center mb-3'\n                  role='button'\n                  {{on\n                    'click'\n                    (fn\n                      (mut this.projectPermissionsVisible)\n                      (not this.projectPermissionsVisible)\n                    )\n                  }}\n                >\n                  <h4 class='m-0'>\n                    {{t 'common.Project'}}\n                  </h4>\n                  {{#if this.projectPermissionsCount}}\n                    <span class='ms-2 badge bg-info'>\n                      {{this.projectPermissionsCount}}\n                    </span>\n                  {{/if}}\n                  <h4 class='m-0 ms-auto'>\n                    <FaIcon\n                      @icon={{if\n                        this.projectPermissionsVisible\n                        'chevron-down'\n                        'chevron-right'\n                      }}\n                    />\n                  </h4>\n                </div>\n                {{#if this.projectPermissionsVisible}}\n                  <PtlInput\n                    @type='checkbox'\n                    @label={{t 'shared.people-editor.Can see all projects'}}\n                    @key='canViewProjects'\n                    @model={{this.model.permissionsChangeset.last.value}}\n                    @forceValidationVisible={{gt\n                      this.savePermissions.performCount\n                      0\n                    }}\n                    disabled={{this.savePermissions.isRunning}}\n                  />\n                  {{#if\n                    (or\n                      this.model.permissionsChangeset.last.value.canManageProjects\n                      this.model.permissionsChangeset.last.value.canViewProjects\n                    )\n                  }}\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t 'shared.people-editor.Can manage all projects'}}\n                      @description={{t\n                        'shared.people-editor.canManageAllProjectsDescription'\n                      }}\n                      @key='canManageProjects'\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                  {{/if}}\n                  {{#if\n                    (or\n                      this.model.permissionsChangeset.last.value.canViewProjects\n                      this.model.permissionsChangeset.last.value.canViewTasks\n                    )\n                  }}\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t 'shared.people-editor.Can see all tasks'}}\n                      @description={{t\n                        'shared.people-editor.Lets the user see all tasks'\n                      }}\n                      @key='canViewTasks'\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                  {{/if}}\n                  {{#if\n                    (or\n                      this.model.permissionsChangeset.last.value.canManageTasks\n                      this.model.permissionsChangeset.last.value.canViewTasks\n                    )\n                  }}\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t 'shared.people-editor.Can manage all tasks'}}\n                      @description={{t\n                        'shared.people-editor.canManageAllTasksDescription'\n                      }}\n                      @key='canManageTasks'\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                  {{/if}}\n                  {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t\n                        'shared.people-editor.Can see all project budgets'\n                      }}\n                      @description={{t\n                        'shared.people-editor.canSeeAllProjectBudgetsDescription'\n                      }}\n                      @key='canViewBudgets'\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                    {{#if\n                      (or\n                        this.model.permissionsChangeset.last.value.canManageBudgets\n                        this.model.permissionsChangeset.last.value.canViewBudgets\n                      )\n                    }}\n                      <PtlInput\n                        @type='checkbox'\n                        @label={{t\n                          'shared.people-editor.Can manage all project budgets'\n                        }}\n                        @description={{t\n                          'shared.people-editor.canManageAllProjectBudgetsDescription'\n                        }}\n                        @key='canManageBudgets'\n                        @model={{this.model.permissionsChangeset.last.value}}\n                        @forceValidationVisible={{gt\n                          this.savePermissions.performCount\n                          0\n                        }}\n                        disabled={{this.savePermissions.isRunning}}\n                      />\n                    {{/if}}\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t\n                        'shared.people-editor.Can see all project quotes'\n                      }}\n                      @description={{t\n                        'shared.people-editor.canSeeAllProjectQuotesDescription'\n                      }}\n                      @key='canViewQuotes'\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                    {{#if\n                      (or\n                        this.model.permissionsChangeset.last.value.canManageQuotes\n                        this.model.permissionsChangeset.last.value.canViewQuotes\n                      )\n                    }}\n                      <PtlInput\n                        @type='checkbox'\n                        @label={{t\n                          'shared.people-editor.Can manage all project quotes'\n                        }}\n                        @description={{t\n                          'shared.people-editor.canManageAllProjectQuotesDescription'\n                        }}\n                        @key='canManageQuotes'\n                        @model={{this.model.permissionsChangeset.last.value}}\n                        @forceValidationVisible={{gt\n                          this.savePermissions.performCount\n                          0\n                        }}\n                        disabled={{this.savePermissions.isRunning}}\n                      />\n                    {{/if}}\n                  {{/if}}\n                  {{#if this.newFeatureFlags.entityCanUseProjectProgress}}\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t\n                        'shared.people-editor.Can see all project progress'\n                      }}\n                      @description={{t\n                        'shared.people-editor.canSeeAllProjectProgressDescription'\n                      }}\n                      @key='canViewProgress'\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                    {{#if\n                      (or\n                        this.model.permissionsChangeset.last.value.canManageProgress\n                        this.model.permissionsChangeset.last.value.canViewProgress\n                      )\n                    }}\n                      <PtlInput\n                        @type='checkbox'\n                        @label={{t\n                          'shared.people-editor.Can manage all project progress'\n                        }}\n                        @description={{t\n                          'shared.people-editor.canManageAllProjectProgressDescription'\n                        }}\n                        @key='canManageProgress'\n                        @model={{this.model.permissionsChangeset.last.value}}\n                        @forceValidationVisible={{gt\n                          this.savePermissions.performCount\n                          0\n                        }}\n                        disabled={{this.savePermissions.isRunning}}\n                      />\n                    {{/if}}\n                  {{/if}}\n                  {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t 'shared.people-editor.Can see all documents'}}\n                      @description={{t\n                        'shared.people-editor.canSeeAllDocumentsDescription'\n                      }}\n                      @key='canViewFileStorage'\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                    {{#if\n                      (or\n                        this.model.permissionsChangeset.last.value.canManageFileStorage\n                        this.model.permissionsChangeset.last.value.canViewFileStorage\n                      )\n                    }}\n                      <PtlInput\n                        @type='checkbox'\n                        @label={{t\n                          'shared.people-editor.Can manage all documents'\n                        }}\n                        @description={{t\n                          'shared.people-editor.canManageAllDocumentsDescription'\n                        }}\n                        @key='canManageFileStorage'\n                        @model={{this.model.permissionsChangeset.last.value}}\n                        @forceValidationVisible={{gt\n                          this.savePermissions.performCount\n                          0\n                        }}\n                        disabled={{this.savePermissions.isRunning}}\n                      />\n                    {{/if}}\n                  {{/if}}\n                  {{#if this.newFeatureFlags.entityCanUseProducts}}\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t 'shared.people-editor.Can see all products'}}\n                      @description={{t\n                        'shared.people-editor.canSeeAllProductsDescription'\n                      }}\n                      @key='canViewProducts'\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                    {{#if\n                      (or\n                        this.model.permissionsChangeset.last.value.canManageProducts\n                        this.model.permissionsChangeset.last.value.canViewProducts\n                      )\n                    }}\n                      <PtlInput\n                        @type='checkbox'\n                        @label={{t\n                          'shared.people-editor.Can manage all products'\n                        }}\n                        @description={{t\n                          'shared.people-editor.canManageAllProductsDescription'\n                        }}\n                        @key='canManageProducts'\n                        @model={{this.model.permissionsChangeset.last.value}}\n                        @forceValidationVisible={{gt\n                          this.savePermissions.performCount\n                          0\n                        }}\n                        disabled={{this.savePermissions.isRunning}}\n                      />\n                    {{/if}}\n                  {{/if}}\n                  {{#if this.newFeatureFlags.entityCanUseEstimates}}\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t 'shared.people-editor.Can make estimates'}}\n                      @key='canEstimate'\n                      @description={{t\n                        'shared.people-editor.canMakeEstimatesDescription'\n                      }}\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t\n                        'shared.people-editor.canManageEstimateSettings'\n                      }}\n                      @key='canManageEstimateSettings'\n                      @description={{t\n                        'shared.people-editor.canManageEstimateSettingsDescription'\n                      }}\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                  {{/if}}\n                {{/if}}\n                {{#if this.newFeatureFlags.entityCanUseScheduling}}\n                  <div\n                    class='d-flex align-items-center mb-3'\n                    role='button'\n                    {{on\n                      'click'\n                      (fn\n                        (mut this.schedulingPermissionsVisible)\n                        (not this.schedulingPermissionsVisible)\n                      )\n                    }}\n                  >\n                    <h4 class='m-0'>\n                      {{t 'common.Scheduling'}}\n                    </h4>\n                    {{#if this.schedulingPermissionsCount}}\n                      <span class='ms-2 badge bg-info'>\n                        {{this.schedulingPermissionsCount}}\n                      </span>\n                    {{/if}}\n                    <h4 class='m-0 ms-auto'>\n                      <FaIcon\n                        @icon={{if\n                          this.schedulingPermissionsVisible\n                          'chevron-down'\n                          'chevron-right'\n                        }}\n                      />\n                    </h4>\n                  </div>\n                  {{#if this.schedulingPermissionsVisible}}\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t\n                        'shared.people-editor.Can see scheduling reports'\n                      }}\n                      @key='canViewSchedulingReports'\n                      @description={{t\n                        'shared.people-editor.Gives access to see the timeline'\n                      }}\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t\n                        'shared.people-editor.Can make scheduling changes'\n                      }}\n                      @key='canManageSchedulingReports'\n                      @description={{t\n                        'shared.people-editor.canMakeSchedulingChangesDescription'\n                      }}\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                  {{/if}}\n                {{/if}}\n                {{#if\n                  (or\n                    this.newFeatureFlags.entityCanUseTimesheets\n                    this.newFeatureFlags.entityCanUseBills\n                  )\n                }}\n                  <div\n                    class='d-flex align-items-center mb-3'\n                    role='button'\n                    {{on\n                      'click'\n                      (fn\n                        (mut this.allocationsPermissionsVisible)\n                        (not this.allocationsPermissionsVisible)\n                      )\n                    }}\n                  >\n                    <h4 class='m-0'>\n                      {{t 'common.Allocations'}}\n                    </h4>\n                    {{#if this.allocationsPermissionsCount}}\n                      <span class='ms-2 badge bg-info'>\n                        {{this.allocationsPermissionsCount}}\n                      </span>\n                    {{/if}}\n                    <h4 class='m-0 ms-auto'>\n                      <FaIcon\n                        @icon={{if\n                          this.allocationsPermissionsVisible\n                          'chevron-down'\n                          'chevron-right'\n                        }}\n                      />\n                    </h4>\n                  </div>\n  \n                  {{#if this.allocationsPermissionsVisible}}\n                    {{#if this.newFeatureFlags.entityCanUseTimesheets}}\n                      <PtlInput\n                        @type='checkbox'\n                        @label={{t\n                          'shared.people-editor.Can see all timesheets and notes'\n                        }}\n                        @key='canViewTimesheets'\n                        @model={{this.model.permissionsChangeset.last.value}}\n                        disabled={{this.savePermissions.isRunning}}\n                      />\n                      {{#if\n                        (or\n                          this.model.permissionsChangeset.last.value.canManageTimesheets\n                          this.model.permissionsChangeset.last.value.canViewTimesheets\n                        )\n                      }}\n                        <PtlInput\n                          @type='checkbox'\n                          @label={{t\n                            'shared.people-editor.Can manage all timesheets and notes'\n                          }}\n                          @description={{t\n                            'shared.people-editor.canManageAllTimesheetsAndNotesDescription'\n                          }}\n                          @key='canManageTimesheets'\n                          @model={{this.model.permissionsChangeset.last.value}}\n                          disabled={{this.savePermissions.isRunning}}\n                        />\n                      {{/if}}\n                      <PtlInput\n                        @type='powerSelectMultiple'\n                        @label={{t 'shared.people-editor.Timesheet workers'}}\n                        @key='workers'\n                        @description={{t\n                          'shared.people-editor.timesheetWorkersDescription'\n                        }}\n                        @optionKeys={{array 'fullName'}}\n                        @options={{this.model.workers.last.value}}\n                        @model={{this.model.permissionsChangeset.last.value}}\n                        @forceValidationVisible={{gt\n                          this.savePermissions.performCount\n                          0\n                        }}\n                        @searchEnabled={{true}}\n                        @searchField='fullName'\n                        @placeholder={{t\n                          'shared.people-editor.Select a worker grant permissions for'\n                        }}\n                        @disabled={{this.saveUserPermissions.isRunning}}\n                      />\n                    {{/if}}\n                    {{#if this.newFeatureFlags.entityCanUseBills}}\n                      <PtlInput\n                        @type='checkbox'\n                        @label={{t 'shared.people-editor.Can see all the bills'}}\n                        @key='canViewBills'\n                        @model={{this.model.permissionsChangeset.last.value}}\n                        disabled={{this.savePermissions.isRunning}}\n                      />\n                      {{#if\n                        (or\n                          this.model.permissionsChangeset.last.value.canManageBills\n                          this.model.permissionsChangeset.last.value.canViewBills\n                        )\n                      }}\n                        <PtlInput\n                          @type='checkbox'\n                          @label={{t 'shared.people-editor.Can manage all bills'}}\n                          @description={{t\n                            'shared.people-editor.Lets the user create and map bills'\n                          }}\n                          @key='canManageBills'\n                          @model={{this.model.permissionsChangeset.last.value}}\n                          disabled={{this.savePermissions.isRunning}}\n                        />\n                      {{/if}}\n                    {{/if}}\n                    {{#if this.newFeatureFlags.entityCanUseInvoices}}\n                      <PtlInput\n                        @type='checkbox'\n                        @label={{t\n                          'shared.people-editor.users.user.entity.Can see all invoices'\n                        }}\n                        @description={{t\n                          'shared.people-editor.users.user.entity.canViewInvoicesDescription'\n                        }}\n                        @key='canViewInvoices'\n                        @model={{this.model.permissionsChangeset.last.value}}\n                        disabled={{this.savePermissions.isRunning}}\n                      />\n                      {{#if\n                        (or\n                          this.model.permissionsChangeset.last.value.canManageInvoices\n                          this.model.permissionsChangeset.last.value.canViewInvoices\n                        )\n                      }}\n                        <PtlInput\n                          @type='checkbox'\n                          @label={{t\n                            'shared.people-editor.users.user.entity.Can create invoices'\n                          }}\n                          @description={{t\n                            'shared.people-editor.users.user.entity.canManageInvoicesDescription'\n                          }}\n                          @key='canManageInvoices'\n                          @model={{this.model.permissionsChangeset.last.value}}\n                          disabled={{this.savePermissions.isRunning}}\n                        />\n                      {{/if}}\n                      {{#if\n                        (or\n                          this.model.permissionsChangeset.last.value.canManageInvoices\n                          this.model.permissionsChangeset.last.value.canApproveInvoices\n                        )\n                      }}\n                        <PtlInput\n                          @type='checkbox'\n                          @label={{t\n                            'shared.people-editor.users.user.entity.Can approve invoices'\n                          }}\n                          @description={{t\n                            'shared.people-editor.users.user.entity.canApproveInvoicesDescription'\n                          }}\n                          @key='canApproveInvoices'\n                          @model={{this.model.permissionsChangeset.last.value}}\n                          disabled={{this.savePermissions.isRunning}}\n                        />\n                      {{/if}}\n                    {{/if}}\n                    {{#if this.newFeatureFlags.entityCanUsePurchaseOrders}}\n                      <PtlInput\n                        @type='checkbox'\n                        @label={{t\n                          'entity.settings.people.users.user.Can see all the purchase orders'\n                        }}\n                        @description={{t\n                          'entity.settings.people.users.user.canSeeAllThePurchaseOrdersDescription'\n                        }}\n                        @key='canViewPurchaseOrders'\n                        @model={{this.model.permissionsChangeset.last.value}}\n                        disabled={{this.savePermissions.isRunning}}\n                      />\n                      {{#if\n                        (or\n                          this.model.permissionsChangeset.last.value.canManagePurchaseOrders\n                          this.model.permissionsChangeset.last.value.canViewPurchaseOrders\n                        )\n                      }}\n                        <PtlInput\n                          @type='checkbox'\n                          @label={{t\n                            'entity.settings.people.users.user.Can manage all purchase orders'\n                          }}\n                          @description={{t\n                            'entity.settings.people.users.user.canManageAllPurchaseOrdersDescription'\n                          }}\n                          @key='canManagePurchaseOrders'\n                          @model={{this.model.permissionsChangeset.last.value}}\n                          disabled={{this.savePermissions.isRunning}}\n                        />\n                      {{/if}}\n                      {{#if\n                        (or\n                          this.model.permissionsChangeset.last.value.canManagePurchaseOrders\n                          this.model.permissionsChangeset.last.value.canApprovePurchaseOrders\n                        )\n                      }}\n                        <PtlInput\n                          @type='checkbox'\n                          @label={{t\n                            'entity.settings.people.users.user.Can approve all purchase orders'\n                          }}\n                          @description={{t\n                            'entity.settings.people.users.user.canApproveAllPurchaseOrdersDescription'\n                          }}\n                          @key='canApprovePurchaseOrders'\n                          @model={{this.model.permissionsChangeset.last.value}}\n                          disabled={{this.savePermissions.isRunning}}\n                        />\n                      {{/if}}\n                    {{/if}}\n                    {{#if this.newFeatureFlags.entityCanUseStagePayments}}\n                      <PtlInput\n                        @type='checkbox'\n                        @label={{t\n                          'entity.settings.people.users.user.Can see all the stage payments'\n                        }}\n                        @description={{t\n                          'entity.settings.people.users.user.canSeeAllTheStagePaymentsDescription'\n                        }}\n                        @key='canViewStagePayments'\n                        @model={{this.model.permissionsChangeset.last.value}}\n                        disabled={{this.savePermissions.isRunning}}\n                      />\n                      {{#if\n                        (or\n                          this.model.permissionsChangeset.last.value.canManageStagePayments\n                          this.model.permissionsChangeset.last.value.canViewStagePayments\n                        )\n                      }}\n                        <PtlInput\n                          @type='checkbox'\n                          @label={{t\n                            'entity.settings.people.users.user.Can manage all stage payments'\n                          }}\n                          @description={{t\n                            'entity.settings.people.users.user.canManageAllStagePaymentsDescription'\n                          }}\n                          @key='canManageStagePayments'\n                          @model={{this.model.permissionsChangeset.last.value}}\n                          disabled={{this.savePermissions.isRunning}}\n                        />\n                      {{/if}}\n                    {{/if}}\n                  {{/if}}\n                {{/if}}\n                <div\n                  class='d-flex align-items-center mb-3'\n                  role='button'\n                  {{on\n                    'click'\n                    (fn\n                      (mut this.reportsPermissionsVisible)\n                      (not this.reportsPermissionsVisible)\n                    )\n                  }}\n                >\n                  <h4 class='m-0'>\n                    {{t 'common.Reports'}}\n                  </h4>\n                  {{#if this.reportsPermissionsCount}}\n                    <span class='ms-2 badge bg-info'>\n                      {{this.reportsPermissionsCount}}\n                    </span>\n                  {{/if}}\n                  <h4 class='m-0 ms-auto'>\n                    <FaIcon\n                      @icon={{if\n                        this.reportsPermissionsVisible\n                        'chevron-down'\n                        'chevron-right'\n                      }}\n                    />\n                  </h4>\n                </div>\n                {{#if this.reportsPermissionsVisible}}\n                  {{#if this.newFeatureFlags.canUsePayroll}}\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t\n                        'entity.settings.people.users.user.Can run payroll reports'\n                      }}\n                      @key='canViewPayrollReports'\n                      @description={{t\n                        'entity.settings.people.users.user.canRunPayrollReportsDescription'\n                      }}\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                  {{/if}}\n                  {{#if this.newFeatureFlags.canUseReportBuilder}}\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t\n                        'entity.settings.people.users.user.Can use the report builder'\n                      }}\n                      @key='canUseReportBuilderReport'\n                      @description={{t\n                        'entity.settings.people.users.user.canUseTheReportBuilderDescription'\n                      }}\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                  {{/if}}\n  \n                  <div class='alert alert-primary' role='alert'>\n                    <FaIcon @icon='info-circle' @size='lg' class='me-2' />\n                    <span class='me-2'>\n                      {{#if this.canViewReports.length}}\n                        {{t\n                          'shared.people-editor.withThesePermissionsThisSubcontractorCanSeeTheFollowingReports'\n                        }}\n                        <span class='fw-bold'>{{this.canViewReports}}</span>.\n                      {{else}}\n                        {{t\n                          'shared.people-editor.withThesePermissionsThisUserCanNotSeeAnyReports'\n                        }}\n                      {{/if}}\n                    </span>\n                  </div>\n                  {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t\n                        'shared.people-editor.canSeeAllBudgetDataInReports'\n                      }}\n                      @description={{t\n                        'shared.people-editor.users.user.canSeeAllBudgetDataInReportsDescription'\n                      }}\n                      @key='canViewBudgetFinancialReports'\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t\n                        'shared.people-editor.users.user.canViewBudgetHourReportsLabel'\n                      }}\n                      @description={{t\n                        'shared.people-editor.users.user.canViewBudgetHourReportsLabelDescription'\n                      }}\n                      @key='canViewBudgetLabourHourReports'\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t\n                        'shared.people-editor.Can see all quote data in reports'\n                      }}\n                      @key='canViewQuoteReports'\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                  {{/if}}\n                  {{#if\n                    (or\n                      this.newFeatureFlags.entityCanUseTimesheets\n                      this.newFeatureFlags.entityCanUseBills\n                    )\n                  }}\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t\n                        'shared.people-editor.canSeeAllCostDataInReports'\n                      }}\n                      @key='canViewCostFinancialReports'\n                      @description={{t\n                        'shared.people-editor.canSeeAllCostDataInReportsDescription'\n                      }}\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t\n                        'shared.people-editor.users.user.canViewActualHourReportsLabel'\n                      }}\n                      @key='canViewCostLabourHourReports'\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t\n                        'shared.people-editor.Can see all work value data in reports'\n                      }}\n                      @key='canViewChargeupReports'\n                      @description={{t\n                        'shared.people-editor.canSeeAllWorkValueDataInReportsDescription'\n                      }}\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                  {{/if}}\n                  {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t\n                        'shared.people-editor.Can see all progress data in reports'\n                      }}\n                      @key='canViewProgressReports'\n                      @description={{t\n                        'shared.people-editor.canSeeAllProgressDataInReportsDescription'\n                      }}\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                  {{/if}}\n                  {{#if this.newFeatureFlags.entityCanUseInvoicingReport}}\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t\n                        'shared.people-editor.users.user.Can see all invoicing data in reports'\n                      }}\n                      @key='canViewInvoicingReports'\n                      @description={{t\n                        'shared.people-editor.users.user.canViewInvoicingReportsDescription'\n                      }}\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                  {{/if}}\n                  {{#if this.newFeatureFlags.entityCanUseGeofencing}}\n                    <PtlInput\n                      @type='checkbox'\n                      @label='Can see all site access data in reports?'\n                      @key='canViewAccessReports'\n                      @description='Site access reports show real-time site occupancy and access history.'\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                  {{/if}}\n                {{/if}}\n              {{/unless}}\n            {{/unless}}\n          {{/if}}\n  \n          {{#unless\n            this.model.permissionsChangeset.last.value.isCompanyAdministrator\n          }}\n            <div\n              class='d-flex align-items-center mb-3'\n              role='button'\n              {{on\n                'click'\n                (fn\n                  (mut this.settingsPermissionsVisible)\n                  (not this.settingsPermissionsVisible)\n                )\n              }}\n            >\n              <h4 class='m-0'>\n                {{t 'common.Settings'}}\n              </h4>\n  \n              {{#if this.settingsPermissionsCount}}\n                <span class='ms-2 badge bg-info'>\n                  {{this.settingsPermissionsCount}}\n                </span>\n              {{/if}}\n              <h4 class='m-0 ms-auto'>\n                <FaIcon\n                  @icon={{if\n                    this.settingsPermissionsVisible\n                    'chevron-down'\n                    'chevron-right'\n                  }}\n                />\n              </h4>\n            </div>\n            {{#if this.settingsPermissionsVisible}}\n              {{#if (includes-feature-flags 'canUseBuildaPrice')}}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'shared.people-editor.canViewWorkers'}}\n                  @key='canViewWorkers'\n                  @description={{t\n                    'shared.people-editor.Lets users view workers'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  disabled={{this.savePermissions.isRunning}}\n                />\n                {{#if\n                  (or\n                    this.model.permissionsChangeset.last.value.canManageWorkers\n                    this.model.permissionsChangeset.last.value.canViewWorkers\n                  )\n                }}\n                  <PtlInput\n                    @type='checkbox'\n                    @label={{t\n                      'entity.settings.people.users.user.canManageWorkers'\n                    }}\n                    @key='canManageWorkers'\n                    @description={{t\n                      'entity.settings.people.users.user.canManageWorkersDescription'\n                    }}\n                    @model={{this.model.permissionsChangeset.last.value}}\n                    @forceValidationVisible={{gt\n                      this.savePermissions.performCount\n                      0\n                    }}\n                    disabled={{this.savePermissions.isRunning}}\n                  />\n                {{/if}}\n              {{/if}}\n  \n              <PtlInput\n                @type='checkbox'\n                @label={{t 'entity.settings.people.users.user.canViewUsers'}}\n                @key='canViewUsers'\n                @description={{t\n                  'entity.settings.people.users.user.canViewUsersDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n              {{#if\n                (or\n                  this.model.permissionsChangeset.last.value.canManageUsers\n                  this.model.permissionsChangeset.last.value.canViewUsers\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'entity.settings.people.users.user.canManageUsers'}}\n                  @key='canManageUsers'\n                  @description={{t\n                    'entity.settings.people.users.user.canManageUsersDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  disabled={{this.savePermissions.isRunning}}\n                />\n              {{/if}}\n  \n              {{#if (includes-feature-flags 'canUseIntegrations')}}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'entity.settings.people.users.user.canManageIntegrations'\n                  }}\n                  @key='canManageIntegrations'\n                  @description={{t\n                    'entity.settings.people.users.user.canManageIntegrationsDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  disabled={{this.savePermissions.isRunning}}\n                />\n              {{/if}}\n            {{/if}}\n          {{/unless}}\n  \n          {{#if (includes-feature-flags 'canUseFinancialReporting')}}\n            {{#unless\n              this.model.permissionsChangeset.last.value.isCompanyAdministrator\n            }}\n              <div\n                class='d-flex align-items-center mb-3'\n                role='button'\n                {{on\n                  'click'\n                  (fn\n                    (mut this.financialReportingPermissionsVisible)\n                    (not this.financialReportingPermissionsVisible)\n                  )\n                }}\n              >\n                <h4 class='m-0'>\n                  {{t 'common.Financial portal'}}\n                </h4>\n                {{#if this.financialReportingPermissionsCount}}\n                  <span class='ms-2 badge bg-info'>\n                    {{this.financialReportingPermissionsCount}}\n                  </span>\n                {{/if}}\n                <h4 class='m-0 ms-auto'>\n                  <FaIcon\n                    @icon={{if\n                      this.financialReportingPermissionsVisible\n                      'chevron-down'\n                      'chevron-right'\n                    }}\n                  />\n                </h4>\n              </div>\n  \n              {{#if this.financialReportingPermissionsVisible}}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'entity.settings.people.users.user.Can view financials'\n                  }}\n                  @key='canViewFinancialReporting'\n                  @description={{t\n                    'entity.settings.people.users.user.canViewFinancialsDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  disabled={{this.savePermissions.isRunning}}\n                />\n                {{#if\n                  this.model.permissionsChangeset.last.value.canViewFinancialReporting\n                }}\n                  <PtlInput\n                    @type='checkbox'\n                    @label={{t\n                      'entity.settings.people.users.user.Can manage financials'\n                    }}\n                    @key='canManageFinancialReporting'\n                    @description={{t\n                      'entity.settings.people.users.user.canManageFinancialsDescription'\n                    }}\n                    @model={{this.model.permissionsChangeset.last.value}}\n                    @forceValidationVisible={{gt\n                      this.savePermissions.performCount\n                      0\n                    }}\n                    disabled={{this.savePermissions.isRunning}}\n                  />\n                {{/if}}\n              {{/if}}\n            {{/unless}}\n          {{/if}}\n  \n          {{#if this.newFeatureFlags.entityCanUseHealthAndSafety}}\n            <div\n              class='d-flex align-items-center mb-3'\n              role='button'\n              {{on\n                'click'\n                (fn\n                  (mut this.healthAndSafetyPermissionsVisible)\n                  (not this.healthAndSafetyPermissionsVisible)\n                )\n              }}\n            >\n              <h4 class='m-0'>\n                {{t 'common.healthAndSafety'}}\n              </h4>\n              {{#if this.healthAndSafetyPermissionsCount}}\n                <span class='ms-2 badge bg-info'>\n                  {{this.healthAndSafetyPermissionsCount}}\n                </span>\n              {{/if}}\n              <h4 class='m-0 ms-auto'>\n                <FaIcon\n                  @icon={{if\n                    this.healthAndSafetyPermissionsVisible\n                    'chevron-down'\n                    'chevron-right'\n                  }}\n                />\n              </h4>\n            </div>\n            {{#if this.healthAndSafetyPermissionsVisible}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.canUseHealthAndSafety'}}\n                @key='canCreateHealthAndSafety'\n                @description={{t\n                  'shared.people-editor.canUseHealthAndSafetyDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n              {{#if\n                (or\n                  this.model.permissionsChangeset.last.value.canManageHealthAndSafety\n                  this.model.permissionsChangeset.last.value.canCreateHealthAndSafety\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'shared.people-editor.canManageHealthAndSafety'}}\n                  @key='canManageHealthAndSafety'\n                  @description={{t\n                    'shared.people-editor.canManageHealthAndSafetyDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  disabled={{this.savePermissions.isRunning}}\n                />\n              {{/if}}\n            {{/if}}\n          {{/if}}\n  \n          <div class='d-flex flex-grow-1 mt-2'>\n            <button\n              type='button'\n              class='btn btn-primary ms-auto'\n              disabled={{this.savePermissions.isRunning}}\n              {{on\n                'click'\n                (perform\n                  this.savePermissions this.model.permissionsChangeset.last.value\n                )\n              }}\n            >\n              {{#if this.savePermissions.isRunning}}\n                {{t 'shared.people-editor.Saving permissions'}}&hellip;\n              {{else}}\n                {{t 'shared.people-editor.Save permissions'}}\n              {{/if}}\n            </button>\n          </div>\n        </PtlForm>\n      {{/if}}\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"iepkcC2B\",\n    \"block\": \"[[[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-3 ms-1 mt-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,3],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-3\\\"],[12],[1,[28,[35,6],[\\\"common.Details\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[28,[37,9],[[30,0,[\\\"canEditUser\\\"]]],null],[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.First name\\\"],null],\\\"firstName\\\",[30,0,[\\\"model\\\",\\\"userChangeset\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"canEditUser\\\"]],[28,[37,10],[[30,0,[\\\"saveUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[28,[37,9],[[30,0,[\\\"canEditUser\\\"]]],null],[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Last name\\\"],null],\\\"lastName\\\",[30,0,[\\\"model\\\",\\\"userChangeset\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"canEditUser\\\"]],[28,[37,10],[[30,0,[\\\"saveUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[28,[37,9],[[30,0,[\\\"canEditUser\\\"]]],null],[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Email\\\"],null],\\\"email\\\",[30,0,[\\\"model\\\",\\\"userChangeset\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"canEditUser\\\"]],[28,[37,10],[[30,0,[\\\"saveUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[28,[37,9],[[30,0,[\\\"canEditUser\\\"]]],null],[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"tel\\\",[28,[37,6],[\\\"common.Phone number\\\"],null],\\\"phoneNumber\\\",[30,0,[\\\"model\\\",\\\"userChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canManageUser\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"user\\\",\\\"isNew\\\"]]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteUser\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"deleteUser\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteUser\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Deleting user\\\"],null]],[1,\\\"\\\\n                …\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Delete user\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,15],[\\\"userIsAdmin\\\"],null],[[[41,[51,[30,0,[\\\"user\\\",\\\"isNew\\\"]]],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"d-flex justify-content-end ms-auto\\\"],[12],[1,\\\"\\\\n                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link ms-auto text-decoration-underline\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"loginAs\\\"]],[30,0,[\\\"user\\\"]]],null]],null],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,17],[[28,[37,6],[\\\"shared.people-editor.Login as\\\"],null],\\\" \\\",[30,0,[\\\"user\\\",\\\"fullName\\\"]]],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canEditUser\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"saveUser\\\"]],[30,0,[\\\"model\\\",\\\"userChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"entity.settings.people.users.user.Saving user\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[52,[30,0,[\\\"user\\\",\\\"isNew\\\"]],[28,[37,6],[\\\"entity.settings.people.users.user.Create user\\\"],null],[28,[37,6],[\\\"entity.settings.people.users.user.Save user\\\"],null]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[28,[37,8],[[28,[37,8],[[30,0,[\\\"user\\\",\\\"isNew\\\"]],[30,0,[\\\"user\\\",\\\"lastLoginDate\\\"]]],null],[28,[37,9],[[30,0,[\\\"canManageUserPermissions\\\"]]],null]],null]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"alert alert-primary\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,18],[[24,0,\\\"me-2\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"info-circle\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"user\\\",\\\"firstName\\\"]]],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"shared.people-editor.trySendReminderEmail\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-outline-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"sendPasswordResetEmail\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"sendPasswordResetEmail\\\"]],[30,0,[\\\"model\\\",\\\"userChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"sendPasswordResetEmail\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Sending reminder email\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Send reminder email\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"canManageUserPermissions\\\"]],[28,[37,9],[[30,0,[\\\"user\\\",\\\"isNew\\\"]]],null]],null],[[[1,\\\"      \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-0\\\"],[12],[1,[28,[35,6],[\\\"shared.people-editor.Permissions\\\"],null]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"permissionsDescription\\\"]],[[[1,\\\"          \\\"],[10,2],[14,0,\\\"mb-4\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[30,0,[\\\"permissionsDescription\\\"]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,15],[\\\"userIsEntityAdmin\\\"],null],[[[1,\\\"          \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.settings.people.users.user.Can be a company administrator\\\"],null],\\\"isCompanyAdministrator\\\",[28,[37,6],[\\\"entity.settings.people.users.user.canBeACompanyAdministratorDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,15],[\\\"canUseBuildaPrice\\\"],null],[[[41,[51,[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"isCompanyAdministrator\\\"]]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.settings.people.users.user.Can be a company manager\\\"],null],\\\"canManageEverything\\\",[28,[37,6],[\\\"entity.settings.people.users.user.canBeACompanyManagerDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageEverything\\\"]]],[[[1,\\\"              \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[28,[37,22],[[30,0,[\\\"projectPermissionsVisible\\\"]]],null],[28,[37,9],[[30,0,[\\\"projectPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n                \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,6],[\\\"common.Project\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"projectPermissionsCount\\\"]],[[[1,\\\"                  \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[30,0,[\\\"projectPermissionsCount\\\"]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n                  \\\"],[8,[39,18],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"projectPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"projectPermissionsVisible\\\"]],[[[1,\\\"                \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all projects\\\"],null],\\\"canViewProjects\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageProjects\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewProjects\\\"]]],null],[[[1,\\\"                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all projects\\\"],null],[28,[37,6],[\\\"shared.people-editor.canManageAllProjectsDescription\\\"],null],\\\"canManageProjects\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewProjects\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewTasks\\\"]]],null],[[[1,\\\"                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all tasks\\\"],null],[28,[37,6],[\\\"shared.people-editor.Lets the user see all tasks\\\"],null],\\\"canViewTasks\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageTasks\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewTasks\\\"]]],null],[[[1,\\\"                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all tasks\\\"],null],[28,[37,6],[\\\"shared.people-editor.canManageAllTasksDescription\\\"],null],\\\"canManageTasks\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all project budgets\\\"],null],[28,[37,6],[\\\"shared.people-editor.canSeeAllProjectBudgetsDescription\\\"],null],\\\"canViewBudgets\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageBudgets\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewBudgets\\\"]]],null],[[[1,\\\"                    \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all project budgets\\\"],null],[28,[37,6],[\\\"shared.people-editor.canManageAllProjectBudgetsDescription\\\"],null],\\\"canManageBudgets\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all project quotes\\\"],null],[28,[37,6],[\\\"shared.people-editor.canSeeAllProjectQuotesDescription\\\"],null],\\\"canViewQuotes\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageQuotes\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewQuotes\\\"]]],null],[[[1,\\\"                    \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all project quotes\\\"],null],[28,[37,6],[\\\"shared.people-editor.canManageAllProjectQuotesDescription\\\"],null],\\\"canManageQuotes\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectProgress\\\"]],[[[1,\\\"                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all project progress\\\"],null],[28,[37,6],[\\\"shared.people-editor.canSeeAllProjectProgressDescription\\\"],null],\\\"canViewProgress\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageProgress\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewProgress\\\"]]],null],[[[1,\\\"                    \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all project progress\\\"],null],[28,[37,6],[\\\"shared.people-editor.canManageAllProjectProgressDescription\\\"],null],\\\"canManageProgress\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all documents\\\"],null],[28,[37,6],[\\\"shared.people-editor.canSeeAllDocumentsDescription\\\"],null],\\\"canViewFileStorage\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageFileStorage\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewFileStorage\\\"]]],null],[[[1,\\\"                    \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all documents\\\"],null],[28,[37,6],[\\\"shared.people-editor.canManageAllDocumentsDescription\\\"],null],\\\"canManageFileStorage\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProducts\\\"]],[[[1,\\\"                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all products\\\"],null],[28,[37,6],[\\\"shared.people-editor.canSeeAllProductsDescription\\\"],null],\\\"canViewProducts\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageProducts\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewProducts\\\"]]],null],[[[1,\\\"                    \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all products\\\"],null],[28,[37,6],[\\\"shared.people-editor.canManageAllProductsDescription\\\"],null],\\\"canManageProducts\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseEstimates\\\"]],[[[1,\\\"                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can make estimates\\\"],null],\\\"canEstimate\\\",[28,[37,6],[\\\"shared.people-editor.canMakeEstimatesDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canManageEstimateSettings\\\"],null],\\\"canManageEstimateSettings\\\",[28,[37,6],[\\\"shared.people-editor.canManageEstimateSettingsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseScheduling\\\"]],[[[1,\\\"                \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[28,[37,22],[[30,0,[\\\"schedulingPermissionsVisible\\\"]]],null],[28,[37,9],[[30,0,[\\\"schedulingPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,6],[\\\"common.Scheduling\\\"],null]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"schedulingPermissionsCount\\\"]],[[[1,\\\"                    \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[30,0,[\\\"schedulingPermissionsCount\\\"]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                  \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n                    \\\"],[8,[39,18],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"schedulingPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"schedulingPermissionsVisible\\\"]],[[[1,\\\"                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see scheduling reports\\\"],null],\\\"canViewSchedulingReports\\\",[28,[37,6],[\\\"shared.people-editor.Gives access to see the timeline\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can make scheduling changes\\\"],null],\\\"canManageSchedulingReports\\\",[28,[37,6],[\\\"shared.people-editor.canMakeSchedulingChangesDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[28,[37,8],[[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseTimesheets\\\"]],[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseBills\\\"]]],null],[[[1,\\\"                \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[28,[37,22],[[30,0,[\\\"allocationsPermissionsVisible\\\"]]],null],[28,[37,9],[[30,0,[\\\"allocationsPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,6],[\\\"common.Allocations\\\"],null]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"allocationsPermissionsCount\\\"]],[[[1,\\\"                    \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[30,0,[\\\"allocationsPermissionsCount\\\"]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                  \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n                    \\\"],[8,[39,18],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"allocationsPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"allocationsPermissionsVisible\\\"]],[[[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseTimesheets\\\"]],[[[1,\\\"                    \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all timesheets and notes\\\"],null],\\\"canViewTimesheets\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageTimesheets\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewTimesheets\\\"]]],null],[[[1,\\\"                      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all timesheets and notes\\\"],null],[28,[37,6],[\\\"shared.people-editor.canManageAllTimesheetsAndNotesDescription\\\"],null],\\\"canManageTimesheets\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                    \\\"],[8,[39,7],null,[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@optionKeys\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@disabled\\\"],[\\\"powerSelectMultiple\\\",[28,[37,6],[\\\"shared.people-editor.Timesheet workers\\\"],null],\\\"workers\\\",[28,[37,6],[\\\"shared.people-editor.timesheetWorkersDescription\\\"],null],[28,[37,24],[\\\"fullName\\\"],null],[30,0,[\\\"model\\\",\\\"workers\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],true,\\\"fullName\\\",[28,[37,6],[\\\"shared.people-editor.Select a worker grant permissions for\\\"],null],[30,0,[\\\"saveUserPermissions\\\",\\\"isRunning\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseBills\\\"]],[[[1,\\\"                    \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all the bills\\\"],null],\\\"canViewBills\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageBills\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewBills\\\"]]],null],[[[1,\\\"                      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all bills\\\"],null],[28,[37,6],[\\\"shared.people-editor.Lets the user create and map bills\\\"],null],\\\"canManageBills\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseInvoices\\\"]],[[[1,\\\"                    \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.entity.Can see all invoices\\\"],null],[28,[37,6],[\\\"shared.people-editor.users.user.entity.canViewInvoicesDescription\\\"],null],\\\"canViewInvoices\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageInvoices\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewInvoices\\\"]]],null],[[[1,\\\"                      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.entity.Can create invoices\\\"],null],[28,[37,6],[\\\"shared.people-editor.users.user.entity.canManageInvoicesDescription\\\"],null],\\\"canManageInvoices\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageInvoices\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canApproveInvoices\\\"]]],null],[[[1,\\\"                      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.entity.Can approve invoices\\\"],null],[28,[37,6],[\\\"shared.people-editor.users.user.entity.canApproveInvoicesDescription\\\"],null],\\\"canApproveInvoices\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUsePurchaseOrders\\\"]],[[[1,\\\"                    \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.settings.people.users.user.Can see all the purchase orders\\\"],null],[28,[37,6],[\\\"entity.settings.people.users.user.canSeeAllThePurchaseOrdersDescription\\\"],null],\\\"canViewPurchaseOrders\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManagePurchaseOrders\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewPurchaseOrders\\\"]]],null],[[[1,\\\"                      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.settings.people.users.user.Can manage all purchase orders\\\"],null],[28,[37,6],[\\\"entity.settings.people.users.user.canManageAllPurchaseOrdersDescription\\\"],null],\\\"canManagePurchaseOrders\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManagePurchaseOrders\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canApprovePurchaseOrders\\\"]]],null],[[[1,\\\"                      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.settings.people.users.user.Can approve all purchase orders\\\"],null],[28,[37,6],[\\\"entity.settings.people.users.user.canApproveAllPurchaseOrdersDescription\\\"],null],\\\"canApprovePurchaseOrders\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseStagePayments\\\"]],[[[1,\\\"                    \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.settings.people.users.user.Can see all the stage payments\\\"],null],[28,[37,6],[\\\"entity.settings.people.users.user.canSeeAllTheStagePaymentsDescription\\\"],null],\\\"canViewStagePayments\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageStagePayments\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewStagePayments\\\"]]],null],[[[1,\\\"                      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.settings.people.users.user.Can manage all stage payments\\\"],null],[28,[37,6],[\\\"entity.settings.people.users.user.canManageAllStagePaymentsDescription\\\"],null],\\\"canManageStagePayments\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null]],[]],null],[1,\\\"              \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[28,[37,22],[[30,0,[\\\"reportsPermissionsVisible\\\"]]],null],[28,[37,9],[[30,0,[\\\"reportsPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n                \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,6],[\\\"common.Reports\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"reportsPermissionsCount\\\"]],[[[1,\\\"                  \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[30,0,[\\\"reportsPermissionsCount\\\"]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n                  \\\"],[8,[39,18],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"reportsPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"reportsPermissionsVisible\\\"]],[[[41,[30,0,[\\\"newFeatureFlags\\\",\\\"canUsePayroll\\\"]],[[[1,\\\"                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.settings.people.users.user.Can run payroll reports\\\"],null],\\\"canViewPayrollReports\\\",[28,[37,6],[\\\"entity.settings.people.users.user.canRunPayrollReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"canUseReportBuilder\\\"]],[[[1,\\\"                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.settings.people.users.user.Can use the report builder\\\"],null],\\\"canUseReportBuilderReport\\\",[28,[37,6],[\\\"entity.settings.people.users.user.canUseTheReportBuilderDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"alert alert-primary\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n                  \\\"],[8,[39,18],[[24,0,\\\"me-2\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"info-circle\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n                  \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canViewReports\\\",\\\"length\\\"]],[[[1,\\\"                      \\\"],[1,[28,[35,6],[\\\"shared.people-editor.withThesePermissionsThisSubcontractorCanSeeTheFollowingReports\\\"],null]],[1,\\\"\\\\n                      \\\"],[10,1],[14,0,\\\"fw-bold\\\"],[12],[1,[30,0,[\\\"canViewReports\\\"]]],[13],[1,\\\".\\\\n\\\"]],[]],[[[1,\\\"                      \\\"],[1,[28,[35,6],[\\\"shared.people-editor.withThesePermissionsThisUserCanNotSeeAnyReports\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllBudgetDataInReports\\\"],null],[28,[37,6],[\\\"shared.people-editor.users.user.canSeeAllBudgetDataInReportsDescription\\\"],null],\\\"canViewBudgetFinancialReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewBudgetHourReportsLabel\\\"],null],[28,[37,6],[\\\"shared.people-editor.users.user.canViewBudgetHourReportsLabelDescription\\\"],null],\\\"canViewBudgetLabourHourReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all quote data in reports\\\"],null],\\\"canViewQuoteReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,8],[[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseTimesheets\\\"]],[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseBills\\\"]]],null],[[[1,\\\"                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllCostDataInReports\\\"],null],\\\"canViewCostFinancialReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllCostDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewActualHourReportsLabel\\\"],null],\\\"canViewCostLabourHourReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all work value data in reports\\\"],null],\\\"canViewChargeupReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllWorkValueDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all progress data in reports\\\"],null],\\\"canViewProgressReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllProgressDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseInvoicingReport\\\"]],[[[1,\\\"                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.Can see all invoicing data in reports\\\"],null],\\\"canViewInvoicingReports\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewInvoicingReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseGeofencing\\\"]],[[[1,\\\"                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can see all site access data in reports?\\\",\\\"canViewAccessReports\\\",\\\"Site access reports show real-time site occupancy and access history.\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null]],[]],null]],[]],null],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"isCompanyAdministrator\\\"]]],[[[1,\\\"          \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[28,[37,22],[[30,0,[\\\"settingsPermissionsVisible\\\"]]],null],[28,[37,9],[[30,0,[\\\"settingsPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"common.Settings\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"settingsPermissionsCount\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"settingsPermissionsCount\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,18],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"settingsPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"settingsPermissionsVisible\\\"]],[[[41,[28,[37,15],[\\\"canUseBuildaPrice\\\"],null],[[[1,\\\"              \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canViewWorkers\\\"],null],\\\"canViewWorkers\\\",[28,[37,6],[\\\"shared.people-editor.Lets users view workers\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageWorkers\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewWorkers\\\"]]],null],[[[1,\\\"                \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.settings.people.users.user.canManageWorkers\\\"],null],\\\"canManageWorkers\\\",[28,[37,6],[\\\"entity.settings.people.users.user.canManageWorkersDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.settings.people.users.user.canViewUsers\\\"],null],\\\"canViewUsers\\\",[28,[37,6],[\\\"entity.settings.people.users.user.canViewUsersDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageUsers\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewUsers\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.settings.people.users.user.canManageUsers\\\"],null],\\\"canManageUsers\\\",[28,[37,6],[\\\"entity.settings.people.users.user.canManageUsersDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,15],[\\\"canUseIntegrations\\\"],null],[[[1,\\\"              \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.settings.people.users.user.canManageIntegrations\\\"],null],\\\"canManageIntegrations\\\",[28,[37,6],[\\\"entity.settings.people.users.user.canManageIntegrationsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,15],[\\\"canUseFinancialReporting\\\"],null],[[[41,[51,[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"isCompanyAdministrator\\\"]]],[[[1,\\\"            \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[28,[37,22],[[30,0,[\\\"financialReportingPermissionsVisible\\\"]]],null],[28,[37,9],[[30,0,[\\\"financialReportingPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n              \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,6],[\\\"common.Financial portal\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"financialReportingPermissionsCount\\\"]],[[[1,\\\"                \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[30,0,[\\\"financialReportingPermissionsCount\\\"]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,18],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"financialReportingPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"financialReportingPermissionsVisible\\\"]],[[[1,\\\"              \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.settings.people.users.user.Can view financials\\\"],null],\\\"canViewFinancialReporting\\\",[28,[37,6],[\\\"entity.settings.people.users.user.canViewFinancialsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewFinancialReporting\\\"]],[[[1,\\\"                \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.settings.people.users.user.Can manage financials\\\"],null],\\\"canManageFinancialReporting\\\",[28,[37,6],[\\\"entity.settings.people.users.user.canManageFinancialsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseHealthAndSafety\\\"]],[[[1,\\\"          \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[28,[37,22],[[30,0,[\\\"healthAndSafetyPermissionsVisible\\\"]]],null],[28,[37,9],[[30,0,[\\\"healthAndSafetyPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"common.healthAndSafety\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"healthAndSafetyPermissionsCount\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"healthAndSafetyPermissionsCount\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,18],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"healthAndSafetyPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"healthAndSafetyPermissionsVisible\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canUseHealthAndSafety\\\"],null],\\\"canCreateHealthAndSafety\\\",[28,[37,6],[\\\"shared.people-editor.canUseHealthAndSafetyDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageHealthAndSafety\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canCreateHealthAndSafety\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canManageHealthAndSafety\\\"],null],\\\"canManageHealthAndSafety\\\",[28,[37,6],[\\\"shared.people-editor.canManageHealthAndSafetyDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-2\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"savePermissions\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Saving permissions\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Save permissions\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[13]],[],false,[\\\"div\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"page-title-breadcrumbs\\\",\\\"ptl-form\\\",\\\"h3\\\",\\\"t\\\",\\\"ptl-input\\\",\\\"or\\\",\\\"not\\\",\\\"gt\\\",\\\"unless\\\",\\\"button\\\",\\\"on\\\",\\\"perform\\\",\\\"includes-feature-flags\\\",\\\"fn\\\",\\\"concat\\\",\\\"fa-icon\\\",\\\"span\\\",\\\"and\\\",\\\"p\\\",\\\"mut\\\",\\\"h4\\\",\\\"array\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/people/users/user.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/people/workers\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"ob0AmGTn\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/people/workers.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/people/workers/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <div class='float-end mb-1 d-flex align-items-center'>\n      <span class='m-1'>\n        <SelectInput\n          @value={{this.filter}}\n          @action={{fn (mut this.filter)}}\n          @class='form-control select-box'\n          data-test-worker-filter\n          as |si|\n        >\n          <si.option @value='active'>{{t\n              'entity.settings.people.workers.Active workers'\n            }}</si.option>\n          <si.option @value='all'>{{t\n              'entity.settings.people.workers.All workers'\n            }}</si.option>\n          <si.option @value='inactive'>{{t\n              'entity.settings.people.workers.Inactive workers'\n            }}</si.option>\n        </SelectInput>\n      </span>\n      <span class='m-1'>\n        <Input\n          class='form-control'\n          placeholder={{t 'shared.people-editor.workers.Search for workers'}}\n          @type='text'\n          @value={{this.searchString}}\n          data-test-worker-search\n        />\n      </span>\n      {{#if (includes-feature-flags 'canManageWorkers')}}\n        <div class='d-flex flex-column flex-lg-row'>\n          <LinkTo\n            @route={{concat this.model.basePath '.workers.worker'}}\n            @model='new'\n            class='btn btn-success text-white text-nowrap m-1'\n            data-test-add-worker\n          ><FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Add'}}</LinkTo>\n        </div>\n      {{/if}}\n    </div>\n    <PeopleTable\n      @filteredList={{this.filteredWorkers}}\n      @noData={{t 'shared.people-editor.workers.No workers yet'}}\n      @route={{concat this.model.basePath '.workers.worker'}}\n      @showWorkerCode={{true}}\n      @onCopyAuthCode={{this.copyAuthCode}}\n    />\n  {{/if}}\n  */\n  {\n    \"id\": \"ouIJAUog\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"float-end mb-1 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],[[24,\\\"data-test-worker-filter\\\",\\\"\\\"]],[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"filter\\\"]],[28,[37,5],[[28,[37,6],[[30,0,[\\\"filter\\\"]]],null]],null],\\\"form-control select-box\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"active\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,7],[\\\"entity.settings.people.workers.Active workers\\\"],null]]],[]]]]],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"all\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,7],[\\\"entity.settings.people.workers.All workers\\\"],null]]],[]]]]],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"inactive\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,7],[\\\"entity.settings.people.workers.Inactive workers\\\"],null]]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,8],[[24,0,\\\"form-control\\\"],[16,\\\"placeholder\\\",[28,[37,7],[\\\"shared.people-editor.workers.Search for workers\\\"],null]],[24,\\\"data-test-worker-search\\\",\\\"\\\"]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,9],[\\\"canManageWorkers\\\"],null],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"d-flex flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,10],[[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[24,\\\"data-test-add-worker\\\",\\\"\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[[28,[37,11],[[30,0,[\\\"model\\\",\\\"basePath\\\"]],\\\".workers.worker\\\"],null],\\\"new\\\"]],[[\\\"default\\\"],[[[[8,[39,12],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,7],[\\\"common.Add\\\"],null]]],[]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,13],null,[[\\\"@filteredList\\\",\\\"@noData\\\",\\\"@route\\\",\\\"@showWorkerCode\\\",\\\"@onCopyAuthCode\\\"],[[30,0,[\\\"filteredWorkers\\\"]],[28,[37,7],[\\\"shared.people-editor.workers.No workers yet\\\"],null],[28,[37,11],[[30,0,[\\\"model\\\",\\\"basePath\\\"]],\\\".workers.worker\\\"],null],true,[30,0,[\\\"copyAuthCode\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]]]],[\\\"si\\\"],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"span\\\",\\\"select-input\\\",\\\"fn\\\",\\\"mut\\\",\\\"t\\\",\\\"input\\\",\\\"includes-feature-flags\\\",\\\"link-to\\\",\\\"concat\\\",\\\"fa-icon\\\",\\\"people-table\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/people/workers/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/people/workers/worker\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='flex-grow-1'>\n    {{#if this.isRunning}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mb-3 ms-1 mt-1'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <PtlForm class='mb-3'>\n        <h3 class='mb-3'>{{t 'common.Details'}}</h3>\n        <PtlInput\n          @type='text'\n          @label={{t 'common.First name'}}\n          @key='firstName'\n          @model={{this.model.workerChangeset.last.value}}\n          @required={{true}}\n          @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n          disabled={{or this.saveWorker.isRunning (not this.canManageWorkers)}}\n        />\n        <PtlInput\n          @type='text'\n          @label={{t 'common.Last name'}}\n          @key='lastName'\n          @model={{this.model.workerChangeset.last.value}}\n          @required={{true}}\n          @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n          disabled={{or this.saveWorker.isRunning (not this.canManageWorkers)}}\n        />\n        <PtlInput\n          @type='text'\n          @label={{t 'shared.contacts.Contact email'}}\n          @description={{t\n            'entity.settings.people.workers.worker.contactEmailDescription'\n          }}\n          @key='email'\n          @model={{this.model.workerChangeset.last.value}}\n          @required={{true}}\n          @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n          disabled={{or this.saveWorker.isRunning (not this.canManageWorkers)}}\n        />\n        <PtlInput\n          @type='text'\n          @label={{t 'common.Phone number'}}\n          @key='phoneNumber'\n          @model={{this.model.workerChangeset.last.value}}\n          @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n          disabled={{or this.saveWorker.isRunning (not this.canManageWorkers)}}\n        />\n  \n        <PtlInput\n          @type='select'\n          @label={{t 'common.Language'}}\n          @key='language'\n          @options={{this.languages}}\n          @model={{this.model.workerChangeset.last.value}}\n          @forceValidationVisible={{gt this.saveUser.performCount 0}}\n          disabled={{or this.saveWorker.isRunning (not this.canManageWorkers)}}\n        />\n  \n        {{#if this.canManageWorkers}}\n          {{#if this.canUseWorkerType}}\n            <PtlInput\n              @type='select'\n              @label={{t 'entity.settings.people.workers.worker.Worker type'}}\n              @key='isContractor'\n              @options={{this.workerTypes}}\n              @description={{t\n                'entity.settings.people.workers.worker.workerTypeDescription'\n              }}\n              @model={{this.model.workerChangeset.last.value}}\n              @required={{true}}\n              @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n              disabled={{or\n                this.saveWorker.isRunning\n                (not this.canManageWorkers)\n              }}\n            />\n          {{/if}}\n          {{#unless this.model.workerChangeset.last.value.isContractor}}\n            {{#if this.canUsePayRate}}\n              <PtlInput\n                @type='currency'\n                @label={{t 'common.Pay rate'}}\n                @key='payRate'\n                @formatterOptions={{hash dashZero=false}}\n                @model={{this.model.workerChangeset.last.value}}\n                @required={{true}}\n                @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n                disabled={{or\n                  this.saveWorker.isRunning\n                  (not this.canManageWorkers)\n                }}\n              />\n            {{/if}}\n            {{#if this.canUseCostRate}}\n              <PtlInput\n                @type='currency'\n                @label={{t 'entity.settings.people.workers.worker.Cost rate'}}\n                @key='costRate'\n                @formatterOptions={{hash dashZero=false}}\n                @model={{this.model.workerChangeset.last.value}}\n                @required={{true}}\n                @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n                @onChange={{this.setDefaultChargeOutRate}}\n                @containerClass={{if\n                  (or\n                    this.canUseWorkerCostCalculator\n                    (and (not this.worker.isNew) this.canUseBackdateCostRate)\n                  )\n                  'mb-2'\n                  'mb-3'\n                }}\n                disabled={{or\n                  this.saveWorker.isRunning\n                  (not this.canManageWorkers)\n                }}\n              />\n            {{/if}}\n            {{#if\n              (or\n                this.canUseWorkerCostCalculator\n                (and (not this.worker.isNew) this.canUseBackdateCostRate)\n              )\n            }}\n              <div class='d-flex mb-3'>\n                {{#if this.canUseWorkerCostCalculator}}\n                  <div class='text-left me-2'>\n                    <WorkerCostCalculator\n                      @worker={{this.model.worker.last.value}}\n                      @payRate={{this.model.workerChangeset.last.value.payRate}}\n                      @labourCostCalculators={{this.model.labourCostCalculators.last.value}}\n                    />\n                  </div>\n                {{/if}}\n                {{#if (and (not this.worker.isNew) this.canUseBackdateCostRate)}}\n                  <div class='text-left'>\n                    <button\n                      type='button'\n                      class='btn btn-link text-decoration-underline m-0 p-0'\n                      {{on 'click' this.initBackdateCostRateChangeset}}\n                      disabled={{this.backdateCostRate.isRunning}}\n                    >\n                      {{t\n                        'entity.settings.people.workers.worker.Change cost rate on existing timesheets'\n                      }}\n                    </button>\n                  </div>\n                {{/if}}\n              </div>\n            {{/if}}\n          {{/unless}}\n          {{#if this.canUseChargeOutRate}}\n            <div class='d-flex mb-3'>\n              <div class='flex-grow-1'>\n                <PtlInput\n                  @type='currency'\n                  @label={{t 'common.Charge-out rate'}}\n                  @key='chargeOutRate'\n                  @formatterOptions={{hash dashZero=false}}\n                  class='rounded-0 rounded-start'\n                  @model={{this.model.workerChangeset.last.value}}\n                  @required={{true}}\n                  @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n                  @containerClass={{if\n                    (and (not this.worker.isNew) this.canUseBackdateChargeOutRate)\n                    'mb-2'\n                    'mb-3'\n                  }}\n                  disabled={{or\n                    this.saveWorker.isRunning\n                    (not this.canManageWorkers)\n                  }}\n                />\n                {{#if\n                  (and (not this.worker.isNew) this.canUseBackdateChargeOutRate)\n                }}\n                  <div class='text-left'>\n                    <button\n                      type='button'\n                      class='btn btn-link text-decoration-underline m-0 p-0'\n                      {{on 'click' this.initBackdateChargeOutRateChangeset}}\n                      disabled={{this.backdateChargeOutRate.isRunning}}\n                    >\n                      {{t\n                        'entity.settings.people.workers.worker.changeChargeOutRateOnExistingTimesheets'\n                      }}\n                    </button>\n                  </div>\n                {{/if}}\n              </div>\n              {{#unless this.model.workerChangeset.last.value.isContractor}}\n                <div>\n                  <div>\n                    <label class='mb-1'>\n                      {{profit-type-label\n                        this.sessionData.entity.effectiveProfitMargin.labourPercentage.type\n                        effective=true\n                      }}\n                    </label>\n                    <div class='input-group d-block mb-2'>\n                      <span\n                        class='input-group-text text-muted rounded-0 rounded-end'\n                      >\n                        {{number-format\n                          this.effectiveProfitMargin\n                          style='percent'\n                          dashZero=false\n                          maximumFractionDigits=2\n                          minimumFractionDigits=2\n                        }}</span>\n                    </div>\n                    {{#if\n                      this.sessionData.entity.effectiveProfitMargin.labourPercentage.value\n                    }}\n                      <button\n                        class='btn btn-link m-0 p-0 text-decoration-underline'\n                        {{on 'click' this.setDefaultEffectiveMargin}}\n                        type='button'\n                      >\n                        {{concat\n                          (t 'common.Use default')\n                          ' '\n                          (number-format\n                            this.sessionData.entity.effectiveProfitMargin.labourPercentage.value\n                            style='percent'\n                            dashZero=true\n                            maximumFractionDigits=2\n                            minimumFractionDigits=2\n                          )\n                        }}\n                      </button>\n                    {{else}}\n                      <div class='form-text text-muted'>\n                        {{t 'shared.financial.There is no default value'}}\n                      </div>\n                    {{/if}}\n                  </div>\n                </div>\n              {{/unless}}\n            </div>\n          {{/if}}\n          <h4 class='mb-2'>{{t\n              'entity.settings.people.workers.worker.Emergency contacts'\n            }}</h4>\n          <div class='row'>\n            <div class='col-4'>\n              <PtlInput\n                @type='text'\n                @label={{t 'common.Name'}}\n                @key='emergencyContactNameOne'\n                @model={{this.model.workerChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n                disabled={{or\n                  this.saveWorker.isRunning\n                  (not this.canManageWorkers)\n                }}\n              />\n            </div>\n            <div class='col-3'>\n              <PtlInput\n                @type='text'\n                @label={{t 'entity.settings.people.workers.worker.Relationship'}}\n                @key='emergencyContactRelationshipOne'\n                @model={{this.model.workerChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n                disabled={{or\n                  this.saveWorker.isRunning\n                  (not this.canManageWorkers)\n                }}\n              />\n            </div>\n            <div class='col-5'>\n              <PtlInput\n                @type='text'\n                @label={{t 'common.Phone number'}}\n                @key='emergencyContactPhoneNumberOne'\n                @model={{this.model.workerChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n                disabled={{or\n                  this.saveWorker.isRunning\n                  (not this.canManageWorkers)\n                }}\n              />\n            </div>\n          </div>\n  \n          <div class='row'>\n            <div class='col-4'>\n              <PtlInput\n                @type='text'\n                @label={{t 'common.Name'}}\n                @key='emergencyContactNameTwo'\n                @model={{this.model.workerChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n                disabled={{or\n                  this.saveWorker.isRunning\n                  (not this.canManageWorkers)\n                }}\n              />\n            </div>\n            <div class='col-3'>\n              <PtlInput\n                @type='text'\n                @label={{t 'entity.settings.people.workers.worker.Relationship'}}\n                @key='emergencyContactRelationshipTwo'\n                @model={{this.model.workerChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n                disabled={{or\n                  this.saveWorker.isRunning\n                  (not this.canManageWorkers)\n                }}\n              />\n            </div>\n            <div class='col-5'>\n              <PtlInput\n                @type='text'\n                @label={{t 'common.Phone number'}}\n                @key='emergencyContactPhoneNumberTwo'\n                @model={{this.model.workerChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n                disabled={{or\n                  this.saveWorker.isRunning\n                  (not this.canManageWorkers)\n                }}\n              />\n            </div>\n          </div>\n  \n          {{#if\n            (or\n              (includes-some-feature-flags\n                'entityCanUseSmartPayroll' 'entityCanUseKeypay'\n              )\n              (and\n                this.accountingPlatform.isActive\n                (eq this.accountingPlatform.activePlatform 'xero')\n                (includes-feature-flags 'canUseXeroIntegration')\n              )\n              (and\n                this.accountingPlatform.isActive\n                (eq this.accountingPlatform.activePlatform 'quickbooks')\n                (includes-feature-flags 'canUseQuickbooksIntegration')\n              )\n            )\n          }}\n            <h4 class='mb-2'>{{t 'common.Integrations'}}</h4>\n            {{#if (includes-feature-flags 'entityCanUseSmartPayroll')}}\n              <PtlInput\n                @type='text'\n                @label={{t\n                  'entity.settings.people.workers.worker.Smartly employee code'\n                }}\n                @description={{t\n                  'entity.settings.people.workers.worker.smartlyEmployeeCodeDescription'\n                }}\n                @key='smartPayrollEmployeeCode'\n                @model={{this.model.workerChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n                disabled={{or\n                  this.saveWorker.isRunning\n                  (not this.canManageWorkers)\n                }}\n              />\n              <PtlInput\n                @type='text'\n                @label={{t\n                  'entity.settings.people.workers.worker.Smartly employee department code'\n                }}\n                @description={{t\n                  'entity.settings.people.workers.worker.smartlyEmployeeDepartmentCodeDescription'\n                }}\n                @key='smartPayrollEmployeeDepartmentCode'\n                @model={{this.model.workerChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n                disabled={{or\n                  this.saveWorker.isRunning\n                  (not this.canManageWorkers)\n                }}\n              />\n            {{/if}}\n  \n            {{#if (includes-feature-flags 'entityCanUseKeypay')}}\n              <PtlInput\n                @type='text'\n                @label={{t\n                  'entity.settings.people.workers.worker.Keypay employee code'\n                }}\n                @description={{t\n                  'entity.settings.people.workers.worker.keypayEmployeeCodeDescription'\n                }}\n                @key='keypayEmployeeCode'\n                @model={{this.model.workerChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n                disabled={{this.saveWorker.isRunning}}\n              />\n            {{/if}}\n  \n            {{#if\n              (and\n                (eq this.accountingPlatform.activePlatform 'xero')\n                (includes-feature-flags 'canUseXeroIntegration')\n              )\n            }}\n              <PtlInput\n                @type='powerSelect'\n                @label={{t 'entity.settings.people.workers.worker.Xero employee'}}\n                @key='xeroEmployee'\n                @optionKeys={{array 'name'}}\n                @description={{t\n                  'entity.settings.people.workers.worker.xeroEmployeeDescription'\n                }}\n                @options={{this.model.accountingPlatformEmployees.last.value}}\n                @model={{this.model.workerChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n                @searchEnabled={{true}}\n                @searchField={{'name'}}\n                @disabled={{or\n                  this.saveWorker.isRunning\n                  this.reloadEmployees.isRunning\n                }}\n              />\n              <div>\n                <button\n                  type='button'\n                  class='btn btn-link text-decoration-underline m-0 p-0 mb-2'\n                  {{on 'click' (perform this.reloadEmployees)}}\n                  disabled={{this.reloadEmployees.isRunning}}\n                >\n                  {{#if this.reloadEmployees.isRunning}}\n                    {{t\n                      'entity.settings.people.workers.worker.Reloading Xero employees'\n                    }}&hellip;\n                  {{else}}\n                    {{t\n                      'entity.settings.people.workers.worker.Reload Xero employees'\n                    }}\n                  {{/if}}\n                </button>\n              </div>\n  \n              <PtlInput\n                @type='powerSelect'\n                @label={{t\n                  'entity.settings.people.workers.worker.Xero earnings rate'\n                }}\n                @description={{t\n                  'entity.settings.people.workers.worker.xeroEarningsRateDescription'\n                }}\n                @key='xeroEarningsRate'\n                @options={{this.model.xeroEarningsRates.last.value}}\n                @optionKeys={{array 'name'}}\n                @model={{this.model.workerChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n                @searchEnabled={{true}}\n                @searchField={{'name'}}\n                @disabled={{or\n                  this.saveWorker.isRunning\n                  this.reloadEarningsRates.isRunning\n                }}\n              />\n  \n              <div>\n                <button\n                  type='button'\n                  class='btn btn-link text-decoration-underline m-0 p-0 mb-2'\n                  {{on 'click' (perform this.reloadEarningsRates)}}\n                  disabled={{this.reloadEarningsRates.isRunning}}\n                >\n                  {{#if this.reloadEarningsRates.isRunning}}\n                    {{t\n                      'entity.settings.people.workers.worker.Reloading Xero earnings rates'\n                    }}&hellip;\n                  {{else}}\n                    {{t\n                      'entity.settings.people.workers.worker.Reload Xero earnings rates'\n                    }}\n                  {{/if}}\n                </button>\n              </div>\n            {{/if}}\n  \n            {{#if\n              (and\n                (eq this.accountingPlatform.activePlatform 'quickbooks')\n                (includes-feature-flags 'canUseQuickbooksIntegration')\n              )\n            }}\n              <PtlInput\n                @type='powerSelect'\n                @label={{t\n                  'entity.settings.people.workers.worker.QuickBooks employee'\n                }}\n                @key='quickbooksEmployee'\n                @optionKeys={{array 'name'}}\n                @description={{t\n                  'entity.settings.people.workers.worker.quickbooksEmployeeHelperText'\n                }}\n                @options={{this.model.accountingPlatformEmployees.last.value}}\n                @model={{this.model.workerChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n                @searchEnabled={{true}}\n                @searchField={{'name'}}\n                @allowClear={{true}}\n                @disabled={{or\n                  this.saveWorker.isRunning\n                  this.reloadEmployees.isRunning\n                }}\n                @afterOptionsComponent={{component\n                  'power-select-after-options-button'\n                  onClick=(perform this.reloadEmployees)\n                  icon='sync'\n                  text=(t\n                    'entity.settings.people.workers.worker.Reload QuickBooks employees'\n                  )\n                  isLoading=this.reloadEmployees.isRunning\n                  loadingText=(t\n                    'entity.settings.people.workers.worker.Loading QuickBooks employees'\n                  )\n                }}\n              />\n            {{/if}}\n          {{/if}}\n        {{/if}}\n  \n        <div class='d-flex flex-grow-1'>\n          {{#if (and this.worker.isActive (not this.enableWorker.isRunning))}}\n            {{#unless this.worker.isNew}}\n              {{#if this.canManageWorkers}}\n                <button\n                  type='button'\n                  class='btn btn-link text-danger text-decoration-underline'\n                  disabled={{or\n                    this.deleteWorker.isRunning\n                    this.saveWorker.isRunning\n                  }}\n                  {{on 'click' (perform this.deleteWorker)}}\n                >\n                  {{#if this.deleteWorker.isRunning}}\n                    {{if\n                      this.canDeleteWorker\n                      (t 'entity.settings.people.workers.worker.Deleting worker')\n                      (t 'entity.settings.people.workers.worker.Disabling worker')\n                    }}&hellip;\n                  {{else}}\n                    {{if\n                      this.canDeleteWorker\n                      (t 'entity.settings.people.workers.worker.Delete worker')\n                      (t 'entity.settings.people.workers.worker.Disable worker')\n                    }}\n                  {{/if}}\n                </button>\n              {{/if}}\n            {{/unless}}\n  \n            {{#if this.canManageWorkers}}\n              <button\n                type='button'\n                class='btn btn-primary ms-auto'\n                disabled={{or\n                  this.deleteWorker.isRunning\n                  this.saveWorker.isRunning\n                }}\n                {{on\n                  'click'\n                  (perform this.saveWorker this.model.workerChangeset.last.value)\n                }}\n              >\n                {{#if this.saveWorker.isRunning}}\n                  {{t\n                    'entity.settings.people.workers.worker.Saving worker'\n                  }}&hellip;\n                {{else}}\n                  {{if\n                    this.worker.isNew\n                    (t 'entity.settings.people.workers.worker.Create worker')\n                    (t 'entity.settings.people.workers.worker.Save worker')\n                  }}\n                {{/if}}\n              </button>\n            {{/if}}\n          {{else}}\n            {{#if this.canManageWorkers}}\n              <button\n                type='button'\n                class='btn btn-primary ms-auto'\n                disabled={{this.enableWorker.isRunning}}\n                {{on\n                  'click'\n                  (perform\n                    this.enableWorker this.model.workerChangeset.last.value\n                  )\n                }}\n              >\n                {{#if this.enableWorker.isRunning}}\n                  {{t\n                    'entity.settings.people.workers.worker.Enabling worker'\n                  }}&hellip;\n                {{else}}\n                  {{t 'entity.settings.people.workers.worker.Enable worker'}}\n                {{/if}}\n              </button>\n            {{/if}}\n          {{/if}}\n        </div>\n      </PtlForm>\n  \n      {{#if this.canManageWorkers}}\n        {{#unless this.worker.isNew}}\n          <PtlForm class='mb-3'>\n            <h3 class='mb-0'>{{t 'shared.people-editor.Permissions'}}</h3>\n            <p class='mb-4'>\n              {{t\n                'entity.settings.people.workers.worker.workerPermissionsExplanation'\n              }}\n            </p>\n  \n            <PtlInput\n              @type='checkbox'\n              @label={{t\n                'entity.settings.people.workers.worker.Can see all projects and tasks'\n              }}\n              @key='canSeeProjectsAndTasks'\n              @description={{t\n                'entity.settings.people.workers.worker.canSeeAllProjectsAndTasksDescription'\n              }}\n              @model={{this.model.workerPermissionsChangeset.last.value}}\n              @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n              disabled={{this.saveWorker.isRunning}}\n            />\n  \n            {{#if this.newFeatureFlags.entityCanUseHealthAndSafety}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.canUseHealthAndSafety'}}\n                @key='canCreateHealthAndSafety'\n                @description={{t\n                  'shared.people-editor.canUseHealthAndSafetyDescription'\n                }}\n                @model={{this.model.workerPermissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n                disabled={{this.saveWorker.isRunning}}\n              />\n            {{/if}}\n  \n            <div class='d-flex flex-grow-1'>\n              <button\n                type='button'\n                class='btn btn-primary ms-auto'\n                disabled={{this.savePermissions.isRunning}}\n                {{on\n                  'click'\n                  (perform\n                    this.savePermissions\n                    this.model.workerPermissionsChangeset.last.value\n                  )\n                }}\n              >\n                {{#if this.savePermissions.isRunning}}\n                  {{t 'shared.people-editor.Saving permissions'}}&hellip;\n                {{else}}\n                  {{t 'shared.people-editor.Save permissions'}}\n                {{/if}}\n              </button>\n            </div>\n          </PtlForm>\n        {{/unless}}\n      {{/if}}\n  \n      {{#unless this.worker.isNew}}\n        <PtlForm class='mb-3'>\n          <h3 class='mb-3'>{{t\n              'entity.settings.people.workers.worker.Worker login code'\n            }}</h3>\n          <p class='mt-0'>\n            {{t\n              'entity.settings.people.workers.worker.workerLoginCodeExplanation'\n            }}\n          </p>\n          <div class='d-flex align-items-center position-relative'>\n  \n            {{#if this.worker.authCode}}\n              <div\n                role='button'\n                class='bg-white border rounded px-2 py-1 flex-grow-1'\n                data-bs-placement='bottom'\n                {{on 'click' this.copyAuthCode}}\n                {{bootstrap-tooltip\n                  (if\n                    this.copiedAuthCode\n                    (t 'common.Copied')\n                    (t 'common.Click to copy')\n                  )\n                }}\n              >\n                <span class='fw-bold'>\n                  {{this.worker.authCode}}\n                </span>\n              </div>\n            {{else}}\n              <div\n                role='button'\n                class='bg-white border rounded px-2 py-1 flex-grow-1'\n              >\n                <span class='fw-bold'>\n                  {{t 'common.Not set'}}\n                </span>\n              </div>\n            {{/if}}\n  \n            {{#if this.canManageWorkers}}\n              <button\n                class='btn ms-2\n                  {{if\n                    this.worker.authCode\n                    \"btn-outline-danger\"\n                    \"btn-outline-success\"\n                  }}'\n                type='button'\n                {{on 'click' (perform this.resetWorkerAuthCode)}}\n              >\n                {{#if this.resetWorkerAuthCode.isRunning}}\n                  {{t\n                    'entity.settings.people.workers.worker.Generating new code'\n                  }}&hellip;\n                {{else}}\n                  {{if\n                    this.worker.authCode\n                    (t 'entity.settings.people.workers.worker.Generate new code')\n                    (t 'entity.settings.people.workers.worker.Generate code')\n                  }}\n                {{/if}}\n              </button>\n            {{/if}}\n          </div>\n        </PtlForm>\n      {{/unless}}\n    {{/if}}\n  </div>\n  \n  {{#if this.backdateChargeOutRateChangeSet}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.backdateChargeOutRateChangeSet) null}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body mt-2'>\n        <p>\n          {{t\n            'entity.settings.people.workers.worker.overwriteTheChargeOutRatesConfirm'\n          }}\n        </p>\n        <PtlInput\n          @type='currency'\n          @label={{t 'common.Charge-out rate'}}\n          @key='chargeOutRate'\n          @formatterOptions={{hash dashZero=false}}\n          @required={{true}}\n          @model={{this.backdateChargeOutRateChangeSet}}\n          @forceValidationVisible={{gt this.backdateChargeOutRate.performCount 0}}\n          disabled={{this.backdateChargeOutRate.isRunning}}\n        />\n        <PtlInput\n          @type='date'\n          @label={{t 'common.From'}}\n          @key='startDate'\n          @model={{this.backdateChargeOutRateChangeSet}}\n          @forceValidationVisible={{gt this.backdateChargeOutRate.performCount 0}}\n          disabled={{this.backdateChargeOutRate.isRunning}}\n        />\n        <PtlInput\n          @type='date'\n          @label={{t 'common.To'}}\n          @key='endDate'\n          @model={{this.backdateChargeOutRateChangeSet}}\n          @forceValidationVisible={{gt this.backdateChargeOutRate.performCount 0}}\n          disabled={{this.backdateChargeOutRate.isRunning}}\n        />\n      </div>\n  \n      <div class='modal-footer d-flex'>\n        <div class='d-flex align-items-center'>\n          <button\n            class='btn btn-secondary text-white ms-2'\n            type='button'\n            disabled={{this.backdateChargeOutRate.isRunning}}\n            {{on 'click' (fn (mut this.backdateChargeOutRateChangeSet) null)}}\n          >{{t 'common.Cancel'}}</button>\n          <button\n            type='button'\n            class='btn btn-primary ms-2'\n            disabled={{this.backdateChargeOutRate.isRunning}}\n            {{on\n              'click'\n              (perform\n                this.backdateChargeOutRate this.model.workerChangeset.last.value\n              )\n            }}\n          >\n            {{#if this.backdateChargeOutRate.isRunning}}\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t 'common.Applying'}}&hellip;\n            {{else}}\n              {{t 'common.Apply'}}\n            {{/if}}\n          </button>\n        </div>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.backdateCostRateChangeSet}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.backdateCostRateChangeSet) null}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body mt-2'>\n        <p>\n          {{t\n            'entity.settings.people.workers.worker.overwriteTheCostRatesConfirm'\n          }}\n        </p>\n        <PtlInput\n          @type='currency'\n          @label={{t 'entity.settings.people.workers.worker.Cost rate'}}\n          @key='costRate'\n          @formatterOptions={{hash dashZero=false}}\n          @required={{true}}\n          @model={{this.backdateCostRateChangeSet}}\n          @forceValidationVisible={{gt this.backdateCostRate.performCount 0}}\n          disabled={{this.backdateCostRate.isRunning}}\n        />\n        <PtlInput\n          @type='date'\n          @label={{t 'common.From'}}\n          @key='startDate'\n          @model={{this.backdateCostRateChangeSet}}\n          @forceValidationVisible={{gt this.backdateCostRate.performCount 0}}\n          disabled={{this.backdateCostRate.isRunning}}\n        />\n        <PtlInput\n          @type='date'\n          @label={{t 'common.To'}}\n          @key='endDate'\n          @model={{this.backdateCostRateChangeSet}}\n          @forceValidationVisible={{gt this.backdateCostRate.performCount 0}}\n          disabled={{this.backdateCostRate.isRunning}}\n        />\n      </div>\n  \n      <div class='modal-footer d-flex'>\n        <div class='d-flex align-items-center'>\n          <button\n            class='btn btn-secondary text-white ms-2'\n            type='button'\n            disabled={{this.backdateCostRate.isRunning}}\n            {{on 'click' (fn (mut this.backdateCostRateChangeSet) null)}}\n          >{{t 'common.Cancel'}}</button>\n          <button\n            type='button'\n            class='btn btn-primary ms-2'\n            disabled={{this.backdateCostRate.isRunning}}\n            {{on\n              'click'\n              (perform\n                this.backdateCostRate this.model.workerChangeset.last.value\n              )\n            }}\n          >\n            {{#if this.backdateCostRate.isRunning}}\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t 'common.Applying'}}&hellip;\n            {{else}}\n              {{t 'common.Apply'}}\n            {{/if}}\n          </button>\n        </div>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"a142buBC\",\n    \"block\": \"[[[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-3 ms-1 mt-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,3],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-3\\\"],[12],[1,[28,[35,6],[\\\"common.Details\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,0,[\\\"canManageWorkers\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.First name\\\"],null],\\\"firstName\\\",[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],true,[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,0,[\\\"canManageWorkers\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Last name\\\"],null],\\\"lastName\\\",[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],true,[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,0,[\\\"canManageWorkers\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"shared.contacts.Contact email\\\"],null],[28,[37,6],[\\\"entity.settings.people.workers.worker.contactEmailDescription\\\"],null],\\\"email\\\",[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],true,[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,0,[\\\"canManageWorkers\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Phone number\\\"],null],\\\"phoneNumber\\\",[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,0,[\\\"canManageWorkers\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",[28,[37,6],[\\\"common.Language\\\"],null],\\\"language\\\",[30,0,[\\\"languages\\\"]],[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"canManageWorkers\\\"]],[[[41,[30,0,[\\\"canUseWorkerType\\\"]],[[[1,\\\"          \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,0,[\\\"canManageWorkers\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@options\\\",\\\"@description\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",[28,[37,6],[\\\"entity.settings.people.workers.worker.Worker type\\\"],null],\\\"isContractor\\\",[30,0,[\\\"workerTypes\\\"]],[28,[37,6],[\\\"entity.settings.people.workers.worker.workerTypeDescription\\\"],null],[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],true,[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[51,[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"isContractor\\\"]]],[[[41,[30,0,[\\\"canUsePayRate\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,0,[\\\"canManageWorkers\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@formatterOptions\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"currency\\\",[28,[37,6],[\\\"common.Pay rate\\\"],null],\\\"payRate\\\",[28,[37,12],null,[[\\\"dashZero\\\"],[false]]],[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],true,[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"canUseCostRate\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,0,[\\\"canManageWorkers\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@formatterOptions\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\",\\\"@onChange\\\",\\\"@containerClass\\\"],[\\\"currency\\\",[28,[37,6],[\\\"entity.settings.people.workers.worker.Cost rate\\\"],null],\\\"costRate\\\",[28,[37,12],null,[[\\\"dashZero\\\"],[false]]],[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],true,[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null],[30,0,[\\\"setDefaultChargeOutRate\\\"]],[52,[28,[37,8],[[30,0,[\\\"canUseWorkerCostCalculator\\\"]],[28,[37,13],[[28,[37,9],[[30,0,[\\\"worker\\\",\\\"isNew\\\"]]],null],[30,0,[\\\"canUseBackdateCostRate\\\"]]],null]],null],\\\"mb-2\\\",\\\"mb-3\\\"]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,8],[[30,0,[\\\"canUseWorkerCostCalculator\\\"]],[28,[37,13],[[28,[37,9],[[30,0,[\\\"worker\\\",\\\"isNew\\\"]]],null],[30,0,[\\\"canUseBackdateCostRate\\\"]]],null]],null],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"d-flex mb-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canUseWorkerCostCalculator\\\"]],[[[1,\\\"                \\\"],[10,0],[14,0,\\\"text-left me-2\\\"],[12],[1,\\\"\\\\n                  \\\"],[8,[39,14],null,[[\\\"@worker\\\",\\\"@payRate\\\",\\\"@labourCostCalculators\\\"],[[30,0,[\\\"model\\\",\\\"worker\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"payRate\\\"]],[30,0,[\\\"model\\\",\\\"labourCostCalculators\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,13],[[28,[37,9],[[30,0,[\\\"worker\\\",\\\"isNew\\\"]]],null],[30,0,[\\\"canUseBackdateCostRate\\\"]]],null],[[[1,\\\"                \\\"],[10,0],[14,0,\\\"text-left\\\"],[12],[1,\\\"\\\\n                  \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-decoration-underline m-0 p-0\\\"],[16,\\\"disabled\\\",[30,0,[\\\"backdateCostRate\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[30,0,[\\\"initBackdateCostRateChangeset\\\"]]],null],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,6],[\\\"entity.settings.people.workers.worker.Change cost rate on existing timesheets\\\"],null]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"canUseChargeOutRate\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"d-flex mb-3\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,7],[[24,0,\\\"rounded-0 rounded-start\\\"],[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,0,[\\\"canManageWorkers\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@formatterOptions\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\",\\\"@containerClass\\\"],[\\\"currency\\\",[28,[37,6],[\\\"common.Charge-out rate\\\"],null],\\\"chargeOutRate\\\",[28,[37,12],null,[[\\\"dashZero\\\"],[false]]],[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],true,[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null],[52,[28,[37,13],[[28,[37,9],[[30,0,[\\\"worker\\\",\\\"isNew\\\"]]],null],[30,0,[\\\"canUseBackdateChargeOutRate\\\"]]],null],\\\"mb-2\\\",\\\"mb-3\\\"]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,13],[[28,[37,9],[[30,0,[\\\"worker\\\",\\\"isNew\\\"]]],null],[30,0,[\\\"canUseBackdateChargeOutRate\\\"]]],null],[[[1,\\\"                \\\"],[10,0],[14,0,\\\"text-left\\\"],[12],[1,\\\"\\\\n                  \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-decoration-underline m-0 p-0\\\"],[16,\\\"disabled\\\",[30,0,[\\\"backdateChargeOutRate\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[30,0,[\\\"initBackdateChargeOutRateChangeset\\\"]]],null],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,6],[\\\"entity.settings.people.workers.worker.changeChargeOutRateOnExistingTimesheets\\\"],null]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"isContractor\\\"]]],[[[1,\\\"              \\\"],[10,0],[12],[1,\\\"\\\\n                \\\"],[10,0],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,18],[[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"effectiveProfitMargin\\\",\\\"labourPercentage\\\",\\\"type\\\"]]],[[\\\"effective\\\"],[true]]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"input-group d-block mb-2\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,1],[14,0,\\\"input-group-text text-muted rounded-0 rounded-end\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,20],[[30,0,[\\\"effectiveProfitMargin\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",false,2,2]]]],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"effectiveProfitMargin\\\",\\\"labourPercentage\\\",\\\"value\\\"]],[[[1,\\\"                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link m-0 p-0 text-decoration-underline\\\"],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[30,0,[\\\"setDefaultEffectiveMargin\\\"]]],null],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,21],[[28,[37,6],[\\\"common.Use default\\\"],null],\\\" \\\",[28,[37,20],[[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"effectiveProfitMargin\\\",\\\"labourPercentage\\\",\\\"value\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]]],null]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                    \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,6],[\\\"shared.financial.There is no default value\\\"],null]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[10,\\\"h4\\\"],[14,0,\\\"mb-2\\\"],[12],[1,[28,[35,6],[\\\"entity.settings.people.workers.worker.Emergency contacts\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"col-4\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,0,[\\\"canManageWorkers\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Name\\\"],null],\\\"emergencyContactNameOne\\\",[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"col-3\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,0,[\\\"canManageWorkers\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"entity.settings.people.workers.worker.Relationship\\\"],null],\\\"emergencyContactRelationshipOne\\\",[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"col-5\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,0,[\\\"canManageWorkers\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Phone number\\\"],null],\\\"emergencyContactPhoneNumberOne\\\",[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"col-4\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,0,[\\\"canManageWorkers\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Name\\\"],null],\\\"emergencyContactNameTwo\\\",[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"col-3\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,0,[\\\"canManageWorkers\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"entity.settings.people.workers.worker.Relationship\\\"],null],\\\"emergencyContactRelationshipTwo\\\",[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"col-5\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,0,[\\\"canManageWorkers\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Phone number\\\"],null],\\\"emergencyContactPhoneNumberTwo\\\",[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,8],[[28,[37,23],[\\\"entityCanUseSmartPayroll\\\",\\\"entityCanUseKeypay\\\"],null],[28,[37,13],[[30,0,[\\\"accountingPlatform\\\",\\\"isActive\\\"]],[28,[37,24],[[30,0,[\\\"accountingPlatform\\\",\\\"activePlatform\\\"]],\\\"xero\\\"],null],[28,[37,25],[\\\"canUseXeroIntegration\\\"],null]],null],[28,[37,13],[[30,0,[\\\"accountingPlatform\\\",\\\"isActive\\\"]],[28,[37,24],[[30,0,[\\\"accountingPlatform\\\",\\\"activePlatform\\\"]],\\\"quickbooks\\\"],null],[28,[37,25],[\\\"canUseQuickbooksIntegration\\\"],null]],null]],null],[[[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"mb-2\\\"],[12],[1,[28,[35,6],[\\\"common.Integrations\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,25],[\\\"entityCanUseSmartPayroll\\\"],null],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,0,[\\\"canManageWorkers\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"entity.settings.people.workers.worker.Smartly employee code\\\"],null],[28,[37,6],[\\\"entity.settings.people.workers.worker.smartlyEmployeeCodeDescription\\\"],null],\\\"smartPayrollEmployeeCode\\\",[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,0,[\\\"canManageWorkers\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"entity.settings.people.workers.worker.Smartly employee department code\\\"],null],[28,[37,6],[\\\"entity.settings.people.workers.worker.smartlyEmployeeDepartmentCodeDescription\\\"],null],\\\"smartPayrollEmployeeDepartmentCode\\\",[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,25],[\\\"entityCanUseKeypay\\\"],null],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"entity.settings.people.workers.worker.Keypay employee code\\\"],null],[28,[37,6],[\\\"entity.settings.people.workers.worker.keypayEmployeeCodeDescription\\\"],null],\\\"keypayEmployeeCode\\\",[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,13],[[28,[37,24],[[30,0,[\\\"accountingPlatform\\\",\\\"activePlatform\\\"]],\\\"xero\\\"],null],[28,[37,25],[\\\"canUseXeroIntegration\\\"],null]],null],[[[1,\\\"            \\\"],[8,[39,7],null,[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@description\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@disabled\\\"],[\\\"powerSelect\\\",[28,[37,6],[\\\"entity.settings.people.workers.worker.Xero employee\\\"],null],\\\"xeroEmployee\\\",[28,[37,26],[\\\"name\\\"],null],[28,[37,6],[\\\"entity.settings.people.workers.worker.xeroEmployeeDescription\\\"],null],[30,0,[\\\"model\\\",\\\"accountingPlatformEmployees\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null],true,\\\"name\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[30,0,[\\\"reloadEmployees\\\",\\\"isRunning\\\"]]],null]]],null],[1,\\\"\\\\n            \\\"],[10,0],[12],[1,\\\"\\\\n              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-decoration-underline m-0 p-0 mb-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"reloadEmployees\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,27],[[30,0,[\\\"reloadEmployees\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"reloadEmployees\\\",\\\"isRunning\\\"]],[[[1,\\\"                  \\\"],[1,[28,[35,6],[\\\"entity.settings.people.workers.worker.Reloading Xero employees\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[28,[35,6],[\\\"entity.settings.people.workers.worker.Reload Xero employees\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[8,[39,7],null,[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@options\\\",\\\"@optionKeys\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@disabled\\\"],[\\\"powerSelect\\\",[28,[37,6],[\\\"entity.settings.people.workers.worker.Xero earnings rate\\\"],null],[28,[37,6],[\\\"entity.settings.people.workers.worker.xeroEarningsRateDescription\\\"],null],\\\"xeroEarningsRate\\\",[30,0,[\\\"model\\\",\\\"xeroEarningsRates\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,26],[\\\"name\\\"],null],[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null],true,\\\"name\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[30,0,[\\\"reloadEarningsRates\\\",\\\"isRunning\\\"]]],null]]],null],[1,\\\"\\\\n\\\\n            \\\"],[10,0],[12],[1,\\\"\\\\n              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-decoration-underline m-0 p-0 mb-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"reloadEarningsRates\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,27],[[30,0,[\\\"reloadEarningsRates\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"reloadEarningsRates\\\",\\\"isRunning\\\"]],[[[1,\\\"                  \\\"],[1,[28,[35,6],[\\\"entity.settings.people.workers.worker.Reloading Xero earnings rates\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[28,[35,6],[\\\"entity.settings.people.workers.worker.Reload Xero earnings rates\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,13],[[28,[37,24],[[30,0,[\\\"accountingPlatform\\\",\\\"activePlatform\\\"]],\\\"quickbooks\\\"],null],[28,[37,25],[\\\"canUseQuickbooksIntegration\\\"],null]],null],[[[1,\\\"            \\\"],[8,[39,7],null,[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@description\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@allowClear\\\",\\\"@disabled\\\",\\\"@afterOptionsComponent\\\"],[\\\"powerSelect\\\",[28,[37,6],[\\\"entity.settings.people.workers.worker.QuickBooks employee\\\"],null],\\\"quickbooksEmployee\\\",[28,[37,26],[\\\"name\\\"],null],[28,[37,6],[\\\"entity.settings.people.workers.worker.quickbooksEmployeeHelperText\\\"],null],[30,0,[\\\"model\\\",\\\"accountingPlatformEmployees\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null],true,\\\"name\\\",true,[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[30,0,[\\\"reloadEmployees\\\",\\\"isRunning\\\"]]],null],[50,\\\"power-select-after-options-button\\\",0,null,[[\\\"onClick\\\",\\\"icon\\\",\\\"text\\\",\\\"isLoading\\\",\\\"loadingText\\\"],[[28,[37,27],[[30,0,[\\\"reloadEmployees\\\"]]],null],\\\"sync\\\",[28,[37,6],[\\\"entity.settings.people.workers.worker.Reload QuickBooks employees\\\"],null],[30,0,[\\\"reloadEmployees\\\",\\\"isRunning\\\"]],[28,[37,6],[\\\"entity.settings.people.workers.worker.Loading QuickBooks employees\\\"],null]]]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,13],[[30,0,[\\\"worker\\\",\\\"isActive\\\"]],[28,[37,9],[[30,0,[\\\"enableWorker\\\",\\\"isRunning\\\"]]],null]],null],[[[41,[51,[30,0,[\\\"worker\\\",\\\"isNew\\\"]]],[[[41,[30,0,[\\\"canManageWorkers\\\"]],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline\\\"],[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"deleteWorker\\\",\\\"isRunning\\\"]],[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,27],[[30,0,[\\\"deleteWorker\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteWorker\\\",\\\"isRunning\\\"]],[[[1,\\\"                  \\\"],[1,[52,[30,0,[\\\"canDeleteWorker\\\"]],[28,[37,6],[\\\"entity.settings.people.workers.worker.Deleting worker\\\"],null],[28,[37,6],[\\\"entity.settings.people.workers.worker.Disabling worker\\\"],null]]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[52,[30,0,[\\\"canDeleteWorker\\\"]],[28,[37,6],[\\\"entity.settings.people.workers.worker.Delete worker\\\"],null],[28,[37,6],[\\\"entity.settings.people.workers.worker.Disable worker\\\"],null]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canManageWorkers\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"deleteWorker\\\",\\\"isRunning\\\"]],[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,27],[[30,0,[\\\"saveWorker\\\"]],[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"entity.settings.people.workers.worker.Saving worker\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[52,[30,0,[\\\"worker\\\",\\\"isNew\\\"]],[28,[37,6],[\\\"entity.settings.people.workers.worker.Create worker\\\"],null],[28,[37,6],[\\\"entity.settings.people.workers.worker.Save worker\\\"],null]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[41,[30,0,[\\\"canManageWorkers\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"enableWorker\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,27],[[30,0,[\\\"enableWorker\\\"]],[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"enableWorker\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"entity.settings.people.workers.worker.Enabling worker\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"entity.settings.people.workers.worker.Enable worker\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"canManageWorkers\\\"]],[[[41,[51,[30,0,[\\\"worker\\\",\\\"isNew\\\"]]],[[[1,\\\"        \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-0\\\"],[12],[1,[28,[35,6],[\\\"shared.people-editor.Permissions\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,2],[14,0,\\\"mb-4\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"entity.settings.people.workers.worker.workerPermissionsExplanation\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.settings.people.workers.worker.Can see all projects and tasks\\\"],null],\\\"canSeeProjectsAndTasks\\\",[28,[37,6],[\\\"entity.settings.people.workers.worker.canSeeAllProjectsAndTasksDescription\\\"],null],[30,0,[\\\"model\\\",\\\"workerPermissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseHealthAndSafety\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canUseHealthAndSafety\\\"],null],\\\"canCreateHealthAndSafety\\\",[28,[37,6],[\\\"shared.people-editor.canUseHealthAndSafetyDescription\\\"],null],[30,0,[\\\"model\\\",\\\"workerPermissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,27],[[30,0,[\\\"savePermissions\\\"]],[30,0,[\\\"model\\\",\\\"workerPermissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Saving permissions\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Save permissions\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"worker\\\",\\\"isNew\\\"]]],[[[1,\\\"      \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-3\\\"],[12],[1,[28,[35,6],[\\\"entity.settings.people.workers.worker.Worker login code\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"entity.settings.people.workers.worker.workerLoginCodeExplanation\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex align-items-center position-relative\\\"],[12],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"worker\\\",\\\"authCode\\\"]],[[[1,\\\"            \\\"],[11,0],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"bg-white border rounded px-2 py-1 flex-grow-1\\\"],[24,\\\"data-bs-placement\\\",\\\"bottom\\\"],[4,[38,16],[\\\"click\\\",[30,0,[\\\"copyAuthCode\\\"]]],null],[4,[38,30],[[52,[30,0,[\\\"copiedAuthCode\\\"]],[28,[37,6],[\\\"common.Copied\\\"],null],[28,[37,6],[\\\"common.Click to copy\\\"],null]]],null],[12],[1,\\\"\\\\n              \\\"],[10,1],[14,0,\\\"fw-bold\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"worker\\\",\\\"authCode\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[10,0],[14,\\\"role\\\",\\\"button\\\"],[14,0,\\\"bg-white border rounded px-2 py-1 flex-grow-1\\\"],[12],[1,\\\"\\\\n              \\\"],[10,1],[14,0,\\\"fw-bold\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,6],[\\\"common.Not set\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canManageWorkers\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"btn ms-2\\\\n                \\\",[52,[30,0,[\\\"worker\\\",\\\"authCode\\\"]],\\\"btn-outline-danger\\\",\\\"btn-outline-success\\\"]]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,27],[[30,0,[\\\"resetWorkerAuthCode\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"resetWorkerAuthCode\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"entity.settings.people.workers.worker.Generating new code\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[52,[30,0,[\\\"worker\\\",\\\"authCode\\\"]],[28,[37,6],[\\\"entity.settings.people.workers.worker.Generate new code\\\"],null],[28,[37,6],[\\\"entity.settings.people.workers.worker.Generate code\\\"],null]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"backdateChargeOutRateChangeSet\\\"]],[[[1,\\\"  \\\"],[8,[39,31],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[28,[37,32],[[28,[37,33],[[30,0,[\\\"backdateChargeOutRateChangeSet\\\"]]],null],null],null],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body mt-2\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"entity.settings.people.workers.worker.overwriteTheChargeOutRatesConfirm\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"backdateChargeOutRate\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@formatterOptions\\\",\\\"@required\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"currency\\\",[28,[37,6],[\\\"common.Charge-out rate\\\"],null],\\\"chargeOutRate\\\",[28,[37,12],null,[[\\\"dashZero\\\"],[false]]],true,[30,0,[\\\"backdateChargeOutRateChangeSet\\\"]],[28,[37,10],[[30,0,[\\\"backdateChargeOutRate\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"backdateChargeOutRate\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"date\\\",[28,[37,6],[\\\"common.From\\\"],null],\\\"startDate\\\",[30,0,[\\\"backdateChargeOutRateChangeSet\\\"]],[28,[37,10],[[30,0,[\\\"backdateChargeOutRate\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"backdateChargeOutRate\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"date\\\",[28,[37,6],[\\\"common.To\\\"],null],\\\"endDate\\\",[30,0,[\\\"backdateChargeOutRateChangeSet\\\"]],[28,[37,10],[[30,0,[\\\"backdateChargeOutRate\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer d-flex\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"backdateChargeOutRate\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,32],[[28,[37,33],[[30,0,[\\\"backdateChargeOutRateChangeSet\\\"]]],null],null],null]],null],[12],[1,[28,[35,6],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"backdateChargeOutRate\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,27],[[30,0,[\\\"backdateChargeOutRate\\\"]],[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"backdateChargeOutRate\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,6],[\\\"common.Applying\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"common.Apply\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"backdateCostRateChangeSet\\\"]],[[[1,\\\"  \\\"],[8,[39,31],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[28,[37,32],[[28,[37,33],[[30,0,[\\\"backdateCostRateChangeSet\\\"]]],null],null],null],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body mt-2\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"entity.settings.people.workers.worker.overwriteTheCostRatesConfirm\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"backdateCostRate\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@formatterOptions\\\",\\\"@required\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"currency\\\",[28,[37,6],[\\\"entity.settings.people.workers.worker.Cost rate\\\"],null],\\\"costRate\\\",[28,[37,12],null,[[\\\"dashZero\\\"],[false]]],true,[30,0,[\\\"backdateCostRateChangeSet\\\"]],[28,[37,10],[[30,0,[\\\"backdateCostRate\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"backdateCostRate\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"date\\\",[28,[37,6],[\\\"common.From\\\"],null],\\\"startDate\\\",[30,0,[\\\"backdateCostRateChangeSet\\\"]],[28,[37,10],[[30,0,[\\\"backdateCostRate\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"backdateCostRate\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"date\\\",[28,[37,6],[\\\"common.To\\\"],null],\\\"endDate\\\",[30,0,[\\\"backdateCostRateChangeSet\\\"]],[28,[37,10],[[30,0,[\\\"backdateCostRate\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer d-flex\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"backdateCostRate\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,32],[[28,[37,33],[[30,0,[\\\"backdateCostRateChangeSet\\\"]]],null],null],null]],null],[12],[1,[28,[35,6],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"backdateCostRate\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,27],[[30,0,[\\\"backdateCostRate\\\"]],[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"backdateCostRate\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,6],[\\\"common.Applying\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"common.Apply\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[],false,[\\\"div\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"page-title-breadcrumbs\\\",\\\"ptl-form\\\",\\\"h3\\\",\\\"t\\\",\\\"ptl-input\\\",\\\"or\\\",\\\"not\\\",\\\"gt\\\",\\\"unless\\\",\\\"hash\\\",\\\"and\\\",\\\"worker-cost-calculator\\\",\\\"button\\\",\\\"on\\\",\\\"label\\\",\\\"profit-type-label\\\",\\\"span\\\",\\\"number-format\\\",\\\"concat\\\",\\\"h4\\\",\\\"includes-some-feature-flags\\\",\\\"eq\\\",\\\"includes-feature-flags\\\",\\\"array\\\",\\\"perform\\\",\\\"component\\\",\\\"p\\\",\\\"bootstrap-tooltip\\\",\\\"modal-dialog\\\",\\\"fn\\\",\\\"mut\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/people/workers/worker.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/profile\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title=(t 'common.Profile')}}\n    />\n  {{/unless}}\n  \n  <article class='mx-4 mt-4 h-100'>\n    <header class='border-bottom pb-2 mb-3 d-flex align-items-center'>\n      {{#if (media 'isDesktop')}}\n        <h2 class='flex-grow-1 m-0 my-2'>{{t 'common.Profile'}}</h2>\n      {{/if}}\n    </header>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <PtlForm\n        class='width--small mb-4'\n        {{did-insert this.initUserCanManageHealthAndSafety}}\n      >\n  \n        <h3 class='mb-3'>{{t 'entity.settings.profile.User details'}}</h3>\n        {{#let\n          (changeset this.model.user.last.value this.userValidationMap)\n          as |userModel|\n        }}\n          <PtlInput\n            @type='text'\n            @label={{t 'common.First name'}}\n            @key='firstName'\n            @model={{userModel}}\n            @required={{true}}\n            disabled={{this.saveUser.isRunning}}\n            @forceValidationVisible={{gt this.saveUser.performCount 0}}\n          />\n          <PtlInput\n            @type='text'\n            @label={{t 'common.Last name'}}\n            @key='lastName'\n            @model={{userModel}}\n            @required={{true}}\n            disabled={{this.saveUser.isRunning}}\n            @forceValidationVisible={{gt this.saveUser.performCount 0}}\n          />\n          <PtlInput\n            @type='text'\n            @label={{t 'common.Email'}}\n            @key='email'\n            @model={{userModel}}\n            @required={{true}}\n            disabled={{this.saveUser.isRunning}}\n            @forceValidationVisible={{gt this.saveUser.performCount 0}}\n          />\n          <PtlInput\n            @type='text'\n            @label={{t 'common.Phone number'}}\n            @key='phoneNumber'\n            @model={{userModel}}\n            disabled={{this.saveUser.isRunning}}\n            @forceValidationVisible={{gt this.saveUser.performCount 0}}\n          />\n          <PtlInput\n            @type='select'\n            @label={{t 'common.Language'}}\n            @key='language'\n            @options={{this.languages}}\n            @model={{userModel}}\n            @forceValidationVisible={{gt this.saveUser.performCount 0}}\n            disabled={{this.saveUser.isRunning}}\n          />\n  \n          <div class='mb-3'>\n            <button\n              type='button'\n              class='btn btn-link text-decoration-underline p-0'\n              {{on 'click' (fn (mut this.termsOfServiceModalVisible) true)}}\n            >\n              {{t 'entity.settings.profile.View Terms of Service'}}\n            </button>\n          </div>\n  \n          {{#if\n            (includes-feature-flags\n              'userIsEntityAdmin' 'entityCanUseHealthAndSafety'\n            )\n          }}\n            <h4 class='mb-3'>\n              {{t 'common.healthAndSafety'}}\n            </h4>\n  \n            <div class='form-check mb-3'>\n              <label>\n                <Input\n                  class='form-check-input'\n                  @type='checkbox'\n                  @checked={{this.userCanManageHealthAndSafety}}\n                  disabled={{this.saveUser.isRunning}}\n                />\n                {{t 'entity.settings.profile.Manage health and safety'}}\n              </label>\n              <div class='form-text text-muted'>\n                {{t\n                  'entity.settings.profile.grantYourselfAccessToManageAndSuperviseHealthAndSafety'\n                }}\n              </div>\n            </div>\n          {{/if}}\n  \n          <div class='d-flex flex-grow-1'>\n            <button\n              type='button'\n              class='btn btn-primary ms-auto'\n              disabled={{this.saveUser.isRunning}}\n              {{on 'click' (perform this.saveUser userModel)}}\n            >\n              {{#if this.saveUser.isRunning}}\n                <span\n                  class='spinner-border spinner-border-sm'\n                ></span>&nbsp;&nbsp;{{t 'common.Saving'}}…\n              {{else}}\n                {{t 'common.Save'}}\n              {{/if}}\n            </button>\n          </div>\n        {{/let}}\n      </PtlForm>\n  \n      <PtlForm class='width--small mb-4'>\n        <h3 class='mb-1'>{{t 'entity.settings.profile.Change password'}}</h3>\n        <div>\n          <button\n            type='button'\n            class='btn btn-link text-decoration-underline m-0 p-0 mt-2'\n            {{on 'click' (fn (mut this.passwordModalVisible) true)}}\n          >\n            {{t 'entity.settings.profile.Click here to change password'}}\n          </button>\n        </div>\n      </PtlForm>\n  \n      <PtlForm class='width--small mb-4'>\n        <h3 class='mb-1'>{{t\n            'entity.settings.profile.Remove yourself from company'\n          }}</h3>\n        <p>\n          {{t\n            'entity.settings.profile.ifYouChooseToDoThisYouWillNotBeAbleToAccess'\n          }}\n          <b>{{this.sessionData.entity.name}}</b>\n        </p>\n        <div>\n          <button\n            type='button'\n            class='btn btn-link text-danger text-decoration-underline m-0 p-0'\n            {{on 'click' (perform this.deleteUser)}}\n          >\n            {{t 'entity.settings.profile.Remove me from this company'}}\n          </button>\n        </div>\n      </PtlForm>\n    {{/if}}\n  </article>\n  \n  {{#if this.passwordModalVisible}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{perform this.closePasswordModal}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body'>\n        <div class='form-group mb-2'>\n          <label for='old-password'>{{t\n              'entity.settings.profile.Current password'\n            }}</label>\n          <Input\n            @type='password'\n            @value={{this.oldPassword}}\n            class='form-control'\n            id='old-password'\n          />\n  \n        </div>\n        <div class='form-group mb-2'>\n          <label for='new-password'>{{t\n              'entity.settings.profile.New password'\n            }}</label>\n          <Input\n            @type='password'\n            @value={{this.newPassword}}\n            class='form-control'\n            id='new-password'\n          />\n        </div>\n        <div class='form-group mb-2'>\n          <label for='confirm-password'>{{t\n              'entity.settings.profile.Confirm password'\n            }}</label>\n          <Input\n            @type='password'\n            @value={{this.confirmPassword}}\n            class='form-control'\n            id='confirm-password'\n          />\n        </div>\n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          class='btn btn-secondary'\n          type='button'\n          {{on 'click' (perform this.closePasswordModal)}}\n        >\n          {{t 'common.Cancel'}}\n        </button>\n        <button\n          class='float-end btn btn-primary'\n          type='button'\n          {{on 'click' (perform (mut this.changePassword))}}\n        >\n          {{#if this.changePassword.isRunning}}\n            {{t 'common.Changing'}}&hellip;\n          {{else}}\n            {{t 'common.Confirm change'}}\n          {{/if}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.termsOfServiceModalVisible}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.termsOfServiceModalVisible) false}}\n      @containerClass='modal-content modal-dialog-scrollable w-75'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body'>\n        {{html-safe this.model.terms.last.value}}\n      </div>\n  \n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          aria-label='button close'\n          class='btn btn-secondary'\n          {{on 'click' (fn (mut this.termsOfServiceModalVisible) false)}}\n        >{{t 'common.Close'}}</button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"pEqIxCum\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"common.Profile\\\"],null]]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4 h-100\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom pb-2 mb-3 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,[28,[35,4],[\\\"common.Profile\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,9],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[8,[39,10],[[24,0,\\\"width--small mb-4\\\"],[4,[38,11],[[30,0,[\\\"initUserCanManageHealthAndSafety\\\"]]],null]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-3\\\"],[12],[1,[28,[35,4],[\\\"entity.settings.profile.User details\\\"],null]],[13],[1,\\\"\\\\n\\\"],[44,[[28,[37,14],[[30,0,[\\\"model\\\",\\\"user\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"userValidationMap\\\"]]],null]],[[[1,\\\"        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,4],[\\\"common.First name\\\"],null],\\\"firstName\\\",[30,1],true,[28,[37,16],[[30,0,[\\\"saveUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,4],[\\\"common.Last name\\\"],null],\\\"lastName\\\",[30,1],true,[28,[37,16],[[30,0,[\\\"saveUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,4],[\\\"common.Email\\\"],null],\\\"email\\\",[30,1],true,[28,[37,16],[[30,0,[\\\"saveUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,4],[\\\"common.Phone number\\\"],null],\\\"phoneNumber\\\",[30,1],[28,[37,16],[[30,0,[\\\"saveUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",[28,[37,4],[\\\"common.Language\\\"],null],\\\"language\\\",[30,0,[\\\"languages\\\"]],[30,1],[28,[37,16],[[30,0,[\\\"saveUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-decoration-underline p-0\\\"],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,20],[[28,[37,21],[[30,0,[\\\"termsOfServiceModalVisible\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"entity.settings.profile.View Terms of Service\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,22],[\\\"userIsEntityAdmin\\\",\\\"entityCanUseHealthAndSafety\\\"],null],[[[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"common.healthAndSafety\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"form-check mb-3\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,25],[[24,0,\\\"form-check-input\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"userCanManageHealthAndSafety\\\"]]]],null],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.settings.profile.Manage health and safety\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.settings.profile.grantYourselfAccessToManageAndSuperviseHealthAndSafety\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,26],[[30,0,[\\\"saveUser\\\"]],[30,1]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Save\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[1]]],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\\n    \\\"],[8,[39,10],[[24,0,\\\"width--small mb-4\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-1\\\"],[12],[1,[28,[35,4],[\\\"entity.settings.profile.Change password\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,0],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-decoration-underline m-0 p-0 mt-2\\\"],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,20],[[28,[37,21],[[30,0,[\\\"passwordModalVisible\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"entity.settings.profile.Click here to change password\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\\n    \\\"],[8,[39,10],[[24,0,\\\"width--small mb-4\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-1\\\"],[12],[1,[28,[35,4],[\\\"entity.settings.profile.Remove yourself from company\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.settings.profile.ifYouChooseToDoThisYouWillNotBeAbleToAccess\\\"],null]],[1,\\\"\\\\n        \\\"],[10,\\\"b\\\"],[12],[1,[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"name\\\"]]],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline m-0 p-0\\\"],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,26],[[30,0,[\\\"deleteUser\\\"]]],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"entity.settings.profile.Remove me from this company\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"passwordModalVisible\\\"]],[[[1,\\\"  \\\"],[8,[39,30],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[28,[37,26],[[30,0,[\\\"closePasswordModal\\\"]]],null],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"form-group mb-2\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"old-password\\\"],[12],[1,[28,[35,4],[\\\"entity.settings.profile.Current password\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[8,[39,25],[[24,0,\\\"form-control\\\"],[24,1,\\\"old-password\\\"]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"password\\\",[30,0,[\\\"oldPassword\\\"]]]],null],[1,\\\"\\\\n\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"form-group mb-2\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"new-password\\\"],[12],[1,[28,[35,4],[\\\"entity.settings.profile.New password\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[8,[39,25],[[24,0,\\\"form-control\\\"],[24,1,\\\"new-password\\\"]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"password\\\",[30,0,[\\\"newPassword\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"form-group mb-2\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"confirm-password\\\"],[12],[1,[28,[35,4],[\\\"entity.settings.profile.Confirm password\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[8,[39,25],[[24,0,\\\"form-control\\\"],[24,1,\\\"confirm-password\\\"]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"password\\\",[30,0,[\\\"confirmPassword\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,26],[[30,0,[\\\"closePasswordModal\\\"]]],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"float-end btn btn-primary\\\"],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,26],[[28,[37,21],[[30,0,[\\\"changePassword\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"changePassword\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,4],[\\\"common.Changing\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,4],[\\\"common.Confirm change\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"termsOfServiceModalVisible\\\"]],[[[1,\\\"  \\\"],[8,[39,30],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[28,[37,20],[[28,[37,21],[[30,0,[\\\"termsOfServiceModalVisible\\\"]]],null],false],null],\\\"modal-content modal-dialog-scrollable w-75\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,31],[[30,0,[\\\"model\\\",\\\"terms\\\",\\\"last\\\",\\\"value\\\"]]],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,\\\"aria-label\\\",\\\"button close\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,20],[[28,[37,21],[[30,0,[\\\"termsOfServiceModalVisible\\\"]]],null],false],null]],null],[12],[1,[28,[35,4],[\\\"common.Close\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"userModel\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"header\\\",\\\"if\\\",\\\"h2\\\",\\\"loading-icon\\\",\\\"ptl-form\\\",\\\"did-insert\\\",\\\"h3\\\",\\\"let\\\",\\\"changeset\\\",\\\"ptl-input\\\",\\\"gt\\\",\\\"div\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"includes-feature-flags\\\",\\\"h4\\\",\\\"label\\\",\\\"input\\\",\\\"perform\\\",\\\"span\\\",\\\"p\\\",\\\"b\\\",\\\"modal-dialog\\\",\\\"html-safe\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/profile.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/error\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='flex-grow-1 text-center p-5 d-flex flex-column align-items-center'>\n    <FaIcon @icon='dizzy' @size='5x' class='mb-3' />\n    <h1 class='mb-0'>Oops</h1>\n    <h3>Something went wrong</h3>\n  \n    <LinkTo @route='index' class='btn btn-lg btn-primary'>Try again</LinkTo>\n  </div>\n  */\n  {\n    \"id\": \"S/xBlQ7T\",\n    \"block\": \"[[[10,0],[14,0,\\\"flex-grow-1 text-center p-5 d-flex flex-column align-items-center\\\"],[12],[1,\\\"\\\\n  \\\"],[8,[39,1],[[24,0,\\\"mb-3\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"dizzy\\\",\\\"5x\\\"]],null],[1,\\\"\\\\n  \\\"],[10,\\\"h1\\\"],[14,0,\\\"mb-0\\\"],[12],[1,\\\"Oops\\\"],[13],[1,\\\"\\\\n  \\\"],[10,\\\"h3\\\"],[12],[1,\\\"Something went wrong\\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,4],[[24,0,\\\"btn btn-lg btn-primary\\\"]],[[\\\"@route\\\"],[\\\"index\\\"]],[[\\\"default\\\"],[[[[1,\\\"Try again\\\"]],[]]]]],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"div\\\",\\\"fa-icon\\\",\\\"h1\\\",\\\"h3\\\",\\\"link-to\\\"]]\",\n    \"moduleName\": \"portal/templates/error.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/initiate-password-reset\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='vh-100 bg-dark bg-gradient'>\n    <div class='container h-100 d-flex justify-content-center align-items-center'>\n      <div class='card shadow-lg' style='width: 450px;'>\n        <div class='card-body p-sm-5 text-center'>\n  \n          <form {{action 'resetPassword' on='submit'}}>\n            <h1 class='mb-3'>Reset your password</h1>\n            <div class='mb-3'>\n              <Input\n                id='email-address'\n                class='form-control form-control-lg'\n                @value={{this.email}}\n              />\n            </div>\n            <LoadingButton\n              @class='btn btn-primary btn-lg w-100'\n              @isLoading={{this.isResettingPassword}}\n              @action={{action 'resetPassword'}}\n              @buttonText='Send password reset email'\n            />\n          </form>\n        </div>\n      </div>\n    </div>\n  </div>\n  */\n  {\n    \"id\": \"ouRsjDc1\",\n    \"block\": \"[[[10,0],[14,0,\\\"vh-100 bg-dark bg-gradient\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"container h-100 d-flex justify-content-center align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"card shadow-lg\\\"],[14,5,\\\"width: 450px;\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"card-body p-sm-5 text-center\\\"],[12],[1,\\\"\\\\n\\\\n        \\\"],[11,\\\"form\\\"],[4,[38,2],[[30,0],\\\"resetPassword\\\"],[[\\\"on\\\"],[\\\"submit\\\"]]],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h1\\\"],[14,0,\\\"mb-3\\\"],[12],[1,\\\"Reset your password\\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,4],[[24,1,\\\"email-address\\\"],[24,0,\\\"form-control form-control-lg\\\"]],[[\\\"@value\\\"],[[30,0,[\\\"email\\\"]]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[39,5],null,[[\\\"@class\\\",\\\"@isLoading\\\",\\\"@action\\\",\\\"@buttonText\\\"],[\\\"btn btn-primary btn-lg w-100\\\",[30,0,[\\\"isResettingPassword\\\"]],[28,[37,2],[[30,0],\\\"resetPassword\\\"],null],\\\"Send password reset email\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"div\\\",\\\"form\\\",\\\"action\\\",\\\"h1\\\",\\\"input\\\",\\\"loading-button\\\"]]\",\n    \"moduleName\": \"portal/templates/initiate-password-reset.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"xQuGqETj\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/login\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"0q3Z2Pb9\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/login.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/logout-redirect\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"/Dnn3c5w\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/logout-redirect.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/no-access\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='vh-100 bg-dark bg-gradient'>\n    <div class='container h-100 d-flex justify-content-center align-items-center'>\n      <div class='card shadow-lg' style='width: 450px;'>\n        <div class='card-body p-sm-5 text-center'>\n          <h1 class='mb-3'>\n            You can't access this company\n          </h1>\n          <p>\n            Either you haven't been given access to this company, or the company\n            has been disabled.\n          </p>\n          <p>\n            If you believe you have received this message in error, please contact\n            the company manager.\n          </p>\n  \n          {{#if (gt this.sessionData.allowedEntities.length 1)}}\n            <button\n              type='button'\n              class='btn btn-primary btn-lg w-100'\n              {{on 'click' (fn (mut this.orgSelectorOpen) true)}}\n            >\n              Change company\n            </button>\n          {{else}}\n            <button\n              class='btn btn-primary btn-lg w-100'\n              type='button'\n              {{on 'click' this.signOut}}\n            >\n              Sign out\n            </button>\n          {{/if}}\n        </div>\n      </div>\n    </div>\n  </div>\n  \n  {{#if this.orgSelectorOpen}}\n    <EntitySelector @onClose={{fn (mut this.orgSelectorOpen) false}} />\n  {{/if}}\n  */\n  {\n    \"id\": \"9zP/Hc7f\",\n    \"block\": \"[[[10,0],[14,0,\\\"vh-100 bg-dark bg-gradient\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"container h-100 d-flex justify-content-center align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"card shadow-lg\\\"],[14,5,\\\"width: 450px;\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"card-body p-sm-5 text-center\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h1\\\"],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n          You can't access this company\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,2],[12],[1,\\\"\\\\n          Either you haven't been given access to this company, or the company\\\\n          has been disabled.\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,2],[12],[1,\\\"\\\\n          If you believe you have received this message in error, please contact\\\\n          the company manager.\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,4],[[30,0,[\\\"sessionData\\\",\\\"allowedEntities\\\",\\\"length\\\"]],1],null],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-lg w-100\\\"],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,7],[[28,[37,8],[[30,0,[\\\"orgSelectorOpen\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            Change company\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-lg w-100\\\"],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[30,0,[\\\"signOut\\\"]]],null],[12],[1,\\\"\\\\n            Sign out\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"orgSelectorOpen\\\"]],[[[1,\\\"  \\\"],[8,[39,9],null,[[\\\"@onClose\\\"],[[28,[37,7],[[28,[37,8],[[30,0,[\\\"orgSelectorOpen\\\"]]],null],false],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[],false,[\\\"div\\\",\\\"h1\\\",\\\"p\\\",\\\"if\\\",\\\"gt\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"entity-selector\\\"]]\",\n    \"moduleName\": \"portal/templates/no-access.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/not-found\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='page__container'>\n    <div\n      class='flex-grow-1 text-center p-5 d-flex flex-column align-items-center'\n    >\n      <FaIcon @icon='dizzy' @size='5x' class='mb-3' />\n      <h1 class='mb-0'>404</h1>\n      <h3>Page not found</h3>\n    </div>\n  </div>\n  */\n  {\n    \"id\": \"nSS0ZRzF\",\n    \"block\": \"[[[10,0],[14,0,\\\"page__container\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"flex-grow-1 text-center p-5 d-flex flex-column align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,1],[[24,0,\\\"mb-3\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"dizzy\\\",\\\"5x\\\"]],null],[1,\\\"\\\\n    \\\"],[10,\\\"h1\\\"],[14,0,\\\"mb-0\\\"],[12],[1,\\\"404\\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"h3\\\"],[12],[1,\\\"Page not found\\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"div\\\",\\\"fa-icon\\\",\\\"h1\\\",\\\"h3\\\"]]\",\n    \"moduleName\": \"portal/templates/not-found.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/project\", [\"exports\", \"oss-portal-addon/templates/project\"], function (_exports, _project) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _project.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"oss-portal-addon/templates/project\"eaimeta@70e063a35619d71f\n});","define(\"portal/templates/project/no-site\", [\"exports\", \"oss-portal-addon/templates/project/no-site\"], function (_exports, _noSite) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _noSite.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"oss-portal-addon/templates/project/no-site\"eaimeta@70e063a35619d71f\n});","define(\"portal/templates/project/site\", [\"exports\", \"oss-portal-addon/templates/project/site\"], function (_exports, _site) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _site.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"oss-portal-addon/templates/project/site\"eaimeta@70e063a35619d71f\n});","define(\"portal/templates/project/site/dashboard\", [\"exports\", \"oss-portal-addon/templates/project/site/dashboard\"], function (_exports, _dashboard) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _dashboard.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"oss-portal-addon/templates/project/site/dashboard\"eaimeta@70e063a35619d71f\n});","define(\"portal/templates/project/site/details\", [\"exports\", \"oss-portal-addon/templates/project/site/details\"], function (_exports, _details) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _details.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"oss-portal-addon/templates/project/site/details\"eaimeta@70e063a35619d71f\n});","define(\"portal/templates/project/site/hazards\", [\"exports\", \"oss-portal-addon/templates/project/site/hazards\"], function (_exports, _hazards) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _hazards.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"oss-portal-addon/templates/project/site/hazards\"eaimeta@70e063a35619d71f\n});","define(\"portal/templates/project/site/hazards/board\", [\"exports\", \"oss-portal-addon/templates/project/site/hazards/board\"], function (_exports, _board) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _board.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"oss-portal-addon/templates/project/site/hazards/board\"eaimeta@70e063a35619d71f\n});","define(\"portal/templates/project/site/hazards/selection\", [\"exports\", \"oss-portal-addon/templates/project/site/hazards/selection\"], function (_exports, _selection) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _selection.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"oss-portal-addon/templates/project/site/hazards/selection\"eaimeta@70e063a35619d71f\n});","define(\"portal/templates/project/site/index\", [\"exports\", \"oss-portal-addon/templates/project/site/index\"], function (_exports, _index) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _index.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"oss-portal-addon/templates/project/site/index\"eaimeta@70e063a35619d71f\n});","define(\"portal/templates/project/site/ppe\", [\"exports\", \"oss-portal-addon/templates/project/site/ppe\"], function (_exports, _ppe) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _ppe.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"oss-portal-addon/templates/project/site/ppe\"eaimeta@70e063a35619d71f\n});","define(\"portal/templates/project/site/reports/index\", [\"exports\", \"oss-portal-addon/templates/project/site/reports/index\"], function (_exports, _index) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _index.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"oss-portal-addon/templates/project/site/reports/index\"eaimeta@70e063a35619d71f\n});","define(\"portal/templates/project/site/reports/report\", [\"exports\", \"oss-portal-addon/templates/project/site/reports/report\"], function (_exports, _report) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _report.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"oss-portal-addon/templates/project/site/reports/report\"eaimeta@70e063a35619d71f\n});","define(\"portal/templates/project/site/setup\", [\"exports\", \"oss-portal-addon/templates/project/site/setup\"], function (_exports, _setup) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _setup.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"oss-portal-addon/templates/project/site/setup\"eaimeta@70e063a35619d71f\n});","define(\"portal/templates/project/site/setup/notifiable\", [\"exports\", \"oss-portal-addon/templates/project/site/setup/notifiable\"], function (_exports, _notifiable) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _notifiable.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"oss-portal-addon/templates/project/site/setup/notifiable\"eaimeta@70e063a35619d71f\n});","define(\"portal/templates/project/site/setup/summary\", [\"exports\", \"oss-portal-addon/templates/project/site/setup/summary\"], function (_exports, _summary) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _summary.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"oss-portal-addon/templates/project/site/setup/summary\"eaimeta@70e063a35619d71f\n});","define(\"portal/templates/project/site/signin\", [\"exports\", \"oss-portal-addon/templates/project/site/signin\"], function (_exports, _signin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _signin.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"oss-portal-addon/templates/project/site/signin\"eaimeta@70e063a35619d71f\n});","define(\"portal/templates/reports\", [\"exports\", \"oss-portal-addon/templates/reports\"], function (_exports, _reports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _reports.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"oss-portal-addon/templates/reports\"eaimeta@70e063a35619d71f\n});","define(\"portal/templates/reset-password\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='vh-100 bg-dark bg-gradient'>\n    <div class='container h-100 d-flex justify-content-center align-items-center'>\n      <div class='card shadow-lg' style='width: 450px;'>\n        <div class='card-body p-sm-5 text-center'>\n          {{#unless this.tokenExpired}}\n            <h1 class='mb-3'>Reset your password</h1>\n  \n            <form autocomplete='off' {{action 'resetPasswordForm' on='submit'}}>\n              <div class='mb-3'>\n                <Input\n                  id='new-password'\n                  @type='password'\n                  class='form-control form-control-lg'\n                  placeholder='New password'\n                  @value={{this.newPassword}}\n                />\n              </div>\n              <div class='mb-3'>\n                <Input\n                  id='confirm-password'\n                  @type='password'\n                  class='form-control form-control-lg'\n                  placeholder='Confirm password'\n                  @value={{this.confirmPassword}}\n                />\n              </div>\n              <LoadingButton\n                @class='btn btn-primary btn-lg w-100'\n                @isLoading={{this.isResettingPassword}}\n                @action={{action 'resetPasswordForm'}}\n                @buttonText='Reset password'\n              />\n            </form>\n          {{else}}\n            <h1 class='mb-3'>Reset your password</h1>\n            <p class='mb-3'>Your token is invalid or has expired.</p>\n            <button\n              type='button'\n              class='btn btn-primary btn-lg w-100'\n              {{action 'handleRequestPasswordReset'}}\n            >\n              Click here to request a new reset link…\n            </button>\n          {{/unless}}\n        </div>\n      </div>\n    </div>\n  </div>\n  */\n  {\n    \"id\": \"OLs82MBi\",\n    \"block\": \"[[[10,0],[14,0,\\\"vh-100 bg-dark bg-gradient\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"container h-100 d-flex justify-content-center align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"card shadow-lg\\\"],[14,5,\\\"width: 450px;\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"card-body p-sm-5 text-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"tokenExpired\\\"]]],[[[1,\\\"          \\\"],[10,\\\"h1\\\"],[14,0,\\\"mb-3\\\"],[12],[1,\\\"Reset your password\\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[11,\\\"form\\\"],[24,\\\"autocomplete\\\",\\\"off\\\"],[4,[38,4],[[30,0],\\\"resetPasswordForm\\\"],[[\\\"on\\\"],[\\\"submit\\\"]]],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,5],[[24,1,\\\"new-password\\\"],[24,0,\\\"form-control form-control-lg\\\"],[24,\\\"placeholder\\\",\\\"New password\\\"]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"password\\\",[30,0,[\\\"newPassword\\\"]]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,5],[[24,1,\\\"confirm-password\\\"],[24,0,\\\"form-control form-control-lg\\\"],[24,\\\"placeholder\\\",\\\"Confirm password\\\"]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"password\\\",[30,0,[\\\"confirmPassword\\\"]]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[8,[39,6],null,[[\\\"@class\\\",\\\"@isLoading\\\",\\\"@action\\\",\\\"@buttonText\\\"],[\\\"btn btn-primary btn-lg w-100\\\",[30,0,[\\\"isResettingPassword\\\"]],[28,[37,4],[[30,0],\\\"resetPasswordForm\\\"],null],\\\"Reset password\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,\\\"h1\\\"],[14,0,\\\"mb-3\\\"],[12],[1,\\\"Reset your password\\\"],[13],[1,\\\"\\\\n          \\\"],[10,2],[14,0,\\\"mb-3\\\"],[12],[1,\\\"Your token is invalid or has expired.\\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-lg w-100\\\"],[24,4,\\\"button\\\"],[4,[38,4],[[30,0],\\\"handleRequestPasswordReset\\\"],null],[12],[1,\\\"\\\\n            Click here to request a new reset link…\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"div\\\",\\\"unless\\\",\\\"h1\\\",\\\"form\\\",\\\"action\\\",\\\"input\\\",\\\"loading-button\\\",\\\"p\\\",\\\"button\\\"]]\",\n    \"moduleName\": \"portal/templates/reset-password.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/site\", [\"exports\", \"oss-portal-addon/templates/site\"], function (_exports, _site) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _site.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"oss-portal-addon/templates/site\"eaimeta@70e063a35619d71f\n});","define(\"portal/templates/terms-of-service\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='vh-100 bg-dark bg-gradient'>\n    <div class='container h-100 d-flex justify-content-center align-items-center'>\n      <div class='card shadow-lg w-75'>\n        <div class='card-body p-sm-5 text-center'>\n          <form>\n            <h1 class='mb-3'>Terms of service</h1>\n  \n            <div class='overflow-auto mb-3 border p-3' style='height: 50vh'>\n              {{html-safe this.model.terms}}\n            </div>\n  \n            <div class='form-check mb-3 text-left'>\n              <Input\n                class='form-check-input'\n                id='terms'\n                @type='checkbox'\n                @checked={{this.model.user.hasAcceptedTerms}}\n              />\n              <label class='form-check-label' for='terms'>\n                I agree to these terms\n              </label>\n            </div>\n  \n            <LoadingButton\n              @isLoading={{this.isSubmitting}}\n              @action={{action 'continue'}}\n              @class='btn btn-primary btn-lg w-100'\n            >\n              Continue\n            </LoadingButton>\n          </form>\n        </div>\n      </div>\n    </div>\n  </div>\n  */\n  {\n    \"id\": \"DH5du54D\",\n    \"block\": \"[[[10,0],[14,0,\\\"vh-100 bg-dark bg-gradient\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"container h-100 d-flex justify-content-center align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"card shadow-lg w-75\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"card-body p-sm-5 text-center\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"form\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h1\\\"],[14,0,\\\"mb-3\\\"],[12],[1,\\\"Terms of service\\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"overflow-auto mb-3 border p-3\\\"],[14,5,\\\"height: 50vh\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,3],[[30,0,[\\\"model\\\",\\\"terms\\\"]]],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"form-check mb-3 text-left\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,4],[[24,0,\\\"form-check-input\\\"],[24,1,\\\"terms\\\"]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"model\\\",\\\"user\\\",\\\"hasAcceptedTerms\\\"]]]],null],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"form-check-label\\\"],[14,\\\"for\\\",\\\"terms\\\"],[12],[1,\\\"\\\\n              I agree to these terms\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,6],null,[[\\\"@isLoading\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"isSubmitting\\\"]],[28,[37,7],[[30,0],\\\"continue\\\"],null],\\\"btn btn-primary btn-lg w-100\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            Continue\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"div\\\",\\\"form\\\",\\\"h1\\\",\\\"html-safe\\\",\\\"input\\\",\\\"label\\\",\\\"loading-button\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"portal/templates/terms-of-service.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/test-support/helpers\", [\"exports\", \"ember-power-calendar/test-support/helpers\"], function (_exports, _helpers) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _helpers.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-power-calendar/test-support/helpers\"eaimeta@70e063a35619d71f\n});","define(\"portal/transforms/array\", [\"exports\", \"@ember/array\", \"@ember-data/serializer/transform\"], function (_exports, _array, _transform) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/array\",0,\"@ember-data/serializer/transform\"eaimeta@70e063a35619d71f\n  class _default extends _transform.default {\n    deserialize(serialized) {\n      return (0, _array.isArray)(serialized) ? serialized : [];\n    }\n    serialize(deserialized) {\n      return (0, _array.isArray)(deserialized) ? deserialized : [];\n    }\n  }\n  _exports.default = _default;\n});","define(\"portal/transforms/boolean\", [\"exports\", \"@ember-data/serializer/transform\"], function (_exports, _transform) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _transform.BooleanTransform;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/serializer/transform\"eaimeta@70e063a35619d71f\n});","define(\"portal/transforms/date\", [\"exports\", \"@ember-data/serializer/transform\"], function (_exports, _transform) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _transform.DateTransform;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/serializer/transform\"eaimeta@70e063a35619d71f\n});","define(\"portal/transforms/number\", [\"exports\", \"@ember-data/serializer/transform\"], function (_exports, _transform) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _transform.NumberTransform;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/serializer/transform\"eaimeta@70e063a35619d71f\n});","define(\"portal/transforms/string\", [\"exports\", \"@ember-data/serializer/transform\"], function (_exports, _transform) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _transform.StringTransform;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/serializer/transform\"eaimeta@70e063a35619d71f\n});","define(\"portal/transitions\", [\"exports\", \"@ember/object\"], function (_exports, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _default;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _default() {\n    this.setDefault({\n      duration: 200,\n      easing: 'ease-out'\n    });\n\n    // From any route to a deeper entity route\n    this.transition(this.fromRoute(() => true), this.toRoute((newRoute, oldRoute) => {\n      const newParts = newRoute.split('.');\n      const oldParts = oldRoute.split('.');\n      if (['index', 'index_loading'].includes((0, _object.get)(newParts, 'lastObject'))) {\n        newParts.pop();\n      }\n      if (['index', 'index_loading'].includes((0, _object.get)(oldParts, 'lastObject'))) {\n        oldParts.pop();\n      }\n      return newParts[0] === 'entity' && oldParts[0] === 'entity' && oldParts.length < newParts.length;\n    }), this.use('toLeft'), this.reverse('toRight'), this.media('(max-width: 992px)'));\n  }\n});","define(\"portal/utils/am5-bp-theme\", [\"exports\", \"@amcharts/amcharts5\"], function (_exports, am5) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@amcharts/amcharts5\"eaimeta@70e063a35619d71f\n  class BpTheme extends am5.Theme {\n    setupDefaultRules() {\n      this.rule('InterfaceColors').setAll({\n        positive: am5.color('#5cb85c'),\n        negative: am5.color('#ff7052')\n      });\n      // variations of these colors will be generated by the library\n      this.rule('ColorSet').set('colors', [\n      // am5.color('#5cb85c'), // green\n      am5.color('#20aaff'),\n      // blue\n      am5.color('#B95F89'),\n      // purple\n      am5.color('#ffbe0b') // yellow\n      ]);\n    }\n  }\n  _exports.default = BpTheme;\n});","define(\"portal/utils/auto-map\", [\"exports\", \"@ember/object\"], function (_exports, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = autoMap;\n  _exports.sanitizeString = sanitizeString;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\"eaimeta@70e063a35619d71f\n  /**\n   * Selects one directive from a list that applies to the invoice\n   * @param {Object} invoice - The invoice that is to be mapped\n   * @param {Object[]} directives - The directives to choose from\n   * @returns {Object} directive\n   */\n  function autoMap(invoice, directives = []) {\n    // Return a matching reference directive if one can be found\n    const invoiceReference = (0, _object.get)(invoice, 'reference');\n    const matchingReferenceDirective = invoiceReference && directives.find(d => (0, _object.get)(d, 'kind') === 'reference' && sanitizeString((0, _object.get)(d, 'value')) === sanitizeString(invoiceReference));\n    if (matchingReferenceDirective) return matchingReferenceDirective;\n\n    // Return a matching account directive if one can be found\n    const invoiceAccount = (0, _object.get)(invoice, 'supplierDebtorAccountCode');\n    const matchingAccountDirective = invoiceAccount && directives.find(d => (0, _object.get)(d, 'kind') === 'account' && sanitizeString((0, _object.get)(d, 'value')) === sanitizeString(invoiceAccount));\n    if (matchingAccountDirective) return matchingAccountDirective;\n\n    // Return null since no directive can be found\n    return null;\n  }\n  function sanitizeString(string) {\n    return string\n    // Ignore case\n    .toLowerCase()\n    // Ignore length of white space\n    .replace(/\\s\\s+/g, ' ')\n    // Replace tabs or any other type of white space with a space character\n    .replace(/\\s/g, ' ')\n    // Ignore leading or trailaing white space\n    .trim();\n  }\n});","define(\"portal/utils/balance-calculator\", [\"exports\", \"@ember/object/computed\", \"@ember/object\"], function (_exports, _computed, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.addValue = addValue;\n  _exports.default = calcBalacnes;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object/computed\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function calcBalacnes(accounts, imp, maps, step) {\n    const balances = [];\n    const extBals = (0, _object.get)(imp, 'externalBalances') || [];\n    const manBals = (0, _object.get)(imp, 'manualBalances') || [];\n    accounts.forEach(account => {\n      const manBal = manBals.findBy('account', (0, _object.get)(account, 'id'));\n      const balance = _object.default.extend({\n        account,\n        date: (0, _object.get)(imp, 'date'),\n        value: (0, _object.computed)('manualBalance', 'manualBalance.value', 'maps.[]', 'maps.@each.value', 'maps.@each.inverted', function () {\n          const manual = (0, _object.get)(this, 'manualBalance');\n          if (manual) {\n            return (0, _object.get)(manual, 'value');\n          }\n          let total = null;\n          (0, _object.get)(this, 'maps').forEach(map => {\n            if ((0, _object.get)(map, 'value') != null) {\n              total += (0, _object.get)(map, 'value');\n            }\n          });\n          return total;\n        }),\n        isManual: (0, _computed.notEmpty)('manualBalance'),\n        entity: (0, _object.get)(imp, 'entity'),\n        manualBalance: manBal ? _object.default.create(manBal) : null,\n        maps: []\n      }).create();\n      const mapsForAccount = maps.filterBy('account.id', (0, _object.get)(account, 'id')).filterBy('system', (0, _object.get)(imp, 'system'));\n      mapsForAccount.forEach(map => {\n        const extBal = extBals.findBy('externalId', (0, _object.get)(map, 'externalId'));\n        if (!(0, _object.get)(map, 'sourceBalance')) {\n          addValue(map, extBal, step);\n        } else {\n          (0, _object.set)(map, 'sourceBalance', extBal);\n        }\n        (0, _object.get)(balance, 'maps').pushObject(map);\n      });\n      balances.pushObject(balance);\n    });\n    return balances;\n  }\n  function addValue(map, balance, step) {\n    (0, _object.set)(map, 'step', step);\n    (0, _object.set)(map, 'sourceBalance', balance);\n  }\n});","define(\"portal/utils/bill-parsers/bunnings\", [\"exports\", \"moment\", \"portal/utils/parse-currency-string\"], function (_exports, _moment, _parseCurrencyString) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = bunningsInvoiceParser;\n  0; //eaimeta@70e063a35619d71f0,\"moment\",0,\"portal/utils/parse-currency-string\"eaimeta@70e063a35619d71f\n  function bunningsInvoiceParser(source) {\n    const types = {\n      10: 'head',\n      20: 'item',\n      30: 'total'\n    };\n    try {\n      const invoices = source.reduce((bills, line, index) => {\n        const [type] = line;\n        const lastBill = bills[0];\n        switch (types[type]) {\n          case 'head':\n            bills.unshift(extractHead(line, index + 1));\n            break;\n          case 'item':\n            if (lastBill) {\n              lastBill.items.push(extractItem(line, index + 1));\n              break;\n            } else {\n              throw new Error('Invalid file, invoice item found before invoice. Invoice row (10) must precede item row (20).');\n            }\n          case 'total':\n            checkTotal(lastBill, line, index + 1);\n            break;\n          default:\n            throw new Error(`Unknown row type${type ? ' \"' + type + '\" ' : ' '}on bill ${bills.length}, row ${index + 1}, column 1. Expected 10, 20, or 30.` // eslint-disable-line max-len\n            );\n        }\n        return bills;\n      }, []);\n      return {\n        invoices: invoices.reverse(),\n        errors: []\n      };\n    } catch (error) {\n      return {\n        invoices: [],\n        errors: [error.message]\n      };\n    }\n  }\n  function extractHead(line, rowIndex) {\n    const [type,\n    // eslint-disable-line no-unused-vars\n    customerNumber,\n    // eslint-disable-line no-unused-vars\n    issuedTo,\n    // eslint-disable-line no-unused-vars\n    issueDate, invoiceNumber, orderNumber, jobNumber, specialInstructions] = line;\n    const reference = [orderNumber, jobNumber, specialInstructions].filter(i => i).join(' - ');\n    if (!invoiceNumber) throw new Error(`Expected \"Invoice Number\" at row ${rowIndex}, column 5.`);\n    if (!issueDate) throw new Error(`Expected \"Issue Date\" at row ${rowIndex}, column 4.`);\n    const parsedIssueDate = (0, _moment.default)(issueDate, 'DD/MM/YYYY');\n    if (!parsedIssueDate.isValid()) throw new Error(`Expected issue date in \"DD/MM/YYYY\" format. Instead got ${issueDate}.`);\n    return {\n      reference,\n      billNumber: invoiceNumber,\n      issuer: 'Bunnings',\n      issueDate: parsedIssueDate.toDate(),\n      dueDate: parsedIssueDate.add(1, 'month').set('date', 20).toDate(),\n      items: [],\n      source: 'web:bunnings'\n    };\n  }\n  function extractItem(line, rowIndex) {\n    const [type,\n    // eslint-disable-line no-unused-vars\n    sku, description, unit,\n    // eslint-disable-line no-unused-vars\n    quantity, price,\n    // eslint-disable-line no-unused-vars\n    discount,\n    // eslint-disable-line no-unused-vars\n    net, total // eslint-disable-line no-unused-vars\n    ] = line;\n    if (!description) throw new Error(`Expected \"Description\" at row ${rowIndex}, column 3.`);\n    if (!sku) throw new Error(`Expected \"SKU\" at row ${rowIndex}, column 2.`);\n    if (!quantity) throw new Error(`Expected \"Quantity\" at row ${rowIndex}, column 5.`);\n    if (!net) throw new Error(`Expected \"Net\" at row ${rowIndex}, column 8.`);\n    return {\n      description,\n      productCode: sku,\n      quantity: Number(quantity),\n      unitPrice: (0, _parseCurrencyString.default)(net)\n    };\n  }\n  function checkTotal(invoice, line, rowIndex) {\n    const [type,\n    // eslint-disable-line no-unused-vars\n    _subTotal, gst,\n    // eslint-disable-line no-unused-vars\n    total // eslint-disable-line no-unused-vars\n    ] = line;\n    const subTotal = Number((0, _parseCurrencyString.default)(_subTotal));\n    const itemsTotal = invoice.items.reduce((total, item) => total + item.quantity * item.unitPrice, 0);\n    if (Math.abs(itemsTotal - subTotal) > 0.1) {\n      throw new Error(`Expected \"Sub Total\" on row ${rowIndex}, column 2 to equal the sum of the items (${itemsTotal.toFixed(2)}). Instead got ${subTotal.toFixed(2)}.` // eslint-disable-line max-len\n      );\n    }\n  }\n});","define(\"portal/utils/bill-parsers/carters-type-1\", [\"exports\", \"moment\"], function (_exports, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.REQUIRED_HEADERS = void 0;\n  _exports.default = cartersInvoiceParser;\n  0; //eaimeta@70e063a35619d71f0,\"moment\"eaimeta@70e063a35619d71f\n  const REQUIRED_HEADERS = _exports.REQUIRED_HEADERS = ['Document Date', 'Document Number', 'Type', 'Your Ref.', 'Contract Number', 'Address', 'Status', 'Total Value', 'Outstanding Value', 'Due Date'];\n\n  // An example invoice\n  // Document Date, Document Number, Type, Your Ref., Contract Number, Address, Status     , Total Value, Outstanding Value, Due Date\n  // 26/03/2018   , TG0744244      , IN  , FREIDLEIB, TG1254349E1    , Taken  , Outstanding, 285.41     , 285.41           , 31/03/2018\n\n  /**\n   * Turns the data from a carters invoice file into the portal domain invoice format.\n   * @param {Array} source - 2D array representing the source csv file.\n   * @returns {Object} - An object with an `invoices` member who's value is an array with one invoice in it.\n   */\n  function cartersInvoiceParser(source) {\n    const newInvoice = {\n      reference: source[1][3],\n      billNumber: source[1][1],\n      issuer: 'Carters',\n      issueDate: (0, _moment.default)(source[1][0], 'DD/MM/YYYY').toDate(),\n      dueDate: (0, _moment.default)(source[1][9], 'DD/MM/YYYY').toDate(),\n      items: [{\n        description: `Total (invoice number ${source[1][1]})`,\n        quantity: 1,\n        unitPrice: extractNumber(source[1][7] / 1.15) // Total in file is including GST\n      }],\n      source: 'web:carters-type-1'\n    };\n    return {\n      invoices: [newInvoice]\n    };\n  }\n\n  /**\n   * Checks that the number is valid and rounds to 2DP\n   * @param {String} input - A string that is a plain number\n   * @returns {Number} - The string turned into a number with 2DP accuracy\n   */\n  function extractNumber(input) {\n    return isNaN(input) ? 0 : Math.floor(Number(input) * 100) / 100;\n  }\n});","define(\"portal/utils/bill-parsers/carters-type-2\", [\"exports\", \"portal/utils/find-date\", \"portal/utils/extract-number\"], function (_exports, _findDate, _extractNumber) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.REQUIRED_HEADERS = void 0;\n  _exports.default = cartersInvoiceParser2;\n  0; //eaimeta@70e063a35619d71f0,\"portal/utils/find-date\",0,\"portal/utils/extract-number\"eaimeta@70e063a35619d71f\n  const REQUIRED_HEADERS = _exports.REQUIRED_HEADERS = ['ContactName', 'InvoiceNumber', 'InvoiceDate', 'DueDate', 'Description', 'Quantity', 'UnitAmount'];\n\n  // An example invoice\n  // Document Date, Document Number, Type, Your Ref., Contract Number, Address, Status     , Total Value, Outstanding Value, Due Date\n  // 26/03/2018   , TG0744244      , IN  , FREIDLEIB, TG1254349E1    , Taken  , Outstanding, 285.41     , 285.41           , 31/03/2018\n\n  /**\n   * Turns the data from a carters invoice file into the portal domain invoice format.\n   * @param {Array} source - 2D array representing the source csv file.\n   * @returns {Object} - An object with an `invoices` member who's value is an array with one invoice in it.\n   */\n  function cartersInvoiceParser2(source) {\n    const invoicesMap = {};\n\n    // Get the column indices for each header in the first line.\n    const indices = source[0].reduce((allKeys, header, index) => Object.assign(allKeys, {\n      [header]: index\n    }), {});\n\n    // Iterate over the lines of the file, skip the first line as it has headers in it.\n    for (const line of source.slice(1)) {\n      const billNumber = line[indices['InvoiceNumber']];\n      let invoice = invoicesMap[billNumber];\n      if (!invoice) {\n        // If it is the first line for a new invoice, it should contain a description (the reference) and not a quantity or unit price.\n        if (line[indices['Quantity']] || line[indices['UnitAmount']]) {\n          return {\n            errors: 'Could not find reference line for bill: ' + billNumber\n          };\n        }\n        invoice = {\n          billNumber,\n          reference: line[indices['Description']],\n          // The reference is stored in the description of the first item.\n          issuer: line[indices['ContactName']],\n          issueDate: (0, _findDate.default)(line[indices['InvoiceDate']], 'DD/MM/YYYY'),\n          dueDate: (0, _findDate.default)(line[indices['DueDate']], 'DD/MM/YYYY'),\n          items: [],\n          source: 'web:carters-type-2'\n        };\n        invoicesMap[billNumber] = invoice;\n      } else {\n        // If it is not the first line for a new invoice, it should contain a valid item with a quantity and unit price.\n        if (line[indices['Quantity']] == null || line[indices['UnitAmount']] == null || !line[indices['Description']]) {\n          return {\n            errors: 'Invalid item line: ' + line\n          };\n        }\n        invoice.items.push({\n          description: line[indices['Description']],\n          quantity: line[indices['Quantity']],\n          unitPrice: (0, _extractNumber.default)(line[indices['UnitAmount']])\n        });\n      }\n    }\n    const invoicesArray = Object.keys(invoicesMap).map(key => invoicesMap[key]);\n    return {\n      invoices: invoicesArray\n    };\n  }\n});","define(\"portal/utils/bill-parsers/carters-type-3\", [\"exports\", \"portal/utils/find-date\", \"portal/utils/extract-number\"], function (_exports, _findDate, _extractNumber) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.REQUIRED_HEADERS = void 0;\n  _exports.default = cartersInvoiceParser3;\n  0; //eaimeta@70e063a35619d71f0,\"portal/utils/find-date\",0,\"portal/utils/extract-number\"eaimeta@70e063a35619d71f\n  const REQUIRED_HEADERS = _exports.REQUIRED_HEADERS = ['Account Number', 'Invoice Number', 'Credit Address', 'Delivery Address', 'Document Type', 'Document Date', 'Branch', 'Customer Number', 'Customer Order Number', 'Contract Number', 'Delivery Date', 'Tax', 'Total Nett', 'Total Gross'];\n  const indices = REQUIRED_HEADERS.reduce((allKeys, header, index) => Object.assign(allKeys, {\n    [header]: index\n  }), {});\n  function cartersInvoiceParser3(source) {\n    const invoices = [];\n    // Dump the header row\n    // Each line is a separate invoice\n    for (const [index, invoice] of source.slice(1).entries()) {\n      const billNumber = invoice[indices['Invoice Number']];\n      const totalNet = invoice[indices['Total Nett']]; // Yes, this is misspelled in the format.\n      const documentDate = invoice[indices['Document Date']];\n      const customerOrderNumber = invoice[indices['Customer Order Number']];\n      const deliveryDate = invoice[indices['Delivery Date']];\n      // const accountNumber       = invoice[indices['Account Number']];\n      // const creditAddress       = invoice[indices['Credit Address']];\n      // const deliveryAddress     = invoice[indices['Delivery Address']];\n      // const documentType        = invoice[indices['Document Type']];\n      // const branch              = invoice[indices['Branch']];\n      // const customerNumber      = invoice[indices['Customer Number']];\n      // const contractNumber      = invoice[indices['Contract Number']];\n      // const totalGross          = invoice[indices['Total Gross']];\n      // const tax                 = invoice[indices['Tax']];\n\n      if (!billNumber) return {\n        errors: [`Invoice number not provided on line ${index + 2}`]\n      };\n      if (!totalNet) return {\n        errors: [`Total nett not provided on line ${index + 2}`]\n      };\n      invoices.push({\n        billNumber,\n        reference: customerOrderNumber,\n        issuer: 'Carters',\n        issueDate: (0, _findDate.default)(documentDate, 'DD/MM/YYYY'),\n        dueDate: (0, _findDate.default)(deliveryDate, 'DD/MM/YYYY'),\n        items: [{\n          description: `Total (invoice number ${billNumber})`,\n          quantity: 1,\n          unitPrice: (0, _extractNumber.default)(totalNet)\n        }],\n        source: 'web:carters-type-3'\n      });\n    }\n    return {\n      invoices\n    };\n  }\n});","define(\"portal/utils/bill-parsers/carters-type-4\", [\"exports\", \"portal/utils/find-date\", \"portal/utils/extract-number\"], function (_exports, _findDate, _extractNumber) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.REQUIRED_HEADERS = void 0;\n  _exports.default = cartersInvoiceParser4;\n  0; //eaimeta@70e063a35619d71f0,\"portal/utils/find-date\",0,\"portal/utils/extract-number\"eaimeta@70e063a35619d71f\n  const REQUIRED_HEADERS = _exports.REQUIRED_HEADERS = ['Account Number', 'Invoice Number', 'Customer Number', 'Customer Order Number', 'Contract Number', 'Delivery Date', 'Product Code', 'Product Description', 'Quantity Delivered', 'Sales Unit', 'Unit Price excluding GST', 'Discount %', 'Nett Value', 'Extended Line Value'];\n  const indices = REQUIRED_HEADERS.reduce((allKeys, header, index) => Object.assign(allKeys, {\n    [header]: index\n  }), {});\n  function cartersInvoiceParser4(source) {\n    const invoices = {};\n    // Dump the header row\n    // Each line is a invoice line\n    for (const [_index, invoice] of source.slice(1).entries()) {\n      // eslint-disable-line no-unused-vars\n      // deal with the invoice\n      const billNumber = invoice[indices['Invoice Number']];\n      const customerOrderNumber = invoice[indices['Customer Order Number']];\n      const deliveryDate = invoice[indices['Delivery Date']];\n      if (!billNumber) continue;\n      if (!invoices[billNumber]) {\n        invoices[billNumber] = {\n          billNumber,\n          reference: customerOrderNumber,\n          issuer: 'Carters',\n          // issueDate: findDate(documentDate, 'DD/MM/YYYY'), missing from format...\n          issueDate: (0, _findDate.default)(deliveryDate, 'DD/MM/YYYY'),\n          source: 'web:carters-type-4',\n          items: []\n        };\n      }\n\n      // deal with the item\n      const productCode = invoice[indices['Product Code']];\n      const productDescription = invoice[indices['Product Description']];\n      const quantityDelivered = invoice[indices['Quantity Delivered']];\n      const unitPriceExcludingGST = invoice[indices['Unit Price excluding GST']];\n      invoices[billNumber].items.push({\n        description: productDescription,\n        productCode: productCode,\n        quantity: (0, _extractNumber.default)(quantityDelivered),\n        unitPrice: (0, _extractNumber.default)(unitPriceExcludingGST)\n      });\n    }\n    return {\n      invoices: Object.values(invoices)\n    };\n  }\n});","define(\"portal/utils/bill-parsers/carters\", [\"exports\", \"portal/utils/bill-parsers/carters-type-1\", \"portal/utils/bill-parsers/carters-type-2\", \"portal/utils/bill-parsers/carters-type-3\", \"portal/utils/bill-parsers/carters-type-4\"], function (_exports, _cartersType, _cartersType2, _cartersType3, _cartersType4) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = cartersInvoiceParser;\n  0; //eaimeta@70e063a35619d71f0,\"portal/utils/bill-parsers/carters-type-1\",0,\"portal/utils/bill-parsers/carters-type-2\",0,\"portal/utils/bill-parsers/carters-type-3\",0,\"portal/utils/bill-parsers/carters-type-4\"eaimeta@70e063a35619d71f\n  // An example invoice\n  // Document Date, Document Number, Type, Your Ref., Contract Number, Address, Status     , Total Value, Outstanding Value, Due Date\n  // 26/03/2018   , TG0744244      , IN  , FREIDLEIB, TG1254349E1    , Taken  , Outstanding, 285.41     , 285.41           , 31/03/2018\n\n  /**\n   * Turns the data from a carters invoice file into the portal domain invoice format.\n   * @param {Array} source - 2D array representing the source csv file.\n   * @returns {Object} - An object with an `invoices` member who's value is an array with one invoice in it.\n   */\n  function cartersInvoiceParser(source) {\n    const isType1 = _cartersType.REQUIRED_HEADERS.every(header => source[0].includes(header));\n    const isType2 = _cartersType2.REQUIRED_HEADERS.every(header => source[0].includes(header));\n    const isType3 = _cartersType3.REQUIRED_HEADERS.every(header => source[0].includes(header));\n    const isType4 = _cartersType4.REQUIRED_HEADERS.every(header => source[0].includes(header));\n    if (isType1) return (0, _cartersType.default)(source);else if (isType2) return (0, _cartersType2.default)(source);else if (isType3) return (0, _cartersType3.default)(source);else if (isType4) return (0, _cartersType4.default)(source);else return {\n      errors: ['Unrecognized format']\n    };\n  }\n});","define(\"portal/utils/bill-parsers/csv\", [\"exports\", \"moment\"], function (_exports, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = csvParser;\n  0; //eaimeta@70e063a35619d71f0,\"moment\"eaimeta@70e063a35619d71f\n  function csvParser(report) {\n    const invoices = [];\n    let index = 0;\n    do {\n      const {\n        errors,\n        invoice,\n        items,\n        i\n      } = parseInvoice(report, index);\n      if (errors.length) {\n        return {\n          errors\n        };\n      }\n      index = i;\n      invoice.items = items;\n      invoices.push(invoice);\n    } while (index);\n    return {\n      invoices\n    };\n  }\n  function parseInvoice(report, i = 0) {\n    const errors = [];\n    const items = [];\n    const invoice = {\n      source: 'web:generic-csv'\n    };\n\n    // Skip empty rows at top\n    while (i < report.length) {\n      if (rowIsEmpty(report[i])) {\n        i++;\n      } else {\n        break;\n      }\n    }\n\n    // Extract meta\n    if (report[i][0].trim() !== 'Invoice Number') {\n      errors.push(`Invalid file, expected 'Invoice Number' in cell 1 of row ${i + 1}`);\n      return {\n        errors\n      };\n    }\n    invoice.number = report[i][1];\n    i++;\n    if (report[i][0].trim() !== 'Invoice Name') {\n      errors.push(`Invalid file, expected 'Invoice Name' in cell 1 of row ${i + 1}`);\n      return {\n        errors\n      };\n    }\n    invoice.name = report[i][1];\n    i++;\n    if (report[i][0].trim() !== 'Issuer') {\n      errors.push(`Invalid file, expected 'Issuer' in cell 1 of row ${i + 1}`);\n      return {\n        errors\n      };\n    }\n    invoice.issuer = report[i][1];\n    i++;\n    if (report[i][0].trim() !== 'Issue Date') {\n      errors.push(`Invalid file, expected 'Issue Date' in cell 1 of row ${i + 1}`);\n      return {\n        errors\n      };\n    }\n    invoice.issueDate = (0, _moment.default)(report[i][1], 'DD-MM-YYYY').toDate();\n    i++;\n    if (report[i][0].trim() !== 'Due Date') {\n      errors.push(`Invalid file, expected 'Due Date' in cell 1 of row ${i + 1}`);\n      return {\n        errors\n      };\n    }\n    invoice.dueDate = (0, _moment.default)(report[i][1], 'DD-MM-YYYY').toDate();\n    i++;\n\n    // Check header row\n    if (!report[i] === ['Item Code', 'Item Name', 'Item Quantity', 'Item Unit Price']) {\n      errors.push(`Expected the headers 'Item Code, Item Name, Item Quantity, Item Unit Price' at row ${i + 1}`);\n      return {\n        errors\n      };\n    }\n    i++;\n    while (i < report.length) {\n      if (report[i][0] === 'Invoice Number' || rowIsEmpty(report[i])) {\n        return {\n          errors,\n          invoice,\n          items,\n          i\n        };\n      }\n      const newItem = {\n        productCode: report[i][0],\n        name: report[i][1],\n        quantity: Number(report[i][2]),\n        unitPrice: Number(report[i][3])\n      };\n      if (isNaN(newItem.quantity) || newItem.quantity == null) {\n        errors.push(`Item Quantity on row ${i + 1} could not be parsed`);\n        return {\n          errors\n        };\n      }\n      if (isNaN(newItem.unitPrice) || newItem.unitPrice == null) {\n        errors.push(`Item Unit Price on row ${i + 1} could not be parsed`);\n        return {\n          errors\n        };\n      }\n      items.push(newItem);\n      i++;\n    }\n    return {\n      errors,\n      invoice,\n      items\n    };\n  }\n  function rowIsEmpty(row) {\n    for (var i = 0; i < row.length; i++) {\n      if (row[i]) return false;\n    }\n    return true;\n  }\n});","define(\"portal/utils/bill-parsers/itm\", [\"exports\", \"lodash\"], function (_exports, _lodash) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = itmInvoiceParser;\n  0; //eaimeta@70e063a35619d71f0,\"lodash\"eaimeta@70e063a35619d71f\n  const FOOTER_ROW_NAMES = ['Subtotal', 'GST', 'Total'];\n  const COLUMN_NAMES = ['Item Code', 'Description', 'Qty Ordered', 'Qty Backordred', 'Qty Supplied', 'Unit Price', 'Extended'];\n  function itmInvoiceParser(report) {\n    const items = [];\n    let invoice = {\n      source: 'web:itm'\n    };\n    const errors = [];\n    if (!report.length) {\n      errors.push('This file appears to be empty');\n      return {\n        items,\n        invoice,\n        errors\n      };\n    }\n    invoice = {\n      reference: report[0][0],\n      // issueDate: couldnt find this on the csv\n      total: report[report.length - 1][6]\n    };\n    if (!report[0] || !report[0].length) {\n      errors.push('Wrong format, no quote title found in cell 1,1');\n    }\n    if (!report[1] || !report[1].length) {\n      errors.push('Wrong format, no headers found on line 2');\n    }\n    const headerRow = report[1].map(cell => cell.trim());\n\n    // Check that all the headers are in the right place\n    if (!_lodash.default.isEqual(headerRow, COLUMN_NAMES)) {\n      errors.push('Wrong format, missing or incorrect coloum descriptions on line 2');\n    }\n\n    // Extract main body of report\n    // Native filter rather than Ember's reject: this module is reached without\n    // the application having booted, and the array prototype extensions are not\n    // installed until it has.\n    const trimmedReport = report.slice(2).filter(row => {\n      const hasFooterLabel = FOOTER_ROW_NAMES.includes(row[0]);\n      const hasNoContent = row.slice(1, 5).filter(cell => cell !== '').length === 0;\n      return !(hasFooterLabel && hasNoContent);\n    });\n    trimmedReport.forEach((row, i) => {\n      const thisRowsQuantity = parseInt(row[6], 10);\n\n      // Skip rows that do not have a quantity as they are likely to be NOTE rows\n      if (!thisRowsQuantity) return;\n      if (!row[0].trim()) {\n        errors.push(`Cell 1, line ${i + 3} must not be empty`);\n      }\n      if (!row[1].trim()) {\n        errors.push(`Cell 2, line ${i + 3} must not be empty`);\n      }\n      for (let index = 2; index < 6; index++) {\n        if (isNaN(row[index])) {\n          errors.push(`Cell ` + index + `, line ${i + 3} must be a number`);\n        }\n      }\n      const item = {\n        productCode: row[0],\n        description: row[1],\n        quantity: row[2],\n        unitPrice: row[5]\n      };\n      items.push(item);\n    });\n    return {\n      items,\n      invoice,\n      errors\n    };\n  }\n});","define(\"portal/utils/bill-parsers/mitre\", [\"exports\", \"moment\", \"lodash\", \"portal/utils/parse-currency-string\"], function (_exports, _moment, _lodash, _parseCurrencyString) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = mitreInvoiceParser;\n  0; //eaimeta@70e063a35619d71f0,\"moment\",0,\"lodash\",0,\"portal/utils/parse-currency-string\"eaimeta@70e063a35619d71f\n  const ITEM_HEADERS_OLD = ['Invoice number', 'Date', 'Type', 'Order reference', 'SKU', 'Product title', 'Quantity', 'Unit Rate', 'Sub total'];\n  const ITEM_HEADERS = ['Invoice Reference', 'Document Type', 'Created Date', 'Due Date', 'Order Number', 'Store Code', 'Store Name', 'Job', 'Docket Number', 'Customer Reference', 'SKU', 'Product Title', 'UOM', 'Quantity', 'Unit Rate', 'Sub Total', 'GST', 'Total'];\n\n  /**\n   * Checks that the number is valid, if so returns the number or zero\n   * @param {String} input - A string that is a plain number\n   * @returns {Number} - The string turned into a number or zero\n   */\n  const extractNumber = input => {\n    const parsedNumber = (0, _parseCurrencyString.default)(input);\n    return isNaN(parsedNumber) ? 0 : Number(parsedNumber);\n  };\n  /**\n   * Creates invoice item from csv line\n   * @param {Array} line - an array following Mitre 10 specification for invoice\n   * @returns {Object} - An object with fields required for an invoice item\n   */\n  const createItemFromOldFormat = line => {\n    const quantity = extractNumber(line[6]);\n    const subtotal = extractNumber(line[8]);\n    const unitPrice = subtotal / (quantity || Infinity);\n    return {\n      description: line[5],\n      productCode: line[4],\n      quantity,\n      unitPrice\n    };\n  };\n\n  /**\n   * Creates invoice from csv line\n   * @param {Array} line - an array following Mitre 10 specification for invoice\n   * @returns {Object} - An object with fields required for an invoice\n   */\n  const createInvoiceFromOldFormat = line => {\n    const yearLength = line[1].split('/')[2].length;\n    if (yearLength !== 2 && yearLength !== 4) {\n      throw new Error('Your invoice has an invalid date format. The format must either be DD/MM/YY or DD/MM/YYYY.');\n    }\n    const dateFormat = 'DD/MM/' + 'Y'.repeat(yearLength);\n    return {\n      reference: line[3],\n      billNumber: line[0],\n      issuer: 'Mitre 10',\n      issueDate: new Date(),\n      dueDate: (0, _moment.default)(line[1], dateFormat).toDate(),\n      items: [],\n      source: 'web:mitre'\n    };\n  };\n\n  /**\n   * Creates invoice item from csv line\n   * @param {Array} line - an array following Mitre 10 specification for invoice\n   * @returns {Object} - An object with fields required for an invoice item\n   */\n  const createItem = line => {\n    const quantity = extractNumber(line[13]);\n    const unitPrice = extractNumber(line[14]);\n    return {\n      description: line[11],\n      productCode: line[10],\n      quantity,\n      unitPrice\n    };\n  };\n\n  /**\n   * Creates invoice from csv line\n   * @param {Array} line - an array following Mitre 10 specification for invoice\n   * @returns {Object} - An object with fields required for an invoice\n   */\n  const createInvoice = line => {\n    const createdDateStr = line[2];\n    const dueDateStr = line[3];\n    return {\n      billNumber: line[0],\n      reference: line[9],\n      issuer: 'Mitre 10',\n      issueDate: createdDateStr ? (0, _moment.default)(createdDateStr, 'DD/MM/YYYY').toDate() : new Date(),\n      dueDate: (0, _moment.default)(dueDateStr, 'DD/MM/YYYY').toDate(),\n      items: [],\n      source: 'web:mitre'\n    };\n  };\n  function mitreInvoiceParser(source) {\n    try {\n      const headerLine = source[0] || [];\n      const newFormatHeaderColumns = ['Store Code', 'Document Type', 'Invoice Reference', 'Docket Number'];\n      const isNewFormat = headerLine.length === ITEM_HEADERS.length || headerLine.some(column => newFormatHeaderColumns.includes(column));\n      const HEADERS = isNewFormat ? ITEM_HEADERS : ITEM_HEADERS_OLD;\n      const linesWithErrors = [];\n      source.forEach((line, i) => {\n        if (line.length !== HEADERS.length) {\n          linesWithErrors.push(i + 1);\n        }\n      });\n      if (linesWithErrors.length) {\n        return {\n          errors: [`Incorrect format, expected line/s ${linesWithErrors} to have the following information: ${HEADERS.join(',')}`]\n        };\n      }\n\n      /*\n          The first interesting line is after the header\n          so we delete it if found.\n      */\n      const hasHeaderRow = _lodash.default.isEqual(source[0], HEADERS);\n      if (hasHeaderRow) source.shift();\n      const invoices = [];\n      source.forEach((row, i) => {\n        try {\n          const matchInvoice = invoice => invoice.billNumber === row[0];\n\n          // Find or create the invoice that the row belongs to\n          const invoiceExists = invoices.some(matchInvoice);\n          let invoice = invoices.find(matchInvoice);\n          if (!invoiceExists) {\n            invoice = isNewFormat ? createInvoice(row) : createInvoiceFromOldFormat(row);\n            invoices.push(invoice);\n          }\n          const item = isNewFormat ? createItem(row) : createItemFromOldFormat(row);\n          // Create an item and add it to the invoice\n          invoice.items.push(item);\n        } catch (error) {\n          throw new Error(`Error on line ${i + 1}: ${error.message}`);\n        }\n      });\n      return {\n        invoices\n      };\n    } catch (error) {\n      return {\n        errors: [error.message]\n      };\n    }\n  }\n});","define(\"portal/utils/bill-parsers/placemakers\", [\"exports\", \"moment\", \"portal/utils/bill-parsers/xero\"], function (_exports, _moment, _xero) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = placemakersInvoiceParser;\n  0; //eaimeta@70e063a35619d71f0,\"moment\",0,\"portal/utils/bill-parsers/xero\"eaimeta@70e063a35619d71f\n  const INVOICE_HEADERS = ['H',\n  // 0\n  'Branch',\n  // 1\n  'Branch Name',\n  // 2\n  'Parent Account',\n  // 3\n  'Account Code',\n  // 4\n  'Customer Name',\n  // 5\n  'Date',\n  // 6\n  'Customer Order Number',\n  // 7\n  'Transaction number',\n  // 8\n  'Transaction type (IN/CR)',\n  // 9\n  'Packing Slip Number',\n  // 10\n  'Freight Amount(excl GST)',\n  // 11\n  'Total including GST',\n  // 12\n  'GST Total' // 13\n  ];\n  const ITEM_HEADERS = ['D',\n  // 0\n  'Line number',\n  // 1\n  'Product Code (Suppliers)',\n  // 2\n  'Description',\n  // 3\n  'Qty Supplied',\n  // 4\n  'Unit',\n  // 5\n  'Unit Rate',\n  // 6\n  'Extended Line Total (excluding GST)',\n  // 7\n  'GST Rate %',\n  // 8\n  'GST Amount' // 9\n  ];\n  function placemakersInvoiceParser(source) {\n    let parser;\n    // Check we are dealing with the original expected format.\n    if (INVOICE_HEADERS.every((h, i) => h === source[0][i])) {\n      if (ITEM_HEADERS.some((h, i) => h !== source[1][i])) {\n        return {\n          errors: [`Incorrect headers, expected line 2 to be ${ITEM_HEADERS.join(',')}`]\n        };\n      }\n      parser = placemakersParser;\n\n      // We could also be dealing with a Xero Style format.\n    } else if (_xero.REQUIRED_HEADERS.every(h => source[0].includes(h))) {\n      parser = _xero.default;\n\n      // Throw an error if we cannot match a format.\n    } else {\n      return {\n        errors: [`Incorrect headers, expected line 1 to be ${INVOICE_HEADERS.join(',')}`]\n      };\n    }\n    const parsedInvoices = parser(source);\n\n    // if the parser was xero search the invoice items for a reference line\n    if (parser === _xero.default) parsedInvoices.invoices = parsePlacemakersXeroInvoiceItemsForReference(parsedInvoices.invoices);\n    return parsedInvoices;\n  }\n  function parsePlacemakersXeroInvoiceItemsForReference(invoices) {\n    return invoices.map(invoice => {\n      // if the invoice already has a reference, don't bother checking the items\n      if (invoice.reference) return invoice;\n      const referenceLineIndex = invoice.items.findIndex(item => item.description?.toLowerCase().includes('reference:'));\n      // if a reference line is found proceed in pulling the reference from it and setting it to the invoice\n      if (referenceLineIndex >= 0) {\n        const [referenceLine] = invoice.items.splice(referenceLineIndex, 1);\n        const reference = referenceLine.description.split(':').slice(1).join(':').trim();\n        invoice.reference = reference;\n      }\n      return invoice;\n    });\n  }\n  function placemakersParser(source) {\n    // The first interesting line is 2 so start the counter 1 earlier than that.\n    let lineNumber = 1;\n    let lineKey = source[lineNumber][0];\n    function updateLine() {\n      lineNumber++;\n      lineKey = source[lineNumber][0];\n    }\n    const newInvoices = [];\n    while (lineNumber < source.length - 1) {\n      // Update line number first so that when the while condition hits the last line,\n      // it can stop and the last line has already been read. Prevents array out of bounds.\n      updateLine();\n      if (lineKey === 'H') {\n        // Create new invoice and add to new invoices.\n        newInvoices.push(createInvoiceFromHeaderLine(source[lineNumber], lineNumber));\n      }\n      if (lineKey === 'D') {\n        // Create new item and add to last invoice.\n        newInvoices[newInvoices.length - 1].items.push(createItemFromLine(source[lineNumber], lineNumber));\n      }\n    }\n    return {\n      invoices: newInvoices\n    };\n  }\n  function extractNumber(input) {\n    return isNaN(input) ? 0 : Number(input);\n  }\n  function createItemFromLine(line) {\n    return {\n      description: line[3],\n      productCode: line[2],\n      quantity: extractNumber(line[4]),\n      unitPrice: extractNumber(line[6])\n    };\n  }\n  function createInvoiceFromHeaderLine(line) {\n    const yearLength = line[6].split('/')[2].length;\n    if (yearLength !== 2 && yearLength !== 4) {\n      throw new Error('Your invoice has an invalid date format. The format must either be DD/MM/YY or DD/MM/YYYY.');\n    }\n    const dateFormat = 'DD/MM/' + 'Y'.repeat(yearLength);\n    return {\n      reference: line[7],\n      billNumber: line[8],\n      issuer: `PlaceMakers ${line[2]}`,\n      issueDate: (0, _moment.default)(line[6], dateFormat).toDate(),\n      dueDate: (0, _moment.default)(line[14], dateFormat).toDate(),\n      items: [],\n      source: 'web:placemakers'\n    };\n  }\n});","define(\"portal/utils/bill-parsers/xero\", [\"exports\", \"portal/utils/find-date\"], function (_exports, _findDate) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.REQUIRED_HEADERS = void 0;\n  _exports.default = xeroInvoiceParser;\n  _exports.getUnitPriceWithDiscount = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/utils/find-date\"eaimeta@70e063a35619d71f\n  const REQUIRED_HEADERS = _exports.REQUIRED_HEADERS = ['ContactName', 'InvoiceNumber', 'InvoiceDate', 'DueDate', 'Description', 'Quantity', 'UnitAmount'];\n  function xeroInvoiceParser(source) {\n    // Check we are dealing with the expected format.\n    const missingHeader = REQUIRED_HEADERS.find(h => !source[0].includes(h));\n    if (missingHeader) return {\n      errors: [`Incorrect headers, expected line 1 to contain '${missingHeader}'`]\n    };\n    const columnKeys = source[0].reduce((indices, h, index) => Object.assign({}, indices, {\n      [h]: index\n    }), {});\n\n    // The first interesting line is 2 so start the counter 1 earlier than that.\n    let lineNumber = 0;\n    let lineKey = source[lineNumber][columnKeys.InvoiceNumber];\n    function updateLine() {\n      lineNumber++;\n      lineKey = createIdentifier(source[lineNumber][columnKeys.InvoiceNumber], source[lineNumber][columnKeys.ContactName]);\n    }\n    function matchInvoice(invoice) {\n      return createIdentifier(invoice.billNumber, invoice.issuer) === lineKey;\n    }\n    function createIdentifier(billNumber, issuer) {\n      return billNumber + ':::' + issuer;\n    }\n    const newInvoices = [];\n    while (lineNumber < source.length - 1) {\n      // Update line number first so that when the while condition hits the last line,\n      // it can stop and the last line has already been read. Prevents array out of bounds.\n      updateLine();\n      const lineInvoice = newInvoices.find(matchInvoice);\n      if (lineInvoice) {\n        // Create new invoice and add to new invoices.\n        lineInvoice.items.push(createItemFromLine(source[lineNumber], columnKeys));\n      } else {\n        newInvoices.push(createInvoiceFromHeaderLine(source[lineNumber], columnKeys));\n        newInvoices.find(matchInvoice).items.push(createItemFromLine(source[lineNumber], columnKeys));\n      }\n    }\n    return {\n      invoices: newInvoices\n    };\n  }\n  function extractNumber(input) {\n    return isNaN(input) ? 0 : Number(input);\n  }\n  const getUnitPriceWithDiscount = (unitPrice, discount) => (100 - discount) / 100 * unitPrice;\n  _exports.getUnitPriceWithDiscount = getUnitPriceWithDiscount;\n  function createItemFromLine(line, columnKeys) {\n    const unitPrice = extractNumber(line[columnKeys.UnitAmount]);\n    const discount = extractNumber(line[columnKeys.Discount]);\n    const unitPriceWithDiscount = getUnitPriceWithDiscount(unitPrice, discount);\n    return {\n      description: line[columnKeys.Description],\n      productCode: line[columnKeys.InventoryItemCode] || null,\n      quantity: extractNumber(line[columnKeys.Quantity]),\n      unitPrice: unitPriceWithDiscount\n    };\n  }\n  function createInvoiceFromHeaderLine(line, columnKeys) {\n    return {\n      reference: line[columnKeys.Reference],\n      billNumber: line[columnKeys.InvoiceNumber],\n      issuer: line[columnKeys.ContactName],\n      issueDate: (0, _findDate.default)(line[columnKeys.InvoiceDate], 'DD/MM/YYYY'),\n      dueDate: (0, _findDate.default)(line[columnKeys.DueDate], 'DD/MM/YYYY'),\n      items: [],\n      source: 'web:xero'\n    };\n  }\n});","define(\"portal/utils/bunnings-bill-csv-normalizer\", [\"exports\", \"moment\"], function (_exports, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.NORMALIZED_BUNNINGS_HEADERS = void 0;\n  _exports.default = normalizeBunningsBillCsv;\n  _exports.isBunningsBillCsv = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"moment\"eaimeta@70e063a35619d71f\n  const NORMALIZED_BUNNINGS_HEADERS = _exports.NORMALIZED_BUNNINGS_HEADERS = ['Invoice Number', 'Issue Date', 'Due Date', 'Customer Reference', 'Code', 'Description', 'Unit Price', 'Quantity'];\n  const isBunningsBillCsv = (csv = []) => {\n    const rowTypes = csv.map(row => String(row[0]));\n    return rowTypes[0] === '10' && rowTypes.includes('20') && rowTypes.includes('30');\n  };\n  _exports.isBunningsBillCsv = isBunningsBillCsv;\n  function normalizeBunningsBillCsv(csv = []) {\n    if (!isBunningsBillCsv(csv)) return csv;\n    const normalizedRows = [NORMALIZED_BUNNINGS_HEADERS];\n    let currentBill = null;\n    csv.forEach(row => {\n      // means this is header of invoice\n      if (String(row[0]) === '10') {\n        const issueDate = (0, _moment.default)(row[3], 'DD/MM/YYYY');\n        currentBill = {\n          invoiceNumber: row[4],\n          issueDate: row[3],\n          dueDate: issueDate.add(1, 'month').set('date', 20).format('DD/MM/YYYY'),\n          reference: [row[5], row[6], row[7]].filter(Boolean).join(' - ')\n        };\n        return;\n      }\n\n      // 20 means invoice item row, if it is not invoice item row skip it\n      if (String(row[0]) !== '20' || !currentBill) return;\n      normalizedRows.push([currentBill.invoiceNumber, currentBill.issueDate, currentBill.dueDate, currentBill.reference, row[1], row[2], row[7], row[4]]);\n    });\n    return normalizedRows;\n  }\n});","define(\"portal/utils/calc-map-balance\", [\"exports\", \"@ember/array\", \"@ember/utils\", \"@ember/object\"], function (_exports, _array, _utils, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = calcMapBalance;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/array\",0,\"@ember/utils\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function calcMapBalance(map, balances, account = (0, _object.get)(map, 'account')) {\n    const step = (0, _object.get)(map, 'step');\n    const drCrCorrection = (0, _object.get)(account, 'debitCredit') === 'DEBIT' ? 1 : -1;\n    const invertCorrection = (0, _object.get)(map, 'inverted') ? -1 : 1;\n    const periodic = (0, _object.get)(account, 'periodic') || step === 'profit-and-loss';\n    let balance;\n    if ((0, _array.isArray)(balances)) {\n      balance = balances.findBy('externalId', (0, _object.get)(map, 'externalId'));\n    } else {\n      balance = balances;\n    }\n    if ((0, _utils.isEmpty)(balance)) {\n      return null;\n    }\n    const {\n      period,\n      ytd,\n      periodDebit,\n      periodCredit,\n      ytdDebit,\n      ytdCredit\n    } = balance;\n\n    // Single value\n    if (periodic ? period != null : ytd != null) {\n      return invertCorrection * (periodic ? period : ytd);\n    }\n\n    // Period value\n    if (periodic ? periodDebit != null : ytdDebit != null) {\n      return invertCorrection * drCrCorrection * (periodic ? periodDebit : ytdDebit);\n    }\n\n    // Credit value\n    if (periodic ? periodCredit != null : ytdCredit != null) {\n      return invertCorrection * drCrCorrection * -(periodic ? periodCredit : ytdCredit);\n    }\n  }\n});","define(\"portal/utils/collection-to-array\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = collectionToArray;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function collectionToArray(collection) {\n    if (!collection) return [];\n    if (Array.isArray(collection)) return collection;\n    if (typeof collection.toArray === 'function') {\n      return collection.toArray();\n    }\n    if (collection.content) {\n      return collectionToArray(collection.content);\n    }\n    if (typeof collection.value === 'function') {\n      return collectionToArray(collection.value());\n    }\n    if (typeof collection[Symbol.iterator] === 'function') {\n      return Array.from(collection);\n    }\n    if (typeof collection.length === 'number') {\n      return Array.from(collection);\n    }\n    return [];\n  }\n});","define(\"portal/utils/computed\", [\"exports\", \"@ember/object\", \"portal/utils/sums\"], function (_exports, _object, _sums) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.dividedBy = dividedBy;\n  _exports.sum = sum;\n  _exports.sumBy = sumBy;\n  _exports.sumByProducts = sumByProducts;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"portal/utils/sums\"eaimeta@70e063a35619d71f\n  const {\n    sum: _sum,\n    sumBy: _sumBy,\n    sumByProducts: _sumByProducts\n  } = _sums.default;\n  function sum(...keys) {\n    return (0, _object.computed)(...keys, function () {\n      return _sum(this, ...keys);\n    });\n  }\n  function sumBy(arrayStr, keyStr) {\n    return (0, _object.computed)(`${arrayStr}.@each.${keyStr}`, function () {\n      return _sumBy((0, _object.get)(this, arrayStr), keyStr);\n    });\n  }\n  function sumByProducts(arrayStr, ...keys) {\n    return (0, _object.computed)(`${arrayStr}.@each.{${keys.join(',')}}`, function () {\n      return _sumByProducts((0, _object.get)(this, arrayStr), ...keys);\n    });\n  }\n  function dividedBy(numeratorKey, denominatorKey) {\n    return (0, _object.computed)(numeratorKey, denominatorKey, function () {\n      if (!(0, _object.get)(this, denominatorKey)) return 0;\n      return (0, _object.get)(this, numeratorKey) / (0, _object.get)(this, denominatorKey);\n    });\n  }\n});","define(\"portal/utils/crystal-csv-generator\", [\"exports\", \"moment\"], function (_exports, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.generateCrystalCSV = generateCrystalCSV;\n  0; //eaimeta@70e063a35619d71f0,\"moment\"eaimeta@70e063a35619d71f\n  // Headings used in this Crystal CSV format\n  const headings = ['Employee ID', 'Date', 'Action Type', 'Hours', 'Payrate'];\n\n  /**\n   * Takes worker details, payrate and totals over a period of days and returns a 2D array\n   * @param {Array} workers - An array of objects with worker names, totals and payrates\n   * @param {Array} days - An array of report days\n   * @returns {Array} - A 2D array representation of the Crystal CSV format\n   */\n  function generateCrystalCSV(workers = [], days = []) {\n    const formattedDays = days.map(d => (0, _moment.default)(d).format('DD/MM/YYYY'));\n    const table = [headings];\n    workers.forEach(({\n      fullName,\n      totals\n    }) => {\n      // Calculate the work done by the worker over the whole period.\n      // if no work has been done, we can exit early\n      if (!totals.some(totalObj => totalObj.totalHours > 0)) return;\n      totals.forEach((totalObj, i) => {\n        const total = totalObj.totalHours;\n\n        // only care about days where a total exists\n        // cannot use filter on array because we need the array index\n        if (total > 0) {\n          const date = formattedDays[i];\n          const row = [fullName, date, 'ord', total, 0 // Omit pay rate as it is ignored by Crystal anyway\n          ];\n          table.push(row);\n        }\n      });\n    });\n    return table;\n  }\n});","define(\"portal/utils/csv-builder\", [\"exports\", \"@ember/object\", \"portal/utils/sanitize-filename\"], function (_exports, _object, _sanitizeFilename) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = buildCSV;\n  _exports.downloadCSV = downloadCSV;\n  _exports.downloadCSVCrystal = downloadCSVCrystal;\n  _exports.downloadXlsx = downloadXlsx;\n  _exports.generateCSVBlob = generateCSVBlob;\n  _exports.generateDataRows = generateDataRows;\n  _exports.generateHeaderRows = generateHeaderRows;\n  _exports.generateMetaDataRows = generateMetaDataRows;\n  _exports.toCSV = toCSV;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"portal/utils/sanitize-filename\"eaimeta@70e063a35619d71f\n  function buildCSV(meta, orderedEntities, metricsSortedByEntity) {\n    const rows = [\n    // generates metadata about the report, when it was created and by whom\n    ...generateMetaDataRows(meta),\n    // generates all the table headers to the document.\n    ...generateHeaderRows(orderedEntities),\n    // adds in page data\n    ...generateDataRows(metricsSortedByEntity)];\n    return rows;\n  }\n\n  /**\n   * Transforms a 2d array into a CSV string. Values of\n   * @param {Array.[]} rows - Array to be used.\n   * @returns {String} A CSV string\n   */\n  function toCSV(rows, {\n    quoteValues = true\n  } = {}) {\n    const rowsAsStrings = rows.map(row => {\n      const joiner = quoteValues ? '\",\"' : ',';\n      const rowAsText = row.join(joiner);\n      const textWithoutNewLines = rowAsText.replaceAll(/\\r\\n|\\r|\\n|\\x0B|\\x0C|\\u0085|\\u2028|\\u2029/gm, ' '); // eslint-disable-line no-control-regex\n\n      return quoteValues ? `\"${textWithoutNewLines}\"` : textWithoutNewLines;\n    });\n    return rowsAsStrings.join('\\n');\n  }\n\n  /**\n   * Generates metadata for the report.\n   * @param {Object} meta - Metadata to be used in the report.\n   * @param {String} meta.entityName - The name of the entity that is the focus of the report.\n   * @param {String} meta.userEmail - The email of the user generating the report.\n   * @param {String} meta.category - The account category included.\n   * @return {Array} A 2d array that represents the metadata for the report.\n   */\n  function generateMetaDataRows(meta) {\n    return [['Report for:', (0, _object.get)(meta, 'entityName')], ['Report period:', (0, _object.get)(meta, 'period')], ['Created on:', Date()], ['Created by:', (0, _object.get)(meta, 'userEmail')], ['Accounts category:', (0, _object.get)(meta, 'category')],\n    // Excel will ignore the empty line unless it has at least one comma in it.\n    ['', '']];\n  }\n\n  /**\n   * Creates an array containing the headers for the report.\n   * @param {Object.[]} entities - Objects containing the names of the entities / groups to be included.\n   * @return {Array} rows - An array where each item in the array represents a row.\n   */\n  function generateHeaderRows(entities) {\n    return [\n    // Build a header row for entity / group names.\n    entities.reduce((total, entity) => [...total, (0, _object.get)(entity, 'name'), ''], ['Entity Name']),\n    // Build a subheader row for Month / YTD labels\n    entities.reduce(total => [...total, 'Month', 'YTD'], ['Account Name'])];\n  }\n\n  /**\n   * Converts an nested set of accounts into a 2d array for output to csv.\n   * @param  {Array} nestedReport - A tree where each node is an object that contains the\n   * name of the account and an array for the report values.\n   * @param {Number} depth - Keeps track of how deep the recursion goes. Does not need to be passed in.\n   * @return {Array} rows - A 2d array that represents the nested report data as a flat table.\n   */\n  function generateDataRows(nestedReport, depth = 0) {\n    let rows = [];\n    nestedReport.forEach(lineData => {\n      // Indent the account name by 4 spaces times its depth.\n      const name = `${'    '.repeat(depth)}${(0, _object.get)(lineData, 'name')}`;\n\n      // If the account has children, then rows for the children need to be created as well.\n      if ((0, _object.get)(lineData, 'children.length')) {\n        // Add a row that names the parent account but is otherwise empty\n        rows.push([name]);\n\n        // Recursively call this function to add rows for the child accounts.\n        rows = rows.concat(generateDataRows((0, _object.get)(lineData, 'children'), depth + 1));\n\n        // Add a total row for the parent account\n        rows.push([`${'    '.repeat(depth)}Total ${lineData.name}`, ...extractReportValues(lineData)]);\n      } else {\n        // Add a row for the account\n        rows.push([name, ...extractReportValues(lineData)]);\n      }\n    });\n    return rows;\n  }\n  function generateCSVBlob(csv, {\n    includeBOM = true\n  } = {}) {\n    // '\\uFEFF' fixes Excel opening csv with wrong encoding; https://github.com/eligrey/FileSaver.js/issues/28#issue-15333709\n    const parsedCsv = includeBOM ? '\\uFEFF' + toCSV(csv) : toCSV(csv);\n    const blob = new Blob([parsedCsv], {\n      type: 'text/csv;charset=UTF-8;'\n    });\n    return blob;\n  }\n\n  /**\n   * Creates downloadable csv\n   * @param   {Array}   csv      - csv array.\n   * @param   {String}  fileName - The desired file name.\n   * @param   {Object}  options  - Options are includeBOM, and quoteValues\n   * @returns {null}             - Returns nothing.\n   */\n  function downloadCSV(csv, _fileName, {\n    includeBOM = true,\n    quoteValues = true\n  } = {}) {\n    const fileName = (0, _sanitizeFilename.default)(_fileName);\n\n    // '\\uFEFF' fixes Excel opening csv with wrong encoding; https://github.com/eligrey/FileSaver.js/issues/28#issue-15333709\n    const parsedCsv = includeBOM ? '\\uFEFF' + toCSV(csv, {\n      quoteValues\n    }) : toCSV(csv, {\n      quoteValues\n    });\n    const blob = new Blob([parsedCsv], {\n      type: 'text/csv;charset=UTF-8;'\n    });\n    if (window.navigator.msSaveOrOpenBlob) {\n      // IE hack; see http://msdn.microsoft.com/en-us/library/ie/hh779016.aspx\n      window.navigator.msSaveBlob(blob, fileName);\n    } else {\n      const a = document.createElement('a');\n      a.href = window.URL.createObjectURL(blob);\n      a.download = fileName;\n\n      // Trigger a click event which will start the native download process.\n      document.body.appendChild(a);\n      a.click();\n      document.body.removeChild(a);\n    }\n  }\n  function downloadXlsx(blob, _fileName) {\n    const fileName = (0, _sanitizeFilename.default)(_fileName);\n    if (window.navigator.msSaveOrOpenBlob) {\n      // IE hack; see http://msdn.microsoft.com/en-us/library/ie/hh779016.aspx\n      window.navigator.msSaveBlob(blob, fileName);\n    } else {\n      const a = document.createElement('a');\n      a.href = window.URL.createObjectURL(blob);\n      a.download = fileName;\n\n      // Triger a click event which will start the native download process.\n      document.body.appendChild(a);\n      a.click();\n      document.body.removeChild(a);\n    }\n  }\n\n  /**\n   * This implements the same API as downloadCSV but uses UNICODE and windows style line endings as required by Crystal Payroll\n   * @param   {Array}  csv\n   * @param   {String} fileName\n   * @returns {null}\n   */\n  function downloadCSVCrystal(csv, _fileName) {\n    const fileName = (0, _sanitizeFilename.default)(_fileName);\n\n    // This CSV string has windows style line endings and no quotes around the values\n    const csvAsString = csv.map(row => `${row.join(',')}`).join('\\r\\n');\n    const blob = new Blob([csvAsString], {\n      type: 'text/csv;charset=UTF-8;'\n    });\n    if (window.navigator.msSaveOrOpenBlob) {\n      // IE hack; see http://msdn.microsoft.com/en-us/library/ie/hh779016.aspx\n      window.navigator.msSaveBlob(blob, fileName);\n    } else {\n      const a = document.createElement('a');\n      a.href = window.URL.createObjectURL(blob);\n      a.download = fileName;\n\n      // Triger a click event which will start the native download process.\n      document.body.appendChild(a);\n      a.click();\n      document.body.removeChild(a);\n    }\n  }\n\n  /**\n   * Ectracts values from a line in the nested report and turns it into a flat array.\n   * @param  {Array} reportLine - An object containing a data variable to be extracted.\n   * @return {Array} values - An array of data values.\n   */\n  function extractReportValues(reportLine) {\n    return (0, _object.get)(reportLine, 'data').reduce((total, data = {}) => {\n      const month = (0, _object.get)(data, 'month') || (0, _object.get)(data, 'periods.0.periodTypes.month.value');\n      const ytd = (0, _object.get)(data, 'ytd') || (0, _object.get)(data, 'periods.0.periodTypes.ytd.value');\n\n      // Only use the values if they are valid numbers.\n      // Call anything less than a 1,000,000th, zero.\n      return [...total, isNaN(month) || Math.abs(month) < 0.000001 ? 0 : month, isNaN(ytd) || Math.abs(ytd) < 0.000001 ? 0 : ytd];\n    }, []);\n  }\n});","define(\"portal/utils/deprecation-filter\", [\"exports\", \"@ember/debug\", \"portal/config/environment\"], function (_exports, _debug, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.deprecationTally = deprecationTally;\n  _exports.installDeprecationFilter = installDeprecationFilter;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/debug\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  // Ember re-fires the same deprecation on every render and every request, and\n  // LOG_STACKTRACE_ON_DEPRECATION prints a full stack for each one — thousands of\n  // stack captures per page, which is enough to make dev noticeably slow. Log the\n  // first occurrence of each id and tally the rest silently: the signal is what\n  // fires, not how often, and one stack per id locates the source better than\n  // thousands of duplicates. Call `deprecationTally()` for the counts.\n  //\n  // Not in `test`, where every occurrence has to keep flowing down the handler\n  // chain — tests/smoke/deprecation-report.js tallies from there, and deduping\n  // here would flatten every count to 1.\n  const DEDUPE = _environment.default.environment !== 'test';\n  const SEEN = new Map();\n\n  // The app installs this from an initializer, which only runs once something\n  // boots the app — which unit and integration tests never do, so for most of the\n  // suite the filter was absent and every deprecation went to Ember's default\n  // handler. tests/test-helper.js installs it directly to cover them, so this\n  // guard keeps the app's own boot from registering a second copy.\n  let installed = false;\n  function deprecationTally() {\n    return [...SEEN.entries()].sort((a, b) => b[1] - a[1]);\n  }\n  function installDeprecationFilter() {\n    if (installed) return;\n    installed = true;\n    (0, _debug.registerDeprecationHandler)((message, options, next) => {\n      const untilMajor = Number.parseInt(options?.until, 10);\n\n      // Show deprecations that must be resolved before upgrading to Ember 6.\n      // Anything with `until: 7.0` or later stays silenced — Ember 7 is not on\n      // the roadmap yet, and those warnings would drown out the ones that are.\n      // WarpDrive's `until` is a package version (\"@warp-drive/core 6.0\"), which\n      // parses as NaN and is silenced with them.\n      if (!Number.isFinite(untilMajor) || untilMajor > 6) {\n        return;\n      }\n      const id = options?.id ?? 'unknown';\n      const count = (SEEN.get(id) ?? 0) + 1;\n      SEEN.set(id, count);\n      if (!DEDUPE || count === 1) {\n        next(message, options);\n      }\n    });\n  }\n});","define(\"portal/utils/download\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.download = download;\n  _exports.downloadUrl = downloadUrl;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  // eslint-disable-next-line complexity\n  function download(data, strFileName, strMimeType) {\n    const isReactNative = !!window.ReactNativeWebView;\n    if (isReactNative) {\n      // convert Blob to base64 if necessary\n      if (data instanceof Blob) {\n        const reader = new FileReader();\n        reader.onloadend = function () {\n          const base64data = reader.result; // \"data:application/zip;base64,....\"\n          window.ReactNativeWebView.postMessage(JSON.stringify({\n            type: 'DOWNLOAD_BLOB',\n            data: base64data,\n            name: `${strFileName}.zip` || 'download',\n            mimeType: data.type\n          }));\n        };\n        reader.readAsDataURL(data);\n        return;\n      }\n\n      // if already a base64/data URL\n      window.ReactNativeWebView.postMessage(JSON.stringify({\n        type: 'DOWNLOAD_BLOB',\n        data: data,\n        name: strFileName || 'download'\n      }));\n      return;\n    }\n    var self = window; // this script is only for browsers anyway...\n    var defaultMime = 'application/octet-stream'; // this default mime also triggers iframe downloads\n    var mimeType = strMimeType || defaultMime;\n    var payload = data;\n    var url = !strFileName && !strMimeType && payload;\n    var anchor = document.createElement('a');\n    var toString = function (a) {\n      return String(a);\n    };\n    var MyBlob = self.Blob || self.MozBlob || self.WebKitBlob || toString;\n    var fileName = strFileName || 'download';\n    var blob;\n    var reader;\n    MyBlob = MyBlob.call ? MyBlob.bind(self) : Blob;\n    if (String(this) === 'true') {\n      // reverse arguments, allowing download.bind(true, \"text/xml\", \"export.xml\") to act as a callback\n      payload = [payload, mimeType];\n      mimeType = payload[0];\n      payload = payload[1];\n    }\n    if (url && url.length < 2048) {\n      // if no filename and no mime, assume a url was passed as the only argument\n      fileName = url.split('/').pop().split('?')[0];\n      anchor.href = url; // assign href prop to temp anchor\n      if (anchor.href.indexOf(url) !== -1) {\n        // if the browser determines that it's a potentially valid url path:\n        var ajax = new XMLHttpRequest();\n        ajax.open('GET', url, true);\n        ajax.responseType = 'blob';\n        ajax.onload = function (e) {\n          download(e.target.response, fileName, defaultMime);\n        };\n        setTimeout(function () {\n          ajax.send();\n        }, 0); // allows setting custom ajax headers using the return:\n        return ajax;\n      } // end if valid url?\n    } // end if url?\n\n    // go ahead and download dataURLs right away\n    if (/^data:([\\w+-]+\\/[\\w+.-]+)?[,;]/.test(payload)) {\n      if (payload.length > 1024 * 1024 * 1.999 && MyBlob !== toString) {\n        payload = dataUrlToBlob(payload);\n        mimeType = payload.type || defaultMime;\n      } else {\n        return navigator.msSaveBlob // IE10 can't do a[download], only Blobs:\n        ? navigator.msSaveBlob(dataUrlToBlob(payload), fileName) : saver(payload); // everyone else can save dataURLs un-processed\n      }\n    } else if (/([\\x80-\\xff])/.test(payload)) {\n      // not data url, is it a string with special needs?\n      // if (/([\\x80-\\xff])/.test(payload)) {\n      var i = 0;\n      var tempUiArr = new Uint8Array(payload.length);\n      var mx = tempUiArr.length;\n      for (i; i < mx; ++i) tempUiArr[i] = payload.charCodeAt(i);\n      payload = new MyBlob([tempUiArr], {\n        type: mimeType\n      });\n      // }\n    }\n    blob = payload instanceof MyBlob ? payload : new MyBlob([payload], {\n      type: mimeType\n    });\n    function dataUrlToBlob(strUrl) {\n      var parts = strUrl.split(/[:;,]/);\n      var type = parts[1];\n      var indexDecoder = strUrl.indexOf('charset') > 0 ? 3 : 2;\n      var decoder = parts[indexDecoder] === 'base64' ? atob : decodeURIComponent;\n      var binData = decoder(parts.pop());\n      var mx = binData.length;\n      var i = 0;\n      var uiArr = new Uint8Array(mx);\n      for (i; i < mx; ++i) uiArr[i] = binData.charCodeAt(i);\n      return new MyBlob([uiArr], {\n        type: type\n      });\n    }\n    function saver(url, winMode) {\n      if ('download' in anchor) {\n        // html5 A[download]\n        anchor.href = url;\n        anchor.setAttribute('download', fileName);\n        anchor.className = 'download-js-link';\n        anchor.innerHTML = 'downloading...';\n        anchor.style.display = 'none';\n        anchor.addEventListener('click', function (e) {\n          e.stopPropagation();\n          // eslint-disable-next-line no-caller\n          this.removeEventListener('click', arguments.callee);\n        });\n        document.body.appendChild(anchor);\n        setTimeout(function () {\n          anchor.click();\n          document.body.removeChild(anchor);\n          if (winMode === true) {\n            setTimeout(function () {\n              self.URL.revokeObjectURL(anchor.href);\n            }, 250);\n          }\n        }, 66);\n        return true;\n      }\n\n      // handle non-a[download] safari as best we can:\n      if (/(Version)\\/(\\d+)\\.(\\d+)(?:\\.(\\d+))?.*Safari\\//.test(navigator.userAgent)) {\n        if (/^data:/.test(url)) url = 'data:' + url.replace(/^data:([\\w\\/\\-\\+]+)/, defaultMime);\n        if (!window.open(url)) {\n          // popup blocked, offer direct download:\n          // eslint-disable-next-line max-len,no-alert\n          if (confirm('Displaying New Document\\n\\nUse Save As... to download, then click back to return to this page.')) {\n            location.href = url;\n          }\n        }\n        return true;\n      }\n\n      // do iframe dataURL download (old ch+FF):\n      var f = document.createElement('iframe');\n      document.body.appendChild(f);\n      if (!winMode && /^data:/.test(url)) {\n        // force a mime that will download:\n        url = 'data:' + url.replace(/^data:([\\w\\/\\-\\+]+)/, defaultMime);\n      }\n      f.src = url;\n      setTimeout(function () {\n        document.body.removeChild(f);\n      }, 333);\n    } // end saver\n\n    if (navigator.msSaveBlob) {\n      // IE10+ : (has Blob, but not a[download] or URL)\n      return navigator.msSaveBlob(blob, fileName);\n    }\n    if (self.URL) {\n      // simple fast and modern way using Blob and URL:\n      saver(self.URL.createObjectURL(blob), true);\n    } else {\n      // handle non-Blob()+non-URL browsers:\n      if (typeof blob === 'string' || blob.constructor === toString) {\n        try {\n          return saver('data:' + mimeType + ';base64,' + self.btoa(blob));\n        } catch (y) {\n          return saver('data:' + mimeType + ',' + encodeURIComponent(blob));\n        }\n      }\n\n      // Blob but not URL support:\n      reader = new FileReader();\n      reader.onload = function () {\n        saver(this.result);\n      };\n      reader.readAsDataURL(blob);\n    }\n    return true;\n  }\n  function downloadUrl(file) {\n    const isReactNative = !!window.ReactNativeWebView;\n    if (isReactNative) {\n      window.ReactNativeWebView.postMessage(JSON.stringify({\n        type: 'DOWNLOAD_URL',\n        url: file.href,\n        name: file.name\n      }));\n    } else {\n      const a = document.createElement('a');\n      a.download = file.name;\n      a.rel = 'noopener noreferrer'; // tabnabbing\n      a.target = '_blank';\n      a.href = file.href;\n      a.style.display = 'none';\n      a.click();\n      a.remove();\n    }\n  }\n});","define(\"portal/utils/duration-input\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.formatDuration = formatDuration;\n  _exports.parseDuration = parseDuration;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function formatDuration([duration], options = {}) {\n    const {\n      abs,\n      emptyPlaceholder = ''\n    } = options;\n    const total = isNaN(duration) ? 0 : abs ? Math.abs(Number(duration)) : Number(duration);\n    let minutes = String(Math.abs(Math.round(total % 1 * 60)));\n    let hours = Math[total > 0 ? 'floor' : 'ceil'](total);\n    if (minutes.length < 2) {\n      minutes = '0' + minutes;\n    }\n\n    // Floating point errors\n    if (minutes.length > 2) {\n      minutes = minutes.substring(0, 2);\n    }\n    if (minutes === '60') {\n      hours = String(hours + 1);\n      minutes = '00';\n    }\n    return hours || parseInt(minutes, 10) ? `${Math.floor(hours)}:${minutes}` : emptyPlaceholder;\n  }\n  function parseDuration(duration) {\n    // Null input\n    if ([null, undefined, ''].includes(duration)) {\n      return null;\n    }\n    if (!isNaN(duration)) return Number(duration);\n    const parts = duration.replace('.', ':').replace(/[^0-9:-]+/g, '').split(':');\n\n    // Invalid input\n    if (!parts.find(p => p !== '') || parts.length === 0) {\n      return null;\n    }\n    const [hours, minutes = 0] = parts.map(str => Number(str));\n    return hours + (hours >= 0 ? 1 : -1) * minutes / 60;\n  }\n});","define(\"portal/utils/email-validator\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = emailValidator;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function emailValidator(email) {\n    // eslint-disable-line complexity\n    const [localPart, domain, extra] = email.split('@');\n\n    // Return false if the email doesn't have exactly 1 @\n    if (!localPart || !domain || extra) return false;\n\n    // Return false if the local part has any characters that aren't the allowed characters\n    if (/[^\\ \"\\d\\w\\.!#$%&'*/=?^_+-`{|}~]+/.test(localPart)) return false;\n\n    // Local part can be max 64 chars long\n    if (localPart.length > 64) return false;\n    // Local part may not have quotes unless they are the leading AND trailing char\n    if (localPart.slice(1, -1).includes('\"')) return false;\n\n    // If local part is not quoted, do not allow leading dots, trailing dots, double dots, or spaces\n    if (!(localPart.startsWith('\"') && localPart.endsWith('\"'))) {\n      if (/\\.\\./.test(localPart)) return false;\n      if (/^\\./.test(localPart)) return false;\n      if (/\\.$/.test(localPart)) return false;\n      if (localPart.includes(' ')) return false;\n      // If the leading AND trailing char are not quotes, then don't allow any quotes.\n      if (localPart.includes('\"')) return false;\n    }\n\n    // Validate the domain, if test fails, return false\n    const subdomains = domain.split('.');\n    if (subdomains.some(part => !part.length || /[^a-zA-Z0-9\\-]/.test(part))) return false;\n\n    // No reason to invalidate, return true\n    return true;\n  }\n});","define(\"portal/utils/extract-number\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = extractNumber;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  /**\n   * Checks that the number is valid and rounds to 2DP\n   * @param {String} input - A string that is a plain number\n   * @returns {Number} - The string turned into a number with 2DP accuracy\n   */\n  function extractNumber(input) {\n    return isNaN(input) ? 0 : Math.floor(Number(input) * 100) / 100;\n  }\n});","define(\"portal/utils/favicon-title\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.changeFavicon = changeFavicon;\n  _exports.changeTitle = changeTitle;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function changeFavicon(src) {\n    src = src + '?=' + Math.random(); // invalidate the cached icon\n    const link = document.createElement('link');\n    const oldLink = document.getElementById('dynamic-favicon');\n    link.id = 'dynamic-favicon';\n    link.rel = 'icon';\n    link.href = src;\n    if (oldLink) document.head.removeChild(oldLink);\n    document.head.appendChild(link);\n  }\n  function changeTitle(title) {\n    document.title = title;\n  }\n});","define(\"portal/utils/find-date\", [\"exports\", \"moment\"], function (_exports, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _default;\n  0; //eaimeta@70e063a35619d71f0,\"moment\"eaimeta@70e063a35619d71f\n  function _default(dateString, format) {\n    let date = (0, _moment.default)(dateString, format);\n    if (date.isValid()) return date.toDate();\n    date = (0, _moment.default)(dateString);\n    if (date.isValid()) return date.toDate();\n    return null;\n  }\n});","define(\"portal/utils/find-param\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = findParam;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function findParam(routeDescription, routeName, paramName) {\n    // If this is the correct route, look for the param\n    if (routeDescription.name === routeName) {\n      return routeDescription.params[paramName];\n    }\n\n    // If this is still a sub-route, look in the parent\n    if (routeDescription.name.startsWith(routeName)) {\n      return findParam(routeDescription.parent, routeName, paramName);\n    }\n\n    // Route could not be found so return null\n    return null;\n  }\n});","define(\"portal/utils/get-default-language\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.getDefaultUserOrWorkerLanguage = getDefaultUserOrWorkerLanguage;\n  _exports.languages = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  const languages = _exports.languages = [{\n    value: 'zh-Hans',\n    label: 'Chinese (简体中文)'\n  }, {\n    value: 'en-AU',\n    label: 'English (Australia)'\n  }, {\n    value: 'en-NZ',\n    label: 'English (New Zealand)'\n  }, {\n    value: 'en-GB',\n    label: 'English (United Kingdom)'\n  }, {\n    value: 'en-US',\n    label: 'English (United States)'\n  }];\n  function getDefaultUserOrWorkerLanguage() {\n    const supportedTranslations = ['zh-Hans', 'en-AU', 'en-NZ', 'en-GB', 'en-US'];\n    if (supportedTranslations.includes(navigator.language)) return navigator.language;\n    return 'en-NZ';\n  }\n});","define(\"portal/utils/gl-import-parsers/banklink\", [\"exports\", \"portal/utils/parse-currency-string\"], function (_exports, _parseCurrencyString) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = banklinkReportParser;\n  0; //eaimeta@70e063a35619d71f0,\"portal/utils/parse-currency-string\"eaimeta@70e063a35619d71f\n  function banklinkReportParser(report) {\n    const maps = [];\n    const balances = [];\n    if (report.length) {\n      // Remove header row\n      report.shift();\n\n      // Extract useful info\n      report.forEach(row => {\n        // Check line name starts with number (account code)\n        if (isNaN(parseInt(row[0].split(' ')[0], 10))) {\n          return;\n        }\n\n        // Check both data columns contain numbers\n        if (isNaN(parseInt(row[1], 10)) || isNaN(parseInt(row[2], 10))) {\n          return;\n        }\n        const period = (0, _parseCurrencyString.default)(row[1]);\n        const ytd = (0, _parseCurrencyString.default)(row[2]);\n        const map = {\n          externalId: row[0].split(' ')[0],\n          code: row[0].split(' ')[0],\n          name: row[0].split(' ').slice(1).join(' '),\n          system: 'banklink'\n        };\n        const balance = {\n          externalId: row[0].split(' ')[0],\n          period,\n          ytd\n        };\n        maps.push(map);\n        balances.push(balance);\n      });\n    }\n    return {\n      maps,\n      balances\n    };\n  }\n});","define(\"portal/utils/gl-import-parsers/empower\", [\"exports\", \"@ember/object\", \"portal/utils/parse-currency-string\"], function (_exports, _object, _parseCurrencyString) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = empowerReportParser;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"portal/utils/parse-currency-string\"eaimeta@70e063a35619d71f\n  function empowerReportParser(report) {\n    var maps = [];\n    var balances = [];\n    if (report.length) {\n      // Remove header row\n      for (let i = 0; i < report.length; i++) {\n        report.shift();\n        if (report[0][0] && report[0][0].trim() === 'Account') {\n          report.shift();\n          break;\n        }\n      }\n\n      // Extract useful info\n      report.forEach(row => {\n        if (!row[0] || !row[1]) {\n          return;\n        }\n        const map = {\n          externalId: row[0],\n          code: row[0],\n          name: row[1],\n          system: 'empower'\n        };\n        const balance = {\n          externalId: row[0],\n          periodDebit: null,\n          periodCredit: null,\n          ytdDebit: null,\n          ytdCredit: null\n        };\n        const value = (0, _parseCurrencyString.default)(row[2]);\n\n        // Credit values are negative\n        if (value > 0) {\n          (0, _object.set)(balance, 'periodCredit', -value);\n          (0, _object.set)(balance, 'ytdCredit', -value);\n        } else {\n          (0, _object.set)(balance, 'periodDebit', value);\n          (0, _object.set)(balance, 'ytdDebit', value);\n        }\n        maps.push(map);\n        balances.push(balance);\n      });\n    }\n    return {\n      maps,\n      balances\n    };\n  }\n});","define(\"portal/utils/gl-import-parsers/frameworks\", [\"exports\", \"@ember/utils\", \"portal/utils/parse-currency-string\", \"lodash\"], function (_exports, _utils, _parseCurrencyString, _lodash) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _default;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/utils\",0,\"portal/utils/parse-currency-string\",0,\"lodash\"eaimeta@70e063a35619d71f\n  const fileError = noun => `The file you uploaded didn't have the ${noun} we were expecting. Please check it is a CSV report from Frameworks.`;\n  const contentError = (value, ordinal, lineNo) => `We expected to find ${value} in the ${ordinal} column on line ${lineNo}, but that cell was empty.`;\n  function _default(report) {\n    const maps = [];\n    const balances = [];\n    const errors = [];\n    if (!Array.isArray(report) || !Array.isArray(report[0]) || report.length < 2) {\n      errors.push(fileError('structure'));\n    } else if (!_lodash.default.isEqual(report[0].slice(0, -1), ['Type', 'Account', 'Account Name', 'Current Balance'])) {\n      errors.push(fileError('headers'));\n    } else if (report[report.length - 1][0] !== 'T1') {\n      errors.push(fileError('footer row'));\n    }\n    if (errors.length === 0 && report.length > 2) {\n      // Skip header and footer rows\n      report = report.slice(1, -1);\n\n      // Extract useful info\n      report.forEach((row, i) => {\n        // Check for account code\n        if ((0, _utils.isEmpty)(row[1])) {\n          errors.push(contentError('an account code', 'second', i + 2));\n          return;\n        }\n\n        // Check for account name\n        if ((0, _utils.isEmpty)(row[2])) {\n          errors.push(contentError('an account name', 'third', i + 2));\n          return;\n        }\n        maps.push({\n          externalId: row[1],\n          code: row[1],\n          name: row[2],\n          system: 'frameworks'\n        });\n        const value = (0, _parseCurrencyString.default)(row[4]);\n        if (value) {\n          balances.push({\n            externalId: row[1],\n            periodDebit: value,\n            ytdDebit: value\n          });\n        }\n      });\n    }\n    return {\n      maps,\n      balances,\n      errors\n    };\n  }\n});","define(\"portal/utils/gl-import-parsers/gj-gardner\", [\"exports\", \"portal/utils/parse-currency-string\"], function (_exports, _parseCurrencyString) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = gjGardnerReportParser;\n  0; //eaimeta@70e063a35619d71f0,\"portal/utils/parse-currency-string\"eaimeta@70e063a35619d71f\n  function gjGardnerReportParser(report) {\n    const maps = [];\n    const balances = [];\n\n    // Shallow clone\n    report = [...report];\n    validateHeaders(report.shift());\n    if (report.length) {\n      let level = 1;\n      const headers = [];\n      report.forEach(row => {\n        // Extract row data\n        const accountNumber = typeof row[0] === 'string' && row[0].trim();\n        let accountName = typeof row[1] === 'string' && row[1].trim();\n        const accountLevel = typeof row[2] === 'string' && Number(row[2].trim());\n        const accountType = typeof row[3] === 'string' && row[3].trim();\n        const actual = typeof row[4] === 'string' && row[4].length > 0 && (0, _parseCurrencyString.default)(row[4]);\n\n        // If the account name ends with it's header name, remove it\n        const currentHeader = headers[headers.length - 1];\n        if (headers.length && accountName.endsWith(currentHeader)) {\n          accountName = accountName.replace(currentHeader, '').trim();\n        }\n\n        // End of section\n        if (accountLevel < level) {\n          headers.pop();\n          level -= 1;\n        }\n\n        // Track which section we're in\n        if (accountType === 'H') {\n          headers.push(accountName);\n          level += 1;\n        }\n\n        // Skip header and total rows\n        if (accountType !== 'D') {\n          return;\n        }\n\n        // Skip if this is an account row, but for some reason this doesn't have a value\n        if (Number.isNaN(actual)) {\n          return;\n        }\n\n        // If we've reach this point, this is an account with data we need to extract\n\n        maps.push({\n          externalId: accountNumber,\n          code: accountNumber,\n          name: buildAccountName(headers, accountName),\n          system: 'gj-gardner'\n        });\n        balances.push({\n          externalId: accountNumber,\n          period: actual,\n          ytd: actual\n        });\n      });\n    }\n    return {\n      maps,\n      balances\n    };\n  }\n  function validateHeaders(headers) {\n    if (!headers) throw new Error('CSV file appears to be empty');\n    const check = (header, expected, index) => {\n      if (!Array.isArray(expected)) {\n        expected = [expected];\n      }\n      if (!expected.includes(header.trim())) {\n        throw new Error(`Expected column ${index} to be named '${expected}', but found '${header.trim()}'`);\n      }\n    };\n    check(headers[0], 'AccountNumber', 1);\n    check(headers[1], 'AccountName', 2);\n    check(headers[2], 'AccountLevel', 3);\n    check(headers[3], 'AccountType', 4);\n    check(headers[4], ['Actual', 'Amount'], 5);\n    if (headers.length > 6) {\n      throw new Error(`Expected 5 or 6 columns, but found ${headers.length}`);\n    }\n  }\n\n  /*\n   * e.g. ([ Income, Sales ], Timber) => 'Income / Sales / Timber'\n   */\n  function buildAccountName(headers, account) {\n    return headers.map(header => header + ' / ').join('') + account;\n  }\n});","define(\"portal/utils/gl-import-parsers/itm-manual\", [\"exports\", \"@ember/object\", \"portal/utils/parse-currency-string\"], function (_exports, _object, _parseCurrencyString) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = itmManualParser;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"portal/utils/parse-currency-string\"eaimeta@70e063a35619d71f\n  function itmManualParser(report) {\n    var maps = [];\n    var balances = [];\n    report.shift();\n    report.forEach(row => {\n      if (!row[0] || !row[1] || !row[2]) return;\n      maps.push({\n        externalId: row[0],\n        code: row[0],\n        name: row[1],\n        system: 'itm-manual'\n      });\n      const balance = {\n        externalId: row[0],\n        period: null\n      };\n      const value = (0, _parseCurrencyString.default)(row[2]);\n\n      // Since this is a manual format, no assumptions can really be made on whether,\n      // an account is supposed to be a period value or a YTD one. Nor, whether the source\n      // account is a credit or debit account.\n      (0, _object.set)(balance, 'period', value);\n      (0, _object.set)(balance, 'ytd', value);\n      balances.push(balance);\n    });\n    return {\n      maps,\n      balances\n    };\n  }\n});","define(\"portal/utils/gl-import-parsers/maxim\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = maximReportParser;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function maximReportParser(report) {\n    const maps = [];\n    const balances = [];\n    const errors = [];\n    if (report.length) {\n      // Remove header row\n      report.shift();\n\n      // Extract useful info\n      report.forEach((row, i) => {\n        const map = {\n          externalId: row[3],\n          code: row[3],\n          name: row[4],\n          system: 'maxim'\n        };\n        const balance = {\n          externalId: row[3],\n          periodDebit: null,\n          periodCredit: null,\n          ytdDebit: null,\n          ytdCredit: null\n        };\n        const periodValue = extractValue(row[5]);\n        if (periodValue < 0) {\n          balance.periodCredit = -periodValue;\n        } else {\n          balance.periodDebit = periodValue;\n        }\n        const ytdValue = extractValue(row[6]);\n        if (ytdValue < 0) {\n          balance.ytdCredit = -ytdValue;\n        } else {\n          balance.ytdDebit = ytdValue;\n        }\n        if (!map.externalId || !map.name || !map.code) {\n          errors.push(`Line ${i + 2} of the provided csv file did not contain valid data.`);\n        } else {\n          maps.push(map);\n          balances.push(balance);\n        }\n      });\n    }\n    return {\n      maps,\n      balances,\n      errors\n    };\n  }\n  function extractValue(source) {\n    if (!source || !source.replace) {\n      return null;\n    }\n    source = source.replace(/,/g, '');\n    if (source.indexOf('(') > -1) {\n      source = source.replace('(', '-').replace(')', '');\n    }\n    return parseFloat(source);\n  }\n});","define(\"portal/utils/gl-import-parsers/myob-ao\", [\"exports\", \"portal/utils/parse-currency-string\"], function (_exports, _parseCurrencyString) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _default;\n  0; //eaimeta@70e063a35619d71f0,\"portal/utils/parse-currency-string\"eaimeta@70e063a35619d71f\n  function _default(report) {\n    var maps = [];\n    var balances = [];\n    if (report.length) {\n      // Remove header row\n      for (let i = 0; i < report.length; i++) {\n        report.shift();\n        if (report[0][0] && report[0][0].trim() === 'No.') {\n          report.shift();\n          report.shift();\n          break;\n        }\n      }\n\n      // Extract useful info\n      report.forEach(function (row) {\n        const map = {\n          externalId: row[0],\n          code: row[0],\n          name: row[1],\n          system: 'myob-ao'\n        };\n        const value = (0, _parseCurrencyString.default)(row[2]);\n        const balance = {\n          externalId: row[0],\n          period: value,\n          ytd: value\n        };\n        maps.push(map);\n        balances.push(balance);\n      });\n    }\n    return {\n      maps,\n      balances\n    };\n  }\n});","define(\"portal/utils/gl-import-parsers/myob\", [\"exports\", \"@ember/object\", \"@ember/array\", \"portal/utils/parse-currency-string\", \"moment\", \"lodash\"], function (_exports, _object, _array, _parseCurrencyString, _moment, _lodash) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = myobReportParser;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"@ember/array\",0,\"portal/utils/parse-currency-string\",0,\"moment\",0,\"lodash\"eaimeta@70e063a35619d71f\n  /**\n   * Format is as follows\n   * @example\n   * *Created:*,  businessName\n   * unused\n   * reportName\n   * unused\n   * period\n   *\n   * OR\n   *\n   * blank line\n   * businessName\n   * some lines\n   * `General Ledger [Summary]`\n   * reportName\n   * periodStart\n   *\n   * THEN\n   *\n   * some linescd\n   * Account No. OR Acct No.,   Account Name,   Net Activity,   Ending Balance\n   * some lines\n   * positiveDigit-positiveDigit\n   *\n   * @param {array} report - The lines of a csv file\n   * @returns {{meta: {}, maps: Array, balances: Array, errors: Array}} An object containing the import data.\n   */\n  function myobReportParser(report) {\n    const meta = {};\n    const maps = [];\n    const balances = [];\n    let errors = [];\n    if (!(0, _array.isArray)(report) || report.length <= 8 || !report.every(_array.isArray)) {\n      errors.push('Input could not be parsed');\n      return {\n        meta,\n        maps,\n        balances,\n        errors\n      };\n    }\n    if (report[0][0].indexOf('Created:') === 0) {\n      // Business name\n      (0, _object.set)(meta, 'businessName', report[0][1]);\n\n      // Report name\n      (0, _object.set)(meta, 'reportName', report[2][0]);\n\n      // Report period\n      (0, _object.set)(meta, 'periodStart', report[4][0]);\n      if ((0, _object.get)(meta, 'periodStart')) {\n        (0, _object.set)(meta, 'periodEnd', (0, _moment.default)((0, _object.get)(meta, 'periodStart').substr(13, 10), 'DD/MM/YYYY').toDate());\n        (0, _object.set)(meta, 'periodStart', (0, _moment.default)((0, _object.get)(meta, 'periodStart').substr(0, 10), 'DD/MM/YYYY').toDate());\n      }\n    } else {\n      (0, _object.set)(meta, 'businessName', report.shift()[0]);\n      while (report[0][0] !== 'General Ledger [Summary]') {\n        report.shift();\n      }\n      (0, _object.set)(meta, 'reportName', report.shift()[0]);\n      (0, _object.set)(meta, 'periodStart', report.shift()[0]);\n      if ((0, _object.get)(meta, 'periodStart')) {\n        (0, _object.set)(meta, 'periodEnd', (0, _moment.default)((0, _object.get)(meta, 'periodStart').substr(13, 10), 'DD/MM/YYYY').endOf('day').toDate());\n        (0, _object.set)(meta, 'periodStart', (0, _moment.default)((0, _object.get)(meta, 'periodStart').substr(0, 10), 'DD/MM/YYYY').startOf('day').toDate());\n      }\n    }\n\n    // Error checking\n\n    if (!(0, _object.get)(meta, 'businessName')) {\n      errors.push('Could not find business name.');\n    }\n    if (!(0, _object.get)(meta, 'reportName') || (0, _object.get)(meta, 'reportName') !== 'General Ledger [Summary]') {\n      errors.push('Could not find report name.');\n    }\n    if (!(0, _object.get)(meta, 'periodStart') || !(0, _object.get)(meta, 'periodEnd')) {\n      errors.push('Could not find report date.');\n    }\n    if (errors.length) {\n      return {\n        meta,\n        maps,\n        balances,\n        errors\n      };\n    }\n    while (!report[0][0].match(/Acc(?:oun)?t No\\./)) {\n      report.shift();\n    }\n\n    // Find which column holds which data\n    let code = null;\n    let name = null;\n    let period = null;\n    let ytd = null;\n    report.shift().forEach((header, index) => {\n      if (header.match(/^Acc(?:oun)?t No\\.$/)) {\n        code = index;\n      } else if (header === 'Account Name') {\n        name = index;\n      } else if (header === 'Net Activity') {\n        period = index;\n      } else if (header === 'Ending Balance') {\n        ytd = index;\n      }\n    });\n    if (code == null) errors.push('Could not find code column');\n    if (name == null) errors.push('Could not find name column');\n    if (period == null) errors.push('Could not find period column');\n    if (ytd == null) errors.push('Could not find YTD column');\n    while (!report[0][0].match(/\\d+-\\d+/)) {\n      report.shift();\n    }\n    if (!report.length) {\n      errors.push('Could not find report data');\n      return {\n        meta,\n        maps,\n        balances,\n        errors\n      };\n    }\n    report.forEach(row => {\n      if (!row[0].match(/^\\d+-\\d+$/)) {\n        return;\n      }\n      if (!row[code] || !row[name] || !row[period] || !row[ytd]) {\n        errors.push('Failed to parse at least one row.');\n      }\n      maps.push({\n        externalId: row[code].trim(),\n        code: row[code].trim(),\n        name: row[name].trim(),\n        system: 'myob'\n      });\n      var balance = {\n        externalId: row[code]\n      };\n      if (row[period].indexOf('cr') > -1 || row[period].indexOf('(') > -1) {\n        (0, _object.set)(balance, 'periodCredit', (0, _parseCurrencyString.default)(row[period]));\n      } else {\n        (0, _object.set)(balance, 'periodDebit', (0, _parseCurrencyString.default)(row[period]));\n      }\n      if (row[ytd].indexOf('cr') > -1 || row[ytd].indexOf('(') > -1) {\n        (0, _object.set)(balance, 'ytdCredit', (0, _parseCurrencyString.default)(row[ytd]));\n      } else {\n        (0, _object.set)(balance, 'ytdDebit', (0, _parseCurrencyString.default)(row[ytd]));\n      }\n      balances.push(balance);\n    });\n    errors = _lodash.default.uniq(errors);\n    return {\n      meta,\n      maps,\n      balances,\n      errors\n    };\n  }\n});","define(\"portal/utils/gl-import-parsers/new-xero-parser\", [\"exports\", \"portal/utils/parse-currency-string\"], function (_exports, _parseCurrencyString) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _default;\n  0; //eaimeta@70e063a35619d71f0,\"portal/utils/parse-currency-string\"eaimeta@70e063a35619d71f\n  /* eslint-disable complexity */\n  /**\n   * extracts account code from a string\n   * @example\n   * Sales (200)\n   * @param {string} label produced by Xero\n   * @returns {string} An account code\n   */\n  const extractAccountCode = label => label.substring(label.lastIndexOf('(') + 1, label.lastIndexOf(')'));\n\n  /**\n   * extracts account name from a string\n   * @example\n   * Sales (200)\n   * @param {string} label produced by Xero\n   * @returns {string} An account name\n   */\n  const extractAccountName = label => label.slice(0, label.lastIndexOf('(')).trim();\n\n  /**\n   * Format is as follows\n   * @example\n   * some lines\n   * 'Account', *\n   * one blank line\n   * accountLabel, periodDebit, periodCredit, ytdDebit, ytdCredit\n   * repeat many times\n   * can have lines that don't match (they will be ignored)\n   * Total, *\n   * @param {Array} report - A parsed csv file\n   * @returns {{maps: Array, balances: Array, errors: Array}} A list of maps, balances, and errors\n   */\n  function _default(report) {\n    const maps = [];\n    const balances = [];\n    const errors = [];\n    let linesRemoved = 1;\n    if (!report.length) {\n      errors.push('Report must not be empty');\n      return {\n        maps,\n        balances,\n        errors\n      };\n    }\n\n    // Remove header rows\n    while (report.length && report[0][0].trim() !== 'Account') {\n      report.shift();\n      linesRemoved++;\n    }\n    if (!report.length) errors.push('Incorrect format. Could not find the Header \"Account\"');\n    report.shift(); // Column headers\n    linesRemoved++;\n    // Extract useful info\n    report.forEach(function (row, i) {\n      const [label, ...rest] = row;\n      const [debit, credit, ytdDebit, ytdCredit] = rest;\n      const rowHasNoInformation = rest.every(column => column === '');\n      if (rowHasNoInformation || row[0].trim() === 'Total') {\n        return;\n      }\n      const id = extractAccountCode(label);\n      const name = extractAccountName(label);\n      if (!id || !id.length) return errors.push(`Could not parse ID for line ${i + linesRemoved}`);\n      if (!name || !name.length) return errors.push(`Could not parse name for line ${i + linesRemoved}`);\n      const map = {\n        externalId: id,\n        code: id,\n        name,\n        system: 'xero-csv'\n      };\n      const isDebit = () => ytdDebit !== '';\n      const ytdValue = isDebit() ? ytdDebit : ytdCredit;\n      const balance = {\n        externalId: id,\n        periodDebit: debit.trim() !== '' ? (0, _parseCurrencyString.default)(debit) : null,\n        periodCredit: credit.trim() !== '' ? (0, _parseCurrencyString.default)(credit) : null,\n        ytd: ytdValue.trim() !== '' ? isDebit() ? -(0, _parseCurrencyString.default)(ytdValue) : (0, _parseCurrencyString.default)(ytdValue) : null\n      };\n      maps.push(map);\n      balances.push(balance);\n    });\n    if (!maps.length || !balances.length) errors.push('No imports were found');\n    return {\n      maps,\n      balances,\n      errors\n    };\n  }\n});","define(\"portal/utils/gl-import-parsers/old-xero-parser\", [\"exports\", \"portal/utils/parse-currency-string\"], function (_exports, _parseCurrencyString) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _default;\n  0; //eaimeta@70e063a35619d71f0,\"portal/utils/parse-currency-string\"eaimeta@70e063a35619d71f\n  /* eslint-disable complexity */\n  /**\n   * Format is as follows\n   * @example\n   * some lines\n   * 'Account Code', *\n   * one blank line\n   * accountCode, accountName, accountType, periodDebit, periodCredit, ytd,\n   * repeat many times\n   * can have lines that don't match (they will be ignored)\n   * Total, *\n   * @param {Array} report - A parsed csv file\n   * @returns {{maps: Array, balances: Array, errors: Array}} A list of maps, balances, and errors\n   */\n  function _default(report) {\n    const maps = [];\n    const balances = [];\n    const errors = [];\n    if (!report.length) {\n      errors.push('Report must not be empty');\n      return {\n        maps,\n        balances,\n        errors\n      };\n    }\n\n    // Remove header rows\n    while (report.length && report[0][0].trim() !== 'Account Code') {\n      report.shift();\n    }\n    if (!report.length) errors.push('Incorrect format. Could not find the Header \"Account Code\"');\n    report.shift(); // Column headers\n\n    // Extract useful info\n    report.forEach(function (row, i) {\n      if (!row[0] && !row[1] && !row[2] && !row[3] && !row[4] && !row[5] || row[0].trim() === 'Total') {\n        return;\n      }\n      const id = row[0];\n      const name = row[1];\n      if (!id || !id.length) return errors.push(`Could not parse ID for line ${i + 5}`);\n      if (!name || !name.length) return errors.push(`Could not parse name for line ${i + 5}`);\n      const map = {\n        externalId: id,\n        code: id,\n        name,\n        system: 'xero-csv'\n      };\n      const balance = {\n        externalId: id,\n        periodDebit: row[3].trim() !== '' ? (0, _parseCurrencyString.default)(row[3]) : null,\n        periodCredit: row[4].trim() !== '' ? (0, _parseCurrencyString.default)(row[4]) : null,\n        ytd: row[5].trim() !== '' ? (0, _parseCurrencyString.default)(row[5]) : null\n      };\n      maps.push(map);\n      balances.push(balance);\n    });\n    if (!maps.length || !balances.length) errors.push('No imports were found');\n    return {\n      maps,\n      balances,\n      errors\n    };\n  }\n});","define(\"portal/utils/gl-import-parsers/prostix\", [\"exports\", \"@ember/object\", \"portal/utils/parse-currency-string\"], function (_exports, _object, _parseCurrencyString) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = prostixReportParser;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"portal/utils/parse-currency-string\"eaimeta@70e063a35619d71f\n  function prostixReportParser(report) {\n    var maps = [];\n    var balances = [];\n    if (report.length) {\n      // Remove header row\n      report.shift();\n\n      // Extract useful info\n      report.forEach(row => {\n        const map = {\n          externalId: row[4],\n          code: row[4],\n          name: row[3],\n          system: 'prostix'\n        };\n        const balance = {\n          externalId: row[4],\n          periodDebit: null,\n          periodCredit: null,\n          ytdDebit: null,\n          ytdCredit: null\n        };\n        const value = (0, _parseCurrencyString.default)(row[5]);\n\n        // Credit values are positive\n        if (value > 0) {\n          (0, _object.set)(balance, 'periodCredit', value);\n          (0, _object.set)(balance, 'ytdCredit', value);\n        } else {\n          (0, _object.set)(balance, 'periodDebit', -value);\n          (0, _object.set)(balance, 'ytdDebit', -value);\n        }\n        maps.push(map);\n        balances.push(balance);\n      });\n    }\n    return {\n      maps,\n      balances\n    };\n  }\n});","define(\"portal/utils/gl-import-parsers/rees\", [\"exports\", \"lodash\"], function (_exports, _lodash) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = reesReportParser;\n  0; //eaimeta@70e063a35619d71f0,\"lodash\"eaimeta@70e063a35619d71f\n  function reesReportParser(input) {\n    let report = input;\n    const maps = [];\n    const balances = [];\n    const errors = [];\n\n    // If is paged\n    if (report.indexOf('\\u000C') > 0) {\n      // Check for the report number\n      if (report.indexOf('7.11.6') === -1) {\n        errors.push('Could not verify report number');\n        return {\n          maps,\n          balances,\n          errors\n        };\n      }\n\n      // Split on page break character\n      const pages = report.split(/\\u000C/); // eslint-disable-line no-control-regex\n\n      // Remove headers\n      const pagesWithoutHeaders = pages.map(page => {\n        return page.replace(/^[\\s\\S^-]*(-){130}\\r\\n/, '');\n      });\n\n      // Flatten pages\n      report = pagesWithoutHeaders.join('\\r\\n');\n    }\n\n    // Split on line breaks\n    const lines = report.split('\\r\\n');\n\n    // Trim each line\n    const trimmedLines = lines.map(_lodash.default.trim);\n\n    // Split into cells\n    const cells = trimmedLines.map(line => {\n      // remove commas from the dollar figures\n      line = line.replace(/\\,/g, '');\n\n      // Extract the values. Must handle no-match case where match returns null.\n      const [periodValue, ytdValue] = line.match(/-{0,1}\\d*\\.\\d{2}/g) || [];\n\n      // If either values are missing (can be 0.00 but not missiing), just use the whole line.\n      if (!periodValue || !ytdValue) return [line];\n\n      // The code and name is just the rest of the line with the values removed.\n      const codeAndName = line.replace(periodValue, '').replace(ytdValue, '').trim();\n      return [periodValue, codeAndName, ytdValue];\n    });\n\n    // Keep only lines with three cells (removes headers and breaks).\n    // Native filter rather than Ember's reject: this module is imported and run\n    // without the application having booted, and the array prototype extensions\n    // are not installed until it has.\n    const accountsWithTotals = cells.filter(line => line.length === 3 && line[1].split(' ').length >= 2);\n    let accounts = accountsWithTotals.filter(account => {\n      const name = account[1].match(/^[\\d\\.-]+(.*)/)[1].toLowerCase().trim();\n      return !(name.match(/^total/) || name.indexOf('must equal zero') > -1);\n    });\n    if (!accounts.length) {\n      errors.push('No accounts were found.');\n      return {\n        maps,\n        balances,\n        errors\n      };\n    }\n    accounts = accounts.map(account => {\n      return {\n        code: account[1].match(/^[\\d\\.-]+/)[0],\n        name: account[1].match(/^[\\d\\.-]+(.*)/)[1].trim(),\n        period: parseFloat(account[0]),\n        ytd: parseFloat(account[2])\n      };\n    });\n\n    // Extract useful info\n    accounts.forEach(({\n      code,\n      name,\n      period,\n      ytd\n    }) => {\n      maps.push({\n        externalId: code,\n        code,\n        name,\n        system: 'rees'\n      });\n      balances.push({\n        externalId: code,\n        period,\n        ytd\n      });\n    });\n    return {\n      maps,\n      balances,\n      errors\n    };\n  }\n});","define(\"portal/utils/gl-import-parsers/xero-csv\", [\"exports\", \"portal/utils/gl-import-parsers/old-xero-parser\", \"portal/utils/gl-import-parsers/new-xero-parser\"], function (_exports, _oldXeroParser, _newXeroParser) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/utils/gl-import-parsers/old-xero-parser\",0,\"portal/utils/gl-import-parsers/new-xero-parser\"eaimeta@70e063a35619d71f\n  const isOldXeroFormat = report => report[4][0] === 'Account Code';\n\n  /**\n   * detects which format the xero export is and chooses the correct parser\n   * @param {Array} report - A parsed csv file\n   * @returns {{maps: Array, balances: Array, errors: Array}} A list of maps, balances, and errors\n   */\n  var _default = report => {\n    if (!report.length) {\n      return {\n        errors: ['Report must not be empty']\n      };\n    }\n    return isOldXeroFormat(report) ? (0, _oldXeroParser.default)(report) : (0, _newXeroParser.default)(report);\n  };\n  _exports.default = _default;\n});","define(\"portal/utils/intl/missing-message\", [\"exports\", \"portal/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = missingMessage;\n  0; //eaimeta@70e063a35619d71f0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  // ember-intl calls this whenever `t` is given a key that has no translation.\n  // Static keys are caught at build time (see lib/missing-translations); this\n  // warns about dynamic ones outside production.\n  function missingMessage(key, locales) {\n    const message = `Missing translation: ${key} in ${locales}`;\n    if (_environment.default.environment !== 'production') {\n      // eslint-disable-next-line no-console\n      console.warn(message);\n    }\n    return message;\n  }\n});","define(\"portal/utils/labour-cost-calculator-fixtures\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.nzlLabourCostCalculatorItems = _exports.nzlLabourCostCalculator = _exports.defaultLabourCostCalculatorItems = _exports.defaultLabourCostCalculator = _exports.ausLabourCostCalculatorItems = _exports.ausLabourCostCalculator = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  /* international */\n  const defaultLabourCostCalculator = _exports.defaultLabourCostCalculator = {\n    label: 'Default worker calculator',\n    workingHoursPerDay: 8,\n    workingDaysPerWeek: 5\n  };\n  const defaultLabourCostCalculatorItems = _exports.defaultLabourCostCalculatorItems = [{\n    label: 'Paid Lunch/Breaks',\n    enabled: true,\n    isSystem: true,\n    value: 30,\n    valueType: 'minutesPerDay'\n  }, {\n    label: 'Public Holiday',\n    enabled: true,\n    isSystem: true,\n    value: 12,\n    valueType: 'daysPerYear'\n  }, {\n    label: 'Annual Leave',\n    enabled: true,\n    isSystem: true,\n    value: 20,\n    valueType: 'daysPerYear'\n  }, {\n    label: 'Sick Leave',\n    enabled: true,\n    isSystem: true,\n    value: 5,\n    valueType: 'daysPerYear'\n  }, {\n    label: 'Other',\n    enabled: true,\n    isSystem: false,\n    value: 0,\n    valueType: 'percentOfPayRate'\n  }];\n\n  /* new zealand */\n  const nzlLabourCostCalculator = _exports.nzlLabourCostCalculator = {\n    label: 'Default worker calculator',\n    workingHoursPerDay: 8,\n    workingDaysPerWeek: 5\n  };\n  const nzlLabourCostCalculatorItems = _exports.nzlLabourCostCalculatorItems = [{\n    label: 'Paid Lunch/Breaks',\n    enabled: true,\n    isSystem: true,\n    value: 30,\n    valueType: 'minutesPerDay'\n  }, {\n    label: 'Public Holiday',\n    enabled: true,\n    isSystem: true,\n    value: 12,\n    valueType: 'daysPerYear'\n  }, {\n    label: 'Annual Leave',\n    enabled: true,\n    isSystem: true,\n    value: 20,\n    valueType: 'daysPerYear'\n  }, {\n    label: 'Sick Leave',\n    enabled: true,\n    isSystem: true,\n    value: 10,\n    valueType: 'daysPerYear'\n  }, {\n    label: 'KiwiSaver',\n    enabled: true,\n    isSystem: true,\n    value: 0.035,\n    valueType: 'percentOfPayRate'\n  }, {\n    label: 'ACC Levy Rate',\n    enabled: true,\n    isSystem: true,\n    value: 0.022,\n    valueType: 'percentOfPayRate'\n  }, {\n    label: 'Other',\n    enabled: true,\n    isSystem: false,\n    value: 0,\n    valueType: 'percentOfPayRate'\n  }];\n\n  /* australia */\n  const ausLabourCostCalculator = _exports.ausLabourCostCalculator = {\n    label: 'Default worker calculator',\n    workingHoursPerDay: 8,\n    workingDaysPerWeek: 5\n  };\n  const ausLabourCostCalculatorItems = _exports.ausLabourCostCalculatorItems = [{\n    label: 'Paid Lunch/Breaks',\n    enabled: true,\n    isSystem: true,\n    value: 30,\n    valueType: 'minutesPerDay'\n  }, {\n    label: 'Public Holiday',\n    enabled: true,\n    isSystem: true,\n    value: 15,\n    valueType: 'daysPerYear'\n  }, {\n    label: 'Annual Leave',\n    enabled: true,\n    isSystem: true,\n    value: 20,\n    valueType: 'daysPerYear'\n  }, {\n    label: 'Sick Leave',\n    enabled: true,\n    isSystem: true,\n    value: 10,\n    valueType: 'daysPerYear'\n  }, {\n    label: 'Super',\n    enabled: true,\n    isSystem: true,\n    value: 0,\n    valueType: 'percentOfPayRate'\n  }, {\n    label: 'Other',\n    enabled: true,\n    isSystem: false,\n    value: 0,\n    valueType: 'percentOfPayRate'\n  }];\n});","define(\"portal/utils/loading-route-from\", [\"exports\", \"@ember/object\"], function (_exports, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = loadingRouteFrom;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function loadingRouteFrom(Route, path) {\n    return Route.extend({\n      templateName: path,\n      controllerName: path,\n      setupController(controller) {\n        this._super(...arguments);\n        (0, _object.set)(controller, 'isLoading', true);\n      },\n      deactivate() {\n        (0, _object.set)(this, 'controller.isLoading', false);\n      }\n    });\n  }\n});","define(\"portal/utils/make-temp-id\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = makeTempId;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function makeTempId() {\n    let id = Math.floor(Math.random() * Math.pow(10, 16)).toString();\n    while (id.length < 16) {\n      id = '0' + id;\n    }\n    return id;\n  }\n});","define(\"portal/utils/multi-selectable-tree-item\", [\"exports\", \"@glimmer/tracking\", \"@ember/array\"], function (_exports, _tracking, _array) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/tracking\",0,\"@ember/array\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let MultiSelectableTreeItem = _exports.default = (_class = class MultiSelectableTreeItem {\n    get isSomeChildChecked() {\n      return function checkChildren(children = []) {\n        return children.some(child => {\n          if (child.checked) return true;\n          if (child.children?.length) return checkChildren(child.children);\n          return false;\n        });\n      }(this.children);\n    }\n    get isEveryChildChecked() {\n      return function checkChildren(children = []) {\n        return children.every(child => {\n          if (child.checked) return true;\n          if (child.children?.length) return checkChildren(child.children);\n          return false;\n        });\n      }(this.children);\n    }\n    get isChecked() {\n      return this._isChecked || this.isSomeChildChecked;\n    }\n    set isChecked(value) {\n      this._isChecked = value;\n    }\n    get checked() {\n      return this._isChecked && this.isEveryChildChecked;\n    }\n    get indeterminate() {\n      if (!this.children?.length) return false;\n      return this._isChecked && !this.isEveryChildChecked;\n    }\n    static constructItemTreeFromTasks(taskData, selectedTasks) {\n      const topTasks = taskData.toArray().filter(task => !task.belongsTo('parent').id() && ['ACTIVE', 'DRAFT_CREATED'].includes(task.status));\n      const taskItems = (0, _array.A)(topTasks).sortBy('path').map(task => new MultiSelectableTreeItem(task, selectedTasks));\n      return taskItems;\n    }\n    constructor(item, selectedTasks) {\n      _initializerDefineProperty(this, \"_isChecked\", _descriptor, this);\n      _initializerDefineProperty(this, \"item\", _descriptor2, this);\n      _initializerDefineProperty(this, \"children\", _descriptor3, this);\n      this.item = item;\n      if (selectedTasks.find(t => t.id === item.id)) {\n        this._isChecked = true;\n      } else {\n        this._isChecked = false;\n      }\n      if (item.children) {\n        const childrenArray = (0, _array.A)(item.hasMany('children').value()?.toArray());\n        this.children = childrenArray?.sortBy('path').filter(child => ['ACTIVE', 'DRAFT_CREATED'].includes(child.status)).map(child => new MultiSelectableTreeItem(child, selectedTasks)) || [];\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"_isChecked\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"item\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"children\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _class);\n});","define(\"portal/utils/nest\", [\"exports\", \"@ember/utils\", \"@ember/object\", \"lodash\"], function (_exports, _utils, _object, _lodash) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = nest;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/utils\",0,\"@ember/object\",0,\"lodash\"eaimeta@70e063a35619d71f\n  function nest(parents, accounts, idKey) {\n    if (idKey == null) {\n      idKey = 'id';\n    }\n    parents = parents.toArray().sortBy('sortIndex');\n    accounts = accounts.toArray();\n    parents.forEach(account => {\n      if ((0, _utils.isEmpty)(account)) {\n        return;\n      }\n      let children;\n      if (idKey !== false) {\n        children = accounts.filterBy('parent.' + idKey, (0, _object.get)(account, idKey));\n      } else {\n        children = accounts.filterBy('parent', (0, _object.get)(account, 'id'));\n      }\n      (0, _object.set)(account, 'children', []);\n      if (!(0, _utils.isEmpty)(children)) {\n        children.forEach(child => {\n          // Add to list of children\n          (0, _object.get)(account, 'children').pushObject(child);\n\n          // Remove from top level\n          parents.removeObject(child);\n        });\n\n        // Populate child's children\n        (0, _object.set)(account, 'children', nest((0, _object.get)(account, 'children'), accounts, idKey));\n      }\n    });\n    return _lodash.default.compact(parents);\n  }\n});","define(\"portal/utils/network-errors\", [\"exports\", \"@ember/object\"], function (_exports, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = networkErrors;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function networkErrors(err) {\n    if ((0, _object.get)(err, 'status') === 0) {\n      this.send('connectionError');\n      return true;\n    }\n    if ((0, _object.get)(err, 'status') >= 500) {\n      this.send('serverError');\n      return true;\n    }\n    return false;\n  }\n});","define(\"portal/utils/oidc-config\", [\"exports\", \"portal/config/environment\", \"oidc-client-ts\"], function (_exports, _environment, _oidcClientTs) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.userManager = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/config/environment\",0,\"oidc-client-ts\"eaimeta@70e063a35619d71f\n  const oidcConfig = _environment.default.oidc;\n  const userManager = _exports.userManager = new _oidcClientTs.UserManager({\n    authority: oidcConfig.authenticationURL,\n    client_id: oidcConfig.applicationName,\n    redirect_uri: `${window.location.origin}/login-redirect`,\n    response_type: oidcConfig.responseType,\n    scope: oidcConfig.requestedScopes,\n    automaticSilentRenew: false,\n    // we use a manual renew due to poor multi tab support in this library\n    silent_redirect_uri: `${window.location.origin}/renew-redirect.html`,\n    popup_redirect_uri: `${window.location.origin}/login-redirect`,\n    post_logout_redirect_uri: `${window.location.origin}/logout-redirect`,\n    // for cross tab support use local storage instead of the default session storage on the window\n    userStore: new _oidcClientTs.WebStorageStateStore({\n      store: localStorage\n    }),\n    stateStore: new _oidcClientTs.WebStorageStateStore({\n      store: localStorage\n    })\n  });\n});","define(\"portal/utils/parse-currency-string\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = parseMoneyString;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function parseMoneyString(string) {\n    if (string && string.length) {\n      return parseFloat(string.replace(/[^-0-9.]+/g, ''));\n    } else {\n      return 0;\n    }\n  }\n});","define(\"portal/utils/path-resolver\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = pathResolver;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  const cache = {};\n\n  /**\n   * what\n   * If the url given is not an absolute path, then it considered to be\n   * a relative one, following the same rules an anchor tag would on the\n   * page that is currently being viewed.\n   * @param {String} url\n   * @returns {String}\n   */\n  function pathResolver(url) {\n    if (cache[url]) return cache[url]; // Memoize as create element is slow\n\n    const link = document.createElement('a');\n    link.href = url;\n    // Remove any trailing slashes as a matter of convention.\n    const result = link.href.replace(/\\/$/, '');\n    cache[url] = result; // Memoize\n    return result;\n  }\n});","define(\"portal/utils/placemakers-bill-csv-normalizer\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.NORMALIZED_PLACEMAKERS_HEADERS = void 0;\n  _exports.default = normalizePlaceMakersBillCsv;\n  _exports.isPlaceMakersBillCsv = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  const PLACEMAKERS_BILL_HEADER = ['H', 'Branch', 'Branch Name', 'Parent Account', 'Account Code', 'Customer Name', 'Date', 'Customer Order Number', 'Transaction number', 'Transaction type (IN/CR)', 'Packing Slip Number', 'Freight Amount(excl GST)', 'Total including GST', 'GST Total'];\n  const PLACEMAKERS_ITEM_HEADER = ['D', 'Line number', 'Product Code (Suppliers)', 'Description', 'Qty Supplied', 'Unit', 'Unit Rate', 'Extended Line Total (excluding GST)', 'GST Rate %', 'GST Amount'];\n  const NORMALIZED_PLACEMAKERS_HEADERS = _exports.NORMALIZED_PLACEMAKERS_HEADERS = ['Invoice Number', 'Issue Date', 'Due Date', 'Customer Reference', 'Code', 'Description', 'Unit Price', 'Quantity'];\n  const rowStartsWith = (row = [], expectedHeaders = []) => expectedHeaders.every((header, index) => row[index] === header);\n  const isPlaceMakersBillCsv = (csv = []) => rowStartsWith(csv[0], PLACEMAKERS_BILL_HEADER) && rowStartsWith(csv[1], PLACEMAKERS_ITEM_HEADER);\n  _exports.isPlaceMakersBillCsv = isPlaceMakersBillCsv;\n  function normalizePlaceMakersBillCsv(csv = []) {\n    if (!isPlaceMakersBillCsv(csv)) return csv;\n    const normalizedRows = [NORMALIZED_PLACEMAKERS_HEADERS];\n    let currentBill = null;\n    csv.slice(2).forEach(row => {\n      if (row[0] === 'H') {\n        currentBill = row;\n        // PlaceMakers stores freight in the bill header, so adding it as a line item.\n        if (Number(currentBill[11])) {\n          normalizedRows.push([currentBill[8], currentBill[6], currentBill[14], currentBill[7], '', 'Freight', currentBill[11], '1']);\n        }\n        return;\n      }\n      if (row[0] !== 'D' || !currentBill) return;\n      normalizedRows.push([currentBill[8], currentBill[6], currentBill[14], currentBill[7], row[2], row[3], row[6], row[4]]);\n    });\n    return normalizedRows;\n  }\n});","define(\"portal/utils/platform\", [\"exports\", \"portal/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.BRANDING = void 0;\n  _exports.getDefaultPlatform = getDefaultPlatform;\n  _exports.getPlatforms = getPlatforms;\n  0; //eaimeta@70e063a35619d71f0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  const BRANDING = _exports.BRANDING = {\n    MIRAGE: {\n      brand: 'Mirage',\n      logo: '/assets/images/logos/mirage-b22f30700af826c1fd3ff142a9e7be0f.png',\n      fullLogo: '/assets/images/logos/mirage-b22f30700af826c1fd3ff142a9e7be0f.png',\n      favicon: '/assets/images/logos/mirage-b22f30700af826c1fd3ff142a9e7be0f.png',\n      entityBrandEnum: undefined\n    },\n    OTBS: {\n      brand: 'OTBS',\n      logo: '/assets/images/logos/otbs-56a7571b3aaac8d0fffcb0a36304b743.png',\n      fullLogo: '/assets/images/logos/otbs-56a7571b3aaac8d0fffcb0a36304b743.png',\n      favicon: '/assets/images/logos/otbs-56a7571b3aaac8d0fffcb0a36304b743.png',\n      entityBrandEnum: undefined\n    },\n    STEP: {\n      brand: 'Step Accounts',\n      logo: '/assets/images/logos/step-6d552db468d48acf786adc029424651a.png',\n      fullLogo: '/assets/images/logos/step-6d552db468d48acf786adc029424651a.png',\n      favicon: '/assets/images/logos/step-6d552db468d48acf786adc029424651a.png',\n      entityBrandEnum: 'STEP'\n    },\n    TPB: {\n      brand: 'TPB',\n      logo: '/assets/images/logos/tpb-34e3e21517fc4699c5cb27b5e9b4f7ab.png',\n      fullLogo: '/assets/images/logos/tpb-34e3e21517fc4699c5cb27b5e9b4f7ab.png',\n      favicon: '/assets/images/logos/tpb-34e3e21517fc4699c5cb27b5e9b4f7ab.png',\n      entityBrandEnum: 'TPB'\n    },\n    APB: {\n      brand: 'APB',\n      logo: '/assets/images/logos/apb-74eaa7ce4230c00d67fed100d00b2d8e.svg',\n      fullLogo: '/assets/images/logos/apb-74eaa7ce4230c00d67fed100d00b2d8e.svg',\n      favicon: '/assets/images/logos/apb-74eaa7ce4230c00d67fed100d00b2d8e.svg',\n      entityBrandEnum: 'APB'\n    },\n    BUILDA_PRICE: {\n      brand: 'Builda Price',\n      logo: '/assets/images/logos/builda-price-7b6987b04f25f2261166dc83c687ea9b.svg',\n      fullLogo: '/assets/images/logos/builda-price-full-ff552901c19bf3fc4d14a1f9819274fa.svg',\n      favicon: '/assets/images/logos/builda-price-7b6987b04f25f2261166dc83c687ea9b.svg',\n      entityBrandEnum: 'BUILDA_PRICE'\n    },\n    ITM: {\n      brand: 'ITM',\n      logo: '/assets/images/logos/itm-9e1f4c3b59c9c650c0f52c6eabe2593b.svg',\n      fullLogo: '/assets/images/logos/itm-9e1f4c3b59c9c650c0f52c6eabe2593b.svg',\n      favicon: '/assets/images/logos/itm-9e1f4c3b59c9c650c0f52c6eabe2593b.svg',\n      entityBrandEnum: 'ITM'\n    },\n    ATTENTION_SAFETY: {\n      brand: 'Attention Safety',\n      logo: '/assets/images/logos/attention-safety-c455aba989887566a82c8ac4d53c4410.svg',\n      fullLogo: '/assets/images/logos/attention-safety-full-50259a0b942c7c43389c731ad3822e2f.svg',\n      favicon: '/assets/images/logos/attention-safety-c455aba989887566a82c8ac4d53c4410.svg',\n      entityBrandEnum: 'ATTENTION_SAFETY'\n    },\n    STEP_UP: {\n      brand: 'Step Up Projects',\n      logo: '/assets/images/logos/step-up-f8e09b12ca9d649063bbc554f7eb4bfa.svg',\n      fullLogo: '/assets/images/logos/step-up-full-041f1bee99cad4708c3ccfd93e5a9f17.svg',\n      favicon: '/assets/images/logos/step-up-f8e09b12ca9d649063bbc554f7eb4bfa.svg',\n      entityBrandEnum: 'STEP_UP'\n    }\n  };\n  function getPlatforms() {\n    const host = window.location.host;\n    const defaultPlatforms = {\n      MIRAGE: {\n        logo: BRANDING.MIRAGE.logo,\n        fullLogo: BRANDING.MIRAGE.logo,\n        name: 'Platform name',\n        favicon: BRANDING.MIRAGE.favicon,\n        entityBrandEnum: BRANDING.MIRAGE.entityBrandEnum\n      },\n      OTBS: {\n        logo: BRANDING.OTBS.logo,\n        fullLogo: BRANDING.OTBS.logo,\n        name: 'Platform name',\n        favicon: BRANDING.OTBS.favicon,\n        entityBrandEnum: BRANDING.OTBS.entityBrandEnum\n      },\n      STEP: {\n        logo: BRANDING.STEP.logo,\n        fullLogo: BRANDING.STEP.logo,\n        name: 'Step Accounts Portal',\n        favicon: BRANDING.STEP.favicon,\n        entityBrandEnum: BRANDING.STEP.entityBrandEnum\n      },\n      APB: {\n        logo: BRANDING.APB.logo,\n        fullLogo: BRANDING.APB.logo,\n        name: 'APB - Builda Price Portal',\n        favicon: BRANDING.APB.favicon,\n        entityBrandEnum: BRANDING.APB.entityBrandEnum\n      },\n      TPB: {\n        logo: BRANDING.TPB.logo,\n        fullLogo: BRANDING.TPB.logo,\n        name: 'TPB - Builda Price Portal',\n        favicon: BRANDING.TPB.favicon,\n        entityBrandEnum: BRANDING.TPB.entityBrandEnum\n      },\n      BUILDA_PRICE: {\n        logo: BRANDING.BUILDA_PRICE.logo,\n        fullLogo: BRANDING.BUILDA_PRICE.fullLogo,\n        name: 'Builda Price Portal',\n        favicon: BRANDING.BUILDA_PRICE.favicon,\n        entityBrandEnum: BRANDING.BUILDA_PRICE.entityBrandEnum\n      },\n      ITM: {\n        logo: BRANDING.ITM.logo,\n        fullLogo: BRANDING.ITM.logo,\n        name: 'Step Accounts Portal',\n        favicon: BRANDING.ITM.favicon,\n        entityBrandEnum: BRANDING.ITM.entityBrandEnum\n      },\n      ATTENTION_SAFETY: {\n        logo: BRANDING.ATTENTION_SAFETY.logo,\n        fullLogo: BRANDING.ATTENTION_SAFETY.fullLogo,\n        name: 'Attention Safety Portal',\n        favicon: BRANDING.ATTENTION_SAFETY.favicon,\n        entityBrandEnum: BRANDING.ATTENTION_SAFETY.entityBrandEnum\n      },\n      STEP_UP: {\n        logo: BRANDING.STEP_UP.logo,\n        fullLogo: BRANDING.STEP_UP.fullLogo,\n        name: 'Step Up Projects',\n        favicon: BRANDING.STEP_UP.favicon,\n        entityBrandEnum: BRANDING.STEP_UP.entityBrandEnum\n      }\n    };\n    let authenticationUrl = _environment.default.urls.authenticationUrl;\n    let apiUrl = _environment.default.urls.authenticationUrl;\n\n    // these only need overwriting on some domains\n    switch (host) {\n      case 'portal.step.nz':\n        authenticationUrl = 'https://auth.step.nz';\n        apiUrl = 'https://portal.step.nz';\n        break;\n      case 'my.buildaprice.app':\n        authenticationUrl = 'https://auth.buildaprice.app';\n        break;\n      case 'apb.buildaprice.app':\n        authenticationUrl = 'https://auth.buildaprice.app';\n        break;\n      case 'my.stepupprojects.com':\n        authenticationUrl = 'https://auth.step.nz';\n        apiUrl = 'https://my.stepupprojects.com';\n        break;\n    }\n    const outputPlatforms = {};\n    for (const [name, details] of Object.entries(defaultPlatforms)) outputPlatforms[name] = {\n      ...details,\n      authenticationUrl,\n      apiUrl\n    };\n    return outputPlatforms;\n  }\n  function getDefaultPlatform() {\n    const host = window.location.host;\n    const platforms = getPlatforms();\n    let platform = _environment.default.useMirage ? platforms.MIRAGE : platforms.OTBS;\n    switch (host) {\n      case 'portal.step.nz':\n      case 'staging.portal.step.nz':\n        platform = platforms.STEP;\n        break;\n      case 'my.buildaprice.app':\n      case 'staging.buildaprice.app':\n        platform = platforms.BUILDA_PRICE;\n        break;\n      case 'apb.buildaprice.app':\n        platform = platforms.APB;\n        break;\n      case 'my.stepupprojects.com':\n      case 'staging.stepupprojects.com':\n        platform = platforms.STEP_UP;\n        break;\n    }\n    return platform;\n  }\n});","define(\"portal/utils/profit-margin\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.calculatePercentage = calculatePercentage;\n  _exports.calculateValue = calculateValue;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function calculateValue(profitType, value, percentage) {\n    switch (profitType) {\n      case 'MARGIN':\n        // if margin check percentage is less that 1\n        if (percentage >= 1) return 0;\n        return Number((value / (1 - percentage)).toFixed(2));\n      case 'MARKUP':\n        return Number((value * percentage + value).toFixed(2));\n      default:\n        throw new Error(`Invalid profit type: ${profitType}`);\n    }\n  }\n  function calculatePercentage(profitType, Numerator, Denominator) {\n    if (Number(Denominator) === 0) return 0;\n    switch (profitType) {\n      case 'MARGIN':\n        return Number(1 - Numerator / (Denominator || Infinity));\n      case 'MARKUP':\n        return Number((Denominator - Numerator) / (Numerator || Infinity));\n      default:\n        throw new Error(`Invalid profit type: ${profitType}`);\n    }\n  }\n});","define(\"portal/utils/report-builder-attachments-bundle\", [\"exports\", \"portal/utils/download\", \"portal/config/environment\", \"jquery\"], function (_exports, _download, _environment, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = downloadAttachmentsBundle;\n  0; //eaimeta@70e063a35619d71f0,\"portal/utils/download\",0,\"portal/config/environment\",0,\"jquery\"eaimeta@70e063a35619d71f\n  async function downloadAttachmentsBundle(reportData) {\n    const materialHrefs = getAttachmentHrefs(reportData.materialInvoices);\n    const subcontractorHrefs = getAttachmentHrefs(reportData.subcontractorInvoices);\n    if (![...materialHrefs, ...subcontractorHrefs].length) return;\n    const archiveDescription = {\n      name: 'attachments',\n      contents: []\n    };\n    if (materialHrefs.length) archiveDescription.contents.push({\n      name: 'Materials',\n      contents: materialHrefs\n    });\n    if (subcontractorHrefs.length) archiveDescription.contents.push({\n      name: 'Subcontractors',\n      contents: subcontractorHrefs\n    });\n    const zipBlob = await getZipBlob(archiveDescription);\n    (0, _download.download)(zipBlob, 'attachments.zip', 'application/zip');\n  }\n  function getAttachmentHrefs(invoiceWrapper) {\n    return invoiceWrapper.reduce((hrefs, wrapper) => {\n      const attachments = wrapper.invoice.myAttachments || [];\n      return [...hrefs, ...attachments.map(attachment => attachment.href)];\n    }, []);\n  }\n  function getZipBlob(archiveDescription) {\n    return new Promise((resolve, reject) => _jquery.default.ajax({\n      url: _environment.default.urls.api + _environment.default.urls.apiV2Path + '/files/zip',\n      method: 'POST',\n      data: JSON.stringify(archiveDescription),\n      contentType: 'application/json',\n      xhr() {\n        // This seems to be the only way to set the response type to blob.\n        // This will allow js to leave the file as a bytestream rather than trying to parse it.\n        const xhr = new XMLHttpRequest();\n        xhr.responseType = 'blob';\n        return xhr;\n      }\n    }).then(resolve, reject));\n  }\n});","define(\"portal/utils/report-builder-mark-as-reported\", [\"exports\", \"@ember/object\"], function (_exports, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.clearSelectedResources = clearSelectedResources;\n  _exports.confirmMarkAsReported = confirmMarkAsReported;\n  _exports.markSelectedItemsAsReported = markSelectedItemsAsReported;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\"eaimeta@70e063a35619d71f\n  async function markSelectedItemsAsReported(reportData, notifications) {\n    const reportedResourcesSummary = getReportedResourcesSummary(reportData);\n    if (reportedResourcesSummary.resourcesToTrack.length) {\n      await markItemsAsReported(reportedResourcesSummary.resourcesToTrack);\n      notifications.success(`${reportedResourcesSummary.resourcesToTrack.length} ${reportedResourcesSummary.resourcesToTrack.length > 1 ? 'items have' : 'item has'} been tracked.`); // eslint-disable-line\n    } else {\n      notifications.info('All items were already marked \"Reported\".');\n    }\n  }\n  function confirmMarkAsReported(reportData) {\n    const reportedResourcesSummary = getReportedResourcesSummary(reportData);\n\n    // If there are items in the report that have previously been exported ask the user if they wish to continue\n    if (reportedResourcesSummary.previouslyReportedResources.length) {\n      return confirm(`You are about to run a report with ${reportedResourcesSummary.previouslyReportedResources.length} previously reported ${reportedResourcesSummary.previouslyReportedResources.length > 1 ? 'items' : 'item'}. Do you wish to continue?`); // eslint-disable-line\n    }\n    return true;\n  }\n  function markItemsAsReported(resourcesToTrack) {\n    // Mark the selected resources as reported and save them\n    return Promise.all(resourcesToTrack.map(item => {\n      item.reported = true;\n      return item.save();\n    }));\n  }\n  function clearSelectedResources(reportData) {\n    const invoices = [...reportData.materialInvoices, ...reportData.labourInvoices, ...reportData.subcontractorInvoices];\n    invoices.forEach(invoice => invoice.items.forEach(item => (0, _object.set)(item, 'selected', false)));\n    reportData.workers.forEach(workerWrapper => workerWrapper.timesheets.forEach(timesheet => (0, _object.set)(timesheet, 'selected', false)));\n  }\n  function getReportedResourcesSummary(reportData) {\n    // Resources which need to be marked as reported and then saved.\n    const resourcesToTrack = [];\n    // Resources that were already marked as 'reported'.\n    const previouslyReportedResources = [];\n    // Takes a list of resources and sorts the selected ones by whether they had been previously reported or not\n    const sortReportedResources = resources => {\n      resources.filterBy('selected').forEach(resource => {\n        if (resource.reported) {\n          previouslyReportedResources.push(resource);\n        } else {\n          resourcesToTrack.push(resource);\n        }\n      });\n    };\n\n    // Sort all the selected invoice items and timesheets\n    [...reportData.materialInvoices, ...reportData.labourInvoices, ...reportData.subcontractorInvoices].forEach(invoice => sortReportedResources(invoice.items));\n    reportData.workers.filter(workerWrapper => workerWrapper.allSelected || workerWrapper.partSelected).forEach(worker => sortReportedResources(worker.timesheets));\n    return {\n      resourcesToTrack,\n      previouslyReportedResources\n    };\n  }\n});","define(\"portal/utils/report-builder\", [\"exports\", \"@ember/object\"], function (_exports, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.getTimesheetTotal = getTimesheetTotal;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function getTimesheetTotal(timesheet, useChargeOutRates, currentChargeOutRate) {\n    if ((0, _object.get)(timesheet, 'id')) {\n      if (useChargeOutRates && currentChargeOutRate != null) return currentChargeOutRate * (0, _object.get)(timesheet, 'hours');else if (useChargeOutRates) return (0, _object.get)(timesheet, 'totals.chargeOutTotal');else return (0, _object.get)(timesheet, 'totals.costTotal');\n    } else {\n      return (0, _object.get)(timesheet, 'currentChargeOutRate') * (0, _object.get)(timesheet, 'hours') || 0;\n    }\n  }\n});","define(\"portal/utils/sanitize-filename\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = sanitize;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  /**\n   * Extracted from node-sanitize (https://github.com/parshap/node-sanitize-filename/blob/master/index.js)\n   *\n   * Replaces characters in strings that are illegal/unsafe for filenames.\n   * Unsafe characters are either removed or replaced by a substitute set\n   * in the optional `options` object.\n   *\n   * Illegal Characters on Various Operating Systems\n   * / ? < > \\ : * | \"\n   * https://kb.acronis.com/content/39790\n   *\n   * Unicode Control codes\n   * C0 0x00-0x1f & C1 (0x80-0x9f)\n   * http://en.wikipedia.org/wiki/C0_and_C1_control_codes\n   *\n   * Reserved filenames on Unix-based systems (\".\", \"..\")\n   * Reserved filenames in Windows (\"CON\", \"PRN\", \"AUX\", \"NUL\", \"COM1\",\n   * \"COM2\", \"COM3\", \"COM4\", \"COM5\", \"COM6\", \"COM7\", \"COM8\", \"COM9\",\n   * \"LPT1\", \"LPT2\", \"LPT3\", \"LPT4\", \"LPT5\", \"LPT6\", \"LPT7\", \"LPT8\", and\n   * \"LPT9\") case-insesitively and with or without filename extensions.\n   *\n   * Capped at 255 characters in length.\n   * http://unix.stackexchange.com/questions/32795/what-is-the-maximum-allowed-filename-and-folder-size-with-ecryptfs\n   *\n   * @param  {String} input      Original filename\n   * @param  {String} substitute Characters to replace illegals\n   * @return {String}            Sanitized filename\n   */\n\n  const illegal = /[\\/\\?<>\\\\:\\*\\|\":]/g;\n  const control = /[\\x00-\\x1f\\x80-\\x9f]/g; // eslint-disable-line no-control-regex\n  const reserved = /^\\.+$/;\n  const windowsReserved = /^(con|prn|aux|nul|com[0-9]|lpt[0-9])(\\..*)?$/i;\n  const nonAsciiChars = /[^\\x00-\\x7F]/g;\n  function sanitize(input, replacement = '') {\n    const sanitized = input.replace(illegal, replacement).replace(control, replacement).replace(reserved, replacement).replace(windowsReserved, replacement).replace(nonAsciiChars, replacement).slice(-255);\n    return sanitized;\n  }\n});","define(\"portal/utils/search-filter\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = searchTermToFilter;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function searchTermToFilter(fields, term, opKey = 'op') {\n    const filter = {\n      and: []\n    };\n    const words = term.split(' ');\n    for (const word of words) {\n      const group = {\n        or: []\n      };\n      for (const field of fields) {\n        group.or.push({\n          field,\n          [opKey]: 'ILIKE',\n          value: word\n        });\n      }\n      filter.and.push(group);\n    }\n    return filter;\n  }\n});","define(\"portal/utils/search-term-escape\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.searchTermEscape = searchTermEscape;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function searchTermEscape(value) {\n    return value.replace(/\\\\/g, '\\\\\\\\').replace(/%/g, '\\\\%').replace(/_/g, '\\\\_');\n  }\n});","define(\"portal/utils/smart-payroll-csv-generator\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.generateSmartPayrollCSV = generateSmartPayrollCSV;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  /**\n   * Takes worker details and returns a 2D array for Smartly\n   * @param {Array} workers - An array of objects with smartly employee ids and timesheet day totals\n   * @returns {Array} - A 2D array in the Smartly CSV format\n   */\n  function generateSmartPayrollCSV(workers) {\n    const table = workers.map(buildRow);\n    return table;\n  }\n  function buildRow(worker) {\n    const {\n      smartPayrollEmployeeCode,\n      dayTotals,\n      smartPayrollEmployeeDepartmentCode\n    } = worker;\n    const periodLength = dayTotals.length;\n    const totalHourForPeriod = dayTotals.reduce((t, {\n      totalHours\n    }) => t += totalHours, 0);\n    return ['#50',\n    // Line Style: Will always be \"#50\".\n    smartPayrollEmployeeCode,\n    // Employee ID: This is the Smartly employee ID, by default, it is the employees initials.\n    1,\n    // Pay Rate ID: Enum for type of hours worked. Will be \"1\" for regular hours.\n    totalHourForPeriod,\n    // Unit (hours): The total number of hours worked for the export.\n    smartPayrollEmployeeDepartmentCode,\n    // Dept Quick Ref\n    periodLength // Days Paid: The total number of days worked - can not be empty, must be \"0\".\n    ];\n  }\n});","define(\"portal/utils/sort-accounts\", [\"exports\", \"@ember/object\"], function (_exports, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = sortAccounts;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function sortAccounts(accounts = [], sortKey = 'sortIndex', categoryKey = 'category') {\n    const profitAndLoss = [];\n    const balanceSheet = [];\n    const other = [];\n    accounts.forEach(target => {\n      const category = (0, _object.get)(target, categoryKey);\n      switch (category) {\n        case 'profit-and-loss':\n          profitAndLoss.push(target);\n          break;\n        case 'balance-sheet':\n          balanceSheet.push(target);\n          break;\n        default:\n          other.push(target);\n      }\n    });\n    return [...profitAndLoss.sortBy(sortKey), ...balanceSheet.sortBy(sortKey), ...other.sortBy(sortKey)];\n  }\n});","define(\"portal/utils/sort-by-account-code\", [\"exports\", \"@ember/object\"], function (_exports, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = sortByAccountCode;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function sortByAccountCode(a, b) {\n    const aSystem = (0, _object.get)(a, 'system');\n    const aString = (0, _object.get)(a, 'code');\n    const bSystem = (0, _object.get)(b, 'system');\n    const bString = (0, _object.get)(b, 'code');\n    if (aSystem.indexOf('myob') > -1 && bSystem.indexOf('myob') > -1) {\n      const aCategory = parseInt(aString, 10);\n      const bCategory = parseInt(bString, 10);\n      const categoryComparison = compare(aCategory, bCategory);\n      if (categoryComparison) {\n        return categoryComparison;\n      }\n      const aCode = parseInt(aString.split(/[-\\/]/)[1], 10);\n      const bCode = parseInt(bString.split(/[-\\/]/)[1], 10);\n      return compare(aCode, bCode);\n    } else {\n      const aCode = Number(aString);\n      const bCode = Number(bString);\n      return compare(aCode, bCode);\n    }\n  }\n  function compare(a, b) {\n    return a < b ? -1 : b < a ? 1 : 0;\n  }\n});","define(\"portal/utils/string-similarity\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.compareTwoStrings = compareTwoStrings;\n  _exports.findBestMatch = findBestMatch;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  // https://www.npmjs.com/package/string-similarity\n  function compareTwoStrings(first, second) {\n    // eslint-disable-line complexity\n    first = first.replace(/\\s+/g, '');\n    second = second.replace(/\\s+/g, '');\n    if (!first.length && !second.length) return 1; // if both are empty strings\n    if (!first.length || !second.length) return 0; // if only one is empty string\n    if (first === second) return 1; // identical\n    if (first.length === 1 && second.length === 1) return 0; // both are 1-letter strings\n    if (first.length < 2 || second.length < 2) return 0; // if either is a 1-letter string\n\n    const firstBigrams = new Map();\n    for (let i = 0; i < first.length - 1; i++) {\n      const bigram = first.substring(i, i + 2);\n      const count = firstBigrams.has(bigram) ? firstBigrams.get(bigram) + 1 : 1;\n      firstBigrams.set(bigram, count);\n    }\n    let intersectionSize = 0;\n    for (let i = 0; i < second.length - 1; i++) {\n      const bigram = second.substring(i, i + 2);\n      const count = firstBigrams.has(bigram) ? firstBigrams.get(bigram) : 0;\n      if (count > 0) {\n        firstBigrams.set(bigram, count - 1);\n        intersectionSize++;\n      }\n    }\n    return 2.0 * intersectionSize / (first.length + second.length - 2);\n  }\n  function findBestMatch(mainString, targetStrings) {\n    if (!areArgsValid(mainString, targetStrings)) {\n      throw new Error('Bad arguments: First argument should be a string, second should be an array of strings');\n    }\n    const ratings = [];\n    let bestMatchIndex = 0;\n    for (let i = 0; i < targetStrings.length; i++) {\n      const currentTargetString = targetStrings[i];\n      const currentRating = compareTwoStrings(mainString, currentTargetString);\n      ratings.push({\n        target: currentTargetString,\n        rating: currentRating\n      });\n      if (currentRating > ratings[bestMatchIndex].rating) {\n        bestMatchIndex = i;\n      }\n    }\n    const bestMatch = ratings[bestMatchIndex];\n    return {\n      ratings: ratings,\n      bestMatch: bestMatch,\n      bestMatchIndex: bestMatchIndex\n    };\n  }\n  function areArgsValid(mainString, targetStrings) {\n    if (typeof mainString !== 'string') return false;\n    if (!Array.isArray(targetStrings)) return false;\n    if (!targetStrings.length) return false;\n    if (targetStrings.find(function (s) {\n      return typeof s !== 'string';\n    })) return false;\n    return true;\n  }\n});","define(\"portal/utils/sums\", [\"exports\", \"@ember/object\"], function (_exports, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.sum = sum;\n  _exports.sumBy = sumBy;\n  _exports.sumByProducts = sumByProducts;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function sum(object, ...keys) {\n    return keys.reduce((total, key) => {\n      const number = Number((0, _object.get)(object, key));\n      return isNaN(number) ? total : total + number;\n    }, 0);\n  }\n  function sumBy(array, key) {\n    // map + get rather than Ember's mapBy: this module is reached without the\n    // application having booted, and the array prototype extensions are not\n    // installed until it has.\n    return array.map(item => (0, _object.get)(item, key)).reduce((total, value) => {\n      const number = Number(value);\n      return isNaN(number) ? total : total + number;\n    }, 0);\n  }\n  function sumByProducts(array, ...keys) {\n    return array.reduce((total, element) => {\n      const product = keys.reduce((prod, key) => prod * Number((0, _object.get)(element, key)), 1);\n      return isNaN(product) ? total : total + product;\n    }, 0);\n  }\n});","define(\"portal/utils/task-templates\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = [{\n    name: 'Comprehensive',\n    items: [{\n      name: 'Preliminaries',\n      items: [{\n        name: 'Preliminary & generals'\n      }, {\n        name: 'Home warranty insurance'\n      }, {\n        name: 'Builders risk insurance'\n      }, {\n        name: 'General liability insurance'\n      }, {\n        name: 'Site management'\n      }, {\n        name: 'Administration'\n      }, {\n        name: 'Hoarding'\n      }, {\n        name: 'Health & safety'\n      }, {\n        name: 'Design'\n      }, {\n        name: 'Tree / vine protection'\n      }, {\n        name: 'Scaffolding'\n      }, {\n        name: 'Soil test & report'\n      }, {\n        name: 'Engineering fees'\n      }, {\n        name: 'Energy report'\n      }, {\n        name: 'Survey'\n      }, {\n        name: 'Retaining wall works'\n      }, {\n        name: 'Utility service'\n      }, {\n        name: 'Termite protection'\n      }, {\n        name: 'Amenity / toilet hire'\n      }, {\n        name: 'Tool & equipment hire'\n      }, {\n        name: 'Miscellaneous expense'\n      }, {\n        name: 'Crane hire'\n      }, {\n        name: 'Waste removal',\n        items: [{\n          name: 'Skip hire'\n        }]\n      }, {\n        name: 'Project management'\n      }, {\n        name: 'Permits'\n      }, {\n        name: 'Site visits'\n      }, {\n        name: 'Delivery fees'\n      }, {\n        name: 'Temporary fencing'\n      }, {\n        name: 'Site security'\n      }, {\n        name: 'Overheads'\n      }]\n    }, {\n      name: 'Demolition'\n    }, {\n      name: 'Excavation & foundations',\n      items: [{\n        name: 'Excavation & earth works'\n      }, {\n        name: 'Soil removal'\n      }]\n    }, {\n      name: 'Concrete',\n      items: [{\n        name: 'Termite protection'\n      }]\n    }, {\n      name: 'Structural steel',\n      items: [{\n        name: 'Structural steel'\n      }]\n    }, {\n      name: 'Carpentry',\n      items: [{\n        name: 'Framing'\n      }, {\n        name: 'Lock up'\n      }, {\n        name: 'Fixing'\n      }, {\n        name: 'Fit-off'\n      }, {\n        name: 'Doors',\n        items: [{\n          name: 'Architraves'\n        }]\n      }, {\n        name: 'Skirting'\n      }, {\n        name: 'Project'\n      }, {\n        name: 'Stairs',\n        items: [{\n          name: 'Supply & install'\n        }, {\n          name: 'Labour to assist install'\n        }]\n      }]\n    }, {\n      name: 'External cladding',\n      items: [{\n        name: 'Rendering works'\n      }, {\n        name: 'External wall cladding'\n      }]\n    }, {\n      name: 'Masonry',\n      items: [{\n        name: 'Masonry supply'\n      }, {\n        name: 'Masonry'\n      }, {\n        name: 'Masonry sundries'\n      }, {\n        name: 'Bring cleaner'\n      }]\n    }, {\n      name: 'Joinery',\n      items: [{\n        name: 'Joinery'\n      }, {\n        name: 'Stone benchtops'\n      }]\n    }, {\n      name: 'Roofing',\n      items: [{\n        name: 'Roofing'\n      }]\n    }, {\n      name: 'Windows',\n      items: [{\n        name: 'Supply & install'\n      }]\n    }, {\n      name: 'Glazing',\n      items: [{\n        name: 'Shower screen & mirrors'\n      }, {\n        name: 'Balustrading'\n      }]\n    }, {\n      name: 'Plastering',\n      items: [{\n        name: 'Plastering'\n      }, {\n        name: 'Gib stopping'\n      }, {\n        name: 'Plaster & GIB'\n      }]\n    }, {\n      name: 'Insulation',\n      items: [{\n        name: 'Supply & install'\n      }]\n    }, {\n      name: 'Heating & cooling',\n      items: [{\n        name: 'Heat pump supply & install'\n      }]\n    }, {\n      name: 'Drainage & plumbing',\n      items: [{\n        name: 'Drainage'\n      }, {\n        name: 'Stormwater'\n      }, {\n        name: 'Plumbing fittings & fixtures'\n      }, {\n        name: 'Watertank'\n      }, {\n        name: 'Septictank'\n      }]\n    }, {\n      name: 'Appliances',\n      items: [{\n        name: 'Kitchen'\n      }, {\n        name: 'Laundry'\n      }]\n    }, {\n      name: 'Electrical',\n      items: [{\n        name: 'General electrical'\n      }, {\n        name: 'Lighting supply & switches'\n      }, {\n        name: 'Alarm / intercom / security system'\n      }, {\n        name: 'Sound system'\n      }]\n    }, {\n      name: 'Painting',\n      items: [{\n        name: 'Internal painting'\n      }, {\n        name: 'External painting'\n      }]\n    }, {\n      name: 'Tiling & waterproofing',\n      items: [{\n        name: 'Tiling bathroom'\n      }, {\n        name: 'Tiling kitchen'\n      }, {\n        name: 'Tiling laundry'\n      }, {\n        name: 'Waterproofing'\n      }]\n    }, {\n      name: 'Final fit off & finishing',\n      items: [{\n        name: 'Garage door'\n      }, {\n        name: 'Caulking'\n      }, {\n        name: 'Cleaning'\n      }, {\n        name: 'Upholstery'\n      }, {\n        name: 'Blinds'\n      }]\n    }, {\n      name: 'Floor finishes',\n      items: [{\n        name: 'Carpet'\n      }, {\n        name: 'Flooring timber (engineered / laminate / vinyl / actual)',\n        items: [{\n          name: 'Floor s&ing'\n        }]\n      }]\n    }, {\n      name: 'External works',\n      items: [{\n        name: 'Concrete paving works',\n        items: [{\n          name: 'Driveway'\n        }, {\n          name: 'Footpaths'\n        }]\n      }, {\n        name: 'Deck',\n        items: [{\n          name: 'Deck framing'\n        }, {\n          name: 'Decking'\n        }]\n      }, {\n        name: 'Landscaping',\n        items: [{\n          name: 'Front garden'\n        }, {\n          name: 'Rear garden'\n        }]\n      }, {\n        name: 'Swimming pool',\n        items: [{\n          name: 'Pool fencing'\n        }]\n      }]\n    }, {\n      name: 'Subcontractors'\n    }, {\n      name: 'Sums'\n    }, {\n      name: 'Variations'\n    }]\n  }, {\n    name: 'Simple contract',\n    items: [{\n      name: 'Establishment',\n      items: [{\n        name: 'Preliminary & generals',\n        items: [{\n          name: 'Health & safety'\n        }, {\n          name: 'Project management'\n        }, {\n          name: 'Insurances',\n          items: [{\n            name: 'Halo guarantee'\n          }, {\n            name: 'Public liability'\n          }, {\n            name: 'Workers risk insurance'\n          }]\n        }, {\n          name: 'Toilet hire'\n        }, {\n          name: 'Rubbish removal',\n          items: [{\n            name: 'Skip bin'\n          }]\n        }, {\n          name: 'Excavation'\n        }, {\n          name: 'Surveying'\n        }, {\n          name: 'Scaffolding'\n        }, {\n          name: 'Hoardings'\n        }, {\n          name: 'Temporary fencing'\n        }, {\n          name: 'Power supply'\n        }, {\n          name: 'Water supply'\n        }, {\n          name: 'Administration'\n        }, {\n          name: 'Overheads'\n        }]\n      }, {\n        name: 'Consent applications'\n      }, {\n        name: 'Special materials procurement'\n      }]\n    }, {\n      name: 'Floor down',\n      items: [{\n        name: 'Foundations'\n      }, {\n        name: 'Floor structure'\n      }]\n    }, {\n      name: 'Framing erected',\n      items: [{\n        name: 'Wall framing'\n      }, {\n        name: 'Roof framing'\n      }]\n    }, {\n      name: 'Roof on',\n      items: [{\n        name: 'Roof'\n      }, {\n        name: 'Fascia'\n      }, {\n        name: 'Guttering'\n      }]\n    }, {\n      name: 'Closed in',\n      items: [{\n        name: 'Doors'\n      }, {\n        name: 'Windows'\n      }, {\n        name: 'Building wrap / external ply'\n      }]\n    }, {\n      name: 'Exterior cladding',\n      items: [{\n        name: 'Cladding'\n      }]\n    }, {\n      name: 'Interior linings',\n      items: [{\n        name: 'Interior linings'\n      }, {\n        name: 'Skirtings'\n      }, {\n        name: 'Architraves'\n      }, {\n        name: 'Rooms',\n        items: [{\n          name: 'Master bedroom'\n        }, {\n          name: 'Bedroom'\n        }, {\n          name: 'Bathroom'\n        }, {\n          name: 'Ensuite'\n        }, {\n          name: 'Powder room'\n        }, {\n          name: 'Lounge'\n        }, {\n          name: 'Dining'\n        }]\n      }]\n    }, {\n      name: 'Painting & kitchen',\n      items: [{\n        name: 'Exterior painting',\n        items: [{\n          name: 'Walls'\n        }, {\n          name: 'Soffits'\n        }]\n      }, {\n        name: 'Interior painting',\n        items: [{\n          name: 'Walls'\n        }, {\n          name: 'Ceiling'\n        }, {\n          name: 'Doors'\n        }]\n      }, {\n        name: 'Kitchen cabinetry'\n      }]\n    }, {\n      name: 'Subcontractors',\n      items: [{\n        name: 'Plumbing'\n      }, {\n        name: 'Painting'\n      }, {\n        name: 'Electrical'\n      }, {\n        name: 'Flooring',\n        items: [{\n          name: 'Timber'\n        }, {\n          name: 'Carpet'\n        }]\n      }]\n    }, {\n      name: 'Sums'\n    }, {\n      name: 'Variations'\n    }]\n  }, {\n    name: 'Flat structure',\n    items: [{\n      name: 'Preliminaries & general'\n    }, {\n      name: 'Site works & establishment'\n    }, {\n      name: 'Foundations'\n    }, {\n      name: 'Timber floor system'\n    }, {\n      name: 'Concrete floor system'\n    }, {\n      name: 'Framing'\n    }, {\n      name: 'Structural steel'\n    }, {\n      name: 'Roof cladding'\n    }, {\n      name: 'Exterior wall cladding'\n    }, {\n      name: 'Exterior windows & doors'\n    }, {\n      name: 'Internal wall framing & ceiling battens'\n    }, {\n      name: 'Plumbing, electrical & insulation'\n    }, {\n      name: 'Internal ceiling & wall linings'\n    }, {\n      name: 'Interior doors & finishings'\n    }, {\n      name: 'Painting'\n    }, {\n      name: 'Tiling - bathrooms, laundry & exterior deck'\n    }, {\n      name: 'Kitchen & laundry cabinetry'\n    }, {\n      name: 'Internal fit-off'\n    }, {\n      name: 'Floor coverings & finishings'\n    }, {\n      name: 'Landscaping'\n    }, {\n      name: 'Exterior specialty finishings'\n    }, {\n      name: 'Final touches'\n    }, {\n      name: 'General'\n    }, {\n      name: 'Insurance'\n    }, {\n      name: 'Travel'\n    }, {\n      name: 'Labour'\n    }, {\n      name: 'Scaffolding'\n    }, {\n      name: 'Sums',\n      items: [{\n        name: 'Aluminium window units'\n      }, {\n        name: 'Fireplace'\n      }, {\n        name: 'Plumbing hardware & fittings'\n      }, {\n        name: 'Toilets'\n      }, {\n        name: 'Tapware, vanities etc.'\n      }, {\n        name: 'Supply of light fittings'\n      }, {\n        name: 'Wardrobes & interior cabinetry'\n      }, {\n        name: 'Internal doors'\n      }, {\n        name: 'Tiles for bathroom & utility'\n      }, {\n        name: 'Kitchen + laundry cabinets'\n      }, {\n        name: 'Kitchen appliances'\n      }, {\n        name: 'Curtains / blinds'\n      }, {\n        name: 'Shower doors'\n      }, {\n        name: 'Mirrors'\n      }, {\n        name: 'Smoke alarm'\n      }, {\n        name: 'Toilet roll holders, towel rails'\n      }, {\n        name: 'Carpet'\n      }, {\n        name: 'Garage carpet'\n      }, {\n        name: 'Driveway'\n      }, {\n        name: 'Side fences & blockwork'\n      }, {\n        name: 'Canal landscaping (excludes planting)'\n      }, {\n        name: 'Gate(s)'\n      }, {\n        name: 'T.V aerial - assume sky dish to be installed'\n      }, {\n        name: 'Clothesline'\n      }]\n    }]\n  }];\n});","define(\"portal/utils/titleize\", [\"exports\", \"ember-cli-string-helpers/utils/titleize\"], function (_exports, _titleize) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _titleize.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-string-helpers/utils/titleize\"eaimeta@70e063a35619d71f\n});","define(\"portal/utils/tree-item\", [\"exports\", \"lodash\", \"@glimmer/tracking\", \"@ember/array\"], function (_exports, _lodash, _tracking, _array) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"lodash\",0,\"@glimmer/tracking\",0,\"@ember/array\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let TreeItem = _exports.default = (_class = class TreeItem {\n    static findItemInTree(tree, itemToFind) {\n      let match;\n      (function findItem(nodes) {\n        nodes.forEach(node => {\n          if (match) return;\n          if (node.item === itemToFind) {\n            match = node;\n          } else if (node.children) {\n            findItem(node.children);\n          }\n        });\n      })(tree);\n      return match;\n    }\n    static getPath(tree, targetBranch, labelKey = 'name') {\n      let resultPath = [];\n      function traverse(nodes, currentPath) {\n        for (const node of nodes) {\n          const label = node.item[labelKey];\n          const newPath = [...currentPath, label];\n          if (node === targetBranch || node.item === targetBranch.item) {\n            resultPath = newPath;\n            return true;\n          }\n          if (node.children && node.children.length > 0) {\n            if (traverse(node.children, newPath)) {\n              return true;\n            }\n          }\n        }\n        return false;\n      }\n      traverse(tree, []);\n      return resultPath;\n    }\n\n    // constructs a nested item tree from tasks and projects\n    static constructItemTreeFromProjectAndTasks(taskData, projectData) {\n      const projectGroupedTopLevelTasks = _lodash.default.groupBy(taskData.toArray(), task => {\n        return !task.belongsTo('parent').id() && task.belongsTo('project').id();\n      });\n      const projectItems = projectData.toArray().map(project => new TreeItem(project));\n      projectItems.forEach(container => {\n        const tasks = projectGroupedTopLevelTasks[container.item.id];\n        if (!tasks) return;\n        container.children = tasks.map(task => new TreeItem(task, 'children'));\n      });\n      return projectItems;\n    }\n\n    // constructs a nested item tree from tasks\n    static constructItemTreeFromTasks(taskData, hideInactiveTimesheetTasks, excludedTasks = []) {\n      const excludedTaskIds = new Set(excludedTasks.map(task => task.id));\n      const topTasks = taskData.toArray().filter(task => !task.belongsTo('parent').id() && !excludedTaskIds.has(task.id) && ['ACTIVE', 'DRAFT_CREATED'].includes(task.status));\n      const taskItems = (0, _array.A)(topTasks).sortBy('path').map(task => new TreeItem(task, 'children', hideInactiveTimesheetTasks, excludedTaskIds));\n      return taskItems;\n    }\n    constructor(item, childKey, hideInactiveTimesheetTasks, excludedItemIds = new Set()) {\n      _initializerDefineProperty(this, \"item\", _descriptor, this);\n      _initializerDefineProperty(this, \"children\", _descriptor2, this);\n      this.item = item;\n      if (childKey && item[childKey]) {\n        const childrenArray = (0, _array.A)(item.hasMany(childKey).value()?.toArray());\n        this.children = childrenArray.sortBy('path').filter(child => !excludedItemIds.has(child.id) && ['ACTIVE', 'DRAFT_CREATED'].includes(child.status) && (hideInactiveTimesheetTasks ? child.timesheetStatus === 'ACTIVE' : true)).map(child => new TreeItem(child, childKey, hideInactiveTimesheetTasks, excludedItemIds)) || [];\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"item\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"children\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _class);\n});","define(\"portal/validators/bill-item\", [\"exports\", \"ember-changeset-validations/validators\"], function (_exports, _validators) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = buildBillItemValidations;\n  0; //eaimeta@70e063a35619d71f0,\"ember-changeset-validations/validators\"eaimeta@70e063a35619d71f\n  function buildBillItemValidations(intl) {\n    const eitherDescriptionOrProductCode = (key, newValue, oldValue, changes, content) => {\n      const description = changes.description ?? content.description;\n      const productCode = changes.productCode ?? content.productCode;\n      if (!description && !productCode) {\n        if (key === 'description') {\n          return intl.t('validators.bill-item.Code or Description is required');\n        }\n        if (key === 'productCode') {\n          return '&nbsp;';\n        }\n      }\n      return true;\n    };\n    return {\n      description: [eitherDescriptionOrProductCode, (0, _validators.validateLength)({\n        max: 255\n      })],\n      productCode: [eitherDescriptionOrProductCode, (0, _validators.validateLength)({\n        max: 100\n      })],\n      quantity: [(0, _validators.validatePresence)(true)],\n      unitPrice: [(0, _validators.validatePresence)(true), (0, _validators.validateNumber)({\n        allowString: true,\n        gte: 0,\n        message: intl.t('validators.bill-item.Unit price cannot be negative')\n      })]\n    };\n  }\n});","define(\"portal/validators/bill\", [\"exports\", \"ember-changeset-validations/validators\"], function (_exports, _validators) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.VALID_STATUSES = _exports.VALID_ALLOCATION_TYPES = void 0;\n  _exports.default = buildBillValidations;\n  0; //eaimeta@70e063a35619d71f0,\"ember-changeset-validations/validators\"eaimeta@70e063a35619d71f\n  const VALID_STATUSES = _exports.VALID_STATUSES = ['DRAFT', 'ACCEPTED', 'ARCHIVED', 'HELD', 'PAID'];\n  const VALID_ALLOCATION_TYPES = _exports.VALID_ALLOCATION_TYPES = ['MATERIALS', 'LABOUR', 'SUBCONTRACTORS'];\n  function buildBillValidations(intl) {\n    const validateDueDate = (0, _validators.validatePresence)(true);\n    return {\n      billNumber: [(0, _validators.validatePresence)(true), (0, _validators.validateLength)({\n        max: 100\n      })],\n      issuer: [(0, _validators.validatePresence)(true)],\n      issuerContact: [(0, _validators.validatePresence)({\n        presence: true,\n        message: intl.t('validators.bill.pleaseSelectAnActualContactOrCreateOne')\n      })],\n      issueDate: [(0, _validators.validatePresence)(true)],\n      dueDate: [(key, value, oldValue, changes, content) => {\n        const billType = changes?.billType ?? content?.billType;\n        return billType === 'CREDIT_NOTE' ? true : validateDueDate(key, value, oldValue, changes, content);\n      }],\n      status: [(0, _validators.validatePresence)(true), (0, _validators.validateInclusion)({\n        list: VALID_STATUSES\n      })],\n      allocationType: [(0, _validators.validatePresence)(true), (0, _validators.validateInclusion)({\n        list: VALID_ALLOCATION_TYPES\n      })]\n    };\n  }\n});","define(\"portal/validators/ips-connection\", [\"exports\", \"ember-changeset-validations/validators\"], function (_exports, _validators) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = buildIpsConnectionValidations;\n  0; //eaimeta@70e063a35619d71f0,\"ember-changeset-validations/validators\"eaimeta@70e063a35619d71f\n  function buildIpsConnectionValidations(intl) {\n    return {\n      contactEmail: (0, _validators.validateFormat)({\n        type: 'email',\n        message: intl.t('validators.ips-connection.Please provide a valid email')\n      })\n    };\n  }\n});","define('portal/config/environment', [], function() {\n  var prefix = 'portal';\ntry {\n  var metaName = prefix + '/config/environment';\n  var rawConfig = document.querySelector('meta[name=\"' + metaName + '\"]').getAttribute('content');\n  var config = JSON.parse(decodeURIComponent(rawConfig));\n\n  var exports = { 'default': config };\n\n  Object.defineProperty(exports, '__esModule', { value: true });\n\n  return exports;\n}\ncatch(err) {\n  throw new Error('Could not read config from meta tag with name \"' + metaName + '\".');\n}\n\n});\n","\n          if (!runningTests) {\n            require(\"portal/app\")[\"default\"].create({\"appVersion\":\"2.0.1\",\"name\":\"portal\",\"version\":\"2.0.0+fdc412fd\"});\n          }\n        \n"],"mappings":"AAAA;ACAAA,OAAA,gKAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,GAOA,IAAAC,EAAAC,EAAAC;AAEA,SAAAC,EAAAC,EAAAC,EAAAC,EAAAC,GAAAD,GAAAE,O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zB,MAAA,sBACA1zB,MAAA,OACA,CACA0zB,MAAA,4BACA1zB,MAAA,OACA,CACA0zB,MAAA,qBACA1zB,MAAA,OACA,CACA0zB,MAAA,uBACA1zB,MAAA,OACA,CACA0zB,MAAA,oBACA1zB,MAAA,OACA,CACA0zB,MAAA,wBACA1zB,MAAA,OACA,CACA0zB,MAAA,2BACA1zB,MAAA,OACA,CACA0zB,MAAA,sBACA1zB,MAAA,OACA,CACA0zB,MAAA,sBACA1zB,MAAA,OACA,CACA0zB,MAAA,2BACA1zB,MAAA,OACA,CACA0zB,MAAA,4BACA1zB,MAAA,OACA,CACA0zB,MAAA,qBACA1zB,MAAA,OACA,CACA0zB,MAAA,qCACA1zB,MAAA,OACA,CACA0zB,MAAA,qBACA1zB,MAAA,OACA,CACA0zB,MAAA,uBACA1zB,MAAA,OACA,CACA0zB,MAAA,2BACA1zB,MAAA,OACA,CACA0zB,MAAA,2BACA1zB,MAAA,OACA,CACA0zB,MAAA,qCACA1zB,MAAA,OACA,CACA0zB,MAAA,4BACA1zB,MAAA,OACA,CACA0zB,MAAA,qBACA1zB,MAAA,OACA,CACA0zB,MAAA,sBACA1zB,MAAA,OACA,CACA0zB,MAAA,yBACA1zB,MAAA,OACA,CACA0zB,MAAA,wBACA1zB,MAAA,OACA,CACA0zB,MAAA,+BACA1zB,MAAA,OACA,CACA0zB,MAAA,sBACA1zB,MAAA,OACA,CACA0zB,MAAA,2BACA1zB,MAAA,OACA,CACA0zB,MAAA,sBACA1zB,MAAA,OACA,CACA0zB,MAAA,uBACA1zB,MAAA,OACA,CACA0zB,MAAA,+BACA1zB,MAAA,OACA,CACA0zB,MAAA,+BACA1zB,MAAA,OACA,CACA0zB,MAAA,6BACA1zB,MAAA,OACA,CACA0zB,MAAA,wBACA1zB,MAAA,OACA,CACA0zB,MAAA,wBACA1zB,MAAA,OACA,CACA0zB,MAAA,sBACA1zB,MAAA,OACA,CACA0zB,MAAA,0BACA1zB,MAAA,OACA,CACA0zB,MAAA,y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kBACA,CACAA,KAAA,YACA,CACAA,KAAA,mBACA,CACAA,KAAA,UACA,CACAA,KAAA,0BACA,CACAA,KAAA,eACA,CACAA,KAAA,sBACA,CACAA,KAAA,oBACA,CACAA,KAAA,iBACA,CACAA,KAAA,UACA,CACAA,KAAA,wBACA,CACAA,KAAA,mBACA,CACAA,KAAA,sBACA,CACAA,KAAA,yBACA,CACAA,KAAA,yBACA,CACAA,KAAA,yBACA,CACAA,KAAA,cACA,CACAA,KAAA,gBACA2K,MAAA,EACA3K,KAAA,eAEA,CACAA,KAAA,sBACA,CACAA,KAAA,WACA,CACAA,KAAA,eACA,CACAA,KAAA,iBACA,CACAA,KAAA,qBACA,CACAA,KAAA,iBACA,CACAA,KAAA,eAEA,CACAA,KAAA,cACA,CACAA,KAAA,2BACA2K,MAAA,EACA3K,KAAA,4BACA,CACAA,KAAA,kBAEA,CACAA,KAAA,WACA2K,MAAA,EACA3K,KAAA,wBAEA,CACAA,KAAA,mBACA2K,MAAA,EACA3K,KAAA,sBAEA,CACAA,KAAA,YACA2K,MAAA,EACA3K,KAAA,WACA,CACAA,KAAA,WACA,CACAA,KAAA,UACA,CACAA,KAAA,WACA,CACAA,KAAA,QACA2K,MAAA,EACA3K,KAAA,iBAEA,CACAA,KAAA,YACA,CACAA,KAAA,WACA,CACAA,KAAA,SACA2K,MAAA,EACA3K,KAAA,oBACA,CACAA,KAAA,gCAGA,CACAA,KAAA,oBACA2K,MAAA,EACA3K,KAAA,mBACA,CACAA,KAAA,4BAEA,CACAA,KAAA,UACA2K,MAAA,EACA3K,KAAA,kBACA,CACAA,KAAA,WACA,CACAA,KAAA,oBACA,CACAA,KAAA,mBAEA,CACAA,KAAA,UACA2K,MAAA,EACA3K,KAAA,WACA,CACAA,KAAA,qBAEA,CACAA,KAAA,UACA2K,MAAA,EACA3K,KAAA,aAEA,CACAA,KAAA,UACA2K,MAAA,EACA3K,KAAA,sBAEA,CACAA,KAAA,UACA2K,MAAA,EACA3K,KAAA,2BACA,C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AAA,EACA3K,KAAA,mBACA,CACAA,KAAA,sBACA,CACAA,KAAA,aACA2K,MAAA,EACA3K,KAAA,kBACA,CACAA,KAAA,oBACA,CACAA,KAAA,4BAEA,CACAA,KAAA,eACA,CACAA,KAAA,kBACA2K,MAAA,EACA3K,KAAA,cAEA,CACAA,KAAA,cACA,CACAA,KAAA,aACA,CACAA,KAAA,eACA,CACAA,KAAA,aACA,CACAA,KAAA,qBACA,CACAA,KAAA,gBACA,CACAA,KAAA,gBACA,CACAA,KAAA,kBACA,CACAA,KAAA,eAEA,CACAA,KAAA,wBACA,CACAA,KAAA,mCAEA,CACAA,KAAA,aACA2K,MAAA,EACA3K,KAAA,eACA,CACAA,KAAA,qBAEA,CACAA,KAAA,kBACA2K,MAAA,EACA3K,KAAA,gBACA,CACAA,KAAA,kBAEA,CACAA,KAAA,UACA2K,MAAA,EACA3K,KAAA,QACA,CACAA,KAAA,UACA,CACAA,KAAA,eAEA,CACAA,KAAA,YACA2K,MAAA,EACA3K,KAAA,SACA,CACAA,KAAA,WACA,CACAA,KAAA,kCAEA,CACAA,KAAA,oBACA2K,MAAA,EACA3K,KAAA,cAEA,CACAA,KAAA,mBACA2K,MAAA,EACA3K,KAAA,oBACA,CACAA,KAAA,aACA,CACAA,KAAA,eACA,CACAA,KAAA,QACA2K,MAAA,EACA3K,KAAA,kBACA,CACAA,KAAA,WACA,CACAA,KAAA,YACA,CACAA,KAAA,WACA,CACAA,KAAA,eACA,CACAA,KAAA,UACA,CACAA,KAAA,cAGA,CACAA,KAAA,qBACA2K,MAAA,EACA3K,KAAA,oBACA2K,MAAA,EACA3K,KAAA,SACA,CACAA,KAAA,aAEA,CACAA,KAAA,oBACA2K,MAAA,EACA3K,KAAA,SACA,CACAA,KAAA,WACA,CACAA,KAAA,WAEA,CACAA,KAAA,uBAEA,CACAA,KAAA,iBACA2K,MAAA,EACA3K,KAAA,YACA,CACAA,KAAA,YACA,CACAA,KAAA,cACA,CACAA,KAAA,WACA2K,MAAA,EACA3K,KAAA,UACA,CACAA,KAAA,cAGA,CACAA,KAAA,QACA,CACAA,KAAA,gBAEA,CACAA,KAAA,iBACA2K,MAAA,EACA3K,KAAA,2BACA,CACAA,KAAA,8BACA,CACAA,KAAA,eACA,CACAA,KAAA,uBACA,CACAA,KAAA,yBACA,CACAA,KAAA,WACA,CACAA,KAAA,oBACA,CACAA,KAAA,iBACA,CACAA,KAAA,0BACA,CACAA,KAAA,4BACA,CACAA,KAAA,2CACA,CACAA,KAAA,qCACA,CACAA,KAAA,mCACA,CACAA,KAAA,+BACA,CACAA,KAAA,YACA,CACAA,KAAA,+CACA,CACAA,KAAA,+BACA,CACAA,KAAA,oBACA,CACAA,KAAA,gCACA,CACAA,KAAA,eACA,CACAA,KAAA,iCACA,CACAA,KAAA,iBACA,CACAA,KAAA,WACA,CACAA,KAAA,aACA,CACAA,KAAA,UACA,CACAA,KAAA,UACA,CACAA,KAAA,eACA,CACAA,KAAA,OACA2K,MAAA,EACA3K,KAAA,0BACA,CACAA,KAAA,aACA,CACAA,KAAA,gCACA,CACAA,KAAA,WACA,CACAA,KAAA,0BACA,CACAA,KAAA,4BACA,CACAA,KAAA,kCACA,CACAA,KAAA,kBACA,CACAA,KAAA,gCACA,CACAA,KAAA,8BACA,CACAA,KAAA,sBACA,CACAA,KAAA,qBACA,CACAA,KAAA,gBACA,CACAA,KAAA,WACA,CACAA,KAAA,eACA,CACAA,KAAA,oCACA,CACAA,KAAA,UACA,CACAA,KAAA,iBACA,CACAA,KAAA,YACA,CACAA,KAAA,2BACA,CACAA,KAAA,yCACA,CACAA,KAAA,WACA,CACAA,KAAA,gDACA,CACAA,KAAA,mB,GCviBAtM,OAAA,uFAAAC,EAAAksL,GAGAprL,OAAAC,eAAAf,EAAA,cACAmB,OAAA,IAEAL,OAAAC,eAAAf,EAAA,WACAgB,YAAA,EACAoO,IAAA,WACA,OAAA88K,EAAA3pL,OACA,G,GCVAxC,OAAA,0FAAAC,EAAAkf,EAAAxI,EAAAjI,G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